@arcgis/coding-components 4.33.0-next.83 → 4.33.0-next.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/{UYORCZKY.js → 34ELRTY5.js} +2 -2
- package/dist/arcgis-coding-components/{4G2REC2E.js.LEGAL.txt → 34ELRTY5.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/4QQODRE7.js +4 -0
- package/dist/arcgis-coding-components/{EXENIC4R.js → 5MNAIQPJ.js} +2 -2
- package/dist/arcgis-coding-components/{26PJKUGZ.js.LEGAL.txt → 5MNAIQPJ.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{2GBAPEKA.js → 72ZXOBRL.js} +2 -2
- package/dist/arcgis-coding-components/{VVIYIQ5E.js → AA2DPZKA.js} +2 -2
- package/dist/arcgis-coding-components/{72UESH3W.js.LEGAL.txt → AA2DPZKA.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{26PJKUGZ.js → AG67HRRN.js} +2 -2
- package/dist/arcgis-coding-components/{AC6OKNBE.js.LEGAL.txt → AG67HRRN.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{OR2UN65U.js → BZNNTF5P.js} +1 -1
- package/dist/arcgis-coding-components/{4G2REC2E.js → CL7QLK6Y.js} +2 -2
- package/dist/arcgis-coding-components/CL7QLK6Y.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{QLLO5DVE.js → EJYOC24Q.js} +2 -2
- package/dist/arcgis-coding-components/EJYOC24Q.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{IPBXQE6W.js → EOB6YJOE.js} +2 -2
- package/dist/arcgis-coding-components/EOB6YJOE.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{JZX6FP5B.js → EOFJAUDB.js} +2 -2
- package/dist/arcgis-coding-components/{XPYX5XO2.js → ETD6SR3Y.js} +2 -2
- package/dist/arcgis-coding-components/{CJ2Z3TLD.js → FGAWKSFM.js} +2 -2
- package/dist/arcgis-coding-components/{AC6OKNBE.js → GYHRLXXA.js} +2 -2
- package/dist/arcgis-coding-components/GYHRLXXA.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{WBWGY5JA.js → HGP7XRJQ.js} +2 -2
- package/dist/arcgis-coding-components/HGP7XRJQ.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{ZWBFJUXH.js → IPJZY7GA.js} +2 -2
- package/dist/arcgis-coding-components/{ZWBFJUXH.js.LEGAL.txt → IPJZY7GA.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{IUIZXGGH.js → IQKBM4A2.js} +2 -2
- package/dist/arcgis-coding-components/{V4ZVXGL3.js → IRDMECNM.js} +1 -1
- package/dist/arcgis-coding-components/IRDMECNM.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{UIX5GSCZ.js → JUYPLYGN.js} +1 -1
- package/dist/arcgis-coding-components/{VL62UFLN.js → KNFFNKYB.js} +2 -2
- package/dist/arcgis-coding-components/{VL62UFLN.js.LEGAL.txt → KNFFNKYB.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{7CO4EXVC.js → KUAADOT6.js} +2 -2
- package/dist/arcgis-coding-components/{LATTDQ3Q.js → LABX4M65.js} +2 -2
- package/dist/arcgis-coding-components/{YQYXS4FN.js → LE3ZSKDO.js} +2 -2
- package/dist/arcgis-coding-components/LE3ZSKDO.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{TINZWPRQ.js → LI2JZ6OS.js} +2 -2
- package/dist/arcgis-coding-components/{DRIH46J5.js → NSECTCG6.js} +2 -2
- package/dist/arcgis-coding-components/{WFGP2I2C.js → PUC6ZE5S.js} +2 -2
- package/dist/arcgis-coding-components/PUC6ZE5S.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{KSLZR5NC.js → QV5VLNT4.js} +3 -3
- package/dist/arcgis-coding-components/{KSLZR5NC.js.LEGAL.txt → QV5VLNT4.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{DY4KMC5D.js → RCX5AAXI.js} +2 -2
- package/dist/arcgis-coding-components/RCX5AAXI.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{72UESH3W.js → SHBY54CJ.js} +2 -2
- package/dist/arcgis-coding-components/SHBY54CJ.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{A4BHQPRQ.js → W22GE6G5.js} +1 -1
- package/dist/arcgis-coding-components/{R7E7OP63.js → X5CV4XNJ.js} +2 -2
- package/dist/arcgis-coding-components/{DX2MGP3J.js → XZX6I3W4.js} +2 -2
- package/dist/arcgis-coding-components/{XOTHAWZU.js → YOXZX2IM.js} +2 -2
- package/dist/arcgis-coding-components/YOXZX2IM.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{SL3Q42DD.js → YWYGRJEN.js} +2 -2
- package/dist/arcgis-coding-components/YWYGRJEN.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{GNFUQ2M5.js → Z33AYGSJ.js} +2 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js.LEGAL.txt +1 -1
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +7 -7
- package/dist/arcgis-coding-components/DY4KMC5D.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/EXENIC4R.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/IPBXQE6W.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/QLLO5DVE.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/SL3Q42DD.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/SYPUWMW4.js +0 -4
- package/dist/arcgis-coding-components/UYORCZKY.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/V4ZVXGL3.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/VVIYIQ5E.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/WBWGY5JA.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/WFGP2I2C.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/XOTHAWZU.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/YQYXS4FN.js.LEGAL.txt +0 -3
- /package/dist/arcgis-coding-components/{A4BHQPRQ.js.LEGAL.txt → 4QQODRE7.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{2GBAPEKA.js.LEGAL.txt → 72ZXOBRL.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{DX2MGP3J.js.LEGAL.txt → BZNNTF5P.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{JZX6FP5B.js.LEGAL.txt → EOFJAUDB.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{XPYX5XO2.js.LEGAL.txt → ETD6SR3Y.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{CJ2Z3TLD.js.LEGAL.txt → FGAWKSFM.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{IUIZXGGH.js.LEGAL.txt → IQKBM4A2.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{OR2UN65U.js.LEGAL.txt → JUYPLYGN.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{7CO4EXVC.js.LEGAL.txt → KUAADOT6.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{LATTDQ3Q.js.LEGAL.txt → LABX4M65.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{TINZWPRQ.js.LEGAL.txt → LI2JZ6OS.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{DRIH46J5.js.LEGAL.txt → NSECTCG6.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{SYPUWMW4.js.LEGAL.txt → W22GE6G5.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{R7E7OP63.js.LEGAL.txt → X5CV4XNJ.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{UIX5GSCZ.js.LEGAL.txt → XZX6I3W4.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{GNFUQ2M5.js.LEGAL.txt → Z33AYGSJ.js.LEGAL.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.
|
|
3
|
+
v4.33.0-next.85 */
|
|
4
4
|
function u(t){switch(t.type){case"oid":return"key";case"small-integer":case"big-integer":case"integer":case"single":case"double":case"long":return"number";case"global-id":case"guid":return"key";case"string":return"string";case"date":return"date-time";case"date-only":return"calendar";case"time-only":return"clock";case"timestamp-offset":return"time-zone";default:return"cube"}}function c(t){switch(t.type){case"small-integer":case"integer":case"big-integer":case"single":case"double":case"long":case"oid":return"number";case"global-id":case"guid":case"string":return"text";case"date":return"date";case"date-only":return"dateOnly";case"time-only":return"time";default:return"text"}}function w(t){return(t??[]).filter(r=>{switch(r.type){case"string":case"small-integer":case"integer":case"big-integer":case"single":case"double":case"long":case"date":case"date-only":case"time-only":case"timestamp-offset":case"oid":case"guid":case"global-id":return!0;default:return!1}})}function p(t){return t.alias||t.name}var e=typeof window<"u"&&"$arcgis"in window&&typeof window.$arcgis=="object"&&"import"in window.$arcgis&&!("forceESM"in window.$arcgis);function n(t){return t.default!==void 0}async function i(){if(e)return await window.$arcgis.import("esri/layers/FeatureLayer");let t=await import("@arcgis/core/layers/FeatureLayer.js");return n(t)?t.default:t}async function d(t){let r=await i();return new r(t)}async function o(){if(e)return await window.$arcgis.import("esri/portal/PortalItem");let t=await import("@arcgis/core/portal/PortalItem.js");return n(t)?t.default:t}async function l(t){let r=await o();return new r(t)}async function a(){if(e)return await window.$arcgis.import("esri/WebMap");let t=await import("@arcgis/core/WebMap.js");return n(t)?t.default:t}async function f(t){let r=await a();return new r(t)}async function s(){if(e)return await window.$arcgis.import("esri/WebScene");let t=await import("@arcgis/core/WebScene.js");return n(t)?t.default:t}async function y(t){let r=await s();return new r(t)}async function g(){if(e)return await window.$arcgis.import("esri/arcade");let t=await import("@arcgis/core/arcade.js");return n(t)?t.default:t}async function S(){if(e)return await window.$arcgis.import("esri/request");let t=await import("@arcgis/core/request.js");return n(t)?t.default:t}export{d as a,l as b,f as c,y as d,g as e,S as f,u as g,c as h,w as i,p as j};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.
|
|
3
|
+
v4.33.0-next.85 */
|
|
4
4
|
var B;(function(t){function i(r){return typeof r=="string"}t.is=i})(B||(B={}));var D;(function(t){function i(r){return typeof r=="string"}t.is=i})(D||(D={}));var H;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function i(r){return typeof r=="number"&&t.MIN_VALUE<=r&&r<=t.MAX_VALUE}t.is=i})(H||(H={}));var E;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function i(r){return typeof r=="number"&&t.MIN_VALUE<=r&&r<=t.MAX_VALUE}t.is=i})(E||(E={}));var x;(function(t){function i(n,e){return n===Number.MAX_VALUE&&(n=E.MAX_VALUE),e===Number.MAX_VALUE&&(e=E.MAX_VALUE),{line:n,character:e}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&a.uinteger(e.line)&&a.uinteger(e.character)}t.is=r})(x||(x={}));var l;(function(t){function i(n,e,s,o){if(a.uinteger(n)&&a.uinteger(e)&&a.uinteger(s)&&a.uinteger(o))return{start:x.create(n,e),end:x.create(s,o)};if(x.is(n)&&x.is(e))return{start:n,end:e};throw new Error(`Range#create called with invalid arguments[${n}, ${e}, ${s}, ${o}]`)}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&x.is(e.start)&&x.is(e.end)}t.is=r})(l||(l={}));var L;(function(t){function i(n,e){return{uri:n,range:e}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&l.is(e.range)&&(a.string(e.uri)||a.undefined(e.uri))}t.is=r})(L||(L={}));var Q;(function(t){function i(n,e,s,o){return{targetUri:n,targetRange:e,targetSelectionRange:s,originSelectionRange:o}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&l.is(e.targetRange)&&a.string(e.targetUri)&&l.is(e.targetSelectionRange)&&(l.is(e.originSelectionRange)||a.undefined(e.originSelectionRange))}t.is=r})(Q||(Q={}));var P;(function(t){function i(n,e,s,o){return{red:n,green:e,blue:s,alpha:o}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&a.numberRange(e.red,0,1)&&a.numberRange(e.green,0,1)&&a.numberRange(e.blue,0,1)&&a.numberRange(e.alpha,0,1)}t.is=r})(P||(P={}));var G;(function(t){function i(n,e){return{range:n,color:e}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&l.is(e.range)&&P.is(e.color)}t.is=r})(G||(G={}));var J;(function(t){function i(n,e,s){return{label:n,textEdit:e,additionalTextEdits:s}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&a.string(e.label)&&(a.undefined(e.textEdit)||m.is(e))&&(a.undefined(e.additionalTextEdits)||a.typedArray(e.additionalTextEdits,m.is))}t.is=r})(J||(J={}));var Y;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Y||(Y={}));var Z;(function(t){function i(n,e,s,o,c,f){let u={startLine:n,endLine:e};return a.defined(s)&&(u.startCharacter=s),a.defined(o)&&(u.endCharacter=o),a.defined(c)&&(u.kind=c),a.defined(f)&&(u.collapsedText=f),u}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&a.uinteger(e.startLine)&&a.uinteger(e.startLine)&&(a.undefined(e.startCharacter)||a.uinteger(e.startCharacter))&&(a.undefined(e.endCharacter)||a.uinteger(e.endCharacter))&&(a.undefined(e.kind)||a.string(e.kind))}t.is=r})(Z||(Z={}));var R;(function(t){function i(n,e){return{location:n,message:e}}t.create=i;function r(n){let e=n;return a.defined(e)&&L.is(e.location)&&a.string(e.message)}t.is=r})(R||(R={}));var S;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(S||(S={}));var T;(function(t){t.Unnecessary=1,t.Deprecated=2})(T||(T={}));var K;(function(t){function i(r){let n=r;return a.objectLiteral(n)&&a.string(n.href)}t.is=i})(K||(K={}));var y;(function(t){function i(n,e,s,o,c,f){let u={range:n,message:e};return a.defined(s)&&(u.severity=s),a.defined(o)&&(u.code=o),a.defined(c)&&(u.source=c),a.defined(f)&&(u.relatedInformation=f),u}t.create=i;function r(n){var e;let s=n;return a.defined(s)&&l.is(s.range)&&a.string(s.message)&&(a.number(s.severity)||a.undefined(s.severity))&&(a.integer(s.code)||a.string(s.code)||a.undefined(s.code))&&(a.undefined(s.codeDescription)||a.string((e=s.codeDescription)===null||e===void 0?void 0:e.href))&&(a.string(s.source)||a.undefined(s.source))&&(a.undefined(s.relatedInformation)||a.typedArray(s.relatedInformation,R.is))}t.is=r})(y||(y={}));var v;(function(t){function i(n,e,...s){let o={title:n,command:e};return a.defined(s)&&s.length>0&&(o.arguments=s),o}t.create=i;function r(n){let e=n;return a.defined(e)&&a.string(e.title)&&a.string(e.command)}t.is=r})(v||(v={}));var m;(function(t){function i(s,o){return{range:s,newText:o}}t.replace=i;function r(s,o){return{range:{start:s,end:s},newText:o}}t.insert=r;function n(s){return{range:s,newText:""}}t.del=n;function e(s){let o=s;return a.objectLiteral(o)&&a.string(o.newText)&&l.is(o.range)}t.is=e})(m||(m={}));var V;(function(t){function i(n,e,s){let o={label:n};return e!==void 0&&(o.needsConfirmation=e),s!==void 0&&(o.description=s),o}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&a.string(e.label)&&(a.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(a.string(e.description)||e.description===void 0)}t.is=r})(V||(V={}));var b;(function(t){function i(r){let n=r;return a.string(n)}t.is=i})(b||(b={}));var ee;(function(t){function i(s,o,c){return{range:s,newText:o,annotationId:c}}t.replace=i;function r(s,o,c){return{range:{start:s,end:s},newText:o,annotationId:c}}t.insert=r;function n(s,o){return{range:s,newText:"",annotationId:o}}t.del=n;function e(s){let o=s;return m.is(o)&&(V.is(o.annotationId)||b.is(o.annotationId))}t.is=e})(ee||(ee={}));var k;(function(t){function i(n,e){return{textDocument:n,edits:e}}t.create=i;function r(n){let e=n;return a.defined(e)&&W.is(e.textDocument)&&Array.isArray(e.edits)}t.is=r})(k||(k={}));var U;(function(t){function i(n,e,s){let o={kind:"create",uri:n};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(o.options=e),s!==void 0&&(o.annotationId=s),o}t.create=i;function r(n){let e=n;return e&&e.kind==="create"&&a.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||a.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||a.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||b.is(e.annotationId))}t.is=r})(U||(U={}));var F;(function(t){function i(n,e,s,o){let c={kind:"rename",oldUri:n,newUri:e};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(c.options=s),o!==void 0&&(c.annotationId=o),c}t.create=i;function r(n){let e=n;return e&&e.kind==="rename"&&a.string(e.oldUri)&&a.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||a.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||a.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||b.is(e.annotationId))}t.is=r})(F||(F={}));var $;(function(t){function i(n,e,s){let o={kind:"delete",uri:n};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(o.options=e),s!==void 0&&(o.annotationId=s),o}t.create=i;function r(n){let e=n;return e&&e.kind==="delete"&&a.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||a.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||a.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||b.is(e.annotationId))}t.is=r})($||($={}));var O;(function(t){function i(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(e=>a.string(e.kind)?U.is(e)||F.is(e)||$.is(e):k.is(e)))}t.is=i})(O||(O={}));var te;(function(t){function i(n){return{uri:n}}t.create=i;function r(n){let e=n;return a.defined(e)&&a.string(e.uri)}t.is=r})(te||(te={}));var ne;(function(t){function i(n,e){return{uri:n,version:e}}t.create=i;function r(n){let e=n;return a.defined(e)&&a.string(e.uri)&&a.integer(e.version)}t.is=r})(ne||(ne={}));var W;(function(t){function i(n,e){return{uri:n,version:e}}t.create=i;function r(n){let e=n;return a.defined(e)&&a.string(e.uri)&&(e.version===null||a.integer(e.version))}t.is=r})(W||(W={}));var re;(function(t){function i(n,e,s,o){return{uri:n,languageId:e,version:s,text:o}}t.create=i;function r(n){let e=n;return a.defined(e)&&a.string(e.uri)&&a.string(e.languageId)&&a.integer(e.version)&&a.string(e.text)}t.is=r})(re||(re={}));var _;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function i(r){let n=r;return n===t.PlainText||n===t.Markdown}t.is=i})(_||(_={}));var A;(function(t){function i(r){let n=r;return a.objectLiteral(r)&&_.is(n.kind)&&a.string(n.value)}t.is=i})(A||(A={}));var w;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(w||(w={}));var I;(function(t){t.PlainText=1,t.Snippet=2})(I||(I={}));var ie;(function(t){t.Deprecated=1})(ie||(ie={}));var ae;(function(t){function i(n,e,s){return{newText:n,insert:e,replace:s}}t.create=i;function r(n){let e=n;return e&&a.string(e.newText)&&l.is(e.insert)&&l.is(e.replace)}t.is=r})(ae||(ae={}));var j;(function(t){t.asIs=1,t.adjustIndentation=2})(j||(j={}));var se;(function(t){function i(r){let n=r;return n&&(a.string(n.detail)||n.detail===void 0)&&(a.string(n.description)||n.description===void 0)}t.is=i})(se||(se={}));var oe;(function(t){function i(r){return{label:r}}t.create=i})(oe||(oe={}));var ce;(function(t){function i(r,n){return{items:r||[],isIncomplete:!!n}}t.create=i})(ce||(ce={}));var C;(function(t){function i(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=i;function r(n){let e=n;return a.string(e)||a.objectLiteral(e)&&a.string(e.language)&&a.string(e.value)}t.is=r})(C||(C={}));var ue;(function(t){function i(r){let n=r;return!!n&&a.objectLiteral(n)&&(A.is(n.contents)||C.is(n.contents)||a.typedArray(n.contents,C.is))&&(r.range===void 0||l.is(r.range))}t.is=i})(ue||(ue={}));var de;(function(t){function i(r,n){return n?{label:r,documentation:n}:{label:r}}t.create=i})(de||(de={}));var fe;(function(t){function i(r,n,...e){let s={label:r};return a.defined(n)&&(s.documentation=n),a.defined(e)?s.parameters=e:s.parameters=[],s}t.create=i})(fe||(fe={}));var le;(function(t){t.Text=1,t.Read=2,t.Write=3})(le||(le={}));var ge;(function(t){function i(r,n){let e={range:r};return a.number(n)&&(e.kind=n),e}t.create=i})(ge||(ge={}));var he;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(he||(he={}));var pe;(function(t){t.Deprecated=1})(pe||(pe={}));var xe;(function(t){function i(r,n,e,s,o){let c={name:r,kind:n,location:{uri:s,range:e}};return o&&(c.containerName=o),c}t.create=i})(xe||(xe={}));var ve;(function(t){function i(r,n,e,s){return s!==void 0?{name:r,kind:n,location:{uri:e,range:s}}:{name:r,kind:n,location:{uri:e}}}t.create=i})(ve||(ve={}));var me;(function(t){function i(n,e,s,o,c,f){let u={name:n,detail:e,kind:s,range:o,selectionRange:c};return f!==void 0&&(u.children=f),u}t.create=i;function r(n){let e=n;return e&&a.string(e.name)&&a.number(e.kind)&&l.is(e.range)&&l.is(e.selectionRange)&&(e.detail===void 0||a.string(e.detail))&&(e.deprecated===void 0||a.boolean(e.deprecated))&&(e.children===void 0||Array.isArray(e.children))&&(e.tags===void 0||Array.isArray(e.tags))}t.is=r})(me||(me={}));var be;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(be||(be={}));var M;(function(t){t.Invoked=1,t.Automatic=2})(M||(M={}));var _e;(function(t){function i(n,e,s){let o={diagnostics:n};return e!=null&&(o.only=e),s!=null&&(o.triggerKind=s),o}t.create=i;function r(n){let e=n;return a.defined(e)&&a.typedArray(e.diagnostics,y.is)&&(e.only===void 0||a.typedArray(e.only,a.string))&&(e.triggerKind===void 0||e.triggerKind===M.Invoked||e.triggerKind===M.Automatic)}t.is=r})(_e||(_e={}));var Ae;(function(t){function i(n,e,s){let o={title:n},c=!0;return typeof e=="string"?(c=!1,o.kind=e):v.is(e)?o.command=e:o.edit=e,c&&s!==void 0&&(o.kind=s),o}t.create=i;function r(n){let e=n;return e&&a.string(e.title)&&(e.diagnostics===void 0||a.typedArray(e.diagnostics,y.is))&&(e.kind===void 0||a.string(e.kind))&&(e.edit!==void 0||e.command!==void 0)&&(e.command===void 0||v.is(e.command))&&(e.isPreferred===void 0||a.boolean(e.isPreferred))&&(e.edit===void 0||O.is(e.edit))}t.is=r})(Ae||(Ae={}));var we;(function(t){function i(n,e){let s={range:n};return a.defined(e)&&(s.data=e),s}t.create=i;function r(n){let e=n;return a.defined(e)&&l.is(e.range)&&(a.undefined(e.command)||v.is(e.command))}t.is=r})(we||(we={}));var Ee;(function(t){function i(n,e){return{tabSize:n,insertSpaces:e}}t.create=i;function r(n){let e=n;return a.defined(e)&&a.uinteger(e.tabSize)&&a.boolean(e.insertSpaces)}t.is=r})(Ee||(Ee={}));var Le;(function(t){function i(n,e,s){return{range:n,target:e,data:s}}t.create=i;function r(n){let e=n;return a.defined(e)&&l.is(e.range)&&(a.undefined(e.target)||a.string(e.target))}t.is=r})(Le||(Le={}));var ye;(function(t){function i(n,e){return{range:n,parent:e}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&l.is(e.range)&&(e.parent===void 0||t.is(e.parent))}t.is=r})(ye||(ye={}));var Ie;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(Ie||(Ie={}));var je;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(je||(je={}));var Ce;(function(t){function i(r){let n=r;return a.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}t.is=i})(Ce||(Ce={}));var Me;(function(t){function i(n,e){return{range:n,text:e}}t.create=i;function r(n){let e=n;return e!=null&&l.is(e.range)&&a.string(e.text)}t.is=r})(Me||(Me={}));var Ne;(function(t){function i(n,e,s){return{range:n,variableName:e,caseSensitiveLookup:s}}t.create=i;function r(n){let e=n;return e!=null&&l.is(e.range)&&a.boolean(e.caseSensitiveLookup)&&(a.string(e.variableName)||e.variableName===void 0)}t.is=r})(Ne||(Ne={}));var De;(function(t){function i(n,e){return{range:n,expression:e}}t.create=i;function r(n){let e=n;return e!=null&&l.is(e.range)&&(a.string(e.expression)||e.expression===void 0)}t.is=r})(De||(De={}));var Pe;(function(t){function i(n,e){return{frameId:n,stoppedLocation:e}}t.create=i;function r(n){let e=n;return a.defined(e)&&l.is(n.stoppedLocation)}t.is=r})(Pe||(Pe={}));var z;(function(t){t.Type=1,t.Parameter=2;function i(r){return r===1||r===2}t.is=i})(z||(z={}));var X;(function(t){function i(n){return{value:n}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&(e.tooltip===void 0||a.string(e.tooltip)||A.is(e.tooltip))&&(e.location===void 0||L.is(e.location))&&(e.command===void 0||v.is(e.command))}t.is=r})(X||(X={}));var Re;(function(t){function i(n,e,s){let o={position:n,label:e};return s!==void 0&&(o.kind=s),o}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&x.is(e.position)&&(a.string(e.label)||a.typedArray(e.label,X.is))&&(e.kind===void 0||z.is(e.kind))&&e.textEdits===void 0||a.typedArray(e.textEdits,m.is)&&(e.tooltip===void 0||a.string(e.tooltip)||A.is(e.tooltip))&&(e.paddingLeft===void 0||a.boolean(e.paddingLeft))&&(e.paddingRight===void 0||a.boolean(e.paddingRight))}t.is=r})(Re||(Re={}));var Ve;(function(t){function i(r){return{kind:"snippet",value:r}}t.createSnippet=i})(Ve||(Ve={}));var ke;(function(t){function i(r,n,e,s){return{insertText:r,filterText:n,range:e,command:s}}t.create=i})(ke||(ke={}));var Ue;(function(t){function i(r){return{items:r}}t.create=i})(Ue||(Ue={}));var Fe;(function(t){t.Invoked=0,t.Automatic=1})(Fe||(Fe={}));var $e;(function(t){function i(r,n){return{range:r,text:n}}t.create=i})($e||($e={}));var Oe;(function(t){function i(r,n){return{triggerKind:r,selectedCompletionInfo:n}}t.create=i})(Oe||(Oe={}));var We;(function(t){function i(r){let n=r;return a.objectLiteral(n)&&D.is(n.uri)&&a.string(n.name)}t.is=i})(We||(We={}));var ze;(function(t){function i(s,o,c,f){return new q(s,o,c,f)}t.create=i;function r(s){let o=s;return!!(a.defined(o)&&a.string(o.uri)&&(a.undefined(o.languageId)||a.string(o.languageId))&&a.uinteger(o.lineCount)&&a.func(o.getText)&&a.func(o.positionAt)&&a.func(o.offsetAt))}t.is=r;function n(s,o){let c=s.getText(),f=e(o,(g,h)=>{let p=g.range.start.line-h.range.start.line;return p===0?g.range.start.character-h.range.start.character:p}),u=c.length;for(let g=f.length-1;g>=0;g--){let h=f[g],p=s.offsetAt(h.range.start),d=s.offsetAt(h.range.end);if(d<=u)c=c.substring(0,p)+h.newText+c.substring(d,c.length);else throw new Error("Overlapping edit");u=p}return c}t.applyEdits=n;function e(s,o){if(s.length<=1)return s;let c=s.length/2|0,f=s.slice(0,c),u=s.slice(c);e(f,o),e(u,o);let g=0,h=0,p=0;for(;g<f.length&&h<u.length;)o(f[g],u[h])<=0?s[p++]=f[g++]:s[p++]=u[h++];for(;g<f.length;)s[p++]=f[g++];for(;h<u.length;)s[p++]=u[h++];return s}})(ze||(ze={}));var q=class{constructor(i,r,n,e){this._uri=i,this._languageId=r,this._version=n,this._content=e,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(i){if(i){let r=this.offsetAt(i.start),n=this.offsetAt(i.end);return this._content.substring(r,n)}return this._content}update(i,r){this._content=i.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let i=[],r=this._content,n=!0;for(let e=0;e<r.length;e++){n&&(i.push(e),n=!1);let s=r.charAt(e);n=s==="\r"||s===`
|
|
5
5
|
`,s==="\r"&&e+1<r.length&&r.charAt(e+1)===`
|
|
6
6
|
`&&e++}n&&r.length>0&&i.push(r.length),this._lineOffsets=i}return this._lineOffsets}positionAt(i){i=Math.max(Math.min(i,this._content.length),0);let r=this.getLineOffsets(),n=0,e=r.length;if(e===0)return x.create(0,i);for(;n<e;){let o=Math.floor((n+e)/2);r[o]>i?e=o:n=o+1}let s=n-1;return x.create(s,i-r[s])}offsetAt(i){let r=this.getLineOffsets();if(i.line>=r.length)return this._content.length;if(i.line<0)return 0;let n=r[i.line],e=i.line+1<r.length?r[i.line+1]:this._content.length;return Math.max(Math.min(n+i.character,e),n)}get lineCount(){return this.getLineOffsets().length}},a;(function(t){let i=Object.prototype.toString;function r(d){return typeof d<"u"}t.defined=r;function n(d){return typeof d>"u"}t.undefined=n;function e(d){return d===!0||d===!1}t.boolean=e;function s(d){return i.call(d)==="[object String]"}t.string=s;function o(d){return i.call(d)==="[object Number]"}t.number=o;function c(d,N,Be){return i.call(d)==="[object Number]"&&N<=d&&d<=Be}t.numberRange=c;function f(d){return i.call(d)==="[object Number]"&&-2147483648<=d&&d<=2147483647}t.integer=f;function u(d){return i.call(d)==="[object Number]"&&0<=d&&d<=2147483647}t.uinteger=u;function g(d){return i.call(d)==="[object Function]"}t.func=g;function h(d){return d!==null&&typeof d=="object"}t.objectLiteral=h;function p(d,N){return Array.isArray(d)&&d.every(N)}t.typedArray=p})(a||(a={}));async function Se(t,i){try{let r=await t,n=new Map,e=new Map,s=[],o=He(i);return r.forEach(c=>{let f=[];c.items.forEach(u=>Qe(f,e,n,o,u)),f.length&&s.push({...c,items:f})}),{categories:s,functionDefinitions:n,constantDefinitions:e}}catch(r){return console.error(r),{categories:[],functionDefinitions:new Map,constantDefinitions:new Map}}}function He(t){let{profile:{apiVersion:i,bundles:r,hiddenApiItems:n=[]}={}}=t,e=qe(i),s=Array.isArray(r)&&r.length>0?new Set(["core",...r]):void 0;return o=>Je(e,o.sinceVersion)&&(!s||s.has(o.bundle))&&!n.includes(o.name)}function Qe(t,i,r,n,e){if(Array.isArray(e)){e.forEach(s=>Xe(t,r,n,s));return}e.type==="constant"?Ge(t,i,n,e):Xe(t,r,n,e)}function Xe(t,i,r,n){if(!r(n))return;n.disableDocumentation||t.push(n);let{completion:{label:e}}=n,s=e.toLowerCase(),o=i.get(s);o||(o={type:"functionDefinition",key:s,overloads:[]},i.set(s,o)),o.overloads.push(n)}function Ge(t,i,r,n){if(!r(n))return;t.push(n);let{completion:{label:e}}=n,s=e.toLowerCase();i.set(s,n);let[o,c]=n.completion.label.split(".");if(!c)return;let f=o.toLowerCase(),u=i.get(f);u||(u={type:"namespace",key:f,members:[],completion:{label:o,detail:o,insertText:o,insertTextMode:j.adjustIndentation,insertTextFormat:I.PlainText,kind:w.Enum}},i.set(f,u));let g=structuredClone(n);g.name=c,g.completion.label=c,g.completion.insertText=c,g.completion.kind=w.Constant,u.members.push(g),u.completion.documentation=u.members.reduce((h,p)=>(h.value=`${h.value}${h.value?`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.
|
|
4
|
-
import{a as E,f as p,g as z,k as Gt,m as Ft,r as st,s as Kt,u as Yt}from"./OR2UN65U.js";var _t=(s=>(s[s.String=1]="String",s[s.Number=2]="Number",s[s.Boolean=4]="Boolean",s[s.Any=8]="Any",s[s.Unknown=16]="Unknown",s[s.State=32]="State",s[s.Method=64]="Method",s[s.Event=128]="Event",s[s.Element=256]="Element",s[s.ReflectAttr=512]="ReflectAttr",s[s.Mutable=1024]="Mutable",s[s.Prop=31]="Prop",s[s.HasAttribute=15]="HasAttribute",s[s.PropLike=63]="PropLike",s[s.ReadOnly=2048]="ReadOnly",s))(_t||{});function Jt(s,t){if(t){let e=s.constructor.elementProperties;s.manager.internals.members=Object.fromEntries(Array.from(e,([o,n])=>n.noAccessor?void 0:[o,[(n.readOnly?2048:0)|(n.state?32:16)]]).filter(Yt))}else{let e=s.constructor,o=e.__registerControllers?.(s)??void 0;if(e.__registerControllers=void 0,typeof o!="object")throw new Error("Failed to retrieve component meta");s.manager.internals.members=Object.fromEntries(Object.entries(o).filter(([n,[r]])=>(r&63)!==0))}}function Zt(s,t=8){return s==null||typeof s=="object"||typeof s=="function"?s:t&4?s==="false"?!1:s===""||!!s:t&2?Number.parseFloat(s):t&1?String(s):s}var Qt=(s,t)=>s.manager.internals.members?.[t]?.[0];var rt=Symbol.for("controller");var ee=s=>typeof s=="object"&&s!==null&&(rt in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s);function se(s){return typeof s?.then=="function"}var B;function N(s){B!==s&&(B=s,queueMicrotask(()=>{B===s&&(B=void 0)}))}function V(s){return B}var S=[];function xt(s){if(s===void 0){S=[];return}let t=S.indexOf(s);S=t===-1?[...S,s]:S.slice(0,t+1),queueMicrotask(()=>{S=[]})}function wt(){return S}var j;function Ve(s){j!==s&&(j=s,queueMicrotask(()=>{j===s&&(j=void 0)}))}function He(){let s=j;return j=void 0,s}var We=async(s,t)=>{let e=At(s);if(e===void 0)return s;if(await e.ready,typeof t=="function"){let o=e.watchExports(n=>t(n,o))}return e.exports},ze=async s=>{let t=At(s);return await t.ready,t},At=s=>{let e=V().manager.internals.resolveExports(s);if(e!==void 0)return e;if(ee(s))return s;let o=He();if(o!==void 0)return o},q={setter:!1,getter:!1,readOnly:!1},G=new WeakMap,oe;oe=rt;var F=class{constructor(t){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new E,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[oe]=!0,this.ready=this._ready.promise,this._exports=te(this),this._exportWatchers=new Set;let e=t??V(new.target.name);this.component=e,this.component.addController(this),this.component.manager===void 0||(xt(this),queueMicrotask(()=>this.catchUpLifecycle()))}catchUpLifecycle(){let{manager:t}=this.component;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t._loadCalled&&this.triggerLoad().then(()=>{t.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(t){let e=this._exports;e!==t&&(this._exports=t,this._exportWatchers.forEach(p),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,e)),this._ready.resolve(t)}setProvisionalExports(t,e=!0){this._exports=e?te(t):t,this._exportWatchers.forEach(p)}watchExports(t){let e=()=>t(this._exports);return this._exportWatchers.add(e),()=>void this._exportWatchers.delete(e)}get use(){return N(this.component),We}get useRef(){return N(this.component),ze}get useRefSync(){return N(this.component),At}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this._callbacks.hostConnected.push(t)}onDisconnected(t){this._callbacks.hostDisconnected.push(t)}onLoad(t){this._callbacks.hostLoad.push(t)}onLoaded(t){this._callbacks.hostLoaded.push(t)}onUpdate(t){this._callbacks.hostUpdate.push(t)}onUpdated(t){this._callbacks.hostUpdated.push(t)}onDestroy(t){this._callbacks.hostDestroy.push(t)}onLifecycle(t){this._callbacks.hostLifecycle.push(t),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),this._callbacks.hostConnected.forEach(p),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),this._callbacks.hostDisconnected.forEach(p),this._lifecycleCleanups.forEach(p),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let t=this;t.hostLoad&&await z(t.hostLoad,t),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(z)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let t=this;t.hostLoaded&&p(t.hostLoaded,t),this._callbacks.hostLoaded.forEach(p),this.loadedCalled=!0}triggerUpdate(t){let e=this;e.hostUpdate&&p(e.hostUpdate,e,t),this._callbacks.hostUpdate.forEach(Xt,t)}triggerUpdated(t){let e=this;e.hostUpdated&&p(e.hostUpdated,e,t),this._callbacks.hostUpdated.forEach(Xt,t)}triggerDestroy(){let t=this;t.hostDestroy&&p(t.hostDestroy,t),this._callbacks.hostDestroy.forEach(p)}triggerLifecycle(){let t=this;t.hostLifecycle&&this._callLifecycle(()=>t.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(t){N(this.component);let e=p(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this._lifecycleCleanups.push(n):typeof n=="object"&&typeof n.remove=="function"&&this._lifecycleCleanups.push(n.remove)})}};function Xt(s){p(s,void 0,this)}var ne=F;function te(s){if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t=new Proxy(s,{get(e,o,n){if(!(Be.has(o)&&o in e&&e[o]===t)&&(o in e||o in Promise.prototype||typeof o=="symbol"))return typeof e=="function"?e[o]:Reflect.get(e,o,n)},set:(e,o,n,r)=>Reflect.set(e,o,n,r)});return t}var Be=new Set(["exports","_exports"]);function re(s,t,e){let o=Object.keys(s),n=o.length;P===void 0&&queueMicrotask(K),P??(P=new Map);let r=P.get(s);return r===void 0&&(r={callbacks:[],keyCount:n},P.set(s,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(o)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let c=l=>p(t,null,l),a=i[n];a===void 0?c(void 0):s[a]===e?c(a):c(void 0)}),e}var P;function K(){Array.from(P?.entries()??[]).forEach(([s,{callbacks:t}])=>{let e=Object.keys(s);t.forEach(o=>o(e))}),P=void 0}var nt=class{constructor(t){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let e=this.component.manager.internals;Object.entries(e.members).forEach(([o,[n]])=>{var r;n&_t.ReadOnly&&((r=e.setters)[o]??(r[o]=[]),e.setters[o].push(e.readonlySetter))})},this.trackedValue=$t,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(e,o,n)=>{if(q.readOnly)return e;throw new Error(`Cannot assign to read-only property "${n}" of ${this.component.el.localName}. Trying to assign "${String(e)}"`)},this.component=t}firePropTrackers(t,e){let o=this.keyTrackers;this.trackedValue=$t,this.keyTrackers=[],o.forEach(n=>n(t,e))}getSetProxy(t){let e=this.component,o=e.constructor.prototype;if(this._getSetProxy(o,t,"class"),e.manager.isLit)return;let n=e.el.constructor.prototype;o!==n&&this._getSetProxy(n,t,"html")}_getSetProxy(t,e,o){let n=this.component,r=Qt(n,e),i;do i=Object.getOwnPropertyDescriptor(t,e);while(!i&&(t=Object.getPrototypeOf(t)));if(!i)return;let c=i.get,a=i.set,l=ot in c,d=ot in a;if(l&&d)return;let h=!l,m=!d,g=h?function(){let v=c.call(this),_=G.get(this);if(q.getter||_===void 0)return v;let I=_.manager.internals;v=I.accessorGetter[e](v,e);let y=I.getters[e]??Ct;for(let C=0;C<y.length;C++)v=y[C](v,e);return v}:c,L=m?function(v){let _=c.call(this),I=G.get(this);if(I===void 0){a.call(this,v);return}let y=I.manager.isLit?v??void 0:Zt(v,r),C=I.manager.internals;if(y===_)a.call(this,y);else{let qt=q.setter?Ct:C.setters[e]??Ct;for(let W=0;W<qt.length&&(y=qt[W](y,_,e),y!==_);W++);y=C.accessorSetter[e](y,_,e),a.call(this,y),y!==_&&C.enabledWatchers[e]?.forEach(W=>W(y,_,e))}C.keyTrackers.length>0&&C?.firePropTrackers(e,v)}:a;h&&(g[ot]=!0),m&&(L[ot]=!0),Object.defineProperty(t,e,{...i,get:g,set:L})}markExports(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this._exports.set(e,t)}resolveExports(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this._exports.get(t)}},Ct=[],ot=Symbol(),$t=Symbol();function it(s,t,e){var o;let n=t,r=s.manager.internals;(o=r.allWatchers)[n]??(o[n]=[]);let i=r.allWatchers[n],c=e,a=(l,d,h)=>p(c,null,l,d,h);return i.push(a),()=>{let l=i.indexOf(a);l!==-1&&i.splice(l,1)}}function ie(s,t,e){let o=s.manager.internals;return o.trackedValue!==$t&&o.trackedValue!==e&&o.firePropTrackers(void 0,void 0),o.keyTrackers.length===0&&queueMicrotask(()=>o.firePropTrackers(void 0,void 0)),o.trackedValue=e,o.keyTrackers.push((n,r)=>p(t,void 0,e===r?n:void 0)),e}function at(s=[V(),...wt()],t,e){let o=Array.isArray(s)?s:[s],n=o.length+1,r=c=>{n-=1,c!==void 0&&(n=Math.min(n,0)),n===0&&t(c)};o.forEach(c=>re(c,a=>r(a===void 0?void 0:{key:a,host:c,isReactive:!1}),e));let i=o.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return i&&ie(i,c=>r(c===void 0?void 0:{key:c,host:i,isReactive:!0}),e),e}function ae(s){q.readOnly=!0;try{return s()}finally{q.readOnly=!1}}var ce=s=>(...t)=>{let e=wt(),o=new s(...t),n=o.exports;xt(e.at(-1));let r=o.component.manager.internals;r.markExports(o,n),o.watchExports(c=>r.markExports(o,c)),Ve(o);let i=[o.component,...e].reverse();return at(i,c=>c===void 0?void 0:qe(o,c,n),n)};function qe(s,{host:t,key:e,isReactive:o},n){let r=t,i=r[e]!==s.exports,c=r[e]!==n,a=n!==s.exports;if(i&&!c&&a&&(r[e]=s.exports),t===s.component){if(o){let d=s.component.manager.internals;c&&d.markExports(s,r[e]),it(s.component,e,h=>{h!==s.exports&&d.markExports(s,h)})}s.assignedProperty=o?void 0:e}s.watchExports(()=>{if(r[e]===s.exports)return;let d=s.component.manager;d.internals.setters[e]?.includes(d.internals.readonlySetter)?ae(()=>{r[e]=s.exports}):r[e]=s.exports})}var he=(s,t)=>new Lt(s,t),Lt=class extends ne{constructor(t,e){let o="addController"in t,n=new Set;function r(l){n.add(l),!(rt in l)&&t.renderRoot&&t.el.isConnected&&l.hostConnected?.()}function i(l){n.delete(l),l.controllerRemoved?.()}let c=t;if(c.addController=r,c.removeController=i,!o){let l=e??t.constructor.__forceUpdate;c.requestUpdate=()=>l(t)}super(t),this.internals=new nt(this.component),this.destroyed=!1,this._updatePromise=new E,this._originalLifecycles={},this.isLit=o,this.component.manager=this,Jt(t,o),this._controllers=n,this.exports=void 0,this.hasDestroy=Ot in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let a=this.internals;Object.keys(a.members).forEach(l=>{a.accessorGetter[l]=le,a.accessorSetter[l]=le,a.getSetProxy(l)}),o?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(t,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(a.enableReadonly),N(t),G.set(t.el,t),G.set(t,t)}_bindLifecycleMethods(){let t=this.component,e=this.isLit,o=t.el===t;this._originalLifecycles={_connectedCallback:e||o?void 0:t.connectedCallback,_disconnectedCallback:e||o?void 0:t.disconnectedCallback,_load:e?t.load:t.componentWillLoad,_loaded:e?t.loaded:t.componentDidLoad,_willUpdate:e?void 0:t.componentWillUpdate,_updated:e?void 0:t.componentDidUpdate,_destroy:t.destroy};let n=this._connectedCallback.bind(this),r=this._disconnectedCallback.bind(this),i=this._update.bind(this),c=this._updated.bind(this);e?t.constructor.prototype.addController.call(t,{hostConnected:n,hostDisconnected:r,hostUpdate:i,hostUpdated:c}):(t.connectedCallback=n,t.disconnectedCallback=r,t.componentWillLoad=this._load.bind(this),t.componentDidLoad=this._loaded.bind(this),t.componentWillUpdate=i,t.componentDidUpdate=c),this.hasDestroy&&(t.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let e=this.component.el.localName;throw this.component.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Ot} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let t=this.internals;t.enabledWatchers=t.allWatchers,K(),t.enableReadonly?.(),this._controllers.forEach(Fe),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(Ke),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,Ye)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&it(this.component,Ot,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(Je),this._originalLifecycles._loaded?.call(this.component)}_update(){let t=this.component;return this._controllers.forEach(Ze,t.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let t=this.component;if(this._controllers.forEach(Qe,t.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)t.$changes=new Map;else{let e=this._updatePromise;this._updatePromise=new E,e.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(Xe),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let t=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=Kt(t,Ge)}}},Ot="autoDestroyDisabled",Ge=1e3,le=s=>s;function Fe(s){"triggerConnected"in s?s.triggerConnected():p(s.hostConnected,s)}function Ke(s){"triggerDisconnected"in s?s.triggerDisconnected():p(s.hostDisconnected,s)}async function Ye(s){"triggerLoad"in s?await s.triggerLoad():await z(s.hostLoad,s)}function Je(s){"triggerLoaded"in s?s.triggerLoaded():p(s.hostLoaded,s)}function Ze(s){"triggerUpdate"in s?s.triggerUpdate(this):p(s.hostUpdate,s,this)}function Qe(s){"triggerUpdated"in s?s.triggerUpdated(this):p(s.hostUpdated,s,this)}function Xe(s){"triggerDestroy"in s?s.triggerDestroy():p(s.hostDestroy,s)}var de=s=>ts(void 0,s);var St=class extends F{constructor(t,e){super(t);let o=this.exports;try{N(this.component);let n=e(this.component,this),r=this.exports!==o;if(se(n)){r||this.setProvisionalExports(n);let i=n.then(c=>{this.exports=c,super.catchUpLifecycle()}).catch(c=>{this._ready.reject(c),console.error(c)});this.onLoad(async()=>await i)}else(!r||n!==void 0)&&(this.exports=n),queueMicrotask(()=>super.catchUpLifecycle())}catch(n){this._ready.reject(n),console.error(n)}}catchUpLifecycle(){}},ts=ce(St);var Ys=de;var Js=s=>(t={})=>de((e,o)=>{let n=Gt(e.el),r={_lang:n.lang,_t9nLocale:n.t9nLocale,_loading:!0},i=e;o.onLifecycle(()=>Ft(e.el,()=>s("./assets"),({t9nLocale:a,t9nStrings:l,lang:d})=>{let h={...l,_lang:d,_t9nLocale:a,_loading:!1};o.exports=h;let m=l.componentLabel;typeof m=="string"&&"label"in e&&e.label==null&&(e.label??(e.label=m)),c(i.messageOverrides)},t.name));function c(a){let l=o.exports,d=l._original??l,h=pe(d,a);a&&(h._original=d),o.exports=h}return"messageOverrides"in i&&o.onLifecycle(()=>it(i,"messageOverrides",c)),t.blocking?(o.setProvisionalExports(r,!1),o.ready):r});function pe(s,t){if(!t)return s;let e={...s};return Object.entries(t).forEach(([o,n])=>{typeof n=="object"?e[o]=pe(s[o],n):e[o]=n??s[o]}),e}var ct=globalThis,lt=ct.ShadowRoot&&(ct.ShadyCSS===void 0||ct.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Pt=Symbol(),ue=new WeakMap,Y=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==Pt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(lt&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=ue.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ue.set(e,t))}return t}toString(){return this.cssText}},me=s=>new Y(typeof s=="string"?s:s+"",void 0,Pt),es=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((o,n,r)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+s[r+1],s[0]);return new Y(e,s,Pt)},Nt=(s,t)=>{if(lt)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),n=ct.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o)}},ht=lt?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return me(e)})(s):s;var fe=";",dt=",",ye=":",$=(s=>(s[s.ATTRIBUTE=1]="ATTRIBUTE",s[s.REFLECT=2]="REFLECT",s[s.BOOLEAN=4]="BOOLEAN",s[s.NUMBER=8]="NUMBER",s[s.STATE=16]="STATE",s[s.READ_ONLY=32]="READ_ONLY",s[s.NO_ACCESSOR=64]="NO_ACCESSOR",s))($||{});function kt(s){let t=s;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||e._offspring.push(s),e._postLoad.promise}return!1}var ss=(s,t)=>function(o,n){if(!globalThis.customElements)return;let i=(n??o??{}).resourcesUrl;i&&s.setAssetPath(i),Object.entries(t).forEach(os)};function os([s,[t,e=""]]){if(customElements.get(s))return;let[o,n,r]=e.split(fe),i=o?o?.split(dt).map(ge):void 0,c=i?.map(([l])=>l),a=class extends Dt{static{this.observedAttributes=i?.map(([,l])=>l).filter(l=>l!=="")}static{this._properties=c}static{this._asyncMethods=n?n?.split(dt):void 0}static{this._syncMethods=r?.split(dt)}static{this._name=s}constructor(){!a._loadPromise&&(a._loadPromise=t(),a._initializePrototype()),super()}};customElements.define(s,a)}var pt=Object.defineProperty;function ge(s){let t=s.split(ye);return t.length===1?[t[0],st(t[0])]:t}var ns=globalThis.HTMLElement??ge,Dt=class extends ns{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new E,this._postLoaded=new E,this._offspring=[],this._saveInstanceProperties();let t=this.constructor;t._LitConstructor?this._initializeComponent({a:t._LitConstructor}):t._loadPromise.then(as).then(this._initializeComponent.bind(this)).catch(e=>{this._postLoaded.reject(e),setTimeout(()=>{throw e})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(t){pt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this._store[t]},set(e){this._store[t]=e}})}static _bindAsync(t){pt(this.prototype,t,{async value(...e){return this._litElement||await this._postLoaded.promise,await this._litElement[t](...e)},configurable:!0})}static _bindSync(t){pt(this.prototype,t,{value(...e){return this._litElement[t](...e)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let t=this.constructor,e=this;t._properties?.forEach(o=>{Object.hasOwn(this,o)&&(this._store[o]=e[o],delete e[o])})}attributeChangedCallback(t,e,o){this._litElement?.attributeChangedCallback(t,e,o),this._litElement||this._pendingAttributes.push(t)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=kt(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(t){let e=this.constructor,o=e._name,n=this._store,r=Object.values(t).find(h=>h.tagName===o),i=`${o}--lazy`,c=r;for(;c&&!Object.hasOwn(c,"lumina");)c=Object.getPrototypeOf(c);is(c),!e._LitConstructor&&(e._LitConstructor=r,customElements.define(i,r)),r.lazy=this;let l=document.createElement(i);r.lazy=void 0,this._litElement=l,this._store=l,this._pendingAttributes.forEach(h=>{let m=this.getAttribute(h);l.attributeChangedCallback(h,null,m)}),Object.entries(n).forEach(rs,l);let d=this.isConnected;(d||this._ancestorLoad)&&(l.connectedCallback?.(),d||l.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}};function rs([s,t]){this[s]=t}function is(s){let t=s.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},pt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))}var as=async s=>(await s.$$,s),Tt={};var Ut=globalThis,ut=Ut.trustedTypes,ve=ut?ut.createPolicy("lit-html",{createHTML:s=>s}):void 0,Mt="$lit$",x=`lit$${Math.random().toFixed(9).slice(2)}$`,It="?"+x,cs=`<${It}>`,T=document,Z=()=>T.createComment(""),Q=s=>s===null||typeof s!="object"&&typeof s!="function",jt=Array.isArray,xe=s=>jt(s)||typeof s?.[Symbol.iterator]=="function",Rt=`[
|
|
3
|
+
v4.33.0-next.85 */
|
|
4
|
+
import{a as E,f as p,g as z,k as Gt,m as Ft,r as st,s as Kt,u as Yt}from"./BZNNTF5P.js";var _t=(s=>(s[s.String=1]="String",s[s.Number=2]="Number",s[s.Boolean=4]="Boolean",s[s.Any=8]="Any",s[s.Unknown=16]="Unknown",s[s.State=32]="State",s[s.Method=64]="Method",s[s.Event=128]="Event",s[s.Element=256]="Element",s[s.ReflectAttr=512]="ReflectAttr",s[s.Mutable=1024]="Mutable",s[s.Prop=31]="Prop",s[s.HasAttribute=15]="HasAttribute",s[s.PropLike=63]="PropLike",s[s.ReadOnly=2048]="ReadOnly",s))(_t||{});function Jt(s,t){if(t){let e=s.constructor.elementProperties;s.manager.internals.members=Object.fromEntries(Array.from(e,([o,n])=>n.noAccessor?void 0:[o,[(n.readOnly?2048:0)|(n.state?32:16)]]).filter(Yt))}else{let e=s.constructor,o=e.__registerControllers?.(s)??void 0;if(e.__registerControllers=void 0,typeof o!="object")throw new Error("Failed to retrieve component meta");s.manager.internals.members=Object.fromEntries(Object.entries(o).filter(([n,[r]])=>(r&63)!==0))}}function Zt(s,t=8){return s==null||typeof s=="object"||typeof s=="function"?s:t&4?s==="false"?!1:s===""||!!s:t&2?Number.parseFloat(s):t&1?String(s):s}var Qt=(s,t)=>s.manager.internals.members?.[t]?.[0];var rt=Symbol.for("controller");var ee=s=>typeof s=="object"&&s!==null&&(rt in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s);function se(s){return typeof s?.then=="function"}var B;function N(s){B!==s&&(B=s,queueMicrotask(()=>{B===s&&(B=void 0)}))}function V(s){return B}var S=[];function xt(s){if(s===void 0){S=[];return}let t=S.indexOf(s);S=t===-1?[...S,s]:S.slice(0,t+1),queueMicrotask(()=>{S=[]})}function wt(){return S}var j;function Ve(s){j!==s&&(j=s,queueMicrotask(()=>{j===s&&(j=void 0)}))}function He(){let s=j;return j=void 0,s}var We=async(s,t)=>{let e=At(s);if(e===void 0)return s;if(await e.ready,typeof t=="function"){let o=e.watchExports(n=>t(n,o))}return e.exports},ze=async s=>{let t=At(s);return await t.ready,t},At=s=>{let e=V().manager.internals.resolveExports(s);if(e!==void 0)return e;if(ee(s))return s;let o=He();if(o!==void 0)return o},q={setter:!1,getter:!1,readOnly:!1},G=new WeakMap,oe;oe=rt;var F=class{constructor(t){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new E,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[oe]=!0,this.ready=this._ready.promise,this._exports=te(this),this._exportWatchers=new Set;let e=t??V(new.target.name);this.component=e,this.component.addController(this),this.component.manager===void 0||(xt(this),queueMicrotask(()=>this.catchUpLifecycle()))}catchUpLifecycle(){let{manager:t}=this.component;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t._loadCalled&&this.triggerLoad().then(()=>{t.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(t){let e=this._exports;e!==t&&(this._exports=t,this._exportWatchers.forEach(p),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,e)),this._ready.resolve(t)}setProvisionalExports(t,e=!0){this._exports=e?te(t):t,this._exportWatchers.forEach(p)}watchExports(t){let e=()=>t(this._exports);return this._exportWatchers.add(e),()=>void this._exportWatchers.delete(e)}get use(){return N(this.component),We}get useRef(){return N(this.component),ze}get useRefSync(){return N(this.component),At}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this._callbacks.hostConnected.push(t)}onDisconnected(t){this._callbacks.hostDisconnected.push(t)}onLoad(t){this._callbacks.hostLoad.push(t)}onLoaded(t){this._callbacks.hostLoaded.push(t)}onUpdate(t){this._callbacks.hostUpdate.push(t)}onUpdated(t){this._callbacks.hostUpdated.push(t)}onDestroy(t){this._callbacks.hostDestroy.push(t)}onLifecycle(t){this._callbacks.hostLifecycle.push(t),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),this._callbacks.hostConnected.forEach(p),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),this._callbacks.hostDisconnected.forEach(p),this._lifecycleCleanups.forEach(p),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let t=this;t.hostLoad&&await z(t.hostLoad,t),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(z)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let t=this;t.hostLoaded&&p(t.hostLoaded,t),this._callbacks.hostLoaded.forEach(p),this.loadedCalled=!0}triggerUpdate(t){let e=this;e.hostUpdate&&p(e.hostUpdate,e,t),this._callbacks.hostUpdate.forEach(Xt,t)}triggerUpdated(t){let e=this;e.hostUpdated&&p(e.hostUpdated,e,t),this._callbacks.hostUpdated.forEach(Xt,t)}triggerDestroy(){let t=this;t.hostDestroy&&p(t.hostDestroy,t),this._callbacks.hostDestroy.forEach(p)}triggerLifecycle(){let t=this;t.hostLifecycle&&this._callLifecycle(()=>t.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(t){N(this.component);let e=p(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this._lifecycleCleanups.push(n):typeof n=="object"&&typeof n.remove=="function"&&this._lifecycleCleanups.push(n.remove)})}};function Xt(s){p(s,void 0,this)}var ne=F;function te(s){if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t=new Proxy(s,{get(e,o,n){if(!(Be.has(o)&&o in e&&e[o]===t)&&(o in e||o in Promise.prototype||typeof o=="symbol"))return typeof e=="function"?e[o]:Reflect.get(e,o,n)},set:(e,o,n,r)=>Reflect.set(e,o,n,r)});return t}var Be=new Set(["exports","_exports"]);function re(s,t,e){let o=Object.keys(s),n=o.length;P===void 0&&queueMicrotask(K),P??(P=new Map);let r=P.get(s);return r===void 0&&(r={callbacks:[],keyCount:n},P.set(s,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(o)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let c=l=>p(t,null,l),a=i[n];a===void 0?c(void 0):s[a]===e?c(a):c(void 0)}),e}var P;function K(){Array.from(P?.entries()??[]).forEach(([s,{callbacks:t}])=>{let e=Object.keys(s);t.forEach(o=>o(e))}),P=void 0}var nt=class{constructor(t){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let e=this.component.manager.internals;Object.entries(e.members).forEach(([o,[n]])=>{var r;n&_t.ReadOnly&&((r=e.setters)[o]??(r[o]=[]),e.setters[o].push(e.readonlySetter))})},this.trackedValue=$t,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(e,o,n)=>{if(q.readOnly)return e;throw new Error(`Cannot assign to read-only property "${n}" of ${this.component.el.localName}. Trying to assign "${String(e)}"`)},this.component=t}firePropTrackers(t,e){let o=this.keyTrackers;this.trackedValue=$t,this.keyTrackers=[],o.forEach(n=>n(t,e))}getSetProxy(t){let e=this.component,o=e.constructor.prototype;if(this._getSetProxy(o,t,"class"),e.manager.isLit)return;let n=e.el.constructor.prototype;o!==n&&this._getSetProxy(n,t,"html")}_getSetProxy(t,e,o){let n=this.component,r=Qt(n,e),i;do i=Object.getOwnPropertyDescriptor(t,e);while(!i&&(t=Object.getPrototypeOf(t)));if(!i)return;let c=i.get,a=i.set,l=ot in c,d=ot in a;if(l&&d)return;let h=!l,m=!d,g=h?function(){let v=c.call(this),_=G.get(this);if(q.getter||_===void 0)return v;let I=_.manager.internals;v=I.accessorGetter[e](v,e);let y=I.getters[e]??Ct;for(let C=0;C<y.length;C++)v=y[C](v,e);return v}:c,L=m?function(v){let _=c.call(this),I=G.get(this);if(I===void 0){a.call(this,v);return}let y=I.manager.isLit?v??void 0:Zt(v,r),C=I.manager.internals;if(y===_)a.call(this,y);else{let qt=q.setter?Ct:C.setters[e]??Ct;for(let W=0;W<qt.length&&(y=qt[W](y,_,e),y!==_);W++);y=C.accessorSetter[e](y,_,e),a.call(this,y),y!==_&&C.enabledWatchers[e]?.forEach(W=>W(y,_,e))}C.keyTrackers.length>0&&C?.firePropTrackers(e,v)}:a;h&&(g[ot]=!0),m&&(L[ot]=!0),Object.defineProperty(t,e,{...i,get:g,set:L})}markExports(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this._exports.set(e,t)}resolveExports(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this._exports.get(t)}},Ct=[],ot=Symbol(),$t=Symbol();function it(s,t,e){var o;let n=t,r=s.manager.internals;(o=r.allWatchers)[n]??(o[n]=[]);let i=r.allWatchers[n],c=e,a=(l,d,h)=>p(c,null,l,d,h);return i.push(a),()=>{let l=i.indexOf(a);l!==-1&&i.splice(l,1)}}function ie(s,t,e){let o=s.manager.internals;return o.trackedValue!==$t&&o.trackedValue!==e&&o.firePropTrackers(void 0,void 0),o.keyTrackers.length===0&&queueMicrotask(()=>o.firePropTrackers(void 0,void 0)),o.trackedValue=e,o.keyTrackers.push((n,r)=>p(t,void 0,e===r?n:void 0)),e}function at(s=[V(),...wt()],t,e){let o=Array.isArray(s)?s:[s],n=o.length+1,r=c=>{n-=1,c!==void 0&&(n=Math.min(n,0)),n===0&&t(c)};o.forEach(c=>re(c,a=>r(a===void 0?void 0:{key:a,host:c,isReactive:!1}),e));let i=o.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return i&&ie(i,c=>r(c===void 0?void 0:{key:c,host:i,isReactive:!0}),e),e}function ae(s){q.readOnly=!0;try{return s()}finally{q.readOnly=!1}}var ce=s=>(...t)=>{let e=wt(),o=new s(...t),n=o.exports;xt(e.at(-1));let r=o.component.manager.internals;r.markExports(o,n),o.watchExports(c=>r.markExports(o,c)),Ve(o);let i=[o.component,...e].reverse();return at(i,c=>c===void 0?void 0:qe(o,c,n),n)};function qe(s,{host:t,key:e,isReactive:o},n){let r=t,i=r[e]!==s.exports,c=r[e]!==n,a=n!==s.exports;if(i&&!c&&a&&(r[e]=s.exports),t===s.component){if(o){let d=s.component.manager.internals;c&&d.markExports(s,r[e]),it(s.component,e,h=>{h!==s.exports&&d.markExports(s,h)})}s.assignedProperty=o?void 0:e}s.watchExports(()=>{if(r[e]===s.exports)return;let d=s.component.manager;d.internals.setters[e]?.includes(d.internals.readonlySetter)?ae(()=>{r[e]=s.exports}):r[e]=s.exports})}var he=(s,t)=>new Lt(s,t),Lt=class extends ne{constructor(t,e){let o="addController"in t,n=new Set;function r(l){n.add(l),!(rt in l)&&t.renderRoot&&t.el.isConnected&&l.hostConnected?.()}function i(l){n.delete(l),l.controllerRemoved?.()}let c=t;if(c.addController=r,c.removeController=i,!o){let l=e??t.constructor.__forceUpdate;c.requestUpdate=()=>l(t)}super(t),this.internals=new nt(this.component),this.destroyed=!1,this._updatePromise=new E,this._originalLifecycles={},this.isLit=o,this.component.manager=this,Jt(t,o),this._controllers=n,this.exports=void 0,this.hasDestroy=Ot in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let a=this.internals;Object.keys(a.members).forEach(l=>{a.accessorGetter[l]=le,a.accessorSetter[l]=le,a.getSetProxy(l)}),o?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(t,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(a.enableReadonly),N(t),G.set(t.el,t),G.set(t,t)}_bindLifecycleMethods(){let t=this.component,e=this.isLit,o=t.el===t;this._originalLifecycles={_connectedCallback:e||o?void 0:t.connectedCallback,_disconnectedCallback:e||o?void 0:t.disconnectedCallback,_load:e?t.load:t.componentWillLoad,_loaded:e?t.loaded:t.componentDidLoad,_willUpdate:e?void 0:t.componentWillUpdate,_updated:e?void 0:t.componentDidUpdate,_destroy:t.destroy};let n=this._connectedCallback.bind(this),r=this._disconnectedCallback.bind(this),i=this._update.bind(this),c=this._updated.bind(this);e?t.constructor.prototype.addController.call(t,{hostConnected:n,hostDisconnected:r,hostUpdate:i,hostUpdated:c}):(t.connectedCallback=n,t.disconnectedCallback=r,t.componentWillLoad=this._load.bind(this),t.componentDidLoad=this._loaded.bind(this),t.componentWillUpdate=i,t.componentDidUpdate=c),this.hasDestroy&&(t.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let e=this.component.el.localName;throw this.component.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Ot} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let t=this.internals;t.enabledWatchers=t.allWatchers,K(),t.enableReadonly?.(),this._controllers.forEach(Fe),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(Ke),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,Ye)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&it(this.component,Ot,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(Je),this._originalLifecycles._loaded?.call(this.component)}_update(){let t=this.component;return this._controllers.forEach(Ze,t.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let t=this.component;if(this._controllers.forEach(Qe,t.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)t.$changes=new Map;else{let e=this._updatePromise;this._updatePromise=new E,e.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(Xe),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let t=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=Kt(t,Ge)}}},Ot="autoDestroyDisabled",Ge=1e3,le=s=>s;function Fe(s){"triggerConnected"in s?s.triggerConnected():p(s.hostConnected,s)}function Ke(s){"triggerDisconnected"in s?s.triggerDisconnected():p(s.hostDisconnected,s)}async function Ye(s){"triggerLoad"in s?await s.triggerLoad():await z(s.hostLoad,s)}function Je(s){"triggerLoaded"in s?s.triggerLoaded():p(s.hostLoaded,s)}function Ze(s){"triggerUpdate"in s?s.triggerUpdate(this):p(s.hostUpdate,s,this)}function Qe(s){"triggerUpdated"in s?s.triggerUpdated(this):p(s.hostUpdated,s,this)}function Xe(s){"triggerDestroy"in s?s.triggerDestroy():p(s.hostDestroy,s)}var de=s=>ts(void 0,s);var St=class extends F{constructor(t,e){super(t);let o=this.exports;try{N(this.component);let n=e(this.component,this),r=this.exports!==o;if(se(n)){r||this.setProvisionalExports(n);let i=n.then(c=>{this.exports=c,super.catchUpLifecycle()}).catch(c=>{this._ready.reject(c),console.error(c)});this.onLoad(async()=>await i)}else(!r||n!==void 0)&&(this.exports=n),queueMicrotask(()=>super.catchUpLifecycle())}catch(n){this._ready.reject(n),console.error(n)}}catchUpLifecycle(){}},ts=ce(St);var Ys=de;var Js=s=>(t={})=>de((e,o)=>{let n=Gt(e.el),r={_lang:n.lang,_t9nLocale:n.t9nLocale,_loading:!0},i=e;o.onLifecycle(()=>Ft(e.el,()=>s("./assets"),({t9nLocale:a,t9nStrings:l,lang:d})=>{let h={...l,_lang:d,_t9nLocale:a,_loading:!1};o.exports=h;let m=l.componentLabel;typeof m=="string"&&"label"in e&&e.label==null&&(e.label??(e.label=m)),c(i.messageOverrides)},t.name));function c(a){let l=o.exports,d=l._original??l,h=pe(d,a);a&&(h._original=d),o.exports=h}return"messageOverrides"in i&&o.onLifecycle(()=>it(i,"messageOverrides",c)),t.blocking?(o.setProvisionalExports(r,!1),o.ready):r});function pe(s,t){if(!t)return s;let e={...s};return Object.entries(t).forEach(([o,n])=>{typeof n=="object"?e[o]=pe(s[o],n):e[o]=n??s[o]}),e}var ct=globalThis,lt=ct.ShadowRoot&&(ct.ShadyCSS===void 0||ct.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Pt=Symbol(),ue=new WeakMap,Y=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==Pt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(lt&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=ue.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ue.set(e,t))}return t}toString(){return this.cssText}},me=s=>new Y(typeof s=="string"?s:s+"",void 0,Pt),es=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((o,n,r)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+s[r+1],s[0]);return new Y(e,s,Pt)},Nt=(s,t)=>{if(lt)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),n=ct.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o)}},ht=lt?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return me(e)})(s):s;var fe=";",dt=",",ye=":",$=(s=>(s[s.ATTRIBUTE=1]="ATTRIBUTE",s[s.REFLECT=2]="REFLECT",s[s.BOOLEAN=4]="BOOLEAN",s[s.NUMBER=8]="NUMBER",s[s.STATE=16]="STATE",s[s.READ_ONLY=32]="READ_ONLY",s[s.NO_ACCESSOR=64]="NO_ACCESSOR",s))($||{});function kt(s){let t=s;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||e._offspring.push(s),e._postLoad.promise}return!1}var ss=(s,t)=>function(o,n){if(!globalThis.customElements)return;let i=(n??o??{}).resourcesUrl;i&&s.setAssetPath(i),Object.entries(t).forEach(os)};function os([s,[t,e=""]]){if(customElements.get(s))return;let[o,n,r]=e.split(fe),i=o?o?.split(dt).map(ge):void 0,c=i?.map(([l])=>l),a=class extends Dt{static{this.observedAttributes=i?.map(([,l])=>l).filter(l=>l!=="")}static{this._properties=c}static{this._asyncMethods=n?n?.split(dt):void 0}static{this._syncMethods=r?.split(dt)}static{this._name=s}constructor(){!a._loadPromise&&(a._loadPromise=t(),a._initializePrototype()),super()}};customElements.define(s,a)}var pt=Object.defineProperty;function ge(s){let t=s.split(ye);return t.length===1?[t[0],st(t[0])]:t}var ns=globalThis.HTMLElement??ge,Dt=class extends ns{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new E,this._postLoaded=new E,this._offspring=[],this._saveInstanceProperties();let t=this.constructor;t._LitConstructor?this._initializeComponent({a:t._LitConstructor}):t._loadPromise.then(as).then(this._initializeComponent.bind(this)).catch(e=>{this._postLoaded.reject(e),setTimeout(()=>{throw e})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(t){pt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this._store[t]},set(e){this._store[t]=e}})}static _bindAsync(t){pt(this.prototype,t,{async value(...e){return this._litElement||await this._postLoaded.promise,await this._litElement[t](...e)},configurable:!0})}static _bindSync(t){pt(this.prototype,t,{value(...e){return this._litElement[t](...e)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let t=this.constructor,e=this;t._properties?.forEach(o=>{Object.hasOwn(this,o)&&(this._store[o]=e[o],delete e[o])})}attributeChangedCallback(t,e,o){this._litElement?.attributeChangedCallback(t,e,o),this._litElement||this._pendingAttributes.push(t)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=kt(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(t){let e=this.constructor,o=e._name,n=this._store,r=Object.values(t).find(h=>h.tagName===o),i=`${o}--lazy`,c=r;for(;c&&!Object.hasOwn(c,"lumina");)c=Object.getPrototypeOf(c);is(c),!e._LitConstructor&&(e._LitConstructor=r,customElements.define(i,r)),r.lazy=this;let l=document.createElement(i);r.lazy=void 0,this._litElement=l,this._store=l,this._pendingAttributes.forEach(h=>{let m=this.getAttribute(h);l.attributeChangedCallback(h,null,m)}),Object.entries(n).forEach(rs,l);let d=this.isConnected;(d||this._ancestorLoad)&&(l.connectedCallback?.(),d||l.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}};function rs([s,t]){this[s]=t}function is(s){let t=s.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},pt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))}var as=async s=>(await s.$$,s),Tt={};var Ut=globalThis,ut=Ut.trustedTypes,ve=ut?ut.createPolicy("lit-html",{createHTML:s=>s}):void 0,Mt="$lit$",x=`lit$${Math.random().toFixed(9).slice(2)}$`,It="?"+x,cs=`<${It}>`,T=document,Z=()=>T.createComment(""),Q=s=>s===null||typeof s!="object"&&typeof s!="function",jt=Array.isArray,xe=s=>jt(s)||typeof s?.[Symbol.iterator]=="function",Rt=`[
|
|
5
5
|
\f\r]`,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ee=/-->/g,be=/>/g,D=RegExp(`>|${Rt}(?:([^\\s"'>=/]+)(${Rt}*=${Rt}*(?:[^
|
|
6
6
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),_e=/'/g,Ce=/"/g,we=/^(?:script|style|textarea|title)$/i,Vt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),ro=Vt(1),io=Vt(2),ao=Vt(3),f=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),$e=new WeakMap,k=T.createTreeWalker(T,129);function Ae(s,t){if(!jt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ve!==void 0?ve.createHTML(t):t}var Oe=(s,t)=>{let e=s.length-1,o=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=J;for(let c=0;c<e;c++){let a=s[c],l,d,h=-1,m=0;for(;m<a.length&&(i.lastIndex=m,d=i.exec(a),d!==null);)m=i.lastIndex,i===J?d[1]==="!--"?i=Ee:d[1]!==void 0?i=be:d[2]!==void 0?(we.test(d[2])&&(n=RegExp("</"+d[2],"g")),i=D):d[3]!==void 0&&(i=D):i===D?d[0]===">"?(i=n??J,h=-1):d[1]===void 0?h=-2:(h=i.lastIndex-d[2].length,l=d[1],i=d[3]===void 0?D:d[3]==='"'?Ce:_e):i===Ce||i===_e?i=D:i===Ee||i===be?i=J:(i=D,n=void 0);let g=i===D&&s[c+1].startsWith("/>")?" ":"";r+=i===J?a+cs:h>=0?(o.push(l),a.slice(0,h)+Mt+a.slice(h)+x+g):a+x+(h===-2?c:g)}return[Ae(s,r+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},X=class s{constructor({strings:t,_$litType$:e},o){let n;this.parts=[];let r=0,i=0,c=t.length-1,a=this.parts,[l,d]=Oe(t,e);if(this.el=s.createElement(l,o),k.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=k.nextNode())!==null&&a.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Mt)){let m=d[i++],g=n.getAttribute(h).split(x),L=/([.?@])?(.*)/.exec(m);a.push({type:1,index:r,name:L[2],strings:g,ctor:L[1]==="."?ft:L[1]==="?"?yt:L[1]==="@"?gt:U}),n.removeAttribute(h)}else h.startsWith(x)&&(a.push({type:6,index:r}),n.removeAttribute(h));if(we.test(n.tagName)){let h=n.textContent.split(x),m=h.length-1;if(m>0){n.textContent=ut?ut.emptyScript:"";for(let g=0;g<m;g++)n.append(h[g],Z()),k.nextNode(),a.push({type:2,index:++r});n.append(h[m],Z())}}}else if(n.nodeType===8)if(n.data===It)a.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(x,h+1))!==-1;)a.push({type:7,index:r}),h+=x.length-1}r++}}static createElement(t,e){let o=T.createElement("template");return o.innerHTML=t,o}};function R(s,t,e=s,o){if(t===f)return t;let n=o!==void 0?e._$Co?.[o]:e._$Cl,r=Q(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(s),n._$AT(s,e,o)),o!==void 0?(e._$Co??=[])[o]=n:e._$Cl=n),n!==void 0&&(t=R(s,n._$AS(s,t.values),n,o)),t}var mt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,n=(t?.creationScope??T).importNode(e,!0);k.currentNode=n;let r=k.nextNode(),i=0,c=0,a=o[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new H(r,r.nextSibling,this,t):a.type===1?l=new a.ctor(r,a.name,a.strings,this,t):a.type===6&&(l=new vt(r,this,t)),this._$AV.push(l),a=o[++c]}i!==a?.index&&(r=k.nextNode(),i++)}return k.currentNode=T,n}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},H=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,n){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=R(this,t,e),Q(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):xe(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==u&&Q(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=X.createElement(Ae(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new mt(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=$e.get(t.strings);return e===void 0&&$e.set(t.strings,e=new X(t)),e}k(t){jt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,n=0;for(let r of t)n===e.length?e.push(o=new s(this.O(Z()),this.O(Z()),this,this.options)):o=e[n],o._$AI(r),n++;n<e.length&&(this._$AR(o&&o._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,n,r){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=u}_$AI(t,e=this,o,n){let r=this.strings,i=!1;if(r===void 0)t=R(this,t,e,0),i=!Q(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let c=t,a,l;for(t=r[0],a=0;a<r.length-1;a++)l=R(this,c[o+a],e,a),l===f&&(l=this._$AH[a]),i||=!Q(l)||l!==this._$AH[a],l===u?t=u:t!==u&&(t+=(l??"")+r[a+1]),this._$AH[a]=l}i&&!n&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ft=class extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},yt=class extends U{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}},gt=class extends U{constructor(t,e,o,n,r){super(t,e,o,n,r),this.type=5}_$AI(t,e=this){if((t=R(this,t,e,0)??u)===f)return;let o=this._$AH,n=t===u&&o!==u||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==u&&(o===u||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},vt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){R(this,t)}},Le={M:Mt,P:x,A:It,C:1,L:Oe,R:mt,D:xe,V:R,I:H,H:U,N:yt,U:gt,B:ft,F:vt},ls=Ut.litHtmlPolyfillSupport;ls?.(X,H),(Ut.litHtmlVersions??=[]).push("3.2.1");var Ht=(s,t,e)=>{let o=e?.renderBefore??t,n=o._$litPart$;if(n===void 0){let r=e?.renderBefore??null;o._$litPart$=n=new H(t.insertBefore(Z(),r),r,void 0,e??{})}return n._$AI(s),n};var{is:hs,defineProperty:ds,getOwnPropertyDescriptor:ps,getOwnPropertyNames:us,getOwnPropertySymbols:ms,getPrototypeOf:fs}=Object,bt=globalThis,Se=bt.trustedTypes,ys=Se?Se.emptyScript:"",gs=bt.reactiveElementPolyfillSupport,tt=(s,t)=>s,Et={toAttribute(s,t){switch(t){case Boolean:s=s?ys:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},Wt=(s,t)=>!hs(s,t),Pe={attribute:!0,type:String,converter:Et,reflect:!1,hasChanged:Wt};Symbol.metadata??=Symbol("metadata"),bt.litPropertyMetadata??=new WeakMap;var w=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Pe){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(t,o,e);n!==void 0&&ds(this.prototype,t,n)}}static getPropertyDescriptor(t,e,o){let{get:n,set:r}=ps(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get(){return n?.call(this)},set(i){let c=n?.call(this);r.call(this,i),this.requestUpdate(t,c,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Pe}static _$Ei(){if(this.hasOwnProperty(tt("elementProperties")))return;let t=fs(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(tt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(tt("properties"))){let e=this.properties,o=[...us(e),...ms(e)];for(let n of o)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,n]of e)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let n=this._$Eu(e,o);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)e.unshift(ht(n))}else t!==void 0&&e.push(ht(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Nt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EC(t,e){let o=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let r=(o.converter?.toAttribute!==void 0?o.converter:Et).toAttribute(e,o.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=o.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:Et;this._$Em=n,this[n]=i.fromAttribute(e,r.type),this._$Em=null}}requestUpdate(t,e,o){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Wt)(this[t],e))return;this.P(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,r]of o)r.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],r)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EC(e,this[e])),this._$EU()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[tt("elementProperties")]=new Map,w[tt("finalized")]=new Map,gs?.({ReactiveElement:w}),(bt.reactiveElementVersions??=[]).push("2.0.4");var A=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ht(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};A._$litElement$=!0,A.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:A});var vs=globalThis.litElementPolyfillSupport;vs?.({LitElement:A});(globalThis.litElementVersions??=[]).push("4.1.1");var b={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},M=s=>(...t)=>({_$litDirective$:s,values:t}),O=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var ke=M(class extends O{constructor(s){if(super(s),s.type!==b.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let e=s.element.classList;for(let o of this.st)o in t||(e.remove(o),this.st.delete(o));for(let o in t){let n=!!t[o];n===this.st.has(o)||this.nt?.has(o)||(n?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return f}});var Te="important",bs=" !"+Te,_s=M(class extends O{constructor(s){if(super(s),s.type!==b.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((t,e)=>{let o=s[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(s,[t]){let{style:e}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let n=t[o];if(n!=null){this.ft.add(o);let r=typeof n=="string"&&n.endsWith(bs);o.includes("-")||r?e.setProperty(o,r?n.slice(0,-11):n,r?Te:""):e[o]=n}}return f}});var{I:Cs}=Le;var Ue=s=>s.strings===void 0,Re=()=>document.createComment(""),mn=(s,t,e)=>{let o=s._$AA.parentNode,n=t===void 0?s._$AB:t._$AA;if(e===void 0){let r=o.insertBefore(Re(),n),i=o.insertBefore(Re(),n);e=new Cs(r,i,s,s.options)}else{let r=e._$AB.nextSibling,i=e._$AM,c=i!==s;if(c){let a;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(a=s._$AU)!==i._$AU&&e._$AP(a)}if(r!==n||c){let a=e._$AA;for(;a!==r;){let l=a.nextSibling;o.insertBefore(a,n),a=l}}}return e},fn=(s,t,e=s)=>(s._$AI(t,e),s),$s={},Me=(s,t=$s)=>s._$AH=t,yn=s=>s._$AH,gn=s=>{s._$AP?.(!1,!0);let t=s._$AA,e=s._$AB.nextSibling;for(;t!==e;){let o=t.nextSibling;t.remove(),t=o}};var xs=M(class extends O{constructor(s){if(super(s),s.type!==b.PROPERTY&&s.type!==b.ATTRIBUTE&&s.type!==b.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ue(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[t]){if(t===f||t===u)return t;let e=s.element,o=s.name;if(s.type===b.PROPERTY){if(t===e[o])return f}else if(s.type===b.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===b.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return Me(s),t}});var Ie=(s="",t={},e=V())=>{let o={emit:n=>{s===""&&K();let r=new CustomEvent(s,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return s===""&&at(void 0,n=>{s=n.key},o),o},Vn=Ie.bind(null,"");var As=()=>{},Bt=class s extends A{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=he(this),this._postLoad=this.constructor.lazy?._postLoad??new E,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new E,this._enableUpdating=this.enableUpdating,this.enableUpdating=As;let t=s.prototype.shouldUpdate;this.shouldUpdate!==t&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=t),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Tt;return this.runtime?.commonStyles===void 0||o?e:[this.runtime.commonStyles,...e]}static createProperty(t,e){let o=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0;super.createProperty(t,{attribute:o&$.ATTRIBUTE&&typeof t=="string"?st(t):!1,reflect:!!(o&$.REFLECT),type:o&$.BOOLEAN?Boolean:o&$.NUMBER?Number:void 0,state:!!(o&$.STATE),readOnly:!!(o&$.READ_ONLY),noAccessor:!!(o&$.NO_ACCESSOR),...n})}static{this.lumina=!0}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=!this.manager.connectedCalled;super.connectedCallback(),t&&queueMicrotask(()=>this._load().catch(e=>{this._postLoaded.reject(e),setTimeout(()=>{throw e})}))}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,r=t??(o===Tt?this.el:this.el.attachShadow(o));if(t)return A.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return r}async _load(){let t=this.el._ancestorLoad??kt(this.el);t&&await t,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let e=this._offspring.filter(o=>!o.manager?.loadedCalled);e.length&&await Promise.allSettled(e.map(async o=>await o.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(t){return this.$changes=t,this._originalShouldUpdate?.(t)??!0}listen(t,e,o){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,o),()=>this.el.removeEventListener(t,n,o)))}listenOn(t,e,o,n){let r=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this._postLoaded.promise,this}};Bt.$createEvent=Ie;function je(s){let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},o={...s,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.runtime=o,r.tagName=n,customElements.get(n)||customElements.define(n,r)}};return e(s.defaultAssetPath),o}var Hn=s=>typeof s=="object"&&s!=null?ke(s):s;var Wn=u;var Os=je({defaultAssetPath:"https://jsdev.arcgis.com/coding-components/next/",hydratedAttribute:"hydrated"}),{customElement:qn,getAssetPath:Gn,setAssetPath:Fn}=Os;export{Ys as a,Js as b,es as c,ss as d,Tt as e,ro as f,f as g,u as h,b as i,M as j,O as k,Ue as l,mn as m,fn as n,Me as o,yn as p,gn as q,Vn as r,Bt as s,Hn as t,Wn as u,Os as v,qn as w,Gn as x};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.
|
|
4
|
-
import{Tl as T}from"./GNFUQ2M5.js";import"./A4BHQPRQ.js";var gt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,vt=Object.getOwnPropertyNames,pt=Object.prototype.hasOwnProperty,Y=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of vt(n))!pt.call(e,t)&&t!==i&>(e,t,{get:()=>n[t],enumerable:!(r=ht(n,t))||r.enumerable});return e},mt=(e,n,i)=>(Y(e,n,"default"),i&&Y(i,n,"default")),c={};mt(c,T);var _t=2*60*1e3,Je=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),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>_t&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.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 n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Z;(function(e){function n(i){return typeof i=="string"}e.is=n})(Z||(Z={}));var S;(function(e){function n(i){return typeof i=="string"}e.is=n})(S||(S={}));var K;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(K||(K={}));var M;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(M||(M={}));var b;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=M.MAX_VALUE),t===Number.MAX_VALUE&&(t=M.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&a.uinteger(t.line)&&a.uinteger(t.character)}e.is=i})(b||(b={}));var h;(function(e){function n(r,t,o,s){if(a.uinteger(r)&&a.uinteger(t)&&a.uinteger(o)&&a.uinteger(s))return{start:b.create(r,t),end:b.create(o,s)};if(b.is(r)&&b.is(t))return{start:r,end:t};throw new Error(`Range#create called with invalid arguments[${r}, ${t}, ${o}, ${s}]`)}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)}e.is=i})(h||(h={}));var C;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.range)&&(a.string(t.uri)||a.undefined(t.uri))}e.is=i})(C||(C={}));var ee;(function(e){function n(r,t,o,s){return{targetUri:r,targetRange:t,targetSelectionRange:o,originSelectionRange:s}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.targetRange)&&a.string(t.targetUri)&&h.is(t.targetSelectionRange)&&(h.is(t.originSelectionRange)||a.undefined(t.originSelectionRange))}e.is=i})(ee||(ee={}));var O;(function(e){function n(r,t,o,s){return{red:r,green:t,blue:o,alpha:s}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&a.numberRange(t.red,0,1)&&a.numberRange(t.green,0,1)&&a.numberRange(t.blue,0,1)&&a.numberRange(t.alpha,0,1)}e.is=i})(O||(O={}));var te;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.range)&&O.is(t.color)}e.is=i})(te||(te={}));var re;(function(e){function n(r,t,o){return{label:r,textEdit:t,additionalTextEdits:o}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&a.string(t.label)&&(a.undefined(t.textEdit)||E.is(t))&&(a.undefined(t.additionalTextEdits)||a.typedArray(t.additionalTextEdits,E.is))}e.is=i})(re||(re={}));var A;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(A||(A={}));var ne;(function(e){function n(r,t,o,s,u,f){let d={startLine:r,endLine:t};return a.defined(o)&&(d.startCharacter=o),a.defined(s)&&(d.endCharacter=s),a.defined(u)&&(d.kind=u),a.defined(f)&&(d.collapsedText=f),d}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&a.uinteger(t.startLine)&&a.uinteger(t.startLine)&&(a.undefined(t.startCharacter)||a.uinteger(t.startCharacter))&&(a.undefined(t.endCharacter)||a.uinteger(t.endCharacter))&&(a.undefined(t.kind)||a.string(t.kind))}e.is=i})(ne||(ne={}));var U;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&C.is(t.location)&&a.string(t.message)}e.is=i})(U||(U={}));var x;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(x||(x={}));var ie;(function(e){e.Unnecessary=1,e.Deprecated=2})(ie||(ie={}));var oe;(function(e){function n(i){let r=i;return a.objectLiteral(r)&&a.string(r.href)}e.is=n})(oe||(oe={}));var F;(function(e){function n(r,t,o,s,u,f){let d={range:r,message:t};return a.defined(o)&&(d.severity=o),a.defined(s)&&(d.code=s),a.defined(u)&&(d.source=u),a.defined(f)&&(d.relatedInformation=f),d}e.create=n;function i(r){var t;let o=r;return a.defined(o)&&h.is(o.range)&&a.string(o.message)&&(a.number(o.severity)||a.undefined(o.severity))&&(a.integer(o.code)||a.string(o.code)||a.undefined(o.code))&&(a.undefined(o.codeDescription)||a.string((t=o.codeDescription)===null||t===void 0?void 0:t.href))&&(a.string(o.source)||a.undefined(o.source))&&(a.undefined(o.relatedInformation)||a.typedArray(o.relatedInformation,U.is))}e.is=i})(F||(F={}));var I;(function(e){function n(r,t,...o){let s={title:r,command:t};return a.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.title)&&a.string(t.command)}e.is=i})(I||(I={}));var E;(function(e){function n(o,s){return{range:o,newText:s}}e.replace=n;function i(o,s){return{range:{start:o,end:o},newText:s}}e.insert=i;function r(o){return{range:o,newText:""}}e.del=r;function t(o){let s=o;return a.objectLiteral(s)&&a.string(s.newText)&&h.is(s.range)}e.is=t})(E||(E={}));var V;(function(e){function n(r,t,o){let s={label:r};return t!==void 0&&(s.needsConfirmation=t),o!==void 0&&(s.description=o),s}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&a.string(t.label)&&(a.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(a.string(t.description)||t.description===void 0)}e.is=i})(V||(V={}));var L;(function(e){function n(i){let r=i;return a.string(r)}e.is=n})(L||(L={}));var ae;(function(e){function n(o,s,u){return{range:o,newText:s,annotationId:u}}e.replace=n;function i(o,s,u){return{range:{start:o,end:o},newText:s,annotationId:u}}e.insert=i;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function t(o){let s=o;return E.is(s)&&(V.is(s.annotationId)||L.is(s.annotationId))}e.is=t})(ae||(ae={}));var W;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&B.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(W||(W={}));var H;(function(e){function n(r,t,o){let s={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=n;function i(r){let t=r;return t&&t.kind==="create"&&a.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})(H||(H={}));var X;(function(e){function n(r,t,o,s){let u={kind:"rename",oldUri:r,newUri:t};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),s!==void 0&&(u.annotationId=s),u}e.create=n;function i(r){let t=r;return t&&t.kind==="rename"&&a.string(t.oldUri)&&a.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})(X||(X={}));var $;(function(e){function n(r,t,o){let s={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=n;function i(r){let t=r;return t&&t.kind==="delete"&&a.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||a.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||a.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})($||($={}));var z;(function(e){function n(i){let r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(t=>a.string(t.kind)?H.is(t)||X.is(t)||$.is(t):W.is(t)))}e.is=n})(z||(z={}));var se;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)}e.is=i})(se||(se={}));var ue;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&a.integer(t.version)}e.is=i})(ue||(ue={}));var B;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&(t.version===null||a.integer(t.version))}e.is=i})(B||(B={}));var ce;(function(e){function n(r,t,o,s){return{uri:r,languageId:t,version:o,text:s}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&a.string(t.languageId)&&a.integer(t.version)&&a.string(t.text)}e.is=i})(ce||(ce={}));var q;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function n(i){let r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(q||(q={}));var P;(function(e){function n(i){let r=i;return a.objectLiteral(i)&&q.is(r.kind)&&a.string(r.value)}e.is=n})(P||(P={}));var v;(function(e){e.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})(v||(v={}));var Q;(function(e){e.PlainText=1,e.Snippet=2})(Q||(Q={}));var de;(function(e){e.Deprecated=1})(de||(de={}));var le;(function(e){function n(r,t,o){return{newText:r,insert:t,replace:o}}e.create=n;function i(r){let t=r;return t&&a.string(t.newText)&&h.is(t.insert)&&h.is(t.replace)}e.is=i})(le||(le={}));var fe;(function(e){e.asIs=1,e.adjustIndentation=2})(fe||(fe={}));var ge;(function(e){function n(i){let r=i;return r&&(a.string(r.detail)||r.detail===void 0)&&(a.string(r.description)||r.description===void 0)}e.is=n})(ge||(ge={}));var he;(function(e){function n(i){return{label:i}}e.create=n})(he||(he={}));var ve;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(ve||(ve={}));var y;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){let t=r;return a.string(t)||a.objectLiteral(t)&&a.string(t.language)&&a.string(t.value)}e.is=i})(y||(y={}));var pe;(function(e){function n(i){let r=i;return!!r&&a.objectLiteral(r)&&(P.is(r.contents)||y.is(r.contents)||a.typedArray(r.contents,y.is))&&(i.range===void 0||h.is(i.range))}e.is=n})(pe||(pe={}));var me;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(me||(me={}));var _e;(function(e){function n(i,r,...t){let o={label:i};return a.defined(r)&&(o.documentation=r),a.defined(t)?o.parameters=t:o.parameters=[],o}e.create=n})(_e||(_e={}));var R;(function(e){e.Text=1,e.Read=2,e.Write=3})(R||(R={}));var we;(function(e){function n(i,r){let t={range:i};return a.number(r)&&(t.kind=r),t}e.create=n})(we||(we={}));var p;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(p||(p={}));var be;(function(e){e.Deprecated=1})(be||(be={}));var ke;(function(e){function n(i,r,t,o,s){let u={name:i,kind:r,location:{uri:o,range:t}};return s&&(u.containerName=s),u}e.create=n})(ke||(ke={}));var xe;(function(e){function n(i,r,t,o){return o!==void 0?{name:i,kind:r,location:{uri:t,range:o}}:{name:i,kind:r,location:{uri:t}}}e.create=n})(xe||(xe={}));var Ie;(function(e){function n(r,t,o,s,u,f){let d={name:r,detail:t,kind:o,range:s,selectionRange:u};return f!==void 0&&(d.children=f),d}e.create=n;function i(r){let t=r;return t&&a.string(t.name)&&a.number(t.kind)&&h.is(t.range)&&h.is(t.selectionRange)&&(t.detail===void 0||a.string(t.detail))&&(t.deprecated===void 0||a.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=i})(Ie||(Ie={}));var Ee;(function(e){e.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"})(Ee||(Ee={}));var j;(function(e){e.Invoked=1,e.Automatic=2})(j||(j={}));var Le;(function(e){function n(r,t,o){let s={diagnostics:r};return t!=null&&(s.only=t),o!=null&&(s.triggerKind=o),s}e.create=n;function i(r){let t=r;return a.defined(t)&&a.typedArray(t.diagnostics,F.is)&&(t.only===void 0||a.typedArray(t.only,a.string))&&(t.triggerKind===void 0||t.triggerKind===j.Invoked||t.triggerKind===j.Automatic)}e.is=i})(Le||(Le={}));var Ae;(function(e){function n(r,t,o){let s={title:r},u=!0;return typeof t=="string"?(u=!1,s.kind=t):I.is(t)?s.command=t:s.edit=t,u&&o!==void 0&&(s.kind=o),s}e.create=n;function i(r){let t=r;return t&&a.string(t.title)&&(t.diagnostics===void 0||a.typedArray(t.diagnostics,F.is))&&(t.kind===void 0||a.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||I.is(t.command))&&(t.isPreferred===void 0||a.boolean(t.isPreferred))&&(t.edit===void 0||z.is(t.edit))}e.is=i})(Ae||(Ae={}));var Re;(function(e){function n(r,t){let o={range:r};return a.defined(t)&&(o.data=t),o}e.create=n;function i(r){let t=r;return a.defined(t)&&h.is(t.range)&&(a.undefined(t.command)||I.is(t.command))}e.is=i})(Re||(Re={}));var Pe;(function(e){function n(r,t){return{tabSize:r,insertSpaces:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.uinteger(t.tabSize)&&a.boolean(t.insertSpaces)}e.is=i})(Pe||(Pe={}));var De;(function(e){function n(r,t,o){return{range:r,target:t,data:o}}e.create=n;function i(r){let t=r;return a.defined(t)&&h.is(t.range)&&(a.undefined(t.target)||a.string(t.target))}e.is=i})(De||(De={}));var Me;(function(e){function n(r,t){return{range:r,parent:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.range)&&(t.parent===void 0||e.is(t.parent))}e.is=i})(Me||(Me={}));var Ce;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Ce||(Ce={}));var Fe;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Fe||(Fe={}));var ye;(function(e){function n(i){let r=i;return a.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=n})(ye||(ye={}));var je;(function(e){function n(r,t){return{range:r,text:t}}e.create=n;function i(r){let t=r;return t!=null&&h.is(t.range)&&a.string(t.text)}e.is=i})(je||(je={}));var Ne;(function(e){function n(r,t,o){return{range:r,variableName:t,caseSensitiveLookup:o}}e.create=n;function i(r){let t=r;return t!=null&&h.is(t.range)&&a.boolean(t.caseSensitiveLookup)&&(a.string(t.variableName)||t.variableName===void 0)}e.is=i})(Ne||(Ne={}));var Se;(function(e){function n(r,t){return{range:r,expression:t}}e.create=n;function i(r){let t=r;return t!=null&&h.is(t.range)&&(a.string(t.expression)||t.expression===void 0)}e.is=i})(Se||(Se={}));var Oe;(function(e){function n(r,t){return{frameId:r,stoppedLocation:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&h.is(r.stoppedLocation)}e.is=i})(Oe||(Oe={}));var G;(function(e){e.Type=1,e.Parameter=2;function n(i){return i===1||i===2}e.is=n})(G||(G={}));var J;(function(e){function n(r){return{value:r}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&(t.tooltip===void 0||a.string(t.tooltip)||P.is(t.tooltip))&&(t.location===void 0||C.is(t.location))&&(t.command===void 0||I.is(t.command))}e.is=i})(J||(J={}));var Ue;(function(e){function n(r,t,o){let s={position:r,label:t};return o!==void 0&&(s.kind=o),s}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&b.is(t.position)&&(a.string(t.label)||a.typedArray(t.label,J.is))&&(t.kind===void 0||G.is(t.kind))&&t.textEdits===void 0||a.typedArray(t.textEdits,E.is)&&(t.tooltip===void 0||a.string(t.tooltip)||P.is(t.tooltip))&&(t.paddingLeft===void 0||a.boolean(t.paddingLeft))&&(t.paddingRight===void 0||a.boolean(t.paddingRight))}e.is=i})(Ue||(Ue={}));var Ve;(function(e){function n(i){return{kind:"snippet",value:i}}e.createSnippet=n})(Ve||(Ve={}));var We;(function(e){function n(i,r,t,o){return{insertText:i,filterText:r,range:t,command:o}}e.create=n})(We||(We={}));var He;(function(e){function n(i){return{items:i}}e.create=n})(He||(He={}));var Xe;(function(e){e.Invoked=0,e.Automatic=1})(Xe||(Xe={}));var $e;(function(e){function n(i,r){return{range:i,text:r}}e.create=n})($e||($e={}));var ze;(function(e){function n(i,r){return{triggerKind:i,selectedCompletionInfo:r}}e.create=n})(ze||(ze={}));var Be;(function(e){function n(i){let r=i;return a.objectLiteral(r)&&S.is(r.uri)&&a.string(r.name)}e.is=n})(Be||(Be={}));var qe;(function(e){function n(o,s,u,f){return new wt(o,s,u,f)}e.create=n;function i(o){let s=o;return!!(a.defined(s)&&a.string(s.uri)&&(a.undefined(s.languageId)||a.string(s.languageId))&&a.uinteger(s.lineCount)&&a.func(s.getText)&&a.func(s.positionAt)&&a.func(s.offsetAt))}e.is=i;function r(o,s){let u=o.getText(),f=t(s,(g,_)=>{let w=g.range.start.line-_.range.start.line;return w===0?g.range.start.character-_.range.start.character:w}),d=u.length;for(let g=f.length-1;g>=0;g--){let _=f[g],w=o.offsetAt(_.range.start),l=o.offsetAt(_.range.end);if(l<=d)u=u.substring(0,w)+_.newText+u.substring(l,u.length);else throw new Error("Overlapping edit");d=w}return u}e.applyEdits=r;function t(o,s){if(o.length<=1)return o;let u=o.length/2|0,f=o.slice(0,u),d=o.slice(u);t(f,s),t(d,s);let g=0,_=0,w=0;for(;g<f.length&&_<d.length;)s(f[g],d[_])<=0?o[w++]=f[g++]:o[w++]=d[_++];for(;g<f.length;)o[w++]=f[g++];for(;_<d.length;)o[w++]=d[_++];return o}})(qe||(qe={}));var wt=class{constructor(e,n,i,r){this._uri=e,this._languageId=n,this._version=i,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 n=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(n,i)}return this._content}update(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],n=this._content,i=!0;for(let r=0;r<n.length;r++){i&&(e.push(r),i=!1);let t=n.charAt(r);i=t==="\r"||t===`
|
|
3
|
+
v4.33.0-next.85 */
|
|
4
|
+
import{Tl as T}from"./Z33AYGSJ.js";import"./W22GE6G5.js";var gt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,vt=Object.getOwnPropertyNames,pt=Object.prototype.hasOwnProperty,Y=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of vt(n))!pt.call(e,t)&&t!==i&>(e,t,{get:()=>n[t],enumerable:!(r=ht(n,t))||r.enumerable});return e},mt=(e,n,i)=>(Y(e,n,"default"),i&&Y(i,n,"default")),c={};mt(c,T);var _t=2*60*1e3,Je=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),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>_t&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.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 n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Z;(function(e){function n(i){return typeof i=="string"}e.is=n})(Z||(Z={}));var S;(function(e){function n(i){return typeof i=="string"}e.is=n})(S||(S={}));var K;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(K||(K={}));var M;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(M||(M={}));var b;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=M.MAX_VALUE),t===Number.MAX_VALUE&&(t=M.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&a.uinteger(t.line)&&a.uinteger(t.character)}e.is=i})(b||(b={}));var h;(function(e){function n(r,t,o,s){if(a.uinteger(r)&&a.uinteger(t)&&a.uinteger(o)&&a.uinteger(s))return{start:b.create(r,t),end:b.create(o,s)};if(b.is(r)&&b.is(t))return{start:r,end:t};throw new Error(`Range#create called with invalid arguments[${r}, ${t}, ${o}, ${s}]`)}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)}e.is=i})(h||(h={}));var C;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.range)&&(a.string(t.uri)||a.undefined(t.uri))}e.is=i})(C||(C={}));var ee;(function(e){function n(r,t,o,s){return{targetUri:r,targetRange:t,targetSelectionRange:o,originSelectionRange:s}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.targetRange)&&a.string(t.targetUri)&&h.is(t.targetSelectionRange)&&(h.is(t.originSelectionRange)||a.undefined(t.originSelectionRange))}e.is=i})(ee||(ee={}));var O;(function(e){function n(r,t,o,s){return{red:r,green:t,blue:o,alpha:s}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&a.numberRange(t.red,0,1)&&a.numberRange(t.green,0,1)&&a.numberRange(t.blue,0,1)&&a.numberRange(t.alpha,0,1)}e.is=i})(O||(O={}));var te;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.range)&&O.is(t.color)}e.is=i})(te||(te={}));var re;(function(e){function n(r,t,o){return{label:r,textEdit:t,additionalTextEdits:o}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&a.string(t.label)&&(a.undefined(t.textEdit)||E.is(t))&&(a.undefined(t.additionalTextEdits)||a.typedArray(t.additionalTextEdits,E.is))}e.is=i})(re||(re={}));var A;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(A||(A={}));var ne;(function(e){function n(r,t,o,s,u,f){let d={startLine:r,endLine:t};return a.defined(o)&&(d.startCharacter=o),a.defined(s)&&(d.endCharacter=s),a.defined(u)&&(d.kind=u),a.defined(f)&&(d.collapsedText=f),d}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&a.uinteger(t.startLine)&&a.uinteger(t.startLine)&&(a.undefined(t.startCharacter)||a.uinteger(t.startCharacter))&&(a.undefined(t.endCharacter)||a.uinteger(t.endCharacter))&&(a.undefined(t.kind)||a.string(t.kind))}e.is=i})(ne||(ne={}));var U;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&C.is(t.location)&&a.string(t.message)}e.is=i})(U||(U={}));var x;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(x||(x={}));var ie;(function(e){e.Unnecessary=1,e.Deprecated=2})(ie||(ie={}));var oe;(function(e){function n(i){let r=i;return a.objectLiteral(r)&&a.string(r.href)}e.is=n})(oe||(oe={}));var F;(function(e){function n(r,t,o,s,u,f){let d={range:r,message:t};return a.defined(o)&&(d.severity=o),a.defined(s)&&(d.code=s),a.defined(u)&&(d.source=u),a.defined(f)&&(d.relatedInformation=f),d}e.create=n;function i(r){var t;let o=r;return a.defined(o)&&h.is(o.range)&&a.string(o.message)&&(a.number(o.severity)||a.undefined(o.severity))&&(a.integer(o.code)||a.string(o.code)||a.undefined(o.code))&&(a.undefined(o.codeDescription)||a.string((t=o.codeDescription)===null||t===void 0?void 0:t.href))&&(a.string(o.source)||a.undefined(o.source))&&(a.undefined(o.relatedInformation)||a.typedArray(o.relatedInformation,U.is))}e.is=i})(F||(F={}));var I;(function(e){function n(r,t,...o){let s={title:r,command:t};return a.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.title)&&a.string(t.command)}e.is=i})(I||(I={}));var E;(function(e){function n(o,s){return{range:o,newText:s}}e.replace=n;function i(o,s){return{range:{start:o,end:o},newText:s}}e.insert=i;function r(o){return{range:o,newText:""}}e.del=r;function t(o){let s=o;return a.objectLiteral(s)&&a.string(s.newText)&&h.is(s.range)}e.is=t})(E||(E={}));var V;(function(e){function n(r,t,o){let s={label:r};return t!==void 0&&(s.needsConfirmation=t),o!==void 0&&(s.description=o),s}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&a.string(t.label)&&(a.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(a.string(t.description)||t.description===void 0)}e.is=i})(V||(V={}));var L;(function(e){function n(i){let r=i;return a.string(r)}e.is=n})(L||(L={}));var ae;(function(e){function n(o,s,u){return{range:o,newText:s,annotationId:u}}e.replace=n;function i(o,s,u){return{range:{start:o,end:o},newText:s,annotationId:u}}e.insert=i;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function t(o){let s=o;return E.is(s)&&(V.is(s.annotationId)||L.is(s.annotationId))}e.is=t})(ae||(ae={}));var W;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&B.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(W||(W={}));var H;(function(e){function n(r,t,o){let s={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=n;function i(r){let t=r;return t&&t.kind==="create"&&a.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})(H||(H={}));var X;(function(e){function n(r,t,o,s){let u={kind:"rename",oldUri:r,newUri:t};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),s!==void 0&&(u.annotationId=s),u}e.create=n;function i(r){let t=r;return t&&t.kind==="rename"&&a.string(t.oldUri)&&a.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})(X||(X={}));var $;(function(e){function n(r,t,o){let s={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=n;function i(r){let t=r;return t&&t.kind==="delete"&&a.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||a.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||a.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})($||($={}));var z;(function(e){function n(i){let r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(t=>a.string(t.kind)?H.is(t)||X.is(t)||$.is(t):W.is(t)))}e.is=n})(z||(z={}));var se;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)}e.is=i})(se||(se={}));var ue;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&a.integer(t.version)}e.is=i})(ue||(ue={}));var B;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&(t.version===null||a.integer(t.version))}e.is=i})(B||(B={}));var ce;(function(e){function n(r,t,o,s){return{uri:r,languageId:t,version:o,text:s}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&a.string(t.languageId)&&a.integer(t.version)&&a.string(t.text)}e.is=i})(ce||(ce={}));var q;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function n(i){let r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(q||(q={}));var P;(function(e){function n(i){let r=i;return a.objectLiteral(i)&&q.is(r.kind)&&a.string(r.value)}e.is=n})(P||(P={}));var v;(function(e){e.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})(v||(v={}));var Q;(function(e){e.PlainText=1,e.Snippet=2})(Q||(Q={}));var de;(function(e){e.Deprecated=1})(de||(de={}));var le;(function(e){function n(r,t,o){return{newText:r,insert:t,replace:o}}e.create=n;function i(r){let t=r;return t&&a.string(t.newText)&&h.is(t.insert)&&h.is(t.replace)}e.is=i})(le||(le={}));var fe;(function(e){e.asIs=1,e.adjustIndentation=2})(fe||(fe={}));var ge;(function(e){function n(i){let r=i;return r&&(a.string(r.detail)||r.detail===void 0)&&(a.string(r.description)||r.description===void 0)}e.is=n})(ge||(ge={}));var he;(function(e){function n(i){return{label:i}}e.create=n})(he||(he={}));var ve;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(ve||(ve={}));var y;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){let t=r;return a.string(t)||a.objectLiteral(t)&&a.string(t.language)&&a.string(t.value)}e.is=i})(y||(y={}));var pe;(function(e){function n(i){let r=i;return!!r&&a.objectLiteral(r)&&(P.is(r.contents)||y.is(r.contents)||a.typedArray(r.contents,y.is))&&(i.range===void 0||h.is(i.range))}e.is=n})(pe||(pe={}));var me;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(me||(me={}));var _e;(function(e){function n(i,r,...t){let o={label:i};return a.defined(r)&&(o.documentation=r),a.defined(t)?o.parameters=t:o.parameters=[],o}e.create=n})(_e||(_e={}));var R;(function(e){e.Text=1,e.Read=2,e.Write=3})(R||(R={}));var we;(function(e){function n(i,r){let t={range:i};return a.number(r)&&(t.kind=r),t}e.create=n})(we||(we={}));var p;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(p||(p={}));var be;(function(e){e.Deprecated=1})(be||(be={}));var ke;(function(e){function n(i,r,t,o,s){let u={name:i,kind:r,location:{uri:o,range:t}};return s&&(u.containerName=s),u}e.create=n})(ke||(ke={}));var xe;(function(e){function n(i,r,t,o){return o!==void 0?{name:i,kind:r,location:{uri:t,range:o}}:{name:i,kind:r,location:{uri:t}}}e.create=n})(xe||(xe={}));var Ie;(function(e){function n(r,t,o,s,u,f){let d={name:r,detail:t,kind:o,range:s,selectionRange:u};return f!==void 0&&(d.children=f),d}e.create=n;function i(r){let t=r;return t&&a.string(t.name)&&a.number(t.kind)&&h.is(t.range)&&h.is(t.selectionRange)&&(t.detail===void 0||a.string(t.detail))&&(t.deprecated===void 0||a.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=i})(Ie||(Ie={}));var Ee;(function(e){e.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"})(Ee||(Ee={}));var j;(function(e){e.Invoked=1,e.Automatic=2})(j||(j={}));var Le;(function(e){function n(r,t,o){let s={diagnostics:r};return t!=null&&(s.only=t),o!=null&&(s.triggerKind=o),s}e.create=n;function i(r){let t=r;return a.defined(t)&&a.typedArray(t.diagnostics,F.is)&&(t.only===void 0||a.typedArray(t.only,a.string))&&(t.triggerKind===void 0||t.triggerKind===j.Invoked||t.triggerKind===j.Automatic)}e.is=i})(Le||(Le={}));var Ae;(function(e){function n(r,t,o){let s={title:r},u=!0;return typeof t=="string"?(u=!1,s.kind=t):I.is(t)?s.command=t:s.edit=t,u&&o!==void 0&&(s.kind=o),s}e.create=n;function i(r){let t=r;return t&&a.string(t.title)&&(t.diagnostics===void 0||a.typedArray(t.diagnostics,F.is))&&(t.kind===void 0||a.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||I.is(t.command))&&(t.isPreferred===void 0||a.boolean(t.isPreferred))&&(t.edit===void 0||z.is(t.edit))}e.is=i})(Ae||(Ae={}));var Re;(function(e){function n(r,t){let o={range:r};return a.defined(t)&&(o.data=t),o}e.create=n;function i(r){let t=r;return a.defined(t)&&h.is(t.range)&&(a.undefined(t.command)||I.is(t.command))}e.is=i})(Re||(Re={}));var Pe;(function(e){function n(r,t){return{tabSize:r,insertSpaces:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.uinteger(t.tabSize)&&a.boolean(t.insertSpaces)}e.is=i})(Pe||(Pe={}));var De;(function(e){function n(r,t,o){return{range:r,target:t,data:o}}e.create=n;function i(r){let t=r;return a.defined(t)&&h.is(t.range)&&(a.undefined(t.target)||a.string(t.target))}e.is=i})(De||(De={}));var Me;(function(e){function n(r,t){return{range:r,parent:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.range)&&(t.parent===void 0||e.is(t.parent))}e.is=i})(Me||(Me={}));var Ce;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Ce||(Ce={}));var Fe;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Fe||(Fe={}));var ye;(function(e){function n(i){let r=i;return a.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=n})(ye||(ye={}));var je;(function(e){function n(r,t){return{range:r,text:t}}e.create=n;function i(r){let t=r;return t!=null&&h.is(t.range)&&a.string(t.text)}e.is=i})(je||(je={}));var Ne;(function(e){function n(r,t,o){return{range:r,variableName:t,caseSensitiveLookup:o}}e.create=n;function i(r){let t=r;return t!=null&&h.is(t.range)&&a.boolean(t.caseSensitiveLookup)&&(a.string(t.variableName)||t.variableName===void 0)}e.is=i})(Ne||(Ne={}));var Se;(function(e){function n(r,t){return{range:r,expression:t}}e.create=n;function i(r){let t=r;return t!=null&&h.is(t.range)&&(a.string(t.expression)||t.expression===void 0)}e.is=i})(Se||(Se={}));var Oe;(function(e){function n(r,t){return{frameId:r,stoppedLocation:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&h.is(r.stoppedLocation)}e.is=i})(Oe||(Oe={}));var G;(function(e){e.Type=1,e.Parameter=2;function n(i){return i===1||i===2}e.is=n})(G||(G={}));var J;(function(e){function n(r){return{value:r}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&(t.tooltip===void 0||a.string(t.tooltip)||P.is(t.tooltip))&&(t.location===void 0||C.is(t.location))&&(t.command===void 0||I.is(t.command))}e.is=i})(J||(J={}));var Ue;(function(e){function n(r,t,o){let s={position:r,label:t};return o!==void 0&&(s.kind=o),s}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&b.is(t.position)&&(a.string(t.label)||a.typedArray(t.label,J.is))&&(t.kind===void 0||G.is(t.kind))&&t.textEdits===void 0||a.typedArray(t.textEdits,E.is)&&(t.tooltip===void 0||a.string(t.tooltip)||P.is(t.tooltip))&&(t.paddingLeft===void 0||a.boolean(t.paddingLeft))&&(t.paddingRight===void 0||a.boolean(t.paddingRight))}e.is=i})(Ue||(Ue={}));var Ve;(function(e){function n(i){return{kind:"snippet",value:i}}e.createSnippet=n})(Ve||(Ve={}));var We;(function(e){function n(i,r,t,o){return{insertText:i,filterText:r,range:t,command:o}}e.create=n})(We||(We={}));var He;(function(e){function n(i){return{items:i}}e.create=n})(He||(He={}));var Xe;(function(e){e.Invoked=0,e.Automatic=1})(Xe||(Xe={}));var $e;(function(e){function n(i,r){return{range:i,text:r}}e.create=n})($e||($e={}));var ze;(function(e){function n(i,r){return{triggerKind:i,selectedCompletionInfo:r}}e.create=n})(ze||(ze={}));var Be;(function(e){function n(i){let r=i;return a.objectLiteral(r)&&S.is(r.uri)&&a.string(r.name)}e.is=n})(Be||(Be={}));var qe;(function(e){function n(o,s,u,f){return new wt(o,s,u,f)}e.create=n;function i(o){let s=o;return!!(a.defined(s)&&a.string(s.uri)&&(a.undefined(s.languageId)||a.string(s.languageId))&&a.uinteger(s.lineCount)&&a.func(s.getText)&&a.func(s.positionAt)&&a.func(s.offsetAt))}e.is=i;function r(o,s){let u=o.getText(),f=t(s,(g,_)=>{let w=g.range.start.line-_.range.start.line;return w===0?g.range.start.character-_.range.start.character:w}),d=u.length;for(let g=f.length-1;g>=0;g--){let _=f[g],w=o.offsetAt(_.range.start),l=o.offsetAt(_.range.end);if(l<=d)u=u.substring(0,w)+_.newText+u.substring(l,u.length);else throw new Error("Overlapping edit");d=w}return u}e.applyEdits=r;function t(o,s){if(o.length<=1)return o;let u=o.length/2|0,f=o.slice(0,u),d=o.slice(u);t(f,s),t(d,s);let g=0,_=0,w=0;for(;g<f.length&&_<d.length;)s(f[g],d[_])<=0?o[w++]=f[g++]:o[w++]=d[_++];for(;g<f.length;)o[w++]=f[g++];for(;_<d.length;)o[w++]=d[_++];return o}})(qe||(qe={}));var wt=class{constructor(e,n,i,r){this._uri=e,this._languageId=n,this._version=i,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 n=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(n,i)}return this._content}update(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],n=this._content,i=!0;for(let r=0;r<n.length;r++){i&&(e.push(r),i=!1);let t=n.charAt(r);i=t==="\r"||t===`
|
|
5
5
|
`,t==="\r"&&r+1<n.length&&n.charAt(r+1)===`
|
|
6
6
|
`&&r++}i&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return b.create(0,e);for(;i<r;){let o=Math.floor((i+r)/2);n[o]>e?r=o:i=o+1}let t=i-1;return b.create(t,e-n[t])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let i=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)}get lineCount(){return this.getLineOffsets().length}},a;(function(e){let n=Object.prototype.toString;function i(l){return typeof l<"u"}e.defined=i;function r(l){return typeof l>"u"}e.undefined=r;function t(l){return l===!0||l===!1}e.boolean=t;function o(l){return n.call(l)==="[object String]"}e.string=o;function s(l){return n.call(l)==="[object Number]"}e.number=s;function u(l,N,ft){return n.call(l)==="[object Number]"&&N<=l&&l<=ft}e.numberRange=u;function f(l){return n.call(l)==="[object Number]"&&-2147483648<=l&&l<=2147483647}e.integer=f;function d(l){return n.call(l)==="[object Number]"&&0<=l&&l<=2147483647}e.uinteger=d;function g(l){return n.call(l)==="[object Function]"}e.func=g;function _(l){return l!==null&&typeof l=="object"}e.objectLiteral=_;function w(l,N){return Array.isArray(l)&&l.every(N)}e.typedArray=w})(a||(a={}));var Ft=class{constructor(e,n,i){this._languageId=e,this._worker=n,this._disposables=[],this._listener=Object.create(null);let r=o=>{let s=o.getLanguageId();if(s!==this._languageId)return;let u;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(o.uri,s),500)}),this._doValidate(o.uri,s)},t=o=>{c.editor.setModelMarkers(o,this._languageId,[]);let s=o.uri.toString(),u=this._listener[s];u&&(u.dispose(),delete this._listener[s])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(o=>{t(o.model),r(o.model)})),this._disposables.push(i(o=>{c.editor.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(t(s),r(s))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let o in this._listener)this._listener[o].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{let r=i.map(o=>kt(e,o)),t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function bt(e){switch(e){case x.Error:return c.MarkerSeverity.Error;case x.Warning:return c.MarkerSeverity.Warning;case x.Information:return c.MarkerSeverity.Info;case x.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function kt(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:bt(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var xt=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){let t=e.uri;return this._worker(t).then(o=>o.doComplete(t.toString(),k(n))).then(o=>{if(!o)return;let s=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,s.startColumn,n.lineNumber,s.endColumn),f=o.items.map(d=>{let g={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:Lt(d.command),range:u,kind:Et(d.kind)};return d.textEdit&&(It(d.textEdit)?g.range={insert:m(d.textEdit.insert),replace:m(d.textEdit.replace)}:g.range=m(d.textEdit.range),g.insertText=d.textEdit.newText),d.additionalTextEdits&&(g.additionalTextEdits=d.additionalTextEdits.map(D)),d.insertTextFormat===Q.Snippet&&(g.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),g});return{isIncomplete:o.isIncomplete,suggestions:f}})}};function k(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Te(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function m(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function It(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function Et(e){let n=c.languages.CompletionItemKind;switch(e){case v.Text:return n.Text;case v.Method:return n.Method;case v.Function:return n.Function;case v.Constructor:return n.Constructor;case v.Field:return n.Field;case v.Variable:return n.Variable;case v.Class:return n.Class;case v.Interface:return n.Interface;case v.Module:return n.Module;case v.Property:return n.Property;case v.Unit:return n.Unit;case v.Value:return n.Value;case v.Enum:return n.Enum;case v.Keyword:return n.Keyword;case v.Snippet:return n.Snippet;case v.Color:return n.Color;case v.File:return n.File;case v.Reference:return n.Reference}return n.Property}function D(e){if(e)return{range:m(e.range),text:e.newText}}function Lt(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Ye=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),k(n))).then(t=>{if(t)return{range:m(t.range),contents:Rt(t.contents)}})}};function At(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Qe(e){return typeof e=="string"?{value:e}:At(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+`
|
|
7
7
|
`+e.value+"\n```\n"}}function Rt(e){if(e)return Array.isArray(e)?e.map(Qe):[Qe(e)]}var Ze=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),k(n))).then(t=>{if(t)return t.map(o=>({range:m(o.range),kind:Pt(o.kind)}))})}};function Pt(e){switch(e){case R.Read:return c.languages.DocumentHighlightKind.Read;case R.Write:return c.languages.DocumentHighlightKind.Write;case R.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var yt=class{constructor(e){this._worker=e}provideDefinition(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),k(n))).then(t=>{if(t)return[Ke(t)]})}};function Ke(e){return{uri:c.Uri.parse(e.uri),range:m(e.range)}}var jt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){let t=e.uri;return this._worker(t).then(o=>o.findReferences(t.toString(),k(n))).then(o=>{if(o)return o.map(Ke)})}},et=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){let t=e.uri;return this._worker(t).then(o=>o.doRename(t.toString(),k(n),i)).then(o=>Dt(o))}};function Dt(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){let r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:m(t.range),text:t.newText}})}return{edits:n}}var tt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){let i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>Mt(t)?rt(t):{name:t.name,detail:"",containerName:t.containerName,kind:nt(t.kind),range:m(t.location.range),selectionRange:m(t.location.range),tags:[]})})}};function Mt(e){return"children"in e}function rt(e){return{name:e.name,detail:e.detail??"",kind:nt(e.kind),range:m(e.range),selectionRange:m(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map(n=>rt(n))}}function nt(e){let n=c.languages.SymbolKind;switch(e){case p.File:return n.File;case p.Module:return n.Module;case p.Namespace:return n.Namespace;case p.Package:return n.Package;case p.Class:return n.Class;case p.Method:return n.Method;case p.Property:return n.Property;case p.Field:return n.Field;case p.Constructor:return n.Constructor;case p.Enum:return n.Enum;case p.Interface:return n.Interface;case p.Function:return n.Function;case p.Variable:return n.Variable;case p.Constant:return n.Constant;case p.String:return n.String;case p.Number:return n.Number;case p.Boolean:return n.Boolean;case p.Array:return n.Array}return n.Function}var it=class{constructor(e){this._worker=e}provideLinks(e,n){let i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:m(t.range),url:t.target}))}})}},ot=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,st(n)).then(o=>{if(!(!o||o.length===0))return o.map(D)}))}},at=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,n,i,r){let t=e.uri;return this._worker(t).then(o=>o.format(t.toString(),Te(n),st(i)).then(s=>{if(!(!s||s.length===0))return s.map(D)}))}};function st(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Nt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){let i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:m(t.range)}))})}provideColorPresentations(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Te(n.range))).then(t=>{if(t)return t.map(o=>{let s={label:o.label};return o.textEdit&&(s.textEdit=D(o.textEdit)),o.additionalTextEdits&&(s.additionalTextEdits=o.additionalTextEdits.map(D)),s})})}},ut=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(o=>{let s={start:o.startLine+1,end:o.endLine+1};return typeof o.kind<"u"&&(s.kind=Ct(o.kind)),s})})}};function Ct(e){switch(e){case A.Comment:return c.languages.FoldingRangeKind.Comment;case A.Imports:return c.languages.FoldingRangeKind.Imports;case A.Region:return c.languages.FoldingRangeKind.Region}}var ct=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(k))).then(t=>{if(t)return t.map(o=>{let s=[];for(;o;)s.push({range:m(o.range)}),o=o.parent;return s})})}},dt=class extends xt{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function St(e){let n=new Je(e),i=(...t)=>n.getLanguageServiceWorker(...t),r=e.languageId;c.languages.registerCompletionItemProvider(r,new dt(i)),c.languages.registerHoverProvider(r,new Ye(i)),c.languages.registerDocumentHighlightProvider(r,new Ze(i)),c.languages.registerLinkProvider(r,new it(i)),c.languages.registerFoldingRangeProvider(r,new ut(i)),c.languages.registerDocumentSymbolProvider(r,new tt(i)),c.languages.registerSelectionRangeProvider(r,new ct(i)),c.languages.registerRenameProvider(r,new et(i)),r==="html"&&(c.languages.registerDocumentFormattingEditProvider(r,new ot(i)),c.languages.registerDocumentRangeFormattingEditProvider(r,new at(i)))}function Ot(e){let n=[],i=[],r=new Je(e);n.push(r);let t=(...s)=>r.getLanguageServiceWorker(...s);function o(){let{languageId:s,modeConfiguration:u}=e;lt(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(s,new dt(t))),u.hovers&&i.push(c.languages.registerHoverProvider(s,new Ye(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(s,new Ze(t))),u.links&&i.push(c.languages.registerLinkProvider(s,new it(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(s,new tt(t))),u.rename&&i.push(c.languages.registerRenameProvider(s,new et(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(s,new ut(t))),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(s,new ct(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(s,new ot(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(s,new at(t)))}return o(),n.push(Ge(i)),Ge(n)}function Ge(e){return{dispose:()=>lt(e)}}function lt(e){for(;e.length;)e.pop().dispose()}export{xt as CompletionAdapter,yt as DefinitionAdapter,Ft as DiagnosticsAdapter,Nt as DocumentColorAdapter,ot as DocumentFormattingEditProvider,Ze as DocumentHighlightAdapter,it as DocumentLinkAdapter,at as DocumentRangeFormattingEditProvider,tt as DocumentSymbolAdapter,ut as FoldingRangeAdapter,Ye as HoverAdapter,jt as ReferenceAdapter,et as RenameAdapter,ct as SelectionRangeAdapter,Je as WorkerManager,k as fromPosition,Te as fromRange,Ot as setupMode,St as setupMode1,m as toRange,D as toTextEdit};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.
|
|
4
|
-
import{Tl as le}from"./GNFUQ2M5.js";import"./A4BHQPRQ.js";var Ot=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,Rt=Object.getOwnPropertyNames,Mt=Object.prototype.hasOwnProperty,fe=(e,r,i,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of Rt(r))!Mt.call(e,t)&&t!==i&&Ot(e,t,{get:()=>r[t],enumerable:!(n=Nt(r,t))||n.enumerable});return e},Dt=(e,r,i)=>(fe(e,r,"default"),i&&fe(i,r,"default")),f={};Dt(f,le);var Ft=2*60*1e3,Ut=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),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>Ft&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=f.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 r;return this._getClient().then(i=>{r=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>r)}},de;(function(e){function r(i){return typeof i=="string"}e.is=r})(de||(de={}));var Q;(function(e){function r(i){return typeof i=="string"}e.is=r})(Q||(Q={}));var ge;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function r(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=r})(ge||(ge={}));var W;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function r(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=r})(W||(W={}));var O;(function(e){function r(n,t){return n===Number.MAX_VALUE&&(n=W.MAX_VALUE),t===Number.MAX_VALUE&&(t=W.MAX_VALUE),{line:n,character:t}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&a.uinteger(t.line)&&a.uinteger(t.character)}e.is=i})(O||(O={}));var m;(function(e){function r(n,t,o,s){if(a.uinteger(n)&&a.uinteger(t)&&a.uinteger(o)&&a.uinteger(s))return{start:O.create(n,t),end:O.create(o,s)};if(O.is(n)&&O.is(t))return{start:n,end:t};throw new Error(`Range#create called with invalid arguments[${n}, ${t}, ${o}, ${s}]`)}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&O.is(t.start)&&O.is(t.end)}e.is=i})(m||(m={}));var H;(function(e){function r(n,t){return{uri:n,range:t}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&m.is(t.range)&&(a.string(t.uri)||a.undefined(t.uri))}e.is=i})(H||(H={}));var pe;(function(e){function r(n,t,o,s){return{targetUri:n,targetRange:t,targetSelectionRange:o,originSelectionRange:s}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&m.is(t.targetRange)&&a.string(t.targetUri)&&m.is(t.targetSelectionRange)&&(m.is(t.originSelectionRange)||a.undefined(t.originSelectionRange))}e.is=i})(pe||(pe={}));var Y;(function(e){function r(n,t,o,s){return{red:n,green:t,blue:o,alpha:s}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&a.numberRange(t.red,0,1)&&a.numberRange(t.green,0,1)&&a.numberRange(t.blue,0,1)&&a.numberRange(t.alpha,0,1)}e.is=i})(Y||(Y={}));var ve;(function(e){function r(n,t){return{range:n,color:t}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&m.is(t.range)&&Y.is(t.color)}e.is=i})(ve||(ve={}));var me;(function(e){function r(n,t,o){return{label:n,textEdit:t,additionalTextEdits:o}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&a.string(t.label)&&(a.undefined(t.textEdit)||T.is(t))&&(a.undefined(t.additionalTextEdits)||a.typedArray(t.additionalTextEdits,T.is))}e.is=i})(me||(me={}));var P;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(P||(P={}));var he;(function(e){function r(n,t,o,s,u,g){let c={startLine:n,endLine:t};return a.defined(o)&&(c.startCharacter=o),a.defined(s)&&(c.endCharacter=s),a.defined(u)&&(c.kind=u),a.defined(g)&&(c.collapsedText=g),c}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&a.uinteger(t.startLine)&&a.uinteger(t.startLine)&&(a.undefined(t.startCharacter)||a.uinteger(t.startCharacter))&&(a.undefined(t.endCharacter)||a.uinteger(t.endCharacter))&&(a.undefined(t.kind)||a.string(t.kind))}e.is=i})(he||(he={}));var G;(function(e){function r(n,t){return{location:n,message:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&H.is(t.location)&&a.string(t.message)}e.is=i})(G||(G={}));var F;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(F||(F={}));var _e;(function(e){e.Unnecessary=1,e.Deprecated=2})(_e||(_e={}));var ke;(function(e){function r(i){let n=i;return a.objectLiteral(n)&&a.string(n.href)}e.is=r})(ke||(ke={}));var z;(function(e){function r(n,t,o,s,u,g){let c={range:n,message:t};return a.defined(o)&&(c.severity=o),a.defined(s)&&(c.code=s),a.defined(u)&&(c.source=u),a.defined(g)&&(c.relatedInformation=g),c}e.create=r;function i(n){var t;let o=n;return a.defined(o)&&m.is(o.range)&&a.string(o.message)&&(a.number(o.severity)||a.undefined(o.severity))&&(a.integer(o.code)||a.string(o.code)||a.undefined(o.code))&&(a.undefined(o.codeDescription)||a.string((t=o.codeDescription)===null||t===void 0?void 0:t.href))&&(a.string(o.source)||a.undefined(o.source))&&(a.undefined(o.relatedInformation)||a.typedArray(o.relatedInformation,G.is))}e.is=i})(z||(z={}));var U;(function(e){function r(n,t,...o){let s={title:n,command:t};return a.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.title)&&a.string(t.command)}e.is=i})(U||(U={}));var T;(function(e){function r(o,s){return{range:o,newText:s}}e.replace=r;function i(o,s){return{range:{start:o,end:o},newText:s}}e.insert=i;function n(o){return{range:o,newText:""}}e.del=n;function t(o){let s=o;return a.objectLiteral(s)&&a.string(s.newText)&&m.is(s.range)}e.is=t})(T||(T={}));var Z;(function(e){function r(n,t,o){let s={label:n};return t!==void 0&&(s.needsConfirmation=t),o!==void 0&&(s.description=o),s}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&a.string(t.label)&&(a.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(a.string(t.description)||t.description===void 0)}e.is=i})(Z||(Z={}));var j;(function(e){function r(i){let n=i;return a.string(n)}e.is=r})(j||(j={}));var be;(function(e){function r(o,s,u){return{range:o,newText:s,annotationId:u}}e.replace=r;function i(o,s,u){return{range:{start:o,end:o},newText:s,annotationId:u}}e.insert=i;function n(o,s){return{range:o,newText:"",annotationId:s}}e.del=n;function t(o){let s=o;return T.is(s)&&(Z.is(s.annotationId)||j.is(s.annotationId))}e.is=t})(be||(be={}));var K;(function(e){function r(n,t){return{textDocument:n,edits:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&re.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(K||(K={}));var C;(function(e){function r(n,t,o){let s={kind:"create",uri:n};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=r;function i(n){let t=n;return t&&t.kind==="create"&&a.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||j.is(t.annotationId))}e.is=i})(C||(C={}));var ee;(function(e){function r(n,t,o,s){let u={kind:"rename",oldUri:n,newUri:t};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),s!==void 0&&(u.annotationId=s),u}e.create=r;function i(n){let t=n;return t&&t.kind==="rename"&&a.string(t.oldUri)&&a.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||j.is(t.annotationId))}e.is=i})(ee||(ee={}));var te;(function(e){function r(n,t,o){let s={kind:"delete",uri:n};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=r;function i(n){let t=n;return t&&t.kind==="delete"&&a.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||a.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||a.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||j.is(t.annotationId))}e.is=i})(te||(te={}));var ne;(function(e){function r(i){let n=i;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(t=>a.string(t.kind)?C.is(t)||ee.is(t)||te.is(t):K.is(t)))}e.is=r})(ne||(ne={}));var we;(function(e){function r(n){return{uri:n}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)}e.is=i})(we||(we={}));var Ae;(function(e){function r(n,t){return{uri:n,version:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)&&a.integer(t.version)}e.is=i})(Ae||(Ae={}));var re;(function(e){function r(n,t){return{uri:n,version:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)&&(t.version===null||a.integer(t.version))}e.is=i})(re||(re={}));var Ie;(function(e){function r(n,t,o,s){return{uri:n,languageId:t,version:o,text:s}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)&&a.string(t.languageId)&&a.integer(t.version)&&a.string(t.text)}e.is=i})(Ie||(Ie={}));var ie;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(i){let n=i;return n===e.PlainText||n===e.Markdown}e.is=r})(ie||(ie={}));var V;(function(e){function r(i){let n=i;return a.objectLiteral(i)&&ie.is(n.kind)&&a.string(n.value)}e.is=r})(V||(V={}));var h;(function(e){e.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})(h||(h={}));var oe;(function(e){e.PlainText=1,e.Snippet=2})(oe||(oe={}));var Ee;(function(e){e.Deprecated=1})(Ee||(Ee={}));var Le;(function(e){function r(n,t,o){return{newText:n,insert:t,replace:o}}e.create=r;function i(n){let t=n;return t&&a.string(t.newText)&&m.is(t.insert)&&m.is(t.replace)}e.is=i})(Le||(Le={}));var Oe;(function(e){e.asIs=1,e.adjustIndentation=2})(Oe||(Oe={}));var Ne;(function(e){function r(i){let n=i;return n&&(a.string(n.detail)||n.detail===void 0)&&(a.string(n.description)||n.description===void 0)}e.is=r})(Ne||(Ne={}));var Re;(function(e){function r(i){return{label:i}}e.create=r})(Re||(Re={}));var Me;(function(e){function r(i,n){return{items:i||[],isIncomplete:!!n}}e.create=r})(Me||(Me={}));var X;(function(e){function r(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function i(n){let t=n;return a.string(t)||a.objectLiteral(t)&&a.string(t.language)&&a.string(t.value)}e.is=i})(X||(X={}));var De;(function(e){function r(i){let n=i;return!!n&&a.objectLiteral(n)&&(V.is(n.contents)||X.is(n.contents)||a.typedArray(n.contents,X.is))&&(i.range===void 0||m.is(i.range))}e.is=r})(De||(De={}));var Fe;(function(e){function r(i,n){return n?{label:i,documentation:n}:{label:i}}e.create=r})(Fe||(Fe={}));var Ue;(function(e){function r(i,n,...t){let o={label:i};return a.defined(n)&&(o.documentation=n),a.defined(t)?o.parameters=t:o.parameters=[],o}e.create=r})(Ue||(Ue={}));var S;(function(e){e.Text=1,e.Read=2,e.Write=3})(S||(S={}));var Te;(function(e){function r(i,n){let t={range:i};return a.number(n)&&(t.kind=n),t}e.create=r})(Te||(Te={}));var _;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(_||(_={}));var je;(function(e){e.Deprecated=1})(je||(je={}));var xe;(function(e){function r(i,n,t,o,s){let u={name:i,kind:n,location:{uri:o,range:t}};return s&&(u.containerName=s),u}e.create=r})(xe||(xe={}));var ye;(function(e){function r(i,n,t,o){return o!==void 0?{name:i,kind:n,location:{uri:t,range:o}}:{name:i,kind:n,location:{uri:t}}}e.create=r})(ye||(ye={}));var Pe;(function(e){function r(n,t,o,s,u,g){let c={name:n,detail:t,kind:o,range:s,selectionRange:u};return g!==void 0&&(c.children=g),c}e.create=r;function i(n){let t=n;return t&&a.string(t.name)&&a.number(t.kind)&&m.is(t.range)&&m.is(t.selectionRange)&&(t.detail===void 0||a.string(t.detail))&&(t.deprecated===void 0||a.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=i})(Pe||(Pe={}));var Se;(function(e){e.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"})(Se||(Se={}));var q;(function(e){e.Invoked=1,e.Automatic=2})(q||(q={}));var Ve;(function(e){function r(n,t,o){let s={diagnostics:n};return t!=null&&(s.only=t),o!=null&&(s.triggerKind=o),s}e.create=r;function i(n){let t=n;return a.defined(t)&&a.typedArray(t.diagnostics,z.is)&&(t.only===void 0||a.typedArray(t.only,a.string))&&(t.triggerKind===void 0||t.triggerKind===q.Invoked||t.triggerKind===q.Automatic)}e.is=i})(Ve||(Ve={}));var Be;(function(e){function r(n,t,o){let s={title:n},u=!0;return typeof t=="string"?(u=!1,s.kind=t):U.is(t)?s.command=t:s.edit=t,u&&o!==void 0&&(s.kind=o),s}e.create=r;function i(n){let t=n;return t&&a.string(t.title)&&(t.diagnostics===void 0||a.typedArray(t.diagnostics,z.is))&&(t.kind===void 0||a.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||U.is(t.command))&&(t.isPreferred===void 0||a.boolean(t.isPreferred))&&(t.edit===void 0||ne.is(t.edit))}e.is=i})(Be||(Be={}));var We;(function(e){function r(n,t){let o={range:n};return a.defined(t)&&(o.data=t),o}e.create=r;function i(n){let t=n;return a.defined(t)&&m.is(t.range)&&(a.undefined(t.command)||U.is(t.command))}e.is=i})(We||(We={}));var He;(function(e){function r(n,t){return{tabSize:n,insertSpaces:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.uinteger(t.tabSize)&&a.boolean(t.insertSpaces)}e.is=i})(He||(He={}));var ze;(function(e){function r(n,t,o){return{range:n,target:t,data:o}}e.create=r;function i(n){let t=n;return a.defined(t)&&m.is(t.range)&&(a.undefined(t.target)||a.string(t.target))}e.is=i})(ze||(ze={}));var Xe;(function(e){function r(n,t){return{range:n,parent:t}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&m.is(t.range)&&(t.parent===void 0||e.is(t.parent))}e.is=i})(Xe||(Xe={}));var qe;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(qe||(qe={}));var Je;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Je||(Je={}));var $e;(function(e){function r(i){let n=i;return a.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}e.is=r})($e||($e={}));var Qe;(function(e){function r(n,t){return{range:n,text:t}}e.create=r;function i(n){let t=n;return t!=null&&m.is(t.range)&&a.string(t.text)}e.is=i})(Qe||(Qe={}));var Ye;(function(e){function r(n,t,o){return{range:n,variableName:t,caseSensitiveLookup:o}}e.create=r;function i(n){let t=n;return t!=null&&m.is(t.range)&&a.boolean(t.caseSensitiveLookup)&&(a.string(t.variableName)||t.variableName===void 0)}e.is=i})(Ye||(Ye={}));var Ge;(function(e){function r(n,t){return{range:n,expression:t}}e.create=r;function i(n){let t=n;return t!=null&&m.is(t.range)&&(a.string(t.expression)||t.expression===void 0)}e.is=i})(Ge||(Ge={}));var Ze;(function(e){function r(n,t){return{frameId:n,stoppedLocation:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&m.is(n.stoppedLocation)}e.is=i})(Ze||(Ze={}));var se;(function(e){e.Type=1,e.Parameter=2;function r(i){return i===1||i===2}e.is=r})(se||(se={}));var ae;(function(e){function r(n){return{value:n}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&(t.tooltip===void 0||a.string(t.tooltip)||V.is(t.tooltip))&&(t.location===void 0||H.is(t.location))&&(t.command===void 0||U.is(t.command))}e.is=i})(ae||(ae={}));var Ke;(function(e){function r(n,t,o){let s={position:n,label:t};return o!==void 0&&(s.kind=o),s}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&O.is(t.position)&&(a.string(t.label)||a.typedArray(t.label,ae.is))&&(t.kind===void 0||se.is(t.kind))&&t.textEdits===void 0||a.typedArray(t.textEdits,T.is)&&(t.tooltip===void 0||a.string(t.tooltip)||V.is(t.tooltip))&&(t.paddingLeft===void 0||a.boolean(t.paddingLeft))&&(t.paddingRight===void 0||a.boolean(t.paddingRight))}e.is=i})(Ke||(Ke={}));var Ce;(function(e){function r(i){return{kind:"snippet",value:i}}e.createSnippet=r})(Ce||(Ce={}));var et;(function(e){function r(i,n,t,o){return{insertText:i,filterText:n,range:t,command:o}}e.create=r})(et||(et={}));var tt;(function(e){function r(i){return{items:i}}e.create=r})(tt||(tt={}));var nt;(function(e){e.Invoked=0,e.Automatic=1})(nt||(nt={}));var rt;(function(e){function r(i,n){return{range:i,text:n}}e.create=r})(rt||(rt={}));var it;(function(e){function r(i,n){return{triggerKind:i,selectedCompletionInfo:n}}e.create=r})(it||(it={}));var ot;(function(e){function r(i){let n=i;return a.objectLiteral(n)&&Q.is(n.uri)&&a.string(n.name)}e.is=r})(ot||(ot={}));var st;(function(e){function r(o,s,u,g){return new Tt(o,s,u,g)}e.create=r;function i(o){let s=o;return!!(a.defined(s)&&a.string(s.uri)&&(a.undefined(s.languageId)||a.string(s.languageId))&&a.uinteger(s.lineCount)&&a.func(s.getText)&&a.func(s.positionAt)&&a.func(s.offsetAt))}e.is=i;function n(o,s){let u=o.getText(),g=t(s,(v,d)=>{let k=v.range.start.line-d.range.start.line;return k===0?v.range.start.character-d.range.start.character:k}),c=u.length;for(let v=g.length-1;v>=0;v--){let d=g[v],k=o.offsetAt(d.range.start),p=o.offsetAt(d.range.end);if(p<=c)u=u.substring(0,k)+d.newText+u.substring(p,u.length);else throw new Error("Overlapping edit");c=k}return u}e.applyEdits=n;function t(o,s){if(o.length<=1)return o;let u=o.length/2|0,g=o.slice(0,u),c=o.slice(u);t(g,s),t(c,s);let v=0,d=0,k=0;for(;v<g.length&&d<c.length;)s(g[v],c[d])<=0?o[k++]=g[v++]:o[k++]=c[d++];for(;v<g.length;)o[k++]=g[v++];for(;d<c.length;)o[k++]=c[d++];return o}})(st||(st={}));var Tt=class{constructor(e,r,i,n){this._uri=e,this._languageId=r,this._version=i,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let r=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(r,i)}return this._content}update(e,r){this._content=e.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],r=this._content,i=!0;for(let n=0;n<r.length;n++){i&&(e.push(n),i=!1);let t=r.charAt(n);i=t==="\r"||t===`
|
|
3
|
+
v4.33.0-next.85 */
|
|
4
|
+
import{Tl as le}from"./Z33AYGSJ.js";import"./W22GE6G5.js";var Ot=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,Rt=Object.getOwnPropertyNames,Mt=Object.prototype.hasOwnProperty,fe=(e,r,i,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of Rt(r))!Mt.call(e,t)&&t!==i&&Ot(e,t,{get:()=>r[t],enumerable:!(n=Nt(r,t))||n.enumerable});return e},Dt=(e,r,i)=>(fe(e,r,"default"),i&&fe(i,r,"default")),f={};Dt(f,le);var Ft=2*60*1e3,Ut=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),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>Ft&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=f.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 r;return this._getClient().then(i=>{r=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>r)}},de;(function(e){function r(i){return typeof i=="string"}e.is=r})(de||(de={}));var Q;(function(e){function r(i){return typeof i=="string"}e.is=r})(Q||(Q={}));var ge;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function r(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=r})(ge||(ge={}));var W;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function r(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=r})(W||(W={}));var O;(function(e){function r(n,t){return n===Number.MAX_VALUE&&(n=W.MAX_VALUE),t===Number.MAX_VALUE&&(t=W.MAX_VALUE),{line:n,character:t}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&a.uinteger(t.line)&&a.uinteger(t.character)}e.is=i})(O||(O={}));var m;(function(e){function r(n,t,o,s){if(a.uinteger(n)&&a.uinteger(t)&&a.uinteger(o)&&a.uinteger(s))return{start:O.create(n,t),end:O.create(o,s)};if(O.is(n)&&O.is(t))return{start:n,end:t};throw new Error(`Range#create called with invalid arguments[${n}, ${t}, ${o}, ${s}]`)}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&O.is(t.start)&&O.is(t.end)}e.is=i})(m||(m={}));var H;(function(e){function r(n,t){return{uri:n,range:t}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&m.is(t.range)&&(a.string(t.uri)||a.undefined(t.uri))}e.is=i})(H||(H={}));var pe;(function(e){function r(n,t,o,s){return{targetUri:n,targetRange:t,targetSelectionRange:o,originSelectionRange:s}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&m.is(t.targetRange)&&a.string(t.targetUri)&&m.is(t.targetSelectionRange)&&(m.is(t.originSelectionRange)||a.undefined(t.originSelectionRange))}e.is=i})(pe||(pe={}));var Y;(function(e){function r(n,t,o,s){return{red:n,green:t,blue:o,alpha:s}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&a.numberRange(t.red,0,1)&&a.numberRange(t.green,0,1)&&a.numberRange(t.blue,0,1)&&a.numberRange(t.alpha,0,1)}e.is=i})(Y||(Y={}));var ve;(function(e){function r(n,t){return{range:n,color:t}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&m.is(t.range)&&Y.is(t.color)}e.is=i})(ve||(ve={}));var me;(function(e){function r(n,t,o){return{label:n,textEdit:t,additionalTextEdits:o}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&a.string(t.label)&&(a.undefined(t.textEdit)||T.is(t))&&(a.undefined(t.additionalTextEdits)||a.typedArray(t.additionalTextEdits,T.is))}e.is=i})(me||(me={}));var P;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(P||(P={}));var he;(function(e){function r(n,t,o,s,u,g){let c={startLine:n,endLine:t};return a.defined(o)&&(c.startCharacter=o),a.defined(s)&&(c.endCharacter=s),a.defined(u)&&(c.kind=u),a.defined(g)&&(c.collapsedText=g),c}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&a.uinteger(t.startLine)&&a.uinteger(t.startLine)&&(a.undefined(t.startCharacter)||a.uinteger(t.startCharacter))&&(a.undefined(t.endCharacter)||a.uinteger(t.endCharacter))&&(a.undefined(t.kind)||a.string(t.kind))}e.is=i})(he||(he={}));var G;(function(e){function r(n,t){return{location:n,message:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&H.is(t.location)&&a.string(t.message)}e.is=i})(G||(G={}));var F;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(F||(F={}));var _e;(function(e){e.Unnecessary=1,e.Deprecated=2})(_e||(_e={}));var ke;(function(e){function r(i){let n=i;return a.objectLiteral(n)&&a.string(n.href)}e.is=r})(ke||(ke={}));var z;(function(e){function r(n,t,o,s,u,g){let c={range:n,message:t};return a.defined(o)&&(c.severity=o),a.defined(s)&&(c.code=s),a.defined(u)&&(c.source=u),a.defined(g)&&(c.relatedInformation=g),c}e.create=r;function i(n){var t;let o=n;return a.defined(o)&&m.is(o.range)&&a.string(o.message)&&(a.number(o.severity)||a.undefined(o.severity))&&(a.integer(o.code)||a.string(o.code)||a.undefined(o.code))&&(a.undefined(o.codeDescription)||a.string((t=o.codeDescription)===null||t===void 0?void 0:t.href))&&(a.string(o.source)||a.undefined(o.source))&&(a.undefined(o.relatedInformation)||a.typedArray(o.relatedInformation,G.is))}e.is=i})(z||(z={}));var U;(function(e){function r(n,t,...o){let s={title:n,command:t};return a.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.title)&&a.string(t.command)}e.is=i})(U||(U={}));var T;(function(e){function r(o,s){return{range:o,newText:s}}e.replace=r;function i(o,s){return{range:{start:o,end:o},newText:s}}e.insert=i;function n(o){return{range:o,newText:""}}e.del=n;function t(o){let s=o;return a.objectLiteral(s)&&a.string(s.newText)&&m.is(s.range)}e.is=t})(T||(T={}));var Z;(function(e){function r(n,t,o){let s={label:n};return t!==void 0&&(s.needsConfirmation=t),o!==void 0&&(s.description=o),s}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&a.string(t.label)&&(a.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(a.string(t.description)||t.description===void 0)}e.is=i})(Z||(Z={}));var j;(function(e){function r(i){let n=i;return a.string(n)}e.is=r})(j||(j={}));var be;(function(e){function r(o,s,u){return{range:o,newText:s,annotationId:u}}e.replace=r;function i(o,s,u){return{range:{start:o,end:o},newText:s,annotationId:u}}e.insert=i;function n(o,s){return{range:o,newText:"",annotationId:s}}e.del=n;function t(o){let s=o;return T.is(s)&&(Z.is(s.annotationId)||j.is(s.annotationId))}e.is=t})(be||(be={}));var K;(function(e){function r(n,t){return{textDocument:n,edits:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&re.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(K||(K={}));var C;(function(e){function r(n,t,o){let s={kind:"create",uri:n};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=r;function i(n){let t=n;return t&&t.kind==="create"&&a.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||j.is(t.annotationId))}e.is=i})(C||(C={}));var ee;(function(e){function r(n,t,o,s){let u={kind:"rename",oldUri:n,newUri:t};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),s!==void 0&&(u.annotationId=s),u}e.create=r;function i(n){let t=n;return t&&t.kind==="rename"&&a.string(t.oldUri)&&a.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||j.is(t.annotationId))}e.is=i})(ee||(ee={}));var te;(function(e){function r(n,t,o){let s={kind:"delete",uri:n};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=r;function i(n){let t=n;return t&&t.kind==="delete"&&a.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||a.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||a.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||j.is(t.annotationId))}e.is=i})(te||(te={}));var ne;(function(e){function r(i){let n=i;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(t=>a.string(t.kind)?C.is(t)||ee.is(t)||te.is(t):K.is(t)))}e.is=r})(ne||(ne={}));var we;(function(e){function r(n){return{uri:n}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)}e.is=i})(we||(we={}));var Ae;(function(e){function r(n,t){return{uri:n,version:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)&&a.integer(t.version)}e.is=i})(Ae||(Ae={}));var re;(function(e){function r(n,t){return{uri:n,version:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)&&(t.version===null||a.integer(t.version))}e.is=i})(re||(re={}));var Ie;(function(e){function r(n,t,o,s){return{uri:n,languageId:t,version:o,text:s}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)&&a.string(t.languageId)&&a.integer(t.version)&&a.string(t.text)}e.is=i})(Ie||(Ie={}));var ie;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(i){let n=i;return n===e.PlainText||n===e.Markdown}e.is=r})(ie||(ie={}));var V;(function(e){function r(i){let n=i;return a.objectLiteral(i)&&ie.is(n.kind)&&a.string(n.value)}e.is=r})(V||(V={}));var h;(function(e){e.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})(h||(h={}));var oe;(function(e){e.PlainText=1,e.Snippet=2})(oe||(oe={}));var Ee;(function(e){e.Deprecated=1})(Ee||(Ee={}));var Le;(function(e){function r(n,t,o){return{newText:n,insert:t,replace:o}}e.create=r;function i(n){let t=n;return t&&a.string(t.newText)&&m.is(t.insert)&&m.is(t.replace)}e.is=i})(Le||(Le={}));var Oe;(function(e){e.asIs=1,e.adjustIndentation=2})(Oe||(Oe={}));var Ne;(function(e){function r(i){let n=i;return n&&(a.string(n.detail)||n.detail===void 0)&&(a.string(n.description)||n.description===void 0)}e.is=r})(Ne||(Ne={}));var Re;(function(e){function r(i){return{label:i}}e.create=r})(Re||(Re={}));var Me;(function(e){function r(i,n){return{items:i||[],isIncomplete:!!n}}e.create=r})(Me||(Me={}));var X;(function(e){function r(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function i(n){let t=n;return a.string(t)||a.objectLiteral(t)&&a.string(t.language)&&a.string(t.value)}e.is=i})(X||(X={}));var De;(function(e){function r(i){let n=i;return!!n&&a.objectLiteral(n)&&(V.is(n.contents)||X.is(n.contents)||a.typedArray(n.contents,X.is))&&(i.range===void 0||m.is(i.range))}e.is=r})(De||(De={}));var Fe;(function(e){function r(i,n){return n?{label:i,documentation:n}:{label:i}}e.create=r})(Fe||(Fe={}));var Ue;(function(e){function r(i,n,...t){let o={label:i};return a.defined(n)&&(o.documentation=n),a.defined(t)?o.parameters=t:o.parameters=[],o}e.create=r})(Ue||(Ue={}));var S;(function(e){e.Text=1,e.Read=2,e.Write=3})(S||(S={}));var Te;(function(e){function r(i,n){let t={range:i};return a.number(n)&&(t.kind=n),t}e.create=r})(Te||(Te={}));var _;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(_||(_={}));var je;(function(e){e.Deprecated=1})(je||(je={}));var xe;(function(e){function r(i,n,t,o,s){let u={name:i,kind:n,location:{uri:o,range:t}};return s&&(u.containerName=s),u}e.create=r})(xe||(xe={}));var ye;(function(e){function r(i,n,t,o){return o!==void 0?{name:i,kind:n,location:{uri:t,range:o}}:{name:i,kind:n,location:{uri:t}}}e.create=r})(ye||(ye={}));var Pe;(function(e){function r(n,t,o,s,u,g){let c={name:n,detail:t,kind:o,range:s,selectionRange:u};return g!==void 0&&(c.children=g),c}e.create=r;function i(n){let t=n;return t&&a.string(t.name)&&a.number(t.kind)&&m.is(t.range)&&m.is(t.selectionRange)&&(t.detail===void 0||a.string(t.detail))&&(t.deprecated===void 0||a.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=i})(Pe||(Pe={}));var Se;(function(e){e.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"})(Se||(Se={}));var q;(function(e){e.Invoked=1,e.Automatic=2})(q||(q={}));var Ve;(function(e){function r(n,t,o){let s={diagnostics:n};return t!=null&&(s.only=t),o!=null&&(s.triggerKind=o),s}e.create=r;function i(n){let t=n;return a.defined(t)&&a.typedArray(t.diagnostics,z.is)&&(t.only===void 0||a.typedArray(t.only,a.string))&&(t.triggerKind===void 0||t.triggerKind===q.Invoked||t.triggerKind===q.Automatic)}e.is=i})(Ve||(Ve={}));var Be;(function(e){function r(n,t,o){let s={title:n},u=!0;return typeof t=="string"?(u=!1,s.kind=t):U.is(t)?s.command=t:s.edit=t,u&&o!==void 0&&(s.kind=o),s}e.create=r;function i(n){let t=n;return t&&a.string(t.title)&&(t.diagnostics===void 0||a.typedArray(t.diagnostics,z.is))&&(t.kind===void 0||a.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||U.is(t.command))&&(t.isPreferred===void 0||a.boolean(t.isPreferred))&&(t.edit===void 0||ne.is(t.edit))}e.is=i})(Be||(Be={}));var We;(function(e){function r(n,t){let o={range:n};return a.defined(t)&&(o.data=t),o}e.create=r;function i(n){let t=n;return a.defined(t)&&m.is(t.range)&&(a.undefined(t.command)||U.is(t.command))}e.is=i})(We||(We={}));var He;(function(e){function r(n,t){return{tabSize:n,insertSpaces:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.uinteger(t.tabSize)&&a.boolean(t.insertSpaces)}e.is=i})(He||(He={}));var ze;(function(e){function r(n,t,o){return{range:n,target:t,data:o}}e.create=r;function i(n){let t=n;return a.defined(t)&&m.is(t.range)&&(a.undefined(t.target)||a.string(t.target))}e.is=i})(ze||(ze={}));var Xe;(function(e){function r(n,t){return{range:n,parent:t}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&m.is(t.range)&&(t.parent===void 0||e.is(t.parent))}e.is=i})(Xe||(Xe={}));var qe;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(qe||(qe={}));var Je;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Je||(Je={}));var $e;(function(e){function r(i){let n=i;return a.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}e.is=r})($e||($e={}));var Qe;(function(e){function r(n,t){return{range:n,text:t}}e.create=r;function i(n){let t=n;return t!=null&&m.is(t.range)&&a.string(t.text)}e.is=i})(Qe||(Qe={}));var Ye;(function(e){function r(n,t,o){return{range:n,variableName:t,caseSensitiveLookup:o}}e.create=r;function i(n){let t=n;return t!=null&&m.is(t.range)&&a.boolean(t.caseSensitiveLookup)&&(a.string(t.variableName)||t.variableName===void 0)}e.is=i})(Ye||(Ye={}));var Ge;(function(e){function r(n,t){return{range:n,expression:t}}e.create=r;function i(n){let t=n;return t!=null&&m.is(t.range)&&(a.string(t.expression)||t.expression===void 0)}e.is=i})(Ge||(Ge={}));var Ze;(function(e){function r(n,t){return{frameId:n,stoppedLocation:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&m.is(n.stoppedLocation)}e.is=i})(Ze||(Ze={}));var se;(function(e){e.Type=1,e.Parameter=2;function r(i){return i===1||i===2}e.is=r})(se||(se={}));var ae;(function(e){function r(n){return{value:n}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&(t.tooltip===void 0||a.string(t.tooltip)||V.is(t.tooltip))&&(t.location===void 0||H.is(t.location))&&(t.command===void 0||U.is(t.command))}e.is=i})(ae||(ae={}));var Ke;(function(e){function r(n,t,o){let s={position:n,label:t};return o!==void 0&&(s.kind=o),s}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&O.is(t.position)&&(a.string(t.label)||a.typedArray(t.label,ae.is))&&(t.kind===void 0||se.is(t.kind))&&t.textEdits===void 0||a.typedArray(t.textEdits,T.is)&&(t.tooltip===void 0||a.string(t.tooltip)||V.is(t.tooltip))&&(t.paddingLeft===void 0||a.boolean(t.paddingLeft))&&(t.paddingRight===void 0||a.boolean(t.paddingRight))}e.is=i})(Ke||(Ke={}));var Ce;(function(e){function r(i){return{kind:"snippet",value:i}}e.createSnippet=r})(Ce||(Ce={}));var et;(function(e){function r(i,n,t,o){return{insertText:i,filterText:n,range:t,command:o}}e.create=r})(et||(et={}));var tt;(function(e){function r(i){return{items:i}}e.create=r})(tt||(tt={}));var nt;(function(e){e.Invoked=0,e.Automatic=1})(nt||(nt={}));var rt;(function(e){function r(i,n){return{range:i,text:n}}e.create=r})(rt||(rt={}));var it;(function(e){function r(i,n){return{triggerKind:i,selectedCompletionInfo:n}}e.create=r})(it||(it={}));var ot;(function(e){function r(i){let n=i;return a.objectLiteral(n)&&Q.is(n.uri)&&a.string(n.name)}e.is=r})(ot||(ot={}));var st;(function(e){function r(o,s,u,g){return new Tt(o,s,u,g)}e.create=r;function i(o){let s=o;return!!(a.defined(s)&&a.string(s.uri)&&(a.undefined(s.languageId)||a.string(s.languageId))&&a.uinteger(s.lineCount)&&a.func(s.getText)&&a.func(s.positionAt)&&a.func(s.offsetAt))}e.is=i;function n(o,s){let u=o.getText(),g=t(s,(v,d)=>{let k=v.range.start.line-d.range.start.line;return k===0?v.range.start.character-d.range.start.character:k}),c=u.length;for(let v=g.length-1;v>=0;v--){let d=g[v],k=o.offsetAt(d.range.start),p=o.offsetAt(d.range.end);if(p<=c)u=u.substring(0,k)+d.newText+u.substring(p,u.length);else throw new Error("Overlapping edit");c=k}return u}e.applyEdits=n;function t(o,s){if(o.length<=1)return o;let u=o.length/2|0,g=o.slice(0,u),c=o.slice(u);t(g,s),t(c,s);let v=0,d=0,k=0;for(;v<g.length&&d<c.length;)s(g[v],c[d])<=0?o[k++]=g[v++]:o[k++]=c[d++];for(;v<g.length;)o[k++]=g[v++];for(;d<c.length;)o[k++]=c[d++];return o}})(st||(st={}));var Tt=class{constructor(e,r,i,n){this._uri=e,this._languageId=r,this._version=i,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let r=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(r,i)}return this._content}update(e,r){this._content=e.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],r=this._content,i=!0;for(let n=0;n<r.length;n++){i&&(e.push(n),i=!1);let t=r.charAt(n);i=t==="\r"||t===`
|
|
5
5
|
`,t==="\r"&&n+1<r.length&&r.charAt(n+1)===`
|
|
6
6
|
`&&n++}i&&r.length>0&&e.push(r.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let r=this.getLineOffsets(),i=0,n=r.length;if(n===0)return O.create(0,e);for(;i<n;){let o=Math.floor((i+n)/2);r[o]>e?n=o:i=o+1}let t=i-1;return O.create(t,e-r[t])}offsetAt(e){let r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;let i=r[e.line],n=e.line+1<r.length?r[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,n),i)}get lineCount(){return this.getLineOffsets().length}},a;(function(e){let r=Object.prototype.toString;function i(p){return typeof p<"u"}e.defined=i;function n(p){return typeof p>"u"}e.undefined=n;function t(p){return p===!0||p===!1}e.boolean=t;function o(p){return r.call(p)==="[object String]"}e.string=o;function s(p){return r.call(p)==="[object Number]"}e.number=s;function u(p,N,J){return r.call(p)==="[object Number]"&&N<=p&&p<=J}e.numberRange=u;function g(p){return r.call(p)==="[object Number]"&&-2147483648<=p&&p<=2147483647}e.integer=g;function c(p){return r.call(p)==="[object Number]"&&0<=p&&p<=2147483647}e.uinteger=c;function v(p){return r.call(p)==="[object Function]"}e.func=v;function d(p){return p!==null&&typeof p=="object"}e.objectLiteral=d;function k(p,N){return Array.isArray(p)&&p.every(N)}e.typedArray=k})(a||(a={}));var jt=class{constructor(e,r,i){this._languageId=e,this._worker=r,this._disposables=[],this._listener=Object.create(null);let n=o=>{let s=o.getLanguageId();if(s!==this._languageId)return;let u;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(o.uri,s),500)}),this._doValidate(o.uri,s)},t=o=>{f.editor.setModelMarkers(o,this._languageId,[]);let s=o.uri.toString(),u=this._listener[s];u&&(u.dispose(),delete this._listener[s])};this._disposables.push(f.editor.onDidCreateModel(n)),this._disposables.push(f.editor.onWillDisposeModel(t)),this._disposables.push(f.editor.onDidChangeModelLanguage(o=>{t(o.model),n(o.model)})),this._disposables.push(i(o=>{f.editor.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(t(s),n(s))})})),this._disposables.push({dispose:()=>{f.editor.getModels().forEach(t);for(let o in this._listener)this._listener[o].dispose()}}),f.editor.getModels().forEach(n)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,r){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{let n=i.map(o=>yt(e,o)),t=f.editor.getModel(e);t&&t.getLanguageId()===r&&f.editor.setModelMarkers(t,r,n)}).then(void 0,i=>{console.error(i)})}};function xt(e){switch(e){case F.Error:return f.MarkerSeverity.Error;case F.Warning:return f.MarkerSeverity.Warning;case F.Information:return f.MarkerSeverity.Info;case F.Hint:return f.MarkerSeverity.Hint;default:return f.MarkerSeverity.Info}}function yt(e,r){let i=typeof r.code=="number"?String(r.code):r.code;return{severity:xt(r.severity),startLineNumber:r.range.start.line+1,startColumn:r.range.start.character+1,endLineNumber:r.range.end.line+1,endColumn:r.range.end.character+1,message:r.message,code:i,source:r.source}}var Pt=class{constructor(e,r){this._worker=e,this._triggerCharacters=r}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,r,i,n){let t=e.uri;return this._worker(t).then(o=>o.doComplete(t.toString(),R(r))).then(o=>{if(!o)return;let s=e.getWordUntilPosition(r),u=new f.Range(r.lineNumber,s.startColumn,r.lineNumber,s.endColumn),g=o.items.map(c=>{let v={label:c.label,insertText:c.insertText||c.label,sortText:c.sortText,filterText:c.filterText,documentation:c.documentation,detail:c.detail,command:Bt(c.command),range:u,kind:Vt(c.kind)};return c.textEdit&&(St(c.textEdit)?v.range={insert:w(c.textEdit.insert),replace:w(c.textEdit.replace)}:v.range=w(c.textEdit.range),v.insertText=c.textEdit.newText),c.additionalTextEdits&&(v.additionalTextEdits=c.additionalTextEdits.map(B)),c.insertTextFormat===oe.Snippet&&(v.insertTextRules=f.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:o.isIncomplete,suggestions:g}})}};function R(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function mt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function w(e){if(e)return new f.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function St(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function Vt(e){let r=f.languages.CompletionItemKind;switch(e){case h.Text:return r.Text;case h.Method:return r.Method;case h.Function:return r.Function;case h.Constructor:return r.Constructor;case h.Field:return r.Field;case h.Variable:return r.Variable;case h.Class:return r.Class;case h.Interface:return r.Interface;case h.Module:return r.Module;case h.Property:return r.Property;case h.Unit:return r.Unit;case h.Value:return r.Value;case h.Enum:return r.Enum;case h.Keyword:return r.Keyword;case h.Snippet:return r.Snippet;case h.Color:return r.Color;case h.File:return r.File;case h.Reference:return r.Reference}return r.Property}function B(e){if(e)return{range:w(e.range),text:e.newText}}function Bt(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Wt=class{constructor(e){this._worker=e}provideHover(e,r,i){let n=e.uri;return this._worker(n).then(t=>t.doHover(n.toString(),R(r))).then(t=>{if(t)return{range:w(t.range),contents:zt(t.contents)}})}};function Ht(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function at(e){return typeof e=="string"?{value:e}:Ht(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+`
|
|
7
7
|
`+e.value+"\n```\n"}}function zt(e){if(e)return Array.isArray(e)?e.map(at):[at(e)]}var mn=class{constructor(e){this._worker=e}provideDocumentHighlights(e,r,i){let n=e.uri;return this._worker(n).then(t=>t.findDocumentHighlights(n.toString(),R(r))).then(t=>{if(t)return t.map(o=>({range:w(o.range),kind:Xt(o.kind)}))})}};function Xt(e){switch(e){case S.Read:return f.languages.DocumentHighlightKind.Read;case S.Write:return f.languages.DocumentHighlightKind.Write;case S.Text:return f.languages.DocumentHighlightKind.Text}return f.languages.DocumentHighlightKind.Text}var hn=class{constructor(e){this._worker=e}provideDefinition(e,r,i){let n=e.uri;return this._worker(n).then(t=>t.findDefinition(n.toString(),R(r))).then(t=>{if(t)return[ht(t)]})}};function ht(e){return{uri:f.Uri.parse(e.uri),range:w(e.range)}}var _n=class{constructor(e){this._worker=e}provideReferences(e,r,i,n){let t=e.uri;return this._worker(t).then(o=>o.findReferences(t.toString(),R(r))).then(o=>{if(o)return o.map(ht)})}},kn=class{constructor(e){this._worker=e}provideRenameEdits(e,r,i,n){let t=e.uri;return this._worker(t).then(o=>o.doRename(t.toString(),R(r),i)).then(o=>qt(o))}};function qt(e){if(!e||!e.changes)return;let r=[];for(let i in e.changes){let n=f.Uri.parse(i);for(let t of e.changes[i])r.push({resource:n,versionId:void 0,textEdit:{range:w(t.range),text:t.newText}})}return{edits:r}}var Jt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,r){let i=e.uri;return this._worker(i).then(n=>n.findDocumentSymbols(i.toString())).then(n=>{if(n)return n.map(t=>$t(t)?_t(t):{name:t.name,detail:"",containerName:t.containerName,kind:kt(t.kind),range:w(t.location.range),selectionRange:w(t.location.range),tags:[]})})}};function $t(e){return"children"in e}function _t(e){return{name:e.name,detail:e.detail??"",kind:kt(e.kind),range:w(e.range),selectionRange:w(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map(r=>_t(r))}}function kt(e){let r=f.languages.SymbolKind;switch(e){case _.File:return r.File;case _.Module:return r.Module;case _.Namespace:return r.Namespace;case _.Package:return r.Package;case _.Class:return r.Class;case _.Method:return r.Method;case _.Property:return r.Property;case _.Field:return r.Field;case _.Constructor:return r.Constructor;case _.Enum:return r.Enum;case _.Interface:return r.Interface;case _.Function:return r.Function;case _.Variable:return r.Variable;case _.Constant:return r.Constant;case _.String:return r.String;case _.Number:return r.Number;case _.Boolean:return r.Boolean;case _.Array:return r.Array}return r.Function}var bn=class{constructor(e){this._worker=e}provideLinks(e,r){let i=e.uri;return this._worker(i).then(n=>n.findDocumentLinks(i.toString())).then(n=>{if(n)return{links:n.map(t=>({range:w(t.range),url:t.target}))}})}},Qt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,r,i){let n=e.uri;return this._worker(n).then(t=>t.format(n.toString(),null,bt(r)).then(o=>{if(!(!o||o.length===0))return o.map(B)}))}},Yt=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,r,i,n){let t=e.uri;return this._worker(t).then(o=>o.format(t.toString(),mt(r),bt(i)).then(s=>{if(!(!s||s.length===0))return s.map(B)}))}};function bt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Gt=class{constructor(e){this._worker=e}provideDocumentColors(e,r){let i=e.uri;return this._worker(i).then(n=>n.findDocumentColors(i.toString())).then(n=>{if(n)return n.map(t=>({color:t.color,range:w(t.range)}))})}provideColorPresentations(e,r,i){let n=e.uri;return this._worker(n).then(t=>t.getColorPresentations(n.toString(),r.color,mt(r.range))).then(t=>{if(t)return t.map(o=>{let s={label:o.label};return o.textEdit&&(s.textEdit=B(o.textEdit)),o.additionalTextEdits&&(s.additionalTextEdits=o.additionalTextEdits.map(B)),s})})}},Zt=class{constructor(e){this._worker=e}provideFoldingRanges(e,r,i){let n=e.uri;return this._worker(n).then(t=>t.getFoldingRanges(n.toString(),r)).then(t=>{if(t)return t.map(o=>{let s={start:o.startLine+1,end:o.endLine+1};return typeof o.kind<"u"&&(s.kind=Kt(o.kind)),s})})}};function Kt(e){switch(e){case P.Comment:return f.languages.FoldingRangeKind.Comment;case P.Imports:return f.languages.FoldingRangeKind.Imports;case P.Region:return f.languages.FoldingRangeKind.Region}}var Ct=class{constructor(e){this._worker=e}provideSelectionRanges(e,r,i){let n=e.uri;return this._worker(n).then(t=>t.getSelectionRanges(n.toString(),r.map(R))).then(t=>{if(t)return t.map(o=>{let s=[];for(;o;)s.push({range:w(o.range)}),o=o.parent;return s})})}};function en(e,r=!1){let i=e.length,n=0,t="",o=0,s=16,u=0,g=0,c=0,v=0,d=0;function k(l,A){let L=0,I=0;for(;L<l||!A;){let b=e.charCodeAt(n);if(b>=48&&b<=57)I=I*16+b-48;else if(b>=65&&b<=70)I=I*16+b-65+10;else if(b>=97&&b<=102)I=I*16+b-97+10;else break;n++,L++}return L<l&&(I=-1),I}function p(l){n=l,t="",o=0,s=16,d=0}function N(){let l=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&M(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&M(e.charCodeAt(n)))for(n++;n<e.length&&M(e.charCodeAt(n));)n++;else return d=3,e.substring(l,n);let A=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&M(e.charCodeAt(n))){for(n++;n<e.length&&M(e.charCodeAt(n));)n++;A=n}else d=3;return e.substring(l,A)}function J(){let l="",A=n;for(;;){if(n>=i){l+=e.substring(A,n),d=2;break}let L=e.charCodeAt(n);if(L===34){l+=e.substring(A,n),n++;break}if(L===92){if(l+=e.substring(A,n),n++,n>=i){d=2;break}switch(e.charCodeAt(n++)){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+=`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.
|
|
4
|
-
import{a as g,b as i,c,d}from"./
|
|
3
|
+
v4.33.0-next.85 */
|
|
4
|
+
import{a as g,b as i,c,d}from"./JUYPLYGN.js";import{c as F}from"./QV5VLNT4.js";import"./72ZXOBRL.js";import{a as y,v as T}from"./BZNNTF5P.js";import{Gl as P,Kl as k,Nl as C,Sl as f,kk as O}from"./Z33AYGSJ.js";import"./W22GE6G5.js";O();var z={False:"false",Null:"null",True:"true"},$={Break:"break",Continue:"continue",Else:"else",For:"for",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"};var j=["++","--"],V=["-","+","!","~"],W=["=","/=","*=","%=","+=","-="],R=["||","&&"],K=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var s={InvalidModuleUri:"InvalidModuleUri",ForInOfLoopInitializer:"ForInOfLoopInitializer",IdentifierExpected:"IdentifierExpected",InvalidEscapedReservedWord:"InvalidEscapedReservedWord",InvalidExpression:"InvalidExpression",InvalidFunctionIdentifier:"InvalidFunctionIdentifier",InvalidHexEscapeSequence:"InvalidHexEscapeSequence",InvalidLeftHandSideInAssignment:"InvalidLeftHandSideInAssignment",InvalidLeftHandSideInForIn:"InvalidLeftHandSideInForIn",InvalidTemplateHead:"InvalidTemplateHead",InvalidVariableAssignment:"InvalidVariableAssignment",KeyMustBeString:"KeyMustBeString",NoFunctionInsideBlock:"NoFunctionInsideBlock",NoFunctionInsideFunction:"NoFunctionInsideFunction",ModuleExportRootOnly:"ModuleExportRootOnly",ModuleImportRootOnly:"ModuleImportRootOnly",PunctuatorExpected:"PunctuatorExpected",TemplateOctalLiteral:"TemplateOctalLiteral",UnexpectedBoolean:"UnexpectedBoolean",UnexpectedEndOfScript:"UnexpectedEndOfScript",UnexpectedIdentifier:"UnexpectedIdentifier",UnexpectedKeyword:"UnexpectedKeyword",UnexpectedNull:"UnexpectedNull",UnexpectedNumber:"UnexpectedNumber",UnexpectedPunctuator:"UnexpectedPunctuator",UnexpectedString:"UnexpectedString",UnexpectedTemplate:"UnexpectedTemplate",UnexpectedToken:"UnexpectedToken"},H={[s.InvalidModuleUri]:"Module uri must be a text literal.",[s.ForInOfLoopInitializer]:"for-in loop variable declaration may not have an initializer.",[s.IdentifierExpected]:"'${value}' is an invalid identifier.",[s.InvalidEscapedReservedWord]:"Keyword cannot contain escaped characters.",[s.InvalidExpression]:"Invalid expression.",[s.InvalidFunctionIdentifier]:"'${value}' is an invalid function identifier.",[s.InvalidHexEscapeSequence]:"Invalid hexadecimal escape sequence.",[s.InvalidLeftHandSideInAssignment]:"Invalid left-hand side in assignment.",[s.InvalidLeftHandSideInForIn]:"Invalid left-hand side in for-in.",[s.InvalidTemplateHead]:"Invalid template structure.",[s.InvalidVariableAssignment]:"Invalid variable assignment.",[s.KeyMustBeString]:"Object property keys must be a word starting with a letter.",[s.NoFunctionInsideBlock]:"Functions cannot be declared inside of code blocks.",[s.NoFunctionInsideFunction]:"Functions cannot be declared inside another function.",[s.ModuleExportRootOnly]:"Module exports cannot be declared inside of code blocks.",[s.ModuleImportRootOnly]:"Module import cannot be declared inside of code blocks.",[s.PunctuatorExpected]:"'${value}' expected.",[s.TemplateOctalLiteral]:"Octal literals are not allowed in template literals.",[s.UnexpectedBoolean]:"Unexpected boolean literal.",[s.UnexpectedEndOfScript]:"Unexpected end of Arcade expression.",[s.UnexpectedIdentifier]:"Unexpected identifier.",[s.UnexpectedKeyword]:"Unexpected keyword.",[s.UnexpectedNull]:"Unexpected null literal.",[s.UnexpectedNumber]:"Unexpected number.",[s.UnexpectedPunctuator]:"Unexpected punctuator.",[s.UnexpectedString]:"Unexpected text literal.",[s.UnexpectedTemplate]:"Unexpected quasi '${value}'.",[s.UnexpectedToken]:"Unexpected token '${value}'."};var E=[[],[],[]];j.forEach(t=>E[t.length-1]?.push(t));V.forEach(t=>E[t.length-1]?.push(t));R.forEach(t=>E[t.length-1]?.push(t));W.forEach(t=>E[t.length-1]?.push(t));K.forEach(t=>E[t.length-1]?.push(t));var o={AlreadyDefined:"AlreadyDefined",ApiConflict:"ApiConflict",AssignedNeverUsed:"AssignedNeverUsed",DefinedNeverAssigned:"DefinedNeverAssigned",DefinedNeverUsed:"DefinedNeverUsed",EmptyBlockStatement:"EmptyBlockStatement",ExecutionError:"ExecutionError",InvalidApiFunctionUsage:"InvalidApiFunctionUsage",InvalidConstantIdentifier:"InvalidConstantIdentifier",InvalidPropertyIdentifier:"InvalidPropertyIdentifier",NoArgumentExpected:"NoArgumentExpected",NotADictionary:"NotADictionary",NotDefined:"NotDefined",NotEnoughArguments:"NotEnoughArguments",ProfileVariablesAreImmutable:"ProfileVariablesAreImmutable",ProfileVariablesConflict:"ProfileVariablesConflict",ReservedKeyword:"ReservedKeyword",TooManyArguments:"TooManyArguments",UnexpectedEmptyFunction:"UnexpectedEmptyFunction",UnexpectedPropertyIdentifier:"UnexpectedPropertyIdentifier",UnknownPropertyIdentifier:"UnknownPropertyIdentifier"},ce={[o.AlreadyDefined]:"'${identifier}' is already defined.",[o.ApiConflict]:"'${identifier}' is already defined as an Arcade constant or function.",[o.AssignedNeverUsed]:"'${identifier}' is assigned but never used.",[o.DefinedNeverAssigned]:"'${identifier}' is defined but never assigned.",[o.DefinedNeverUsed]:"'${identifier}' is defined but never used.",[o.EmptyBlockStatement]:"Empty block statement.",[o.ExecutionError]:"Execution Error: '${stack}'",[o.InvalidApiFunctionUsage]:"Arcade function '${identifier}' not used in a call expression.",[o.InvalidConstantIdentifier]:"Invalid constant identifier, expecting ${list}.",[o.InvalidPropertyIdentifier]:"Invalid property identifier, expecting ${list}.",[o.NoArgumentExpected]:"Expecting no argument.",[o.NotADictionary]:"'${identifier}' doesn't have properties.",[o.NotDefined]:"'${identifier}' is not defined.",[o.NotEnoughArguments]:"Expecting at least ${min} argument(s).",[o.ProfileVariablesAreImmutable]:"Profile variables cannot be modified.",[o.ProfileVariablesConflict]:"'${identifier}' is already defined as a profile variable.",[o.ReservedKeyword]:"'${identifier}' is a reserved keyword.",[o.TooManyArguments]:"Too many arguments, expecting ${max}.",[o.UnexpectedEmptyFunction]:"Unexpected empty function '${identifier}'.",[o.UnexpectedPropertyIdentifier]:"Unexpected property identifier.",[o.UnknownPropertyIdentifier]:"Unknown property identifier '${identifier}'.",...H};var B=Object.values($),q=Object.values(z);var le=q.map(t=>({label:t,kind:i.Constant})),he=B.map(t=>({label:t,kind:i.Keyword})),de=[{label:"exportfunction",kind:i.Snippet,detail:"Export Function Statement",insertText:`export function \${1:functionName} ($2) {
|
|
5
5
|
$0
|
|
6
6
|
}`,insertTextMode:d.adjustIndentation,insertTextFormat:c.Snippet},{label:"exportvar",kind:i.Snippet,detail:"Export Variable Statement",insertText:"export var ${0:variableName}\n",insertTextMode:d.adjustIndentation,insertTextFormat:c.Snippet},{label:"for",kind:i.Snippet,detail:"For Loop Statement",insertText:"for (var ${1:i} = 0; ${1:i} < ${2:array.length}; ${1:i}++) {\n $0\n}",insertTextMode:d.adjustIndentation,insertTextFormat:c.Snippet},{label:"forin",kind:i.Snippet,detail:"For-In Loop Statement",insertText:"for (var ${1:i} in ${2:arrayOrObject}) {\n $0\n}",insertTextMode:d.adjustIndentation,insertTextFormat:c.Snippet},{label:"forof",kind:i.Snippet,detail:"For-Of Loop Statement",insertText:"for (var ${1:i} of ${2:arrayOrObject}) {\n $0\n}",insertTextMode:d.adjustIndentation,insertTextFormat:c.Snippet},{label:"function",kind:i.Snippet,detail:"Function Statement",insertText:`function \${1:functionName} ($2) {
|
|
7
7
|
$0
|