@arcgis/coding-components 4.33.0-next.87 → 4.33.0-next.88

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.
Files changed (112) hide show
  1. package/dist/arcgis-coding-components/{N5XSBG5H.js → 2MLIXVD7.js} +2 -2
  2. package/dist/arcgis-coding-components/{MY3ZO2H4.js → 2TJXI6FD.js} +2 -2
  3. package/dist/arcgis-coding-components/{BDQHQEEH.js.LEGAL.txt → 2TJXI6FD.js.LEGAL.txt} +1 -1
  4. package/dist/arcgis-coding-components/{BDQHQEEH.js → 32R6FMZE.js} +2 -2
  5. package/dist/arcgis-coding-components/{3C67G7J5.js.LEGAL.txt → 32R6FMZE.js.LEGAL.txt} +1 -1
  6. package/dist/arcgis-coding-components/{WULNQHCT.js → 4ZRLLTJ5.js} +2 -2
  7. package/dist/arcgis-coding-components/{WULNQHCT.js.LEGAL.txt → 4ZRLLTJ5.js.LEGAL.txt} +1 -1
  8. package/dist/arcgis-coding-components/{KH2BIY2H.js → 6FT7ZD2Q.js} +2 -2
  9. package/dist/arcgis-coding-components/{FWVIZI4R.js.LEGAL.txt → 6FT7ZD2Q.js.LEGAL.txt} +1 -1
  10. package/dist/arcgis-coding-components/7CY6QPAA.js +4 -0
  11. package/dist/arcgis-coding-components/{GE4WLYBC.js → 7Z34MCLV.js} +2 -2
  12. package/dist/arcgis-coding-components/{6MWD2F36.js.LEGAL.txt → 7Z34MCLV.js.LEGAL.txt} +1 -1
  13. package/dist/arcgis-coding-components/{X5EISBSE.js → BILDBUID.js} +2 -2
  14. package/dist/arcgis-coding-components/BILDBUID.js.LEGAL.txt +3 -0
  15. package/dist/arcgis-coding-components/{4CUX3ZAV.js → DBW72MRF.js} +2 -2
  16. package/dist/arcgis-coding-components/{4CUX3ZAV.js.LEGAL.txt → DBW72MRF.js.LEGAL.txt} +1 -1
  17. package/dist/arcgis-coding-components/{FWVIZI4R.js → EQCHIURR.js} +2 -2
  18. package/dist/arcgis-coding-components/EQCHIURR.js.LEGAL.txt +3 -0
  19. package/dist/arcgis-coding-components/{GE4BAS7H.js → F3SQYY5R.js} +2 -2
  20. package/dist/arcgis-coding-components/{DE2EMQS5.js → FAULC52S.js} +2 -2
  21. package/dist/arcgis-coding-components/{MECCFRTR.js → FCSLXEM4.js} +2 -2
  22. package/dist/arcgis-coding-components/{SDGZZM5V.js → FYYBALJR.js} +2 -2
  23. package/dist/arcgis-coding-components/{H6NYNA6L.js → GH5J5YWP.js} +2 -2
  24. package/dist/arcgis-coding-components/GH5J5YWP.js.LEGAL.txt +3 -0
  25. package/dist/arcgis-coding-components/{ZCV4T4JD.js → GTD47LI4.js} +2 -2
  26. package/dist/arcgis-coding-components/{K7FPM25Q.js → H3ELISVA.js} +1 -1
  27. package/dist/arcgis-coding-components/{OEQLIPTU.js → IUY6F3BE.js} +2 -2
  28. package/dist/arcgis-coding-components/IUY6F3BE.js.LEGAL.txt +3 -0
  29. package/dist/arcgis-coding-components/{P2B4IQJY.js → J6F2O3J2.js} +1 -1
  30. package/dist/arcgis-coding-components/{3C67G7J5.js → JODYKR46.js} +2 -2
  31. package/dist/arcgis-coding-components/JODYKR46.js.LEGAL.txt +3 -0
  32. package/dist/arcgis-coding-components/{MUEG6UQH.js → KMYADULD.js} +2 -2
  33. package/dist/arcgis-coding-components/{MYGUILCY.js → L7HGQW4H.js} +2 -2
  34. package/dist/arcgis-coding-components/L7HGQW4H.js.LEGAL.txt +3 -0
  35. package/dist/arcgis-coding-components/{CTVFQXER.js → LLVHV63Z.js} +3 -3
  36. package/dist/arcgis-coding-components/{CTVFQXER.js.LEGAL.txt → LLVHV63Z.js.LEGAL.txt} +1 -1
  37. package/dist/arcgis-coding-components/{FFVO6VXR.js → NPRDJIZZ.js} +2 -2
  38. package/dist/arcgis-coding-components/{7YG5DTK4.js → ORG5PCVK.js} +1 -1
  39. package/dist/arcgis-coding-components/{TD7T242K.js → OZRS437U.js} +2 -2
  40. package/dist/arcgis-coding-components/OZRS437U.js.LEGAL.txt +3 -0
  41. package/dist/arcgis-coding-components/{6MWD2F36.js → QNTINBFI.js} +2 -2
  42. package/dist/arcgis-coding-components/QNTINBFI.js.LEGAL.txt +3 -0
  43. package/dist/arcgis-coding-components/{SR2AWJDB.js → QZ7UXYEI.js} +1 -1
  44. package/dist/arcgis-coding-components/QZ7UXYEI.js.LEGAL.txt +3 -0
  45. package/dist/arcgis-coding-components/{FWO2RUL7.js → R4FEQ76G.js} +2 -2
  46. package/dist/arcgis-coding-components/{PBFFFVNA.js → T245NG35.js} +2 -2
  47. package/dist/arcgis-coding-components/T245NG35.js.LEGAL.txt +3 -0
  48. package/dist/arcgis-coding-components/{3DLQFQGB.js → T2EQLFBH.js} +2 -2
  49. package/dist/arcgis-coding-components/{OIGIGPBL.js → UEFNRCBG.js} +2 -2
  50. package/dist/arcgis-coding-components/{YWS3WIB4.js → V7GNBJCM.js} +2 -2
  51. package/dist/arcgis-coding-components/V7GNBJCM.js.LEGAL.txt +3 -0
  52. package/dist/arcgis-coding-components/{TSKX6UFL.js → VBWMZJIM.js} +2 -2
  53. package/dist/arcgis-coding-components/VBWMZJIM.js.LEGAL.txt +3 -0
  54. package/dist/arcgis-coding-components/{IP4OXTBT.js → ZWS472ME.js} +2 -2
  55. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  56. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js.LEGAL.txt +1 -1
  57. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +69 -84
  58. package/dist/chunks/arcade-defaults.js +1 -1
  59. package/dist/chunks/arcade-executor.js +1 -1
  60. package/dist/chunks/arcade-mode.js +1 -1
  61. package/dist/chunks/arcade-service-accessors.js +1 -1
  62. package/dist/chunks/fields.js +1 -1
  63. package/dist/chunks/language-defaults-base.js +1 -1
  64. package/dist/chunks/markdown.js +1 -1
  65. package/dist/chunks/monaco-importer.js +1 -1
  66. package/dist/chunks/runtime.js +1 -1
  67. package/dist/chunks/sql-expr-defaults.js +1 -1
  68. package/dist/chunks/sql-expr-mode.js +1 -1
  69. package/dist/chunks/useT9n.js +1 -1
  70. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  71. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  72. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  73. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  74. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  75. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  76. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  77. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  78. package/dist/docs/api.json +2 -2
  79. package/dist/docs/docs.json +2 -2
  80. package/dist/docs/web-types.json +1 -1
  81. package/dist/index.js +1 -1
  82. package/dist/loader.js +1 -1
  83. package/package.json +8 -8
  84. package/dist/arcgis-coding-components/EZJQMRR5.js +0 -4
  85. package/dist/arcgis-coding-components/GE4WLYBC.js.LEGAL.txt +0 -3
  86. package/dist/arcgis-coding-components/H6NYNA6L.js.LEGAL.txt +0 -3
  87. package/dist/arcgis-coding-components/KH2BIY2H.js.LEGAL.txt +0 -3
  88. package/dist/arcgis-coding-components/MY3ZO2H4.js.LEGAL.txt +0 -3
  89. package/dist/arcgis-coding-components/MYGUILCY.js.LEGAL.txt +0 -3
  90. package/dist/arcgis-coding-components/OEQLIPTU.js.LEGAL.txt +0 -3
  91. package/dist/arcgis-coding-components/PBFFFVNA.js.LEGAL.txt +0 -3
  92. package/dist/arcgis-coding-components/SR2AWJDB.js.LEGAL.txt +0 -3
  93. package/dist/arcgis-coding-components/TD7T242K.js.LEGAL.txt +0 -3
  94. package/dist/arcgis-coding-components/TSKX6UFL.js.LEGAL.txt +0 -3
  95. package/dist/arcgis-coding-components/X5EISBSE.js.LEGAL.txt +0 -3
  96. package/dist/arcgis-coding-components/YWS3WIB4.js.LEGAL.txt +0 -3
  97. /package/dist/arcgis-coding-components/{7YG5DTK4.js.LEGAL.txt → 2MLIXVD7.js.LEGAL.txt} +0 -0
  98. /package/dist/arcgis-coding-components/{EZJQMRR5.js.LEGAL.txt → 7CY6QPAA.js.LEGAL.txt} +0 -0
  99. /package/dist/arcgis-coding-components/{GE4BAS7H.js.LEGAL.txt → F3SQYY5R.js.LEGAL.txt} +0 -0
  100. /package/dist/arcgis-coding-components/{DE2EMQS5.js.LEGAL.txt → FAULC52S.js.LEGAL.txt} +0 -0
  101. /package/dist/arcgis-coding-components/{MECCFRTR.js.LEGAL.txt → FCSLXEM4.js.LEGAL.txt} +0 -0
  102. /package/dist/arcgis-coding-components/{SDGZZM5V.js.LEGAL.txt → FYYBALJR.js.LEGAL.txt} +0 -0
  103. /package/dist/arcgis-coding-components/{ZCV4T4JD.js.LEGAL.txt → GTD47LI4.js.LEGAL.txt} +0 -0
  104. /package/dist/arcgis-coding-components/{K7FPM25Q.js.LEGAL.txt → H3ELISVA.js.LEGAL.txt} +0 -0
  105. /package/dist/arcgis-coding-components/{N5XSBG5H.js.LEGAL.txt → J6F2O3J2.js.LEGAL.txt} +0 -0
  106. /package/dist/arcgis-coding-components/{MUEG6UQH.js.LEGAL.txt → KMYADULD.js.LEGAL.txt} +0 -0
  107. /package/dist/arcgis-coding-components/{FFVO6VXR.js.LEGAL.txt → NPRDJIZZ.js.LEGAL.txt} +0 -0
  108. /package/dist/arcgis-coding-components/{P2B4IQJY.js.LEGAL.txt → ORG5PCVK.js.LEGAL.txt} +0 -0
  109. /package/dist/arcgis-coding-components/{FWO2RUL7.js.LEGAL.txt → R4FEQ76G.js.LEGAL.txt} +0 -0
  110. /package/dist/arcgis-coding-components/{3DLQFQGB.js.LEGAL.txt → T2EQLFBH.js.LEGAL.txt} +0 -0
  111. /package/dist/arcgis-coding-components/{OIGIGPBL.js.LEGAL.txt → UEFNRCBG.js.LEGAL.txt} +0 -0
  112. /package/dist/arcgis-coding-components/{IP4OXTBT.js.LEGAL.txt → ZWS472ME.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.87 */
4
- import{Fl as a,Gl as b,Hl as c,Il as d,Jl as e,Kl as f,Ll as g,Ml as h,Nl as i,Ol as j,Pl as k,Ql as l,Rl as m,Sl as n}from"./ZCV4T4JD.js";import"./7YG5DTK4.js";export{a as CancellationTokenSource,b as Emitter,c as KeyCode,d as KeyMod,i as MarkerSeverity,j as MarkerTag,e as Position,f as Range,g as Selection,h as SelectionDirection,l as Token,k as Uri,m as editor,n as languages};
3
+ v4.33.0-next.88 */
4
+ import{Fl as a,Gl as b,Hl as c,Il as d,Jl as e,Kl as f,Ll as g,Ml as h,Nl as i,Ol as j,Pl as k,Ql as l,Rl as m,Sl as n}from"./GTD47LI4.js";import"./ORG5PCVK.js";export{a as CancellationTokenSource,b as Emitter,c as KeyCode,d as KeyMod,i as MarkerSeverity,j as MarkerTag,e as Position,f as Range,g as Selection,h as SelectionDirection,l as Token,k as Uri,m as editor,n as languages};
@@ -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.87 */
4
- import{a as d}from"./X5EISBSE.js";import"./H6NYNA6L.js";import"./K7FPM25Q.js";import"./SR2AWJDB.js";import{c as u}from"./CTVFQXER.js";import"./IP4OXTBT.js";import"./WULNQHCT.js";import{a as E,v as k}from"./P2B4IQJY.js";import{Gl as w,Sl as g,kk as R}from"./ZCV4T4JD.js";import"./7YG5DTK4.js";R();var m=new E,h=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this.stopWorker())}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null,m=new E),this._client=null}static async waitForWorker(){return await m.promise}async _getClientProxy(){let e=await u();if(!this._client){let{languageId:t}=this._defaults;this._worker=e.createWebWorker({moduleId:"SqlExprWorker",label:t,createData:{languageId:t},host:this._defaults.workerHost}),m.resolve(this._worker),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){let t=await this._getClientProxy();return await this._worker?.withSyncedResources(e),t}},L=["AND","AS","BOTH","CASE","CAST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DAY","ELSE","END","ESCAPE","FALSE","FLOAT","FOR","FROM","HOUR","IN","INT","INTEGER","INTERVAL","LEADING","LIKE","MINUTE","MONTH","POSITION","REAL","SECOND","SMALLINT","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRIM","TRUE","VARCHAR","WHEN","WITH","YEAR","ZONE"],b=["AND","BETWEEN","LIKE","NOT","OR","IS","NULL"],M=["CAST","EXTRACT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","ABS","ACOS","ASIN","ATAN","CEILING","COS","FLOOR","LOG","LOG10","MOD","NULLIF","POWER","ROUND","SIGN","SIN","TAN","TRUNCATE","CHAR_LENGTH","COALESCE","CONCAT","LOWER","POSITION","SUBSTRING","TRIM","UPPER"],O={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},D={defaultToken:"",tokenPostfix:".arcgis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:L,operators:b,builtinFunctions:M,builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}},_=class{constructor(e,t){this._worker=e,this._defaults=t}async provideCompletionItems(e,t){try{let o=await this._worker(e.uri),r=e.getWordUntilPosition(t),n={startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:r.startColumn,endColumn:r.endColumn},c=this._defaults.getApiContextForModel(e.uri);return await o.doComplete(e.uri.toString(),n,t,c)}catch(o){return console.error(o),{suggestions:[]}}}},I=class{constructor(e,t,{defaults:o,diagnosticService:r}){this._languageId=e,this._worker=t,this._disposables=[],this._modelListeners=new Map,this._diagnosticsService=r,this._defaults=o,u().then(n=>{let c=i=>{let s=i.getLanguageId();if(s!==this._languageId)return;let l=k(()=>{this._doValidate(i,s).catch(A=>{throw A})}),f=i.onDidChangeContent(l),S=i.onDidChangeAttached(l);this._modelListeners.set(i.uri.toString(),[f,S]),this._doValidate(i,s).catch(console.error)},p=i=>{let s=i.uri.toString();n.setModelMarkers(i,this._languageId,[]);let l=this._modelListeners.get(s);if(l){for(;l.length;)l.pop()?.dispose();this._modelListeners.delete(s)}};this._disposables.push(n.onDidCreateModel(c)),this._disposables.push(n.onWillDisposeModel(i=>p(i))),this._disposables.push(n.onDidChangeModelLanguage(i=>{p(i.model),c(i.model)})),this._disposables.push(o.onDidChange(()=>{n.getModels().forEach(i=>{i.getLanguageId()===this._languageId&&(p(i),c(i))})})),this._disposables.push(o.onModelContextDidChange(i=>{n.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&s.uri.toString()===i&&this._doValidate(s,this._languageId).catch(console.error)})})),this._disposables.push({dispose:()=>{this._modelListeners.forEach(i=>i.forEach(s=>s.dispose())),this._modelListeners.clear()}}),n.getModels().forEach(c)})}async _doValidate(e,t){let o=await u();if(e.isAttachedToEditor())try{let r=await this._worker(e.uri),n=this._defaults.getApiContextForModel(e.uri),c=await r.doValidation(e.uri.toString(),n);this._diagnosticsService.fireDiagnosticsChange(e.uri,c),o.setModelMarkers(e,t,c)}catch(r){console.error(r)}}},C;async function v(...a){return await h.waitForWorker(),await new Promise((e,t)=>{if(!C){t(new Error("sql expression worker not registered!"));return}e(C(...a))})}var T=class{constructor(){this._onDiagnosticsChange=new w}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}},N=new T;function q(){return N}function G(a){let e=new h(a),t=async(...r)=>await e.getLanguageServiceWorker(...r);C=t,g.setMonarchTokensProvider(d.languageId,D),g.setLanguageConfiguration(d.languageId,O);let o=new _(t,d);g.registerCompletionItemProvider(d.languageId,o),new I(a.languageId,t,{defaults:a,diagnosticService:N})}export{q as getSqlExprDiagnosticService,v as getSqlExprWorker,G as setupMode};
3
+ v4.33.0-next.88 */
4
+ import{a as d}from"./BILDBUID.js";import"./GH5J5YWP.js";import"./H3ELISVA.js";import"./QZ7UXYEI.js";import{c as u}from"./LLVHV63Z.js";import"./ZWS472ME.js";import"./4ZRLLTJ5.js";import{a as E,v as k}from"./J6F2O3J2.js";import{Gl as w,Sl as g,kk as R}from"./GTD47LI4.js";import"./ORG5PCVK.js";R();var m=new E,h=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this.stopWorker())}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null,m=new E),this._client=null}static async waitForWorker(){return await m.promise}async _getClientProxy(){let e=await u();if(!this._client){let{languageId:t}=this._defaults;this._worker=e.createWebWorker({moduleId:"SqlExprWorker",label:t,createData:{languageId:t},host:this._defaults.workerHost}),m.resolve(this._worker),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){let t=await this._getClientProxy();return await this._worker?.withSyncedResources(e),t}},L=["AND","AS","BOTH","CASE","CAST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DAY","ELSE","END","ESCAPE","FALSE","FLOAT","FOR","FROM","HOUR","IN","INT","INTEGER","INTERVAL","LEADING","LIKE","MINUTE","MONTH","POSITION","REAL","SECOND","SMALLINT","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRIM","TRUE","VARCHAR","WHEN","WITH","YEAR","ZONE"],b=["AND","BETWEEN","LIKE","NOT","OR","IS","NULL"],M=["CAST","EXTRACT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","ABS","ACOS","ASIN","ATAN","CEILING","COS","FLOOR","LOG","LOG10","MOD","NULLIF","POWER","ROUND","SIGN","SIN","TAN","TRUNCATE","CHAR_LENGTH","COALESCE","CONCAT","LOWER","POSITION","SUBSTRING","TRIM","UPPER"],O={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},D={defaultToken:"",tokenPostfix:".arcgis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:L,operators:b,builtinFunctions:M,builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}},_=class{constructor(e,t){this._worker=e,this._defaults=t}async provideCompletionItems(e,t){try{let o=await this._worker(e.uri),r=e.getWordUntilPosition(t),n={startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:r.startColumn,endColumn:r.endColumn},c=this._defaults.getApiContextForModel(e.uri);return await o.doComplete(e.uri.toString(),n,t,c)}catch(o){return console.error(o),{suggestions:[]}}}},I=class{constructor(e,t,{defaults:o,diagnosticService:r}){this._languageId=e,this._worker=t,this._disposables=[],this._modelListeners=new Map,this._diagnosticsService=r,this._defaults=o,u().then(n=>{let c=i=>{let s=i.getLanguageId();if(s!==this._languageId)return;let l=k(()=>{this._doValidate(i,s).catch(A=>{throw A})}),f=i.onDidChangeContent(l),S=i.onDidChangeAttached(l);this._modelListeners.set(i.uri.toString(),[f,S]),this._doValidate(i,s).catch(console.error)},p=i=>{let s=i.uri.toString();n.setModelMarkers(i,this._languageId,[]);let l=this._modelListeners.get(s);if(l){for(;l.length;)l.pop()?.dispose();this._modelListeners.delete(s)}};this._disposables.push(n.onDidCreateModel(c)),this._disposables.push(n.onWillDisposeModel(i=>p(i))),this._disposables.push(n.onDidChangeModelLanguage(i=>{p(i.model),c(i.model)})),this._disposables.push(o.onDidChange(()=>{n.getModels().forEach(i=>{i.getLanguageId()===this._languageId&&(p(i),c(i))})})),this._disposables.push(o.onModelContextDidChange(i=>{n.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&s.uri.toString()===i&&this._doValidate(s,this._languageId).catch(console.error)})})),this._disposables.push({dispose:()=>{this._modelListeners.forEach(i=>i.forEach(s=>s.dispose())),this._modelListeners.clear()}}),n.getModels().forEach(c)})}async _doValidate(e,t){let o=await u();if(e.isAttachedToEditor())try{let r=await this._worker(e.uri),n=this._defaults.getApiContextForModel(e.uri),c=await r.doValidation(e.uri.toString(),n);this._diagnosticsService.fireDiagnosticsChange(e.uri,c),o.setModelMarkers(e,t,c)}catch(r){console.error(r)}}},C;async function v(...a){return await h.waitForWorker(),await new Promise((e,t)=>{if(!C){t(new Error("sql expression worker not registered!"));return}e(C(...a))})}var T=class{constructor(){this._onDiagnosticsChange=new w}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}},N=new T;function q(){return N}function G(a){let e=new h(a),t=async(...r)=>await e.getLanguageServiceWorker(...r);C=t,g.setMonarchTokensProvider(d.languageId,D),g.setLanguageConfiguration(d.languageId,O);let o=new _(t,d);g.registerCompletionItemProvider(d.languageId,o),new I(a.languageId,t,{defaults:a,diagnosticService:N})}export{q as getSqlExprDiagnosticService,v as getSqlExprWorker,G as setupMode};
@@ -1,3 +1,3 @@
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.87 */
3
+ v4.33.0-next.88 */
@@ -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.87 */
4
- import{c as X}from"./CTVFQXER.js";import{ck as F,jk as Q,kk as se,pk as B}from"./ZCV4T4JD.js";se();async function re(i){return await(await X()).colorize(i,"arcade",{tabSize:2})}async function Se(i){if(!i)return;let t=[...i.querySelectorAll("code.language-arcade")];await Promise.all(t.map(async n=>await ie(n,n.textContent)))}async function ie(i,t){!i||i.tagName!=="CODE"||(i.innerHTML=await re(t??""))}function Re(){let i=B.get(Q).getColorTheme();return F(i.tokenTheme.getColorMap())}function Te(i){return B.get(Q).onDidColorThemeChange(()=>i())}function H(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var I=H();function Y(i){I=i}var ee=/[&<>"']/,le=new RegExp(ee.source,"g"),te=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ae=new RegExp(te.source,"g"),oe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},G=i=>oe[i];function w(i,t){if(t){if(ee.test(i))return i.replace(le,G)}else if(te.test(i))return i.replace(ae,G);return i}var ce=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ne(i){return i.replace(ce,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}var he=/(^|[^\[])\^/g;function m(i,t){i=typeof i=="string"?i:i.source,t=t||"";let n={replace:(e,s)=>(s=s.source||s,s=s.replace(he,"$1"),i=i.replace(e,s),n),getRegex:()=>new RegExp(i,t)};return n}var pe=/[^\w:]/g,ue=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(i,t,n){if(i){let e;try{e=decodeURIComponent(ne(n)).replace(pe,"").toLowerCase()}catch{return null}if(e.indexOf("javascript:")===0||e.indexOf("vbscript:")===0||e.indexOf("data:")===0)return null}t&&!ue.test(n)&&(n=fe(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}var O={},ge=/^[^:]+:\/*[^/]*$/,de=/^([^:]+:)[\s\S]*$/,ke=/^([^:]+:\/*[^/]*)[\s\S]*$/;function fe(i,t){O[" "+i]||(ge.test(i)?O[" "+i]=i+"/":O[" "+i]=U(i,"/",!0)),i=O[" "+i];let n=i.indexOf(":")===-1;return t.substring(0,2)==="//"?n?t:i.replace(de,"$1")+t:t.charAt(0)==="/"?n?t:i.replace(ke,"$1")+t:i+t}var j={exec:function(){}};function J(i,t){let n=i.replace(/\|/g,(r,l,a)=>{let c=!1,u=l;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),e=n.split(/ \|/),s=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>t)e.splice(t);else for(;e.length<t;)e.push("");for(;s<e.length;s++)e[s]=e[s].trim().replace(/\\\|/g,"|");return e}function U(i,t,n){let e=i.length;if(e===0)return"";let s=0;for(;s<e;){let r=i.charAt(e-s-1);if(r===t&&!n)s++;else if(r!==t&&n)s++;else break}return i.slice(0,e-s)}function me(i,t){if(i.indexOf(t[1])===-1)return-1;let n=i.length,e=0,s=0;for(;s<n;s++)if(i[s]==="\\")s++;else if(i[s]===t[0])e++;else if(i[s]===t[1]&&(e--,e<0))return s;return-1}function xe(i,t){!i||i.silent||(t&&console.warn("marked(): callback is deprecated since version 5.0.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/using_pro#async"),(i.sanitize||i.sanitizer)&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options"),(i.highlight||i.langPrefix!=="language-")&&console.warn("marked(): highlight and langPrefix parameters are deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-highlight."),i.mangle&&console.warn("marked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`."),i.baseUrl&&console.warn("marked(): baseUrl parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-base-url."),i.smartypants&&console.warn("marked(): smartypants parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-smartypants."),i.xhtml&&console.warn("marked(): xhtml parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-xhtml."),(i.headerIds||i.headerPrefix)&&console.warn("marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`."))}function K(i,t,n,e){let s=t.href,r=t.title?w(t.title):null,l=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){e.state.inLink=!0;let a={type:"link",raw:n,href:s,title:r,text:l,tokens:e.inlineTokens(l)};return e.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:r,text:w(l)}}function be(i,t){let n=i.match(/^(\s+)(?:```)/);if(n===null)return t;let e=n[1];return t.split(`
3
+ v4.33.0-next.88 */
4
+ import{c as X}from"./LLVHV63Z.js";import{ck as F,jk as Q,kk as se,pk as B}from"./GTD47LI4.js";se();async function re(i){return await(await X()).colorize(i,"arcade",{tabSize:2})}async function Se(i){if(!i)return;let t=[...i.querySelectorAll("code.language-arcade")];await Promise.all(t.map(async n=>await ie(n,n.textContent)))}async function ie(i,t){!i||i.tagName!=="CODE"||(i.innerHTML=await re(t??""))}function Re(){let i=B.get(Q).getColorTheme();return F(i.tokenTheme.getColorMap())}function Te(i){return B.get(Q).onDidColorThemeChange(()=>i())}function H(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var I=H();function Y(i){I=i}var ee=/[&<>"']/,le=new RegExp(ee.source,"g"),te=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ae=new RegExp(te.source,"g"),oe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},G=i=>oe[i];function w(i,t){if(t){if(ee.test(i))return i.replace(le,G)}else if(te.test(i))return i.replace(ae,G);return i}var ce=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ne(i){return i.replace(ce,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}var he=/(^|[^\[])\^/g;function m(i,t){i=typeof i=="string"?i:i.source,t=t||"";let n={replace:(e,s)=>(s=s.source||s,s=s.replace(he,"$1"),i=i.replace(e,s),n),getRegex:()=>new RegExp(i,t)};return n}var pe=/[^\w:]/g,ue=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(i,t,n){if(i){let e;try{e=decodeURIComponent(ne(n)).replace(pe,"").toLowerCase()}catch{return null}if(e.indexOf("javascript:")===0||e.indexOf("vbscript:")===0||e.indexOf("data:")===0)return null}t&&!ue.test(n)&&(n=fe(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}var O={},ge=/^[^:]+:\/*[^/]*$/,de=/^([^:]+:)[\s\S]*$/,ke=/^([^:]+:\/*[^/]*)[\s\S]*$/;function fe(i,t){O[" "+i]||(ge.test(i)?O[" "+i]=i+"/":O[" "+i]=U(i,"/",!0)),i=O[" "+i];let n=i.indexOf(":")===-1;return t.substring(0,2)==="//"?n?t:i.replace(de,"$1")+t:t.charAt(0)==="/"?n?t:i.replace(ke,"$1")+t:i+t}var j={exec:function(){}};function J(i,t){let n=i.replace(/\|/g,(r,l,a)=>{let c=!1,u=l;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),e=n.split(/ \|/),s=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>t)e.splice(t);else for(;e.length<t;)e.push("");for(;s<e.length;s++)e[s]=e[s].trim().replace(/\\\|/g,"|");return e}function U(i,t,n){let e=i.length;if(e===0)return"";let s=0;for(;s<e;){let r=i.charAt(e-s-1);if(r===t&&!n)s++;else if(r!==t&&n)s++;else break}return i.slice(0,e-s)}function me(i,t){if(i.indexOf(t[1])===-1)return-1;let n=i.length,e=0,s=0;for(;s<n;s++)if(i[s]==="\\")s++;else if(i[s]===t[0])e++;else if(i[s]===t[1]&&(e--,e<0))return s;return-1}function xe(i,t){!i||i.silent||(t&&console.warn("marked(): callback is deprecated since version 5.0.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/using_pro#async"),(i.sanitize||i.sanitizer)&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options"),(i.highlight||i.langPrefix!=="language-")&&console.warn("marked(): highlight and langPrefix parameters are deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-highlight."),i.mangle&&console.warn("marked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`."),i.baseUrl&&console.warn("marked(): baseUrl parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-base-url."),i.smartypants&&console.warn("marked(): smartypants parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-smartypants."),i.xhtml&&console.warn("marked(): xhtml parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-xhtml."),(i.headerIds||i.headerPrefix)&&console.warn("marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`."))}function K(i,t,n,e){let s=t.href,r=t.title?w(t.title):null,l=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){e.state.inLink=!0;let a={type:"link",raw:n,href:s,title:r,text:l,tokens:e.inlineTokens(l)};return e.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:r,text:w(l)}}function be(i,t){let n=i.match(/^(\s+)(?:```)/);if(n===null)return t;let e=n[1];return t.split(`
5
5
  `).map(s=>{let r=s.match(/^\s+/);if(r===null)return s;let[l]=r;return l.length>=e.length?s.slice(e.length):s}).join(`
6
6
  `)}var C=class{constructor(t){this.options=t||I}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let e=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?e:U(e,`
7
7
  `)}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let e=n[0],s=be(e,n[3]||"");return{type:"code",raw:e,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:s}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let e=n[2].trim();if(/#$/.test(e)){let s=U(e,"#");(this.options.pedantic||!s||/ $/.test(s))&&(e=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let e=n[0].replace(/^ *>[ \t]?/gm,""),s=this.lexer.state.top;this.lexer.state.top=!0;let r=this.lexer.blockTokens(e);return this.lexer.state.top=s,{type:"blockquote",raw:n[0],tokens:r,text:e}}}list(t){let n=this.rules.block.list.exec(t);if(n){let e,s,r,l,a,c,u,g,k,d,h,y,_=n[1].trim(),A=_.length>1,x={type:"list",raw:"",ordered:A,start:A?+_.slice(0,-1):"",loose:!1,items:[]};_=A?`\\d{1,9}\\${_.slice(-1)}`:`\\${_}`,this.options.pedantic&&(_=A?_:"[*+-]");let b=new RegExp(`^( {0,3}${_})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;t&&(y=!1,!(!(n=b.exec(t))||this.rules.block.hr.test(t)));){if(e=n[0],t=t.substring(e.length),g=n[2].split(`
@@ -1,3 +1,3 @@
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.87 */
3
+ v4.33.0-next.88 */
@@ -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.87 */
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"./P2B4IQJY.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.88 */
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"./J6F2O3J2.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,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.87 */
3
+ v4.33.0-next.88 */
4
4
 
5
5
  Bundled license information:
6
6
 
@@ -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.87 */
4
- import{a as g,b as i,c,d}from"./K7FPM25Q.js";import{c as F}from"./CTVFQXER.js";import"./IP4OXTBT.js";import{a as y,v as T}from"./P2B4IQJY.js";import{Gl as P,Kl as k,Nl as C,Sl as f,kk as O}from"./ZCV4T4JD.js";import"./7YG5DTK4.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) {
3
+ v4.33.0-next.88 */
4
+ import{a as g,b as i,c,d}from"./H3ELISVA.js";import{c as F}from"./LLVHV63Z.js";import"./ZWS472ME.js";import{a as y,v as T}from"./J6F2O3J2.js";import{Gl as P,Kl as k,Nl as C,Sl as f,kk as O}from"./GTD47LI4.js";import"./ORG5PCVK.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
@@ -1,3 +1,3 @@
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.87 */
3
+ v4.33.0-next.88 */
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
+ v4.33.0-next.88 */
4
+ import{a,b}from"./R4FEQ76G.js";import"./GTD47LI4.js";import"./ORG5PCVK.js";export{a as conf,b as language};
@@ -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.87 */
4
- import{b,c as r,d as _,e as v}from"./BDQHQEEH.js";import{b as l}from"./OIGIGPBL.js";import{a as f}from"./6MWD2F36.js";import{a as p}from"./CTVFQXER.js";import"./IP4OXTBT.js";import{c as u,f as s,h as c,r as a,s as h,w as m}from"./WULNQHCT.js";import{d as g,e as d}from"./P2B4IQJY.js";import"./ZCV4T4JD.js";import"./7YG5DTK4.js";function S(o){return!Array.isArray(o)||!o.length?!1:Array.isArray(o[0].suggestions)}var $=u`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,n=class extends h{constructor(){super(...arguments),this._beforeBack=async()=>{this._selectedSuggestion=void 0},this.messages=f(),this._colorizeStyle="",this._filterValue="",this.arcgisClose=a({bubbles:!1}),this.arcgisItemSelected=a({bubbles:!1})}static{this.properties={_colorizeStyle:16,_filterValue:16,_selectedSuggestion:16,suggestions:0}}static{this.styles=$}load(){this._colorizeStyle=r(),this._themeChangedListener=_(()=>this._colorizeStyle=r())}willUpdate(e){e.has("suggestions")&&this.suggestionsPropChanged()}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect(),this._themeChangedListener?.dispose()}suggestionsPropChanged(){this._selectedSuggestion=void 0}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{d(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_updateFilterValue(e){this._filterValue=e.currentTarget?.value??""}_emitItemSelected(e,t){let i=e;(!i.key||i.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(t.code))}_showSuggestionDetail(e,t){e.stopPropagation(),this._selectedSuggestion=t}_emitClose(){this.arcgisClose.emit()}_colorizeCode(e){e!==void 0&&b(e,this._selectedSuggestion.code)}renderSuggestionGroups(){return this.suggestions===void 0?null:S(this.suggestions)?this.suggestions.map(e=>s`<calcite-list-item-group .heading=${e.label}>${this.renderSuggestionListItems(e.suggestions)}</calcite-list-item-group>`):this.renderSuggestionListItems(this.suggestions)}renderSuggestionListItems(e){return e=p(e,"label",this._filterValue),e.length?e.map(t=>s`<calcite-list-item .label=${t.label} .description=${t.description} @calciteListItemSelect=${i=>this._emitItemSelected(i,t)} @keydown=${i=>this._emitItemSelected(i,t)} data-item=${t??c}><calcite-action slot=actions-end .text=${this.messages.expand??""} scale=s icon=chevron-right icon-flip-rtl @click=${i=>this._showSuggestionDetail(i,t)} data-item=${t??c}></calcite-action></calcite-list-item>`):s`<div class="notice-container">${this.messages.noitems}</div>`}renderSuggestionFlowItem(){let e=this._selectedSuggestion;return e?s`<calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose} .beforeBack=${this._beforeBack} selected><calcite-button width=half slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${t=>this._emitItemSelected(t,e)} data-item=${e??c} ${l(g)}>${this.messages.insert}</calcite-button><calcite-block open .heading=${e.label} .description=${e.description}><div .innerHTML=${v(e.documentation)??""}></div><pre><code ${l(this._colorizeCode)}></code></pre></calcite-block></calcite-flow-item>`:null}render(){return s`<style>${this._colorizeStyle}</style><calcite-flow ${l(this.flowFocusHandler)}><calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose} .selected=${!this._selectedSuggestion}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input><calcite-list label=suggestions>${this.renderSuggestionGroups()}</calcite-list></calcite-flow-item>${this.renderSuggestionFlowItem()}</calcite-flow>`}};m("arcgis-arcade-suggestions",n);export{n as ArcgisArcadeSuggestions};
3
+ v4.33.0-next.88 */
4
+ import{b,c as r,d as _,e as v}from"./32R6FMZE.js";import{b as l}from"./UEFNRCBG.js";import{a as f}from"./QNTINBFI.js";import{a as p}from"./LLVHV63Z.js";import"./ZWS472ME.js";import{c as u,f as s,h as c,r as a,s as h,w as m}from"./4ZRLLTJ5.js";import{d as g,e as d}from"./J6F2O3J2.js";import"./GTD47LI4.js";import"./ORG5PCVK.js";function S(o){return!Array.isArray(o)||!o.length?!1:Array.isArray(o[0].suggestions)}var $=u`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,n=class extends h{constructor(){super(...arguments),this._beforeBack=async()=>{this._selectedSuggestion=void 0},this.messages=f(),this._colorizeStyle="",this._filterValue="",this.arcgisClose=a({bubbles:!1}),this.arcgisItemSelected=a({bubbles:!1})}static{this.properties={_colorizeStyle:16,_filterValue:16,_selectedSuggestion:16,suggestions:0}}static{this.styles=$}load(){this._colorizeStyle=r(),this._themeChangedListener=_(()=>this._colorizeStyle=r())}willUpdate(e){e.has("suggestions")&&this.suggestionsPropChanged()}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect(),this._themeChangedListener?.dispose()}suggestionsPropChanged(){this._selectedSuggestion=void 0}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{d(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_updateFilterValue(e){this._filterValue=e.currentTarget?.value??""}_emitItemSelected(e,t){let i=e;(!i.key||i.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(t.code))}_showSuggestionDetail(e,t){e.stopPropagation(),this._selectedSuggestion=t}_emitClose(){this.arcgisClose.emit()}_colorizeCode(e){e!==void 0&&b(e,this._selectedSuggestion.code)}renderSuggestionGroups(){return this.suggestions===void 0?null:S(this.suggestions)?this.suggestions.map(e=>s`<calcite-list-item-group .heading=${e.label}>${this.renderSuggestionListItems(e.suggestions)}</calcite-list-item-group>`):this.renderSuggestionListItems(this.suggestions)}renderSuggestionListItems(e){return e=p(e,"label",this._filterValue),e.length?e.map(t=>s`<calcite-list-item .label=${t.label} .description=${t.description} @calciteListItemSelect=${i=>this._emitItemSelected(i,t)} @keydown=${i=>this._emitItemSelected(i,t)} data-item=${t??c}><calcite-action slot=actions-end .text=${this.messages.expand??""} scale=s icon=chevron-right icon-flip-rtl @click=${i=>this._showSuggestionDetail(i,t)} data-item=${t??c}></calcite-action></calcite-list-item>`):s`<div class="notice-container">${this.messages.noitems}</div>`}renderSuggestionFlowItem(){let e=this._selectedSuggestion;return e?s`<calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose} .beforeBack=${this._beforeBack} selected><calcite-button width=half slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${t=>this._emitItemSelected(t,e)} data-item=${e??c} ${l(g)}>${this.messages.insert}</calcite-button><calcite-block open .heading=${e.label} .description=${e.description}><div .innerHTML=${v(e.documentation)??""}></div><pre><code ${l(this._colorizeCode)}></code></pre></calcite-block></calcite-flow-item>`:null}render(){return s`<style>${this._colorizeStyle}</style><calcite-flow ${l(this.flowFocusHandler)}><calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose} .selected=${!this._selectedSuggestion}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input><calcite-list label=suggestions>${this.renderSuggestionGroups()}</calcite-list></calcite-flow-item>${this.renderSuggestionFlowItem()}</calcite-flow>`}};m("arcgis-arcade-suggestions",n);export{n as ArcgisArcadeSuggestions};
@@ -1,3 +1,3 @@
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.87 */
3
+ v4.33.0-next.88 */
@@ -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.87 */
4
- import{b,d,e as g,f as F,g as M}from"./H6NYNA6L.js";import{b as m,c as y,d as h}from"./K7FPM25Q.js";import{x as f}from"./WULNQHCT.js";import{j as u}from"./P2B4IQJY.js";var A=o=>{let e=o.variables[0],i=e&&e.type==="featureSet"?w(e):void 0,{apiVersion:t,bundles:a,hiddenApiItems:s}=o.toEditorProfileDefinition();return{apiVersion:t,bundles:a,variables:i?[i]:[],hiddenApiItems:s?.map(r=>r.toLowerCase())}};function w(o){let{name:e}=o,i=o.getDescription(),{definition:t}=o.toProfileVariableDefinition(),a={label:e,detail:e,insertText:e,insertTextMode:h.asIs,insertTextFormat:y.PlainText,kind:m.Field},s={name:e,description:i,type:"dictionary",properties:[],completion:a};if(!t||!("fields"in t))return s;let[r,l]=g(t.fields,i);return s.properties=r,a.documentation={kind:"markdown",value:l},s}var P={id:"field-calculation",variables:[{name:"$layer",type:"featureSet",description:"The layer being calculated."}]};function T(){return P}function I(o){if(!d(o))return;let e=T();if(!e)return;let i={variables:[],hiddenApiItems:o.hiddenApiItems?.map(t=>t.toLowerCase())};return e.variables.forEach(t=>{if(o.disabledVariables?.includes(t.name))return;let a=o.definitions[t.name];switch(t.type){case"featureSet":return b(a)?i.variables.push({...t,type:t.type,definition:a}):void 0;default:throw Error(`sdkVariable type not supported (yet) type: ${t.type}`)}}),i}var x="arcgis-sql-expression",p=class extends M{constructor(){super(x,{apiPath:"./assets/sql-language/api",apiPrefix:"sql-api.t9n."}),this._languageId=x,this._layerMap=new Map}updateFeatureLayerForModel(e,i){let t=this._getApiKey(e);this._layerMap.set(t,i)}getFeatureLayerForModel(e){let i=this._getApiKey(e);return this._layerMap.get(i)}async setProfileForModel(e,i,t={locale:"en"}){d(i)&&(i=I(i));let a=await u(t.locale,f("./assets/editor-profile/t9n"),"messages.");if(!a)throw new Error(`Failed to load the language bundle for ${t.locale}`);this.disposeForModel(e);let s=this._getApiKey(e),r=new F(i,a);this._modelToProfileMap.set(s,r);let l=A(r);this.updateApiContextForModel(e,{locale:t.locale,profile:l});let c=i?.variables?.find(v=>v.name==="$layer");c&&this.updateFeatureLayerForModel(e,c.definition)}},n=new p,k={setProfileForModel:n.setProfileForModel.bind(n),getApiLibraryForModel:n.getApiLibraryForModel.bind(n)};export{n as a};
3
+ v4.33.0-next.88 */
4
+ import{b,d,e as g,f as F,g as M}from"./GH5J5YWP.js";import{b as m,c as y,d as h}from"./H3ELISVA.js";import{x as f}from"./4ZRLLTJ5.js";import{j as u}from"./J6F2O3J2.js";var A=o=>{let e=o.variables[0],i=e&&e.type==="featureSet"?w(e):void 0,{apiVersion:t,bundles:a,hiddenApiItems:s}=o.toEditorProfileDefinition();return{apiVersion:t,bundles:a,variables:i?[i]:[],hiddenApiItems:s?.map(r=>r.toLowerCase())}};function w(o){let{name:e}=o,i=o.getDescription(),{definition:t}=o.toProfileVariableDefinition(),a={label:e,detail:e,insertText:e,insertTextMode:h.asIs,insertTextFormat:y.PlainText,kind:m.Field},s={name:e,description:i,type:"dictionary",properties:[],completion:a};if(!t||!("fields"in t))return s;let[r,l]=g(t.fields,i);return s.properties=r,a.documentation={kind:"markdown",value:l},s}var P={id:"field-calculation",variables:[{name:"$layer",type:"featureSet",description:"The layer being calculated."}]};function T(){return P}function I(o){if(!d(o))return;let e=T();if(!e)return;let i={variables:[],hiddenApiItems:o.hiddenApiItems?.map(t=>t.toLowerCase())};return e.variables.forEach(t=>{if(o.disabledVariables?.includes(t.name))return;let a=o.definitions[t.name];switch(t.type){case"featureSet":return b(a)?i.variables.push({...t,type:t.type,definition:a}):void 0;default:throw Error(`sdkVariable type not supported (yet) type: ${t.type}`)}}),i}var x="arcgis-sql-expression",p=class extends M{constructor(){super(x,{apiPath:"./assets/sql-language/api",apiPrefix:"sql-api.t9n."}),this._languageId=x,this._layerMap=new Map}updateFeatureLayerForModel(e,i){let t=this._getApiKey(e);this._layerMap.set(t,i)}getFeatureLayerForModel(e){let i=this._getApiKey(e);return this._layerMap.get(i)}async setProfileForModel(e,i,t={locale:"en"}){d(i)&&(i=I(i));let a=await u(t.locale,f("./assets/editor-profile/t9n"),"messages.");if(!a)throw new Error(`Failed to load the language bundle for ${t.locale}`);this.disposeForModel(e);let s=this._getApiKey(e),r=new F(i,a);this._modelToProfileMap.set(s,r);let l=A(r);this.updateApiContextForModel(e,{locale:t.locale,profile:l});let c=i?.variables?.find(v=>v.name==="$layer");c&&this.updateFeatureLayerForModel(e,c.definition)}},n=new p,k={setProfileForModel:n.setProfileForModel.bind(n),getApiLibraryForModel:n.getApiLibraryForModel.bind(n)};export{n as a};
@@ -0,0 +1,3 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
+ v4.33.0-next.88 */
@@ -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.87 */
4
- import{a as D}from"./6MWD2F36.js";import{a as M}from"./X5EISBSE.js";import"./H6NYNA6L.js";import"./K7FPM25Q.js";import"./SR2AWJDB.js";import"./CTVFQXER.js";import"./IP4OXTBT.js";import{c as y,f as p,g as x,i as F,j as S,k as R,m as g,n as u,o as V,p as E,q as v,r as $,s as L,w as P}from"./WULNQHCT.js";import"./P2B4IQJY.js";import"./ZCV4T4JD.js";import"./7YG5DTK4.js";var q=(a,i,t)=>{let d=new Map;for(let e=i;e<=t;e++)d.set(a[e],e);return d},_=S(class extends R{constructor(a){if(super(a),a.type!==F.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,i,t){let d;t===void 0?t=i:i!==void 0&&(d=i);let e=[],n=[],o=0;for(let m of a)e[o]=d?d(m,o):o,n[o]=t(m,o),o++;return{values:n,keys:e}}render(a,i,t){return this.dt(a,i,t).values}update(a,[i,t,d]){let e=E(a),{values:n,keys:o}=this.dt(i,t,d);if(!Array.isArray(e))return this.ut=o,n;let m=this.ut??=[],h=[],b,k,s=0,c=e.length-1,l=0,r=n.length-1;for(;s<=c&&l<=r;)if(e[s]===null)s++;else if(e[c]===null)c--;else if(m[s]===o[l])h[l]=u(e[s],n[l]),s++,l++;else if(m[c]===o[r])h[r]=u(e[c],n[r]),c--,r--;else if(m[s]===o[r])h[r]=u(e[s],n[r]),g(a,h[r+1],e[s]),s++,r--;else if(m[c]===o[l])h[l]=u(e[c],n[l]),g(a,e[s],e[c]),c--,l++;else if(b===void 0&&(b=q(o,l,r),k=q(m,s,c)),b.has(m[s]))if(b.has(m[c])){let f=k.get(o[l]),w=f!==void 0?e[f]:null;if(w===null){let I=g(a,e[s]);u(I,n[l]),h[l]=I}else h[l]=u(w,n[l]),g(a,e[s],w),e[f]=null;l++}else v(e[c]),c--;else v(e[s]),s++;for(;l<=r;){let f=g(a,h[r+1]);u(f,n[l]),h[l++]=f}for(;s<=c;){let f=e[s++];f!==null&&v(f)}return this.ut=o,V(a,h),x}});var A=y`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,C=class extends L{constructor(){super(...arguments),this.messages=D(),this._filterValue="",this._flowItemRenderers=[],this._mutationCounter=1,this.loading=!1,this.arcgisClose=$({bubbles:!1}),this.arcgisFieldSelected=$({bubbles:!1})}static{this.properties={_filterValue:16,_flowItemRenderers:16,_mutationCounter:16,loading:5,modelId:1}}static{this.styles=A}willUpdate(i){i.has("modelId")&&(this._flowItemRenderers=[])}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect()}_handleSelectField(i){if(i.target instanceof HTMLElement)switch(i.target.tagName.toLowerCase()){case"calcite-list-item":{let t=i.target.value;this.arcgisFieldSelected.emit(t??"");break}case"calcite-action":i.stopPropagation();break}}_handleSelectDomain(i){let t=i.target.value;this.arcgisFieldSelected.emit(t?`'${t}'`:"")}_emitClose(){this.arcgisClose.emit()}render(){let i=M.getFeatureLayerForModel(this.modelId??"");return this.loading||!this.modelId||!i?p`<calcite-block .heading=${this.messages.availablefields??""}></calcite-block>`:p`<calcite-flow><calcite-flow-item .heading=${this.messages.availablefields??""} closable @calciteFlowItemClose=${this._emitClose}><calcite-list label=fields filter-enabled>${_(i.fields,t=>t.name,t=>p`<calcite-list-item @click=${this._handleSelectField} .label=${t.name} .description=${t.alias??""} .value=${t.name}>${t.domain&&p`<calcite-action slot=actions-end text=open icon=chevron-right @click=${()=>{let d=t.domain;d?.type==="coded-value"&&(this._flowItemRenderers=[...this._flowItemRenderers,()=>p`<calcite-flow-item closable .heading=${this.messages.domainvalues??""} .description=${t.name} @calciteFlowItemClose=${this._emitClose}><calcite-list label=domains>${_(d.codedValues,e=>e.code,e=>p`<calcite-list-item @click=${this._handleSelectDomain} .label=${e.name} .description=${String(e.code)} .value=${String(e.code)}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`])}}></calcite-action>`||""}</calcite-list-item>`)}</calcite-list></calcite-flow-item>${this._flowItemRenderers.map(t=>t())}</calcite-flow>`}};P("arcgis-sql-expression-fields",C);export{C as SqlExpressionFields};
3
+ v4.33.0-next.88 */
4
+ import{a as D}from"./QNTINBFI.js";import{a as M}from"./BILDBUID.js";import"./GH5J5YWP.js";import"./H3ELISVA.js";import"./QZ7UXYEI.js";import"./LLVHV63Z.js";import"./ZWS472ME.js";import{c as y,f as p,g as x,i as F,j as S,k as R,m as g,n as u,o as V,p as E,q as v,r as $,s as L,w as P}from"./4ZRLLTJ5.js";import"./J6F2O3J2.js";import"./GTD47LI4.js";import"./ORG5PCVK.js";var q=(a,i,t)=>{let d=new Map;for(let e=i;e<=t;e++)d.set(a[e],e);return d},_=S(class extends R{constructor(a){if(super(a),a.type!==F.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,i,t){let d;t===void 0?t=i:i!==void 0&&(d=i);let e=[],n=[],o=0;for(let m of a)e[o]=d?d(m,o):o,n[o]=t(m,o),o++;return{values:n,keys:e}}render(a,i,t){return this.dt(a,i,t).values}update(a,[i,t,d]){let e=E(a),{values:n,keys:o}=this.dt(i,t,d);if(!Array.isArray(e))return this.ut=o,n;let m=this.ut??=[],h=[],b,k,s=0,c=e.length-1,l=0,r=n.length-1;for(;s<=c&&l<=r;)if(e[s]===null)s++;else if(e[c]===null)c--;else if(m[s]===o[l])h[l]=u(e[s],n[l]),s++,l++;else if(m[c]===o[r])h[r]=u(e[c],n[r]),c--,r--;else if(m[s]===o[r])h[r]=u(e[s],n[r]),g(a,h[r+1],e[s]),s++,r--;else if(m[c]===o[l])h[l]=u(e[c],n[l]),g(a,e[s],e[c]),c--,l++;else if(b===void 0&&(b=q(o,l,r),k=q(m,s,c)),b.has(m[s]))if(b.has(m[c])){let f=k.get(o[l]),w=f!==void 0?e[f]:null;if(w===null){let I=g(a,e[s]);u(I,n[l]),h[l]=I}else h[l]=u(w,n[l]),g(a,e[s],w),e[f]=null;l++}else v(e[c]),c--;else v(e[s]),s++;for(;l<=r;){let f=g(a,h[r+1]);u(f,n[l]),h[l++]=f}for(;s<=c;){let f=e[s++];f!==null&&v(f)}return this.ut=o,V(a,h),x}});var A=y`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,C=class extends L{constructor(){super(...arguments),this.messages=D(),this._filterValue="",this._flowItemRenderers=[],this._mutationCounter=1,this.loading=!1,this.arcgisClose=$({bubbles:!1}),this.arcgisFieldSelected=$({bubbles:!1})}static{this.properties={_filterValue:16,_flowItemRenderers:16,_mutationCounter:16,loading:5,modelId:1}}static{this.styles=A}willUpdate(i){i.has("modelId")&&(this._flowItemRenderers=[])}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect()}_handleSelectField(i){if(i.target instanceof HTMLElement)switch(i.target.tagName.toLowerCase()){case"calcite-list-item":{let t=i.target.value;this.arcgisFieldSelected.emit(t??"");break}case"calcite-action":i.stopPropagation();break}}_handleSelectDomain(i){let t=i.target.value;this.arcgisFieldSelected.emit(t?`'${t}'`:"")}_emitClose(){this.arcgisClose.emit()}render(){let i=M.getFeatureLayerForModel(this.modelId??"");return this.loading||!this.modelId||!i?p`<calcite-block .heading=${this.messages.availablefields??""}></calcite-block>`:p`<calcite-flow><calcite-flow-item .heading=${this.messages.availablefields??""} closable @calciteFlowItemClose=${this._emitClose}><calcite-list label=fields filter-enabled>${_(i.fields,t=>t.name,t=>p`<calcite-list-item @click=${this._handleSelectField} .label=${t.name} .description=${t.alias??""} .value=${t.name}>${t.domain&&p`<calcite-action slot=actions-end text=open icon=chevron-right @click=${()=>{let d=t.domain;d?.type==="coded-value"&&(this._flowItemRenderers=[...this._flowItemRenderers,()=>p`<calcite-flow-item closable .heading=${this.messages.domainvalues??""} .description=${t.name} @calciteFlowItemClose=${this._emitClose}><calcite-list label=domains>${_(d.codedValues,e=>e.code,e=>p`<calcite-list-item @click=${this._handleSelectDomain} .label=${e.name} .description=${String(e.code)} .value=${String(e.code)}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`])}}></calcite-action>`||""}</calcite-list-item>`)}</calcite-list></calcite-flow-item>${this._flowItemRenderers.map(t=>t())}</calcite-flow>`}};P("arcgis-sql-expression-fields",C);export{C as SqlExpressionFields};
@@ -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.87 */
3
+ v4.33.0-next.88 */
4
4
 
5
5
  Bundled license information:
6
6
 
@@ -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.87 */
4
- import{a as h,b as g}from"./OIGIGPBL.js";import{a as p}from"./6MWD2F36.js";import{a}from"./X5EISBSE.js";import"./H6NYNA6L.js";import"./K7FPM25Q.js";import"./SR2AWJDB.js";import"./CTVFQXER.js";import"./IP4OXTBT.js";import{c as r,e as n,f as e,r as c,s as d,w as l}from"./WULNQHCT.js";import{h as s}from"./P2B4IQJY.js";import"./ZCV4T4JD.js";import"./7YG5DTK4.js";var f=r`@layer{arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}}}`,o=class extends d{constructor(){super(...arguments),this._codeEditorElt=h(),this.messages=p(),this._modelId=s(),this._preparing=!1,this.sideActionBarExpanded=!1,this.script="",this.hideSideBar=!1,this.arcgisScriptChange=c({bubbles:!1})}static{this.properties={_activeAction:16,_apiLibrary:16,_editorProfile:16,_preparing:16,sideActionBarExpanded:16,profile:0,script:1,hideSideBar:5}}static{this.shadowRootOptions=n}static{this.styles=f}async load(){await this._updateEditorProfile().catch(console.error)}willUpdate(i){(i.has("messages")||i.has("profile"))&&this._updateDataModelDeps()}async _updateDataModelDeps(){await this._updateEditorProfile(),await this._updateApiLibrary()}async _updateEditorProfile(){this._preparing=!0;try{await a.setProfileForModel(this._modelId,this.profile,{locale:this.messages._t9nLocale}),this._editorProfile=a.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._preparing=!1}}_setActiveAction(i){if(this._activeAction===i){this._activeAction=void 0;return}this._activeAction=i}_handleActionClick(i){let t=i.target;this._setActiveAction(t.dataset.panelName)}_insertAsSnippet(i){this._codeEditorElt.value?.insertSnippet(i.detail).catch(console.error)}_insertAsText(i){this._codeEditorElt.value?.insertText(i.detail.replaceAll('"',"'")).catch(console.error)}async _updateApiLibrary(){this._apiLibrary=await a.getApiLibraryForModel(this._modelId)}_onCodeEditorValueChange(i){i.stopPropagation(),this.script=i.detail,this.arcgisScriptChange.emit(i.detail)}_getFeatureSetVariable(){let i,t=a.getEditorProfileForModel(this._modelId);return t?.variables?.length&&t?.variables?.[0]?.type!=="featureSet"?console.error("encountered unexpected editor profile"):i=t?.variables?.[0],i}_toggleSideActionBarExpanded(){this.sideActionBarExpanded=!this.sideActionBarExpanded}render(){let i=this._getFeatureSetVariable();return e`<div class="flex-row flex-adjustable"><div class="flex-column flex-adjustable"><arcgis-code-editor language=arcgis-sql-expression .modelId=${this._modelId} .value=${this.script??""} @arcgisValueChange=${this._onCodeEditorValueChange} ${g(this._codeEditorElt)}></arcgis-code-editor></div>${this._activeAction==="fields"&&!this.hideSideBar&&e`<arcgis-editor-variables .variable=${i} class="side-panel flex-panel border-inline-start" .loading=${this._preparing} .modelId=${this._modelId} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${()=>this._setActiveAction(void 0)} data-panel-name=none></arcgis-editor-variables>`||""}${this._activeAction==="functions"&&!this.hideSideBar&&e`<arcgis-language-api-panel class="side-panel flex-panel border-inline-start" @arcgisItemSelected=${this._insertAsSnippet} @arcgisClose=${()=>this._setActiveAction(void 0)} .loading=${this._preparing} .apiLibrary=${this._apiLibrary} data-panel-name=none hide-documentation-actions></arcgis-language-api-panel>`||""}${!this.hideSideBar&&e`<calcite-action-bar class="side-action-bar border-inline-start" .expanded=${this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action id=fields-action .text=${this.messages.fields??"Fields"} icon=profile-variables .active=${this._activeAction==="fields"} data-panel-name=fields @click=${this._handleActionClick}></calcite-action>${!this.sideActionBarExpanded&&e`<calcite-tooltip reference-element=fields-action><span>${this.messages.fields??"Fields"}</span></calcite-tooltip>`||""}<calcite-action id=functions-action .text=${this.messages.functions??"Functions"} icon=function .active=${this._activeAction==="functions"} data-panel-name=functions @click=${this._handleActionClick}></calcite-action>${!this.sideActionBarExpanded&&e`<calcite-tooltip reference-element=functions-action><span>${this.messages.functions??"Functions"}</span></calcite-tooltip>`||""}</calcite-action-bar>`||""}</div>`}};l("arcgis-sql-expression-editor",o);export{o as ArcgisSqlExpressionEditor};
3
+ v4.33.0-next.88 */
4
+ import{a as h,b as g}from"./UEFNRCBG.js";import{a as p}from"./QNTINBFI.js";import{a}from"./BILDBUID.js";import"./GH5J5YWP.js";import"./H3ELISVA.js";import"./QZ7UXYEI.js";import"./LLVHV63Z.js";import"./ZWS472ME.js";import{c as r,e as n,f as e,r as c,s as d,w as l}from"./4ZRLLTJ5.js";import{h as s}from"./J6F2O3J2.js";import"./GTD47LI4.js";import"./ORG5PCVK.js";var f=r`@layer{arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}}}`,o=class extends d{constructor(){super(...arguments),this._codeEditorElt=h(),this.messages=p(),this._modelId=s(),this._preparing=!1,this.sideActionBarExpanded=!1,this.script="",this.hideSideBar=!1,this.arcgisScriptChange=c({bubbles:!1})}static{this.properties={_activeAction:16,_apiLibrary:16,_editorProfile:16,_preparing:16,sideActionBarExpanded:16,profile:0,script:1,hideSideBar:5}}static{this.shadowRootOptions=n}static{this.styles=f}async load(){await this._updateEditorProfile().catch(console.error)}willUpdate(i){(i.has("messages")||i.has("profile"))&&this._updateDataModelDeps()}async _updateDataModelDeps(){await this._updateEditorProfile(),await this._updateApiLibrary()}async _updateEditorProfile(){this._preparing=!0;try{await a.setProfileForModel(this._modelId,this.profile,{locale:this.messages._t9nLocale}),this._editorProfile=a.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._preparing=!1}}_setActiveAction(i){if(this._activeAction===i){this._activeAction=void 0;return}this._activeAction=i}_handleActionClick(i){let t=i.target;this._setActiveAction(t.dataset.panelName)}_insertAsSnippet(i){this._codeEditorElt.value?.insertSnippet(i.detail).catch(console.error)}_insertAsText(i){this._codeEditorElt.value?.insertText(i.detail.replaceAll('"',"'")).catch(console.error)}async _updateApiLibrary(){this._apiLibrary=await a.getApiLibraryForModel(this._modelId)}_onCodeEditorValueChange(i){i.stopPropagation(),this.script=i.detail,this.arcgisScriptChange.emit(i.detail)}_getFeatureSetVariable(){let i,t=a.getEditorProfileForModel(this._modelId);return t?.variables?.length&&t?.variables?.[0]?.type!=="featureSet"?console.error("encountered unexpected editor profile"):i=t?.variables?.[0],i}_toggleSideActionBarExpanded(){this.sideActionBarExpanded=!this.sideActionBarExpanded}render(){let i=this._getFeatureSetVariable();return e`<div class="flex-row flex-adjustable"><div class="flex-column flex-adjustable"><arcgis-code-editor language=arcgis-sql-expression .modelId=${this._modelId} .value=${this.script??""} @arcgisValueChange=${this._onCodeEditorValueChange} ${g(this._codeEditorElt)}></arcgis-code-editor></div>${this._activeAction==="fields"&&!this.hideSideBar&&e`<arcgis-editor-variables .variable=${i} class="side-panel flex-panel border-inline-start" .loading=${this._preparing} .modelId=${this._modelId} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${()=>this._setActiveAction(void 0)} data-panel-name=none></arcgis-editor-variables>`||""}${this._activeAction==="functions"&&!this.hideSideBar&&e`<arcgis-language-api-panel class="side-panel flex-panel border-inline-start" @arcgisItemSelected=${this._insertAsSnippet} @arcgisClose=${()=>this._setActiveAction(void 0)} .loading=${this._preparing} .apiLibrary=${this._apiLibrary} data-panel-name=none hide-documentation-actions></arcgis-language-api-panel>`||""}${!this.hideSideBar&&e`<calcite-action-bar class="side-action-bar border-inline-start" .expanded=${this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action id=fields-action .text=${this.messages.fields??"Fields"} icon=profile-variables .active=${this._activeAction==="fields"} data-panel-name=fields @click=${this._handleActionClick}></calcite-action>${!this.sideActionBarExpanded&&e`<calcite-tooltip reference-element=fields-action><span>${this.messages.fields??"Fields"}</span></calcite-tooltip>`||""}<calcite-action id=functions-action .text=${this.messages.functions??"Functions"} icon=function .active=${this._activeAction==="functions"} data-panel-name=functions @click=${this._handleActionClick}></calcite-action>${!this.sideActionBarExpanded&&e`<calcite-tooltip reference-element=functions-action><span>${this.messages.functions??"Functions"}</span></calcite-tooltip>`||""}</calcite-action-bar>`||""}</div>`}};l("arcgis-sql-expression-editor",o);export{o as ArcgisSqlExpressionEditor};
@@ -0,0 +1,3 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
+ v4.33.0-next.88 */
@@ -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.87 */
4
- import{a as T}from"./IP4OXTBT.js";import{Tl as F}from"./ZCV4T4JD.js";import"./7YG5DTK4.js";var M=Object.defineProperty,R=Object.getOwnPropertyDescriptor,K=Object.getOwnPropertyNames,E=Object.prototype.hasOwnProperty,P=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of K(t))!E.call(e,l)&&l!==o&&M(e,l,{get:()=>t[l],enumerable:!(r=R(t,l))||r.enumerable});return e},H=(e,t,o)=>(P(e,t,"default"),o&&P(o,t,"default")),n={};H(n,F);var V=class{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;let e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=n.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(n.editor.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){let t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},s={};s["lib.d.ts"]=!0;s["lib.decorators.d.ts"]=!0;s["lib.decorators.legacy.d.ts"]=!0;s["lib.dom.asynciterable.d.ts"]=!0;s["lib.dom.d.ts"]=!0;s["lib.dom.iterable.d.ts"]=!0;s["lib.es2015.collection.d.ts"]=!0;s["lib.es2015.core.d.ts"]=!0;s["lib.es2015.d.ts"]=!0;s["lib.es2015.generator.d.ts"]=!0;s["lib.es2015.iterable.d.ts"]=!0;s["lib.es2015.promise.d.ts"]=!0;s["lib.es2015.proxy.d.ts"]=!0;s["lib.es2015.reflect.d.ts"]=!0;s["lib.es2015.symbol.d.ts"]=!0;s["lib.es2015.symbol.wellknown.d.ts"]=!0;s["lib.es2016.array.include.d.ts"]=!0;s["lib.es2016.d.ts"]=!0;s["lib.es2016.full.d.ts"]=!0;s["lib.es2016.intl.d.ts"]=!0;s["lib.es2017.d.ts"]=!0;s["lib.es2017.date.d.ts"]=!0;s["lib.es2017.full.d.ts"]=!0;s["lib.es2017.intl.d.ts"]=!0;s["lib.es2017.object.d.ts"]=!0;s["lib.es2017.sharedmemory.d.ts"]=!0;s["lib.es2017.string.d.ts"]=!0;s["lib.es2017.typedarrays.d.ts"]=!0;s["lib.es2018.asyncgenerator.d.ts"]=!0;s["lib.es2018.asynciterable.d.ts"]=!0;s["lib.es2018.d.ts"]=!0;s["lib.es2018.full.d.ts"]=!0;s["lib.es2018.intl.d.ts"]=!0;s["lib.es2018.promise.d.ts"]=!0;s["lib.es2018.regexp.d.ts"]=!0;s["lib.es2019.array.d.ts"]=!0;s["lib.es2019.d.ts"]=!0;s["lib.es2019.full.d.ts"]=!0;s["lib.es2019.intl.d.ts"]=!0;s["lib.es2019.object.d.ts"]=!0;s["lib.es2019.string.d.ts"]=!0;s["lib.es2019.symbol.d.ts"]=!0;s["lib.es2020.bigint.d.ts"]=!0;s["lib.es2020.d.ts"]=!0;s["lib.es2020.date.d.ts"]=!0;s["lib.es2020.full.d.ts"]=!0;s["lib.es2020.intl.d.ts"]=!0;s["lib.es2020.number.d.ts"]=!0;s["lib.es2020.promise.d.ts"]=!0;s["lib.es2020.sharedmemory.d.ts"]=!0;s["lib.es2020.string.d.ts"]=!0;s["lib.es2020.symbol.wellknown.d.ts"]=!0;s["lib.es2021.d.ts"]=!0;s["lib.es2021.full.d.ts"]=!0;s["lib.es2021.intl.d.ts"]=!0;s["lib.es2021.promise.d.ts"]=!0;s["lib.es2021.string.d.ts"]=!0;s["lib.es2021.weakref.d.ts"]=!0;s["lib.es2022.array.d.ts"]=!0;s["lib.es2022.d.ts"]=!0;s["lib.es2022.error.d.ts"]=!0;s["lib.es2022.full.d.ts"]=!0;s["lib.es2022.intl.d.ts"]=!0;s["lib.es2022.object.d.ts"]=!0;s["lib.es2022.regexp.d.ts"]=!0;s["lib.es2022.sharedmemory.d.ts"]=!0;s["lib.es2022.string.d.ts"]=!0;s["lib.es2023.array.d.ts"]=!0;s["lib.es2023.collection.d.ts"]=!0;s["lib.es2023.d.ts"]=!0;s["lib.es2023.full.d.ts"]=!0;s["lib.es5.d.ts"]=!0;s["lib.es6.d.ts"]=!0;s["lib.esnext.collection.d.ts"]=!0;s["lib.esnext.d.ts"]=!0;s["lib.esnext.decorators.d.ts"]=!0;s["lib.esnext.disposable.d.ts"]=!0;s["lib.esnext.full.d.ts"]=!0;s["lib.esnext.intl.d.ts"]=!0;s["lib.esnext.object.d.ts"]=!0;s["lib.esnext.promise.d.ts"]=!0;s["lib.scripthost.d.ts"]=!0;s["lib.webworker.asynciterable.d.ts"]=!0;s["lib.webworker.d.ts"]=!0;s["lib.webworker.importscripts.d.ts"]=!0;s["lib.webworker.iterable.d.ts"]=!0;function C(e,t,o=0){if(typeof e=="string")return e;if(e===void 0)return"";let r="";if(o){r+=t;for(let l=0;l<o;l++)r+=" "}if(r+=e.messageText,o++,e.next)for(let l of e.next)r+=C(l,t,o);return r}function _(e){return e?e.map(t=>t.text).join(""):""}var m=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let o=e.getPositionAt(t.start),r=e.getPositionAt(t.start+t.length),{lineNumber:l,column:c}=o,{lineNumber:u,column:a}=r;return{startLineNumber:l,startColumn:c,endLineNumber:u,endColumn:a}}},W=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!s[e.path.slice(1)]:!1}getOrCreateModel(e){let t=n.Uri.parse(e),o=n.editor.getModel(t);if(o)return o;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return n.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);let r=T.getExtraLibs()[e];return r?n.editor.createModel(r.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}},j=class extends m{constructor(e,t,o,r){super(r),this._libFiles=e,this._defaults=t,this._selector=o,this._disposables=[],this._listener=Object.create(null);let l=a=>{if(a.getLanguageId()!==o)return;let i=()=>{let{onlyVisible:f}=this._defaults.getDiagnosticsOptions();f?a.isAttachedToEditor()&&this._doValidate(a):this._doValidate(a)},g,d=a.onDidChangeContent(()=>{clearTimeout(g),g=window.setTimeout(i,500)}),h=a.onDidChangeAttached(()=>{let{onlyVisible:f}=this._defaults.getDiagnosticsOptions();f&&(a.isAttachedToEditor()?i():n.editor.setModelMarkers(a,this._selector,[]))});this._listener[a.uri.toString()]={dispose(){d.dispose(),h.dispose(),clearTimeout(g)}},i()},c=a=>{n.editor.setModelMarkers(a,this._selector,[]);let i=a.uri.toString();this._listener[i]&&(this._listener[i].dispose(),delete this._listener[i])};this._disposables.push(n.editor.onDidCreateModel(a=>l(a))),this._disposables.push(n.editor.onWillDisposeModel(c)),this._disposables.push(n.editor.onDidChangeModelLanguage(a=>{c(a.model),l(a.model)})),this._disposables.push({dispose(){for(let a of n.editor.getModels())c(a)}});let u=()=>{for(let a of n.editor.getModels())c(a),l(a)};this._disposables.push(this._defaults.onDidChange(u)),this._disposables.push(this._defaults.onDidExtraLibsChange(u)),n.editor.getModels().forEach(a=>l(a))}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){let t=await this._worker(e.uri);if(e.isDisposed())return;let o=[],{noSyntaxValidation:r,noSemanticValidation:l,noSuggestionDiagnostics:c}=this._defaults.getDiagnosticsOptions();r||o.push(t.getSyntacticDiagnostics(e.uri.toString())),l||o.push(t.getSemanticDiagnostics(e.uri.toString())),c||o.push(t.getSuggestionDiagnostics(e.uri.toString()));let u=await Promise.all(o);if(!u||e.isDisposed())return;let a=u.reduce((g,d)=>d.concat(g),[]).filter(g=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(g.code)===-1),i=a.map(g=>g.relatedInformation||[]).reduce((g,d)=>d.concat(g),[]).map(g=>g.file?n.Uri.parse(g.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(i),!e.isDisposed()&&n.editor.setModelMarkers(e,this._selector,a.map(g=>this._convertDiagnostics(e,g)))}_convertDiagnostics(e,t){let o=t.start||0,r=t.length||1,{lineNumber:l,column:c}=e.getPositionAt(o),{lineNumber:u,column:a}=e.getPositionAt(o+r),i=[];return t.reportsUnnecessary&&i.push(n.MarkerTag.Unnecessary),t.reportsDeprecated&&i.push(n.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:l,startColumn:c,endLineNumber:u,endColumn:a,message:C(t.messageText,`
3
+ v4.33.0-next.88 */
4
+ import{a as T}from"./ZWS472ME.js";import{Tl as F}from"./GTD47LI4.js";import"./ORG5PCVK.js";var M=Object.defineProperty,R=Object.getOwnPropertyDescriptor,K=Object.getOwnPropertyNames,E=Object.prototype.hasOwnProperty,P=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of K(t))!E.call(e,l)&&l!==o&&M(e,l,{get:()=>t[l],enumerable:!(r=R(t,l))||r.enumerable});return e},H=(e,t,o)=>(P(e,t,"default"),o&&P(o,t,"default")),n={};H(n,F);var V=class{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;let e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=n.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(n.editor.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){let t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},s={};s["lib.d.ts"]=!0;s["lib.decorators.d.ts"]=!0;s["lib.decorators.legacy.d.ts"]=!0;s["lib.dom.asynciterable.d.ts"]=!0;s["lib.dom.d.ts"]=!0;s["lib.dom.iterable.d.ts"]=!0;s["lib.es2015.collection.d.ts"]=!0;s["lib.es2015.core.d.ts"]=!0;s["lib.es2015.d.ts"]=!0;s["lib.es2015.generator.d.ts"]=!0;s["lib.es2015.iterable.d.ts"]=!0;s["lib.es2015.promise.d.ts"]=!0;s["lib.es2015.proxy.d.ts"]=!0;s["lib.es2015.reflect.d.ts"]=!0;s["lib.es2015.symbol.d.ts"]=!0;s["lib.es2015.symbol.wellknown.d.ts"]=!0;s["lib.es2016.array.include.d.ts"]=!0;s["lib.es2016.d.ts"]=!0;s["lib.es2016.full.d.ts"]=!0;s["lib.es2016.intl.d.ts"]=!0;s["lib.es2017.d.ts"]=!0;s["lib.es2017.date.d.ts"]=!0;s["lib.es2017.full.d.ts"]=!0;s["lib.es2017.intl.d.ts"]=!0;s["lib.es2017.object.d.ts"]=!0;s["lib.es2017.sharedmemory.d.ts"]=!0;s["lib.es2017.string.d.ts"]=!0;s["lib.es2017.typedarrays.d.ts"]=!0;s["lib.es2018.asyncgenerator.d.ts"]=!0;s["lib.es2018.asynciterable.d.ts"]=!0;s["lib.es2018.d.ts"]=!0;s["lib.es2018.full.d.ts"]=!0;s["lib.es2018.intl.d.ts"]=!0;s["lib.es2018.promise.d.ts"]=!0;s["lib.es2018.regexp.d.ts"]=!0;s["lib.es2019.array.d.ts"]=!0;s["lib.es2019.d.ts"]=!0;s["lib.es2019.full.d.ts"]=!0;s["lib.es2019.intl.d.ts"]=!0;s["lib.es2019.object.d.ts"]=!0;s["lib.es2019.string.d.ts"]=!0;s["lib.es2019.symbol.d.ts"]=!0;s["lib.es2020.bigint.d.ts"]=!0;s["lib.es2020.d.ts"]=!0;s["lib.es2020.date.d.ts"]=!0;s["lib.es2020.full.d.ts"]=!0;s["lib.es2020.intl.d.ts"]=!0;s["lib.es2020.number.d.ts"]=!0;s["lib.es2020.promise.d.ts"]=!0;s["lib.es2020.sharedmemory.d.ts"]=!0;s["lib.es2020.string.d.ts"]=!0;s["lib.es2020.symbol.wellknown.d.ts"]=!0;s["lib.es2021.d.ts"]=!0;s["lib.es2021.full.d.ts"]=!0;s["lib.es2021.intl.d.ts"]=!0;s["lib.es2021.promise.d.ts"]=!0;s["lib.es2021.string.d.ts"]=!0;s["lib.es2021.weakref.d.ts"]=!0;s["lib.es2022.array.d.ts"]=!0;s["lib.es2022.d.ts"]=!0;s["lib.es2022.error.d.ts"]=!0;s["lib.es2022.full.d.ts"]=!0;s["lib.es2022.intl.d.ts"]=!0;s["lib.es2022.object.d.ts"]=!0;s["lib.es2022.regexp.d.ts"]=!0;s["lib.es2022.sharedmemory.d.ts"]=!0;s["lib.es2022.string.d.ts"]=!0;s["lib.es2023.array.d.ts"]=!0;s["lib.es2023.collection.d.ts"]=!0;s["lib.es2023.d.ts"]=!0;s["lib.es2023.full.d.ts"]=!0;s["lib.es5.d.ts"]=!0;s["lib.es6.d.ts"]=!0;s["lib.esnext.collection.d.ts"]=!0;s["lib.esnext.d.ts"]=!0;s["lib.esnext.decorators.d.ts"]=!0;s["lib.esnext.disposable.d.ts"]=!0;s["lib.esnext.full.d.ts"]=!0;s["lib.esnext.intl.d.ts"]=!0;s["lib.esnext.object.d.ts"]=!0;s["lib.esnext.promise.d.ts"]=!0;s["lib.scripthost.d.ts"]=!0;s["lib.webworker.asynciterable.d.ts"]=!0;s["lib.webworker.d.ts"]=!0;s["lib.webworker.importscripts.d.ts"]=!0;s["lib.webworker.iterable.d.ts"]=!0;function C(e,t,o=0){if(typeof e=="string")return e;if(e===void 0)return"";let r="";if(o){r+=t;for(let l=0;l<o;l++)r+=" "}if(r+=e.messageText,o++,e.next)for(let l of e.next)r+=C(l,t,o);return r}function _(e){return e?e.map(t=>t.text).join(""):""}var m=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let o=e.getPositionAt(t.start),r=e.getPositionAt(t.start+t.length),{lineNumber:l,column:c}=o,{lineNumber:u,column:a}=r;return{startLineNumber:l,startColumn:c,endLineNumber:u,endColumn:a}}},W=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!s[e.path.slice(1)]:!1}getOrCreateModel(e){let t=n.Uri.parse(e),o=n.editor.getModel(t);if(o)return o;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return n.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);let r=T.getExtraLibs()[e];return r?n.editor.createModel(r.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}},j=class extends m{constructor(e,t,o,r){super(r),this._libFiles=e,this._defaults=t,this._selector=o,this._disposables=[],this._listener=Object.create(null);let l=a=>{if(a.getLanguageId()!==o)return;let i=()=>{let{onlyVisible:f}=this._defaults.getDiagnosticsOptions();f?a.isAttachedToEditor()&&this._doValidate(a):this._doValidate(a)},g,d=a.onDidChangeContent(()=>{clearTimeout(g),g=window.setTimeout(i,500)}),h=a.onDidChangeAttached(()=>{let{onlyVisible:f}=this._defaults.getDiagnosticsOptions();f&&(a.isAttachedToEditor()?i():n.editor.setModelMarkers(a,this._selector,[]))});this._listener[a.uri.toString()]={dispose(){d.dispose(),h.dispose(),clearTimeout(g)}},i()},c=a=>{n.editor.setModelMarkers(a,this._selector,[]);let i=a.uri.toString();this._listener[i]&&(this._listener[i].dispose(),delete this._listener[i])};this._disposables.push(n.editor.onDidCreateModel(a=>l(a))),this._disposables.push(n.editor.onWillDisposeModel(c)),this._disposables.push(n.editor.onDidChangeModelLanguage(a=>{c(a.model),l(a.model)})),this._disposables.push({dispose(){for(let a of n.editor.getModels())c(a)}});let u=()=>{for(let a of n.editor.getModels())c(a),l(a)};this._disposables.push(this._defaults.onDidChange(u)),this._disposables.push(this._defaults.onDidExtraLibsChange(u)),n.editor.getModels().forEach(a=>l(a))}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){let t=await this._worker(e.uri);if(e.isDisposed())return;let o=[],{noSyntaxValidation:r,noSemanticValidation:l,noSuggestionDiagnostics:c}=this._defaults.getDiagnosticsOptions();r||o.push(t.getSyntacticDiagnostics(e.uri.toString())),l||o.push(t.getSemanticDiagnostics(e.uri.toString())),c||o.push(t.getSuggestionDiagnostics(e.uri.toString()));let u=await Promise.all(o);if(!u||e.isDisposed())return;let a=u.reduce((g,d)=>d.concat(g),[]).filter(g=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(g.code)===-1),i=a.map(g=>g.relatedInformation||[]).reduce((g,d)=>d.concat(g),[]).map(g=>g.file?n.Uri.parse(g.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(i),!e.isDisposed()&&n.editor.setModelMarkers(e,this._selector,a.map(g=>this._convertDiagnostics(e,g)))}_convertDiagnostics(e,t){let o=t.start||0,r=t.length||1,{lineNumber:l,column:c}=e.getPositionAt(o),{lineNumber:u,column:a}=e.getPositionAt(o+r),i=[];return t.reportsUnnecessary&&i.push(n.MarkerTag.Unnecessary),t.reportsDeprecated&&i.push(n.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:l,startColumn:c,endLineNumber:u,endColumn:a,message:C(t.messageText,`
5
5
  `),code:t.code.toString(),tags:i,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];let o=[];return t.forEach(r=>{let l=e;if(r.file&&(l=this._libFiles.getOrCreateModel(r.file.fileName)),!l)return;let c=r.start||0,u=r.length||1,{lineNumber:a,column:i}=l.getPositionAt(c),{lineNumber:g,column:d}=l.getPositionAt(c+u);o.push({resource:l.uri,startLineNumber:a,startColumn:i,endLineNumber:g,endColumn:d,message:C(r.messageText,`
6
6
  `)})}),o}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return n.MarkerSeverity.Error;case 3:return n.MarkerSeverity.Info;case 0:return n.MarkerSeverity.Warning;case 2:return n.MarkerSeverity.Hint}return n.MarkerSeverity.Info}},B=class x extends m{get triggerCharacters(){return["."]}async provideCompletionItems(t,o,r,l){let c=t.getWordUntilPosition(o),u=new n.Range(o.lineNumber,c.startColumn,o.lineNumber,c.endColumn),a=t.uri,i=t.getOffsetAt(o),g=await this._worker(a);if(t.isDisposed())return;let d=await g.getCompletionsAtPosition(a.toString(),i);return!d||t.isDisposed()?void 0:{suggestions:d.entries.map(f=>{let w=u;if(f.replacementSpan){let k=t.getPositionAt(f.replacementSpan.start),v=t.getPositionAt(f.replacementSpan.start+f.replacementSpan.length);w=new n.Range(k.lineNumber,k.column,v.lineNumber,v.column)}let S=[];return f.kindModifiers!==void 0&&f.kindModifiers.indexOf("deprecated")!==-1&&S.push(n.languages.CompletionItemTag.Deprecated),{uri:a,position:o,offset:i,range:w,label:f.name,insertText:f.name,sortText:f.sortText,kind:x.convertKind(f.kind),tags:S}})}}async resolveCompletionItem(t,o){let r=t,l=r.uri,c=r.position,u=r.offset,i=await(await this._worker(l)).getCompletionEntryDetails(l.toString(),u,r.label);return i?{uri:l,position:c,label:i.name,kind:x.convertKind(i.kind),detail:_(i.displayParts),documentation:{value:x.createDocumentationString(i)}}:r}static convertKind(t){switch(t){case p.primitiveType:case p.keyword:return n.languages.CompletionItemKind.Keyword;case p.variable:case p.localVariable:return n.languages.CompletionItemKind.Variable;case p.memberVariable:case p.memberGetAccessor:case p.memberSetAccessor:return n.languages.CompletionItemKind.Field;case p.function:case p.memberFunction:case p.constructSignature:case p.callSignature:case p.indexSignature:return n.languages.CompletionItemKind.Function;case p.enum:return n.languages.CompletionItemKind.Enum;case p.module:return n.languages.CompletionItemKind.Module;case p.class:return n.languages.CompletionItemKind.Class;case p.interface:return n.languages.CompletionItemKind.Interface;case p.warning:return n.languages.CompletionItemKind.File}return n.languages.CompletionItemKind.Property}static createDocumentationString(t){let o=_(t.documentation);if(t.tags)for(let r of t.tags)o+=`
7
7