@arcgis/coding-components 4.31.0-next.6 → 4.31.0-next.61

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 (218) hide show
  1. package/README.md +22 -3
  2. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  3. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ar.json +1 -1
  4. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bg.json +1 -1
  5. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bs.json +1 -1
  6. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ca.json +6 -6
  7. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.cs.json +1 -1
  8. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.da.json +1 -1
  9. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.de.json +1 -1
  10. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.el.json +1 -1
  11. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.es.json +1 -1
  12. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.et.json +1 -1
  13. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fi.json +1 -1
  14. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fr.json +1 -1
  15. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.he.json +1 -1
  16. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hr.json +1 -1
  17. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.id.json +1 -1
  18. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.it.json +1 -1
  19. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ko.json +1 -1
  20. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nb.json +1 -1
  21. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nl.json +1 -1
  22. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pl.json +1 -1
  23. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-BR.json +1 -1
  24. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-PT.json +1 -1
  25. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ru.json +1 -1
  26. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sk.json +1 -1
  27. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sl.json +1 -1
  28. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sr.json +1 -1
  29. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sv.json +1 -1
  30. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.th.json +1 -1
  31. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.tr.json +1 -1
  32. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.uk.json +5 -5
  33. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.vi.json +1 -1
  34. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-CN.json +1 -1
  35. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-HK.json +1 -1
  36. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-TW.json +1 -1
  37. package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ca.json +2 -2
  38. package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.de.json +1 -1
  39. package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.he.json +1 -1
  40. package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ca.json +1 -1
  41. package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.it.json +1 -1
  42. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +3 -3
  43. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +460 -7
  44. package/dist/arcgis-coding-components/assets/language-api-panel/t9n/language-api-panel.t9n.ca.json +1 -1
  45. package/dist/arcgis-coding-components/assets/sql-expression-editor/api/sql-expression-api.t9n.en.json +30 -30
  46. package/dist/arcgis-coding-components/assets/sql-expression-editor/t9n/sql-expression-editor.t9n.en.json +4 -0
  47. package/dist/arcgis-coding-components/assets/sql-expression-fields/t9n/sql-expression-fields.t9n.en.json +4 -0
  48. package/dist/arcgis-coding-components/index.esm.js +2 -2
  49. package/dist/arcgis-coding-components/p-0cb4fef5.js +68 -0
  50. package/dist/arcgis-coding-components/p-210b84af.js +6 -0
  51. package/dist/arcgis-coding-components/{p-10cab8d9.js → p-38ac5715.js} +2 -2
  52. package/dist/arcgis-coding-components/{p-41c932b5.js → p-4926ce1a.js} +3 -3
  53. package/dist/arcgis-coding-components/p-5a153155.entry.js +6 -0
  54. package/dist/arcgis-coding-components/{p-38534c31.js → p-5ebbf307.js} +3 -3
  55. package/dist/arcgis-coding-components/{p-8c6a6176.js → p-64a223f6.js} +3 -3
  56. package/dist/arcgis-coding-components/p-67743b19.js +6 -0
  57. package/dist/arcgis-coding-components/p-81daa81b.entry.js +6 -0
  58. package/dist/arcgis-coding-components/{p-14ab3ed5.js → p-8becedb9.js} +1 -1
  59. package/dist/arcgis-coding-components/{p-2a7ef2fd.js → p-9327da9f.js} +2 -2
  60. package/dist/arcgis-coding-components/{p-e11999af.js → p-a95711a0.js} +2 -2
  61. package/dist/arcgis-coding-components/{p-19b4f0e9.js → p-b53816d4.js} +2 -2
  62. package/dist/arcgis-coding-components/{p-022df536.js → p-d1bfcb69.js} +1 -1
  63. package/dist/arcgis-coding-components/p-ec5b9ea3.entry.js +6 -0
  64. package/dist/arcgis-coding-components/p-eca30e5b.js +6 -0
  65. package/dist/arcgis-coding-components/p-eee3ff96.js +7 -0
  66. package/dist/arcgis-coding-components/p-f9d23ea0.js +6 -0
  67. package/dist/cjs/{app-globals-8991f48d.js → app-globals-f4c1e97c.js} +1 -1
  68. package/dist/cjs/arcade-defaults-ec32f7d1.js +350 -0
  69. package/dist/cjs/{arcade-mode-ee5f5a57.js → arcade-mode-532caf55.js} +18 -5
  70. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +59 -103
  71. package/dist/cjs/arcgis-coding-components.cjs.js +5 -5
  72. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +32 -11
  73. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +16 -10
  74. package/dist/cjs/{css-c0ad88d7.js → css-498723df.js} +1 -1
  75. package/dist/cjs/{cssMode-deeb6f90.js → cssMode-2def57fb.js} +2 -3
  76. package/dist/cjs/{html-be08d94a.js → html-54a71c36.js} +2 -3
  77. package/dist/cjs/{htmlMode-f5b8239a.js → htmlMode-3a79512a.js} +2 -3
  78. package/dist/cjs/{index-358de60d.js → index-8f53c170.js} +203 -156
  79. package/dist/cjs/index.cjs.js +4 -4
  80. package/dist/cjs/{javascript-37d3d13f.js → javascript-67d269fa.js} +3 -4
  81. package/dist/cjs/{jsonMode-12a2a091.js → jsonMode-46d9bccc.js} +2 -3
  82. package/dist/cjs/{language-defaults-base-1f082ad7.js → language-defaults-base-337abff1.js} +812 -1036
  83. package/dist/cjs/loader.cjs.js +4 -4
  84. package/dist/cjs/{sql-expr-defaults-dca57c68.js → sql-expr-defaults-c246fecf.js} +226 -75
  85. package/dist/cjs/sql-expr-mode-58361d32.js +480 -0
  86. package/dist/cjs/{tsMode-d33a7021.js → tsMode-0032d144.js} +2 -3
  87. package/dist/cjs/{typescript-f3be2ce7.js → typescript-e84c6b80.js} +2 -3
  88. package/dist/components/arcade-defaults.js +239 -4
  89. package/dist/components/arcade-mode.js +18 -4
  90. package/dist/components/arcade-results.js +3 -3
  91. package/dist/components/arcade-suggestions.js +2 -2
  92. package/dist/components/arcade-variables.js +2 -2
  93. package/dist/components/arcgis-arcade-editor.js +21 -13
  94. package/dist/components/arcgis-arcade-results.js +1 -1
  95. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  96. package/dist/components/arcgis-arcade-variables.js +1 -1
  97. package/dist/components/arcgis-assets.d.ts +26 -26
  98. package/dist/components/arcgis-assets.js +2 -2
  99. package/dist/components/arcgis-code-editor.js +1 -1
  100. package/dist/components/arcgis-language-api-panel.js +1 -1
  101. package/dist/components/arcgis-sql-expression-editor.js +33 -11
  102. package/dist/components/arcgis-sql-expression-fields.js +1 -1
  103. package/dist/components/{chunk-3IUJHIAA.js → chunk-WEX2VUZV.js} +87 -92
  104. package/dist/components/code-editor.js +17 -23
  105. package/dist/components/fields.js +4 -4
  106. package/dist/components/index.js +1 -1
  107. package/dist/components/index2.js +4 -4
  108. package/dist/components/language-api-panel.js +22 -4
  109. package/dist/components/language-defaults-base.js +61 -287
  110. package/dist/components/markdown.js +1 -1
  111. package/dist/components/sql-expr-defaults.js +77 -24
  112. package/dist/components/sql-expr-mode.js +294 -24950
  113. package/dist/components/sql-expression-fields.js +15 -8
  114. package/dist/components/useT9n.js +41 -2
  115. package/dist/components/utilities.js +1 -1
  116. package/dist/esm/{app-globals-3e4e0353.js → app-globals-fa265627.js} +1 -1
  117. package/dist/esm/arcade-defaults-337657fa.js +345 -0
  118. package/dist/esm/{arcade-mode-4a83348d.js → arcade-mode-a63523c8.js} +18 -5
  119. package/dist/esm/arcgis-arcade-editor_6.entry.js +55 -99
  120. package/dist/esm/arcgis-coding-components.js +6 -6
  121. package/dist/esm/arcgis-sql-expression-editor.entry.js +32 -11
  122. package/dist/esm/arcgis-sql-expression-fields.entry.js +16 -10
  123. package/dist/esm/{css-bad8d1c3.js → css-d85cb176.js} +1 -1
  124. package/dist/esm/{cssMode-68a5f601.js → cssMode-d79695ab.js} +2 -3
  125. package/dist/esm/{html-9b27df1a.js → html-16fb0022.js} +2 -3
  126. package/dist/esm/{htmlMode-361ad282.js → htmlMode-cb57ceed.js} +2 -3
  127. package/dist/esm/{index-8a552796.js → index-ebdb3a18.js} +203 -156
  128. package/dist/esm/index.js +4 -4
  129. package/dist/esm/{javascript-8004e14f.js → javascript-ae8e86d4.js} +3 -4
  130. package/dist/esm/{jsonMode-91a0be74.js → jsonMode-06c411fd.js} +2 -3
  131. package/dist/esm/{language-defaults-base-df906b3d.js → language-defaults-base-5dfd6f32.js} +809 -1036
  132. package/dist/esm/loader.js +5 -5
  133. package/dist/esm/{sql-expr-defaults-ae0be602.js → sql-expr-defaults-f324cf8f.js} +225 -74
  134. package/dist/esm/sql-expr-mode-f606957e.js +476 -0
  135. package/dist/esm/{tsMode-2756c213.js → tsMode-2114c9fd.js} +2 -3
  136. package/dist/esm/{typescript-1aaf3ddd.js → typescript-b771d29f.js} +2 -3
  137. package/dist/loader/cdn.js +2 -3
  138. package/dist/loader/index.cjs.js +2 -3
  139. package/dist/loader/index.d.ts +3 -0
  140. package/dist/loader/index.es2017.js +2 -3
  141. package/dist/loader/index.js +2 -3
  142. package/dist/types/components/arcade-editor/arcade-editor.d.ts +16 -5
  143. package/dist/types/components/code-editor/code-editor.d.ts +14 -4
  144. package/dist/types/components/language-api-panel/language-api-panel.d.ts +1 -0
  145. package/dist/types/components/sql-expression-editor/sql-expression-editor.d.ts +31 -3
  146. package/dist/types/components/sql-expression-fields/sql-expression-fields.d.ts +17 -0
  147. package/dist/types/components.d.ts +40 -13
  148. package/dist/types/data/arcgis-web-compoments/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +3 -0
  149. package/dist/types/data/{actions-runner-1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +8 -1
  150. package/dist/types/data/{actions-runner-1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +5 -1
  151. package/dist/types/stencil-public-runtime.d.ts +3 -10
  152. package/dist/types/utils/arcade-monaco/arcade-defaults.d.ts +1 -0
  153. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -0
  154. package/dist/types/utils/arcade-monaco/arcade-profile-strategy.d.ts +9 -0
  155. package/dist/types/utils/arcade-monaco/arcade-worker-manager.d.ts +6 -0
  156. package/dist/types/utils/fields.d.ts +2 -2
  157. package/dist/types/utils/profile/editor-profile.d.ts +7 -6
  158. package/dist/types/utils/profile/types.d.ts +28 -0
  159. package/dist/types/utils/profile/utils.d.ts +5 -1
  160. package/dist/types/utils/sql-expr-monaco/sql-expr-completion.d.ts +56 -5
  161. package/dist/types/utils/sql-expr-monaco/sql-expr-constants.d.ts +61 -0
  162. package/dist/types/utils/sql-expr-monaco/sql-expr-contribution.d.ts +1 -11
  163. package/dist/types/utils/sql-expr-monaco/sql-expr-defaults.d.ts +0 -1
  164. package/dist/types/utils/sql-expr-monaco/sql-expr-language-features.d.ts +18 -534
  165. package/dist/types/utils/sql-expr-monaco/sql-expr-mode.d.ts +34 -1
  166. package/dist/types/utils/sql-expr-monaco/sql-expr-parser-utils.d.ts +30 -0
  167. package/dist/types/utils/sql-expr-monaco/sql-expr-service-accessors.d.ts +19 -0
  168. package/dist/types/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +0 -7
  169. package/dist/types/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +73 -77
  170. package/dist/types/utils/sql-expr-monaco/sql-expr-validation.d.ts +5 -6
  171. package/dist/types/utils/sql-expr-monaco/sql-expr-worker-manager.d.ts +8 -0
  172. package/dist/types/utils/sql-expr-monaco/sql-expr.worker.d.ts +11 -8
  173. package/dist/types/utils/sql-expr-monaco/sql-expression-profile-strategy.d.ts +13 -0
  174. package/dist/types/utils/sql-expr-monaco/types.d.ts +30 -28
  175. package/package.json +19 -19
  176. package/dist/arcgis-coding-components/p-1baf3624.entry.js +0 -6
  177. package/dist/arcgis-coding-components/p-8e61744c.js +0 -68
  178. package/dist/arcgis-coding-components/p-933de2b5.entry.js +0 -6
  179. package/dist/arcgis-coding-components/p-9dfc06ea.js +0 -6
  180. package/dist/arcgis-coding-components/p-a536144e.js +0 -6
  181. package/dist/arcgis-coding-components/p-cd67026d.js +0 -6
  182. package/dist/arcgis-coding-components/p-d7e83ea1.entry.js +0 -6
  183. package/dist/arcgis-coding-components/p-e055c041.js +0 -6
  184. package/dist/arcgis-coding-components/p-f1fab45e.js +0 -7
  185. package/dist/cjs/arcade-defaults-2d36c400.js +0 -116
  186. package/dist/cjs/sql-expr-mode-c644220d.js +0 -25135
  187. package/dist/esm/arcade-defaults-1adb5004.js +0 -111
  188. package/dist/esm/polyfills/core-js.js +0 -11
  189. package/dist/esm/polyfills/dom.js +0 -79
  190. package/dist/esm/polyfills/es5-html-element.js +0 -1
  191. package/dist/esm/polyfills/index.js +0 -34
  192. package/dist/esm/polyfills/system.js +0 -6
  193. package/dist/esm/sql-expr-mode-1821b2b9.js +0 -25132
  194. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +0 -3
  195. package/dist/types/utils/profile/predefined-profile.d.ts +0 -4
  196. package/dist/types/utils/sql-expr-monaco/DependentFiles/DateOnly.d.ts +0 -41
  197. package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlInterval.d.ts +0 -16
  198. package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlTimestampOffset.d.ts +0 -26
  199. package/dist/types/utils/sql-expr-monaco/DependentFiles/TimeOnly.d.ts +0 -37
  200. package/dist/types/utils/sql-expr-monaco/DependentFiles/UnknownTimeZone.d.ts +0 -11
  201. package/dist/types/utils/sql-expr-monaco/DependentFiles/WhereGrammar.d.ts +0 -122
  202. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlCompareUtils.d.ts +0 -5
  203. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlDateParsingUtils.d.ts +0 -18
  204. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlUtils.d.ts +0 -6
  205. package/dist/types/utils/sql-expr-monaco/DependentFiles/standardizedFunctions.d.ts +0 -156
  206. package/dist/types/utils/sql-expr-monaco/DependentFiles/support.d.ts +0 -150
  207. package/dist/types/utils/sql-expr-monaco/PeggyGrammar/sql92grammar.d.ts +0 -1397
  208. package/dist/types/utils/sql-expr-monaco/libraries/date/properties/index.d.ts +0 -59
  209. package/dist/types/utils/sql-expr-monaco/libraries/numeric/properties/index.d.ts +0 -295
  210. package/dist/types/utils/sql-expr-monaco/libraries/string/properties/index.d.ts +0 -135
  211. package/dist/types/utils/sql-expr-monaco/sql-expr-validation-adapter.d.ts +0 -3
  212. package/dist/types/utils/sql-expr-profile/predefined-profile.d.ts +0 -2
  213. /package/dist/types/data/{actions-runner-1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +0 -0
  214. /package/dist/types/data/{actions-runner-1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/sql-expression-editor/sql-expression-editor.stories.d.ts +0 -0
  215. /package/dist/types/data/{actions-runner-1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +0 -0
  216. /package/dist/types/data/{actions-runner-1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +0 -0
  217. /package/dist/types/data/{actions-runner-1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +0 -0
  218. /package/dist/types/data/{actions-runner-1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +0 -0
@@ -1,11 +1,464 @@
1
- "use strict";(()=>{var _n=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?at.isErrorNoTelemetry(t)?new at(t.message+`
1
+ "use strict";(()=>{var kk=Object.defineProperty;var G5=e=>t=>{var r=e[t];if(r)return r();throw new Error("Module not found in bundle: "+t)};var L=(e,t)=>()=>(e&&(t=e(e=0)),t);var q5=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),li=(e,t)=>{for(var r in t)kk(e,r,{get:t[r],enumerable:!0})};var $s,To=L(()=>{$s=class e{constructor(t=1){this._seed=t}set seed(t){this._seed=t??Math.random()*e._m}getInt(){return this._seed=(e._a*this._seed+e._c)%e._m,this._seed}getFloat(){return this.getInt()/(e._m-1)}getIntRange(t,r){return Math.round(this.getFloatRange(t,r))}getFloatRange(t,r){let n=r-t;return t+this.getInt()/e._m*n}};$s._m=2147483647,$s._a=48271,$s._c=0});function Eo(e,t,r){if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function tb(e,t,r,n){n=n||a7;let i=Math.max(0,n.last-10);for(let s=i;s<r;++s)if(e[s]===t)return n.last=s,s;let o=Math.min(i,r);for(let s=0;s<o;++s)if(e[s]===t)return n.last=s,s;return-1}function l7(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;Wn.clear();for(let a=0;a<n;++a)Wn.add(t[a]);i=i||a7;let s=Math.max(0,i.last-10);for(let a=s;a<r;++a)if(Wn.has(e[a])&&(o?.push(e[a]),Wn.delete(e[a]),e[a]=e[r-1],--r,--a,Wn.size===0||r===0))return Wn.clear(),r;for(let a=0;a<s;++a)if(Wn.has(e[a])&&(o?.push(e[a]),Wn.delete(e[a]),e[a]=e[r-1],--r,--a,Wn.size===0||r===0))return Wn.clear(),r;return Wn.clear(),r}function c7(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function u7(e,t){return e!=null}var bD,bee,pu,a7,Wn,_ee,Mo=L(()=>{To();bD=1.5,bee=1/bD;pu=class{constructor(){this.last=0}},a7=new pu;Wn=new Set;_ee=new $s});var d7=L(()=>{});function Q(e){return typeof Lo[e]=="function"?Lo[e]=Lo[e](globalThis):Lo[e]}var Lo,Ge=L(()=>{Lo=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},Q.add=(e,t,r,n)=>((n||Lo[e]===void 0)&&(Lo[e]=t),r&&Q(e)),Q.cache=Lo,Q.add("big-integer-warning-enabled",!0),Q.add("esri-deprecation-warnings",!0),Q.add("esri-tests-disable-screenshots",!1),Q.add("esri-tests-use-full-window",!1),Q.add("esri-tests-post-to-influx",!0),Q.add("esri-cim-animations-enable-status","enabled"),Q.add("esri-cim-animations-spotlight",!1),Q.add("esri-cim-animations-freeze-time",!1),(()=>{Q.add("host-webworker",globalThis.WorkerGlobalScope!==void 0&&self instanceof globalThis.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(Q.add("host-browser",e),Q.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),Q.add("dom",e),Q("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(Q.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),Q.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),Q.add("khtml",n.includes("Konqueror")?i:void 0),Q.add("edge",parseFloat(r.split("Edge/")[1])||void 0),Q.add("opr",parseFloat(r.split("OPR/")[1])||void 0),Q.add("webkit",!Q("wp")&&!Q("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),Q.add("chrome",!Q("edge")&&!Q("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),Q.add("android",!Q("wp")&&parseFloat(r.split("Android ")[1])||void 0),Q.add("safari",!n.includes("Safari")||Q("wp")||Q("chrome")||Q("android")||Q("edge")||Q("opr")?void 0:parseFloat(n.split("Version/")[1])),Q.add("mac",n.includes("Macintosh")),!Q("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",a=parseFloat(s.replace(/_/,".").replaceAll("_",""));Q.add(o,a),Q.add("ios",a)}Q("webkit")||(!r.includes("Gecko")||Q("wp")||Q("khtml")||Q("edge")||Q.add("mozilla",i),Q("mozilla")&&Q.add("ff",parseFloat(r.split("Firefox/")[1]||r.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&Q.add("esri-mobile",t),r&&Q.add("esri-iPhone",r),Q.add("esri-geolocation",!!navigator.geolocation)}Q.add("esri-wasm","WebAssembly"in globalThis),Q.add("esri-performance-mode-frames-between-render",20),Q.add("esri-force-performance-mode",!1),Q.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),Q.add("wasm-simd",()=>{let e=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(e))}),Q.add("esri-atomics","Atomics"in globalThis),Q.add("esri-workers","Worker"in globalThis),Q.add("web-feat:cache","caches"in globalThis),Q.add("esri-workers-arraybuffer-transfer",!Q("safari")||Number(Q("safari"))>=12),Q.add("workers-pool-size",8),Q.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),Q.add("featurelayer-simplify-payload-size-factors",[1,1,4]),Q.add("featurelayer-fast-triangulation-enabled",!0),Q.add("featurelayer-animation-enabled",!0),Q.add("featurelayer-snapshot-enabled",!0),Q.add("featurelayer-snapshot-point-min-threshold",8e4),Q.add("featurelayer-snapshot-point-max-threshold",4e5),Q.add("featurelayer-snapshot-point-coverage",.1),Q.add("featurelayer-query-max-depth",4),Q.add("featurelayer-query-pausing-enabled",!1),Q.add("featurelayer-advanced-symbols",!1),Q.add("featurelayer-pbf",!0),Q.add("featurelayer-pbf-statistics",!1),Q.add("feature-layers-workers",!0),Q.add("feature-polyline-generalization-factor",1),Q.add("mapview-transitions-duration",200),Q.add("mapview-essential-goto-duration",200),Q.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),Q.add("mapserver-pbf-version-support",10.81),Q.add("mapservice-popup-identify-max-tolerance",20),Q("host-webworker")||Q("host-browser")&&(Q.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),Q.add("esri-image-decode",()=>{if("decode"in new Image){let e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then(()=>{Q.add("esri-image-decode",!0,!0,!0)}).catch(()=>{Q.add("esri-image-decode",!1,!0,!0)})}return!1}),Q.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});function f7(e){return e?.constructor?.name==="Int8Array"}function p7(e){return e?.constructor?.name==="Uint8Array"}function m7(e){return e?.constructor?.name==="Uint8ClampedArray"}function h7(e){return e?.constructor?.name==="Int16Array"}function g7(e){return e?.constructor?.name==="Uint16Array"}function w7(e){return e?.constructor?.name==="Int32Array"}function y7(e){return e?.constructor?.name==="Uint32Array"}function b7(e){return e?.constructor?.name==="Float32Array"}function _7(e){return e?.constructor?.name==="Float64Array"}var v7=L(()=>{d7();Ge()});function _1(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&_1(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function Ne(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=xD(e);if(t!=null)return t;if(_D(e))return e.clone();if(vD(e))return e.map(Ne);if(SD(e))return e.clone();let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=Ne(e[n]);return r}function _D(e){return typeof e.clone=="function"}function vD(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function SD(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function S7(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function xD(e){if(f7(e)||p7(e)||m7(e)||h7(e)||g7(e)||w7(e)||y7(e)||b7(e)||_7(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,Ne(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(Ne(r));return t}return null}function mu(e,t){return e===t||typeof e=="number"&&isNaN(e)&&typeof t=="number"&&isNaN(t)||typeof e?.getTime=="function"&&typeof t?.getTime=="function"&&e.getTime()===t.getTime()||!1}function x7(e,t){return e===t||(e==null||typeof e=="string"?e===t:typeof e=="number"?e===t||typeof t=="number"&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&Eo(e,t):e instanceof Set?t instanceof Set&&TD(e,t):e instanceof Map?t instanceof Map&&ED(e,t):!!S7(e)&&S7(t)&&CD(e,t))}function CD(e,t){if(e===null||t===null)return!1;let r=Object.keys(e);if(t===null||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}function TD(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function ED(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let i=t.get(r);if(i!==n||i===void 0&&!t.has(r))return!1}return!0}var tr=L(()=>{Mo();v7()});function C7(e,t,r=!1){return E7(e,t,r)}function xn(e,t){if(t!=null)return t[e]||T7(e.split("."),!1,t)}function Gi(e,t,r){let n=e.split("."),i=n.pop(),o=T7(n,!0,r);o&&i&&(o[i]=t)}function T7(e,t,r){let n=r;for(let i of e){if(n==null)return;if(!(i in n)){if(!t)return;n[i]={}}n=n[i]}return n}function E7(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=n[i],s=t[i];return o===s?n:o===void 0?(n[i]=Ne(s),n):(Array.isArray(s)||Array.isArray(n)?(o=o?Array.isArray(o)?n[i]=o.slice():n[i]=[o]:n[i]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(a=>{o.includes(a)||o.push(a)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=E7(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var hi=L(()=>{tr()});function M7(e){return e??""}function gi(e,t){return t?e.replaceAll(MD,typeof t=="object"?(r,n)=>M7(xn(n,t)):(r,n)=>M7(t(n))):e}function L7(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function I7(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var MD,Io=L(()=>{hi();MD=/\{([^}]+)\}/g});var qi,v1,S1,x1,zn,cl,xt,Bn,Po=L(()=>{qi=class extends Error{},v1=class extends qi{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},S1=class extends qi{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},x1=class extends qi{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},zn=class extends qi{},cl=class extends qi{constructor(t){super(`Invalid unit ${t}`)}},xt=class extends qi{},Bn=class extends qi{constructor(){super("Zone is an abstract class")}}});var ce,Gn,sn,Ao,hu,rb,gu,wu,yu,bu,_u,vu,Su,xu,Cu,Tu,Eu,Mu,Lu,Iu,nb,Pu,Au,Nu,ku,Ru=L(()=>{ce="numeric",Gn="short",sn="long",Ao={year:ce,month:ce,day:ce},hu={year:ce,month:Gn,day:ce},rb={year:ce,month:Gn,day:ce,weekday:Gn},gu={year:ce,month:sn,day:ce},wu={year:ce,month:sn,day:ce,weekday:sn},yu={hour:ce,minute:ce},bu={hour:ce,minute:ce,second:ce},_u={hour:ce,minute:ce,second:ce,timeZoneName:Gn},vu={hour:ce,minute:ce,second:ce,timeZoneName:sn},Su={hour:ce,minute:ce,hourCycle:"h23"},xu={hour:ce,minute:ce,second:ce,hourCycle:"h23"},Cu={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:Gn},Tu={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:sn},Eu={year:ce,month:ce,day:ce,hour:ce,minute:ce},Mu={year:ce,month:ce,day:ce,hour:ce,minute:ce,second:ce},Lu={year:ce,month:Gn,day:ce,hour:ce,minute:ce},Iu={year:ce,month:Gn,day:ce,hour:ce,minute:ce,second:ce},nb={year:ce,month:Gn,day:ce,weekday:Gn,hour:ce,minute:ce},Pu={year:ce,month:sn,day:ce,hour:ce,minute:ce,timeZoneName:Gn},Au={year:ce,month:sn,day:ce,hour:ce,minute:ce,second:ce,timeZoneName:Gn},Nu={year:ce,month:sn,day:ce,weekday:sn,hour:ce,minute:ce,timeZoneName:sn},ku={year:ce,month:sn,day:ce,weekday:sn,hour:ce,minute:ce,second:ce,timeZoneName:sn}});var kt,Fs=L(()=>{Po();kt=class{get type(){throw new Bn}get name(){throw new Bn}get ianaName(){return this.name}get isUniversal(){throw new Bn}offsetName(t,r){throw new Bn}formatOffset(t,r){throw new Bn}offset(t){throw new Bn}equals(t){throw new Bn}get isValid(){throw new Bn}}});var ib,No,T1=L(()=>{Fr();Fs();ib=null,No=class e extends kt{static get instance(){return ib===null&&(ib=new e),ib}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return E1(t,r,n)}formatOffset(t,r){return ko(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function LD(e){return L1[e]||(L1[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),L1[e]}function PD(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,a,u,d,p]=n;return[s,i,o,a,u,d,p]}function AD(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],a=ID[o];o==="era"?n[a]=s:_e(a)||(n[a]=parseInt(s,10))}return n}var L1,ID,M1,Ct,Ro=L(()=>{Fr();Fs();L1={};ID={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};M1={},Ct=class e extends kt{static create(t){return M1[t]||(M1[t]=new e(t)),M1[t]}static resetCache(){M1={},L1={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return E1(t,r,n,this.name)}formatOffset(t,r){return ko(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=LD(this.name),[i,o,s,a,u,d,p]=n.formatToParts?AD(n,r):PD(n,r);a==="BC"&&(i=-Math.abs(i)+1);let w=ul({year:i,month:o,day:s,hour:u===24?0:u,minute:d,second:p,millisecond:0}),_=+r,S=_%1e3;return _-=S>=0?S:1e3+S,(w-_)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function ND(e,t={}){let r=JSON.stringify([e,t]),n=P7[r];return n||(n=new Intl.ListFormat(e,t),P7[r]=n),n}function sb(e,t={}){let r=JSON.stringify([e,t]),n=ob[r];return n||(n=new Intl.DateTimeFormat(e,t),ob[r]=n),n}function kD(e,t={}){let r=JSON.stringify([e,t]),n=ab[r];return n||(n=new Intl.NumberFormat(e,t),ab[r]=n),n}function RD(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=lb[i];return o||(o=new Intl.RelativeTimeFormat(e,t),lb[i]=o),o}function DD(){return Du||(Du=new Intl.DateTimeFormat().resolvedOptions().locale,Du)}function OD(e){let t=A7[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,A7[e]=t}return t}function $D(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(r===-1)return[e];{let n,i;try{n=sb(e).resolvedOptions(),i=e}catch{let u=e.substring(0,r);n=sb(u).resolvedOptions(),i=u}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function FD(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function VD(e){let t=[];for(let r=1;r<=12;r++){let n=oe.utc(2009,r,1);t.push(e(n))}return t}function UD(e){let t=[];for(let r=1;r<=7;r++){let n=oe.utc(2016,11,13+r);t.push(e(n))}return t}function I1(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function WD(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}var P7,ob,ab,lb,Du,A7,cb,ub,db,zD,Ue,$u=L(()=>{Fr();N1();Do();Oo();Ro();P7={};ob={};ab={};lb={};Du=null;A7={};cb=class{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:o,...s}=n;if(!r||Object.keys(s).length>0){let a={useGrouping:!1,...n};n.padTo>0&&(a.minimumIntegerDigits=n.padTo),this.inf=kD(t,a)}}format(t){if(this.inf){let r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{let r=this.floor?Math.floor(t):dl(t,3);return ht(r,this.padTo)}}},ub=class{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&Ct.create(a).valid?(i=a,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=sb(r,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},db=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&P1()&&(this.rtf=RD(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):N7(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},zD={firstDay:1,minimalDays:4,weekend:[6,7]},Ue=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,i,o=!1){let s=t||Ve.defaultLocale,a=s||(o?"en-US":DD()),u=r||Ve.defaultNumberingSystem,d=n||Ve.defaultOutputCalendar,p=Ou(i)||Ve.defaultWeekSettings;return new e(a,u,d,p,s)}static resetCache(){Du=null,ob={},ab={},lb={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return e.create(t,r,n,i)}constructor(t,r,n,i,o){let[s,a,u]=$D(t);this.locale=s,this.numberingSystem=r||a||null,this.outputCalendar=n||u||null,this.weekSettings=i,this.intl=FD(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=WD(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,Ou(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,r=!1){return I1(this,t,fb,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=VD(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return I1(this,t,pb,()=>{let n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=r?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=UD(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return I1(this,void 0,()=>mb,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[oe.utc(2016,11,13,9),oe.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return I1(this,t,hb,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[oe.utc(-40,1,1),oe.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){let i=this.dtFormatter(t,r),o=i.formatToParts(),s=o.find(a=>a.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new cb(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new ub(t,this.intl,r)}relFormatter(t={}){return new db(this.intl,this.isEnglish(),t)}listFormatter(t={}){return ND(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:A1()?OD(this.locale):zD}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}});var wb,He,fl=L(()=>{Fr();Fs();wb=null,He=class e extends kt{static get utcInstance(){return wb===null&&(wb=new e(0)),wb}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new e(Vs(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ko(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ko(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return ko(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}});var pl,yb=L(()=>{Fs();pl=class extends kt{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}});function qn(e,t){let r;if(_e(e)||e===null)return t;if(e instanceof kt)return e;if(k7(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?No.instance:n==="utc"||n==="gmt"?He.utcInstance:He.parseSpecifier(n)||Ct.create(e)}else return jn(e)?He.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new pl(e)}var k1=L(()=>{Fs();Ro();fl();yb();Fr();T1()});function D7(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(e[r].search(bb.hanidec)!==-1)t+=BD.indexOf(e[r]);else for(let i in R7){let[o,s]=R7[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function O7(){ml={}}function Cn({numberingSystem:e},t=""){let r=e||"latn";return ml[r]||(ml[r]={}),ml[r][t]||(ml[r][t]=new RegExp(`${bb[r]}${t}`)),ml[r][t]}var bb,R7,BD,ml,_b=L(()=>{bb={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},R7={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},BD=bb.hanidec.replace(/[\[|\]]/g,"").split("");ml={}});var $7,F7,V7,U7,W7,z7,B7,G7,Ve,Do=L(()=>{T1();Ro();$u();Oo();k1();Fr();_b();$7=()=>Date.now(),F7="system",V7=null,U7=null,W7=null,z7=60,G7=null,Ve=class{static get now(){return $7}static set now(t){$7=t}static set defaultZone(t){F7=t}static get defaultZone(){return qn(F7,No.instance)}static get defaultLocale(){return V7}static set defaultLocale(t){V7=t}static get defaultNumberingSystem(){return U7}static set defaultNumberingSystem(t){U7=t}static get defaultOutputCalendar(){return W7}static set defaultOutputCalendar(t){W7=t}static get defaultWeekSettings(){return G7}static set defaultWeekSettings(t){G7=Ou(t)}static get twoDigitCutoffYear(){return z7}static set twoDigitCutoffYear(t){z7=t%100}static get throwOnInvalid(){return B7}static set throwOnInvalid(t){B7=t}static resetCaches(){Ue.resetCache(),Ct.resetCache(),oe.resetCache(),O7()}}});var rr,Fu=L(()=>{rr=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Tn(e,t){return new rr("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function R1(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function H7(e,t,r){return r+(Ws(e)?j7:q7)[t-1]}function Z7(e,t){let r=Ws(e)?j7:q7,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function D1(e,t){return(e-t+7)%7+1}function Vu(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=H7(n,i,o),a=D1(R1(n,i,o),r),u=Math.floor((s-a+14-t)/7),d;return u<1?(d=n-1,u=Us(d,t,r)):u>Us(n,t,r)?(d=n+1,u=1):d=n,{weekYear:d,weekNumber:u,weekday:a,...Wu(e)}}function vb(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=D1(R1(n,1,t),r),a=$o(n),u=i*7+o-s-7+t,d;u<1?(d=n-1,u+=$o(d)):u>a?(d=n+1,u-=$o(n)):d=n;let{month:p,day:m}=Z7(d,u);return{year:d,month:p,day:m,...Wu(e)}}function O1(e){let{year:t,month:r,day:n}=e,i=H7(t,r,n);return{year:t,ordinal:i,...Wu(e)}}function Sb(e){let{year:t,ordinal:r}=e,{month:n,day:i}=Z7(t,r);return{year:t,month:n,day:i,...Wu(e)}}function xb(e,t){if(!_e(e.localWeekday)||!_e(e.localWeekNumber)||!_e(e.localWeekYear)){if(!_e(e.weekday)||!_e(e.weekNumber)||!_e(e.weekYear))throw new zn("Cannot mix locale-based week fields with ISO-based week fields");return _e(e.localWeekday)||(e.weekday=e.localWeekday),_e(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),_e(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Y7(e,t=4,r=1){let n=Uu(e.weekYear),i=an(e.weekNumber,1,Us(e.weekYear,t,r)),o=an(e.weekday,1,7);return n?i?o?!1:Tn("weekday",e.weekday):Tn("week",e.weekNumber):Tn("weekYear",e.weekYear)}function J7(e){let t=Uu(e.year),r=an(e.ordinal,1,$o(e.year));return t?r?!1:Tn("ordinal",e.ordinal):Tn("year",e.year)}function Cb(e){let t=Uu(e.year),r=an(e.month,1,12),n=an(e.day,1,hl(e.year,e.month));return t?r?n?!1:Tn("day",e.day):Tn("month",e.month):Tn("year",e.year)}function Tb(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=an(t,0,23)||t===24&&r===0&&n===0&&i===0,s=an(r,0,59),a=an(n,0,59),u=an(i,0,999);return o?s?a?u?!1:Tn("millisecond",i):Tn("second",n):Tn("minute",r):Tn("hour",t)}var q7,j7,Eb=L(()=>{Fr();Fu();Po();q7=[0,31,59,90,120,151,181,212,243,273,304,334],j7=[0,31,60,91,121,152,182,213,244,274,305,335]});function _e(e){return typeof e>"u"}function jn(e){return typeof e=="number"}function Uu(e){return typeof e=="number"&&e%1===0}function k7(e){return typeof e=="string"}function Q7(e){return Object.prototype.toString.call(e)==="[object Date]"}function P1(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function A1(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function K7(e){return Array.isArray(e)?e:[e]}function Mb(e,t,r){if(e.length!==0)return e.reduce((n,i)=>{let o=[t(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function e6(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Fo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ou(e){if(e==null)return null;if(typeof e!="object")throw new xt("Week settings must be an object");if(!an(e.firstDay,1,7)||!an(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!an(t,1,7)))throw new xt("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function an(e,t,r){return Uu(e)&&e>=t&&e<=r}function GD(e,t){return e-t*Math.floor(e/t)}function ht(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function ji(e){if(!(_e(e)||e===null||e===""))return parseInt(e,10)}function Vo(e){if(!(_e(e)||e===null||e===""))return parseFloat(e)}function zu(e){if(!(_e(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function dl(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Ws(e){return e%4===0&&(e%100!==0||e%400===0)}function $o(e){return Ws(e)?366:365}function hl(e,t){let r=GD(t-1,12)+1,n=e+(t-r)/12;return r===2?Ws(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function ul(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function X7(e,t,r){return-D1(R1(e,1,t),r)+t-1}function Us(e,t=4,r=1){let n=X7(e,t,r),i=X7(e+1,t,r);return($o(e)-n+i)/7}function Bu(e){return e>99?e:e>Ve.twoDigitCutoffYear?1900+e:2e3+e}function E1(e,t,r,n=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:t,...o},a=new Intl.DateTimeFormat(r,s).formatToParts(i).find(u=>u.type.toLowerCase()==="timezonename");return a?a.value:null}function Vs(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function Lb(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new xt(`Invalid unit value ${e}`);return t}function gl(e,t){let r={};for(let n in e)if(Fo(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=Lb(i)}return r}function ko(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${ht(r,2)}:${ht(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${ht(r,2)}${ht(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Wu(e){return e6(e,["hour","minute","second","millisecond"])}var Fr=L(()=>{Po();Do();Eb()});function fb(e){switch(e){case"narrow":return[...jD];case"short":return[...Ib];case"long":return[...qD];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}function pb(e){switch(e){case"narrow":return[...HD];case"short":return[...Ab];case"long":return[...Pb];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function hb(e){switch(e){case"narrow":return[...JD];case"short":return[...YD];case"long":return[...ZD];default:return null}}function t6(e){return mb[e.hour<12?0:1]}function r6(e,t){return pb(t)[e.weekday-1]}function n6(e,t){return fb(t)[e.month-1]}function i6(e,t){return hb(t)[e.year<0?0:1]}function N7(e,t,r="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){let m=e==="days";switch(t){case 1:return m?"tomorrow":`next ${i[e][0]}`;case-1:return m?"yesterday":`last ${i[e][0]}`;case 0:return m?"today":`this ${i[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,a=Math.abs(t),u=a===1,d=i[e],p=n?u?d[1]:d[2]||d[1]:u?i[e][0]:e;return s?`${a} ${p} ago`:`in ${a} ${p}`}var qD,Ib,jD,Pb,Ab,HD,mb,ZD,YD,JD,N1=L(()=>{Ru();Fr();qD=["January","February","March","April","May","June","July","August","September","October","November","December"],Ib=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],jD=["J","F","M","A","M","J","J","A","S","O","N","D"];Pb=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ab=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],HD=["M","T","W","T","F","S","S"];mb=["AM","PM"],ZD=["Before Christ","Anno Domini"],YD=["BC","AD"],JD=["B","A"]});function o6(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var XD,nr,Gu=L(()=>{N1();Ru();Fr();XD={D:Ao,DD:hu,DDD:gu,DDDD:wu,t:yu,tt:bu,ttt:_u,tttt:vu,T:Su,TT:xu,TTT:Cu,TTTT:Tu,f:Eu,ff:Lu,fff:Pu,ffff:Nu,F:Mu,FF:Iu,FFF:Au,FFFF:ku},nr=class e{static create(t,r={}){return new e(t,r)}static parseFormat(t){let r=null,n="",i=!1,o=[];for(let s=0;s<t.length;s++){let a=t.charAt(s);a==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||a===r?n+=a:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=a,r=a)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return XD[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...r}).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,{...this.opts,...r})}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return ht(t,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(_,S)=>this.loc.extract(t,_,S),s=_=>t.isOffsetFixed&&t.offset===0&&_.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,_.format):"",a=()=>n?t6(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(_,S)=>n?n6(t,_):o(S?{month:_}:{month:_,day:"numeric"},"month"),d=(_,S)=>n?r6(t,_):o(S?{weekday:_}:{weekday:_,month:"long",day:"numeric"},"weekday"),p=_=>{let S=e.macroTokenToFormatOpts(_);return S?this.formatWithSystemDefault(t,S):_},m=_=>n?i6(t,_):o({era:_},"era"),w=_=>{switch(_){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return p(_)}};return o6(e.parseFormat(r),w)}formatDurationFromString(t,r){let n=u=>{switch(u[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=u=>d=>{let p=n(d);return p?this.num(u.get(p),d.length):d},o=e.parseFormat(r),s=o.reduce((u,{literal:d,val:p})=>d?u:u.concat(p),[]),a=t.shiftTo(...s.map(n).filter(u=>u));return o6(o,i(a))}}});function yl(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function bl(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,a,u]=o(t,i);return[{...r,...s},a||n,u]},[{},null,1]).slice(0,2)}function _l(e,...t){if(e==null)return[null,null];for(let[r,n]of t){let i=r.exec(e);if(i)return n(i)}return[null,null]}function l6(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=ji(t[r+i]);return[n,null,r+i]}}function wl(e,t,r){let n=e[t];return _e(n)?r:ji(n)}function sO(e,t){return[{year:wl(e,t),month:wl(e,t+1,1),day:wl(e,t+2,1)},null,t+3]}function vl(e,t){return[{hours:wl(e,t,0),minutes:wl(e,t+1,0),seconds:wl(e,t+2,0),milliseconds:zu(e[t+3])},null,t+4]}function qu(e,t){let r=!e[t]&&!e[t+1],n=Vs(e[t+1],e[t+2]),i=r?null:He.instance(n);return[{},i,t+3]}function ju(e,t){let r=e[t]?Ct.create(e[t]):null;return[{},r,t+1]}function cO(e){let[t,r,n,i,o,s,a,u,d]=e,p=t[0]==="-",m=u&&u[0]==="-",w=(_,S=!1)=>_!==void 0&&(S||_&&p)?-_:_;return[{years:w(Vo(r)),months:w(Vo(n)),weeks:w(Vo(i)),days:w(Vo(o)),hours:w(Vo(s)),minutes:w(Vo(a)),seconds:w(Vo(u),u==="-0"),milliseconds:w(zu(d),m)}]}function Rb(e,t,r,n,i,o,s){let a={year:t.length===2?Bu(ji(t)):ji(t),month:Ib.indexOf(r)+1,day:ji(n),hour:ji(i),minute:ji(o)};return s&&(a.second=ji(s)),e&&(a.weekday=e.length>3?Pb.indexOf(e)+1:Ab.indexOf(e)+1),a}function fO(e){let[,t,r,n,i,o,s,a,u,d,p,m]=e,w=Rb(t,i,n,r,o,s,a),_;return u?_=uO[u]:d?_=0:_=Vs(p,m),[w,new He(_)]}function pO(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function s6(e){let[,t,r,n,i,o,s,a]=e;return[Rb(t,i,n,r,o,s,a),He.utcInstance]}function wO(e){let[,t,r,n,i,o,s,a]=e;return[Rb(t,a,r,n,i,o,s),He.utcInstance]}function p6(e){return _l(e,[yO,f6],[bO,SO],[_O,xO],[vO,CO])}function m6(e){return _l(pO(e),[dO,fO])}function h6(e){return _l(e,[mO,s6],[hO,s6],[gO,wO])}function g6(e){return _l(e,[lO,cO])}function w6(e){return _l(e,[aO,TO])}function y6(e){return _l(e,[EO,f6],[MO,LO])}var a6,c6,QD,Nb,u6,kb,KD,eO,tO,rO,nO,iO,d6,oO,aO,lO,uO,dO,mO,hO,gO,yO,bO,_O,vO,f6,SO,xO,CO,TO,EO,MO,LO,Db=L(()=>{Fr();N1();fl();Ro();a6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;c6=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,QD=`(?:${c6.source}?(?:\\[(${a6.source})\\])?)?`,Nb=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,u6=RegExp(`${Nb.source}${QD}`),kb=RegExp(`(?:T${u6.source})?`),KD=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,eO=/(\d{4})-?W(\d\d)(?:-?(\d))?/,tO=/(\d{4})-?(\d{3})/,rO=l6("weekYear","weekNumber","weekDay"),nO=l6("year","ordinal"),iO=/(\d{4})-(\d\d)-(\d\d)/,d6=RegExp(`${Nb.source} ?(?:${c6.source}|(${a6.source}))?`),oO=RegExp(`(?: ${d6.source})?`);aO=RegExp(`^T?${Nb.source}$`),lO=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;uO={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};dO=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;mO=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,hO=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,gO=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;yO=yl(KD,kb),bO=yl(eO,kb),_O=yl(tO,kb),vO=yl(u6),f6=bl(sO,vl,qu,ju),SO=bl(rO,vl,qu,ju),xO=bl(nO,vl,qu,ju),CO=bl(vl,qu,ju);TO=bl(vl);EO=yl(iO,oO),MO=yl(d6),LO=bl(vl,qu,ju)});function Uo(e,t,r=!1){let n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new gt(n)}function S6(e,t){let r=t.milliseconds??0;for(let n of AO.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function _6(e,t){let r=S6(e,t)<0?-1:1;zs.reduceRight((n,i)=>{if(_e(t[i]))return n;if(n){let o=t[n]*r,s=e[i][n],a=Math.floor(o/s);t[i]+=a*r,t[n]-=a*s*r}return i},null),zs.reduce((n,i)=>{if(_e(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function NO(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var b6,v6,IO,En,Sl,PO,zs,AO,gt,Hu=L(()=>{Po();Gu();Fu();$u();Db();Fr();Do();Oo();b6="Invalid Duration",v6={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},IO={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...v6},En=146097/400,Sl=146097/4800,PO={years:{quarters:4,months:12,weeks:En/7,days:En,hours:En*24,minutes:En*24*60,seconds:En*24*60*60,milliseconds:En*24*60*60*1e3},quarters:{months:3,weeks:En/28,days:En/4,hours:En*24/4,minutes:En*24*60/4,seconds:En*24*60*60/4,milliseconds:En*24*60*60*1e3/4},months:{weeks:Sl/7,days:Sl,hours:Sl*24,minutes:Sl*24*60,seconds:Sl*24*60*60,milliseconds:Sl*24*60*60*1e3},...v6},zs=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],AO=zs.slice(0).reverse();gt=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?PO:IO;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||Ue.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return e.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new xt(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:gl(t,e.normalizeUnit),loc:Ue.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(jn(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new xt(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=g6(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){let[n]=w6(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new xt("need to specify a reason the Duration is invalid");let n=t instanceof rr?t:new rr(t,r);if(Ve.throwOnInvalid)throw new x1(n);return new e({invalid:n})}static normalizeUnit(t){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new cl(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?nr.create(this.loc,n).formatDurationFromString(this,t):b6}toHuman(t={}){if(!this.isValid)return b6;let r=zs.map(n=>{let i=this.values[n];return _e(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=dl(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},oe.fromMillis(r,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?S6(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t),n={};for(let i of zs)(Fo(r.values,i)||Fo(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Uo(this,{values:n},!0)}minus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=Lb(t(this.values[n],n));return Uo(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...gl(t,e.normalizeUnit)};return Uo(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:i,conversionAccuracy:n};return Uo(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return _6(this.matrix,t),Uo(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=NO(this.normalize().shiftToAll().toObject());return Uo(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>e.normalizeUnit(s));let r={},n={},i=this.toObject(),o;for(let s of zs)if(t.indexOf(s)>=0){o=s;let a=0;for(let d in n)a+=this.matrix[d][s]*n[d],n[d]=0;jn(i[s])&&(a+=i[s]);let u=Math.trunc(a);r[s]=u,n[s]=(a*1e3-u*1e3)/1e3}else jn(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(r[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return _6(this.matrix,r),Uo(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return Uo(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of zs)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function kO(e,t){return!e||!e.isValid?Hi.invalid("missing or invalid start"):!t||!t.isValid?Hi.invalid("missing or invalid end"):t<e?Hi.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var xl,Hi,Ob=L(()=>{Oo();Hu();Do();Po();Fu();Gu();Ru();xl="Invalid Interval";Hi=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new xt("need to specify a reason the Interval is invalid");let n=t instanceof rr?t:new rr(t,r);if(Ve.throwOnInvalid)throw new S1(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=Cl(t),i=Cl(r),o=kO(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=gt.fromDurationLike(r),i=Cl(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=gt.fromDurationLike(r),i=Cl(t);return e.fromDateTimes(i.minus(n),i)}static fromISO(t,r){let[n,i]=(t||"").split("/",2);if(n&&i){let o,s;try{o=oe.fromISO(n,r),s=o.isValid}catch{s=!1}let a,u;try{a=oe.fromISO(i,r),u=a.isValid}catch{u=!1}if(s&&u)return e.fromDateTimes(o,a);if(s){let d=gt.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(u){let d=gt.fromISO(n,r);if(d.isValid)return e.before(a,d)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(t,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(t,r),Math.floor(i.diff(n,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?e.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];let r=t.map(Cl).filter(s=>this.contains(s)).sort((s,a)=>s.toMillis()-a.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,a=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,a)),i=a,o+=1}return n}splitBy(t){let r=gt.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let a=this.start.plus(r.mapUnits(u=>u*i));o=+a>+this.e?this.e:a,s.push(e.fromDateTimes(n,o)),n=o,i+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:e.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;let r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return e.fromDateTimes(r,n)}static merge(t){let[r,n]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return n&&r.push(n),r}static xor(t){let r=null,n=0,i=[],o=t.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),s=Array.prototype.concat(...o),a=s.sort((u,d)=>u.time-d.time);for(let u of a)n+=u.type==="s"?1:-1,n===1?r=u.time:(r&&+r!=+u.time&&i.push(e.fromDateTimes(r,u.time)),r=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:xl}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=Ao,r={}){return this.isValid?nr.create(this.s.loc.clone(r),t).formatInterval(this):xl}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:xl}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:xl}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:xl}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:xl}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):gt.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var Zi,$b=L(()=>{Oo();Do();$u();Ro();k1();Fr();Zi=class{static hasDST(t=Ve.defaultZone){let r=oe.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return Ct.isValidZone(t)}static normalizeZone(t){return qn(t,Ve.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||Ue.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||Ue.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||Ue.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Ue.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Ue.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Ue.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Ue.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Ue.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return Ue.create(r,null,"gregory").eras(t)}static features(){return{relative:P1(),localeWeek:A1()}}}});function x6(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(gt.fromMillis(n).as("days"))}function RO(e,t,r){let n=[["years",(u,d)=>d.year-u.year],["quarters",(u,d)=>d.quarter-u.quarter+(d.year-u.year)*4],["months",(u,d)=>d.month-u.month+(d.year-u.year)*12],["weeks",(u,d)=>{let p=x6(u,d);return(p-p%7)/7}],["days",x6]],i={},o=e,s,a;for(let[u,d]of n)r.indexOf(u)>=0&&(s=u,i[u]=d(e,t),a=o.plus(i),a>t?(i[u]--,e=o.plus(i),e>t&&(a=e,i[u]--,e=o.plus(i))):e=a);return[e,i,a,s]}function C6(e,t,r,n){let[i,o,s,a]=RO(e,t,r),u=t-i,d=r.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);d.length===0&&(s<t&&(s=i.plus({[a]:1})),s!==i&&(o[a]=(o[a]||0)+u/(s-i)));let p=gt.fromObject(o,n);return d.length>0?gt.fromMillis(u,n).shiftTo(...d).plus(p):p}var T6=L(()=>{Hu()});function qe(e,t=r=>r){return{regex:e,deser:([r])=>t(D7(r))}}function $O(e){return e.replace(/\./g,"\\.?").replace(I6,L6)}function E6(e){return e.replace(/\./g,"").replace(I6," ").toLowerCase()}function Hn(e,t){return e===null?null:{regex:RegExp(e.map($O).join("|")),deser:([r])=>e.findIndex(n=>E6(r)===E6(n))+t}}function M6(e,t){return{regex:e,deser:([,r,n])=>Vs(r,n),groups:t}}function $1(e){return{regex:e,deser:([t])=>t}}function FO(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function VO(e,t){let r=Cn(t),n=Cn(t,"{2}"),i=Cn(t,"{3}"),o=Cn(t,"{4}"),s=Cn(t,"{6}"),a=Cn(t,"{1,2}"),u=Cn(t,"{1,3}"),d=Cn(t,"{1,6}"),p=Cn(t,"{1,9}"),m=Cn(t,"{2,4}"),w=Cn(t,"{4,6}"),_=M=>({regex:RegExp(FO(M.val)),deser:([R])=>R,literal:!0}),T=(M=>{if(e.literal)return _(M);switch(M.val){case"G":return Hn(t.eras("short"),0);case"GG":return Hn(t.eras("long"),0);case"y":return qe(d);case"yy":return qe(m,Bu);case"yyyy":return qe(o);case"yyyyy":return qe(w);case"yyyyyy":return qe(s);case"M":return qe(a);case"MM":return qe(n);case"MMM":return Hn(t.months("short",!0),1);case"MMMM":return Hn(t.months("long",!0),1);case"L":return qe(a);case"LL":return qe(n);case"LLL":return Hn(t.months("short",!1),1);case"LLLL":return Hn(t.months("long",!1),1);case"d":return qe(a);case"dd":return qe(n);case"o":return qe(u);case"ooo":return qe(i);case"HH":return qe(n);case"H":return qe(a);case"hh":return qe(n);case"h":return qe(a);case"mm":return qe(n);case"m":return qe(a);case"q":return qe(a);case"qq":return qe(n);case"s":return qe(a);case"ss":return qe(n);case"S":return qe(u);case"SSS":return qe(i);case"u":return $1(p);case"uu":return $1(a);case"uuu":return qe(r);case"a":return Hn(t.meridiems(),0);case"kkkk":return qe(o);case"kk":return qe(m,Bu);case"W":return qe(a);case"WW":return qe(n);case"E":case"c":return qe(r);case"EEE":return Hn(t.weekdays("short",!1),1);case"EEEE":return Hn(t.weekdays("long",!1),1);case"ccc":return Hn(t.weekdays("short",!0),1);case"cccc":return Hn(t.weekdays("long",!0),1);case"Z":case"ZZ":return M6(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return M6(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return $1(/[a-z_+-/]{1,256}?/i);case" ":return $1(/[^\S\n\r]/);default:return _(M)}})(e)||{invalidReason:DO};return T.token=e,T}function WO(e,t,r){let{type:n,value:i}=e;if(n==="literal"){let u=/^\s+$/.test(i);return{literal:!u,val:u?" ":i}}let o=t[n],s=n;n==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let a=UO[s];if(typeof a=="object"&&(a=a[o]),a)return{literal:!1,val:a}}function zO(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function BO(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(Fo(r,s)){let a=r[s],u=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(n.slice(o,o+u))),o+=u}return[n,i]}else return[n,{}]}function GO(e){let t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return _e(e.z)||(r=Ct.create(e.z)),_e(e.Z)||(r||(r=new He(e.Z)),n=e.Z),_e(e.q)||(e.M=(e.q-1)*3+1),_e(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),_e(e.u)||(e.S=zu(e.u)),[Object.keys(e).reduce((o,s)=>{let a=t(s);return a&&(o[a]=e[s]),o},{}),r,n]}function qO(){return Fb||(Fb=oe.fromMillis(1555555555555)),Fb}function jO(e,t){if(e.literal)return e;let r=nr.macroTokenToFormatOpts(e.val),n=Wb(r,t);return n==null||n.includes(void 0)?e:n}function Vb(e,t){return Array.prototype.concat(...e.map(r=>jO(r,t)))}function Ub(e,t,r){return new Zu(e,r).explainFromTokens(t)}function P6(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=Ub(e,t,r);return[n,i,o,s]}function Wb(e,t){if(!e)return null;let n=nr.create(t,e).dtFormatter(qO()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>WO(s,e,o))}var DO,OO,L6,I6,UO,Fb,Zu,A6=L(()=>{Fr();Gu();fl();Ro();Oo();_b();Po();DO="missing Intl.DateTimeFormat.formatToParts support";OO="\xA0",L6=`[ ${OO}]`,I6=new RegExp(L6,"g");UO={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};Fb=null;Zu=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=Vb(nr.parseFormat(r),t),this.units=this.tokens.map(n=>VO(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=zO(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=BO(t,this.regex,this.handlers),[i,o,s]=n?GO(n):[null,null,void 0];if(Fo(n,"a")&&Fo(n,"H"))throw new zn("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:o,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}});function Yu(e){return new rr("unsupported zone",`the zone "${e.name}" is not supported`)}function Bb(e){return e.weekData===null&&(e.weekData=Vu(e.c)),e.weekData}function Gb(e){return e.localWeekData===null&&(e.localWeekData=Vu(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Bs(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new oe({...r,...t,old:r})}function V6(e,t,r){let n=e-t*60*1e3,i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*60*1e3;let o=r.offset(n);return i===o?[n,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function F1(e,t){e+=t*60*1e3;let r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function U1(e,t,r){return V6(ul(e),t,r)}function k6(e,t){let r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:i,day:Math.min(e.c.day,hl(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=gt.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=ul(o),[u,d]=V6(a,r,e.zone);return s!==0&&(u+=s,d=e.zone.offset(u)),{ts:u,o:d}}function Tl(e,t,r,n,i,o){let{setZone:s,zone:a}=r;if(e&&Object.keys(e).length!==0||t){let u=t||a,d=oe.fromObject(e,{...r,zone:u,specificOffset:o});return s?d:d.setZone(a)}else return oe.invalid(new rr("unparsable",`the input "${i}" can't be parsed as ${n}`))}function V1(e,t,r=!0){return e.isValid?nr.create(Ue.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function qb(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=ht(e.c.year,r?6:4),t?(n+="-",n+=ht(e.c.month),n+="-",n+=ht(e.c.day)):(n+=ht(e.c.month),n+=ht(e.c.day)),n}function R6(e,t,r,n,i,o){let s=ht(e.c.hour);return t?(s+=":",s+=ht(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=ht(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=ht(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=ht(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=ht(Math.trunc(-e.o/60)),s+=":",s+=ht(Math.trunc(-e.o%60))):(s+="+",s+=ht(Math.trunc(e.o/60)),s+=":",s+=ht(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function XO(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new cl(e);return t}function D6(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return XO(e)}}function QO(e){return z1[e]||(W1===void 0&&(W1=Ve.now()),z1[e]=e.offset(W1)),z1[e]}function O6(e,t){let r=qn(t.zone,Ve.defaultZone);if(!r.isValid)return oe.invalid(Yu(r));let n=Ue.fromObject(t),i,o;if(_e(e.year))i=Ve.now();else{for(let u of W6)_e(e[u])&&(e[u]=U6[u]);let s=Cb(e)||Tb(e);if(s)return oe.invalid(s);let a=QO(r);[i,o]=U1(e,a,r)}return new oe({ts:i,zone:r,loc:n,o})}function $6(e,t,r){let n=_e(r.round)?!0:r.round,i=(s,a)=>(s=dl(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,a)),o=s=>r.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(r.unit)return i(o(r.unit),r.unit);for(let s of r.units){let a=o(s);if(Math.abs(a)>=1)return i(a,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function F6(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}function Cl(e){if(oe.isDateTime(e))return e;if(e&&e.valueOf&&jn(e.valueOf()))return oe.fromJSDate(e);if(e&&typeof e=="object")return oe.fromObject(e);throw new xt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var zb,N6,U6,HO,ZO,W6,YO,JO,W1,z1,oe,Oo=L(()=>{Hu();Ob();Do();$b();Gu();fl();$u();Fr();k1();T6();Db();A6();Eb();Ru();Po();Fu();zb="Invalid DateTime",N6=864e13;U6={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},HO={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ZO={ordinal:1,hour:0,minute:0,second:0,millisecond:0},W6=["year","month","day","hour","minute","second","millisecond"],YO=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],JO=["year","ordinal","hour","minute","second","millisecond"];z1={},oe=class e{constructor(t){let r=t.zone||Ve.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new rr("invalid input"):null)||(r.isValid?null:Yu(r));this.ts=_e(t.ts)?Ve.now():t.ts;let i=null,o=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,o]=[t.old.c,t.old.o];else{let a=jn(t.o)&&!t.old?t.o:r.offset(this.ts);i=F1(this.ts,a),n=Number.isNaN(i.year)?new rr("invalid input"):null,i=n?null:i,o=n?null:a}this._zone=r,this.loc=t.loc||Ue.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,r]=F6(arguments),[n,i,o,s,a,u,d]=r;return O6({year:n,month:i,day:o,hour:s,minute:a,second:u,millisecond:d},t)}static utc(){let[t,r]=F6(arguments),[n,i,o,s,a,u,d]=r;return t.zone=He.utcInstance,O6({year:n,month:i,day:o,hour:s,minute:a,second:u,millisecond:d},t)}static fromJSDate(t,r={}){let n=Q7(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=qn(r.zone,Ve.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:Ue.fromObject(r)}):e.invalid(Yu(i))}static fromMillis(t,r={}){if(jn(t))return t<-N6||t>N6?e.invalid("Timestamp out of range"):new e({ts:t,zone:qn(r.zone,Ve.defaultZone),loc:Ue.fromObject(r)});throw new xt(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(jn(t))return new e({ts:t*1e3,zone:qn(r.zone,Ve.defaultZone),loc:Ue.fromObject(r)});throw new xt("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=qn(r.zone,Ve.defaultZone);if(!n.isValid)return e.invalid(Yu(n));let i=Ue.fromObject(r),o=gl(t,D6),{minDaysInFirstWeek:s,startOfWeek:a}=xb(o,i),u=Ve.now(),d=_e(r.specificOffset)?n.offset(u):r.specificOffset,p=!_e(o.ordinal),m=!_e(o.year),w=!_e(o.month)||!_e(o.day),_=m||w,S=o.weekYear||o.weekNumber;if((_||p)&&S)throw new zn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(w&&p)throw new zn("Can't mix ordinal dates with month/day");let T=S||o.weekday&&!_,M,R,I=F1(u,d);T?(M=YO,R=HO,I=Vu(I,s,a)):p?(M=JO,R=ZO,I=O1(I)):(M=W6,R=U6);let N=!1;for(let be of M){let de=o[be];_e(de)?N?o[be]=R[be]:o[be]=I[be]:N=!0}let V=T?Y7(o,s,a):p?J7(o):Cb(o),Y=V||Tb(o);if(Y)return e.invalid(Y);let re=T?vb(o,s,a):p?Sb(o):o,[te,ie]=U1(re,d,n),ge=new e({ts:te,zone:n,o:ie,loc:i});return o.weekday&&_&&t.weekday!==ge.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${ge.toISO()}`):ge.isValid?ge:e.invalid(ge.invalid)}static fromISO(t,r={}){let[n,i]=p6(t);return Tl(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=m6(t);return Tl(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=h6(t);return Tl(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(_e(t)||_e(r))throw new xt("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=Ue.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[a,u,d,p]=P6(s,t,r);return p?e.invalid(p):Tl(a,u,n,`format ${r}`,t,d)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=y6(t);return Tl(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new xt("need to specify a reason the DateTime is invalid");let n=t instanceof rr?t:new rr(t,r);if(Ve.throwOnInvalid)throw new v1(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=Wb(t,Ue.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return Vb(nr.parseFormat(t),Ue.fromObject(r)).map(i=>i.val).join("")}static resetCache(){W1=void 0,z1={}}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Bb(this).weekYear:NaN}get weekNumber(){return this.isValid?Bb(this).weekNumber:NaN}get weekday(){return this.isValid?Bb(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Gb(this).weekday:NaN}get localWeekNumber(){return this.isValid?Gb(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Gb(this).weekYear:NaN}get ordinal(){return this.isValid?O1(this.c).ordinal:NaN}get monthShort(){return this.isValid?Zi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Zi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Zi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Zi.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,r=6e4,n=ul(this.c),i=this.zone.offset(n-t),o=this.zone.offset(n+t),s=this.zone.offset(n-i*r),a=this.zone.offset(n-o*r);if(s===a)return[this];let u=n-s*r,d=n-a*r,p=F1(u,s),m=F1(d,a);return p.hour===m.hour&&p.minute===m.minute&&p.second===m.second&&p.millisecond===m.millisecond?[Bs(this,{ts:u}),Bs(this,{ts:d})]:[this]}get isInLeapYear(){return Ws(this.year)}get daysInMonth(){return hl(this.year,this.month)}get daysInYear(){return this.isValid?$o(this.year):NaN}get weeksInWeekYear(){return this.isValid?Us(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Us(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=nr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(He.instance(t),r)}toLocal(){return this.setZone(Ve.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=qn(t,Ve.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){let o=t.offset(this.ts),s=this.toObject();[i]=U1(s,o,t)}return Bs(this,{ts:i,zone:t})}else return e.invalid(Yu(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Bs(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=gl(t,D6),{minDaysInFirstWeek:n,startOfWeek:i}=xb(r,this.loc),o=!_e(r.weekYear)||!_e(r.weekNumber)||!_e(r.weekday),s=!_e(r.ordinal),a=!_e(r.year),u=!_e(r.month)||!_e(r.day),d=a||u,p=r.weekYear||r.weekNumber;if((d||s)&&p)throw new zn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&s)throw new zn("Can't mix ordinal dates with month/day");let m;o?m=vb({...Vu(this.c,n,i),...r},n,i):_e(r.ordinal)?(m={...this.toObject(),...r},_e(r.day)&&(m.day=Math.min(hl(m.year,m.month),m.day))):m=Sb({...O1(this.c),...r});let[w,_]=U1(m,this.o,this.zone);return Bs(this,{ts:w,o:_})}plus(t){if(!this.isValid)return this;let r=gt.fromDurationLike(t);return Bs(this,k6(this,r))}minus(t){if(!this.isValid)return this;let r=gt.fromDurationLike(t).negate();return Bs(this,k6(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=gt.normalizeUnit(t);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(i==="weeks")if(r){let o=this.loc.getStartOfWeek(),{weekday:s}=this;s<o&&(n.weekNumber=this.weekNumber-1),n.weekday=o}else n.weekday=1;if(i==="quarters"){let o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?nr.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):zb}toLocaleString(t=Ao,r={}){return this.isValid?nr.create(this.loc.clone(r),t).formatDateTime(this):zb}toLocaleParts(t={}){return this.isValid?nr.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let s=t==="extended",a=qb(this,s);return a+="T",a+=R6(this,s,r,n,i,o),a}toISODate({format:t="extended"}={}){return this.isValid?qb(this,t==="extended"):null}toISOWeekDate(){return V1(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+R6(this,s==="extended",r,t,n,o):null}toRFC2822(){return V1(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return V1(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?qb(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||t)&&(n&&(i+=" "),r?i+="z":t&&(i+="ZZ")),V1(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():zb}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let r={...this.c};return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return gt.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=K7(r).map(gt.normalizeUnit),s=t.valueOf()>this.valueOf(),a=s?this:t,u=s?t:this,d=C6(a,u,o,i);return s?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?Hi.fromDateTimes(this,t):this}hasSame(t,r,n){if(!this.isValid)return!1;let i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(r,n)<=i&&i<=o.endOf(r,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let r=t.base||e.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0,i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),$6(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?$6(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new xt("min requires all arguments be DateTimes");return Mb(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new xt("max requires all arguments be DateTimes");return Mb(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=Ue.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return Ub(s,t,r)}static fromStringExplain(t,r,n={}){return e.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=Ue.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Zu(o,t)}static fromFormatParser(t,r,n={}){if(_e(t)||_e(r))throw new xt("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=Ue.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new xt(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:a,zone:u,specificOffset:d,invalidReason:p}=r.explainFromTokens(t);return p?e.invalid(p):Tl(a,u,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return Ao}static get DATE_MED(){return hu}static get DATE_MED_WITH_WEEKDAY(){return rb}static get DATE_FULL(){return gu}static get DATE_HUGE(){return wu}static get TIME_SIMPLE(){return yu}static get TIME_WITH_SECONDS(){return bu}static get TIME_WITH_SHORT_OFFSET(){return _u}static get TIME_WITH_LONG_OFFSET(){return vu}static get TIME_24_SIMPLE(){return Su}static get TIME_24_WITH_SECONDS(){return xu}static get TIME_24_WITH_SHORT_OFFSET(){return Cu}static get TIME_24_WITH_LONG_OFFSET(){return Tu}static get DATETIME_SHORT(){return Eu}static get DATETIME_SHORT_WITH_SECONDS(){return Mu}static get DATETIME_MED(){return Lu}static get DATETIME_MED_WITH_SECONDS(){return Iu}static get DATETIME_MED_WITH_WEEKDAY(){return nb}static get DATETIME_FULL(){return Pu}static get DATETIME_FULL_WITH_SECONDS(){return Au}static get DATETIME_HUGE(){return Nu}static get DATETIME_HUGE_WITH_SECONDS(){return ku}}});var Vr=L(()=>{Oo();Hu();Ob();$b();Fs();fl();Ro();yb();T1();Do()});function Gs(e){return e instanceof kt?e===jt.instance:e?.toString().toLowerCase()==="unknown"}function B1(e){return Gs(e)?jt.instance:e}var jt,Ju=L(()=>{Vr();jt=class{};jt.instance=new Ct("Etc/UTC")});function El(e,t,r){return e<t?e-t:e>r?e-r:0}function Ml(e,t,r){return e<t?t:e>r?r:e}function Zn(e,t=!0){if(e instanceof kt)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return jt.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=He.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=Ct.create(e);if(!r.isValid){if(t)throw new jb(G1.TimeZoneNotRecognized);return null}return r}var G1,KO,jb,qs,Hb=L(()=>{Io();Ju();Vr();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(G1||(G1={}));KO={[G1.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},jb=class e extends Error{constructor(t,r){super(gi(KO[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};qs=class e{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,r=1,n=1,i=0,o=0,s=0,a=0,u){if(isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(a))return null;let d=oe.local(t,r).daysInMonth,p=oe.fromObject({day:Ml(n,1,d),year:t,month:Ml(r,1,12),hour:Ml(i,0,23),minute:Ml(o,0,59),second:Ml(s,0,59),millisecond:Ml(a,0,999)},{zone:Zn(u)});return p=p.plus({months:El(r,1,12),days:El(n,1,d),hours:El(i,0,23),minutes:El(o,0,59),seconds:El(s,0,59),milliseconds:El(a,0,999)}),new e(p)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=Zn(r);return t.isUnknownTimeZone||n===jt.instance?e.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t._date.setZone(n))}static dateJSToArcadeDate(t){return new e(oe.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Zn(r);return new e(oe.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(oe.fromMillis(t,{zone:jt.instance}))}static unknownDateJSToArcadeDate(t){return new e(oe.fromMillis(t.getTime(),{zone:jt.instance}))}static epochToArcadeDate(t,r="system"){let n=Zn(r);return new e(oe.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=Zn(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=Zn(r);return t.zone===jt.instance||n===jt.instance?e.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t.setZone(n))}static nowToArcadeDate(t){let r=Zn(t);return new e(oe.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(oe.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===e.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===jt.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if(this._date.zone.type==="system")return"system";let t=this.zone;return t.type==="fixed"?t.fixed===0?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new e(this._date.plus(t))}diff(t,r="milliseconds"){return this._date.diff(t._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,r){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(t,r){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,r)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new e(this._date.toUTC())}toLocal(){return new e(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;let r=oe.fromISO(t,{setZone:!0});return new e(r)}}});var F,e$,z,Yn,Hre,Wo=L(()=>{Io();(function(e){e.InvalidFunctionParameters="InvalidFunctionParameters",e.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",e.UnsupportedSqlFunction="UnsupportedSqlFunction",e.UnsupportedOperator="UnsupportedOperator",e.UnsupportedSyntax="UnsupportedSyntax",e.UnsupportedIsRhs="UnsupportedIsRhs",e.UnsupportedIsLhs="UnsupportedIsLhs",e.InvalidDataType="InvalidDataType",e.CannotCastValue="CannotCastValue",e.FunctionNotRecognized="FunctionNotRecognized",e.InvalidTime="InvalidTime",e.InvalidParameterCount="InvalidParameterCount",e.InvalidTimeStamp="InvalidTimeStamp",e.InvalidDate="InvalidDate",e.InvalidOperator="InvalidOperator",e.IllegalInterval="IllegalInterval",e.YearMonthIntervals="YearMonthIntervals",e.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",e.MissingStatisticParameters="MissingStatisticParameters"})(F||(F={}));e$={[F.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[F.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[F.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[F.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[F.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[F.UnsupportedOperator]:"Unsupported operator - {operator}",[F.UnsupportedSyntax]:"Unsupported syntax - {node}",[F.UnsupportedSqlFunction]:"Sql function not found = {function}",[F.InvalidDataType]:"Invalid sql data type",[F.InvalidDate]:"Invalid date encountered",[F.InvalidOperator]:"Invalid operator encountered",[F.InvalidTime]:"Invalid time encountered",[F.IllegalInterval]:"Illegal interval",[F.FunctionNotRecognized]:"Function not recognized",[F.InvalidTimeStamp]:"Invalid timestamp encountered",[F.InvalidParameterCount]:"Invalid parameter count for call to {name}",[F.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[F.YearMonthIntervals]:"Year-Month Intervals not supported",[F.CannotCastValue]:"Cannot cast value to the required data type"},z=class e extends Error{constructor(t,r){super(gi(e$[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};(function(e){e.NeverReach="NeverReach",e.NotImplemented="NotImplemented",e.Cancelled="Cancelled",e.InvalidStatResponse="InvalidStatResponse",e.InvalidRequest="InvalidRequest",e.RequestFailed="RequestFailed",e.MissingFeatures="MissingFeatures",e.AggregationFieldNotFound="AggregationFieldNotFound",e.DataElementsNotFound="DataElementsNotFound"})(Yn||(Yn={}));Hre={[Yn.Cancelled]:"Cancelled",[Yn.InvalidStatResponse]:"Invalid statistics response from service",[Yn.InvalidRequest]:"Invalid request",[Yn.RequestFailed]:"Request failed - {reason}",[Yn.MissingFeatures]:"Missing features",[Yn.AggregationFieldNotFound]:"Aggregation field not found",[Yn.DataElementsNotFound]:"Data elements not found on service",[Yn.NeverReach]:"Encountered unreachable logic",[Yn.NotImplemented]:"Not implemented"}});function je(e){return e?{remove(){e&&(e(),e=void 0)}}:t$}function r$(e){e.forEach(t=>t?.remove())}function js(e){return je(()=>r$(e))}var t$,Jr=L(()=>{t$={remove:()=>{}}});function z6(){return i$??globalThis.navigator?.language??"en"}function ln(){return Xu===void 0&&(Xu=z6()),Xu}function Zb(e){return q1.push(e),je(()=>q1.splice(q1.indexOf(e),1))}function Ll(e){return j1.push(e),je(()=>j1.splice(j1.indexOf(e),1))}function o$(){let e=n$??z6();Xu!==e&&([...j1].forEach(t=>t(e)),Xu=e,[...q1].forEach(t=>t(e)))}var n$,Xu,i$,q1,j1,Yi=L(()=>{Jr();i$=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;q1=[];j1=[];globalThis.addEventListener?.("languagechange",o$)});function B6(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="",r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(let n of e.match(r)||[])switch(n){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?t+=`'${n.slice(1,-1)}'`:t+=`'${n}'`}return t}var Ht,Qu=L(()=>{Hb();Yi();Vr();Ht=class e{constructor(t,r,n){this._year=t,this._month=r,this._day=n,this.declaredRootClass="esri.core.sql.dateonly"}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return t instanceof e&&t.day===this.day&&t.month===this.month&&t.year===this.year}clone(){return new e(this._year,this._month,this._day)}toDateTime(t){return oe.fromObject({day:this.day,month:this.month,year:this.year},{zone:Zn(t)})}toDateTimeLuxon(t){return oe.fromObject({day:this.day,month:this.month,year:this.year},{zone:Zn(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,r=!0){if(t===null||t==="")return this.toString();if(r&&(t=B6(t)),!t)return"";let n=this.toDateTime("unknown");return qs.dateTimeToArcadeDate(n).toFormat(t,{locale:ln(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return qs.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,r){return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}toUTCDateTime(){return oe.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){let r=oe.fromMillis(t,{zone:He.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=oe.fromSeconds(t,{zone:He.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromReader(t){if(!t)return null;let r=t.split("-");return r.length!==3?null:new e(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(t,r,n){let i=new e(t,r,n);return i.isValid===!1?null:i}static fromDateJS(t){return e.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return e.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];if(r)(r=B6(r))&&n.push(r);else if(r===null||r===""){let i=oe.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=oe.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=oe.fromJSDate(new Date).setZone(Zn(t));return new e(r.year,r.month,r.day)}}});function G6(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var gr,Ku=L(()=>{Vr();gr=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=oe.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return G6(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return G6(this.toDateTime().offset%60)}toMilliseconds(){return this.toDateTime().toMillis()}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return e.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(t){return new e(oe.fromJSDate(t).toISO({includeOffset:!0}))}static fromDateTime(t){return new e(t.toISO({includeOffset:!0}))}static fromParts(t,r,n=0,i=0,o=0,s=0,a=0,u=!1,d=0,p=0){let m=`${t.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,w="";s<10&&(w="0");let _=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${w+s.toString()}`;a!==0&&(_+="."+a.toString().padStart(3,"0"));let S=`${u?"-":"+"}${d.toString().padStart(2,"0")}:${p.toString().padStart(2,"0")}`;return new e(m+"T"+_+S)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let t=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return t&&(t=t.replace(".000","")),t}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(t){let r=this.toDateTime().plus(t);return e.fromDateTime(r)}}});function O(e,t,r,n){var i,o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}var ir=L(()=>{});var H1,Yb=L(()=>{H1="20240819"});var Qe,Hs=L(()=>{Ge();hi();Yb();Qe={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(C7(Qe,globalThis.esriConfig,!0),delete Qe.has),!Qe.assetsPath){{let e="4.31.0";Qe.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${H1}/assets`}Qe.defaultAssetsPath=Qe.assetsPath}});function s$(e,t,...r){console[e](`[${t}]`,...r)}function a$(...e){return I7(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var q6,Me,Ze=L(()=>{Hs();Ge();Io();q6={info:0,warn:1,error:2,none:3},Me=class e{constructor(t){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},t.level!=null&&(this.level=t.level),t.writer!=null&&(this.writer=t.writer),this._module=t.module,e._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=e.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...t){this._log("error","always",...t)}warn(...t){this._log("warn","always",...t)}info(...t){this._log("info","always",...t)}errorOnce(...t){this._log("error","once",...t)}warnOnce(...t){this._log("warn","once",...t)}infoOnce(...t){this._log("info","once",...t)}errorOncePerTick(...t){this._log("error","oncePerTick",...t)}warnOncePerTick(...t){this._log("warn","oncePerTick",...t)}infoOncePerTick(...t){this._log("info","oncePerTick",...t)}get test(){}static get test(){}static getLogger(t){return t=typeof t!="string"?t.declaredClass:t,e._loggers.get(t)||new e({module:t})}_log(t,r,...n){if(this._matchLevel(t)){if(r!=="always"&&!e._throttlingDisabled){let i=a$(n),o=this._loggedMessages[t].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=e._tickCounter)return;this._loggedMessages[t].set(i,e._tickCounter),e._scheduleTickCounterIncrement()}for(let i of Qe.log.interceptors)if(i(t,this.module,...n))return;this._inheritedWriter()(t,this.module,...n)}}_parentWithMember(t,r){let n=this;for(;n!=null;){let i=n[t];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",s$)}_matchLevel(t){let r=Qe.log.level||"warn";return q6[this._parentWithMember("level",r)]<=q6[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};Me._loggers=new Map,Me._tickCounter=0,Me._tickCounterScheduled=!1,Me._throttlingDisabled=!1});function Z1(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var Jb=L(()=>{});function l$(e){return e==null?e:new Date(e)}function c$(e){return e==null?e:!!e}function u$(e){return e==null?e:e.toString()}function e_(e){return e==null?e:(e=parseFloat(e),isNaN(e)?0:e)}function d$(e){return e==null?e:Math.round(parseFloat(e))}function f$(e){return null}function H6(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function Y1(e,t){return t!=null&&e&&!(t instanceof e)}function Z6(e){return e&&"isCollection"in e}function j6(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function p$(e,t){if(!t?.constructor||!Z6(t.constructor))return Xb(e,t)?t:new e(t);let r=j6(e.prototype.itemType),n=j6(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(Xb(e,t),t):new e(t):t}function Xb(e,t){return!!H6(t)&&(Il().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+J1(e)+"'"),!0)}function m$(e,t){return t==null?t:Z6(e)?p$(e,t):Y1(e,t)?Xb(e,t)?t:new e(t):t}function J1(e){return e?.prototype?.declaredClass||"unknown"}function g$(e){switch(e){case Number:return e_;case wi:return d$;case Boolean:return c$;case String:return u$;case Date:return l$;case td:return f$;default:return Z1(h$,e,()=>m$.bind(null,e))}}function Mn(e,t){let r=g$(e);return arguments.length===1?r:r(t)}function Pl(e,t,r){return arguments.length===1?Pl.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function Y6(e,t){return arguments.length===1?Pl(r=>Mn(e,r)):Pl(r=>Mn(e,r),t)}function J6(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>J6(e,t-1,n)):e(r)}function ed(e,t,r){if(arguments.length===2)return o=>ed(e,t,o);if(!r)return r;r=J6(e,t,r);let n=t,i=r;for(;n>0&&Array.isArray(i);)n--,i=i[0];if(i!==void 0)for(let o=0;o<n;o++)r=[r];return r}function X6(e,t,r){return arguments.length===2?ed(n=>Mn(e,n),t):ed(n=>Mn(e,n),t,r)}function X1(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function Q1(e,t){if(arguments.length===2)return Q1(e).call(null,t);let r=new Set,n=e.filter(a=>typeof a!="function"),i=e.filter(a=>typeof a=="function");for(let a of e)typeof a!="string"&&typeof a!="number"||r.add(a);let o=null,s=null;return(a,u)=>{if(a==null)return a;let d=typeof a,p=d==="string"||d==="number";return p&&(r.has(a)||i.some(m=>d==="string"&&m===String||d==="number"&&m===Number))||d==="object"&&i.some(m=>!Y1(a,m))?a:(p&&n.length?(o||(o=n.map(m=>typeof m=="string"?`'${m}'`:`${m}`).join(", ")),Il().error("Accessor#set",`'${a}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof a=="object"&&i.length?(s||(s=i.map(m=>J1(m)).join(", ")),Il().error("Accessor#set",`'${a}' is not a valid value for this property, value must be one of ${s}`)):Il().error("Accessor#set",`'${a}' is not a valid value for this property`),u&&(u.valid=!1),null)}}function zo(e,t){if(arguments.length===2)return zo(e).call(null,t);let r={},n=[],i=[];for(let u in e.typeMap){let d=e.typeMap[u];r[u]=Mn(d),n.push(J1(d)),i.push(u)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,a=typeof e.key=="string"?u=>u[e.key]:e.key;return u=>{if(e.base&&!Y1(e.base,u)||u==null)return u;let d=a(u)||e.defaultKeyValue,p=r[d];if(!p)return Il().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${s()})`),null;if(!Y1(e.typeMap[d],u))return u;if(typeof e.key=="string"&&!H6(u)){let m={};for(let w in u)w!==e.key&&(m[w]=u[w]);return p(m)}return p(u)}}function Q6(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function t_(e){switch(e.type){case"native":return Mn(e.value);case"array":return Pl(t_(e.value));case"one-of":return w$(e);default:return null}}function w$(e){let t=null;return(r,n)=>Kb(r,e)?r:(t==null&&(t=Qb(e)),Il().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function Qb(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case wi:return"integer";case Date:return"date";case td:return"null";default:return J1(e.value)}case"array":return`array of ${Qb(e.value)}`;case"one-of":{let t=e.values.map(r=>Qb(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function Kb(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case wi:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case td:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!Kb(r,t.value));case"one-of":return t.values.some(r=>Kb(e,r))}}var Il,h$,wi,td,Bo=L(()=>{Ge();Ze();Jb();Il=()=>Me.getLogger("esri.core.accessorSupport.ensureTypes");h$=new WeakMap;wi=class{},td=class{}});function yi(e){return e.__accessor__??null}function e8(e,t){return e?.metadata?.[t]!=null}function Al(e,t,r){return r?K1(e,t,{policy:r,path:""}):K1(e,t,null)}function K1(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,a="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,a=r.policy(s)),a==="replace"||a==="replace-arrays"&&Array.isArray(n[o]))return n[o]=t[o],n;if(n[o]===void 0)return n[o]=Ne(t[o]),n;let u=n[o],d=t[o];if(u===d)return n;if(Array.isArray(d)||Array.isArray(n))u=u?Array.isArray(u)?n[o]=u.slice():n[o]=[u]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(p=>{u.includes(p)||u.push(p)}));else if(d&&typeof d=="object")if(r){let p=r.path;r.path=s,n[o]=K1(u,d,r),r.path=p}else n[o]=K1(u,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function e0(e){return Array.isArray(e)?e:e.split(".")}function K6(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function y$(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...K6(r));return t}return K6(e)}function r_(e,t,r,n){let i=y$(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return js(o)}return n(e,i[0],r)}var Go=L(()=>{Jr();tr()});function t8(e,t){let r=e[e.length-1]==="?"?e.slice(0,-1):e;if(t.getItemAt!=null||Array.isArray(t)){let i=parseInt(r,10);if(!isNaN(i))return Array.isArray(t)?t[i]:t.at(i)}let n=yi(t);return e8(n,r)?n.get(r):t[r]}function r8(e,t,r){if(e==null)return e;let n=t8(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:r8(n,t,r+1)}function Zs(e,t,r=0){return typeof t!="string"||t.includes(".")?r8(e,e0(t),r):t8(t,e)}function Jn(e,t){return Zs(e,t)}function n_(e,t){return Zs(t,e)!==void 0}var Ys=L(()=>{Go()});function qo(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let n in t)t[n]=Ne(t[n]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function Nl(e,t){let r=qo(e),n=r[t];return n||(n=r[t]={}),n}function n8(e,t){return Al(e,t,_$)}function _$(e){return b$.test(e)?"replace":"merge"}var b$,kl=L(()=>{tr();Go();b$=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function v$(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(xn(n,t)??"").toString())}var Rl,i_=L(()=>{hi();Rl=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&v$(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var ye,Er=L(()=>{tr();Ze();i_();ye=class e extends Rl{constructor(t,r,n){super(t,r,n)}toJSON(){if(this.details!=null)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(t,r)=>{if(r&&typeof r=="object"&&typeof r.toJSON=="function")return r;try{return Ne(r)}catch{return"[object]"}}))}}catch(t){throw Me.getLogger("esri.core.Error").error(t),t}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new e(t.name,t.message,t.details)}};ye.prototype.type="error"});function Dl(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Dl(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Dl(Jn(e,i),o,r)}let n=e.__accessor__;n!=null&&S$(t,n),e[t]=r}}function S$(e,t){if(Q("esri-unknown-property-errors")&&!x$(e,t))throw new ye("set:unknown-property",C$(e,t))}function x$(e,t){return t.metadata[e]!=null}function C$(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var o_=L(()=>{Er();Ge();Ze();Ys()});function H(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(t,r),i=Nl(t,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in e&&Me.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),i.value=e.value=n.value)),e.readOnly!=null&&(i.readOnly=e.readOnly);let o=e.aliasOf;if(o){let u=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,p;i.dependsOn=[u],i.get=function(){let m=Jn(this,u);if(typeof m=="function"){p||(p=u.split(".").slice(0,-1).join("."));let w=Jn(this,p);w&&(m=m.bind(w))}return m},i.readOnly||(i.set=d?function(m){this._override(r,m)}:function(m){Dl(this,u,m)})}let s=e.type,a=e.types;i.cast||(s?i.cast=T$(s):a&&(Array.isArray(a)?i.cast=Pl(zo(a[0])):i.cast=zo(a))),n8(i,e),e.range&&(i.cast=E$(i.cast,e.range))}}function t0(e,t,r){let n=Nl(e,r);n.json||(n.json={});let i=n.json;return t!==void 0&&(i.origins||(i.origins={}),i.origins[t]||(i.origins[t]={}),i=i.origins[t]),i}function T$(e){let t=0,r=e;if(Q6(e))return t_(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(X1(n))return t===0?Q1(n):ed(Q1(n),t);if(t===1)return Y6(n);if(t>1)return X6(n,t);let i=e;return i.from?i.from:Mn(i)}function E$(e,t){return r=>{let n=+e(r);return t.step!=null&&(n=Math.round(n/t.step)*t.step),t.min!=null&&(n=Math.max(t.min,n)),t.max!=null&&(n=Math.min(t.max,n)),n}}var or=L(()=>{Ze();Bo();Ys();kl();o_()});var r0,s_=L(()=>{r0=Symbol("Accessor-beforeDestroy")});var sr,rd=L(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(sr||(sr={}))});var $e,n0=L(()=>{(function(e){e[e.Dirty=1]="Dirty",e[e.Overridden=2]="Overridden",e[e.Computing=4]="Computing",e[e.NonNullable=8]="NonNullable",e[e.HasDefaultValue=16]="HasDefaultValue",e[e.DepTrackingInitialized=32]="DepTrackingInitialized",e[e.AutoTracked=64]="AutoTracked",e[e.ExplicitlyTracking=128]="ExplicitlyTracking"})($e||($e={}))});function Ce(e){id.onObservableAccessed(e)}function Xn(e,t,r){if(i0)return a_(e,t,r);let n=null;return s8(e),n=t.call(r),a8(),n}function o8(e,t){return Xn(s0,e,t)}function a_(e,t,r){let n=i0;i0=!0,s8(e);let i=null;try{i=t.call(r)}catch(o){o0&&Me.getLogger("esri.core.accessorSupport.tracking").error(o)}return a8(),i0=n,i}function s8(e){id=e,nd.push(e)}function a8(){let e=nd.length;if(e>1){let t=nd.pop();id=nd[e-2],t.onTrackingEnd()}else if(e===1){let t=nd.pop();id=s0,t.onTrackingEnd()}else id=s0}function l_(e,t){if(t.flags&$e.DepTrackingInitialized)return;let r=o0;o0=!1,t.flags&$e.AutoTracked?a_(t,t.metadata.get,e):c_(e,t),o0=r}function c_(e,t){t.flags&$e.ExplicitlyTracking||(t.flags|=$e.ExplicitlyTracking,a_(t,()=>{let r=t.metadata.dependsOn||M$;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=e0(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=i8(s,i[o],o!==i.length-1)}else i8(e,n,!1)}),t.flags&=~$e.ExplicitlyTracking)}function i8(e,t,r){let n=t[t.length-1]==="?"?t.slice(0,-1):t;if(e.getItemAt!=null||Array.isArray(e)){let o=parseInt(n,10);if(!isNaN(o))return Array.isArray(e)?e[o]:e.at(o)}let i=yi(e);if(i){let o=i.propertiesByName.get(n);o&&(Ce(o),l_(e,o))}return r?e[n]:void 0}var s0,nd,id,i0,o0,M$,Js=L(()=>{Ge();Ze();Go();n0();s0={onObservableAccessed:()=>{},onTrackingEnd:()=>{}},nd=[],id=s0;i0=!1,o0=!1;M$=[]});function l8(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let n in r)if(t[n]){let i=t[n];r[n].forEach(o=>{t[o]=i}),delete t[n]}}}var c8=L(()=>{});var od,u8=L(()=>{i_();od=class extends Rl{constructor(t,r,n){super(t,r,n)}};od.prototype.type="warning"});function a0(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var u_=L(()=>{});function f_(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||A$(e)&&Gi("read.reader",L$(e),t))}function L$(e){let t=e.ndimArray??0;if(t>1)return P$(e);if(t===1)return d8(e);if("type"in e&&p8(e.type)){let r=e.type.prototype?.itemType?.Type,n=d8(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let a=n(i,o,s);return a&&new e.type(a)}}return p_(e)}function p_(e){return"type"in e?I$(e.type):N$(e.types)}function I$(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void d_().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${i}'`);let o=new e;return o.read(t,n),o}:e.fromJSON}function f8(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>f8(e,i,r,n-1)):e(t,void 0,r)}function P$(e){let t=p_(e),r=f8.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let a=n,u=i;for(;a>0&&Array.isArray(u);)a--,u=u[0];if(u!==void 0)for(let d=0;d<a;d++)i=[i];return i}}function d8(e){let t=p_(e);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let a of r){let u=t(a,void 0,i);u!==void 0&&s.push(u)}return s}let o=t(r,void 0,i);return o!==void 0?[o]:void 0}}function p8(e){if(!a0(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?m_(t.Type):m8(t.Type))}function A$(e){return"types"in e?m8(e.types):m_(e.type)}function m_(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||p8(e))}function m8(e){for(let t in e.typeMap)if(!m_(e.typeMap[t]))return!1;return!0}function N$(e){let t=null,r=e.errorContext??"type",n=e.validate;return(i,o,s)=>{if(i==null)return i;let a=typeof i;if(a!=="object")return void d_().error(`Expected JSON value of type 'object' to deserialize, but got '${a}'`);t||(t=k$(e));let u=e.key;if(typeof u!="string")return;let d=i[u],p=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!p){let w=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new od(`${r}:unsupported`,w,{definition:i,context:s})),void d_().error(w)}let m=new p;return m.read(i,s),n?n(m):m}}function k$(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=qo(n.prototype);if(typeof e.key=="function")continue;let o=i[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&o.json.type.length===1&&typeof o.json.type[0]=="string"){t[o.json.type[0]]=n;continue}let s=o.json?.write;if(!s?.writer){t[r]=n;continue}let a=s.target,u=typeof a=="string"?a:e.key,d={};s.writer(r,d,u),d[u]&&(t[d[u]]=n)}return t}var d_,h8=L(()=>{Ze();hi();u8();kl();u_();d_=()=>Me.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function b8(e){if(e.json||(e.json={}),w8(e.json),y8(e.json),g8(e.json),e.json.origins)for(let t in e.json.origins)w8(e.json.origins[t]),y8(e.json.origins[t]),g8(e.json.origins[t]);return!0}function g8(e){e.name&&(e.read&&typeof e.read=="object"?e.read.source===void 0&&(e.read.source=e.name):e.read={source:e.name},e.write&&typeof e.write=="object"?e.write.target===void 0&&(e.write.target=e.name):e.write={target:e.name})}function w8(e){typeof e.read=="boolean"?e.read={enabled:e.read}:typeof e.read=="function"?e.read={enabled:!0,reader:e.read}:e.read&&typeof e.read=="object"&&e.read.enabled===void 0&&(e.read.enabled=!0)}function y8(e){typeof e.write=="boolean"?e.write={enabled:e.write}:typeof e.write=="function"?e.write={enabled:!0,writer:e.write}:e.write&&typeof e.write=="object"&&e.write.enabled===void 0&&(e.write.enabled=!0)}var _8=L(()=>{});function h_(e,t){if(!t.write||t.write.writer||t.write.enabled===!1&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(r===1||"type"in e&&a0(e.type))?t.write.writer=$$:r>1?t.write.writer=F$(r):t.types?Array.isArray(t.types)?t.write.writer=D$(t.types[0]):t.write.writer=R$(t.types):t.write.writer=sd}function R$(e){return(t,r,n,i)=>t?v8(t,e,i)?sd(t,r,n,i):void 0:sd(t,r,n,i)}function v8(e,t,r){for(let n in t.typeMap)if(e instanceof t.typeMap[n])return!0;if(r?.messages){let n=t.errorContext??"type",i=`Values of type '${(typeof t.key!="function"?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&e&&r.messages.push(new ye(`${n}:unsupported`,i,{definition:e,context:r})),Me.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function D$(e){return(t,r,n,i)=>!t||!Array.isArray(t)?sd(t,r,n,i):sd(t.filter(o=>v8(o,e,i)),r,n,i)}function sd(e,t,r,n){Gi(r,l0(e,n),t)}function l0(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?O$(e):e}function O$(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function $$(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>l0(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[l0(e,n)],Gi(r,i,t)}function S8(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>S8(n,t,r-1)):l0(e,t)}function F$(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=S8(t,i,e);let s=e,a=o;for(;s>0&&Array.isArray(a);)s--,a=a[0];if(a!==void 0)for(let u=0;u<s;u++)o=[o]}Gi(n,o,r)}}var x8=L(()=>{Er();Ze();hi();u_()});function C8(e,t){return w_(e,"any",t?.origin)}function c0(e,t){return w_(e,"read",t?.origin)}function T8(e,t){return w_(e,"write",t?.origin)}function w_(e,t,r){let n=e?.json;if(n?.origins&&r){let i;i=r==="link-chart"?n.origins[r]&&(t==="any"||t in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],i&&(t==="any"||t in i)&&(n=i)}return n}function V$(e){let t=U$(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?W$(n):t;f_(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),h_(i,n)}f_(t,e.json,!0),h_(t,e.json)}function U$(e){return e.json.types?g_(e.json):e.type?E8(e):g_(e)}function W$(e){return e.type?E8(e):g_(e)}function E8(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!X1(r);)r=r[0],t++;return{type:r,ndimArray:t}}function g_(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function M8(e){b8(e)&&(l8(e),V$(e))}var u0=L(()=>{Bo();c8();h8();_8();x8()});function Pe(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,B$(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!y_.has(i.initialize)&&(y_.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!b_.has(i.destroy)&&(b_.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);y_.clear(),b_.clear();let o=class extends t{constructor(...a){if(super(...a),this.constructor===o&&typeof this.postscript=="function"){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let u=r.length-1;u>=0;u--)r[u].call(this)}}),n.length){let u=!1,d=this[r0];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!u){u=!0,d.call(this);for(let p=0;p<n.length;p++)n[p].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};o.__accessorMetadata__=qo(t.prototype),o.prototype.declaredClass=e;let s=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(o,"name",{value:s,configurable:!0}),o}}function z$(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;Ce(n);let i=r.store;return i.has(e)?i.get(e):n.metadata.value}:function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n!==void 0)return n.getComputed(r)}}function B$(e){let t=e.prototype,r=qo(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];M8(o),n[i]={enumerable:!0,configurable:!0,get:z$(i,o),set(s){let a=this.__accessor__;if(a!==void 0){if(!Object.isFrozen(this))return a.initialized&&o.readOnly?L8("read-only",i):a.lifecycle===sr.CONSTRUCTED&&o.constructOnly?L8("construct-only",i):void a.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,n)}var y_,b_,L8,Zt=L(()=>{Ge();Ze();s_();rd();kl();Js();u0();y_=new Set,b_=new Set;L8=(e,t)=>{Me.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function G$(e,t,r=!1){let n=`\u{1F6D1} DEPRECATED - ${t}`;if(!r)return void e.warn(n);let i=I8.get(e);i||(i=new Set,I8.set(e,i)),i.has(t)||(i.add(t),e.warn(n))}function d0(e,t,r={}){if(Q("esri-deprecation-warnings")){let{moduleName:n}=r;q$(e,`Function: ${(n?n+"::":"")+t+"()"}`,r)}}function q$(e,t,r={}){if(Q("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,a=t;n&&(a+=`
2
+ \u{1F6E0}\uFE0F Replacement: ${n}`),i&&(a+=`
3
+ \u2699\uFE0F Version: ${i}`),o&&(a+=`
4
+ \u{1F517} See ${o} for more details.`),G$(e,a,s)}}var I8,__=L(()=>{Ge();I8=new WeakMap});function v_(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var P8=L(()=>{});function f0(e){return e||"_default_"}function A8(e){for(let t of e)t instanceof Ol?t.removeAll():t.remove()}function N8(e){return e!=null&&(!!e.remove||e instanceof Ol)}var Ol,k8=L(()=>{P8();Ol=class{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let t=0;return this._groups.forEach(r=>{t+=r.length}),t}add(t,r){if(v_(t)){let n=this._getOrCreateGroup(r);for(let i of t)N8(i)&&n.push(i)}else N8(t)&&this._getOrCreateGroup(r).push(t);return this}forEach(t,r){if(typeof t=="function")this._groups.forEach(n=>n.forEach(t));else{let n=this._getGroup(t);n&&r&&n.forEach(r)}}has(t){return this._groups.has(f0(t))}remove(t){if(typeof t!="string"&&v_(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(A8(this._getGroup(t)),this._groups.delete(f0(t)),this):this}removeAll(){return this._groups.forEach(A8),this._groups.clear(),this}removeReference(t){return this._groups.delete(t),this}_getOrCreateGroup(t){if(this.has(t))return this._getGroup(t);let r=[];return this._groups.set(f0(t),r),r}_getGroup(t){return this._groups.get(f0(t))}}});function ad(e){return e?.destroy(),null}function ld(e){return e?.remove(),null}function R8(e){return e?.abort(),null}var Xs=L(()=>{});function j$(e){return e?.release&&typeof e.release=="function"}function H$(e){return e?.acquire&&typeof e.acquire=="function"}var Qn,cd=L(()=>{Qn=class e{constructor(t,r,n,i=1,o=0){this._ctor=t,this._acquireFunction=r,this._releaseFunction=n,this.allocationSize=i,this._pool=new Array(o),this._initialSize=o;for(let s=0;s<o;s++)this._pool[s]=new this._ctor;this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...t){let r;if(e.test.disabled)r=new this._ctor;else{if(this._pool.length===0){let n=this.allocationSize;for(let i=0;i<n;i++)this._pool[i]=new this._ctor}r=this._pool.pop()}return this._acquireFunction?this._acquireFunction(r,...t):H$(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):j$(t)&&t.release(),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let r=t;r<this._pool.length;++r){let n=this._pool[r];this._dispose(n)}this._pool.length=t}}_dispose(t){t.dispose&&typeof t.dispose=="function"&&t.dispose()}};Qn.test={disabled:!1}});var p0,D8=L(()=>{Mo();p0=class{constructor(t,r){this._observers=t,this._observer=r}remove(){c7(this._observers,this._observer)}}});var $l,Z$,S_=L(()=>{Jr();D8();$l=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return Z$;this._observers==null&&(this._observers=[]);let r=this._observers,n=!1,i=!1,o=r.length;for(let s=0;s<o;++s){let a=r[s];if(a.destroyed)i=!0;else if(a===t){n=!0;break}}return n||(r.push(t),i&&this._removeDestroyedObservers()),new p0(r,t)}_removeDestroyedObservers(){let t=this._observers;if(!t||t.length===0)return;let r=t.length,n=0;for(let i=0;i<r;++i){for(;i+n<r&&t[i+n].destroyed;)++n;if(n>0){if(!(i+n<r))break;t[i]=t[i+n]}}t.length=r-n}destroy(){if(this.destroyed)return;this.destroyed=!0;let t=this._observers;if(t!=null){for(let r of t)r.onCommitted();this._observers=null}}},Z$=je()});function m0(e){switch(e){case"defaults":return Re.DEFAULTS;case"service":return Re.SERVICE;case"portal-item":return Re.PORTAL_ITEM;case"web-scene":return Re.WEB_SCENE;case"web-map":return Re.WEB_MAP;case"link-chart":return Re.LINK_CHART;case"user":return Re.USER;default:return null}}function h0(e){switch(e){case Re.DEFAULTS:return"defaults";case Re.SERVICE:return"service";case Re.PORTAL_ITEM:return"portal-item";case Re.WEB_SCENE:return"web-scene";case Re.WEB_MAP:return"web-map";case Re.LINK_CHART:return"link-chart";case Re.USER:return"user"}}function O8(e){return h0(e)}var Re,Wie,Qs=L(()=>{(function(e){e[e.DEFAULTS=0]="DEFAULTS",e[e.COMPUTED=1]="COMPUTED",e[e.SERVICE=2]="SERVICE",e[e.PORTAL_ITEM=3]="PORTAL_ITEM",e[e.WEB_SCENE=4]="WEB_SCENE",e[e.WEB_MAP=5]="WEB_MAP",e[e.LINK_CHART=6]="LINK_CHART",e[e.USER=7]="USER"})(Re||(Re={}));Wie=Re.USER+1});var ud,$8=L(()=>{S_();Qs();Js();n0();ud=class extends $l{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this._accessed=null,this._handles=null,this.flags=0,this.flags=$e.Dirty|(r.nonNullable?$e.NonNullable:0)|(r.hasOwnProperty("value")?$e.HasDefaultValue:0)|(r.get===void 0?$e.DepTrackingInitialized:0)|(r.dependsOn===void 0?$e.AutoTracked:0)}destroy(){this.flags&$e.Dirty&&this.onCommitted(),super.destroy(),this._accessed=null,this._clearObservationHandles()}getComputed(t){Ce(this);let r=t.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i&$e.Computing||~i&$e.Dirty&&r.has(n))return o;this.flags|=$e.Computing;let s=t.host,a;i&$e.AutoTracked?a=Xn(this,this.metadata.get,s):(c_(s,this),a=this.metadata.get.call(s)),r.set(n,a,Re.COMPUTED);let u=r.get(n);return u===o?this.flags&=~$e.Dirty:o8(this.commit,this),this.flags&=~$e.Computing,u}onObservableAccessed(t){t!==this&&(this._accessed??(this._accessed=new Set),this._accessed.add(t))}onTrackingEnd(){this._clearObservationHandles(),this.flags|=$e.DepTrackingInitialized,this._accessed!=null&&(this._handles??(this._handles=[]),this._accessed.forEach(t=>{this._handles.push(t.observe(this))}),this._accessed.clear())}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~$e.Dirty,this.onCommitted()}_clearObservationHandles(){let t=this._handles;if(t!==null){for(let r=0;r<t.length;++r)t[r].remove();t.length=0}}onInvalidated(){~this.flags&$e.Overridden&&(this.flags|=$e.Dirty);let t=this._observers;if(t&&t.length>0)for(let r of t)r.onInvalidated()}onCommitted(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onCommitted()}}}});var g0,F8=L(()=>{tr();Qs();g0=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,Ne(n))}),r}get(t){return this._values.get(t)}originOf(){return Re.USER}keys(){return[...this._values.keys()]}set(t,r){this._values.set(t,r)}delete(t){this._values.delete(t)}has(t){return this._values.has(t)}forEach(t){this._values.forEach(t)}}});function w0(e,t,r){return e!==void 0}function V8(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags&$e.NonNullable)||(n.lifecycle,sr.INITIALIZING,!1))}var y0,C_,x_,U8=L(()=>{Ge();tr();Ze();cd();rd();$8();Qs();F8();Js();n0();y0=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=sr.INITIALIZING,this.store=new g0,this._origin=Re.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new ud(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=sr.CONSTRUCTING}constructed(){this.lifecycle=sr.CONSTRUCTED}destroy(){this.lifecycle=sr.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==sr.INITIALIZING}get(t){let r=this.propertiesByName.get(t);if(r.metadata.get)return r.getComputed(this);Ce(r);let n=this.store;return n.has(t)?n.get(t):r.metadata.value}originOf(t){let r=this.store.originOf(t);if(r===void 0){let n=this.propertiesByName.get(t);if(n!==void 0&&n.flags&$e.HasDefaultValue)return"defaults"}return h0(r)}has(t){return this.propertiesByName.has(t)&&this.store.has(t)}keys(){return[...this.propertiesByName.keys()]}internalGet(t){let r=this.propertiesByName.get(t);if(w0(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);w0(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!w0(i))return"";let o=new Set,s=Xn({onObservableAccessed:u=>o.add(u),onTrackingEnd:()=>{}},()=>i.metadata.get?.call(t)),a=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
5
+ `;if(o.size===0)return a;n+=" ";for(let u of o)u instanceof ud&&(a+=`${n}${u.propertyName}: undefined
6
+ `);return a}setAtOrigin(t,r,n){let i=this.propertiesByName.get(t);if(w0(i))return this._setAtOrigin(i,r,n)}isOverridden(t){let r=this.propertiesByName.get(t);return r!==void 0&&!!(r.flags&$e.Overridden)}clearOverride(t){let r=this.propertiesByName.get(t);r&&r.flags&$e.Overridden&&(r.flags&=~$e.Overridden,r.notifyChange())}override(t,r){let n=this.propertiesByName.get(t);if(!V8(n,t,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:a}=o;if(x_.release(o),!s)return;r=a}n.flags|=$e.Overridden,this._internalSet(n,r)}set(t,r){let n=this.propertiesByName.get(t);if(!V8(n,t,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:a,value:u}=s;if(x_.release(s),!a)return;r=u}let o=n.metadata.set;o?o.call(this.host,r):this._internalSet(n,r)}setDefaultOrigin(t){this._origin=m0(t)}getDefaultOrigin(){return h0(this._origin)}notifyChange(t){let r=this.propertiesByName.get(t);r!==void 0&&r.notifyChange()}invalidate(t){let r=this.propertiesByName.get(t);r!==void 0&&r.invalidate()}commit(t){let r=this.propertiesByName.get(t);r!==void 0&&r.commit()}_internalSet(t,r){let n=this.lifecycle!==sr.INITIALIZING?this._origin:Re.DEFAULTS;this._setAtOrigin(t,r,n)}_setAtOrigin(t,r,n){let i=this.store,o=t.propertyName;i.has(o,n)&&mu(r,i.get(o))&&~t.flags&$e.Overridden&&n===i.originOf(o)||(t.invalidate(),i.set(o,r,n),t.commit(),l_(this.host,t))}_cast(t,r){let n=x_.acquire();return n.valid=!0,n.value=r,t&&(n.value=t.call(this.host,r,n)),n}},C_=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},x_=new Qn(C_)});function T_(){return Y$}var Y$,W8,z8=L(()=>{(function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"})(W8||(W8={}))});function J$(e){e.length=0}var Ur,E_,b0=L(()=>{cd();Ur=class{constructor(t=50,r=50){this._pool=new Qn(Array,void 0,J$,r,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return E_.acquire()}static release(t){return E_.release(t)}static prune(){E_.prune()}},E_=new Ur(100)});var _0,B8=L(()=>{cd();_0=class extends Qn{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...t){let r=super.acquire(...t);return this._set.delete(r),r}release(t){t&&!this._set.has(t)&&(super.release(t),this._set.add(t))}_dispose(t){this._set.delete(t),super._dispose(t)}}});function G8(e){v0.push(e),v0.length===1&&queueMicrotask(()=>{let t=v0.slice();v0.length=0;for(let r of t)r()})}var v0,q8=L(()=>{v0=[]});var dd,j8=L(()=>{dd=class{constructor(t,r=30){this.name=t,this._counter=0,this._samples=new Array(r)}record(t){t!=null&&(this._samples[++this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,r)=>t-r)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,r)=>t+r,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}});var M_,L_,H8=L(()=>{(function(e){let t=(o,s,a,u)=>{let d=s,p=s,m=a>>>1,w=o[d-1];for(;p<=m;){p=d<<1,p<a&&u(o[p-1],o[p])<0&&++p;let _=o[p-1];if(u(_,w)<=0)break;o[d-1]=_,d=p}o[d-1]=w},r=(o,s)=>o<s?-1:o>s?1:0;function n(o,s,a,u){s===void 0&&(s=0),a===void 0&&(a=o.length),u===void 0&&(u=r);for(let p=a>>>1;p>s;p--)t(o,p,a,u);let d=s+1;for(let p=a-1;p>s;p--){let m=o[s];o[s]=o[p],o[p]=m,t(o,d,p,u)}}function*i(o,s,a,u){s===void 0&&(s=0),a===void 0&&(a=o.length),u===void 0&&(u=r);for(let p=a>>>1;p>s;p--)t(o,p,a,u),yield;let d=s+1;for(let p=a-1;p>s;p--){let m=o[s];o[s]=o[p],o[p]=m,t(o,d,p,u),yield}}e.sort=n,e.iterableSort=i})(M_||(M_={}));L_=M_});function Z8(e){e.data.length>X$*e.length&&(e.data.length=Math.floor(e.length*Q$))}var X$,Q$,fd,Y8=L(()=>{Mo();H8();X$=1.5,Q$=1.1,fd=class{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new pu,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),t.deallocator!==void 0&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>Z8(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){let r=new Array;for(let n=0;n<this._length;n++){let i=this.data[n];t(i)&&r.push(i)}return r}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,r){let n=this.data.indexOf(t,r);return n!==-1&&n<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let r=t;r<this._length;++r)this.data[r]=this._deallocator(this.data[r]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,r=t.length){for(let n=0;n<r;n++)this.data[this._length++]=t[n]}fill(t,r){for(let n=0;n<r;n++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,Z8(this)}pop(){if(this.length===0)return;let t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){let r=tb(this.data,t,this.length,this._hint);if(r!==-1)return this.data.splice(r,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex(tb(this.data,t,this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,r=t.length,n){this.length=l7(this.data,t,this.length,r,this._hint,n),this._shrink()}front(){if(this.length!==0)return this.data[0]}back(){if(this.length!==0)return this.data[this.length-1]}swapElements(t,r){if(t>=this.length||r>=this.length||t===r)return;let n=this.data[t];this.data[t]=this.data[r],this.data[r]=n}sort(t){L_.sort(this.data,0,this.length,t)}iterableSort(t){return L_.iterableSort(this.data,0,this.length,t)}some(t,r){for(let n=0;n<this.length;++n)if(t.call(r,this.data[n],n,this.data))return!0;return!1}find(t,r){for(let n=0;n<this.length;++n){let i=this.data[n];if(t.call(r,i,n))return i}}filterInPlace(t,r){let n=0;for(let i=0;i<this._length;++i){let o=this.data[i];t.call(r,o,i,this.data)&&(this.data[i]=this.data[n],this.data[n]=o,n++)}if(this._deallocator)for(let i=n;i<this._length;i++)this.data[i]=this._deallocator(this.data[i]);return this._length=n,this._shrink(),this}forAll(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)t.call(r,n[o],o,n)}forEach(t,r){this.data.slice(0,this.length).forEach(t,r)}map(t,r){let n=new Array(this.length);for(let i=0;i<this.length;++i)n[i]=t.call(r,this.data[i],i,this.data);return n}reduce(t,r){let n=r;for(let i=0;i<this.length;++i)n=t(n,this.data[i],i,this.data);return n}has(t){let r=this.length,n=this.data;for(let i=0;i<r;++i)if(n[i]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}});function K$(e){return{setTimeout:(t,r)=>{let n=e.setTimeout(t,r);return je(()=>e.clearTimeout(n))}}}var J8,X8=L(()=>{Jr();J8=K$(globalThis)});function pd(e){return eF(e)||Q8(e)}function eF(e){return e!=null&&typeof e=="object"&&"on"in e&&typeof e.on=="function"}function Q8(e){return e!=null&&typeof e=="object"&&"addEventListener"in e&&typeof e.addEventListener=="function"}function jo(e,t,r){if(!pd(e))throw new TypeError("target is not a Evented or EventTarget object");return Q8(e)?tF(e,t,r):e.on(t,r)}function tF(e,t,r,n){if(Array.isArray(t)){let i=t.slice();for(let o of i)e.addEventListener(o,r,n);return je(()=>{for(let o of i)e.removeEventListener(o,r,n)})}return e.addEventListener(t,r,n),je(()=>e.removeEventListener(t,r,n))}function K8(e,t,r){if(!pd(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=jo(e,t,i=>{n.remove(),r.call(e,i)});return n}var md=L(()=>{Jr()});function Ji(e="Aborted"){return new ye("AbortError",e)}function tC(e){return e instanceof AbortSignal?e:e?.signal}function Ho(e){let t=tC(e);return t!=null&&t.aborted}function I_(e){if(!hd(e))throw e}function cn(e,t){let r=tC(e);if(r!=null){if(!r.aborted)return K8(r,"abort",()=>t());t()}}function hd(e){return e?.name==="AbortError"}function rF(e,t=void 0,r){let n=new AbortController;return cn(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(t)},e);cn(n,()=>{s&&(clearTimeout(s),o(Ji()))})})}function nF(e){return e&&typeof e.then=="function"}function eC(e){return nF(e)?e:Promise.resolve(e)}function rC(e,t=-1){let r,n,i,o,s=null,a=(...u)=>{if(r){n=u,o&&o.reject(Ji()),o=un();let w=o.promise;if(s){let _=s;s=null,_.abort()}return w}if(i=o||un(),o=null,t>0){let w=new AbortController;r=eC(e(...u,w.signal));let _=r;rF(t).then(()=>{r===_&&(o?w.abort():s=w)})}else r=1,r=eC(e(...u));let d=()=>{let w=n;n=i=r=s=null,w!=null&&a(...w)},p=r,m=i;return p.then(d,d),p.then(m.resolve,m.reject),m.promise};return a}function un(){let e,t,r=new Promise((i,o)=>{e=i,t=o}),n=i=>{e(i)};return n.resolve=i=>e(i),n.reject=i=>t(i),n.timeout=(i,o)=>J8.setTimeout(()=>n.reject(o),i),n.promise=r,n}var bi=L(()=>{X8();Er();md();Ze();Xs()});var nC=L(()=>{});function iF(){wd!=null&&(cancelAnimationFrame(wd),wd=requestAnimationFrame(sC))}function C0(e){let t=new P_(e);return N_.push(t),x0.willDispatch||(x0.willDispatch=!0,G8(lC)),t}function oF(e=!1){Fl.forAll(t=>{t.removed=!0}),e&&aC()}function sC(){let e=performance.now();wd=null,wd=Fl.length>0?requestAnimationFrame(sC):null,x0.executeFrameTasks(e)}function sF(e){let t=e-iC;iC=e;let r=oC>0?oC:1e3/60,n=Math.max(0,t-r);gd.time=e,gd.frameDuration=r-n;for(let i=0;i<A_.length;i++){let o=performance.now(),s=A_[i];Fl.forAll(a=>{a.paused||a.removed||(i===0&&a.ticks++,a.phases[s]&&(gd.elapsedFrameTime=performance.now()-e,gd.deltaTime=a.ticks===0?0:t,a.phases[s]?.call(a,gd)))}),aF[i].record(performance.now()-o)}aC(),lF.record(performance.now()-e)}function aC(){Fl.forAll(e=>{e.removed&&S0.push(e)}),Fl.removeUnorderedMany(S0.data,S0.length),S0.clear()}function lC(){for(;N_.length;){let e=N_.shift();e.isActive&&e.callback()}x0.willDispatch=!1}var P_,iC,oC,gd,A_,N_,Fl,x0,wd,S0,aF,lF,k_=L(()=>{q8();j8();Y8();bi();nC();P_=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},iC=0,oC=0,gd={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},A_=["prepare","preRender","render","postRender","update","finish"],N_=[],Fl=new fd;x0={frameTasks:Fl,willDispatch:!1,clearFrameTasks:oF,dispatch:lC,executeFrameTasks:sF,reschedule:iF};wd=null;S0=new fd;aF=A_.map(e=>new dd(e)),lF=new dd("total")});function cC(e,t){if(!t)return e;for(let r of t)r!=null&&e.add(r);return e}function uC(e,t){let r=new Set;return cC(r,e),cC(r,t),r}var R_=L(()=>{});function T0(){return++cF}var cF,dC=L(()=>{cF=0});function uF(){}var Ks,D_,fC,O_=L(()=>{Ks=class{constructor(t){this._accessed=new Set,this._handles=[],this._observerObject=new D_(t),fC.register(this,new WeakRef(this._observerObject),this)}destroy(){fC.unregister(this._observerObject),this._accessed.clear(),this._observerObject?.destroy(),this.clear()}onObservableAccessed(t){this._accessed.add(t)}onTrackingEnd(){let t=this._handles,r=this._observerObject;this._accessed.forEach(n=>{t.push(n.observe(r))}),this._accessed.clear()}clear(){let t=this._handles;for(let r=0;r<t.length;++r)t[r].remove();t.length=0}},D_=class{constructor(t){this._notify=t,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let t=this._invalidCount;if(t===1)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}destroy(){this.destroyed=!0,this._notify=uF}},fC=new FinalizationRegistry(e=>{e.deref()?.destroy()})});function F_(e,t){let r=new Ks(o),n=null,i=!1;function o(){if(!r||i)return;if($_)return void dF(o);let a=n;r.clear(),$_=!0,i=!0,n=Xn(r,e),i=!1,$_=!1,t(n,a),fF()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=Xn(r,e),i=!1,je(s)}function V_(e,t){let r=new Ks(i),n=null;function i(){t(n,s)}function o(){r&&(r.destroy(),r=null),n=null}function s(){return r?(r.clear(),n=Xn(r,e),n):null}return s(),je(o)}function dF(e){E0.includes(e)||E0.unshift(e)}function fF(){for(;E0.length;)E0.pop()()}var $_,E0,U_=L(()=>{Jr();Js();O_();$_=!1,E0=[]});function I0(e){Zo.delete(e),Zo.add(e),L0||(L0=C0(mF))}function pF(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function pC(e){for(let t of Zo.values())t.target===e&&(t.removed=!0)}function mF(){let e=10;for(;L0&&e--;){L0=null;let t=hF(),r=M0.acquire();for(let n of t){let i=n.uid;pF(n),i===n.uid&&n.removed&&r.push(n)}for(let n of Zo)n.removed&&(r.push(n),Zo.delete(n));for(let n of r)ea.pool.release(n);M0.release(r),M0.release(t),gF.forEach(n=>n())}}function hF(){let e=M0.acquire();e.length=Zo.size;let t=0;for(let r of Zo)e[t]=r,++t;return Zo.clear(),e}function wF(e,t,r){let n=r_(e,t,r,(i,o,s)=>{let a,u,d=V_(()=>Zs(i,o),(p,m)=>{i.__accessor__?.lifecycle===sr.DESTROYED||a&&a.uid!==u?n.remove():(a||(a=ea.acquireUntracked(p,s,m,i,o),u=a.uid),I0(a))});return je(()=>{d.remove(),a&&(a.uid!==u||a.removed||(a.removed=!0,I0(a)),a=null),n=d=null})});return n}function yF(e,t,r){let n=r_(e,t,r,(i,o,s)=>{let a=!1;return F_(()=>Zs(i,o),(u,d)=>{i.__accessor__.lifecycle!==sr.DESTROYED?a||(a=!0,mu(d,u)||s.call(i,u,d,o,i),a=!1):n.remove()})});return n}function mC(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==sr.DESTROYED?n?yF(e,t,r):wF(e,t,r):je()}function bF(e,t,r){let n,i,o=V_(e,(s,a)=>{n&&n.uid!==i?o.remove():(n||(n=ea.acquireTracked(s,t,a,r),i=n.uid),I0(n))});return je(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,I0(n)),n=null),o=null})}function _F(e,t,r){let n=!1;return F_(e,(i,o)=>{n||(n=!0,r(o,i)||t(i,o),n=!1)})}function hC(e,t,r=!1,n=x7){return r?_F(e,t,n):bF(e,t,n)}var yd,ea,M0,Zo,L0,gF,W_=L(()=>{b0();Jr();tr();B8();k_();R_();dC();Ys();rd();U_();Go();(function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"})(yd||(yd={}));ea=class{constructor(){this.uid=T0(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(t,r,n,i,o){return this.pool.acquire(yd.Untracked,t,r,n,i,o,mu)}static acquireTracked(t,r,n,i){return this.pool.acquire(yd.Tracked,t,r,n,null,null,i)}notify(t,r){this.type===yd.Untracked?this.callback.call(this.target,t,r,this.path,this.target):this.callback.call(null,t,r,void 0,void 0)}acquire(t,r,n,i,o,s,a){this.uid=T0(),this.removed=!1,this.type=t,this.oldValue=r,this.callback=n,this.getValue=i,this.target=o,this.path=s,this.equals=a}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=T0(),this.removed=!0}};ea.pool=new _0(ea);M0=new Ur,Zo=new Set;gF=new Set});function vF(e){if(e==null)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}var gC,wC,_i,z_,vi,bd=L(()=>{__();k8();Ze();Xs();s_();Ys();rd();kl();U8();o_();z8();W_();or();Zt();_i=Symbol("Accessor-Handles"),z_=Symbol("Accessor-Initialized"),vi=class e{static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");let{properties:r,declaredClass:n,constructor:i}=t;delete t.declaredClass,delete t.properties,delete t.constructor;let o=this;class s extends o{constructor(...u){super(...u),this.inherited=null,i&&i.apply(this,u)}}qo(s.prototype);for(let a in t){let u=t[a];s.prototype[a]=typeof u=="function"?function(...d){let p=this.inherited,m;this.inherited=function(...w){if(o.prototype[a])return o.prototype[a].apply(this,w)};try{m=u.apply(this,d)}catch(w){throw this.inherited=p,w}return this.inherited=p,m}:t[a]}for(let a in r){let u=vF(r[a]);H(u)(s.prototype,a)}return Pe(n)(s)}constructor(...t){if(this[gC]=null,this[wC]=!1,this.constructor===e)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let r=new y0(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:r}),t.length>0&&(r.ctorArgs=this.normalizeCtorArgs?.apply(this,t)??t[0]),T_()?.onInstanceConstruct(this)}postscript(){let t=this.__accessor__,r=t.ctorArgs;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[z_]=!0}initialize(){}[r0](){this[_i]=ad(this[_i])}destroy(){this.destroyed||(pC(this),this.__accessor__.destroy(),T_()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[z_]}get destroyed(){return this.__accessor__?.lifecycle===sr.DESTROYED||!1}commitProperty(t){Jn(this,t)}get(t){return d0(Me.getLogger(this),"`Accessor.get` is deprecated in favor of using optional chaining",{version:"4.28",see:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining"}),Jn(this,t)}hasOwnProperty(t){return this.__accessor__?this.__accessor__.has(t):Object.prototype.hasOwnProperty.call(this,t)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(t,r){return Dl(this,t,r),this}watch(t,r,n){return mC(this,t,r,n)}addHandles(t,r){if(this.destroyed){let n=Array.isArray(t)?t:[t];for(let i of n)i.remove();return}(this[_i]??(this[_i]=new Ol)).add(t,r)}removeHandles(t){this[_i]?.remove(t)}removeAllHandles(){this[_i]?.removeAll()}removeHandlesReference(t){this[_i]?.removeReference(t)}hasHandles(t){return this[_i]?.has(t)===!0}_override(t,r){r===void 0?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_clearOverride(t){return this.__accessor__.clearOverride(t)}_overrideIfSome(t,r){r==null?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_isOverridden(t){return this.__accessor__.isOverridden(t)}notifyChange(t){this.__accessor__.notifyChange(t)}_get(t){return this.__accessor__.internalGet(t)}_set(t,r){return this.__accessor__.internalSet(t,r),this}};gC=_i,wC=z_});var P0,B_,yC=L(()=>{tr();Qs();P0=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,Ne(n.value),n.origin)}),r}get(t,r){r=this._normalizeOrigin(r);let n=this._values.get(t);return r==null||n?.origin===r?n?.value:void 0}originOf(t){return this._values.get(t)?.origin??Re.USER}keys(t){t=this._normalizeOrigin(t);let r=[...this._values.keys()];return t==null?r:r.filter(n=>this._values.get(n)?.origin===t)}set(t,r,n){if((n=this._normalizeOrigin(n))===Re.DEFAULTS){let i=this._values.get(t);if(i?.origin!=null&&i.origin>n)return}this._values.set(t,new B_(r,n))}delete(t,r){(r=this._normalizeOrigin(r))!=null&&this._values.get(t)?.origin!==r||this._values.delete(t)}has(t,r){return(r=this._normalizeOrigin(r))!=null?this._values.get(t)?.origin===r:this._values.has(t)}forEach(t){this._values.forEach(({value:r},n)=>t(r,n))}_normalizeOrigin(t){if(t!=null)return t===Re.DEFAULTS?t:Re.USER}},B_=class{constructor(t,r){this.value=t,this.origin=r}}});function bC(e,t,r){t.keys().forEach(i=>{r.set(i,t.get(i),Re.DEFAULTS)});let n=e.metadata;Object.keys(n).forEach(i=>{e.internalGet(i)&&r.set(i,e.internalGet(i),Re.DEFAULTS)})}var _C=L(()=>{Qs()});function SF(e,t,r){if(!e?.read||e.read.enabled===!1||!e.read.source)return!1;let n=e.read.source;if(typeof n=="string"){if(n===t||n.includes(".")&&n.indexOf(t)===0&&n_(n,r))return!0}else for(let i of n)if(i===t||i.includes(".")&&i.indexOf(t)===0&&n_(i,r))return!0;return!1}function xF(e){return e&&(!e.read||e.read.enabled!==!1&&!e.read.source)}function CF(e,t,r,n,i){let o=c0(t[r],i);xF(o)&&(e[r]=!0);for(let s of Object.getOwnPropertyNames(t))o=c0(t[s],i),SF(o,r,n)&&(e[s]=!0)}function TF(e,t,r,n){let i=r.metadata,o=C8(i[t],n),s=o?.default;if(s===void 0)return;let a=typeof s=="function"?s.call(e,t,n):s;a!==void 0&&r.set(t,a)}function vC(e,t,r=EF){if(!t||typeof t!="object")return;let n=yi(e),i=n.metadata,o={};for(let s of Object.getOwnPropertyNames(t))CF(o,i,s,t,r);n.setDefaultOrigin(r.origin);for(let s of Object.getOwnPropertyNames(o)){let a=c0(i[s],r).read,u=a?.source,d;d=u&&typeof u=="string"?Zs(t,u):t[s],a?.reader&&(d=a.reader.call(e,d,t,r)),d!==void 0&&n.set(s,d)}if(!r||!r.ignoreDefaults){n.setDefaultOrigin("defaults");for(let s of Object.getOwnPropertyNames(i))o[s]||TF(e,s,n,r)}n.setDefaultOrigin("user")}var EF,SC=L(()=>{Ys();Go();u0();EF={origin:"service"}});function MF(e,t,r,n,i){let o={};return t.write?.writer?.call(e,n,o,r,i),o}function LF(e,t,r,n,i,o){if(!n?.write)return!1;let s=Jn(e,r);if(!i&&n.write.overridePolicy){let a=n.write.overridePolicy.call(e,s,r,o??void 0);a!==void 0&&(i=a)}if(i||(i=n.write),!i||i.enabled===!1||i.layerContainerTypes&&o?.layerContainerType&&!i.layerContainerTypes.includes(o.layerContainerType))return!1;if((s===null&&!i.allowNull&&!i.writerEnsuresNonNull||s===void 0)&&i.isRequired){let a=new ye("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return a&&o?.messages?o.messages.push(a):a&&!o&&Me.getLogger("esri.core.accessorSupport.write").error(a.name,a.message),!1}return!(s===void 0||s===null&&!i.allowNull&&!i.writerEnsuresNonNull||!i.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||t.store.originOf(r)===Re.DEFAULTS)&&IF(e,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<m0(o.origin))}function IF(e,t,r,n,i){let o=n.default;if(o===void 0)return!1;if(n.defaultEquals!=null)return n.defaultEquals(i);if(typeof o=="function"){if(Array.isArray(i)){let s=o.call(e,t,r??void 0);return Eo(s,i)}return!1}return o===i}function xC(e,t,r){if(e&&typeof e.toJSON=="function"&&(!e.toJSON.isDefaultToJSON||!e.write))return Al(t,e.toJSON(r));let n=yi(e),i=n.metadata;for(let o in i){let s=T8(i[o],r);if(!LF(e,n,o,s,void 0,r))continue;let a=Jn(e,o),u=MF(e,s,s.write&&typeof s.write.target=="string"?s.write.target:o,a,r);Object.keys(u).length>0&&(t=Al(t,u),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>Al(t,u,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:O8(n.store.originOf(o)),newOrigin:r.origin}))}return t}var CC=L(()=>{Mo();Er();Ze();Ys();Qs();Go();u0()});function AF(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}function _d(e){return e&&typeof e=="object"&&"toJSON"in e&&typeof e.toJSON=="function"}var PF,Si,ta=L(()=>{ir();bd();yC();_C();SC();Go();CC();Zt();PF=e=>{let t=class extends e{constructor(...r){super(...r);let n=yi(this),i=n.store,o=new P0;n.store=o,bC(n,i,o)}read(r,n){vC(this,r,n)}write(r,n){return xC(this,r??{},n)}toJSON(r){return this.write({},r)}static fromJSON(r,n){return AF.call(this,r,n)}};return t=O([Pe("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};Si=class extends PF(vi){};Si=O([Pe("esri.core.JSONSupport")],Si)});function A0(e,t,r){let n,i;return t===void 0||Array.isArray(t)?(i=e,r=t,n=[void 0]):(i=t,n=Array.isArray(e)?e:[e]),(o,s)=>{let a=o.constructor.prototype;n.forEach(u=>{let d=t0(o,u,i);d.read&&typeof d.read=="object"||(d.read={}),d.read.reader=a[s],r&&(d.read.source=(d.read.source||[]).concat(r))})}}var G_=L(()=>{or()});function NF(e){let t={};for(let r in e)t[e[r]]=r;return t}function TC(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function xi(){return function(e,t){return new q_(e,{ignoreUnknown:!0,...t})}}var q_,N0=L(()=>{hi();q_=class{constructor(t,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=NF(t),this.apiValues=TC(this._apiToJSON),this.jsonValues=TC(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&Gi(o,s,i)},this.write.isJSONMapWriter=!0}toJSON(t){if(t==null)return null;if(this._apiToJSON.hasOwnProperty(t)){let r=this._apiToJSON[t];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?void 0:t}fromJSON(t){return t!=null&&this._jsonToAPI.hasOwnProperty(t)?this._jsonToAPI[t]:this._options.ignoreUnknown?void 0:t}}});var vd,Kn,k0,R0,D0=L(()=>{vd=class{constructor(t,r,n,i){this.semiMajorAxis=t,this.flattening=r,this.outerAtmosphereRimWidth=n;let o=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*o,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=i||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}},Kn=new vd(6378137,1/298.257223563,3e5,.006694379990137799),k0=new vd(3396190,1/169.8944472236118,23e4),R0=new vd(1737400,0,0)});function O0(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function j_(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}var $0=L(()=>{});function EC(e){let t=new Uint8Array(e),r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}var MC=L(()=>{});function BF(){let e=Mr.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${`${Mr.scheme}://${Mr.host}${Mr.port!=null?`:${Mr.port}`:""}`}${t}`}function Yo(e){if(!e)return null;let t={path:null,query:null},r=new Lr(e),n=e.indexOf("?");return r.query===null?t.path=e:(t.path=e.slice(0,n),t.query=Jo(r.query)),r.fragment&&(t.hash=r.fragment,r.query===null&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function Jo(e){let t=e.split("&"),r={};for(let n of t){if(!n)continue;let i=n.indexOf("="),o,s;i<0?(o=decodeURIComponent(n),s=""):(o=decodeURIComponent(n.slice(0,i)),s=decodeURIComponent(n.slice(i+1)));let a=r[o];typeof a=="string"&&(a=r[o]=[a]),Array.isArray(a)?a.push(s):r[o]=s}return r}function ra(e,t){return e?t&&typeof t=="function"?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(n==null)return"";let i=encodeURIComponent(r)+"=",o=t?.[r];return o?i+encodeURIComponent(o(n)):Array.isArray(n)?n.map(s=>_d(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)).join("&"):_d(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)}).filter(r=>r).join("&"):""}function AC(e=!1){let t,r=Vl.proxyUrl;if(typeof e=="string"){t=qF(e);let n=Ul(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw kF().warn(LC),new ye("urlUtils:proxy-not-set",LC);return t&&H_()&&(r=q0(r)),Yo(r)}function NC(e){let t=e.indexOf("?");return t!==-1?(Sd.path=e.slice(0,t),Sd.query=e.slice(t+1)):(Sd.path=e,Sd.query=null),Sd}function kC(e){return e=(e=OC(e=JF(e=NC(e).path),!0)).toLowerCase()}function RC(e){let t={proxyUrl:e.proxyUrl,urlPrefix:kC(e.urlPrefix)},r=Vl.proxyRules,n=t.urlPrefix,i=r.length;for(let o=0;o<r.length;o++){let s=r[o].urlPrefix;if(n.indexOf(s)===0){if(n.length===s.length)return-1;i=o;break}s.indexOf(n)===0&&(i=o+1)}return r.splice(i,0,t),i}function Ul(e){let t=Vl.proxyRules,r=kC(e);for(let n=0;n<t.length;n++)if(r.indexOf(t[n].urlPrefix)===0)return t[n]}function Y_(e,t=Vl.interceptors){let r=n=>n==null||n instanceof RegExp&&n.test(e)||typeof n=="string"&&e.startsWith(n);if(t){for(let n of t)if(Array.isArray(n.urls)){if(n.urls.some(r))return n}else if(r(n.urls))return n}return null}function Wr(e,t,r=!1){if(!e||!t)return!1;let n=Z_(e),i=Z_(t);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function U0(e){if(typeof e=="string"){if(!DC(e))return!0;e=Z_(e)}if(Wr(e,Mr))return!0;let t=Vl.trustedServers||[];for(let r=0;r<t.length;r++){let n=GF(t[r]);for(let i=0;i<n.length;i++)if(Wr(e,n[i]))return!0}return!1}function GF(e){return F0[e]||(X_(e)||Qo(e)?F0[e]=[new Lr(Xo(e))]:F0[e]=[new Lr(`http://${e}`),new Lr(`https://${e}`)]),F0[e]}function Xo(e,t=zF,r){return Qo(e)?r?.preserveProtocolRelative?e:Mr.scheme==="http"&&Mr.authority===Xr(e).slice(2)?`http:${e}`:`https:${e}`:X_(e)?e:J_(e[0]==="/"?YF(t):t,e)}function W0(e){return e=KF(e=QF(e=XF(e=Xo(e=e.trim()))))}function J_(...e){let t=e.filter(u7);if(!t?.length)return;let r=[];if(DC(t[0])){let i=t[0],o=i.indexOf("//");o!==-1&&(r.push(i.slice(0,o+1)),HF(t[0])&&(r[0]+="/"),t[0]=i.slice(o+2))}else t[0][0]==="/"&&r.push("");let n=t.reduce((i,o)=>o?i.concat(o.split("/")):i,[]);for(let i=0;i<n.length;i++){let o=n[i];o===".."&&r.length>0&&r[r.length-1]!==".."?r.pop():(!o&&i===n.length-1||o&&(o!=="."||r.length===0))&&r.push(o)}return r.join("/")}function Xr(e,t=!1){if(e==null||z0(e)||B0(e))return null;let r=e.indexOf("://");if(r===-1&&Qo(e))r=2;else{if(r===-1)return null;r+=3}let n=e.indexOf("/",r);return n!==-1&&(e=e.slice(0,n)),t&&(e=OC(e,!0)),e}function DC(e){return Qo(e)||X_(e)}function z0(e){return e!=null&&e.slice(0,5)==="blob:"}function B0(e){return e!=null&&e.slice(0,5)==="data:"}function G0(e){return EC(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Qo(e){return e!=null&&e[0]==="/"&&e[1]==="/"}function X_(e){return e!=null&&IC.test(e)}function qF(e){return e!=null&&RF.test(e)||Mr.scheme==="https"&&Qo(e)}function jF(e){return e!=null&&PC.test(e)||Mr.scheme==="http"&&Qo(e)}function HF(e){return e!=null&&DF.test(e)}function q0(e){return Qo(e)?`https:${e}`:e.replace(PC,"https:")}function ZF(){return Mr.scheme==="http"}function H_(){return Mr.scheme==="https"}function OC(e,t=!1){return Qo(e)?e.slice(2):(e=e.replace(IC,""),t&&e.length>1&&e[0]==="/"&&e[1]==="/"&&(e=e.slice(2)),e)}function YF(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return r===-1?e:e.slice(0,r)}function JF(e){return e.endsWith("/")?e:`${e}/`}function XF(e){if(/^https?:\/\//i.test(e)){let t=NC(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}function QF(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function KF(e){let t=Vl.httpsDomains;if(!jF(e))return e;let r=e.indexOf("/",7),n;if(n=r===-1?e:e.slice(0,r),n=n.toLowerCase().slice(7),OF.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return ZF()&&n===Mr.authority&&!$F.test(e)||(H_()&&n===Mr.authority||t&&t.some(i=>n===i||n.endsWith(`.${i}`))||H_()&&!Ul(e))&&(e=q0(e)),e}function Z_(e){return typeof e=="string"?new Lr(Xo(e)):(e.scheme||(e.scheme=Mr.scheme),e)}function Wl(e,t){if(!t)return e;let r=Yo(e),n=r.query||{};for(let[o,s]of Object.entries(t))s!=null&&(n[o]=s);let i=ra(n);return i?`${r.path}?${i}`:r.path}var kF,Vl,LC,IC,PC,RF,DF,OF,$F,FF,VF,Lr,F0,UF,Mr,WF,zF,V0,Sd,Ko=L(()=>{Hs();Mo();Er();ta();Ze();$0();MC();kF=()=>Me.getLogger("esri.core.urlUtils"),Vl=Qe.request,LC="esri/config: esriConfig.request.proxyUrl is not set.",IC=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,PC=/^\s*http:/i,RF=/^\s*https:/i,DF=/^\s*file:/i,OF=/:\d+$/,$F=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,FF=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),VF=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$"),Lr=class{constructor(t=""){this.uri=t,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let r=this.uri.match(FF);this.scheme=r[2]||(r[1]?"":null),this.authority=r[4]||(r[3]?"":null),this.path=r[5],this.query=r[7]||(r[6]?"":null),this.fragment=r[9]||(r[8]?"":null),this.authority!=null&&(r=this.authority.match(VF),this.user=r[3]||null,this.password=r[4]||null,this.host=r[6]||r[7],this.port=r[9]||null)}toString(){return this.uri}},F0={},UF=new Lr(Qe.applicationUrl),Mr=UF,WF=BF(),zF=WF,V0=()=>Mr;Sd={path:"",query:""}});function $C(e){Yt=e}var eV,Yt,tV,j0=L(()=>{Ge();Ko();Yb();Symbol.dispose??(Symbol.dispose=Symbol("Symbol.dispose")),Symbol.asyncDispose??(Symbol.asyncDispose=Symbol("Symbol.asyncDispose"));eV="4.31",tV=eV;tV=`4.31.0-next.${H1}`;Q("host-webworker")});function FC(e){let t=Xr(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!rV.has(t)&&!e.endsWith("/sharing/rest/generateToken")}var rV,VC=L(()=>{Ko();rV=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function WC(e,t,r=!1,n){return new Promise((i,o)=>{if(Ho(n))return void o(UC());let s=()=>{d(),o(new Error(`Unable to load ${t}`))},a=()=>{let p=e;d(),i(p)},u=()=>{if(!e)return;let p=e;d(),p.src="",o(UC())},d=()=>{Q("esri-image-decode")||(e.removeEventListener("error",s),e.removeEventListener("load",a)),s=null,a=null,e=null,n?.removeEventListener("abort",u),u=null,r&&URL.revokeObjectURL(t)};n?.addEventListener("abort",u),Q("esri-image-decode")?e.decode().then(a,s):(e.addEventListener("error",s),e.addEventListener("load",a))})}function UC(){try{return new DOMException("Aborted","AbortError")}catch{let e=new Error;return e.name="AbortError",e}}function zC(){return new Error(nV)}function BC(e){Qe.request.crossOriginNoCorsDomains||(Qe.request.crossOriginNoCorsDomains={});let t=Qe.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[Xr(r)??""]=0:(t[Xr("http://"+r)??""]=0,t[Xr("https://"+r)??""]=0)}function GC(e){let t=Qe.request.crossOriginNoCorsDomains;if(t){let r=Xr(e);if(r)return r=r.toLowerCase(),!Wr(r,V0())&&t[r]<Date.now()-36e5}return!1}async function qC(e){let t=Qe.request.crossOriginNoCorsDomains,r=Xr(e);t&&r&&(t[r.toLowerCase()]=Date.now());let n=Yo(e);e=n.path,n.query?.f==="json"&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}var nV,jC=L(()=>{Hs();Ge();bi();Ko();nV="Timeout exceeded"});var HC={};li(HC,{execute:()=>iV});function iV(e,t){let r=t.responseType;r?r!=="array-buffer"&&r!=="blob"&&r!=="json"&&r!=="native"&&r!=="native-request-init"&&r!=="text"&&(r="text"):r="json",t.responseType=r;let n=t.signal;return delete t.signal,globalThis.invokeStaticMessage("request",{url:e,options:t},{signal:n}).then(async i=>{let o,s,a,u,d;if(i.data)if(i.data instanceof ArrayBuffer){if(!(r!=="json"&&r!=="text"&&r!=="blob"||(o=new Blob([i.data]),r!=="json"&&r!=="text"||(u=await o.text(),r!=="json")))){try{s=JSON.parse(u||null)}catch(p){let m={...p,url:e,requestOptions:t};throw new ye("request:server",p.message,m)}if(s.error){let p={...s.error,url:e,requestOptions:t};throw new ye("request:server",s.error.message,p)}}}else r==="native"&&(i.data.signal=n,a=await fetch(i.data.url,i.data),i.httpStatus=a.status);switch(r){case"blob":d=o;break;case"json":d=s;break;case"native":d=a;break;case"text":d=u;break;default:d=i.data}return{data:d,httpStatus:i.httpStatus,requestOptions:t,ssl:i.ssl,url:e}})}var ZC=L(()=>{Er()});var zl,na,H0=L(()=>{ir();bd();Jr();Zt();zl=class e{constructor(){this._emitter=new e.EventEmitter(this)}emit(t,r){return this._emitter.emit(t,r)}on(t,r){return this._emitter.on(t,r)}once(t,r){return this._emitter.once(t,r)}hasEventListener(t){return this._emitter.hasEventListener(t)}};(function(e){class t{constructor(i=null){this._target=i,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(i,o){let s=this._listenersMap?.get(i);if(!s)return!1;let a=this._target||this,u=!1;for(let d of s.slice()){let p="deref"in d?d.deref():d;p?p?.call(a,o):u=!0}return u&&(s=s.filter(d=>!("deref"in d)||d.deref()!=null),this._listenersMap.set(i,s)),s.length>0}on(i,o){if(Array.isArray(i)){let a=i.map(u=>this.on(u,o));return js(a)}if(i.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??(this._listenersMap=new Map);let s=this._listenersMap.get(i)||[];return s.push(o),this._listenersMap.set(i,s),je(()=>{let a=this._listenersMap?.get(i),u=a?.indexOf(o)??-1;u>=0&&a.splice(u,1)})}once(i,o){let s=this.on(i,a=>{s.remove(),("deref"in o?o.deref():o)?.call(null,a)});return s}hasEventListener(i){let o=this._listenersMap?.get(i);return o!=null&&o.length>0}}e.EventEmitter=t,e.EventedMixin=n=>{let i=class extends n{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(o,s){return this._emitter.emit(o,s)}on(o,s){return this._emitter.on(o,s)}once(o,s){return this._emitter.once(o,s)}hasEventListener(o){return this._emitter.hasEventListener(o)}};return i=O([Pe("esri.core.Evented")],i),i};let r=class extends vi{constructor(){super(...arguments),this._emitter=new zl.EventEmitter(this)}destroy(){this._emitter.clear()}emit(n,i){return this._emitter.emit(n,i)}on(n,i){return this._emitter.on(n,i)}once(n,i){return this._emitter.once(n,i)}hasEventListener(n){return this._emitter.hasEventListener(n)}};r=O([Pe("esri.core.Evented.EventedAccessor")],r),e.EventedAccessor=r})(zl||(zl={}));na=zl});var Q_,YC=L(()=>{Q_=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]])});function oV(e){return"timeZoneIANA"in e}function sV(e){return e.startsWith("UTC")}function Z0(e,t=xd){return e?oV(e)?e.timeZoneIANA:aV(e,t):t}function aV(e,t=xd){if(!e||!Q_.has(e.timeZone))return t;let r=Q_.get(e.timeZone);return sV(e.timeZone)||e.respectsDaylightSaving?r:lV(r)}function lV(e){let t=oe.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return r===0?"Etc/UTC":`Etc/GMT${He.instance(-r).formatOffset(0,"narrow")}`}var xd,ia,oa,JC,Y0=L(()=>{YC();Vr();xd="system",ia="unknown",oa="UTC",JC=Intl.DateTimeFormat().resolvedOptions().timeZone});function fV(e){let t=K_.get(e);if(!t){let r=ln(),n=uV[r]||r,i=pV(e.timeZone??xd),o={...e,timeZone:i};t=new Intl.DateTimeFormat(n,o),K_.set(e,t)}return t}function aa(e,t=dV){return fV(t).format(e)}function pV(e){switch(e){case xd:return JC;case ia:return oa;default:return e}}var Ci,Cd,Td,Ed,es,sa,XC,Md,Ld,cV,Vae,uV,K_,dV,J0=L(()=>{N0();Yi();Y0();Vr();Ci={year:"numeric",month:"numeric",day:"numeric"},Cd={year:"numeric",month:"long",day:"numeric"},Td={year:"numeric",month:"short",day:"numeric"},Ed={year:"numeric",month:"long",weekday:"long",day:"numeric"},es={hour:"numeric",minute:"numeric"},sa={...es,second:"numeric"},XC={hourCycle:"h23"},Md={...es,...XC},Ld={...sa,...XC},cV={"short-date":Ci,"short-date-short-time":{...Ci,...es},"short-date-short-time-24":{...Ci,...Md},"short-date-long-time":{...Ci,...sa},"short-date-long-time-24":{...Ci,...Ld},"short-date-le":Ci,"short-date-le-short-time":{...Ci,...es},"short-date-le-short-time-24":{...Ci,...Md},"short-date-le-long-time":{...Ci,...sa},"short-date-le-long-time-24":{...Ci,...Ld},"long-month-day-year":Cd,"long-month-day-year-short-time":{...Cd,...es},"long-month-day-year-short-time-24":{...Cd,...Md},"long-month-day-year-long-time":{...Cd,...sa},"long-month-day-year-long-time-24":{...Cd,...Ld},"day-short-month-year":Td,"day-short-month-year-short-time":{...Td,...es},"day-short-month-year-short-time-24":{...Td,...Md},"day-short-month-year-long-time":{...Td,...sa},"day-short-month-year-long-time-24":{...Td,...Ld},"long-date":Ed,"long-date-short-time":{...Ed,...es},"long-date-short-time-24":{...Ed,...Md},"long-date-long-time":{...Ed,...sa},"long-date-long-time-24":{...Ed,...Ld},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":es,"long-time":sa},Vae=xi()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),uV={ar:"ar-u-nu-latn-ca-gregory"},K_=new WeakMap,dV=cV["short-date-short-time"];Ll(()=>{K_=new WeakMap})});function hV(e){let t=e||QC;if(!X0.has(t)){let r=ln(),n=mV[ln()]||r;X0.set(t,new Intl.NumberFormat(n,e))}return X0.get(t)}function Bl(e,t){return Object.is(e,-0)&&(e=0),hV(t).format(e)}var mV,X0,QC,ev=L(()=>{Yi();mV={ar:"ar-u-nu-latn"},X0=new WeakMap,QC={};Ll(()=>{X0=new WeakMap,QC={}})});function tv(e,t,r={}){let{format:n={}}=r;return gi(e,i=>gV(i,t,n))}function gV(e,t,r){let n,i,o=e.indexOf(":");if(o===-1?n=e.trim():(n=e.slice(0,o).trim(),i=e.slice(o+1).trim()),!n)return"";let s=xn(n,t);if(s==null)return"";let a=(i?r?.[i]:null)??r?.[n];return a?wV(s,a):i?yV(s,i):rv(s)}function wV(e,t){switch(t.type){case"date":return aa(e,t.intlOptions);case"number":return Bl(e,t.intlOptions);default:return KC().warn("missing format descriptor for key {key}"),rv(e)}}function yV(e,t){switch(t.toLowerCase()){case"dateformat":return aa(e);case"numberformat":return Bl(e);default:return KC().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?aa(e):/^numberformat/i.test(t)?Bl(e):rv(e)}}function rv(e){switch(typeof e){case"string":return e;case"number":return Bl(e);case"boolean":return""+e;default:return e instanceof Date?aa(e):""}}var KC,nv=L(()=>{Ze();hi();Io();J0();ev();KC=()=>Me.getLogger("esri.intl.substitute")});function tT(e){return e in bV}function rT(e){for(let t of Gl.keys())iT(e.pattern,t)&&Gl.delete(t)}function nT(e){return Id.includes(e)||(rT(e),Id.unshift(e)),je(()=>{let t=Id.indexOf(e);t>-1&&(Id.splice(t,1),rT(e))})}async function iv(e){let t=ln();Gl.has(e)||Gl.set(e,_V(e,t));let r=Gl.get(e);return r&&await vV.add(r),r}function ov(e){if(!eT.test(e))return null;let t=eT.exec(e);if(t===null)return null;let[,r,n]=t,i=r+(n?"-"+n.toUpperCase():"");return tT(i)?i:tT(r)?r:null}async function _V(e,t){let r=[];for(let n of Id)if(iT(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(i){r.push(i)}throw r.length?new ye("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new ye("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}function iT(e,t){return typeof e=="string"?t.startsWith(e):e.test(t)}var eT,bV,Id,Gl,vV,Pd=L(()=>{Er();Jr();bi();Yi();eT=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,bV={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};Id=[],Gl=new Map;Ll(()=>{Gl.clear()});vV=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=un())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&this._numLoading===0&&(this._dfd.resolve(),this._dfd=null)}}});async function SV(e,t,r,n){let i=t.exec(r);if(!i)throw new ye("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let o=i[1]?`${i[1]}/`:"",s=i[2],a=ov(n),u=`${o}${s}.json`,d=a?`${o}${s}_${a}.json`:u,p;try{p=await oT(e(d))}catch(m){if(d===u)throw new ye("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:m});try{p=await oT(e(u))}catch(w){throw new ye("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:w})}}return p}async function oT(e){if(sT.fetchBundleAsset!=null)return sT.fetchBundleAsset(e);let t=await wt(e,{responseType:"text"});return JSON.parse(t.data)}function aT(e){return new sv(e)}var sv,sT,lT=L(()=>{Q0();Er();Pd();sv=class{constructor({base:t="",pattern:r,location:n=new URL(window.location.href)}){let i;i=typeof n=="string"?o=>new URL(o,new URL(n,window.location.href)).href:n instanceof URL?o=>new URL(o,n).href:n,this.pattern=typeof r=="string"?new RegExp(`^${r}`):r,this.getAssetUrl=i,t=t?t.endsWith("/")?t:t+"/":"",this.matcher=new RegExp(`^${t}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(t,r){return SV(this.getAssetUrl,this.matcher,t,r)}};sT={}});var eg=L(()=>{J0();ev();nv();Yi();Pd();Pd();lT();K0();nT(aT({pattern:"esri/",location:ql}))});function cT(e){return typeof e=="string"?document.getElementById(e):e??null}var wle,uT=L(()=>{wle=typeof Element.prototype.closest=="function"?(e,t)=>e.closest(t):(e,t)=>{let r=e;do{if(r.matches(t))return r;r=r.parentElement}while(r!==null&&r.nodeType===1);return null}});var ts,av,lv,dT,fT=L(()=>{ir();bd();bi();Zt();(function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"})(ts||(ts={}));av=class{constructor(){this._resolver=un(),this._status=ts.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=ts.RESOLVED,this._cleanUp()},()=>{this._status=ts.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===ts.RESOLVED}isRejected(){return this._status===ts.REJECTED}isFulfilled(){return this._status!==ts.PENDING}abort(){this._resolver.reject(Ji())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let t=un(),r=[...this._resolvingPromises,t.promise],n=this._allPromise=Promise.all(r);n.then(()=>{this.isFulfilled()||this._allPromise!==n||this._resolver.resolve()},i=>{this.isFulfilled()||this._allPromise!==n||hd(i)||this._resolver.reject(i)}),t.resolve()}},lv=e=>{let t=class extends e{constructor(...r){super(...r),this._promiseProps=new av,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(r,n){return this._promiseProps.promise.then(()=>this).then(r,n)}catch(r){return this.when(null,r)}addResolvingPromise(r){r&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in r?r.when():r)}};return t=O([Pe("esri.core.Promise")],t),t},dT=class extends lv(vi){};dT=O([Pe("esri.core.Promise")],dT)});function MV(e){return{ok:!0,value:e}}function LV(e){return{ok:!1,error:e}}function IV(e){return e!=null&&e.ok===!0?e.value:null}function PV(e){return e!=null&&e.ok===!1?e.error:null}var la,pT=L(()=>{ir();bd();Xs();bi();or();Zt();la=class extends vi{get value(){return IV(this._result)}get error(){return PV(this._result)}get finished(){return this._result!=null}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=R8(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(n=>{this._result=MV(n),this._cleanup()},n=>{this._result=LV(n),this._cleanup()}),this._abortHandle=cn(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=ld(this._abortHandle),this._abortController=null}};O([H()],la.prototype,"value",null),O([H()],la.prototype,"error",null),O([H()],la.prototype,"finished",null),O([H()],la.prototype,"promise",void 0),O([H()],la.prototype,"_result",void 0),la=O([Pe("esri.core.asyncUtils.ReactiveTask")],la)});var Fe,mT=L(()=>{(function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"})(Fe||(Fe={}))});function hT(e){return(t,r)=>{t[r]=e}}var gT=L(()=>{});var tg,wT=L(()=>{S_();tg=class extends $l{notify(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});function yT(e){e&&typeof e=="object"&&"destroy"in e&&typeof e.destroy=="function"&&e.destroy()}function cv(e){return e?e instanceof os?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function uv(e){if(e?.length)return e[0]}function AV(e,t,r,n){let i=Math.min(e.length-r,t.length-n),o=0;for(;o<i&&e[r+o]===t[n+o];)o++;return o}function bT(e,t,r,n){t&&t.forEach((i,o,s)=>{e.push(i),bT(e,r.call(n,i,o,s),r,n)})}var Xi,fv,pv,Ln,rs,ns,is,dv,NV,os,_T=L(()=>{ir();b0();H0();Jr();tr();cd();mT();k_();Bo();Js();or();gT();Zt();wT();fv=class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}},pv=class{constructor(t,r,n,i,o){this.target=t,this.added=r,this.removed=n,this.start=i,this.deleteCount=o}},Ln=new Qn(fv,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});rs=new Set,ns=new Set,is=new Set,dv=new Map,NV=0,os=Xi=class extends na.EventedAccessor{static isCollection(e){return e!=null&&e instanceof Xi}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new tg,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:NV++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof Xi?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),this._emitter.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get items(){return Ce(this._observable),this._items}set items(e){this._emitBeforeChanges(Fe.ADD)||(this._splice(0,this.length,cv(e)),this._emitAfterChanges(Fe.ADD))}hasEventListener(e){return!this.destroyed&&(e==="change"?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return je();if(e==="change"){let r=this._chgListeners,n={removed:!1,callback:t};return r.push(n),this._notifications&&this._notifications.push({listeners:r.slice(),items:this._items.slice(),changes:[]}),je(()=>{n.removed=!0,r.splice(r.indexOf(n),1)})}return this._emitter.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,n=this.on(e,i=>{r()?.call(null,i),n.remove()});return n}add(e,t){if(Ce(this._observable),this._emitBeforeChanges(Fe.ADD))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(Fe.ADD),this}addMany(e,t=this._items.length){if(Ce(this._observable),!e?.length)return this;if(this._emitBeforeChanges(Fe.ADD))return this;let r=this.getNextIndex(t);return this._splice(r,0,cv(e)),this._emitAfterChanges(Fe.ADD),this}at(e){if(Ce(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if(Ce(this._observable),!this.length||this._emitBeforeChanges(Fe.REMOVE))return[];let e=this._removeAllRaw();return this._emitAfterChanges(Fe.REMOVE),e}_removeAllRaw(){return this.length===0?[]:this._splice(0,this.length)||[]}clone(){return Ce(this._observable),this._createNewInstance({items:this._items.map(Ne)})}concat(...e){Ce(this._observable);let t=e.map(cv);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if(Ce(this._observable),!this.length||this._emitBeforeChanges(Fe.REMOVE))return;let r=this._splice(0,this.length),n=r.length;for(let i=0;i<n;i++)e.call(t,r[i],i,r);this._emitAfterChanges(Fe.REMOVE)}destroyAll(){this.drain(yT)}destroyMany(e){let t=this.removeMany(e);return t.forEach(yT),t}every(e,t){return Ce(this._observable),this._items.every(e,t)}filter(e,t){let r;return Ce(this._observable),r=arguments.length===2?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:r})}find(e,t){return Ce(this._observable),this._items.find(e,t)}findIndex(e,t){return Ce(this._observable),this._items.findIndex(e,t)}flatten(e,t){Ce(this._observable);let r=[];return bT(r,this,e,t),new Xi(r)}forEach(e,t){return Ce(this._observable),this._items.forEach(e,t)}getItemAt(e){return Ce(this._observable),this._items[e]}getNextIndex(e){Ce(this._observable);let t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return Ce(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return Ce(this._observable),this._items.indexOf(e,t)}join(e=","){return Ce(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return Ce(this._observable),this._items.lastIndexOf(e,t)}map(e,t){Ce(this._observable);let r=this._items.map(e,t);return new Xi({items:r})}reorder(e,t=this.length-1){Ce(this._observable);let r=this.indexOf(e);if(r!==-1){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(Fe.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(Fe.MOVE)}return e}}pop(){if(Ce(this._observable),!this.length||this._emitBeforeChanges(Fe.REMOVE))return;let e=uv(this._splice(this.length-1,1));return this._emitAfterChanges(Fe.REMOVE),e}push(...e){return Ce(this._observable),this._emitBeforeChanges(Fe.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(Fe.ADD)),this.length}reduce(e,t){Ce(this._observable);let r=this._items;return arguments.length===2?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){Ce(this._observable);let r=this._items;return arguments.length===2?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return Ce(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if(Ce(this._observable),e<0||e>=this.length||this._emitBeforeChanges(Fe.REMOVE))return;let t=uv(this._splice(e,1));return this._emitAfterChanges(Fe.REMOVE),t}removeMany(e){if(Ce(this._observable),!e?.length||this._emitBeforeChanges(Fe.REMOVE))return[];let t=e instanceof Xi?e.toArray():e,r=this._items,n=[],i=t.length;for(let o=0;o<i;o++){let s=t[o],a=r.indexOf(s);if(a>-1){let u=1+AV(t,r,o+1,a+1),d=this._splice(a,u);d&&d.length>0&&n.push.apply(n,d),o+=u-1}}return this._emitAfterChanges(Fe.REMOVE),n}reverse(){if(Ce(this._observable),this._emitBeforeChanges(Fe.MOVE))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(Fe.MOVE),this}shift(){if(Ce(this._observable),!this.length||this._emitBeforeChanges(Fe.REMOVE))return;let e=uv(this._splice(0,1));return this._emitAfterChanges(Fe.REMOVE),e}slice(e=0,t=this.length){return Ce(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return Ce(this._observable),this._items.some(e,t)}sort(e){if(Ce(this._observable),!this.length||this._emitBeforeChanges(Fe.MOVE))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(Fe.MOVE),this}splice(e,t,...r){Ce(this._observable);let n=(t?Fe.REMOVE:0)|(r.length?Fe.ADD:0);if(this._emitBeforeChanges(n))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(n),i}toArray(){return Ce(this._observable),this._items.slice()}toJSON(){return Ce(this._observable),this.toArray()}toLocaleString(){return Ce(this._observable),this._items.toLocaleString()}toString(){return Ce(this._observable),this._items.toString()}unshift(...e){return Ce(this._observable),!e.length||this._emitBeforeChanges(Fe.ADD)||(this._splice(0,0,e),this._emitAfterChanges(Fe.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let n=this._items,i=this.itemType,o,s;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=C0(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let a=Ln.acquire();a.target=this,a.cancellable=!0;for(let u=0,d=s.length;u<d;u++)o=s[u],a.reset(o),this.emit("before-remove",a),a.defaultPrevented&&(s.splice(u,1),n.splice(e,0,o),e+=1,u-=1,d-=1);Ln.release(a)}if(this.length=this._items.length,this.hasEventListener("after-remove")){let a=Ln.acquire();a.target=this,a.cancellable=!1;let u=s.length;for(let d=0;d<u;d++)a.reset(s[d]),this.emit("after-remove",a);Ln.release(a)}}if(r?.length){if(i){let p=[];for(let m of r){let w=i.ensureType(m);w==null&&m!=null||p.push(w)}r=p}let a=this.hasEventListener("before-add"),u=this.hasEventListener("after-add"),d=e===this.length;if(a||u){let p=Ln.acquire();p.target=this,p.cancellable=!0;let m=Ln.acquire();m.target=this,m.cancellable=!1;for(let w of r)a?(p.reset(w),this.emit("before-add",p),p.defaultPrevented||(d?n.push(w):n.splice(e++,0,w),this._set("length",n.length),u&&(m.reset(w),this.emit("after-add",m)))):(d?n.push(w):n.splice(e++,0,w),this._set("length",n.length),m.reset(w),this.emit("after-add",m));Ln.release(m),Ln.release(p)}else{if(d)for(let p of r)n.push(p);else n.splice(e,0,...r);this._set("length",n.length)}}if((r?.length||s?.length)&&this._notifyChangeEvent(r,s),this.hasEventListener("after-splice")){let a=new pv(this,r,s,e,t);this.emit("after-splice",a)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=Ln.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,Ln.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=Ln.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),Ln.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let r=t.changes;rs.clear(),ns.clear(),is.clear();for(let{added:u,removed:d}of r){if(u)if(is.size===0&&ns.size===0)for(let p of u)rs.add(p);else for(let p of u)ns.has(p)?(is.add(p),ns.delete(p)):is.has(p)||rs.add(p);if(d)if(is.size===0&&rs.size===0)for(let p of d)ns.add(p);else for(let p of d)rs.has(p)?rs.delete(p):(is.delete(p),ns.add(p))}let n=Ur.acquire();rs.forEach(u=>{n.push(u)});let i=Ur.acquire();ns.forEach(u=>{i.push(u)});let o=this._items,s=t.items,a=Ur.acquire();if(is.forEach(u=>{s.indexOf(u)!==o.indexOf(u)&&a.push(u)}),t.listeners&&(n.length||i.length||a.length)){let u={target:this,added:n,removed:i,moved:a},d=t.listeners.length;for(let p=0;p<d;p++){let m=t.listeners[p];m.removed||m.callback.call(this,u)}}Ur.release(n),Ur.release(i),Ur.release(a)}rs.clear(),ns.clear(),is.clear()}};os.ofType=e=>{if(!e)return Xi;if(dv.has(e))return dv.get(e);let t=null;if(typeof e=="function")t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let n in e.typeMap){let i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let r=class extends Xi{};return O([hT({Type:e,ensureType:typeof e=="function"?Mn(e):zo(e)})],r.prototype,"itemType",void 0),r=O([Pe(`esri.core.Collection<${t}>`)],r),dv.set(e,r),r},O([H()],os.prototype,"_updating",void 0),O([H()],os.prototype,"length",void 0),O([H()],os.prototype,"items",null),O([H({readOnly:!0})],os.prototype,"updating",null),os=Xi=O([Pe("esri.core.Collection")],os)});function Ad(e,t,r={}){return ST(e,t,r,kV)}function vT(e,t,r={}){return ST(e,t,r,RV)}function ST(e,t,r={},n){let i=null,o=r.once?(s,a)=>{n(s)&&(ld(i),t(s,a))}:(s,a)=>{n(s)&&t(s,a)};if(i=hC(e,o,r.sync,r.equals),r.initial){let s=e();o(s,s)}return i}function kV(e){return!0}function RV(e){return!!e}var rg,mv=L(()=>{pT();_T();md();Jr();Xs();bi();W_();U_();rg={sync:!0,initial:!0}});function xT(){if(DV)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=r=>e[r].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}var DV,CT=L(()=>{DV="randomUUID"in crypto});function $V(e){let t="__accessorMetadata__"in e?Mn(e):e;return function(...r){if(r.push(t),typeof r[2]=="number")throw new Error("Using @cast has parameter decorator is not supported since 4.16");return FV.apply(this,r)}}function FV(e,t,r,n){Nl(e,t).cast=n}function VV(e){return(t,r)=>{Nl(t,e).cast=t[r]}}function ng(...e){if(e.length!==3||typeof e[1]!="string")return e.length===1&&OV.call(e[0])==="[object Function]"?$V(e[0]):e.length===1&&typeof e[0]=="string"?VV(e[0]):void 0}var OV,hv=L(()=>{Bo();kl();OV=Object.prototype.toString});function IT(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function UV(e,t,r){}function WV(e,t,r){}function BV(e,t){return zV.test(t)?"":t}function qV(e,t){e=Nd.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,s="";function a(){if(!n){var p=Nd.trim(e.slice(i,o)),m=p.indexOf(":");if(m!==-1){var w=Nd.trim(p.slice(0,m)),_=Nd.trim(p.slice(m+1));if(w){var S=t(i,s.length,w,_,p);S&&(s+=S+"; ")}}}i=o+1}for(;o<r;o++){var u=e[o];if(u==="/"&&e[o+1]==="*"){var d=e.indexOf("*/",o+2);if(d===-1)break;o=d+1,i=o+1,n=!1}else u==="("?n=!0:u===")"?n=!1:u===";"?n||a():u===`
7
+ `&&a()}return Nd.trim(s)}function TT(e){return e==null}function ZV(e){var t={};for(var r in e)t[r]=e[r];return t}function PT(e){e=ZV(e||{}),e.whiteList=e.whiteList||ig.whiteList,e.onAttr=e.onAttr||ig.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||ig.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||ig.safeAttrValue,this.options=e}function AT(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}function QV(e,t,r){}function KV(e,t,r){}function eU(e,t,r){}function tU(e,t,r){}function kT(e){return e.replace(nU,"&lt;").replace(iU,"&gt;")}function rU(e,t,r,n){if(r=VT(r),t==="href"||t==="src"){if(r=cg.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(t==="background"){if(og.lastIndex=0,og.test(r))return""}else if(t==="style"){if(ET.lastIndex=0,ET.test(r)||(MT.lastIndex=0,MT.test(r)&&(og.lastIndex=0,og.test(r))))return"";n!==!1&&(n=n||NT,r=n.process(r))}return r=UT(r),r}function RT(e){return e.replace(oU,"&quot;")}function DT(e){return e.replace(sU,'"')}function OT(e){return e.replace(aU,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function $T(e){return e.replace(lU,":").replace(cU," ")}function FT(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return cg.trim(t)}function VT(e){return e=DT(e),e=OT(e),e=$T(e),e=FT(e),e}function UT(e){return e=RT(e),e=kT(e),e}function uU(){return""}function dU(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(s){return r?!0:cg.indexOf(e,s)!==-1}var i=[],o=!1;return{onIgnoreTag:function(s,a,u){if(n(s))if(u.isClosing){var d="[/removed]",p=u.position+d.length;return i.push([o!==!1?o:u.position,p]),o=!1,d}else return o||(o=u.position),"[removed]";else return t(s,a,u)},remove:function(s){var a="",u=0;return cg.forEach(i,function(d){a+=s.slice(u,d[0]),u=d[1]}),a+=s.slice(u),a}}}function fU(e){for(var t="",r=0;r<e.length;){var n=e.indexOf("<!--",r);if(n===-1){t+=e.slice(r);break}t+=e.slice(r,n);var i=e.indexOf("-->",n);if(i===-1)break;r=i+3}return t}function pU(e){var t=e.split("");return t=t.filter(function(r){var n=r.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),t.join("")}function mU(e){var t=ss.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=ss.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function hU(e){return e.slice(0,2)==="</"}function gU(e,t,r){var n="",i=0,o=!1,s=!1,a=0,u=e.length,d="",p="";e:for(a=0;a<u;a++){var m=e.charAt(a);if(o===!1){if(m==="<"){o=a;continue}}else if(s===!1){if(m==="<"){n+=r(e.slice(i,a)),o=a,i=a;continue}if(m===">"){n+=r(e.slice(i,o)),p=e.slice(o,a+1),d=mU(p),n+=t(o,n.length,d,p,hU(p)),i=a+1,o=!1;continue}if(m==='"'||m==="'")for(var w=1,_=e.charAt(a-w);_.trim()===""||_==="=";){if(_==="="){s=m;continue e}_=e.charAt(a-++w)}}else if(m===s){s=!1;continue}}return i<e.length&&(n+=r(e.substr(i))),n}function yU(e,t){var r=0,n=0,i=[],o=!1,s=e.length;function a(w,_){if(w=ss.trim(w),w=w.replace(wU,"").toLowerCase(),!(w.length<1)){var S=t(w,_||"");S&&i.push(S)}}for(var u=0;u<s;u++){var d=e.charAt(u),p,m;if(o===!1&&d==="="){o=e.slice(r,u),r=u+1,n=e.charAt(r)==='"'||e.charAt(r)==="'"?r:_U(e,u+1);continue}if(o!==!1&&u===n){if(m=e.indexOf(d,u+1),m===-1)break;p=ss.trim(e.slice(n+1,m)),a(o,p),o=!1,u=m,r=u+1;continue}if(/\s|\n|\t/.test(d))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(m=bU(e,u),m===-1){p=ss.trim(e.slice(r,u)),a(p),o=!1,r=u+1;continue}else{u=m-1;continue}else if(m=vU(e,u-1),m===-1){p=ss.trim(e.slice(r,u)),p=LT(p),a(o,p),o=!1,r=u+1;continue}else continue}return r<e.length&&(o===!1?a(e.slice(r)):a(o,LT(ss.trim(e.slice(r))))),ss.trim(i.join(" "))}function bU(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function _U(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function vU(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function SU(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function LT(e){return SU(e)?e.substr(1,e.length-2):e}function sg(e){return e==null}function EU(e){var t=ag.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=ag.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=ag.trim(e.slice(0,-1))),{html:e,closing:r}}function MU(e){var t={};for(var r in e)t[r]=e[r];return t}function LU(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(n){return n.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function zT(e){e=MU(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=ei.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=LU(e.whiteList||e.allowList):e.whiteList=ei.whiteList,e.onTag=e.onTag||ei.onTag,e.onTagAttr=e.onTagAttr||ei.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||ei.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||ei.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||ei.safeAttrValue,e.escapeHtml=e.escapeHtml||ei.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new xU(e.css))}var lg,gv,yt,wv,ca,zV,GV,Nd,jV,ig,HV,YV,yv,bv,JV,XV,cg,NT,nU,iU,oU,sU,aU,lU,cU,og,ET,MT,ug,ss,wU,xU,ei,WT,CU,TU,ag,IU,jl,PU,BT,GT=L(()=>{lg=function(){return lg=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},lg.apply(this,arguments)},gv={exports:{}},yt={},wv={exports:{}},ca={};zV=/javascript\s*\:/img;ca.whiteList=IT();ca.getDefaultWhiteList=IT;ca.onAttr=UV;ca.onIgnoreAttr=WV;ca.safeAttrValue=BV;GV={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Nd=GV;jV=qV,ig=ca,HV=jV;PT.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onAttr,o=r.onIgnoreAttr,s=r.safeAttrValue,a=HV(e,function(u,d,p,m,w){var _=n[p],S=!1;if(_===!0?S=_:typeof _=="function"?S=_(m):_ instanceof RegExp&&(S=_.test(m)),S!==!0&&(S=!1),m=s(p,m),!!m){var T={position:d,sourcePosition:u,source:w,isWhite:S};if(S){var M=i(p,m,T);return TT(M)?p+":"+m:M}else{var M=o(p,m,T);if(!TT(M))return M}}});return a};YV=PT;(function(e,t){var r=ca,n=YV;function i(s,a){var u=new n(a);return u.process(s)}t=e.exports=i,t.FilterCSS=n;for(var o in r)t[o]=r[o]})(wv,wv.exports);yv=wv.exports,bv={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}},JV=yv.FilterCSS,XV=yv.getDefaultWhiteList,cg=bv;NT=new JV;nU=/</g,iU=/>/g,oU=/"/g,sU=/&quot;/g,aU=/&#([a-zA-Z0-9]*);?/gim,lU=/&colon;?/gim,cU=/&newline;?/gim,og=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,ET=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,MT=/u\s*r\s*l\s*\(.*/gi;yt.whiteList=AT();yt.getDefaultWhiteList=AT;yt.onTag=QV;yt.onIgnoreTag=KV;yt.onTagAttr=eU;yt.onIgnoreTagAttr=tU;yt.safeAttrValue=rU;yt.escapeHtml=kT;yt.escapeQuote=RT;yt.unescapeQuote=DT;yt.escapeHtmlEntities=OT;yt.escapeDangerHtml5Entities=$T;yt.clearNonPrintableCharacter=FT;yt.friendlyAttrValue=VT;yt.escapeAttrValue=UT;yt.onIgnoreTagStripAll=uU;yt.StripTagBody=dU;yt.stripCommentTag=fU;yt.stripBlankChar=pU;yt.cssFilter=NT;yt.getDefaultCSSWhiteList=XV;ug={},ss=bv;wU=/[^a-zA-Z0-9\\_:.-]/gim;ug.parseTag=gU;ug.parseAttr=yU;xU=yv.FilterCSS,ei=yt,WT=ug,CU=WT.parseTag,TU=WT.parseAttr,ag=bv;zT.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onTag,o=r.onIgnoreTag,s=r.onTagAttr,a=r.onIgnoreTagAttr,u=r.safeAttrValue,d=r.escapeHtml,p=t.cssFilter;r.stripBlankChar&&(e=ei.stripBlankChar(e)),r.allowCommentTag||(e=ei.stripCommentTag(e));var m=!1;r.stripIgnoreTagBody&&(m=ei.StripTagBody(r.stripIgnoreTagBody,o),o=m.onIgnoreTag);var w=CU(e,function(_,S,T,M,R){var I={sourcePosition:_,position:S,isClosing:R,isWhite:Object.prototype.hasOwnProperty.call(n,T)},N=i(T,M,I);if(!sg(N))return N;if(I.isWhite){if(I.isClosing)return"</"+T+">";var V=EU(M),Y=n[T],re=TU(V.html,function(te,ie){var ge=ag.indexOf(Y,te)!==-1,be=s(T,te,ie,ge);return sg(be)?ge?(ie=u(T,te,ie,p),ie?te+'="'+ie+'"':te):(be=a(T,te,ie,ge),sg(be)?void 0:be):be});return M="<"+T,re&&(M+=" "+re),V.closing&&(M+=" /"),M+=">",M}else return N=o(T,M,I),sg(N)?d(M):N},d);return m&&(w=m.remove(w)),w};IU=zT;(function(e,t){var r=yt,n=ug,i=IU;function o(a,u){var d=new i(u);return d.process(a)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=i,function(){for(var a in r)t[a]=r[a];for(var u in n)t[u]=n[u]}();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=e.exports)})(gv,gv.exports);jl=gv.exports,PU=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},BT=function(){function e(t,r){var n=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],details:["style"],div:["align","style","aria-label","aria-hidden"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=lg(lg({},jl.getDefaultCSSWhiteList()),{flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,"line-height":!0,"justify-content":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(o,s,a,u){return o==="a"&&s==="href"||(o==="img"||o==="source")&&s==="src"?n.sanitizeUrl(a):jl.safeAttrValue(o,s,a,u)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var i;t&&!r?i=t:t&&r?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(t).forEach(function(o){if(o==="whiteList")i.whiteList=n._extendObjectOfArrays([n.arcgisWhiteList,t.whiteList||{}]);else if(o==="css"){var s=t.css.whiteList;s!=null&&t.css instanceof Object&&Object.keys(s).forEach(function(a){return i.css.whiteList[a]=s[a]})}else i[o]=t[o]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new jl.FilterXSS(i)}return e.prototype.sanitize=function(t,r){switch(r===void 0&&(r={}),typeof t){case"number":return isNaN(t)||!isFinite(t)?null:t;case"boolean":return t;case"string":return this._xssFilter.process(t);case"object":return this._iterateOverObject(t,r);default:return r.allowUndefined&&typeof t>"u"?void 0:null}},e.prototype.sanitizeUrl=function(t,r){var n=(r??{}).isProtocolRequired,i=n===void 0?!0:n,o=this._trim(t.substring(0,t.indexOf(":"))),s=t==="/",a=/^#/.test(t),u=o&&this.allowedProtocols.indexOf(o.toLowerCase())>-1;return s||a||u?jl.escapeAttrValue(t):!o&&!i?jl.escapeAttrValue("https://".concat(t)):""},e.prototype.sanitizeHTMLAttribute=function(t,r,n,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(t,r,n,i):jl.safeAttrValue(t,r,n,i)},e.prototype.validate=function(t,r){r===void 0&&(r={});var n=this.sanitize(t,r);return{isValid:t===n,sanitized:n}},e.prototype.encodeHTML=function(t){var r=this;return String(t).replace(/[&<>"'\/]/g,function(n){return r._entityMap[n]})},e.prototype.encodeAttrValue=function(t){var r=/^[a-zA-Z0-9]$/;return String(t).replace(/[\x00-\xFF]/g,function(n,i){return r.test(n)?n:"&#x".concat(Number(t.charCodeAt(i)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(t){var r={};return t.forEach(function(n){Object.keys(n).forEach(function(i){Array.isArray(n[i])&&Array.isArray(r[i])?r[i]=r[i].concat(n[i]):r[i]=n[i]})}),r},e.prototype._iterateOverObject=function(t,r){var n=this;r===void 0&&(r={});try{var i=!1,o=void 0;if(Array.isArray(t))o=t.reduce(function(a,u){var d=n.validate(u,r);return d.isValid?a.concat([u]):(i=!0,a.concat([d.sanitized]))},[]);else if(PU(t)){var s=Object.keys(t);o=s.reduce(function(a,u){var d=t[u],p=n.validate(d,r);return p.isValid?a[u]=d:(i=!0,a[u]=p.sanitized),a},{})}else return r.allowUndefined&&typeof t>"u"?void 0:null;return i?o:t}catch{return null}},e.prototype._trim=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},e}()});function fg(){dg.clear()}function qT(e){return dg.get(e)}function jT(e,t){dg.set(e,t)}function pg(e){dg.delete(e)}var dg,_v=L(()=>{dg=new Map});function HT(...e){let t=Ur.acquire();for(let n=0;n<e.length;n++){let i=e[n],o=typeof i;if(o==="string")t.push(i);else if(Array.isArray(i))t.push.apply(t,i);else if(o==="object")for(let s in i)i[s]&&t.push(s)}let r=t.join(" ");return Ur.release(t),r}var Pce,AU,NU,kU,vv,mg=L(()=>{GT();b0();Jr();Ge();Ze();mv();_v();Pce=(()=>{let e=new Map,t=new ResizeObserver(n=>{fg();for(let i of n)e.get(i.target)?.(i)}),r=(n,i,o)=>(e.set(n,i),t.observe(n,o),je(()=>{t.unobserve(n),e.delete(n)}));return(n,i,o)=>{let s=null;return js([Ad(()=>typeof n=="function"?n():n,a=>{s?.remove(),a&&(s=r(a,i,o))},rg),je(()=>s?.remove())])}})(),AU=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"],NU=AU.reduce((e,t)=>(e[t]=[],e),{}),kU=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],vv=new BT({whiteList:NU,onTagAttr:(e,t,r)=>{let n=`${t}="${r}"`;if(kU.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)});function Tv(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;let t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}var QT,gg,KT,ZT,wg,Mv,eE,RU,Sv,DU,xv,Cv,tE,YT,JT,XT,OU,hg,$U,Lv,ua,Ev,FU,VU,Hl,rE=L(()=>{mg();QT="http://www.w3.org/",gg=`${QT}2000/svg`,KT=`${QT}1999/xlink`,ZT=[],wg=(e,t)=>{let r={};return Object.keys(e).forEach(n=>{r[n]=e[n]}),t&&Object.keys(t).forEach(n=>{r[n]=t[n]}),r},Mv=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),eE=e=>{if(typeof e!="string")throw new Error("Style values must be strings")},RU=(e,t,r)=>{if(t.vnodeSelector!==""){for(let n=r;n<e.length;n++)if(Mv(e[n],t))return n}return-1},Sv=(e,t,r,n)=>{let i=e[t];if(i.vnodeSelector==="")return;let o=i.properties;if(!(o&&(o.key===void 0?o.bind:o.key))){for(let s=0;s<e.length;s++)if(s!==t){let a=e[s];if(Mv(a,i))throw new Error(`${r.vnodeSelector} had a ${i.vnodeSelector} child ${n==="added"?n:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}}},DU=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},xv=[],Cv=!1,tE=e=>{(e.children||[]).forEach(tE),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},YT=()=>{Cv=!1,xv.forEach(tE),xv.length=0},JT=e=>{xv.push(e),Cv||(Cv=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(YT,{timeout:16}):setTimeout(YT,16))},XT=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r)return t.style.pointerEvents="none",void r(t,()=>{t.parentNode&&(t.parentNode.removeChild(t),JT(e))},e.properties)}t.parentNode&&(t.parentNode.removeChild(t),JT(e))},OU=(e,t,r)=>{if(!t)return;let n=r.eventHandlerInterceptor,i=Object.keys(t),o=i.length;for(let s=0;s<o;s++){let a=i[s],u=t[a];if(a==="className")throw new Error('Property "className" is not supported, use "class".');if(a==="class")Ev(e,u,!0);else if(a==="classes"){let d=Object.keys(u),p=d.length;for(let m=0;m<p;m++){let w=d[m];u[w]&&e.classList.add(w)}}else if(a==="styles"){let d=Object.keys(u),p=d.length;for(let m=0;m<p;m++){let w=d[m],_=u[w];_&&(eE(_),r.styleApplyer(e,w,_))}}else if(a!=="key"&&u!=null){let d=typeof u;d==="function"?(a.lastIndexOf("on",0)===0&&(n&&(u=n(a,u,e,t)),a==="oninput"&&function(){let p=u;u=function(m){p.apply(this,[m]),m.target["oninput-value"]=m.target.value}}()),e[a]=u):r.namespace===gg?a==="href"?e.setAttributeNS(KT,a,u):e.setAttribute(a,u):d==="string"&&a!=="value"?a==="innerHTML"?e[a]=vv.sanitize(u):Tv(e)&&a in e?e[a]=u:e.setAttribute(a,u):e[a]=u}}};$U=(e,t,r)=>{if(t)for(let n of t)ua(n,e,void 0,r)},Lv=(e,t,r)=>{$U(e,t.children,r),t.text&&(e.textContent=t.text),OU(e,t.properties,r),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children])},ua=(e,t,r,n)=>{let i,o=0,s=e.vnodeSelector,a=t.ownerDocument;if(s==="")i=e.domNode=a.createTextNode(e.text),r!==void 0?t.insertBefore(i,r):t.appendChild(i);else{for(let u=0;u<=s.length;++u){let d=s.charAt(u);if(u===s.length||d==="."||d==="#"){let p=s.charAt(o-1),m=s.slice(o,u);p==="."?i.classList.add(m):p==="#"?i.id=m:(m==="svg"&&(n=wg(n,{namespace:gg})),n.namespace!==void 0?i=e.domNode=a.createElementNS(n.namespace,m):(i=e.domNode=e.domNode||a.createElement(m),m==="input"&&e.properties&&e.properties.type!==void 0&&i.setAttribute("type",e.properties.type)),r!==void 0?t.insertBefore(i,r):i.parentNode!==t&&t.appendChild(i)),o=u+1}}Lv(i,e,n)}},Ev=(e,t,r)=>{t&&t.split(" ").forEach(n=>{n&&e.classList.toggle(n,r)})},FU=(e,t,r,n)=>{if(!r)return;let i=!1,o=Object.keys(r),s=o.length;for(let a=0;a<s;a++){let u=o[a],d=r[u],p=t[u];if(u==="class")p!==d&&(Ev(e,p,!1),Ev(e,d,!0));else if(u==="classes"){let m=e.classList,w=Object.keys(d),_=w.length;for(let S=0;S<_;S++){let T=w[S],M=!!d[T];M!==!!p[T]&&(i=!0,M?m.add(T):m.remove(T))}}else if(u==="styles"){let m=Object.keys(d),w=m.length;for(let _=0;_<w;_++){let S=m[_],T=d[S];T!==p[S]&&(i=!0,T?(eE(T),n.styleApplyer(e,S,T)):n.styleApplyer(e,S,""))}}else if(d||typeof p!="string"||(d=""),u!=="value"||Tv(e)){if(d!==p){let m=typeof d;m==="function"&&n.eventHandlerInterceptor||(n.namespace===gg?u==="href"?e.setAttributeNS(KT,u,d):e.setAttribute(u,d):m==="string"?u==="innerHTML"?e[u]=vv.sanitize(d):u==="role"&&d===""?e.removeAttribute(u):Tv(e)&&u in e?e[u]=d:e.setAttribute(u,d):e[u]!==d&&(e[u]=d),i=!0)}}else{let m=e[u];m!==d&&(e["oninput-value"]?m===e["oninput-value"]:d!==p)&&(e[u]=d,e["oninput-value"]=void 0),d!==p&&(i=!0)}}return i},VU=(e,t,r,n,i)=>{if(r===n)return!1;n=n||ZT;let o,s=(r=r||ZT).length,a=n.length,u=0,d=0,p=!1;for(;d<a;){let m=u<s?r[u]:void 0,w=n[d];if(m!==void 0&&Mv(m,w))p=hg(m,w,i)||p,u++;else{let _=RU(r,w,u+1);if(_>=0){for(o=u;o<_;o++)XT(r[o]),Sv(r,o,e,"removed");p=hg(r[_],w,i)||p,u=_+1}else ua(w,t,u<s?r[u].domNode:void 0,i),DU(w),Sv(n,d,e,"added")}d++}if(s>u)for(o=u;o<s;o++)XT(r[o]),Sv(r,o,e,"removed");return p};hg=(e,t,r)=>{let n=e.domNode,i=!1;if(e===t)return!1;let o=!1;if(t.vnodeSelector===""){if(t.text!==e.text){let s=n.ownerDocument.createTextNode(t.text);return n.parentNode.replaceChild(s,n),t.domNode=s,i=!0,i}t.domNode=n}else t.vnodeSelector.lastIndexOf("svg",0)===0&&(r=wg(r,{namespace:gg})),e.text!==t.text&&(o=!0,t.text===void 0?n.removeChild(n.firstChild):n.textContent=t.text),t.domNode=n,o=VU(t,n,e.children,t.children,r)||o,o=FU(n,e.properties,t.properties,r)||o,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[n,r,t.vnodeSelector,t.properties,t.children]);return o&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(n,t.properties,e.properties),i};Hl=(e,t)=>({getLastRender:()=>e,update:r=>{if(e.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let n=e;e=r,hg(n,r,t)},domNode:e.domNode})});var UU,Zl,Yl,Iv=L(()=>{rE();UU={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},Zl=e=>wg(UU,e),Yl={create:(e,t)=>(t=Zl(t),ua(e,document.createElement("div"),void 0,t),Hl(e,t)),append:(e,t,r)=>(r=Zl(r),ua(t,e,void 0,r),Hl(t,r)),insertBefore:(e,t,r)=>(r=Zl(r),ua(t,e.parentNode,e,r),Hl(t,r)),merge:(e,t,r)=>(r=Zl(r),t.domNode=e,Lv(e,t,r),Hl(t,r)),replace:(e,t,r)=>(r=Zl(r),ua(t,e.parentNode,e,r),e.parentNode.removeChild(e),Hl(t,r))}});var WU,nE=L(()=>{Iv();WU=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0]});var iE,oE=L(()=>{iE={handleInterceptedEvent:(e,t,r,n)=>(e.scheduleRender(),t.properties[`on${n.type}`].apply(t.properties.bind||r,[n]))}});var zU,sE,aE=L(()=>{zU={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},sE=e=>({...zU,...e})});var BU,GU,lE,cE,uE=L(()=>{Iv();nE();oE();aE();BU=(e,t)=>{let r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r},GU=(e,t)=>e.find(t),lE=(e,t,r=!1)=>{let n=e;return t.forEach((i,o)=>{let s=n?.children?GU(n.children,a=>a.domNode===i):void 0;r&&!s&&o!==t.length-1||(n=s)}),n},cE=e=>{let t,r={...iE,...e},n=sE(r),i=n.performanceLogger,o,s=!0,a=!1,u=[],d=[],p=(w,_,S)=>{let T;n.eventHandlerInterceptor=(R,I,N,V)=>function(Y){let re;i("domEvent",Y);let te=BU(Y.currentTarget,T.domNode),ie=te.some(be=>customElements.get(be?.tagName?.toLowerCase()));if(Y.eventPhase===Event.CAPTURING_PHASE||!ie)te.reverse(),re=lE(T.getLastRender(),te);else{let be=Y.composedPath(),de=be.slice(be.indexOf(Y.currentTarget),be.indexOf(T.domNode)).reverse();re=lE(T.getLastRender(),de,!0)}let ge;return re&&(ge=r.handleInterceptedEvent(t,re,this,Y)),i("domEventProcessed",Y),ge},r.postProcessProjectionOptions?.(n);let M=S();T=w(_,M,n),n.eventHandlerInterceptor=void 0,u.push(T),d.push(S),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(T,M)},m=()=>{if(o=void 0,s){s=!1,i("renderStart",void 0);for(let w=0;w<u.length;w++){let _=d[w]();i("rendered",void 0),u[w].update(_),i("patched",void 0)}i("renderDone",void 0),s=!0}};return r.modifyDoRenderImplementation&&(m=r.modifyDoRenderImplementation(m,u,d)),t={renderNow:m,scheduleRender:()=>{o||a||(o=requestAnimationFrame(m))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),a=!0},resume:()=>{a=!1,s=!0,t.scheduleRender()},append:(w,_)=>{p(Yl.append,w,_)},insertBefore:(w,_)=>{p(Yl.insertBefore,w,_)},merge:(w,_)=>{p(Yl.merge,w,_)},replace:(w,_)=>{p(Yl.replace,w,_)},detach:w=>{for(let _=0;_<d.length;_++)if(d[_]===w)return d.splice(_,1),u.splice(_,1)[0];throw new Error("renderFunction was not found")}},t}});var Pv,Av,qU,kd,Rd=L(()=>{Pv="calcite-mode-auto",Av="calcite-mode-dark",qU="calcite-mode-light",kd={autoMode:Pv,darkMode:Av,lightMode:qU,rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateIn:"calcite-animate__in",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left",calciteAnimateInScale:"calcite-animate__in-scale"}});function mE(){if(Dd&&Dd.version)return;console.info(`Using Calcite Components ${dE} [Date: ${jU}, Revision: ${HU}]`);let e=Dd||globalThis.calciteConfig||{};Object.defineProperty(e,"version",{value:dE,writable:!1}),globalThis.calciteConfig=e}var Dd,fE,pE,dE,jU,HU,yg=L(()=>{Dd=globalThis.calciteConfig,fE=Dd?.focusTrapStack||[],pE=Dd?.logLevel||"info",dE="2.11.1",jU="2024-08-02",HU="dff26357be7ecaa7cefeb1bc2522fd54177aea87"});var E,bg,ct=L(()=>{E={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},bg="app"});var IW,Nv=L(()=>{IW=G5({})});var vE={};li(vE,{scopeCss:()=>LW});var ZU,YU,JU,Od,hE,gE,Dv,XU,QU,KU,da,eW,tW,rW,_g,Ov,nW,iW,oW,sW,aW,lW,cW,uW,dW,fW,pW,mW,vg,Rv,hW,gW,wE,yE,wW,yW,bW,_W,vW,SW,xW,bE,CW,TW,EW,_E,MW,kv,LW,SE=L(()=>{ZU=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");YU=e=>{let t=[],r=0;return e=e.replace(/(\[[^\]]*\])/g,(o,s)=>{let a=`__ph-${r}__`;return t.push(s),r++,a}),{content:e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(o,s,a)=>{let u=`__ph-${r}__`;return t.push(a),r++,s+u}),placeholders:t}},JU=(e,t)=>t.replace(/__ph-(\d+)__/g,(r,n)=>e[+n]),Od="-shadowcsshost",hE="-shadowcssslotted",gE="-shadowcsscontext",Dv=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",XU=new RegExp("("+Od+Dv,"gim"),QU=new RegExp("("+gE+Dv,"gim"),KU=new RegExp("("+hE+Dv,"gim"),da=Od+"-no-combinator",eW=/-shadowcsshost-no-combinator([^\s]*)/,tW=[/::shadow/g,/::content/g],rW="([>\\s~+[.,{:][\\s\\S]*)?$",_g=/-shadowcsshost/gim,Ov=e=>new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${e}\\b)`,"gim"),nW=Ov("::slotted"),iW=Ov(":host"),oW=Ov(":host-context"),sW=/\/\*\s*[\s\S]*?\*\//g,aW=e=>e.replace(sW,""),lW=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,cW=e=>e.match(lW)||[],uW=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,dW=/([{}])/g,fW=/(^.*?[^\\])??((:+)(.*)|$)/,pW="{",mW="}",vg="%BLOCK%",Rv=(e,t)=>{let r=hW(e),n=0;return r.escapedString.replace(uW,(...i)=>{let o=i[2],s="",a=i[4],u="";a&&a.startsWith("{"+vg)&&(s=r.blocks[n++],a=a.substring(vg.length+1),u="{");let p=t({selector:o,content:s});return`${i[1]}${p.selector}${i[3]}${u}${p.content}${a}`})},hW=e=>{let t=e.split(dW),r=[],n=[],i=0,o=[];for(let a=0;a<t.length;a++){let u=t[a];u===mW&&i--,i>0?o.push(u):(o.length>0&&(n.push(o.join("")),r.push(vg),o=[]),r.push(u)),u===pW&&i++}return o.length>0&&(n.push(o.join("")),r.push(vg)),{escapedString:r.join(""),blocks:n}},gW=e=>(e=e.replace(oW,`$1${gE}`).replace(iW,`$1${Od}`).replace(nW,`$1${hE}`),e),wE=(e,t,r)=>e.replace(t,(...n)=>{if(n[2]){let i=n[2].split(","),o=[];for(let s=0;s<i.length;s++){let a=i[s].trim();if(!a)break;o.push(r(da,a,n[3]))}return o.join(",")}else return da+n[3]}),yE=(e,t,r)=>e+t.replace(Od,"")+r,wW=e=>wE(e,XU,yE),yW=(e,t,r)=>t.indexOf(Od)>-1?yE(e,t,r):e+t+r+", "+t+" "+e+r,bW=(e,t)=>{let r="."+t+" > ",n=[];return e=e.replace(KU,(...i)=>{if(i[2]){let o=i[2].trim(),s=i[3],a=r+o+s,u="";for(let m=i[4]-1;m>=0;m--){let w=i[5][m];if(w==="}"||w===",")break;u=w+u}let d=(u+a).trim(),p=`${u.trimEnd()}${a.trim()}`.trim();if(d!==p){let m=`${p}, ${d}`;n.push({orgSelector:d,updatedSelector:m})}return a}else return da+i[3]}),{selectors:n,cssText:e}},_W=e=>wE(e,QU,yW),vW=e=>tW.reduce((t,r)=>t.replace(r," "),e),SW=e=>{let t=/\[/g,r=/\]/g;return e=e.replace(t,"\\[").replace(r,"\\]"),new RegExp("^("+e+")"+rW,"m")},xW=(e,t)=>!SW(t).test(e),bE=(e,t)=>e.replace(fW,(r,n="",i,o="",s="")=>n+t+o+s),CW=(e,t,r)=>{if(_g.lastIndex=0,_g.test(e)){let n=`.${r}`;return e.replace(eW,(i,o)=>bE(o,n)).replace(_g,n+" ")}return t+" "+e},TW=(e,t,r)=>{let n=/\[is=([^\]]*)\]/g;t=t.replace(n,(S,...T)=>T[0]);let i="."+t,o=S=>{let T=S.trim();if(!T)return"";if(S.indexOf(da)>-1)T=CW(S,t,r);else{let M=S.replace(_g,"");M.length>0&&(T=bE(M,i))}return T},s=YU(e);e=s.content;let a="",u=0,d,p=/( |>|\+|~(?!=))\s*/g,w=!(e.indexOf(da)>-1);for(;(d=p.exec(e))!==null;){let S=d[1],T=e.slice(u,d.index).trim();w=w||T.indexOf(da)>-1;let M=w?o(T):T;a+=`${M} ${S} `,u=p.lastIndex}let _=e.substring(u);return w=w||_.indexOf(da)>-1,a+=w?o(_):_,JU(s.placeholders,a)},EW=(e,t,r,n)=>e.split(",").map(i=>n&&i.indexOf("."+n)>-1?i.trim():xW(i,t)?TW(i,t,r).trim():i.trim()).join(", "),_E=(e,t,r,n,i)=>Rv(e,o=>{let s=o.selector,a=o.content;return o.selector[0]!=="@"?s=EW(o.selector,t,r,n):(o.selector.startsWith("@media")||o.selector.startsWith("@supports")||o.selector.startsWith("@page")||o.selector.startsWith("@document"))&&(a=_E(o.content,t,r,n,i)),{selector:s.replace(/\s{2,}/g," ").trim(),content:a}}),MW=(e,t,r,n,i)=>{e=gW(e),e=wW(e),e=_W(e);let o=bW(e,n);return e=o.cssText,e=vW(e),t&&(e=_E(e,t,r,n,i)),e=kv(e,r),e=e.replace(/>\s*\*\s+([^{, ]+)/gm," $1 "),{cssText:e.trim(),slottedSelectors:o.selectors.map(s=>({orgSelector:kv(s.orgSelector,r),updatedSelector:kv(s.updatedSelector,r)}))}},kv=(e,t)=>e.replace(/-shadowcsshost-no-combinator/g,`.${t}`),LW=(e,t,r)=>{let n=t+"-h",i=t+"-s",o=cW(e);e=aW(e);let s=[];if(r){let u=d=>{let p=`/*!@___${s.length}___*/`,m=`/*!@${d.selector}*/`;return s.push({placeholder:p,comment:m}),d.selector=p+d.selector,d};e=Rv(e,d=>d.selector[0]!=="@"?u(d):((d.selector.startsWith("@media")||d.selector.startsWith("@supports")||d.selector.startsWith("@page")||d.selector.startsWith("@document"))&&(d.content=Rv(d.content,u)),d))}let a=MW(e,t,n,i,r);return e=[a.cssText,...o].join(`
8
+ `),r&&s.forEach(({placeholder:u,comment:d})=>{e=e.replace(u,d)}),a.slottedSelectors.forEach(u=>{let d=new RegExp(ZU(u.orgSelector),"g");e=e.replace(d,u.updatedSelector)}),e}});function YW(e){var t,r,n;return(n=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?n:void 0}function XW(e,t){if(e.isOk){let r=t(e.value);return r instanceof Promise?r.then(n=>Wv(n)):Wv(r)}if(e.isErr){let r=e.value;return HE(r)}throw"should never get here"}function DE(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var PW,AW,Cg,BE,In,NW,xE,kW,to,GE,Tg,Fd,CE,RW,Eg,DW,OW,$W,FW,VW,Uv,TE,EE,UW,ME,WW,tc,wr,Rt,nt,pa,zW,BW,GW,$v,Mg,xg,fa,Fv,qE,LE,IE,Lg,Ag,jE,qW,ma,Jv,PE,jW,HW,ZW,Xv,JW,Wv,HE,QW,KW,ez,eo,tz,X,Kl,fn,zv,rz,AE,nz,iz,oz,Bv,Gv,sz,az,lz,yr,Qv,NE,cz,qv,uz,ZE,kE,dz,RE,YE,fz,JE,Jl,jv,Ki,$d,Ig,Ng,dn,Pg,XE,Vd,QE,KE,pz,Sg,Kv,eM,Xl,kg,Qi,tM,OE,rM,Qr,nM,eS,$E,mz,hz,iM,Rg,gz,FE,wz,yz,VE,UE,WE,as,bz,Ti,Ql,oM,sM,_z,vz,aM,zE,Hv,Sz,xz,Vv,Cz,Tz,lM,cM,Ez,Mz,Lz,Iz,Pz,Az,uM,dM,Zv,fM,ec,tS,Dt,Yv,Nz,kz,Rz,Ot=L(()=>{ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();ct();Nv();PW=Object.defineProperty,AW=(e,t)=>{for(var r in t)PW(e,r,{get:t[r],enumerable:!0})},Cg={isDev:!!E.isDev,isBrowser:!0,isServer:!1,isTesting:!!E.isTesting},BE=E.hotModuleReplacement?window.__STENCIL_HOSTREFS__||(window.__STENCIL_HOSTREFS__=new WeakMap):new WeakMap,In=e=>BE.get(e),NW=(e,t)=>{let r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return E.isDev&&(r.$renderCount$=0),E.method&&E.lazyLoad&&(r.$onInstancePromise$=new Promise(n=>r.$onInstanceResolve$=n)),E.asyncLoading&&(r.$onReadyPromise$=new Promise(n=>r.$onReadyResolve$=n),e["s-p"]=[],e["s-rc"]=[]),BE.set(e,r)},xE=(e,t)=>t in e,to=(e,t)=>(kW||console.error)(e,t),GE=E.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],Tg=(...e)=>console.error(...GE,...e),Fd=(...e)=>console.warn(...GE,...e),CE=new Map,RW=(e,t,r)=>{let n=e.$tagName$.replace(/-/g,"_"),i=e.$lazyBundleId$;if(E.isDev&&typeof i!="string"){Tg(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);return}else if(!i)return;let o=E.hotModuleReplacement?!1:CE.get(i);if(o)return o[n];return IW(`./${i}.entry.js${E.hotModuleReplacement&&r?"?s-hmr="+r:""}`).then(s=>(E.hotModuleReplacement||CE.set(i,s),s[n]),to)},Eg=new Map,DW=[],OW="r",$W="o",FW="s",VW="t",Uv="s-id",TE="sty-id",EE="c-id",UW="slot-fb{display:contents}slot-fb[hidden]{display:none}",ME="http://www.w3.org/1999/xlink",WW=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],tc=typeof window<"u"?window:{},wr=tc.document||{head:{}},Rt=tc.HTMLElement||class{},nt={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,n)=>e.addEventListener(t,r,n),rel:(e,t,r,n)=>e.removeEventListener(t,r,n),ce:(e,t)=>new CustomEvent(e,t)},pa=E.shadowDom,zW=(()=>{let e=!1;try{wr.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),BW=e=>Promise.resolve(e),GW=E.constructableCSS?(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})():!1,$v=0,Mg=!1,xg=[],fa=[],Fv=[],qE=(e,t)=>r=>{e.push(r),Mg||(Mg=!0,t&&nt.$flags$&4?Ag(Lg):nt.raf(Lg))},LE=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){to(r)}e.length=0},IE=(e,t)=>{let r=0,n=0;for(;r<e.length&&(n=performance.now())<t;)try{e[r++](n)}catch(i){to(i)}r===e.length?e.length=0:r!==0&&e.splice(0,r)},Lg=()=>{if(E.asyncQueue&&$v++,LE(xg),E.asyncQueue){let e=(nt.$flags$&6)===2?performance.now()+14*Math.ceil($v*.1):1/0;IE(fa,e),IE(Fv,e),fa.length>0&&(Fv.push(...fa),fa.length=0),(Mg=xg.length+fa.length+Fv.length>0)?nt.raf(Lg):$v=0}else LE(fa),(Mg=xg.length>0)&&nt.raf(Lg)},Ag=e=>BW().then(e),jE=qE(xg,!1),qW=qE(fa,!0),ma=e=>{let t=new URL(e,nt.$resourcesUrl$);return t.origin!==tc.location.origin?t.href:t.pathname},Jv=e=>nt.$resourcesUrl$=e,PE={},jW="http://www.w3.org/2000/svg",HW="http://www.w3.org/1999/xhtml",ZW=e=>e!=null,Xv=e=>(e=typeof e,e==="object"||e==="function");JW={};AW(JW,{err:()=>HE,map:()=>XW,ok:()=>Wv,unwrap:()=>QW,unwrapErr:()=>KW});Wv=e=>({isOk:!0,isErr:!1,value:e}),HE=e=>({isOk:!1,isErr:!0,value:e});QW=e=>{if(e.isOk)return e.value;throw e.value},KW=e=>{if(e.isErr)return e.value;throw e.value},ez=0,eo=(e,t="")=>{if(E.profile&&performance.mark){let r=`st:${e}:${t}:${ez++}`;return performance.mark(r),()=>performance.measure(`[Stencil] ${e}() <${t}>`,r)}else return()=>{}},tz=(e,t)=>E.profile&&performance.mark?(performance.getEntriesByName(e,"mark").length===0&&performance.mark(e),()=>{performance.getEntriesByName(t,"measure").length===0&&performance.measure(t,e)}):()=>{},X=(e,t,...r)=>{let n=null,i=null,o=null,s=!1,a=!1,u=[],d=m=>{for(let w=0;w<m.length;w++)n=m[w],Array.isArray(n)?d(n):n!=null&&typeof n!="boolean"&&((s=typeof e!="function"&&!Xv(n))?n=String(n):E.isDev&&typeof e!="function"&&n.$flags$===void 0&&Tg(`vNode passed as children has unexpected type.
9
+ Make sure it's using the correct h() function.
10
+ Empty objects can also be the cause, look for JSX comments that became objects.`),s&&a?u[u.length-1].$text$+=n:u.push(s?Kl(null,n):n),a=s)};if(d(r),t&&(E.isDev&&e==="input"&&iz(t),E.vdomKey&&t.key&&(i=t.key),E.slotRelocation&&t.name&&(o=t.name),E.vdomClass)){let m=t.className||t.class;m&&(t.class=typeof m!="object"?m:Object.keys(m).filter(w=>m[w]).join(" "))}if(E.isDev&&u.some(zv)&&Tg(`The <Host> must be the single root component. Make sure:
11
+ - You are NOT using hostData() and <Host> in the same component.
12
+ - <Host> is used once, and it's the single root component of the render() function.`),E.vdomFunctional&&typeof e=="function")return e(t===null?{}:t,u,rz);let p=Kl(e,null);return p.$attrs$=t,u.length>0&&(p.$children$=u),E.vdomKey&&(p.$key$=i),E.slotRelocation&&(p.$name$=o),p},Kl=(e,t)=>{let r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return E.vdomAttribute&&(r.$attrs$=null),E.vdomKey&&(r.$key$=null),E.slotRelocation&&(r.$name$=null),r},fn={},zv=e=>e&&e.$tag$===fn,rz={forEach:(e,t)=>e.map(AE).forEach(t),map:(e,t)=>e.map(AE).map(t).map(nz)},AE=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),nz=e=>{if(typeof e.vtag=="function"){let r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),X(e.vtag,r,...e.vchildren||[])}let t=Kl(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},iz=e=>{let t=Object.keys(e),r=t.indexOf("value");if(r===-1)return;let n=t.indexOf("type"),i=t.indexOf("min"),o=t.indexOf("max"),s=t.indexOf("step");(r<n||r<i||r<o||r<s)&&Fd('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},oz=(e,t,r,n)=>{let i=eo("hydrateClient",t),o=e.shadowRoot,s=[],a=[],u=E.shadowDom&&o?[]:null,d=n.$vnode$=Kl(t,null);nt.$orgLocNodes$||Gv(wr.body,nt.$orgLocNodes$=new Map),e[Uv]=r,e.removeAttribute(Uv),Bv(d,s,a,u,e,e,r),s.map(p=>{let m=p.$hostId$+"."+p.$nodeId$,w=nt.$orgLocNodes$.get(m),_=p.$elm$;w&&pa&&w["s-en"]===""&&w.parentNode.insertBefore(_,w.nextSibling),o||(_["s-hn"]=t,w&&(_["s-ol"]=w,_["s-ol"]["s-nr"]=_)),nt.$orgLocNodes$.delete(m)}),E.shadowDom&&o&&u.map(p=>{p&&o.appendChild(p)}),i()},Bv=(e,t,r,n,i,o,s)=>{let a,u,d,p;if(o.nodeType===1){for(a=o.getAttribute(EE),a&&(u=a.split("."),(u[0]===s||u[0]==="0")&&(d={$flags$:0,$hostId$:u[0],$nodeId$:u[1],$depth$:u[2],$index$:u[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(d),o.removeAttribute(EE),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,e=d,n&&d.$depth$==="0"&&(n[d.$index$]=d.$elm$))),p=o.childNodes.length-1;p>=0;p--)Bv(e,t,r,n,i,o.childNodes[p],s);if(o.shadowRoot)for(p=o.shadowRoot.childNodes.length-1;p>=0;p--)Bv(e,t,r,n,i,o.shadowRoot.childNodes[p],s)}else if(o.nodeType===8)u=o.nodeValue.split("."),(u[1]===s||u[1]==="0")&&(a=u[0],d={$flags$:0,$hostId$:u[1],$nodeId$:u[2],$depth$:u[3],$index$:u[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},a===VW?(d.$elm$=o.nextSibling,d.$elm$&&d.$elm$.nodeType===3&&(d.$text$=d.$elm$.textContent,t.push(d),o.remove(),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,n&&d.$depth$==="0"&&(n[d.$index$]=d.$elm$))):d.$hostId$===s&&(a===FW?(d.$tag$="slot",u[5]?o["s-sn"]=d.$name$=u[5]:o["s-sn"]="",o["s-sr"]=!0,E.shadowDom&&n&&(d.$elm$=wr.createElement(d.$tag$),d.$name$&&d.$elm$.setAttribute("name",d.$name$),o.parentNode.insertBefore(d.$elm$,o),o.remove(),d.$depth$==="0"&&(n[d.$index$]=d.$elm$)),r.push(d),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d):a===OW&&(E.shadowDom&&n?o.remove():E.slotRelocation&&(i["s-cr"]=o,o["s-cn"]=!0))));else if(e&&e.$tag$==="style"){let m=Kl(null,o.textContent);m.$elm$=o,m.$index$="0",e.$children$=[m]}},Gv=(e,t)=>{if(e.nodeType===1){let r=0;for(;r<e.childNodes.length;r++)Gv(e.childNodes[r],t);if(e.shadowRoot)for(r=0;r<e.shadowRoot.childNodes.length;r++)Gv(e.shadowRoot.childNodes[r],t)}else if(e.nodeType===8){let r=e.nodeValue.split(".");r[0]===$W&&(t.set(r[1]+"."+r[2],e),e.nodeValue="",e["s-en"]=r[3])}},sz=e=>DW.map(t=>t(e)).find(t=>!!t),az=(e,t)=>e!=null&&!Xv(e)?E.propBoolean&&t&4?e==="false"?!1:e===""||!!e:E.propNumber&&t&2?parseFloat(e):E.propString&&t&1?String(e):e:e,lz=e=>E.lazyLoad?In(e).$hostElement$:e,yr=(e,t,r)=>{let n=lz(e);return{emit:i=>(E.isDev&&!n.isConnected&&Fd(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),Qv(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:i}))}},Qv=(e,t,r)=>{let n=nt.ce(t,r);return e.dispatchEvent(n),n},NE=new WeakMap,cz=(e,t,r)=>{let n=Eg.get(e);GW&&r?(n=n||new CSSStyleSheet,typeof n=="string"?n=t:n.replaceSync(t)):n=t,Eg.set(e,n)},qv=(e,t,r)=>{var n;let i=ZE(t,r),o=Eg.get(i);if(!E.attachStyles)return i;if(e=e.nodeType===11?e:wr,o)if(typeof o=="string"){e=e.head||e;let s=NE.get(e),a;if(s||NE.set(e,s=new Set),!s.has(i)){if(E.hydrateClientSide&&e.host&&(a=e.querySelector(`[${TE}="${i}"]`)))a.innerHTML=o;else{a=wr.createElement("style"),a.innerHTML=o;let u=(n=nt.$nonce$)!=null?n:YW(wr);u!=null&&a.setAttribute("nonce",u),(E.hydrateServerSide||E.hotModuleReplacement)&&a.setAttribute(TE,i),e.insertBefore(a,e.querySelector("link"))}t.$flags$&4&&(a.innerHTML+=UW),s&&s.add(i)}}else E.constructableCSS&&!e.adoptedStyleSheets.includes(o)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return i},uz=e=>{let t=e.$cmpMeta$,r=e.$hostElement$,n=t.$flags$,i=eo("attachStyles",t.$tagName$),o=qv(E.shadowDom&&pa&&r.shadowRoot?r.shadowRoot:r.getRootNode(),t,e.$modeName$);(E.shadowDom||E.scoped)&&E.cssAnnotations&&n&10&&(r["s-sc"]=o,r.classList.add(o+"-h"),E.scoped&&n&2&&r.classList.add(o+"-s")),i()},ZE=(e,t)=>"sc-"+(E.mode&&t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),kE=(e,t,r,n,i,o)=>{if(r!==n){let s=xE(e,t),a=t.toLowerCase();if(E.vdomClass&&t==="class"){let u=e.classList,d=RE(r),p=RE(n);u.remove(...d.filter(m=>m&&!p.includes(m))),u.add(...p.filter(m=>m&&!d.includes(m)))}else if(E.vdomStyle&&t==="style"){if(E.updatable)for(let u in r)(!n||n[u]==null)&&(!E.hydrateServerSide&&u.includes("-")?e.style.removeProperty(u):e.style[u]="");for(let u in n)(!r||n[u]!==r[u])&&(!E.hydrateServerSide&&u.includes("-")?e.style.setProperty(u,n[u]):e.style[u]=n[u])}else if(!(E.vdomKey&&t==="key")){if(E.vdomRef&&t==="ref")n&&n(e);else if(E.vdomListener&&(E.lazyLoad?!s:!e.__lookupSetter__(t))&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):xE(tc,a)?t=a.slice(2):t=a[2]+t.slice(3),r||n){let u=t.endsWith(YE);t=t.replace(fz,""),r&&nt.rel(e,t,r,u),n&&nt.ael(e,t,n,u)}}else if(E.vdomPropOrAttr){let u=Xv(n);if((s||u&&n!==null)&&!i)try{if(e.tagName.includes("-"))e[t]=n;else{let p=n??"";t==="list"?s=!1:(r==null||e[t]!=p)&&(e[t]=p)}}catch{}let d=!1;E.vdomXlink&&a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,d=!0),n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&(E.vdomXlink&&d?e.removeAttributeNS(ME,t):e.removeAttribute(t)):(!s||o&4||i)&&!u&&(n=n===!0?"":n,E.vdomXlink&&d?e.setAttributeNS(ME,t,n):e.setAttribute(t,n))}}}},dz=/\s/,RE=e=>e?e.split(dz):[],YE="Capture",fz=new RegExp(YE+"$"),JE=(e,t,r)=>{let n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||PE,o=t.$attrs$||PE;if(E.updatable)for(let s of DE(Object.keys(i)))s in o||kE(n,s,i[s],void 0,r,t.$flags$);for(let s of DE(Object.keys(o)))kE(n,s,i[s],o[s],r,t.$flags$)};$d=!1,Ig=!1,Ng=!1,dn=!1,Pg=(e,t,r,n)=>{var i;let o=t.$children$[r],s=0,a,u,d;if(E.slotRelocation&&!$d&&(Ng=!0,o.$tag$==="slot"&&(Jl&&n.classList.add(Jl+"-s"),o.$flags$|=o.$children$?2:1)),E.isDev&&o.$elm$&&Tg(`The JSX ${o.$text$!==null?`"${o.$text$}" text`:`"${o.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),E.vdomText&&o.$text$!==null)a=o.$elm$=wr.createTextNode(o.$text$);else if(E.slotRelocation&&o.$flags$&1)a=o.$elm$=E.isDebug||E.hydrateServerSide?mz(o):wr.createTextNode("");else{if(E.svg&&!dn&&(dn=o.$tag$==="svg"),a=o.$elm$=E.svg?wr.createElementNS(dn?jW:HW,!$d&&E.slotRelocation&&o.$flags$&2?"slot-fb":o.$tag$):wr.createElement(!$d&&E.slotRelocation&&o.$flags$&2?"slot-fb":o.$tag$),E.svg&&dn&&o.$tag$==="foreignObject"&&(dn=!1),E.vdomAttribute&&JE(null,o,dn),(E.shadowDom||E.scoped)&&ZW(Jl)&&a["s-si"]!==Jl&&a.classList.add(a["s-si"]=Jl),E.scoped&&eS(a,n),o.$children$)for(s=0;s<o.$children$.length;++s)u=Pg(e,o,s,a),u&&a.appendChild(u);E.svg&&(o.$tag$==="svg"?dn=!1:a.tagName==="foreignObject"&&(dn=!0))}return a["s-hn"]=Ki,E.slotRelocation&&o.$flags$&3&&(a["s-sr"]=!0,a["s-cr"]=jv,a["s-sn"]=o.$name$||"",a["s-rf"]=(i=o.$attrs$)==null?void 0:i.ref,d=e&&e.$children$&&e.$children$[r],d&&d.$tag$===o.$tag$&&e.$elm$&&(E.experimentalSlotFixes?XE(e.$elm$):Vd(e.$elm$,!1))),a},XE=e=>{nt.$flags$|=1;let t=e.closest(Ki.toLowerCase());if(t!=null){let r=Array.from(t.childNodes).find(i=>i["s-cr"]),n=Array.from(e.childNodes);for(let i of r?n.reverse():n)i["s-sh"]!=null&&(Qr(t,i,r??null),i["s-sh"]=void 0,Ng=!0)}nt.$flags$&=-2},Vd=(e,t)=>{nt.$flags$|=1;let r=Array.from(e.childNodes);if(e["s-sr"]&&E.experimentalSlotFixes){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===Ki&&r.push(n)}for(let n=r.length-1;n>=0;n--){let i=r[n];i["s-hn"]!==Ki&&i["s-ol"]&&(Qr(eM(i),i,Kv(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Ng=!0),t&&Vd(i,t)}nt.$flags$&=-2},QE=(e,t,r,n,i,o)=>{let s=E.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e,a;for(E.shadowDom&&s.shadowRoot&&s.tagName===Ki&&(s=s.shadowRoot);i<=o;++i)n[i]&&(a=Pg(null,r,i,e),a&&(n[i].$elm$=a,Qr(s,a,E.slotRelocation?Kv(t):t)))},KE=(e,t,r)=>{for(let n=t;n<=r;++n){let i=e[n];if(i){let o=i.$elm$;rM(i),o&&(E.slotRelocation&&(Ig=!0,o["s-ol"]?o["s-ol"].remove():Vd(o,!0)),o.remove())}}},pz=(e,t,r,n,i=!1)=>{let o=0,s=0,a=0,u=0,d=t.length-1,p=t[0],m=t[d],w=n.length-1,_=n[0],S=n[w],T,M;for(;o<=d&&s<=w;)if(p==null)p=t[++o];else if(m==null)m=t[--d];else if(_==null)_=n[++s];else if(S==null)S=n[--w];else if(Sg(p,_,i))Xl(p,_,i),p=t[++o],_=n[++s];else if(Sg(m,S,i))Xl(m,S,i),m=t[--d],S=n[--w];else if(Sg(p,S,i))E.slotRelocation&&(p.$tag$==="slot"||S.$tag$==="slot")&&Vd(p.$elm$.parentNode,!1),Xl(p,S,i),Qr(e,p.$elm$,m.$elm$.nextSibling),p=t[++o],S=n[--w];else if(Sg(m,_,i))E.slotRelocation&&(p.$tag$==="slot"||S.$tag$==="slot")&&Vd(m.$elm$.parentNode,!1),Xl(m,_,i),Qr(e,m.$elm$,p.$elm$),m=t[--d],_=n[++s];else{if(a=-1,E.vdomKey){for(u=o;u<=d;++u)if(t[u]&&t[u].$key$!==null&&t[u].$key$===_.$key$){a=u;break}}E.vdomKey&&a>=0?(M=t[a],M.$tag$!==_.$tag$?T=Pg(t&&t[s],r,a,e):(Xl(M,_,i),t[a]=void 0,T=M.$elm$),_=n[++s]):(T=Pg(t&&t[s],r,s,e),_=n[++s]),T&&(E.slotRelocation?Qr(eM(p.$elm$),T,Kv(p.$elm$)):Qr(p.$elm$.parentNode,T,p.$elm$))}o>d?QE(e,n[w+1]==null?null:n[w+1].$elm$,r,n,s,w):E.updatable&&s>w&&KE(t,o,d)},Sg=(e,t,r=!1)=>e.$tag$===t.$tag$?E.slotRelocation&&e.$tag$==="slot"?e.$name$===t.$name$:E.vdomKey&&!r?e.$key$===t.$key$:!0:!1,Kv=e=>e&&e["s-ol"]||e,eM=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Xl=(e,t,r=!1)=>{let n=t.$elm$=e.$elm$,i=e.$children$,o=t.$children$,s=t.$tag$,a=t.$text$,u;!E.vdomText||a===null?(E.svg&&(dn=s==="svg"?!0:s==="foreignObject"?!1:dn),(E.vdomAttribute||E.reflect)&&(E.slot&&s==="slot"&&!$d?E.experimentalSlotFixes&&e.$name$!==t.$name$&&(t.$elm$["s-sn"]=t.$name$||"",XE(t.$elm$.parentElement)):JE(e,t,dn)),E.updatable&&i!==null&&o!==null?pz(n,i,t,o,r):o!==null?(E.updatable&&E.vdomText&&e.$text$!==null&&(n.textContent=""),QE(n,null,t,o,0,o.length-1)):E.updatable&&i!==null&&KE(i,0,i.length-1),E.svg&&dn&&s==="svg"&&(dn=!1)):E.vdomText&&E.slotRelocation&&(u=n["s-cr"])?u.parentNode.textContent=a:E.vdomText&&e.$text$!==a&&(n.data=a)},kg=e=>{let t=e.childNodes;for(let r of t)if(r.nodeType===1){if(r["s-sr"]){let n=r["s-sn"];r.hidden=!1;for(let i of t)if(i!==r){if(i["s-hn"]!==r["s-hn"]||n!==""){if(i.nodeType===1&&(n===i.getAttribute("slot")||n===i["s-sn"])||i.nodeType===3&&n===i["s-sn"]){r.hidden=!0;break}}else if(i.nodeType===1||i.nodeType===3&&i.textContent.trim()!==""){r.hidden=!0;break}}}kg(r)}},Qi=[],tM=e=>{let t,r,n;for(let i of e.childNodes){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){r=t.parentNode.childNodes;let o=i["s-sn"];for(n=r.length-1;n>=0;n--)if(t=r[n],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==i["s-hn"]&&(!E.experimentalSlotFixes||!t["s-sh"]||t["s-sh"]!==i["s-hn"]))if(OE(t,o)){let s=Qi.find(a=>a.$nodeToRelocate$===t);Ig=!0,t["s-sn"]=t["s-sn"]||o,s?(s.$nodeToRelocate$["s-sh"]=i["s-hn"],s.$slotRefNode$=i):(t["s-sh"]=i["s-hn"],Qi.push({$slotRefNode$:i,$nodeToRelocate$:t})),t["s-sr"]&&Qi.map(a=>{OE(a.$nodeToRelocate$,t["s-sn"])&&(s=Qi.find(u=>u.$nodeToRelocate$===t),s&&!a.$slotRefNode$&&(a.$slotRefNode$=s.$slotRefNode$))})}else Qi.some(s=>s.$nodeToRelocate$===t)||Qi.push({$nodeToRelocate$:t})}i.nodeType===1&&tM(i)}},OE=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",rM=e=>{E.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(rM))},Qr=(e,t,r)=>{let n=e?.insertBefore(t,r);return E.scoped&&eS(t,e),n},nM=e=>{let t=[];return e&&t.push(...e["s-scs"]||[],e["s-si"],e["s-sc"],...nM(e.parentElement)),t},eS=(e,t,r=!1)=>{var n;if(e&&t&&e.nodeType===1){let i=new Set(nM(t).filter(Boolean));if(i.size&&((n=e.classList)==null||n.add(...e["s-scs"]=[...i]),e["s-ol"]||r))for(let o of Array.from(e.childNodes))eS(o,e,!0)}},$E=(e,t,r=!1)=>{var n,i,o,s,a;let u=e.$hostElement$,d=e.$cmpMeta$,p=e.$vnode$||Kl(null,null),m=zv(t)?t:X(null,null,t);if(Ki=u.tagName,E.isDev&&Array.isArray(t)&&t.some(zv))throw new Error(`The <Host> must be the single root component.
13
+ Looks like the render() function of "${Ki.toLowerCase()}" is returning an array that contains the <Host>.
14
+
15
+ The render() function should look like this instead:
16
+
17
+ render() {
18
+ // Do not return an array
19
+ return (
20
+ <Host>{content}</Host>
21
+ );
22
+ }
23
+ `);if(E.reflect&&d.$attrsToReflect$&&(m.$attrs$=m.$attrs$||{},d.$attrsToReflect$.map(([w,_])=>m.$attrs$[_]=u[w])),r&&m.$attrs$)for(let w of Object.keys(m.$attrs$))u.hasAttribute(w)&&!["key","ref","style","class"].includes(w)&&(m.$attrs$[w]=u[w]);if(m.$tag$=null,m.$flags$|=4,e.$vnode$=m,m.$elm$=p.$elm$=E.shadowDom&&u.shadowRoot||u,(E.scoped||E.shadowDom)&&(Jl=u["s-sc"]),$d=pa&&(d.$flags$&1)!==0,E.slotRelocation&&(jv=u["s-cr"],Ig=!1),Xl(p,m,r),E.slotRelocation){if(nt.$flags$|=1,Ng){tM(m.$elm$);for(let w of Qi){let _=w.$nodeToRelocate$;if(!_["s-ol"]){let S=E.isDebug||E.hydrateServerSide?hz(_):wr.createTextNode("");S["s-nr"]=_,Qr(_.parentNode,_["s-ol"]=S,_)}}for(let w of Qi){let _=w.$nodeToRelocate$,S=w.$slotRefNode$;if(S){let T=S.parentNode,M=S.nextSibling;if(!E.experimentalSlotFixes||M&&M.nodeType===1){let R=(n=_["s-ol"])==null?void 0:n.previousSibling;for(;R;){let I=(i=R["s-nr"])!=null?i:null;if(I&&I["s-sn"]===_["s-sn"]&&T===I.parentNode){for(I=I.nextSibling;I===_||I?.["s-sr"];)I=I?.nextSibling;if(!I||!I["s-nr"]){M=I;break}}R=R.previousSibling}}(!M&&T!==_.parentNode||_.nextSibling!==M)&&_!==M&&(!E.experimentalSlotFixes&&!_["s-hn"]&&_["s-ol"]&&(_["s-hn"]=_["s-ol"].parentNode.nodeName),Qr(T,_,M),_.nodeType===1&&(_.hidden=(o=_["s-ih"])!=null?o:!1)),_&&typeof S["s-rf"]=="function"&&S["s-rf"](_)}else _.nodeType===1&&(r&&(_["s-ih"]=(s=_.hidden)!=null?s:!1),_.hidden=!0)}}Ig&&kg(m.$elm$),nt.$flags$&=-2,Qi.length=0}if(E.experimentalScopedSlotChanges&&d.$flags$&2)for(let w of m.$elm$.childNodes)w["s-hn"]!==Ki&&!w["s-sh"]&&(r&&w["s-ih"]==null&&(w["s-ih"]=(a=w.hidden)!=null?a:!1),w.hidden=!0);jv=void 0},mz=e=>wr.createComment(`<slot${e.$name$?' name="'+e.$name$+'"':""}> (host=${Ki.toLowerCase()})`),hz=e=>wr.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),iM=(e,t)=>{E.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(r=>e.$onRenderResolve$=r))},Rg=(e,t)=>{if(E.taskQueue&&E.updatable&&(e.$flags$|=16),E.asyncLoading&&e.$flags$&4){e.$flags$|=512;return}iM(e,e.$ancestorComponent$);let r=()=>gz(e,t);return E.taskQueue?qW(r):r()},gz=(e,t)=>{let r=e.$hostElement$,n=eo("scheduleUpdate",e.$cmpMeta$.$tagName$),i=E.lazyLoad?e.$lazyInstance$:r;if(!i)throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t?(E.lazyLoad&&E.hostListener&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([s,a])=>Ti(i,s,a)),e.$queuedListeners$=void 0)),Ql(r,"componentWillLoad"),E.cmpWillLoad&&(o=Ti(i,"componentWillLoad"))):(Ql(r,"componentWillUpdate"),E.cmpWillUpdate&&(o=Ti(i,"componentWillUpdate"))),Ql(r,"componentWillRender"),E.cmpWillRender&&(o=FE(o,()=>Ti(i,"componentWillRender"))),n(),FE(o,()=>yz(e,i,t))},FE=(e,t)=>wz(e)?e.then(t).catch(r=>{console.error(r),t()}):t(),wz=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",yz=async(e,t,r)=>{var n;let i=e.$hostElement$,o=eo("update",e.$cmpMeta$.$tagName$),s=i["s-rc"];E.style&&r&&uz(e);let a=eo("render",e.$cmpMeta$.$tagName$);if(E.isDev&&(e.$flags$|=1024),E.hydrateServerSide?await UE(e,t,i,r):UE(e,t,i,r),E.isDev&&(e.$renderCount$=e.$renderCount$===void 0?1:e.$renderCount$+1,e.$flags$&=-1025),E.hydrateServerSide)try{sM(i),r&&(e.$cmpMeta$.$flags$&1?i["s-en"]="":e.$cmpMeta$.$flags$&2&&(i["s-en"]="c"))}catch(u){to(u,i)}if(E.asyncLoading&&s&&(s.map(u=>u()),i["s-rc"]=void 0),a(),o(),E.asyncLoading){let u=(n=i["s-p"])!=null?n:[],d=()=>WE(e);u.length===0?d():(Promise.all(u).then(d),e.$flags$|=4,u.length=0)}else WE(e)},VE=null,UE=(e,t,r,n)=>{let i=!!E.allRenderFn,o=!!E.lazyLoad,s=!!E.taskQueue,a=!!E.updatable;try{if(VE=t,t=(i||t.render)&&t.render(),a&&s&&(e.$flags$&=-17),(a||o)&&(e.$flags$|=2),E.hasRenderFn||E.reflect)if(E.vdomRender||E.reflect){if(E.hydrateServerSide)return Promise.resolve(t).then(u=>$E(e,u,n));$E(e,t,n)}else{let u=r.shadowRoot;e.$cmpMeta$.$flags$&1?u.textContent=t:r.textContent=t}}catch(u){to(u,e.$hostElement$)}return VE=null,null},WE=e=>{let t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,n=eo("postUpdate",t),i=E.lazyLoad?e.$lazyInstance$:r,o=e.$ancestorComponent$;E.cmpDidRender&&(E.isDev&&(e.$flags$|=1024),Ti(i,"componentDidRender"),E.isDev&&(e.$flags$&=-1025)),Ql(r,"componentDidRender"),e.$flags$&64?(E.cmpDidUpdate&&(E.isDev&&(e.$flags$|=1024),Ti(i,"componentDidUpdate"),E.isDev&&(e.$flags$&=-1025)),Ql(r,"componentDidUpdate"),n()):(e.$flags$|=64,E.asyncLoading&&E.cssAnnotations&&oM(r),E.cmpDidLoad&&(E.isDev&&(e.$flags$|=2048),Ti(i,"componentDidLoad"),E.isDev&&(e.$flags$&=-2049)),Ql(r,"componentDidLoad"),n(),E.asyncLoading&&(e.$onReadyResolve$(r),o||bz(t))),E.method&&E.lazyLoad&&e.$onInstanceResolve$(r),E.asyncLoading&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&Ag(()=>Rg(e,!1)),e.$flags$&=-517)},as=e=>{if(E.updatable&&(Cg.isBrowser||Cg.isTesting)){let t=In(e),r=t.$hostElement$.isConnected;return r&&(t.$flags$&18)===2&&Rg(t,!1),r}return!1},bz=e=>{E.cssAnnotations&&oM(wr.documentElement),E.asyncQueue&&(nt.$flags$|=2),Ag(()=>Qv(tc,"appload",{detail:{namespace:bg}})),E.profile&&performance.measure&&performance.measure(`[Stencil] ${bg} initial load (by ${e})`,"st:app:start")},Ti=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(n){to(n)}},Ql=(e,t)=>{E.lifecycleDOMEvents&&Qv(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:bg}})},oM=e=>{var t,r;return E.hydratedClass?e.classList.add((t=E.hydratedSelectorName)!=null?t:"hydrated"):E.hydratedAttribute?e.setAttribute((r=E.hydratedSelectorName)!=null?r:"hydrated",""):void 0},sM=e=>{let t=e.children;if(t!=null)for(let r=0,n=t.length;r<n;r++){let i=t[r];typeof i.connectedCallback=="function"&&i.connectedCallback(),sM(i)}},_z=(e,t)=>In(e).$instanceValues$.get(t),vz=(e,t,r,n)=>{let i=In(e);if(E.lazyLoad&&!i)throw new Error(`Couldn't find host element for "${n.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);let o=E.lazyLoad?i.$hostElement$:e,s=i.$instanceValues$.get(t),a=i.$flags$,u=E.lazyLoad?i.$lazyInstance$:o;r=az(r,n.$members$[t][0]);let d=Number.isNaN(s)&&Number.isNaN(r),p=r!==s&&!d;if((!E.lazyLoad||!(a&8)||s===void 0)&&p&&(i.$instanceValues$.set(t,r),E.isDev&&(i.$flags$&1024?Fd(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,`
24
+ Element`,o,`
25
+ New value`,r,`
26
+ Old value`,s):i.$flags$&2048&&Fd(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,`
27
+ Element`,o,`
28
+ New value`,r,`
29
+ Old value`,s)),!E.lazyLoad||u)){if(E.watchCallback&&n.$watchers$&&a&128){let m=n.$watchers$[t];m&&m.map(w=>{try{u[w](r,s,t)}catch(_){to(_,o)}})}if(E.updatable&&(a&18)===2){if(E.cmpShouldUpdate&&u.componentShouldUpdate&&u.componentShouldUpdate(r,s,t)===!1)return;Rg(i,!1)}}},aM=(e,t,r)=>{var n,i;let o=e.prototype;if(E.formAssociated&&t.$flags$&64&&r&1&&WW.forEach(s=>Object.defineProperty(o,s,{value(...a){let u=In(this),d=E.lazyLoad?u.$hostElement$:this,p=E.lazyLoad?u.$lazyInstance$:d;if(!p)u.$onReadyPromise$.then(m=>{let w=m[s];typeof w=="function"&&w.call(m,...a)});else{let m=p[s];typeof m=="function"&&m.call(p,...a)}}})),E.member&&t.$members$||E.watchCallback&&(t.$watchers$||e.watchers)){E.watchCallback&&e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);let s=Object.entries((n=t.$members$)!=null?n:{});if(s.map(([a,[u]])=>{(E.prop||E.state)&&(u&31||(!E.lazyLoad||r&2)&&u&32)?Object.defineProperty(o,a,{get(){return _z(this,a)},set(d){if(E.isDev){let p=In(this);!(r&1)&&(p&&p.$flags$&8)===0&&u&31&&!(u&1024)&&Fd(`@Prop() "${a}" on <${t.$tagName$}> is immutable but was modified from within the component.
30
+ More information: https://stenciljs.com/docs/properties#prop-mutability`)}vz(this,a,d,t)},configurable:!0,enumerable:!0}):E.lazyLoad&&E.method&&r&1&&u&64&&Object.defineProperty(o,a,{value(...d){var p;let m=In(this);return(p=m?.$onInstancePromise$)==null?void 0:p.then(()=>{var w;return(w=m.$lazyInstance$)==null?void 0:w[a](...d)})}})}),E.observeAttribute&&(!E.lazyLoad||r&1)){let a=new Map;o.attributeChangedCallback=function(u,d,p){nt.jmp(()=>{var m;let w=a.get(u);if(this.hasOwnProperty(w))p=this[w],delete this[w];else{if(o.hasOwnProperty(w)&&typeof this[w]=="number"&&this[w]==p)return;if(w==null){let _=In(this),S=_?.$flags$;if(S&&!(S&8)&&S&128&&p!==d){let T=E.lazyLoad?_.$hostElement$:this,M=E.lazyLoad?_.$lazyInstance$:T,R=(m=t.$watchers$)==null?void 0:m[u];R?.forEach(I=>{M[I]!=null&&M[I].call(M,p,d,u)})}return}}this[w]=p===null&&typeof this[w]=="boolean"?!1:p})},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.$watchers$)!=null?i:{}),...s.filter(([u,d])=>d[0]&15).map(([u,d])=>{var p;let m=d[1]||u;return a.set(m,u),E.reflect&&d[0]&512&&((p=t.$attrsToReflect$)==null||p.push([u,m])),m})]))}}return e},zE=async(e,t,r,n)=>{let i;if(!(t.$flags$&32)){t.$flags$|=32;let a=r.$lazyBundleId$;if((E.lazyLoad||E.hydrateClientSide)&&a){let u=RW(r,t,n);if(u&&"then"in u){let p=tz(`st:load:${r.$tagName$}:${t.$modeName$}`,`[Stencil] Load module for <${r.$tagName$}>`);i=await u,p()}else i=u;if(!i)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);E.member&&!i.isProxied&&(E.watchCallback&&(r.$watchers$=i.watchers),aM(i,r,2),i.isProxied=!0);let d=eo("createInstance",r.$tagName$);E.member&&(t.$flags$|=8);try{new i(t)}catch(p){to(p)}E.member&&(t.$flags$&=-9),E.watchCallback&&(t.$flags$|=128),d(),Hv(t.$lazyInstance$)}else{i=e.constructor;let u=e.localName;customElements.whenDefined(u).then(()=>t.$flags$|=128)}if(E.style&&i&&i.style){let u;typeof i.style=="string"?u=i.style:E.mode&&typeof i.style!="string"&&(t.$modeName$=sz(e),t.$modeName$&&(u=i.style[t.$modeName$]),E.hydrateServerSide&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));let d=ZE(r,t.$modeName$);if(!Eg.has(d)){let p=eo("registerStyles",r.$tagName$);!E.hydrateServerSide&&E.shadowDom&&E.shadowDomShim&&r.$flags$&8&&(u=await Promise.resolve().then(()=>(SE(),vE)).then(m=>m.scopeCss(u,d,!1))),cz(d,u,!!(r.$flags$&1)),p()}}}let o=t.$ancestorComponent$,s=()=>Rg(t,!0);E.asyncLoading&&o&&o["s-rc"]?o["s-rc"].push(s):s()},Hv=e=>{E.lazyLoad&&E.connectedCallback&&Ti(e,"connectedCallback")},Sz=e=>{if(!(nt.$flags$&1)){let t=In(e),r=t.$cmpMeta$,n=eo("connectedCallback",r.$tagName$);if(E.hostListenerTargetParent&&Yv(e,t,r.$listeners$,!0),t.$flags$&1)Yv(e,t,r.$listeners$,!1),t?.$lazyInstance$?Hv(t.$lazyInstance$):t?.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Hv(t.$lazyInstance$));else{t.$flags$|=1;let i;if(E.hydrateClientSide&&(i=e.getAttribute(Uv),i)){if(E.shadowDom&&pa&&r.$flags$&1){let o=E.mode?qv(e.shadowRoot,r,e.getAttribute("s-mode")):qv(e.shadowRoot,r);e.classList.remove(o+"-h",o+"-s")}oz(e,r.$tagName$,i,t)}if(E.slotRelocation&&!i&&(E.hydrateServerSide||(E.slot||E.shadowDom)&&r.$flags$&12)&&xz(e),E.asyncLoading){let o=e;for(;o=o.parentNode||o.host;)if(E.hydrateClientSide&&o.nodeType===1&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){iM(t,t.$ancestorComponent$=o);break}}E.prop&&!E.hydrateServerSide&&r.$members$&&Object.entries(r.$members$).map(([o,[s]])=>{if(s&31&&e.hasOwnProperty(o)){let a=e[o];delete e[o],e[o]=a}}),E.initializeNextTick?Ag(()=>zE(e,t,r)):zE(e,t,r)}n()}},xz=e=>{let t=e["s-cr"]=wr.createComment(E.isDebug?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,Qr(e,t,e.firstChild)},Vv=e=>{E.lazyLoad&&E.disconnectedCallback&&Ti(e,"disconnectedCallback"),E.cmpDidUnload&&Ti(e,"componentDidUnload")},Cz=async e=>{if(!(nt.$flags$&1)){let t=In(e);E.hostListener&&t.$rmListeners$&&(t.$rmListeners$.map(r=>r()),t.$rmListeners$=void 0),E.lazyLoad?t?.$lazyInstance$?Vv(t.$lazyInstance$):t?.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Vv(t.$lazyInstance$)):Vv(e)}},Tz=(e,t)=>{lM(e),cM(e),Lz(e),Mz(e),Az(e),Iz(e),Pz(e),uM(e),dM(e,t),Ez(e)},lM=e=>{let t=e.cloneNode;e.cloneNode=function(r){let n=this,i=E.shadowDom?n.shadowRoot&&pa:!1,o=t.call(n,i?r:!1);if(E.slot&&!i&&r){let s=0,a,u,d=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"];for(;s<n.childNodes.length;s++)a=n.childNodes[s]["s-nr"],u=d.every(p=>!n.childNodes[s][p]),a&&(E.appendChildSlotFix&&o.__appendChild?o.__appendChild(a.cloneNode(!0)):o.appendChild(a.cloneNode(!0))),u&&o.appendChild(n.childNodes[s].cloneNode(!0))}return o}},cM=e=>{e.__appendChild=e.appendChild,e.appendChild=function(t){let r=t["s-sn"]=fM(t),n=ec(this.childNodes,r,this.tagName);if(n){let i=tS(n,r),o=i[i.length-1],s=Qr(o.parentNode,t,o.nextSibling);return kg(this),s}return this.__appendChild(t)}},Ez=e=>{e.__removeChild=e.removeChild,e.removeChild=function(t){if(t&&typeof t["s-sn"]<"u"){let r=ec(this.childNodes,t["s-sn"],this.tagName);if(r){let i=tS(r,t["s-sn"]).find(o=>o===t);if(i){i.remove(),kg(this);return}}}return this.__removeChild(t)}},Mz=e=>{let t=e.prepend;e.prepend=function(...r){r.forEach(n=>{typeof n=="string"&&(n=this.ownerDocument.createTextNode(n));let i=n["s-sn"]=fM(n),o=ec(this.childNodes,i,this.tagName);if(o){let s=document.createTextNode("");s["s-nr"]=n,o["s-cr"].parentNode.__appendChild(s),n["s-ol"]=s;let u=tS(o,i)[0];return Qr(u.parentNode,n,u.nextSibling)}return n.nodeType===1&&n.getAttribute("slot")&&(n.hidden=!0),t.call(this,n)})}},Lz=e=>{e.append=function(...t){t.forEach(r=>{typeof r=="string"&&(r=this.ownerDocument.createTextNode(r)),this.appendChild(r)})}},Iz=e=>{let t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(r,n){if(r!=="afterbegin"&&r!=="beforeend")return t.call(this,r,n);let i=this.ownerDocument.createElement("_"),o;if(i.innerHTML=n,r==="afterbegin")for(;o=i.firstChild;)this.prepend(o);else if(r==="beforeend")for(;o=i.firstChild;)this.append(o)}},Pz=e=>{e.insertAdjacentText=function(t,r){this.insertAdjacentHTML(t,r)}},Az=e=>{let t=e.insertAdjacentElement;e.insertAdjacentElement=function(r,n){return r!=="afterbegin"&&r!=="beforeend"?t.call(this,r,n):r==="afterbegin"?(this.prepend(n),n):(r==="beforeend"&&this.append(n),n)}},uM=e=>{let t=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(e,"__textContent",t),E.experimentalScopedSlotChanges?Object.defineProperty(e,"textContent",{get(){return" "+Zv(this.childNodes).map(i=>{var o,s;let a=[],u=i.nextSibling;for(;u&&u["s-sn"]===i["s-sn"];)(u.nodeType===3||u.nodeType===1)&&a.push((s=(o=u.textContent)==null?void 0:o.trim())!=null?s:""),u=u.nextSibling;return a.filter(d=>d!=="").join(" ")}).filter(i=>i!=="").join(" ")+" "},set(r){Zv(this.childNodes).forEach(i=>{let o=i.nextSibling;for(;o&&o["s-sn"]===i["s-sn"];){let s=o;o=o.nextSibling,s.remove()}if(i["s-sn"]===""){let s=this.ownerDocument.createTextNode(r);s["s-sn"]="",Qr(i.parentElement,s,i.nextSibling)}else i.remove()})}}):Object.defineProperty(e,"textContent",{get(){var r;let n=ec(this.childNodes,"",this.tagName);return((r=n?.nextSibling)==null?void 0:r.nodeType)===3?n.nextSibling.textContent:n?n.textContent:this.__textContent},set(r){var n;let i=ec(this.childNodes,"",this.tagName);if(((n=i?.nextSibling)==null?void 0:n.nodeType)===3)i.nextSibling.textContent=r;else if(i)i.textContent=r;else{this.__textContent=r;let o=this["s-cr"];o&&Qr(this,o,this.firstChild)}}})},dM=(e,t)=>{class r extends Array{item(i){return this[i]}}if(t.$flags$&8){let n=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get(){return this.childNodes.map(i=>i.nodeType===1)}}),Object.defineProperty(e,"childElementCount",{get(){return e.children.length}}),Object.defineProperty(e,"childNodes",{get(){let i=n.call(this);if(!(nt.$flags$&1)&&In(this).$flags$&2){let o=new r;for(let s=0;s<i.length;s++){let a=i[s]["s-nr"];a&&o.push(a)}return o}return r.from(i)}})}},Zv=e=>{let t=[];for(let r of Array.from(e))r["s-sr"]&&t.push(r),t.push(...Zv(r.childNodes));return t},fM=e=>e["s-sn"]||e.nodeType===1&&e.getAttribute("slot")||"",ec=(e,t,r)=>{let n=0,i;for(;n<e.length;n++)if(i=e[n],i["s-sr"]&&i["s-sn"]===t&&i["s-hn"]===r||(i=ec(i.childNodes,t,r),i))return i;return null},tS=(e,t)=>{let r=[e];for(;(e=e.nextSibling)&&e["s-sn"]===t;)r.push(e);return r},Dt=(e,t)=>{let r={$flags$:t[0],$tagName$:t[1]};E.member&&(r.$members$=t[2]),E.hostListener&&(r.$listeners$=t[3]),E.watchCallback&&(r.$watchers$=e.$watchers$),E.reflect&&(r.$attrsToReflect$=[]),E.shadowDom&&!pa&&r.$flags$&1&&(r.$flags$|=8),E.experimentalSlotFixes?E.scoped&&r.$flags$&2&&Tz(e.prototype,r):(E.slotChildNodesFix&&dM(e.prototype,r),E.cloneNodeFix&&lM(e.prototype),E.appendChildSlotFix&&cM(e.prototype),E.scopedSlotTextContentFix&&r.$flags$&2&&uM(e.prototype));let n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){NW(this,r)},connectedCallback(){let o=In(this);Yv(this,o,r.$listeners$,!1),Sz(this),E.connectedCallback&&n&&n.call(this)},disconnectedCallback(){Cz(this),E.disconnectedCallback&&i&&i.call(this)},__attachShadow(){if(pa){if(!this.shadowRoot)E.shadowDelegatesFocus?this.attachShadow({mode:"open",delegatesFocus:!!(r.$flags$&16)}):this.attachShadow({mode:"open"});else if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${r.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else this.shadowRoot=this}}),e.is=r.$tagName$,aM(e,r,3)},Yv=(e,t,r,n)=>{E.hostListener&&r&&(E.hostListenerTargetParent&&(n?r=r.filter(([i])=>i&32):r=r.filter(([i])=>!(i&32))),r.map(([i,o,s])=>{let a=E.hostListenerTarget?kz(e,i):e,u=Nz(t,s),d=Rz(i);nt.ael(a,o,u,d),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>nt.rel(a,o,u,d))}))},Nz=(e,t)=>r=>{var n;try{E.lazyLoad?e.$flags$&256?(n=e.$lazyInstance$)==null||n[t](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r]):e.$hostElement$[t](r)}catch(i){to(i)}},kz=(e,t)=>E.hostListenerTargetDocument&&t&4?wr:E.hostListenerTargetWindow&&t&8?tc:E.hostListenerTargetBody&&t&16?wr.body:E.hostListenerTargetParent&&t&32&&e.parentElement?e.parentElement:e,Rz=e=>zW?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0});function Dz(){return navigator.userAgentData}function pM(){if(!pn())return"";let e=Dz();return e?.brands?e.brands.map(({brand:t,version:r})=>`${t}/${r}`).join(" "):navigator.userAgent}var pn,ls=L(()=>{Ot();pn=()=>Cg.isBrowser&&typeof navigator<"u"&&typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document});function mM(){let{classList:e}=document.body,t=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>e.contains(Av)||e.contains(Pv)&&t?"dark":"light",n=s=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:s}})),i=s=>{o!==s&&n(s),o=s},o=r();n(o),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s=>i(s.matches?"dark":"light")),new MutationObserver(()=>i(r())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}function Oz(){pn()&&(document.readyState==="interactive"?mM():document.addEventListener("DOMContentLoaded",()=>mM(),{once:!0})),mE()}var $z,hM=L(()=>{Rd();yg();ls();Ot();$z=Oz;$z()});function wM(){try{ma(".")}catch{Jv(Xo(ql(gM)))}}function yM(e){let t=[];for(let r of Object.keys(e))customElements.get(`calcite-${r}`)||t.push(e[r]?.());return t.length>0?Promise.all(t):null}var gM,rS=L(()=>{hM();K0();Ge();Ko();gM="components/assets"});var Dg,Og,nS=L(()=>{Dg=Symbol("widget"),Og=Symbol("widget-test-data")});function iS(e,t){let r=t.children;if(r?.length)for(let i=0;i<r.length;++i)r[i]=iS(e,r[i]);else r=Fz;let n=t.vnodeSelector;if(rc(n)){let i=t.properties||Vz,o=i.key||n,s={key:o,afterCreate:Uz,afterUpdate:Wz,afterRemoved:bM,parentWidget:e,widgetConstructor:n,widgetProperties:{...i,key:o,children:r}};return{vnodeSelector:n.vnodeSelector,properties:s,children:void 0,text:void 0,domNode:null}}return t}function Uz(e,t,r,{parentWidget:n,widgetConstructor:i,widgetProperties:o}){let s=new i(o);s.container=e,$g.set(e,s),s.afterCreate?.(s,e),n.addHandles(je(()=>bM(e))),queueMicrotask(()=>{s[Og].projector.renderNow()})}function Wz(e,t,r,{widgetProperties:n}){let i=$g.get(e);i&&(i.set(n),i.afterUpdate?.(i,e))}function bM(e){let t=$g.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),$g.delete(e))}function rc(e){return typeof e=="function"&&e[Dg]}var Fz,Vz,$g,oS=L(()=>{Jr();nS();Fz=[],Vz={},$g=new WeakMap});function vM(e){_M.add(e),e.finally(()=>_M.delete(e))}var _M,SM=L(()=>{_M=new Set});function CM(e,t){let r=Object.prototype.hasOwnProperty;for(let n in t)r.call(t,n)&&r.call(e,n)&&(e[n]!=null&&t[n]!=null&&typeof e[n]=="object"&&typeof t[n]=="object"?CM(e[n],t[n]):e[n]=t[n]);return e}var xM,zz,Bz,Gz,sS,$t,TM,EM=L(()=>{ir();eg();__();uT();H0();md();Ge();tr();Ze();Xs();fT();bi();mv();CT();or();hv();Zt();Js();O_();uE();rS();oS();nS();SM();_v();mg();Yi();Pd();zz="esri.widgets.Widget",Bz=0;Gz=cE({postProcessProjectionOptions(e){let t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(n,i,o,s)=>{let a=t?.(n,i,o,s),u=r.test(n);if(!((n=n.replace(r,"")).toLowerCase()in o)||u){let d=n[2].toLowerCase()+n.slice(3),p=_=>a?.call(o,_);o.addEventListener(d,p,u);let m=()=>o.removeEventListener(d,p,u),w=s.afterRemoved;s.afterRemoved=_=>{w?.(_),m()}}return a}},handleInterceptedEvent(e,t,r,n){let{eventPhase:i,type:o}=n,s=i===Event.CAPTURING_PHASE,a=`on${o}${s?"capture":""}`,u=t.properties;(u&&a in u||(a=`on${o[0].toUpperCase()}${o.slice(1)}${s?"Capture":""}`,u&&a in u))&&(fg(),e.scheduleRender(),u[a].call(u.bind||r,n))}}),sS=!1,$t=class extends lv(na.EventedAccessor){constructor(e,t){super(e,t),this._attached=!1,this._projector=Gz,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=rC(async()=>{if(this._messageBundleProps?.length){let a=await Promise.allSettled(this._messageBundleProps.map(async({bundlePath:u,propertyName:d})=>{if(this.destroyed)return;let p=await iv(u);this.uiStrings&&Object.keys(this.uiStrings)&&(p=CM(Ne(p),this.uiStrings)),this[d]=p}));if(this.destroyed)return;for(let u of a)u.status==="rejected"&&Me.getLogger(this).error("widget-intl:locale-error",this.declaredClass,u.reason)}await this.loadLocale()}),wM();let r="esri-widget-uid-"+xT(),n=this.render.bind(this);this._trackingTarget=new Ks(()=>{this.autoRenderingEnabled&&this.scheduleRender()});let i=()=>({vnodeSelector:"div",properties:{key:`${r}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0}),o=()=>{var p;if(!this._readyForTrueRender||this.destroyed)return null;let a=n()??i(),u=a.properties??(a.properties={});if(u.key??(u.key=r),rc(a.vnodeSelector)){if(!this.visible)return i()}else this.visible?u.styles||(u.styles={}):(u.class="",u.styles={display:"none"}),(p=u.styles).display??(p.display="");let d=0;return a.children?.forEach(m=>{var w;rc(m.vnodeSelector)||(m.properties??(m.properties={}),(w=m.properties).key??(w.key=`${this.id}--${d++}`))}),iS(this,a)};this.render=()=>{if(sS)return o();let a=qT(this)??null;if(a)return a;this._trackingTarget.clear(),sS=!0;try{a=Xn(this._trackingTarget,o)}catch(u){throw Me.getLogger(this).error(u),u}finally{sS=!1}return a&&jT(this,a),a};let s=this.beforeFirstRender();s?this._resourcesFetch=s.then(()=>{this._readyForTrueRender=!0,this._postInitialize()}):(this._resourcesFetch=Promise.resolve().then(()=>{this._postInitialize()}),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),vM(this._resourcesFetch)}normalizeCtorArgs(e,t){let r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){let e=this.loadDependencies();return this._messageBundleProps?.length||e?Promise.all([e,this._loadLocale()]).then(()=>{}).catch(I_):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(ad(this._trackingTarget),ad(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,pg(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return cT(e)}get domNode(){return this.container}set domNode(e){this.container=e}get icon(){return null}set icon(e){this._overrideIfSome("icon",e)}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+Bz++}set id(e){e&&this._set("id",e)}get label(){return this.declaredClass.split(".").pop()}set label(e){this._overrideIfSome("label",e)}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(e){this._set("visible",e)}get[(xM=Dg,Og)](){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(pg(this),this._projector.scheduleRender())}own(e){d0(Me.getLogger(this),"`Widget.own()` is deprecated in favor of 'Widget.addHandles()'",{replacement:"Widget.addHandles()",version:"4.28"}),this.addHandles(e)}classes(...e){return HT.apply(this,e)}renderNow(){pg(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(Ad(()=>this.viewModel,(t,r)=>{r&&this.removeHandles("delegated-events"),t&&pd(t)&&this.addHandles(this._delegatedEventNames.map(n=>jo(t,n,i=>{this.emit(n,i)})),"delegated-events")},rg)),this.postInitialize();let e=async()=>{await this._loadLocale().catch(I_),this.scheduleRender()};this.addHandles([Zb(e),Ad(()=>this.uiStrings,e),vT(()=>this.container,t=>{this.destroyed||this._attach(t)},{initial:!0,once:!0})])}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0)}_detach(e){this._attached&&(this._projector.detach(this.render),this._attached=!1),e?.parentNode?.removeChild(e)}};$t[xM]=!0,$t.vnodeSelector="div",O([H()],$t.prototype,"_readyForTrueRender",void 0),O([H({value:null})],$t.prototype,"container",null),O([ng("container")],$t.prototype,"castContainer",null),O([H()],$t.prototype,"icon",null),O([H()],$t.prototype,"id",null),O([H()],$t.prototype,"label",null),O([H()],$t.prototype,"renderable",null),O([H()],$t.prototype,"uiStrings",void 0),O([H()],$t.prototype,"viewModel",void 0),O([H({value:!0})],$t.prototype,"visible",null),O([H()],$t.prototype,"key",void 0),O([H()],$t.prototype,"children",void 0),O([H()],$t.prototype,"afterCreate",void 0),O([H()],$t.prototype,"afterUpdate",void 0),O([H()],$t.prototype,"afterRemoved",void 0),$t=O([Pe(zz)],$t);TM=$t});function aS(e){return(t,r)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var MM=L(()=>{});function zr(e,t,...r){return typeof e!="function"||rc(e)?jz(e,t,...r):e(t,...r)}var qz,LM,jz,IM=L(()=>{oS();qz=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},LM=function(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r];Array.isArray(i)?LM(i,t):i!=null&&i!==!1&&(i.hasOwnProperty("vnodeSelector")||(i=qz(i)),t.push(i))}},jz=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(r.length===1&&typeof r[0]=="string")return{vnodeSelector:e,properties:t||void 0,children:void 0,text:r[0],domNode:null};var i=[];return LM(r,i),{vnodeSelector:e,properties:t||void 0,children:i,text:void 0,domNode:null}}});function Zz(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-mode-name").replaceAll(/\s|'|"/g,"")}function Yz(){return Zz().startsWith("dark")}function PM(){return`${Hz}${Yz()?"dark":"light"}`}var Hz,AM=L(()=>{Hz="calcite-mode-"});function Jz(e){return e.map(t=>{let r="";for(let n=0;n<t;n++)r+=((1+Math.random())*65536|0).toString(16).substring(1);return r}).join("-")}var Fg,lS=L(()=>{Fg=()=>Jz([2,1,1,1,3])});function fS(e){return e?e.id=e.id||`${e.tagName.toLowerCase()}-${Fg()}`:""}function nc(e){let t="dir",r=`[${t}]`,n=Ei(e,r);return n?n.getAttribute(t):"ltr"}function WM(e){return e.getRootNode()}function zM(e){return e.host||null}function Gg(e,{selector:t,id:r}){function n(i){if(!i)return null;i.assignedSlot&&(i=i.assignedSlot);let o=WM(i),s=r?"getElementById"in o?o.getElementById(r):null:t?o.querySelector(t):null,a=zM(o);return s||(a?n(a):null)}return n(e)}function Ei(e,t){function r(n){return n?n.closest(t)||r(zM(WM(n))):null}return r(e)}function fB(e,t){return BM(e,t)}function BM(e,t){if(!e)return;let r=t(e);if(r!==void 0)return r;let{parentNode:n}=e;return BM(n instanceof ShadowRoot?n.host:n,t)}function GM(e,t){return!!fB(t,r=>r===e?!0:void 0)}function pB(e){return typeof e?.setFocus=="function"}async function qM(e){if(e)return pB(e)?e.setFocus():e.focus()}function mB(e){if(e)return uS(e,dS)[0]??e}function jM(e){mB(e)?.focus()}function ro(e,t,r){t&&!Array.isArray(t)&&typeof t!="string"&&(r=t,t=null);let n=t?Array.isArray(t)?t.map(i=>`[slot="${i}"]`).join(","):`[slot="${t}"]`:Ud;return r?.all?hB(e,n,r):gB(e,n,r)}function HM(e,t){return e?Array.from(e.children||[]).filter(r=>r?.matches(t)):[]}function hB(e,t,r){let n=t===Ud?HM(e,Ud):Array.from(e.querySelectorAll(t));n=r&&r.direct===!1?n:n.filter(o=>o.parentElement===e),n=r?.matches?n.filter(o=>o?.matches(r.matches)):n;let i=r?.selector;return i?n.map(o=>Array.from(o.querySelectorAll(i))).reduce((o,s)=>[...o,...s],[]).filter(o=>!!o):n}function gB(e,t,r){let n=t===Ud?HM(e,Ud)[0]||null:e.querySelector(t);n=r&&r.direct===!1||n?.parentElement===e?n:null,n=r?.matches?n?.matches(r.matches)?n:null:n;let i=r?.selector;return i?n?.querySelector(i):n}function wB(e,t){return e.filter(r=>r.matches(t))}function no(e,t,r){if(typeof t=="string"&&t!=="")return t;if(t==="")return e[r]}function qg(e){return(!!e).toString()}function ZM(e){return jg(e)||bB(e)}function yB(e){return _B(e).filter(t=>t.nodeType===Node.TEXT_NODE).map(t=>t.textContent).join("").trim()}function bB(e){return!!yB(e)}function _B(e){return e.currentTarget.assignedNodes({flatten:!0})}function jg(e){return!!vB(e).length}function vB(e,t){return SB(e.target,t)}function SB(e,t){let r=e.assignedElements({flatten:!0});return t?wB(r,t):r}function YM(e){return!!(e.isPrimary&&e.button===0)}function JM(e,t){if(e.parentNode!==t.parentNode)return!1;let r=Array.from(e.parentNode.children);return r.indexOf(e)<r.indexOf(t)}async function XM(e,t,r,n){return xB(e,t,"transition",r,n)}async function xB(e,t,r,n,i){let o=window.getComputedStyle(e),s=r==="transition"?o.transitionDuration:o.animationDuration,a=r==="transition"?o.transitionProperty:o.animationName,u=s.split(","),p=a.split(",").indexOf(t),m=u[p]??u[0];function w(){n?.(),i?.()}if(m==="0s"){w();return}let _=r==="transition"?"transitionstart":"animationstart",S=r==="transition"?"transitionend":"animationend",T=r==="transition"?"transitioncancel":"animationcancel";return new Promise(M=>{let R=window.setTimeout(()=>{e.removeEventListener(_,I),e.removeEventListener(S,N),e.removeEventListener(T,N),w(),M()},parseFloat(m)*1e3);e.addEventListener(_,I),e.addEventListener(S,N),e.addEventListener(T,N);function I(V){V.target===e&&kM(V)===t&&(window.clearTimeout(R),e.removeEventListener(_,I),n?.())}function N(V){V.target===e&&kM(V)===t&&(e.removeEventListener(S,N),e.removeEventListener(T,N),i?.(),M())}})}function CB(e){return"propertyName"in e}function kM(e){return CB(e)?e.propertyName:e.animationName}var RM,Vg,DM,ha,Ug,Wg,Xz,OM,$M,FM,cs,Qz,Kz,VM,eB,tB,rB,nB,iB,oB,sB,NM,aB,lB,zg,cS,cB,uB,uS,UM,ga,dB,Bg,dS,Ud,Kr=L(()=>{lS();Rd();RM=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Vg=RM.join(","),DM=typeof Element>"u",ha=DM?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ug=!DM&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Wg=function e(t,r){var n;r===void 0&&(r=!0);var i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=i===""||i==="true",s=o||r&&t&&e(t.parentNode);return s},Xz=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},OM=function(t,r,n){if(Wg(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Vg));return r&&ha.call(t,Vg)&&i.unshift(t),i=i.filter(n),i},$M=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!Wg(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),u=a.length?a:s.children,d=e(u,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var p=ha.call(s,Vg);p&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var m=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),w=!Wg(m,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(m&&w){var _=e(m===!0?s.children:m.children,!0,n);n.flatten?i.push.apply(i,_):i.push({scopeParent:s,candidates:_})}else o.unshift.apply(o,s.children)}}return i},FM=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},cs=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Xz(t))&&!FM(t)?0:t.tabIndex},Qz=function(t,r){var n=cs(t);return n<0&&r&&!FM(t)?0:n},Kz=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},VM=function(t){return t.tagName==="INPUT"},eB=function(t){return VM(t)&&t.type==="hidden"},tB=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},rB=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},nB=function(t){if(!t.name)return!0;var r=t.form||Ug(t),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(t.name));else try{i=n(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=rB(i,t.form);return!o||o===t},iB=function(t){return VM(t)&&t.type==="radio"},oB=function(t){return iB(t)&&!nB(t)},sB=function(t){var r,n=t&&Ug(t),i=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==t){var s,a,u;for(o=!!((s=i)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(i)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!o&&i;){var d,p,m;n=Ug(i),i=(d=n)===null||d===void 0?void 0:d.host,o=!!((p=i)!==null&&p!==void 0&&(m=p.ownerDocument)!==null&&m!==void 0&&m.contains(i))}}return o},NM=function(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},aB=function(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=ha.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(ha.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var a=t;t;){var u=t.parentElement,d=Ug(t);if(u&&!u.shadowRoot&&i(u)===!0)return NM(t);t.assignedSlot?t=t.assignedSlot:!u&&d!==t.ownerDocument?t=d.host:t=u}t=a}if(sB(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return NM(t);return!1},lB=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return ha.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},zg=function(t,r){return!(r.disabled||Wg(r)||eB(r)||aB(r,t)||tB(r)||lB(r))},cS=function(t,r){return!(oB(r)||cs(r)<0||!zg(t,r))},cB=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},uB=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,a=s?i.scopeParent:i,u=Qz(a,s),d=s?e(i.candidates):a;u===0?s?r.push.apply(r,d):r.push(a):n.push({documentOrder:o,tabIndex:u,item:i,isScope:s,content:d})}),n.sort(Kz).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},uS=function(t,r){r=r||{};var n;return r.getShadowRoot?n=$M([t],r.includeContainer,{filter:cS.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:cB}):n=OM(t,r.includeContainer,cS.bind(null,r)),uB(n)},UM=function(t,r){r=r||{};var n;return r.getShadowRoot?n=$M([t],r.includeContainer,{filter:zg.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=OM(t,r.includeContainer,zg.bind(null,r)),n},ga=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return ha.call(t,Vg)===!1?!1:cS(r,t)},dB=RM.concat("iframe").join(","),Bg=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return ha.call(t,dB)===!1?!1:zg(r,t)},dS={getShadowRoot:!0};Ud=":not([slot])"});function EB(e){return`${e.split("-").map((n,i)=>i===0?n:`${n[0].toUpperCase()}${n.slice(1)}`).join("")}${TB.includes(e)?"Input":"Change"}`}function hS(e){return"checked"in e}function MB(e,t){if(Ei(t.parentElement,"[form]"))return!0;let n="calciteInternalFormComponentRegister",i=!1;return e.addEventListener(n,o=>{i=o.composedPath().some(s=>gS.has(s)),o.stopPropagation()},{once:!0}),t.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0})),i}function LB(e,{status:t,message:r,icon:n}){"status"in e&&(e.status=t),"validationIcon"in e&&typeof e.validationIcon!="string"&&(e.validationIcon=n),"validationMessage"in e&&!e.validationMessage&&(e.validationMessage=r)}function tL(e){return e.nodeName==="CALCITE-RADIO-BUTTON"?Ei(e,"calcite-radio-button-group"):e}function QM(e){let t=e?.target,r=t?.validationMessage,n=tL(t?.parentElement);if(!n)return;let i=n?.nodeName?.toLowerCase(),o=i?.split("-");if(o.length<2||o[0]!=="calcite")return;e?.preventDefault(),"validity"in n&&(n.validity=t?.validity),n.dispatchEvent(IB),LB(n,{message:r,icon:!0,status:"invalid"});let s=EB(i);n.addEventListener(s,()=>{"status"in n&&(n.status="idle"),"validationIcon"in n&&!n.validationIcon&&(n.validationIcon=!1),"validationMessage"in n&&n.validationMessage===r&&(n.validationMessage=""),"validity"in n&&(n.validity=t?.validity)},{once:!0})}function Hg(e){let{formEl:t}=e;return t?(t.addEventListener("invalid",QM,!0),t.requestSubmit(),t.removeEventListener("invalid",QM,!0),requestAnimationFrame(()=>{let r=t.querySelectorAll("[status=invalid]");for(let n of r)if(n?.validationMessage){n?.setFocus();break}}),!0):!1}function rL(e){e.formEl?.reset()}function nL(e){let{el:t,value:r}=e,n=wS(e);if(!n||MB(n,t))return;e.formEl=n,e.defaultValue=r,hS(e)&&(e.defaultChecked=e.checked);let i=(e.onFormReset||PB).bind(e);n.addEventListener("reset",i),mS.set(e.el,i),gS.add(t)}function wS(e){let{el:t,form:r}=e;return r?Gg(t,{id:r}):Ei(t,"form")}function PB(){if("status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),hS(this)){this.checked=this.defaultChecked;return}this.value=this.defaultValue}function iL(e){let{el:t,formEl:r}=e;if(!r)return;let n=mS.get(t);r.removeEventListener("reset",n),mS.delete(t),e.formEl=null,gS.delete(t)}function AB(e){let{el:t,formEl:r,name:n,value:i}=e,{ownerDocument:o}=t,s=t.querySelectorAll(`input[slot="${pS}"]`);if(!r||!n){s.forEach(m=>{KM(m),m.remove()});return}let a=Array.isArray(i)?i:[i],u=[],d=new Set;s.forEach(m=>{let w=a.find(_=>_==m.value);w!=null?(d.add(w),eL(e,m,w)):u.push(m)});let p;a.forEach(m=>{if(d.has(m))return;let w=u.pop();w||(w=o.createElement("input"),w.slot=pS),p||(p=o.createDocumentFragment()),p.append(w),w.addEventListener("input",oL),eL(e,w,m)}),p&&t.append(p),u.forEach(m=>{KM(m),m.remove()})}function eL(e,t,r){let{defaultValue:n,disabled:i,form:o,name:s,required:a}=e;t.defaultValue=n,t.disabled=i,t.name=s,t.required=a,t.tabIndex=-1,o?t.setAttribute("form",o):t.removeAttribute("form"),hS(e)?(t.checked=e.checked,t.defaultChecked=e.defaultChecked,t.value=e.checked?r||"on":""):t.value=r||"",e.syncHiddenFormInput?.(t);let u=tL(e.el);if(u&&"validity"in u)for(let d in{...t?.validity})u.validity[d]=t.validity[d]}var TB,pS,mS,gS,IB,Zg,oL,KM,sL,yS=L(()=>{Ot();Kr();TB=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"];pS="hidden-form-input";mS=new WeakMap,gS=new WeakSet;IB=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});Zg="calciteInternalHiddenInputInput",oL=e=>{e.target.dispatchEvent(new CustomEvent(Zg,{bubbles:!0}))},KM=e=>e.removeEventListener("input",oL);sL=({component:e})=>(AB(e),X("slot",{name:pS}))});function NB(){let{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function lL(e){let t=e.target;if(ya&&!wa.get(t))return;let{disabled:r}=t;r&&e.preventDefault()}function uL(e){let t=e.target;ya&&!wa.get(t)||t.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}function Jg(e){if(e.disabled){e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),dL(e);return}fL(e),e.el.removeAttribute("aria-disabled")}function dL(e){if(e.el.click=NB,ya){let t=kB(e),r=wa.get(e.el);r!==t&&(bS(r),wa.set(e.el,t)),aL(wa.get(e.el));return}aL(e.el)}function aL(e){e&&(e.addEventListener("pointerdown",lL,Yg),cL.forEach(t=>e.addEventListener(t,uL,Yg)))}function kB(e){return e.el.parentElement||e.el}function RB(e){return"disabled"in e}function fL(e){if(delete e.el.click,ya){let t=wa.get(e.el),r=!1;if(t?.children){for(let n of t.children)if(RB(n)&&n.disabled&&n!==e.el){r=!0;break}}r||bS(t),wa.delete(e.el);return}bS(e.el)}function bS(e){e&&(e.removeEventListener("pointerdown",lL,Yg),cL.forEach(t=>e.removeEventListener(t,uL,Yg)))}function Xg(e){!e.disabled||!ya||dL(e)}function Qg(e){ya&&fL(e)}function Kg({disabled:e},t){return X("div",{class:DB.container,inert:e},...t)}var ya,wa,cL,Yg,DB,_S=L(()=>{Ot();ls();ya=/firefox/i.test(pM()),wa=ya?new WeakMap:null;cL=["mousedown","mouseup","click"];Yg={capture:!0};DB={container:"interaction-container"}});function en(e){return e==="l"?"m":"s"}async function ew(e){await(OB(e)?e.componentOnReady():new Promise(t=>requestAnimationFrame(()=>t())))}function OB(e){return typeof e.componentOnReady=="function"}var ic=L(()=>{});function FB(e,t){let r,n="custom-element-ancestor-check",i=s=>{s.stopImmediatePropagation();let a=s.composedPath();r=a.slice(a.indexOf(t),a.indexOf(e))};return e.addEventListener(n,i,{once:!0}),t.dispatchEvent(new CustomEvent(n,{composed:!0,bubbles:!0})),e.removeEventListener(n,i),r.filter(s=>s!==t&&s!==e).filter(s=>s.tagName?.includes("-")).length>0}function sc(e){if(!e)return;let t=$B(e.el);if(Wd.has(t)&&t===e.labelEl||!t&&ba.has(e))return;let r=UB.bind(e);if(t){e.labelEl=t;let n=oc.get(t)||[];n.push(e),oc.set(t,n.sort(gL)),Wd.has(e.labelEl)||(Wd.set(e.labelEl,mL),e.labelEl.addEventListener(hL,mL)),ba.delete(e),document.removeEventListener(Gd,Bd.get(e)),tw.set(e,r),document.addEventListener(zd,r)}else ba.has(e)||(r(),document.removeEventListener(zd,tw.get(e)))}function rw(e){if(!e||(ba.delete(e),document.removeEventListener(Gd,Bd.get(e)),document.removeEventListener(zd,tw.get(e)),Bd.delete(e),tw.delete(e),!e.labelEl))return;let t=oc.get(e.labelEl);t.length===1&&(e.labelEl.removeEventListener(hL,Wd.get(e.labelEl)),Wd.delete(e.labelEl)),oc.set(e.labelEl,t.filter(r=>r!==e).sort(gL)),e.labelEl=null}function gL(e,t){return JM(e.el,t.el)?-1:1}function qd(e){return e.label||e.labelEl?.textContent?.trim()||""}function mL(e){let t=e.detail.sourceEvent.target,r=oc.get(this),n=r.find(s=>s.el===t);if(r.includes(n))return;let o=r[0];o.disabled||o.onLabelClick(e)}function VB(){ba.has(this)&&sc(this)}function UB(){ba.add(this);let e=Bd.get(this)||VB.bind(this);Bd.set(this,e),document.addEventListener(Gd,e)}async function wL(e){if(await ew(e),oc.has(e))return;let r=e.ownerDocument?.getElementById(e.for);r&&requestAnimationFrame(()=>{for(let n of ba)if(n.el===r){sc(n);break}})}var hL,Gd,zd,pL,oc,Wd,Bd,tw,ba,$B,nw=L(()=>{Kr();ic();hL="calciteInternalLabelClick",Gd="calciteInternalLabelConnected",zd="calciteInternalLabelDisconnected",pL="calcite-label",oc=new WeakMap,Wd=new WeakMap,Bd=new WeakMap,tw=new WeakMap,ba=new Set,$B=e=>{let{id:t}=e,r=t&&Gg(e,{selector:`${pL}[for="${t}"]`});if(r)return r;let n=Ei(e,pL);return!n||FB(n,e)?null:n}});function us(e){bL.set(e,new Promise(t=>yL.set(e,t)))}function ds(e){yL.get(e)()}function WB(e){return bL.get(e)}async function fs(e){if(await WB(e),!!pn())return as(e),new Promise(t=>requestAnimationFrame(()=>t()))}var yL,bL,jd=L(()=>{Ot();ls();yL=new WeakMap,bL=new WeakMap});var Hd,vS=L(()=>{Hd=["0","1","2","3","4","5","6","7","8","9"]});function Ir(e,t,r){if(!pn())return;let n=zB(e);return new n(t,r)}function zB(e){class t extends window.MutationObserver{constructor(n){super(n),this.observedEntry=[],this.callback=n}observe(n,i){return this.observedEntry.push({target:n,options:i}),super.observe(n,i)}unobserve(n){let i=this.observedEntry.filter(o=>o.target!==n);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),i.forEach(o=>this.observe(o.target,o.options))}}return function(){return e==="intersection"?window.IntersectionObserver:e==="mutation"?t:window.ResizeObserver}()}var ps=L(()=>{ls();});function ti(e){return!(!e||isNaN(Number(e)))}function _L(e){return!e||!XB(e)?"":iw(e,t=>{let r=!1,n=t.split("").filter((i,o)=>i.match(/\./g)&&!r?(r=!0,!0):i.match(/-/g)&&o===0?!0:Hd.includes(i)).join("");return ti(n)?new Pr(n).toString():""})}function YB(e){let t=e.split(".")[1],r=new Pr(e).toString(),[n,i]=r.split(".");return t&&i!==t?`${n}.${t}`:r}function iw(e,t){if(!e)return e;let r=e.toLowerCase().indexOf("e")+1;return r?e.replace(/[eE]*$/g,"").substring(0,r).concat(e.slice(r).replace(/[eE]/g,"")).split(/[eE]/).map((n,i)=>t(i===1?n.replace(/\./g,""):n)).join("e").replace(/^e/,"1e"):t(e)}function JB(e){let t=e.split(/[eE]/);if(t.length===1)return e;let r=+e;if(Number.isSafeInteger(r))return`${r}`;let n=e.charAt(0)==="-",i=+t[1],o=t[0].split("."),s=(n?o[0].substring(1):o[0])||"",a=o[1]||"",u=(m,w)=>{let _=Math.abs(w)-m.length,S=_>0?`${"0".repeat(_)}${m}`:m;return`${S.slice(0,w)}.${S.slice(w)}`},d=(m,w)=>{let _=w>m.length?`${m}${"0".repeat(w-m.length)}`:m;return`${_.slice(0,w)}.${_.slice(w)}`},p=i>0?`${s}${d(a,i)}`:`${u(s,i)}${a}`;return`${n?"-":""}${p.charAt(0)==="."?"0":""}${p.replace(BB,"").replace(vL,"")}`}function XB(e){return Hd.some(t=>e.includes(t))}function xL(e,t,r){let n=t.split(".")[1];if(n){let i=n.match(ZB)[0];if(i&&r.delocalize(e).length!==t.length&&n.indexOf("e")===-1){let o=r.decimal;return e=e.includes(o)?e:`${e}${o}`,e.padEnd(e.length+i.length,r.localize("0"))}}return e}function CS(e,t="cldr"){let r=t==="cldr"?KB:QB;return e?r.includes(e)?e:(e=e.toLowerCase(),e==="nb"?"no":t==="t9n"&&e==="pt"?"pt-BR":(e.includes("-")&&(e=e.replace(/(\w+)-(\w+)/,(n,i,o)=>`${i}-${o.toUpperCase()}`),r.includes(e)||(e=e.split("-")[0])),e==="zh"?"zh-CN":r.includes(e)?e:(console.warn(`Translations for the "${e}" locale are not available and will fall back to the default, English (en).`),ms))):ms}function Mi(e){rG(e),Zd.size===0&&EL?.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"],subtree:!0}),Zd.add(e)}function rG(e){e.effectiveLocale=nG(e)}function Li(e){Zd.delete(e),Zd.size===0&&EL.disconnect()}function nG(e){return e.el.lang||Ei(e.el,"[lang]")?.lang||document.documentElement.lang||ms}var BB,GB,Pr,vL,qB,jB,HB,ZB,SL,ms,QB,KB,eG,CL,SS,TL,tG,Zd,EL,xS,ri,_a=L(()=>{Kr();vS();ps();BB=new RegExp("\\.(0+)?$"),GB=new RegExp("0+$"),Pr=class e{constructor(t){if(t instanceof e)return t;let[r,n]=JB(t).split(".").concat("");this.value=BigInt(r+n.padEnd(e.DECIMALS,"0").slice(0,e.DECIMALS))+BigInt(e.ROUNDED&&n[e.DECIMALS]>="5"),this.isNegative=t.charAt(0)==="-"}getIntegersAndDecimals(){let t=this.value.toString().replace("-","").padStart(e.DECIMALS+1,"0"),r=t.slice(0,-e.DECIMALS),n=t.slice(-e.DECIMALS).replace(GB,"");return{integers:r,decimals:n}}toString(){let{integers:t,decimals:r}=this.getIntegersAndDecimals();return`${this.isNegative?"-":""}${t}${r.length?"."+r:""}`}formatToParts(t){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=t.numberFormatter.formatToParts(BigInt(r));return this.isNegative&&i.unshift({type:"minusSign",value:t.minusSign}),n.length&&(i.push({type:"decimal",value:t.decimal}),n.split("").forEach(o=>i.push({type:"fraction",value:o}))),i}format(t){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=`${this.isNegative?t.minusSign:""}${t.numberFormatter.format(BigInt(r))}`,o=n.length?`${t.decimal}${n.split("").map(s=>t.numberFormatter.format(Number(s))).join("")}`:"";return`${i}${o}`}add(t){return e.fromBigInt(this.value+new e(t).value)}subtract(t){return e.fromBigInt(this.value-new e(t).value)}multiply(t){return e._divRound(this.value*new e(t).value,e.SHIFT)}divide(t){return e._divRound(this.value*e.SHIFT,new e(t).value)}};Pr.DECIMALS=100;Pr.ROUNDED=!0;Pr.SHIFT=BigInt("1"+"0".repeat(Pr.DECIMALS));Pr._divRound=(e,t)=>Pr.fromBigInt(e/t+(Pr.ROUNDED?e*BigInt(2)/t%BigInt(2):BigInt(0)));Pr.fromBigInt=e=>Object.assign(Object.create(Pr.prototype),{value:e,isNegative:e<BigInt(0)});vL=/^([-0])0+(?=\d)/,qB=/(?!^\.)\.$/,jB=/(?!^-)-/g,HB=/^-\b0\b\.?0*$/,ZB=/0*$/,SL=e=>iw(e,t=>{let r=t.replace(jB,"").replace(qB,"").replace(vL,"$1");return ti(r)?HB.test(r)?r:YB(r):t});ms="en",QB=["ar","bg","bs","ca","cs","da","de","el",ms,"es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","no","nl","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],KB=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",ms,"en-AU","en-CA","en-GB","es","es-MX","et","fi","fr","fr-CH","he","hi","hr","hu","id","it","it-CH","ja","ko","lt","lv","mk","no","nl","pl","pt","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],eG=["arab","arabext","latn"],CL=e=>eG.includes(e),SS=new Intl.NumberFormat().resolvedOptions().numberingSystem,TL=SS==="arab"||!CL(SS)?"latn":SS,tG=e=>CL(e)?e:TL;Zd=new Set;EL=Ir("mutation",e=>{e.forEach(t=>{let r=t.target;Zd.forEach(n=>{if(!GM(r,n.el))return;let o=Ei(n.el,"[lang]");if(!o){n.effectiveLocale=ms;return}let s=o.lang;n.effectiveLocale=o.hasAttribute("lang")&&s===""?ms:s})})});xS=class{constructor(){this.delocalize=t=>this._numberFormatOptions?iw(t,r=>r.replace(new RegExp(`[${this._minusSign}]`,"g"),"-").replace(new RegExp(`[${this._group}]`,"g"),"").replace(new RegExp(`[${this._decimal}]`,"g"),".").replace(new RegExp(`[${this._digits.join("")}]`,"g"),this._getDigitIndex)):t,this.localize=t=>this._numberFormatOptions?iw(t,r=>ti(r.trim())?new Pr(r.trim()).format(this).replace(new RegExp(`[${this._actualGroup}]`,"g"),this._group):r):t}get group(){return this._group}get decimal(){return this._decimal}get minusSign(){return this._minusSign}get digits(){return this._digits}get numberFormatter(){return this._numberFormatter}get numberFormatOptions(){return this._numberFormatOptions}set numberFormatOptions(t){if(t.locale=CS(t?.locale),t.numberingSystem=tG(t?.numberingSystem),!this._numberFormatOptions&&t.locale===ms&&t.numberingSystem===TL&&Object.keys(t).length===2||JSON.stringify(this._numberFormatOptions)===JSON.stringify(t))return;this._numberFormatOptions=t,this._numberFormatter=new Intl.NumberFormat(this._numberFormatOptions.locale,this._numberFormatOptions),this._digits=[...new Intl.NumberFormat(this._numberFormatOptions.locale,{useGrouping:!1,numberingSystem:this._numberFormatOptions.numberingSystem}).format(9876543210)].reverse();let r=new Map(this._digits.map((i,o)=>[i,o])),n=new Intl.NumberFormat(this._numberFormatOptions.locale,{numberingSystem:this._numberFormatOptions.numberingSystem}).formatToParts(-123456789e-1);this._actualGroup=n.find(i=>i.type==="group").value,this._group=this._actualGroup.trim().length===0||this._actualGroup==" "?"\xA0":this._actualGroup,this._decimal=n.find(i=>i.type==="decimal").value,this._minusSign=n.find(i=>i.type==="minusSign").value,this._getDigitIndex=i=>r.get(i)}},ri=new xS});async function iG(e,t){let r=`${t}_${e}`;return ow[r]||(ow[r]=fetch(ma(`./assets/${t}/t9n/messages_${e}.json`)).then(n=>(n.ok||ML(),n.json())).catch(()=>ML())),ow[r]}function ML(){throw new Error("could not fetch component message bundle")}function TS(e){e.messages={...e.defaultMessages,...e.messageOverrides}}function oG(){}async function Ii(e){e.defaultMessages=await LL(e,e.effectiveLocale),TS(e)}async function LL(e,t){if(!pn())return{};let{el:r}=e,i=r.tagName.toLowerCase().replace("calcite-","");return iG(CS(t,"t9n"),i)}async function Pi(e,t){e.defaultMessages=await LL(e,t),TS(e)}function Ai(e){e.onMessagesChange=sG}function Ni(e){e.onMessagesChange=oG}function sG(){TS(this)}var ow,ac=L(()=>{Ot();_a();ls();ow={}});function AL({icon:e,scale:t}){let r=PL[t],n=uG(e),i=n.charAt(n.length-1)==="F";return`${i?n.substring(0,n.length-1):n}${r}${i?"F":""}`}async function lG(e){let t=AL(e),r=NL(t);if(r)return r;ES[t]||(ES[t]=fetch(ma(`./assets/icon/${t}.json`)).then(i=>i.json()).catch(()=>(console.error(`"${t}" is not a valid calcite-ui-icon name`),"")));let n=await ES[t];return IL[t]=n,n}function cG(e){return NL(AL(e))}function NL(e){return IL[e]}function uG(e){let t=!isNaN(Number(e.charAt(0))),r=e.split("-");if(r.length>0){let i=/[a-z]/i;e=r.map((o,s)=>o.replace(i,function(u,d){return s===0&&d===0?u:u.toUpperCase()})).join("")}return t?`i${e}`:e}function ni(){if(typeof customElements>"u")return;["calcite-icon"].forEach(t=>{switch(t){case"calcite-icon":customElements.get(t)||customElements.define(t,pG);break}})}var aG,IL,ES,PL,dG,fG,pG,lc=L(()=>{Ot();Kr();ps();ls();aG={icon:"icon",flipRtl:"flip-rtl"},IL={},ES={},PL={s:16,m:24,l:32};dG=":host{display:inline-flex;color:var(--calcite-ui-icon-color)}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}",fG=dG,pG=Dt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.icon=null,this.flipRtl=!1,this.scale="m",this.textLabel=void 0,this.pathData=void 0,this.visible=!1}connectedCallback(){this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}disconnectedCallback(){this.intersectionObserver?.disconnect(),this.intersectionObserver=null}render(){let{el:t,flipRtl:r,pathData:n,scale:i,textLabel:o}=this,s=nc(t),a=PL[i],u=!!o,d=[].concat(n||"");return X(fn,{key:"cc43afdebd39df596be0a30677a9be5ba0db4fe0","aria-hidden":qg(!u),"aria-label":u?o:null,role:u?"img":null},X("svg",{key:"a40833fc10f8bb7f287eb0c75f7437cb18880603","aria-hidden":"true",class:{[aG.flipRtl]:s==="rtl"&&r,svg:!0},fill:"currentColor",height:"100%",viewBox:`0 0 ${a} ${a}`,width:"100%",xmlns:"http://www.w3.org/2000/svg"},d.map(p=>typeof p=="string"?X("path",{d:p}):X("path",{d:p.d,opacity:"opacity"in p?p.opacity:1}))))}async loadIconPathData(){let{icon:t,scale:r,visible:n}=this;if(!pn()||!t||!n)return;let i={icon:t,scale:r},o=cG(i)||await lG(i);t===this.icon&&(this.pathData=o)}waitUntilVisible(t){if(this.intersectionObserver=Ir("intersection",r=>{r.forEach(n=>{n.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())})},{rootMargin:"50px"}),!this.intersectionObserver){t();return}this.intersectionObserver.observe(this.el)}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{icon:["loadIconPathData"],scale:["loadIconPathData"]}}static get style(){return fG}},[1,"calcite-icon",{icon:[513],flipRtl:[516,"flip-rtl"],scale:[513],textLabel:[1,"text-label"],pathData:[32],visible:[32]},void 0,{icon:["loadIconPathData"],scale:["loadIconPathData"]}]);ni()});function va(){if(typeof customElements>"u")return;["calcite-loader"].forEach(t=>{switch(t){case"calcite-loader":customElements.get(t)||customElements.define(t,gG);break}})}var cc,mG,hG,gG,sw=L(()=>{Ot();lS();cc={loader:"loader",loaderParts:"loader__svgs",loaderPart:"loader__svg",loaderPartId:e=>`${cc.loaderPart}--${e}`,loaderText:"loader__text",loaderPercentage:"loader__percentage"},mG='@charset "UTF-8";@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:host{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-color-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem);will-change:contents}:host([scale=s]){--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}:host([scale=m]){--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}:host([scale=l]){--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}:host([no-padding]){padding-block:0px}:host{display:flex}.loader__text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-color-text-1);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}.loader__percentage{position:absolute;display:block;text-align:center;color:var(--calcite-color-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}.loader__svgs{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);animation-iteration-count:infinite;animation-timing-function:linear;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 6.66 / var(--calcite-internal-duration-factor));animation-name:loader-clockwise}.loader__svg{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);animation-iteration-count:infinite;animation-timing-function:linear}.loader__svg--1{animation-name:loader-offset-1}.loader__svg--2{animation-name:loader-offset-2}.loader__svg--3{animation-name:loader-offset-3}:host([type=determinate]){animation:none;stroke:var(--calcite-color-border-3)}:host([type=determinate]) .loader__svgs{animation:none}:host([type=determinate]) .loader__svg--3{animation:none;stroke:var(--calcite-color-brand);stroke-dasharray:150.79632;transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([inline]){position:relative;margin:0px;animation:none;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size-inline);min-block-size:var(--calcite-loader-size-inline);inline-size:var(--calcite-loader-size-inline);margin-inline-end:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2)}:host([inline]) .loader__svgs{inset-block-start:0px;margin:0px;inset-inline-start:0;inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([inline]) .loader__svg{inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([complete]){opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms}:host([complete]) .loader__svgs{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms}:host([complete]) .loader__percentage{color:var(--calcite-color-brand);transform:scale(1.05, 1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear}.loader__svg--1{stroke-dasharray:27.9252444444 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 4.8 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444 251.3272;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-83.7757333333}100%{stroke-dasharray:27.9252444444 251.3272;stroke-dashoffset:-279.2524444444}}.loader__svg--2{stroke-dasharray:55.8504888889 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 6.4 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889 223.4019555556;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-97.7383555556}100%{stroke-dasharray:55.8504888889 223.4019555556;stroke-dashoffset:-279.2524444444}}.loader__svg--3{stroke-dasharray:13.9626222222 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 7.734 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222 265.2898222222;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-76.7944222222}100%{stroke-dasharray:13.9626222222 265.2898222222;stroke-dashoffset:-279.2524444444}}@keyframes loader-color-shift{0%{stroke:var(--calcite-color-brand)}33%{stroke:var(--calcite-color-brand-press)}66%{stroke:var(--calcite-color-brand-hover)}100%{stroke:var(--calcite-color-brand)}}@keyframes loader-clockwise{100%{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}',hG=mG,gG=Dt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inline=!1,this.label=void 0,this.scale="m",this.type=void 0,this.value=0,this.text=""}render(){let{el:t,inline:r,label:n,scale:i,text:o,type:s,value:a}=this,u=t.id||Fg(),d=.45,p=r?this.getInlineSize(i):this.getSize(i),m=p*d,w=`0 0 ${p} ${p}`,_=s==="determinate",S=2*m*Math.PI,T=a/100*S,M=S-T,R=Math.floor(a),I={"aria-valuenow":R,"aria-valuemin":0,"aria-valuemax":100,complete:R===100},N={r:m,cx:p/2,cy:p/2},V={"stroke-dasharray":`${T} ${M}`};return X(fn,{key:"53c4523552d540e02cb38d599226d48d00ffffa0","aria-label":n,id:u,role:"progressbar",..._?I:{}},X("div",{key:"e9a31da95d1769f13150426eefa8fd46f03afb53",class:cc.loaderParts},[1,2,3].map(Y=>X("svg",{"aria-hidden":"true",class:{[cc.loaderPart]:!0,[cc.loaderPartId(Y)]:!0},key:Y,viewBox:w,...Y===3&&_?{style:V}:{}},X("circle",{...N})))),o&&X("div",{key:"2942cb58f2b0466c94b925f05211972c5ede9244",class:cc.loaderText},o),_&&X("div",{key:"2f73c0a6b1fb26d125b2fee69f2caf09400666e3",class:cc.loaderPercentage},a))}getSize(t){return{s:32,m:56,l:80}[t]}getInlineSize(t){return{s:12,m:16,l:20}[t]}get el(){return this}static get style(){return hG}},[1,"calcite-loader",{inline:[516],label:[1],scale:[513],type:[513],value:[2],text:[1]}]);va()});function LS(){if(typeof customElements>"u")return;["calcite-button","calcite-icon","calcite-loader"].forEach(t=>{switch(t){case"calcite-button":customElements.get(t)||customElements.define(t,MS);break;case"calcite-icon":customElements.get(t)||ni();break;case"calcite-loader":customElements.get(t)||va();break}})}var mn,wG,yG,MS,kL=L(()=>{Ot();yS();_S();nw();jd();_a();ps();ic();ac();Kr();ls();lc();sw();mn={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out",iconStartEmpty:"icon-start-empty",iconEndEmpty:"icon-end-empty",buttonPadding:"button-padding",buttonPaddingShrunk:"button-padding--shrunk"},wG=`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;inline-size:auto;vertical-align:middle}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{outline-color:transparent}:host button:focus,:host a:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
31
+ 2px *
32
+ calc(
33
+ 1 -
34
+ 2 * clamp(
35
+ 0,
36
+ var(--calcite-offset-invert-focus),
37
+ 1
38
+ )
39
+ )
40
+ )}:host button,:host a{--calcite-button-content-margin-internal:0.5rem;--calcite-button-padding-x-internal:7px;--calcite-button-padding-y-internal:3px;padding-block:var(--calcite-button-padding-y-internal);padding-inline:var(--calcite-button-padding-x-internal);position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;align-items:center;justify-content:center;border-radius:0px;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}:host button:hover,:host a:hover{text-decoration-line:none}:host button span,:host a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content{margin-inline:var(--calcite-button-content-margin-internal)}.icon-start-empty .content{margin-inline-start:unset}.icon-end-empty .content{margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-content-margin-internal:0.75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-button-content-margin-internal:1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:var(--calcite-button-content-margin-internal)}.icon{position:relative;margin:0px;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(0.5)}100%{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}100%{inline-size:0;opacity:0;transform:scale(0.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0px;transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, transform var(--calcite-internal-animation-timing-slow) ease-in-out}.calcite-button--loader calcite-loader.loading-in{animation-name:loader-in;animation-duration:var(--calcite-internal-animation-timing-slow)}.calcite-button--loader calcite-loader.loading-out{animation-name:loader-out;animation-duration:var(--calcite-internal-animation-timing-slow)}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-button-content-margin-internal)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance]) button,:host([appearance]) a{border-width:1px;border-style:solid;border-color:transparent}:host([kind=brand]) button,:host([kind=brand]) a{background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}:host([kind=brand]) button:hover,:host([kind=brand]) button:focus,:host([kind=brand]) a:hover,:host([kind=brand]) a:focus{background-color:var(--calcite-color-brand-hover)}:host([kind=brand]) button:active,:host([kind=brand]) a:active{background-color:var(--calcite-color-brand-press)}:host([kind=brand]) button calcite-loader,:host([kind=brand]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([kind=danger]) button,:host([kind=danger]) a{background-color:var(--calcite-color-status-danger);color:var(--calcite-color-text-inverse)}:host([kind=danger]) button:hover,:host([kind=danger]) button:focus,:host([kind=danger]) a:hover,:host([kind=danger]) a:focus{background-color:var(--calcite-color-status-danger-hover)}:host([kind=danger]) button:active,:host([kind=danger]) a:active{background-color:var(--calcite-color-status-danger-press)}:host([kind=danger]) button calcite-loader,:host([kind=danger]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([kind=neutral]) button,:host([kind=neutral]) a{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}:host([kind=neutral]) button:hover,:host([kind=neutral]) button:focus,:host([kind=neutral]) a:hover,:host([kind=neutral]) a:focus{background-color:var(--calcite-color-foreground-2)}:host([kind=neutral]) button:active,:host([kind=neutral]) a:active{background-color:var(--calcite-color-foreground-1)}:host([kind=neutral]) button calcite-loader,:host([kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([kind=inverse]) button,:host([kind=inverse]) a{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse)}:host([kind=inverse]) button:hover,:host([kind=inverse]) button:focus,:host([kind=inverse]) a:hover,:host([kind=inverse]) a:focus{background-color:var(--calcite-color-inverse-hover)}:host([kind=inverse]) button:active,:host([kind=inverse]) a:active{background-color:var(--calcite-color-inverse-press)}:host([kind=inverse]) button calcite-loader,:host([kind=inverse]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{border-width:1px;border-style:solid;background-color:var(--calcite-color-foreground-1);box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{border-color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{border-color:var(--calcite-color-brand-hover);color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:focus,:host([appearance=outline-fill][kind=brand]) a:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-brand);box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{border-color:var(--calcite-color-brand-press);color:var(--calcite-color-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{border-color:var(--calcite-color-status-danger);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{border-color:var(--calcite-color-status-danger-hover);color:var(--calcite-color-status-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:focus,:host([appearance=outline-fill][kind=danger]) a:focus{border-color:var(--calcite-color-status-danger);color:var(--calcite-color-status-danger);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{border-color:var(--calcite-color-status-danger-press);color:var(--calcite-color-status-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);border-color:var(--calcite-color-border-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:focus,:host([appearance=outline-fill][kind=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button calcite-loader,:host([appearance=outline-fill][kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);border-color:var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{border-color:var(--calcite-color-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:focus,:host([appearance=outline-fill][kind=inverse]) a:focus{border-color:var(--calcite-color-inverse);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{border-color:var(--calcite-color-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse-press)}:host([appearance=outline-fill][kind=inverse]) button calcite-loader,:host([appearance=outline-fill][kind=inverse]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-width:1px;border-style:solid;background-color:transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{border-color:var(--calcite-color-brand);background-color:transparent;color:var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{border-color:var(--calcite-color-brand-hover);color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:focus,:host([appearance=outline][kind=brand]) a:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-brand);box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{border-color:var(--calcite-color-brand-press);color:var(--calcite-color-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{border-color:var(--calcite-color-status-danger);background-color:transparent;color:var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{border-color:var(--calcite-color-status-danger-hover);color:var(--calcite-color-status-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:focus,:host([appearance=outline][kind=danger]) a:focus{border-color:var(--calcite-color-status-danger);color:var(--calcite-color-status-danger);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{border-color:var(--calcite-color-status-danger-press);color:var(--calcite-color-status-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{background-color:transparent;color:var(--calcite-color-text-1);border-color:var(--calcite-color-border-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:focus,:host([appearance=outline][kind=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button calcite-loader,:host([appearance=outline][kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{background-color:transparent;color:var(--calcite-color-text-1);border-color:var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{border-color:var(--calcite-color-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:focus,:host([appearance=outline][kind=inverse]) a:focus{border-color:var(--calcite-color-inverse);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{border-color:var(--calcite-color-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse-press)}:host([appearance=outline][kind=inverse]) button calcite-loader,:host([appearance=outline][kind=inverse]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline-fill][split-child=primary]) button,:host([appearance=outline][split-child=primary]) button{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline-fill][split-child=secondary]) button,:host([appearance=outline][split-child=secondary]) button{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:transparent}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) button:focus,:host([appearance=transparent]:not(.enable-editing-button)) a:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:focus{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=brand]) button,:host([appearance=transparent][kind=brand]) a{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{color:var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:focus,:host([appearance=transparent][kind=brand]) a:focus{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{color:var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{color:var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:focus,:host([appearance=transparent][kind=danger]) a:focus{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{color:var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{border-block-start-width:1px;border-block-end-width:1px;color:var(--calcite-color-text-3);border-block-start-color:var(--calcite-color-border-input);border-block-end-color:var(--calcite-color-border-input);border-block-style:solid}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:not(.content--slotted){--calcite-button-padding-y-internal:0}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{color:var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].enable-editing-button) button{background-color:transparent}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][kind=inverse]) button,:host([appearance=transparent][kind=inverse]) a,:host([appearance=transparent][kind=inverse]) calcite-loader{color:var(--calcite-color-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-button-padding-x-internal:0.5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-button-padding-y-internal:3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-button-padding-x-internal:11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-padding-y-internal:7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-button-padding-x-internal:0.75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-button-padding-x-internal:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .button-padding{--calcite-button-padding-x-internal:1rem;--calcite-button-padding-y-internal:11px}:host([scale=l]) .button-padding--shrunk{--calcite-button-padding-y-internal:9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}:host(:is([scale=s],[scale=m],[scale=l])[width=full]) a:not(.content--slotted),:host(:is([scale=s],[scale=m],[scale=l])[width=full]) button:not(.content--slotted){inline-size:var(--calcite-container-size-content-fluid)}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y-internal:0.625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal:23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal:1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal:2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal:33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal:43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal:2.75rem}:host([hidden]){display:none}[hidden]{display:none}`,yG=wG,MS=Dt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.mutationObserver=Ir("mutation",()=>this.updateHasContent()),this.resizeObserver=Ir("resize",()=>this.setTooltipText()),this.handleClick=()=>{let{type:t}=this;this.href||(t==="submit"?Hg(this):t==="reset"&&rL(this))},this.setTooltipText=()=>{let{contentEl:t}=this;t&&(this.tooltipText=t.offsetWidth<t.scrollWidth&&this.el.innerText||null)},this.setChildEl=t=>{this.childEl=t,t&&this.resizeObserver?.observe(t)},this.alignment="center",this.appearance="solid",this.label=void 0,this.kind="brand",this.disabled=!1,this.form=void 0,this.download=!1,this.href=void 0,this.iconEnd=void 0,this.iconFlipRtl=void 0,this.iconStart=void 0,this.loading=!1,this.name=void 0,this.rel=void 0,this.round=!1,this.scale="m",this.splitChild=!1,this.target=void 0,this.type="button",this.width="auto",this.messages=void 0,this.messageOverrides=void 0,this.hasContent=!1,this.hasLoader=!1,this.effectiveLocale="",this.defaultMessages=void 0,this.tooltipText=void 0}handleGlobalAttributesChanged(){as(this)}loadingChanged(t,r){t&&!r&&(this.hasLoader=!0),!t&&r&&window.setTimeout(()=>{this.hasLoader=!1},300)}onMessagesChange(){}async connectedCallback(){Xg(this),Mi(this),Ai(this),this.hasLoader=this.loading,this.setupTextContentObserver(),sc(this),this.formEl=wS(this)}disconnectedCallback(){this.mutationObserver?.disconnect(),Qg(this),rw(this),Li(this),Ni(this),this.resizeObserver?.disconnect(),this.formEl=null}async componentWillLoad(){us(this),pn()&&(this.updateHasContent(),await Ii(this))}componentDidLoad(){ds(this),this.setTooltipText()}componentDidRender(){Jg(this)}render(){let t=this.href?"a":"button",r=t,n=this.hasLoader?X("div",{class:mn.buttonLoader},X("calcite-loader",{class:this.loading?mn.loadingIn:mn.loadingOut,inline:!0,label:this.messages.loading,scale:this.scale==="l"?"m":"s"})):null,i=!this.iconStart&&!this.iconEnd,o=X("calcite-icon",{key:"5f802ba3711d5453f1e6122cb18bc29e432df0ca",class:{[mn.icon]:!0,[mn.iconStart]:!0},flipRtl:this.iconFlipRtl==="start"||this.iconFlipRtl==="both",icon:this.iconStart,scale:en(this.scale)}),s=X("calcite-icon",{key:"3ef0f67aecc6e5475d52447f8b8a985e5700291f",class:{[mn.icon]:!0,[mn.iconEnd]:!0},flipRtl:this.iconFlipRtl==="end"||this.iconFlipRtl==="both",icon:this.iconEnd,scale:en(this.scale)}),a=X("span",{key:"bccc400a38f1304ba1f5b0015870fb34e31fa97e",class:mn.content,ref:u=>this.contentEl=u},X("slot",{key:"18b9553660036b6fcf83ceabf68b308b5d140904"}));return X(Kg,{key:"e9bebe1bbc63bca93b02eb53efef76a035ce89d0",disabled:this.disabled},X(r,{key:"2d99966fc0ba9d13cb623f6ae7936ba9ddfbe7e1","aria-disabled":t==="a"?qg(this.disabled||this.loading):null,"aria-expanded":this.el.getAttribute("aria-expanded"),"aria-label":this.loading?this.messages.loading:qd(this),"aria-live":"polite",class:{[mn.buttonPadding]:i,[mn.buttonPaddingShrunk]:!i,[mn.contentSlotted]:this.hasContent,[mn.iconStartEmpty]:!this.iconStart,[mn.iconEndEmpty]:!this.iconEnd},disabled:t==="button"?this.disabled||this.loading:null,download:t==="a"&&(this.download===""||this.download)?this.download:null,href:t==="a"&&this.href,name:t==="button"&&this.name,onClick:this.handleClick,ref:this.setChildEl,rel:t==="a"&&this.rel,tabIndex:this.disabled?-1:null,target:t==="a"&&this.target,title:this.tooltipText,type:t==="button"&&this.type},n,this.iconStart?o:null,this.hasContent?a:null,this.iconEnd?s:null))}async setFocus(){await fs(this),this.childEl?.focus()}effectiveLocaleChange(){Pi(this,this.effectiveLocale)}updateHasContent(){let t=this.el.textContent.trim().length>0||this.el.childNodes.length>0;this.hasContent=this.el.childNodes.length===1&&this.el.childNodes[0]?.nodeName==="#text"?this.el.textContent?.trim().length>0:t}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.handleClick(),this.setFocus()}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{"aria-expanded":["handleGlobalAttributesChanged"],loading:["loadingChanged"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return yG}},[1,"calcite-button",{alignment:[513],appearance:[513],label:[1],kind:[513],disabled:[516],form:[513],download:[520],href:[513],iconEnd:[513,"icon-end"],iconFlipRtl:[513,"icon-flip-rtl"],iconStart:[513,"icon-start"],loading:[516],name:[513],rel:[513],round:[516],scale:[513],splitChild:[520,"split-child"],target:[513],type:[513],width:[513],messages:[1040],messageOverrides:[1040],hasContent:[32],hasLoader:[32],effectiveLocale:[32],defaultMessages:[32],tooltipText:[32],setFocus:[64]},void 0,{"aria-expanded":["handleGlobalAttributesChanged"],loading:["loadingChanged"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);LS()});var RL={};li(RL,{CalciteButton:()=>bG,defineCustomElement:()=>_G});var bG,_G,DL=L(()=>{kL();bG=MS,_G=LS});var vG,OL,$L=L(()=>{Ot();vG={validationContainer:"validation-container"},OL=({scale:e,status:t,icon:r,message:n})=>X("div",{class:vG.validationContainer},X("calcite-input-message",{icon:r,scale:e,status:t},n))});function uc(e,t,r,n){let i=r.toLowerCase(),o=e[r];n&&o!=null?t.setAttribute(i,`${o}`):t.removeAttribute(i)}function FL(e,t,r){r.type=e==="textarea"?"text":e;let n=SG.includes(e),i=t;uc(i,r,"min",n),uc(i,r,"max",n),uc(i,r,"step",n);let o=CG.includes(e),s=t;uc(s,r,"minLength",o),uc(s,r,"maxLength",o);let a=xG.includes(e);uc(s,r,"pattern",a)}var SG,xG,CG,VL=L(()=>{SG=["date","datetime-local","month","number","range","time","week"],xG=["email","password","search","tel","text","url"],CG=["email","password","search","tel","text","textarea","url"]});function IS(){if(typeof customElements>"u")return;["calcite-input-message","calcite-icon"].forEach(t=>{switch(t){case"calcite-input-message":customElements.get(t)||customElements.define(t,MG);break;case"calcite-icon":customElements.get(t)||ni();break}})}var UL,TG,EG,MG,WL=L(()=>{Ot();Kr();lc();UL={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},TG=":host{box-sizing:border-box;display:flex;block-size:auto;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);opacity:1;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;--calcite-input-message-spacing-value:0.25rem;margin-block-start:var(--calcite-input-message-spacing-value)}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;margin-inline-end:0.5rem}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-color-status-danger)}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-color-status-warning)}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-color-status-success)}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-color-brand)}:host([scale=s]){font-size:var(--calcite-font-size--3);line-height:0.75rem}:host([scale=m]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([hidden]){display:none}[hidden]{display:none}",EG=TG,MG=Dt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.status="idle"}handleIconEl(){this.requestedIcon=no(UL,this.icon,this.status)}connectedCallback(){this.requestedIcon=no(UL,this.icon,this.status)}render(){let t=this.el.hidden;return X(fn,{key:"807f74f1838b74f514cb6c79b91be23d634a7a9a","calcite-hydrated-hidden":t},this.renderIcon(this.requestedIcon),X("slot",{key:"15aa8635b2a9646f5b0b02d47e255073789799ef"}))}renderIcon(t){if(t)return X("calcite-icon",{class:"calcite-input-message-icon",flipRtl:this.iconFlipRtl,icon:t,scale:"s"})}get el(){return this}static get watchers(){return{status:["handleIconEl"],icon:["handleIconEl"]}}static get style(){return EG}},[1,"calcite-input-message",{icon:[520],iconFlipRtl:[516,"icon-flip-rtl"],scale:[513],status:[513]},void 0,{status:["handleIconEl"],icon:["handleIconEl"]}]);IS()});function PS(){if(typeof customElements>"u")return;["calcite-progress"].forEach(t=>{switch(t){case"calcite-progress":customElements.get(t)||customElements.define(t,PG);break}})}var LG,IG,PG,zL=L(()=>{Ot();Kr();Rd();LG=":host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background:var(--calcite-color-border-3)}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-color-brand)}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-2)}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%, 0, 0)}50%{inline-size:40%}100%{transform:translate3d(600%, 0, 0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%, 0, 0)}50%{inline-size:40%}100%{transform:translate3d(-600%, 0, 0)}}:host([hidden]){display:none}[hidden]{display:none}",IG=LG,PG=Dt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.type="determinate",this.value=0,this.label=void 0,this.text=void 0,this.reversed=!1}render(){let r=this.type==="determinate"?{width:`${this.value*100}%`}:{},n=nc(this.el);return X("div",{key:"5d06cbdb88ab78d7219ed5360aeb54713d24b7e6","aria-label":this.label||this.text,"aria-valuemax":1,"aria-valuemin":0,"aria-valuenow":this.value,role:"progressbar"},X("div",{key:"9adc549e8ea4f516eb6df4bac52e33e903c61978",class:"track"},X("div",{key:"57c31717d7f2c7e13782faa4a46060e3d583aad2",class:{bar:!0,indeterminate:this.type==="indeterminate",[kd.rtl]:n==="rtl",reversed:this.reversed},style:r})),this.text?X("div",{class:"text"},this.text):null)}get el(){return this}static get style(){return IG}},[1,"calcite-progress",{type:[513],value:[2],label:[1],text:[1],reversed:[516]}]);PS()});function NS(){if(typeof customElements>"u")return;["calcite-input","calcite-icon","calcite-input-message","calcite-progress"].forEach(t=>{switch(t){case"calcite-input":customElements.get(t)||customElements.define(t,AS);break;case"calcite-icon":customElements.get(t)||ni();break;case"calcite-input-message":customElements.get(t)||IS();break;case"calcite-progress":customElements.get(t)||PS();break}})}var Ar,BL,AG,NG,kG,AS,GL=L(()=>{Ot();Kr();yS();_S();vS();nw();jd();_a();ps();Rd();ac();ic();$L();VL();lc();WL();zL();Ar={loader:"loader",clearButton:"clear-button",editingEnabled:"editing-enabled",inlineChild:"inline-child",inputIcon:"icon",prefix:"prefix",suffix:"suffix",numberButtonWrapper:"number-button-wrapper",buttonItemHorizontal:"number-button-item--horizontal",wrapper:"element-wrapper",inputWrapper:"wrapper",actionWrapper:"action-wrapper",resizeIconWrapper:"resize-icon-wrapper",numberButtonItem:"number-button-item"},BL={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},AG={action:"action"},NG=`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) textarea{block-size:1.5rem;min-block-size:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) input[type=file]{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=s]) textarea{block-size:auto;padding-block:0.25rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) textarea{min-block-size:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) input[type=file]{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=m]) textarea{block-size:auto;padding-block:0.5rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) textarea{min-block-size:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) input[type=file]{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([scale=l]) textarea{block-size:auto;padding-block:0.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([disabled]) textarea{resize:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}textarea,input{transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-color-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1)}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input,textarea{text-overflow:ellipsis;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);color:var(--calcite-color-text-1)}input:placeholder-shown,textarea:placeholder-shown{text-overflow:ellipsis}input:focus,textarea:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-text-1)}input[readonly],textarea[readonly]{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}input[readonly]:focus,textarea[readonly]:focus{color:var(--calcite-color-text-1)}calcite-icon{color:var(--calcite-color-text-3)}textarea,input{outline-color:transparent}textarea:focus,input:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
41
+ -2px *
42
+ calc(
43
+ 1 -
44
+ 2 * clamp(
45
+ 0,
46
+ var(--calcite-offset-invert-focus),
47
+ 1
48
+ )
49
+ )
50
+ )}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(
51
+ -2px *
52
+ calc(
53
+ 1 -
54
+ 2 * clamp(
55
+ 0,
56
+ var(--calcite-offset-invert-focus),
57
+ 1
58
+ )
59
+ )
60
+ )}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;display:block;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.icon,.resize-icon-wrapper{z-index:var(--calcite-z-index)}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;order:4;margin:0px;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-color-foreground-2);transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:hover calcite-icon{color:var(--calcite-color-text-1);transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:active{background-color:var(--calcite-color-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-color-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
61
+ -2px *
62
+ calc(
63
+ 1 -
64
+ 2 * clamp(
65
+ 0,
66
+ var(--calcite-offset-invert-focus),
67
+ 1
68
+ )
69
+ )
70
+ )}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-color-text-2)}.prefix{order:2;border-inline-end-width:0px}.suffix{order:5;border-inline-start-width:0px}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:start}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:end}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0px}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:1;max-block-size:100%;min-block-size:100%;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0px;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:0.5rem;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.number-button-item:focus{background-color:var(--calcite-color-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-color-text-1)}.number-button-item:active{background-color:var(--calcite-color-foreground-3)}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:input::-webkit-calendar-picker-indicator{display:none}input[type=date]::-webkit-input-placeholder{visibility:hidden !important}textarea::-webkit-resizer{position:absolute;inset-block-end:0px;box-sizing:border-box;padding-block:0px;padding-inline:0.25rem;inset-inline-end:0}.resize-icon-wrapper{inset-block-end:2px;inset-inline-end:2px;pointer-events:none;position:absolute;block-size:0.75rem;inline-size:0.75rem;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-3)}.resize-icon-wrapper calcite-icon{inset-block-end:0.25rem;inset-inline-end:0.25rem;transform:rotate(-45deg)}.calcite--rtl .resize-icon-wrapper calcite-icon{transform:rotate(45deg)}:host([type=color]) input{padding:0.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);text-align:center}:host([type=file][scale=s]) input{padding-block:1px;padding-inline:0.5rem}:host([type=file][scale=m]) input{padding-block:0.25rem;padding-inline:0.75rem}:host([type=file][scale=l]) input{padding-block:0.5rem;padding-inline:1rem}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:0.5rem}:host([scale=s]) .validation-container{padding-block-start:0.25rem}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([hidden]){display:none}[hidden]{display:none}`,kG=NG,AS=Dt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteInternalInputFocus=yr(this,"calciteInternalInputFocus",6),this.calciteInternalInputBlur=yr(this,"calciteInternalInputBlur",6),this.calciteInputInput=yr(this,"calciteInputInput",7),this.calciteInputChange=yr(this,"calciteInputChange",6),this.childElType="input",this.previousValueOrigin="initial",this.mutationObserver=Ir("mutation",()=>this.setDisabledAction()),this.userChangedValue=!1,this.keyDownHandler=t=>{this.readOnly||this.disabled||t.defaultPrevented||(this.isClearable&&t.key==="Escape"&&(this.clearInputValue(t),t.preventDefault()),t.key==="Enter"&&Hg(this)&&t.preventDefault())},this.clearInputValue=t=>{this.setValue({committing:!0,nativeEvent:t,origin:"user",value:""})},this.emitChangeIfUserModified=()=>{this.previousValueOrigin==="user"&&this.value!==this.previousEmittedValue&&(this.calciteInputChange.emit(),this.setPreviousEmittedValue(this.value))},this.inputBlurHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId),this.calciteInternalInputBlur.emit(),this.emitChangeIfUserModified()},this.clickHandler=t=>{if(this.disabled)return;let r=ro(this.el,"action");t.target!==r&&this.setFocus()},this.inputFocusHandler=()=>{this.calciteInternalInputFocus.emit()},this.inputChangeHandler=()=>{this.type==="file"&&(this.files=this.childEl.files)},this.inputInputHandler=t=>{this.disabled||this.readOnly||this.setValue({nativeEvent:t,origin:"user",value:t.target.value})},this.inputKeyDownHandler=t=>{this.disabled||this.readOnly||t.key==="Enter"&&this.emitChangeIfUserModified()},this.inputNumberInputHandler=t=>{if(this.disabled||this.readOnly||this.value==="Infinity"||this.value==="-Infinity")return;let r=t.target.value;ri.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let n=ri.delocalize(r);t.inputType==="insertFromPaste"?(ti(n)||t.preventDefault(),this.setValue({nativeEvent:t,origin:"user",value:_L(n)}),this.childNumberEl.value=this.displayedValue):this.setValue({nativeEvent:t,origin:"user",value:n})},this.inputNumberKeyDownHandler=t=>{if(this.type!=="number"||this.disabled||this.readOnly)return;if(this.value==="Infinity"||this.value==="-Infinity"){t.preventDefault(),(t.key==="Backspace"||t.key==="Delete")&&this.clearInputValue(t);return}if(t.key==="ArrowUp"){t.preventDefault(),this.nudgeNumberValue("up",t);return}if(t.key==="ArrowDown"){this.nudgeNumberValue("down",t);return}let r=[...Hd,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(t.altKey||t.ctrlKey||t.metaKey)return;let n=t.shiftKey&&t.key==="Tab";if(r.includes(t.key)||n){t.key==="Enter"&&this.emitChangeIfUserModified();return}ri.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(t.key===ri.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(ri.decimal)===-1))&&(/[eE]/.test(t.key)&&(!this.value&&!this.childNumberEl.value||this.value&&!/[eE]/.test(this.childNumberEl.value))||t.key==="-"&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.split("-").length<=2)||t.preventDefault())},this.nudgeNumberValue=(t,r)=>{if(r instanceof KeyboardEvent&&r.repeat||this.type!=="number")return;let n=this.maxString?parseFloat(this.maxString):null,i=this.minString?parseFloat(this.minString):null,o=150;this.incrementOrDecrementNumberValue(t,n,i,r),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let s=!0;this.nudgeNumberValueIntervalId=window.setInterval(()=>{if(s){s=!1;return}this.incrementOrDecrementNumberValue(t,n,i,r)},o)},this.numberButtonPointerUpAndOutHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)},this.numberButtonPointerDownHandler=t=>{if(!YM(t))return;t.preventDefault();let r=t.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(r,t)},this.onHiddenFormInputInput=t=>{t.target.name===this.name&&this.setValue({value:t.target.value,origin:"direct"}),this.setFocus(),t.stopPropagation()},this.setChildElRef=t=>{this.childEl=t},this.setChildNumberElRef=t=>{this.childNumberEl=t},this.setInputValue=t=>{this.type==="text"&&!this.childEl||this.type==="number"&&!this.childNumberEl||(this[`child${this.type==="number"?"Number":""}El`].value=t)},this.setPreviousEmittedValue=t=>{this.previousEmittedValue=this.normalizeValue(t)},this.setPreviousValue=t=>{this.previousValue=this.normalizeValue(t)},this.setValue=({committing:t=!1,nativeEvent:r,origin:n,previousValue:i,value:o})=>{if(this.setPreviousValue(i??this.value),this.previousValueOrigin=n,this.type==="number"){ri.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator,signDisplay:"never"};let s=this.previousValue?.length>o.length||this.value?.length>o.length,a=o.charAt(o.length-1)===".",u=a&&s?o:SL(o),d=o&&!u?ti(this.previousValue)?this.previousValue:"":u,p=ri.localize(d);n!=="connected"&&!a&&(p=xL(p,d,ri)),this.displayedValue=a&&s?`${p}${ri.decimal}`:p,this.userChangedValue=n==="user"&&this.value!==d,this.value=["-","."].includes(d)?"":d}else this.userChangedValue=n==="user"&&this.value!==o,this.value=o;n==="direct"&&(this.setInputValue(o),this.previousEmittedValue=o),r&&(this.calciteInputInput.emit().defaultPrevented?(this.value=this.previousValue,this.displayedValue=this.type==="number"?ri.localize(this.previousValue):this.previousValue):t&&this.emitChangeIfUserModified())},this.inputKeyUpHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)},this.alignment="start",this.autofocus=void 0,this.clearable=!1,this.disabled=!1,this.enterKeyHint=void 0,this.form=void 0,this.groupSeparator=!1,this.icon=void 0,this.iconFlipRtl=!1,this.inputMode=void 0,this.label=void 0,this.loading=!1,this.numberingSystem=void 0,this.localeFormat=!1,this.max=void 0,this.min=void 0,this.maxLength=void 0,this.minLength=void 0,this.validationMessage=void 0,this.validationIcon=void 0,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.name=void 0,this.numberButtonType="vertical",this.placeholder=void 0,this.prefixText=void 0,this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.step=void 0,this.autocomplete=void 0,this.pattern=void 0,this.accept=void 0,this.multiple=!1,this.suffixText=void 0,this.editingEnabled=!1,this.type="text",this.value="",this.files=void 0,this.messages=void 0,this.messageOverrides=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.displayedValue=void 0,this.slottedActionElDisabledInternally=!1}handleGlobalAttributesChanged(){as(this)}disabledWatcher(){this.setDisabledAction()}maxWatcher(){this.maxString=this.max?.toString()||null}minWatcher(){this.minString=this.min?.toString()||null}onMessagesChange(){}valueWatcher(t,r){if(!this.userChangedValue){if(this.type==="number"&&(t==="Infinity"||t==="-Infinity")){this.displayedValue=t,this.previousEmittedValue=t;return}this.setValue({origin:"direct",previousValue:r,value:t==null||t==""?"":this.type==="number"?ti(t)?t:this.previousValue||"":t}),this.warnAboutInvalidNumberValue(t)}this.userChangedValue=!1}updateRequestedIcon(){this.requestedIcon=no(BL,this.icon,this.type)}get isClearable(){return!this.isTextarea&&(this.clearable||this.type==="search")&&this.value?.length>0}get isTextarea(){return this.childElType==="textarea"}effectiveLocaleChange(){Pi(this,this.effectiveLocale)}connectedCallback(){Xg(this),Mi(this),Ai(this),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),sc(this),nL(this),this.mutationObserver?.observe(this.el,{childList:!0}),this.setDisabledAction(),this.el.addEventListener(Zg,this.onHiddenFormInputInput)}disconnectedCallback(){Qg(this),rw(this),iL(this),Li(this),Ni(this),this.mutationObserver?.disconnect(),this.el.removeEventListener(Zg,this.onHiddenFormInputInput)}async componentWillLoad(){us(this),this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=no(BL,this.icon,this.type),await Ii(this),this.setPreviousEmittedValue(this.value),this.setPreviousValue(this.value),this.type==="number"&&(this.value==="Infinity"||this.value==="-Infinity"?(this.displayedValue=this.value,this.previousEmittedValue=this.value):(this.warnAboutInvalidNumberValue(this.value),this.setValue({origin:"connected",value:ti(this.value)?this.value:""})))}componentDidLoad(){ds(this)}componentShouldUpdate(t,r,n){return this.type==="number"&&n==="value"&&t&&!ti(t)?(this.setValue({origin:"reset",value:r}),!1):!0}componentDidRender(){Jg(this)}async setFocus(){await fs(this),this.type==="number"?this.childNumberEl?.focus():this.childEl?.focus()}async selectText(){this.type==="number"?this.childNumberEl?.select():this.childEl?.select()}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(t,r,n,i){let{value:o}=this;if(o==="Infinity"||o==="-Infinity")return;let s=t==="up"?1:-1,a=this.step==="any"?1:Math.abs(this.step||1),d=new Pr(o!==""?o:"0").add(`${a*s}`),p=()=>typeof n=="number"&&!isNaN(n)&&d.subtract(`${n}`).isNegative,m=()=>typeof r=="number"&&!isNaN(r)&&!d.subtract(`${r}`).isNegative,w=p()?`${n}`:m()?`${r}`:d.toString();this.setValue({committing:!0,nativeEvent:i,origin:"user",value:w})}syncHiddenFormInput(t){FL(this.type,this,t)}setDisabledAction(){let t=ro(this.el,"action");t&&(this.disabled?(t.getAttribute("disabled")==null&&(this.slottedActionElDisabledInternally=!0),t.setAttribute("disabled","")):this.slottedActionElDisabledInternally&&(t.removeAttribute("disabled"),this.slottedActionElDisabledInternally=!1))}normalizeValue(t){return this.type==="number"?ti(t)?t:"":t}warnAboutInvalidNumberValue(t){this.type==="number"&&t&&!ti(t)&&console.warn(`The specified value "${t}" cannot be parsed, or is out of range.`)}render(){let t=nc(this.el),r=X("div",{key:"84c0bd7785985b5d3188bfcba054120fd32687be",class:Ar.loader},X("calcite-progress",{key:"7f9df66f96b36087177fd8a82dd44f8a216a3a02",label:this.messages.loading,type:"indeterminate"})),n=X("button",{key:"320a27ded0752938ef6eb824e2fdf23de510e9fc","aria-label":this.messages.clear,class:Ar.clearButton,disabled:this.disabled||this.readOnly,onClick:this.clearInputValue,tabIndex:-1,type:"button"},X("calcite-icon",{key:"800e1cc87d8f4c8e915c01f74b4fd551c5daed4b",icon:"x",scale:en(this.scale)})),i=X("calcite-icon",{key:"d22e551c7f109a1bc59670a766e6020887793346",class:Ar.inputIcon,flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:en(this.scale)}),o=this.numberButtonType==="horizontal",s=X("button",{key:"d481136fc775193bdbd5a74634ed32a4964da0af","aria-hidden":"true",class:{[Ar.numberButtonItem]:!0,[Ar.buttonItemHorizontal]:o},"data-adjustment":"up",disabled:this.disabled||this.readOnly,onPointerDown:this.numberButtonPointerDownHandler,onPointerOut:this.numberButtonPointerUpAndOutHandler,onPointerUp:this.numberButtonPointerUpAndOutHandler,tabIndex:-1,type:"button"},X("calcite-icon",{key:"fc7d8f85747204cdba07c794cb8b645477f7ab49",icon:"chevron-up",scale:en(this.scale)})),a=X("button",{key:"0b70f6228a37975997fc7e6f060aed85709eb992","aria-hidden":"true",class:{[Ar.numberButtonItem]:!0,[Ar.buttonItemHorizontal]:o},"data-adjustment":"down",disabled:this.disabled||this.readOnly,onPointerDown:this.numberButtonPointerDownHandler,onPointerOut:this.numberButtonPointerUpAndOutHandler,onPointerUp:this.numberButtonPointerUpAndOutHandler,tabIndex:-1,type:"button"},X("calcite-icon",{key:"22335c3ef4d615b4938b8ea1c2bc375eec65fd1b",icon:"chevron-down",scale:en(this.scale)})),u=X("div",{key:"d588f6413ab8cb2ee9bb25b7fa6c1ae436c09727",class:Ar.numberButtonWrapper},s,a),d=X("div",{key:"d653764ca74047a6b1c5a8526e1de5b5ebec2f95",class:Ar.prefix},this.prefixText),p=X("div",{key:"a6d815022a67a216ecbf6a98476dd9c84f393031",class:Ar.suffix},this.suffixText),m=this.el.autofocus||this.el.hasAttribute("autofocus")?!0:null,w=this.el.enterKeyHint||this.el.getAttribute("enterkeyhint"),_=this.el.inputMode||this.el.getAttribute("inputmode"),S=this.type==="number"?X("input",{accept:this.accept,"aria-label":qd(this),autocomplete:this.autocomplete,autofocus:m,defaultValue:this.defaultValue,disabled:this.disabled?!0:null,enterKeyHint:w,inputMode:_,key:"localized-input",maxLength:this.maxLength,minLength:this.minLength,multiple:this.multiple,name:void 0,onBlur:this.inputBlurHandler,onFocus:this.inputFocusHandler,onInput:this.inputNumberInputHandler,onKeyDown:this.inputNumberKeyDownHandler,onKeyUp:this.inputKeyUpHandler,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildNumberElRef,type:"text",value:this.displayedValue}):null,T=this.type!=="number"?[X(this.childElType,{accept:this.accept,"aria-label":qd(this),autocomplete:this.autocomplete,autofocus:m,class:{[Ar.editingEnabled]:this.editingEnabled,[Ar.inlineChild]:!!this.inlineEditableEl},defaultValue:this.defaultValue,disabled:this.disabled?!0:null,enterKeyHint:w,inputMode:_,max:this.maxString,maxLength:this.maxLength,min:this.minString,minLength:this.minLength,multiple:this.multiple,name:this.name,onBlur:this.inputBlurHandler,onChange:this.inputChangeHandler,onFocus:this.inputFocusHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeyDownHandler,onKeyUp:this.inputKeyUpHandler,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildElRef,required:this.required?!0:null,step:this.step,tabIndex:this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null,type:this.type,value:this.value}),this.isTextarea?X("div",{class:Ar.resizeIconWrapper},X("calcite-icon",{icon:"chevron-down",scale:en(this.scale)})):null]:null;return X(fn,{key:"8315bd55591b2d846d69d6070571a17e0030d5c7",onClick:this.clickHandler,onKeyDown:this.keyDownHandler},X(Kg,{key:"af0643a63ad73a63a4cac7fda338f47cdd890bdd",disabled:this.disabled},X("div",{key:"b92bfabff6dfc6115c0f289cc7c7b788862f2054",class:{[Ar.inputWrapper]:!0,[kd.rtl]:t==="rtl"}},this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?a:null,this.prefixText?d:null,X("div",{key:"99b9ced0f2b9ee174b5c87603fd7cc6742d6da8e",class:Ar.wrapper},S,T,this.isClearable?n:null,this.requestedIcon?i:null,this.loading?r:null),X("div",{key:"86159febefcb1d62d05b2c15f7ffb5cec2810e69",class:Ar.actionWrapper},X("slot",{key:"4e58925d61432853348fb86c9b1fea217ee6f45b",name:AG.action})),this.type==="number"&&this.numberButtonType==="vertical"&&!this.readOnly?u:null,this.suffixText?p:null,this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?s:null,X(sL,{key:"24d8b7e1f68d438177e528c244b341b02ef7d5a0",component:this})),this.validationMessage&&this.status==="invalid"?X(OL,{icon:this.validationIcon,message:this.validationMessage,scale:this.scale,status:this.status}):null))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{autofocus:["handleGlobalAttributesChanged"],enterkeyhint:["handleGlobalAttributesChanged"],inputmode:["handleGlobalAttributesChanged"],disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],messageOverrides:["onMessagesChange"],value:["valueWatcher"],icon:["updateRequestedIcon"],type:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return kG}},[1,"calcite-input",{alignment:[513],autofocus:[4],clearable:[516],disabled:[516],enterKeyHint:[1,"enter-key-hint"],form:[513],groupSeparator:[516,"group-separator"],icon:[520],iconFlipRtl:[516,"icon-flip-rtl"],inputMode:[1,"input-mode"],label:[1],loading:[516],numberingSystem:[513,"numbering-system"],localeFormat:[4,"locale-format"],max:[514],min:[514],maxLength:[514,"max-length"],minLength:[514,"min-length"],validationMessage:[1,"validation-message"],validationIcon:[520,"validation-icon"],validity:[1040],name:[513],numberButtonType:[513,"number-button-type"],placeholder:[1],prefixText:[1,"prefix-text"],readOnly:[516,"read-only"],required:[516],scale:[513],status:[513],step:[520],autocomplete:[1],pattern:[1],accept:[1],multiple:[4],suffixText:[1,"suffix-text"],editingEnabled:[1540,"editing-enabled"],type:[513],value:[1025],files:[16],messages:[1040],messageOverrides:[1040],defaultMessages:[32],effectiveLocale:[32],displayedValue:[32],slottedActionElDisabledInternally:[32],setFocus:[64],selectText:[64]},void 0,{autofocus:["handleGlobalAttributesChanged"],enterkeyhint:["handleGlobalAttributesChanged"],inputmode:["handleGlobalAttributesChanged"],disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],messageOverrides:["onMessagesChange"],value:["valueWatcher"],icon:["updateRequestedIcon"],type:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}]);NS()});var qL={};li(qL,{CalciteInput:()=>RG,defineCustomElement:()=>DG});var RG,DG,jL=L(()=>{GL();RG=AS,DG=NS});function RS(){if(typeof customElements>"u")return;["calcite-label"].forEach(t=>{switch(t){case"calcite-label":customElements.get(t)||customElements.define(t,kS);break}})}var OG,$G,FG,kS,HL=L(()=>{Ot();nw();OG={container:"container"},$G=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, 0.5rem)}:host([scale=m]) .container{gap:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, 0.75rem)}:host([scale=l]) .container{gap:0.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1)}:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:0.5rem}:host([layout=inline][scale=l]) .container{gap:0.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity:1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity:0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}",FG=$G,kS=Dt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteInternalLabelClick=yr(this,"calciteInternalLabelClick",2),this.labelClickHandler=t=>{this.calciteInternalLabelClick.emit({sourceEvent:t})},this.alignment="start",this.for=void 0,this.scale="m",this.layout="default"}handleForChange(){wL(this.el)}connectedCallback(){document.dispatchEvent(new CustomEvent(Gd))}disconnectedCallback(){document.dispatchEvent(new CustomEvent(zd))}render(){return X(fn,{key:"41b0e79fa4984972606fb6c73a9940413f8f863a",onClick:this.labelClickHandler},X("div",{key:"21adb621d9944f95bdf632c0717f9debdc844865",class:OG.container},X("slot",{key:"cea575ac40565f9aff87e8ad36653b785f758224"})))}get el(){return this}static get watchers(){return{for:["handleForChange"]}}static get style(){return FG}},[1,"calcite-label",{alignment:[513],for:[513],scale:[513],layout:[513]},void 0,{for:["handleForChange"]}]);RS()});var ZL={};li(ZL,{CalciteLabel:()=>VG,defineCustomElement:()=>UG});var VG,UG,YL=L(()=>{HL();VG=kS,UG=RS});function lw(e){aw||(aw=Ir("mutation",zG)),aw.observe(e.el,WG)}function cw(e){aw.unobserve(e.el)}function zG(e){e.forEach(({target:t})=>{as(t)})}var aw,WG,DS=L(()=>{Ot();ps();WG={childList:!0}});function JL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JL(Object(r),!0).forEach(function(n){BG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BG(e,t,r){return t=qG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GG(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qG(e){var t=GG(e,"string");return typeof t=="symbol"?t:String(t)}function tI(e,t){let{el:r}=e,n=t?.focusTrapEl||r;if(!n)return;let i={clickOutsideDeactivates:!0,escapeDeactivates:!1,fallbackFocus:n,setReturnFocus:o=>(qM(o),!1),...t?.focusTrapOptions,document:r.ownerDocument,tabbableOptions:dS,trapStack:fE};e.focusTrap=XG(n,i)}function OS(e,t){e.focusTrapDisabled||e.focusTrap?.activate(t)}function dw(e,t){e.focusTrap?.deactivate(t)}function rI(e){e.focusTrap?.updateContainerElements(e.el)}var QL,jG,HG,Jd,ZG,YG,KL,eI,Yd,uw,JG,XG,nI=L(()=>{Kr();yg();QL={activateTrap:function(t,r){if(t.length>0){var n=t[t.length-1];n!==r&&n.pause()}var i=t.indexOf(r);i===-1||t.splice(i,1),t.push(r)},deactivateTrap:function(t,r){var n=t.indexOf(r);n!==-1&&t.splice(n,1),t.length>0&&t[t.length-1].unpause()}},jG=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},HG=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},Jd=function(t){return t?.key==="Tab"||t?.keyCode===9},ZG=function(t){return Jd(t)&&!t.shiftKey},YG=function(t){return Jd(t)&&t.shiftKey},KL=function(t){return setTimeout(t,0)},eI=function(t,r){var n=-1;return t.every(function(i,o){return r(i)?(n=o,!1):!0}),n},Yd=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,n):t},uw=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},JG=[],XG=function(t,r){var n=r?.document||document,i=r?.trapStack||JG,o=XL({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:ZG,isKeyBackward:YG},r),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,u=function(B,$,q){return B&&B[$]!==void 0?B[$]:o[q||$]},d=function(B,$){var q=typeof $?.composedPath=="function"?$.composedPath():void 0;return s.containerGroups.findIndex(function(K){var ee=K.container,ae=K.tabbableNodes;return ee.contains(B)||q?.includes(ee)||ae.find(function(pe){return pe===B})})},p=function(B){var $=o[B];if(typeof $=="function"){for(var q=arguments.length,K=new Array(q>1?q-1:0),ee=1;ee<q;ee++)K[ee-1]=arguments[ee];$=$.apply(void 0,K)}if($===!0&&($=void 0),!$){if($===void 0||$===!1)return $;throw new Error("`".concat(B,"` was specified but was not a node, or did not return a node"))}var ae=$;if(typeof $=="string"&&(ae=n.querySelector($),!ae))throw new Error("`".concat(B,"` as selector refers to no known node"));return ae},m=function(){var B=p("initialFocus");if(B===!1)return!1;if(B===void 0||!Bg(B,o.tabbableOptions))if(d(n.activeElement)>=0)B=n.activeElement;else{var $=s.tabbableGroups[0],q=$&&$.firstTabbableNode;B=q||p("fallbackFocus")}if(!B)throw new Error("Your focus-trap needs to have at least one focusable element");return B},w=function(){if(s.containerGroups=s.containers.map(function(B){var $=uS(B,o.tabbableOptions),q=UM(B,o.tabbableOptions),K=$.length>0?$[0]:void 0,ee=$.length>0?$[$.length-1]:void 0,ae=q.find(function(Ae){return ga(Ae)}),pe=q.slice().reverse().find(function(Ae){return ga(Ae)}),ve=!!$.find(function(Ae){return cs(Ae)>0});return{container:B,tabbableNodes:$,focusableNodes:q,posTabIndexesFound:ve,firstTabbableNode:K,lastTabbableNode:ee,firstDomTabbableNode:ae,lastDomTabbableNode:pe,nextTabbableNode:function(We){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,cr=$.indexOf(We);return cr<0?Pt?q.slice(q.indexOf(We)+1).find(function(ur){return ga(ur)}):q.slice(0,q.indexOf(We)).reverse().find(function(ur){return ga(ur)}):$[cr+(Pt?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(B){return B.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!p("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(B){return B.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},_=function de(B){var $=B.activeElement;if($)return $.shadowRoot&&$.shadowRoot.activeElement!==null?de($.shadowRoot):$},S=function de(B){if(B!==!1&&B!==_(document)){if(!B||!B.focus){de(m());return}B.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=B,jG(B)&&B.select()}},T=function(B){var $=p("setReturnFocus",B);return $||($===!1?!1:B)},M=function(B){var $=B.target,q=B.event,K=B.isBackward,ee=K===void 0?!1:K;$=$||uw(q),w();var ae=null;if(s.tabbableGroups.length>0){var pe=d($,q),ve=pe>=0?s.containerGroups[pe]:void 0;if(pe<0)ee?ae=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:ae=s.tabbableGroups[0].firstTabbableNode;else if(ee){var Ae=eI(s.tabbableGroups,function(Nr){var Vi=Nr.firstTabbableNode;return $===Vi});if(Ae<0&&(ve.container===$||Bg($,o.tabbableOptions)&&!ga($,o.tabbableOptions)&&!ve.nextTabbableNode($,!1))&&(Ae=pe),Ae>=0){var We=Ae===0?s.tabbableGroups.length-1:Ae-1,Pt=s.tabbableGroups[We];ae=cs($)>=0?Pt.lastTabbableNode:Pt.lastDomTabbableNode}else Jd(q)||(ae=ve.nextTabbableNode($,!1))}else{var cr=eI(s.tabbableGroups,function(Nr){var Vi=Nr.lastTabbableNode;return $===Vi});if(cr<0&&(ve.container===$||Bg($,o.tabbableOptions)&&!ga($,o.tabbableOptions)&&!ve.nextTabbableNode($))&&(cr=pe),cr>=0){var ur=cr===s.tabbableGroups.length-1?0:cr+1,rn=s.tabbableGroups[ur];ae=cs($)>=0?rn.firstTabbableNode:rn.firstDomTabbableNode}else Jd(q)||(ae=ve.nextTabbableNode($))}}else ae=p("fallbackFocus");return ae},R=function(B){var $=uw(B);if(!(d($,B)>=0)){if(Yd(o.clickOutsideDeactivates,B)){a.deactivate({returnFocus:o.returnFocusOnDeactivate});return}Yd(o.allowOutsideClick,B)||B.preventDefault()}},I=function(B){var $=uw(B),q=d($,B)>=0;if(q||$ instanceof Document)q&&(s.mostRecentlyFocusedNode=$);else{B.stopImmediatePropagation();var K,ee=!0;if(s.mostRecentlyFocusedNode)if(cs(s.mostRecentlyFocusedNode)>0){var ae=d(s.mostRecentlyFocusedNode),pe=s.containerGroups[ae].tabbableNodes;if(pe.length>0){var ve=pe.findIndex(function(Ae){return Ae===s.mostRecentlyFocusedNode});ve>=0&&(o.isKeyForward(s.recentNavEvent)?ve+1<pe.length&&(K=pe[ve+1],ee=!1):ve-1>=0&&(K=pe[ve-1],ee=!1))}}else s.containerGroups.some(function(Ae){return Ae.tabbableNodes.some(function(We){return cs(We)>0})})||(ee=!1);else ee=!1;ee&&(K=M({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),S(K||s.mostRecentlyFocusedNode||m())}s.recentNavEvent=void 0},N=function(B){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=B;var q=M({event:B,isBackward:$});q&&(Jd(B)&&B.preventDefault(),S(q))},V=function(B){if(HG(B)&&Yd(o.escapeDeactivates,B)!==!1){B.preventDefault(),a.deactivate();return}(o.isKeyForward(B)||o.isKeyBackward(B))&&N(B,o.isKeyBackward(B))},Y=function(B){var $=uw(B);d($,B)>=0||Yd(o.clickOutsideDeactivates,B)||Yd(o.allowOutsideClick,B)||(B.preventDefault(),B.stopImmediatePropagation())},re=function(){if(s.active)return QL.activateTrap(i,a),s.delayInitialFocusTimer=o.delayInitialFocus?KL(function(){S(m())}):S(m()),n.addEventListener("focusin",I,!0),n.addEventListener("mousedown",R,{capture:!0,passive:!1}),n.addEventListener("touchstart",R,{capture:!0,passive:!1}),n.addEventListener("click",Y,{capture:!0,passive:!1}),n.addEventListener("keydown",V,{capture:!0,passive:!1}),a},te=function(){if(s.active)return n.removeEventListener("focusin",I,!0),n.removeEventListener("mousedown",R,!0),n.removeEventListener("touchstart",R,!0),n.removeEventListener("click",Y,!0),n.removeEventListener("keydown",V,!0),a},ie=function(B){var $=B.some(function(q){var K=Array.from(q.removedNodes);return K.some(function(ee){return ee===s.mostRecentlyFocusedNode})});$&&S(m())},ge=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(ie):void 0,be=function(){ge&&(ge.disconnect(),s.active&&!s.paused&&s.containers.map(function(B){ge.observe(B,{subtree:!0,childList:!0})}))};return a={get active(){return s.active},get paused(){return s.paused},activate:function(B){if(s.active)return this;var $=u(B,"onActivate"),q=u(B,"onPostActivate"),K=u(B,"checkCanFocusTrap");K||w(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement,$?.();var ee=function(){K&&w(),re(),be(),q?.()};return K?(K(s.containers.concat()).then(ee,ee),this):(ee(),this)},deactivate:function(B){if(!s.active)return this;var $=XL({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},B);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,te(),s.active=!1,s.paused=!1,be(),QL.deactivateTrap(i,a);var q=u($,"onDeactivate"),K=u($,"onPostDeactivate"),ee=u($,"checkCanReturnFocus"),ae=u($,"returnFocus","returnFocusOnDeactivate");q?.();var pe=function(){KL(function(){ae&&S(T(s.nodeFocusedBeforeActivation)),K?.()})};return ae&&ee?(ee(T(s.nodeFocusedBeforeActivation)).then(pe,pe),this):(pe(),this)},pause:function(B){if(s.paused||!s.active)return this;var $=u(B,"onPause"),q=u(B,"onPostPause");return s.paused=!0,$?.(),te(),be(),q?.(),this},unpause:function(B){if(!s.paused||!s.active)return this;var $=u(B,"onUnpause"),q=u(B,"onPostUnpause");return s.paused=!1,$?.(),w(),re(),be(),q?.(),this},updateContainerElements:function(B){var $=[].concat(B).filter(Boolean);return s.containers=$.map(function(q){return typeof q=="string"?n.querySelector(q):q}),s.active&&w(),be(),this}},a.updateContainerElements(t),a}});function iI(e){return"opened"in e?e.opened:e.open}function Xd(e){QG(()=>{e.transitionEl&&XM(e.transitionEl,e.openTransitionProp,()=>{iI(e)?e.onBeforeOpen():e.onBeforeClose()},()=>{iI(e)?e.onOpen():e.onClose()})})}var QG,$S=L(()=>{Ot();Kr();QG=jE});function KG(e){return sI[e]>=sI[pE]}function dc(e,...t){if(!KG(e))return;console[e].call(this,"%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...t)}function eq(e,{component:t,name:r,suggested:n,removalVersion:i}){let o=`${e}:${e==="component"?"":t}${r}`;if(oI.has(o))return;oI.add(o);let s=Array.isArray(n);s&&!FS&&(FS=new Intl.ListFormat("en",{style:"long",type:"disjunction"}));let a=`[${r}] ${e} is deprecated and will be removed in ${i==="future"?"a future version":`v${i}`}.${n?` Use ${s?FS.format(n.map(u=>`"${u}"`)):`"${n}"`} instead.`:""}`;dc("warn",a)}var oI,sI,FS,aI,lI=L(()=>{yg();oI=new Set,sI={trace:0,debug:1,info:2,warn:4,error:8,off:10};aI={debug:e=>dc("debug",e),info:e=>dc("info",e),warn:e=>dc("warn",e),error:e=>dc("error",e),trace:e=>dc("trace",e),deprecated:eq}});function VS(){if(typeof customElements>"u")return;["calcite-scrim","calcite-loader"].forEach(t=>{switch(t){case"calcite-scrim":customElements.get(t)||customElements.define(t,nq);break;case"calcite-loader":customElements.get(t)||va();break}})}var cI,uI,tq,rq,nq,dI=L(()=>{Ot();_a();ac();ps();Kr();sw();cI={scrim:"scrim",content:"content"},uI={s:72,l:480},tq=":host{--calcite-scrim-background:var(--calcite-color-transparent-scrim);position:absolute;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity:0}100%{--tw-text-opacity:1}}.scrim{position:absolute;inset:0px;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-color-transparent-scrim))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}",rq=tq,nq=Dt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.resizeObserver=Ir("resize",()=>this.handleResize()),this.handleDefaultSlotChange=t=>{this.hasContent=ZM(t)},this.storeLoaderEl=t=>{this.loaderEl=t,this.handleResize()},this.loading=!1,this.messages=void 0,this.messageOverrides=void 0,this.loaderScale=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.hasContent=!1}onMessagesChange(){}effectiveLocaleChange(){Pi(this,this.effectiveLocale)}connectedCallback(){Mi(this),Ai(this),this.resizeObserver?.observe(this.el)}async componentWillLoad(){await Ii(this)}disconnectedCallback(){Li(this),Ni(this),this.resizeObserver?.disconnect()}render(){let{hasContent:t,loading:r,messages:n}=this;return X("div",{key:"8a78d64b0efe56e14f45b20f762872bfa92e4b55",class:cI.scrim},r?X("calcite-loader",{label:n.loading,ref:this.storeLoaderEl,scale:this.loaderScale}):null,X("div",{key:"6602698fbbf1ff03c92ee28c8d59f7a023a84498",class:cI.content,hidden:!t},X("slot",{key:"dff9d95e751fec33ea9e68c12dca129050689a61",onSlotchange:this.handleDefaultSlotChange})))}getScale(t){return t<uI.s?"s":t>=uI.l?"l":"m"}handleResize(){let{loaderEl:t,el:r}=this;t&&(this.loaderScale=this.getScale(Math.min(r.clientHeight,r.clientWidth)??0))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return rq}},[1,"calcite-scrim",{loading:[516],messages:[1040],messageOverrides:[1040],loaderScale:[32],defaultMessages:[32],effectiveLocale:[32],hasContent:[32]},void 0,{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);VS()});var hI={};li(hI,{CalciteModal:()=>aq,defineCustomElement:()=>lq});function mI(){if(typeof customElements>"u")return;["calcite-modal","calcite-icon","calcite-loader","calcite-scrim"].forEach(t=>{switch(t){case"calcite-modal":customElements.get(t)||customElements.define(t,pI);break;case"calcite-icon":customElements.get(t)||ni();break;case"calcite-loader":customElements.get(t)||va();break;case"calcite-scrim":customElements.get(t)||VS();break}})}var Ke,iq,ii,oq,sq,US,fI,pI,aq,lq,gI=L(()=>{Ot();DS();Kr();nI();jd();ps();$S();_a();ac();ic();lI();lc();sw();dI();Ke={modal:"modal",title:"title",header:"header",footer:"footer",scrim:"scrim",back:"back",close:"close",secondary:"secondary",primary:"primary",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",content:"content",contentNoFooter:"content--no-footer",contentBottom:"content-bottom",contentTop:"content-top",openingIdle:"modal--opening-idle",openingActive:"modal--opening-active",closingIdle:"modal--closing-idle",closingActive:"modal--closing-active"},iq={close:"x"},ii={content:"content",contentBottom:"content-bottom",contentTop:"content-top",header:"header",back:"back",secondary:"secondary",primary:"primary"},oq=`:host{--calcite-modal-scrim-background:rgba(0, 0, 0, 0.85);position:absolute;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-scrim-background-internal:rgba(0, 0, 0, 0.85)}.content-top[hidden],.content-bottom[hidden]{display:none}.container{position:fixed;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([scale=s]){--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:var(--calcite-modal-scrim-background, var(--calcite-color-transparent-scrim));position:fixed;inset:0px;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:var(--calcite-z-index-modal);float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-color-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}.modal--opening-idle{transform:var(--calcite-modal-hidden-position)}.modal--opening-active{transform:var(--calcite-modal-shown-position)}.modal--closing-idle{transform:var(--calcite-modal-shown-position)}.modal--closing-active{transform:var(--calcite-modal-hidden-position)}:host([opened]){opacity:1;visibility:visible !important;transition-delay:0ms}.container--open{opacity:1;visibility:visible !important;transition-delay:0ms}.container--open .modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}.header{z-index:var(--calcite-z-index-header);display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto}.close{order:2;margin:0px;cursor:pointer;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
71
+ -2px *
72
+ calc(
73
+ 1 -
74
+ 2 * clamp(
75
+ 0,
76
+ var(--calcite-offset-invert-focus),
77
+ 1
78
+ )
79
+ )
80
+ )}.close:hover,.close:focus,.close:active{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.title{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1);font-size:var(--calcite-modal-title-text-internal)}.content{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0px;background-color:var(--calcite-modal-content-background, var(--calcite-color-foreground-1));max-block-size:100%;padding:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}.content-top,.content-bottom{z-index:var(--calcite-z-index-header);display:flex;border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding:var(--calcite-modal-padding-internal)}.content-top{min-inline-size:0px;max-inline-size:100%;border-block-end-width:1px}.content-bottom{margin-block-start:auto;box-sizing:border-box;inline-size:100%;justify-content:space-between;border-block-start-width:1px}.content-top:not(.header~.content-top){border-start-start-radius:0.25rem;border-start-end-radius:0.25rem}.content-bottom:not(.content-bottom~.footer),.content--no-footer{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-context-text-internal)}.footer{z-index:var(--calcite-z-index-header);margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-inline-end:auto}.secondary{margin-inline:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width-scale=s]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 32rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 35rem){:host([width-scale=s]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=s]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=s][docked]) .container{align-items:flex-end}}:host([width-scale=m]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 48rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 51rem){:host([width-scale=m]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=m]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=m][docked]) .container{align-items:flex-end}}:host([width-scale=l]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 94rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 97rem){:host([width-scale=l]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=l]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=l][docked]) .container{align-items:flex-end}}:host([fullscreen]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;flex:1 1 auto}:host([opened][fullscreen]) .header,:host([opened][fullscreen]) .footer,:host([opened][fullscreen]) .content-top,:host([opened][fullscreen]) .content-bottom{border-radius:0}:host([docked]) .modal{block-size:var(--calcite-modal-height, auto)}:host([docked]) .content{block-size:auto;flex:1 1 auto}:host([kind=brand]) .modal{border-color:var(--calcite-color-brand)}:host([kind=danger]) .modal{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .modal{border-color:var(--calcite-color-status-info)}:host([kind=success]) .modal{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .modal{border-color:var(--calcite-color-status-warning)}:host([kind=brand]) .modal,:host([kind=danger]) .modal,:host([kind=info]) .modal,:host([kind=success]) .modal,:host([kind=warning]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([kind=brand]) .header,:host([kind=brand]) .content-top,:host([kind=danger]) .header,:host([kind=danger]) .content-top,:host([kind=info]) .header,:host([kind=info]) .content-top,:host([kind=success]) .header,:host([kind=success]) .content-top,:host([kind=warning]) .header,:host([kind=warning]) .content-top{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){* slot[name=header]::slotted(content-top),* content-top::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer,.content-bottom{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer,.content-bottom{flex-direction:column}.back,.secondary{margin:0px;margin-block-end:0.25rem}}.container--embedded{position:absolute;pointer-events:auto}.container--embedded calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}`,sq=oq,US=0,fI="";aI.deprecated("component",{name:"modal",removalVersion:4,suggested:"dialog"});pI=Dt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteModalBeforeClose=yr(this,"calciteModalBeforeClose",6),this.calciteModalClose=yr(this,"calciteModalClose",6),this.calciteModalBeforeOpen=yr(this,"calciteModalBeforeOpen",6),this.calciteModalOpen=yr(this,"calciteModalOpen",6),this.ignoreOpenChange=!1,this.mutationObserver=Ir("mutation",()=>this.handleMutationObserver()),this.cssVarObserver=Ir("mutation",()=>{this.updateSizeCssVars()}),this.openTransitionProp="opacity",this.setTransitionEl=t=>{this.transitionEl=t},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd)},this.handleCloseClick=()=>{this.open=!1},this.handleOutsideClose=()=>{this.outsideCloseDisabled||(this.open=!1)},this.closeModal=async()=>{if(this.beforeClose)try{await this.beforeClose(this.el)}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}US--,this.opened=!1,this.removeOverflowHiddenClass()},this.handleMutationObserver=()=>{this.updateFooterVisibility(),this.updateFocusTrapElements()},this.updateFooterVisibility=()=>{this.hasFooter=!!ro(this.el,[ii.back,ii.primary,ii.secondary])},this.updateSizeCssVars=()=>{this.cssWidth=getComputedStyle(this.el).getPropertyValue("--calcite-modal-width"),this.cssHeight=getComputedStyle(this.el).getPropertyValue("--calcite-modal-height")},this.contentTopSlotChangeHandler=t=>{this.hasContentTop=jg(t)},this.contentBottomSlotChangeHandler=t=>{this.hasContentBottom=jg(t)},this.open=!1,this.opened=!1,this.beforeClose=void 0,this.closeButtonDisabled=!1,this.focusTrapDisabled=!1,this.outsideCloseDisabled=!1,this.docked=void 0,this.embedded=!1,this.escapeDisabled=!1,this.scale="m",this.widthScale="m",this.fullscreen=void 0,this.kind=void 0,this.messages=void 0,this.messageOverrides=void 0,this.cssWidth=void 0,this.cssHeight=void 0,this.hasFooter=!0,this.hasContentTop=!1,this.hasContentBottom=!1,this.effectiveLocale=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(t){this.open&&(t?dw(this):OS(this))}onMessagesChange(){}async componentWillLoad(){await Ii(this),us(this),this.open&&this.openModal()}componentDidLoad(){ds(this)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.cssVarObserver?.observe(this.el,{attributeFilter:["style"]}),this.updateSizeCssVars(),this.updateFooterVisibility(),lw(this),Mi(this),Ai(this),tI(this)}disconnectedCallback(){this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),this.cssVarObserver?.disconnect(),cw(this),dw(this),Li(this),Ni(this),this.embedded=!1}render(){return X(fn,{key:"8564a697a28ed4b7901302a1737337cac97cfc5e","aria-describedby":this.contentId,"aria-labelledby":this.titleId,"aria-modal":"true",role:"dialog"},X("div",{key:"c0ecd13e2214b8a7a6239b19117a41570d46ff22",class:{[Ke.container]:!0,[Ke.containerOpen]:this.opened,[Ke.containerEmbedded]:this.embedded}},X("calcite-scrim",{key:"8083cb49047c5fe80ba6cdc6b842de6dac5a8b37",class:Ke.scrim,onClick:this.handleOutsideClose}),this.renderStyle(),X("div",{key:"d38c9e98e8b34626dc11bfaa73f71a0debc36fad",class:{[Ke.modal]:!0},ref:this.setTransitionEl},X("div",{key:"9bc1a0823ddf4621b52db89237fe73344b3351a5",class:Ke.header},this.renderCloseButton(),X("header",{key:"97d3a927123332d087366a90a406be6f10ce16a3",class:Ke.title},X("slot",{key:"c7540bb4381dec0b88b18f0732a90b862d30c557",name:Ke.header}))),this.renderContentTop(),X("div",{key:"fe8943411971950170fabeac8bb79d2af7338227",class:{[Ke.content]:!0,[Ke.contentNoFooter]:!this.hasFooter},ref:t=>this.modalContent=t},X("slot",{key:"c31734ea1ea7aca1a625c8ac606c75500ae72021",name:ii.content})),this.renderContentBottom(),this.renderFooter())))}renderFooter(){return this.hasFooter?X("div",{class:Ke.footer,key:"footer"},X("span",{class:Ke.back},X("slot",{name:ii.back})),X("span",{class:Ke.secondary},X("slot",{name:ii.secondary})),X("span",{class:Ke.primary},X("slot",{name:ii.primary}))):null}renderContentTop(){return X("div",{class:Ke.contentTop,hidden:!this.hasContentTop},X("slot",{name:ii.contentTop,onSlotchange:this.contentTopSlotChangeHandler}))}renderContentBottom(){return X("div",{class:Ke.contentBottom,hidden:!this.hasContentBottom},X("slot",{name:ii.contentBottom,onSlotchange:this.contentBottomSlotChangeHandler}))}renderCloseButton(){return this.closeButtonDisabled?null:X("button",{"aria-label":this.messages.close,class:Ke.close,key:"button",onClick:this.handleCloseClick,ref:t=>this.closeButtonEl=t,title:this.messages.close},X("calcite-icon",{icon:iq.close,scale:en(this.scale)}))}renderStyle(){if(!this.fullscreen&&(this.cssWidth||this.cssHeight))return X("style",null,`.${Ke.container} {
81
+ ${this.docked&&this.cssWidth?"align-items: center !important;":""}
82
+ }
83
+ .${Ke.modal} {
84
+ block-size: ${this.cssHeight?this.cssHeight:"auto"} !important;
85
+ ${this.cssWidth?`inline-size: ${this.cssWidth} !important;`:""}
86
+ ${this.cssWidth?`max-inline-size: ${this.cssWidth} !important;`:""}
87
+ ${this.docked?"border-radius: var(--calcite-border-radius) !important;":""}
88
+ }
89
+ @media screen and (max-width: ${this.cssWidth}) {
90
+ .${Ke.container} {
91
+ ${this.docked?"align-items: flex-end !important;":""}
92
+ }
93
+ .${Ke.modal} {
94
+ max-block-size: 100% !important;
95
+ inline-size: 100% !important;
96
+ max-inline-size: 100% !important;
97
+ min-inline-size: 100% !important;
98
+ margin: 0 !important;
99
+ ${this.docked?"":"block-size: 100% !important;"}
100
+ ${this.docked?"":"border-radius: 0 !important;"}
101
+ ${this.docked?"border-radius: var(--calcite-border-radius) var(--calcite-border-radius) 0 0 !important;":""}
102
+ }
103
+ }
104
+ `)}effectiveLocaleChange(){Pi(this,this.effectiveLocale)}handleEscape(t){this.open&&!this.escapeDisabled&&t.key==="Escape"&&!t.defaultPrevented&&(this.open=!1,t.preventDefault())}async setFocus(){await fs(this),jM(this.el)}async updateFocusTrapElements(){rI(this)}async scrollContent(t=0,r=0){this.modalContent&&(this.modalContent.scrollTo?this.modalContent.scrollTo({top:t,left:r,behavior:"smooth"}):(this.modalContent.scrollTop=t,this.modalContent.scrollLeft=r))}onBeforeOpen(){this.transitionEl.classList.add(Ke.openingActive),this.calciteModalBeforeOpen.emit()}onOpen(){this.transitionEl.classList.remove(Ke.openingIdle,Ke.openingActive),this.calciteModalOpen.emit(),OS(this)}onBeforeClose(){this.transitionEl.classList.add(Ke.closingActive),this.calciteModalBeforeClose.emit()}onClose(){this.transitionEl.classList.remove(Ke.closingIdle,Ke.closingActive),this.calciteModalClose.emit(),dw(this)}toggleModal(t){this.ignoreOpenChange||(t?this.openModal():this.closeModal())}handleOpenedChange(t){let r=t?Ke.openingIdle:Ke.closingIdle;this.transitionEl.classList.add(r),Xd(this)}async openModal(){await ew(this.el),this.el.addEventListener("calciteModalOpen",this.openEnd),this.opened=!0;let t=ro(this.el,ii.header),r=ro(this.el,ii.content);this.titleId=fS(t),this.contentId=fS(r),this.embedded||(US===0&&(fI=document.documentElement.style.overflow),US++,document.documentElement.style.setProperty("overflow","hidden"))}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",fI)}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"],open:["toggleModal"],opened:["handleOpenedChange"]}}static get style(){return sq}},[1,"calcite-modal",{open:[1540],opened:[1540],beforeClose:[16],closeButtonDisabled:[516,"close-button-disabled"],focusTrapDisabled:[516,"focus-trap-disabled"],outsideCloseDisabled:[516,"outside-close-disabled"],docked:[516],embedded:[1028],escapeDisabled:[516,"escape-disabled"],scale:[513],widthScale:[513,"width-scale"],fullscreen:[516],kind:[513],messages:[1040],messageOverrides:[1040],cssWidth:[32],cssHeight:[32],hasFooter:[32],hasContentTop:[32],hasContentBottom:[32],effectiveLocale:[32],defaultMessages:[32],setFocus:[64],updateFocusTrapElements:[64],scrollContent:[64]},[[8,"keydown","handleEscape"]],{focusTrapDisabled:["handleFocusTrapDisabled"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"],open:["toggleModal"],opened:["handleOpenedChange"]}]);mI();aq=pI,lq=mI});var WS,wI=L(()=>{WS={brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"}});var _I={};li(_I,{CalciteNotice:()=>dq,defineCustomElement:()=>fq});function bI(){if(typeof customElements>"u")return;["calcite-notice","calcite-icon"].forEach(t=>{switch(t){case"calcite-notice":customElements.get(t)||customElements.define(t,yI);break;case"calcite-icon":customElements.get(t)||ni();break}})}var Qd,Kd,cq,uq,yI,dq,fq,vI=L(()=>{Ot();DS();Kr();jd();_a();ac();wI();$S();ic();lc();Qd={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},Kd={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"},cq=`:host([scale=s]){--calcite-notice-spacing-token-small:0.5rem;--calcite-notice-spacing-token-large:0.75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .notice-close{padding:0.5rem}:host([scale=m]){--calcite-notice-spacing-token-small:0.75rem;--calcite-notice-spacing-token-large:1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=l]){--calcite-notice-spacing-token-small:1rem;--calcite-notice-spacing-token-large:1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([width=auto]){--calcite-notice-width:auto}:host([width=half]){--calcite-notice-width:50%}:host([width=full]){--calcite-notice-width:100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:none;inline-size:100%;background-color:var(--calcite-color-foreground-1);opacity:0;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;max-block-size:0;text-align:start;border-inline-start:0 solid;box-shadow:0 0 0 0 transparent}.notice-close{outline-color:transparent}.notice-close:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
105
+ -2px *
106
+ calc(
107
+ 1 -
108
+ 2 * clamp(
109
+ 0,
110
+ var(--calcite-offset-invert-focus),
111
+ 1
112
+ )
113
+ )
114
+ )}:host{display:flex}:host([open]) .container{pointer-events:auto;display:flex;max-block-size:100%;align-items:center;border-width:2px;opacity:1;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0px;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0px;display:inline;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);margin-inline-end:var(--calcite-notice-spacing-token-small)}.notice-content{box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto}.notice-close{display:flex;cursor:pointer;align-items:center;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline:2px solid transparent;outline-offset:2px;box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;-webkit-appearance:none}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.notice-close:active{background-color:var(--calcite-color-foreground-3)}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-color:var(--calcite-color-brand)}:host([kind=brand]) .container .notice-icon{color:var(--calcite-color-brand)}:host([kind=info]) .container{border-color:var(--calcite-color-status-info)}:host([kind=info]) .container .notice-icon{color:var(--calcite-color-status-info)}:host([kind=danger]) .container{border-color:var(--calcite-color-status-danger)}:host([kind=danger]) .container .notice-icon{color:var(--calcite-color-status-danger)}:host([kind=success]) .container{border-color:var(--calcite-color-status-success)}:host([kind=success]) .container .notice-icon{color:var(--calcite-color-status-success)}:host([kind=warning]) .container{border-color:var(--calcite-color-status-warning)}:host([kind=warning]) .container .notice-icon{color:var(--calcite-color-status-warning)}:host([hidden]){display:none}[hidden]{display:none}`,uq=cq,yI=Dt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteNoticeBeforeClose=yr(this,"calciteNoticeBeforeClose",6),this.calciteNoticeBeforeOpen=yr(this,"calciteNoticeBeforeOpen",6),this.calciteNoticeClose=yr(this,"calciteNoticeClose",6),this.calciteNoticeOpen=yr(this,"calciteNoticeOpen",6),this.setTransitionEl=t=>{this.transitionEl=t},this.close=()=>{this.open=!1},this.openTransitionProp="opacity",this.open=!1,this.kind="brand",this.closable=!1,this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.width="auto",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}openHandler(){Xd(this)}onMessagesChange(){}updateRequestedIcon(){this.requestedIcon=no(WS,this.icon,this.kind)}connectedCallback(){lw(this),Mi(this),Ai(this)}disconnectedCallback(){cw(this),Li(this),Ni(this)}async componentWillLoad(){us(this),this.requestedIcon=no(WS,this.icon,this.kind),await Ii(this),this.open&&Xd(this)}componentDidLoad(){ds(this)}render(){let{el:t}=this,r=X("button",{key:"4de511d4d93ee2078a4ed0d5fee2397d4d433691","aria-label":this.messages.close,class:Kd.close,onClick:this.close,ref:i=>this.closeButton=i},X("calcite-icon",{key:"bb983d2377b1f8c20b9d23cb63f258b4b6a670d9",icon:"x",scale:en(this.scale)})),n=ro(t,Qd.actionsEnd);return X("div",{key:"d83f3161115f422c6a6bc8591a2763f0ab17dd83",class:Kd.container,ref:this.setTransitionEl},this.requestedIcon?X("div",{class:Kd.icon},X("calcite-icon",{flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:en(this.scale)})):null,X("div",{key:"3851d512eaea58676aa7c3de513e4aedf4e644c9",class:Kd.content},X("slot",{key:"6393d41eb420b92fc94467c108fc5aa4ab6e941c",name:Qd.title}),X("slot",{key:"f750570f0675e9f3ef9f76ed8362e848e5c6311c",name:Qd.message}),X("slot",{key:"2c8ded4623c885d3b2d9897c7c402f96dffbc8d7",name:Qd.link})),n?X("div",{class:Kd.actionsEnd},X("slot",{name:Qd.actionsEnd})):null,this.closable?r:null)}async setFocus(){await fs(this);let t=this.el.querySelector("calcite-link");if(!(!this.closeButton&&!t)){if(t)return t.setFocus();this.closeButton&&this.closeButton.focus()}}onBeforeClose(){this.calciteNoticeBeforeClose.emit()}onBeforeOpen(){this.calciteNoticeBeforeOpen.emit()}onClose(){this.calciteNoticeClose.emit()}onOpen(){this.calciteNoticeOpen.emit()}effectiveLocaleChange(){Pi(this,this.effectiveLocale)}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{open:["openHandler"],messageOverrides:["onMessagesChange"],icon:["updateRequestedIcon"],kind:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return uq}},[1,"calcite-notice",{open:[1540],kind:[513],closable:[516],icon:[520],iconFlipRtl:[516,"icon-flip-rtl"],scale:[513],width:[513],messages:[1040],messageOverrides:[1040],effectiveLocale:[32],defaultMessages:[32],setFocus:[64]},void 0,{open:["openHandler"],messageOverrides:["onMessagesChange"],icon:["updateRequestedIcon"],kind:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}]);bI();dq=yI,fq=bI});var zS,BS,pq,hn,GS,SI=L(()=>{ir();eg();or();Ge();Ze();To();Zt();EM();rS();mg();MM();IM();AM();nv();zS="esri-identity-modal",BS={base:zS,info:`${zS}__info`,notice:`${zS}__notice`},pq="ArcGIS Online",hn=class extends TM{constructor(e,t){super(e,t),this.container=document.createElement("div"),this.error=null,this.oAuthPrompt=!1,this.open=!1,this.signingIn=!1,this.server=null,this.resource=null,this._usernameInputNode=null,this._passwordInputNode=null,document.body.appendChild(this.container)}loadDependencies(){return yM({button:()=>Promise.resolve().then(()=>(DL(),RL)),input:()=>Promise.resolve().then(()=>(jL(),qL)),label:()=>Promise.resolve().then(()=>(YL(),ZL)),modal:()=>Promise.resolve().then(()=>(gI(),hI)),notice:()=>Promise.resolve().then(()=>(vI(),_I))})}get title(){return this.commonMessages?.auth.signIn}render(){let{open:e,title:t,messages:r,signingIn:n,oAuthPrompt:i,server:o,resource:s,error:a}=this,{info:u,oAuthInfo:d,lblItem:p,invalidUser:m,noAuthService:w,lblUser:_,lblPwd:S,lblCancel:T,lblSigning:M,lblOk:R}=r;return zr("div",{class:this.classes(BS.base,PM())},zr("form",{bind:this,onsubmit:this._submit},zr("calcite-modal",{bind:this,open:e,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteModalClose:this._cancel,onCalciteModalOpen:this._focusUsernameInput},zr("div",{slot:"header"},t),zr("div",{slot:"content"},zr("div",{class:BS.info},tv(i?d:u,{server:o&&/\.arcgis\.com/i.test(o)?pq:o,resource:`(${s||p})`})),a?zr("calcite-notice",{class:BS.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},zr("div",{slot:"message"},a.details?.httpStatus?m:w)):null,i?null:[zr("calcite-label",null,_,zr("calcite-input",{afterCreate:I=>this._usernameInputNode=I,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),zr("calcite-label",null,S,zr("calcite-input",{afterCreate:I=>this._passwordInputNode=I,bind:this,name:"password",required:!0,type:"password",value:""}))]),zr("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"secondary",type:"button",width:"full"},T),zr("calcite-button",{loading:!!n,slot:"primary",type:"submit",width:"full"},n?M:R))))}_focusUsernameInput(){requestAnimationFrame(()=>{this._usernameInputNode?.setFocus()})}_cancel(){this._set("signingIn",!1),this.open=!1,this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(e){e.preventDefault(),this._set("signingIn",!0);let t=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",t)}};O([H({readOnly:!0})],hn.prototype,"container",void 0),O([H(),aS("esri/t9n/common")],hn.prototype,"commonMessages",void 0),O([H()],hn.prototype,"error",void 0),O([H(),aS("esri/identity/t9n/identity")],hn.prototype,"messages",void 0),O([H()],hn.prototype,"oAuthPrompt",void 0),O([H()],hn.prototype,"open",void 0),O([H()],hn.prototype,"signingIn",void 0),O([H()],hn.prototype,"server",void 0),O([H({readOnly:!0})],hn.prototype,"title",null),O([H()],hn.prototype,"resource",void 0),hn=O([Pe("esri.identity.IdentityModal")],hn);GS=hn});var qS,fc,xI=L(()=>{qS="esriJSAPIOAuth",fc=class{constructor(t,r){this.oAuthInfo=null,this.storage=null,this.appId=null,this.codeVerifier=null,this.expires=null,this.refreshToken=null,this.ssl=null,this.stateUID=null,this.token=null,this.userId=null,this.oAuthInfo=t,this.storage=r,this._init()}isValid(){let t=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token)){if(this.expires==null&&this.refreshToken)t=!0;else if(this.expires){let r=Date.now();this.expires>r&&(this.expires-r)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(t=!0)}}return t}save(){if(!this.storage)return!1;let t=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=t[r.authNamespace];n||(n=t[r.authNamespace]={}),this.appId||(this.appId=r.appId),n[r.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,token:this.token,userId:this.userId};try{this.storage.setItem(qS,JSON.stringify(t))}catch(i){return console.warn(i),!1}return!0}return!1}destroy(){let t=this._load(),r=this.oAuthInfo;if(r?.appId&&r?.portalUrl&&(this.expires==null||this.expires>Date.now())&&(this.refreshToken||this.token)){let n=r.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",i=new FormData;if(i.append("f","json"),i.append("auth_token",this.refreshToken||this.token),i.append("client_id",r.appId),i.append("token_type_hint",this.refreshToken?"refresh_token":"access_token"),typeof navigator.sendBeacon=="function")navigator.sendBeacon(n,i);else{let o=new XMLHttpRequest;o.open("POST",n),o.send(i)}}if(r?.authNamespace&&r.portalUrl&&this.storage){let n=t[r.authNamespace];if(n){delete n[r.portalUrl];try{this.storage.setItem(qS,JSON.stringify(t))}catch(i){console.log(i)}}}r&&(r._oAuthCred=null,this.oAuthInfo=null)}_init(){let t=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=t[r.authNamespace];n&&(n=n[r.portalUrl],n&&(this.appId=n.appId,this.codeVerifier=n.codeVerifier,this.expires=n.expires,this.refreshToken=n.refreshToken,this.ssl=n.ssl,this.stateUID=n.stateUID,this.token=n.token,this.userId=n.userId))}}_load(){let t={};if(this.storage){let r=this.storage.getItem(qS);if(r)try{t=JSON.parse(r)}catch(n){console.warn(n)}}return t}};fc.prototype.declaredClass="esri.identity.OAuthCredential"});var jS,br,HS,CI=L(()=>{ir();ta();or();Ge();Ze();To();Zt();br=jS=class extends Si{constructor(e){super(e),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.flowType="auto",this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return jS.fromJSON(this.toJSON())}};O([H({json:{write:!0}})],br.prototype,"appId",void 0),O([H({json:{write:!0}})],br.prototype,"authNamespace",void 0),O([H({json:{write:!0}})],br.prototype,"expiration",void 0),O([H({json:{write:!0}})],br.prototype,"flowType",void 0),O([H({json:{write:!0}})],br.prototype,"forceLogin",void 0),O([H({json:{write:!0}})],br.prototype,"forceUserId",void 0),O([H({json:{write:!0}})],br.prototype,"locale",void 0),O([H({json:{write:!0}})],br.prototype,"minTimeUntilExpiration",void 0),O([H({json:{write:!0}})],br.prototype,"popup",void 0),O([H({json:{write:!0}})],br.prototype,"popupCallbackUrl",void 0),O([H({json:{write:!0}})],br.prototype,"popupWindowFeatures",void 0),O([H({json:{write:!0}})],br.prototype,"portalUrl",void 0),O([H({json:{write:!0}})],br.prototype,"preserveUrlHash",void 0),O([H({json:{write:!0}})],br.prototype,"userId",void 0),br=jS=O([Pe("esri.identity.OAuthInfo")],br);HS=br});var gn,fw,TI=L(()=>{ir();ta();or();Ge();Ze();To();Zt();gn=class extends Si{constructor(e){super(e),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null}};O([H({json:{write:!0}})],gn.prototype,"adminTokenServiceUrl",void 0),O([H({json:{write:!0}})],gn.prototype,"currentVersion",void 0),O([H({json:{write:!0}})],gn.prototype,"hasPortal",void 0),O([H({json:{write:!0}})],gn.prototype,"hasServer",void 0),O([H({json:{write:!0}})],gn.prototype,"owningSystemUrl",void 0),O([H({json:{write:!0}})],gn.prototype,"owningTenant",void 0),O([H({json:{write:!0}})],gn.prototype,"server",void 0),O([H({json:{write:!0}})],gn.prototype,"shortLivedTokenValidity",void 0),O([H({json:{write:!0}})],gn.prototype,"tokenServiceUrl",void 0),O([H({json:{write:!0}})],gn.prototype,"webTierAuth",void 0),gn=O([Pe("esri.identity.ServerInfo")],gn);fw=gn});var pw,EI,ZS,mw,hw,ef,pt,MI=L(()=>{ir();Hs();j0();Q0();Er();H0();md();tr();hi();bi();Ko();or();Ge();Ze();Zt();SI();xI();CI();TI();$0();pw={},EI=e=>{let t=new Lr(e.owningSystemUrl).host,r=new Lr(e.server).host,n=/.+\.arcgis\.com$/i;return n.test(t)&&n.test(r)},ZS=(e,t)=>!!(EI(e)&&t&&t.some(r=>r.test(e.server))),mw=null,hw=null;try{mw=window.localStorage,hw=window.sessionStorage}catch{}ef=class extends na{constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this._defaultOAuthInfo=null,this._defaultTokenValidity=60,this.dialog=null,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin=window.origin!=="null"?window.origin:window.location.origin,this._appUrlObj=Yo(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthLocationParams=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^/]+\/[^/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|KnowledgeGraphServer|MapServer|MissionServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer|VideoServer)).*/gi,this._gwUser=/http.+\/users\/([^/]+).*/i,this._gwItem=/http.+\/items\/([^/]+).*/i,this._gwGroup=/http.+\/groups\/([^/]+).*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getPlatformSelfError=null,this._getOAuthLocationParams(),window.addEventListener("pageshow",t=>{this._pageShowHandler(t)})}registerServers(t){let r=this.serverInfos;r?(t=t.filter(n=>!this.findServerInfo(n.server)),this.serverInfos=r.concat(t)):this.serverInfos=t,t.forEach(n=>{n.owningSystemUrl&&this._portals.push(n.owningSystemUrl),n.hasPortal&&this._portals.push(n.server)})}registerOAuthInfos(t){let r=this.oAuthInfos;if(r){for(let n of t){let i=this.findOAuthInfo(n.portalUrl);i&&r.splice(r.indexOf(i),1)}this.oAuthInfos=r.concat(t)}else this.oAuthInfos=t}registerToken(t){t={...t};let r=this._sanitizeUrl(t.server),n=this._isServerRsrc(r),i,o=this.findServerInfo(r),s=!0;o||(o=new fw,o.server=this._getServerInstanceRoot(r),n?o.hasServer=!0:(o.tokenServiceUrl=this._getTokenSvcUrl(r),o.hasPortal=!0),this.registerServers([o])),i=this._findCredential(r),i?(delete t.server,Object.assign(i,t),s=!1):(i=new pt({userId:t.userId,server:o.server??void 0,token:t.token,expires:t.expires,ssl:t.ssl,scope:n?"server":"portal"}),i.resources=[r],this.credentials.push(i)),i.emitTokenChange(!1),s||i.refreshServerTokens()}toJSON(){return _1({serverInfos:this.serverInfos.map(t=>t.toJSON()),oAuthInfos:this.oAuthInfos.map(t=>t.toJSON()),credentials:this.credentials.map(t=>t.toJSON())})}initialize(t){if(!t)return;typeof t=="string"&&(t=JSON.parse(t));let r=t.serverInfos,n=t.oAuthInfos,i=t.credentials;if(r){let o=[];r.forEach(s=>{s.server&&s.tokenServiceUrl&&o.push(s.declaredClass?s:new fw(s))}),o.length&&this.registerServers(o)}if(n){let o=[];n.forEach(s=>{s.appId&&o.push(s.declaredClass?s:new HS(s))}),o.length&&this.registerOAuthInfos(o)}i&&i.forEach(o=>{o.server&&o.token&&o.expires&&o.expires>Date.now()&&((o=o.declaredClass?o:new pt(o)).emitTokenChange(),this.credentials.push(o))})}findServerInfo(t){let r;t=this._sanitizeUrl(t);for(let n of this.serverInfos)if(this._hasSameServerInstance(n.server,t)){r=n;break}return r}findOAuthInfo(t){let r;t=this._sanitizeUrl(t);for(let n of this.oAuthInfos)if(this._hasSameServerInstance(n.portalUrl,t)){r=n;break}return r}findCredential(t,r){if(!t)return;let n;t=this._sanitizeUrl(t);let i=this._isServerRsrc(t)?"server":"portal";if(r){for(let o of this.credentials)if(this._hasSameServerInstance(o.server,t)&&r===o.userId&&o.scope===i){n=o;break}}else for(let o of this.credentials)if(this._hasSameServerInstance(o.server,t)&&this._getIdenticalSvcIdx(t,o)!==-1&&o.scope===i){n=o;break}return n}getCredential(t,r){let n,i,o=!0;r&&(n=!!r.token,i=r.error,o=r.prompt!==!1),r={...r},t=this._sanitizeUrl(t);let s=new AbortController,a=un();if(r.signal&&cn(r.signal,()=>{s.abort()}),cn(s,()=>{a.reject(new ye("identity-manager:user-aborted","ABORTED"))}),Ho(s))return a.promise;r.signal=s.signal;let u=this._isAdminResource(t),d=n?this.findCredential(t):null,p;if(d&&i&&i.details&&i.details.httpStatus===498)d.destroy();else if(d)return p=new ye("identity-manager:not-authorized","You are currently signed in as: '"+d.userId+"'. You do not have access to this resource: "+t,{error:i}),a.reject(p),a.promise;let m=this._findCredential(t,r);if(m)return a.resolve(m),a.promise;let w=this.findServerInfo(t);if(w)!w.hasPortal&&w.server&&w.owningSystemUrl&&this._hasSameServerInstance(w.server,w.owningSystemUrl)&&(w.hasPortal=!0),!w.hasServer&&this._isServerRsrc(t)&&(w._restInfoPms=this._getTokenSvcUrl(t),w.hasServer=!0);else{let _=this._getTokenSvcUrl(t);if(!_)return p=new ye("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),a.reject(p),a.promise;w=new fw,w.server=this._getServerInstanceRoot(t),typeof _=="string"?(w.tokenServiceUrl=_,w.hasPortal=!0):(w._restInfoPms=_,w.hasServer=!0),this.registerServers([w])}return w.hasPortal&&w._selfReq===void 0&&(o||Wr(w.tokenServiceUrl,this._appOrigin)||this._gwDomains.some(_=>_.tokenServiceUrl===w.tokenServiceUrl))&&(w._selfReq={owningTenant:r?.owningTenant,selfDfd:this._getPortalSelf(w.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),t)}),this._enqueue(t,w,r,a,u)}getResourceName(t){return this._isRESTService(t)?t.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(t)&&t.replace(this._gwUser,"$1")||this._gwItem.test(t)&&t.replace(this._gwItem,"$1")||this._gwGroup.test(t)&&t.replace(this._gwGroup,"$1")||""}generateToken(t,r,n){let i=this._rePortalTokenSvc.test(t.tokenServiceUrl),o=new Lr(this._appOrigin),s=t.shortLivedTokenValidity,a,u,d,p,m,w,_,S;r&&(S=this.tokenValidity||s||this._defaultTokenValidity,S>s&&s>0&&(S=s)),n&&(a=n.isAdmin,u=n.serverUrl,d=n.token,w=n.signal,_=n.ssl,t.customParameters=n.customParameters),a?p=t.adminTokenServiceUrl:(p=t.tokenServiceUrl,m=new Lr(p.toLowerCase()),t.webTierAuth&&n?.serverUrl&&!_&&o.scheme==="http"&&(Wr(o.uri,p,!0)||m.scheme==="https"&&o.host===m.host&&o.port==="7080"&&m.port==="7443")&&(p=p.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));let T={query:{request:"getToken",username:r?.username,password:r?.password,serverUrl:u,token:d,expiration:S,referer:a||i?this._appOrigin:null,client:a?"referer":null,f:"json",...t.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(t,n),signal:w,...n?.ioArgs};return i||(T.withCredentials=!1),wt(p,T).then(M=>{let R=M.data;if(!R?.token)return new ye("identity-manager:authentication-failed","Unable to generate token");let I=t.server;return pw[I]||(pw[I]={}),r&&(pw[I][r.username]=r.password),R.validity=S,R})}isBusy(){return!!this._busy}async checkSignInStatus(t){return(await this.checkAppAccess(t,"")).credential}checkAppAccess(t,r,n){let i=!1;return this.getCredential(t,{prompt:!1}).then(o=>{let s,a={f:"json"};if(o.scope==="portal")if(r&&(this._doPortalSignIn(t)||n?.force))s=o.server+"/sharing/rest/oauth2/validateAppAccess",a.client_id=r;else{if(!o.token)return{credential:o};s=o.server+"/sharing/rest"}else{if(!o.token)return{credential:o};s=o.server+"/rest/services"}return o.token&&(a.token=o.token),wt(s,{query:a,authMode:"anonymous"}).then(u=>{if(u.data.valid===!1)throw new ye("identity-manager:not-authorized",`You are currently signed in as: '${o.userId}'.`,u.data);return i=!!u.data.viewOnlyUserTypeApp,{credential:o}}).catch(u=>{if(u.name==="identity-manager:not-authorized")throw u;let d=u.details?.httpStatus;if(d===498)throw o.destroy(),new ye("identity-manager:not-authenticated","User is not signed in.");if(d===400)throw new ye("identity-manager:invalid-request");return{credential:o}})}).then(o=>({credential:o.credential,viewOnly:i}))}setOAuthResponseHash(t){t&&(t.charAt(0)==="#"&&(t=t.slice(1)),this._processOAuthPopupParams(Jo(t)))}setOAuthRedirectionHandler(t){this._oAuthRedirectFunc=t}setProtocolErrorHandler(t){this._protocolFunc=t}signIn(t,r,n={}){let i=un(),o=()=>{u?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=u=d=null},s=()=>{o(),this._oAuthDfd=null,i.reject(new ye("identity-manager:user-aborted","ABORTED"))};n.signal&&cn(n.signal,()=>{s()});let a=new GS({open:!0,resource:this.getResourceName(t),server:r.server});this.dialog=a,this.emit("dialog-create");let u=a.on("cancel",s),d=a.on("submit",p=>{this.generateToken(r,p,{isAdmin:n.isAdmin,signal:n.signal}).then(m=>{o();let w=new pt({userId:p.username,server:r.server??void 0,token:m.token,expires:m.expires!=null?Number(m.expires):null,ssl:!!m.ssl,isAdmin:n.isAdmin,validity:m.validity});i.resolve(w)}).catch(m=>{a.error=m,a.signingIn=!1})});return i.promise}oAuthSignIn(t,r,n,i){this._oAuthDfd=un();let o=this._oAuthDfd,s;i?.signal&&cn(i.signal,()=>{let w=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;w&&!w.closed?w.close():this.dialog&&p()}),o.resUrl_=t,o.sinfo_=r,o.oinfo_=n;let a=n._oAuthCred;if(a.storage&&(n.flowType==="authorization-code"||n.flowType==="auto"&&r.currentVersion>=8.4)){let w=crypto.getRandomValues(new Uint8Array(32));s=G0(w),a.codeVerifier=s,w=crypto.getRandomValues(new Uint8Array(32)),a.stateUID=G0(w),a.save()||(a.codeVerifier=s=null)}else a.codeVerifier=null;let u,d;this._getCodeChallenge(s).then(w=>{let _=!i||i.oAuthPopupConfirmation!==!1;if(!n.popup||!_)return void this._doOAuthSignIn(t,r,n,w);let S=new GS({oAuthPrompt:!0,server:r.server,open:!0});this.dialog=S,this.emit("dialog-create"),u=S.on("cancel",p),d=S.on("submit",()=>{m(),this._doOAuthSignIn(t,r,n,w)})});let p=()=>{m(),this._oAuthDfd=null,o.reject(new ye("identity-manager:user-aborted","ABORTED"))},m=()=>{u?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=null};return o.promise}destroyCredentials(){this.credentials&&this.credentials.slice().forEach(t=>{t.destroy()}),this.emit("credentials-destroy")}enablePostMessageAuth(t="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=jo(window,"message",r=>{if((r.origin===this._appOrigin||r.origin.endsWith(".arcgis.com"))&&r.data?.type==="arcgis:auth:requestCredential"){let n=r.source;this.getCredential(t).then(i=>{n.postMessage({type:"arcgis:auth:credential",credential:{expires:i.expires,server:i.server,ssl:i.ssl,token:i.token,userId:i.userId}},r.origin)}).catch(i=>{n.postMessage({type:"arcgis:auth:error",error:{name:i.name,message:i.message}},r.origin)})}})}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthLocationParams(){let t=window.location.hash;if(t){t.charAt(0)==="#"&&(t=t.slice(1));let n=Jo(t),i=!1;if(n.access_token&&n.expires_in&&n.state&&n.hasOwnProperty("username"))try{n.state=JSON.parse(n.state),n.state.portalUrl&&(this._oAuthLocationParams=n,i=!0)}catch{}else if(n.error&&n.error_description&&(console.log("IdentityManager OAuth Error: ",n.error," - ",n.error_description),n.error==="access_denied"&&(i=!0,n.state)))try{n.state=JSON.parse(n.state)}catch{}i&&(window.location.hash=n.state?.hash||"")}let r=window.location.search;if(r){r.charAt(0)==="?"&&(r=r.slice(1));let n=Jo(r),i=!1;if(n.code&&n.state)try{n.state=JSON.parse(n.state),n.state.portalUrl&&n.state.uid&&(this._oAuthLocationParams=n,i=!0)}catch{}else if(n.error&&n.error_description&&(console.log("IdentityManager OAuth Error: ",n.error," - ",n.error_description),n.error==="access_denied"&&(i=!0,n.state)))try{n.state=JSON.parse(n.state)}catch{}if(i){let o={...n};["code","error","error_description","message_code","persist","state"].forEach(u=>{delete o[u]});let s=ra(o),a=window.location.pathname+(s?`?${s}`:"")+(n.state?.hash||"");window.history.replaceState(window.history.state,"",a)}}}_getOAuthToken(t,r,n,i,o){return t=t.replace(/^http:/i,"https:"),wt(`${t}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:i&&o?{grant_type:"authorization_code",code:r,redirect_uri:i,client_id:n,code_verifier:o}:{grant_type:"refresh_token",refresh_token:r,client_id:n}}).then(s=>s.data)}async _getCodeChallenge(t){if(t&&globalThis.isSecureContext){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return G0(new Uint8Array(n))}return null}_pageShowHandler(t){if(t.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){let r=new ye("identity-manager:user-aborted","ABORTED");this._errbackFunc(r)}}_findCredential(t,r){let n,i,o,s,a=-1,u=r?.token,d=r?.resource,p=this._isServerRsrc(t)?"server":"portal",m=this.credentials.filter(w=>this._hasSameServerInstance(w.server,t)&&w.scope===p);if(t=d||t,m.length)if(m.length===1){if(n=m[0],o=this.findServerInfo(n.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,n.userId):void 0,a=this._getIdenticalSvcIdx(t,n),!u)return a===-1&&n.resources.push(t),this._addResource(t,s),n;a!==-1&&(n.resources.splice(a,1),this._removeResource(t,s))}else{let w,_;if(m.some(S=>(_=this._getIdenticalSvcIdx(t,S),_!==-1&&(w=S,o=this.findServerInfo(w.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,w.userId):void 0,a=_,!0))),u)w&&(w.resources.splice(a,1),this._removeResource(t,s));else if(w)return this._addResource(t,s),w}}_findOAuthInfo(t){let r=this.findOAuthInfo(t);if(!r){for(let n of this.oAuthInfos)if(this._isIdProvider(n.portalUrl,t)){r=n;break}}return r}_addResource(t,r){r&&this._getIdenticalSvcIdx(t,r)===-1&&r.resources.push(t)}_removeResource(t,r){let n=-1;r&&(n=this._getIdenticalSvcIdx(t,r),n>-1&&r.resources.splice(n,1))}_useProxy(t,r){return r?.isAdmin&&!Wr(t.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(t.tokenServiceUrl)&&String(t.currentVersion)==="10.1"&&!Wr(t.tokenServiceUrl,this._appOrigin)}_getOrigin(t){let r=new Lr(t);return r.scheme+"://"+r.host+(r.port!=null?":"+r.port:"")}_getServerInstanceRoot(t){let r=t.toLowerCase(),n=r.indexOf(this._agsRest);return n===-1&&this._isAdminResource(t)&&(n=this._agsAdmin.test(t)?t.replace(this._agsAdmin,"$1").length:t.search(this._adminSvcs)),n!==-1||O0(r)||(n=r.indexOf("/sharing")),n===-1&&r.endsWith("/")&&(n=r.length-1),n>-1?t.slice(0,n):t}_hasSameServerInstance(t,r){return t.endsWith("/")&&(t=t.slice(0,-1)),t=t.toLowerCase(),r=this._getServerInstanceRoot(r).toLowerCase(),t=j_(t),r=j_(r),(t=t.slice(Math.max(0,t.indexOf(":"))))===(r=r.slice(Math.max(0,r.indexOf(":"))))}_sanitizeUrl(t){let r=(Qe.request.proxyUrl||"").toLowerCase(),n=r?t.toLowerCase().indexOf(r+"?"):-1;return n!==-1&&(t=t.slice(n+r.length+1)),t=W0(t),Yo(t).path}_isRESTService(t){return t.includes(this._agsRest)}_isAdminResource(t){return this._agsAdmin.test(t)||this._adminSvcs.test(t)}_isServerRsrc(t){return this._isRESTService(t)||this._isAdminResource(t)}_isIdenticalService(t,r){let n=!1;if(this._isRESTService(t)&&this._isRESTService(r)){let i=this._getSuffix(t).toLowerCase(),o=this._getSuffix(r).toLowerCase();if(n=i===o,!n){let s=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;n=i.replaceAll(s,"$1")===o.replaceAll(s,"$1")}}else this._isAdminResource(t)&&this._isAdminResource(r)?n=!0:this._isServerRsrc(t)||this._isServerRsrc(r)||!this._isPortalDomain(t)||(n=!0);return n}_isPortalDomain(t){let r=new Lr(t.toLowerCase()),n=this._portalConfig,i=this._gwDomains.some(o=>o.regex.test(r.uri));return!i&&n&&(i=this._hasSameServerInstance(this._getServerInstanceRoot(n.restBaseUrl),r.uri)),i||Qe.portalUrl&&(i=Wr(r,Qe.portalUrl,!0)),i||(i=this._portals.some(o=>this._hasSameServerInstance(o,r.uri))),i=i||this._agsPortal.test(r.path),i}_isIdProvider(t,r){let n=-1,i=-1;this._gwDomains.forEach((s,a)=>{n===-1&&s.regex.test(t)&&(n=a),i===-1&&s.regex.test(r)&&(i=a)});let o=!1;if(n>-1&&i>-1&&(n===0||n===4?i!==0&&i!==4||(o=!0):n===1?i!==1&&i!==2||(o=!0):n===2?i===2&&(o=!0):n===3&&i===3&&(o=!0)),!o){let s=this.findServerInfo(r),a=s?.owningSystemUrl;a&&EI(s)&&this._isPortalDomain(a)&&this._isIdProvider(t,a)&&(o=!0)}return o}_getIdenticalSvcIdx(t,r){let n=-1;for(let i=0;i<r.resources.length;i++){let o=r.resources[i];if(this._isIdenticalService(t,o)){n=i;break}}return n}_getSuffix(t){return t.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(t){let r,n,i;if(this._isRESTService(t)||this._isAdminResource(t)){let o=this._getServerInstanceRoot(t);return r=o+"/admin/generateToken",n=wt(t=o+"/rest/info",{query:{f:"json"}}).then(s=>s.data),{adminUrl:r,promise:n}}if(this._isPortalDomain(t)){let o="";if(this._gwDomains.some(s=>(s.regex.test(t)&&(o=s.tokenServiceUrl),!!o)),o||this._portals.some(s=>(this._hasSameServerInstance(s,t)&&(o=s+this._gwTokenUrl),!!o)),o||(i=t.toLowerCase().indexOf("/sharing"),i!==-1&&(o=t.slice(0,i)+this._gwTokenUrl)),o||(o=this._getOrigin(t)+this._gwTokenUrl),o){let s=new Lr(t).port;/^http:\/\//i.test(t)&&s==="7080"&&(o=o.replace(/:7080/i,":7443")),o=o.replace(/http:/i,"https:")}return o}}_processOAuthResponseParams(t,r,n){let i=r._oAuthCred;if(t.code){let s=i.codeVerifier;return i.codeVerifier=null,i.stateUID=null,i.save(),this._getOAuthToken(n.server,t.code,r.appId,this._getRedirectURI(r,!0),s).then(a=>{let u=new pt({userId:a.username,server:n.server??void 0,token:a.access_token,expires:Date.now()+1e3*a.expires_in,ssl:a.ssl,oAuthState:t.state,_oAuthCred:i});return r.userId=u.userId,i.storage=a.persist?mw:hw,i.refreshToken=a.refresh_token,i.token=null,i.expires=a.refresh_token_expires_in?Date.now()+1e3*a.refresh_token_expires_in:null,i.userId=u.userId,i.ssl=u.ssl,i.save(),u})}let o=new pt({userId:t.username,server:n.server??void 0,token:t.access_token,expires:Date.now()+1e3*Number(t.expires_in),ssl:t.ssl==="true",oAuthState:t.state,_oAuthCred:i});return r.userId=o.userId,i.storage=t.persist?mw:hw,i.refreshToken=null,i.token=o.token,i.expires=o.expires,i.userId=o.userId,i.ssl=o.ssl,i.save(),Promise.resolve(o)}_processOAuthPopupParams(t){let r=this._oAuthDfd;if(this._oAuthDfd=null,r)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),t.error){let n=t.error==="access_denied",i=new ye(n?"identity-manager:user-aborted":"identity-manager:authentication-failed",n?"ABORTED":"OAuth: "+t.error+" - "+t.error_description);r.reject(i)}else this._processOAuthResponseParams(t,r.oinfo_,r.sinfo_).then(n=>{r.resolve(n)}).catch(n=>{r.reject(n)})}_setOAuthResponseQueryString(t){t&&(t.charAt(0)==="?"&&(t=t.slice(1)),this._processOAuthPopupParams(Jo(t)))}async _exchangeToken(t,r,n){return(await wt(`${t}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:r,token:n}})).data.token}async _getPlatformSelf(t,r){if(this._getPlatformSelfError&&Date.now()-this._getPlatformSelfError[1]<1e3)throw this._getPlatformSelfError[0];t=t.replace(/^http:/i,"https:");try{let n=await wt(`${t}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":r,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0});return this._getPlatformSelfError=null,n.data}catch(n){throw n.details?.messageCode==="OAUTH_0066"&&(this._getPlatformSelfError=[n,Date.now()]),n}}_getPortalSelf(t,r){let n;return this._gwDomains.some(i=>(i.regex.test(t)&&(n=i.customBaseUrl),!!n)),n?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:n,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?t=t.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(r)&&(t=t.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),wt(t,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then(i=>i.data))}_doPortalSignIn(t){let r=this._portalConfig,n=window.location.href,i=this.findServerInfo(t);return!(!r&&!this._isPortalDomain(n)||!(i?i.hasPortal||i.owningSystemUrl&&this._isPortalDomain(i.owningSystemUrl):this._isPortalDomain(t))||!(this._isIdProvider(n,t)||r&&(this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),t)||this._isIdProvider(r.restBaseUrl,t))||Wr(n,t,!0)))}_checkProtocol(t,r,n,i){let o=!0,s=i?r.adminTokenServiceUrl:r.tokenServiceUrl;return s.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&Ul(s)&&(o=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:t,serverInfo:r}),!o)&&n(new ye("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),o}_enqueue(t,r,n,i,o,s){return i||(i=un()),i.resUrl_=t,i.sinfo_=r,i.options_=n,i.admin_=o,i.refresh_=s,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(t),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(i)):this._xoReqs.push(i):this._doSignIn(i),i.promise}_doSignIn(t){this._busy=t,this._rejectOnPersistedPageShow=!1;let r=d=>{let p=t.options_?.resource,m=t.resUrl_,w=t.refresh_,_=!1;this.credentials.includes(d)||(w&&this.credentials.includes(w)?(w.userId=d.userId,w.token=d.token,w.expires=d.expires,w.validity=d.validity,w.ssl=d.ssl,w.creationTime=d.creationTime,_=!0,d=w):this.credentials.push(d)),d.resources||(d.resources=[]),d.resources.includes(p||m)||d.resources.push(p||m),d.scope=this._isServerRsrc(m)?"server":"portal",d.emitTokenChange();let S=this._soReqs,T={};this._soReqs=[],S.forEach(M=>{if(!this._isIdenticalService(m,M.resUrl_)){let R=this._getSuffix(M.resUrl_);T[R]||(T[R]=!0,d.resources.push(M.resUrl_))}}),t.resolve(d),S.forEach(M=>{this._hasSameServerInstance(this._getServerInstanceRoot(m),M.resUrl_)?M.resolve(d):this._soReqs.push(M)}),this._busy=t.resUrl_=t.sinfo_=t.refresh_=null,_||this.emit("credential-create",{credential:d}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},n=d=>{t.reject(d),this._busy=t.resUrl_=t.sinfo_=t.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},i=(d,p,m,w)=>{let _=t.sinfo_,S=!t.options_||t.options_.prompt!==!1,T=_.hasPortal&&this._findOAuthInfo(t.resUrl_),M,R;if(d)r(new pt({userId:d,server:_.server??void 0,token:m??void 0,expires:w!=null?Number(w):null,ssl:!!p}));else if(window!==window.parent&&this._appUrlObj.query?.["arcgis-auth-origin"]&&this._appUrlObj.query?.["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),t.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);let I=jo(window,"message",N=>{N.source===window.parent&&N.data&&(N.data.type==="arcgis:auth:credential"?(I.remove(),N.data.credential.expires<Date.now()?n(new ye("identity-manager:credential-request-failed","Parent application's token has expired.")):r(new pt(N.data.credential))):N.data.type==="arcgis:auth:error"&&(I.remove(),N.data.error.name==="tokenExpiredError"?n(new ye("identity-manager:credential-request-failed","Parent application's token has expired.")):n(ye.fromJSON(N.data.error))))});cn(t.options_?.signal,()=>{I.remove()})}else if(T){let I=T._oAuthCred;if(!I){let N=new fc(T,mw),V=new fc(T,hw);N.isValid()&&V.isValid()?N.expires>V.expires?(I=N,V.destroy()):(I=V,N.destroy()):I=N.isValid()?N:V,T._oAuthCred=I}if(I.isValid()){M=new pt({userId:I.userId??void 0,server:_.server??void 0,token:I.token??void 0,expires:I.expires,ssl:I.ssl??void 0,_oAuthCred:I});let N=T.appId!==I.appId&&this._doPortalSignIn(t.resUrl_);N||I.refreshToken?(t._pendingDfd=I.refreshToken?this._getOAuthToken(_.server,I.refreshToken,I.appId).then(V=>(M.expires=Date.now()+1e3*V.expires_in,M.token=V.access_token,M)):Promise.resolve(M),t._pendingDfd.then(V=>N?this._exchangeToken(V.server,T.appId,V.token).then(Y=>(V.token=Y,V)).catch(()=>V):V).then(V=>{r(V)}).catch(V=>{let Y=V.details?.httpStatus;Y>0&&Y!==404?(I.destroy(),i()):n(V)})):r(M)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(T.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===I.stateUID&&I.codeVerifier)){let N=this._oAuthLocationParams;this._oAuthLocationParams=null,t._pendingDfd=this._processOAuthResponseParams(N,T,_).then(V=>{r(V)}).catch(n)}else{let N=()=>{S?t._pendingDfd=this.oAuthSignIn(t.resUrl_,_,T,t.options_).then(r,n):(R=new ye("identity-manager:not-authenticated","User is not signed in."),n(R))};this._doPortalSignIn(t.resUrl_)?t._pendingDfd=this._getPlatformSelf(_.server,T.appId).then(V=>{Wr(V.portalUrl,this._appOrigin,!0)?(M=new pt({userId:V.username,server:_.server??void 0,expires:Date.now()+1e3*V.expires_in,token:V.token}),r(M)):N()}).catch(N):N()}}else if(S){if(this._checkProtocol(t.resUrl_,_,n,t.admin_)){let I=t.options_;t.admin_&&(I=I||{},I.isAdmin=!0),t._pendingDfd=this.signIn(t.resUrl_,_,I).then(r,n)}}else R=new ye("identity-manager:not-authenticated","User is not signed in."),n(R)},o=()=>{let d=t.sinfo_,p=d.owningSystemUrl,m=t.options_,w,_,S,T;if(m&&(w=m.token,_=m.error,S=m.prompt),T=this._findCredential(p,{token:w,resource:t.resUrl_}),!T){for(let M of this.credentials)if(this._isIdProvider(p,M.server)){T=M;break}}if(T){let M=this.findCredential(t.resUrl_,T.userId);if(M)r(M);else if(ZS(d,this._legacyFed)){let R=T.toJSON();R.server=d.server,R.resources=null,r(new pt(R))}else(t._pendingDfd=this.generateToken(this.findServerInfo(T.server),null,{serverUrl:t.resUrl_,token:T.token,signal:t.options_.signal,ssl:T.ssl})).then(R=>{r(new pt({userId:T?.userId,server:d.server??void 0,token:R.token,expires:R.expires!=null?Number(R.expires):null,ssl:!!R.ssl,isAdmin:t.admin_,validity:R.validity}))},n)}else this._busy=null,w&&(t.options_.token=null),(t._pendingDfd=this.getCredential(p.replace(/\/?$/,"/sharing"),{resource:t.resUrl_,owningTenant:d.owningTenant,signal:t.options_.signal,token:w,error:_,prompt:S})).then(()=>{this._enqueue(t.resUrl_,t.sinfo_,t.options_,t,t.admin_)},M=>{t.resUrl_=t.sinfo_=t.refresh_=null,t.reject(M)})};this._errbackFunc=n;let s=t.sinfo_.owningSystemUrl,a=this._isServerRsrc(t.resUrl_),u=t.sinfo_._restInfoPms;u?u.promise.then(d=>{let p=t.sinfo_;if(p._restInfoPms){p.adminTokenServiceUrl=p._restInfoPms.adminUrl,p._restInfoPms=null,p.tokenServiceUrl=(xn("authInfo.tokenServicesUrl",d)||xn("authInfo.tokenServiceUrl",d)||xn("tokenServiceUrl",d))??null,p.shortLivedTokenValidity=xn("authInfo.shortLivedTokenValidity",d)??null,p.currentVersion=d.currentVersion,p.owningTenant=d.owningTenant;let m=p.owningSystemUrl=d.owningSystemUrl;m&&this._portals.push(m)}a&&p.owningSystemUrl?o():i()},()=>{t.sinfo_._restInfoPms=null;let d=new ye("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");n(d)}):a&&s?o():t.sinfo_._selfReq?t.sinfo_._selfReq.selfDfd.then(d=>{let p={},m,w,_,S;return d&&(m=d.user?.username,p.username=m,p.allSSL=d.allSSL,w=d.supportsOAuth,S=parseFloat(d.currentVersion),d.portalMode==="multitenant"&&(_=d.customBaseUrl),t.sinfo_.currentVersion=S),t.sinfo_.webTierAuth=!!m,m&&this.normalizeWebTierAuth?this.generateToken(t.sinfo_,null,{ssl:p.allSSL}).catch(()=>null).then(T=>(p.portalToken=T?.token,p.tokenExpiration=T?.expires,p)):!m&&w&&S>=4.4&&!this._findOAuthInfo(t.resUrl_)?this._generateOAuthInfo({portalUrl:t.sinfo_.server,customBaseUrl:_,owningTenant:t.sinfo_._selfReq.owningTenant}).catch(()=>null).then(()=>p):p}).catch(()=>null).then(d=>{t.sinfo_._selfReq=null,d?i(d.username,d.allSSL,d.portalToken,d.tokenExpiration):i()}):i()}_generateOAuthInfo(t){let r,n=null,i=t.portalUrl,o=t.customBaseUrl,s=t.owningTenant,a=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(a){n=window.location.href;let u=n.indexOf("?");u>-1&&(n=n.slice(0,u)),u=n.search(/\/(apps|home)\//),n=u>-1?n.slice(0,u):null}return a&&n?(this._hasTestedIfAppIsOnPortal=!0,r=wt(n+"/sharing/rest",{query:{f:"json"}}).then(()=>{this._defaultOAuthInfo=new HS({appId:"arcgisonline",popupCallbackUrl:n+"/home/oauth-callback.html"})})):r=Promise.resolve(),r.then(()=>{if(this._defaultOAuthInfo)return i=i.replace(/^http:/i,"https:"),wt(i+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:s,client_id:this._defaultOAuthInfo.appId,redirect_uri:Xo(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then(u=>{if(u.data.valid){let d=this._defaultOAuthInfo.clone();u.data.urlKey&&o?d.portalUrl="https://"+u.data.urlKey.toLowerCase()+"."+o:d.portalUrl=i,d.popup=window!==window.top||!(Wr(i,this._appOrigin)||this._gwDomains.some(p=>p.regex.test(i)&&p.regex.test(this._appOrigin))),this.oAuthInfos.push(d)}})})}_doOAuthSignIn(t,r,n,i){let o=n._oAuthCred,s={portalUrl:n.portalUrl};!n.popup&&n.preserveUrlHash&&window.location.hash&&(s.hash=window.location.hash),o.stateUID&&(s.uid=o.stateUID);let a={client_id:n.appId,response_type:o.codeVerifier?"code":"token",state:JSON.stringify(s),expiration:n.expiration,locale:n.locale,redirect_uri:this._getRedirectURI(n,!!o.codeVerifier)};n.forceLogin&&(a.force_login=!0),n.forceUserId&&n.userId&&(a.prepopulatedusername=n.userId),!n.popup&&this._doPortalSignIn(t)&&(a.redirectToUserOrgUrl=!0),o.codeVerifier&&(a.code_challenge=i||o.codeVerifier,a.code_challenge_method=i?"S256":"plain");let u=n.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",d=u+"?"+ra(a);if(n.popup){let p=window.open(d,"esriJSAPIOAuth",n.popupWindowFeatures);if(p)p.focus(),this._oAuthDfd.oAuthWin_=p,this._oAuthIntervalId=setInterval(()=>{if(p.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();let m=this._oAuthDfd;if(m){let w=new ye("identity-manager:user-aborted","ABORTED");m.reject(w)}}},500),this._oAuthOnPopupHandle=jo(window,["arcgis:auth:hash","arcgis:auth:location:search"],m=>{m.type==="arcgis:auth:hash"?this.setOAuthResponseHash(m.detail):this._setOAuthResponseQueryString(m.detail)});else{let m=new ye("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(m)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:a,authorizeUrl:u,resourceUrl:t,serverInfo:r,oAuthInfo:n}):window.location.href=d}_getRedirectURI(t,r){let n=window.location.href.replace(/#.*$/,"");if(t.popup)return Xo(t.popupCallbackUrl);if(r){let i=Yo(n);return i.query&&["code","error","error_description","message_code","persist","state"].forEach(o=>{delete i.query[o]}),Wl(i.path,i.query)}return n}};ef.prototype.declaredClass="esri.identity.IdentityManagerBase";pt=class extends na.EventedAccessor{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e?._oAuthCred&&(this._oAuthCred=e._oAuthCred)}initialize(){this.resources=this.resources||[],this.creationTime==null&&(this.creationTime=Date.now())}refreshToken(){let e=Yt,t=e.findServerInfo(this.server),r=t?.owningSystemUrl,n=!!r&&this.scope==="server",i=n&&ZS(t,e._legacyFed),o=t.webTierAuth,s=o&&e.normalizeWebTierAuth,a=pw[this.server],u=a?.[this.userId],d,p=this.resources&&this.resources[0],m=n?e.findServerInfo(r):null,w={username:this.userId,password:u};if(o&&!s)return;n&&!m&&e.serverInfos.some(S=>(e._isIdProvider(r,S.server)&&(m=S),!!m));let _=m?e.findCredential(m.server,this.userId):null;if(!n||_){if(!i){if(n)d={serverUrl:p,token:_?.token,ssl:_?.ssl};else if(s)w=null,d={ssl:this.ssl};else{if(!u){let S;return p&&(p=e._sanitizeUrl(p),this._enqueued=1,S=e._enqueue(p,t,null,null,this.isAdmin,this),S.then(()=>{this._enqueued=0,this.refreshServerTokens()}).catch(()=>{this._enqueued=0})),S}this.isAdmin&&(d={isAdmin:!0})}return e.generateToken(n?m:t,n?null:w,d).then(S=>{this.token=S.token,this.expires=S.expires!=null?Number(S.expires):null,this.creationTime=Date.now(),this.validity=S.validity,this.emitTokenChange(),this.refreshServerTokens()}).catch(()=>{})}_?.refreshToken()}}refreshServerTokens(){if(this.scope==="portal"){let e=Yt;e.credentials.forEach(t=>{let r=e.findServerInfo(t.server),n=r?.owningSystemUrl;t!==this&&t.userId===this.userId&&n&&t.scope==="server"&&(e._hasSameServerInstance(this.server,n)||e._isIdProvider(n,this.server))&&(ZS(r,e._legacyFed)?(t.token=this.token,t.expires=this.expires,t.creationTime=this.creationTime,t.validity=this.validity,t.emitTokenChange()):t.refreshToken())})}}emitTokenChange(e){clearTimeout(this._refreshTimer);let t=Yt,r=this.server?t.findServerInfo(this.server):null,n=r?.owningSystemUrl,i=n?t.findServerInfo(n):null;e===!1||n&&this.scope!=="portal"&&(!i?.webTierAuth||t.normalizeWebTierAuth)||this.expires==null&&this.validity==null||this._startRefreshTimer(),this.emit("token-change")}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);let e=Yt,t=e.credentials.indexOf(this);t>-1&&e.credentials.splice(t,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){let e=_1({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),t=this.resources;return t&&t.length>0&&(e.resources=t.slice()),e}_startRefreshTimer(){clearTimeout(this._refreshTimer);let e=6e4*this.tokenRefreshBuffer,t=2**31-1,r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>t&&(r=t),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>e?r-e:r)}};O([H()],pt.prototype,"creationTime",void 0),O([H()],pt.prototype,"expires",void 0),O([H()],pt.prototype,"isAdmin",void 0),O([H()],pt.prototype,"oAuthState",void 0),O([H()],pt.prototype,"resources",void 0),O([H()],pt.prototype,"scope",void 0),O([H()],pt.prototype,"server",void 0),O([H()],pt.prototype,"ssl",void 0),O([H()],pt.prototype,"token",void 0),O([H()],pt.prototype,"tokenRefreshBuffer",void 0),O([H()],pt.prototype,"userId",void 0),O([H()],pt.prototype,"validity",void 0),pt=O([Pe("esri.identity.Credential")],pt)});var II={};li(II,{default:()=>LI});var gw,LI,PI=L(()=>{j0();MI();gw=class extends ef{};gw.prototype.declaredClass="esri.identity.IdentityManager";LI=new gw;$C(LI)});async function wt(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=Jo(t.query.toString().replaceAll("+"," ")));let r=B0(e),n=z0(e);n||r||(e=W0(e));let i={url:e,requestOptions:{...t}},o=w=>({data:w,getAllHeaders:pc,getHeader:pc,httpStatus:200,requestOptions:i.requestOptions,url:i.url}),s=Y_(e,Pn.internalInterceptors);if(s){let w=await NI(s,i);if(w!=null)return o(w)}let a=Y_(e);if(a){let w=await NI(a,i);if(w!=null)return o(w);a.after||a.error||(a=null)}if(e=i.url,(t=i.requestOptions).responseType==="image"&&(Q("host-webworker")||Q("host-node")))throw ki("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),i);if(t.method==="head"){if(t.body)throw ki("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),i);if(r||n)throw ki("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),i)}if(await yq(),ww)return ww.execute(e,t);let u=new AbortController,d=cn(t,()=>u.abort()),p={controller:u,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:a,params:i,redoRequest:!1,useIdentity:Pn.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},m=await Sq(p).finally(()=>d?.remove());return a?.after?.(m),m}function wq(e){let t=Xr(e);t&&!wt._corsServers.includes(t)&&wt._corsServers.push(t)}function AI(e){let t=Xr(e);return!t||t.endsWith(".arcgis.com")||wt._corsServers.includes(t)||U0(t)}function ki(e,t,r,n){let i="Error",o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:pc,getHeader:pc,ssl:!1};if(t instanceof ye)return t.details?(t.details=Ne(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=o,t;if(t){let s=n&&(()=>Array.from(n.headers)),a=n&&(p=>n.headers.get(p)),u=n?.status,d=t.message;d&&(i=d),s&&a&&(o.getAllHeaders=s,o.getHeader=a),o.httpStatus=(t.httpCode!=null?t.httpCode:t.code)||u||0,o.subCode=t.subcode,o.messageCode=t.messageCode,typeof t.details=="string"?o.messages=[t.details]:o.messages=t.details,o.raw=yw in t?t[yw]:t}return hd(t)?Ji():new ye(e,i,o)}async function yq(){Q("host-webworker")&&!ww&&(ww=await Promise.resolve().then(()=>(ZC(),HC)))}async function YS(){Yt||await Promise.resolve().then(()=>(PI(),II))}async function bq(e){let t=e.params.url,r=e.params.requestOptions,n=e.controller.signal,i=r.body,o=null,s=null;if(DI&&"HTMLFormElement"in globalThis&&(i instanceof FormData?o=i:i instanceof HTMLFormElement&&(o=new FormData(i))),typeof i=="string"&&(s=i),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:r.method==="head"?"HEAD":"GET",mode:"cors",priority:Pn.priority,redirect:"follow",signal:n},(o||s)&&(e.fetchOptions.body=o||s),r.authMode==="anonymous"&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||o?.get("token")),!e.hasToken&&Qe.apiKey&&FC(t)&&(r.query||(r.query={}),r.query.token=Qe.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!OI(t)&&!Ho(n)){let a;r.authMode==="immediate"?(await YS(),a=await Yt.getCredential(t,{signal:n}),e.credential=a):r.authMode==="no-prompt"?(await YS(),a=await Yt.getCredential(t,{prompt:!1,signal:n}).catch(()=>{}),e.credential=a):Yt&&(a=Yt.findCredential(t)),a&&(e.credentialToken=a.token,e.useSSL=!!a.ssl)}}function OI(e){return gq.some(t=>t.test(e))}async function _q(e){let t=e.params.url,r=e.params.requestOptions,n=e.fetchOptions??{},i=z0(t)||B0(t),o=r.responseType||"json",s=i?0:r.timeout!=null?r.timeout:Pn.timeout,a=!1;if(!i){e.useSSL&&(t=q0(t));let w={...r.query};e.credentialToken&&(w.token=e.credentialToken);let _=ra(w);Q("esri-url-encodes-apostrophe")&&(_=_.replaceAll("'","%27"));let S=t.length+1+_.length,T;a=r.method==="delete"||r.method==="post"||r.method==="put"||!!r.body||S>Pn.maxUrlLength;let M=r.useProxy||!!Ul(t);if(M){let R=AC(t);T=R.path,!a&&T.length+1+S>Pn.maxUrlLength&&(a=!0),R.query&&(w={...R.query,...w})}if(n.method==="HEAD"&&(a||M)){if(a)throw S>Pn.maxUrlLength?ki("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params):ki("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params);if(M)throw ki("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}a?(n.method=r.method==="delete"?"DELETE":r.method==="put"?"PUT":"POST",r.body?t=Wl(t,w):(n.body=ra(w),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=Wl(t,w),M&&(e.useProxy=!0,t=`${T}?${t}`),w.token&&DI&&n.body instanceof FormData&&!O0(t)&&n.body.set("token",w.token),r.hasOwnProperty("withCredentials")?e.withCredentials=r.withCredentials:Wr(t,V0())||(U0(t)||Yt&&Yt.findServerInfo(t)?.webTierAuth)&&(e.withCredentials=!0),e.withCredentials&&(n.credentials="include",GC(t)&&await qC(a?Wl(t,w):t))}let u,d,p=0,m=!1;s>0&&(p=setTimeout(()=>{m=!0,e.controller.abort()},s));try{if(r.responseType==="native-request-init")d=n,d.url=t,r.signal?d.signal=r.signal:delete d.signal;else if(r.responseType!=="image"||n.cache!=="default"||n.method!=="GET"||a||vq(r.headers)||!i&&!e.useProxy&&Pn.proxyUrl&&!AI(t)){if(wt._beforeFetch&&await wt._beforeFetch(t,n),u=await fetch(t,n),wt._afterFetch&&await wt._afterFetch(u),e.useProxy||wq(t),r.responseType==="native")d=u;else if(n.method!=="HEAD")if(u.ok){switch(o){case"array-buffer":d=await u.arrayBuffer();break;case"blob":case"image":d=await u.blob();break;default:d=await u.text()}if(p&&(clearTimeout(p),p=0),o==="json"||o==="xml"||o==="document")if(d)switch(o){case"json":d=JSON.parse(d);break;case"xml":d=kI(d,"application/xml");break;case"document":d=kI(d,"text/html")}else d=null;if(d){if(o==="array-buffer"||o==="blob"){let w=u.headers.get("Content-Type");if(w&&/application\/json|text\/plain/i.test(w)&&d[o==="blob"?"size":"byteLength"]<=750)try{let _=await new Response(d).json();_.error&&(d=_)}catch{}}o==="image"&&d instanceof Blob&&(d=await RI(URL.createObjectURL(d),e,!0))}}else{d=await u.text();try{d=JSON.parse(d)}catch{}}}else d=await RI(t,e)}catch(w){if(w.name==="AbortError")throw m?zC():Ji("Request canceled");if(!(!u&&w instanceof TypeError&&Pn.proxyUrl)||r.body||r.method==="delete"||r.method==="head"||r.method==="post"||r.method==="put"||e.useProxy||AI(t))throw w;e.redoRequest=!0,RC({proxyUrl:Pn.proxyUrl,urlPrefix:Xr(t)??""})}finally{p&&clearTimeout(p)}return[u,d]}async function NI(e,t){if(e.responseData!=null)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(i){r=ki("request:interceptor",i,t)}if((n instanceof Error||n instanceof ye)&&(r=ki("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}function vq(e){if(e){for(let t of Object.getOwnPropertyNames(e))if(e[t])return!0}return!1}function kI(e,t){let r;try{r=new DOMParser().parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function Sq(e){let t,r;await bq(e);try{do[t,r]=await _q(e);while(!await xq(e,t,r))}catch(o){let s=ki("request:server",o,e.params,t);throw s.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(s),s}let n=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!U0(n)){let o=Xr(n,!0);o&&Pn.trustedServers.push(o)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&BC(r.authorizedCrossOriginNoCorsDomains)}let i=e.credential;if(i&&Yt){let s=Yt.findServerInfo(i.server)?.owningSystemUrl;if(s){s=s.replace(/\/?$/,"/sharing");let a=Yt.findCredential(s,i.userId);a&&Yt._getIdenticalSvcIdx(s,a)===-1&&a.resources.unshift(s)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):pc,getHeader:t?o=>t.headers.get(o):pc,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}async function xq(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;let n=e.params.requestOptions;if(!t||n.responseType==="native"||n.responseType==="native-request-init")return!0;let i,o;if(r&&(r.error&&typeof r.error=="object"?i=r.error:r.status==="error"&&Array.isArray(r.messages)&&(i={...r},i[yw]=r,i.details=r.messages)),!i&&!t.ok)throw i=new Error(`Unable to load ${t.url} status: ${t.status}`),i[yw]=r,i;let s,a=null;i&&(o=Number(i.code),a=i.hasOwnProperty("subcode")?Number(i.subcode):null,s=i.messageCode,s=s?.toUpperCase());let u=n.authMode;if(o===403&&(a===4||i.message?.toLowerCase().includes("ssl")&&!i.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&(u!=="no-prompt"||o===498)&&o!==void 0&&mq.has(o)&&!OI(e.params.url)&&(o!==403||(!s||!hq.has(s))&&(a==null||a===2&&e.credentialToken))){await YS();try{let d=await Yt.getCredential(e.params.url,{error:ki("request:server",i,e.params),prompt:u!=="no-prompt",signal:e.controller.signal,token:e.credentialToken});return e.credential=d,e.credentialToken=d.token,e.useSSL=e.useSSL||d.ssl,!1}catch(d){if(u==="no-prompt")return e.credential=void 0,e.credentialToken=void 0,!1;i=d}}if(i)throw i;return!0}function RI(e,t,r=!1){let n=t.controller.signal,i=new Image;return t.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.fetchPriority=Pn.priority,i.src=e,WC(i,e,r,n)}var ww,Pn,DI,mq,hq,gq,pc,yw,Q0=L(()=>{Hs();j0();Er();Ge();tr();bi();Ko();$0();VC();jC();Pn=Qe.request,DI="FormData"in globalThis,mq=new Set([499,498,403,401]),hq=new Set(["COM_0056","COM_0057","SB_0008"]),gq=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],pc=()=>null,yw=Symbol();wt._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],wt._beforeFetch=void 0,wt._afterFetch=void 0});function ql(e){if(!Qe.assetsPath)throw Me.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new ye("assets:path-not-set","config.assetsPath is not set");return J_(Qe.assetsPath,e)}var K0=L(()=>{Hs();Q0();Er();Ze();Ko()});function $I(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var FI=L(()=>{});var VI=q5(()=>{});var UI=q5(()=>{});var GI={};li(GI,{p:()=>Tq});var WI,bw,zI,BI,Cq,Tq,qI=L(()=>{FI();BI={exports:{}};WI=BI,bw=typeof document<"u"?document.currentScript?.src:void 0,typeof __filename<"u"&&(bw||(bw=__filename)),zI=function(e={}){var t,r,n,i,o=e,s=new Promise((f,x)=>{t=f,r=x}),a=typeof window=="object",u=typeof importScripts=="function",d=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",p=Object.assign({},o),m="./this.program",w="";function _(f){return o.locateFile?o.locateFile(f,w):w+f}if(d){var S=VI(),T=UI();w=__dirname+"/",i=f=>(f=Da(f)?new URL(f):T.normalize(f),S.readFileSync(f)),n=(f,x=!0)=>(f=Da(f)?new URL(f):T.normalize(f),new Promise((A,G)=>{S.readFile(f,x?void 0:"utf8",(J,le)=>{J?G(J):A(x?le.buffer:le)})})),!o.thisProgram&&process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2)}else(a||u)&&(u?w=self.location.href:typeof document<"u"&&document.currentScript&&(w=document.currentScript.src),bw&&(w=bw),w=w.startsWith("blob:")?"":w.substr(0,w.replace(/[?#].*/,"").lastIndexOf("/")+1),u&&(i=f=>{var x=new XMLHttpRequest;return x.open("GET",f,!1),x.responseType="arraybuffer",x.send(null),new Uint8Array(x.response)}),n=f=>Da(f)?new Promise((x,A)=>{var G=new XMLHttpRequest;G.open("GET",f,!0),G.responseType="arraybuffer",G.onload=()=>{(G.status==200||G.status==0&&G.response)&&A(G.response),x(G.status)},G.onerror=x,G.send(null)}):fetch(f,{credentials:"same-origin"}).then(x=>x.ok?x.arrayBuffer():Promise.reject(new Error(x.status+" : "+x.url))));var M,R,I=console.log.bind(console),N=console.error.bind(console);Object.assign(o,p),p=null;var V,Y,re,te,ie,ge,be,de=!1;function B(f,x){f||rn(x)}function $(){var f=R.buffer;o.HEAP8=V=new Int8Array(f),o.HEAP16=re=new Int16Array(f),o.HEAPU8=Y=new Uint8Array(f),o.HEAPU16=new Uint16Array(f),o.HEAP32=te=new Int32Array(f),o.HEAPU32=ie=new Uint32Array(f),o.HEAPF32=ge=new Float32Array(f),o.HEAPF64=be=new Float64Array(f)}var q=[],K=[],ee=[];function ae(){Cc(q)}function pe(){Cc(K)}function ve(){Cc(ee)}function Ae(f){K.unshift(f)}var We=0,Pt=null;function cr(f){We++}function ur(f){if(--We==0&&Pt){var x=Pt;Pt=null,x()}}function rn(f){N(f="Aborted("+f+")"),de=!0,f+=". Build with -sASSERTIONS for more info.";var x=new WebAssembly.RuntimeError(f);throw r(x),x}var Nr,Vi="data:application/octet-stream;base64,",Ra=f=>f.startsWith(Vi),Da=f=>f.startsWith("file://");function jw(){var f="pe-wasm.wasm";return Ra(f)?f:_(f)}function Hw(f){if(f==Nr&&M)return new Uint8Array(M);if(i)return i(f);throw"both async and sync fetching of the wasm failed"}function Zw(f){return n(f).then(x=>new Uint8Array(x),()=>Hw(f))}function gf(f,x,A){return Zw(f).then(G=>WebAssembly.instantiate(G,x)).then(A,G=>{N(`failed to asynchronously prepare wasm: ${G}`),rn(G)})}function Yw(f,x,A,G){return typeof WebAssembly.instantiateStreaming!="function"||Ra(x)||Da(x)||d||typeof fetch!="function"?gf(x,A,G):fetch(x,{credentials:"same-origin"}).then(J=>WebAssembly.instantiateStreaming(J,A).then(G,function(le){return N(`wasm streaming compile failed: ${le}`),N("falling back to ArrayBuffer instantiation"),gf(x,A,G)}))}function Jw(){return{a:py}}function Xw(){var f=Jw();function x(G,J){return k=G.exports,R=k.t,$(),Ae(k.u),ur(),k}function A(G){x(G.instance)}return cr(),Nr||(Nr=jw()),Yw(M,Nr,f,A).catch(r),{}}var Cc=f=>{for(;f.length>0;)f.shift()(o)};function Qw(f,x="i8"){switch(x.endsWith("*")&&(x="*"),x){case"i1":case"i8":return V[f];case"i16":return re[f>>1];case"i32":return te[f>>2];case"i64":rn("to do getValue(i64) use WASM_BIGINT");case"float":return ge[f>>2];case"double":return be[f>>3];case"*":return ie[f>>2];default:rn(`invalid type for getValue: ${x}`)}}var wf=typeof TextDecoder<"u"?new TextDecoder:void 0,yf=(f,x,A)=>{for(var G=x+A,J=x;f[J]&&!(J>=G);)++J;if(J-x>16&&f.buffer&&wf)return wf.decode(f.subarray(x,J));for(var le="";x<J;){var he=f[x++];if(128&he){var fe=63&f[x++];if((224&he)!=192){var Ee=63&f[x++];if((he=(240&he)==224?(15&he)<<12|fe<<6|Ee:(7&he)<<18|fe<<12|Ee<<6|63&f[x++])<65536)le+=String.fromCharCode(he);else{var xr=he-65536;le+=String.fromCharCode(55296|xr>>10,56320|1023&xr)}}else le+=String.fromCharCode((31&he)<<6|fe)}else le+=String.fromCharCode(he)}return le},jr=(f,x)=>f?yf(Y,f,x):"";function Kw(f,x,A){return 0}var bf=(f,x,A,G)=>{if(!(G>0))return 0;for(var J=A,le=A+G-1,he=0;he<f.length;++he){var fe=f.charCodeAt(he);if(fe>=55296&&fe<=57343&&(fe=65536+((1023&fe)<<10)|1023&f.charCodeAt(++he)),fe<=127){if(A>=le)break;x[A++]=fe}else if(fe<=2047){if(A+1>=le)break;x[A++]=192|fe>>6,x[A++]=128|63&fe}else if(fe<=65535){if(A+2>=le)break;x[A++]=224|fe>>12,x[A++]=128|fe>>6&63,x[A++]=128|63&fe}else{if(A+3>=le)break;x[A++]=240|fe>>18,x[A++]=128|fe>>12&63,x[A++]=128|fe>>6&63,x[A++]=128|63&fe}}return x[A]=0,A-J},Oa=(f,x,A)=>bf(f,Y,x,A);function ey(f,x,A){return 0}function ty(f,x,A,G){}var ry=f=>f%4==0&&(f%100!=0||f%400==0),ny=[0,31,60,91,121,152,182,213,244,274,305,335],iy=[0,31,59,90,120,151,181,212,243,273,304,334],oy=f=>(ry(f.getFullYear())?ny:iy)[f.getMonth()]+f.getDate()-1,sy=(f,x)=>x+2097152>>>0<4194305-!!f?(f>>>0)+4294967296*x:NaN;function _f(f,x,A){var G=sy(f,x),J=new Date(1e3*G);te[A>>2]=J.getSeconds(),te[A+4>>2]=J.getMinutes(),te[A+8>>2]=J.getHours(),te[A+12>>2]=J.getDate(),te[A+16>>2]=J.getMonth(),te[A+20>>2]=J.getFullYear()-1900,te[A+24>>2]=J.getDay();var le=0|oy(J);te[A+28>>2]=le,te[A+36>>2]=-60*J.getTimezoneOffset();var he=new Date(J.getFullYear(),0,1),fe=new Date(J.getFullYear(),6,1).getTimezoneOffset(),Ee=he.getTimezoneOffset(),xr=0|(fe!=Ee&&J.getTimezoneOffset()==Math.min(Ee,fe));te[A+32>>2]=xr}var ay=()=>2147483648,$a=f=>{var x=(f-R.buffer.byteLength+65535)/65536;try{return R.grow(x),$(),1}catch{}},Tc={},ly=()=>m||"./this.program",xs=()=>{if(!xs.strings){var f={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ly()};for(var x in Tc)Tc[x]===void 0?delete f[x]:f[x]=Tc[x];var A=[];for(var x in f)A.push(`${x}=${f[x]}`);xs.strings=A}return xs.strings},vf=(f,x)=>{for(var A=0;A<f.length;++A)V[x++]=f.charCodeAt(A);V[x]=0};function cy(f,x,A,G,J){return 70}var Sf=[null,[],[]],uy=(f,x)=>{var A=Sf[f];x===0||x===10?((f===1?I:N)(yf(A,0)),A.length=0):A.push(x)},dy=f=>{for(var x=0,A=0;A<f.length;++A){var G=f.charCodeAt(A);G<=127?x++:G<=2047?x+=2:G>=55296&&G<=57343?(x+=4,++A):x+=3}return x};function fy(f,x,A){var G=dy(f)+1,J=new Array(G);return bf(f,J,0,J.length),J}var xf=(f,x)=>Math.ceil(f/x)*x,py={c:Kw,q:(f,x,A)=>{},h:ey,d:ty,o:f=>{},n:(f,x)=>{},p:(f,x,A)=>{},l:()=>{rn("")},s:(f,x,A)=>Y.copyWithin(f,x,x+A),j:_f,r:(f,x,A,G)=>{var J=new Date().getFullYear(),le=new Date(J,0,1),he=new Date(J,6,1),fe=le.getTimezoneOffset(),Ee=he.getTimezoneOffset(),xr=Math.max(fe,Ee);ie[f>>2]=60*xr,te[x>>2]=+(fe!=Ee);var oh=lh=>{var Sy=lh>=0?"-":"+",ch=Math.abs(lh);return`UTC${Sy}${String(Math.floor(ch/60)).padStart(2,"0")}${String(ch%60).padStart(2,"0")}`},sh=oh(fe),ah=oh(Ee);Ee<fe?(Oa(sh,A,17),Oa(ah,G,17)):(Oa(sh,G,17),Oa(ah,A,17))},i:()=>Date.now(),m:f=>{var x=Y.length;f>>>=0;var A=ay();if(f>A)return!1;for(var G=(fe,Ee)=>fe+(Ee-fe%Ee)%Ee,J=1;J<=4;J*=2){var le=x*(1+.2/J);le=Math.min(le,f+100663296);var he=Math.min(A,G(Math.max(f,le),65536));if($a(he))return!0}return!1},e:(f,x)=>{var A=0;return xs().forEach((G,J)=>{var le=x+A;ie[f+4*J>>2]=le,vf(G,le),A+=G.length+1}),0},f:(f,x)=>{var A=xs();ie[f>>2]=A.length;var G=0;return A.forEach(J=>G+=J.length+1),ie[x>>2]=G,0},a:f=>52,g:(f,x,A,G)=>52,k:cy,b:(f,x,A,G)=>{for(var J=0,le=0;le<A;le++){var he=ie[x>>2],fe=ie[x+4>>2];x+=8;for(var Ee=0;Ee<fe;Ee++)uy(f,Y[he+Ee]);J+=fe}return ie[G>>2]=J,0}},k=Xw();o._webidl_free=f=>(o._webidl_free=k.v)(f),o._webidl_malloc=f=>(o._webidl_malloc=k.w)(f);var Fa,Cf=o._emscripten_bind_PeObject_getCode_0=f=>(Cf=o._emscripten_bind_PeObject_getCode_0=k.x)(f),Tf=o._emscripten_bind_PeObject_getName_1=(f,x)=>(Tf=o._emscripten_bind_PeObject_getName_1=k.y)(f,x),Ef=o._emscripten_bind_PeObject_getType_0=f=>(Ef=o._emscripten_bind_PeObject_getType_0=k.z)(f),Mf=o._emscripten_bind_PeCoordsys_isEqual_1=(f,x)=>(Mf=o._emscripten_bind_PeCoordsys_isEqual_1=k.A)(f,x),Lf=o._emscripten_bind_PeCoordsys_getCode_0=f=>(Lf=o._emscripten_bind_PeCoordsys_getCode_0=k.B)(f),Cs=o._emscripten_bind_PeCoordsys_getName_1=(f,x)=>(Cs=o._emscripten_bind_PeCoordsys_getName_1=k.C)(f,x),If=o._emscripten_bind_PeCoordsys_getType_0=f=>(If=o._emscripten_bind_PeCoordsys_getType_0=k.D)(f),Pf=o._emscripten_bind_VoidPtr___destroy___0=f=>(Pf=o._emscripten_bind_VoidPtr___destroy___0=k.E)(f),Af=o._emscripten_bind_PeDatum_getSpheroid_0=f=>(Af=o._emscripten_bind_PeDatum_getSpheroid_0=k.F)(f),Nf=o._emscripten_bind_PeDatum_getCode_0=f=>(Nf=o._emscripten_bind_PeDatum_getCode_0=k.G)(f),Ec=o._emscripten_bind_PeDatum_getName_1=(f,x)=>(Ec=o._emscripten_bind_PeDatum_getName_1=k.H)(f,x),kf=o._emscripten_bind_PeDatum_getType_0=f=>(kf=o._emscripten_bind_PeDatum_getType_0=k.I)(f),Rf=o._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=f=>(Rf=o._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=k.J)(f),Mc=o._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=f=>(Mc=o._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=k.K)(f),Df=o._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=f=>(Df=o._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=k.L)(f),Lc=o._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=f=>(Lc=o._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=k.M)(f),Ic=o._emscripten_bind_PeDefs_get_PE_DD_MAX_0=f=>(Ic=o._emscripten_bind_PeDefs_get_PE_DD_MAX_0=k.N)(f),Of=o._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=f=>(Of=o._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=k.O)(f),$f=o._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=f=>($f=o._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=k.P)(f),Ff=o._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=f=>(Ff=o._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=k.Q)(f),Vf=o._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=f=>(Vf=o._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=k.R)(f),Uf=o._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=f=>(Uf=o._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=k.S)(f),Wf=o._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=f=>(Wf=o._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=k.T)(f),zf=o._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=f=>(zf=o._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=k.U)(f),Bf=o._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=f=>(Bf=o._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=k.V)(f),Gf=o._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=f=>(Gf=o._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=k.W)(f),qf=o._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=f=>(qf=o._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=k.X)(f),jf=o._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=f=>(jf=o._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=k.Y)(f),Hf=o._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=f=>(Hf=o._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=k.Z)(f),Zf=o._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=f=>(Zf=o._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=k._)(f),Yf=o._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=f=>(Yf=o._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=k.$)(f),Jf=o._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=f=>(Jf=o._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=k.aa)(f),Xf=o._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=f=>(Xf=o._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=k.ba)(f),Qf=o._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=f=>(Qf=o._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=k.ca)(f),Kf=o._emscripten_bind_PeDefs_get_PE_PARM_X0_0=f=>(Kf=o._emscripten_bind_PeDefs_get_PE_PARM_X0_0=k.da)(f),ep=o._emscripten_bind_PeDefs_get_PE_PARM_ND_0=f=>(ep=o._emscripten_bind_PeDefs_get_PE_PARM_ND_0=k.ea)(f),tp=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=f=>(tp=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=k.fa)(f),rp=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=f=>(rp=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=k.ga)(f),np=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=f=>(np=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=k.ha)(f),ip=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=f=>(ip=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=k.ia)(f),op=o._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=f=>(op=o._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=k.ja)(f),sp=o._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=f=>(sp=o._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=k.ka)(f),ap=o._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=f=>(ap=o._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=k.la)(f),lp=o._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=f=>(lp=o._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=k.ma)(f),cp=o._emscripten_bind_PeDouble_PeDouble_1=f=>(cp=o._emscripten_bind_PeDouble_PeDouble_1=k.na)(f),up=o._emscripten_bind_PeDouble_get_val_0=f=>(up=o._emscripten_bind_PeDouble_get_val_0=k.oa)(f),dp=o._emscripten_bind_PeDouble_set_val_1=(f,x)=>(dp=o._emscripten_bind_PeDouble_set_val_1=k.pa)(f,x),fp=o._emscripten_bind_PeDouble___destroy___0=f=>(fp=o._emscripten_bind_PeDouble___destroy___0=k.qa)(f),pp=o._emscripten_bind_PeFactory_initialize_1=f=>(pp=o._emscripten_bind_PeFactory_initialize_1=k.ra)(f),mp=o._emscripten_bind_PeFactory_factoryByType_2=(f,x)=>(mp=o._emscripten_bind_PeFactory_factoryByType_2=k.sa)(f,x),hp=o._emscripten_bind_PeFactory_fromString_2=(f,x)=>(hp=o._emscripten_bind_PeFactory_fromString_2=k.ta)(f,x),gp=o._emscripten_bind_PeFactory_getCode_1=f=>(gp=o._emscripten_bind_PeFactory_getCode_1=k.ua)(f),wp=o._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(f,x,A,G,J,le)=>(wp=o._emscripten_bind_PeGCSExtent_PeGCSExtent_6=k.va)(f,x,A,G,J,le),yp=o._emscripten_bind_PeGCSExtent_getLLon_0=f=>(yp=o._emscripten_bind_PeGCSExtent_getLLon_0=k.wa)(f),bp=o._emscripten_bind_PeGCSExtent_getSLat_0=f=>(bp=o._emscripten_bind_PeGCSExtent_getSLat_0=k.xa)(f),_p=o._emscripten_bind_PeGCSExtent_getRLon_0=f=>(_p=o._emscripten_bind_PeGCSExtent_getRLon_0=k.ya)(f),vp=o._emscripten_bind_PeGCSExtent_getNLat_0=f=>(vp=o._emscripten_bind_PeGCSExtent_getNLat_0=k.za)(f),Sp=o._emscripten_bind_PeGCSExtent___destroy___0=f=>(Sp=o._emscripten_bind_PeGCSExtent___destroy___0=k.Aa)(f),xp=o._emscripten_bind_PeGeogcs_getDatum_0=f=>(xp=o._emscripten_bind_PeGeogcs_getDatum_0=k.Ba)(f),Cp=o._emscripten_bind_PeGeogcs_getPrimem_0=f=>(Cp=o._emscripten_bind_PeGeogcs_getPrimem_0=k.Ca)(f),Tp=o._emscripten_bind_PeGeogcs_getUnit_0=f=>(Tp=o._emscripten_bind_PeGeogcs_getUnit_0=k.Da)(f),Ep=o._emscripten_bind_PeGeogcs_isEqual_1=(f,x)=>(Ep=o._emscripten_bind_PeGeogcs_isEqual_1=k.Ea)(f,x),Mp=o._emscripten_bind_PeGeogcs_getCode_0=f=>(Mp=o._emscripten_bind_PeGeogcs_getCode_0=k.Fa)(f),Lp=o._emscripten_bind_PeGeogcs_getName_1=(f,x)=>(Lp=o._emscripten_bind_PeGeogcs_getName_1=k.Ga)(f,x),Ip=o._emscripten_bind_PeGeogcs_getType_0=f=>(Ip=o._emscripten_bind_PeGeogcs_getType_0=k.Ha)(f),Pp=o._emscripten_bind_PeGeogtran_isEqual_1=(f,x)=>(Pp=o._emscripten_bind_PeGeogtran_isEqual_1=k.Ia)(f,x),Ap=o._emscripten_bind_PeGeogtran_getGeogcs1_0=f=>(Ap=o._emscripten_bind_PeGeogtran_getGeogcs1_0=k.Ja)(f),Np=o._emscripten_bind_PeGeogtran_getGeogcs2_0=f=>(Np=o._emscripten_bind_PeGeogtran_getGeogcs2_0=k.Ka)(f),kp=o._emscripten_bind_PeGeogtran_getParameters_0=f=>(kp=o._emscripten_bind_PeGeogtran_getParameters_0=k.La)(f),Pc=o._emscripten_bind_PeGeogtran_loadConstants_0=f=>(Pc=o._emscripten_bind_PeGeogtran_loadConstants_0=k.Ma)(f),Ac=o._emscripten_bind_PeGeogtran_getCode_0=f=>(Ac=o._emscripten_bind_PeGeogtran_getCode_0=k.Na)(f),Rp=o._emscripten_bind_PeGeogtran_getName_1=(f,x)=>(Rp=o._emscripten_bind_PeGeogtran_getName_1=k.Oa)(f,x),Dp=o._emscripten_bind_PeGeogtran_getType_0=f=>(Dp=o._emscripten_bind_PeGeogtran_getType_0=k.Pa)(f),Nc=o._emscripten_bind_PeGTlistExtended_getGTlist_6=(f,x,A,G,J,le)=>(Nc=o._emscripten_bind_PeGTlistExtended_getGTlist_6=k.Qa)(f,x,A,G,J,le),Op=o._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=f=>(Op=o._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=k.Ra)(f),kc=o._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=f=>(kc=o._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=k.Sa)(f),$p=o._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=f=>($p=o._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=k.Ta)(f),Fp=o._emscripten_bind_PeGTlistExtendedEntry_Delete_1=f=>(Fp=o._emscripten_bind_PeGTlistExtendedEntry_Delete_1=k.Ua)(f),Vp=o._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=f=>(Vp=o._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=k.Va)(f),Rc=o._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=f=>(Rc=o._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=k.Wa)(f),Up=o._emscripten_bind_PeHorizon_getNump_0=f=>(Up=o._emscripten_bind_PeHorizon_getNump_0=k.Xa)(f),Wp=o._emscripten_bind_PeHorizon_getKind_0=f=>(Wp=o._emscripten_bind_PeHorizon_getKind_0=k.Ya)(f),zp=o._emscripten_bind_PeHorizon_getInclusive_0=f=>(zp=o._emscripten_bind_PeHorizon_getInclusive_0=k.Za)(f),Bp=o._emscripten_bind_PeHorizon_getSize_0=f=>(Bp=o._emscripten_bind_PeHorizon_getSize_0=k._a)(f),Gp=o._emscripten_bind_PeHorizon_getCoord_0=f=>(Gp=o._emscripten_bind_PeHorizon_getCoord_0=k.$a)(f),qp=o._emscripten_bind_PeInteger_PeInteger_1=f=>(qp=o._emscripten_bind_PeInteger_PeInteger_1=k.ab)(f),jp=o._emscripten_bind_PeInteger_get_val_0=f=>(jp=o._emscripten_bind_PeInteger_get_val_0=k.bb)(f),Hp=o._emscripten_bind_PeInteger_set_val_1=(f,x)=>(Hp=o._emscripten_bind_PeInteger_set_val_1=k.cb)(f,x),Zp=o._emscripten_bind_PeInteger___destroy___0=f=>(Zp=o._emscripten_bind_PeInteger___destroy___0=k.db)(f),Yp=o._emscripten_bind_PeLineType_geodetic_distance_10=(f,x,A,G,J,le,he,fe,Ee,xr)=>(Yp=o._emscripten_bind_PeLineType_geodetic_distance_10=k.eb)(f,x,A,G,J,le,he,fe,Ee,xr),Jp=o._emscripten_bind_PeLineType_geodetic_coordinate_9=(f,x,A,G,J,le,he,fe,Ee)=>(Jp=o._emscripten_bind_PeLineType_geodetic_coordinate_9=k.fb)(f,x,A,G,J,le,he,fe,Ee),Xp=o._emscripten_bind_PeLineType_geodesic_coordinate_8=(f,x,A,G,J,le,he,fe)=>(Xp=o._emscripten_bind_PeLineType_geodesic_coordinate_8=k.gb)(f,x,A,G,J,le,he,fe),Qp=o._emscripten_bind_PeLineType_great_elliptic_distance_9=(f,x,A,G,J,le,he,fe,Ee)=>(Qp=o._emscripten_bind_PeLineType_great_elliptic_distance_9=k.hb)(f,x,A,G,J,le,he,fe,Ee),Dc=o._emscripten_bind_PeMath_phi_to_eta_2=(f,x)=>(Dc=o._emscripten_bind_PeMath_phi_to_eta_2=k.ib)(f,x),Kp=o._emscripten_bind_PeMath_eta_to_phi_2=(f,x)=>(Kp=o._emscripten_bind_PeMath_eta_to_phi_2=k.jb)(f,x),Oc=o._emscripten_bind_PeMath_phi_to_phig_2=(f,x)=>(Oc=o._emscripten_bind_PeMath_phi_to_phig_2=k.kb)(f,x),em=o._emscripten_bind_PeMath_q_3=(f,x,A)=>(em=o._emscripten_bind_PeMath_q_3=k.lb)(f,x,A),tm=o._emscripten_bind_PeMath_q90_2=(f,x)=>(tm=o._emscripten_bind_PeMath_q90_2=k.mb)(f,x),rm=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=f=>(rm=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=k.nb)(f),nm=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=f=>(nm=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=k.ob)(f),im=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=f=>(im=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=k.pb)(f),om=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=f=>(om=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=k.qb)(f),sm=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=f=>(sm=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=k.rb)(f),am=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=f=>(am=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=k.sb)(f),lm=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=f=>(lm=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=k.tb)(f),cm=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=f=>(cm=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=k.ub)(f),um=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=f=>(um=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=k.vb)(f),dm=o._emscripten_bind_PeParameter_getValue_0=f=>(dm=o._emscripten_bind_PeParameter_getValue_0=k.wb)(f),fm=o._emscripten_bind_PeParameter_getCode_0=f=>(fm=o._emscripten_bind_PeParameter_getCode_0=k.xb)(f),pm=o._emscripten_bind_PeParameter_getName_1=(f,x)=>(pm=o._emscripten_bind_PeParameter_getName_1=k.yb)(f,x),mm=o._emscripten_bind_PeParameter_getType_0=f=>(mm=o._emscripten_bind_PeParameter_getType_0=k.zb)(f),hm=o._emscripten_bind_PePCSInfo_getCentralMeridian_0=f=>(hm=o._emscripten_bind_PePCSInfo_getCentralMeridian_0=k.Ab)(f),gm=o._emscripten_bind_PePCSInfo_getDomainMinx_0=f=>(gm=o._emscripten_bind_PePCSInfo_getDomainMinx_0=k.Bb)(f),wm=o._emscripten_bind_PePCSInfo_getDomainMiny_0=f=>(wm=o._emscripten_bind_PePCSInfo_getDomainMiny_0=k.Cb)(f),ym=o._emscripten_bind_PePCSInfo_getDomainMaxx_0=f=>(ym=o._emscripten_bind_PePCSInfo_getDomainMaxx_0=k.Db)(f),bm=o._emscripten_bind_PePCSInfo_getDomainMaxy_0=f=>(bm=o._emscripten_bind_PePCSInfo_getDomainMaxy_0=k.Eb)(f),_m=o._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=f=>(_m=o._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=k.Fb)(f),vm=o._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=f=>(vm=o._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=k.Gb)(f),Sm=o._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=f=>(Sm=o._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=k.Hb)(f),xm=o._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=f=>(xm=o._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=k.Ib)(f),Cm=o._emscripten_bind_PePCSInfo_isDensificationNeeded_0=f=>(Cm=o._emscripten_bind_PePCSInfo_isDensificationNeeded_0=k.Jb)(f),Tm=o._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=f=>(Tm=o._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=k.Kb)(f),Em=o._emscripten_bind_PePCSInfo_isPannableRectangle_0=f=>(Em=o._emscripten_bind_PePCSInfo_isPannableRectangle_0=k.Lb)(f),Mm=o._emscripten_bind_PePCSInfo_generate_2=(f,x)=>(Mm=o._emscripten_bind_PePCSInfo_generate_2=k.Mb)(f,x),Lm=o._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=f=>(Lm=o._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=k.Nb)(f),Im=o._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=f=>(Im=o._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=k.Ob)(f),Pm=o._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=f=>(Pm=o._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=k.Pb)(f),Am=o._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=f=>(Am=o._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=k.Qb)(f),Nm=o._emscripten_bind_PePrimem_getLongitude_0=f=>(Nm=o._emscripten_bind_PePrimem_getLongitude_0=k.Rb)(f),km=o._emscripten_bind_PePrimem_getCode_0=f=>(km=o._emscripten_bind_PePrimem_getCode_0=k.Sb)(f),Rm=o._emscripten_bind_PePrimem_getName_1=(f,x)=>(Rm=o._emscripten_bind_PePrimem_getName_1=k.Tb)(f,x),Dm=o._emscripten_bind_PePrimem_getType_0=f=>(Dm=o._emscripten_bind_PePrimem_getType_0=k.Ub)(f),Om=o._emscripten_bind_PeProjcs_getGeogcs_0=f=>(Om=o._emscripten_bind_PeProjcs_getGeogcs_0=k.Vb)(f),$m=o._emscripten_bind_PeProjcs_getProjection_0=f=>($m=o._emscripten_bind_PeProjcs_getProjection_0=k.Wb)(f),Fm=o._emscripten_bind_PeProjcs_getParameters_0=f=>(Fm=o._emscripten_bind_PeProjcs_getParameters_0=k.Xb)(f),Vm=o._emscripten_bind_PeProjcs_getUnit_0=f=>(Vm=o._emscripten_bind_PeProjcs_getUnit_0=k.Yb)(f),Um=o._emscripten_bind_PeProjcs_loadConstants_0=f=>(Um=o._emscripten_bind_PeProjcs_loadConstants_0=k.Zb)(f),Wm=o._emscripten_bind_PeProjcs_horizonGcsGenerate_0=f=>(Wm=o._emscripten_bind_PeProjcs_horizonGcsGenerate_0=k._b)(f),zm=o._emscripten_bind_PeProjcs_horizonPcsGenerate_0=f=>(zm=o._emscripten_bind_PeProjcs_horizonPcsGenerate_0=k.$b)(f),Bm=o._emscripten_bind_PeProjcs_isEqual_1=(f,x)=>(Bm=o._emscripten_bind_PeProjcs_isEqual_1=k.ac)(f,x),Gm=o._emscripten_bind_PeProjcs_getCode_0=f=>(Gm=o._emscripten_bind_PeProjcs_getCode_0=k.bc)(f),qm=o._emscripten_bind_PeProjcs_getName_1=(f,x)=>(qm=o._emscripten_bind_PeProjcs_getName_1=k.cc)(f,x),jm=o._emscripten_bind_PeProjcs_getType_0=f=>(jm=o._emscripten_bind_PeProjcs_getType_0=k.dc)(f),Hm=o._emscripten_bind_PeSpheroid_getAxis_0=f=>(Hm=o._emscripten_bind_PeSpheroid_getAxis_0=k.ec)(f),Zm=o._emscripten_bind_PeSpheroid_getFlattening_0=f=>(Zm=o._emscripten_bind_PeSpheroid_getFlattening_0=k.fc)(f),Ym=o._emscripten_bind_PeSpheroid_getCode_0=f=>(Ym=o._emscripten_bind_PeSpheroid_getCode_0=k.gc)(f),Jm=o._emscripten_bind_PeSpheroid_getName_1=(f,x)=>(Jm=o._emscripten_bind_PeSpheroid_getName_1=k.hc)(f,x),Xm=o._emscripten_bind_PeSpheroid_getType_0=f=>(Xm=o._emscripten_bind_PeSpheroid_getType_0=k.ic)(f),Qm=o._emscripten_bind_PeUnit_getUnitFactor_0=f=>(Qm=o._emscripten_bind_PeUnit_getUnitFactor_0=k.jc)(f),Km=o._emscripten_bind_PeUnit_getCode_0=f=>(Km=o._emscripten_bind_PeUnit_getCode_0=k.kc)(f),eh=o._emscripten_bind_PeUnit_getName_1=(f,x)=>(eh=o._emscripten_bind_PeUnit_getName_1=k.lc)(f,x),th=o._emscripten_bind_PeUnit_getType_0=f=>(th=o._emscripten_bind_PeUnit_getType_0=k.mc)(f),rh=o._emscripten_bind_PeVersion_version_string_0=f=>(rh=o._emscripten_bind_PeVersion_version_string_0=k.nc)(f);function nh(){function f(){Fa||(Fa=!0,o.calledRun=!0,de||(pe(),t(o),ve()))}We>0||(ae(),We>0||f())}function Ye(){}function co(f){return(f||Ye).__cache__}function vt(f,x){var A=co(x),G=A[f];return G||((G=Object.create((x||Ye).prototype)).ptr=f,A[f]=G)}function ih(f,x){return vt(f.ptr,x)}function my(f){if(!f.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";f.__destroy__(),delete co(f.__class__)[f.ptr]}function hy(f,x){return f.ptr===x.ptr}function gy(f){return f.ptr}function wy(f){return f.__class__}o._pe_getPeGTlistExtendedEntrySize=()=>(o._pe_getPeGTlistExtendedEntrySize=k.oc)(),o._pe_getPeGTlistExtendedGTsSize=()=>(o._pe_getPeGTlistExtendedGTsSize=k.pc)(),o._pe_getPeHorizonSize=()=>(o._pe_getPeHorizonSize=k.qc)(),o._pe_geog_to_geog=(f,x,A,G,J)=>(o._pe_geog_to_geog=k.sc)(f,x,A,G,J),o._pe_geog_to_proj=(f,x,A)=>(o._pe_geog_to_proj=k.tc)(f,x,A),o._pe_geog_to_dd=(f,x,A,G,J)=>(o._pe_geog_to_dd=k.uc)(f,x,A,G,J),o._pe_dd_to_geog=(f,x,A,G)=>(o._pe_dd_to_geog=k.vc)(f,x,A,G),o._pe_geog_to_ddm=(f,x,A,G,J)=>(o._pe_geog_to_ddm=k.wc)(f,x,A,G,J),o._pe_ddm_to_geog=(f,x,A,G)=>(o._pe_ddm_to_geog=k.xc)(f,x,A,G),o._pe_geog_to_dms=(f,x,A,G,J)=>(o._pe_geog_to_dms=k.yc)(f,x,A,G,J),o._pe_dms_to_geog=(f,x,A,G)=>(o._pe_dms_to_geog=k.zc)(f,x,A,G),o._pe_geog_to_mgrs_extended=(f,x,A,G,J,le,he)=>(o._pe_geog_to_mgrs_extended=k.Ac)(f,x,A,G,J,le,he),o._pe_mgrs_to_geog_extended=(f,x,A,G,J)=>(o._pe_mgrs_to_geog_extended=k.Bc)(f,x,A,G,J),o._pe_geog_to_usng=(f,x,A,G,J,le,he)=>(o._pe_geog_to_usng=k.Cc)(f,x,A,G,J,le,he),o._pe_usng_to_geog=(f,x,A,G)=>(o._pe_usng_to_geog=k.Dc)(f,x,A,G),o._pe_geog_to_utm=(f,x,A,G,J)=>(o._pe_geog_to_utm=k.Ec)(f,x,A,G,J),o._pe_utm_to_geog=(f,x,A,G,J)=>(o._pe_utm_to_geog=k.Fc)(f,x,A,G,J),o._pe_object_to_string_ext=(f,x,A)=>(o._pe_object_to_string_ext=k.Gc)(f,x,A),o._pe_proj_to_geog_center=(f,x,A,G)=>(o._pe_proj_to_geog_center=k.Hc)(f,x,A,G),o.getValue=Qw,o.UTF8ToString=jr,Pt=function f(){Fa||nh(),Fa||(Pt=f)},nh(),Ye.prototype=Object.create(Ye.prototype),Ye.prototype.constructor=Ye,Ye.prototype.__class__=Ye,Ye.__cache__={},o.WrapperObject=Ye,o.getCache=co,o.wrapPointer=vt,o.castObject=ih,o.NULL=vt(0),o.destroy=my,o.compare=hy,o.getPointer=gy,o.getClass=wy;var xe={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(xe.needed){for(var f=0;f<xe.temps.length;f++)o._webidl_free(xe.temps[f]);xe.temps.length=0,o._webidl_free(xe.buffer),xe.buffer=0,xe.size+=xe.needed,xe.needed=0}xe.buffer||(xe.size+=128,xe.buffer=o._webidl_malloc(xe.size),B(xe.buffer)),xe.pos=0},alloc(f,x){B(xe.buffer);var A,G=x.BYTES_PER_ELEMENT,J=f.length*G;return J=xf(J,8),xe.pos+J>=xe.size?(B(J>0),xe.needed+=J,A=o._webidl_malloc(J),xe.temps.push(A)):(A=xe.buffer+xe.pos,xe.pos+=J),A},copy(f,x,A){A/=x.BYTES_PER_ELEMENT;for(var G=0;G<f.length;G++)x[A+G]=f[G]}};function $c(f){if(typeof f=="string"){var x=fy(f),A=xe.alloc(x,V);return xe.copy(x,V,A),A}return f}function nn(f){if(typeof f=="object"){var x=xe.alloc(f,V);return xe.copy(f,V,x),x}return f}function yy(f){if(typeof f=="object"){var x=xe.alloc(f,re);return xe.copy(f,re,x),x}return f}function by(f){if(typeof f=="object"){var x=xe.alloc(f,te);return xe.copy(f,te,x),x}return f}function _y(f){if(typeof f=="object"){var x=xe.alloc(f,ge);return xe.copy(f,ge,x),x}return f}function vy(f){if(typeof f=="object"){var x=xe.alloc(f,be);return xe.copy(f,be,x),x}return f}function dt(){throw"cannot construct a PeObject, no constructor in IDL"}function Vt(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function kn(){throw"cannot construct a VoidPtr, no constructor in IDL"}function Xt(){throw"cannot construct a PeDatum, no constructor in IDL"}function Z(){throw"cannot construct a PeDefs, no constructor in IDL"}function Ut(f){f&&typeof f=="object"&&(f=f.ptr),this.ptr=cp(f),co(Ut)[this.ptr]=this}function dr(){throw"cannot construct a PeFactory, no constructor in IDL"}function At(f,x,A,G,J,le){f&&typeof f=="object"&&(f=f.ptr),x&&typeof x=="object"&&(x=x.ptr),A&&typeof A=="object"&&(A=A.ptr),G&&typeof G=="object"&&(G=G.ptr),J&&typeof J=="object"&&(J=J.ptr),le&&typeof le=="object"&&(le=le.ptr),this.ptr=wp(f,x,A,G,J,le),co(At)[this.ptr]=this}function at(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function lt(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function kr(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function Sr(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function Hr(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function Et(){throw"cannot construct a PeHorizon, no constructor in IDL"}function Wt(f){f&&typeof f=="object"&&(f=f.ptr),this.ptr=qp(f),co(Wt)[this.ptr]=this}function fr(){throw"cannot construct a PeLineType, no constructor in IDL"}function zt(){throw"cannot construct a PeMath, no constructor in IDL"}function Je(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function ft(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function pr(){throw"cannot construct a PeParameter, no constructor in IDL"}function Se(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function Qt(){throw"cannot construct a PePrimem, no constructor in IDL"}function ze(){throw"cannot construct a PeProjcs, no constructor in IDL"}function Nt(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function Bt(){throw"cannot construct a PeUnit, no constructor in IDL"}function Rn(){throw"cannot construct a PeVersion, no constructor in IDL"}return dt.prototype=Object.create(Ye.prototype),dt.prototype.constructor=dt,dt.prototype.__class__=dt,dt.__cache__={},o.PeObject=dt,dt.prototype.getCode=dt.prototype.getCode=function(){var f=this.ptr;return Cf(f)},dt.prototype.getName=dt.prototype.getName=function(f){var x=this.ptr;return xe.prepare(),typeof f=="object"&&(f=nn(f)),jr(Tf(x,f))},dt.prototype.getType=dt.prototype.getType=function(){var f=this.ptr;return Ef(f)},Vt.prototype=Object.create(dt.prototype),Vt.prototype.constructor=Vt,Vt.prototype.__class__=Vt,Vt.__cache__={},o.PeCoordsys=Vt,Vt.prototype.isEqual=Vt.prototype.isEqual=function(f){var x=this.ptr;return f&&typeof f=="object"&&(f=f.ptr),!!Mf(x,f)},Vt.prototype.getCode=Vt.prototype.getCode=function(){var f=this.ptr;return Lf(f)},Vt.prototype.getName=Vt.prototype.getName=function(f){var x=this.ptr;return xe.prepare(),typeof f=="object"&&(f=nn(f)),jr(Cs(x,f))},Vt.prototype.getType=Vt.prototype.getType=function(){var f=this.ptr;return If(f)},kn.prototype=Object.create(Ye.prototype),kn.prototype.constructor=kn,kn.prototype.__class__=kn,kn.__cache__={},o.VoidPtr=kn,kn.prototype.__destroy__=kn.prototype.__destroy__=function(){var f=this.ptr;Pf(f)},Xt.prototype=Object.create(dt.prototype),Xt.prototype.constructor=Xt,Xt.prototype.__class__=Xt,Xt.__cache__={},o.PeDatum=Xt,Xt.prototype.getSpheroid=Xt.prototype.getSpheroid=function(){var f=this.ptr;return vt(Af(f),Nt)},Xt.prototype.getCode=Xt.prototype.getCode=function(){var f=this.ptr;return Nf(f)},Xt.prototype.getName=Xt.prototype.getName=function(f){var x=this.ptr;return xe.prepare(),typeof f=="object"&&(f=nn(f)),jr(Ec(x,f))},Xt.prototype.getType=Xt.prototype.getType=function(){var f=this.ptr;return kf(f)},Z.prototype=Object.create(Ye.prototype),Z.prototype.constructor=Z,Z.prototype.__class__=Z,Z.__cache__={},o.PeDefs=Z,Z.prototype.get_PE_BUFFER_MAX=Z.prototype.get_PE_BUFFER_MAX=function(){var f=this.ptr;return Rf(f)},Object.defineProperty(Z.prototype,"PE_BUFFER_MAX",{get:Z.prototype.get_PE_BUFFER_MAX}),Z.prototype.get_PE_NAME_MAX=Z.prototype.get_PE_NAME_MAX=function(){var f=this.ptr;return Mc(f)},Object.defineProperty(Z.prototype,"PE_NAME_MAX",{get:Z.prototype.get_PE_NAME_MAX}),Z.prototype.get_PE_MGRS_MAX=Z.prototype.get_PE_MGRS_MAX=function(){var f=this.ptr;return Df(f)},Object.defineProperty(Z.prototype,"PE_MGRS_MAX",{get:Z.prototype.get_PE_MGRS_MAX}),Z.prototype.get_PE_USNG_MAX=Z.prototype.get_PE_USNG_MAX=function(){var f=this.ptr;return Lc(f)},Object.defineProperty(Z.prototype,"PE_USNG_MAX",{get:Z.prototype.get_PE_USNG_MAX}),Z.prototype.get_PE_DD_MAX=Z.prototype.get_PE_DD_MAX=function(){var f=this.ptr;return Ic(f)},Object.defineProperty(Z.prototype,"PE_DD_MAX",{get:Z.prototype.get_PE_DD_MAX}),Z.prototype.get_PE_DMS_MAX=Z.prototype.get_PE_DMS_MAX=function(){var f=this.ptr;return Of(f)},Object.defineProperty(Z.prototype,"PE_DMS_MAX",{get:Z.prototype.get_PE_DMS_MAX}),Z.prototype.get_PE_DDM_MAX=Z.prototype.get_PE_DDM_MAX=function(){var f=this.ptr;return $f(f)},Object.defineProperty(Z.prototype,"PE_DDM_MAX",{get:Z.prototype.get_PE_DDM_MAX}),Z.prototype.get_PE_UTM_MAX=Z.prototype.get_PE_UTM_MAX=function(){var f=this.ptr;return Ff(f)},Object.defineProperty(Z.prototype,"PE_UTM_MAX",{get:Z.prototype.get_PE_UTM_MAX}),Z.prototype.get_PE_PARM_MAX=Z.prototype.get_PE_PARM_MAX=function(){var f=this.ptr;return Vf(f)},Object.defineProperty(Z.prototype,"PE_PARM_MAX",{get:Z.prototype.get_PE_PARM_MAX}),Z.prototype.get_PE_TYPE_NONE=Z.prototype.get_PE_TYPE_NONE=function(){var f=this.ptr;return Uf(f)},Object.defineProperty(Z.prototype,"PE_TYPE_NONE",{get:Z.prototype.get_PE_TYPE_NONE}),Z.prototype.get_PE_TYPE_GEOGCS=Z.prototype.get_PE_TYPE_GEOGCS=function(){var f=this.ptr;return Wf(f)},Object.defineProperty(Z.prototype,"PE_TYPE_GEOGCS",{get:Z.prototype.get_PE_TYPE_GEOGCS}),Z.prototype.get_PE_TYPE_PROJCS=Z.prototype.get_PE_TYPE_PROJCS=function(){var f=this.ptr;return zf(f)},Object.defineProperty(Z.prototype,"PE_TYPE_PROJCS",{get:Z.prototype.get_PE_TYPE_PROJCS}),Z.prototype.get_PE_TYPE_GEOGTRAN=Z.prototype.get_PE_TYPE_GEOGTRAN=function(){var f=this.ptr;return Bf(f)},Object.defineProperty(Z.prototype,"PE_TYPE_GEOGTRAN",{get:Z.prototype.get_PE_TYPE_GEOGTRAN}),Z.prototype.get_PE_TYPE_COORDSYS=Z.prototype.get_PE_TYPE_COORDSYS=function(){var f=this.ptr;return Gf(f)},Object.defineProperty(Z.prototype,"PE_TYPE_COORDSYS",{get:Z.prototype.get_PE_TYPE_COORDSYS}),Z.prototype.get_PE_TYPE_UNIT=Z.prototype.get_PE_TYPE_UNIT=function(){var f=this.ptr;return qf(f)},Object.defineProperty(Z.prototype,"PE_TYPE_UNIT",{get:Z.prototype.get_PE_TYPE_UNIT}),Z.prototype.get_PE_TYPE_LINUNIT=Z.prototype.get_PE_TYPE_LINUNIT=function(){var f=this.ptr;return jf(f)},Object.defineProperty(Z.prototype,"PE_TYPE_LINUNIT",{get:Z.prototype.get_PE_TYPE_LINUNIT}),Z.prototype.get_PE_STR_OPTS_NONE=Z.prototype.get_PE_STR_OPTS_NONE=function(){var f=this.ptr;return Hf(f)},Object.defineProperty(Z.prototype,"PE_STR_OPTS_NONE",{get:Z.prototype.get_PE_STR_OPTS_NONE}),Z.prototype.get_PE_STR_AUTH_NONE=Z.prototype.get_PE_STR_AUTH_NONE=function(){var f=this.ptr;return Zf(f)},Object.defineProperty(Z.prototype,"PE_STR_AUTH_NONE",{get:Z.prototype.get_PE_STR_AUTH_NONE}),Z.prototype.get_PE_STR_AUTH_TOP=Z.prototype.get_PE_STR_AUTH_TOP=function(){var f=this.ptr;return Yf(f)},Object.defineProperty(Z.prototype,"PE_STR_AUTH_TOP",{get:Z.prototype.get_PE_STR_AUTH_TOP}),Z.prototype.get_PE_STR_NAME_CANON=Z.prototype.get_PE_STR_NAME_CANON=function(){var f=this.ptr;return Jf(f)},Object.defineProperty(Z.prototype,"PE_STR_NAME_CANON",{get:Z.prototype.get_PE_STR_NAME_CANON}),Z.prototype.get_PE_STR_FMT_WKT=Z.prototype.get_PE_STR_FMT_WKT=function(){var f=this.ptr;return Xf(f)},Object.defineProperty(Z.prototype,"PE_STR_FMT_WKT",{get:Z.prototype.get_PE_STR_FMT_WKT}),Z.prototype.get_PE_STR_FMT_WKT2=Z.prototype.get_PE_STR_FMT_WKT2=function(){var f=this.ptr;return Qf(f)},Object.defineProperty(Z.prototype,"PE_STR_FMT_WKT2",{get:Z.prototype.get_PE_STR_FMT_WKT2}),Z.prototype.get_PE_PARM_X0=Z.prototype.get_PE_PARM_X0=function(){var f=this.ptr;return Kf(f)},Object.defineProperty(Z.prototype,"PE_PARM_X0",{get:Z.prototype.get_PE_PARM_X0}),Z.prototype.get_PE_PARM_ND=Z.prototype.get_PE_PARM_ND=function(){var f=this.ptr;return ep(f)},Object.defineProperty(Z.prototype,"PE_PARM_ND",{get:Z.prototype.get_PE_PARM_ND}),Z.prototype.get_PE_TRANSFORM_1_TO_2=Z.prototype.get_PE_TRANSFORM_1_TO_2=function(){var f=this.ptr;return tp(f)},Object.defineProperty(Z.prototype,"PE_TRANSFORM_1_TO_2",{get:Z.prototype.get_PE_TRANSFORM_1_TO_2}),Z.prototype.get_PE_TRANSFORM_2_TO_1=Z.prototype.get_PE_TRANSFORM_2_TO_1=function(){var f=this.ptr;return rp(f)},Object.defineProperty(Z.prototype,"PE_TRANSFORM_2_TO_1",{get:Z.prototype.get_PE_TRANSFORM_2_TO_1}),Z.prototype.get_PE_TRANSFORM_P_TO_G=Z.prototype.get_PE_TRANSFORM_P_TO_G=function(){var f=this.ptr;return np(f)},Object.defineProperty(Z.prototype,"PE_TRANSFORM_P_TO_G",{get:Z.prototype.get_PE_TRANSFORM_P_TO_G}),Z.prototype.get_PE_TRANSFORM_G_TO_P=Z.prototype.get_PE_TRANSFORM_G_TO_P=function(){var f=this.ptr;return ip(f)},Object.defineProperty(Z.prototype,"PE_TRANSFORM_G_TO_P",{get:Z.prototype.get_PE_TRANSFORM_G_TO_P}),Z.prototype.get_PE_HORIZON_RECT=Z.prototype.get_PE_HORIZON_RECT=function(){var f=this.ptr;return op(f)},Object.defineProperty(Z.prototype,"PE_HORIZON_RECT",{get:Z.prototype.get_PE_HORIZON_RECT}),Z.prototype.get_PE_HORIZON_POLY=Z.prototype.get_PE_HORIZON_POLY=function(){var f=this.ptr;return sp(f)},Object.defineProperty(Z.prototype,"PE_HORIZON_POLY",{get:Z.prototype.get_PE_HORIZON_POLY}),Z.prototype.get_PE_HORIZON_LINE=Z.prototype.get_PE_HORIZON_LINE=function(){var f=this.ptr;return ap(f)},Object.defineProperty(Z.prototype,"PE_HORIZON_LINE",{get:Z.prototype.get_PE_HORIZON_LINE}),Z.prototype.get_PE_HORIZON_DELTA=Z.prototype.get_PE_HORIZON_DELTA=function(){var f=this.ptr;return lp(f)},Object.defineProperty(Z.prototype,"PE_HORIZON_DELTA",{get:Z.prototype.get_PE_HORIZON_DELTA}),Ut.prototype=Object.create(Ye.prototype),Ut.prototype.constructor=Ut,Ut.prototype.__class__=Ut,Ut.__cache__={},o.PeDouble=Ut,Ut.prototype.get_val=Ut.prototype.get_val=function(){var f=this.ptr;return up(f)},Ut.prototype.set_val=Ut.prototype.set_val=function(f){var x=this.ptr;f&&typeof f=="object"&&(f=f.ptr),dp(x,f)},Object.defineProperty(Ut.prototype,"val",{get:Ut.prototype.get_val,set:Ut.prototype.set_val}),Ut.prototype.__destroy__=Ut.prototype.__destroy__=function(){var f=this.ptr;fp(f)},dr.prototype=Object.create(Ye.prototype),dr.prototype.constructor=dr,dr.prototype.__class__=dr,dr.__cache__={},o.PeFactory=dr,dr.prototype.initialize=dr.prototype.initialize=function(f){xe.prepare(),f=f&&typeof f=="object"?f.ptr:$c(f),pp(f)},dr.prototype.factoryByType=dr.prototype.factoryByType=function(f,x){return f&&typeof f=="object"&&(f=f.ptr),x&&typeof x=="object"&&(x=x.ptr),vt(mp(f,x),dt)},dr.prototype.fromString=dr.prototype.fromString=function(f,x){return xe.prepare(),f&&typeof f=="object"&&(f=f.ptr),x=x&&typeof x=="object"?x.ptr:$c(x),vt(hp(f,x),dt)},dr.prototype.getCode=dr.prototype.getCode=function(f){return f&&typeof f=="object"&&(f=f.ptr),gp(f)},At.prototype=Object.create(Ye.prototype),At.prototype.constructor=At,At.prototype.__class__=At,At.__cache__={},o.PeGCSExtent=At,At.prototype.getLLon=At.prototype.getLLon=function(){var f=this.ptr;return yp(f)},At.prototype.getSLat=At.prototype.getSLat=function(){var f=this.ptr;return bp(f)},At.prototype.getRLon=At.prototype.getRLon=function(){var f=this.ptr;return _p(f)},At.prototype.getNLat=At.prototype.getNLat=function(){var f=this.ptr;return vp(f)},At.prototype.__destroy__=At.prototype.__destroy__=function(){var f=this.ptr;Sp(f)},at.prototype=Object.create(Vt.prototype),at.prototype.constructor=at,at.prototype.__class__=at,at.__cache__={},o.PeGeogcs=at,at.prototype.getDatum=at.prototype.getDatum=function(){var f=this.ptr;return vt(xp(f),Xt)},at.prototype.getPrimem=at.prototype.getPrimem=function(){var f=this.ptr;return vt(Cp(f),Qt)},at.prototype.getUnit=at.prototype.getUnit=function(){var f=this.ptr;return vt(Tp(f),Bt)},at.prototype.isEqual=at.prototype.isEqual=function(f){var x=this.ptr;return f&&typeof f=="object"&&(f=f.ptr),!!Ep(x,f)},at.prototype.getCode=at.prototype.getCode=function(){var f=this.ptr;return Mp(f)},at.prototype.getName=at.prototype.getName=function(f){var x=this.ptr;return xe.prepare(),typeof f=="object"&&(f=nn(f)),jr(Lp(x,f))},at.prototype.getType=at.prototype.getType=function(){var f=this.ptr;return Ip(f)},lt.prototype=Object.create(dt.prototype),lt.prototype.constructor=lt,lt.prototype.__class__=lt,lt.__cache__={},o.PeGeogtran=lt,lt.prototype.isEqual=lt.prototype.isEqual=function(f){var x=this.ptr;return f&&typeof f=="object"&&(f=f.ptr),!!Pp(x,f)},lt.prototype.getGeogcs1=lt.prototype.getGeogcs1=function(){var f=this.ptr;return vt(Ap(f),at)},lt.prototype.getGeogcs2=lt.prototype.getGeogcs2=function(){var f=this.ptr;return vt(Np(f),at)},lt.prototype.getParameters=lt.prototype.getParameters=function(){var f=this.ptr;return kp(f)},lt.prototype.loadConstants=lt.prototype.loadConstants=function(){var f=this.ptr;return!!Pc(f)},lt.prototype.getCode=lt.prototype.getCode=function(){var f=this.ptr;return Ac(f)},lt.prototype.getName=lt.prototype.getName=function(f){var x=this.ptr;return xe.prepare(),typeof f=="object"&&(f=nn(f)),jr(Rp(x,f))},lt.prototype.getType=lt.prototype.getType=function(){var f=this.ptr;return Dp(f)},kr.prototype=Object.create(Ye.prototype),kr.prototype.constructor=kr,kr.prototype.__class__=kr,kr.__cache__={},o.PeGTlistExtended=kr,kr.prototype.getGTlist=kr.prototype.getGTlist=function(f,x,A,G,J,le){return f&&typeof f=="object"&&(f=f.ptr),x&&typeof x=="object"&&(x=x.ptr),A&&typeof A=="object"&&(A=A.ptr),G&&typeof G=="object"&&(G=G.ptr),J&&typeof J=="object"&&(J=J.ptr),le&&typeof le=="object"&&(le=le.ptr),vt(Nc(f,x,A,G,J,le),Sr)},kr.prototype.get_PE_GTLIST_OPTS_COMMON=kr.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var f=this.ptr;return Op(f)},Object.defineProperty(kr.prototype,"PE_GTLIST_OPTS_COMMON",{get:kr.prototype.get_PE_GTLIST_OPTS_COMMON}),Sr.prototype=Object.create(Ye.prototype),Sr.prototype.constructor=Sr,Sr.prototype.__class__=Sr,Sr.__cache__={},o.PeGTlistExtendedEntry=Sr,Sr.prototype.getEntries=Sr.prototype.getEntries=function(){var f=this.ptr;return vt(kc(f),Hr)},Sr.prototype.getSteps=Sr.prototype.getSteps=function(){var f=this.ptr;return $p(f)},Sr.prototype.Delete=Sr.prototype.Delete=function(f){f&&typeof f=="object"&&(f=f.ptr),Fp(f)},Hr.prototype=Object.create(Ye.prototype),Hr.prototype.constructor=Hr,Hr.prototype.__class__=Hr,Hr.__cache__={},o.PeGTlistExtendedGTs=Hr,Hr.prototype.getDirection=Hr.prototype.getDirection=function(){var f=this.ptr;return Vp(f)},Hr.prototype.getGeogtran=Hr.prototype.getGeogtran=function(){var f=this.ptr;return vt(Rc(f),lt)},Et.prototype=Object.create(Ye.prototype),Et.prototype.constructor=Et,Et.prototype.__class__=Et,Et.__cache__={},o.PeHorizon=Et,Et.prototype.getNump=Et.prototype.getNump=function(){var f=this.ptr;return Up(f)},Et.prototype.getKind=Et.prototype.getKind=function(){var f=this.ptr;return Wp(f)},Et.prototype.getInclusive=Et.prototype.getInclusive=function(){var f=this.ptr;return zp(f)},Et.prototype.getSize=Et.prototype.getSize=function(){var f=this.ptr;return Bp(f)},Et.prototype.getCoord=Et.prototype.getCoord=function(){var f=this.ptr;return Gp(f)},Wt.prototype=Object.create(Ye.prototype),Wt.prototype.constructor=Wt,Wt.prototype.__class__=Wt,Wt.__cache__={},o.PeInteger=Wt,Wt.prototype.get_val=Wt.prototype.get_val=function(){var f=this.ptr;return jp(f)},Wt.prototype.set_val=Wt.prototype.set_val=function(f){var x=this.ptr;f&&typeof f=="object"&&(f=f.ptr),Hp(x,f)},Object.defineProperty(Wt.prototype,"val",{get:Wt.prototype.get_val,set:Wt.prototype.set_val}),Wt.prototype.__destroy__=Wt.prototype.__destroy__=function(){var f=this.ptr;Zp(f)},fr.prototype=Object.create(Ye.prototype),fr.prototype.constructor=fr,fr.prototype.__class__=fr,fr.__cache__={},o.PeLineType=fr,fr.prototype.geodetic_distance=fr.prototype.geodetic_distance=function(f,x,A,G,J,le,he,fe,Ee,xr){f&&typeof f=="object"&&(f=f.ptr),x&&typeof x=="object"&&(x=x.ptr),A&&typeof A=="object"&&(A=A.ptr),G&&typeof G=="object"&&(G=G.ptr),J&&typeof J=="object"&&(J=J.ptr),le&&typeof le=="object"&&(le=le.ptr),he&&typeof he=="object"&&(he=he.ptr),fe&&typeof fe=="object"&&(fe=fe.ptr),Ee&&typeof Ee=="object"&&(Ee=Ee.ptr),xr&&typeof xr=="object"&&(xr=xr.ptr),Yp(f,x,A,G,J,le,he,fe,Ee,xr)},fr.prototype.geodetic_coordinate=fr.prototype.geodetic_coordinate=function(f,x,A,G,J,le,he,fe,Ee){f&&typeof f=="object"&&(f=f.ptr),x&&typeof x=="object"&&(x=x.ptr),A&&typeof A=="object"&&(A=A.ptr),G&&typeof G=="object"&&(G=G.ptr),J&&typeof J=="object"&&(J=J.ptr),le&&typeof le=="object"&&(le=le.ptr),he&&typeof he=="object"&&(he=he.ptr),fe&&typeof fe=="object"&&(fe=fe.ptr),Ee&&typeof Ee=="object"&&(Ee=Ee.ptr),Jp(f,x,A,G,J,le,he,fe,Ee)},fr.prototype.geodesic_coordinate=fr.prototype.geodesic_coordinate=function(f,x,A,G,J,le,he,fe){f&&typeof f=="object"&&(f=f.ptr),x&&typeof x=="object"&&(x=x.ptr),A&&typeof A=="object"&&(A=A.ptr),G&&typeof G=="object"&&(G=G.ptr),J&&typeof J=="object"&&(J=J.ptr),le&&typeof le=="object"&&(le=le.ptr),he&&typeof he=="object"&&(he=he.ptr),fe&&typeof fe=="object"&&(fe=fe.ptr),Xp(f,x,A,G,J,le,he,fe)},fr.prototype.great_elliptic_distance=fr.prototype.great_elliptic_distance=function(f,x,A,G,J,le,he,fe,Ee){f&&typeof f=="object"&&(f=f.ptr),x&&typeof x=="object"&&(x=x.ptr),A&&typeof A=="object"&&(A=A.ptr),G&&typeof G=="object"&&(G=G.ptr),J&&typeof J=="object"&&(J=J.ptr),le&&typeof le=="object"&&(le=le.ptr),he&&typeof he=="object"&&(he=he.ptr),fe&&typeof fe=="object"&&(fe=fe.ptr),Ee&&typeof Ee=="object"&&(Ee=Ee.ptr),Qp(f,x,A,G,J,le,he,fe,Ee)},zt.prototype=Object.create(Ye.prototype),zt.prototype.constructor=zt,zt.prototype.__class__=zt,zt.__cache__={},o.PeMath=zt,zt.prototype.phi_to_eta=zt.prototype.phi_to_eta=function(f,x){return f&&typeof f=="object"&&(f=f.ptr),x&&typeof x=="object"&&(x=x.ptr),Dc(f,x)},zt.prototype.eta_to_phi=zt.prototype.eta_to_phi=function(f,x){return f&&typeof f=="object"&&(f=f.ptr),x&&typeof x=="object"&&(x=x.ptr),Kp(f,x)},zt.prototype.phi_to_phig=zt.prototype.phi_to_phig=function(f,x){return f&&typeof f=="object"&&(f=f.ptr),x&&typeof x=="object"&&(x=x.ptr),Oc(f,x)},zt.prototype.q=zt.prototype.q=function(f,x,A){return f&&typeof f=="object"&&(f=f.ptr),x&&typeof x=="object"&&(x=x.ptr),A&&typeof A=="object"&&(A=A.ptr),em(f,x,A)},zt.prototype.q90=zt.prototype.q90=function(f,x){return f&&typeof f=="object"&&(f=f.ptr),x&&typeof x=="object"&&(x=x.ptr),tm(f,x)},Je.prototype=Object.create(Ye.prototype),Je.prototype.constructor=Je,Je.prototype.__class__=Je,Je.__cache__={},o.PeNotationMgrs=Je,Je.prototype.get_PE_MGRS_STYLE_NEW=Je.prototype.get_PE_MGRS_STYLE_NEW=function(){var f=this.ptr;return rm(f)},Object.defineProperty(Je.prototype,"PE_MGRS_STYLE_NEW",{get:Je.prototype.get_PE_MGRS_STYLE_NEW}),Je.prototype.get_PE_MGRS_STYLE_OLD=Je.prototype.get_PE_MGRS_STYLE_OLD=function(){var f=this.ptr;return nm(f)},Object.defineProperty(Je.prototype,"PE_MGRS_STYLE_OLD",{get:Je.prototype.get_PE_MGRS_STYLE_OLD}),Je.prototype.get_PE_MGRS_STYLE_AUTO=Je.prototype.get_PE_MGRS_STYLE_AUTO=function(){var f=this.ptr;return im(f)},Object.defineProperty(Je.prototype,"PE_MGRS_STYLE_AUTO",{get:Je.prototype.get_PE_MGRS_STYLE_AUTO}),Je.prototype.get_PE_MGRS_180_ZONE_1_PLUS=Je.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var f=this.ptr;return om(f)},Object.defineProperty(Je.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:Je.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),Je.prototype.get_PE_MGRS_ADD_SPACES=Je.prototype.get_PE_MGRS_ADD_SPACES=function(){var f=this.ptr;return sm(f)},Object.defineProperty(Je.prototype,"PE_MGRS_ADD_SPACES",{get:Je.prototype.get_PE_MGRS_ADD_SPACES}),ft.prototype=Object.create(Ye.prototype),ft.prototype.constructor=ft,ft.prototype.__class__=ft,ft.__cache__={},o.PeNotationUtm=ft,ft.prototype.get_PE_UTM_OPTS_NONE=ft.prototype.get_PE_UTM_OPTS_NONE=function(){var f=this.ptr;return am(f)},Object.defineProperty(ft.prototype,"PE_UTM_OPTS_NONE",{get:ft.prototype.get_PE_UTM_OPTS_NONE}),ft.prototype.get_PE_UTM_OPTS_NS=ft.prototype.get_PE_UTM_OPTS_NS=function(){var f=this.ptr;return lm(f)},Object.defineProperty(ft.prototype,"PE_UTM_OPTS_NS",{get:ft.prototype.get_PE_UTM_OPTS_NS}),ft.prototype.get_PE_UTM_OPTS_NS_STRICT=ft.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var f=this.ptr;return cm(f)},Object.defineProperty(ft.prototype,"PE_UTM_OPTS_NS_STRICT",{get:ft.prototype.get_PE_UTM_OPTS_NS_STRICT}),ft.prototype.get_PE_UTM_OPTS_ADD_SPACES=ft.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var f=this.ptr;return um(f)},Object.defineProperty(ft.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:ft.prototype.get_PE_UTM_OPTS_ADD_SPACES}),pr.prototype=Object.create(dt.prototype),pr.prototype.constructor=pr,pr.prototype.__class__=pr,pr.__cache__={},o.PeParameter=pr,pr.prototype.getValue=pr.prototype.getValue=function(){var f=this.ptr;return dm(f)},pr.prototype.getCode=pr.prototype.getCode=function(){var f=this.ptr;return fm(f)},pr.prototype.getName=pr.prototype.getName=function(f){var x=this.ptr;return xe.prepare(),typeof f=="object"&&(f=nn(f)),jr(pm(x,f))},pr.prototype.getType=pr.prototype.getType=function(){var f=this.ptr;return mm(f)},Se.prototype=Object.create(Ye.prototype),Se.prototype.constructor=Se,Se.prototype.__class__=Se,Se.__cache__={},o.PePCSInfo=Se,Se.prototype.getCentralMeridian=Se.prototype.getCentralMeridian=function(){var f=this.ptr;return hm(f)},Se.prototype.getDomainMinx=Se.prototype.getDomainMinx=function(){var f=this.ptr;return gm(f)},Se.prototype.getDomainMiny=Se.prototype.getDomainMiny=function(){var f=this.ptr;return wm(f)},Se.prototype.getDomainMaxx=Se.prototype.getDomainMaxx=function(){var f=this.ptr;return ym(f)},Se.prototype.getDomainMaxy=Se.prototype.getDomainMaxy=function(){var f=this.ptr;return bm(f)},Se.prototype.getNorthPoleLocation=Se.prototype.getNorthPoleLocation=function(){var f=this.ptr;return _m(f)},Se.prototype.getNorthPoleGeometry=Se.prototype.getNorthPoleGeometry=function(){var f=this.ptr;return vm(f)},Se.prototype.getSouthPoleLocation=Se.prototype.getSouthPoleLocation=function(){var f=this.ptr;return Sm(f)},Se.prototype.getSouthPoleGeometry=Se.prototype.getSouthPoleGeometry=function(){var f=this.ptr;return xm(f)},Se.prototype.isDensificationNeeded=Se.prototype.isDensificationNeeded=function(){var f=this.ptr;return!!Cm(f)},Se.prototype.isGcsHorizonMultiOverlap=Se.prototype.isGcsHorizonMultiOverlap=function(){var f=this.ptr;return!!Tm(f)},Se.prototype.isPannableRectangle=Se.prototype.isPannableRectangle=function(){var f=this.ptr;return!!Em(f)},Se.prototype.generate=Se.prototype.generate=function(f,x){return f&&typeof f=="object"&&(f=f.ptr),x&&typeof x=="object"&&(x=x.ptr),vt(Mm(f,x),Se)},Se.prototype.get_PE_PCSINFO_OPTION_NONE=Se.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var f=this.ptr;return Lm(f)},Object.defineProperty(Se.prototype,"PE_PCSINFO_OPTION_NONE",{get:Se.prototype.get_PE_PCSINFO_OPTION_NONE}),Se.prototype.get_PE_PCSINFO_OPTION_DOMAIN=Se.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var f=this.ptr;return Im(f)},Object.defineProperty(Se.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:Se.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),Se.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=Se.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var f=this.ptr;return Pm(f)},Object.defineProperty(Se.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:Se.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),Se.prototype.get_PE_POLE_POINT=Se.prototype.get_PE_POLE_POINT=function(){var f=this.ptr;return Am(f)},Object.defineProperty(Se.prototype,"PE_POLE_POINT",{get:Se.prototype.get_PE_POLE_POINT}),Qt.prototype=Object.create(dt.prototype),Qt.prototype.constructor=Qt,Qt.prototype.__class__=Qt,Qt.__cache__={},o.PePrimem=Qt,Qt.prototype.getLongitude=Qt.prototype.getLongitude=function(){var f=this.ptr;return Nm(f)},Qt.prototype.getCode=Qt.prototype.getCode=function(){var f=this.ptr;return km(f)},Qt.prototype.getName=Qt.prototype.getName=function(f){var x=this.ptr;return xe.prepare(),typeof f=="object"&&(f=nn(f)),jr(Rm(x,f))},Qt.prototype.getType=Qt.prototype.getType=function(){var f=this.ptr;return Dm(f)},ze.prototype=Object.create(Vt.prototype),ze.prototype.constructor=ze,ze.prototype.__class__=ze,ze.__cache__={},o.PeProjcs=ze,ze.prototype.getGeogcs=ze.prototype.getGeogcs=function(){var f=this.ptr;return vt(Om(f),at)},ze.prototype.getProjection=ze.prototype.getProjection=function(){var f=this.ptr;return vt($m(f),dt)},ze.prototype.getParameters=ze.prototype.getParameters=function(){var f=this.ptr;return Fm(f)},ze.prototype.getUnit=ze.prototype.getUnit=function(){var f=this.ptr;return vt(Vm(f),Bt)},ze.prototype.loadConstants=ze.prototype.loadConstants=function(){var f=this.ptr;return!!Um(f)},ze.prototype.horizonGcsGenerate=ze.prototype.horizonGcsGenerate=function(){var f=this.ptr;return vt(Wm(f),Et)},ze.prototype.horizonPcsGenerate=ze.prototype.horizonPcsGenerate=function(){var f=this.ptr;return vt(zm(f),Et)},ze.prototype.isEqual=ze.prototype.isEqual=function(f){var x=this.ptr;return f&&typeof f=="object"&&(f=f.ptr),!!Bm(x,f)},ze.prototype.getCode=ze.prototype.getCode=function(){var f=this.ptr;return Gm(f)},ze.prototype.getName=ze.prototype.getName=function(f){var x=this.ptr;return xe.prepare(),typeof f=="object"&&(f=nn(f)),jr(qm(x,f))},ze.prototype.getType=ze.prototype.getType=function(){var f=this.ptr;return jm(f)},Nt.prototype=Object.create(dt.prototype),Nt.prototype.constructor=Nt,Nt.prototype.__class__=Nt,Nt.__cache__={},o.PeSpheroid=Nt,Nt.prototype.getAxis=Nt.prototype.getAxis=function(){var f=this.ptr;return Hm(f)},Nt.prototype.getFlattening=Nt.prototype.getFlattening=function(){var f=this.ptr;return Zm(f)},Nt.prototype.getCode=Nt.prototype.getCode=function(){var f=this.ptr;return Ym(f)},Nt.prototype.getName=Nt.prototype.getName=function(f){var x=this.ptr;return xe.prepare(),typeof f=="object"&&(f=nn(f)),jr(Jm(x,f))},Nt.prototype.getType=Nt.prototype.getType=function(){var f=this.ptr;return Xm(f)},Bt.prototype=Object.create(dt.prototype),Bt.prototype.constructor=Bt,Bt.prototype.__class__=Bt,Bt.__cache__={},o.PeUnit=Bt,Bt.prototype.getUnitFactor=Bt.prototype.getUnitFactor=function(){var f=this.ptr;return Qm(f)},Bt.prototype.getCode=Bt.prototype.getCode=function(){var f=this.ptr;return Km(f)},Bt.prototype.getName=Bt.prototype.getName=function(f){var x=this.ptr;return xe.prepare(),typeof f=="object"&&(f=nn(f)),jr(eh(x,f))},Bt.prototype.getType=Bt.prototype.getType=function(){var f=this.ptr;return th(f)},Rn.prototype=Object.create(Ye.prototype),Rn.prototype.constructor=Rn,Rn.prototype.__class__=Rn,Rn.__cache__={},o.PeVersion=Rn,Rn.prototype.version_string=Rn.prototype.version_string=function(){var f=this.ptr;return jr(rh(f))},o.ensureCache=xe,o.ensureString=$c,o.ensureInt8=nn,o.ensureInt16=yy,o.ensureInt32=by,o.ensureFloat32=_y,o.ensureFloat64=vy,s},WI.exports=zI;Cq=$I(BI.exports),Tq=Object.freeze(Object.defineProperty({__proto__:null,default:Cq},Symbol.toStringTag,{value:"Module"}))});function jI(){return!!P}function Eq(){return!!Q("esri-wasm")}function HI(){return JS||(JS=Promise.resolve().then(()=>(qI(),GI)).then(e=>e.p).then(({default:e})=>e({locateFile:t=>ql(`esri/geometry/support/${t}`)})).then(e=>{JI(e)}),JS)}function JI(e){function t(o,s,a){o[s]=a(o[s])}P=e,ut.init(),Sw.init(),xw.init(),Cw.init(),Tw.init(),ZI=class extends P.PeDouble{constructor(o=NaN){super(o)}destroy(){P.destroy(this)}[Symbol.dispose](){this.destroy()}},YI=class extends P.PeGCSExtent{destroy(){P.destroy(this)}[Symbol.dispose](){this.destroy()}};let r=[P.PeDatum,P.PeGeogcs,P.PeGeogtran,P.PeObject,P.PeParameter,P.PePrimem,P.PeProjcs,P.PeSpheroid,P.PeUnit];for(let o of r)t(o.prototype,"getName",s=>function(){return s.call(this,new Array(ut.PE_NAME_MAX))});for(let o of[P.PeGeogtran,P.PeProjcs])t(o.prototype,"getParameters",s=>function(){let a=new Array(ut.PE_PARM_MAX),u=s.call(this);for(let d=0;d<a.length;d++){let p=P.getValue(u,"*");a[d]=p?P.wrapPointer(p,P.PeParameter):null,u+=Int32Array.BYTES_PER_ELEMENT}return a});t(P.PeHorizon.prototype,"getCoord",o=>function(s=!1){let a=this.getSize();if(!a)return null;let u=[];return hs(u,a,o.call(this),s),u}),t(P.PeGTlistExtendedEntry.prototype,"getEntries",o=>{let s=P._pe_getPeGTlistExtendedGTsSize();return function(){let a=null,u=o.call(this);if(!P.compare(u,P.NULL)){a=[u];let d=this.getSteps();if(d>1){let p=P.getPointer(u);for(let m=1;m<d;m++)a.push(P.wrapPointer(p+s*m,P.PeGTlistExtendedGTs))}}return a}});let n=P._pe_getPeHorizonSize(),i=o=>function(){let s=this._cache;if(s||(s=new Map,this._cache=s),s.has(o))return s.get(o);let a=null,u=o.call(this);if(!P.compare(u,P.NULL)){a=[u];let d=u.getNump();if(d>1){let p=P.getPointer(u);for(let m=1;m<d;m++)a.push(P.wrapPointer(p+n*m,P.PeHorizon))}}return s.set(o,a),a};t(P.PeProjcs.prototype,"horizonGcsGenerate",i),t(P.PeProjcs.prototype,"horizonPcsGenerate",i),P.PeObject.prototype.toString=function(o=ut.PE_STR_OPTS_NONE){P.ensureCache.prepare();let s=P.getPointer(this),a=P.ensureInt8(new Array(ut.PE_BUFFER_MAX));return P.UTF8ToString(P._pe_object_to_string_ext(s,o,a))}}function io(e){if(!e)return;let t=P.getClass(e);if(!t)return;let r=P.getCache(t);if(!r)return;let n=P.getPointer(e);n&&delete r[n]}function _w(e,t){let r=[],n=new Array(t);for(let i=0;i<e;i++)r.push(P.ensureInt8(n));return r}function Sa(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function hs(e,t,r,n=!1){if(n)for(let i=0;i<2*t;i++)e[i]=P.getValue(r+i*Float64Array.BYTES_PER_ELEMENT,"double");else{let i=e.length===0;for(let o=0;o<t;o++)i&&(e[o]=new Array(2)),e[o][0]=P.getValue(r,"double"),e[o][1]=P.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}var JS,P,XS,ut,ZI,vw,YI,Sw,QS,KS,e4,t4,r4,xw,n4,Cw,Tw,i4,Ihe,XI=L(()=>{K0();Ge();P=null;(function(e){function t(o,s,a){P.ensureCache.prepare();let u=Sa(a),d=a===u,p=P.ensureFloat64(u),m=P._pe_geog_to_proj(P.getPointer(o),s,p);return m&&hs(a,s,p,d),m}function r(o,s,a,u){switch(u){case ut.PE_TRANSFORM_P_TO_G:return n(o,s,a);case ut.PE_TRANSFORM_G_TO_P:return t(o,s,a)}return 0}function n(o,s,a){return i(o,s,a,0)}function i(o,s,a,u){P.ensureCache.prepare();let d=Sa(a),p=a===d,m=P.ensureFloat64(d),w=P._pe_proj_to_geog_center(P.getPointer(o),s,m,u);return w&&hs(a,s,m,p),w}e.geogToProj=t,e.projGeog=r,e.projToGeog=n,e.projToGeogCenter=i})(XS||(XS={})),function(e){function t(){e.PE_BUFFER_MAX=P.PeDefs.prototype.PE_BUFFER_MAX,e.PE_NAME_MAX=P.PeDefs.prototype.PE_NAME_MAX,e.PE_MGRS_MAX=P.PeDefs.prototype.PE_MGRS_MAX,e.PE_USNG_MAX=P.PeDefs.prototype.PE_USNG_MAX,e.PE_DD_MAX=P.PeDefs.prototype.PE_DD_MAX,e.PE_DDM_MAX=P.PeDefs.prototype.PE_DDM_MAX,e.PE_DMS_MAX=P.PeDefs.prototype.PE_DMS_MAX,e.PE_UTM_MAX=P.PeDefs.prototype.PE_UTM_MAX,e.PE_PARM_MAX=P.PeDefs.prototype.PE_PARM_MAX,e.PE_TYPE_NONE=P.PeDefs.prototype.PE_TYPE_NONE,e.PE_TYPE_GEOGCS=P.PeDefs.prototype.PE_TYPE_GEOGCS,e.PE_TYPE_PROJCS=P.PeDefs.prototype.PE_TYPE_PROJCS,e.PE_TYPE_GEOGTRAN=P.PeDefs.prototype.PE_TYPE_GEOGTRAN,e.PE_TYPE_COORDSYS=P.PeDefs.prototype.PE_TYPE_COORDSYS,e.PE_TYPE_UNIT=P.PeDefs.prototype.PE_TYPE_UNIT,e.PE_TYPE_LINUNIT=P.PeDefs.prototype.PE_TYPE_LINUNIT,e.PE_STR_OPTS_NONE=P.PeDefs.prototype.PE_STR_OPTS_NONE,e.PE_STR_AUTH_NONE=P.PeDefs.prototype.PE_STR_AUTH_NONE,e.PE_STR_AUTH_TOP=P.PeDefs.prototype.PE_STR_AUTH_TOP,e.PE_STR_NAME_CANON=P.PeDefs.prototype.PE_STR_NAME_CANON,e.PE_STR_FMT_WKT=P.PeDefs.prototype.PE_STR_FMT_WKT,e.PE_STR_FMT_WKT2=P.PeDefs.prototype.PE_STR_FMT_WKT2,e.PE_PARM_X0=P.PeDefs.prototype.PE_PARM_X0,e.PE_PARM_ND=P.PeDefs.prototype.PE_PARM_ND,e.PE_TRANSFORM_1_TO_2=P.PeDefs.prototype.PE_TRANSFORM_1_TO_2,e.PE_TRANSFORM_2_TO_1=P.PeDefs.prototype.PE_TRANSFORM_2_TO_1,e.PE_TRANSFORM_P_TO_G=P.PeDefs.prototype.PE_TRANSFORM_P_TO_G,e.PE_TRANSFORM_G_TO_P=P.PeDefs.prototype.PE_TRANSFORM_G_TO_P,e.PE_HORIZON_RECT=P.PeDefs.prototype.PE_HORIZON_RECT,e.PE_HORIZON_POLY=P.PeDefs.prototype.PE_HORIZON_POLY,e.PE_HORIZON_LINE=P.PeDefs.prototype.PE_HORIZON_LINE,e.PE_HORIZON_DELTA=P.PeDefs.prototype.PE_HORIZON_DELTA}e.init=t}(ut||(ut={}));ZI=null;(function(e){let t={},r={},n=_=>{if(_){let S=_.getType();switch(S){case ut.PE_TYPE_GEOGCS:_=P.castObject(_,P.PeGeogcs);break;case ut.PE_TYPE_PROJCS:_=P.castObject(_,P.PeProjcs);break;case ut.PE_TYPE_GEOGTRAN:_=P.castObject(_,P.PeGeogtran);break;default:S&ut.PE_TYPE_UNIT&&(_=P.castObject(_,P.PeUnit))}}return _};function i(){P.PeFactory.prototype.initialize(null)}function o(_){return s(ut.PE_TYPE_COORDSYS,_)}function s(_,S){let T=null,M=t[_];if(M||(M={},t[_]=M),M.hasOwnProperty(String(S)))T=M[S];else{let R=P.PeFactory.prototype.factoryByType(_,S);P.compare(R,P.NULL)||(T=R,M[S]=T)}return T=n(T),T}function a(_,S){let T=null,M=r[_];if(M||(M={},r[_]=M),M.hasOwnProperty(S))T=M[S];else{let R=P.PeFactory.prototype.fromString(_,S);P.compare(R,P.NULL)||(T=R,M[S]=T)}return T=n(T),T}function u(_){return s(ut.PE_TYPE_GEOGCS,_)}function d(_){return s(ut.PE_TYPE_GEOGTRAN,_)}function p(_){return P.PeFactory.prototype.getCode(_)}function m(_){return s(ut.PE_TYPE_PROJCS,_)}function w(_){return s(ut.PE_TYPE_UNIT,_)}e.initialize=i,e.coordsys=o,e.factoryByType=s,e.fromString=a,e.geogcs=u,e.geogtran=d,e.getCode=p,e.projcs=m,e.unit=w})(vw||(vw={}));YI=null;(function(e){let t;function r(){e.PE_GTLIST_OPTS_COMMON=P.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=P._pe_getPeGTlistExtendedEntrySize()}function n(i,o,s,a,u,d){let p=null,m=new P.PeInteger(d);try{let w=P.PeGTlistExtended.prototype.getGTlist(i,o,s,a,u,m);if((d=m.val)&&(p=[w],d>1)){let _=P.getPointer(w);for(let S=1;S<d;S++)p.push(P.wrapPointer(_+t*S,P.PeGTlistExtendedEntry))}}finally{P.destroy(m)}return p}e.init=r,e.getGTlist=n})(Sw||(Sw={})),function(e){function t(r){if(r?.length){for(let n of r)io(n),n.getEntries().forEach(i=>{io(i);let o=i.getGeogtran();io(o),o.getParameters().forEach(io),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{io(s);let a=s.getDatum();io(a),io(a.getSpheroid()),io(s.getPrimem()),io(s.getUnit())})});P.PeGTlistExtendedEntry.prototype.Delete(r[0])}}e.destroy=t}(QS||(QS={})),function(e){function t(r,n,i,o,s){P.ensureCache.prepare();let a=Sa(i),u=i===a,d=P.ensureFloat64(a),p=0;o&&(p=P.ensureFloat64(o));let m=P._pe_geog_to_geog(P.getPointer(r),n,d,p,s);return m&&hs(i,n,d,u),m}e.geogToGeog=t}(KS||(KS={})),function(e){function t(o,s,a,u,d,p,m,w){P.PeLineType.prototype.geodesic_coordinate(o,s,a,u,d,p,m,w)}function r(o,s,a,u,d,p,m,w,_){P.PeLineType.prototype.geodetic_coordinate(o,s,a,u,d,p,m,w,_)}function n(o,s,a,u,d,p,m,w,_,S){P.PeLineType.prototype.geodetic_distance(o,s,a,u,d,p,m,w,_,S)}function i(o,s,a,u,d,p,m,w,_){P.PeLineType.prototype.great_elliptic_distance(o,s,a,u,d,p,m,w,_)}e.geodesicCoordinate=t,e.geodeticCoordinate=r,e.geodeticDistance=n,e.greatEllipticDistance=i}(e4||(e4={})),function(e){function t(s,a){return P.PeMath.prototype.phi_to_eta(s,a)}function r(s,a){return P.PeMath.prototype.eta_to_phi(s,a)}function n(s,a){return P.PeMath.prototype.phi_to_phig(s,a)}function i(s,a,u){return P.PeMath.prototype.q(s,a,u)}function o(s,a){return P.PeMath.prototype.q90(s,a)}e.phiToEta=t,e.etaToPhi=r,e.phiToPhig=n,e.q=i,e.q90=o}(t4||(t4={})),function(e){let t=(d,p,m,w,_,S)=>{let T,M;switch(P.ensureCache.prepare(),d){case"dd":T=P._pe_geog_to_dd,M=ut.PE_DD_MAX;break;case"ddm":T=P._pe_geog_to_ddm,M=ut.PE_DDM_MAX;break;case"dms":T=P._pe_geog_to_dms,M=ut.PE_DMS_MAX}let R=0;p&&(R=P.getPointer(p));let I=Sa(w),N=P.ensureFloat64(I),V=_w(m,M),Y=T(R,m,N,_,P.ensureInt32(V));if(Y)for(let re=0;re<m;re++)S[re]=P.UTF8ToString(V[re]);return Y},r=(d,p,m,w,_)=>{let S;switch(P.ensureCache.prepare(),d){case"dd":S=P._pe_dd_to_geog;break;case"ddm":S=P._pe_ddm_to_geog;break;case"dms":S=P._pe_dms_to_geog}let T=0;p&&(T=P.getPointer(p));let M=w.map(V=>P.ensureString(V)),R=P.ensureInt32(M),I=P.ensureFloat64(new Array(2*m)),N=S(T,m,R,I);return N&&hs(_,m,I),N};function n(d,p,m,w,_){return t("dms",d,p,m,w,_)}function i(d,p,m,w){return r("dms",d,p,m,w)}function o(d,p,m,w,_){return t("ddm",d,p,m,w,_)}function s(d,p,m,w){return r("ddm",d,p,m,w)}function a(d,p,m,w,_){return t("dd",d,p,m,w,_)}function u(d,p,m,w){return r("dd",d,p,m,w)}e.geogToDms=n,e.dmsToGeog=i,e.geogToDdm=o,e.ddmToGeog=s,e.geogToDd=a,e.ddToGeog=u}(r4||(r4={})),function(e){function t(){e.PE_MGRS_STYLE_NEW=P.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=P.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=P.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=P.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=P.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(i,o,s,a,u,d,p){P.ensureCache.prepare();let m=0;i&&(m=P.getPointer(i));let w=Sa(s),_=P.ensureFloat64(w),S=_w(o,ut.PE_MGRS_MAX),T=P.ensureInt32(S),M=P._pe_geog_to_mgrs_extended(m,o,_,a,u,d,T);if(M)for(let R=0;R<o;R++)p[R]=P.UTF8ToString(S[R]);return M}function n(i,o,s,a,u){P.ensureCache.prepare();let d=0;i&&(d=P.getPointer(i));let p=s.map(S=>P.ensureString(S)),m=P.ensureInt32(p),w=P.ensureFloat64(new Array(2*o)),_=P._pe_mgrs_to_geog_extended(d,o,m,a,w);return _&&hs(u,o,w),_}e.init=t,e.geogToMgrsExtended=r,e.mgrsToGeogExtended=n}(xw||(xw={})),function(e){function t(n,i,o,s,a,u,d){P.ensureCache.prepare();let p=0;n&&(p=P.getPointer(n));let m=Sa(o),w=P.ensureFloat64(m),_=_w(i,ut.PE_MGRS_MAX),S=P.ensureInt32(_),T=P._pe_geog_to_usng(p,i,w,s,a,u,S);if(T)for(let M=0;M<i;M++)d[M]=P.UTF8ToString(_[M]);return T}function r(n,i,o,s){P.ensureCache.prepare();let a=0;n&&(a=P.getPointer(n));let u=o.map(w=>P.ensureString(w)),d=P.ensureInt32(u),p=P.ensureFloat64(new Array(2*i)),m=P._pe_usng_to_geog(a,i,d,p);return m&&hs(s,i,p),m}e.geogToUsng=t,e.usngToGeog=r}(n4||(n4={})),function(e){function t(){e.PE_UTM_OPTS_NONE=P.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=P.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=P.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(i,o,s,a,u){P.ensureCache.prepare();let d=0;i&&(d=P.getPointer(i));let p=Sa(s),m=P.ensureFloat64(p),w=_w(o,ut.PE_UTM_MAX),_=P.ensureInt32(w),S=P._pe_geog_to_utm(d,o,m,a,_);if(S)for(let T=0;T<o;T++)u[T]=P.UTF8ToString(w[T]);return S}function n(i,o,s,a,u){P.ensureCache.prepare();let d=0;i&&(d=P.getPointer(i));let p=s.map(S=>P.ensureString(S)),m=P.ensureInt32(p),w=P.ensureFloat64(new Array(2*o)),_=P._pe_utm_to_geog(d,o,m,a,w);return _&&hs(u,o,w),_}e.init=t,e.geogToUtm=r,e.utmToGeog=n}(Cw||(Cw={})),function(e){let t=new Map;function r(){e.PE_PCSINFO_OPTION_NONE=P.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=P.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=P.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=P.PePCSInfo.prototype.PE_POLE_POINT}function n(i,o=e.PE_PCSINFO_OPTION_DOMAIN){let s=null,a=null;return t.has(i)&&(a=t.get(i),a[o]&&(s=a[o])),s||(s=P.PePCSInfo.prototype.generate(i,o),a||(a=[],t.set(i,a)),a[o]=s),s}e.init=r,e.generate=n}(Tw||(Tw={})),function(e){function t(){return P.PeVersion.prototype.version_string()}e.versionString=t}(i4||(i4={}));Ihe=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return XS},get PeDefs(){return ut},get PeDouble(){return ZI},get PeFactory(){return vw},get PeGCSExtent(){return YI},get PeGTTransformations(){return KS},get PeGTlistExtended(){return Sw},get PeGTlistExtendedEntry(){return QS},get PeLineType(){return e4},get PeMath(){return t4},get PeNotationDms(){return r4},get PeNotationMgrs(){return xw},get PeNotationUsng(){return n4},get PeNotationUtm(){return Cw},get PePCSInfo(){return Tw},get PeVersion(){return i4},_init:JI,get _pe(){return P},isLoaded:jI,isSupported:Eq,load:HI},Symbol.toStringTag,{value:"Module"}))});var mc,QI=L(()=>{(function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"})(mc||(mc={}))});var l,v,o4=L(()=>{v={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1};for(l=2e3;l<=2045;l++)v[l]=0;for(l=2056;l<=2065;l++)v[l]=0;for(l=2067;l<=2135;l++)v[l]=0;for(l=2137;l<=2154;l++)v[l]=0;for(l=2161;l<=2170;l++)v[l]=0;for(l=2172;l<=2193;l++)v[l]=0;for(l=2195;l<=2198;l++)v[l]=0;for(l=2200;l<=2203;l++)v[l]=0;for(l=2205;l<=2217;l++)v[l]=0;for(l=2222;l<=2224;l++)v[l]=1;for(l=2225;l<=2250;l++)v[l]=2;for(l=2251;l<=2253;l++)v[l]=1;for(l=2257;l<=2264;l++)v[l]=2;for(l=2274;l<=2279;l++)v[l]=2;for(l=2280;l<=2282;l++)v[l]=1;for(l=2283;l<=2289;l++)v[l]=2;for(l=2290;l<=2292;l++)v[l]=0;for(l=2308;l<=2313;l++)v[l]=0;for(l=2315;l<=2491;l++)v[l]=0;for(l=2494;l<=2866;l++)v[l]=0;for(l=2867;l<=2869;l++)v[l]=1;for(l=2870;l<=2888;l++)v[l]=2;for(l=2891;l<=2895;l++)v[l]=2;for(l=2896;l<=2898;l++)v[l]=1;for(l=2902;l<=2908;l++)v[l]=2;for(l=2915;l<=2920;l++)v[l]=2;for(l=2921;l<=2923;l++)v[l]=1;for(l=2924;l<=2930;l++)v[l]=2;for(l=2931;l<=2962;l++)v[l]=0;for(l=2964;l<=2968;l++)v[l]=2;for(l=2969;l<=2973;l++)v[l]=0;for(l=2975;l<=2991;l++)v[l]=0;for(l=2995;l<=3051;l++)v[l]=0;for(l=3054;l<=3079;l++)v[l]=0;for(l=3081;l<=3088;l++)v[l]=0;for(l=3092;l<=3101;l++)v[l]=0;for(l=3106;l<=3138;l++)v[l]=0;for(l=3146;l<=3151;l++)v[l]=0;for(l=3153;l<=3166;l++)v[l]=0;for(l=3168;l<=3172;l++)v[l]=0;for(l=3174;l<=3203;l++)v[l]=0;for(l=3294;l<=3358;l++)v[l]=0;for(l=3367;l<=3403;l++)v[l]=0;for(l=3408;l<=3416;l++)v[l]=0;for(l=3417;l<=3438;l++)v[l]=2;for(l=3441;l<=3446;l++)v[l]=2;for(l=3447;l<=3450;l++)v[l]=0;for(l=3451;l<=3459;l++)v[l]=2;for(l=3460;l<=3478;l++)v[l]=0;for(l=3554;l<=3559;l++)v[l]=0;for(l=3560;l<=3570;l++)v[l]=2;for(l=3571;l<=3581;l++)v[l]=0;for(l=3594;l<=3597;l++)v[l]=0;for(l=3601;l<=3604;l++)v[l]=0;for(l=3637;l<=3639;l++)v[l]=0;for(l=3665;l<=3667;l++)v[l]=0;for(l=3693;l<=3695;l++)v[l]=0;for(l=3701;l<=3727;l++)v[l]=0;for(l=3728;l<=3739;l++)v[l]=2;for(l=3740;l<=3751;l++)v[l]=0;for(l=3753;l<=3760;l++)v[l]=2;for(l=3761;l<=3773;l++)v[l]=0;for(l=3775;l<=3777;l++)v[l]=0;for(l=3779;l<=3781;l++)v[l]=0;for(l=3783;l<=3785;l++)v[l]=0;for(l=3788;l<=3791;l++)v[l]=0;for(l=3797;l<=3802;l++)v[l]=0;for(l=3814;l<=3816;l++)v[l]=0;for(l=3825;l<=3829;l++)v[l]=0;for(l=3832;l<=3841;l++)v[l]=0;for(l=3844;l<=3852;l++)v[l]=0;for(l=3873;l<=3885;l++)v[l]=0;for(l=3890;l<=3893;l++)v[l]=0;for(l=3907;l<=3912;l++)v[l]=0;for(l=3942;l<=3950;l++)v[l]=0;for(l=3968;l<=3970;l++)v[l]=0;for(l=3973;l<=3976;l++)v[l]=0;for(l=3986;l<=3989;l++)v[l]=0;for(l=3994;l<=3997;l++)v[l]=0;for(l=4048;l<=4051;l++)v[l]=0;for(l=4056;l<=4063;l++)v[l]=0;for(l=4093;l<=4096;l++)v[l]=0;for(l=4390;l<=4398;l++)v[l]=0;for(l=4399;l<=4413;l++)v[l]=2;for(l=4418;l<=4433;l++)v[l]=2;for(l=4455;l<=4457;l++)v[l]=2;for(l=4484;l<=4489;l++)v[l]=0;for(l=4491;l<=4554;l++)v[l]=0;for(l=4568;l<=4589;l++)v[l]=0;for(l=4652;l<=4656;l++)v[l]=0;for(l=4766;l<=4800;l++)v[l]=0;for(l=5014;l<=5016;l++)v[l]=0;for(l=5069;l<=5072;l++)v[l]=0;for(l=5105;l<=5130;l++)v[l]=0;for(l=5167;l<=5188;l++)v[l]=0;for(l=5253;l<=5259;l++)v[l]=0;for(l=5269;l<=5275;l++)v[l]=0;for(l=5292;l<=5311;l++)v[l]=0;for(l=5329;l<=5331;l++)v[l]=0;for(l=5343;l<=5349;l++)v[l]=0;for(l=5355;l<=5357;l++)v[l]=0;for(l=5387;l<=5389;l++)v[l]=0;for(l=5459;l<=5463;l++)v[l]=0;for(l=5479;l<=5482;l++)v[l]=0;for(l=5518;l<=5520;l++)v[l]=0;for(l=5530;l<=5539;l++)v[l]=0;for(l=5550;l<=5552;l++)v[l]=0;for(l=5562;l<=5583;l++)v[l]=0;for(l=5623;l<=5625;l++)v[l]=2;for(l=5631;l<=5639;l++)v[l]=0;for(l=5649;l<=5653;l++)v[l]=0;for(l=5663;l<=5680;l++)v[l]=0;for(l=5682;l<=5685;l++)v[l]=0;for(l=5875;l<=5877;l++)v[l]=0;for(l=5896;l<=5899;l++)v[l]=0;for(l=5921;l<=5940;l++)v[l]=0;for(l=6050;l<=6125;l++)v[l]=0;for(l=6244;l<=6275;l++)v[l]=0;for(l=6328;l<=6348;l++)v[l]=0;for(l=6350;l<=6356;l++)v[l]=0;for(l=6366;l<=6372;l++)v[l]=0;for(l=6381;l<=6387;l++)v[l]=0;for(l=6393;l<=6404;l++)v[l]=0;for(l=6480;l<=6483;l++)v[l]=0;for(l=6511;l<=6514;l++)v[l]=0;for(l=6579;l<=6581;l++)v[l]=0;for(l=6619;l<=6624;l++)v[l]=0;for(l=6625;l<=6627;l++)v[l]=2;for(l=6628;l<=6632;l++)v[l]=0;for(l=6634;l<=6637;l++)v[l]=0;for(l=6669;l<=6692;l++)v[l]=0;for(l=6707;l<=6709;l++)v[l]=0;for(l=6720;l<=6723;l++)v[l]=0;for(l=6732;l<=6738;l++)v[l]=0;for(l=6931;l<=6933;l++)v[l]=0;for(l=6956;l<=6959;l++)v[l]=0;for(l=7005;l<=7007;l++)v[l]=0;for(l=7057;l<=7070;l++)v[l]=2;for(l=7074;l<=7082;l++)v[l]=0;for(l=7109;l<=7118;l++)v[l]=0;for(l=7119;l<=7127;l++)v[l]=1;for(l=7374;l<=7376;l++)v[l]=0;for(l=7528;l<=7586;l++)v[l]=0;for(l=7587;l<=7645;l++)v[l]=2;for(l=7692;l<=7696;l++)v[l]=0;for(l=7755;l<=7787;l++)v[l]=0;for(l=7791;l<=7795;l++)v[l]=0;for(l=7799;l<=7801;l++)v[l]=0;for(l=7803;l<=7805;l++)v[l]=0;for(l=7825;l<=7831;l++)v[l]=0;for(l=7845;l<=7859;l++)v[l]=0;for(l=8013;l<=8032;l++)v[l]=0;for(l=8065;l<=8068;l++)v[l]=1;for(l=8518;l<=8529;l++)v[l]=2;for(l=8533;l<=8536;l++)v[l]=2;for(l=8538;l<=8540;l++)v[l]=2;for(l=8677;l<=8679;l++)v[l]=0;for(l=8836;l<=8840;l++)v[l]=0;for(l=8857;l<=8859;l++)v[l]=0;for(l=8908;l<=8910;l++)v[l]=0;for(l=9154;l<=9159;l++)v[l]=0;for(l=9205;l<=9218;l++)v[l]=0;for(l=9271;l<=9273;l++)v[l]=0;for(l=9295;l<=9297;l++)v[l]=0;for(l=9356;l<=9360;l++)v[l]=0;for(l=9404;l<=9407;l++)v[l]=0;for(l=9476;l<=9482;l++)v[l]=0;for(l=9487;l<=9494;l++)v[l]=0;for(l=9697;l<=9699;l++)v[l]=0;for(l=9821;l<=9865;l++)v[l]=0;for(l=10285;l<=10291;l++)v[l]=0;for(l=10314;l<=10317;l++)v[l]=0;for(l=10448;l<=10465;l++)v[l]=0;for(l=10731;l<=10733;l++)v[l]=0;for(l=11114;l<=11118;l++)v[l]=0;for(l=20004;l<=20032;l++)v[l]=0;for(l=20047;l<=20049;l++)v[l]=0;for(l=20062;l<=20092;l++)v[l]=0;for(l=20135;l<=20138;l++)v[l]=0;for(l=20248;l<=20258;l++)v[l]=0;for(l=20348;l<=20358;l++)v[l]=0;for(l=20436;l<=20440;l++)v[l]=0;for(l=20822;l<=20824;l++)v[l]=0;for(l=20904;l<=20932;l++)v[l]=0;for(l=20934;l<=20936;l++)v[l]=0;for(l=21004;l<=21032;l++)v[l]=0;for(l=21035;l<=21037;l++)v[l]=0;for(l=21095;l<=21097;l++)v[l]=0;for(l=21148;l<=21150;l++)v[l]=0;for(l=21207;l<=21264;l++)v[l]=0;for(l=21307;l<=21364;l++)v[l]=0;for(l=21413;l<=21423;l++)v[l]=0;for(l=21453;l<=21463;l++)v[l]=0;for(l=21473;l<=21483;l++)v[l]=0;for(l=21780;l<=21782;l++)v[l]=0;for(l=21891;l<=21894;l++)v[l]=0;for(l=21896;l<=21899;l++)v[l]=0;for(l=22171;l<=22177;l++)v[l]=0;for(l=22181;l<=22187;l++)v[l]=0;for(l=22191;l<=22197;l++)v[l]=0;for(l=22207;l<=22222;l++)v[l]=0;for(l=22229;l<=22232;l++)v[l]=0;for(l=22234;l<=22236;l++)v[l]=0;for(l=22243;l<=22250;l++)v[l]=0;for(l=22262;l<=22265;l++)v[l]=0;for(l=22307;l<=22322;l++)v[l]=0;for(l=22348;l<=22357;l++)v[l]=0;for(l=22407;l<=22422;l++)v[l]=0;for(l=22462;l<=22465;l++)v[l]=0;for(l=22521;l<=22525;l++)v[l]=0;for(l=22607;l<=22622;l++)v[l]=0;for(l=22641;l<=22646;l++)v[l]=0;for(l=22648;l<=22657;l++)v[l]=0;for(l=22707;l<=22722;l++)v[l]=0;for(l=22762;l<=22765;l++)v[l]=0;for(l=22807;l<=22822;l++)v[l]=0;for(l=22991;l<=22994;l++)v[l]=0;for(l=23028;l<=23038;l++)v[l]=0;for(l=23301;l<=23333;l++)v[l]=2;for(l=23830;l<=23853;l++)v[l]=0;for(l=23866;l<=23872;l++)v[l]=0;for(l=23877;l<=23884;l++)v[l]=0;for(l=23886;l<=23894;l++)v[l]=0;for(l=23946;l<=23948;l++)v[l]=0;for(l=24311;l<=24313;l++)v[l]=0;for(l=24342;l<=24347;l++)v[l]=0;for(l=24370;l<=24374;l++)v[l]=10;for(l=24375;l<=24381;l++)v[l]=0;for(l=24718;l<=24721;l++)v[l]=0;for(l=24817;l<=24821;l++)v[l]=0;for(l=24877;l<=24882;l++)v[l]=0;for(l=24891;l<=24893;l++)v[l]=0;for(l=25391;l<=25395;l++)v[l]=0;for(l=25828;l<=25838;l++)v[l]=0;for(l=26191;l<=26195;l++)v[l]=0;for(l=26391;l<=26393;l++)v[l]=0;for(l=26701;l<=26722;l++)v[l]=0;for(l=26729;l<=26799;l++)v[l]=2;for(l=26801;l<=26803;l++)v[l]=2;for(l=26811;l<=26813;l++)v[l]=2;for(l=26847;l<=26870;l++)v[l]=2;for(l=26891;l<=26899;l++)v[l]=0;for(l=26901;l<=26923;l++)v[l]=0;for(l=26929;l<=26946;l++)v[l]=0;for(l=26948;l<=26998;l++)v[l]=0;for(l=27037;l<=27040;l++)v[l]=0;for(l=27205;l<=27232;l++)v[l]=0;for(l=27258;l<=27260;l++)v[l]=0;for(l=27391;l<=27398;l++)v[l]=0;for(l=27561;l<=27564;l++)v[l]=0;for(l=27571;l<=27574;l++)v[l]=0;for(l=27581;l<=27584;l++)v[l]=0;for(l=27591;l<=27594;l++)v[l]=0;for(l=27700;l<=27707;l++)v[l]=0;for(l=28191;l<=28193;l++)v[l]=0;for(l=28348;l<=28358;l++)v[l]=0;for(l=28402;l<=28432;l++)v[l]=0;for(l=28462;l<=28492;l++)v[l]=0;for(l=29118;l<=29122;l++)v[l]=0;for(l=29168;l<=29172;l++)v[l]=0;for(l=29177;l<=29185;l++)v[l]=0;for(l=29187;l<=29195;l++)v[l]=0;for(l=29900;l<=29903;l++)v[l]=0;for(l=30161;l<=30179;l++)v[l]=0;for(l=30491;l<=30494;l++)v[l]=0;for(l=30729;l<=30732;l++)v[l]=0;for(l=31251;l<=31259;l++)v[l]=0;for(l=31265;l<=31268;l++)v[l]=0;for(l=31275;l<=31279;l++)v[l]=0;for(l=31281;l<=31297;l++)v[l]=0;for(l=31461;l<=31469;l++)v[l]=0;for(l=31491;l<=31495;l++)v[l]=0;for(l=31917;l<=31922;l++)v[l]=0;for(l=31965;l<=32e3;l++)v[l]=0;for(l=32001;l<=32003;l++)v[l]=2;for(l=32005;l<=32031;l++)v[l]=2;for(l=32033;l<=32060;l++)v[l]=2;for(l=32064;l<=32067;l++)v[l]=2;for(l=32074;l<=32077;l++)v[l]=2;for(l=32081;l<=32086;l++)v[l]=0;for(l=32107;l<=32130;l++)v[l]=0;for(l=32133;l<=32159;l++)v[l]=0;for(l=32164;l<=32167;l++)v[l]=2;for(l=32180;l<=32199;l++)v[l]=0;for(l=32201;l<=32260;l++)v[l]=0;for(l=32301;l<=32360;l++)v[l]=0;for(l=32401;l<=32460;l++)v[l]=0;for(l=32501;l<=32560;l++)v[l]=0;for(l=32601;l<=32662;l++)v[l]=0;for(l=32664;l<=32667;l++)v[l]=2;for(l=32701;l<=32761;l++)v[l]=0;for(l=53001;l<=53004;l++)v[l]=0;for(l=53008;l<=53019;l++)v[l]=0;for(l=53021;l<=53032;l++)v[l]=0;for(l=53034;l<=53037;l++)v[l]=0;for(l=53042;l<=53046;l++)v[l]=0;for(l=53074;l<=53080;l++)v[l]=0;for(l=54001;l<=54004;l++)v[l]=0;for(l=54008;l<=54019;l++)v[l]=0;for(l=54021;l<=54032;l++)v[l]=0;for(l=54034;l<=54037;l++)v[l]=0;for(l=54042;l<=54046;l++)v[l]=0;for(l=54048;l<=54053;l++)v[l]=0;for(l=54074;l<=54080;l++)v[l]=0;for(l=54098;l<=54101;l++)v[l]=0;for(l=102001;l<=102040;l++)v[l]=0;for(l=102042;l<=102063;l++)v[l]=0;for(l=102065;l<=102067;l++)v[l]=0;for(l=102070;l<=102117;l++)v[l]=0;for(l=102122;l<=102216;l++)v[l]=0;for(l=102221;l<=102377;l++)v[l]=0;for(l=102382;l<=102388;l++)v[l]=0;for(l=102389;l<=102398;l++)v[l]=2;for(l=102399;l<=102444;l++)v[l]=0;for(l=102445;l<=102447;l++)v[l]=2;for(l=102448;l<=102458;l++)v[l]=0;for(l=102459;l<=102468;l++)v[l]=2;for(l=102469;l<=102499;l++)v[l]=0;for(l=102500;l<=102519;l++)v[l]=1;for(l=102520;l<=102524;l++)v[l]=0;for(l=102525;l<=102529;l++)v[l]=2;for(l=102530;l<=102588;l++)v[l]=0;for(l=102590;l<=102598;l++)v[l]=0;for(l=102601;l<=102603;l++)v[l]=0;for(l=102605;l<=102628;l++)v[l]=0;for(l=102629;l<=102646;l++)v[l]=2;for(l=102648;l<=102700;l++)v[l]=2;for(l=102701;l<=102703;l++)v[l]=0;for(l=102707;l<=102730;l++)v[l]=2;for(l=102733;l<=102758;l++)v[l]=2;for(l=102767;l<=102900;l++)v[l]=0;for(l=102901;l<=102933;l++)v[l]=2;for(l=102934;l<=102950;l++)v[l]=13;for(l=102951;l<=102963;l++)v[l]=0;for(l=102965;l<=102969;l++)v[l]=0;for(l=102971;l<=102973;l++)v[l]=0;for(l=102975;l<=102989;l++)v[l]=0;for(l=102990;l<=102992;l++)v[l]=1;for(l=102997;l<=103002;l++)v[l]=0;for(l=103003;l<=103008;l++)v[l]=2;for(l=103009;l<=103011;l++)v[l]=0;for(l=103012;l<=103014;l++)v[l]=2;for(l=103019;l<=103021;l++)v[l]=0;for(l=103022;l<=103024;l++)v[l]=2;for(l=103029;l<=103031;l++)v[l]=0;for(l=103032;l<=103034;l++)v[l]=2;for(l=103065;l<=103068;l++)v[l]=0;for(l=103074;l<=103076;l++)v[l]=0;for(l=103077;l<=103079;l++)v[l]=1;for(l=103080;l<=103082;l++)v[l]=0;for(l=103083;l<=103085;l++)v[l]=2;for(l=103090;l<=103093;l++)v[l]=0;for(l=103097;l<=103099;l++)v[l]=0;for(l=103100;l<=103102;l++)v[l]=2;for(l=103107;l<=103109;l++)v[l]=0;for(l=103110;l<=103112;l++)v[l]=2;for(l=103113;l<=103116;l++)v[l]=0;for(l=103117;l<=103120;l++)v[l]=2;for(l=103153;l<=103157;l++)v[l]=0;for(l=103158;l<=103162;l++)v[l]=2;for(l=103163;l<=103165;l++)v[l]=0;for(l=103166;l<=103168;l++)v[l]=1;for(l=103169;l<=103171;l++)v[l]=2;for(l=103186;l<=103188;l++)v[l]=0;for(l=103189;l<=103191;l++)v[l]=2;for(l=103192;l<=103195;l++)v[l]=0;for(l=103196;l<=103199;l++)v[l]=2;for(l=103200;l<=103224;l++)v[l]=0;for(l=103225;l<=103227;l++)v[l]=1;for(l=103232;l<=103237;l++)v[l]=0;for(l=103238;l<=103243;l++)v[l]=2;for(l=103244;l<=103246;l++)v[l]=0;for(l=103247;l<=103249;l++)v[l]=2;for(l=103254;l<=103256;l++)v[l]=0;for(l=103257;l<=103259;l++)v[l]=2;for(l=103264;l<=103266;l++)v[l]=0;for(l=103267;l<=103269;l++)v[l]=2;for(l=103300;l<=103375;l++)v[l]=0;for(l=103381;l<=103383;l++)v[l]=0;for(l=103384;l<=103386;l++)v[l]=1;for(l=103387;l<=103389;l++)v[l]=0;for(l=103390;l<=103392;l++)v[l]=2;for(l=103397;l<=103399;l++)v[l]=0;for(l=103400;l<=103471;l++)v[l]=2;for(l=103476;l<=103478;l++)v[l]=0;for(l=103479;l<=103481;l++)v[l]=2;for(l=103486;l<=103488;l++)v[l]=0;for(l=103489;l<=103491;l++)v[l]=2;for(l=103492;l<=103495;l++)v[l]=0;for(l=103496;l<=103499;l++)v[l]=2;for(l=103528;l<=103543;l++)v[l]=0;for(l=103544;l<=103548;l++)v[l]=2;for(l=103549;l<=103551;l++)v[l]=0;for(l=103552;l<=103554;l++)v[l]=1;for(l=103555;l<=103557;l++)v[l]=2;for(l=103558;l<=103560;l++)v[l]=0;for(l=103571;l<=103573;l++)v[l]=0;for(l=103574;l<=103576;l++)v[l]=2;for(l=103577;l<=103580;l++)v[l]=0;for(l=103581;l<=103583;l++)v[l]=2;for(l=103595;l<=103694;l++)v[l]=0;for(l=103696;l<=103699;l++)v[l]=0;for(l=103700;l<=103793;l++)v[l]=2;for(l=103794;l<=103890;l++)v[l]=0;for(l=103891;l<=103896;l++)v[l]=2;for(l=103900;l<=103971;l++)v[l]=2;for(l=103972;l<=103977;l++)v[l]=0;for(l=112e3;l<=112101;l++)v[l]=0});function gs(e,t){if(e===t)return!0;if(e==null||t==null)return!1;let r=e.wkid,n=t.wkid;if(r!=null||n!=null){if(r===n||Ri(e)&&Ri(t))return!0;let s=e.latestWkid;if(s!=null&&n===s)return!0;let a=t.latestWkid;return a!=null&&r===a}let i,o;return e.wkt2&&t.wkt2?(i=e.wkt2,o=t.wkt2):e.wkt&&t.wkt&&(i=e.wkt,o=t.wkt),!(!i||!o)&&i.toUpperCase()===o.toUpperCase()}function xa(e){let t=e?.wkid;return t!=null&&t>=2e3&&eP[t]||null}function tf(e){if(!rP(e))return!1;let{wkid:t}=e;if(t)return v[t]==null;let r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function hc(e){return e?.wkid===4326}function Ri(e){let t=e?.wkid;return t!=null&&t>=2e3&&KI.includes(t)}function c4(e){return e===mc.GCSMARS2000||e===mc.GCSMARS2000_SPHERE}function u4(e){return e===mc.GCSMOON2000}function tP(e){let t=e?.wkid;return t!=null&&t>=2e3&&Lq.includes(t)}function rP(e){if(e==null)return!1;let t=e.wkid;return t!=null&&t>=2e3||e.wkt2!=null||e.wkt!=null}var KI,Mq,Lq,a4,l4,s4,eP,d4,f4,nP,oo=L(()=>{Io();XI();QI();o4();KI=[102100,102113,3857,3785,900913],Mq=[104905,104971],Lq=[4326,...KI,...Mq],a4=[-20037508342788905e-9,20037508342788905e-9],l4=[-20037508342787e-6,20037508342787e-6],s4={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:a4,origin:l4,dx:1e-5},eP={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:a4,origin:l4,dx:1e-5},102100:s4,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:a4,origin:l4,dx:1e-5},3857:s4,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:s4};d4={wkid:4326,wkt:gi(eP[4326].wkTemplate,{Central_Meridian:"0.0"})},f4={wkid:102100,latestWkid:3857},nP={wkid:32662}});function p4(e){return{wkt:`GEOCCS["Spherical geocentric",
115
+ DATUM["Not specified",
116
+ SPHEROID["Sphere",${e.radius},0]],
117
+ PRIMEM["Greenwich",0.0,
118
+ AUTHORITY["EPSG","8901"]],
119
+ UNIT["m",1.0],
120
+ AXIS["Geocentric X",OTHER],
121
+ AXIS["Geocentric Y",EAST],
122
+ AXIS["Geocentric Z",NORTH]
123
+ ]`}}var zhe,Iq,Pq,Bhe,Ghe,qhe,iP=L(()=>{D0();oo();zhe=p4(Kn),Iq=p4(k0),Pq=p4(R0),Bhe={wkt:`GEOCCS["WGS 84",
124
+ DATUM["WGS_1984",
125
+ SPHEROID["WGS 84",${Kn.radius},298.257223563,
126
+ AUTHORITY["EPSG","7030"]],
127
+ AUTHORITY["EPSG","6326"]],
128
+ PRIMEM["Greenwich",0,
129
+ AUTHORITY["EPSG","8901"]],
130
+ UNIT["m",1.0,
131
+ AUTHORITY["EPSG","9001"]],
132
+ AXIS["Geocentric X",OTHER],
133
+ AXIS["Geocentric Y",OTHER],
134
+ AXIS["Geocentric Z",NORTH],
135
+ AUTHORITY["EPSG","4978"]
136
+ ]`},Ghe=Iq.wkt.toUpperCase(),qhe=Pq.wkt.toUpperCase()});function Rq(e){return kq.fromJSON(e.toLowerCase())||null}function cP(e,t=Kn.metersPerDegree){return Dq(e,!0)??t}function Dq(e,t=!1){let r=e?.wkid??null,n=e?.wkt2??e?.wkt??null,i=null;if(r){if(c4(r))return k0.metersPerDegree;if(u4(r))return R0.metersPerDegree;i=Ca.values[Ca[r]],!i&&t&&Nq.has(r)&&(i=Aq)}else n&&(pP(n)?i=sP(aP.exec(n),i):fP(n)&&(i=sP(lP.exec(n),i)));return i}function sP(e,t){return e?.[1]?uP(e[1]):t}function uP(e){return parseFloat(e.split(",")[1])}function dP(e){let t=e?.wkid??null,r=e?.wkt2??e?.wkt??null,n=null;if(t)n=Ca.units[Ca[t]];else if(r){let i=pP(r)?aP:fP(r)?lP:null;if(i){let o=i.exec(r);o?.[1]&&(n=$q(o[1]))}}return n!=null?Rq(n):null}function fP(e){return/^GEOCCS/i.test(e)}function pP(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}function $q(e){let r=/[\\"']{1}([^\\"']+)/.exec(e)?.[1];if(!r||!Ca.units.includes(r)){let n=uP(e);r=null;let i=Ca.values;for(let o=0;o<i.length;++o)if(Math.abs(n-i[o])<Oq){r=Ca.units[o];break}}return r}var Aq,aP,Ca,lP,Nq,kq,Di,ws,oP,t1e,Oq,Fq,Vq,Uq,r1e,n1e,i1e,mP=L(()=>{Ge();N0();iP();D0();oo();o4();Aq=Kn.radius*Math.PI/200,aP=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,Ca=v,lP=/UNIT\[([^\]]+)]/i,Nq=new Set([4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104025,104026,104139,104140]),kq=xi()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),Di=e=>e*e,ws=e=>e*e*e,oP={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:Di(.001)},"square-centimeters":{inBaseUnits:Di(.01)},"square-decimeters":{inBaseUnits:Di(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:Di(1e3)},"square-inches":{inBaseUnits:Di(.0254)},"square-feet":{inBaseUnits:Di(.3048)},"square-yards":{inBaseUnits:Di(.9144)},"square-miles":{inBaseUnits:Di(1609.344)},"square-us-feet":{inBaseUnits:Di(1200/3937)},acres:{inBaseUnits:.0015625*Di(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*ws(.001)},"cubic-centimeters":{inBaseUnits:1e3*ws(.01)},"cubic-decimeters":{inBaseUnits:1e3*ws(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*ws(1e3)},"cubic-inches":{inBaseUnits:1e3*ws(.0254)},"cubic-feet":{inBaseUnits:1e3*ws(.3048)},"cubic-yards":{inBaseUnits:1e3*ws(.9144)},"cubic-miles":{inBaseUnits:1e3*ws(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},t1e=(()=>{let e={};for(let t in oP)for(let r in oP[t].units)e[r]=t;return e})();Oq=1e-7;Fq={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},Vq={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},Uq={esriDUDecimalDegrees:"degrees",esriDURadians:"radians"},r1e=xi()(Fq),n1e=xi()(Vq),i1e=xi()(Uq)});function oi(e,t,r){let n,i;return t===void 0?(i=e,n=[void 0]):typeof t!="string"?(i=e,n=[void 0],r=t):(i=t,n=Array.isArray(e)?e:[e]),(o,s)=>{let a=o.constructor.prototype;for(let u of n){let d=t0(o,u,i);d.write&&typeof d.write=="object"||(d.write={}),r&&(d.write.target=r),d.write.writer=a[s]}}}var gc=L(()=>{or()});var Oi,De,bt,so=L(()=>{ir();ta();tr();mP();Bo();or();Zt();gc();oo();De=Oi=class extends Si{static fromJSON(e){if(!e)return null;if(e?.wkid===102100)return Oi.WebMercator;if(e?.wkid===4326)return Oi.WGS84;let t=new Oi;return t.read(e),t}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){return e&&typeof e=="object"?e:{[typeof e=="string"?"wkt":"wkid"]:e}}get isWGS84(){return hc(this)}get isWebMercator(){return Ri(this)}get isGeographic(){return tf(this)}get isWrappable(){return tP(this)}get metersPerUnit(){return cP(this)}get unit(){return dP(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===Oi.WGS84)return new Oi(d4);if(this===Oi.WebMercator)return new Oi(f4);let e=new Oi;return this.wkid!=null?(e.wkid=this.wkid,this.latestWkid!=null&&(e.latestWkid=this.latestWkid),this.vcsWkid!=null&&(e.vcsWkid=this.vcsWkid),this.latestVcsWkid!=null&&(e.latestVcsWkid=this.latestVcsWkid)):(this.wkt!=null&&(e.wkt=this.wkt),this.wkt2!=null&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=Ne(this.imageCoordinateSystem)),e}equals(e){if(e==null)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(this.imageCoordinateSystem==null||e.imageCoordinateSystem==null)return!1;let{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:n}=e.imageCoordinateSystem,i=this.imageCoordinateSystem;return t==null||n?JSON.stringify(i)===JSON.stringify(e.imageCoordinateSystem):r?i.id===t&&i.referenceServiceName===r:i.id===t}return gs(this,e)}toJSON(e){return this.write(void 0,e)}};De.GCS_NAD_1927=null,De.WGS84=null,De.WebMercator=null,De.PlateCarree=null,O([H({readOnly:!0})],De.prototype,"isWGS84",null),O([H({readOnly:!0})],De.prototype,"isWebMercator",null),O([H({readOnly:!0})],De.prototype,"isGeographic",null),O([H({readOnly:!0})],De.prototype,"isWrappable",null),O([H({type:wi,json:{write:!0}})],De.prototype,"latestWkid",void 0),O([H({readOnly:!0})],De.prototype,"metersPerUnit",null),O([H({readOnly:!0})],De.prototype,"unit",null),O([H({type:wi,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:this.wkt==null}}}}}}})],De.prototype,"wkid",void 0),O([H({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:this.wkid==null}}}}}}})],De.prototype,"wkt",void 0),O([oi("wkt"),oi("web-scene","wkt")],De.prototype,"writeWkt",null),O([H({type:String,json:{write:!1}})],De.prototype,"wkt2",void 0),O([H({type:wi,json:{write:!0}})],De.prototype,"vcsWkid",void 0),O([H({type:wi,json:{write:!0}})],De.prototype,"latestVcsWkid",void 0),O([H()],De.prototype,"imageCoordinateSystem",void 0),De=Oi=O([Pe("esri.geometry.SpatialReference")],De),De.prototype.toJSON.isDefaultToJSON=!0,De.GCS_NAD_1927=new De({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'}),De.WGS84=new De(d4),De.WebMercator=new De(f4),De.PlateCarree=new De(nP),Object.freeze&&(Object.freeze(De.GCS_NAD_1927),Object.freeze(De.WGS84),Object.freeze(De.WebMercator),Object.freeze(De.PlateCarree));bt=De});var $i,wn,ys=L(()=>{ir();ta();or();Ge();Ze();To();G_();Zt();so();$i=class extends Si{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=bt.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof bt)return e;if(e!=null){let r=new bt;return r.read(e,t),r}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};O([H()],$i.prototype,"type",void 0),O([H({readOnly:!0})],$i.prototype,"cache",null),O([H({readOnly:!0})],$i.prototype,"extent",null),O([H({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],$i.prototype,"hasM",void 0),O([H({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],$i.prototype,"hasZ",void 0),O([H({type:bt,json:{write:!0},value:bt.WGS84})],$i.prototype,"spatialReference",void 0),O([A0("spatialReference")],$i.prototype,"readSpatialReference",null),$i=O([Pe("esri.geometry.Geometry")],$i);wn=$i});function hP(e){return e*Wq}function gP(e){return e*zq}function h4(e){return e.wkid!=null||e.wkt!=null}function Ew(e,t,r,n,i){let o=e,s=i;if(s.spatialReference=r,"x"in o&&"x"in s)[s.x,s.y]=t(o.x,o.y,m4,n);else if("xmin"in o&&"xmin"in s)[s.xmin,s.ymin]=t(o.xmin,o.ymin,m4,n),[s.xmax,s.ymax]=t(o.xmax,o.ymax,m4,n);else if("paths"in o&&"paths"in s||"rings"in o&&"rings"in s){let a="paths"in o?o.paths:o.rings,u=[],d;for(let p=0;p<a.length;p++){let m=a[p];d=[],u.push(d);for(let w=0;w<m.length;w++)d.push(t(m[w][0],m[w][1],[0,0],n)),m[w].length>2&&d[w].push(m[w][2]),m[w].length>3&&d[w].push(m[w][3])}"paths"in s?s.paths=u:s.rings=u}else if("points"in o&&"points"in s){let a=o.points,u=[];for(let d=0;d<a.length;d++)u[d]=t(a[d][0],a[d][1],[0,0],n),a[d].length>2&&u[d].push(a[d][2]),a[d].length>3&&u[d].push(a[d][3]);s.points=u}return i}function rf(e,t){let r=e&&(h4(e)?e:e.spatialReference),n=t&&(h4(t)?t:t.spatialReference);return!(e&&"type"in e&&e.type==="mesh"||t&&"type"in t&&t.type==="mesh"||!r||!n)&&(!!gs(n,r)||Ri(n)&&hc(r)||Ri(r)&&hc(n))}function wP(e,t){if(e==null)return null;let r=e.spatialReference,n=t&&(h4(t)?t:t.spatialReference);return rf(r,n)?gs(r,n)?Ne(e):Ri(n)?Ew(e,Ta,bt.WebMercator,!1,Ne(e)):hc(n)?Ew(e,wc,bt.WGS84,!1,Ne(e)):null:null}function Ta(e,t,r=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);let n=gP(t);return r[0]=gP(e)*Kn.radius,r[1]=Kn.halfSemiMajorAxis*Math.log((1+Math.sin(n))/(1-Math.sin(n))),r}function wc(e,t,r=[0,0],n=!1){let i=hP(e/Kn.radius);return r[0]=n?i:i-360*Math.floor((i+180)/360),r[1]=hP(Math.PI/2-2*Math.atan(Math.exp(-t/Kn.radius))),r}function Mw(e,t=!1,r=Ne(e)){return Ew(e,Ta,bt.WebMercator,t,r)}function nf(e,t=!1,r=Ne(e)){return Ew(e,wc,bt.WGS84,t,r)}var Wq,zq,m4,of=L(()=>{tr();so();D0();oo();Wq=57.29577951308232,zq=.017453292519943;m4=[0,0]});function yP(e,t){let r=e.x-t.x,n=e.y-t.y,i=e.z!=null&&t.z!=null?e.z-t.z:0;return Math.sqrt(r*r+n*n+i*i)}function bP(e){return vP(e,SP)?.[0]??null}function _P(e){return vP(e,SP)?.[1]??null}function vP({x:e,y:t,spatialReference:r},n=[0,0]){if(r){if(Ri(r))return wc(e,t,n);if(tf(r))return n[0]=e,n[1]=t,n}return null}var SP,xP=L(()=>{oo();of();SP=[0,0]});function CP(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}var Lw,g4,Br,_t,Ea=L(()=>{ir();Ze();or();hv();To();Ge();G_();Zt();gc();Bo();ys();so();xP();oo();of();g4=[0,0];Br=Lw=class extends wn{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));let r=e._get("spatialReference");t._set("spatialReference",Object.isFrozen(r)?r:r.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,r,n,i){let o;if(Array.isArray(e))o=e,i=t,e=o[0],t=o[1],r=o[2],n=o[3];else if(e&&typeof e=="object"){if(o=e,e=o.x!=null?o.x:o.longitude,t=o.y!=null?o.y:o.latitude,r=o.z,n=o.m,(i=o.spatialReference)&&i.declaredClass!=="esri.geometry.SpatialReference"&&(i=new bt(i)),o.longitude!=null||o.latitude!=null){if(o.longitude==null)Me.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(o.latitude==null)Me.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&i?.isWebMercator){let a=Ta(o.longitude,o.latitude,g4);e=a[0],t=a[1]}}}else CP(r)?(i=r,r=null):CP(n)&&(i=n,n=null);let s={x:e,y:t};return s.x==null&&s.y!=null?Me.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):s.y==null&&s.x!=null&&Me.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),i!=null&&(s.spatialReference=i),r!=null&&(s.z=r),n!=null&&(s.m=n),s}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return this.m!==void 0}set hasM(e){e!==(this._get("m")!==void 0)&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return this.z!==void 0}set hasZ(e){e!==(this._get("z")!==void 0)&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){return _P(this)}set latitude(e){let{spatialReference:t,x:r}=this;e!=null&&t&&(t.isWebMercator?this._set("y",Ta(r,e,g4)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){return bP(this)}set longitude(e){let{y:t,spatialReference:r}=this;e!=null&&r&&(r.isWebMercator?this._set("x",Ta(e,t,g4)[0]):r.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,r){t[r]=isNaN(e)?"NaN":e}readX(e){return typeof e=="string"?NaN:e}clone(){let e=new Lw;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return Lw.copy(e,this),this}equals(e){if(e==null)return!1;let{x:t,y:r,z:n,m:i,spatialReference:o}=this,{z:s,m:a}=e,{x:u,y:d,spatialReference:p}=e;if(!o.equals(p))if(o.isWebMercator&&p.isWGS84)[u,d]=Ta(u,d),p=o;else{if(!o.isWGS84||!p.isWebMercator)return!1;[u,d]=wc(u,d),p=o}return t===u&&r===d&&n===s&&i===a&&o.wkid===p.wkid}offset(e,t,r){return this.x+=e,this.y+=t,r!=null&&(this.z=(this.z??0)+r),this}normalize(){if(!this.spatialReference)return this;let e=xa(this.spatialReference);if(!e)return this;let t=this.x,[r,n]=e.valid,i=2*n,o;return t>n?(o=Math.ceil(Math.abs(t-n)/i),t-=o*i):t<r&&(o=Math.ceil(Math.abs(t-r)/i),t+=o*i),this._set("x",t),this}distance(e){return yP(this,e)}toArray(){let e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};O([H({readOnly:!0})],Br.prototype,"cache",null),O([H({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],Br.prototype,"hasM",null),O([H({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],Br.prototype,"hasZ",null),O([H({type:Number})],Br.prototype,"latitude",null),O([H({type:Number})],Br.prototype,"longitude",null),O([H({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),ng(e=>isNaN(e)?e:e_(e))],Br.prototype,"x",void 0),O([oi("x")],Br.prototype,"writeX",null),O([A0("x")],Br.prototype,"readX",null),O([H({type:Number,json:{write:!0}})],Br.prototype,"y",void 0),O([H({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],Br.prototype,"z",void 0),O([H({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],Br.prototype,"m",void 0),Br=Lw=O([Pe("esri.geometry.Point")],Br),Br.prototype.toJSON.isDefaultToJSON=!0;_t=Br});function Iw(e,t){return t!=null&&Gr(e,t.x,t.y,t.z)}function EP(e,t){let{xmin:r,ymin:n,zmin:i,xmax:o,ymax:s,zmax:a}=t;return e.hasZ&&t.hasZ?Gr(e,r,n,i)&&Gr(e,r,s,i)&&Gr(e,o,s,i)&&Gr(e,o,n,i)&&Gr(e,r,n,a)&&Gr(e,r,s,a)&&Gr(e,o,s,a)&&Gr(e,o,n,a):Gr(e,r,n)&&Gr(e,r,s)&&Gr(e,o,s)&&Gr(e,o,n)}function yc(e,t){return Gr(e,t[0],t[1])}function MP(e,t){return Gr(e,t[0],t[1],t[2])}function Gr(e,t,r,n){return t>=e.xmin&&t<=e.xmax&&r>=e.ymin&&r<=e.ymax&&(n==null||!e.hasZ||n>=e.zmin&&n<=e.zmax)}function LP(e,t){return w4[1]=t.y,w4[0]=t.x,Bq(e,w4)}function Bq(e,t){return y4(e.rings,t)}function y4(e,t){if(!e)return!1;if(Gq(e))return TP(!1,e,t);let r=!1;for(let n=0,i=e.length;n<i;n++)r=TP(r,e[n],t);return r}function Gq(e){return!Array.isArray(e[0][0])}function TP(e,t,r){let[n,i]=r,o=e,s=0;for(let a=0,u=t.length;a<u;a++){s++,s===u&&(s=0);let[d,p]=t[a],[m,w]=t[s];(p<i&&w>=i||w<i&&p>=i)&&d+(i-p)/(w-p)*(m-d)<n&&(o=!o)}return o}var w4,Pw=L(()=>{w4=[0,0]});function qq(e,t){return Iw(e,t)}function jq(e,t){let r=e.hasZ&&t.hasZ,n,i,o;if(e.xmin<=t.xmin){if(n=t.xmin,e.xmax<n)return!1}else if(n=e.xmin,t.xmax<n)return!1;if(e.ymin<=t.ymin){if(i=t.ymin,e.ymax<i)return!1}else if(i=e.ymin,t.ymax<i)return!1;if(r&&t.hasZ){if(e.zmin<=t.zmin){if(o=t.zmin,e.zmax<o)return!1}else if(o=e.zmin,t.zmax<o)return!1}return!0}function Hq(e,t){let{points:r,hasZ:n}=t,i=n?MP:yc;for(let o of r)if(i(e,o))return!0;return!1}function Yq(e,t){return Jq(e,t.rings)}function Jq(e,t){Ma[0]=e.xmin,Ma[1]=e.ymax,La[0]=e.xmax,La[1]=e.ymax,Ia[0]=e.xmin,Ia[1]=e.ymin,Pa[0]=e.xmax,Pa[1]=e.ymin;for(let r of Zq)if(y4(t,r))return!0;for(let r of t){if(!r.length)continue;let n=r[0];if(yc(e,n))return!0;for(let i=1;i<r.length;i++){let o=r[i];if(yc(e,o)||AP(n,o,IP))return!0;n=o}}return!1}function Xq(e,t){Ma[0]=e.xmin,Ma[1]=e.ymax,La[0]=e.xmax,La[1]=e.ymax,Ia[0]=e.xmin,Ia[1]=e.ymin,Pa[0]=e.xmax,Pa[1]=e.ymin;let r=t.paths;for(let n of r){if(!r.length)continue;let i=n[0];if(yc(e,i))return!0;for(let o=1;o<n.length;o++){let s=n[o];if(yc(e,s)||AP(i,s,IP))return!0;i=s}}return!1}function PP(e){for(let t=0;t<e.length;t++){let r=e[t];for(let i=0;i<r.length-1;i++){let o=r[i],s=r[i+1];for(let a=t+1;a<e.length;a++)for(let u=0;u<e[a].length-1;u++){let d=e[a][u],p=e[a][u+1];if(b4(o,s,d,p,ar)&&!(ar[0]===o[0]&&ar[1]===o[1]||ar[0]===d[0]&&ar[1]===d[1]||ar[0]===s[0]&&ar[1]===s[1]||ar[0]===p[0]&&ar[1]===p[1]))return!0}}let n=r.length;if(!(n<=4))for(let i=0;i<n-3;i++){let o=n-1;i===0&&(o=n-2);let s=r[i],a=r[i+1];for(let u=i+2;u<o;u++){let d=r[u],p=r[u+1];if(b4(s,a,d,p,ar)&&!(ar[0]===s[0]&&ar[1]===s[1]||ar[0]===d[0]&&ar[1]===d[1]||ar[0]===a[0]&&ar[1]===a[1]||ar[0]===p[0]&&ar[1]===p[1]))return!0}}}return!1}function AP(e,t,r){for(let n=0;n<r.length;n++)if(b4(e,t,r[n][0],r[n][1]))return!0;return!1}function b4(e,t,r,n,i){let[o,s]=e,[a,u]=t,[d,p]=r,[m,w]=n,_=m-d,S=o-d,T=a-o,M=w-p,R=s-p,I=u-s,N=M*T-_*I;if(N===0)return!1;let V=(_*R-M*S)/N,Y=(T*R-I*S)/N;return V>=0&&V<=1&&Y>=0&&Y<=1&&(i&&(i[0]=o+V*(a-o),i[1]=s+V*(u-s)),!0)}function NP(e){switch(e){case"esriGeometryEnvelope":case"extent":return jq;case"esriGeometryMultipoint":case"multipoint":return Hq;case"esriGeometryPoint":case"point":return qq;case"esriGeometryPolygon":case"polygon":return Yq;case"esriGeometryPolyline":case"polyline":return Xq}}var Ma,La,Ia,Pa,Zq,IP,ar,_4=L(()=>{Pw();Ma=[0,0],La=[0,0],Ia=[0,0],Pa=[0,0],Zq=[Ma,La,Ia,Pa],IP=[[Ia,Ma],[Ma,La],[La,Pa],[Pa,Ia]];ar=[0,0]});function Qq(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}function bs(e,t,r){return t==null?r:r==null?t:e(t,r)}function v4(e,t){let[r,n]=t.valid,i=2*n,o,s=0;return e>n?(o=Math.ceil(Math.abs(e-n)/i),e-=o*i,s=o):e<r&&(o=Math.ceil(Math.abs(e-r)/i),e+=o*i,s=-o),{x:e,frameId:s}}var An,Jt,si,_s=L(()=>{ir();Io();or();Ge();Ze();To();Zt();ys();Ea();so();Pw();_4();oo();of();Jt=An=class extends wn{constructor(...e){super(...e),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}normalizeCtorArgs(e,t,r,n,i){return Qq(e)?{spatialReference:e,xmin:0,ymin:0,xmax:0,ymax:0}:typeof e=="object"?(e.spatialReference=e.spatialReference==null?bt.WGS84:e.spatialReference,e):{xmin:e,ymin:t,xmax:r,ymax:n,spatialReference:i??bt.WGS84}}static fromBounds(e,t){return new An({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}static fromPoint(e){return new An({xmin:e.x,ymin:e.y,zmin:e.z,xmax:e.x,ymax:e.y,zmax:e.z,spatialReference:e.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){let e=new _t({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(e.z=.5*(this.zmin+this.zmax)),this.hasM&&(e.m=.5*(this.mmin+this.mmax)),e}get extent(){return this.clone()}get hasM(){return this.mmin!=null&&this.mmax!=null}get hasZ(){return this.zmin!=null&&this.zmax!=null}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(e){let t=this.center;return e.z!=null&&this.hasZ?this.offset(e.x-t.x,e.y-t.y,e.z-t.z):this.offset(e.x-t.x,e.y-t.y)}clone(){let e=new An;return e.xmin=this.xmin,e.ymin=this.ymin,e.xmax=this.xmax,e.ymax=this.ymax,e.spatialReference=this.spatialReference,this.zmin!=null&&(e.zmin=this.zmin,e.zmax=this.zmax),this.mmin!=null&&(e.mmin=this.mmin,e.mmax=this.mmax),e}contains(e){if(!e)return!1;let t=this.spatialReference,r=e.spatialReference;return t&&r&&!t.equals(r)&&rf(t,r)&&(e=t.isWebMercator?Mw(e):nf(e,!0)),e.type==="point"?Iw(this,e):e.type==="extent"&&EP(this,e)}equals(e){if(this===e)return!0;if(e==null)return!1;let t=this.spatialReference,r=e.spatialReference;return t&&r&&!t.equals(r)&&rf(t,r)&&(e=t.isWebMercator?Mw(e):nf(e,!0)),this.xmin===e.xmin&&this.ymin===e.ymin&&this.zmin===e.zmin&&this.mmin===e.mmin&&this.xmax===e.xmax&&this.ymax===e.ymax&&this.zmax===e.zmax&&this.mmax===e.mmax}expand(e){let t=.5*(1-e),r=this.width*t,n=this.height*t;if(this.xmin+=r,this.ymin+=n,this.xmax-=r,this.ymax-=n,this.hasZ){let i=(this.zmax-this.zmin)*t;this.zmin+=i,this.zmax-=i}if(this.hasM){let i=(this.mmax-this.mmin)*t;this.mmin+=i,this.mmax-=i}return this}intersects(e){if(e==null)return!1;e.type==="mesh"&&(e=e.extent);let t=this.spatialReference,r=e.spatialReference;return t&&r&&!gs(t,r)&&rf(t,r)&&(e=t.isWebMercator?Mw(e):nf(e,!0)),NP(e.type)(this,e)}normalize(){let e=this._normalize(!1,!0);return Array.isArray(e)?e:[e]}offset(e,t,r){return this.xmin+=e,this.ymin+=t,this.xmax+=e,this.ymax+=t,r!=null&&(this.zmin+=r,this.zmax+=r),this}shiftCentralMeridian(){return this._normalize(!0)}union(e){return this===e||(this.xmin=Math.min(this.xmin,e.xmin),this.ymin=Math.min(this.ymin,e.ymin),this.xmax=Math.max(this.xmax,e.xmax),this.ymax=Math.max(this.ymax,e.ymax),(this.hasZ||e.hasZ)&&(this.zmin=bs(Math.min,this.zmin,e.zmin),this.zmax=bs(Math.max,this.zmax,e.zmax)),(this.hasM||e.hasM)&&(this.mmin=bs(Math.min,this.mmin,e.mmin),this.mmax=bs(Math.max,this.mmax,e.mmax))),this}intersection(e){return this===e?this:e!=null&&this.intersects(e)?(this.xmin=Math.max(this.xmin,e.xmin),this.ymin=Math.max(this.ymin,e.ymin),this.xmax=Math.min(this.xmax,e.xmax),this.ymax=Math.min(this.ymax,e.ymax),(this.hasZ||e.hasZ)&&(this.zmin=bs(Math.max,this.zmin,e.zmin),this.zmax=bs(Math.min,this.zmax,e.zmax)),(this.hasM||e.hasM)&&(this.mmin=bs(Math.max,this.mmin,e.mmin),this.mmax=bs(Math.min,this.mmax,e.mmax)),this):null}toJSON(e){return this.write({},e)}_shiftCM(e=xa(this.spatialReference)){if(!e||!this.spatialReference)return this;let t=this.spatialReference,r=this._getCM(e);if(r){let n=t.isWebMercator?nf(r):r;this.xmin-=r.x,this.xmax-=r.x,t.isWebMercator||(n.x=v4(n.x,e).x),this.spatialReference=new bt(gi((t.isWGS84?e.altTemplate:null)??e.wkTemplate,{Central_Meridian:n.x}))}return this}_getCM(e){let t=null,[r,n]=e.valid,i=this.xmin,o=this.xmax;return i>=r&&i<=n&&o>=r&&o<=n||(t=this.center),t}_normalize(e,t,r){let n=this.spatialReference;if(!n)return this;let i=r??xa(n);if(i==null)return this;let o=this._getParts(i).map(u=>u.extent);if(o.length<2)return o[0]||this;if(o.length>2)return e?this._shiftCM(i):this.set({xmin:i.valid[0],xmax:i.valid[1]});if(e)return this._shiftCM(i);if(t)return o;let s=!0,a=!0;return o.forEach(u=>{u.hasZ||(s=!1),u.hasM||(a=!1)}),{rings:o.map(u=>{let d=[[u.xmin,u.ymin],[u.xmin,u.ymax],[u.xmax,u.ymax],[u.xmax,u.ymin],[u.xmin,u.ymin]];if(s){let p=(u.zmax-u.zmin)/2;for(let m=0;m<d.length;m++)d[m].push(p)}if(a){let p=(u.mmax-u.mmin)/2;for(let m=0;m<d.length;m++)d[m].push(p)}return d}),hasZ:s,hasM:a,spatialReference:n}}_getParts(e){let t=this.cache._parts;if(!t){t=[];let{ymin:i,ymax:o,spatialReference:s}=this,a=this.width,u=this.xmin,d=this.xmax,p;e=e||xa(s);let[m,w]=e.valid;p=v4(this.xmin,e);let _=p.x,S=p.frameId;p=v4(this.xmax,e);let T=p.x,M=p.frameId,R=_===T&&a>0;if(a>2*w){let I=new An(u<d?_:T,i,w,o,s),N=new An(m,i,u<d?T:_,o,s),V=new An(0,i,w,o,s),Y=new An(m,i,0,o,s),re=[],te=[];I.contains(V)&&re.push(S),I.contains(Y)&&te.push(S),N.contains(V)&&re.push(M),N.contains(Y)&&te.push(M);for(let ie=S+1;ie<M;ie++)re.push(ie),te.push(ie);t.push({extent:I,frameIds:[S]},{extent:N,frameIds:[M]},{extent:V,frameIds:re},{extent:Y,frameIds:te})}else _>T||R?t.push({extent:new An(_,i,w,o,s),frameIds:[S]},{extent:new An(m,i,T,o,s),frameIds:[M]}):t.push({extent:new An(_,i,T,o,s),frameIds:[S]});this.cache._parts=t}let r=this.hasZ,n=this.hasM;if(r||n){let i={};r&&(i.zmin=this.zmin,i.zmax=this.zmax),n&&(i.mmin=this.mmin,i.mmax=this.mmax);for(let o=0;o<t.length;o++)t[o].extent.set(i)}return t}};O([H({readOnly:!0})],Jt.prototype,"cache",null),O([H({readOnly:!0})],Jt.prototype,"center",null),O([H({readOnly:!0})],Jt.prototype,"extent",null),O([H({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],Jt.prototype,"hasM",null),O([H({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],Jt.prototype,"hasZ",null),O([H({readOnly:!0})],Jt.prototype,"height",null),O([H({readOnly:!0})],Jt.prototype,"width",null),O([H({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],Jt.prototype,"xmin",void 0),O([H({type:Number,json:{write:!0}})],Jt.prototype,"ymin",void 0),O([H({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],Jt.prototype,"mmin",void 0),O([H({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],Jt.prototype,"zmin",void 0),O([H({type:Number,json:{write:!0}})],Jt.prototype,"xmax",void 0),O([H({type:Number,json:{write:!0}})],Jt.prototype,"ymax",void 0),O([H({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],Jt.prototype,"mmax",void 0),O([H({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],Jt.prototype,"zmax",void 0),Jt=An=O([Pe("esri.geometry.Extent")],Jt),Jt.prototype.toJSON.isDefaultToJSON=!0;si=Jt});function sf(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}var kP=L(()=>{_s()});function RP(e){if(!e)return"";let t=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g,r="";for(let n of e.match(t)||[])switch(n){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":r+=n;break;case"A":case"a":r+="a";break;default:r+=`'${n}'`}return r}var lr,af=L(()=>{kP();Yi();Vr();lr=class e{constructor(t,r,n,i){this._hour=t,this._minute=r,this._second=n,this._millisecond=i,this.declaredRootClass="esri.core.sql.timeonly"}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(t){return t instanceof e&&t.hour===this.hour&&t.minute===this.minute&&t.second===this.second&&t.millisecond===this.millisecond}clone(){return new e(this.hour,this.minute,this.second,this.millisecond)}isValid(){return sf(this.hour)&&sf(this.minute)&&sf(this.second)&&sf(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(t=null){return t===null||t===""?this.toString():(t=RP(t))?oe.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(t,{locale:ln(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(t,r,n,i){let o=new e(t,r,n,i);return o.isValid()?o:null}static fromReader(t){if(!t)return null;let r=t.split(":");return r.length!==3?null:new e(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10),0)}static fromMilliseconds(t){if(t>864e5||t<0)return null;let r=Math.floor(t/1e3%60),n=Math.floor(t/6e4%60),i=Math.floor(t/36e5%24),o=Math.floor(t%1e3);return new e(i,n,r,o)}static fromDateJS(t){return new e(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}static fromDateTime(t){return new e(t.hour,t.minute,t.second,t.millisecond)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];r?(r=RP(r))&&n.push(r):r!==null&&r!==""||(n.push("HH:mm:ss"),n.push("HH:mm:ss.SSS"),n.push("hh:mm:ss a"),n.push("hh:mm:ss.SSS a"),n.push("HH:mm"),n.push("hh:mm a"),n.push("H:mm"),n.push("h:mm a"),n.push("H:mm:ss"),n.push("h:mm:ss a"),n.push("H:mm:ss.SSS"),n.push("h:mm:ss.SSS a"));for(let i of n){let o=oe.fromFormat(t,i);if(o.isValid)return new e(o.hour,o.minute,o.second,o.millisecond)}return null}plus(t,r){switch(t){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}return null}toUTCDateTime(){return oe.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(t,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}}});function OP(e,t){let r=$P[e.toLowerCase()];if(r==null)throw new z(F.FunctionNotRecognized);if(t.length<r.minParams||t.length>r.maxParams)throw new z(F.InvalidParameterCount,{name:e.toUpperCase()});return r.evaluate(t)}function S4(e,t){let r=$P[e.toLowerCase()];return r!=null&&t>=r.minParams&&t<=r.maxParams}function FP(e){if(e===null)return null;let t=0,r=0;for(let n=0;n<e.length;n++){let i=e[n];if(i!==null){if(!x4(i))throw new z(F.InvalidValueForAggregateFunction);r++,t+=i}}return r===0?null:t/e.length}function x4(e){return typeof e=="number"}function DP(e,t){if(e===null)return null;let r=null,n=null;for(let i of e){let o=i;o=i instanceof Ht||i instanceof lr?i.toNumber():i instanceof oe?i.toMillis():i instanceof gr?i.toMilliseconds():i,(r===null||t==="max"&&n!==null&&o!==null&&n<=o||t==="min"&&n!==null&&o!==null&&n>=o)&&(r=i,n=o)}return r}function Kq(e){if(e===null)return null;let t=0;for(let r=0;r<e.length;r++){let n=e[r];if(n!==null){if(!x4(n))throw new z(F.InvalidValueForAggregateFunction);t+=n}}return t}function ej(e){if(e===null)return null;let t=VP(e);return t===null?null:Math.sqrt(t)}function VP(e){if(e===null||(e=e.filter(n=>n!==null)).length===0)return null;let t=FP(e);if(t===null)return null;let r=0;for(let n of e){if(!x4(n))throw new z(F.InvalidValueForAggregateFunction);r+=(t-n)**2}return r/(e.length-1)}var $P,UP=L(()=>{Wo();Qu();Ku();af();Vr();$P={min:{minParams:1,maxParams:1,evaluate:e=>DP(e[0],"min")},max:{minParams:1,maxParams:1,evaluate:e=>DP(e[0],"max")},avg:{minParams:1,maxParams:1,evaluate:e=>FP(e[0])},sum:{minParams:1,maxParams:1,evaluate:e=>Kq(e[0])},stddev:{minParams:1,maxParams:1,evaluate:e=>ej(e[0])},count:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0].length},var:{minParams:1,maxParams:1,evaluate:e=>VP(e[0])}}});var Tt,Aw=L(()=>{Wo();Tt=class e{constructor(){this.op="+",this.day=0,this.second=0,this.hour=0,this.month=0,this.year=0,this.minute=0,this.millis=0}static _fixDefaults(t){if(t.precision!==null||t.secondary!==null)throw new z(F.PrimarySecondaryQualifiers)}static _parseSecondsComponent(t,r){if(r.includes(".")){let n=r.split(".");t.second=parseFloat(n[0]),t.millis=parseInt(n[1],10)}else t.second=parseFloat(r)}static createFromMilliseconds(t){let r=new e;return r.second=t/1e3,r}static createFromValueAndQualifier(t,r,n){let i=null,o=new e;if(o.op=n==="-"?"-":"+",r.type==="interval-period"){e._fixDefaults(r);let s=new RegExp("^[0-9]{1,}$");if(r.period==="year"||r.period==="month")throw new z(F.YearMonthIntervals);if(r.period==="second"){if(!/^[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$/.test(t))throw new z(F.IllegalInterval);e._parseSecondsComponent(o,t)}else{if(!s.test(t))throw new z(F.IllegalInterval);o[r.period]=parseFloat(t)}}else{if(e._fixDefaults(r.start),e._fixDefaults(r.end),r.start.period==="year"||r.start.period==="month"||r.end.period==="year"||r.end.period==="month")throw new z(F.YearMonthIntervals);switch(r.start.period){case"day":switch(r.end.period){case"hour":if(i=new RegExp("^[0-9]{1,} [0-9]{1,}$"),!i.test(t))throw new z(F.IllegalInterval);o[r.start.period]=parseFloat(t.split(" ")[0]),o[r.end.period]=parseFloat(t.split(" ")[1]);break;case"minute":if(i=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,}$"),!i.test(t))throw new z(F.IllegalInterval);{o[r.start.period]=parseFloat(t.split(" ")[0]);let s=t.split(" ")[1].split(":");o.hour=parseFloat(s[0]),o.minute=parseFloat(s[1])}break;case"second":if(i=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(t))throw new z(F.IllegalInterval);{o[r.start.period]=parseFloat(t.split(" ")[0]);let s=t.split(" ")[1].split(":");o.hour=parseFloat(s[0]),o.minute=parseFloat(s[1]),e._parseSecondsComponent(o,s[2])}break;default:throw new z(F.IllegalInterval)}break;case"hour":switch(r.end.period){case"minute":if(i=new RegExp("^[0-9]{1,}:[0-9]{1,}$"),!i.test(t))throw new z(F.IllegalInterval);o.hour=parseFloat(t.split(":")[0]),o.minute=parseFloat(t.split(":")[1]);break;case"second":if(i=new RegExp("^[0-9]{1,}:[0-9]{1,2}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(t))throw new z(F.IllegalInterval);{let s=t.split(":");o.hour=parseFloat(s[0]),o.minute=parseFloat(s[1]),e._parseSecondsComponent(o,s[2])}break;default:throw new z(F.IllegalInterval)}break;case"minute":if(r.end.period!=="second")throw new z(F.IllegalInterval);if(i=new RegExp("^[0-9]{1,}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(t))throw new z(F.IllegalInterval);{let s=t.split(":");o.minute=parseFloat(s[0]),e._parseSecondsComponent(o,s[1])}break;default:throw new z(F.IllegalInterval)}}return o}valueInMilliseconds(){return(this.op==="-"?-1:1)*(this.millis+1e3*this.second+60*this.minute*1e3+60*this.hour*60*1e3+24*this.day*60*60*1e3+this.month*(365/12)*24*60*60*1e3+365*this.year*24*60*60*1e3)}}});function bc(e,t){if(t instanceof kt)return t===jt.instance?oe.fromMillis(e.getTime(),{zone:jt.instance}):oe.fromJSDate(e,{zone:t});switch(t){case"system":case"local":case null:return oe.fromJSDate(e);default:return t?.toLowerCase()==="unknown"?oe.fromMillis(e.getTime(),{zone:jt.instance}):oe.fromJSDate(e,{zone:t})}}function _r(e){return typeof e=="number"}function vr(e){return typeof e=="string"||e instanceof String}function ao(e){return e instanceof Tt}function tn(e){return e instanceof Date}function et(e){return e instanceof oe}function tt(e){return e instanceof Ht}function st(e){return e instanceof lr}function rt(e){return e instanceof gr}function lf(e){let t=tj.exec(e);if(t!==null){let[,r,n,i]=t,o=lr.fromParts(parseInt(r,10),parseInt(n,10),parseInt(i,10),0);if(o!==null)return o;throw new z(F.InvalidTime)}if(t=rj.exec(e),t!==null){let[,r,n]=t,i=lr.fromParts(parseInt(r,10),parseInt(n,10),0,0);if(i!==null)return i;throw new z(F.InvalidTime)}if(t=nj.exec(e),t!==null){let[,r,n,i,o]=t,s=lr.fromParts(parseInt(r,10),parseInt(n,10),parseInt(i,10),parseInt(o,10));if(s!==null)return s;throw new z(F.InvalidTime)}throw new z(F.InvalidTime)}function _c(e,t,r=!1){let n=ij.exec(e);if(n!==null){let[,i,o,s,a,u,d,p]=n,m=oe.fromObject({year:parseInt(i,10),month:parseInt(o,10),day:parseInt(s,10),hour:parseInt(a,10),minute:parseInt(u,10),second:parseInt(d,10),millisecond:p?parseInt(p.replace(".",""),10):0},{zone:B1(t)});if(m.isValid===!1)throw new z(F.InvalidTimeStamp);return m}if(n=oj.exec(e),n!==null){let[,i,o,s,a,u,d,p,m,w,_]=n,S=gr.fromParts(parseInt(i,10),parseInt(o,10),parseInt(s,10),parseInt(a,10),parseInt(u,10),parseInt(d,10),p?parseInt(p.replace(".",""),10):0,m==="-",parseInt(w,10),parseInt(_,10));if(S.isValid===!1)throw new z(F.InvalidTimeStamp);return S}if(n=sj.exec(e),n!==null){let[,i,o,s,a,u,d,p,m]=n,w=gr.fromParts(parseInt(i,10),parseInt(o,10),parseInt(s,10),parseInt(a,10),parseInt(u,10),0,0,d==="-",parseInt(p,10),parseInt(m,10));if(w.isValid===!1)throw new z(F.InvalidTimeStamp);return w}if(n=aj.exec(e),n!==null){let[,i,o,s,a,u]=n,d=oe.fromObject({year:parseInt(i,10),month:parseInt(o,10),day:parseInt(s,10),hour:parseInt(a,10),minute:parseInt(u,10),second:0},{zone:B1(t)});if(d.isValid===!1)throw new z(F.InvalidTimeStamp);return d}if(n=WP.exec(e),n!==null){let[,i,o,s]=n,a=oe.fromObject({year:parseInt(i,10),month:parseInt(o,10),day:parseInt(s,10),hour:0,minute:0,second:0},{zone:B1(t)});if(a.isValid===!1)throw new z(F.InvalidTimeStamp);return a}throw new z(F.InvalidTimeStamp)}function C4(e,t){let r=WP.exec(e);if(r===null)try{return _c(e,t)}catch{throw new z(F.InvalidDate)}let[,n,i,o]=r,s=Ht.fromParts(parseInt(n,10),parseInt(i,10),parseInt(o,10));if(s===null)throw new z(F.InvalidDate);return s}var tj,rj,nj,WP,ij,oj,sj,aj,cf=L(()=>{Wo();Qu();Aw();Ku();af();Ju();Vr();tj=/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/,rj=/^(\d{1,2}):(\d{1,2})$/,nj=/^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/,WP=/^(\d{4})-(\d{1,2})-(\d{1,2})$/,ij=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$/,oj=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,sj=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,aj=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/});function T4(e){return!!et(e)||!!rt(e)}function kw(e){return!!et(e)||!!tt(e)||!!rt(e)||!!st(e)}function Nw(e){if(et(e))return e.toMillis();if(tt(e))return e.toNumber();if(rt(e))return e.toMilliseconds();throw new z(F.InvalidDataType)}function qr(e,t,r,n){if(e==null||t==null)return null;if(_r(e)){if(_r(t))return ai(e,t,r);if(vr(t))return pj(e,t,r);if(kw(t))throw new z(F.InvalidOperator);if(tt(t))throw new z(F.InvalidOperator)}else if(vr(e)){if(_r(t))return mj(e,t,r);if(vr(t))return hj(e,t,r);if(et(t))throw new z(F.InvalidOperator);if(tt(t))throw new z(F.InvalidOperator);if(st(t))throw new z(F.InvalidOperator);if(rt(t))throw new z(F.InvalidOperator)}else if(et(e)){if(T4(t)){if(e instanceof oe&&Gs(e.zone)){if(t instanceof oe&&Gs(t.zone)===!1||t instanceof gr)return uf(e,t,r)}else if(t instanceof oe&&Gs(t.zone)&&(e instanceof oe&&Gs(e.zone)===!1||e instanceof gr))return uf(e,t,r);return ai(Nw(e),Nw(t),r)}if(vr(t))throw new z(F.InvalidOperator);if(tt(t))return gj(e,t,r);if(st(t))throw new z(F.InvalidOperator);if(_r(t))throw new z(F.InvalidOperator)}else if(tt(e)){if(rt(t))return bj(e,t,r);if(et(t))return yj(e,t,r);if(vr(t))throw new z(F.InvalidOperator);if(tt(t))return ai(e.toNumber(),t.toNumber(),r);if(st(t))throw new z(F.InvalidOperator);if(_r(t))throw new z(F.InvalidOperator)}else if(st(e)){if(st(t))return ai(e.toNumber(),t.toNumber(),r);if(vr(t))throw new z(F.InvalidOperator);if(_r(t))throw new z(F.InvalidOperator);if(tt(t))throw new z(F.InvalidOperator);if(T4(t))throw new z(F.InvalidOperator)}else if(rt(e)){if(T4(t))return t instanceof oe&&Gs(t.zone)?uf(e,t,r):ai(Nw(e),Nw(t),r);if(vr(t))throw new z(F.InvalidOperator);if(tt(t))return wj(e,t,r);if(st(t))throw new z(F.InvalidOperator);if(_r(t))throw new z(F.InvalidOperator)}switch(r){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function ai(e,t,r){switch(r){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function pj(e,t,r){let n=parseFloat(t);if(!isNaN(n))return ai(e,n,r);let i=e.toString();switch(r){case"<>":return i!==t;case"=":return i===t;case">":return i>t;case"<":return i<t;case">=":return i>=t;case"<=":return i<=t}}function mj(e,t,r){let n=parseFloat(e);if(!isNaN(n))return ai(n,t,r);let i=t.toString();switch(r){case"<>":return e!==i;case"=":return e===i;case">":return e>i;case"<":return e<i;case">=":return e>=i;case"<=":return e<=i}}function hj(e,t,r){switch(r){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function gj(e,t,r){let n=t.toDateTimeLuxon(e.zone);return ai((e=e.startOf("day")).toMillis(),n.toMillis(),r)}function wj(e,t,r){let n=t.toDateTimeLuxon(e.toDateTime().zone);return ai((e=e.startOfDay()).toMilliseconds(),n.toMillis(),r)}function yj(e,t,r){let n=e.toDateTimeLuxon(t.zone);return t=t.startOf("day"),ai(n.toMillis(),t.toMillis(),r)}function bj(e,t,r){let n=e.toDateTimeLuxon(t.toDateTime().zone);return t=t.startOfDay(),ai(n.toMillis(),t.toMilliseconds(),r)}function uf(e,t,r){e instanceof gr&&(e=e.toDateTime()),t instanceof gr&&(t=t.toDateTime());let n=zP(e),i=zP(t);switch(r){case"<>":return n!==i;case"=":return n===i;case">":return n>i;case"<":return n<i;case">=":return n>=i;case"<=":return n<=i}}function zP(e){return e.year*lj+e.month*cj+e.day*uj+e.hour*dj+e.minute*fj+1e3*e.second+e.millisecond}var lj,cj,uj,dj,fj,E4=L(()=>{Wo();cf();Ku();Ju();Vr();lj=321408e5,cj=26784e5,uj=864e5,dj=36e5,fj=6e4});function df(e,t,r){let n=qP[e.toLowerCase()];if(n==null)throw new z(F.FunctionNotRecognized);if(t.length<n.minParams||t.length>n.maxParams)throw new z(F.InvalidParameterCount,{name:e.toUpperCase()});return n.evaluate(t,r)}function BP(e,t){let r=qP[e.toLowerCase()];return r!=null&&t>=r.minParams&&t<=r.maxParams}function Rw(e){return typeof e=="string"||e instanceof String}function M4(e){return!tn(e)&&!tt(e)&&!et(e)&&!st(e)&&!rt(e)}function GP(e){return tt(e)||st(e)?e.toString():rt(e)?e.toSQLValue():et(e)?e.millisecond===0?e.toFormat("yyyy-LL-dd HH:mm:ss"):e.toSQL({includeOffset:!1}):tn(e)?GP(oe.fromJSDate(e)):e.toString()}function _j(e){if(tn(e))return Ht.fromDateJS(e);if(et(e))return Ht.fromParts(e.year,e.month,e.day);if(tt(e))return e;if(st(e))throw new z(F.CannotCastValue);if(rt(e)&&Ht.fromParts(e.year,e.month,e.day)===null)throw new z(F.CannotCastValue);if(Rw(e)){let t=Ht.fromReader(e);if(t!==null&&t.isValid)return t}throw new z(F.CannotCastValue)}function vj(e,t,r){if(tn(e))return bc(e,t);if(et(e))return e;if(tt(e))return e.toDateTimeLuxon("unknown");if(st(e))throw new z(F.CannotCastValue);if(rt(e))return e;if(Rw(e))return _c(e,"unknown",r);throw new z(F.CannotCastValue)}function Sj(e){if(tn(e))return lr.fromDateJS(e);if(et(e))return lr.fromDateTime(e);if(tt(e))throw new z(F.CannotCastValue);if(st(e))return e;if(rt(e))return lr.fromSqlTimeStampOffset(e);if(Rw(e))return lf(e);throw new z(F.CannotCastValue)}var qP,L4=L(()=>{Wo();Io();Qu();E4();cf();af();Vr();qP={extract:{minParams:2,maxParams:2,evaluate:([e,t])=>{if(t==null)return null;if(tn(t))switch(e.toUpperCase()){case"SECOND":return t.getSeconds();case"MINUTE":return t.getMinutes();case"HOUR":return t.getHours();case"DAY":return t.getDate();case"MONTH":return t.getMonth()+1;case"YEAR":return t.getFullYear();case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":return 0}else if(et(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour;case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":throw new z(F.InvalidFunctionParameters,{function:"EXTRACT"})}else if(tt(t))switch(e.toUpperCase()){case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":throw new z(F.InvalidFunctionParameters,{function:"EXTRACT"})}else if(st(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour}else if(rt(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour;case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":return t.timezoneOffsetHour;case"TIMEZONE_MINUTE":return t.timezoneOffsetMinutes}throw new z(F.InvalidFunctionParameters,{function:"EXTRACT"})}},substring:{minParams:2,maxParams:3,evaluate:e=>{if(e.length===2){let[t,r]=e;return t==null||r==null?null:t.toString().substring(r-1)}if(e.length===3){let[t,r,n]=e;return t==null||r==null||n==null?null:n<=0?"":t.toString().substring(r-1,r+n-1)}}},position:{minParams:2,maxParams:2,evaluate:([e,t])=>e==null||t==null?null:t.indexOf(e)+1},trim:{minParams:2,maxParams:3,evaluate:e=>{let t=e.length===3,r=t?e[1]:" ",n=t?e[2]:e[1];if(r==null||n==null)return null;let i=`(${L7(r)})`;switch(e[0]){case"BOTH":return n.replaceAll(new RegExp(`^${i}*|${i}*$`,"g"),"");case"LEADING":return n.replaceAll(new RegExp(`^${i}*`,"g"),"");case"TRAILING":return n.replaceAll(new RegExp(`${i}*$`,"g"),"")}throw new z(F.InvalidFunctionParameters,{function:"TRIM"})}},abs:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.abs(e[0])},ceiling:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.ceil(e[0])},floor:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.floor(e[0])},log:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.log(e[0])},log10:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.log(e[0])*Math.LOG10E},sin:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.sin(e[0])},cos:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.cos(e[0])},tan:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.tan(e[0])},asin:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.asin(e[0])},acos:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.acos(e[0])},atan:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.atan(e[0])},sign:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0]>0?1:e[1]<0?-1:0},power:{minParams:2,maxParams:2,evaluate:e=>e[0]==null||e[1]==null?null:e[0]**e[1]},mod:{minParams:2,maxParams:2,evaluate:e=>e[0]==null||e[1]==null?null:e[0]%e[1]},round:{minParams:1,maxParams:2,evaluate:e=>{let t=e[0],r=e.length===2?10**e[1]:1;return t==null?null:Math.round(t*r)/r}},truncate:{minParams:1,maxParams:2,evaluate:e=>e[0]==null?null:e.length===1?parseInt(e[0].toFixed(0),10):parseFloat(e[0].toFixed(e[1]))},char_length:{minParams:1,maxParams:1,evaluate:e=>Rw(e[0])?e[0].length:0},concat:{minParams:1,maxParams:1/0,evaluate:e=>{let t="";for(let r=0;r<e.length;r++){if(e[r]==null)return null;t+=e[r].toString()}return t}},lower:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0].toString().toLowerCase()},upper:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0].toString().toUpperCase()},coalesce:{minParams:1,maxParams:1/0,evaluate:e=>{for(let t of e)if(t!==null)return t;return null}},cosh:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.cosh(e[0])},sinh:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.sinh(e[0])},tanh:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.tanh(e[0])},nullif:{minParams:2,maxParams:2,evaluate:(e,t)=>qr(e[0],e[1],"=")?null:e[0]},cast:{minParams:2,maxParams:2,evaluate:(e,t)=>{let r=e[0],n=e[1];if(r===null)return null;switch(n.type){case"integer":{if(!M4(r))throw new z(F.CannotCastValue);let i=parseInt(r,10);if(isNaN(i))throw new z(F.CannotCastValue);return i}case"smallint":{if(!M4(r))throw new z(F.CannotCastValue);let i=parseInt(r,10);if(isNaN(i))throw new z(F.CannotCastValue);if(i>32767||i<-32767)throw new z(F.CannotCastValue);return i}case"float":case"real":{if(!M4(r))throw new z(F.CannotCastValue);let i=parseFloat(r);if(isNaN(i))throw new z(F.CannotCastValue);return i}case"time":return Sj(r);case"date":return _j(r);case"timestamp":return vj(r,t,n.withtimezone===!0);case"varchar":{let i=GP(r);if(i.length>n.size)throw new z(F.CannotCastValue);return i}default:throw new z(F.InvalidDataType)}}}}});function I4(e,t,r,n){if(e==="||")return df("concat",[t,r],n);if(t===null||r===null)return null;if(_r(t)){if(_r(r))return P4(t,r,e);if(ao(r))return Pj(t,r,e);if(st(r))return Uj();if(tt(r))return Wj();if(rt(r))return Vj();if(et(r))return $j();if(vr(r))return zj(t,r,e);throw new z(F.InvalidOperator)}if(tt(t)){if(_r(r))return Dj(t,r,e);if(ao(r))return Aj(t,r,e);if(st(r))return Jj();if(tt(r))return Yj(t,r,e);if(rt(r))return Zj(t,r,e);if(et(r))return Hj(t,r,e);if(vr(r))return cH();throw new z(F.InvalidOperator)}if(st(t)){if(_r(r))return Oj(t,r,e);if(ao(r))return Ej(t,r,e);if(st(r))return iH();if(tt(r))return rH();if(rt(r))return nH();if(et(r))return tH();if(vr(r))return uH();throw new z(F.InvalidOperator)}if(ao(t)){if(_r(r))return Ij(t,r,e);if(ao(r))return Lj(t,r,e);if(st(r))return Cj(t,r,e);if(tt(r))return Tj(t,r,e);if(rt(r))return Mj(t,r,e);if(et(r))return xj(t,r,e);if(vr(r))return qj();throw new z(F.InvalidOperator)}if(et(t)){if(_r(r))return Rj(t,r,e);if(ao(r))return Nj(t,r,e);if(st(r))return lH();if(tt(r))return sH(t,r,e);if(rt(r))return aH(t,r,e);if(et(r))return oH(t,r,e);if(vr(r))return dH();throw new z(F.InvalidOperator)}if(rt(t)){if(_r(r))return Fj(t,r,e);if(ao(r))return kj(t,r,e);if(st(r))return Xj();if(tt(r))return Qj(t,r,e);if(rt(r))return eH(t,r,e);if(et(r))return Kj(t,r,e);if(vr(r))return fH();throw new z(F.InvalidOperator)}if(vr(t)){if(_r(r))return Bj(t,r,e);if(ao(r))return jj();if(st(r))return pH();if(tt(r))return mH();if(rt(r))return gH();if(et(r))return hH();if(vr(r))return Gj(t,r,e);throw new z(F.InvalidOperator)}throw new z(F.InvalidOperator)}function P4(e,t,r){switch(r){case"+":return e+t;case"-":return e-t;case"*":return e*t;case"/":return e/t}throw new z(F.InvalidOperator)}function xj(e,t,r){switch(r){case"+":return t.plus({milliseconds:e.valueInMilliseconds()});case"-":return e.valueInMilliseconds()-t.toMillis()}throw new z(F.InvalidOperator)}function Cj(e,t,r){if(r==="+")return t.plus("milliseconds",e.valueInMilliseconds());throw new z(F.InvalidOperator)}function Tj(e,t,r){if(r==="+")return t.plus("milliseconds",e.valueInMilliseconds());throw new z(F.InvalidOperator)}function Ej(e,t,r){switch(r){case"+":return e.plus("milliseconds",t.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*t.valueInMilliseconds())}throw new z(F.InvalidOperator)}function Mj(e,t,r){if(r==="+")return t.addMilliseconds(e.valueInMilliseconds());throw new z(F.InvalidOperator)}function Lj(e,t,r){switch(r){case"+":return Tt.createFromMilliseconds(e.valueInMilliseconds()+t.valueInMilliseconds());case"-":return Tt.createFromMilliseconds(e.valueInMilliseconds()-t.valueInMilliseconds());case"*":return Tt.createFromMilliseconds(e.valueInMilliseconds()*t.valueInMilliseconds());case"/":return Tt.createFromMilliseconds(e.valueInMilliseconds()/t.valueInMilliseconds())}throw new z(F.InvalidOperator)}function Ij(e,t,r){switch(r){case"+":return Tt.createFromMilliseconds(e.valueInMilliseconds()+t);case"-":return Tt.createFromMilliseconds(e.valueInMilliseconds()-t);case"*":return Tt.createFromMilliseconds(e.valueInMilliseconds()*t);case"/":return Tt.createFromMilliseconds(e.valueInMilliseconds()/t)}throw new z(F.InvalidOperator)}function Pj(e,t,r){switch(r){case"+":return Tt.createFromMilliseconds(e+t.valueInMilliseconds());case"-":return Tt.createFromMilliseconds(e-t.valueInMilliseconds());case"*":return Tt.createFromMilliseconds(e*t.valueInMilliseconds());case"/":return Tt.createFromMilliseconds(e/t.valueInMilliseconds())}throw new z(F.InvalidOperator)}function Aj(e,t,r){switch(r){case"+":return e.plus("milliseconds",t.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*t.valueInMilliseconds())}throw new z(F.InvalidOperator)}function Nj(e,t,r){switch(r){case"+":return e.plus({milliseconds:t.valueInMilliseconds()});case"-":return e.minus({milliseconds:t.valueInMilliseconds()})}throw new z(F.InvalidOperator)}function kj(e,t,r){switch(r){case"+":return e.addMilliseconds(t.valueInMilliseconds());case"-":return e.addMilliseconds(-1*t.valueInMilliseconds())}throw new z(F.InvalidOperator)}function Rj(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.plus({milliseconds:n});case"-":return e.minus({milliseconds:n})}throw new z(F.InvalidOperator)}function Dj(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.plus("milliseconds",n);case"-":return e.plus("milliseconds",-1*n)}throw new z(F.InvalidOperator)}function Oj(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.plus("milliseconds",n);case"-":return e.plus("milliseconds",-1*n)}throw new z(F.InvalidOperator)}function $j(e,t,r){throw new z(F.InvalidOperator)}function Fj(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.addMilliseconds(n);case"-":return e.addMilliseconds(-1*n)}throw new z(F.InvalidOperator)}function Vj(e,t,r){throw new z(F.InvalidOperator)}function Uj(e,t,r){throw new z(F.InvalidOperator)}function Wj(e,t,r){throw new z(F.InvalidOperator)}function zj(e,t,r){let n=parseFloat(t);if(isNaN(n))throw new z(F.InvalidOperator);return P4(e,n,r)}function Bj(e,t,r){let n=parseFloat(e);if(isNaN(n))throw new z(F.InvalidOperator);return P4(n,t,r)}function Gj(e,t,r){if(r==="+")return e+t;throw new z(F.InvalidOperator)}function qj(e,t,r){throw new z(F.InvalidOperator)}function jj(e,t,r){throw new z(F.InvalidOperator)}function Hj(e,t,r){if(r==="-")return e.toDateTimeLuxon(t.zone).diff(t).as("days");throw new z(F.InvalidOperator)}function Zj(e,t,r){if(r==="-")return e.toDateTimeLuxon(t.toDateTime().zone).diff(t.toDateTime()).as("days");throw new z(F.InvalidOperator)}function Yj(e,t,r){if(r==="-")return e.toDateTimeLuxon("UTC").diff(t.toDateTimeLuxon("UTC")).as("days");throw new z(F.InvalidOperator)}function Jj(e,t,r){throw new z(F.InvalidOperator)}function Xj(e,t,r){throw new z(F.InvalidOperator)}function Qj(e,t,r){if(r==="-")return e.toDateTime().diff(t.toDateTimeLuxon(e.toDateTime().zone)).as("days");throw new z(F.InvalidOperator)}function Kj(e,t,r){if(r==="-")return e.toDateTime().diff(t).as("days");throw new z(F.InvalidOperator)}function eH(e,t,r){if(r==="-")return e.toDateTime().diff(t.toDateTime()).as("days");throw new z(F.InvalidOperator)}function tH(e,t,r){throw new z(F.InvalidOperator)}function rH(e,t,r){throw new z(F.InvalidOperator)}function nH(e,t,r){throw new z(F.InvalidOperator)}function iH(e,t,r){throw new z(F.InvalidOperator)}function oH(e,t,r){if(r==="-")return e.diff(t).as("days");throw new z(F.InvalidOperator)}function sH(e,t,r){if(r==="-")return e.diff(t.toDateTimeLuxon(e.zone)).as("days");throw new z(F.InvalidOperator)}function aH(e,t,r){if(r==="-")return e.diff(t.toDateTime()).as("days");throw new z(F.InvalidOperator)}function lH(e,t,r){throw new z(F.InvalidOperator)}function cH(e,t,r){throw new z(F.InvalidOperator)}function uH(e,t,r){throw new z(F.InvalidOperator)}function dH(e,t,r){throw new z(F.InvalidOperator)}function fH(e,t,r){throw new z(F.InvalidOperator)}function pH(e,t,r){throw new z(F.InvalidOperator)}function mH(e,t,r){throw new z(F.InvalidOperator)}function hH(e,t,r){throw new z(F.InvalidOperator)}function gH(e,t,r){throw new z(F.InvalidOperator)}var jP=L(()=>{Wo();cf();Aw();L4()});function wH(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function Aa(e,t,r,n){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,Aa.prototype),i.expected=t,i.found=r,i.location=n,i.name="SyntaxError",i}function A4(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function yH(e,t){var r,n={},i=(t=t!==void 0?t:{}).grammarSource,o={start:c5},s=c5,a="!",u="=",d=">=",p=">",m="<=",w="<>",_="!=",S="||",T="@",M="'",R="N'",I="''",N=".",V="null",Y="true",re="false",te="in",ie="is",ge="like",be="escape",de="not",B="and",$="or",q="between",K="from",ee="for",ae="substring",pe="extract",ve="trim",Ae="position",We="timestamp",Pt="date",cr="time",ur="leading",rn="trailing",Nr="both",Vi="cast",Ra="as",Da="integer",jw="smallint",Hw="float",Zw="real",gf="varchar",Yw="to",Jw="interval",Xw="year",Cc="timezone_hour",Qw="timezone_minute",wf="month",yf="day",jr="hour",Kw="minute",bf="second",Oa="case",ey="end",ty="when",ry="then",ny="else",iy=",",oy="(",sy=")",_f="`",ay=/^[<-=]/,$a=/^[+\-]/,Tc=/^[*\/]/,ly=/^[A-Za-z_\x80-\uFFFF]/,xs=/^[A-Za-z0-9_]/,vf=/^[A-Za-z0-9_.\x80-\uFFFF]/,cy=/^["]/,Sf=/^[^']/,uy=/^[0-9]/,dy=/^[eE]/,fy=/^[ \t\n\r]/,xf=/^[^`]/,py=me("!",!1),k=me("=",!1),Fa=me(">=",!1),Cf=me(">",!1),Tf=me("<=",!1),Ef=me("<>",!1),Mf=yn([["<","="]],!1,!1),Lf=me("!=",!1),Cs=yn(["+","-"],!1,!1),If=me("||",!1),Pf=yn(["*","/"],!1,!1),Af=yn([["A","Z"],["a","z"],"_",["\x80","\uFFFF"]],!1,!1),Nf=yn([["A","Z"],["a","z"],["0","9"],"_"],!1,!1),Ec=yn([["A","Z"],["a","z"],["0","9"],"_",".",["\x80","\uFFFF"]],!1,!1),kf=yn(['"'],!1,!1),Rf=me("@",!1),Mc=me("'",!1),Df=me("N'",!1),Lc=me("''",!1),Ic=yn(["'"],!0,!1),Of=me(".",!1),$f=yn([["0","9"]],!1,!1),Ff=yn(["e","E"],!1,!1),Vf=me("NULL",!0),Uf=me("TRUE",!0),Wf=me("FALSE",!0),zf=me("IN",!0),Bf=me("IS",!0),Gf=me("LIKE",!0),qf=me("ESCAPE",!0),jf=me("NOT",!0),Hf=me("AND",!0),Zf=me("OR",!0),Yf=me("BETWEEN",!0),Jf=me("FROM",!0),Xf=me("FOR",!0),Qf=me("SUBSTRING",!0),Kf=me("EXTRACT",!0),ep=me("TRIM",!0),tp=me("POSITION",!0),rp=me("TIMESTAMP",!0),np=me("DATE",!0),ip=me("TIME",!0),op=me("LEADING",!0),sp=me("TRAILING",!0),ap=me("BOTH",!0),lp=me("CAST",!0),cp=me("AS",!0),up=me("INTEGER",!0),dp=me("SMALLINT",!0),fp=me("FLOAT",!0),pp=me("REAL",!0),mp=me("VARCHAR",!0),hp=me("TO",!0),gp=me("INTERVAL",!0),wp=me("YEAR",!0),yp=me("TIMEZONE_HOUR",!0),bp=me("TIMEZONE_MINUTE",!0),_p=me("MONTH",!0),vp=me("DAY",!0),Sp=me("HOUR",!0),xp=me("MINUTE",!0),Cp=me("SECOND",!0),Tp=me("CASE",!0),Ep=me("END",!0),Mp=me("WHEN",!0),Lp=me("THEN",!0),Ip=me("ELSE",!0),Pp=me(",",!1),Ap=me("(",!1),Np=me(")",!1),kp=yn([" "," ",`
137
+ `,"\r"],!1,!1),Pc=me("`",!1),Ac=yn(["`"],!0,!1),Rp=function(c){return c},Dp=function(c){return Wi(ue(),...c)},Nc=function(c,h,y){return{op:h,expr:y,location:ue()}},Op=function(c,h){return Uc(c,h)},kc=function(c,h,y){return{op:h,expr:y,location:ue()}},$p=function(c,h){return Uc(c,h)},Fp=function(c){return Ik("NOT",c,ue())},Vp=function(c,h){return h==""||h==null||h==null?c:h.type=="arithmetic"?Uc(c,h.tail):z5(h.op,c,h.right,h.escape,ue())},Rc=function(c,h){return{op:c,expr:h,location:ue()}},Up=function(c){return{type:"arithmetic",tail:c}},Wp=function(c,h){return{op:c+"NOT",right:h}},zp=function(c,h){return{op:c,right:h}},Bp=function(c,h,y){return Wi(ue(),h,y)},Gp=function(c,h){return{op:"NOT"+c,right:h}},qp=function(c,h,y){return Wi(ue(),h,y)},jp=function(c,h){return{op:c,right:h}},Hp=function(c){return c[0]+" "+c[2]},Zp=function(c){return c[0]+" "+c[2]},Yp=function(c,h,y){return{op:c,right:h,escape:y.value}},Jp=function(c,h){return{op:c,right:h,escape:""}},Xp=function(c,h){return{op:c,right:h}},Qp=function(c,h){return{op:c,right:h}},Dc=function(c,h,y){return{op:h,expr:y,location:ue()}},Kp=function(c,h){return Uc(c,h)},Oc=function(c,h,y){return{op:h,expr:y,location:ue()}},em=function(c,h){return Uc(c,h)},tm=function(c){return c.paren=!0,c},rm=function(c){return/^CURRENT_DATE$/i.test(c)?{type:"current-time",location:ue(),mode:"date"}:/^CURRENT_TIMESTAMP$/i.test(c)?{type:"current-time",location:ue(),mode:"timestamp"}:{type:"column-reference",location:ue(),table:"",column:c}},nm=function(c){return{type:"column-reference",location:ue(),table:"",column:c,delimited:!0}},im=function(c){return c},om=function(c,h){return c+h.join("")},sm=function(c,h){return c+h.join("")},am=function(c){return c},lm=function(c){return c.join("")},cm=function(){return'"'},um=function(c){return{type:"parameter",location:ue(),value:c[1]}},dm=function(c,h){return Wi(ue(),c,h)},fm=function(c){return{type:"function",location:ue(),name:"extract",args:c}},pm=function(c,h,y){return Wi(ue(),c,h,...y?[y]:[])},mm=function(c){return{type:"function",location:ue(),name:"substring",args:c}},hm=function(c,h){return Wi(ue(),c,h)},gm=function(c){return{type:"function",location:ue(),name:"cast",args:c}},wm=function(){return{type:"data-type",location:ue(),value:{type:"integer"}}},ym=function(){return{type:"data-type",location:ue(),value:{type:"smallint"}}},bm=function(){return{type:"data-type",location:ue(),value:{type:"float"}}},_m=function(){return{type:"data-type",location:ue(),value:{type:"real"}}},vm=function(){return{type:"data-type",location:ue(),value:{type:"date"}}},Sm=function(){return{type:"data-type",location:ue(),value:{type:"timestamp"}}},xm=function(){return{type:"data-type",location:ue(),value:{type:"time"}}},Cm=function(c){return{type:"data-type",location:ue(),value:{type:"varchar",size:parseInt(c)}}},Tm=function(c,h,y){return Wi(ue(),c,h,y)},Em=function(c){return{type:"function",location:ue(),name:"trim",args:c}},Mm=function(c,h){return Wi(ue(),c,h)},Lm=function(c){return{type:"function",location:ue(),name:"trim",args:c}},Im=function(c){return{type:"string",location:ue(),value:c??"BOTH"}},Pm=function(c,h){return Wi(ue(),c,h)},Am=function(c){return{type:"function",location:ue(),name:"position",args:c}},Nm=function(c,h){return{type:"function",location:ue(),name:c,args:h}},km=function(c){return{type:"string",location:ue(),value:c}},Rm=function(c){return c.type==="string"&&Pk(c.value),{type:"timestamp",location:ue(),value:c.value}},Dm=function(c){return c.type==="string"&&Ak(c.value),{type:"time",location:ue(),value:c.value}},Om=function(c,h,y){return{type:"interval",location:ue(),value:h,qualifier:y,op:c}},$m=function(c,h){return{type:"interval",location:ue(),value:c,qualifier:h,op:""}},Fm=function(c,h){return{type:"interval-qualifier",location:ue(),start:c,end:h}},Vm=function(c,h){return{type:"interval-period",location:ue(),period:c.value,precision:h,secondary:null}},Um=function(c){return{type:"interval-period",location:ue(),period:c.value,precision:null,secondary:null}},Wm=function(c){return{type:"interval-period",location:ue(),period:c.value,precision:null,secondary:null}},zm=function(c,h){return{type:"interval-period",location:ue(),period:"second",precision:c,secondary:h}},Bm=function(c){return{type:"interval-period",location:ue(),period:"second",precision:c,secondary:null}},Gm=function(){return{type:"interval-period",location:ue(),period:"second",precision:null,secondary:null}},qm=function(c,h){return{type:"interval-period",location:ue(),period:c.value,precision:h,secondary:null}},jm=function(c){return{type:"interval-period",location:ue(),period:c.value,precision:null,secondary:null}},Hm=function(c,h){return{type:"interval-period",location:ue(),period:"second",precision:c,secondary:h}},Zm=function(c){return{type:"interval-period",location:ue(),period:"second",precision:c,secondary:null}},Ym=function(){return{type:"interval-period",location:ue(),period:"second",precision:null,secondary:null}},Jm=function(){return{type:"string",location:ue(),value:"day"}},Xm=function(){return{type:"string",location:ue(),value:"hour"}},Qm=function(){return{type:"string",location:ue(),value:"minute"}},Km=function(){return{type:"string",location:ue(),value:"month"}},eh=function(){return{type:"string",location:ue(),value:"year"}},th=function(c){return parseFloat(c)},rh=function(c){return parseFloat(c)},nh=function(c){return c.type==="string"&&Nk(c.value),{type:"date",location:ue(),value:c.value}},Ye=function(){return{type:"null",location:ue(),value:null}},co=function(){return{type:"boolean",location:ue(),value:!0}},vt=function(){return{type:"boolean",location:ue(),value:!1}},ih=function(){return"'"},my=function(c){return{type:"string",location:ue(),value:c.join("")}},hy=function(c,h){return{type:"case-expression",location:ue(),format:"simple",operand:c,clauses:h,else:null,elseLocation:null}},gy=function(c,h,y){return{type:"case-expression",location:ue(),format:"simple",operand:c,clauses:h,else:y.value,elseLocation:y.location}},wy=function(c){return{type:"case-expression",location:ue(),format:"searched",clauses:c,else:null,elseLocation:null}},xe=function(c,h){return{type:"case-expression",location:ue(),format:"searched",clauses:c,else:h.value,elseLocation:h.location}},$c=function(c,h){return{type:"when-clause",location:ue(),operand:c,value:h}},nn=function(c,h){return{type:"when-clause",location:ue(),operand:c,value:h}},yy=function(c){return{type:"else-clause",location:ue(),value:c}},by=function(c){return{type:"number",location:ue(),value:c}},_y=function(c,h,y){return parseFloat(c+h+y)},vy=function(c,h){return parseFloat(c+h)},dt=function(c,h){return parseFloat(c+h)},Vt=function(c){return parseFloat(c)},kn=function(c,h){return c[0]+h},Xt=function(c){return"."+(c??"")},Z=function(c,h){return c+h},Ut=function(c){return c.join("")},dr=function(c,h){return"e"+(h===null?"":h)},At=function(){return"IN"},at=function(){return"IS"},lt=function(){return"LIKE"},kr=function(){return"ESCAPE"},Sr=function(){return"NOT"},Hr=function(){return"AND"},Et=function(){return"OR"},Wt=function(){return"BETWEEN"},fr=function(){return"FROM"},zt=function(){return"FOR"},Je=function(){return"SUBSTRING"},ft=function(){return"EXTRACT"},pr=function(){return"TRIM"},Se=function(){return"POSITION"},Qt=function(){return"TIMESTAMP"},ze=function(){return"DATE"},Nt=function(){return"TIME"},Bt=function(){return"LEADING"},Rn=function(){return"TRAILING"},f=function(){return"BOTH"},x=function(){return"CAST"},A=function(){return"AS"},G=function(){return"INTEGER"},J=function(){return"SMALLINT"},le=function(){return"FLOAT"},he=function(){return"REAL"},fe=function(){return"VARCHAR"},Ee=function(){return"TO"},xr=function(){return"INTERVAL"},oh=function(){return"YEAR"},sh=function(){return"TIMEZONE_HOUR"},ah=function(){return"TIMEZONE_MINUTE"},lh=function(){return"MONTH"},Sy=function(){return"DAY"},ch=function(){return"HOUR"},uN=function(){return"MINUTE"},dN=function(){return"SECOND"},fN=function(){return"CASE"},pN=function(){return"END"},mN=function(){return"WHEN"},hN=function(){return"THEN"},gN=function(){return"ELSE"},wN=function(c){return c},yN=function(c){return c.join("")},g=0|t.peg$currPos,W=g,Va=[{line:1,column:1}],Dn=g,uh=t.peg$maxFailExpected||[],D=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in o))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');s=o[t.startRule]}function ue(){return dh(W,g)}function xy(c,h){throw _N(c,h=h!==void 0?h:dh(W,g))}function me(c,h){return{type:"literal",text:c,ignoreCase:h}}function yn(c,h,y){return{type:"class",parts:c,inverted:h,ignoreCase:y}}function bN(){return{type:"end"}}function l5(c){var h,y=Va[c];if(y)return y;if(c>=Va.length)h=Va.length-1;else for(h=c;!Va[--h];);for(y={line:(y=Va[h]).line,column:y.column};h<c;)e.charCodeAt(h)===10?(y.line++,y.column=1):y.column++,h++;return Va[c]=y,y}function dh(c,h,y){var C=l5(c),ne=l5(h);return{source:i,start:{offset:c,line:C.line,column:C.column},end:{offset:h,line:ne.line,column:ne.column}}}function se(c){g<Dn||(g>Dn&&(Dn=g,uh=[]),uh.push(c))}function _N(c,h){return new Aa(c,null,null,h)}function vN(c,h,y){return new Aa(Aa.buildMessage(c,h),c,h,y)}function c5(){var c,h;return c=g,j(),(h=Mt())!==n?(j(),W=c,c=Rp(h)):(g=c,c=n),c}function u5(){var c,h,y,C,ne,ke;if(c=g,Rr()!==n){for(j(),h=[],y=Mt();y!==n;)h.push(y),y=g,C=g,ne=j(),(ke=Ny())!==n?C=ne=[ne,ke,j()]:(g=C,C=n),C!==n&&(C=Mt())===n?(g=y,y=n):y=C;y=j(),(C=Dr())!==n?(W=c,c=Dp(h)):(g=c,c=n)}else g=c,c=n;return c}function Mt(){var c,h,y,C,ne,ke;if(c=g,(h=Cy())!==n){for(y=[],C=g,j(),(ne=M5())!==n?(j(),(ke=Cy())!==n?(W=C,C=Nc(h,ne,ke)):(g=C,C=n)):(g=C,C=n);C!==n;)y.push(C),C=g,j(),(ne=M5())!==n?(j(),(ke=Cy())!==n?(W=C,C=Nc(h,ne,ke)):(g=C,C=n)):(g=C,C=n);W=c,c=Op(h,y)}else g=c,c=n;return c}function Cy(){var c,h,y,C,ne,ke;if(c=g,(h=fh())!==n){for(y=[],C=g,j(),(ne=bh())!==n?(j(),(ke=fh())!==n?(W=C,C=kc(h,ne,ke)):(g=C,C=n)):(g=C,C=n);C!==n;)y.push(C),C=g,j(),(ne=bh())!==n?(j(),(ke=fh())!==n?(W=C,C=kc(h,ne,ke)):(g=C,C=n)):(g=C,C=n);W=c,c=$p(h,y)}else g=c,c=n;return c}function fh(){var c,h,y,C,ne;return c=g,(h=Vc())===n&&(h=g,e.charCodeAt(g)===33?(y=a,g++):(y=n,D===0&&se(py)),y!==n?(C=g,D++,e.charCodeAt(g)===61?(ne=u,g++):(ne=n,D===0&&se(k)),D--,ne===n?C=void 0:(g=C,C=n),C!==n?h=y=[y,C]:(g=h,h=n)):(g=h,h=n)),h!==n?(y=j(),(C=fh())!==n?(W=c,c=Fp(C)):(g=c,c=n)):(g=c,c=n),c===n&&(c=SN()),c}function SN(){var c,h,y,C;return c=g,(h=Ui())!==n?(y=g,j(),(C=xN())!==n?y=C:(g=y,y=n),y===n&&(y=null),W=c,c=Vp(h,y)):(g=c,c=n),c}function xN(){var c;return(c=CN())===n&&(c=LN())===n&&(c=EN())===n&&(c=TN())===n&&(c=MN()),c}function CN(){var c,h,y,C,ne;if(c=g,h=[],y=g,j(),(C=d5())!==n?(j(),(ne=Ui())!==n?(W=y,y=Rc(C,ne)):(g=y,y=n)):(g=y,y=n),y!==n)for(;y!==n;)h.push(y),y=g,j(),(C=d5())!==n?(j(),(ne=Ui())!==n?(W=y,y=Rc(C,ne)):(g=y,y=n)):(g=y,y=n);else h=n;return h!==n&&(W=c,h=Up(h)),c=h}function d5(){var c;return e.substr(g,2)===d?(c=d,g+=2):(c=n,D===0&&se(Fa)),c===n&&(e.charCodeAt(g)===62?(c=p,g++):(c=n,D===0&&se(Cf)),c===n&&(e.substr(g,2)===m?(c=m,g+=2):(c=n,D===0&&se(Tf)),c===n&&(e.substr(g,2)===w?(c=w,g+=2):(c=n,D===0&&se(Ef)),c===n&&(c=e.charAt(g),ay.test(c)?g++:(c=n,D===0&&se(Mf)),c===n&&(e.substr(g,2)===_?(c=_,g+=2):(c=n,D===0&&se(Lf))))))),c}function TN(){var c,h,y,C;return c=g,(h=T5())!==n?(j(),(y=Vc())!==n?(j(),(C=Ui())!==n?(W=c,c=Wp(h,C)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=T5())!==n?(j(),(y=Ui())!==n?(W=c,c=zp(h,y)):(g=c,c=n)):(g=c,c=n)),c}function EN(){var c,h,y,C,ne,ke,ky,B5;return c=g,(h=Vc())!==n?(j(),(y=L5())!==n?(C=j(),ne=g,(ke=Ui())!==n?(j(),(ky=bh())!==n?(j(),(B5=Ui())!==n?(W=ne,ne=Bp(y,ke,B5)):(g=ne,ne=n)):(g=ne,ne=n)):(g=ne,ne=n),ne!==n?(W=c,c=Gp(y,ne)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=L5())!==n?(j(),y=g,(C=Ui())!==n?(ne=j(),(ke=bh())!==n?(j(),(ky=Ui())!==n?(W=y,y=qp(h,C,ky)):(g=y,y=n)):(g=y,y=n)):(g=y,y=n),y!==n?(W=c,c=jp(h,y)):(g=c,c=n)):(g=c,c=n)),c}function f5(){var c,h,y,C,ne;return c=g,h=g,(y=Vc())!==n?(C=j(),(ne=E5())!==n?h=y=[y,C,ne]:(g=h,h=n)):(g=h,h=n),h!==n&&(W=c,h=Hp(h)),(c=h)===n&&(c=E5()),c}function p5(){var c,h,y,C,ne;return c=g,h=g,(y=Vc())!==n?(C=j(),(ne=Py())!==n?h=y=[y,C,ne]:(g=h,h=n)):(g=h,h=n),h!==n&&(W=c,h=Zp(h)),(c=h)===n&&(c=Py()),c}function MN(){var c,h,y,C;return c=g,(h=f5())!==n?(j(),(y=Ts())!==n?(j(),ck()!==n?(j(),(C=Iy())!==n?(W=c,c=Yp(h,y,C)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=f5())!==n?(j(),(y=Ts())!==n?(W=c,c=Jp(h,y)):(g=c,c=n)):(g=c,c=n)),c}function LN(){var c,h,y;return c=g,(h=p5())!==n?(j(),(y=u5())!==n?(W=c,c=Xp(h,y)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=p5())!==n?(j(),(y=Ly())!==n?(W=c,c=Qp(h,y)):(g=c,c=n)):(g=c,c=n)),c}function Ui(){var c,h,y,C,ne,ke;if(c=g,(h=Ty())!==n){for(y=[],C=g,j(),(ne=m5())!==n?(j(),(ke=Ty())!==n?(W=C,C=Dc(h,ne,ke)):(g=C,C=n)):(g=C,C=n);C!==n;)y.push(C),C=g,j(),(ne=m5())!==n?(j(),(ke=Ty())!==n?(W=C,C=Dc(h,ne,ke)):(g=C,C=n)):(g=C,C=n);W=c,c=Kp(h,y)}else g=c,c=n;return c}function m5(){var c;return c=e.charAt(g),$a.test(c)?g++:(c=n,D===0&&se(Cs)),c===n&&(e.substr(g,2)===S?(c=S,g+=2):(c=n,D===0&&se(If))),c}function Ty(){var c,h,y,C,ne,ke;if(c=g,(h=Ey())!==n){for(y=[],C=g,j(),(ne=h5())!==n?(j(),(ke=Ey())!==n?(W=C,C=Oc(h,ne,ke)):(g=C,C=n)):(g=C,C=n);C!==n;)y.push(C),C=g,j(),(ne=h5())!==n?(j(),(ke=Ey())!==n?(W=C,C=Oc(h,ne,ke)):(g=C,C=n)):(g=C,C=n);W=c,c=em(h,y)}else g=c,c=n;return c}function h5(){var c;return c=e.charAt(g),Tc.test(c)?g++:(c=n,D===0&&se(Pf)),c}function Ey(){var c,h;return(c=GN())===n&&(c=ON())===n&&(c=$N())===n&&(c=UN())===n&&(c=WN())===n&&(c=FN())===n&&(c=zN())===n&&(c=ek())===n&&(c=IN())===n&&(c=Ly())===n&&(c=g,Rr()!==n?(j(),(h=Mt())!==n?(j(),Dr()!==n?(W=c,c=tm(h)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)),c}function IN(){var c,h;return c=g,(h=PN())!==n&&(W=c,h=rm(h)),(c=h)===n&&(c=g,(h=NN())!==n&&(W=c,h=nm(h)),c=h),c}function PN(){var c,h;return c=g,(h=AN())!==n&&(W=c,h=im(h)),c=h}function AN(){var c,h,y,C;if(c=g,(h=My())!==n){for(y=[],C=w5();C!==n;)y.push(C),C=w5();W=c,c=om(h,y)}else g=c,c=n;return c}function g5(){var c,h,y,C;if(c=g,(h=My())!==n){for(y=[],C=Te();C!==n;)y.push(C),C=Te();W=c,c=sm(h,y)}else g=c,c=n;return c}function My(){var c;return c=e.charAt(g),ly.test(c)?g++:(c=n,D===0&&se(Af)),c}function Te(){var c;return c=e.charAt(g),xs.test(c)?g++:(c=n,D===0&&se(Nf)),c}function w5(){var c;return c=e.charAt(g),vf.test(c)?g++:(c=n,D===0&&se(Ec)),c}function NN(){var c,h;return c=g,ph()!==n?(h=kN(),ph()!==n?(W=c,c=am(h)):(g=c,c=n)):(g=c,c=n),c}function kN(){var c,h,y;for(c=g,h=[],y=y5();y!==n;)h.push(y),y=y5();return W=c,c=h=lm(h)}function y5(){var c;return(c=DN())===n&&(c=RN()),c}function RN(){var c;return c=g,ph()!==n&&ph()!==n?(W=c,c=cm()):(g=c,c=n),c}function DN(){var c;return c=e.charAt(g),vf.test(c)?g++:(c=n,D===0&&se(Ec)),c}function ph(){var c;return c=e.charAt(g),cy.test(c)?g++:(c=n,D===0&&se(kf)),c}function Ly(){var c,h,y,C;return c=g,h=g,e.charCodeAt(g)===64?(y=T,g++):(y=n,D===0&&se(Rf)),y!==n&&(C=g5())!==n?h=y=[y,C]:(g=h,h=n),h!==n&&(W=c,h=um(h)),c=h}function ON(){var c,h,y,C;return c=g,fk()!==n?(j(),h=g,Rr()!==n?(j(),(y=BN())!==n?(j(),Ay()!==n?(j(),(C=Mt())!==n?(j(),Dr()!==n?(W=h,h=dm(y,C)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n),h!==n?(W=c,c=fm(h)):(g=c,c=n)):(g=c,c=n),c}function $N(){var c,h,y,C,ne,ke;return c=g,dk()!==n?(j(),h=g,Rr()!==n?(j(),(y=Mt())!==n?(j(),Ay()!==n?(j(),(C=Mt())!==n?(j(),ne=g,uk()!==n?(j(),(ke=Mt())!==n?(j(),ne=ke):(g=ne,ne=n)):(g=ne,ne=n),ne===n&&(ne=null),Dr()!==n?(W=h,h=pm(y,C,ne)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n),h!==n?(W=c,c=mm(h)):(g=c,c=n)):(g=c,c=n),c}function FN(){var c,h,y,C;return c=g,wk()!==n?(j(),h=g,Rr()!==n?(j(),(y=Mt())!==n?(j(),yk()!==n?(j(),(C=VN())!==n?(j(),Dr()!==n?(W=h,h=hm(y,C)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n),h!==n?(W=c,c=gm(h)):(g=c,c=n)):(g=c,c=n),c}function VN(){var c,h,y;return c=g,(h=bk())!==n&&(W=c,h=wm()),(c=h)===n&&(c=g,(h=_k())!==n&&(W=c,h=ym()),(c=h)===n&&(c=g,(h=vk())!==n&&(W=c,h=bm()),(c=h)===n&&(c=g,(h=Sk())!==n&&(W=c,h=_m()),(c=h)===n&&(c=g,(h=A5())!==n&&(W=c,h=vm()),(c=h)===n&&(c=g,(h=P5())!==n&&(W=c,h=Sm()),(c=h)===n&&(c=g,(h=N5())!==n&&(W=c,h=xm()),(c=h)===n&&(c=g,(h=xk())!==n?(j(),Rr()!==n?(j(),(y=Es())!==n?(j(),Dr()!==n?(W=c,c=Cm(y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)))))))),c}function UN(){var c,h,y,C,ne;return c=g,I5()!==n?(j(),h=g,Rr()!==n?(j(),y=b5(),j(),(C=Mt())!==n?(j(),Ay()!==n?(j(),(ne=Mt())!==n?(j(),Dr()!==n?(W=h,h=Tm(y,C,ne)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n),h!==n?(W=c,c=Em(h)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,I5()!==n?(j(),h=g,Rr()!==n?(j(),y=b5(),j(),(C=Mt())!==n?(j(),Dr()!==n?(W=h,h=Mm(y,C)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n),h!==n?(W=c,c=Lm(h)):(g=c,c=n)):(g=c,c=n)),c}function b5(){var c,h;return c=g,(h=mk())===n&&(h=hk())===n&&(h=gk()),h===n&&(h=null),W=c,c=h=Im(h)}function WN(){var c,h,y,C;return c=g,pk()!==n?(j(),h=g,Rr()!==n?(j(),(y=Mt())!==n?(j(),Py()!==n?(j(),(C=Mt())!==n?(j(),Dr()!==n?(W=h,h=Pm(y,C)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n),h!==n?(W=c,c=Am(h)):(g=c,c=n)):(g=c,c=n),c}function zN(){var c,h,y;return c=g,(h=Lk())!==n?(j(),(y=u5())!==n?(W=c,c=Nm(h,y)):(g=c,c=n)):(g=c,c=n),c}function BN(){var c,h;return c=g,(h=R5())===n&&(h=D5())===n&&(h=O5())===n&&(h=$5())===n&&(h=F5())===n&&(h=Ms())===n&&(h=Tk())===n&&(h=Ek()),h!==n&&(W=c,h=km(h)),c=h}function GN(){var c;return(c=Iy())===n&&(c=nk())===n&&(c=KN())===n&&(c=QN())===n&&(c=XN())===n&&(c=qN())===n&&(c=HN())===n&&(c=jN()),c}function qN(){var c,h;return c=g,P5()!==n?(j(),(h=Ts())!==n?(W=c,c=Rm(h)):(g=c,c=n)):(g=c,c=n),c}function jN(){var c,h;return c=g,N5()!==n?(j(),(h=Ts())!==n?(W=c,c=Dm(h)):(g=c,c=n)):(g=c,c=n),c}function HN(){var c,h,y,C;return c=g,k5()!==n?(j(),h=e.charAt(g),$a.test(h)?g++:(h=n,D===0&&se(Cs)),h!==n?(j(),(y=Ts())!==n?(j(),(C=_5())!==n?(W=c,c=Om(h,y,C)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,k5()!==n?(j(),(h=Ts())!==n?(j(),(y=_5())!==n?(W=c,c=$m(h,y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)),c}function _5(){var c,h,y;return c=g,(h=ZN())!==n?(j(),Ck()!==n?(j(),(y=YN())!==n?(W=c,c=Fm(h,y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=JN()),c}function ZN(){var c,h,y;return c=g,(h=Fc())!==n?(j(),Rr()!==n?(j(),(y=hh())!==n?(j(),Dr()!==n?(W=c,c=Vm(h,y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=Fc())!==n&&(W=c,h=Um(h)),c=h),c}function YN(){var c,h,y,C;return c=g,(h=Fc())!==n&&(W=c,h=Wm(h)),(c=h)===n&&(c=g,(h=Ms())!==n?(j(),Rr()!==n?(j(),(y=hh())!==n?(j(),Ny()!==n?(j(),(C=mh())!==n?(j(),Dr()!==n?(W=c,c=zm(y,C)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=Ms())!==n?(j(),Rr()!==n?(j(),(y=hh())!==n?(j(),Dr()!==n?(W=c,c=Bm(y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=Ms())!==n&&(W=c,h=Gm()),c=h))),c}function JN(){var c,h,y,C;return c=g,(h=Fc())!==n?(j(),Rr()!==n?(j(),(y=mh())!==n?(j(),Dr()!==n?(W=c,c=qm(h,y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=Fc())!==n&&(W=c,h=jm(h)),(c=h)===n&&(c=g,(h=Ms())!==n?(j(),Rr()!==n?(j(),(y=hh())!==n?(j(),Ny()!==n?(j(),(C=mh())!==n?(j(),Dr()!==n?(W=c,c=Hm(y,C)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=Ms())!==n?(j(),Rr()!==n?(j(),(y=mh())!==n?(j(),Dr()!==n?(W=c,c=Zm(y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=Ms())!==n&&(W=c,h=Ym()),c=h)))),c}function Fc(){var c,h;return c=g,(h=O5())!==n&&(W=c,h=Jm()),(c=h)===n&&(c=g,(h=$5())!==n&&(W=c,h=Xm()),(c=h)===n&&(c=g,(h=F5())!==n&&(W=c,h=Qm()),(c=h)===n&&(c=g,(h=D5())!==n&&(W=c,h=Km()),(c=h)===n&&(c=g,(h=R5())!==n&&(W=c,h=eh()),c=h)))),c}function mh(){var c,h;return c=g,(h=Es())!==n&&(W=c,h=th(h)),c=h}function hh(){var c,h;return c=g,(h=Es())!==n&&(W=c,h=rh(h)),c=h}function XN(){var c,h;return c=g,A5()!==n?(j(),(h=Ts())!==n?(W=c,c=nh(h)):(g=c,c=n)):(g=c,c=n),c}function QN(){var c,h;return c=g,(h=sk())!==n&&(W=c,h=Ye()),c=h}function KN(){var c,h;return c=g,(h=ak())!==n&&(W=c,h=co()),(c=h)===n&&(c=g,(h=lk())!==n&&(W=c,h=vt()),c=h),c}function Ts(){var c;return(c=Iy())===n&&(c=Ly()),c}function Iy(){var c,h,y,C,ne;if(c=g,e.charCodeAt(g)===39?(h=M,g++):(h=n,D===0&&se(Mc)),h===n&&(e.substr(g,2)===R?(h=R,g+=2):(h=n,D===0&&se(Df))),h!==n){for(y=[],C=g,e.substr(g,2)===I?(ne=I,g+=2):(ne=n,D===0&&se(Lc)),ne!==n&&(W=C,ne=ih()),(C=ne)===n&&(C=e.charAt(g),Sf.test(C)?g++:(C=n,D===0&&se(Ic)));C!==n;)y.push(C),C=g,e.substr(g,2)===I?(ne=I,g+=2):(ne=n,D===0&&se(Lc)),ne!==n&&(W=C,ne=ih()),(C=ne)===n&&(C=e.charAt(g),Sf.test(C)?g++:(C=n,D===0&&se(Ic)));e.charCodeAt(g)===39?(C=M,g++):(C=n,D===0&&se(Mc)),C!==n?(W=c,c=my(y)):(g=c,c=n)}else g=c,c=n;return c}function ek(){var c;return(c=tk())===n&&(c=rk()),c}function tk(){var c,h,y,C,ne;if(c=g,_h()!==n)if(j(),(h=Mt())!==n){for(j(),y=[],C=g,(ne=wh())!==n?(j(),C=ne):(g=C,C=n);C!==n;)y.push(C),C=g,(ne=wh())!==n?(j(),C=ne):(g=C,C=n);(C=vh())!==n?(W=c,c=hy(h,y)):(g=c,c=n)}else g=c,c=n;else g=c,c=n;if(c===n)if(c=g,_h()!==n)if(j(),(h=Mt())!==n){for(j(),y=[],C=g,(ne=wh())!==n?(j(),C=ne):(g=C,C=n);C!==n;)y.push(C),C=g,(ne=wh())!==n?(j(),C=ne):(g=C,C=n);(C=v5())!==n?(ne=j(),vh()!==n?(W=c,c=gy(h,y,C)):(g=c,c=n)):(g=c,c=n)}else g=c,c=n;else g=c,c=n;return c}function rk(){var c,h,y,C;if(c=g,_h()!==n){for(j(),h=[],y=g,(C=gh())!==n?(j(),y=C):(g=y,y=n);y!==n;)h.push(y),y=g,(C=gh())!==n?(j(),y=C):(g=y,y=n);(y=vh())!==n?(W=c,c=wy(h)):(g=c,c=n)}else g=c,c=n;if(c===n)if(c=g,_h()!==n){for(j(),h=[],y=g,(C=gh())!==n?(j(),y=C):(g=y,y=n);y!==n;)h.push(y),y=g,(C=gh())!==n?(j(),y=C):(g=y,y=n);(y=v5())!==n?(C=j(),vh()!==n?(W=c,c=xe(h,y)):(g=c,c=n)):(g=c,c=n)}else g=c,c=n;return c}function gh(){var c,h,y;return c=g,V5()!==n?(j(),(h=Mt())!==n?(j(),U5()!==n?(j(),(y=Mt())!==n?(W=c,c=$c(h,y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c}function wh(){var c,h,y;return c=g,V5()!==n?(j(),(h=Mt())!==n?(j(),U5()!==n?(j(),(y=Mt())!==n?(W=c,c=nn(h,y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c}function v5(){var c,h;return c=g,Mk()!==n?(j(),(h=Mt())!==n?(W=c,c=yy(h)):(g=c,c=n)):(g=c,c=n),c}function nk(){var c,h,y,C;return c=g,(h=ik())!==n?(y=g,D++,C=My(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=by(h)):(g=c,c=n)):(g=c,c=n),c}function ik(){var c,h,y,C;return c=g,(h=yh())!==n&&(y=S5())!==n&&(C=x5())!==n?(W=c,c=_y(h,y,C)):(g=c,c=n),c===n&&(c=g,(h=yh())!==n&&(y=S5())!==n?(W=c,c=vy(h,y)):(g=c,c=n),c===n&&(c=g,(h=yh())!==n&&(y=x5())!==n?(W=c,c=dt(h,y)):(g=c,c=n),c===n&&(c=g,(h=yh())!==n&&(W=c,h=Vt(h)),c=h))),c}function yh(){var c,h,y;return(c=Es())===n&&(c=g,h=e.charAt(g),$a.test(h)?g++:(h=n,D===0&&se(Cs)),h!==n&&(y=Es())!==n?(W=c,c=kn(h,y)):(g=c,c=n)),c}function S5(){var c,h,y;return c=g,e.charCodeAt(g)===46?(h=N,g++):(h=n,D===0&&se(Of)),h!==n?((y=Es())===n&&(y=null),W=c,c=Xt(y)):(g=c,c=n),c}function x5(){var c,h,y;return c=g,(h=ok())!==n&&(y=Es())!==n?(W=c,c=Z(h,y)):(g=c,c=n),c}function Es(){var c,h,y;if(c=g,h=[],(y=C5())!==n)for(;y!==n;)h.push(y),y=C5();else h=n;return h!==n&&(W=c,h=Ut(h)),c=h}function C5(){var c;return c=e.charAt(g),uy.test(c)?g++:(c=n,D===0&&se($f)),c}function ok(){var c,h,y;return c=g,h=e.charAt(g),dy.test(h)?g++:(h=n,D===0&&se(Ff)),h!==n?(y=e.charAt(g),$a.test(y)?g++:(y=n,D===0&&se(Cs)),y===n&&(y=null),W=c,c=dr(h,y)):(g=c,c=n),c}function sk(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===V?g+=4:(h=n,D===0&&se(Vf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?c=h=[h,y]:(g=c,c=n)):(g=c,c=n),c}function ak(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===Y?g+=4:(h=n,D===0&&se(Uf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?c=h=[h,y]:(g=c,c=n)):(g=c,c=n),c}function lk(){var c,h,y,C;return c=g,(h=e.substr(g,5)).toLowerCase()===re?g+=5:(h=n,D===0&&se(Wf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?c=h=[h,y]:(g=c,c=n)):(g=c,c=n),c}function Py(){var c,h,y,C;return c=g,(h=e.substr(g,2)).toLowerCase()===te?g+=2:(h=n,D===0&&se(zf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=At()):(g=c,c=n)):(g=c,c=n),c}function T5(){var c,h,y,C;return c=g,(h=e.substr(g,2)).toLowerCase()===ie?g+=2:(h=n,D===0&&se(Bf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=at()):(g=c,c=n)):(g=c,c=n),c}function E5(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===ge?g+=4:(h=n,D===0&&se(Gf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=lt()):(g=c,c=n)):(g=c,c=n),c}function ck(){var c,h,y,C;return c=g,(h=e.substr(g,6)).toLowerCase()===be?g+=6:(h=n,D===0&&se(qf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=kr()):(g=c,c=n)):(g=c,c=n),c}function Vc(){var c,h,y,C;return c=g,(h=e.substr(g,3)).toLowerCase()===de?g+=3:(h=n,D===0&&se(jf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=Sr()):(g=c,c=n)):(g=c,c=n),c}function bh(){var c,h,y,C;return c=g,(h=e.substr(g,3)).toLowerCase()===B?g+=3:(h=n,D===0&&se(Hf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=Hr()):(g=c,c=n)):(g=c,c=n),c}function M5(){var c,h,y,C;return c=g,(h=e.substr(g,2)).toLowerCase()===$?g+=2:(h=n,D===0&&se(Zf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=Et()):(g=c,c=n)):(g=c,c=n),c}function L5(){var c,h,y,C;return c=g,(h=e.substr(g,7)).toLowerCase()===q?g+=7:(h=n,D===0&&se(Yf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=Wt()):(g=c,c=n)):(g=c,c=n),c}function Ay(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===K?g+=4:(h=n,D===0&&se(Jf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=fr()):(g=c,c=n)):(g=c,c=n),c}function uk(){var c,h,y,C;return c=g,(h=e.substr(g,3)).toLowerCase()===ee?g+=3:(h=n,D===0&&se(Xf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=zt()):(g=c,c=n)):(g=c,c=n),c}function dk(){var c,h,y,C;return c=g,(h=e.substr(g,9)).toLowerCase()===ae?g+=9:(h=n,D===0&&se(Qf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=Je()):(g=c,c=n)):(g=c,c=n),c}function fk(){var c,h,y,C;return c=g,(h=e.substr(g,7)).toLowerCase()===pe?g+=7:(h=n,D===0&&se(Kf)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=ft()):(g=c,c=n)):(g=c,c=n),c}function I5(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===ve?g+=4:(h=n,D===0&&se(ep)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=pr()):(g=c,c=n)):(g=c,c=n),c}function pk(){var c,h,y,C;return c=g,(h=e.substr(g,8)).toLowerCase()===Ae?g+=8:(h=n,D===0&&se(tp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=Se()):(g=c,c=n)):(g=c,c=n),c}function P5(){var c,h,y,C;return c=g,(h=e.substr(g,9)).toLowerCase()===We?g+=9:(h=n,D===0&&se(rp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=Qt()):(g=c,c=n)):(g=c,c=n),c}function A5(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===Pt?g+=4:(h=n,D===0&&se(np)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=ze()):(g=c,c=n)):(g=c,c=n),c}function N5(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===cr?g+=4:(h=n,D===0&&se(ip)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=Nt()):(g=c,c=n)):(g=c,c=n),c}function mk(){var c,h,y,C;return c=g,(h=e.substr(g,7)).toLowerCase()===ur?g+=7:(h=n,D===0&&se(op)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=Bt()):(g=c,c=n)):(g=c,c=n),c}function hk(){var c,h,y,C;return c=g,(h=e.substr(g,8)).toLowerCase()===rn?g+=8:(h=n,D===0&&se(sp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=Rn()):(g=c,c=n)):(g=c,c=n),c}function gk(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===Nr?g+=4:(h=n,D===0&&se(ap)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=f()):(g=c,c=n)):(g=c,c=n),c}function wk(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===Vi?g+=4:(h=n,D===0&&se(lp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=x()):(g=c,c=n)):(g=c,c=n),c}function yk(){var c,h,y,C;return c=g,(h=e.substr(g,2)).toLowerCase()===Ra?g+=2:(h=n,D===0&&se(cp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=A()):(g=c,c=n)):(g=c,c=n),c}function bk(){var c,h,y,C;return c=g,(h=e.substr(g,7)).toLowerCase()===Da?g+=7:(h=n,D===0&&se(up)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=G()):(g=c,c=n)):(g=c,c=n),c}function _k(){var c,h,y,C;return c=g,(h=e.substr(g,8)).toLowerCase()===jw?g+=8:(h=n,D===0&&se(dp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=J()):(g=c,c=n)):(g=c,c=n),c}function vk(){var c,h,y,C;return c=g,(h=e.substr(g,5)).toLowerCase()===Hw?g+=5:(h=n,D===0&&se(fp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=le()):(g=c,c=n)):(g=c,c=n),c}function Sk(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===Zw?g+=4:(h=n,D===0&&se(pp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=he()):(g=c,c=n)):(g=c,c=n),c}function xk(){var c,h,y,C;return c=g,(h=e.substr(g,7)).toLowerCase()===gf?g+=7:(h=n,D===0&&se(mp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=fe()):(g=c,c=n)):(g=c,c=n),c}function Ck(){var c,h,y,C;return c=g,(h=e.substr(g,2)).toLowerCase()===Yw?g+=2:(h=n,D===0&&se(hp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=Ee()):(g=c,c=n)):(g=c,c=n),c}function k5(){var c,h,y,C;return c=g,(h=e.substr(g,8)).toLowerCase()===Jw?g+=8:(h=n,D===0&&se(gp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=xr()):(g=c,c=n)):(g=c,c=n),c}function R5(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===Xw?g+=4:(h=n,D===0&&se(wp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=oh()):(g=c,c=n)):(g=c,c=n),c}function Tk(){var c,h,y,C;return c=g,(h=e.substr(g,13)).toLowerCase()===Cc?g+=13:(h=n,D===0&&se(yp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=sh()):(g=c,c=n)):(g=c,c=n),c}function Ek(){var c,h,y,C;return c=g,(h=e.substr(g,15)).toLowerCase()===Qw?g+=15:(h=n,D===0&&se(bp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=ah()):(g=c,c=n)):(g=c,c=n),c}function D5(){var c,h,y,C;return c=g,(h=e.substr(g,5)).toLowerCase()===wf?g+=5:(h=n,D===0&&se(_p)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=lh()):(g=c,c=n)):(g=c,c=n),c}function O5(){var c,h,y,C;return c=g,(h=e.substr(g,3)).toLowerCase()===yf?g+=3:(h=n,D===0&&se(vp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=Sy()):(g=c,c=n)):(g=c,c=n),c}function $5(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===jr?g+=4:(h=n,D===0&&se(Sp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=ch()):(g=c,c=n)):(g=c,c=n),c}function F5(){var c,h,y,C;return c=g,(h=e.substr(g,6)).toLowerCase()===Kw?g+=6:(h=n,D===0&&se(xp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=uN()):(g=c,c=n)):(g=c,c=n),c}function Ms(){var c,h,y,C;return c=g,(h=e.substr(g,6)).toLowerCase()===bf?g+=6:(h=n,D===0&&se(Cp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=dN()):(g=c,c=n)):(g=c,c=n),c}function _h(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===Oa?g+=4:(h=n,D===0&&se(Tp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=fN()):(g=c,c=n)):(g=c,c=n),c}function vh(){var c,h,y,C;return c=g,(h=e.substr(g,3)).toLowerCase()===ey?g+=3:(h=n,D===0&&se(Ep)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=pN()):(g=c,c=n)):(g=c,c=n),c}function V5(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===ty?g+=4:(h=n,D===0&&se(Mp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=mN()):(g=c,c=n)):(g=c,c=n),c}function U5(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===ry?g+=4:(h=n,D===0&&se(Lp)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=hN()):(g=c,c=n)):(g=c,c=n),c}function Mk(){var c,h,y,C;return c=g,(h=e.substr(g,4)).toLowerCase()===ny?g+=4:(h=n,D===0&&se(Ip)),h!==n?(y=g,D++,C=Te(),D--,C===n?y=void 0:(g=y,y=n),y!==n?(W=c,c=gN()):(g=c,c=n)):(g=c,c=n),c}function Ny(){var c;return e.charCodeAt(g)===44?(c=iy,g++):(c=n,D===0&&se(Pp)),c}function Rr(){var c;return e.charCodeAt(g)===40?(c=oy,g++):(c=n,D===0&&se(Ap)),c}function Dr(){var c;return e.charCodeAt(g)===41?(c=sy,g++):(c=n,D===0&&se(Np)),c}function j(){var c,h;for(c=[],h=W5();h!==n;)c.push(h),h=W5();return c}function W5(){var c;return c=e.charAt(g),fy.test(c)?g++:(c=n,D===0&&se(kp)),c}function Lk(){var c,h,y,C;if(c=g,(h=g5())!==n&&(W=c,h=wN(h)),(c=h)===n)if(c=g,e.charCodeAt(g)===96?(h=_f,g++):(h=n,D===0&&se(Pc)),h!==n){if(y=[],C=e.charAt(g),xf.test(C)?g++:(C=n,D===0&&se(Ac)),C!==n)for(;C!==n;)y.push(C),C=e.charAt(g),xf.test(C)?g++:(C=n,D===0&&se(Ac));else y=n;y!==n?(e.charCodeAt(g)===96?(C=_f,g++):(C=n,D===0&&se(Pc)),C!==n?(W=c,c=yN(y)):(g=c,c=n)):(g=c,c=n)}else g=c,c=n;return c}function Ik(c,h,y){return{type:"unary-expression",location:y,operator:c,expr:h}}function z5(c,h,y,C,ne){let ke={type:"binary-expression",location:ne,operator:c,left:h,right:y};return C!==void 0&&(ke.escape=C),ke}function Wi(c,...h){return{type:"expression-list",location:c,value:h}}function Uc(c,h){let y=c;for(let{op:C,expr:ne,location:{end:ke}}of h)y=z5(C,y,ne,void 0,{...y.location,end:ke});return y}function Pk(c){/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(c)!==!0&&xy("Timestamp literal is invalid")}function Ak(c){/^(\d{1,2}):(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/.test(c)!==!0&&xy("Time literal is invalid")}function Nk(c){/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(c)!==!0&&xy("Date literal is invalid")}if(r=s(),t.peg$library)return{peg$result:r,peg$currPos:g,peg$FAILED:n,peg$maxFailExpected:uh,peg$maxFailPos:Dn};if(r!==n&&g===e.length)return r;throw r!==n&&g<e.length&&se(bN()),vN(uh,Dn<e.length?e.charAt(Dn):null,Dn<e.length?dh(Dn,Dn+1):dh(Dn,Dn))}function Ft(e,t){if(e!=null)switch(t(e),e.type){case"when-clause":Ft(e.operand,t),Ft(e.value,t);break;case"case-expression":for(let r of e.clauses)Ft(r,t);e.format==="simple"&&Ft(e.operand,t),e.else!==null&&Ft(e.else,t);break;case"expression-list":for(let r of e.value)Ft(r,t);break;case"unary-expression":Ft(e.expr,t);break;case"binary-expression":Ft(e.left,t),Ft(e.right,t);break;case"function":Ft(e.args,t);break;case"interval":Ft(e.value,t),Ft(e.qualifier,t);break;case"interval-qualifier":Ft(e.start,t),Ft(e.end,t)}}var Dw,HP=L(()=>{wH(Aa,Error),Aa.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r,n=null;for(r=0;r<e.length;r++)if(e[r].source===this.location.source){n=e[r].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(n){var a=this.location.end,u=A4("",o.line.toString().length," "),d=n[i.line-1],p=(i.line===a.line?a.column:d.length+1)-i.column||1;t+=`
138
+ --> `+s+`
139
+ `+u+` |
140
+ `+o.line+" | "+d+`
141
+ `+u+" | "+A4("",i.column-1," ")+A4("",p,"^")}else t+=`
142
+ at `+s}return t},Aa.buildMessage=function(e,t){var r={literal:function(d){return'"'+i(d.text)+'"'},class:function(d){var p=d.parts.map(function(m){return Array.isArray(m)?o(m[0])+"-"+o(m[1]):o(m)});return"["+(d.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function n(d){return d.charCodeAt(0).toString(16).toUpperCase()}function i(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function o(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function s(d){return r[d.type](d)}function a(d){var p,m,w=d.map(s);if(w.sort(),w.length>0){for(p=1,m=1;p<w.length;p++)w[p-1]!==w[p]&&(w[m]=w[p],m++);w.length=m}switch(w.length){case 1:return w[0];case 2:return w[0]+" or "+w[1];default:return w.slice(0,-1).join(", ")+", or "+w[w.length-1]}}function u(d){return d?'"'+i(d)+'"':"end of input"}return"Expected "+a(e)+" but "+u(t)+" found."};Dw=class{static parse(t){return yH(t)}}});var KP={};li(KP,{WhereClause:()=>k4,defaultAttributeAdapter:()=>vc});function YP(e){return e===!0}function R4(e){return Array.isArray(e)?e:[e]}function Ow(e){return e!==null?e!==!0:null}function JP(e,t){return e!=null&&t!=null?e===!0&&t===!0:e!==!1&&t!==!1&&null}function XP(e,t){return e!=null&&t!=null?e===!0||t===!0:e===!0||t===!0||null}function D4(e,t,r){if(e==null)return null;let n=!1;for(let i of t)if(i==null)n=null;else{if(e===i){n=!0;break}if(kw(e)&&kw(i)&&(n=qr(e,i,"="),n))break}return n}function _H(e,t){let r=t,n="",i=Na.Normal;for(let o=0;o<e.length;o++){let s=e.charAt(o);switch(i){case Na.Normal:s===r?i=Na.Escaped:ZP.includes(s)?n+="\\"+s:n+=s==="%"?".*":s==="_"?".":s;break;case Na.Escaped:ZP.includes(s)?n+="\\"+s:n+=s,i=Na.Normal}}return new RegExp("^"+n+"$","m")}function O4(e,t,r){return e==null?null:_H(t,r).test(e)}function vH(e){return e&&typeof e.attributes=="object"}function QP(e,t,r,n){let i=n.getAttribute(e,t),o=r?.get(t);return i==null||o?.type!=="esriFieldTypeDate"&&o?.type!=="date"?i==null||o?.type!=="esriFieldTypeDateOnly"&&o?.type!=="date-only"?i==null||o?.type!=="esriFieldTypeTimeOnly"&&o?.type!=="time-only"?i==null||o?.type!=="esriFieldTypeTimestampOffset"&&o?.type!=="timestamp-offset"?i:new gr(i):lr.fromReader(i):Ht.fromReader(i):bc(new Date(i),r?.getLuxonTimeZone(o.name)??He.utcInstance)}var bH,N4,k4,ZP,Na,vc,eA=L(()=>{Hb();Wo();Ge();UP();Qu();jP();E4();cf();Aw();Ku();L4();af();HP();Vr();bH=new Set(["current_timestamp","current_date","current_time"]),N4=class{static makeBool(t){return YP(t)}static featureValue(t,r,n,i){return QP(t,r,n,i)}static equalsNull(t){return t===null}static applyLike(t,r,n){return O4(t,r,n)}static ensureArray(t){return R4(t)}static applyIn(t,r,n){return D4(t,r)}static currentDate(t){return Ht.fromNow(t)}static makeSqlInterval(t,r,n){return Tt.createFromValueAndQualifier(t,r,n)}static convertInterval(t){return t instanceof Tt?t.valueInMilliseconds():t}static currentTimestamp(t){return bc(new Date,t)}static compare(t,r,n,i){return qr(r,n,t)}static calculate(t,r,n,i){return I4(t,r,n,i)}static evaluateTime(t){return lf(t)}static evaluateTimestamp(t,r,n){return _c(t,r,n)}static evaluateDate(t,r){return C4(t,r)}static evaluateFunction(t,r,n){return df(t,r,n)}static lookup(t,r){let n=r[t];return n===void 0?null:n}static between(t,r,n){return t==null||r[0]==null||r[1]==null?null:qr(t,r[0],">=")&&qr(t,r[1],"<=")}static notbetween(t,r,n){return t==null||r[0]==null||r[1]==null?null:qr(t,r[0],"<")||qr(t,r[1],">")}static ternaryNot(t){return Ow(t)}static ternaryAnd(t,r){return JP(t,r)}static ternaryOr(t,r){return XP(t,r)}},k4=class e{constructor(t,r,n="UTC"){this.fieldsIndex=r,this.timeZone=n,this.parameters={},this._hasDateFunctions=void 0,this.parseTree=Dw.parse(t);let{isStandardized:i,isAggregate:o,referencedFieldNames:s}=this._extractExpressionInfo(r);this._referencedFieldNames=s,this.isStandardized=i,this.isAggregate=o}static convertValueToStorageFormat(t,r=null){if(r===null)return tn(t)?t.getTime():et(t)?t.toMillis():rt(t)?t.toStorageFormat():st(t)?t.toStorageString():tt(t)?t.toStorageFormat():t;switch(r){case"date":return tn(t)?t.getTime():et(t)?t.toMillis():rt(t)?t.toMilliseconds():tt(t)?t.toNumber():t;case"date-only":return tn(t)?Ht.fromDateJS(t).toString():rt(t)?Ht.fromSqlTimeStampOffset(t).toString():et(t)?Ht.fromDateTime(t).toString():t;case"time-only":return tn(t)?lr.fromDateJS(t).toStorageString():et(t)?lr.fromDateTime(t).toStorageString():rt(t)?lr.fromSqlTimeStampOffset(t).toStorageString():st(t)?t.toStorageString():t;case"timestamp-offset":if(tn(t))return gr.fromJSDate(t).toStorageFormat();if(et(t))return gr.fromDateTime(t).toStorageFormat();if(rt(t))return t.toStorageFormat()}return t}static create(t,r,n="UTC"){return new e(t,r,n)}get fieldNames(){return this._referencedFieldNames}testSet(t,r=vc){return!!this._evaluateNode(this.parseTree,null,r,t)}calculateValue(t,r=vc){let n=this._evaluateNode(this.parseTree,t,r,null);return n instanceof Tt?n.valueInMilliseconds()/864e5:n}calculateValueCompiled(t,r=vc){return this.parseTree._compiledVersion!=null?this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone):Q("esri-csp-restrictions")?this.calculateValue(t,r):(this._compileMe(),this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone))}testFeature(t,r=vc){return!!this._evaluateNode(this.parseTree,t,r,null)}testFeatureCompiled(t,r=vc){return this.parseTree._compiledVersion!=null?!!this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone):Q("esri-csp-restrictions")?this.testFeature(t,r):(this._compileMe(),!!this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone))}get hasDateFunctions(){return this._hasDateFunctions!=null||(this._hasDateFunctions=!1,Ft(this.parseTree,t=>{t.type==="current-time"?this._hasDateFunctions=!0:t.type==="function"&&(this._hasDateFunctions=this._hasDateFunctions||bH.has(t.name.toLowerCase()))})),this._hasDateFunctions}getFunctions(){let t=new Set;return Ft(this.parseTree,r=>{r.type==="function"&&t.add(r.name.toLowerCase())}),Array.from(t)}getExpressions(){let t=new Map;return Ft(this.parseTree,r=>{if(r.type==="function"){let n=r.name.toLowerCase(),i=r.args.value[0];if(i.type==="column-reference"){let o=i.column,s=`${n}-${o}`;t.has(s)||t.set(s,{aggregateType:n,field:o})}}}),[...t.values()]}getVariables(){let t=new Set;return Ft(this.parseTree,r=>{r.type==="parameter"&&t.add(r.value.toLowerCase())}),Array.from(t)}_compileMe(){let t="return this.convertInterval("+this.evaluateNodeToJavaScript(this.parseTree)+")";this.parseTree._compiledVersion=new Function("feature","lookups","attributeAdapter","fieldsIndex","timeZone",t).bind(N4)}_extractExpressionInfo(t){let r=[],n=new Set,i=!0,o=!1;return Ft(this.parseTree,s=>{switch(s.type){case"column-reference":{let a=t?.get(s.column),u,d;a?u=d=a.name??"":(d=s.column,u=d.toLowerCase()),n.has(u)||(n.add(u),r.push(d)),s.column=d;break}case"function":{let{name:a,args:u}=s,d=u.value.length;i&&(i=BP(a,d)),o===!1&&(o=S4(a,d));break}}}),{referencedFieldNames:Array.from(r),isStandardized:i,isAggregate:o}}evaluateNodeToJavaScript(t){switch(t.type){case"interval":return"this.makeSqlInterval("+this.evaluateNodeToJavaScript(t.value)+", "+JSON.stringify(t.qualifier)+","+JSON.stringify(t.op)+")";case"case-expression":{let r="";if(t.format==="simple"){let n=this.evaluateNodeToJavaScript(t.operand);r="( ";for(let i=0;i<t.clauses.length;i++)r+=" (this.compare('=',"+n+","+this.evaluateNodeToJavaScript(t.clauses[i].operand)+") ? ("+this.evaluateNodeToJavaScript(t.clauses[i].value)+") : ";t.else!==null?r+=this.evaluateNodeToJavaScript(t.else):r+="null",r+=" )"}else{r="( ";for(let n=0;n<t.clauses.length;n++)r+=" this.makeBool("+this.evaluateNodeToJavaScript(t.clauses[n].operand)+")===true ? ("+this.evaluateNodeToJavaScript(t.clauses[n].value)+") : ";t.else!==null?r+=this.evaluateNodeToJavaScript(t.else):r+="null",r+=" )"}return r}case"parameter":return"this.lookup("+JSON.stringify(t.value.toLowerCase())+",lookups)";case"expression-list":{let r="[";for(let n of t.value)r!=="["&&(r+=","),r+=this.evaluateNodeToJavaScript(n);return r+="]",r}case"unary-expression":return"this.ternaryNot("+this.evaluateNodeToJavaScript(t.expr)+")";case"binary-expression":switch(t.operator){case"AND":return"this.ternaryAnd("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+" )";case"OR":return"this.ternaryOr("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+" )";case"IS":if(t.right.type!=="null")throw new z(F.UnsupportedIsRhs);return"this.equalsNull("+this.evaluateNodeToJavaScript(t.left)+")";case"ISNOT":if(t.right.type!=="null")throw new z(F.UnsupportedIsRhs);return"(!(this.equalsNull("+this.evaluateNodeToJavaScript(t.left)+")))";case"IN":return"this.applyIn("+this.evaluateNodeToJavaScript(t.left)+",this.ensureArray("+this.evaluateNodeToJavaScript(t.right)+"), timeZone)";case"NOT IN":return"this.ternaryNot(this.applyIn("+this.evaluateNodeToJavaScript(t.left)+",this.ensureArray("+this.evaluateNodeToJavaScript(t.right)+"), timeZone))";case"BETWEEN":return"this.between("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)";case"NOTBETWEEN":return"this.notbetween("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)";case"LIKE":return"this.applyLike("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+","+JSON.stringify(t.escape)+")";case"NOT LIKE":return"this.ternaryNot(this.applyLike("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+","+JSON.stringify(t.escape)+"))";case"<>":case"<":case">":case">=":case"<=":case"=":return"this.compare("+JSON.stringify(t.operator)+","+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)";case"*":case"-":case"+":case"/":case"||":return"this.calculate("+JSON.stringify(t.operator)+","+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)"}throw new z(F.UnsupportedOperator,{operator:t.operator});case"null":case"boolean":case"string":case"number":return JSON.stringify(t.value);case"time":return"this.evaluateTime("+JSON.stringify(t.value)+")";case"date":return"this.evaluateDate("+JSON.stringify(t.value)+", 'unknown')";case"timestamp":return"this.evaluateTimestamp("+JSON.stringify(t.value)+", 'unknown')";case"current-time":return t.mode==="date"?"this.currentDate(timeZone)":"this.currentTimestamp(timeZone)";case"column-reference":return"this.featureValue(feature,"+JSON.stringify(t.column)+",fieldsIndex,attributeAdapter)";case"function":return"this.evaluateFunction("+JSON.stringify(t.name)+","+this.evaluateNodeToJavaScript(t.args)+", timeZone)"}throw new z(F.UnsupportedSyntax,{node:t.type})}_evaluateNode(t,r,n,i){let o;switch(t.type){case"interval":{let s=this._evaluateNode(t.value,r,n,i);return Tt.createFromValueAndQualifier(s,t.qualifier,t.op)}case"case-expression":if(t.format==="simple"){let s=this._evaluateNode(t.operand,r,n,i);for(let a=0;a<t.clauses.length;a++)if(qr(s,this._evaluateNode(t.clauses[a].operand,r,n,i),"=",this.timeZone))return this._evaluateNode(t.clauses[a].value,r,n,i);if(t.else!==null)return this._evaluateNode(t.else,r,n,i)}else{for(let s=0;s<t.clauses.length;s++)if(YP(this._evaluateNode(t.clauses[s].operand,r,n,i)))return this._evaluateNode(t.clauses[s].value,r,n,i);if(t.else!==null)return this._evaluateNode(t.else,r,n,i)}return null;case"parameter":return o=this.parameters[t.value.toLowerCase()],tn(o)?oe.fromJSDate(o):o instanceof qs?o.toDateTime():o;case"expression-list":{let s=[];for(let a of t.value)s.push(this._evaluateNode(a,r,n,i));return s}case"unary-expression":return Ow(this._evaluateNode(t.expr,r,n,i));case"binary-expression":switch(t.operator){case"AND":return JP(this._evaluateNode(t.left,r,n,i),this._evaluateNode(t.right,r,n,i));case"OR":return XP(this._evaluateNode(t.left,r,n,i),this._evaluateNode(t.right,r,n,i));case"IS":if(t.right.type!=="null")throw new z(F.UnsupportedIsRhs);return this._evaluateNode(t.left,r,n,i)===null;case"ISNOT":if(t.right.type!=="null")throw new z(F.UnsupportedIsRhs);return this._evaluateNode(t.left,r,n,i)!==null;case"IN":{let s=R4(this._evaluateNode(t.right,r,n,i));return D4(this._evaluateNode(t.left,r,n,i),s,this.timeZone)}case"NOT IN":{let s=R4(this._evaluateNode(t.right,r,n,i));return Ow(D4(this._evaluateNode(t.left,r,n,i),s,this.timeZone))}case"BETWEEN":{let s=this._evaluateNode(t.left,r,n,i),a=this._evaluateNode(t.right,r,n,i);return s==null||a[0]==null||a[1]==null?null:qr(s,a[0],">=",this.timeZone)&&qr(s,a[1],"<=",this.timeZone)}case"NOTBETWEEN":{let s=this._evaluateNode(t.left,r,n,i),a=this._evaluateNode(t.right,r,n,i);return s==null||a[0]==null||a[1]==null?null:qr(s,a[0],"<",this.timeZone)||qr(s,a[1],">",this.timeZone)}case"LIKE":return O4(this._evaluateNode(t.left,r,n,i),this._evaluateNode(t.right,r,n,i),t.escape);case"NOT LIKE":return Ow(O4(this._evaluateNode(t.left,r,n,i),this._evaluateNode(t.right,r,n,i),t.escape));case"<>":case"<":case">":case">=":case"<=":case"=":return qr(this._evaluateNode(t.left,r,n,i),this._evaluateNode(t.right,r,n,i),t.operator,this.timeZone);case"-":case"+":case"*":case"/":case"||":return I4(t.operator,this._evaluateNode(t.left,r,n,i),this._evaluateNode(t.right,r,n,i),this.timeZone)}case"null":case"boolean":case"string":case"number":return t.value;case"date":return t.parsedValue??(t.parsedValue=C4(t.value,"unknown")),t.parsedValue;case"timestamp":return t.parsedValue??(t.parsedValue=_c(t.value,"unknown")),t.parsedValue;case"time":return lf(t.value);case"current-time":return t.mode==="date"?Ht.fromNow(this.timeZone):bc(new Date,this.timeZone);case"column-reference":return QP(r,t.column,this.fieldsIndex,n);case"data-type":return t.value;case"function":{if(this.isAggregate&&S4(t.name,t.args.value.length)){let a=[];for(let u of t.args?.value||[]){let d=[];for(let p of i||[])d.push(this._evaluateNode(u,p,n,null));a.push(d)}return OP(t.name,a)}let s=this._evaluateNode(t.args,r,n,i);return df(t.name,s,this.timeZone)}}throw new z(F.UnsupportedSyntax,{node:t.type})}};ZP="-[]/{}()*+?.\\^$|";(function(e){e[e.Normal=0]="Normal",e[e.Escaped=1]="Escaped"})(Na||(Na={}));vc={getAttribute:(e,t)=>(vH(e)?e.attributes:e)[t]}});async function ff(e,t){let{WhereClause:r}=await Promise.resolve().then(()=>(eA(),KP));return r.create(e,t)}var $w=L(()=>{});function Sc(){return[0,0,0]}function SH(e){return[e[0],e[1],e[2]]}function pf(e,t,r){return[e,t,r]}function xH(e,t=Sc()){let r=Math.min(3,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t}function CH(e,t){return new Float64Array(e,t,3)}function tA(){return Sc()}function rA(){return pf(1,1,1)}function nA(){return pf(1,0,0)}function iA(){return pf(0,1,0)}function oA(){return pf(0,0,1)}var TH,EH,MH,LH,IH,xge,sA=L(()=>{TH=tA(),EH=rA(),MH=nA(),LH=iA(),IH=oA(),xge=Object.freeze(Object.defineProperty({__proto__:null,ONES:EH,UNIT_X:MH,UNIT_Y:LH,UNIT_Z:IH,ZEROS:TH,clone:SH,create:Sc,createView:CH,fromArray:xH,fromValues:pf,ones:rA,unitX:nA,unitY:iA,unitZ:oA,zeros:tA},Symbol.toStringTag,{value:"Module"}))});function F4(){return $4}function PH(e){$4=e}function kH(e){return e*AH}function RH(e){return e*NH}function DH(e,t){return Math.abs(e-t)<=$4*Math.max(1,Math.abs(e),Math.abs(t))}var $4,V4,AH,NH,Tge,aA=L(()=>{$4=1e-6;V4=Math.random,AH=Math.PI/180,NH=180/Math.PI;Tge=Object.freeze(Object.defineProperty({__proto__:null,RANDOM:V4,equals:DH,getEpsilon:F4,setEpsilon:PH,toDegree:RH,toRadian:kH},Symbol.toStringTag,{value:"Module"}))});function W4(e){let t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function OH(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function uA(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function $H(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function dA(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function fA(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function pA(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function FH(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e}function VH(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e}function UH(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function WH(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function zH(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function BH(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function GH(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e}function qH(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function jH(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function mA(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function hA(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function gA(e){let t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function HH(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function ZH(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function U4(e,t){let r=t[0],n=t[1],i=t[2],o=r*r+n*n+i*i;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function wA(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function YH(e,t,r){let n=t[0],i=t[1],o=t[2],s=r[0],a=r[1],u=r[2];return e[0]=i*u-o*a,e[1]=o*s-n*u,e[2]=n*a-i*s,e}function JH(e,t,r){let n=t[0],i=t[1],o=t[2],s=r[0],a=r[1],u=r[2],d=i*u-o*a,p=o*s-n*u,m=n*a-i*s,w=Math.sqrt(d*d+p*p+m*m);return e[0]=d/w,e[1]=p/w,e[2]=m/w,e}function XH(e,t,r,n){let i=t[0],o=t[1],s=t[2];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e[2]=s+n*(r[2]-s),e}function QH(e,t,r,n,i,o){let s=o*o,a=s*(2*o-3)+1,u=s*(o-2)+o,d=s*(o-1),p=s*(3-2*o);return e[0]=t[0]*a+r[0]*u+n[0]*d+i[0]*p,e[1]=t[1]*a+r[1]*u+n[1]*d+i[1]*p,e[2]=t[2]*a+r[2]*u+n[2]*d+i[2]*p,e}function KH(e,t,r,n,i,o){let s=1-o,a=s*s,u=o*o,d=a*s,p=3*o*a,m=3*u*s,w=u*o;return e[0]=t[0]*d+r[0]*p+n[0]*m+i[0]*w,e[1]=t[1]*d+r[1]*p+n[1]*m+i[1]*w,e[2]=t[2]*d+r[2]*p+n[2]*m+i[2]*w,e}function eZ(e,t=1){let r=V4,n=2*r()*Math.PI,i=2*r()-1,o=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=i*t,e}function tZ(e,t,r){let n=t[0],i=t[1],o=t[2];return e[0]=r[0]*n+r[4]*i+r[8]*o+r[12],e[1]=r[1]*n+r[5]*i+r[9]*o+r[13],e[2]=r[2]*n+r[6]*i+r[10]*o+r[14],e}function rZ(e,t,r){let n=t[0],i=t[1],o=t[2];return e[0]=n*r[0]+i*r[3]+o*r[6],e[1]=n*r[1]+i*r[4]+o*r[7],e[2]=n*r[2]+i*r[5]+o*r[8],e}function nZ(e,t,r){let n=r[0],i=r[1],o=r[2],s=r[3],a=t[0],u=t[1],d=t[2],p=i*d-o*u,m=o*a-n*d,w=n*u-i*a,_=i*w-o*m,S=o*p-n*w,T=n*m-i*p,M=2*s;return e[0]=a+p*M+2*_,e[1]=u+m*M+2*S,e[2]=d+w*M+2*T,e}function iZ(e,t,r,n){let i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[0],o[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),o[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e}function oZ(e,t,r,n){let i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),o[1]=i[1],o[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e}function sZ(e,t,r,n){let i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),o[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),o[2]=i[2],e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e}function aZ(e,t){U4(lA,e),U4(cA,t);let r=wA(lA,cA);return r>1?0:r<-1?Math.PI:Math.acos(r)}function lZ(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"}function cZ(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function uZ(e,t){if(e===t)return!0;let r=e[0],n=e[1],i=e[2],o=t[0],s=t[1],a=t[2],u=F4();return Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))}function dZ(e,t,r){let n=r[0]-t[0],i=r[1]-t[1],o=r[2]-t[2],s=n*n+i*i+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=n*s,e[1]=i*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}var lA,cA,fZ,pZ,mZ,hZ,gZ,wZ,yZ,Ige,yA=L(()=>{sA();aA();lA=Sc(),cA=Sc();fZ=dA,pZ=fA,mZ=pA,hZ=mA,gZ=hA,wZ=W4,yZ=gA,Ige=Object.freeze(Object.defineProperty({__proto__:null,abs:UH,add:$H,angle:aZ,bezier:KH,ceil:FH,copy:OH,cross:YH,crossAndNormalize:JH,direction:dZ,dist:hZ,distance:mA,div:mZ,divide:pA,dot:wA,equals:uZ,exactEquals:cZ,floor:VH,hermite:QH,inverse:ZH,len:wZ,length:W4,lerp:XH,max:BH,min:zH,mul:pZ,multiply:fA,negate:HH,normalize:U4,random:eZ,rotateX:iZ,rotateY:oZ,rotateZ:sZ,round:GH,scale:qH,scaleAndAdd:jH,set:uA,sign:WH,sqrDist:gZ,sqrLen:yZ,squaredDistance:hA,squaredLength:gA,str:lZ,sub:fZ,subtract:dA,transformMat3:rZ,transformMat4:tZ,transformQuat:nZ},Symbol.toStringTag,{value:"Module"}))});function bZ(e){return Fw.setFloat64(0,e),Fw.getBigInt64(0)}function _Z(e){return Fw.setBigInt64(0,e),Fw.getFloat64(0)}function vZ(e){let t=bZ(e=Math.abs(e)),r=_Z(t<=z4?z4:t-z4);return Math.abs(e-r)}function SZ(e){return bA[0]=e,bA[0]}var bA,Fw,z4,Nge,kge,B4=L(()=>{yA();bA=new Float32Array(1),Fw=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));z4=BigInt("1000000"),Nge=vZ(1);kge=SZ(34028234663852886e22)});var _A=L(()=>{});var CZ,mf,Yge,vA=L(()=>{eg();Ge();Er();B4();Xs();J0();Y0();_A();Vr();Yi();CZ="TT";(function(e){e.HM="HH:mm",e.HMS="HH:mm:ss",e.HMS_MS="HH:mm:ss.SSS"})(mf||(mf={}));Yge=[mf.HMS_MS,mf.HMS,mf.HM,CZ]});var G4,SA=L(()=>{vA();(function(e){e.VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",e.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value"})(G4||(G4={}))});function lo(e,t,r=!1){let{hasM:n,hasZ:i}=e;Array.isArray(t)?t.length!==4||n||i?t.length===3&&r&&!n?(i=!0,n=!1):t.length===3&&n&&i&&(n=!1,i=!1):(n=!0,i=!0):(i=!i&&t.hasZ&&(!n||t.hasM),n=!n&&t.hasM&&(!i||t.hasZ)),e.hasZ=i,e.hasM=n}var Vw=L(()=>{});function xA(e){return(t,r)=>t==null?r:r==null?t:e(t,r)}function TZ(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}var q4,vs,j4,H4=L(()=>{ir();tr();or();Ge();Ze();Zt();gc();_s();ys();Ea();Vw();vs=q4=class extends wn{constructor(...e){super(...e),this.points=[],this.type="multipoint"}normalizeCtorArgs(e,t){if(!e&&!t)return{};let r={};Array.isArray(e)?(r.points=e,r.spatialReference=t):TZ(e)?r.spatialReference=e:(e.points&&(r.points=e.points),e.spatialReference&&(r.spatialReference=e.spatialReference),e.hasZ&&(r.hasZ=e.hasZ),e.hasM&&(r.hasM=e.hasM));let n=r.points?.[0];return n&&(r.hasZ===void 0&&r.hasM===void 0?(r.hasZ=n.length>2,r.hasM=!1):r.hasZ===void 0?r.hasZ=n.length>3:r.hasM===void 0&&(r.hasM=n.length>3)),r}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=this.points;if(!e.length)return null;let t=new si,r=this.hasZ,n=this.hasM,i=r?3:2,o=e[0],s=xA(Math.min),a=xA(Math.max),u,d,p,m,[w,_]=o,[S,T]=o;for(let M=0,R=e.length;M<R;M++){let I=e[M],[N,V]=I;if(w=s(w,N),_=s(_,V),S=a(S,N),T=a(T,V),r&&I.length>2){let Y=I[2];u=s(u,Y),p=a(p,Y)}if(n&&I.length>i){let Y=I[i];d=s(d,Y),m=a(m,Y)}}return t.xmin=w,t.ymin=_,t.xmax=S,t.ymax=T,t.spatialReference=this.spatialReference,r?(t.zmin=u,t.zmax=p):(t.zmin=void 0,t.zmax=void 0),n?(t.mmin=d,t.mmax=m):(t.mmin=void 0,t.mmax=void 0),t}writePoints(e,t){t.points=Ne(this.points)}addPoint(e){return lo(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}clone(){let e={points:Ne(this.points),spatialReference:this.spatialReference};return this.hasZ&&(e.hasZ=!0),this.hasM&&(e.hasM=!0),new q4(e)}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(r.z=t[2],n=3),this.hasM&&(r.m=t[n]),new _t(r)}removePoint(e){if(!this._validateInputs(e))return null;let t=new _t(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?(lo(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return e!=null&&e>=0&&e<this.points.length}};O([H({readOnly:!0})],vs.prototype,"cache",null),O([H()],vs.prototype,"extent",null),O([H({type:[[Number]],json:{write:{isRequired:!0}}})],vs.prototype,"points",void 0),O([oi("points")],vs.prototype,"writePoints",null),vs=q4=O([Pe("esri.geometry.Multipoint")],vs),vs.prototype.toJSON.isDefaultToJSON=!0;j4=vs});var CA=L(()=>{});var hf,TA=L(()=>{(function(e){e[e.X=0]="X",e[e.Y=1]="Y",e[e.Z=2]="Z"})(hf||(hf={}))});function EA(e,t){let r=t[0]-e[0],n=t[1]-e[1];if(e.length>2&&t.length>2){let i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}return Math.sqrt(r*r+n*n)}function EZ(e,t,r){let n=e[0]+r*(t[0]-e[0]),i=e[1]+r*(t[1]-e[1]);return e.length>2&&t.length>2?[n,i,e[2]+r*(t[2]-e[2])]:[n,i]}function MA(e,t){return EZ(e,t,.5)}function LA(e,t=hf.X,r=hf.Y){let n=0,i=e.length,o=e[0];for(let s=1;s<i;s++){let a=e[s];n+=(a[t]-o[t])*(a[r]+o[r]),o=a}if(!MZ(e)){let s=e[0];n+=(s[t]-o[t])*(s[r]+o[r])}return n>=0}function MZ(e){let t=e.length;return t<3||Eo(e[0],e[t-1])}var Z4=L(()=>{Mo();TA();oo()});function IA(e){return e?LZ(e.rings,e.hasZ??!1):null}function LZ(e,t){if(!e?.length)return null;let r=[],n=[],i=t?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let o=0,s=e.length;o<s;o++){let a=IZ(e[o],t,i);a&&n.push(a)}if(n.sort((o,s)=>{let a=o[2]-s[2];return a===0&&t&&(a=o[4]-s[4]),a}),n.length&&(r[0]=n[0][0],r[1]=n[0][1],t&&(r[2]=n[0][3]),(r[0]<i[0]||r[0]>i[1]||r[1]<i[2]||r[1]>i[3]||t&&(r[2]<i[4]||r[2]>i[5]))&&(r.length=0)),!r.length){let o=e[0]&&e[0].length?PZ(e[0],t):null;if(!o)return null;r[0]=o[0],r[1]=o[1],t&&o.length>2&&(r[2]=o[2])}return r}function IZ(e,t,r){let n=0,i=0,o=0,s=0,a=0,u=e.length?e[0][0]:0,d=e.length?e[0][1]:0,p=e.length&&t?e[0][2]:0;for(let w=0;w<e.length;w++){let _=e[w],S=e[(w+1)%e.length],[T,M,R]=_,I=T-u,N=M-d,[V,Y,re]=S,te=V-u,ie=Y-d,ge=I*ie-te*N;if(s+=ge,n+=(I+te)*ge,i+=(N+ie)*ge,t&&_.length>2&&S.length>2){let be=R-p,de=re-p,B=I*de-te*be;o+=(be+de)*B,a+=B}T<r[0]&&(r[0]=T),T>r[1]&&(r[1]=T),M<r[2]&&(r[2]=M),M>r[3]&&(r[3]=M),t&&(R<r[4]&&(r[4]=R),R>r[5]&&(r[5]=R))}if(s>0&&(s*=-1),a>0&&(a*=-1),!s)return null;s*=.5,a*=.5;let m=[n/(6*s)+u,i/(6*s)+d,s];return t&&(r[4]===r[5]||a===0?(m[3]=(r[4]+r[5])/2,m[4]=0):(m[3]=o/(6*a)+p,m[4]=a)),m}function PZ(e,t){let r=t?[0,0,0]:[0,0],n=t?[0,0,0]:[0,0],i=0,o=0,s=0,a=0;for(let u=0,d=e.length;u<d-1;u++){let p=e[u],m=e[u+1];if(p&&m){r[0]=p[0],r[1]=p[1],n[0]=m[0],n[1]=m[1],t&&p.length>2&&m.length>2&&(r[2]=p[2],n[2]=m[2]);let w=EA(r,n);if(w){i+=w;let _=MA(p,m);o+=w*_[0],s+=w*_[1],t&&_.length>2&&(a+=w*_[2])}}}return i>0?t?[o/i,s/i,a/i]:[o/i,s/i]:e.length?e[0]:null}var Twe,PA=L(()=>{CA();Z4();Twe=1/3});var Pwe,Awe,Nwe,kwe,AA=L(()=>{Ge();B4();_s();Pwe=[-1/0,-1/0,1/0,1/0],Awe=[1/0,1/0,-1/0,-1/0],Nwe=[0,0,0,0],kwe=[0,0,1,1]});function NA(e){function t(r,n){return r==null?n:n==null?r:e(r,n)}return t}function Y4(e,t,r,n){let i=r?3:2;if(!t.length||!t[0].length)return null;let o,s,a,u,[d,p]=t[0][0],[m,w]=t[0][0];for(let _=0;_<t.length;_++){let S=t[_];for(let T=0;T<S.length;T++){let M=S[T],[R,I]=M;if(d=Uw(d,R),p=Uw(p,I),m=Ww(m,R),w=Ww(w,I),r&&M.length>2){let N=M[2];o=Uw(o,N),s=Ww(s,N)}if(n&&M.length>i){let N=M[i];a=Uw(o,N),u=Ww(s,N)}}}return r?n?(e[0]=d,e[1]=p,e[2]=o,e[3]=a,e[4]=m,e[5]=w,e[6]=s,e[7]=u,e.length=8,e):(e[0]=d,e[1]=p,e[2]=o,e[3]=m,e[4]=w,e[5]=s,e.length=6,e):n?(e[0]=d,e[1]=p,e[2]=a,e[3]=m,e[4]=w,e[5]=u,e.length=6,e):(e[0]=d,e[1]=p,e[2]=m,e[3]=w,e.length=4,e)}var Uw,Ww,kA=L(()=>{AA();Uw=NA(Math.min),Ww=NA(Math.max)});function AZ(e,t,r,n){return{xmin:e,ymin:t,xmax:r,ymax:n}}function NZ(e,t,r,n,i,o){return{xmin:e,ymin:t,zmin:r,xmax:n,ymax:i,zmax:o}}function kZ(e,t,r,n,i,o){return{xmin:e,ymin:t,mmin:r,xmax:n,ymax:i,mmax:o}}function RZ(e,t,r,n,i,o,s,a){return{xmin:e,ymin:t,zmin:r,mmin:n,xmax:i,ymax:o,zmax:s,mmax:a}}function DA(e,t=!1,r=!1){return t?r?RZ(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]):NZ(e[0],e[1],e[2],e[3],e[4],e[5]):r?kZ(e[0],e[1],e[2],e[3],e[4],e[5]):AZ(e[0],e[1],e[2],e[3])}function OA(e){let{hasZ:t,hasM:r,rings:n}=e,i=Y4(RA,n,t??!1,r??!1);return i?DA(i,t,r):null}function $A(e){let{hasZ:t,hasM:r,paths:n}=e,i=Y4(RA,n,t??!1,r??!1);return i?DA(i,t,r):null}var RA,J4=L(()=>{kA();RA=[]});function FA(e){return!Array.isArray(e[0])}function DZ(e){return typeof e[0]?.[0]=="number"}function OZ(e){if(!e)return;let{rings:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??(t=[]),DZ(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??(n=!0),r??(r=!0);break;case 3:n??(n=r!==!0),r??(r=!n);break;default:n??(n=!1),r??(r=!1)}return i??(i=bt.WGS84),{...e,hasM:r,hasZ:n,rings:t,spatialReference:i}}var zw,Fi,X4,Q4=L(()=>{ir();Mo();tr();or();Ge();Ze();Zt();gc();_s();ys();Ea();so();PA();Pw();Z4();J4();_4();of();Vw();Fi=zw=class extends wn{static fromExtent(e){let t=e.clone().normalize(),{spatialReference:r}=e,n=!1,i=!1;for(let s of t)s.hasZ&&(n=!0),s.hasM&&(i=!0);let o={rings:t.map(s=>{let a=[[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin]];if(n&&s.hasZ){let u=s.zmin+.5*(s.zmax-s.zmin);for(let d=0;d<a.length;d++)a[d].push(u)}if(i&&s.hasM){let u=s.mmin+.5*(s.mmax-s.mmin);for(let d=0;d<a.length;d++)a[d].push(u)}return a}),spatialReference:r};return n&&(o.hasZ=!0),i&&(o.hasM=!0),new zw(o)}constructor(e){super(OZ(e)),this.rings=[],this.type="polygon"}get cache(){return this.commitProperty("rings"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get centroid(){let e=IA(this);if(!e||isNaN(e[0])||isNaN(e[1])||this.hasZ&&isNaN(e[2]))return null;let t=new _t;return t.x=e[0],t.y=e[1],t.spatialReference=this.spatialReference,this.hasZ&&(t.z=e[2]),t}get extent(){let{spatialReference:e}=this,t=OA(this);if(!t)return null;let r=new si(t);return r.spatialReference=e,r}get isSelfIntersecting(){return PP(this.rings)}writeRings(e,t){t.rings=Ne(this.rings)}addRing(e){if(!e)return;let t=this.rings,r=t.length;if(FA(e)){let n=[];for(let i=0,o=e.length;i<o;i++)n[i]=e[i].toArray();t[r]=n}else t[r]=e.slice();return this.notifyChange("rings"),this}clone(){let e=new zw;return e.spatialReference=this.spatialReference,e.rings=Ne(this.rings),e.hasZ=this.hasZ,e.hasM=this.hasM,e}equals(e){if(this===e)return!0;if(e==null)return!1;let t=this.spatialReference,r=e.spatialReference;if(t!=null!=(r!=null)||t!=null&&r!=null&&!t.equals(r)||this.rings.length!==e.rings.length)return!1;let n=([i,o,s,a],[u,d,p,m])=>i===u&&o===d&&(s==null&&p==null||s===p)&&(a==null&&m==null||a===m);for(let i=0;i<this.rings.length;i++){let o=this.rings[i],s=e.rings[i];if(!Eo(o,s,n))return!1}return!0}contains(e){if(!e)return!1;let t=wP(e,this.spatialReference);return LP(this,t??e)}isClockwise(e){let t=FA(e)?e.map(r=>this.hasZ?this.hasM?[r.x,r.y,r.z,r.m]:[r.x,r.y,r.z]:[r.x,r.y]):e;return LA(t)}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.rings[e][t],n=this.hasZ,i=this.hasM;return n&&!i?new _t(r[0],r[1],r[2],void 0,this.spatialReference):i&&!n?new _t(r[0],r[1],void 0,r[2],this.spatialReference):n&&i?new _t(r[0],r[1],r[2],r[3],this.spatialReference):new _t(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?(lo(this,r),Array.isArray(r)||(r=r.toArray()),this.rings[e].splice(t,0,r),this.notifyChange("rings"),this):this}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new _t(this.rings[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("rings"),r}removeRing(e){if(!this._validateInputs(e,null))return null;let t=this.rings.splice(e,1)[0],r=this.spatialReference,n=t.map(i=>new _t(i,r));return this.notifyChange("rings"),n}setPoint(e,t,r){return this._validateInputs(e,t)?(lo(this,r),Array.isArray(r)||(r=r.toArray()),this.rings[e][t]=r,this.notifyChange("rings"),this):this}_validateInputs(e,t,r=!1){if(e==null||e<0||e>=this.rings.length)return!1;if(t!=null){let n=this.rings[e];if(r&&(t<0||t>n.length)||!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};O([H({readOnly:!0})],Fi.prototype,"cache",null),O([H({readOnly:!0})],Fi.prototype,"centroid",null),O([H({readOnly:!0})],Fi.prototype,"extent",null),O([H({readOnly:!0})],Fi.prototype,"isSelfIntersecting",null),O([H({type:[[[Number]]],json:{write:{isRequired:!0}}})],Fi.prototype,"rings",void 0),O([oi("rings")],Fi.prototype,"writeRings",null),Fi=zw=O([Pe("esri.geometry.Polygon")],Fi);X4=Fi;Fi.prototype.toJSON.isDefaultToJSON=!0});function $Z(e){return!Array.isArray(e[0])}function FZ(e){return typeof e[0]?.[0]=="number"}function VZ(e){if(!e)return;let{paths:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??(t=[]),FZ(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??(n=!0),r??(r=!0);break;case 3:n??(n=r!==!0),r??(r=!n);break;default:n??(n=!1),r??(r=!1)}return i??(i=bt.WGS84),{...e,hasM:r,hasZ:n,paths:t,spatialReference:i}}var K4,Ss,e5,t5=L(()=>{ir();tr();or();Ge();Ze();Zt();gc();_s();ys();Ea();so();J4();Vw();Ss=K4=class extends wn{constructor(e){super(VZ(e)),this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("paths"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let{spatialReference:e}=this,t=$A(this);if(!t)return null;let r=new si(t);return r.spatialReference=e,r}writePaths(e,t){t.paths=Ne(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if($Z(e)){let n=[];for(let i=0,o=e.length;i<o;i++)n[i]=e[i].toArray();t[r]=n}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new K4;return e.spatialReference=this.spatialReference,e.paths=Ne(this.paths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],n=this.hasZ,i=this.hasM;return n&&!i?new _t(r[0],r[1],r[2],void 0,this.spatialReference):i&&!n?new _t(r[0],r[1],void 0,r[2],this.spatialReference):n&&i?new _t(r[0],r[1],r[2],r[3],this.spatialReference):new _t(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?(lo(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,n=t.map(i=>new _t(i,r));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new _t(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)?(lo(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths"),this):this}_validateInputs(e,t,r=!1){if(e==null||e<0||e>=this.paths.length)return!1;if(t!=null){let n=this.paths[e];if(r&&(t<0||t>n.length)||!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};O([H({readOnly:!0})],Ss.prototype,"cache",null),O([H({readOnly:!0})],Ss.prototype,"extent",null),O([H({type:[[[Number]]],json:{write:{isRequired:!0}}})],Ss.prototype,"paths",void 0),O([oi("paths")],Ss.prototype,"writePaths",null),Ss=K4=O([Pe("esri.geometry.Polyline")],Ss);e5=Ss;Ss.prototype.toJSON.isDefaultToJSON=!0});var UZ,WZ,VA=L(()=>{N0();UZ=xi()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),WZ=xi()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})});var UA=L(()=>{_s();ys();H4();Ea();Q4();t5()});var zZ,Uye,WA=L(()=>{Bo();_s();ys();H4();Ea();Q4();t5();so();VA();UA();zZ={base:wn,key:"type",typeMap:{extent:si,multipoint:j4,point:_t,polyline:e5,polygon:X4}},Uye=zo(zZ)});var zA=L(()=>{WA();Er();Ze();so()});function qA(e){return e==null?null:e.trim().replaceAll(GZ,"_").replace(BZ,"F$1")||null}function jA(e){let t=e.defaultValue;return t!==void 0&&YZ(e,t)?t:e.nullable?null:void 0}function HA(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}function qZ(e){return e===null||HA(e)}function jZ(e){return e===null||Number.isInteger(e)}function ZA(e){return e!=null&&typeof e=="string"}function HZ(e){return e===null||ZA(e)}function ZZ(){return!0}function YZ(e,t){let r;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":r=e.nullable?jZ:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?qZ:HA;break;case"string":case"esriFieldTypeString":r=e.nullable?HZ:ZA;break;default:r=ZZ}return arguments.length===1?r:r(t)}function XA(e){return e!=null&&eY.has(e.type)}function QA(e){return e!=null&&(e.type==="date"||e.type==="esriFieldTypeDate")}function KA(e){return e!=null&&(e.type==="time-only"||e.type==="esriFieldTypeTimeOnly")}function r5(e){return e!=null&&(e.type==="oid"||e.type==="esriFieldTypeOID")}function n5(e){return e!=null&&(e.type==="global-id"||e.type==="esriFieldTypeGlobalID")}var BZ,GZ,YA,JA,o2e,JZ,XZ,QZ,KZ,eY,BA,GA,s2e,a2e,eN=L(()=>{Er();hi();R_();$w();SA();zA();BZ=/^([0-9_])/,GZ=/[^a-z0-9_\u0080-\uffff]+/gi;YA=["integer","small-integer","big-integer"],JA=["single","double"],o2e=[...YA,...JA],JZ=["esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"],XZ=["esriFieldTypeSingle","esriFieldTypeDouble"],QZ=new Set([...YA,...JZ]),KZ=new Set([...JA,...XZ]),eY=uC(QZ,KZ);(function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"})(BA||(BA={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(GA||(GA={}));s2e={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},a2e={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE}});function tY(e){return"timeZone"in e}function rY(e){return"timeZone"in e}function nY(e){return"dateFieldsTimeZone"in e}function ka(e){return e.trim().toLowerCase()}function tN(e){return qA(e)?.toLowerCase()??""}function rN(e){let t=new Map;if(!e.fields)return t;let r=e.datesInUnknownTimezone===!0,{timeInfo:n,editFieldsInfo:i}=e,o=(n?"startField"in n?n.startField:n.startTimeField:"")??"",s=(n?"endField"in n?n.endField:n.endTimeField:"")??"",a=nY(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?Z0(e.dateFieldsTimeReference):null,u=i?tY(i)?i.timeZone??a:i.dateFieldsTimeReference?Z0(i.dateFieldsTimeReference):a??oa:null,d=n?rY(n)?n.timeZone??a:n.timeReference?Z0(n.timeReference):a:null,p=new Map([[ka(i?.creationDateField??""),u],[ka(i?.editDateField??""),u],[ka(o),d],[ka(s),d]]);for(let{name:m,type:w}of e.fields)if(nN.has(w))t.set(m,ia);else if(w!=="date"&&w!=="esriFieldTypeDate")t.set(m,null);else if(r)t.set(m,ia);else{let _=p.get(ka(m??""))??a;t.set(m,_)}return t}var iY,xc,nN,i5=L(()=>{Er();ta();Ze();Jb();Ju();eN();Y0();Vr();iY=new Map,xc=class e{static fromJSON(t){return new e(t.fields,t.timeZoneByFieldName)}static fromLayer(t){return new e(t.fields??[],rN(t))}static fromLayerJSON(t){return new e(t.fields??[],rN(t))}constructor(t=[],r){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=t||[],this._timeZoneByFieldName=r?new Map(r):null;let n=[];for(let i of this.fields){let o=i?.name,s=tN(o);if(o&&s){let a=ka(o);this._fieldsMap.set(o,i),this._fieldsMap.set(a,i),this._normalizedFieldsMap.set(s,i),n.push(`${a}:${i.type}:${this._timeZoneByFieldName?.get(o)}`),QA(i)?(this.dateFields.push(i),this._dateFieldsSet.add(i)):XA(i)&&(this._numericFieldsSet.add(i),this.numericFields.push(i)),r5(i)||n5(i)||(i.editable=i.editable==null||!!i.editable,i.nullable=i.nullable==null||!!i.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let t of this.fields)r5(t)||n5(t)||t.nullable||jA(t)!==void 0||this._requiredFields.push(t)}return this._requiredFields}equals(t){return this.uid===t?.uid}has(t){return this.get(t)!=null}get(t){if(!t)return;let r=this._fieldsMap.get(t);return r||(r=this._fieldsMap.get(ka(t))??this._normalizedFieldsMap.get(tN(t)),r&&this._fieldsMap.set(t,r),r)}getTimeZone(t){let r=this.get(t&&typeof t!="string"?t.name:t);return r?this._timeZoneByFieldName?this._timeZoneByFieldName.get(r.name):r.type==="date"||r.type==="esriFieldTypeDate"?(Me.getLogger("esri.layers.support.FieldsIndex").error(new ye("getTimeZone:no-timezone-information",`no time zone information for field '${r.name}'`)),oa):nN.has(r.type)?ia:null:null}getLuxonTimeZone(t){let r=this.getTimeZone(t);return r?r===ia?jt.instance:r===oa?He.utcInstance:Z1(iY,r,()=>Ct.create(r)):null}isDateField(t){return this._dateFieldsSet.has(this.get(t))}isTimeOnlyField(t){return KA(this.get(t))}isNumericField(t){return this._numericFieldsSet.has(this.get(t))}normalizeFieldName(t){return this.get(t)?.name??void 0}toJSON(){return{fields:this.fields.map(t=>_d(t)?t.toJSON():t),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}};nN=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"])});var Ry=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?Wc.isErrorNoTelemetry(t)?new Wc(t.message+`
2
143
 
3
144
  `+t.stack):new Error(t.message+`
4
145
 
5
- `+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}},Ii=new _n;function Et(e){Ti(e)||Ii.onUnexpectedError(e)}function wn(e){if(e instanceof Error){let{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:at.isErrorNoTelemetry(e)}}return e}var vn="Canceled";function Ti(e){return e instanceof Ln?!0:e instanceof Error&&e.name===vn&&e.message===vn}var Ln=class extends Error{constructor(){super(vn),this.name=this.message}};var at=class e extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},se=class e extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,e.prototype)}};function Nn(e,t){let n=this,r=!1,i;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}var Oe;(function(e){function t(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}e.is=t;let n=Object.freeze([]);function r(){return n}e.empty=r;function*i(b){yield b}e.single=i;function s(b){return t(b)?b:i(b)}e.wrap=s;function o(b){return b||n}e.from=o;function*l(b){for(let x=b.length-1;x>=0;x--)yield b[x]}e.reverse=l;function u(b){return!b||b[Symbol.iterator]().next().done===!0}e.isEmpty=u;function c(b){return b[Symbol.iterator]().next().value}e.first=c;function f(b,x){for(let v of b)if(x(v))return!0;return!1}e.some=f;function h(b,x){for(let v of b)if(x(v))return v}e.find=h;function*d(b,x){for(let v of b)x(v)&&(yield v)}e.filter=d;function*g(b,x){let v=0;for(let w of b)yield x(w,v++)}e.map=g;function*p(...b){for(let x of b)yield*x}e.concat=p;function m(b,x,v){let w=v;for(let R of b)w=x(w,R);return w}e.reduce=m;function*_(b,x,v=b.length){for(x<0&&(x+=b.length),v<0?v+=b.length:v>b.length&&(v=b.length);x<v;x++)yield b[x]}e.slice=_;function N(b,x=Number.POSITIVE_INFINITY){let v=[];if(x===0)return[v,b];let w=b[Symbol.iterator]();for(let R=0;R<x;R++){let y=w.next();if(y.done)return[v,e.empty()];v.push(y.value)}return[v,{[Symbol.iterator](){return w}}]}e.consume=N})(Oe||(Oe={}));var Bi=!1,oe=null;function Vi(e){oe=e}if(Bi){let e="__is_disposable_tracked__";Vi(new class{trackDisposable(t){let n=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(n)},3e3)}setParent(t,n){if(t&&t!==ae.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==ae.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}function Cn(e){return oe?.trackDisposable(e),e}function An(e){oe?.markAsDisposed(e)}function Sn(e,t){oe?.setParent(e,t)}function qi(e,t){if(oe)for(let n of e)oe.setParent(n,t)}function Sr(e){if(Oe.is(e)){let t=[];for(let n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Cr(...e){let t=Pe(()=>Sr(e));return qi(e,t),t}function Pe(e){let t=Cn({dispose:Nn(()=>{An(t),e()})});return t}var _e=class e{constructor(){this._toDispose=new Set,this._isDisposed=!1,Cn(this)}dispose(){this._isDisposed||(An(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Sr(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return Sn(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),Sn(t,null))}};_e.DISABLE_DISPOSED_WARNING=!1;var ae=class{constructor(){this._store=new _e,Cn(this),Sn(this._store,this)}dispose(){An(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};ae.None=Object.freeze({dispose(){}});var z=class e{constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}};z.Undefined=new z(void 0);var lt=class{constructor(){this._first=z.Undefined,this._last=z.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===z.Undefined}clear(){let t=this._first;for(;t!==z.Undefined;){let n=t.next;t.prev=z.Undefined,t.next=z.Undefined,t=n}this._first=z.Undefined,this._last=z.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){let r=new z(t);if(this._first===z.Undefined)this._first=r,this._last=r;else if(n){let s=this._last;this._last=r,r.prev=s,s.next=r}else{let s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==z.Undefined){let t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==z.Undefined){let t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==z.Undefined&&t.next!==z.Undefined){let n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===z.Undefined&&t.next===z.Undefined?(this._first=z.Undefined,this._last=z.Undefined):t.next===z.Undefined?(this._last=this._last.prev,this._last.next=z.Undefined):t.prev===z.Undefined&&(this._first=this._first.next,this._first.prev=z.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==z.Undefined;)yield t.element,t=t.next}};var Ui=globalThis.performance&&typeof globalThis.performance.now=="function",He=class e{static create(t){return new e(t)}constructor(t){this._now=Ui&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}};var Ar=!1,Wi=!1,Mt;(function(e){e.None=()=>ae.None;function t(A){if(Wi){let{onDidAddListener:L}=A,S=ct.create(),C=0;A.onDidAddListener=()=>{++C===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),S.print()),L?.()}}}function n(A,L){return d(A,()=>{},0,void 0,!0,void 0,L)}e.defer=n;function r(A){return(L,S=null,C)=>{let F=!1,D;return D=A(V=>{if(!F)return D?D.dispose():F=!0,L.call(S,V)},null,C),F&&D.dispose(),D}}e.once=r;function i(A,L,S){return f((C,F=null,D)=>A(V=>C.call(F,L(V)),null,D),S)}e.map=i;function s(A,L,S){return f((C,F=null,D)=>A(V=>{L(V),C.call(F,V)},null,D),S)}e.forEach=s;function o(A,L,S){return f((C,F=null,D)=>A(V=>L(V)&&C.call(F,V),null,D),S)}e.filter=o;function l(A){return A}e.signal=l;function u(...A){return(L,S=null,C)=>{let F=Cr(...A.map(D=>D(V=>L.call(S,V))));return h(F,C)}}e.any=u;function c(A,L,S,C){let F=S;return i(A,D=>(F=L(F,D),F),C)}e.reduce=c;function f(A,L){let S,C={onWillAddFirstListener(){S=A(F.fire,F)},onDidRemoveLastListener(){S?.dispose()}};L||t(C);let F=new Z(C);return L?.add(F),F.event}function h(A,L){return L instanceof Array?L.push(A):L&&L.add(A),A}function d(A,L,S=100,C=!1,F=!1,D,V){let X,ee,ze,Rt=0,De,Nr={leakWarningThreshold:D,onWillAddFirstListener(){X=A(Di=>{Rt++,ee=L(ee,Di),C&&!ze&&(yt.fire(ee),ee=void 0),De=()=>{let Pi=ee;ee=void 0,ze=void 0,(!C||Rt>1)&&yt.fire(Pi),Rt=0},typeof S=="number"?(clearTimeout(ze),ze=setTimeout(De,S)):ze===void 0&&(ze=0,queueMicrotask(De))})},onWillRemoveListener(){F&&Rt>0&&De?.()},onDidRemoveLastListener(){De=void 0,X.dispose()}};V||t(Nr);let yt=new Z(Nr);return V?.add(yt),yt.event}e.debounce=d;function g(A,L=0,S){return e.debounce(A,(C,F)=>C?(C.push(F),C):[F],L,void 0,!0,void 0,S)}e.accumulate=g;function p(A,L=(C,F)=>C===F,S){let C=!0,F;return o(A,D=>{let V=C||!L(D,F);return C=!1,F=D,V},S)}e.latch=p;function m(A,L,S){return[e.filter(A,L,S),e.filter(A,C=>!L(C),S)]}e.split=m;function _(A,L=!1,S=[],C){let F=S.slice(),D=A(ee=>{F?F.push(ee):X.fire(ee)});C&&C.add(D);let V=()=>{F?.forEach(ee=>X.fire(ee)),F=null},X=new Z({onWillAddFirstListener(){D||(D=A(ee=>X.fire(ee)),C&&C.add(D))},onDidAddFirstListener(){F&&(L?setTimeout(V):V())},onDidRemoveLastListener(){D&&D.dispose(),D=null}});return C&&C.add(X),X.event}e.buffer=_;function N(A,L){return(C,F,D)=>{let V=L(new x);return A(function(X){let ee=V.evaluate(X);ee!==b&&C.call(F,ee)},void 0,D)}}e.chain=N;let b=Symbol("HaltChainable");class x{constructor(){this.steps=[]}map(L){return this.steps.push(L),this}forEach(L){return this.steps.push(S=>(L(S),S)),this}filter(L){return this.steps.push(S=>L(S)?S:b),this}reduce(L,S){let C=S;return this.steps.push(F=>(C=L(C,F),C)),this}latch(L=(S,C)=>S===C){let S=!0,C;return this.steps.push(F=>{let D=S||!L(F,C);return S=!1,C=F,D?F:b}),this}evaluate(L){for(let S of this.steps)if(L=S(L),L===b)break;return L}}function v(A,L,S=C=>C){let C=(...X)=>V.fire(S(...X)),F=()=>A.on(L,C),D=()=>A.removeListener(L,C),V=new Z({onWillAddFirstListener:F,onDidRemoveLastListener:D});return V.event}e.fromNodeEventEmitter=v;function w(A,L,S=C=>C){let C=(...X)=>V.fire(S(...X)),F=()=>A.addEventListener(L,C),D=()=>A.removeEventListener(L,C),V=new Z({onWillAddFirstListener:F,onDidRemoveLastListener:D});return V.event}e.fromDOMEventEmitter=w;function R(A){return new Promise(L=>r(A)(L))}e.toPromise=R;function y(A){let L=new Z;return A.then(S=>{L.fire(S)},()=>{L.fire(void 0)}).finally(()=>{L.dispose()}),L.event}e.fromPromise=y;function M(A,L,S){return L(S),A(C=>L(C))}e.runAndSubscribe=M;function U(A,L){let S=null;function C(D){S?.dispose(),S=new _e,L(D,S)}C(void 0);let F=A(D=>C(D));return Pe(()=>{F.dispose(),S?.dispose()})}e.runAndSubscribeWithStore=U;class j{constructor(L,S){this._observable=L,this._counter=0,this._hasChanged=!1;let C={onWillAddFirstListener:()=>{L.addObserver(this)},onDidRemoveLastListener:()=>{L.removeObserver(this)}};S||t(C),this.emitter=new Z(C),S&&S.add(this.emitter)}beginUpdate(L){this._counter++}handlePossibleChange(L){}handleChange(L,S){this._hasChanged=!0}endUpdate(L){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function B(A,L){return new j(A,L).emitter.event}e.fromObservable=B;function k(A){return(L,S,C)=>{let F=0,D=!1,V={beginUpdate(){F++},endUpdate(){F--,F===0&&(A.reportChanges(),D&&(D=!1,L.call(S)))},handlePossibleChange(){},handleChange(){D=!0}};A.addObserver(V),A.reportChanges();let X={dispose(){A.removeObserver(V)}};return C instanceof _e?C.add(X):Array.isArray(C)&&C.push(X),X}}e.fromObservableLight=k})(Mt||(Mt={}));var ut=class e{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(t){this._stopWatch=new He,this.listenerCount=t}stop(){if(this._stopWatch){let t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};ut.all=new Set;ut._idPool=0;var Rr=-1,Rn=class{constructor(t,n=Math.random().toString(18).slice(2,5)){this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){var t;(t=this._stacks)===null||t===void 0||t.clear()}check(t,n){let r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);let i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let s,o=0;for(let[l,u]of this._stacks)(!s||o<u)&&(s=l,o=u);console.warn(`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${o}):`),console.warn(s)}return()=>{let s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}},ct=class e{static create(){var t;return new e((t=new Error().stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
146
+ `+t.stack):t},0)}}emit(t){this.listeners.forEach(r=>{r(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}},Rk=new Ry;function Sh(e){Dk(e)||Rk.onUnexpectedError(e)}function $y(e){if(e instanceof Error){let{name:t,message:r}=e,n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:r,stack:n,noTelemetry:Wc.isErrorNoTelemetry(e)}}return e}var Dy="Canceled";function Dk(e){return e instanceof Oy?!0:e instanceof Error&&e.name===Dy&&e.message===Dy}var Oy=class extends Error{constructor(){super(Dy),this.name=this.message}};var Wc=class e extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof e)return t;let r=new e;return r.message=t.message,r.stack=t.stack,r}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},bn=class e extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,e.prototype)}};function Fy(e,t){let r=this,n=!1,i;return function(){if(n)return i;if(n=!0,t)try{i=e.apply(r,arguments)}finally{t()}else i=e.apply(r,arguments);return i}}var Ua;(function(e){function t(I){return I&&typeof I=="object"&&typeof I[Symbol.iterator]=="function"}e.is=t;let r=Object.freeze([]);function n(){return r}e.empty=n;function*i(I){yield I}e.single=i;function o(I){return t(I)?I:i(I)}e.wrap=o;function s(I){return I||r}e.from=s;function*a(I){for(let N=I.length-1;N>=0;N--)yield I[N]}e.reverse=a;function u(I){return!I||I[Symbol.iterator]().next().done===!0}e.isEmpty=u;function d(I){return I[Symbol.iterator]().next().value}e.first=d;function p(I,N){for(let V of I)if(N(V))return!0;return!1}e.some=p;function m(I,N){for(let V of I)if(N(V))return V}e.find=m;function*w(I,N){for(let V of I)N(V)&&(yield V)}e.filter=w;function*_(I,N){let V=0;for(let Y of I)yield N(Y,V++)}e.map=_;function*S(...I){for(let N of I)yield*N}e.concat=S;function T(I,N,V){let Y=V;for(let re of I)Y=N(Y,re);return Y}e.reduce=T;function*M(I,N,V=I.length){for(N<0&&(N+=I.length),V<0?V+=I.length:V>I.length&&(V=I.length);N<V;N++)yield I[N]}e.slice=M;function R(I,N=Number.POSITIVE_INFINITY){let V=[];if(N===0)return[V,I];let Y=I[Symbol.iterator]();for(let re=0;re<N;re++){let te=Y.next();if(te.done)return[V,e.empty()];V.push(te.value)}return[V,{[Symbol.iterator](){return Y}}]}e.consume=R})(Ua||(Ua={}));var Ok=!1,_n=null;function $k(e){_n=e}if(Ok){let e="__is_disposable_tracked__";$k(new class{trackDisposable(t){let r=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(r)},3e3)}setParent(t,r){if(t&&t!==vn.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==vn.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}function Uy(e){return _n?.trackDisposable(e),e}function Wy(e){_n?.markAsDisposed(e)}function Vy(e,t){_n?.setParent(e,t)}function Fk(e,t){if(_n)for(let r of e)_n.setParent(r,t)}function j5(e){if(Ua.is(e)){let t=[];for(let r of e)if(r)try{r.dispose()}catch(n){t.push(n)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function H5(...e){let t=Ls(()=>j5(e));return Fk(e,t),t}function Ls(e){let t=Uy({dispose:Fy(()=>{Wy(t),e()})});return t}var uo=class e{constructor(){this._toDispose=new Set,this._isDisposed=!1,Uy(this)}dispose(){this._isDisposed||(Wy(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{j5(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return Vy(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),Vy(t,null))}};uo.DISABLE_DISPOSED_WARNING=!1;var vn=class{constructor(){this._store=new uo,Uy(this),Vy(this._store,this)}dispose(){Wy(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};vn.None=Object.freeze({dispose(){}});var it=class e{constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}};it.Undefined=new it(void 0);var zc=class{constructor(){this._first=it.Undefined,this._last=it.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===it.Undefined}clear(){let t=this._first;for(;t!==it.Undefined;){let r=t.next;t.prev=it.Undefined,t.next=it.Undefined,t=r}this._first=it.Undefined,this._last=it.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,r){let n=new it(t);if(this._first===it.Undefined)this._first=n,this._last=n;else if(r){let o=this._last;this._last=n,n.prev=o,o.next=n}else{let o=this._first;this._first=n,n.next=o,o.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==it.Undefined){let t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==it.Undefined){let t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==it.Undefined&&t.next!==it.Undefined){let r=t.prev;r.next=t.next,t.next.prev=r}else t.prev===it.Undefined&&t.next===it.Undefined?(this._first=it.Undefined,this._last=it.Undefined):t.next===it.Undefined?(this._last=this._last.prev,this._last.next=it.Undefined):t.prev===it.Undefined&&(this._first=this._first.next,this._first.prev=it.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==it.Undefined;)yield t.element,t=t.next}};var Vk=globalThis.performance&&typeof globalThis.performance.now=="function",Wa=class e{static create(t){return new e(t)}constructor(t){this._now=Vk&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}};var Z5=!1,Uk=!1,xh;(function(e){e.None=()=>vn.None;function t($){if(Uk){let{onDidAddListener:q}=$,K=Gc.create(),ee=0;$.onDidAddListener=()=>{++ee===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),K.print()),q?.()}}}function r($,q){return w($,()=>{},0,void 0,!0,void 0,q)}e.defer=r;function n($){return(q,K=null,ee)=>{let ae=!1,pe;return pe=$(ve=>{if(!ae)return pe?pe.dispose():ae=!0,q.call(K,ve)},null,ee),ae&&pe.dispose(),pe}}e.once=n;function i($,q,K){return p((ee,ae=null,pe)=>$(ve=>ee.call(ae,q(ve)),null,pe),K)}e.map=i;function o($,q,K){return p((ee,ae=null,pe)=>$(ve=>{q(ve),ee.call(ae,ve)},null,pe),K)}e.forEach=o;function s($,q,K){return p((ee,ae=null,pe)=>$(ve=>q(ve)&&ee.call(ae,ve),null,pe),K)}e.filter=s;function a($){return $}e.signal=a;function u(...$){return(q,K=null,ee)=>{let ae=H5(...$.map(pe=>pe(ve=>q.call(K,ve))));return m(ae,ee)}}e.any=u;function d($,q,K,ee){let ae=K;return i($,pe=>(ae=q(ae,pe),ae),ee)}e.reduce=d;function p($,q){let K,ee={onWillAddFirstListener(){K=$(ae.fire,ae)},onDidRemoveLastListener(){K?.dispose()}};q||t(ee);let ae=new mr(ee);return q?.add(ae),ae.event}function m($,q){return q instanceof Array?q.push($):q&&q.add($),$}function w($,q,K=100,ee=!1,ae=!1,pe,ve){let Ae,We,Pt,cr=0,ur,rn={leakWarningThreshold:pe,onWillAddFirstListener(){Ae=$(Vi=>{cr++,We=q(We,Vi),ee&&!Pt&&(Nr.fire(We),We=void 0),ur=()=>{let Ra=We;We=void 0,Pt=void 0,(!ee||cr>1)&&Nr.fire(Ra),cr=0},typeof K=="number"?(clearTimeout(Pt),Pt=setTimeout(ur,K)):Pt===void 0&&(Pt=0,queueMicrotask(ur))})},onWillRemoveListener(){ae&&cr>0&&ur?.()},onDidRemoveLastListener(){ur=void 0,Ae.dispose()}};ve||t(rn);let Nr=new mr(rn);return ve?.add(Nr),Nr.event}e.debounce=w;function _($,q=0,K){return e.debounce($,(ee,ae)=>ee?(ee.push(ae),ee):[ae],q,void 0,!0,void 0,K)}e.accumulate=_;function S($,q=(ee,ae)=>ee===ae,K){let ee=!0,ae;return s($,pe=>{let ve=ee||!q(pe,ae);return ee=!1,ae=pe,ve},K)}e.latch=S;function T($,q,K){return[e.filter($,q,K),e.filter($,ee=>!q(ee),K)]}e.split=T;function M($,q=!1,K=[],ee){let ae=K.slice(),pe=$(We=>{ae?ae.push(We):Ae.fire(We)});ee&&ee.add(pe);let ve=()=>{ae?.forEach(We=>Ae.fire(We)),ae=null},Ae=new mr({onWillAddFirstListener(){pe||(pe=$(We=>Ae.fire(We)),ee&&ee.add(pe))},onDidAddFirstListener(){ae&&(q?setTimeout(ve):ve())},onDidRemoveLastListener(){pe&&pe.dispose(),pe=null}});return ee&&ee.add(Ae),Ae.event}e.buffer=M;function R($,q){return(ee,ae,pe)=>{let ve=q(new N);return $(function(Ae){let We=ve.evaluate(Ae);We!==I&&ee.call(ae,We)},void 0,pe)}}e.chain=R;let I=Symbol("HaltChainable");class N{constructor(){this.steps=[]}map(q){return this.steps.push(q),this}forEach(q){return this.steps.push(K=>(q(K),K)),this}filter(q){return this.steps.push(K=>q(K)?K:I),this}reduce(q,K){let ee=K;return this.steps.push(ae=>(ee=q(ee,ae),ee)),this}latch(q=(K,ee)=>K===ee){let K=!0,ee;return this.steps.push(ae=>{let pe=K||!q(ae,ee);return K=!1,ee=ae,pe?ae:I}),this}evaluate(q){for(let K of this.steps)if(q=K(q),q===I)break;return q}}function V($,q,K=ee=>ee){let ee=(...Ae)=>ve.fire(K(...Ae)),ae=()=>$.on(q,ee),pe=()=>$.removeListener(q,ee),ve=new mr({onWillAddFirstListener:ae,onDidRemoveLastListener:pe});return ve.event}e.fromNodeEventEmitter=V;function Y($,q,K=ee=>ee){let ee=(...Ae)=>ve.fire(K(...Ae)),ae=()=>$.addEventListener(q,ee),pe=()=>$.removeEventListener(q,ee),ve=new mr({onWillAddFirstListener:ae,onDidRemoveLastListener:pe});return ve.event}e.fromDOMEventEmitter=Y;function re($){return new Promise(q=>n($)(q))}e.toPromise=re;function te($){let q=new mr;return $.then(K=>{q.fire(K)},()=>{q.fire(void 0)}).finally(()=>{q.dispose()}),q.event}e.fromPromise=te;function ie($,q,K){return q(K),$(ee=>q(ee))}e.runAndSubscribe=ie;function ge($,q){let K=null;function ee(pe){K?.dispose(),K=new uo,q(pe,K)}ee(void 0);let ae=$(pe=>ee(pe));return Ls(()=>{ae.dispose(),K?.dispose()})}e.runAndSubscribeWithStore=ge;class be{constructor(q,K){this._observable=q,this._counter=0,this._hasChanged=!1;let ee={onWillAddFirstListener:()=>{q.addObserver(this)},onDidRemoveLastListener:()=>{q.removeObserver(this)}};K||t(ee),this.emitter=new mr(ee),K&&K.add(this.emitter)}beginUpdate(q){this._counter++}handlePossibleChange(q){}handleChange(q,K){this._hasChanged=!0}endUpdate(q){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function de($,q){return new be($,q).emitter.event}e.fromObservable=de;function B($){return(q,K,ee)=>{let ae=0,pe=!1,ve={beginUpdate(){ae++},endUpdate(){ae--,ae===0&&($.reportChanges(),pe&&(pe=!1,q.call(K)))},handlePossibleChange(){},handleChange(){pe=!0}};$.addObserver(ve),$.reportChanges();let Ae={dispose(){$.removeObserver(ve)}};return ee instanceof uo?ee.add(Ae):Array.isArray(ee)&&ee.push(Ae),Ae}}e.fromObservableLight=B})(xh||(xh={}));var Bc=class e{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(t){this._stopWatch=new Wa,this.listenerCount=t}stop(){if(this._stopWatch){let t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};Bc.all=new Set;Bc._idPool=0;var Y5=-1,zy=class{constructor(t,r=Math.random().toString(18).slice(2,5)){this.threshold=t,this.name=r,this._warnCountdown=0}dispose(){var t;(t=this._stacks)===null||t===void 0||t.clear()}check(t,r){let n=this.threshold;if(n<=0||r<n)return;this._stacks||(this._stacks=new Map);let i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=n*.5;let o,s=0;for(let[a,u]of this._stacks)(!o||s<u)&&(o=a,s=u);console.warn(`[${this.name}] potential listener LEAK detected, having ${r} listeners already. MOST frequent listener (${s}):`),console.warn(o)}return()=>{let o=this._stacks.get(t.value)||0;this._stacks.set(t.value,o-1)}}},Gc=class e{static create(){var t;return new e((t=new Error().stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
6
147
  `).slice(2).join(`
7
- `))}},$e=class{constructor(t){this.value=t}},zi=2,Oi=(e,t)=>{if(e instanceof $e)t(e);else for(let n=0;n<e.length;n++){let r=e[n];r&&t(r)}},Z=class{constructor(t){var n,r,i,s,o;this._size=0,this._options=t,this._leakageMon=Rr>0||!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new Rn((i=(r=this._options)===null||r===void 0?void 0:r.leakWarningThreshold)!==null&&i!==void 0?i:Rr):void 0,this._perfMon=!((s=this._options)===null||s===void 0)&&s._profName?new ut(this._options._profName):void 0,this._deliveryQueue=(o=this._options)===null||o===void 0?void 0:o.deliveryQueue}dispose(){var t,n,r,i;if(!this._disposed){if(this._disposed=!0,((t=this._deliveryQueue)===null||t===void 0?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners){if(Ar){let s=this._listeners;queueMicrotask(()=>{Oi(s,o=>{var l;return(l=o.stack)===null||l===void 0?void 0:l.print()})})}this._listeners=void 0,this._size=0}(r=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose()}}get event(){var t;return(t=this._event)!==null&&t!==void 0||(this._event=(n,r,i)=>{var s,o,l,u,c;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),ae.None;if(this._disposed)return ae.None;r&&(n=n.bind(r));let f=new $e(n),h,d;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(f.stack=ct.create(),h=this._leakageMon.check(f.stack,this._size+1)),Ar&&(f.stack=d??ct.create()),this._listeners?this._listeners instanceof $e?((c=this._deliveryQueue)!==null&&c!==void 0||(this._deliveryQueue=new yn),this._listeners=[this._listeners,f]):this._listeners.push(f):((o=(s=this._options)===null||s===void 0?void 0:s.onWillAddFirstListener)===null||o===void 0||o.call(s,this),this._listeners=f,(u=(l=this._options)===null||l===void 0?void 0:l.onDidAddFirstListener)===null||u===void 0||u.call(l,this)),this._size++;let g=Pe(()=>{h?.(),this._removeListener(f)});return i instanceof _e?i.add(g):Array.isArray(i)&&i.push(g),g}),this._event}_removeListener(t){var n,r,i,s;if((r=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||r===void 0||r.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(s=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||s===void 0||s.call(i,this),this._size=0;return}let o=this._listeners,l=o.indexOf(t);if(l===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,o[l]=void 0;let u=this._deliveryQueue.current===this;if(this._size*zi<=o.length){let c=0;for(let f=0;f<o.length;f++)o[f]?o[c++]=o[f]:u&&(this._deliveryQueue.end--,c<this._deliveryQueue.i&&this._deliveryQueue.i--);o.length=c}}_deliver(t,n){var r;if(!t)return;let i=((r=this._options)===null||r===void 0?void 0:r.onListenerError)||Et;if(!i){t.value(n);return}try{t.value(n)}catch(s){i(s)}}_deliverQueue(t){let n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){var n,r,i,s;if(!((n=this._deliveryQueue)===null||n===void 0)&&n.current&&(this._deliverQueue(this._deliveryQueue),(r=this._perfMon)===null||r===void 0||r.stop()),(i=this._perfMon)===null||i===void 0||i.start(this._size),this._listeners)if(this._listeners instanceof $e)this._deliver(this._listeners,t);else{let o=this._deliveryQueue;o.enqueue(this,t,this._listeners.length),this._deliverQueue(o)}(s=this._perfMon)===null||s===void 0||s.stop()}hasListeners(){return this._size>0}};var yn=class{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function yr(e){return typeof e=="string"}function Hi(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function ht(e){let t=[];for(let n of Hi(e))typeof e[n]=="function"&&t.push(n);return t}function Er(e,t){let n=i=>function(){let s=Array.prototype.slice.call(arguments,0);return t(i,s)},r={};for(let i of e)r[i]=n(i);return r}var $i=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Gi(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(r,i)=>{let s=i[0],o=t[s],l=r;return typeof o=="string"?l=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(l=String(o)),l}),$i&&(n="\uFF3B"+n.replace(/[aouei]/g,"$&$&")+"\uFF3D"),n}function W(e,t,...n){return Gi(t,n)}var En,Ge="en",Dt=!1,Pt=!1,kt=!1,Qi=!1,Ji=!1,Fr=!1,Xi=!1,Yi=!1,Zi=!1,Ki=!1,Ft,Mn=Ge,Mr=Ge,es,le,be=globalThis,K;typeof be.vscode<"u"&&typeof be.vscode.process<"u"?K=be.vscode.process:typeof process<"u"&&(K=process);var kr=typeof((En=K?.versions)===null||En===void 0?void 0:En.electron)=="string",ts=kr&&K?.type==="renderer";if(typeof navigator=="object"&&!ts)le=navigator.userAgent,Dt=le.indexOf("Windows")>=0,Pt=le.indexOf("Macintosh")>=0,Yi=(le.indexOf("Macintosh")>=0||le.indexOf("iPad")>=0||le.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,kt=le.indexOf("Linux")>=0,Ki=le?.indexOf("Mobi")>=0,Fr=!0,Ft=(W({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||Ge,Mn=Ft,Mr=navigator.language;else if(typeof K=="object"){Dt=K.platform==="win32",Pt=K.platform==="darwin",kt=K.platform==="linux",Qi=kt&&!!K.env.SNAP&&!!K.env.SNAP_REVISION,Xi=kr,Zi=!!K.env.CI||!!K.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ft=Ge,Mn=Ge;let e=K.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e),n=t.availableLanguages["*"];Ft=t.locale,Mr=t.osLocale,Mn=n||Ge,es=t._translationsConfigFile}catch{}Ji=!0}else console.error("Unable to resolve platform.");var Fn=0;Pt?Fn=1:Dt?Fn=3:kt&&(Fn=2);var Ie=Dt,Dr=Pt;var ns=Fr&&typeof be.importScripts=="function",yo=ns?be.origin:void 0;var fe=le;var rs=typeof be.postMessage=="function"&&!be.importScripts,Eo=(()=>{if(rs){let e=[];be.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r<i;r++){let s=e[r];if(s.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),s.callback();return}}});let t=0;return n=>{let r=++t;e.push({id:r,callback:n}),be.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();var is=!!(fe&&fe.indexOf("Chrome")>=0),Mo=!!(fe&&fe.indexOf("Firefox")>=0),Fo=!!(!is&&fe&&fe.indexOf("Safari")>=0),ko=!!(fe&&fe.indexOf("Edg/")>=0),Do=!!(fe&&fe.indexOf("Android")>=0);var It=class{constructor(t){this.fn=t,this.lastCache=void 0,this.lastArgKey=void 0}get(t){let n=JSON.stringify(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(t)),this.lastCache}};var ft=class{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};var je;function Pr(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Ir(e){return e.split(/\r\n|\r|\n/)}function Tr(e){for(let t=0,n=e.length;t<n;t++){let r=e.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function Br(e,t=e.length-1){for(let n=t;n>=0;n--){let r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function Dn(e){return e>=65&&e<=90}function Qe(e){return 55296<=e&&e<=56319}function Tt(e){return 56320<=e&&e<=57343}function Pn(e,t){return(e-55296<<10)+(t-56320)+65536}function Vr(e,t,n){let r=e.charCodeAt(n);if(Qe(r)&&n+1<t){let i=e.charCodeAt(n+1);if(Tt(i))return Pn(r,i)}return r}var ss=/^[\t\n\r\x20-\x7E]*$/;function qr(e){return ss.test(e)}var kn=class e{static getInstance(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE}constructor(){this._data=os()}getGraphemeBreakType(t){if(t<32)return t===10?3:t===13?2:4;if(t<127)return 0;let n=this._data,r=n.length/3,i=1;for(;i<=r;)if(t<n[3*i])i=2*i;else if(t>n[3*i+1])i=2*i+1;else return n[3*i+2];return 0}};kn._INSTANCE=null;function os(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}var de=class{static getInstance(t){return je.cache.get(Array.from(t))}static getLocales(){return je._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};je=de;de.ambiguousCharacterData=new ft(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));de.cache=new It(e=>{function t(c){let f=new Map;for(let h=0;h<c.length;h+=2)f.set(c[h],c[h+1]);return f}function n(c,f){let h=new Map(c);for(let[d,g]of f)h.set(d,g);return h}function r(c,f){if(!c)return f;let h=new Map;for(let[d,g]of c)f.has(d)&&h.set(d,g);return h}let i=je.ambiguousCharacterData.value,s=e.filter(c=>!c.startsWith("_")&&c in i);s.length===0&&(s=["_default"]);let o;for(let c of s){let f=t(i[c]);o=r(o,f)}let l=t(i._common),u=n(l,o);return new je(u)});de._locales=new ft(()=>Object.keys(je.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));var Te=class e{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(e.getRawData())),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static get codePoints(){return e.getData()}};Te._data=void 0;var as="$initialize";var In=class{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.method=r,this.args=i,this.type=0}},Bt=class{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=1}},Tn=class{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.eventName=r,this.arg=i,this.type=2}},Bn=class{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}},Vn=class{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}},qn=class{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n){let r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new In(this._workerId,r,t,n))})}listen(t,n){let r=null,i=new Z({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new Tn(this._workerId,r,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Vn(this._workerId,r)),r=null}});return i.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}let n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let r=t.err;t.err.$isError&&(r=new Error,r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack),n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){let n=t.req;this._handler.handleMessage(t.method,t.args).then(i=>{this._send(new Bt(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=wn(i.detail)),this._send(new Bt(this._workerId,n,void 0,wn(i)))})}_handleSubscribeEventMessage(t){let n=t.req,r=this._handler.handleEvent(t.eventName,t.arg)(i=>{this._send(new Bn(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){let n=[];if(t.type===0)for(let r=0;r<t.args.length;r++)t.args[r]instanceof ArrayBuffer&&n.push(t.args[r]);else t.type===1&&t.res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(t,n)}};function Ur(e){return e[0]==="o"&&e[1]==="n"&&Dn(e.charCodeAt(2))}function Wr(e){return/^onDynamic/.test(e)&&Dn(e.charCodeAt(9))}function ls(e,t,n){let r=o=>function(){let l=Array.prototype.slice.call(arguments,0);return t(o,l)},i=o=>function(l){return n(o,l)},s={};for(let o of e){if(Wr(o)){s[o]=i(o);continue}if(Ur(o)){s[o]=n(o,void 0);continue}s[o]=r(o)}return s}var Vt=class{constructor(t,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new qn({sendMessage:(r,i)=>{t(r,i)},handleMessage:(r,i)=>this._handleMessage(r,i),handleEvent:(r,i)=>this._handleEvent(r,i)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n){if(t===as)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,n))}catch(r){return Promise.reject(r)}}_handleEvent(t,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Wr(t)){let r=this._requestHandler[t].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return r}if(Ur(t)){let r=this._requestHandler[t];if(typeof r!="function")throw new Error(`Missing event ${t} on request handler.`);return r}throw new Error(`Malformed event name ${t}`)}initialize(t,n,r,i){this._protocol.setWorkerId(t);let l=ls(i,(u,c)=>this._protocol.sendMessage(u,c),(u,c)=>this._protocol.listen(u,c));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(l),Promise.resolve(ht(this._requestHandler))):(n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy!==void 0&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((u,c)=>{let f=globalThis.require;f([r],h=>{if(this._requestHandler=h.create(l),!this._requestHandler){c(new Error("No RequestHandler!"));return}u(ht(this._requestHandler))},c)}))}};var ue=class{constructor(t,n,r,i){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};function zr(e,t){return(t<<5)-t+e|0}function Hr(e,t){t=zr(149417,t);for(let n=0,r=e.length;n<r;n++)t=zr(e.charCodeAt(n),t);return t}function Un(e,t,n=32){let r=n-t,i=~((1<<r)-1);return(e<<t|(i&e)>>>r)>>>0}function Or(e,t=0,n=e.byteLength,r=0){for(let i=0;i<n;i++)e[t+i]=r}function us(e,t,n="0"){for(;e.length<t;)e=n+e;return e}function mt(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(n=>n.toString(16).padStart(2,"0")).join(""):us((e>>>0).toString(16),t/4)}var Wn=class e{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){let n=t.length;if(n===0)return;let r=this._buff,i=this._buffLen,s=this._leftoverHighSurrogate,o,l;for(s!==0?(o=s,l=-1,s=0):(o=t.charCodeAt(0),l=0);;){let u=o;if(Qe(o))if(l+1<n){let c=t.charCodeAt(l+1);Tt(c)?(l++,u=Pn(o,c)):u=65533}else{s=o;break}else Tt(o)&&(u=65533);if(i=this._push(r,i,u),l++,l<n)o=t.charCodeAt(l);else break}this._buffLen=i,this._leftoverHighSurrogate=s}_push(t,n,r){return r<128?t[n++]=r:r<2048?(t[n++]=192|(r&1984)>>>6,t[n++]=128|(r&63)>>>0):r<65536?(t[n++]=224|(r&61440)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0):(t[n++]=240|(r&1835008)>>>18,t[n++]=128|(r&258048)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),mt(this._h0)+mt(this._h1)+mt(this._h2)+mt(this._h3)+mt(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Or(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Or(this._buff));let t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,n=this._buffDV;for(let h=0;h<64;h+=4)t.setUint32(h,n.getUint32(h,!1),!1);for(let h=64;h<320;h+=4)t.setUint32(h,Un(t.getUint32(h-12,!1)^t.getUint32(h-32,!1)^t.getUint32(h-56,!1)^t.getUint32(h-64,!1),1),!1);let r=this._h0,i=this._h1,s=this._h2,o=this._h3,l=this._h4,u,c,f;for(let h=0;h<80;h++)h<20?(u=i&s|~i&o,c=1518500249):h<40?(u=i^s^o,c=1859775393):h<60?(u=i&s|i&o|s&o,c=2400959708):(u=i^s^o,c=3395469782),f=Un(r,5)+u+l+c+t.getUint32(h*4,!1)&4294967295,l=o,o=s,s=Un(i,30),i=r,r=f;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+l&4294967295}};Wn._bigBlock32=new DataView(new ArrayBuffer(320));var qt=class{constructor(t){this.source=t}getElements(){let t=this.source,n=new Int32Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=t.charCodeAt(r);return n}};function $r(e,t,n){return new gt(new qt(e),new qt(t)).ComputeDiff(n).changes}var ve=class{static Assert(t,n){if(!t)throw new Error(n)}},Le=class{static Copy(t,n,r,i,s){for(let o=0;o<s;o++)r[i+o]=t[n+o]}static Copy2(t,n,r,i,s){for(let o=0;o<s;o++)r[i+o]=t[n+o]}},Ut=class{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new ue(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}},gt=class e{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;let[i,s,o]=e._getElements(t),[l,u,c]=e._getElements(n);this._hasStrings=o&&c,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){let n=t.getElements();if(e._isStringArray(n)){let r=new Int32Array(n.length);for(let i=0,s=n.length;i<s;i++)r[i]=Hr(n[i],0);return[n,r,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(t,n){if(!this.ElementsAreEqual(t,n))return!1;let r=e._getStrictElement(this._originalSequence,t),i=e._getStrictElement(this._modifiedSequence,n);return r===i}static _getStrictElement(t,n){return typeof t.getStrictElement=="function"?t.getStrictElement(n):null}OriginalElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(t,n){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[n]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,n,r,i,s){let o=[!1],l=this.ComputeDiffRecursive(t,n,r,i,o);return s&&(l=this.PrettifyChanges(l)),{quitEarly:o[0],changes:l}}ComputeDiffRecursive(t,n,r,i,s){for(s[0]=!1;t<=n&&r<=i&&this.ElementsAreEqual(t,r);)t++,r++;for(;n>=t&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(t>n||r>i){let h;return r<=i?(ve.Assert(t===n+1,"originalStart should only be one more than originalEnd"),h=[new ue(t,0,r,i-r+1)]):t<=n?(ve.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),h=[new ue(t,n-t+1,r,0)]):(ve.Assert(t===n+1,"originalStart should only be one more than originalEnd"),ve.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),h=[]),h}let o=[0],l=[0],u=this.ComputeRecursionPoint(t,n,r,i,o,l,s),c=o[0],f=l[0];if(u!==null)return u;if(!s[0]){let h=this.ComputeDiffRecursive(t,c,r,f,s),d=[];return s[0]?d=[new ue(c+1,n-(c+1)+1,f+1,i-(f+1)+1)]:d=this.ComputeDiffRecursive(c+1,n,f+1,i,s),this.ConcatenateChanges(h,d)}return[new ue(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,o,l,u,c,f,h,d,g,p,m,_,N,b){let x=null,v=null,w=new Ut,R=n,y=r,M=g[0]-_[0]-i,U=-1073741824,j=this.m_forwardHistory.length-1;do{let B=M+t;B===R||B<y&&c[B-1]<c[B+1]?(h=c[B+1],p=h-M-i,h<U&&w.MarkNextChange(),U=h,w.AddModifiedElement(h+1,p),M=B+1-t):(h=c[B-1]+1,p=h-M-i,h<U&&w.MarkNextChange(),U=h-1,w.AddOriginalElement(h,p+1),M=B-1-t),j>=0&&(c=this.m_forwardHistory[j],t=c[0],R=1,y=c.length-1)}while(--j>=-1);if(x=w.getReverseChanges(),b[0]){let B=g[0]+1,k=_[0]+1;if(x!==null&&x.length>0){let A=x[x.length-1];B=Math.max(B,A.getOriginalEnd()),k=Math.max(k,A.getModifiedEnd())}v=[new ue(B,d-B+1,k,m-k+1)]}else{w=new Ut,R=o,y=l,M=g[0]-_[0]-u,U=1073741824,j=N?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let B=M+s;B===R||B<y&&f[B-1]>=f[B+1]?(h=f[B+1]-1,p=h-M-u,h>U&&w.MarkNextChange(),U=h+1,w.AddOriginalElement(h+1,p+1),M=B+1-s):(h=f[B-1],p=h-M-u,h>U&&w.MarkNextChange(),U=h,w.AddModifiedElement(h+1,p+1),M=B-1-s),j>=0&&(f=this.m_reverseHistory[j],s=f[0],R=1,y=f.length-1)}while(--j>=-1);v=w.getChanges()}return this.ConcatenateChanges(x,v)}ComputeRecursionPoint(t,n,r,i,s,o,l){let u=0,c=0,f=0,h=0,d=0,g=0;t--,r--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let p=n-t+(i-r),m=p+1,_=new Int32Array(m),N=new Int32Array(m),b=i-r,x=n-t,v=t-r,w=n-i,y=(x-b)%2===0;_[b]=t,N[x]=n,l[0]=!1;for(let M=1;M<=p/2+1;M++){let U=0,j=0;f=this.ClipDiagonalBound(b-M,M,b,m),h=this.ClipDiagonalBound(b+M,M,b,m);for(let k=f;k<=h;k+=2){k===f||k<h&&_[k-1]<_[k+1]?u=_[k+1]:u=_[k-1]+1,c=u-(k-b)-v;let A=u;for(;u<n&&c<i&&this.ElementsAreEqual(u+1,c+1);)u++,c++;if(_[k]=u,u+c>U+j&&(U=u,j=c),!y&&Math.abs(k-x)<=M-1&&u>=N[k])return s[0]=u,o[0]=c,A<=N[k]&&M<=1448?this.WALKTRACE(b,f,h,v,x,d,g,w,_,N,u,n,s,c,i,o,y,l):null}let B=(U-t+(j-r)-M)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(U,B))return l[0]=!0,s[0]=U,o[0]=j,B>0&&M<=1448?this.WALKTRACE(b,f,h,v,x,d,g,w,_,N,u,n,s,c,i,o,y,l):(t++,r++,[new ue(t,n-t+1,r,i-r+1)]);d=this.ClipDiagonalBound(x-M,M,x,m),g=this.ClipDiagonalBound(x+M,M,x,m);for(let k=d;k<=g;k+=2){k===d||k<g&&N[k-1]>=N[k+1]?u=N[k+1]-1:u=N[k-1],c=u-(k-x)-w;let A=u;for(;u>t&&c>r&&this.ElementsAreEqual(u,c);)u--,c--;if(N[k]=u,y&&Math.abs(k-b)<=M&&u<=_[k])return s[0]=u,o[0]=c,A>=_[k]&&M<=1448?this.WALKTRACE(b,f,h,v,x,d,g,w,_,N,u,n,s,c,i,o,y,l):null}if(M<=1447){let k=new Int32Array(h-f+2);k[0]=b-f+1,Le.Copy2(_,f,k,1,h-f+1),this.m_forwardHistory.push(k),k=new Int32Array(g-d+2),k[0]=x-d+1,Le.Copy2(N,d,k,1,g-d+1),this.m_reverseHistory.push(k)}}return this.WALKTRACE(b,f,h,v,x,d,g,w,_,N,u,n,s,c,i,o,y,l)}PrettifyChanges(t){for(let n=0;n<t.length;n++){let r=t[n],i=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,s=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,o=r.originalLength>0,l=r.modifiedLength>0;for(;r.originalStart+r.originalLength<i&&r.modifiedStart+r.modifiedLength<s&&(!o||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!l||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){let c=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!c)break;r.originalStart++,r.modifiedStart++}let u=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],u)){t[n]=u[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){let r=t[n],i=0,s=0;if(n>0){let h=t[n-1];i=h.originalStart+h.originalLength,s=h.modifiedStart+h.modifiedLength}let o=r.originalLength>0,l=r.modifiedLength>0,u=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let h=1;;h++){let d=r.originalStart-h,g=r.modifiedStart-h;if(d<i||g<s||o&&!this.OriginalElementsAreEqual(d,d+r.originalLength)||l&&!this.ModifiedElementsAreEqual(g,g+r.modifiedLength))break;let m=(d===i&&g===s?5:0)+this._boundaryScore(d,r.originalLength,g,r.modifiedLength);m>c&&(c=m,u=h)}r.originalStart-=u,r.modifiedStart-=u;let f=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],f)){t[n-1]=f[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n<r;n++){let i=t[n-1],s=t[n],o=s.originalStart-i.originalStart-i.originalLength,l=i.originalStart,u=s.originalStart+s.originalLength,c=u-l,f=i.modifiedStart,h=s.modifiedStart+s.modifiedLength,d=h-f;if(o<5&&c<20&&d<20){let g=this._findBetterContiguousSequence(l,c,f,d,o);if(g){let[p,m]=g;(p!==i.originalStart+i.originalLength||m!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=p-i.originalStart,i.modifiedLength=m-i.modifiedStart,s.originalStart=p+o,s.modifiedStart=m+o,s.originalLength=u-s.originalStart,s.modifiedLength=h-s.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,r,i,s){if(n<s||i<s)return null;let o=t+n-s+1,l=r+i-s+1,u=0,c=0,f=0;for(let h=t;h<o;h++)for(let d=r;d<l;d++){let g=this._contiguousSequenceScore(h,d,s);g>0&&g>u&&(u=g,c=h,f=d)}return u>0?[c,f]:null}_contiguousSequenceScore(t,n,r){let i=0;for(let s=0;s<r;s++){if(!this.ElementsAreEqual(t+s,n+s))return 0;i+=this._originalStringElements[t+s].length}return i}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){let r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){let r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,i){let s=this._OriginalRegionIsBoundary(t,n)?1:0,o=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+o}ConcatenateChanges(t,n){let r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){let i=new Array(t.length+n.length-1);return Le.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],Le.Copy(n,1,i,t.length,n.length-1),i}else{let i=new Array(t.length+n.length);return Le.Copy(t,0,i,0,t.length),Le.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(ve.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),ve.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){let i=t.originalStart,s=t.originalLength,o=t.modifiedStart,l=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new ue(i,s,o,l),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,i){if(t>=0&&t<i)return t;let s=r,o=i-r-1,l=n%2===0;if(t<0){let u=s%2===0;return l===u?0:1}else{let u=o%2===0;return l===u?i-1:i-2}}};var Je,zn=globalThis.vscode;if(typeof zn<"u"&&typeof zn.process<"u"){let e=zn.process;Je={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"?Je={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Je={get platform(){return Ie?"win32":Dr?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};var pt=Je.cwd,Gr=Je.env,jr=Je.platform;var hs=65,fs=97,ds=90,ms=122,Se=46,Y=47,re=92,we=58,gs=63,Wt=class extends Error{constructor(t,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";let s=t.indexOf(".")!==-1?"property":"argument",o=`The "${t}" ${s} ${i} of type ${n}`;o+=`. Received type ${typeof r}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}};function ps(e,t){if(e===null||typeof e!="object")throw new Wt(t,"Object",e)}function $(e,t){if(typeof e!="string")throw new Wt(t,"string",e)}var Ce=jr==="win32";function P(e){return e===Y||e===re}function On(e){return e===Y}function Ne(e){return e>=hs&&e<=ds||e>=fs&&e<=ms}function zt(e,t,n,r){let i="",s=0,o=-1,l=0,u=0;for(let c=0;c<=e.length;++c){if(c<e.length)u=e.charCodeAt(c);else{if(r(u))break;u=Y}if(r(u)){if(!(o===c-1||l===1))if(l===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==Se||i.charCodeAt(i.length-2)!==Se){if(i.length>2){let f=i.lastIndexOf(n);f===-1?(i="",s=0):(i=i.slice(0,f),s=i.length-1-i.lastIndexOf(n)),o=c,l=0;continue}else if(i.length!==0){i="",s=0,o=c,l=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(o+1,c)}`:i=e.slice(o+1,c),s=c-o-1;o=c,l=0}else u===Se&&l!==-1?++l:l=-1}return i}function Qr(e,t){ps(t,"pathObject");let n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}var te={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],$(s,"path"),s.length===0)continue}else t.length===0?s=pt():(s=Gr[`=${t}`]||pt(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===re)&&(s=`${t}\\`));let o=s.length,l=0,u="",c=!1,f=s.charCodeAt(0);if(o===1)P(f)&&(l=1,c=!0);else if(P(f))if(c=!0,P(s.charCodeAt(1))){let h=2,d=h;for(;h<o&&!P(s.charCodeAt(h));)h++;if(h<o&&h!==d){let g=s.slice(d,h);for(d=h;h<o&&P(s.charCodeAt(h));)h++;if(h<o&&h!==d){for(d=h;h<o&&!P(s.charCodeAt(h));)h++;(h===o||h!==d)&&(u=`\\\\${g}\\${s.slice(d,h)}`,l=h)}}}else l=1;else Ne(f)&&s.charCodeAt(1)===we&&(u=s.slice(0,2),l=2,o>2&&P(s.charCodeAt(2))&&(c=!0,l=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,r=c,c&&t.length>0)break}return n=zt(n,!r,"\\",P),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){$(e,"path");let t=e.length;if(t===0)return".";let n=0,r,i=!1,s=e.charCodeAt(0);if(t===1)return On(s)?"\\":e;if(P(s))if(i=!0,P(e.charCodeAt(1))){let l=2,u=l;for(;l<t&&!P(e.charCodeAt(l));)l++;if(l<t&&l!==u){let c=e.slice(u,l);for(u=l;l<t&&P(e.charCodeAt(l));)l++;if(l<t&&l!==u){for(u=l;l<t&&!P(e.charCodeAt(l));)l++;if(l===t)return`\\\\${c}\\${e.slice(u)}\\`;l!==u&&(r=`\\\\${c}\\${e.slice(u,l)}`,n=l)}}}else n=1;else Ne(s)&&e.charCodeAt(1)===we&&(r=e.slice(0,2),n=2,t>2&&P(e.charCodeAt(2))&&(i=!0,n=3));let o=n<t?zt(e.slice(n),!i,"\\",P):"";return o.length===0&&!i&&(o="."),o.length>0&&P(e.charCodeAt(t-1))&&(o+="\\"),r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){$(e,"path");let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);return P(n)||t>2&&Ne(n)&&e.charCodeAt(1)===we&&P(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let s=0;s<e.length;++s){let o=e[s];$(o,"path"),o.length>0&&(t===void 0?t=n=o:t+=`\\${o}`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&P(n.charCodeAt(0))){++i;let s=n.length;s>1&&P(n.charCodeAt(1))&&(++i,s>2&&(P(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&P(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return te.normalize(t)},relative(e,t){if($(e,"from"),$(t,"to"),e===t)return"";let n=te.resolve(e),r=te.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===re;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===re;)s--;let o=s-i,l=0;for(;l<t.length&&t.charCodeAt(l)===re;)l++;let u=t.length;for(;u-1>l&&t.charCodeAt(u-1)===re;)u--;let c=u-l,f=o<c?o:c,h=-1,d=0;for(;d<f;d++){let p=e.charCodeAt(i+d);if(p!==t.charCodeAt(l+d))break;p===re&&(h=d)}if(d!==f){if(h===-1)return r}else{if(c>f){if(t.charCodeAt(l+d)===re)return r.slice(l+d+1);if(d===2)return r.slice(l+d)}o>f&&(e.charCodeAt(i+d)===re?h=d:d===2&&(h=3)),h===-1&&(h=0)}let g="";for(d=i+h+1;d<=s;++d)(d===s||e.charCodeAt(d)===re)&&(g+=g.length===0?"..":"\\..");return l+=h,g.length>0?`${g}${r.slice(l,u)}`:(r.charCodeAt(l)===re&&++l,r.slice(l,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;let t=te.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===re){if(t.charCodeAt(1)===re){let n=t.charCodeAt(2);if(n!==gs&&n!==Se)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Ne(t.charCodeAt(0))&&t.charCodeAt(1)===we&&t.charCodeAt(2)===re)return`\\\\?\\${t}`;return e},dirname(e){$(e,"path");let t=e.length;if(t===0)return".";let n=-1,r=0,i=e.charCodeAt(0);if(t===1)return P(i)?e:".";if(P(i)){if(n=r=1,P(e.charCodeAt(1))){let l=2,u=l;for(;l<t&&!P(e.charCodeAt(l));)l++;if(l<t&&l!==u){for(u=l;l<t&&P(e.charCodeAt(l));)l++;if(l<t&&l!==u){for(u=l;l<t&&!P(e.charCodeAt(l));)l++;if(l===t)return e;l!==u&&(n=r=l+1)}}}}else Ne(i)&&e.charCodeAt(1)===we&&(n=t>2&&P(e.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let l=t-1;l>=r;--l)if(P(e.charCodeAt(l))){if(!o){s=l;break}}else o=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&$(t,"ext"),$(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&Ne(e.charCodeAt(0))&&e.charCodeAt(1)===we&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,l=-1;for(s=e.length-1;s>=n;--s){let u=e.charCodeAt(s);if(P(u)){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),o>=0&&(u===t.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=n;--s)if(P(e.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){$(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===we&&Ne(e.charCodeAt(0))&&(t=r=2);for(let l=e.length-1;l>=t;--l){let u=e.charCodeAt(l);if(P(u)){if(!s){r=l+1;break}continue}i===-1&&(s=!1,i=l+1),u===Se?n===-1?n=l:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:Qr.bind(null,"\\"),parse(e){$(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let n=e.length,r=0,i=e.charCodeAt(0);if(n===1)return P(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(P(i)){if(r=1,P(e.charCodeAt(1))){let h=2,d=h;for(;h<n&&!P(e.charCodeAt(h));)h++;if(h<n&&h!==d){for(d=h;h<n&&P(e.charCodeAt(h));)h++;if(h<n&&h!==d){for(d=h;h<n&&!P(e.charCodeAt(h));)h++;h===n?r=h:h!==d&&(r=h+1)}}}}else if(Ne(i)&&e.charCodeAt(1)===we){if(n<=2)return t.root=t.dir=e,t;if(r=2,P(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,o=r,l=-1,u=!0,c=e.length-1,f=0;for(;c>=r;--c){if(i=e.charCodeAt(c),P(i)){if(!u){o=c+1;break}continue}l===-1&&(u=!1,l=c+1),i===Se?s===-1?s=c:f!==1&&(f=1):s!==-1&&(f=-1)}return l!==-1&&(s===-1||f===0||f===1&&s===l-1&&s===o+1?t.base=t.name=e.slice(o,l):(t.name=e.slice(o,s),t.base=e.slice(o,l),t.ext=e.slice(s,l))),o>0&&o!==r?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},bs=(()=>{if(Ce){let e=/\\/g;return()=>{let t=pt().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>pt()})(),ne={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:bs();$(i,"path"),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===Y)}return t=zt(t,!n,"/",On),n?`/${t}`:t.length>0?t:"."},normalize(e){if($(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===Y,n=e.charCodeAt(e.length-1)===Y;return e=zt(e,!t,"/",On),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return $(e,"path"),e.length>0&&e.charCodeAt(0)===Y},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){let r=e[n];$(r,"path"),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":ne.normalize(t)},relative(e,t){if($(e,"from"),$(t,"to"),e===t||(e=ne.resolve(e),t=ne.resolve(t),e===t))return"";let n=1,r=e.length,i=r-n,s=1,o=t.length-s,l=i<o?i:o,u=-1,c=0;for(;c<l;c++){let h=e.charCodeAt(n+c);if(h!==t.charCodeAt(s+c))break;h===Y&&(u=c)}if(c===l)if(o>l){if(t.charCodeAt(s+c)===Y)return t.slice(s+c+1);if(c===0)return t.slice(s+c)}else i>l&&(e.charCodeAt(n+c)===Y?u=c:c===0&&(u=0));let f="";for(c=n+u+1;c<=r;++c)(c===r||e.charCodeAt(c)===Y)&&(f+=f.length===0?"..":"/..");return`${f}${t.slice(s+u)}`},toNamespacedPath(e){return e},dirname(e){if($(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===Y,n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===Y){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&$(t,"ext"),$(e,"path");let n=0,r=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,l=-1;for(s=e.length-1;s>=0;--s){let u=e.charCodeAt(s);if(u===Y){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),o>=0&&(u===t.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===Y){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){$(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let o=e.length-1;o>=0;--o){let l=e.charCodeAt(o);if(l===Y){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),l===Se?t===-1?t=o:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||r===-1||s===0||s===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:Qr.bind(null,"/"),parse(e){$(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let n=e.charCodeAt(0)===Y,r;n?(t.root="/",r=1):r=0;let i=-1,s=0,o=-1,l=!0,u=e.length-1,c=0;for(;u>=r;--u){let f=e.charCodeAt(u);if(f===Y){if(!l){s=u+1;break}continue}o===-1&&(l=!1,o=u+1),f===Se?i===-1?i=u:c!==1&&(c=1):i!==-1&&(c=-1)}if(o!==-1){let f=s===0&&n?1:s;i===-1||c===0||c===1&&i===o-1&&i===s+1?t.base=t.name=e.slice(f,o):(t.name=e.slice(f,i),t.base=e.slice(f,o),t.ext=e.slice(i,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ne.win32=te.win32=te;ne.posix=te.posix=ne;var Zo=Ce?te.normalize:ne.normalize,Ko=Ce?te.resolve:ne.resolve,ea=Ce?te.relative:ne.relative,ta=Ce?te.dirname:ne.dirname,na=Ce?te.basename:ne.basename,ra=Ce?te.extname:ne.extname,ia=Ce?te.sep:ne.sep;var _s=/^\w[\w\d+.-]*$/,vs=/^\//,Ls=/^\/\//;function ws(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!_s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!vs.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Ls.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Ns(e,t){return!e&&!t?"file":e}function Ss(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==ce&&(t=ce+t):t=ce;break}return t}var O="",ce="/",Cs=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Re=class e{static isUri(t){return t instanceof e?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,r,i,s,o=!1){typeof t=="object"?(this.scheme=t.scheme||O,this.authority=t.authority||O,this.path=t.path||O,this.query=t.query||O,this.fragment=t.fragment||O):(this.scheme=Ns(t,o),this.authority=n||O,this.path=Ss(this.scheme,r||O),this.query=i||O,this.fragment=s||O,ws(this,o))}get fsPath(){return Hn(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:i,query:s,fragment:o}=t;return n===void 0?n=this.scheme:n===null&&(n=O),r===void 0?r=this.authority:r===null&&(r=O),i===void 0?i=this.path:i===null&&(i=O),s===void 0?s=this.query:s===null&&(s=O),o===void 0?o=this.fragment:o===null&&(o=O),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&o===this.fragment?this:new Ae(n,r,i,s,o)}static parse(t,n=!1){let r=Cs.exec(t);return r?new Ae(r[2]||O,Ot(r[4]||O),Ot(r[5]||O),Ot(r[7]||O),Ot(r[9]||O),n):new Ae(O,O,O,O,O)}static file(t){let n=O;if(Ie&&(t=t.replace(/\\/g,ce)),t[0]===ce&&t[1]===ce){let r=t.indexOf(ce,2);r===-1?(n=t.substring(2),t=ce):(n=t.substring(2,r),t=t.substring(r)||ce)}return new Ae("file",n,t,O,O)}static from(t,n){return new Ae(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return Ie&&t.scheme==="file"?r=e.file(te.join(Hn(t,!0),...n)).path:r=ne.join(t.path,...n),t.with({path:r})}toString(t=!1){return $n(this,t)}toJSON(){return this}static revive(t){var n,r;if(t){if(t instanceof e)return t;{let i=new Ae(t);return i._formatted=(n=t.external)!==null&&n!==void 0?n:null,i._fsPath=t._sep===Yr&&(r=t.fsPath)!==null&&r!==void 0?r:null,i}}else return t}},Yr=Ie?1:void 0,Ae=class extends Re{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Hn(this,!1)),this._fsPath}toString(t=!1){return t?$n(this,!0):(this._formatted||(this._formatted=$n(this,!1)),this._formatted)}toJSON(){let t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=Yr),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}},Zr={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Jr(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){let o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r!==void 0&&(r+=e.charAt(s));else{r===void 0&&(r=e.substr(0,s));let l=Zr[o];l!==void 0?(i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=l):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r!==void 0?r:e}function As(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=Zr[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function Hn(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Ie&&(n=n.replace(/\//g,"\\")),n}function $n(e,t){let n=t?As:Jr,r="",{scheme:i,authority:s,path:o,query:l,fragment:u}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=ce,r+=ce),s){let c=s.indexOf("@");if(c!==-1){let f=s.substr(0,c);s=s.substr(c+1),c=f.lastIndexOf(":"),c===-1?r+=n(f,!1,!1):(r+=n(f.substr(0,c),!1,!1),r+=":",r+=n(f.substr(c+1),!1,!0)),r+="@"}s=s.toLowerCase(),c=s.lastIndexOf(":"),c===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,c),!1,!0),r+=s.substr(c))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let c=o.charCodeAt(1);c>=65&&c<=90&&(o=`/${String.fromCharCode(c+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let c=o.charCodeAt(0);c>=65&&c<=90&&(o=`${String.fromCharCode(c+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return l&&(r+="?",r+=n(l,!1,!1)),u&&(r+="#",r+=t?u:Jr(u,!1,!1)),r}function Kr(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+Kr(e.substr(3)):e}}var Xr=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ot(e){return e.match(Xr)?e.replace(Xr,t=>Kr(t)):e}var Q=class e{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new e(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return e.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return e.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return e.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){let r=t.lineNumber|0,i=n.lineNumber|0;if(r===i){let s=t.column|0,o=n.column|0;return s-o}return r-i}clone(){return new e(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new e(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}};var q=class e{constructor(t,n,r,i){t>r||t===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return e.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,n){let r,i,s,o;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),n.endLineNumber>t.endLineNumber?(s=n.endLineNumber,o=n.endColumn):n.endLineNumber===t.endLineNumber?(s=n.endLineNumber,o=Math.max(n.endColumn,t.endColumn)):(s=t.endLineNumber,o=t.endColumn),new e(r,i,s,o)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,o=t.endColumn,l=n.startLineNumber,u=n.startColumn,c=n.endLineNumber,f=n.endColumn;return r<l?(r=l,i=u):r===l&&(i=Math.max(i,u)),s>c?(s=c,o=f):s===c&&(o=Math.min(o,f)),r>s||r===s&&i>o?null:new e(r,i,s,o)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(t){return new Q(t.endLineNumber,t.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(t){return new Q(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new e(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new e(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,n){if(t&&n){let s=t.startLineNumber|0,o=n.startLineNumber|0;if(s===o){let l=t.startColumn|0,u=n.startColumn|0;if(l===u){let c=t.endLineNumber|0,f=n.endLineNumber|0;if(c===f){let h=t.endColumn|0,d=n.endColumn|0;return h-d}return c-f}return l-u}return s-o}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};function e1(e,t,n=(r,i)=>r===i){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function*t1(e,t){let n,r;for(let i of e)r!==void 0&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function n1(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function r1(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function i1(e,t){for(let n of t)e.push(n)}var Gn;(function(e){function t(s){return s<0}e.isLessThan=t;function n(s){return s<=0}e.isLessThanOrEqual=n;function r(s){return s>0}e.isGreaterThan=r;function i(s){return s===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Gn||(Gn={}));function bt(e,t){return(n,r)=>t(e(n),e(r))}var xt=(e,t)=>e-t;function s1(e){return(t,n)=>-e(t,n)}var Ht=class e{constructor(t){this.iterate=t}toArray(){let t=[];return this.iterate(n=>(t.push(n),!0)),t}filter(t){return new e(n=>this.iterate(r=>t(r)?n(r):!0))}map(t){return new e(n=>this.iterate(r=>n(t(r))))}findLast(t){let n;return this.iterate(r=>(t(r)&&(n=r),!0)),n}findLastMaxBy(t){let n,r=!0;return this.iterate(i=>((r||Gn.isGreaterThan(t(i,n)))&&(r=!1,n=i),!0)),n}};Ht.empty=new Ht(e=>{});function jn(e){return e<0?0:e>255?255:e|0}function Be(e){return e<0?0:e>4294967295?4294967295:e|0}var $t=class{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=Be(t);let r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t),t+s),this.values.set(n,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=Be(t),n=Be(n),this.values[t]===n?!1:(this.values[t]=n,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,n){t=Be(t),n=Be(n);let r=this.values,i=this.prefixSum;if(t>=r.length)return!1;let s=r.length-t;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=Be(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,o=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],o=s-this.values[i],t<o)r=i-1;else if(t>=s)n=i+1;else break;return new Qn(i,t-o)}};var Qn=class{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}};var Gt=class{constructor(t,n,r,i){this._uri=t,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);let n=t.changes;for(let r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new Q(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i<n;i++)r[i]=this._lines[i].length+t;this._lineStarts=new $t(r)}}_setLineText(t,n){this._lines[t]=n,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,n){if(n.length===0)return;let r=Ir(n);if(r.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}r[r.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]);let i=new Uint32Array(r.length-1);for(let s=1;s<r.length;s++)this._lines.splice(t.lineNumber+s-1,0,r[s]),i[s-1]=r[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,i)}};var Rs="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function ys(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let n of Rs)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}var Jn=ys();function Xn(e){let t=Jn;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}var o1=new lt;o1.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function _t(e,t,n,r,i){if(t=Xn(t),i||(i=Oe.first(o1)),n.length>i.maxLen){let c=e-i.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,e+i.maxLen/2),_t(e,t,n,r,i)}let s=Date.now(),o=e-1-r,l=-1,u=null;for(let c=1;!(Date.now()-s>=i.timeBudget);c++){let f=o-i.windowSize*c;t.lastIndex=Math.max(0,f);let h=Es(t,n,o,l);if(!h&&u||(u=h,f<=0))break;l=f}if(u){let c={word:u[0],startColumn:r+1+u.index,endColumn:r+1+u.index+u[0].length};return t.lastIndex=0,c}return null}function Es(e,t,n,r){let i;for(;i=e.exec(t);){let s=i.index||0;if(s<=n&&e.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}var Xe=class e{constructor(t){let n=jn(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){let n=new Uint8Array(256);return n.fill(t),n}set(t,n){let r=jn(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}};var Zn=class{constructor(t,n,r){let i=new Uint8Array(t*n);for(let s=0,o=t*n;s<o;s++)i[s]=r;this._data=i,this.rows=t,this.cols=n}get(t,n){return this._data[t*this.cols+n]}set(t,n,r){this._data[t*this.cols+n]=r}},Kn=class{constructor(t){let n=0,r=0;for(let s=0,o=t.length;s<o;s++){let[l,u,c]=t[s];u>n&&(n=u),l>r&&(r=l),c>r&&(r=c)}n++,r++;let i=new Zn(r,n,0);for(let s=0,o=t.length;s<o;s++){let[l,u,c]=t[s];i.set(l,u,c)}this._states=i,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?0:this._states.get(t,n)}},Yn=null;function Ms(){return Yn===null&&(Yn=new Kn([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Yn}var vt=null;function Fs(){if(vt===null){vt=new Xe(0);let e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let n=0;n<e.length;n++)vt.set(e.charCodeAt(n),1);let t=".,;:";for(let n=0;n<t.length;n++)vt.set(t.charCodeAt(n),2)}return vt}var er=class e{static _createLink(t,n,r,i,s){let o=s-1;do{let l=n.charCodeAt(o);if(t.get(l)!==2)break;o--}while(o>i);if(i>0){let l=n.charCodeAt(i-1),u=n.charCodeAt(o);(l===40&&u===41||l===91&&u===93||l===123&&u===125)&&o--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:o+2},url:n.substring(i,o+1)}}static computeLinks(t,n=Ms()){let r=Fs(),i=[];for(let s=1,o=t.getLineCount();s<=o;s++){let l=t.getLineContent(s),u=l.length,c=0,f=0,h=0,d=1,g=!1,p=!1,m=!1,_=!1;for(;c<u;){let N=!1,b=l.charCodeAt(c);if(d===13){let x;switch(b){case 40:g=!0,x=0;break;case 41:x=g?0:1;break;case 91:m=!0,p=!0,x=0;break;case 93:m=!1,x=p?0:1;break;case 123:_=!0,x=0;break;case 125:x=_?0:1;break;case 39:case 34:case 96:h===b?x=1:h===39||h===34||h===96?x=0:x=1;break;case 42:x=h===42?1:0;break;case 124:x=h===124?1:0;break;case 32:x=m?0:1;break;default:x=r.get(b)}x===1&&(i.push(e._createLink(r,l,s,f,c)),N=!0)}else if(d===12){let x;b===91?(p=!0,x=0):x=r.get(b),x===1?N=!0:d=13}else d=n.nextState(d,b),d===0&&(N=!0);N&&(d=1,g=!1,p=!1,_=!1,f=c+1,h=b),c++}d===13&&i.push(e._createLink(r,l,s,f,u))}return i}};function a1(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:er.computeLinks(e)}var Ye=class{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,n,r,i,s){if(t&&n){let o=this.doNavigateValueSet(n,s);if(o)return{range:t,value:o}}if(r&&i){let o=this.doNavigateValueSet(i,s);if(o)return{range:r,value:o}}return null}doNavigateValueSet(t,n){let r=this.numberReplace(t,n);return r!==null?r:this.textReplace(t,n)}numberReplace(t,n){let r=Math.pow(10,t.length-(t.lastIndexOf(".")+1)),i=Number(t),s=parseFloat(t);return!isNaN(i)&&!isNaN(s)&&i===s?i===0&&!n?null:(i=Math.floor(i*r),i+=n?r:-r,String(i/r)):null}textReplace(t,n){return this.valueSetsReplace(this._defaultValueSet,t,n)}valueSetsReplace(t,n,r){let i=null;for(let s=0,o=t.length;i===null&&s<o;s++)i=this.valueSetReplace(t[s],n,r);return i}valueSetReplace(t,n,r){let i=t.indexOf(n);return i>=0?(i+=r?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}};Ye.INSTANCE=new Ye;var l1=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}),jt;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Ze?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Mt.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:l1})})(jt||(jt={}));var Ze=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?l1:(this._emitter||(this._emitter=new Z),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},Qt=class{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Ze),this._token}cancel(){this._token?this._token instanceof Ze&&this._token.cancel():this._token=jt.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof Ze&&this._token.dispose():this._token=jt.None}};var Lt=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}},Jt=new Lt,tr=new Lt,nr=new Lt,ks=new Array(230),Ds={},Ps=[],Is=Object.create(null),Ts=Object.create(null),c1=[],rr=[];for(let e=0;e<=193;e++)c1[e]=-1;for(let e=0;e<=132;e++)rr[e]=-1;(function(){let e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(let i of t){let[s,o,l,u,c,f,h,d,g]=i;if(r[o]||(r[o]=!0,Ps[o]=l,Is[l]=o,Ts[l.toLowerCase()]=o,s&&(c1[o]=u,u!==0&&u!==3&&u!==5&&u!==4&&u!==6&&u!==57&&(rr[u]=o))),!n[u]){if(n[u]=!0,!c)throw new Error(`String representation missing for key code ${u} around scan code ${l}`);Jt.define(u,c),tr.define(u,d||c),nr.define(u,g||d||c)}f&&(ks[f]=u),h&&(Ds[h]=u)}rr[3]=46})();var u1;(function(e){function t(l){return Jt.keyCodeToStr(l)}e.toString=t;function n(l){return Jt.strToKeyCode(l)}e.fromString=n;function r(l){return tr.keyCodeToStr(l)}e.toUserSettingsUS=r;function i(l){return nr.keyCodeToStr(l)}e.toUserSettingsGeneral=i;function s(l){return tr.strToKeyCode(l)||nr.strToKeyCode(l)}e.fromUserSettings=s;function o(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Jt.keyCodeToStr(l)}e.toElectronAccelerator=o})(u1||(u1={}));function h1(e,t){let n=(t&65535)<<16>>>0;return(e|n)>>>0}var Xt=class e extends q{constructor(t,n,r,i){super(t,n,r,i),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new e(this.startLineNumber,this.startColumn,t,n):new e(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new Q(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Q(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new e(t,n,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,i=t.length;r<i;r++)if(!this.selectionsEqual(t[r],n[r]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,r,i,s){return s===0?new e(t,n,r,i):new e(r,i,t,n)}};var f1=Object.create(null);function a(e,t){if(yr(t)){let n=f1[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return f1[e]=t,{id:e}}var E={add:a("add",6e4),plus:a("plus",6e4),gistNew:a("gist-new",6e4),repoCreate:a("repo-create",6e4),lightbulb:a("lightbulb",60001),lightBulb:a("light-bulb",60001),repo:a("repo",60002),repoDelete:a("repo-delete",60002),gistFork:a("gist-fork",60003),repoForked:a("repo-forked",60003),gitPullRequest:a("git-pull-request",60004),gitPullRequestAbandoned:a("git-pull-request-abandoned",60004),recordKeys:a("record-keys",60005),keyboard:a("keyboard",60005),tag:a("tag",60006),tagAdd:a("tag-add",60006),tagRemove:a("tag-remove",60006),gitPullRequestLabel:a("git-pull-request-label",60006),person:a("person",60007),personFollow:a("person-follow",60007),personOutline:a("person-outline",60007),personFilled:a("person-filled",60007),gitBranch:a("git-branch",60008),gitBranchCreate:a("git-branch-create",60008),gitBranchDelete:a("git-branch-delete",60008),sourceControl:a("source-control",60008),mirror:a("mirror",60009),mirrorPublic:a("mirror-public",60009),star:a("star",60010),starAdd:a("star-add",60010),starDelete:a("star-delete",60010),starEmpty:a("star-empty",60010),comment:a("comment",60011),commentAdd:a("comment-add",60011),alert:a("alert",60012),warning:a("warning",60012),search:a("search",60013),searchSave:a("search-save",60013),logOut:a("log-out",60014),signOut:a("sign-out",60014),logIn:a("log-in",60015),signIn:a("sign-in",60015),eye:a("eye",60016),eyeUnwatch:a("eye-unwatch",60016),eyeWatch:a("eye-watch",60016),circleFilled:a("circle-filled",60017),primitiveDot:a("primitive-dot",60017),closeDirty:a("close-dirty",60017),debugBreakpoint:a("debug-breakpoint",60017),debugBreakpointDisabled:a("debug-breakpoint-disabled",60017),debugHint:a("debug-hint",60017),primitiveSquare:a("primitive-square",60018),edit:a("edit",60019),pencil:a("pencil",60019),info:a("info",60020),issueOpened:a("issue-opened",60020),gistPrivate:a("gist-private",60021),gitForkPrivate:a("git-fork-private",60021),lock:a("lock",60021),mirrorPrivate:a("mirror-private",60021),close:a("close",60022),removeClose:a("remove-close",60022),x:a("x",60022),repoSync:a("repo-sync",60023),sync:a("sync",60023),clone:a("clone",60024),desktopDownload:a("desktop-download",60024),beaker:a("beaker",60025),microscope:a("microscope",60025),vm:a("vm",60026),deviceDesktop:a("device-desktop",60026),file:a("file",60027),fileText:a("file-text",60027),more:a("more",60028),ellipsis:a("ellipsis",60028),kebabHorizontal:a("kebab-horizontal",60028),mailReply:a("mail-reply",60029),reply:a("reply",60029),organization:a("organization",60030),organizationFilled:a("organization-filled",60030),organizationOutline:a("organization-outline",60030),newFile:a("new-file",60031),fileAdd:a("file-add",60031),newFolder:a("new-folder",60032),fileDirectoryCreate:a("file-directory-create",60032),trash:a("trash",60033),trashcan:a("trashcan",60033),history:a("history",60034),clock:a("clock",60034),folder:a("folder",60035),fileDirectory:a("file-directory",60035),symbolFolder:a("symbol-folder",60035),logoGithub:a("logo-github",60036),markGithub:a("mark-github",60036),github:a("github",60036),terminal:a("terminal",60037),console:a("console",60037),repl:a("repl",60037),zap:a("zap",60038),symbolEvent:a("symbol-event",60038),error:a("error",60039),stop:a("stop",60039),variable:a("variable",60040),symbolVariable:a("symbol-variable",60040),array:a("array",60042),symbolArray:a("symbol-array",60042),symbolModule:a("symbol-module",60043),symbolPackage:a("symbol-package",60043),symbolNamespace:a("symbol-namespace",60043),symbolObject:a("symbol-object",60043),symbolMethod:a("symbol-method",60044),symbolFunction:a("symbol-function",60044),symbolConstructor:a("symbol-constructor",60044),symbolBoolean:a("symbol-boolean",60047),symbolNull:a("symbol-null",60047),symbolNumeric:a("symbol-numeric",60048),symbolNumber:a("symbol-number",60048),symbolStructure:a("symbol-structure",60049),symbolStruct:a("symbol-struct",60049),symbolParameter:a("symbol-parameter",60050),symbolTypeParameter:a("symbol-type-parameter",60050),symbolKey:a("symbol-key",60051),symbolText:a("symbol-text",60051),symbolReference:a("symbol-reference",60052),goToFile:a("go-to-file",60052),symbolEnum:a("symbol-enum",60053),symbolValue:a("symbol-value",60053),symbolRuler:a("symbol-ruler",60054),symbolUnit:a("symbol-unit",60054),activateBreakpoints:a("activate-breakpoints",60055),archive:a("archive",60056),arrowBoth:a("arrow-both",60057),arrowDown:a("arrow-down",60058),arrowLeft:a("arrow-left",60059),arrowRight:a("arrow-right",60060),arrowSmallDown:a("arrow-small-down",60061),arrowSmallLeft:a("arrow-small-left",60062),arrowSmallRight:a("arrow-small-right",60063),arrowSmallUp:a("arrow-small-up",60064),arrowUp:a("arrow-up",60065),bell:a("bell",60066),bold:a("bold",60067),book:a("book",60068),bookmark:a("bookmark",60069),debugBreakpointConditionalUnverified:a("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:a("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:a("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:a("debug-breakpoint-data-unverified",60072),debugBreakpointData:a("debug-breakpoint-data",60073),debugBreakpointDataDisabled:a("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:a("debug-breakpoint-log-unverified",60074),debugBreakpointLog:a("debug-breakpoint-log",60075),debugBreakpointLogDisabled:a("debug-breakpoint-log-disabled",60075),briefcase:a("briefcase",60076),broadcast:a("broadcast",60077),browser:a("browser",60078),bug:a("bug",60079),calendar:a("calendar",60080),caseSensitive:a("case-sensitive",60081),check:a("check",60082),checklist:a("checklist",60083),chevronDown:a("chevron-down",60084),dropDownButton:a("drop-down-button",60084),chevronLeft:a("chevron-left",60085),chevronRight:a("chevron-right",60086),chevronUp:a("chevron-up",60087),chromeClose:a("chrome-close",60088),chromeMaximize:a("chrome-maximize",60089),chromeMinimize:a("chrome-minimize",60090),chromeRestore:a("chrome-restore",60091),circle:a("circle",60092),circleOutline:a("circle-outline",60092),debugBreakpointUnverified:a("debug-breakpoint-unverified",60092),circleSlash:a("circle-slash",60093),circuitBoard:a("circuit-board",60094),clearAll:a("clear-all",60095),clippy:a("clippy",60096),closeAll:a("close-all",60097),cloudDownload:a("cloud-download",60098),cloudUpload:a("cloud-upload",60099),code:a("code",60100),collapseAll:a("collapse-all",60101),colorMode:a("color-mode",60102),commentDiscussion:a("comment-discussion",60103),compareChanges:a("compare-changes",60157),creditCard:a("credit-card",60105),dash:a("dash",60108),dashboard:a("dashboard",60109),database:a("database",60110),debugContinue:a("debug-continue",60111),debugDisconnect:a("debug-disconnect",60112),debugPause:a("debug-pause",60113),debugRestart:a("debug-restart",60114),debugStart:a("debug-start",60115),debugStepInto:a("debug-step-into",60116),debugStepOut:a("debug-step-out",60117),debugStepOver:a("debug-step-over",60118),debugStop:a("debug-stop",60119),debug:a("debug",60120),deviceCameraVideo:a("device-camera-video",60121),deviceCamera:a("device-camera",60122),deviceMobile:a("device-mobile",60123),diffAdded:a("diff-added",60124),diffIgnored:a("diff-ignored",60125),diffModified:a("diff-modified",60126),diffRemoved:a("diff-removed",60127),diffRenamed:a("diff-renamed",60128),diff:a("diff",60129),discard:a("discard",60130),editorLayout:a("editor-layout",60131),emptyWindow:a("empty-window",60132),exclude:a("exclude",60133),extensions:a("extensions",60134),eyeClosed:a("eye-closed",60135),fileBinary:a("file-binary",60136),fileCode:a("file-code",60137),fileMedia:a("file-media",60138),filePdf:a("file-pdf",60139),fileSubmodule:a("file-submodule",60140),fileSymlinkDirectory:a("file-symlink-directory",60141),fileSymlinkFile:a("file-symlink-file",60142),fileZip:a("file-zip",60143),files:a("files",60144),filter:a("filter",60145),flame:a("flame",60146),foldDown:a("fold-down",60147),foldUp:a("fold-up",60148),fold:a("fold",60149),folderActive:a("folder-active",60150),folderOpened:a("folder-opened",60151),gear:a("gear",60152),gift:a("gift",60153),gistSecret:a("gist-secret",60154),gist:a("gist",60155),gitCommit:a("git-commit",60156),gitCompare:a("git-compare",60157),gitMerge:a("git-merge",60158),githubAction:a("github-action",60159),githubAlt:a("github-alt",60160),globe:a("globe",60161),grabber:a("grabber",60162),graph:a("graph",60163),gripper:a("gripper",60164),heart:a("heart",60165),home:a("home",60166),horizontalRule:a("horizontal-rule",60167),hubot:a("hubot",60168),inbox:a("inbox",60169),issueClosed:a("issue-closed",60324),issueReopened:a("issue-reopened",60171),issues:a("issues",60172),italic:a("italic",60173),jersey:a("jersey",60174),json:a("json",60175),bracket:a("bracket",60175),kebabVertical:a("kebab-vertical",60176),key:a("key",60177),law:a("law",60178),lightbulbAutofix:a("lightbulb-autofix",60179),linkExternal:a("link-external",60180),link:a("link",60181),listOrdered:a("list-ordered",60182),listUnordered:a("list-unordered",60183),liveShare:a("live-share",60184),loading:a("loading",60185),location:a("location",60186),mailRead:a("mail-read",60187),mail:a("mail",60188),markdown:a("markdown",60189),megaphone:a("megaphone",60190),mention:a("mention",60191),milestone:a("milestone",60192),gitPullRequestMilestone:a("git-pull-request-milestone",60192),mortarBoard:a("mortar-board",60193),move:a("move",60194),multipleWindows:a("multiple-windows",60195),mute:a("mute",60196),noNewline:a("no-newline",60197),note:a("note",60198),octoface:a("octoface",60199),openPreview:a("open-preview",60200),package:a("package",60201),paintcan:a("paintcan",60202),pin:a("pin",60203),play:a("play",60204),run:a("run",60204),plug:a("plug",60205),preserveCase:a("preserve-case",60206),preview:a("preview",60207),project:a("project",60208),pulse:a("pulse",60209),question:a("question",60210),quote:a("quote",60211),radioTower:a("radio-tower",60212),reactions:a("reactions",60213),references:a("references",60214),refresh:a("refresh",60215),regex:a("regex",60216),remoteExplorer:a("remote-explorer",60217),remote:a("remote",60218),remove:a("remove",60219),replaceAll:a("replace-all",60220),replace:a("replace",60221),repoClone:a("repo-clone",60222),repoForcePush:a("repo-force-push",60223),repoPull:a("repo-pull",60224),repoPush:a("repo-push",60225),report:a("report",60226),requestChanges:a("request-changes",60227),rocket:a("rocket",60228),rootFolderOpened:a("root-folder-opened",60229),rootFolder:a("root-folder",60230),rss:a("rss",60231),ruby:a("ruby",60232),saveAll:a("save-all",60233),saveAs:a("save-as",60234),save:a("save",60235),screenFull:a("screen-full",60236),screenNormal:a("screen-normal",60237),searchStop:a("search-stop",60238),server:a("server",60240),settingsGear:a("settings-gear",60241),settings:a("settings",60242),shield:a("shield",60243),smiley:a("smiley",60244),sortPrecedence:a("sort-precedence",60245),splitHorizontal:a("split-horizontal",60246),splitVertical:a("split-vertical",60247),squirrel:a("squirrel",60248),starFull:a("star-full",60249),starHalf:a("star-half",60250),symbolClass:a("symbol-class",60251),symbolColor:a("symbol-color",60252),symbolCustomColor:a("symbol-customcolor",60252),symbolConstant:a("symbol-constant",60253),symbolEnumMember:a("symbol-enum-member",60254),symbolField:a("symbol-field",60255),symbolFile:a("symbol-file",60256),symbolInterface:a("symbol-interface",60257),symbolKeyword:a("symbol-keyword",60258),symbolMisc:a("symbol-misc",60259),symbolOperator:a("symbol-operator",60260),symbolProperty:a("symbol-property",60261),wrench:a("wrench",60261),wrenchSubaction:a("wrench-subaction",60261),symbolSnippet:a("symbol-snippet",60262),tasklist:a("tasklist",60263),telescope:a("telescope",60264),textSize:a("text-size",60265),threeBars:a("three-bars",60266),thumbsdown:a("thumbsdown",60267),thumbsup:a("thumbsup",60268),tools:a("tools",60269),triangleDown:a("triangle-down",60270),triangleLeft:a("triangle-left",60271),triangleRight:a("triangle-right",60272),triangleUp:a("triangle-up",60273),twitter:a("twitter",60274),unfold:a("unfold",60275),unlock:a("unlock",60276),unmute:a("unmute",60277),unverified:a("unverified",60278),verified:a("verified",60279),versions:a("versions",60280),vmActive:a("vm-active",60281),vmOutline:a("vm-outline",60282),vmRunning:a("vm-running",60283),watch:a("watch",60284),whitespace:a("whitespace",60285),wholeWord:a("whole-word",60286),window:a("window",60287),wordWrap:a("word-wrap",60288),zoomIn:a("zoom-in",60289),zoomOut:a("zoom-out",60290),listFilter:a("list-filter",60291),listFlat:a("list-flat",60292),listSelection:a("list-selection",60293),selection:a("selection",60293),listTree:a("list-tree",60294),debugBreakpointFunctionUnverified:a("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:a("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:a("debug-breakpoint-function-disabled",60296),debugStackframeActive:a("debug-stackframe-active",60297),circleSmallFilled:a("circle-small-filled",60298),debugStackframeDot:a("debug-stackframe-dot",60298),debugStackframe:a("debug-stackframe",60299),debugStackframeFocused:a("debug-stackframe-focused",60299),debugBreakpointUnsupported:a("debug-breakpoint-unsupported",60300),symbolString:a("symbol-string",60301),debugReverseContinue:a("debug-reverse-continue",60302),debugStepBack:a("debug-step-back",60303),debugRestartFrame:a("debug-restart-frame",60304),callIncoming:a("call-incoming",60306),callOutgoing:a("call-outgoing",60307),menu:a("menu",60308),expandAll:a("expand-all",60309),feedback:a("feedback",60310),gitPullRequestReviewer:a("git-pull-request-reviewer",60310),groupByRefType:a("group-by-ref-type",60311),ungroupByRefType:a("ungroup-by-ref-type",60312),account:a("account",60313),gitPullRequestAssignee:a("git-pull-request-assignee",60313),bellDot:a("bell-dot",60314),debugConsole:a("debug-console",60315),library:a("library",60316),output:a("output",60317),runAll:a("run-all",60318),syncIgnored:a("sync-ignored",60319),pinned:a("pinned",60320),githubInverted:a("github-inverted",60321),debugAlt:a("debug-alt",60305),serverProcess:a("server-process",60322),serverEnvironment:a("server-environment",60323),pass:a("pass",60324),stopCircle:a("stop-circle",60325),playCircle:a("play-circle",60326),record:a("record",60327),debugAltSmall:a("debug-alt-small",60328),vmConnect:a("vm-connect",60329),cloud:a("cloud",60330),merge:a("merge",60331),exportIcon:a("export",60332),graphLeft:a("graph-left",60333),magnet:a("magnet",60334),notebook:a("notebook",60335),redo:a("redo",60336),checkAll:a("check-all",60337),pinnedDirty:a("pinned-dirty",60338),passFilled:a("pass-filled",60339),circleLargeFilled:a("circle-large-filled",60340),circleLarge:a("circle-large",60341),circleLargeOutline:a("circle-large-outline",60341),combine:a("combine",60342),gather:a("gather",60342),table:a("table",60343),variableGroup:a("variable-group",60344),typeHierarchy:a("type-hierarchy",60345),typeHierarchySub:a("type-hierarchy-sub",60346),typeHierarchySuper:a("type-hierarchy-super",60347),gitPullRequestCreate:a("git-pull-request-create",60348),runAbove:a("run-above",60349),runBelow:a("run-below",60350),notebookTemplate:a("notebook-template",60351),debugRerun:a("debug-rerun",60352),workspaceTrusted:a("workspace-trusted",60353),workspaceUntrusted:a("workspace-untrusted",60354),workspaceUnspecified:a("workspace-unspecified",60355),terminalCmd:a("terminal-cmd",60356),terminalDebian:a("terminal-debian",60357),terminalLinux:a("terminal-linux",60358),terminalPowershell:a("terminal-powershell",60359),terminalTmux:a("terminal-tmux",60360),terminalUbuntu:a("terminal-ubuntu",60361),terminalBash:a("terminal-bash",60362),arrowSwap:a("arrow-swap",60363),copy:a("copy",60364),personAdd:a("person-add",60365),filterFilled:a("filter-filled",60366),wand:a("wand",60367),debugLineByLine:a("debug-line-by-line",60368),inspect:a("inspect",60369),layers:a("layers",60370),layersDot:a("layers-dot",60371),layersActive:a("layers-active",60372),compass:a("compass",60373),compassDot:a("compass-dot",60374),compassActive:a("compass-active",60375),azure:a("azure",60376),issueDraft:a("issue-draft",60377),gitPullRequestClosed:a("git-pull-request-closed",60378),gitPullRequestDraft:a("git-pull-request-draft",60379),debugAll:a("debug-all",60380),debugCoverage:a("debug-coverage",60381),runErrors:a("run-errors",60382),folderLibrary:a("folder-library",60383),debugContinueSmall:a("debug-continue-small",60384),beakerStop:a("beaker-stop",60385),graphLine:a("graph-line",60386),graphScatter:a("graph-scatter",60387),pieChart:a("pie-chart",60388),bracketDot:a("bracket-dot",60389),bracketError:a("bracket-error",60390),lockSmall:a("lock-small",60391),azureDevops:a("azure-devops",60392),verifiedFilled:a("verified-filled",60393),newLine:a("newline",60394),layout:a("layout",60395),layoutActivitybarLeft:a("layout-activitybar-left",60396),layoutActivitybarRight:a("layout-activitybar-right",60397),layoutPanelLeft:a("layout-panel-left",60398),layoutPanelCenter:a("layout-panel-center",60399),layoutPanelJustify:a("layout-panel-justify",60400),layoutPanelRight:a("layout-panel-right",60401),layoutPanel:a("layout-panel",60402),layoutSidebarLeft:a("layout-sidebar-left",60403),layoutSidebarRight:a("layout-sidebar-right",60404),layoutStatusbar:a("layout-statusbar",60405),layoutMenubar:a("layout-menubar",60406),layoutCentered:a("layout-centered",60407),layoutSidebarRightOff:a("layout-sidebar-right-off",60416),layoutPanelOff:a("layout-panel-off",60417),layoutSidebarLeftOff:a("layout-sidebar-left-off",60418),target:a("target",60408),indent:a("indent",60409),recordSmall:a("record-small",60410),errorSmall:a("error-small",60411),arrowCircleDown:a("arrow-circle-down",60412),arrowCircleLeft:a("arrow-circle-left",60413),arrowCircleRight:a("arrow-circle-right",60414),arrowCircleUp:a("arrow-circle-up",60415),heartFilled:a("heart-filled",60420),map:a("map",60421),mapFilled:a("map-filled",60422),circleSmall:a("circle-small",60423),bellSlash:a("bell-slash",60424),bellSlashDot:a("bell-slash-dot",60425),commentUnresolved:a("comment-unresolved",60426),gitPullRequestGoToChanges:a("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:a("git-pull-request-new-changes",60428),searchFuzzy:a("search-fuzzy",60429),commentDraft:a("comment-draft",60430),send:a("send",60431),sparkle:a("sparkle",60432),insert:a("insert",60433),mic:a("mic",60434),thumbsDownFilled:a("thumbsdown-filled",60435),thumbsUpFilled:a("thumbsup-filled",60436),coffee:a("coffee",60437),snake:a("snake",60438),game:a("game",60439),vr:a("vr",60440),chip:a("chip",60441),piano:a("piano",60442),music:a("music",60443),micFilled:a("mic-filled",60444),gitFetch:a("git-fetch",60445),copilot:a("copilot",60446),lightbulbSparkle:a("lightbulb-sparkle",60447),lightbulbSparkleAutofix:a("lightbulb-sparkle-autofix",60447),robot:a("robot",60448),sparkleFilled:a("sparkle-filled",60449),diffSingle:a("diff-single",60450),diffMultiple:a("diff-multiple",60451),dialogError:a("dialog-error","error"),dialogWarning:a("dialog-warning","warning"),dialogInfo:a("dialog-info","info"),dialogClose:a("dialog-close","close"),treeItemExpanded:a("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:a("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:a("tree-filter-on-type-off","list-selection"),treeFilterClear:a("tree-filter-clear","close"),treeItemLoading:a("tree-item-loading","loading"),menuSelection:a("menu-selection","check"),menuSubmenu:a("menu-submenu","chevron-right"),menuBarMore:a("menubar-more","more"),scrollbarButtonLeft:a("scrollbar-button-left","triangle-left"),scrollbarButtonRight:a("scrollbar-button-right","triangle-right"),scrollbarButtonUp:a("scrollbar-button-up","triangle-up"),scrollbarButtonDown:a("scrollbar-button-down","triangle-down"),toolBarMore:a("toolbar-more","more"),quickInputBack:a("quick-input-back","arrow-left")};var Yt=class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Z,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,n){return this._tokenizationSupports.set(t,n),this.handleChange([t]),Pe(()=>{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){var r;(r=this._factories.get(t))===null||r===void 0||r.dispose();let i=new ir(this,t,n);return this._factories.set(t,i),Pe(()=>{let s=this._factories.get(t);!s||s!==i||(this._factories.delete(t),s.dispose())})}async getOrCreate(t){let n=this.get(t);if(n)return n;let r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;let r=this._factories.get(t);return!!(!r||r.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},ir=class extends ae{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){let t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}};var Zt=class{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};var d1;(function(e){let t=new Map;t.set(0,E.symbolMethod),t.set(1,E.symbolFunction),t.set(2,E.symbolConstructor),t.set(3,E.symbolField),t.set(4,E.symbolVariable),t.set(5,E.symbolClass),t.set(6,E.symbolStruct),t.set(7,E.symbolInterface),t.set(8,E.symbolModule),t.set(9,E.symbolProperty),t.set(10,E.symbolEvent),t.set(11,E.symbolOperator),t.set(12,E.symbolUnit),t.set(13,E.symbolValue),t.set(15,E.symbolEnum),t.set(14,E.symbolConstant),t.set(15,E.symbolEnum),t.set(16,E.symbolEnumMember),t.set(17,E.symbolKeyword),t.set(27,E.symbolSnippet),t.set(18,E.symbolText),t.set(19,E.symbolColor),t.set(20,E.symbolFile),t.set(21,E.symbolReference),t.set(22,E.symbolCustomColor),t.set(23,E.symbolFolder),t.set(24,E.symbolTypeParameter),t.set(25,E.account),t.set(26,E.issues);function n(s){let o=t.get(s);return o||(console.info("No codicon found for CompletionItemKind "+s),o=E.symbolProperty),o}e.toIcon=n;let r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,o){let l=r.get(s);return typeof l>"u"&&!o&&(l=9),l}e.fromString=i})(d1||(d1={}));var m1;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(m1||(m1={}));var g1;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(g1||(g1={}));var p1;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(p1||(p1={}));var Ha={17:W("Array","array"),16:W("Boolean","boolean"),4:W("Class","class"),13:W("Constant","constant"),8:W("Constructor","constructor"),9:W("Enum","enumeration"),21:W("EnumMember","enumeration member"),23:W("Event","event"),7:W("Field","field"),0:W("File","file"),11:W("Function","function"),10:W("Interface","interface"),19:W("Key","key"),5:W("Method","method"),1:W("Module","module"),2:W("Namespace","namespace"),20:W("Null","null"),15:W("Number","number"),18:W("Object","object"),24:W("Operator","operator"),3:W("Package","package"),6:W("Property","property"),14:W("String","string"),22:W("Struct","struct"),25:W("TypeParameter","type parameter"),12:W("Variable","variable")};var b1;(function(e){let t=new Map;t.set(0,E.symbolFile),t.set(1,E.symbolModule),t.set(2,E.symbolNamespace),t.set(3,E.symbolPackage),t.set(4,E.symbolClass),t.set(5,E.symbolMethod),t.set(6,E.symbolProperty),t.set(7,E.symbolField),t.set(8,E.symbolConstructor),t.set(9,E.symbolEnum),t.set(10,E.symbolInterface),t.set(11,E.symbolFunction),t.set(12,E.symbolVariable),t.set(13,E.symbolConstant),t.set(14,E.symbolString),t.set(15,E.symbolNumber),t.set(16,E.symbolBoolean),t.set(17,E.symbolArray),t.set(18,E.symbolObject),t.set(19,E.symbolKey),t.set(20,E.symbolNull),t.set(21,E.symbolEnumMember),t.set(22,E.symbolStruct),t.set(23,E.symbolEvent),t.set(24,E.symbolOperator),t.set(25,E.symbolTypeParameter);function n(r){let i=t.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=E.symbolProperty),i}e.toIcon=n})(b1||(b1={}));var ye=class e{static fromValue(t){switch(t){case"comment":return e.Comment;case"imports":return e.Imports;case"region":return e.Region}return new e(t)}constructor(t){this.value=t}};ye.Comment=new ye("comment");ye.Imports=new ye("imports");ye.Region=new ye("region");var x1;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(x1||(x1={}));var _1;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(_1||(_1={}));var $a=new Yt;var v1;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(v1||(v1={}));var L1;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(L1||(L1={}));var w1;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(w1||(w1={}));var N1;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(N1||(N1={}));var S1;(function(e){e[e.Deprecated=1]="Deprecated"})(S1||(S1={}));var C1;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(C1||(C1={}));var A1;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(A1||(A1={}));var R1;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(R1||(R1={}));var y1;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(y1||(y1={}));var E1;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(E1||(E1={}));var M1;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(M1||(M1={}));var F1;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.letterSpacing=63]="letterSpacing",e[e.lightbulb=64]="lightbulb",e[e.lineDecorationsWidth=65]="lineDecorationsWidth",e[e.lineHeight=66]="lineHeight",e[e.lineNumbers=67]="lineNumbers",e[e.lineNumbersMinChars=68]="lineNumbersMinChars",e[e.linkedEditing=69]="linkedEditing",e[e.links=70]="links",e[e.matchBrackets=71]="matchBrackets",e[e.minimap=72]="minimap",e[e.mouseStyle=73]="mouseStyle",e[e.mouseWheelScrollSensitivity=74]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=75]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=76]="multiCursorMergeOverlapping",e[e.multiCursorModifier=77]="multiCursorModifier",e[e.multiCursorPaste=78]="multiCursorPaste",e[e.multiCursorLimit=79]="multiCursorLimit",e[e.occurrencesHighlight=80]="occurrencesHighlight",e[e.overviewRulerBorder=81]="overviewRulerBorder",e[e.overviewRulerLanes=82]="overviewRulerLanes",e[e.padding=83]="padding",e[e.pasteAs=84]="pasteAs",e[e.parameterHints=85]="parameterHints",e[e.peekWidgetDefaultFocus=86]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=87]="definitionLinkOpensInPeek",e[e.quickSuggestions=88]="quickSuggestions",e[e.quickSuggestionsDelay=89]="quickSuggestionsDelay",e[e.readOnly=90]="readOnly",e[e.readOnlyMessage=91]="readOnlyMessage",e[e.renameOnType=92]="renameOnType",e[e.renderControlCharacters=93]="renderControlCharacters",e[e.renderFinalNewline=94]="renderFinalNewline",e[e.renderLineHighlight=95]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=96]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=97]="renderValidationDecorations",e[e.renderWhitespace=98]="renderWhitespace",e[e.revealHorizontalRightPadding=99]="revealHorizontalRightPadding",e[e.roundedSelection=100]="roundedSelection",e[e.rulers=101]="rulers",e[e.scrollbar=102]="scrollbar",e[e.scrollBeyondLastColumn=103]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=104]="scrollBeyondLastLine",e[e.scrollPredominantAxis=105]="scrollPredominantAxis",e[e.selectionClipboard=106]="selectionClipboard",e[e.selectionHighlight=107]="selectionHighlight",e[e.selectOnLineNumbers=108]="selectOnLineNumbers",e[e.showFoldingControls=109]="showFoldingControls",e[e.showUnused=110]="showUnused",e[e.snippetSuggestions=111]="snippetSuggestions",e[e.smartSelect=112]="smartSelect",e[e.smoothScrolling=113]="smoothScrolling",e[e.stickyScroll=114]="stickyScroll",e[e.stickyTabStops=115]="stickyTabStops",e[e.stopRenderingLineAfter=116]="stopRenderingLineAfter",e[e.suggest=117]="suggest",e[e.suggestFontSize=118]="suggestFontSize",e[e.suggestLineHeight=119]="suggestLineHeight",e[e.suggestOnTriggerCharacters=120]="suggestOnTriggerCharacters",e[e.suggestSelection=121]="suggestSelection",e[e.tabCompletion=122]="tabCompletion",e[e.tabIndex=123]="tabIndex",e[e.unicodeHighlighting=124]="unicodeHighlighting",e[e.unusualLineTerminators=125]="unusualLineTerminators",e[e.useShadowDOM=126]="useShadowDOM",e[e.useTabStops=127]="useTabStops",e[e.wordBreak=128]="wordBreak",e[e.wordSeparators=129]="wordSeparators",e[e.wordWrap=130]="wordWrap",e[e.wordWrapBreakAfterCharacters=131]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=132]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=133]="wordWrapColumn",e[e.wordWrapOverride1=134]="wordWrapOverride1",e[e.wordWrapOverride2=135]="wordWrapOverride2",e[e.wrappingIndent=136]="wrappingIndent",e[e.wrappingStrategy=137]="wrappingStrategy",e[e.showDeprecated=138]="showDeprecated",e[e.inlayHints=139]="inlayHints",e[e.editorClassName=140]="editorClassName",e[e.pixelRatio=141]="pixelRatio",e[e.tabFocusMode=142]="tabFocusMode",e[e.layoutInfo=143]="layoutInfo",e[e.wrappingInfo=144]="wrappingInfo",e[e.defaultColorDecorators=145]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=146]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=147]="inlineCompletionsAccessibilityVerbose"})(F1||(F1={}));var k1;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(k1||(k1={}));var D1;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(D1||(D1={}));var P1;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(P1||(P1={}));var I1;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(I1||(I1={}));var T1;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(T1||(T1={}));var B1;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(B1||(B1={}));var V1;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(V1||(V1={}));var Kt;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(Kt||(Kt={}));var en;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(en||(en={}));var tn;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(tn||(tn={}));var q1;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(q1||(q1={}));var U1;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(U1||(U1={}));var W1;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(W1||(W1={}));var z1;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(z1||(z1={}));var O1;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(O1||(O1={}));var H1;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(H1||(H1={}));var $1;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})($1||($1={}));var G1;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(G1||(G1={}));var j1;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(j1||(j1={}));var nn;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(nn||(nn={}));var Q1;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(Q1||(Q1={}));var J1;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(J1||(J1={}));var X1;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(X1||(X1={}));var Y1;(function(e){e[e.Deprecated=1]="Deprecated"})(Y1||(Y1={}));var Z1;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(Z1||(Z1={}));var K1;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(K1||(K1={}));var ei;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(ei||(ei={}));var ti;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(ti||(ti={}));var Ve=class{static chord(t,n){return h1(t,n)}};Ve.CtrlCmd=2048;Ve.Shift=1024;Ve.Alt=512;Ve.WinCtrl=256;function ni(){return{editor:void 0,languages:void 0,CancellationTokenSource:Qt,Emitter:Z,KeyCode:Kt,KeyMod:Ve,Position:Q,Range:q,Selection:Xt,SelectionDirection:nn,MarkerSeverity:en,MarkerTag:tn,Uri:Re,Token:Zt}}var sr=class extends Xe{constructor(t){super(0);for(let n=0,r=t.length;n<r;n++)this.set(t.charCodeAt(n),2);this.set(32,1),this.set(9,1)}};function Vs(e){let t={};return n=>(t.hasOwnProperty(n)||(t[n]=e(n)),t[n])}var qs=Vs(e=>new sr(e));var ri;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(ri||(ri={}));var ii;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(ii||(ii={}));var si;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(si||(si={}));var oi;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(oi||(oi={}));function Us(e,t,n,r,i){if(r===0)return!0;let s=t.charCodeAt(r-1);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){let o=t.charCodeAt(r);if(e.get(o)!==0)return!0}return!1}function Ws(e,t,n,r,i){if(r+i===n)return!0;let s=t.charCodeAt(r+i);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){let o=t.charCodeAt(r+i-1);if(e.get(o)!==0)return!0}return!1}function zs(e,t,n,r,i){return Us(e,t,n,r,i)&&Ws(e,t,n,r,i)}var rn=class{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){let n=t.length,r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;let i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Vr(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||zs(this._wordSeparators,t,n,i,s))return r}while(r);return null}};function ai(e,t="Unreachable"){throw new Error(t)}function Ke(e){if(!e()){debugger;e(),Et(new se("Assertion Failed"))}}function sn(e,t){let n=0;for(;n<e.length-1;){let r=e[n],i=e[n+1];if(!t(r,i))return!1;n++}return!0}var on=class{static computeUnicodeHighlights(t,n,r){let i=r?r.startLineNumber:1,s=r?r.endLineNumber:t.getLineCount(),o=new an(n),l=o.getCandidateCodePoints(),u;l==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${Os(Array.from(l))}`,"g");let c=new rn(null,u),f=[],h=!1,d,g=0,p=0,m=0;e:for(let _=i,N=s;_<=N;_++){let b=t.getLineContent(_),x=b.length;c.reset(0);do if(d=c.next(b),d){let v=d.index,w=d.index+d[0].length;if(v>0){let U=b.charCodeAt(v-1);Qe(U)&&v--}if(w+1<x){let U=b.charCodeAt(w-1);Qe(U)&&w++}let R=b.substring(v,w),y=_t(v+1,Jn,b,0);y&&y.endColumn<=v+1&&(y=null);let M=o.shouldHighlightNonBasicASCII(R,y?y.word:null);if(M!==0){if(M===3?g++:M===2?p++:M===1?m++:ai(M),f.length>=1e3){h=!0;break e}f.push(new q(_,v+1,_,w+1))}}while(d)}return{ranges:f,hasMore:h,ambiguousCharacterCount:g,invisibleCharacterCount:p,nonBasicAsciiCharacterCount:m}}static computeUnicodeHighlightReason(t,n){let r=new an(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{let s=t.codePointAt(0),o=r.ambiguousCharacters.getPrimaryConfusable(s),l=de.getLocales().filter(u=>!de.getInstance(new Set([...n.allowedLocales,u])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:l}}case 1:return{kind:2}}}};function Os(e,t){return`[${Pr(e.map(r=>String.fromCodePoint(r)).join(""))}]`}var an=class{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=de.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let t=new Set;if(this.options.invisibleCharacters)for(let n of Te.codePoints)li(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(let n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(let n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){let r=t.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(let o of n){let l=o.codePointAt(0),u=qr(o);i=i||u,!u&&!this.ambiguousCharacters.isAmbiguous(l)&&!Te.isInvisibleCharacter(l)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!li(t)&&Te.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}};function li(e){return e===" "||e===`
8
- `||e===" "}var Ee=class{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}},ln=class{constructor(t,n){this.lineRangeMapping=t,this.changes=n}};var I=class e{static addRange(t,n){let r=0;for(;r<n.length&&n[r].endExclusive<t.start;)r++;let i=r;for(;i<n.length&&n[i].start<=t.endExclusive;)i++;if(r===i)n.splice(r,0,t);else{let s=Math.min(t.start,n[r].start),o=Math.max(t.endExclusive,n[i-1].endExclusive);n.splice(r,i-r,new e(s,o))}}static tryCreate(t,n){if(!(t>n))return new e(t,n)}static ofLength(t){return new e(0,t)}static ofStartAndLength(t,n){return new e(t,t+n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new se(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new e(this.start+t,this.endExclusive+t)}deltaStart(t){return new e(this.start+t,this.endExclusive)}deltaEnd(t){return new e(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(t){return this.start===t.start&&this.endExclusive===t.endExclusive}containsRange(t){return this.start<=t.start&&t.endExclusive<=this.endExclusive}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new e(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){let n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);if(n<=r)return new e(n,r)}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new se(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new se(`Invalid clipping range: ${this.toString()}`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let n=this.start;n<this.endExclusive;n++)t(n)}};function xe(e,t){let n=qe(e,t);return n===-1?void 0:e[n]}function qe(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){let o=Math.floor((i+s)/2);t(e[o])?i=o+1:s=o}return i-1}function ui(e,t){let n=un(e,t);return n===e.length?void 0:e[n]}function un(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){let o=Math.floor((i+s)/2);t(e[o])?s=o:i=o+1}return i}var et=class e{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(e.assertInvariants){if(this._prevFindLastPredicate){for(let r of this._array)if(this._prevFindLastPredicate(r)&&!t(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}let n=qe(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};et.assertInvariants=!1;var T=class e{static fromRange(t){return new e(t.startLineNumber,t.endLineNumber)}static fromRangeInclusive(t){return new e(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let n=new Ue(t[0].slice());for(let r=1;r<t.length;r++)n=n.getUnion(new Ue(t[r].slice()));return n.ranges}static ofLength(t,n){return new e(t,t+n)}static deserialize(t){return new e(t[0],t[1])}constructor(t,n){if(t>n)throw new se(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new e(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new e(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new e(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){let n=Math.max(this.startLineNumber,t.startLineNumber),r=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=r)return new e(n,r)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){let n=[];for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)n.push(t(r));return n}forEach(t){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}toOffsetRange(){return new I(this.startLineNumber-1,this.endLineNumberExclusive-1)}},Ue=class e{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;let n=un(this._normalizedRanges,i=>i.endLineNumberExclusive>=t.startLineNumber),r=qe(this._normalizedRanges,i=>i.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,t);else if(n===r-1){let i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(t)}else{let i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(t);this._normalizedRanges.splice(n,r-n,i)}}contains(t){let n=xe(this._normalizedRanges,r=>r.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){let n=xe(this._normalizedRanges,r=>r.startLineNumber<t.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;let n=[],r=0,i=0,s=null;for(;r<this._normalizedRanges.length||i<t._normalizedRanges.length;){let o=null;if(r<this._normalizedRanges.length&&i<t._normalizedRanges.length){let l=this._normalizedRanges[r],u=t._normalizedRanges[i];l.startLineNumber<u.startLineNumber?(o=l,r++):(o=u,i++)}else r<this._normalizedRanges.length?(o=this._normalizedRanges[r],r++):(o=t._normalizedRanges[i],i++);s===null?s=o:s.endLineNumberExclusive>=o.startLineNumber?s=new T(s.startLineNumber,Math.max(s.endLineNumberExclusive,o.endLineNumberExclusive)):(n.push(s),s=o)}return s!==null&&n.push(s),new e(n)}subtractFrom(t){let n=un(this._normalizedRanges,o=>o.endLineNumberExclusive>=t.startLineNumber),r=qe(this._normalizedRanges,o=>o.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new e([t]);let i=[],s=t.startLineNumber;for(let o=n;o<r;o++){let l=this._normalizedRanges[o];l.startLineNumber>s&&i.push(new T(s,l.startLineNumber)),s=l.endLineNumberExclusive}return s<t.endLineNumberExclusive&&i.push(new T(s,t.endLineNumberExclusive)),new e(i)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){let n=[],r=0,i=0;for(;r<this._normalizedRanges.length&&i<t._normalizedRanges.length;){let s=this._normalizedRanges[r],o=t._normalizedRanges[i],l=s.intersect(o);l&&!l.isEmpty&&n.push(l),s.endLineNumberExclusive<o.endLineNumberExclusive?r++:i++}return new e(n)}getWithDelta(t){return new e(this._normalizedRanges.map(n=>n.delta(t)))}};var Me=class e{static inverse(t,n,r){let i=[],s=1,o=1;for(let u of t){let c=new he(new T(s,u.original.startLineNumber),new T(o,u.modified.startLineNumber),void 0);c.modified.isEmpty||i.push(c),s=u.original.endLineNumberExclusive,o=u.modified.endLineNumberExclusive}let l=new he(new T(s,n+1),new T(o,r+1),void 0);return l.modified.isEmpty||i.push(l),i}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new e(this.modified,this.original)}join(t){return new e(this.original.join(t.original),this.modified.join(t.modified))}},he=class e extends Me{constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){var t;return new e(this.modified,this.original,(t=this.innerChanges)===null||t===void 0?void 0:t.map(n=>n.flip()))}},We=class e{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new e(this.modifiedRange,this.originalRange)}};var Hs=3,cn=class{computeDiff(t,n,r){var i;let o=new ar(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),l=[],u=null;for(let c of o.changes){let f;c.originalEndLineNumber===0?f=new T(c.originalStartLineNumber+1,c.originalStartLineNumber+1):f=new T(c.originalStartLineNumber,c.originalEndLineNumber+1);let h;c.modifiedEndLineNumber===0?h=new T(c.modifiedStartLineNumber+1,c.modifiedStartLineNumber+1):h=new T(c.modifiedStartLineNumber,c.modifiedEndLineNumber+1);let d=new he(f,h,(i=c.charChanges)===null||i===void 0?void 0:i.map(g=>new We(new q(g.originalStartLineNumber,g.originalStartColumn,g.originalEndLineNumber,g.originalEndColumn),new q(g.modifiedStartLineNumber,g.modifiedStartColumn,g.modifiedEndLineNumber,g.modifiedEndColumn))));u&&(u.modified.endLineNumberExclusive===d.modified.startLineNumber||u.original.endLineNumberExclusive===d.original.startLineNumber)&&(d=new he(u.original.join(d.original),u.modified.join(d.modified),u.innerChanges&&d.innerChanges?u.innerChanges.concat(d.innerChanges):void 0),l.pop()),l.push(d),u=d}return Ke(()=>sn(l,(c,f)=>f.original.startLineNumber-c.original.endLineNumberExclusive===f.modified.startLineNumber-c.modified.endLineNumberExclusive&&c.original.endLineNumberExclusive<f.original.startLineNumber&&c.modified.endLineNumberExclusive<f.modified.startLineNumber)),new Ee(l,[],o.quitEarly)}};function hi(e,t,n,r){return new gt(e,t,n).ComputeDiff(r)}var hn=class{constructor(t){let n=[],r=[];for(let i=0,s=t.length;i<s;i++)n[i]=lr(t[i],1),r[i]=ur(t[i],1);this.lines=t,this._startColumns=n,this._endColumns=r}getElements(){let t=[];for(let n=0,r=this.lines.length;n<r;n++)t[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,n,r){let i=[],s=[],o=[],l=0;for(let u=n;u<=r;u++){let c=this.lines[u],f=t?this._startColumns[u]:1,h=t?this._endColumns[u]:c.length+1;for(let d=f;d<h;d++)i[l]=c.charCodeAt(d-1),s[l]=u+1,o[l]=d,l++;!t&&u<r&&(i[l]=10,s[l]=u+1,o[l]=c.length+1,l++)}return new or(i,s,o)}},or=class{constructor(t,n,r){this._charCodes=t,this._lineNumbers=n,this._columns=r}toString(){return"["+this._charCodes.map((t,n)=>(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}},tt=class e{constructor(t,n,r,i,s,o,l,u){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=o,this.modifiedEndLineNumber=l,this.modifiedEndColumn=u}static createFromDiffChange(t,n,r){let i=n.getStartLineNumber(t.originalStart),s=n.getStartColumn(t.originalStart),o=n.getEndLineNumber(t.originalStart+t.originalLength-1),l=n.getEndColumn(t.originalStart+t.originalLength-1),u=r.getStartLineNumber(t.modifiedStart),c=r.getStartColumn(t.modifiedStart),f=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),h=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new e(i,s,o,l,u,c,f,h)}};function $s(e){if(e.length<=1)return e;let t=[e[0]],n=t[0];for(let r=1,i=e.length;r<i;r++){let s=e[r],o=s.originalStart-(n.originalStart+n.originalLength),l=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(o,l)<Hs?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(t.push(s),n=s)}return t}var wt=class e{constructor(t,n,r,i,s){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=i,this.charChanges=s}static createFromDiffResult(t,n,r,i,s,o,l){let u,c,f,h,d;if(n.originalLength===0?(u=r.getStartLineNumber(n.originalStart)-1,c=0):(u=r.getStartLineNumber(n.originalStart),c=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(f=i.getStartLineNumber(n.modifiedStart)-1,h=0):(f=i.getStartLineNumber(n.modifiedStart),h=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),o&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){let g=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),p=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(g.getElements().length>0&&p.getElements().length>0){let m=hi(g,p,s,!0).changes;l&&(m=$s(m)),d=[];for(let _=0,N=m.length;_<N;_++)d.push(tt.createFromDiffChange(m[_],g,p))}}return new e(u,c,f,h,d)}},ar=class{constructor(t,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new hn(t),this.modified=new hn(n),this.continueLineDiff=ci(r.maxComputationTime),this.continueCharDiff=ci(r.maxComputationTime===0?0:Math.min(r.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};let t=hi(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,r=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){let l=[];for(let u=0,c=n.length;u<c;u++)l.push(wt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[u],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:l}}let i=[],s=0,o=0;for(let l=-1,u=n.length;l<u;l++){let c=l+1<u?n[l+1]:null,f=c?c.originalStart:this.originalLines.length,h=c?c.modifiedStart:this.modifiedLines.length;for(;s<f&&o<h;){let d=this.originalLines[s],g=this.modifiedLines[o];if(d!==g){{let p=lr(d,1),m=lr(g,1);for(;p>1&&m>1;){let _=d.charCodeAt(p-2),N=g.charCodeAt(m-2);if(_!==N)break;p--,m--}(p>1||m>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,p,o+1,1,m)}{let p=ur(d,1),m=ur(g,1),_=d.length+1,N=g.length+1;for(;p<_&&m<N;){let b=d.charCodeAt(p-1),x=d.charCodeAt(m-1);if(b!==x)break;p++,m++}(p<_||m<N)&&this._pushTrimWhitespaceCharChange(i,s+1,p,_,o+1,m,N)}}s++,o++}c&&(i.push(wt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=c.originalLength,o+=c.modifiedLength)}return{quitEarly:r,changes:i}}_pushTrimWhitespaceCharChange(t,n,r,i,s,o,l){if(this._mergeTrimWhitespaceCharChange(t,n,r,i,s,o,l))return;let u;this.shouldComputeCharChanges&&(u=[new tt(n,r,n,i,s,o,s,l)]),t.push(new wt(n,n,s,s,u))}_mergeTrimWhitespaceCharChange(t,n,r,i,s,o,l){let u=t.length;if(u===0)return!1;let c=t[u-1];return c.originalEndLineNumber===0||c.modifiedEndLineNumber===0?!1:c.originalEndLineNumber===n&&c.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new tt(n,r,n,i,s,o,s,l)),!0):c.originalEndLineNumber+1===n&&c.modifiedEndLineNumber+1===s?(c.originalEndLineNumber=n,c.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new tt(n,r,n,i,s,o,s,l)),!0):!1}};function lr(e,t){let n=Tr(e);return n===-1?t:n+1}function ur(e,t){let n=Br(e);return n===-1?t:n+2}function ci(e){if(e===0)return()=>!0;let t=Date.now();return()=>Date.now()-t<e}var me=class e{static trivial(t,n){return new e([new J(I.ofLength(t.length),I.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new e([new J(I.ofLength(t.length),I.ofLength(n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}},J=class e{static invert(t,n){let r=[];return n1(t,(i,s)=>{r.push(e.fromOffsetPairs(i?i.getEndExclusives():ie.zero,s?s.getStarts():new ie(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new e(new I(t.offset1,n.offset1),new I(t.offset2,n.offset2))}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new e(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new e(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new e(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new e(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new e(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){let n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new e(n,r)}getStarts(){return new ie(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new ie(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},ie=class{constructor(t,n){this.offset1=t,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}};ie.zero=new ie(0,0);ie.max=new ie(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);var ge=class{isValid(){return!0}};ge.instance=new ge;var fn=class{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new se("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}};var nt=class{constructor(t,n){this.width=t,this.height=n,this.array=[],this.array=new Array(t*n)}get(t,n){return this.array[t+n*this.width]}set(t,n,r){this.array[t+n*this.width]=r}};function Nt(e){return e===32||e===9}var rt=class e{static getKey(t){let n=this.chrKeys.get(t);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(t,n)),n}constructor(t,n,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let i=0;for(let s=t.startLineNumber-1;s<t.endLineNumberExclusive-1;s++){let o=n[s];for(let u=0;u<o.length;u++){i++;let c=o[u],f=e.getKey(c);this.histogram[f]=(this.histogram[f]||0)+1}i++;let l=e.getKey(`
9
- `);this.histogram[l]=(this.histogram[l]||0)+1}this.totalCount=i}computeSimilarity(t){var n,r;let i=0,s=Math.max(this.histogram.length,t.histogram.length);for(let o=0;o<s;o++)i+=Math.abs(((n=this.histogram[o])!==null&&n!==void 0?n:0)-((r=t.histogram[o])!==null&&r!==void 0?r:0));return 1-i/(this.totalCount+t.totalCount)}};rt.chrKeys=new Map;var dn=class{compute(t,n,r=ge.instance,i){if(t.length===0||n.length===0)return me.trivial(t,n);let s=new nt(t.length,n.length),o=new nt(t.length,n.length),l=new nt(t.length,n.length);for(let p=0;p<t.length;p++)for(let m=0;m<n.length;m++){if(!r.isValid())return me.trivialTimedOut(t,n);let _=p===0?0:s.get(p-1,m),N=m===0?0:s.get(p,m-1),b;t.getElement(p)===n.getElement(m)?(p===0||m===0?b=0:b=s.get(p-1,m-1),p>0&&m>0&&o.get(p-1,m-1)===3&&(b+=l.get(p-1,m-1)),b+=i?i(p,m):1):b=-1;let x=Math.max(_,N,b);if(x===b){let v=p>0&&m>0?l.get(p-1,m-1):0;l.set(p,m,v+1),o.set(p,m,3)}else x===_?(l.set(p,m,0),o.set(p,m,1)):x===N&&(l.set(p,m,0),o.set(p,m,2));s.set(p,m,x)}let u=[],c=t.length,f=n.length;function h(p,m){(p+1!==c||m+1!==f)&&u.push(new J(new I(p+1,c),new I(m+1,f))),c=p,f=m}let d=t.length-1,g=n.length-1;for(;d>=0&&g>=0;)o.get(d,g)===3?(h(d,g),d--,g--):o.get(d,g)===1?d--:g--;return h(-1,-1),u.reverse(),new me(u,!1)}};var it=class{compute(t,n,r=ge.instance){if(t.length===0||n.length===0)return me.trivial(t,n);let i=t,s=n;function o(m,_){for(;m<i.length&&_<s.length&&i.getElement(m)===s.getElement(_);)m++,_++;return m}let l=0,u=new cr;u.set(0,o(0,0));let c=new hr;c.set(0,u.get(0)===0?null:new mn(null,0,0,u.get(0)));let f=0;e:for(;;){if(l++,!r.isValid())return me.trivialTimedOut(i,s);let m=-Math.min(l,s.length+l%2),_=Math.min(l,i.length+l%2);for(f=m;f<=_;f+=2){let N=0,b=f===_?-1:u.get(f+1),x=f===m?-1:u.get(f-1)+1;N++;let v=Math.min(Math.max(b,x),i.length),w=v-f;if(N++,v>i.length||w>s.length)continue;let R=o(v,w);u.set(f,R);let y=v===b?c.get(f+1):c.get(f-1);if(c.set(f,R!==v?new mn(y,v,w,R-v):y),u.get(f)===i.length&&u.get(f)-f===s.length)break e}}let h=c.get(f),d=[],g=i.length,p=s.length;for(;;){let m=h?h.x+h.length:0,_=h?h.y+h.length:0;if((m!==g||_!==p)&&d.push(new J(new I(m,g),new I(_,p))),!h)break;g=h.x,p=h.y,h=h.prev}return d.reverse(),new me(d,!1)}},mn=class{constructor(t,n,r,i){this.prev=t,this.x=n,this.y=r,this.length=i}},cr=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){let r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){let r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[t]=n}}},hr=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}};var fi,di,fr=class{constructor(t,n){this.uri=t,this.value=n}};function Gs(e){return Array.isArray(e)}var dr=class e{constructor(t,n){if(this[fi]="ResourceMap",t instanceof e)this.map=new Map(t.map),this.toKey=n??e.defaultToKey;else if(Gs(t)){this.map=new Map,this.toKey=n??e.defaultToKey;for(let[r,i]of t)this.set(r,i)}else this.map=new Map,this.toKey=t??e.defaultToKey}set(t,n){return this.map.set(this.toKey(t),new fr(t,n)),this}get(t){var n;return(n=this.map.get(this.toKey(t)))===null||n===void 0?void 0:n.value}has(t){return this.map.has(this.toKey(t))}get size(){return this.map.size}clear(){this.map.clear()}delete(t){return this.map.delete(this.toKey(t))}forEach(t,n){typeof n<"u"&&(t=t.bind(n));for(let[r,i]of this.map)t(i.value,i.uri,this)}*values(){for(let t of this.map.values())yield t.value}*keys(){for(let t of this.map.values())yield t.uri}*entries(){for(let t of this.map.values())yield[t.uri,t.value]}*[(fi=Symbol.toStringTag,Symbol.iterator)](){for(let[,t]of this.map)yield[t.uri,t.value]}};dr.defaultToKey=e=>e.toString();var mi=class{constructor(){this[di]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var t;return(t=this._head)===null||t===void 0?void 0:t.value}get last(){var t;return(t=this._tail)===null||t===void 0?void 0:t.value}has(t){return this._map.has(t)}get(t,n=0){let r=this._map.get(t);if(r)return n!==0&&this.touch(r,n),r.value}set(t,n,r=0){let i=this._map.get(t);if(i)i.value=n,r!==0&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){let r=this._state,i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(di=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(t===this._head)return;let r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===2){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}};var gn=class{constructor(){this.map=new Map}add(t,n){let r=this.map.get(t);r||(r=new Set,this.map.set(t,r)),r.add(n)}delete(t,n){let r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){let r=this.map.get(t);r&&r.forEach(n)}get(t){let n=this.map.get(t);return n||new Set}};var Fe=class{constructor(t,n,r){this.lines=t,this.considerWhitespaceChanges=r,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let i=!1;n.start>0&&n.endExclusive>=t.length&&(n=new I(n.start-1,n.endExclusive),i=!0),this.lineRange=n,this.firstCharOffsetByLine[0]=0;for(let s=this.lineRange.start;s<this.lineRange.endExclusive;s++){let o=t[s],l=0;if(i)l=o.length,o="",i=!1;else if(!r){let u=o.trimStart();l=o.length-u.length,o=u.trimEnd()}this.additionalOffsetByLine.push(l);for(let u=0;u<o.length;u++)this.elements.push(o.charCodeAt(u));s<t.length-1&&(this.elements.push(10),this.firstCharOffsetByLine[s-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new I(0,this.length))}getText(t){return this.elements.slice(t.start,t.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){let n=pi(t>0?this.elements[t-1]:-1),r=pi(t<this.elements.length?this.elements[t]:-1);if(n===7&&r===8)return 0;let i=0;return n!==r&&(i+=10,n===0&&r===1&&(i+=1)),i+=gi(n),i+=gi(r),i}translateOffset(t){if(this.lineRange.isEmpty)return new Q(this.lineRange.start+1,1);let n=qe(this.firstCharOffsetByLine,r=>r<=t);return new Q(this.lineRange.start+n+1,t-this.firstCharOffsetByLine[n]+this.additionalOffsetByLine[n]+1)}translateRange(t){return q.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!mr(this.elements[t]))return;let n=t;for(;n>0&&mr(this.elements[n-1]);)n--;let r=t;for(;r<this.elements.length&&mr(this.elements[r]);)r++;return new I(n,r)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}isStronglyEqual(t,n){return this.elements[t]===this.elements[n]}extendToFullLines(t){var n,r;let i=(n=xe(this.firstCharOffsetByLine,o=>o<=t.start))!==null&&n!==void 0?n:0,s=(r=ui(this.firstCharOffsetByLine,o=>t.endExclusive<=o))!==null&&r!==void 0?r:this.elements.length;return new I(i,s)}};function mr(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}var js={0:0,1:0,2:0,3:10,4:2,5:3,6:3,7:10,8:10};function gi(e){return js[e]}function pi(e){return e===10?8:e===13?7:Nt(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function xi(e,t,n,r,i,s){let{moves:o,excludedChanges:l}=Js(e,t,n,s);if(!s.isValid())return[];let u=e.filter(f=>!l.has(f)),c=Xs(u,r,i,t,n,s);return i1(o,c),o=Ys(o),o=o.filter(f=>{let h=f.original.toOffsetRange().slice(t).map(g=>g.trim());return h.join(`
10
- `).length>=15&&Qs(h,g=>g.length>=2)>=2}),o=Zs(e,o),o}function Qs(e,t){let n=0;for(let r of e)t(r)&&n++;return n}function Js(e,t,n,r){let i=[],s=e.filter(u=>u.modified.isEmpty&&u.original.length>=3).map(u=>new rt(u.original,t,u)),o=new Set(e.filter(u=>u.original.isEmpty&&u.modified.length>=3).map(u=>new rt(u.modified,n,u))),l=new Set;for(let u of s){let c=-1,f;for(let h of o){let d=u.computeSimilarity(h);d>c&&(c=d,f=h)}if(c>.9&&f&&(o.delete(f),i.push(new Me(u.range,f.range)),l.add(u.source),l.add(f.source)),!r.isValid())return{moves:i,excludedChanges:l}}return{moves:i,excludedChanges:l}}function Xs(e,t,n,r,i,s){let o=[],l=new gn;for(let d of e)for(let g=d.original.startLineNumber;g<d.original.endLineNumberExclusive-2;g++){let p=`${t[g-1]}:${t[g+1-1]}:${t[g+2-1]}`;l.add(p,{range:new T(g,g+3)})}let u=[];e.sort(bt(d=>d.modified.startLineNumber,xt));for(let d of e){let g=[];for(let p=d.modified.startLineNumber;p<d.modified.endLineNumberExclusive-2;p++){let m=`${n[p-1]}:${n[p+1-1]}:${n[p+2-1]}`,_=new T(p,p+3),N=[];l.forEach(m,({range:b})=>{for(let v of g)if(v.originalLineRange.endLineNumberExclusive+1===b.endLineNumberExclusive&&v.modifiedLineRange.endLineNumberExclusive+1===_.endLineNumberExclusive){v.originalLineRange=new T(v.originalLineRange.startLineNumber,b.endLineNumberExclusive),v.modifiedLineRange=new T(v.modifiedLineRange.startLineNumber,_.endLineNumberExclusive),N.push(v);return}let x={modifiedLineRange:_,originalLineRange:b};u.push(x),N.push(x)}),g=N}if(!s.isValid())return[]}u.sort(s1(bt(d=>d.modifiedLineRange.length,xt)));let c=new Ue,f=new Ue;for(let d of u){let g=d.modifiedLineRange.startLineNumber-d.originalLineRange.startLineNumber,p=c.subtractFrom(d.modifiedLineRange),m=f.subtractFrom(d.originalLineRange).getWithDelta(g),_=p.getIntersection(m);for(let N of _.ranges){if(N.length<3)continue;let b=N,x=N.delta(-g);o.push(new Me(x,b)),c.addRange(b),f.addRange(x)}}o.sort(bt(d=>d.original.startLineNumber,xt));let h=new et(e);for(let d=0;d<o.length;d++){let g=o[d],p=h.findLastMonotonous(R=>R.original.startLineNumber<=g.original.startLineNumber),m=xe(e,R=>R.modified.startLineNumber<=g.modified.startLineNumber),_=Math.max(g.original.startLineNumber-p.original.startLineNumber,g.modified.startLineNumber-m.modified.startLineNumber),N=h.findLastMonotonous(R=>R.original.startLineNumber<g.original.endLineNumberExclusive),b=xe(e,R=>R.modified.startLineNumber<g.modified.endLineNumberExclusive),x=Math.max(N.original.endLineNumberExclusive-g.original.endLineNumberExclusive,b.modified.endLineNumberExclusive-g.modified.endLineNumberExclusive),v;for(v=0;v<_;v++){let R=g.original.startLineNumber-v-1,y=g.modified.startLineNumber-v-1;if(R>r.length||y>i.length||c.contains(y)||f.contains(R)||!bi(r[R-1],i[y-1],s))break}v>0&&(f.addRange(new T(g.original.startLineNumber-v,g.original.startLineNumber)),c.addRange(new T(g.modified.startLineNumber-v,g.modified.startLineNumber)));let w;for(w=0;w<x;w++){let R=g.original.endLineNumberExclusive+w,y=g.modified.endLineNumberExclusive+w;if(R>r.length||y>i.length||c.contains(y)||f.contains(R)||!bi(r[R-1],i[y-1],s))break}w>0&&(f.addRange(new T(g.original.endLineNumberExclusive,g.original.endLineNumberExclusive+w)),c.addRange(new T(g.modified.endLineNumberExclusive,g.modified.endLineNumberExclusive+w))),(v>0||w>0)&&(o[d]=new Me(new T(g.original.startLineNumber-v,g.original.endLineNumberExclusive+w),new T(g.modified.startLineNumber-v,g.modified.endLineNumberExclusive+w)))}return o}function bi(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;let i=new it().compute(new Fe([e],new I(0,1),!1),new Fe([t],new I(0,1),!1),n),s=0,o=J.invert(i.diffs,e.length);for(let f of o)f.seq1Range.forEach(h=>{Nt(e.charCodeAt(h))||s++});function l(f){let h=0;for(let d=0;d<e.length;d++)Nt(f.charCodeAt(d))||h++;return h}let u=l(e.length>t.length?e:t);return s/u>.6&&u>10}function Ys(e){if(e.length===0)return e;e.sort(bt(n=>n.original.startLineNumber,xt));let t=[e[0]];for(let n=1;n<e.length;n++){let r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,o=i.modified.startLineNumber-r.modified.endLineNumberExclusive;if(s>=0&&o>=0&&s+o<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function Zs(e,t){let n=new et(e);return t=t.filter(r=>{let i=n.findLastMonotonous(l=>l.original.startLineNumber<r.original.endLineNumberExclusive)||new Me(new T(1,1),new T(1,1)),s=xe(e,l=>l.modified.startLineNumber<r.modified.endLineNumberExclusive);return i!==s}),t}function gr(e,t,n){let r=n;return r=_i(e,t,r),r=_i(e,t,r),r=Ks(e,t,r),r}function _i(e,t,n){if(n.length===0)return n;let r=[];r.push(n[0]);for(let s=1;s<n.length;s++){let o=r[r.length-1],l=n[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){let u=l.seq1Range.start-o.seq1Range.endExclusive,c;for(c=1;c<=u&&!(e.getElement(l.seq1Range.start-c)!==e.getElement(l.seq1Range.endExclusive-c)||t.getElement(l.seq2Range.start-c)!==t.getElement(l.seq2Range.endExclusive-c));c++);if(c--,c===u){r[r.length-1]=new J(new I(o.seq1Range.start,l.seq1Range.endExclusive-u),new I(o.seq2Range.start,l.seq2Range.endExclusive-u));continue}l=l.delta(-c)}r.push(l)}let i=[];for(let s=0;s<r.length-1;s++){let o=r[s+1],l=r[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){let u=o.seq1Range.start-l.seq1Range.endExclusive,c;for(c=0;c<u&&!(!e.isStronglyEqual(l.seq1Range.start+c,l.seq1Range.endExclusive+c)||!t.isStronglyEqual(l.seq2Range.start+c,l.seq2Range.endExclusive+c));c++);if(c===u){r[s+1]=new J(new I(l.seq1Range.start+u,o.seq1Range.endExclusive),new I(l.seq2Range.start+u,o.seq2Range.endExclusive));continue}c>0&&(l=l.delta(c))}i.push(l)}return r.length>0&&i.push(r[r.length-1]),i}function Ks(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){let i=r>0?n[r-1]:void 0,s=n[r],o=r+1<n.length?n[r+1]:void 0,l=new I(i?i.seq1Range.start+1:0,o?o.seq1Range.endExclusive-1:e.length),u=new I(i?i.seq2Range.start+1:0,o?o.seq2Range.endExclusive-1:t.length);s.seq1Range.isEmpty?n[r]=vi(s,e,t,l,u):s.seq2Range.isEmpty&&(n[r]=vi(s.swap(),t,e,u,l).swap())}return n}function vi(e,t,n,r,i){let o=1;for(;e.seq1Range.start-o>=r.start&&e.seq2Range.start-o>=i.start&&n.isStronglyEqual(e.seq2Range.start-o,e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let l=0;for(;e.seq1Range.start+l<r.endExclusive&&e.seq2Range.endExclusive+l<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+l,e.seq2Range.endExclusive+l)&&l<100;)l++;if(o===0&&l===0)return e;let u=0,c=-1;for(let f=-o;f<=l;f++){let h=e.seq2Range.start+f,d=e.seq2Range.endExclusive+f,g=e.seq1Range.start+f,p=t.getBoundaryScore(g)+n.getBoundaryScore(h)+n.getBoundaryScore(d);p>c&&(c=p,u=f)}return e.delta(u)}function Li(e,t,n){let r=[];for(let i of n){let s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new J(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function wi(e,t,n){let r=[],i;function s(){if(!i)return;let l=i.s1Range.length-i.deleted,u=i.s2Range.length-i.added;Math.max(i.deleted,i.added)+(i.count-1)>l&&r.push(new J(i.s1Range,i.s2Range)),i=void 0}for(let l of n){let u=function(g,p){var m,_,N,b;if(!i||!i.s1Range.containsRange(g)||!i.s2Range.containsRange(p))if(i&&!(i.s1Range.endExclusive<g.start&&i.s2Range.endExclusive<p.start)){let w=I.tryCreate(i.s1Range.endExclusive,g.start),R=I.tryCreate(i.s2Range.endExclusive,p.start);i.deleted+=(m=w?.length)!==null&&m!==void 0?m:0,i.added+=(_=R?.length)!==null&&_!==void 0?_:0,i.s1Range=i.s1Range.join(g),i.s2Range=i.s2Range.join(p)}else s(),i={added:0,deleted:0,count:0,s1Range:g,s2Range:p};let x=g.intersect(l.seq1Range),v=p.intersect(l.seq2Range);i.count++,i.deleted+=(N=x?.length)!==null&&N!==void 0?N:0,i.added+=(b=v?.length)!==null&&b!==void 0?b:0},c=e.findWordContaining(l.seq1Range.start-1),f=t.findWordContaining(l.seq2Range.start-1),h=e.findWordContaining(l.seq1Range.endExclusive),d=t.findWordContaining(l.seq2Range.endExclusive);c&&h&&f&&d&&c.equals(h)&&f.equals(d)?u(c,f):(c&&f&&u(c,f),h&&d&&u(h,d))}return s(),eo(n,r)}function eo(e,t){let n=[];for(;e.length>0||t.length>0;){let r=e[0],i=t[0],s;r&&(!i||r.seq1Range.start<i.seq1Range.start)?s=e.shift():s=t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function Ni(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;let o=[r[0]];for(let l=1;l<r.length;l++){let f=function(d,g){let p=new I(c.seq1Range.endExclusive,u.seq1Range.start);return e.getText(p).replace(/\s/g,"").length<=4&&(d.seq1Range.length+d.seq2Range.length>5||g.seq1Range.length+g.seq2Range.length>5)},u=r[l],c=o[o.length-1];f(c,u)?(s=!0,o[o.length-1]=o[o.length-1].join(u)):o.push(u)}r=o}while(i++<10&&s);return r}function Si(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;let l=[r[0]];for(let u=1;u<r.length;u++){let h=function(g,p){let m=new I(f.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(m)>5||m.length>500)return!1;let N=e.getText(m).trim();if(N.length>20||N.split(/\r\n|\r|\n/).length>1)return!1;let b=e.countLinesIn(g.seq1Range),x=g.seq1Range.length,v=t.countLinesIn(g.seq2Range),w=g.seq2Range.length,R=e.countLinesIn(p.seq1Range),y=p.seq1Range.length,M=t.countLinesIn(p.seq2Range),U=p.seq2Range.length,j=2*40+50;function B(k){return Math.min(k,j)}return Math.pow(Math.pow(B(b*40+x),1.5)+Math.pow(B(v*40+w),1.5),1.5)+Math.pow(Math.pow(B(R*40+y),1.5)+Math.pow(B(M*40+U),1.5),1.5)>(j**1.5)**1.5*1.3},c=r[u],f=l[l.length-1];h(f,c)?(s=!0,l[l.length-1]=l[l.length-1].join(c)):l.push(c)}r=l}while(i++<10&&s);let o=[];return r1(r,(l,u,c)=>{let f=u;function h(N){return N.length>0&&N.trim().length<=3&&u.seq1Range.length+u.seq2Range.length>100}let d=e.extendToFullLines(u.seq1Range),g=e.getText(new I(d.start,u.seq1Range.start));h(g)&&(f=f.deltaStart(-g.length));let p=e.getText(new I(u.seq1Range.endExclusive,d.endExclusive));h(p)&&(f=f.deltaEnd(p.length));let m=J.fromOffsetPairs(l?l.getEndExclusives():ie.zero,c?c.getStarts():ie.max),_=f.intersect(m);o.push(_)}),o}var St=class{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){let n=t===0?0:Ci(this.lines[t-1]),r=t===this.lines.length?0:Ci(this.lines[t]);return 1e3-(n+r)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(`
11
- `)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}};function Ci(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}var pn=class{constructor(){this.dynamicProgrammingDiffing=new dn,this.myersDiffingAlgorithm=new it}computeDiff(t,n,r){if(t.length<=1&&e1(t,n,(w,R)=>w===R))return new Ee([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new Ee([new he(new T(1,t.length+1),new T(1,n.length+1),[new We(new q(1,1,t.length,t[0].length+1),new q(1,1,n.length,n[0].length+1))])],[],!1);let i=r.maxComputationTimeMs===0?ge.instance:new fn(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,o=new Map;function l(w){let R=o.get(w);return R===void 0&&(R=o.size,o.set(w,R)),R}let u=t.map(w=>l(w.trim())),c=n.map(w=>l(w.trim())),f=new St(u,t),h=new St(c,n),d=f.length+h.length<1700?this.dynamicProgrammingDiffing.compute(f,h,i,(w,R)=>t[w]===n[R]?n[R].length===0?.1:1+Math.log(1+n[R].length):.99):this.myersDiffingAlgorithm.compute(f,h),g=d.diffs,p=d.hitTimeout;g=gr(f,h,g),g=Ni(f,h,g);let m=[],_=w=>{if(s)for(let R=0;R<w;R++){let y=N+R,M=b+R;if(t[y]!==n[M]){let U=this.refineDiff(t,n,new J(new I(y,y+1),new I(M,M+1)),i,s);for(let j of U.mappings)m.push(j);U.hitTimeout&&(p=!0)}}},N=0,b=0;for(let w of g){Ke(()=>w.seq1Range.start-N===w.seq2Range.start-b);let R=w.seq1Range.start-N;_(R),N=w.seq1Range.endExclusive,b=w.seq2Range.endExclusive;let y=this.refineDiff(t,n,w,i,s);y.hitTimeout&&(p=!0);for(let M of y.mappings)m.push(M)}_(t.length-N);let x=Ai(m,t,n),v=[];return r.computeMoves&&(v=this.computeMoves(x,t,n,u,c,i,s)),Ke(()=>{function w(y,M){if(y.lineNumber<1||y.lineNumber>M.length)return!1;let U=M[y.lineNumber-1];return!(y.column<1||y.column>U.length+1)}function R(y,M){return!(y.startLineNumber<1||y.startLineNumber>M.length+1||y.endLineNumberExclusive<1||y.endLineNumberExclusive>M.length+1)}for(let y of x){if(!y.innerChanges)return!1;for(let M of y.innerChanges)if(!(w(M.modifiedRange.getStartPosition(),n)&&w(M.modifiedRange.getEndPosition(),n)&&w(M.originalRange.getStartPosition(),t)&&w(M.originalRange.getEndPosition(),t)))return!1;if(!R(y.modified,n)||!R(y.original,t))return!1}return!0}),new Ee(x,v,p)}computeMoves(t,n,r,i,s,o,l){return xi(t,n,r,i,s,o).map(f=>{let h=this.refineDiff(n,r,new J(f.original.toOffsetRange(),f.modified.toOffsetRange()),o,l),d=Ai(h.mappings,n,r,!0);return new ln(f,d)})}refineDiff(t,n,r,i,s){let o=new Fe(t,r.seq1Range,s),l=new Fe(n,r.seq2Range,s),u=o.length+l.length<500?this.dynamicProgrammingDiffing.compute(o,l,i):this.myersDiffingAlgorithm.compute(o,l,i),c=u.diffs;return c=gr(o,l,c),c=wi(o,l,c),c=Li(o,l,c),c=Si(o,l,c),{mappings:c.map(h=>new We(o.translateRange(h.seq1Range),l.translateRange(h.seq2Range))),hitTimeout:u.hitTimeout}}};function Ai(e,t,n,r=!1){let i=[];for(let s of t1(e.map(o=>to(o,t,n)),(o,l)=>o.original.overlapOrTouch(l.original)||o.modified.overlapOrTouch(l.modified))){let o=s[0],l=s[s.length-1];i.push(new he(o.original.join(l.original),o.modified.join(l.modified),s.map(u=>u.innerChanges[0])))}return Ke(()=>!r&&i.length>0&&i[0].original.startLineNumber!==i[0].modified.startLineNumber?!1:sn(i,(s,o)=>o.original.startLineNumber-s.original.endLineNumberExclusive===o.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<o.original.startLineNumber&&s.modified.endLineNumberExclusive<o.modified.startLineNumber)),i}function to(e,t,n){let r=0,i=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1),e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);let s=new T(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),o=new T(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new he(s,o,[e])}var pr={getLegacy:()=>new cn,getDefault:()=>new pn};function ke(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}var G=class{constructor(t,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}},pe=class e{constructor(t,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=ke(Math.max(Math.min(1,n),0),3),this.l=ke(Math.max(Math.min(1,r),0),3),this.a=ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,s=t.a,o=Math.max(n,r,i),l=Math.min(n,r,i),u=0,c=0,f=(l+o)/2,h=o-l;if(h>0){switch(c=Math.min(f<=.5?h/(2*f):h/(2-2*f),1),o){case n:u=(r-i)/h+(r<i?6:0);break;case r:u=(i-n)/h+2;break;case i:u=(n-r)/h+4;break}u*=60,u=Math.round(u)}return new e(u,c,f,s)}static _hue2rgb(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}static toRGBA(t){let n=t.h/360,{s:r,l:i,a:s}=t,o,l,u;if(r===0)o=l=u=i;else{let c=i<.5?i*(1+r):i+r-i*r,f=2*i-c;o=e._hue2rgb(f,c,n+1/3),l=e._hue2rgb(f,c,n),u=e._hue2rgb(f,c,n-1/3)}return new G(Math.round(o*255),Math.round(l*255),Math.round(u*255),s)}},st=class e{constructor(t,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=ke(Math.max(Math.min(1,n),0),3),this.v=ke(Math.max(Math.min(1,r),0),3),this.a=ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,s=Math.max(n,r,i),o=Math.min(n,r,i),l=s-o,u=s===0?0:l/s,c;return l===0?c=0:s===n?c=((r-i)/l%6+6)%6:s===r?c=(i-n)/l+2:c=(n-r)/l+4,new e(Math.round(c*60),u,s,t.a)}static toRGBA(t){let{h:n,s:r,v:i,a:s}=t,o=i*r,l=o*(1-Math.abs(n/60%2-1)),u=i-o,[c,f,h]=[0,0,0];return n<60?(c=o,f=l):n<120?(c=l,f=o):n<180?(f=o,h=l):n<240?(f=l,h=o):n<300?(c=l,h=o):n<=360&&(c=o,h=l),c=Math.round((c+u)*255),f=Math.round((f+u)*255),h=Math.round((h+u)*255),new G(c,f,h,s)}},H=class e{static fromHex(t){return e.Format.CSS.parseHex(t)||e.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:pe.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:st.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof G)this.rgba=t;else if(t instanceof pe)this._hsla=t,this.rgba=pe.toRGBA(t);else if(t instanceof st)this._hsva=t,this.rgba=st.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&G.equals(this.rgba,t.rgba)&&pe.equals(this.hsla,t.hsla)&&st.equals(this.hsva,t.hsva)}getRelativeLuminance(){let t=e._relativeLuminanceForComponent(this.rgba.r),n=e._relativeLuminanceForComponent(this.rgba.g),r=e._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*n+.0722*r;return ke(i,4)}static _relativeLuminanceForComponent(t){let n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){let n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){let n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n<r}lighten(t){return new e(new pe(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new e(new pe(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){let{r:n,g:r,b:i,a:s}=this.rgba;return new e(new G(n,r,i,s*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new e(new G(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;let{r:n,g:r,b:i,a:s}=this.rgba;return new e(new G(t.rgba.r-s*(t.rgba.r-n),t.rgba.g-s*(t.rgba.g-r),t.rgba.b-s*(t.rgba.b-i),1))}toString(){return this._toString||(this._toString=e.Format.CSS.format(this)),this._toString}static getLighterColor(t,n,r){if(t.isLighterThan(n))return t;r=r||.5;let i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(s-i)/s,t.lighten(r)}static getDarkerColor(t,n,r){if(t.isDarkerThan(n))return t;r=r||.5;let i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(i-s)/i,t.darken(r)}};H.white=new H(new G(255,255,255,1));H.black=new H(new G(0,0,0,1));H.red=new H(new G(255,0,0,1));H.blue=new H(new G(0,0,255,1));H.green=new H(new G(0,255,0,1));H.cyan=new H(new G(0,255,255,1));H.lightgrey=new H(new G(211,211,211,1));H.transparent=new H(new G(0,0,0,0));(function(e){let t;(function(n){let r;(function(i){function s(m){return m.rgba.a===1?`rgb(${m.rgba.r}, ${m.rgba.g}, ${m.rgba.b})`:e.Format.CSS.formatRGBA(m)}i.formatRGB=s;function o(m){return`rgba(${m.rgba.r}, ${m.rgba.g}, ${m.rgba.b}, ${+m.rgba.a.toFixed(2)})`}i.formatRGBA=o;function l(m){return m.hsla.a===1?`hsl(${m.hsla.h}, ${(m.hsla.s*100).toFixed(2)}%, ${(m.hsla.l*100).toFixed(2)}%)`:e.Format.CSS.formatHSLA(m)}i.formatHSL=l;function u(m){return`hsla(${m.hsla.h}, ${(m.hsla.s*100).toFixed(2)}%, ${(m.hsla.l*100).toFixed(2)}%, ${m.hsla.a.toFixed(2)})`}i.formatHSLA=u;function c(m){let _=m.toString(16);return _.length!==2?"0"+_:_}function f(m){return`#${c(m.rgba.r)}${c(m.rgba.g)}${c(m.rgba.b)}`}i.formatHex=f;function h(m,_=!1){return _&&m.rgba.a===1?e.Format.CSS.formatHex(m):`#${c(m.rgba.r)}${c(m.rgba.g)}${c(m.rgba.b)}${c(Math.round(m.rgba.a*255))}`}i.formatHexA=h;function d(m){return m.isOpaque()?e.Format.CSS.formatHex(m):e.Format.CSS.formatRGBA(m)}i.format=d;function g(m){let _=m.length;if(_===0||m.charCodeAt(0)!==35)return null;if(_===7){let N=16*p(m.charCodeAt(1))+p(m.charCodeAt(2)),b=16*p(m.charCodeAt(3))+p(m.charCodeAt(4)),x=16*p(m.charCodeAt(5))+p(m.charCodeAt(6));return new e(new G(N,b,x,1))}if(_===9){let N=16*p(m.charCodeAt(1))+p(m.charCodeAt(2)),b=16*p(m.charCodeAt(3))+p(m.charCodeAt(4)),x=16*p(m.charCodeAt(5))+p(m.charCodeAt(6)),v=16*p(m.charCodeAt(7))+p(m.charCodeAt(8));return new e(new G(N,b,x,v/255))}if(_===4){let N=p(m.charCodeAt(1)),b=p(m.charCodeAt(2)),x=p(m.charCodeAt(3));return new e(new G(16*N+N,16*b+b,16*x+x))}if(_===5){let N=p(m.charCodeAt(1)),b=p(m.charCodeAt(2)),x=p(m.charCodeAt(3)),v=p(m.charCodeAt(4));return new e(new G(16*N+N,16*b+b,16*x+x,(16*v+v)/255))}return null}i.parseHex=g;function p(m){switch(m){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(r=n.CSS||(n.CSS={}))})(t=e.Format||(e.Format={}))})(H||(H={}));function Ei(e){let t=[];for(let n of e){let r=Number(n);(r||r===0&&n.replace(/\s/g,"")!=="")&&t.push(r)}return t}function br(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Ct(e,t){let n=t.index,r=t[0].length;if(!n)return;let i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function no(e,t){if(!e)return;let n=H.Format.CSS.parseHex(t);if(n)return{range:e,color:br(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Ri(e,t,n){if(!e||t.length!==1)return;let i=t[0].values(),s=Ei(i);return{range:e,color:br(s[0],s[1],s[2],n?s[3]:1)}}function yi(e,t,n){if(!e||t.length!==1)return;let i=t[0].values(),s=Ei(i),o=new H(new pe(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:e,color:br(o.rgba.r,o.rgba.g,o.rgba.b,o.rgba.a)}}function At(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function ro(e){let t=[],r=At(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(r.length>0)for(let i of r){let s=i.filter(c=>c!==void 0),o=s[1],l=s[2];if(!l)continue;let u;if(o==="rgb"){let c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;u=Ri(Ct(e,i),At(l,c),!1)}else if(o==="rgba"){let c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=Ri(Ct(e,i),At(l,c),!0)}else if(o==="hsl"){let c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;u=yi(Ct(e,i),At(l,c),!1)}else if(o==="hsla"){let c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=yi(Ct(e,i),At(l,c),!0)}else o==="#"&&(u=no(Ct(e,i),o+l));u&&t.push(u)}return t}function Mi(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:ro(e)}var xr=class extends Gt{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){let n=[];for(let r=0;r<this._lines.length;r++){let i=this._lines[r],s=this.offsetAt(new Q(r+1,1)),o=i.matchAll(t);for(let l of o)(l.index||l.index===0)&&(l.index=l.index+s),n.push(l)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,n){let r=_t(t.column,Xn(n),this._lines[t.lineNumber-1],0);return r?new q(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):null}words(t){let n=this._lines,r=this._wordenize.bind(this),i=0,s="",o=0,l=[];return{*[Symbol.iterator](){for(;;)if(o<l.length){let u=s.substring(l[o].start,l[o].end);o+=1,yield u}else if(i<n.length)s=n[i],l=r(s,t),o=0,i+=1;else break}}}getLineWords(t,n){let r=this._lines[t-1],i=this._wordenize(r,n),s=[];for(let o of i)s.push({word:r.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return s}_wordenize(t,n){let r=[],i;for(n.lastIndex=0;(i=n.exec(t))&&i[0].length!==0;)r.push({start:i.index,end:i.index+i[0].length});return r}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);let n=this._eol,r=t.startLineNumber-1,i=t.endLineNumber-1,s=[];s.push(this._lines[r].substring(t.startColumn-1));for(let o=r+1;o<i;o++)s.push(this._lines[o]);return s.push(this._lines[i].substring(0,t.endColumn-1)),s.join(n)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();let n=this._lineStarts.getIndexOf(t),r=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,r)}}_validateRange(t){let n=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),r=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return n.lineNumber!==t.startLineNumber||n.column!==t.startColumn||r.lineNumber!==t.endLineNumber||r.column!==t.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}:t}_validatePosition(t){if(!Q.isIPosition(t))throw new Error("bad position");let{lineNumber:n,column:r}=t,i=!1;if(n<1)n=1,r=1,i=!0;else if(n>this._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{let s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:t}},ot=class e{constructor(t,n){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){let t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}acceptNewModel(t){this._models[t.url]=new xr(Re.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}acceptRemovedModel(t){this._models[t]&&delete this._models[t]}async computeUnicodeHighlights(t,n,r){let i=this._getModel(t);return i?on.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async computeDiff(t,n,r,i){let s=this._getModel(t),o=this._getModel(n);return!s||!o?null:e.computeDiff(s,o,r,i)}static computeDiff(t,n,r,i){let s=i==="advanced"?pr.getDefault():pr.getLegacy(),o=t.getLinesContent(),l=n.getLinesContent(),u=s.computeDiff(o,l,r),c=u.changes.length>0?!1:this._modelsAreIdentical(t,n);function f(h){return h.map(d=>{var g;return[d.original.startLineNumber,d.original.endLineNumberExclusive,d.modified.startLineNumber,d.modified.endLineNumberExclusive,(g=d.innerChanges)===null||g===void 0?void 0:g.map(p=>[p.originalRange.startLineNumber,p.originalRange.startColumn,p.originalRange.endLineNumber,p.originalRange.endColumn,p.modifiedRange.startLineNumber,p.modifiedRange.startColumn,p.modifiedRange.endLineNumber,p.modifiedRange.endColumn])]})}return{identical:c,quitEarly:u.hitTimeout,changes:f(u.changes),moves:u.moves.map(h=>[h.lineRangeMapping.original.startLineNumber,h.lineRangeMapping.original.endLineNumberExclusive,h.lineRangeMapping.modified.startLineNumber,h.lineRangeMapping.modified.endLineNumberExclusive,f(h.changes)])}}static _modelsAreIdentical(t,n){let r=t.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){let o=t.getLineContent(s),l=n.getLineContent(s);if(o!==l)return!1}return!0}async computeMoreMinimalEdits(t,n,r){let i=this._getModel(t);if(!i)return n;let s=[],o;n=n.slice(0).sort((u,c)=>{if(u.range&&c.range)return q.compareRangesUsingStarts(u.range,c.range);let f=u.range?0:1,h=c.range?0:1;return f-h});let l=0;for(let u=1;u<n.length;u++)q.getEndPosition(n[l].range).equals(q.getStartPosition(n[u].range))?(n[l].range=q.fromPositions(q.getStartPosition(n[l].range),q.getEndPosition(n[u].range)),n[l].text+=n[u].text):(l++,n[l]=n[u]);n.length=l+1;for(let{range:u,text:c,eol:f}of n){if(typeof f=="number"&&(o=f),q.isEmpty(u)&&!c)continue;let h=i.getValueInRange(u);if(c=c.replace(/\r\n|\n|\r/g,i.eol),h===c)continue;if(Math.max(c.length,h.length)>e._diffLimit){s.push({range:u,text:c});continue}let d=$r(h,c,r),g=i.offsetAt(q.lift(u).getStartPosition());for(let p of d){let m=i.positionAt(g+p.originalStart),_=i.positionAt(g+p.originalStart+p.originalLength),N={text:c.substr(p.modifiedStart,p.modifiedLength),range:{startLineNumber:m.lineNumber,startColumn:m.column,endLineNumber:_.lineNumber,endColumn:_.column}};i.getValueInRange(N.range)!==N.text&&s.push(N)}}return typeof o=="number"&&s.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async computeLinks(t){let n=this._getModel(t);return n?a1(n):null}async computeDefaultDocumentColors(t){let n=this._getModel(t);return n?Mi(n):null}async textualSuggest(t,n,r,i){let s=new He,o=new RegExp(r,i),l=new Set;e:for(let u of t){let c=this._getModel(u);if(c){for(let f of c.words(o))if(!(f===n||!isNaN(Number(f)))&&(l.add(f),l.size>e._suggestionsLimit))break e}}return{words:Array.from(l),duration:s.elapsed()}}async computeWordRanges(t,n,r,i){let s=this._getModel(t);if(!s)return Object.create(null);let o=new RegExp(r,i),l=Object.create(null);for(let u=n.startLineNumber;u<n.endLineNumber;u++){let c=s.getLineWords(u,o);for(let f of c){if(!isNaN(Number(f.word)))continue;let h=l[f.word];h||(h=[],l[f.word]=h),h.push({startLineNumber:u,startColumn:f.startColumn,endLineNumber:u,endColumn:f.endColumn})}}return l}async navigateValueSet(t,n,r,i,s){let o=this._getModel(t);if(!o)return null;let l=new RegExp(i,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});let u=o.getValueInRange(n),c=o.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},l);if(!c)return null;let f=o.getValueInRange(c);return Ye.INSTANCE.navigateValueSet(n,u,c,f,r)}loadForeignModule(t,n,r){let o={host:Er(r,(l,u)=>this._host.fhr(l,u)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,n),Promise.resolve(ht(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}};ot._diffLimit=1e5;ot._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=ni());var _r=!1;function vr(e){if(_r)return;_r=!0;let t=new Vt(n=>{globalThis.postMessage(n)},n=>new ot(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{_r||vr(null)};var bn=class e{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){let i=ki(r.range),s=this.offsetAt(i.start),o=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(o,this._content.length);let l=Math.max(i.start.line,0),u=Math.max(i.end.line,0),c=this._lineOffsets,f=Fi(r.text,!1,s);if(u-l===f.length)for(let d=0,g=f.length;d<g;d++)c[d+l+1]=f[d];else f.length<1e4?c.splice(l+1,u-l,...f):this._lineOffsets=c=c.slice(0,l+1).concat(f,c.slice(u+1));let h=r.text.length-(o-s);if(h!==0)for(let d=l+1+f.length,g=c.length;d<g;d++)c[d]=c[d]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Fi(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let o=Math.floor((r+i)/2);n[o]>t?i=o:r=o+1}let s=r-1;return{line:s,character:t-n[s]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},xn;(function(e){function t(i,s,o,l){return new bn(i,s,o,l)}e.create=t;function n(i,s,o){if(i instanceof bn)return i.update(s,o),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,s){let o=i.getText(),l=Lr(s.map(io),(f,h)=>{let d=f.range.start.line-h.range.start.line;return d===0?f.range.start.character-h.range.start.character:d}),u=0,c=[];for(let f of l){let h=i.offsetAt(f.range.start);if(h<u)throw new Error("Overlapping edit");h>u&&c.push(o.substring(u,h)),f.newText.length&&c.push(f.newText),u=i.offsetAt(f.range.end)}return c.push(o.substr(u)),c.join("")}e.applyEdits=r})(xn||(xn={}));function Lr(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Lr(r,t),Lr(i,t);let s=0,o=0,l=0;for(;s<r.length&&o<i.length;)t(r[s],i[o])<=0?e[l++]=r[s++]:e[l++]=i[o++];for(;s<r.length;)e[l++]=r[s++];for(;o<i.length;)e[l++]=i[o++];return e}function Fi(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let s=e.charCodeAt(i);(s===13||s===10)&&(s===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function ki(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function io(e){let t=ki(e.range);return t!==e.range?{newText:e.newText,range:t}:e}globalThis.onmessage=()=>{vr((e,t)=>new wr(e,t))};var wr=class{constructor(t,{languageId:n}){this._ctx=t;this._languageId=n}async doValidation(t){return this._getTextDocument(t)?await Promise.resolve([]):await Promise.resolve([])}async doComplete(t){return this._getTextDocument(t)?await Promise.resolve({suggestions:[]}):await Promise.resolve({suggestions:[]})}_getTextDocument(t){let n=this._ctx.getMirrorModels();for(let r of n)if(r.uri.toString()===t)return xn.create(t,this._languageId,r.version,r.getValue());return null}};})();
148
+ `))}},za=class{constructor(t){this.value=t}},Wk=2,zk=(e,t)=>{if(e instanceof za)t(e);else for(let r=0;r<e.length;r++){let n=e[r];n&&t(n)}},mr=class{constructor(t){var r,n,i,o,s;this._size=0,this._options=t,this._leakageMon=Y5>0||!((r=this._options)===null||r===void 0)&&r.leakWarningThreshold?new zy((i=(n=this._options)===null||n===void 0?void 0:n.leakWarningThreshold)!==null&&i!==void 0?i:Y5):void 0,this._perfMon=!((o=this._options)===null||o===void 0)&&o._profName?new Bc(this._options._profName):void 0,this._deliveryQueue=(s=this._options)===null||s===void 0?void 0:s.deliveryQueue}dispose(){var t,r,n,i;if(!this._disposed){if(this._disposed=!0,((t=this._deliveryQueue)===null||t===void 0?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners){if(Z5){let o=this._listeners;queueMicrotask(()=>{zk(o,s=>{var a;return(a=s.stack)===null||a===void 0?void 0:a.print()})})}this._listeners=void 0,this._size=0}(n=(r=this._options)===null||r===void 0?void 0:r.onDidRemoveLastListener)===null||n===void 0||n.call(r),(i=this._leakageMon)===null||i===void 0||i.dispose()}}get event(){var t;return(t=this._event)!==null&&t!==void 0||(this._event=(r,n,i)=>{var o,s,a,u,d;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),vn.None;if(this._disposed)return vn.None;n&&(r=r.bind(n));let p=new za(r),m,w;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(p.stack=Gc.create(),m=this._leakageMon.check(p.stack,this._size+1)),Z5&&(p.stack=w??Gc.create()),this._listeners?this._listeners instanceof za?((d=this._deliveryQueue)!==null&&d!==void 0||(this._deliveryQueue=new By),this._listeners=[this._listeners,p]):this._listeners.push(p):((s=(o=this._options)===null||o===void 0?void 0:o.onWillAddFirstListener)===null||s===void 0||s.call(o,this),this._listeners=p,(u=(a=this._options)===null||a===void 0?void 0:a.onDidAddFirstListener)===null||u===void 0||u.call(a,this)),this._size++;let _=Ls(()=>{m?.(),this._removeListener(p)});return i instanceof uo?i.add(_):Array.isArray(i)&&i.push(_),_}),this._event}_removeListener(t){var r,n,i,o;if((n=(r=this._options)===null||r===void 0?void 0:r.onWillRemoveListener)===null||n===void 0||n.call(r,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(o=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||o===void 0||o.call(i,this),this._size=0;return}let s=this._listeners,a=s.indexOf(t);if(a===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,s[a]=void 0;let u=this._deliveryQueue.current===this;if(this._size*Wk<=s.length){let d=0;for(let p=0;p<s.length;p++)s[p]?s[d++]=s[p]:u&&(this._deliveryQueue.end--,d<this._deliveryQueue.i&&this._deliveryQueue.i--);s.length=d}}_deliver(t,r){var n;if(!t)return;let i=((n=this._options)===null||n===void 0?void 0:n.onListenerError)||Sh;if(!i){t.value(r);return}try{t.value(r)}catch(o){i(o)}}_deliverQueue(t){let r=t.current._listeners;for(;t.i<t.end;)this._deliver(r[t.i++],t.value);t.reset()}fire(t){var r,n,i,o;if(!((r=this._deliveryQueue)===null||r===void 0)&&r.current&&(this._deliverQueue(this._deliveryQueue),(n=this._perfMon)===null||n===void 0||n.stop()),(i=this._perfMon)===null||i===void 0||i.start(this._size),this._listeners)if(this._listeners instanceof za)this._deliver(this._listeners,t);else{let s=this._deliveryQueue;s.enqueue(this,t,this._listeners.length),this._deliverQueue(s)}(o=this._perfMon)===null||o===void 0||o.stop()}hasListeners(){return this._size>0}};var By=class{constructor(){this.i=-1,this.end=0}enqueue(t,r,n){this.i=0,this.end=n,this.current=t,this.value=r}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function J5(e){return typeof e=="string"}function Bk(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function qc(e){let t=[];for(let r of Bk(e))typeof e[r]=="function"&&t.push(r);return t}function X5(e,t){let r=i=>function(){let o=Array.prototype.slice.call(arguments,0);return t(i,o)},n={};for(let i of e)n[i]=r(i);return n}var Gk=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function qk(e,t){let r;return t.length===0?r=e:r=e.replace(/\{(\d+)\}/g,(n,i)=>{let o=i[0],s=t[o],a=n;return typeof s=="string"?a=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(a=String(s)),a}),Gk&&(r="\uFF3B"+r.replace(/[aouei]/g,"$&$&")+"\uFF3D"),r}function Xe(e,t,...r){return qk(t,r)}var Gy,Ba="en",Eh=!1,Mh=!1,Th=!1,Hk=!1,Zk=!1,K5=!1,Yk=!1,Jk=!1,Xk=!1,Qk=!1,Ch,qy=Ba,Q5=Ba,Kk,On,zi=globalThis,hr;typeof zi.vscode<"u"&&typeof zi.vscode.process<"u"?hr=zi.vscode.process:typeof process<"u"&&(hr=process);var e3=typeof((Gy=hr?.versions)===null||Gy===void 0?void 0:Gy.electron)=="string",eR=e3&&hr?.type==="renderer";if(typeof navigator=="object"&&!eR)On=navigator.userAgent,Eh=On.indexOf("Windows")>=0,Mh=On.indexOf("Macintosh")>=0,Jk=(On.indexOf("Macintosh")>=0||On.indexOf("iPad")>=0||On.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Th=On.indexOf("Linux")>=0,Qk=On?.indexOf("Mobi")>=0,K5=!0,Ch=(Xe({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||Ba,qy=Ch,Q5=navigator.language;else if(typeof hr=="object"){Eh=hr.platform==="win32",Mh=hr.platform==="darwin",Th=hr.platform==="linux",Hk=Th&&!!hr.env.SNAP&&!!hr.env.SNAP_REVISION,Yk=e3,Xk=!!hr.env.CI||!!hr.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ch=Ba,qy=Ba;let e=hr.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e),r=t.availableLanguages["*"];Ch=t.locale,Q5=t.osLocale,qy=r||Ba,Kk=t._translationsConfigFile}catch{}Zk=!0}else console.error("Unable to resolve platform.");var jy=0;Mh?jy=1:Eh?jy=3:Th&&(jy=2);var Is=Eh,t3=Mh;var tR=K5&&typeof zi.importScripts=="function",RY=tR?zi.origin:void 0;var ci=On;var rR=typeof zi.postMessage=="function"&&!zi.importScripts,DY=(()=>{if(rR){let e=[];zi.addEventListener("message",r=>{if(r.data&&r.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){let o=e[n];if(o.id===r.data.vscodeScheduleAsyncWork){e.splice(n,1),o.callback();return}}});let t=0;return r=>{let n=++t;e.push({id:n,callback:r}),zi.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})();var nR=!!(ci&&ci.indexOf("Chrome")>=0),OY=!!(ci&&ci.indexOf("Firefox")>=0),$Y=!!(!nR&&ci&&ci.indexOf("Safari")>=0),FY=!!(ci&&ci.indexOf("Edg/")>=0),VY=!!(ci&&ci.indexOf("Android")>=0);var Lh=class{constructor(t){this.fn=t,this.lastCache=void 0,this.lastArgKey=void 0}get(t){let r=JSON.stringify(t);return this.lastArgKey!==r&&(this.lastArgKey=r,this.lastCache=this.fn(t)),this.lastCache}};var jc=class{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};var Ga;function r3(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function n3(e){return e.split(/\r\n|\r|\n/)}function i3(e){for(let t=0,r=e.length;t<r;t++){let n=e.charCodeAt(t);if(n!==32&&n!==9)return t}return-1}function o3(e,t=e.length-1){for(let r=t;r>=0;r--){let n=e.charCodeAt(r);if(n!==32&&n!==9)return r}return-1}function Zy(e){return e>=65&&e<=90}function qa(e){return 55296<=e&&e<=56319}function Ih(e){return 56320<=e&&e<=57343}function Yy(e,t){return(e-55296<<10)+(t-56320)+65536}function s3(e,t,r){let n=e.charCodeAt(r);if(qa(n)&&r+1<t){let i=e.charCodeAt(r+1);if(Ih(i))return Yy(n,i)}return n}var iR=/^[\t\n\r\x20-\x7E]*$/;function a3(e){return iR.test(e)}var Hy=class e{static getInstance(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE}constructor(){this._data=oR()}getGraphemeBreakType(t){if(t<32)return t===10?3:t===13?2:4;if(t<127)return 0;let r=this._data,n=r.length/3,i=1;for(;i<=n;)if(t<r[3*i])i=2*i;else if(t>r[3*i+1])i=2*i+1;else return r[3*i+2];return 0}};Hy._INSTANCE=null;function oR(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}var ui=class{static getInstance(t){return Ga.cache.get(Array.from(t))}static getLocales(){return Ga._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Ga=ui;ui.ambiguousCharacterData=new jc(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));ui.cache=new Lh(e=>{function t(d){let p=new Map;for(let m=0;m<d.length;m+=2)p.set(d[m],d[m+1]);return p}function r(d,p){let m=new Map(d);for(let[w,_]of p)m.set(w,_);return m}function n(d,p){if(!d)return p;let m=new Map;for(let[w,_]of d)p.has(w)&&m.set(w,_);return m}let i=Ga.ambiguousCharacterData.value,o=e.filter(d=>!d.startsWith("_")&&d in i);o.length===0&&(o=["_default"]);let s;for(let d of o){let p=t(i[d]);s=n(s,p)}let a=t(i._common),u=r(a,s);return new Ga(u)});ui._locales=new jc(()=>Object.keys(Ga.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));var Ps=class e{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(e.getRawData())),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static get codePoints(){return e.getData()}};Ps._data=void 0;var sR="$initialize";var Jy=class{constructor(t,r,n,i){this.vsWorker=t,this.req=r,this.method=n,this.args=i,this.type=0}},Ph=class{constructor(t,r,n,i){this.vsWorker=t,this.seq=r,this.res=n,this.err=i,this.type=1}},Xy=class{constructor(t,r,n,i){this.vsWorker=t,this.req=r,this.eventName=n,this.arg=i,this.type=2}},Qy=class{constructor(t,r,n){this.vsWorker=t,this.req=r,this.event=n,this.type=3}},Ky=class{constructor(t,r){this.vsWorker=t,this.req=r,this.type=4}},e2=class{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,r){let n=String(++this._lastSentReq);return new Promise((i,o)=>{this._pendingReplies[n]={resolve:i,reject:o},this._send(new Jy(this._workerId,n,t,r))})}listen(t,r){let n=null,i=new mr({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,i),this._send(new Xy(this._workerId,n,t,r))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new Ky(this._workerId,n)),n=null}});return i.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}let r=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let n=t.err;t.err.$isError&&(n=new Error,n.name=t.err.name,n.message=t.err.message,n.stack=t.err.stack),r.reject(n);return}r.resolve(t.res)}_handleRequestMessage(t){let r=t.req;this._handler.handleMessage(t.method,t.args).then(i=>{this._send(new Ph(this._workerId,r,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=$y(i.detail)),this._send(new Ph(this._workerId,r,void 0,$y(i)))})}_handleSubscribeEventMessage(t){let r=t.req,n=this._handler.handleEvent(t.eventName,t.arg)(i=>{this._send(new Qy(this._workerId,r,i))});this._pendingEvents.set(r,n)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){let r=[];if(t.type===0)for(let n=0;n<t.args.length;n++)t.args[n]instanceof ArrayBuffer&&r.push(t.args[n]);else t.type===1&&t.res instanceof ArrayBuffer&&r.push(t.res);this._handler.sendMessage(t,r)}};function l3(e){return e[0]==="o"&&e[1]==="n"&&Zy(e.charCodeAt(2))}function c3(e){return/^onDynamic/.test(e)&&Zy(e.charCodeAt(9))}function aR(e,t,r){let n=s=>function(){let a=Array.prototype.slice.call(arguments,0);return t(s,a)},i=s=>function(a){return r(s,a)},o={};for(let s of e){if(c3(s)){o[s]=i(s);continue}if(l3(s)){o[s]=r(s,void 0);continue}o[s]=n(s)}return o}var Ah=class{constructor(t,r){this._requestHandlerFactory=r,this._requestHandler=null,this._protocol=new e2({sendMessage:(n,i)=>{t(n,i)},handleMessage:(n,i)=>this._handleMessage(n,i),handleEvent:(n,i)=>this._handleEvent(n,i)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,r){if(t===sR)return this.initialize(r[0],r[1],r[2],r[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,r))}catch(n){return Promise.reject(n)}}_handleEvent(t,r){if(!this._requestHandler)throw new Error("Missing requestHandler");if(c3(t)){let n=this._requestHandler[t].call(this._requestHandler,r);if(typeof n!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return n}if(l3(t)){let n=this._requestHandler[t];if(typeof n!="function")throw new Error(`Missing event ${t} on request handler.`);return n}throw new Error(`Malformed event name ${t}`)}initialize(t,r,n,i){this._protocol.setWorkerId(t);let a=aR(i,(u,d)=>this._protocol.sendMessage(u,d),(u,d)=>this._protocol.listen(u,d));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(a),Promise.resolve(qc(this._requestHandler))):(r&&(typeof r.baseUrl<"u"&&delete r.baseUrl,typeof r.paths<"u"&&typeof r.paths.vs<"u"&&delete r.paths.vs,typeof r.trustedTypesPolicy!==void 0&&delete r.trustedTypesPolicy,r.catchError=!0,globalThis.require.config(r)),new Promise((u,d)=>{let p=globalThis.require;p([n],m=>{if(this._requestHandler=m.create(a),!this._requestHandler){d(new Error("No RequestHandler!"));return}u(qc(this._requestHandler))},d)}))}};var $n=class{constructor(t,r,n,i){this.originalStart=t,this.originalLength=r,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};function u3(e,t){return(t<<5)-t+e|0}function f3(e,t){t=u3(149417,t);for(let r=0,n=e.length;r<n;r++)t=u3(e.charCodeAt(r),t);return t}function t2(e,t,r=32){let n=r-t,i=~((1<<n)-1);return(e<<t|(i&e)>>>n)>>>0}function d3(e,t=0,r=e.byteLength,n=0){for(let i=0;i<r;i++)e[t+i]=n}function lR(e,t,r="0"){for(;e.length<t;)e=r+e;return e}function Zc(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join(""):lR((e>>>0).toString(16),t/4)}var r2=class e{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){let r=t.length;if(r===0)return;let n=this._buff,i=this._buffLen,o=this._leftoverHighSurrogate,s,a;for(o!==0?(s=o,a=-1,o=0):(s=t.charCodeAt(0),a=0);;){let u=s;if(qa(s))if(a+1<r){let d=t.charCodeAt(a+1);Ih(d)?(a++,u=Yy(s,d)):u=65533}else{o=s;break}else Ih(s)&&(u=65533);if(i=this._push(n,i,u),a++,a<r)s=t.charCodeAt(a);else break}this._buffLen=i,this._leftoverHighSurrogate=o}_push(t,r,n){return n<128?t[r++]=n:n<2048?(t[r++]=192|(n&1984)>>>6,t[r++]=128|(n&63)>>>0):n<65536?(t[r++]=224|(n&61440)>>>12,t[r++]=128|(n&4032)>>>6,t[r++]=128|(n&63)>>>0):(t[r++]=240|(n&1835008)>>>18,t[r++]=128|(n&258048)>>>12,t[r++]=128|(n&4032)>>>6,t[r++]=128|(n&63)>>>0),r>=64&&(this._step(),r-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),r}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Zc(this._h0)+Zc(this._h1)+Zc(this._h2)+Zc(this._h3)+Zc(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,d3(this._buff,this._buffLen),this._buffLen>56&&(this._step(),d3(this._buff));let t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,r=this._buffDV;for(let m=0;m<64;m+=4)t.setUint32(m,r.getUint32(m,!1),!1);for(let m=64;m<320;m+=4)t.setUint32(m,t2(t.getUint32(m-12,!1)^t.getUint32(m-32,!1)^t.getUint32(m-56,!1)^t.getUint32(m-64,!1),1),!1);let n=this._h0,i=this._h1,o=this._h2,s=this._h3,a=this._h4,u,d,p;for(let m=0;m<80;m++)m<20?(u=i&o|~i&s,d=1518500249):m<40?(u=i^o^s,d=1859775393):m<60?(u=i&o|i&s|o&s,d=2400959708):(u=i^o^s,d=3395469782),p=t2(n,5)+u+a+d+t.getUint32(m*4,!1)&4294967295,a=s,s=o,o=t2(i,30),i=n,n=p;this._h0=this._h0+n&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+o&4294967295,this._h3=this._h3+s&4294967295,this._h4=this._h4+a&4294967295}};r2._bigBlock32=new DataView(new ArrayBuffer(320));var Nh=class{constructor(t){this.source=t}getElements(){let t=this.source,r=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)r[n]=t.charCodeAt(n);return r}};function p3(e,t,r){return new Yc(new Nh(e),new Nh(t)).ComputeDiff(r).changes}var fo=class{static Assert(t,r){if(!t)throw new Error(r)}},po=class{static Copy(t,r,n,i,o){for(let s=0;s<o;s++)n[i+s]=t[r+s]}static Copy2(t,r,n,i,o){for(let s=0;s<o;s++)n[i+s]=t[r+s]}},kh=class{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new $n(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,r){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,r),this.m_originalCount++}AddModifiedElement(t,r){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,r),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}},Yc=class e{constructor(t,r,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=t,this._modifiedSequence=r;let[i,o,s]=e._getElements(t),[a,u,d]=e._getElements(r);this._hasStrings=s&&d,this._originalStringElements=i,this._originalElementsOrHash=o,this._modifiedStringElements=a,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){let r=t.getElements();if(e._isStringArray(r)){let n=new Int32Array(r.length);for(let i=0,o=r.length;i<o;i++)n[i]=f3(r[i],0);return[r,n,!0]}return r instanceof Int32Array?[[],r,!1]:[[],new Int32Array(r),!1]}ElementsAreEqual(t,r){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[r]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[r]:!0}ElementsAreStrictEqual(t,r){if(!this.ElementsAreEqual(t,r))return!1;let n=e._getStrictElement(this._originalSequence,t),i=e._getStrictElement(this._modifiedSequence,r);return n===i}static _getStrictElement(t,r){return typeof t.getStrictElement=="function"?t.getStrictElement(r):null}OriginalElementsAreEqual(t,r){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[r]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[r]:!0}ModifiedElementsAreEqual(t,r){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[r]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[r]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,r,n,i,o){let s=[!1],a=this.ComputeDiffRecursive(t,r,n,i,s);return o&&(a=this.PrettifyChanges(a)),{quitEarly:s[0],changes:a}}ComputeDiffRecursive(t,r,n,i,o){for(o[0]=!1;t<=r&&n<=i&&this.ElementsAreEqual(t,n);)t++,n++;for(;r>=t&&i>=n&&this.ElementsAreEqual(r,i);)r--,i--;if(t>r||n>i){let m;return n<=i?(fo.Assert(t===r+1,"originalStart should only be one more than originalEnd"),m=[new $n(t,0,n,i-n+1)]):t<=r?(fo.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),m=[new $n(t,r-t+1,n,0)]):(fo.Assert(t===r+1,"originalStart should only be one more than originalEnd"),fo.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),m=[]),m}let s=[0],a=[0],u=this.ComputeRecursionPoint(t,r,n,i,s,a,o),d=s[0],p=a[0];if(u!==null)return u;if(!o[0]){let m=this.ComputeDiffRecursive(t,d,n,p,o),w=[];return o[0]?w=[new $n(d+1,r-(d+1)+1,p+1,i-(p+1)+1)]:w=this.ComputeDiffRecursive(d+1,r,p+1,i,o),this.ConcatenateChanges(m,w)}return[new $n(t,r-t+1,n,i-n+1)]}WALKTRACE(t,r,n,i,o,s,a,u,d,p,m,w,_,S,T,M,R,I){let N=null,V=null,Y=new kh,re=r,te=n,ie=_[0]-M[0]-i,ge=-1073741824,be=this.m_forwardHistory.length-1;do{let de=ie+t;de===re||de<te&&d[de-1]<d[de+1]?(m=d[de+1],S=m-ie-i,m<ge&&Y.MarkNextChange(),ge=m,Y.AddModifiedElement(m+1,S),ie=de+1-t):(m=d[de-1]+1,S=m-ie-i,m<ge&&Y.MarkNextChange(),ge=m-1,Y.AddOriginalElement(m,S+1),ie=de-1-t),be>=0&&(d=this.m_forwardHistory[be],t=d[0],re=1,te=d.length-1)}while(--be>=-1);if(N=Y.getReverseChanges(),I[0]){let de=_[0]+1,B=M[0]+1;if(N!==null&&N.length>0){let $=N[N.length-1];de=Math.max(de,$.getOriginalEnd()),B=Math.max(B,$.getModifiedEnd())}V=[new $n(de,w-de+1,B,T-B+1)]}else{Y=new kh,re=s,te=a,ie=_[0]-M[0]-u,ge=1073741824,be=R?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let de=ie+o;de===re||de<te&&p[de-1]>=p[de+1]?(m=p[de+1]-1,S=m-ie-u,m>ge&&Y.MarkNextChange(),ge=m+1,Y.AddOriginalElement(m+1,S+1),ie=de+1-o):(m=p[de-1],S=m-ie-u,m>ge&&Y.MarkNextChange(),ge=m,Y.AddModifiedElement(m+1,S+1),ie=de-1-o),be>=0&&(p=this.m_reverseHistory[be],o=p[0],re=1,te=p.length-1)}while(--be>=-1);V=Y.getChanges()}return this.ConcatenateChanges(N,V)}ComputeRecursionPoint(t,r,n,i,o,s,a){let u=0,d=0,p=0,m=0,w=0,_=0;t--,n--,o[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let S=r-t+(i-n),T=S+1,M=new Int32Array(T),R=new Int32Array(T),I=i-n,N=r-t,V=t-n,Y=r-i,te=(N-I)%2===0;M[I]=t,R[N]=r,a[0]=!1;for(let ie=1;ie<=S/2+1;ie++){let ge=0,be=0;p=this.ClipDiagonalBound(I-ie,ie,I,T),m=this.ClipDiagonalBound(I+ie,ie,I,T);for(let B=p;B<=m;B+=2){B===p||B<m&&M[B-1]<M[B+1]?u=M[B+1]:u=M[B-1]+1,d=u-(B-I)-V;let $=u;for(;u<r&&d<i&&this.ElementsAreEqual(u+1,d+1);)u++,d++;if(M[B]=u,u+d>ge+be&&(ge=u,be=d),!te&&Math.abs(B-N)<=ie-1&&u>=R[B])return o[0]=u,s[0]=d,$<=R[B]&&ie<=1448?this.WALKTRACE(I,p,m,V,N,w,_,Y,M,R,u,r,o,d,i,s,te,a):null}let de=(ge-t+(be-n)-ie)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(ge,de))return a[0]=!0,o[0]=ge,s[0]=be,de>0&&ie<=1448?this.WALKTRACE(I,p,m,V,N,w,_,Y,M,R,u,r,o,d,i,s,te,a):(t++,n++,[new $n(t,r-t+1,n,i-n+1)]);w=this.ClipDiagonalBound(N-ie,ie,N,T),_=this.ClipDiagonalBound(N+ie,ie,N,T);for(let B=w;B<=_;B+=2){B===w||B<_&&R[B-1]>=R[B+1]?u=R[B+1]-1:u=R[B-1],d=u-(B-N)-Y;let $=u;for(;u>t&&d>n&&this.ElementsAreEqual(u,d);)u--,d--;if(R[B]=u,te&&Math.abs(B-I)<=ie&&u<=M[B])return o[0]=u,s[0]=d,$>=M[B]&&ie<=1448?this.WALKTRACE(I,p,m,V,N,w,_,Y,M,R,u,r,o,d,i,s,te,a):null}if(ie<=1447){let B=new Int32Array(m-p+2);B[0]=I-p+1,po.Copy2(M,p,B,1,m-p+1),this.m_forwardHistory.push(B),B=new Int32Array(_-w+2),B[0]=N-w+1,po.Copy2(R,w,B,1,_-w+1),this.m_reverseHistory.push(B)}}return this.WALKTRACE(I,p,m,V,N,w,_,Y,M,R,u,r,o,d,i,s,te,a)}PrettifyChanges(t){for(let r=0;r<t.length;r++){let n=t[r],i=r<t.length-1?t[r+1].originalStart:this._originalElementsOrHash.length,o=r<t.length-1?t[r+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,a=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<o&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!a||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){let d=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!d)break;n.originalStart++,n.modifiedStart++}let u=[null];if(r<t.length-1&&this.ChangesOverlap(t[r],t[r+1],u)){t[r]=u[0],t.splice(r+1,1),r--;continue}}for(let r=t.length-1;r>=0;r--){let n=t[r],i=0,o=0;if(r>0){let m=t[r-1];i=m.originalStart+m.originalLength,o=m.modifiedStart+m.modifiedLength}let s=n.originalLength>0,a=n.modifiedLength>0,u=0,d=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let m=1;;m++){let w=n.originalStart-m,_=n.modifiedStart-m;if(w<i||_<o||s&&!this.OriginalElementsAreEqual(w,w+n.originalLength)||a&&!this.ModifiedElementsAreEqual(_,_+n.modifiedLength))break;let T=(w===i&&_===o?5:0)+this._boundaryScore(w,n.originalLength,_,n.modifiedLength);T>d&&(d=T,u=m)}n.originalStart-=u,n.modifiedStart-=u;let p=[null];if(r>0&&this.ChangesOverlap(t[r-1],t[r],p)){t[r-1]=p[0],t.splice(r,1),r++;continue}}if(this._hasStrings)for(let r=1,n=t.length;r<n;r++){let i=t[r-1],o=t[r],s=o.originalStart-i.originalStart-i.originalLength,a=i.originalStart,u=o.originalStart+o.originalLength,d=u-a,p=i.modifiedStart,m=o.modifiedStart+o.modifiedLength,w=m-p;if(s<5&&d<20&&w<20){let _=this._findBetterContiguousSequence(a,d,p,w,s);if(_){let[S,T]=_;(S!==i.originalStart+i.originalLength||T!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=S-i.originalStart,i.modifiedLength=T-i.modifiedStart,o.originalStart=S+s,o.modifiedStart=T+s,o.originalLength=u-o.originalStart,o.modifiedLength=m-o.modifiedStart)}}}return t}_findBetterContiguousSequence(t,r,n,i,o){if(r<o||i<o)return null;let s=t+r-o+1,a=n+i-o+1,u=0,d=0,p=0;for(let m=t;m<s;m++)for(let w=n;w<a;w++){let _=this._contiguousSequenceScore(m,w,o);_>0&&_>u&&(u=_,d=m,p=w)}return u>0?[d,p]:null}_contiguousSequenceScore(t,r,n){let i=0;for(let o=0;o<n;o++){if(!this.ElementsAreEqual(t+o,r+o))return 0;i+=this._originalStringElements[t+o].length}return i}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,r){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(r>0){let n=t+r;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,r){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(r>0){let n=t+r;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(t,r,n,i){let o=this._OriginalRegionIsBoundary(t,r)?1:0,s=this._ModifiedRegionIsBoundary(n,i)?1:0;return o+s}ConcatenateChanges(t,r){let n=[];if(t.length===0||r.length===0)return r.length>0?r:t;if(this.ChangesOverlap(t[t.length-1],r[0],n)){let i=new Array(t.length+r.length-1);return po.Copy(t,0,i,0,t.length-1),i[t.length-1]=n[0],po.Copy(r,1,i,t.length,r.length-1),i}else{let i=new Array(t.length+r.length);return po.Copy(t,0,i,0,t.length),po.Copy(r,0,i,t.length,r.length),i}}ChangesOverlap(t,r,n){if(fo.Assert(t.originalStart<=r.originalStart,"Left change is not less than or equal to right change"),fo.Assert(t.modifiedStart<=r.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=r.originalStart||t.modifiedStart+t.modifiedLength>=r.modifiedStart){let i=t.originalStart,o=t.originalLength,s=t.modifiedStart,a=t.modifiedLength;return t.originalStart+t.originalLength>=r.originalStart&&(o=r.originalStart+r.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=r.modifiedStart&&(a=r.modifiedStart+r.modifiedLength-t.modifiedStart),n[0]=new $n(i,o,s,a),!0}else return n[0]=null,!1}ClipDiagonalBound(t,r,n,i){if(t>=0&&t<i)return t;let o=n,s=i-n-1,a=r%2===0;if(t<0){let u=o%2===0;return a===u?0:1}else{let u=s%2===0;return a===u?i-1:i-2}}};var ja,n2=globalThis.vscode;if(typeof n2<"u"&&typeof n2.process<"u"){let e=n2.process;ja={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"?ja={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:ja={get platform(){return Is?"win32":t3?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};var Jc=ja.cwd,m3=ja.env,h3=ja.platform;var uR=65,dR=97,fR=90,pR=122,go=46,Kt=47,Zr=92,mo=58,mR=63,Rh=class extends Error{constructor(t,r,n){let i;typeof r=="string"&&r.indexOf("not ")===0?(i="must not be",r=r.replace(/^not /,"")):i="must be";let o=t.indexOf(".")!==-1?"property":"argument",s=`The "${t}" ${o} ${i} of type ${r}`;s+=`. Received type ${typeof n}`,super(s),this.code="ERR_INVALID_ARG_TYPE"}};function hR(e,t){if(e===null||typeof e!="object")throw new Rh(t,"Object",e)}function St(e,t){if(typeof e!="string")throw new Rh(t,"string",e)}var wo=h3==="win32";function Le(e){return e===Kt||e===Zr}function i2(e){return e===Kt}function ho(e){return e>=uR&&e<=fR||e>=dR&&e<=pR}function Dh(e,t,r,n){let i="",o=0,s=-1,a=0,u=0;for(let d=0;d<=e.length;++d){if(d<e.length)u=e.charCodeAt(d);else{if(n(u))break;u=Kt}if(n(u)){if(!(s===d-1||a===1))if(a===2){if(i.length<2||o!==2||i.charCodeAt(i.length-1)!==go||i.charCodeAt(i.length-2)!==go){if(i.length>2){let p=i.lastIndexOf(r);p===-1?(i="",o=0):(i=i.slice(0,p),o=i.length-1-i.lastIndexOf(r)),s=d,a=0;continue}else if(i.length!==0){i="",o=0,s=d,a=0;continue}}t&&(i+=i.length>0?`${r}..`:"..",o=2)}else i.length>0?i+=`${r}${e.slice(s+1,d)}`:i=e.slice(s+1,d),o=d-s-1;s=d,a=0}else u===go&&a!==-1?++a:a=-1}return i}function g3(e,t){hR(t,"pathObject");let r=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return r?r===t.root?`${r}${n}`:`${r}${e}${n}`:n}var Cr={resolve(...e){let t="",r="",n=!1;for(let i=e.length-1;i>=-1;i--){let o;if(i>=0){if(o=e[i],St(o,"path"),o.length===0)continue}else t.length===0?o=Jc():(o=m3[`=${t}`]||Jc(),(o===void 0||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&o.charCodeAt(2)===Zr)&&(o=`${t}\\`));let s=o.length,a=0,u="",d=!1,p=o.charCodeAt(0);if(s===1)Le(p)&&(a=1,d=!0);else if(Le(p))if(d=!0,Le(o.charCodeAt(1))){let m=2,w=m;for(;m<s&&!Le(o.charCodeAt(m));)m++;if(m<s&&m!==w){let _=o.slice(w,m);for(w=m;m<s&&Le(o.charCodeAt(m));)m++;if(m<s&&m!==w){for(w=m;m<s&&!Le(o.charCodeAt(m));)m++;(m===s||m!==w)&&(u=`\\\\${_}\\${o.slice(w,m)}`,a=m)}}}else a=1;else ho(p)&&o.charCodeAt(1)===mo&&(u=o.slice(0,2),a=2,s>2&&Le(o.charCodeAt(2))&&(d=!0,a=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(n){if(t.length>0)break}else if(r=`${o.slice(a)}\\${r}`,n=d,d&&t.length>0)break}return r=Dh(r,!n,"\\",Le),n?`${t}\\${r}`:`${t}${r}`||"."},normalize(e){St(e,"path");let t=e.length;if(t===0)return".";let r=0,n,i=!1,o=e.charCodeAt(0);if(t===1)return i2(o)?"\\":e;if(Le(o))if(i=!0,Le(e.charCodeAt(1))){let a=2,u=a;for(;a<t&&!Le(e.charCodeAt(a));)a++;if(a<t&&a!==u){let d=e.slice(u,a);for(u=a;a<t&&Le(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&!Le(e.charCodeAt(a));)a++;if(a===t)return`\\\\${d}\\${e.slice(u)}\\`;a!==u&&(n=`\\\\${d}\\${e.slice(u,a)}`,r=a)}}}else r=1;else ho(o)&&e.charCodeAt(1)===mo&&(n=e.slice(0,2),r=2,t>2&&Le(e.charCodeAt(2))&&(i=!0,r=3));let s=r<t?Dh(e.slice(r),!i,"\\",Le):"";return s.length===0&&!i&&(s="."),s.length>0&&Le(e.charCodeAt(t-1))&&(s+="\\"),n===void 0?i?`\\${s}`:s:i?`${n}\\${s}`:`${n}${s}`},isAbsolute(e){St(e,"path");let t=e.length;if(t===0)return!1;let r=e.charCodeAt(0);return Le(r)||t>2&&ho(r)&&e.charCodeAt(1)===mo&&Le(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,r;for(let o=0;o<e.length;++o){let s=e[o];St(s,"path"),s.length>0&&(t===void 0?t=r=s:t+=`\\${s}`)}if(t===void 0)return".";let n=!0,i=0;if(typeof r=="string"&&Le(r.charCodeAt(0))){++i;let o=r.length;o>1&&Le(r.charCodeAt(1))&&(++i,o>2&&(Le(r.charCodeAt(2))?++i:n=!1))}if(n){for(;i<t.length&&Le(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return Cr.normalize(t)},relative(e,t){if(St(e,"from"),St(t,"to"),e===t)return"";let r=Cr.resolve(e),n=Cr.resolve(t);if(r===n||(e=r.toLowerCase(),t=n.toLowerCase(),e===t))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===Zr;)i++;let o=e.length;for(;o-1>i&&e.charCodeAt(o-1)===Zr;)o--;let s=o-i,a=0;for(;a<t.length&&t.charCodeAt(a)===Zr;)a++;let u=t.length;for(;u-1>a&&t.charCodeAt(u-1)===Zr;)u--;let d=u-a,p=s<d?s:d,m=-1,w=0;for(;w<p;w++){let S=e.charCodeAt(i+w);if(S!==t.charCodeAt(a+w))break;S===Zr&&(m=w)}if(w!==p){if(m===-1)return n}else{if(d>p){if(t.charCodeAt(a+w)===Zr)return n.slice(a+w+1);if(w===2)return n.slice(a+w)}s>p&&(e.charCodeAt(i+w)===Zr?m=w:w===2&&(m=3)),m===-1&&(m=0)}let _="";for(w=i+m+1;w<=o;++w)(w===o||e.charCodeAt(w)===Zr)&&(_+=_.length===0?"..":"\\..");return a+=m,_.length>0?`${_}${n.slice(a,u)}`:(n.charCodeAt(a)===Zr&&++a,n.slice(a,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;let t=Cr.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Zr){if(t.charCodeAt(1)===Zr){let r=t.charCodeAt(2);if(r!==mR&&r!==go)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(ho(t.charCodeAt(0))&&t.charCodeAt(1)===mo&&t.charCodeAt(2)===Zr)return`\\\\?\\${t}`;return e},dirname(e){St(e,"path");let t=e.length;if(t===0)return".";let r=-1,n=0,i=e.charCodeAt(0);if(t===1)return Le(i)?e:".";if(Le(i)){if(r=n=1,Le(e.charCodeAt(1))){let a=2,u=a;for(;a<t&&!Le(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&Le(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&!Le(e.charCodeAt(a));)a++;if(a===t)return e;a!==u&&(r=n=a+1)}}}}else ho(i)&&e.charCodeAt(1)===mo&&(r=t>2&&Le(e.charCodeAt(2))?3:2,n=r);let o=-1,s=!0;for(let a=t-1;a>=n;--a)if(Le(e.charCodeAt(a))){if(!s){o=a;break}}else s=!1;if(o===-1){if(r===-1)return".";o=r}return e.slice(0,o)},basename(e,t){t!==void 0&&St(t,"ext"),St(e,"path");let r=0,n=-1,i=!0,o;if(e.length>=2&&ho(e.charCodeAt(0))&&e.charCodeAt(1)===mo&&(r=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(o=e.length-1;o>=r;--o){let u=e.charCodeAt(o);if(Le(u)){if(!i){r=o+1;break}}else a===-1&&(i=!1,a=o+1),s>=0&&(u===t.charCodeAt(s)?--s===-1&&(n=o):(s=-1,n=a))}return r===n?n=a:n===-1&&(n=e.length),e.slice(r,n)}for(o=e.length-1;o>=r;--o)if(Le(e.charCodeAt(o))){if(!i){r=o+1;break}}else n===-1&&(i=!1,n=o+1);return n===-1?"":e.slice(r,n)},extname(e){St(e,"path");let t=0,r=-1,n=0,i=-1,o=!0,s=0;e.length>=2&&e.charCodeAt(1)===mo&&ho(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){let u=e.charCodeAt(a);if(Le(u)){if(!o){n=a+1;break}continue}i===-1&&(o=!1,i=a+1),u===go?r===-1?r=a:s!==1&&(s=1):r!==-1&&(s=-1)}return r===-1||i===-1||s===0||s===1&&r===i-1&&r===n+1?"":e.slice(r,i)},format:g3.bind(null,"\\"),parse(e){St(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let r=e.length,n=0,i=e.charCodeAt(0);if(r===1)return Le(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Le(i)){if(n=1,Le(e.charCodeAt(1))){let m=2,w=m;for(;m<r&&!Le(e.charCodeAt(m));)m++;if(m<r&&m!==w){for(w=m;m<r&&Le(e.charCodeAt(m));)m++;if(m<r&&m!==w){for(w=m;m<r&&!Le(e.charCodeAt(m));)m++;m===r?n=m:m!==w&&(n=m+1)}}}}else if(ho(i)&&e.charCodeAt(1)===mo){if(r<=2)return t.root=t.dir=e,t;if(n=2,Le(e.charCodeAt(2))){if(r===3)return t.root=t.dir=e,t;n=3}}n>0&&(t.root=e.slice(0,n));let o=-1,s=n,a=-1,u=!0,d=e.length-1,p=0;for(;d>=n;--d){if(i=e.charCodeAt(d),Le(i)){if(!u){s=d+1;break}continue}a===-1&&(u=!1,a=d+1),i===go?o===-1?o=d:p!==1&&(p=1):o!==-1&&(p=-1)}return a!==-1&&(o===-1||p===0||p===1&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),s>0&&s!==n?t.dir=e.slice(0,s-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},gR=(()=>{if(wo){let e=/\\/g;return()=>{let t=Jc().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>Jc()})(),Or={resolve(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:gR();St(i,"path"),i.length!==0&&(t=`${i}/${t}`,r=i.charCodeAt(0)===Kt)}return t=Dh(t,!r,"/",i2),r?`/${t}`:t.length>0?t:"."},normalize(e){if(St(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===Kt,r=e.charCodeAt(e.length-1)===Kt;return e=Dh(e,!t,"/",i2),e.length===0?t?"/":r?"./":".":(r&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return St(e,"path"),e.length>0&&e.charCodeAt(0)===Kt},join(...e){if(e.length===0)return".";let t;for(let r=0;r<e.length;++r){let n=e[r];St(n,"path"),n.length>0&&(t===void 0?t=n:t+=`/${n}`)}return t===void 0?".":Or.normalize(t)},relative(e,t){if(St(e,"from"),St(t,"to"),e===t||(e=Or.resolve(e),t=Or.resolve(t),e===t))return"";let r=1,n=e.length,i=n-r,o=1,s=t.length-o,a=i<s?i:s,u=-1,d=0;for(;d<a;d++){let m=e.charCodeAt(r+d);if(m!==t.charCodeAt(o+d))break;m===Kt&&(u=d)}if(d===a)if(s>a){if(t.charCodeAt(o+d)===Kt)return t.slice(o+d+1);if(d===0)return t.slice(o+d)}else i>a&&(e.charCodeAt(r+d)===Kt?u=d:d===0&&(u=0));let p="";for(d=r+u+1;d<=n;++d)(d===n||e.charCodeAt(d)===Kt)&&(p+=p.length===0?"..":"/..");return`${p}${t.slice(o+u)}`},toNamespacedPath(e){return e},dirname(e){if(St(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===Kt,r=-1,n=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===Kt){if(!n){r=i;break}}else n=!1;return r===-1?t?"/":".":t&&r===1?"//":e.slice(0,r)},basename(e,t){t!==void 0&&St(t,"ext"),St(e,"path");let r=0,n=-1,i=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(o=e.length-1;o>=0;--o){let u=e.charCodeAt(o);if(u===Kt){if(!i){r=o+1;break}}else a===-1&&(i=!1,a=o+1),s>=0&&(u===t.charCodeAt(s)?--s===-1&&(n=o):(s=-1,n=a))}return r===n?n=a:n===-1&&(n=e.length),e.slice(r,n)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===Kt){if(!i){r=o+1;break}}else n===-1&&(i=!1,n=o+1);return n===-1?"":e.slice(r,n)},extname(e){St(e,"path");let t=-1,r=0,n=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){let a=e.charCodeAt(s);if(a===Kt){if(!i){r=s+1;break}continue}n===-1&&(i=!1,n=s+1),a===go?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||n===-1||o===0||o===1&&t===n-1&&t===r+1?"":e.slice(t,n)},format:g3.bind(null,"/"),parse(e){St(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let r=e.charCodeAt(0)===Kt,n;r?(t.root="/",n=1):n=0;let i=-1,o=0,s=-1,a=!0,u=e.length-1,d=0;for(;u>=n;--u){let p=e.charCodeAt(u);if(p===Kt){if(!a){o=u+1;break}continue}s===-1&&(a=!1,s=u+1),p===go?i===-1?i=u:d!==1&&(d=1):i!==-1&&(d=-1)}if(s!==-1){let p=o===0&&r?1:o;i===-1||d===0||d===1&&i===s-1&&i===o+1?t.base=t.name=e.slice(p,s):(t.name=e.slice(p,i),t.base=e.slice(p,s),t.ext=e.slice(i,s))}return o>0?t.dir=e.slice(0,o-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Or.win32=Cr.win32=Cr;Or.posix=Cr.posix=Or;var iJ=wo?Cr.normalize:Or.normalize,oJ=wo?Cr.resolve:Or.resolve,sJ=wo?Cr.relative:Or.relative,aJ=wo?Cr.dirname:Or.dirname,lJ=wo?Cr.basename:Or.basename,cJ=wo?Cr.extname:Or.extname,uJ=wo?Cr.sep:Or.sep;var yR=/^\w[\w\d+.-]*$/,bR=/^\//,_R=/^\/\//;function vR(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!yR.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!bR.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(_R.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function SR(e,t){return!e&&!t?"file":e}function xR(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Fn&&(t=Fn+t):t=Fn;break}return t}var ot="",Fn="/",CR=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,bo=class e{static isUri(t){return t instanceof e?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,r,n,i,o,s=!1){typeof t=="object"?(this.scheme=t.scheme||ot,this.authority=t.authority||ot,this.path=t.path||ot,this.query=t.query||ot,this.fragment=t.fragment||ot):(this.scheme=SR(t,s),this.authority=r||ot,this.path=xR(this.scheme,n||ot),this.query=i||ot,this.fragment=o||ot,vR(this,s))}get fsPath(){return o2(this,!1)}with(t){if(!t)return this;let{scheme:r,authority:n,path:i,query:o,fragment:s}=t;return r===void 0?r=this.scheme:r===null&&(r=ot),n===void 0?n=this.authority:n===null&&(n=ot),i===void 0?i=this.path:i===null&&(i=ot),o===void 0?o=this.query:o===null&&(o=ot),s===void 0?s=this.fragment:s===null&&(s=ot),r===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&s===this.fragment?this:new yo(r,n,i,o,s)}static parse(t,r=!1){let n=CR.exec(t);return n?new yo(n[2]||ot,Oh(n[4]||ot),Oh(n[5]||ot),Oh(n[7]||ot),Oh(n[9]||ot),r):new yo(ot,ot,ot,ot,ot)}static file(t){let r=ot;if(Is&&(t=t.replace(/\\/g,Fn)),t[0]===Fn&&t[1]===Fn){let n=t.indexOf(Fn,2);n===-1?(r=t.substring(2),t=Fn):(r=t.substring(2,n),t=t.substring(n)||Fn)}return new yo("file",r,t,ot,ot)}static from(t,r){return new yo(t.scheme,t.authority,t.path,t.query,t.fragment,r)}static joinPath(t,...r){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return Is&&t.scheme==="file"?n=e.file(Cr.join(o2(t,!0),...r)).path:n=Or.join(t.path,...r),t.with({path:n})}toString(t=!1){return s2(this,t)}toJSON(){return this}static revive(t){var r,n;if(t){if(t instanceof e)return t;{let i=new yo(t);return i._formatted=(r=t.external)!==null&&r!==void 0?r:null,i._fsPath=t._sep===b3&&(n=t.fsPath)!==null&&n!==void 0?n:null,i}}else return t}},b3=Is?1:void 0,yo=class extends bo{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=o2(this,!1)),this._fsPath}toString(t=!1){return t?s2(this,!0):(this._formatted||(this._formatted=s2(this,!1)),this._formatted)}toJSON(){let t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=b3),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}},_3={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function w3(e,t,r){let n,i=-1;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===45||s===46||s===95||s===126||t&&s===47||r&&s===91||r&&s===93||r&&s===58)i!==-1&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),n!==void 0&&(n+=e.charAt(o));else{n===void 0&&(n=e.substr(0,o));let a=_3[s];a!==void 0?(i!==-1&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),n+=a):i===-1&&(i=o)}}return i!==-1&&(n+=encodeURIComponent(e.substring(i))),n!==void 0?n:e}function TR(e){let t;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);n===35||n===63?(t===void 0&&(t=e.substr(0,r)),t+=_3[n]):t!==void 0&&(t+=e[r])}return t!==void 0?t:e}function o2(e,t){let r;return e.authority&&e.path.length>1&&e.scheme==="file"?r=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?r=e.path.substr(1):r=e.path[1].toLowerCase()+e.path.substr(2):r=e.path,Is&&(r=r.replace(/\//g,"\\")),r}function s2(e,t){let r=t?TR:w3,n="",{scheme:i,authority:o,path:s,query:a,fragment:u}=e;if(i&&(n+=i,n+=":"),(o||i==="file")&&(n+=Fn,n+=Fn),o){let d=o.indexOf("@");if(d!==-1){let p=o.substr(0,d);o=o.substr(d+1),d=p.lastIndexOf(":"),d===-1?n+=r(p,!1,!1):(n+=r(p.substr(0,d),!1,!1),n+=":",n+=r(p.substr(d+1),!1,!0)),n+="@"}o=o.toLowerCase(),d=o.lastIndexOf(":"),d===-1?n+=r(o,!1,!0):(n+=r(o.substr(0,d),!1,!0),n+=o.substr(d))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){let d=s.charCodeAt(1);d>=65&&d<=90&&(s=`/${String.fromCharCode(d+32)}:${s.substr(3)}`)}else if(s.length>=2&&s.charCodeAt(1)===58){let d=s.charCodeAt(0);d>=65&&d<=90&&(s=`${String.fromCharCode(d+32)}:${s.substr(2)}`)}n+=r(s,!0,!1)}return a&&(n+="?",n+=r(a,!1,!1)),u&&(n+="#",n+=t?u:w3(u,!1,!1)),n}function v3(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v3(e.substr(3)):e}}var y3=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Oh(e){return e.match(y3)?e.replace(y3,t=>v3(t)):e}var Gt=class e{constructor(t,r){this.lineNumber=t,this.column=r}with(t=this.lineNumber,r=this.column){return t===this.lineNumber&&r===this.column?this:new e(t,r)}delta(t=0,r=0){return this.with(this.lineNumber+t,this.column+r)}equals(t){return e.equals(this,t)}static equals(t,r){return!t&&!r?!0:!!t&&!!r&&t.lineNumber===r.lineNumber&&t.column===r.column}isBefore(t){return e.isBefore(this,t)}static isBefore(t,r){return t.lineNumber<r.lineNumber?!0:r.lineNumber<t.lineNumber?!1:t.column<r.column}isBeforeOrEqual(t){return e.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,r){return t.lineNumber<r.lineNumber?!0:r.lineNumber<t.lineNumber?!1:t.column<=r.column}static compare(t,r){let n=t.lineNumber|0,i=r.lineNumber|0;if(n===i){let o=t.column|0,s=r.column|0;return o-s}return n-i}clone(){return new e(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new e(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}};var Be=class e{constructor(t,r,n,i){t>n||t===n&&r>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=t,this.endColumn=r):(this.startLineNumber=t,this.startColumn=r,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return e.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(t,r){return!(r.lineNumber<t.startLineNumber||r.lineNumber>t.endLineNumber||r.lineNumber===t.startLineNumber&&r.column<t.startColumn||r.lineNumber===t.endLineNumber&&r.column>t.endColumn)}static strictContainsPosition(t,r){return!(r.lineNumber<t.startLineNumber||r.lineNumber>t.endLineNumber||r.lineNumber===t.startLineNumber&&r.column<=t.startColumn||r.lineNumber===t.endLineNumber&&r.column>=t.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(t,r){return!(r.startLineNumber<t.startLineNumber||r.endLineNumber<t.startLineNumber||r.startLineNumber>t.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumn<t.startColumn||r.endLineNumber===t.endLineNumber&&r.endColumn>t.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(t,r){return!(r.startLineNumber<t.startLineNumber||r.endLineNumber<t.startLineNumber||r.startLineNumber>t.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumn<=t.startColumn||r.endLineNumber===t.endLineNumber&&r.endColumn>=t.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,r){let n,i,o,s;return r.startLineNumber<t.startLineNumber?(n=r.startLineNumber,i=r.startColumn):r.startLineNumber===t.startLineNumber?(n=r.startLineNumber,i=Math.min(r.startColumn,t.startColumn)):(n=t.startLineNumber,i=t.startColumn),r.endLineNumber>t.endLineNumber?(o=r.endLineNumber,s=r.endColumn):r.endLineNumber===t.endLineNumber?(o=r.endLineNumber,s=Math.max(r.endColumn,t.endColumn)):(o=t.endLineNumber,s=t.endColumn),new e(n,i,o,s)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,r){let n=t.startLineNumber,i=t.startColumn,o=t.endLineNumber,s=t.endColumn,a=r.startLineNumber,u=r.startColumn,d=r.endLineNumber,p=r.endColumn;return n<a?(n=a,i=u):n===a&&(i=Math.max(i,u)),o>d?(o=d,s=p):o===d&&(s=Math.min(s,p)),n>o||n===o&&i>s?null:new e(n,i,o,s)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(t,r){return!t&&!r?!0:!!t&&!!r&&t.startLineNumber===r.startLineNumber&&t.startColumn===r.startColumn&&t.endLineNumber===r.endLineNumber&&t.endColumn===r.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(t){return new Gt(t.endLineNumber,t.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(t){return new Gt(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,r){return new e(this.startLineNumber,this.startColumn,t,r)}setStartPosition(t,r){return new e(t,r,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,r=t){return new e(t.lineNumber,t.column,r.lineNumber,r.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,r){return!(t.endLineNumber<r.startLineNumber||t.endLineNumber===r.startLineNumber&&t.endColumn<r.startColumn||r.endLineNumber<t.startLineNumber||r.endLineNumber===t.startLineNumber&&r.endColumn<t.startColumn)}static areIntersecting(t,r){return!(t.endLineNumber<r.startLineNumber||t.endLineNumber===r.startLineNumber&&t.endColumn<=r.startColumn||r.endLineNumber<t.startLineNumber||r.endLineNumber===t.startLineNumber&&r.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,r){if(t&&r){let o=t.startLineNumber|0,s=r.startLineNumber|0;if(o===s){let a=t.startColumn|0,u=r.startColumn|0;if(a===u){let d=t.endLineNumber|0,p=r.endLineNumber|0;if(d===p){let m=t.endColumn|0,w=r.endColumn|0;return m-w}return d-p}return a-u}return o-s}return(t?1:0)-(r?1:0)}static compareRangesUsingEnds(t,r){return t.endLineNumber===r.endLineNumber?t.endColumn===r.endColumn?t.startLineNumber===r.startLineNumber?t.startColumn-r.startColumn:t.startLineNumber-r.startLineNumber:t.endColumn-r.endColumn:t.endLineNumber-r.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};function S3(e,t,r=(n,i)=>n===i){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!r(e[n],t[n]))return!1;return!0}function*x3(e,t){let r,n;for(let i of e)n!==void 0&&t(n,i)?r.push(i):(r&&(yield r),r=[i]),n=i;r&&(yield r)}function C3(e,t){for(let r=0;r<=e.length;r++)t(r===0?void 0:e[r-1],r===e.length?void 0:e[r])}function T3(e,t){for(let r=0;r<e.length;r++)t(r===0?void 0:e[r-1],e[r],r+1===e.length?void 0:e[r+1])}function E3(e,t){for(let r of t)e.push(r)}var a2;(function(e){function t(o){return o<0}e.isLessThan=t;function r(o){return o<=0}e.isLessThanOrEqual=r;function n(o){return o>0}e.isGreaterThan=n;function i(o){return o===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(a2||(a2={}));function Xc(e,t){return(r,n)=>t(e(r),e(n))}var Qc=(e,t)=>e-t;function M3(e){return(t,r)=>-e(t,r)}var $h=class e{constructor(t){this.iterate=t}toArray(){let t=[];return this.iterate(r=>(t.push(r),!0)),t}filter(t){return new e(r=>this.iterate(n=>t(n)?r(n):!0))}map(t){return new e(r=>this.iterate(n=>r(t(n))))}findLast(t){let r;return this.iterate(n=>(t(n)&&(r=n),!0)),r}findLastMaxBy(t){let r,n=!0;return this.iterate(i=>((n||a2.isGreaterThan(t(i,r)))&&(n=!1,r=i),!0)),r}};$h.empty=new $h(e=>{});function l2(e){return e<0?0:e>255?255:e|0}function As(e){return e<0?0:e>4294967295?4294967295:e|0}var Fh=class{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,r){t=As(t);let n=this.values,i=this.prefixSum,o=r.length;return o===0?!1:(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,t),0),this.values.set(n.subarray(t),t+o),this.values.set(r,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,r){return t=As(t),r=As(r),this.values[t]===r?!1:(this.values[t]=r,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,r){t=As(t),r=As(r);let n=this.values,i=this.prefixSum;if(t>=n.length)return!1;let o=n.length-t;return r>=o&&(r=o),r===0?!1:(this.values=new Uint32Array(n.length-r),this.values.set(n.subarray(0,t),0),this.values.set(n.subarray(t+r),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=As(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let r=this.prefixSumValidIndex[0]+1;r===0&&(this.prefixSum[0]=this.values[0],r++),t>=this.values.length&&(t=this.values.length-1);for(let n=r;n<=t;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let r=0,n=this.values.length-1,i=0,o=0,s=0;for(;r<=n;)if(i=r+(n-r)/2|0,o=this.prefixSum[i],s=o-this.values[i],t<s)n=i-1;else if(t>=o)r=i+1;else break;return new c2(i,t-s)}};var c2=class{constructor(t,r){this.index=t,this.remainder=r,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=r}};var Vh=class{constructor(t,r,n,i){this._uri=t,this._lines=r,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);let r=t.changes;for(let n of r)this._acceptDeleteRange(n.range),this._acceptInsertText(new Gt(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let t=this._eol.length,r=this._lines.length,n=new Uint32Array(r);for(let i=0;i<r;i++)n[i]=this._lines[i].length+t;this._lineStarts=new Fh(n)}}_setLineText(t,r){this._lines[t]=r,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,r){if(r.length===0)return;let n=n3(r);if(n.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+n[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}n[n.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+n[0]);let i=new Uint32Array(n.length-1);for(let o=1;o<n.length;o++)this._lines.splice(t.lineNumber+o-1,0,n[o]),i[o-1]=n[o].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,i)}};var ER="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function MR(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let r of ER)e.indexOf(r)>=0||(t+="\\"+r);return t+="\\s]+)",new RegExp(t,"g")}var u2=MR();function d2(e){let t=u2;if(e&&e instanceof RegExp)if(e.global)t=e;else{let r="g";e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.unicode&&(r+="u"),t=new RegExp(e.source,r)}return t.lastIndex=0,t}var L3=new zc;L3.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Kc(e,t,r,n,i){if(t=d2(t),i||(i=Ua.first(L3)),r.length>i.maxLen){let d=e-i.maxLen/2;return d<0?d=0:n+=d,r=r.substring(d,e+i.maxLen/2),Kc(e,t,r,n,i)}let o=Date.now(),s=e-1-n,a=-1,u=null;for(let d=1;!(Date.now()-o>=i.timeBudget);d++){let p=s-i.windowSize*d;t.lastIndex=Math.max(0,p);let m=LR(t,r,s,a);if(!m&&u||(u=m,p<=0))break;a=p}if(u){let d={word:u[0],startColumn:n+1+u.index,endColumn:n+1+u.index+u[0].length};return t.lastIndex=0,d}return null}function LR(e,t,r,n){let i;for(;i=e.exec(t);){let o=i.index||0;if(o<=r&&e.lastIndex>=r)return i;if(n>0&&o>n)return null}return null}var Ha=class e{constructor(t){let r=l2(t);this._defaultValue=r,this._asciiMap=e._createAsciiMap(r),this._map=new Map}static _createAsciiMap(t){let r=new Uint8Array(256);return r.fill(t),r}set(t,r){let n=l2(r);t>=0&&t<256?this._asciiMap[t]=n:this._map.set(t,n)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}};var p2=class{constructor(t,r,n){let i=new Uint8Array(t*r);for(let o=0,s=t*r;o<s;o++)i[o]=n;this._data=i,this.rows=t,this.cols=r}get(t,r){return this._data[t*this.cols+r]}set(t,r,n){this._data[t*this.cols+r]=n}},m2=class{constructor(t){let r=0,n=0;for(let o=0,s=t.length;o<s;o++){let[a,u,d]=t[o];u>r&&(r=u),a>n&&(n=a),d>n&&(n=d)}r++,n++;let i=new p2(n,r,0);for(let o=0,s=t.length;o<s;o++){let[a,u,d]=t[o];i.set(a,u,d)}this._states=i,this._maxCharCode=r}nextState(t,r){return r<0||r>=this._maxCharCode?0:this._states.get(t,r)}},f2=null;function IR(){return f2===null&&(f2=new m2([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),f2}var eu=null;function PR(){if(eu===null){eu=new Ha(0);let e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let r=0;r<e.length;r++)eu.set(e.charCodeAt(r),1);let t=".,;:";for(let r=0;r<t.length;r++)eu.set(t.charCodeAt(r),2)}return eu}var h2=class e{static _createLink(t,r,n,i,o){let s=o-1;do{let a=r.charCodeAt(s);if(t.get(a)!==2)break;s--}while(s>i);if(i>0){let a=r.charCodeAt(i-1),u=r.charCodeAt(s);(a===40&&u===41||a===91&&u===93||a===123&&u===125)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:r.substring(i,s+1)}}static computeLinks(t,r=IR()){let n=PR(),i=[];for(let o=1,s=t.getLineCount();o<=s;o++){let a=t.getLineContent(o),u=a.length,d=0,p=0,m=0,w=1,_=!1,S=!1,T=!1,M=!1;for(;d<u;){let R=!1,I=a.charCodeAt(d);if(w===13){let N;switch(I){case 40:_=!0,N=0;break;case 41:N=_?0:1;break;case 91:T=!0,S=!0,N=0;break;case 93:T=!1,N=S?0:1;break;case 123:M=!0,N=0;break;case 125:N=M?0:1;break;case 39:case 34:case 96:m===I?N=1:m===39||m===34||m===96?N=0:N=1;break;case 42:N=m===42?1:0;break;case 124:N=m===124?1:0;break;case 32:N=T?0:1;break;default:N=n.get(I)}N===1&&(i.push(e._createLink(n,a,o,p,d)),R=!0)}else if(w===12){let N;I===91?(S=!0,N=0):N=n.get(I),N===1?R=!0:w=13}else w=r.nextState(w,I),w===0&&(R=!0);R&&(w=1,_=!1,S=!1,M=!1,p=d+1,m=I),d++}w===13&&i.push(e._createLink(n,a,o,p,u))}return i}};function I3(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:h2.computeLinks(e)}var Za=class{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,r,n,i,o){if(t&&r){let s=this.doNavigateValueSet(r,o);if(s)return{range:t,value:s}}if(n&&i){let s=this.doNavigateValueSet(i,o);if(s)return{range:n,value:s}}return null}doNavigateValueSet(t,r){let n=this.numberReplace(t,r);return n!==null?n:this.textReplace(t,r)}numberReplace(t,r){let n=Math.pow(10,t.length-(t.lastIndexOf(".")+1)),i=Number(t),o=parseFloat(t);return!isNaN(i)&&!isNaN(o)&&i===o?i===0&&!r?null:(i=Math.floor(i*n),i+=r?n:-n,String(i/n)):null}textReplace(t,r){return this.valueSetsReplace(this._defaultValueSet,t,r)}valueSetsReplace(t,r,n){let i=null;for(let o=0,s=t.length;i===null&&o<s;o++)i=this.valueSetReplace(t[o],r,n);return i}valueSetReplace(t,r,n){let i=t.indexOf(r);return i>=0?(i+=n?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}};Za.INSTANCE=new Za;var P3=Object.freeze(function(e,t){let r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}}),Uh;(function(e){function t(r){return r===e.None||r===e.Cancelled||r instanceof Ya?!0:!r||typeof r!="object"?!1:typeof r.isCancellationRequested=="boolean"&&typeof r.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:xh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:P3})})(Uh||(Uh={}));var Ya=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?P3:(this._emitter||(this._emitter=new mr),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},Wh=class{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Ya),this._token}cancel(){this._token?this._token instanceof Ya&&this._token.cancel():this._token=Uh.Cancelled}dispose(t=!1){var r;t&&this.cancel(),(r=this._parentListener)===null||r===void 0||r.dispose(),this._token?this._token instanceof Ya&&this._token.dispose():this._token=Uh.None}};var tu=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,r){this._keyCodeToStr[t]=r,this._strToKeyCode[r.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}},zh=new tu,g2=new tu,w2=new tu,AR=new Array(230),NR={},kR=[],RR=Object.create(null),DR=Object.create(null),N3=[],y2=[];for(let e=0;e<=193;e++)N3[e]=-1;for(let e=0;e<=132;e++)y2[e]=-1;(function(){let e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],r=[],n=[];for(let i of t){let[o,s,a,u,d,p,m,w,_]=i;if(n[s]||(n[s]=!0,kR[s]=a,RR[a]=s,DR[a.toLowerCase()]=s,o&&(N3[s]=u,u!==0&&u!==3&&u!==5&&u!==4&&u!==6&&u!==57&&(y2[u]=s))),!r[u]){if(r[u]=!0,!d)throw new Error(`String representation missing for key code ${u} around scan code ${a}`);zh.define(u,d),g2.define(u,w||d),w2.define(u,_||w||d)}p&&(AR[p]=u),m&&(NR[m]=u)}y2[3]=46})();var A3;(function(e){function t(a){return zh.keyCodeToStr(a)}e.toString=t;function r(a){return zh.strToKeyCode(a)}e.fromString=r;function n(a){return g2.keyCodeToStr(a)}e.toUserSettingsUS=n;function i(a){return w2.keyCodeToStr(a)}e.toUserSettingsGeneral=i;function o(a){return g2.strToKeyCode(a)||w2.strToKeyCode(a)}e.fromUserSettings=o;function s(a){if(a>=98&&a<=113)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return zh.keyCodeToStr(a)}e.toElectronAccelerator=s})(A3||(A3={}));function k3(e,t){let r=(t&65535)<<16>>>0;return(e|r)>>>0}var Bh=class e extends Be{constructor(t,r,n,i){super(t,r,n,i),this.selectionStartLineNumber=t,this.selectionStartColumn=r,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(t,r){return t.selectionStartLineNumber===r.selectionStartLineNumber&&t.selectionStartColumn===r.selectionStartColumn&&t.positionLineNumber===r.positionLineNumber&&t.positionColumn===r.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,r){return this.getDirection()===0?new e(this.startLineNumber,this.startColumn,t,r):new e(t,r,this.startLineNumber,this.startColumn)}getPosition(){return new Gt(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Gt(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,r){return this.getDirection()===0?new e(t,r,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,r)}static fromPositions(t,r=t){return new e(t.lineNumber,t.column,r.lineNumber,r.column)}static fromRange(t,r){return r===0?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,r){if(t&&!r||!t&&r)return!1;if(!t&&!r)return!0;if(t.length!==r.length)return!1;for(let n=0,i=t.length;n<i;n++)if(!this.selectionsEqual(t[n],r[n]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,r,n,i,o){return o===0?new e(t,r,n,i):new e(n,i,t,r)}};var R3=Object.create(null);function b(e,t){if(J5(t)){let r=R3[t];if(r===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=r}return R3[e]=t,{id:e}}var we={add:b("add",6e4),plus:b("plus",6e4),gistNew:b("gist-new",6e4),repoCreate:b("repo-create",6e4),lightbulb:b("lightbulb",60001),lightBulb:b("light-bulb",60001),repo:b("repo",60002),repoDelete:b("repo-delete",60002),gistFork:b("gist-fork",60003),repoForked:b("repo-forked",60003),gitPullRequest:b("git-pull-request",60004),gitPullRequestAbandoned:b("git-pull-request-abandoned",60004),recordKeys:b("record-keys",60005),keyboard:b("keyboard",60005),tag:b("tag",60006),tagAdd:b("tag-add",60006),tagRemove:b("tag-remove",60006),gitPullRequestLabel:b("git-pull-request-label",60006),person:b("person",60007),personFollow:b("person-follow",60007),personOutline:b("person-outline",60007),personFilled:b("person-filled",60007),gitBranch:b("git-branch",60008),gitBranchCreate:b("git-branch-create",60008),gitBranchDelete:b("git-branch-delete",60008),sourceControl:b("source-control",60008),mirror:b("mirror",60009),mirrorPublic:b("mirror-public",60009),star:b("star",60010),starAdd:b("star-add",60010),starDelete:b("star-delete",60010),starEmpty:b("star-empty",60010),comment:b("comment",60011),commentAdd:b("comment-add",60011),alert:b("alert",60012),warning:b("warning",60012),search:b("search",60013),searchSave:b("search-save",60013),logOut:b("log-out",60014),signOut:b("sign-out",60014),logIn:b("log-in",60015),signIn:b("sign-in",60015),eye:b("eye",60016),eyeUnwatch:b("eye-unwatch",60016),eyeWatch:b("eye-watch",60016),circleFilled:b("circle-filled",60017),primitiveDot:b("primitive-dot",60017),closeDirty:b("close-dirty",60017),debugBreakpoint:b("debug-breakpoint",60017),debugBreakpointDisabled:b("debug-breakpoint-disabled",60017),debugHint:b("debug-hint",60017),primitiveSquare:b("primitive-square",60018),edit:b("edit",60019),pencil:b("pencil",60019),info:b("info",60020),issueOpened:b("issue-opened",60020),gistPrivate:b("gist-private",60021),gitForkPrivate:b("git-fork-private",60021),lock:b("lock",60021),mirrorPrivate:b("mirror-private",60021),close:b("close",60022),removeClose:b("remove-close",60022),x:b("x",60022),repoSync:b("repo-sync",60023),sync:b("sync",60023),clone:b("clone",60024),desktopDownload:b("desktop-download",60024),beaker:b("beaker",60025),microscope:b("microscope",60025),vm:b("vm",60026),deviceDesktop:b("device-desktop",60026),file:b("file",60027),fileText:b("file-text",60027),more:b("more",60028),ellipsis:b("ellipsis",60028),kebabHorizontal:b("kebab-horizontal",60028),mailReply:b("mail-reply",60029),reply:b("reply",60029),organization:b("organization",60030),organizationFilled:b("organization-filled",60030),organizationOutline:b("organization-outline",60030),newFile:b("new-file",60031),fileAdd:b("file-add",60031),newFolder:b("new-folder",60032),fileDirectoryCreate:b("file-directory-create",60032),trash:b("trash",60033),trashcan:b("trashcan",60033),history:b("history",60034),clock:b("clock",60034),folder:b("folder",60035),fileDirectory:b("file-directory",60035),symbolFolder:b("symbol-folder",60035),logoGithub:b("logo-github",60036),markGithub:b("mark-github",60036),github:b("github",60036),terminal:b("terminal",60037),console:b("console",60037),repl:b("repl",60037),zap:b("zap",60038),symbolEvent:b("symbol-event",60038),error:b("error",60039),stop:b("stop",60039),variable:b("variable",60040),symbolVariable:b("symbol-variable",60040),array:b("array",60042),symbolArray:b("symbol-array",60042),symbolModule:b("symbol-module",60043),symbolPackage:b("symbol-package",60043),symbolNamespace:b("symbol-namespace",60043),symbolObject:b("symbol-object",60043),symbolMethod:b("symbol-method",60044),symbolFunction:b("symbol-function",60044),symbolConstructor:b("symbol-constructor",60044),symbolBoolean:b("symbol-boolean",60047),symbolNull:b("symbol-null",60047),symbolNumeric:b("symbol-numeric",60048),symbolNumber:b("symbol-number",60048),symbolStructure:b("symbol-structure",60049),symbolStruct:b("symbol-struct",60049),symbolParameter:b("symbol-parameter",60050),symbolTypeParameter:b("symbol-type-parameter",60050),symbolKey:b("symbol-key",60051),symbolText:b("symbol-text",60051),symbolReference:b("symbol-reference",60052),goToFile:b("go-to-file",60052),symbolEnum:b("symbol-enum",60053),symbolValue:b("symbol-value",60053),symbolRuler:b("symbol-ruler",60054),symbolUnit:b("symbol-unit",60054),activateBreakpoints:b("activate-breakpoints",60055),archive:b("archive",60056),arrowBoth:b("arrow-both",60057),arrowDown:b("arrow-down",60058),arrowLeft:b("arrow-left",60059),arrowRight:b("arrow-right",60060),arrowSmallDown:b("arrow-small-down",60061),arrowSmallLeft:b("arrow-small-left",60062),arrowSmallRight:b("arrow-small-right",60063),arrowSmallUp:b("arrow-small-up",60064),arrowUp:b("arrow-up",60065),bell:b("bell",60066),bold:b("bold",60067),book:b("book",60068),bookmark:b("bookmark",60069),debugBreakpointConditionalUnverified:b("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:b("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:b("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:b("debug-breakpoint-data-unverified",60072),debugBreakpointData:b("debug-breakpoint-data",60073),debugBreakpointDataDisabled:b("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:b("debug-breakpoint-log-unverified",60074),debugBreakpointLog:b("debug-breakpoint-log",60075),debugBreakpointLogDisabled:b("debug-breakpoint-log-disabled",60075),briefcase:b("briefcase",60076),broadcast:b("broadcast",60077),browser:b("browser",60078),bug:b("bug",60079),calendar:b("calendar",60080),caseSensitive:b("case-sensitive",60081),check:b("check",60082),checklist:b("checklist",60083),chevronDown:b("chevron-down",60084),dropDownButton:b("drop-down-button",60084),chevronLeft:b("chevron-left",60085),chevronRight:b("chevron-right",60086),chevronUp:b("chevron-up",60087),chromeClose:b("chrome-close",60088),chromeMaximize:b("chrome-maximize",60089),chromeMinimize:b("chrome-minimize",60090),chromeRestore:b("chrome-restore",60091),circle:b("circle",60092),circleOutline:b("circle-outline",60092),debugBreakpointUnverified:b("debug-breakpoint-unverified",60092),circleSlash:b("circle-slash",60093),circuitBoard:b("circuit-board",60094),clearAll:b("clear-all",60095),clippy:b("clippy",60096),closeAll:b("close-all",60097),cloudDownload:b("cloud-download",60098),cloudUpload:b("cloud-upload",60099),code:b("code",60100),collapseAll:b("collapse-all",60101),colorMode:b("color-mode",60102),commentDiscussion:b("comment-discussion",60103),compareChanges:b("compare-changes",60157),creditCard:b("credit-card",60105),dash:b("dash",60108),dashboard:b("dashboard",60109),database:b("database",60110),debugContinue:b("debug-continue",60111),debugDisconnect:b("debug-disconnect",60112),debugPause:b("debug-pause",60113),debugRestart:b("debug-restart",60114),debugStart:b("debug-start",60115),debugStepInto:b("debug-step-into",60116),debugStepOut:b("debug-step-out",60117),debugStepOver:b("debug-step-over",60118),debugStop:b("debug-stop",60119),debug:b("debug",60120),deviceCameraVideo:b("device-camera-video",60121),deviceCamera:b("device-camera",60122),deviceMobile:b("device-mobile",60123),diffAdded:b("diff-added",60124),diffIgnored:b("diff-ignored",60125),diffModified:b("diff-modified",60126),diffRemoved:b("diff-removed",60127),diffRenamed:b("diff-renamed",60128),diff:b("diff",60129),discard:b("discard",60130),editorLayout:b("editor-layout",60131),emptyWindow:b("empty-window",60132),exclude:b("exclude",60133),extensions:b("extensions",60134),eyeClosed:b("eye-closed",60135),fileBinary:b("file-binary",60136),fileCode:b("file-code",60137),fileMedia:b("file-media",60138),filePdf:b("file-pdf",60139),fileSubmodule:b("file-submodule",60140),fileSymlinkDirectory:b("file-symlink-directory",60141),fileSymlinkFile:b("file-symlink-file",60142),fileZip:b("file-zip",60143),files:b("files",60144),filter:b("filter",60145),flame:b("flame",60146),foldDown:b("fold-down",60147),foldUp:b("fold-up",60148),fold:b("fold",60149),folderActive:b("folder-active",60150),folderOpened:b("folder-opened",60151),gear:b("gear",60152),gift:b("gift",60153),gistSecret:b("gist-secret",60154),gist:b("gist",60155),gitCommit:b("git-commit",60156),gitCompare:b("git-compare",60157),gitMerge:b("git-merge",60158),githubAction:b("github-action",60159),githubAlt:b("github-alt",60160),globe:b("globe",60161),grabber:b("grabber",60162),graph:b("graph",60163),gripper:b("gripper",60164),heart:b("heart",60165),home:b("home",60166),horizontalRule:b("horizontal-rule",60167),hubot:b("hubot",60168),inbox:b("inbox",60169),issueClosed:b("issue-closed",60324),issueReopened:b("issue-reopened",60171),issues:b("issues",60172),italic:b("italic",60173),jersey:b("jersey",60174),json:b("json",60175),bracket:b("bracket",60175),kebabVertical:b("kebab-vertical",60176),key:b("key",60177),law:b("law",60178),lightbulbAutofix:b("lightbulb-autofix",60179),linkExternal:b("link-external",60180),link:b("link",60181),listOrdered:b("list-ordered",60182),listUnordered:b("list-unordered",60183),liveShare:b("live-share",60184),loading:b("loading",60185),location:b("location",60186),mailRead:b("mail-read",60187),mail:b("mail",60188),markdown:b("markdown",60189),megaphone:b("megaphone",60190),mention:b("mention",60191),milestone:b("milestone",60192),gitPullRequestMilestone:b("git-pull-request-milestone",60192),mortarBoard:b("mortar-board",60193),move:b("move",60194),multipleWindows:b("multiple-windows",60195),mute:b("mute",60196),noNewline:b("no-newline",60197),note:b("note",60198),octoface:b("octoface",60199),openPreview:b("open-preview",60200),package:b("package",60201),paintcan:b("paintcan",60202),pin:b("pin",60203),play:b("play",60204),run:b("run",60204),plug:b("plug",60205),preserveCase:b("preserve-case",60206),preview:b("preview",60207),project:b("project",60208),pulse:b("pulse",60209),question:b("question",60210),quote:b("quote",60211),radioTower:b("radio-tower",60212),reactions:b("reactions",60213),references:b("references",60214),refresh:b("refresh",60215),regex:b("regex",60216),remoteExplorer:b("remote-explorer",60217),remote:b("remote",60218),remove:b("remove",60219),replaceAll:b("replace-all",60220),replace:b("replace",60221),repoClone:b("repo-clone",60222),repoForcePush:b("repo-force-push",60223),repoPull:b("repo-pull",60224),repoPush:b("repo-push",60225),report:b("report",60226),requestChanges:b("request-changes",60227),rocket:b("rocket",60228),rootFolderOpened:b("root-folder-opened",60229),rootFolder:b("root-folder",60230),rss:b("rss",60231),ruby:b("ruby",60232),saveAll:b("save-all",60233),saveAs:b("save-as",60234),save:b("save",60235),screenFull:b("screen-full",60236),screenNormal:b("screen-normal",60237),searchStop:b("search-stop",60238),server:b("server",60240),settingsGear:b("settings-gear",60241),settings:b("settings",60242),shield:b("shield",60243),smiley:b("smiley",60244),sortPrecedence:b("sort-precedence",60245),splitHorizontal:b("split-horizontal",60246),splitVertical:b("split-vertical",60247),squirrel:b("squirrel",60248),starFull:b("star-full",60249),starHalf:b("star-half",60250),symbolClass:b("symbol-class",60251),symbolColor:b("symbol-color",60252),symbolCustomColor:b("symbol-customcolor",60252),symbolConstant:b("symbol-constant",60253),symbolEnumMember:b("symbol-enum-member",60254),symbolField:b("symbol-field",60255),symbolFile:b("symbol-file",60256),symbolInterface:b("symbol-interface",60257),symbolKeyword:b("symbol-keyword",60258),symbolMisc:b("symbol-misc",60259),symbolOperator:b("symbol-operator",60260),symbolProperty:b("symbol-property",60261),wrench:b("wrench",60261),wrenchSubaction:b("wrench-subaction",60261),symbolSnippet:b("symbol-snippet",60262),tasklist:b("tasklist",60263),telescope:b("telescope",60264),textSize:b("text-size",60265),threeBars:b("three-bars",60266),thumbsdown:b("thumbsdown",60267),thumbsup:b("thumbsup",60268),tools:b("tools",60269),triangleDown:b("triangle-down",60270),triangleLeft:b("triangle-left",60271),triangleRight:b("triangle-right",60272),triangleUp:b("triangle-up",60273),twitter:b("twitter",60274),unfold:b("unfold",60275),unlock:b("unlock",60276),unmute:b("unmute",60277),unverified:b("unverified",60278),verified:b("verified",60279),versions:b("versions",60280),vmActive:b("vm-active",60281),vmOutline:b("vm-outline",60282),vmRunning:b("vm-running",60283),watch:b("watch",60284),whitespace:b("whitespace",60285),wholeWord:b("whole-word",60286),window:b("window",60287),wordWrap:b("word-wrap",60288),zoomIn:b("zoom-in",60289),zoomOut:b("zoom-out",60290),listFilter:b("list-filter",60291),listFlat:b("list-flat",60292),listSelection:b("list-selection",60293),selection:b("selection",60293),listTree:b("list-tree",60294),debugBreakpointFunctionUnverified:b("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:b("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:b("debug-breakpoint-function-disabled",60296),debugStackframeActive:b("debug-stackframe-active",60297),circleSmallFilled:b("circle-small-filled",60298),debugStackframeDot:b("debug-stackframe-dot",60298),debugStackframe:b("debug-stackframe",60299),debugStackframeFocused:b("debug-stackframe-focused",60299),debugBreakpointUnsupported:b("debug-breakpoint-unsupported",60300),symbolString:b("symbol-string",60301),debugReverseContinue:b("debug-reverse-continue",60302),debugStepBack:b("debug-step-back",60303),debugRestartFrame:b("debug-restart-frame",60304),callIncoming:b("call-incoming",60306),callOutgoing:b("call-outgoing",60307),menu:b("menu",60308),expandAll:b("expand-all",60309),feedback:b("feedback",60310),gitPullRequestReviewer:b("git-pull-request-reviewer",60310),groupByRefType:b("group-by-ref-type",60311),ungroupByRefType:b("ungroup-by-ref-type",60312),account:b("account",60313),gitPullRequestAssignee:b("git-pull-request-assignee",60313),bellDot:b("bell-dot",60314),debugConsole:b("debug-console",60315),library:b("library",60316),output:b("output",60317),runAll:b("run-all",60318),syncIgnored:b("sync-ignored",60319),pinned:b("pinned",60320),githubInverted:b("github-inverted",60321),debugAlt:b("debug-alt",60305),serverProcess:b("server-process",60322),serverEnvironment:b("server-environment",60323),pass:b("pass",60324),stopCircle:b("stop-circle",60325),playCircle:b("play-circle",60326),record:b("record",60327),debugAltSmall:b("debug-alt-small",60328),vmConnect:b("vm-connect",60329),cloud:b("cloud",60330),merge:b("merge",60331),exportIcon:b("export",60332),graphLeft:b("graph-left",60333),magnet:b("magnet",60334),notebook:b("notebook",60335),redo:b("redo",60336),checkAll:b("check-all",60337),pinnedDirty:b("pinned-dirty",60338),passFilled:b("pass-filled",60339),circleLargeFilled:b("circle-large-filled",60340),circleLarge:b("circle-large",60341),circleLargeOutline:b("circle-large-outline",60341),combine:b("combine",60342),gather:b("gather",60342),table:b("table",60343),variableGroup:b("variable-group",60344),typeHierarchy:b("type-hierarchy",60345),typeHierarchySub:b("type-hierarchy-sub",60346),typeHierarchySuper:b("type-hierarchy-super",60347),gitPullRequestCreate:b("git-pull-request-create",60348),runAbove:b("run-above",60349),runBelow:b("run-below",60350),notebookTemplate:b("notebook-template",60351),debugRerun:b("debug-rerun",60352),workspaceTrusted:b("workspace-trusted",60353),workspaceUntrusted:b("workspace-untrusted",60354),workspaceUnspecified:b("workspace-unspecified",60355),terminalCmd:b("terminal-cmd",60356),terminalDebian:b("terminal-debian",60357),terminalLinux:b("terminal-linux",60358),terminalPowershell:b("terminal-powershell",60359),terminalTmux:b("terminal-tmux",60360),terminalUbuntu:b("terminal-ubuntu",60361),terminalBash:b("terminal-bash",60362),arrowSwap:b("arrow-swap",60363),copy:b("copy",60364),personAdd:b("person-add",60365),filterFilled:b("filter-filled",60366),wand:b("wand",60367),debugLineByLine:b("debug-line-by-line",60368),inspect:b("inspect",60369),layers:b("layers",60370),layersDot:b("layers-dot",60371),layersActive:b("layers-active",60372),compass:b("compass",60373),compassDot:b("compass-dot",60374),compassActive:b("compass-active",60375),azure:b("azure",60376),issueDraft:b("issue-draft",60377),gitPullRequestClosed:b("git-pull-request-closed",60378),gitPullRequestDraft:b("git-pull-request-draft",60379),debugAll:b("debug-all",60380),debugCoverage:b("debug-coverage",60381),runErrors:b("run-errors",60382),folderLibrary:b("folder-library",60383),debugContinueSmall:b("debug-continue-small",60384),beakerStop:b("beaker-stop",60385),graphLine:b("graph-line",60386),graphScatter:b("graph-scatter",60387),pieChart:b("pie-chart",60388),bracketDot:b("bracket-dot",60389),bracketError:b("bracket-error",60390),lockSmall:b("lock-small",60391),azureDevops:b("azure-devops",60392),verifiedFilled:b("verified-filled",60393),newLine:b("newline",60394),layout:b("layout",60395),layoutActivitybarLeft:b("layout-activitybar-left",60396),layoutActivitybarRight:b("layout-activitybar-right",60397),layoutPanelLeft:b("layout-panel-left",60398),layoutPanelCenter:b("layout-panel-center",60399),layoutPanelJustify:b("layout-panel-justify",60400),layoutPanelRight:b("layout-panel-right",60401),layoutPanel:b("layout-panel",60402),layoutSidebarLeft:b("layout-sidebar-left",60403),layoutSidebarRight:b("layout-sidebar-right",60404),layoutStatusbar:b("layout-statusbar",60405),layoutMenubar:b("layout-menubar",60406),layoutCentered:b("layout-centered",60407),layoutSidebarRightOff:b("layout-sidebar-right-off",60416),layoutPanelOff:b("layout-panel-off",60417),layoutSidebarLeftOff:b("layout-sidebar-left-off",60418),target:b("target",60408),indent:b("indent",60409),recordSmall:b("record-small",60410),errorSmall:b("error-small",60411),arrowCircleDown:b("arrow-circle-down",60412),arrowCircleLeft:b("arrow-circle-left",60413),arrowCircleRight:b("arrow-circle-right",60414),arrowCircleUp:b("arrow-circle-up",60415),heartFilled:b("heart-filled",60420),map:b("map",60421),mapFilled:b("map-filled",60422),circleSmall:b("circle-small",60423),bellSlash:b("bell-slash",60424),bellSlashDot:b("bell-slash-dot",60425),commentUnresolved:b("comment-unresolved",60426),gitPullRequestGoToChanges:b("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:b("git-pull-request-new-changes",60428),searchFuzzy:b("search-fuzzy",60429),commentDraft:b("comment-draft",60430),send:b("send",60431),sparkle:b("sparkle",60432),insert:b("insert",60433),mic:b("mic",60434),thumbsDownFilled:b("thumbsdown-filled",60435),thumbsUpFilled:b("thumbsup-filled",60436),coffee:b("coffee",60437),snake:b("snake",60438),game:b("game",60439),vr:b("vr",60440),chip:b("chip",60441),piano:b("piano",60442),music:b("music",60443),micFilled:b("mic-filled",60444),gitFetch:b("git-fetch",60445),copilot:b("copilot",60446),lightbulbSparkle:b("lightbulb-sparkle",60447),lightbulbSparkleAutofix:b("lightbulb-sparkle-autofix",60447),robot:b("robot",60448),sparkleFilled:b("sparkle-filled",60449),diffSingle:b("diff-single",60450),diffMultiple:b("diff-multiple",60451),dialogError:b("dialog-error","error"),dialogWarning:b("dialog-warning","warning"),dialogInfo:b("dialog-info","info"),dialogClose:b("dialog-close","close"),treeItemExpanded:b("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:b("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:b("tree-filter-on-type-off","list-selection"),treeFilterClear:b("tree-filter-clear","close"),treeItemLoading:b("tree-item-loading","loading"),menuSelection:b("menu-selection","check"),menuSubmenu:b("menu-submenu","chevron-right"),menuBarMore:b("menubar-more","more"),scrollbarButtonLeft:b("scrollbar-button-left","triangle-left"),scrollbarButtonRight:b("scrollbar-button-right","triangle-right"),scrollbarButtonUp:b("scrollbar-button-up","triangle-up"),scrollbarButtonDown:b("scrollbar-button-down","triangle-down"),toolBarMore:b("toolbar-more","more"),quickInputBack:b("quick-input-back","arrow-left")};var Gh=class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new mr,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,r){return this._tokenizationSupports.set(t,r),this.handleChange([t]),Ls(()=>{this._tokenizationSupports.get(t)===r&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,r){var n;(n=this._factories.get(t))===null||n===void 0||n.dispose();let i=new b2(this,t,r);return this._factories.set(t,i),Ls(()=>{let o=this._factories.get(t);!o||o!==i||(this._factories.delete(t),o.dispose())})}async getOrCreate(t){let r=this.get(t);if(r)return r;let n=this._factories.get(t);return!n||n.isResolved?null:(await n.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;let n=this._factories.get(t);return!!(!n||n.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},b2=class extends vn{get isResolved(){return this._isResolved}constructor(t,r,n){super(),this._registry=t,this._languageId=r,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){let t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}};var qh=class{constructor(t,r,n){this.offset=t,this.type=r,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};var D3;(function(e){let t=new Map;t.set(0,we.symbolMethod),t.set(1,we.symbolFunction),t.set(2,we.symbolConstructor),t.set(3,we.symbolField),t.set(4,we.symbolVariable),t.set(5,we.symbolClass),t.set(6,we.symbolStruct),t.set(7,we.symbolInterface),t.set(8,we.symbolModule),t.set(9,we.symbolProperty),t.set(10,we.symbolEvent),t.set(11,we.symbolOperator),t.set(12,we.symbolUnit),t.set(13,we.symbolValue),t.set(15,we.symbolEnum),t.set(14,we.symbolConstant),t.set(15,we.symbolEnum),t.set(16,we.symbolEnumMember),t.set(17,we.symbolKeyword),t.set(27,we.symbolSnippet),t.set(18,we.symbolText),t.set(19,we.symbolColor),t.set(20,we.symbolFile),t.set(21,we.symbolReference),t.set(22,we.symbolCustomColor),t.set(23,we.symbolFolder),t.set(24,we.symbolTypeParameter),t.set(25,we.account),t.set(26,we.issues);function r(o){let s=t.get(o);return s||(console.info("No codicon found for CompletionItemKind "+o),s=we.symbolProperty),s}e.toIcon=r;let n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26);function i(o,s){let a=n.get(o);return typeof a>"u"&&!s&&(a=9),a}e.fromString=i})(D3||(D3={}));var O3;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(O3||(O3={}));var $3;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})($3||($3={}));var F3;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(F3||(F3={}));var JJ={17:Xe("Array","array"),16:Xe("Boolean","boolean"),4:Xe("Class","class"),13:Xe("Constant","constant"),8:Xe("Constructor","constructor"),9:Xe("Enum","enumeration"),21:Xe("EnumMember","enumeration member"),23:Xe("Event","event"),7:Xe("Field","field"),0:Xe("File","file"),11:Xe("Function","function"),10:Xe("Interface","interface"),19:Xe("Key","key"),5:Xe("Method","method"),1:Xe("Module","module"),2:Xe("Namespace","namespace"),20:Xe("Null","null"),15:Xe("Number","number"),18:Xe("Object","object"),24:Xe("Operator","operator"),3:Xe("Package","package"),6:Xe("Property","property"),14:Xe("String","string"),22:Xe("Struct","struct"),25:Xe("TypeParameter","type parameter"),12:Xe("Variable","variable")};var V3;(function(e){let t=new Map;t.set(0,we.symbolFile),t.set(1,we.symbolModule),t.set(2,we.symbolNamespace),t.set(3,we.symbolPackage),t.set(4,we.symbolClass),t.set(5,we.symbolMethod),t.set(6,we.symbolProperty),t.set(7,we.symbolField),t.set(8,we.symbolConstructor),t.set(9,we.symbolEnum),t.set(10,we.symbolInterface),t.set(11,we.symbolFunction),t.set(12,we.symbolVariable),t.set(13,we.symbolConstant),t.set(14,we.symbolString),t.set(15,we.symbolNumber),t.set(16,we.symbolBoolean),t.set(17,we.symbolArray),t.set(18,we.symbolObject),t.set(19,we.symbolKey),t.set(20,we.symbolNull),t.set(21,we.symbolEnumMember),t.set(22,we.symbolStruct),t.set(23,we.symbolEvent),t.set(24,we.symbolOperator),t.set(25,we.symbolTypeParameter);function r(n){let i=t.get(n);return i||(console.info("No codicon found for SymbolKind "+n),i=we.symbolProperty),i}e.toIcon=r})(V3||(V3={}));var _o=class e{static fromValue(t){switch(t){case"comment":return e.Comment;case"imports":return e.Imports;case"region":return e.Region}return new e(t)}constructor(t){this.value=t}};_o.Comment=new _o("comment");_o.Imports=new _o("imports");_o.Region=new _o("region");var U3;(function(e){function t(r){return!r||typeof r!="object"?!1:typeof r.id=="string"&&typeof r.title=="string"}e.is=t})(U3||(U3={}));var W3;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(W3||(W3={}));var XJ=new Gh;var z3;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(z3||(z3={}));var B3;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(B3||(B3={}));var G3;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(G3||(G3={}));var q3;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(q3||(q3={}));var j3;(function(e){e[e.Deprecated=1]="Deprecated"})(j3||(j3={}));var H3;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(H3||(H3={}));var Z3;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Z3||(Z3={}));var Y3;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Y3||(Y3={}));var J3;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(J3||(J3={}));var X3;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(X3||(X3={}));var Q3;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(Q3||(Q3={}));var K3;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.letterSpacing=63]="letterSpacing",e[e.lightbulb=64]="lightbulb",e[e.lineDecorationsWidth=65]="lineDecorationsWidth",e[e.lineHeight=66]="lineHeight",e[e.lineNumbers=67]="lineNumbers",e[e.lineNumbersMinChars=68]="lineNumbersMinChars",e[e.linkedEditing=69]="linkedEditing",e[e.links=70]="links",e[e.matchBrackets=71]="matchBrackets",e[e.minimap=72]="minimap",e[e.mouseStyle=73]="mouseStyle",e[e.mouseWheelScrollSensitivity=74]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=75]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=76]="multiCursorMergeOverlapping",e[e.multiCursorModifier=77]="multiCursorModifier",e[e.multiCursorPaste=78]="multiCursorPaste",e[e.multiCursorLimit=79]="multiCursorLimit",e[e.occurrencesHighlight=80]="occurrencesHighlight",e[e.overviewRulerBorder=81]="overviewRulerBorder",e[e.overviewRulerLanes=82]="overviewRulerLanes",e[e.padding=83]="padding",e[e.pasteAs=84]="pasteAs",e[e.parameterHints=85]="parameterHints",e[e.peekWidgetDefaultFocus=86]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=87]="definitionLinkOpensInPeek",e[e.quickSuggestions=88]="quickSuggestions",e[e.quickSuggestionsDelay=89]="quickSuggestionsDelay",e[e.readOnly=90]="readOnly",e[e.readOnlyMessage=91]="readOnlyMessage",e[e.renameOnType=92]="renameOnType",e[e.renderControlCharacters=93]="renderControlCharacters",e[e.renderFinalNewline=94]="renderFinalNewline",e[e.renderLineHighlight=95]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=96]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=97]="renderValidationDecorations",e[e.renderWhitespace=98]="renderWhitespace",e[e.revealHorizontalRightPadding=99]="revealHorizontalRightPadding",e[e.roundedSelection=100]="roundedSelection",e[e.rulers=101]="rulers",e[e.scrollbar=102]="scrollbar",e[e.scrollBeyondLastColumn=103]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=104]="scrollBeyondLastLine",e[e.scrollPredominantAxis=105]="scrollPredominantAxis",e[e.selectionClipboard=106]="selectionClipboard",e[e.selectionHighlight=107]="selectionHighlight",e[e.selectOnLineNumbers=108]="selectOnLineNumbers",e[e.showFoldingControls=109]="showFoldingControls",e[e.showUnused=110]="showUnused",e[e.snippetSuggestions=111]="snippetSuggestions",e[e.smartSelect=112]="smartSelect",e[e.smoothScrolling=113]="smoothScrolling",e[e.stickyScroll=114]="stickyScroll",e[e.stickyTabStops=115]="stickyTabStops",e[e.stopRenderingLineAfter=116]="stopRenderingLineAfter",e[e.suggest=117]="suggest",e[e.suggestFontSize=118]="suggestFontSize",e[e.suggestLineHeight=119]="suggestLineHeight",e[e.suggestOnTriggerCharacters=120]="suggestOnTriggerCharacters",e[e.suggestSelection=121]="suggestSelection",e[e.tabCompletion=122]="tabCompletion",e[e.tabIndex=123]="tabIndex",e[e.unicodeHighlighting=124]="unicodeHighlighting",e[e.unusualLineTerminators=125]="unusualLineTerminators",e[e.useShadowDOM=126]="useShadowDOM",e[e.useTabStops=127]="useTabStops",e[e.wordBreak=128]="wordBreak",e[e.wordSeparators=129]="wordSeparators",e[e.wordWrap=130]="wordWrap",e[e.wordWrapBreakAfterCharacters=131]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=132]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=133]="wordWrapColumn",e[e.wordWrapOverride1=134]="wordWrapOverride1",e[e.wordWrapOverride2=135]="wordWrapOverride2",e[e.wrappingIndent=136]="wrappingIndent",e[e.wrappingStrategy=137]="wrappingStrategy",e[e.showDeprecated=138]="showDeprecated",e[e.inlayHints=139]="inlayHints",e[e.editorClassName=140]="editorClassName",e[e.pixelRatio=141]="pixelRatio",e[e.tabFocusMode=142]="tabFocusMode",e[e.layoutInfo=143]="layoutInfo",e[e.wrappingInfo=144]="wrappingInfo",e[e.defaultColorDecorators=145]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=146]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=147]="inlineCompletionsAccessibilityVerbose"})(K3||(K3={}));var ex;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(ex||(ex={}));var tx;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(tx||(tx={}));var rx;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(rx||(rx={}));var nx;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(nx||(nx={}));var ix;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(ix||(ix={}));var ox;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(ox||(ox={}));var sx;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(sx||(sx={}));var jh;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(jh||(jh={}));var Hh;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(Hh||(Hh={}));var Zh;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(Zh||(Zh={}));var ax;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(ax||(ax={}));var lx;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(lx||(lx={}));var cx;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(cx||(cx={}));var ux;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(ux||(ux={}));var dx;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(dx||(dx={}));var fx;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(fx||(fx={}));var px;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(px||(px={}));var mx;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(mx||(mx={}));var hx;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(hx||(hx={}));var Yh;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(Yh||(Yh={}));var gx;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(gx||(gx={}));var wx;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(wx||(wx={}));var yx;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(yx||(yx={}));var bx;(function(e){e[e.Deprecated=1]="Deprecated"})(bx||(bx={}));var _x;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(_x||(_x={}));var vx;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(vx||(vx={}));var Sx;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Sx||(Sx={}));var xx;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(xx||(xx={}));var Ns=class{static chord(t,r){return k3(t,r)}};Ns.CtrlCmd=2048;Ns.Shift=1024;Ns.Alt=512;Ns.WinCtrl=256;function Cx(){return{editor:void 0,languages:void 0,CancellationTokenSource:Wh,Emitter:mr,KeyCode:jh,KeyMod:Ns,Position:Gt,Range:Be,Selection:Bh,SelectionDirection:Yh,MarkerSeverity:Hh,MarkerTag:Zh,Uri:bo,Token:qh}}var _2=class extends Ha{constructor(t){super(0);for(let r=0,n=t.length;r<n;r++)this.set(t.charCodeAt(r),2);this.set(32,1),this.set(9,1)}};function $R(e){let t={};return r=>(t.hasOwnProperty(r)||(t[r]=e(r)),t[r])}var FR=$R(e=>new _2(e));var Tx;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Tx||(Tx={}));var Ex;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(Ex||(Ex={}));var Mx;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Mx||(Mx={}));var Lx;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Lx||(Lx={}));function VR(e,t,r,n,i){if(n===0)return!0;let o=t.charCodeAt(n-1);if(e.get(o)!==0||o===13||o===10)return!0;if(i>0){let s=t.charCodeAt(n);if(e.get(s)!==0)return!0}return!1}function UR(e,t,r,n,i){if(n+i===r)return!0;let o=t.charCodeAt(n+i);if(e.get(o)!==0||o===13||o===10)return!0;if(i>0){let s=t.charCodeAt(n+i-1);if(e.get(s)!==0)return!0}return!1}function WR(e,t,r,n,i){return VR(e,t,r,n,i)&&UR(e,t,r,n,i)}var Jh=class{constructor(t,r){this._wordSeparators=t,this._searchRegex=r,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){let r=t.length,n;do{if(this._prevMatchStartIndex+this._prevMatchLength===r||(n=this._searchRegex.exec(t),!n))return null;let i=n.index,o=n[0].length;if(i===this._prevMatchStartIndex&&o===this._prevMatchLength){if(o===0){s3(t,r,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=o,!this._wordSeparators||WR(this._wordSeparators,t,r,i,o))return n}while(n);return null}};function Ix(e,t="Unreachable"){throw new Error(t)}function Ja(e){if(!e()){debugger;e(),Sh(new bn("Assertion Failed"))}}function Xh(e,t){let r=0;for(;r<e.length-1;){let n=e[r],i=e[r+1];if(!t(n,i))return!1;r++}return!0}var Qh=class{static computeUnicodeHighlights(t,r,n){let i=n?n.startLineNumber:1,o=n?n.endLineNumber:t.getLineCount(),s=new Kh(r),a=s.getCandidateCodePoints(),u;a==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${zR(Array.from(a))}`,"g");let d=new Jh(null,u),p=[],m=!1,w,_=0,S=0,T=0;e:for(let M=i,R=o;M<=R;M++){let I=t.getLineContent(M),N=I.length;d.reset(0);do if(w=d.next(I),w){let V=w.index,Y=w.index+w[0].length;if(V>0){let ge=I.charCodeAt(V-1);qa(ge)&&V--}if(Y+1<N){let ge=I.charCodeAt(Y-1);qa(ge)&&Y++}let re=I.substring(V,Y),te=Kc(V+1,u2,I,0);te&&te.endColumn<=V+1&&(te=null);let ie=s.shouldHighlightNonBasicASCII(re,te?te.word:null);if(ie!==0){if(ie===3?_++:ie===2?S++:ie===1?T++:Ix(ie),p.length>=1e3){m=!0;break e}p.push(new Be(M,V+1,M,Y+1))}}while(w)}return{ranges:p,hasMore:m,ambiguousCharacterCount:_,invisibleCharacterCount:S,nonBasicAsciiCharacterCount:T}}static computeUnicodeHighlightReason(t,r){let n=new Kh(r);switch(n.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{let o=t.codePointAt(0),s=n.ambiguousCharacters.getPrimaryConfusable(o),a=ui.getLocales().filter(u=>!ui.getInstance(new Set([...r.allowedLocales,u])).isAmbiguous(o));return{kind:0,confusableWith:String.fromCodePoint(s),notAmbiguousInLocales:a}}case 1:return{kind:2}}}};function zR(e,t){return`[${r3(e.map(n=>String.fromCodePoint(n)).join(""))}]`}var Kh=class{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=ui.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let t=new Set;if(this.options.invisibleCharacters)for(let r of Ps.codePoints)Px(String.fromCodePoint(r))||t.add(r);if(this.options.ambiguousCharacters)for(let r of this.ambiguousCharacters.getConfusableCodePoints())t.add(r);for(let r of this.allowedCodePoints)t.delete(r);return t}shouldHighlightNonBasicASCII(t,r){let n=t.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,o=!1;if(r)for(let s of r){let a=s.codePointAt(0),u=a3(s);i=i||u,!u&&!this.ambiguousCharacters.isAmbiguous(a)&&!Ps.isInvisibleCharacter(a)&&(o=!0)}return!i&&o?0:this.options.invisibleCharacters&&!Px(t)&&Ps.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}};function Px(e){return e===" "||e===`
149
+ `||e===" "}var vo=class{constructor(t,r,n){this.changes=t,this.moves=r,this.hitTimeout=n}},e1=class{constructor(t,r){this.lineRangeMapping=t,this.changes=r}};var Ie=class e{static addRange(t,r){let n=0;for(;n<r.length&&r[n].endExclusive<t.start;)n++;let i=n;for(;i<r.length&&r[i].start<=t.endExclusive;)i++;if(n===i)r.splice(n,0,t);else{let o=Math.min(t.start,r[n].start),s=Math.max(t.endExclusive,r[i-1].endExclusive);r.splice(n,i-n,new e(o,s))}}static tryCreate(t,r){if(!(t>r))return new e(t,r)}static ofLength(t){return new e(0,t)}static ofStartAndLength(t,r){return new e(t,t+r)}constructor(t,r){if(this.start=t,this.endExclusive=r,t>r)throw new bn(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new e(this.start+t,this.endExclusive+t)}deltaStart(t){return new e(this.start+t,this.endExclusive)}deltaEnd(t){return new e(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(t){return this.start===t.start&&this.endExclusive===t.endExclusive}containsRange(t){return this.start<=t.start&&t.endExclusive<=this.endExclusive}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new e(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){let r=Math.max(this.start,t.start),n=Math.min(this.endExclusive,t.endExclusive);if(r<=n)return new e(r,n)}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new bn(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new bn(`Invalid clipping range: ${this.toString()}`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let r=this.start;r<this.endExclusive;r++)t(r)}};function Bi(e,t){let r=ks(e,t);return r===-1?void 0:e[r]}function ks(e,t,r=0,n=e.length){let i=r,o=n;for(;i<o;){let s=Math.floor((i+o)/2);t(e[s])?i=s+1:o=s}return i-1}function Ax(e,t){let r=t1(e,t);return r===e.length?void 0:e[r]}function t1(e,t,r=0,n=e.length){let i=r,o=n;for(;i<o;){let s=Math.floor((i+o)/2);t(e[s])?o=s:i=s+1}return i}var Xa=class e{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(e.assertInvariants){if(this._prevFindLastPredicate){for(let n of this._array)if(this._prevFindLastPredicate(n)&&!t(n))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}let r=ks(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=r+1,r===-1?void 0:this._array[r]}};Xa.assertInvariants=!1;var Oe=class e{static fromRange(t){return new e(t.startLineNumber,t.endLineNumber)}static fromRangeInclusive(t){return new e(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let r=new Rs(t[0].slice());for(let n=1;n<t.length;n++)r=r.getUnion(new Rs(t[n].slice()));return r.ranges}static ofLength(t,r){return new e(t,t+r)}static deserialize(t){return new e(t[0],t[1])}constructor(t,r){if(t>r)throw new bn(`startLineNumber ${t} cannot be after endLineNumberExclusive ${r}`);this.startLineNumber=t,this.endLineNumberExclusive=r}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new e(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new e(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new e(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){let r=Math.max(this.startLineNumber,t.startLineNumber),n=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(r<=n)return new e(r,n)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Be(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Be(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){let r=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)r.push(t(n));return r}forEach(t){for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)t(r)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}toOffsetRange(){return new Ie(this.startLineNumber-1,this.endLineNumberExclusive-1)}},Rs=class e{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;let r=t1(this._normalizedRanges,i=>i.endLineNumberExclusive>=t.startLineNumber),n=ks(this._normalizedRanges,i=>i.startLineNumber<=t.endLineNumberExclusive)+1;if(r===n)this._normalizedRanges.splice(r,0,t);else if(r===n-1){let i=this._normalizedRanges[r];this._normalizedRanges[r]=i.join(t)}else{let i=this._normalizedRanges[r].join(this._normalizedRanges[n-1]).join(t);this._normalizedRanges.splice(r,n-r,i)}}contains(t){let r=Bi(this._normalizedRanges,n=>n.startLineNumber<=t);return!!r&&r.endLineNumberExclusive>t}intersects(t){let r=Bi(this._normalizedRanges,n=>n.startLineNumber<t.endLineNumberExclusive);return!!r&&r.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;let r=[],n=0,i=0,o=null;for(;n<this._normalizedRanges.length||i<t._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&i<t._normalizedRanges.length){let a=this._normalizedRanges[n],u=t._normalizedRanges[i];a.startLineNumber<u.startLineNumber?(s=a,n++):(s=u,i++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=t._normalizedRanges[i],i++);o===null?o=s:o.endLineNumberExclusive>=s.startLineNumber?o=new Oe(o.startLineNumber,Math.max(o.endLineNumberExclusive,s.endLineNumberExclusive)):(r.push(o),o=s)}return o!==null&&r.push(o),new e(r)}subtractFrom(t){let r=t1(this._normalizedRanges,s=>s.endLineNumberExclusive>=t.startLineNumber),n=ks(this._normalizedRanges,s=>s.startLineNumber<=t.endLineNumberExclusive)+1;if(r===n)return new e([t]);let i=[],o=t.startLineNumber;for(let s=r;s<n;s++){let a=this._normalizedRanges[s];a.startLineNumber>o&&i.push(new Oe(o,a.startLineNumber)),o=a.endLineNumberExclusive}return o<t.endLineNumberExclusive&&i.push(new Oe(o,t.endLineNumberExclusive)),new e(i)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){let r=[],n=0,i=0;for(;n<this._normalizedRanges.length&&i<t._normalizedRanges.length;){let o=this._normalizedRanges[n],s=t._normalizedRanges[i],a=o.intersect(s);a&&!a.isEmpty&&r.push(a),o.endLineNumberExclusive<s.endLineNumberExclusive?n++:i++}return new e(r)}getWithDelta(t){return new e(this._normalizedRanges.map(r=>r.delta(t)))}};var So=class e{static inverse(t,r,n){let i=[],o=1,s=1;for(let u of t){let d=new Vn(new Oe(o,u.original.startLineNumber),new Oe(s,u.modified.startLineNumber),void 0);d.modified.isEmpty||i.push(d),o=u.original.endLineNumberExclusive,s=u.modified.endLineNumberExclusive}let a=new Vn(new Oe(o,r+1),new Oe(s,n+1),void 0);return a.modified.isEmpty||i.push(a),i}constructor(t,r){this.original=t,this.modified=r}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new e(this.modified,this.original)}join(t){return new e(this.original.join(t.original),this.modified.join(t.modified))}},Vn=class e extends So{constructor(t,r,n){super(t,r),this.innerChanges=n}flip(){var t;return new e(this.modified,this.original,(t=this.innerChanges)===null||t===void 0?void 0:t.map(r=>r.flip()))}},Ds=class e{constructor(t,r){this.originalRange=t,this.modifiedRange=r}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new e(this.modifiedRange,this.originalRange)}};var BR=3,r1=class{computeDiff(t,r,n){var i;let s=new S2(t,r,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[],u=null;for(let d of s.changes){let p;d.originalEndLineNumber===0?p=new Oe(d.originalStartLineNumber+1,d.originalStartLineNumber+1):p=new Oe(d.originalStartLineNumber,d.originalEndLineNumber+1);let m;d.modifiedEndLineNumber===0?m=new Oe(d.modifiedStartLineNumber+1,d.modifiedStartLineNumber+1):m=new Oe(d.modifiedStartLineNumber,d.modifiedEndLineNumber+1);let w=new Vn(p,m,(i=d.charChanges)===null||i===void 0?void 0:i.map(_=>new Ds(new Be(_.originalStartLineNumber,_.originalStartColumn,_.originalEndLineNumber,_.originalEndColumn),new Be(_.modifiedStartLineNumber,_.modifiedStartColumn,_.modifiedEndLineNumber,_.modifiedEndColumn))));u&&(u.modified.endLineNumberExclusive===w.modified.startLineNumber||u.original.endLineNumberExclusive===w.original.startLineNumber)&&(w=new Vn(u.original.join(w.original),u.modified.join(w.modified),u.innerChanges&&w.innerChanges?u.innerChanges.concat(w.innerChanges):void 0),a.pop()),a.push(w),u=w}return Ja(()=>Xh(a,(d,p)=>p.original.startLineNumber-d.original.endLineNumberExclusive===p.modified.startLineNumber-d.modified.endLineNumberExclusive&&d.original.endLineNumberExclusive<p.original.startLineNumber&&d.modified.endLineNumberExclusive<p.modified.startLineNumber)),new vo(a,[],s.quitEarly)}};function kx(e,t,r,n){return new Yc(e,t,r).ComputeDiff(n)}var n1=class{constructor(t){let r=[],n=[];for(let i=0,o=t.length;i<o;i++)r[i]=x2(t[i],1),n[i]=C2(t[i],1);this.lines=t,this._startColumns=r,this._endColumns=n}getElements(){let t=[];for(let r=0,n=this.lines.length;r<n;r++)t[r]=this.lines[r].substring(this._startColumns[r]-1,this._endColumns[r]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,r,n){let i=[],o=[],s=[],a=0;for(let u=r;u<=n;u++){let d=this.lines[u],p=t?this._startColumns[u]:1,m=t?this._endColumns[u]:d.length+1;for(let w=p;w<m;w++)i[a]=d.charCodeAt(w-1),o[a]=u+1,s[a]=w,a++;!t&&u<n&&(i[a]=10,o[a]=u+1,s[a]=d.length+1,a++)}return new v2(i,o,s)}},v2=class{constructor(t,r,n){this._charCodes=t,this._lineNumbers=r,this._columns=n}toString(){return"["+this._charCodes.map((t,r)=>(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[r]},${this._columns[r]})`).join(", ")+"]"}_assertIndex(t,r){if(t<0||t>=r.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}},Qa=class e{constructor(t,r,n,i,o,s,a,u){this.originalStartLineNumber=t,this.originalStartColumn=r,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=o,this.modifiedStartColumn=s,this.modifiedEndLineNumber=a,this.modifiedEndColumn=u}static createFromDiffChange(t,r,n){let i=r.getStartLineNumber(t.originalStart),o=r.getStartColumn(t.originalStart),s=r.getEndLineNumber(t.originalStart+t.originalLength-1),a=r.getEndColumn(t.originalStart+t.originalLength-1),u=n.getStartLineNumber(t.modifiedStart),d=n.getStartColumn(t.modifiedStart),p=n.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),m=n.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new e(i,o,s,a,u,d,p,m)}};function GR(e){if(e.length<=1)return e;let t=[e[0]],r=t[0];for(let n=1,i=e.length;n<i;n++){let o=e[n],s=o.originalStart-(r.originalStart+r.originalLength),a=o.modifiedStart-(r.modifiedStart+r.modifiedLength);Math.min(s,a)<BR?(r.originalLength=o.originalStart+o.originalLength-r.originalStart,r.modifiedLength=o.modifiedStart+o.modifiedLength-r.modifiedStart):(t.push(o),r=o)}return t}var ru=class e{constructor(t,r,n,i,o){this.originalStartLineNumber=t,this.originalEndLineNumber=r,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=o}static createFromDiffResult(t,r,n,i,o,s,a){let u,d,p,m,w;if(r.originalLength===0?(u=n.getStartLineNumber(r.originalStart)-1,d=0):(u=n.getStartLineNumber(r.originalStart),d=n.getEndLineNumber(r.originalStart+r.originalLength-1)),r.modifiedLength===0?(p=i.getStartLineNumber(r.modifiedStart)-1,m=0):(p=i.getStartLineNumber(r.modifiedStart),m=i.getEndLineNumber(r.modifiedStart+r.modifiedLength-1)),s&&r.originalLength>0&&r.originalLength<20&&r.modifiedLength>0&&r.modifiedLength<20&&o()){let _=n.createCharSequence(t,r.originalStart,r.originalStart+r.originalLength-1),S=i.createCharSequence(t,r.modifiedStart,r.modifiedStart+r.modifiedLength-1);if(_.getElements().length>0&&S.getElements().length>0){let T=kx(_,S,o,!0).changes;a&&(T=GR(T)),w=[];for(let M=0,R=T.length;M<R;M++)w.push(Qa.createFromDiffChange(T[M],_,S))}}return new e(u,d,p,m,w)}},S2=class{constructor(t,r,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=r,this.original=new n1(t),this.modified=new n1(r),this.continueLineDiff=Nx(n.maxComputationTime),this.continueCharDiff=Nx(n.maxComputationTime===0?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};let t=kx(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),r=t.changes,n=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){let a=[];for(let u=0,d=r.length;u<d;u++)a.push(ru.createFromDiffResult(this.shouldIgnoreTrimWhitespace,r[u],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:a}}let i=[],o=0,s=0;for(let a=-1,u=r.length;a<u;a++){let d=a+1<u?r[a+1]:null,p=d?d.originalStart:this.originalLines.length,m=d?d.modifiedStart:this.modifiedLines.length;for(;o<p&&s<m;){let w=this.originalLines[o],_=this.modifiedLines[s];if(w!==_){{let S=x2(w,1),T=x2(_,1);for(;S>1&&T>1;){let M=w.charCodeAt(S-2),R=_.charCodeAt(T-2);if(M!==R)break;S--,T--}(S>1||T>1)&&this._pushTrimWhitespaceCharChange(i,o+1,1,S,s+1,1,T)}{let S=C2(w,1),T=C2(_,1),M=w.length+1,R=_.length+1;for(;S<M&&T<R;){let I=w.charCodeAt(S-1),N=w.charCodeAt(T-1);if(I!==N)break;S++,T++}(S<M||T<R)&&this._pushTrimWhitespaceCharChange(i,o+1,S,M,s+1,T,R)}}o++,s++}d&&(i.push(ru.createFromDiffResult(this.shouldIgnoreTrimWhitespace,d,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),o+=d.originalLength,s+=d.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(t,r,n,i,o,s,a){if(this._mergeTrimWhitespaceCharChange(t,r,n,i,o,s,a))return;let u;this.shouldComputeCharChanges&&(u=[new Qa(r,n,r,i,o,s,o,a)]),t.push(new ru(r,r,o,o,u))}_mergeTrimWhitespaceCharChange(t,r,n,i,o,s,a){let u=t.length;if(u===0)return!1;let d=t[u-1];return d.originalEndLineNumber===0||d.modifiedEndLineNumber===0?!1:d.originalEndLineNumber===r&&d.modifiedEndLineNumber===o?(this.shouldComputeCharChanges&&d.charChanges&&d.charChanges.push(new Qa(r,n,r,i,o,s,o,a)),!0):d.originalEndLineNumber+1===r&&d.modifiedEndLineNumber+1===o?(d.originalEndLineNumber=r,d.modifiedEndLineNumber=o,this.shouldComputeCharChanges&&d.charChanges&&d.charChanges.push(new Qa(r,n,r,i,o,s,o,a)),!0):!1}};function x2(e,t){let r=i3(e);return r===-1?t:r+1}function C2(e,t){let r=o3(e);return r===-1?t:r+2}function Nx(e){if(e===0)return()=>!0;let t=Date.now();return()=>Date.now()-t<e}var di=class e{static trivial(t,r){return new e([new qt(Ie.ofLength(t.length),Ie.ofLength(r.length))],!1)}static trivialTimedOut(t,r){return new e([new qt(Ie.ofLength(t.length),Ie.ofLength(r.length))],!0)}constructor(t,r){this.diffs=t,this.hitTimeout=r}},qt=class e{static invert(t,r){let n=[];return C3(t,(i,o)=>{n.push(e.fromOffsetPairs(i?i.getEndExclusives():on.zero,o?o.getStarts():new on(r,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+r)))}),n}static fromOffsetPairs(t,r){return new e(new Ie(t.offset1,r.offset1),new Ie(t.offset2,r.offset2))}constructor(t,r){this.seq1Range=t,this.seq2Range=r}swap(){return new e(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new e(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new e(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new e(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new e(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){let r=this.seq1Range.intersect(t.seq1Range),n=this.seq2Range.intersect(t.seq2Range);if(!(!r||!n))return new e(r,n)}getStarts(){return new on(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new on(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},on=class{constructor(t,r){this.offset1=t,this.offset2=r}toString(){return`${this.offset1} <-> ${this.offset2}`}};on.zero=new on(0,0);on.max=new on(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);var fi=class{isValid(){return!0}};fi.instance=new fi;var i1=class{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new bn("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}};var Ka=class{constructor(t,r){this.width=t,this.height=r,this.array=[],this.array=new Array(t*r)}get(t,r){return this.array[t+r*this.width]}set(t,r,n){this.array[t+r*this.width]=n}};function nu(e){return e===32||e===9}var el=class e{static getKey(t){let r=this.chrKeys.get(t);return r===void 0&&(r=this.chrKeys.size,this.chrKeys.set(t,r)),r}constructor(t,r,n){this.range=t,this.lines=r,this.source=n,this.histogram=[];let i=0;for(let o=t.startLineNumber-1;o<t.endLineNumberExclusive-1;o++){let s=r[o];for(let u=0;u<s.length;u++){i++;let d=s[u],p=e.getKey(d);this.histogram[p]=(this.histogram[p]||0)+1}i++;let a=e.getKey(`
150
+ `);this.histogram[a]=(this.histogram[a]||0)+1}this.totalCount=i}computeSimilarity(t){var r,n;let i=0,o=Math.max(this.histogram.length,t.histogram.length);for(let s=0;s<o;s++)i+=Math.abs(((r=this.histogram[s])!==null&&r!==void 0?r:0)-((n=t.histogram[s])!==null&&n!==void 0?n:0));return 1-i/(this.totalCount+t.totalCount)}};el.chrKeys=new Map;var o1=class{compute(t,r,n=fi.instance,i){if(t.length===0||r.length===0)return di.trivial(t,r);let o=new Ka(t.length,r.length),s=new Ka(t.length,r.length),a=new Ka(t.length,r.length);for(let S=0;S<t.length;S++)for(let T=0;T<r.length;T++){if(!n.isValid())return di.trivialTimedOut(t,r);let M=S===0?0:o.get(S-1,T),R=T===0?0:o.get(S,T-1),I;t.getElement(S)===r.getElement(T)?(S===0||T===0?I=0:I=o.get(S-1,T-1),S>0&&T>0&&s.get(S-1,T-1)===3&&(I+=a.get(S-1,T-1)),I+=i?i(S,T):1):I=-1;let N=Math.max(M,R,I);if(N===I){let V=S>0&&T>0?a.get(S-1,T-1):0;a.set(S,T,V+1),s.set(S,T,3)}else N===M?(a.set(S,T,0),s.set(S,T,1)):N===R&&(a.set(S,T,0),s.set(S,T,2));o.set(S,T,N)}let u=[],d=t.length,p=r.length;function m(S,T){(S+1!==d||T+1!==p)&&u.push(new qt(new Ie(S+1,d),new Ie(T+1,p))),d=S,p=T}let w=t.length-1,_=r.length-1;for(;w>=0&&_>=0;)s.get(w,_)===3?(m(w,_),w--,_--):s.get(w,_)===1?w--:_--;return m(-1,-1),u.reverse(),new di(u,!1)}};var tl=class{compute(t,r,n=fi.instance){if(t.length===0||r.length===0)return di.trivial(t,r);let i=t,o=r;function s(T,M){for(;T<i.length&&M<o.length&&i.getElement(T)===o.getElement(M);)T++,M++;return T}let a=0,u=new T2;u.set(0,s(0,0));let d=new E2;d.set(0,u.get(0)===0?null:new s1(null,0,0,u.get(0)));let p=0;e:for(;;){if(a++,!n.isValid())return di.trivialTimedOut(i,o);let T=-Math.min(a,o.length+a%2),M=Math.min(a,i.length+a%2);for(p=T;p<=M;p+=2){let R=0,I=p===M?-1:u.get(p+1),N=p===T?-1:u.get(p-1)+1;R++;let V=Math.min(Math.max(I,N),i.length),Y=V-p;if(R++,V>i.length||Y>o.length)continue;let re=s(V,Y);u.set(p,re);let te=V===I?d.get(p+1):d.get(p-1);if(d.set(p,re!==V?new s1(te,V,Y,re-V):te),u.get(p)===i.length&&u.get(p)-p===o.length)break e}}let m=d.get(p),w=[],_=i.length,S=o.length;for(;;){let T=m?m.x+m.length:0,M=m?m.y+m.length:0;if((T!==_||M!==S)&&w.push(new qt(new Ie(T,_),new Ie(M,S))),!m)break;_=m.x,S=m.y,m=m.prev}return w.reverse(),new di(w,!1)}},s1=class{constructor(t,r,n,i){this.prev=t,this.x=r,this.y=n,this.length=i}},T2=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,r){if(t<0){if(t=-t-1,t>=this.negativeArr.length){let n=this.negativeArr;this.negativeArr=new Int32Array(n.length*2),this.negativeArr.set(n)}this.negativeArr[t]=r}else{if(t>=this.positiveArr.length){let n=this.positiveArr;this.positiveArr=new Int32Array(n.length*2),this.positiveArr.set(n)}this.positiveArr[t]=r}}},E2=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,r){t<0?(t=-t-1,this.negativeArr[t]=r):this.positiveArr[t]=r}};var Rx,Dx,M2=class{constructor(t,r){this.uri=t,this.value=r}};function qR(e){return Array.isArray(e)}var L2=class e{constructor(t,r){if(this[Rx]="ResourceMap",t instanceof e)this.map=new Map(t.map),this.toKey=r??e.defaultToKey;else if(qR(t)){this.map=new Map,this.toKey=r??e.defaultToKey;for(let[n,i]of t)this.set(n,i)}else this.map=new Map,this.toKey=t??e.defaultToKey}set(t,r){return this.map.set(this.toKey(t),new M2(t,r)),this}get(t){var r;return(r=this.map.get(this.toKey(t)))===null||r===void 0?void 0:r.value}has(t){return this.map.has(this.toKey(t))}get size(){return this.map.size}clear(){this.map.clear()}delete(t){return this.map.delete(this.toKey(t))}forEach(t,r){typeof r<"u"&&(t=t.bind(r));for(let[n,i]of this.map)t(i.value,i.uri,this)}*values(){for(let t of this.map.values())yield t.value}*keys(){for(let t of this.map.values())yield t.uri}*entries(){for(let t of this.map.values())yield[t.uri,t.value]}*[(Rx=Symbol.toStringTag,Symbol.iterator)](){for(let[,t]of this.map)yield[t.uri,t.value]}};L2.defaultToKey=e=>e.toString();var Ox=class{constructor(){this[Dx]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var t;return(t=this._head)===null||t===void 0?void 0:t.value}get last(){var t;return(t=this._tail)===null||t===void 0?void 0:t.value}has(t){return this._map.has(t)}get(t,r=0){let n=this._map.get(t);if(n)return r!==0&&this.touch(n,r),n.value}set(t,r,n=0){let i=this._map.get(t);if(i)i.value=r,n!==0&&this.touch(i,n);else{switch(i={key:t,value:r,next:void 0,previous:void 0},n){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let r=this._map.get(t);if(r)return this._map.delete(t),this.removeItem(r),this._size--,r.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,r){let n=this._state,i=this._head;for(;i;){if(r?t.bind(r)(i.value,i.key,this):t(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this,r=this._state,n=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let o={value:n.key,done:!1};return n=n.next,o}else return{value:void 0,done:!0}}};return i}values(){let t=this,r=this._state,n=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let o={value:n.value,done:!1};return n=n.next,o}else return{value:void 0,done:!0}}};return i}entries(){let t=this,r=this._state,n=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let o={value:[n.key,n.value],done:!1};return n=n.next,o}else return{value:void 0,done:!0}}};return i}[(Dx=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let r=this._head,n=this.size;for(;r&&n>t;)this._map.delete(r.key),r=r.next,n--;this._head=r,this._size=n,r&&(r.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let r=t.next,n=t.previous;if(!r||!n)throw new Error("Invalid list");r.previous=n,n.next=r}t.next=void 0,t.previous=void 0,this._state++}touch(t,r){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(r!==1&&r!==2)){if(r===1){if(t===this._head)return;let n=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(n.previous=i,i.next=n),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(r===2){if(t===this._tail)return;let n=t.next,i=t.previous;t===this._head?(n.previous=void 0,this._head=n):(n.previous=i,i.next=n),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((r,n)=>{t.push([n,r])}),t}fromJSON(t){this.clear();for(let[r,n]of t)this.set(r,n)}};var a1=class{constructor(){this.map=new Map}add(t,r){let n=this.map.get(t);n||(n=new Set,this.map.set(t,n)),n.add(r)}delete(t,r){let n=this.map.get(t);n&&(n.delete(r),n.size===0&&this.map.delete(t))}forEach(t,r){let n=this.map.get(t);n&&n.forEach(r)}get(t){let r=this.map.get(t);return r||new Set}};var xo=class{constructor(t,r,n){this.lines=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let i=!1;r.start>0&&r.endExclusive>=t.length&&(r=new Ie(r.start-1,r.endExclusive),i=!0),this.lineRange=r,this.firstCharOffsetByLine[0]=0;for(let o=this.lineRange.start;o<this.lineRange.endExclusive;o++){let s=t[o],a=0;if(i)a=s.length,s="",i=!1;else if(!n){let u=s.trimStart();a=s.length-u.length,s=u.trimEnd()}this.additionalOffsetByLine.push(a);for(let u=0;u<s.length;u++)this.elements.push(s.charCodeAt(u));o<t.length-1&&(this.elements.push(10),this.firstCharOffsetByLine[o-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Ie(0,this.length))}getText(t){return this.elements.slice(t.start,t.endExclusive).map(r=>String.fromCharCode(r)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){let r=Fx(t>0?this.elements[t-1]:-1),n=Fx(t<this.elements.length?this.elements[t]:-1);if(r===7&&n===8)return 0;let i=0;return r!==n&&(i+=10,r===0&&n===1&&(i+=1)),i+=$x(r),i+=$x(n),i}translateOffset(t){if(this.lineRange.isEmpty)return new Gt(this.lineRange.start+1,1);let r=ks(this.firstCharOffsetByLine,n=>n<=t);return new Gt(this.lineRange.start+r+1,t-this.firstCharOffsetByLine[r]+this.additionalOffsetByLine[r]+1)}translateRange(t){return Be.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!I2(this.elements[t]))return;let r=t;for(;r>0&&I2(this.elements[r-1]);)r--;let n=t;for(;n<this.elements.length&&I2(this.elements[n]);)n++;return new Ie(r,n)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}isStronglyEqual(t,r){return this.elements[t]===this.elements[r]}extendToFullLines(t){var r,n;let i=(r=Bi(this.firstCharOffsetByLine,s=>s<=t.start))!==null&&r!==void 0?r:0,o=(n=Ax(this.firstCharOffsetByLine,s=>t.endExclusive<=s))!==null&&n!==void 0?n:this.elements.length;return new Ie(i,o)}};function I2(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}var jR={0:0,1:0,2:0,3:10,4:2,5:3,6:3,7:10,8:10};function $x(e){return jR[e]}function Fx(e){return e===10?8:e===13?7:nu(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function Ux(e,t,r,n,i,o){let{moves:s,excludedChanges:a}=ZR(e,t,r,o);if(!o.isValid())return[];let u=e.filter(p=>!a.has(p)),d=YR(u,n,i,t,r,o);return E3(s,d),s=JR(s),s=s.filter(p=>{let m=p.original.toOffsetRange().slice(t).map(_=>_.trim());return m.join(`
151
+ `).length>=15&&HR(m,_=>_.length>=2)>=2}),s=XR(e,s),s}function HR(e,t){let r=0;for(let n of e)t(n)&&r++;return r}function ZR(e,t,r,n){let i=[],o=e.filter(u=>u.modified.isEmpty&&u.original.length>=3).map(u=>new el(u.original,t,u)),s=new Set(e.filter(u=>u.original.isEmpty&&u.modified.length>=3).map(u=>new el(u.modified,r,u))),a=new Set;for(let u of o){let d=-1,p;for(let m of s){let w=u.computeSimilarity(m);w>d&&(d=w,p=m)}if(d>.9&&p&&(s.delete(p),i.push(new So(u.range,p.range)),a.add(u.source),a.add(p.source)),!n.isValid())return{moves:i,excludedChanges:a}}return{moves:i,excludedChanges:a}}function YR(e,t,r,n,i,o){let s=[],a=new a1;for(let w of e)for(let _=w.original.startLineNumber;_<w.original.endLineNumberExclusive-2;_++){let S=`${t[_-1]}:${t[_+1-1]}:${t[_+2-1]}`;a.add(S,{range:new Oe(_,_+3)})}let u=[];e.sort(Xc(w=>w.modified.startLineNumber,Qc));for(let w of e){let _=[];for(let S=w.modified.startLineNumber;S<w.modified.endLineNumberExclusive-2;S++){let T=`${r[S-1]}:${r[S+1-1]}:${r[S+2-1]}`,M=new Oe(S,S+3),R=[];a.forEach(T,({range:I})=>{for(let V of _)if(V.originalLineRange.endLineNumberExclusive+1===I.endLineNumberExclusive&&V.modifiedLineRange.endLineNumberExclusive+1===M.endLineNumberExclusive){V.originalLineRange=new Oe(V.originalLineRange.startLineNumber,I.endLineNumberExclusive),V.modifiedLineRange=new Oe(V.modifiedLineRange.startLineNumber,M.endLineNumberExclusive),R.push(V);return}let N={modifiedLineRange:M,originalLineRange:I};u.push(N),R.push(N)}),_=R}if(!o.isValid())return[]}u.sort(M3(Xc(w=>w.modifiedLineRange.length,Qc)));let d=new Rs,p=new Rs;for(let w of u){let _=w.modifiedLineRange.startLineNumber-w.originalLineRange.startLineNumber,S=d.subtractFrom(w.modifiedLineRange),T=p.subtractFrom(w.originalLineRange).getWithDelta(_),M=S.getIntersection(T);for(let R of M.ranges){if(R.length<3)continue;let I=R,N=R.delta(-_);s.push(new So(N,I)),d.addRange(I),p.addRange(N)}}s.sort(Xc(w=>w.original.startLineNumber,Qc));let m=new Xa(e);for(let w=0;w<s.length;w++){let _=s[w],S=m.findLastMonotonous(re=>re.original.startLineNumber<=_.original.startLineNumber),T=Bi(e,re=>re.modified.startLineNumber<=_.modified.startLineNumber),M=Math.max(_.original.startLineNumber-S.original.startLineNumber,_.modified.startLineNumber-T.modified.startLineNumber),R=m.findLastMonotonous(re=>re.original.startLineNumber<_.original.endLineNumberExclusive),I=Bi(e,re=>re.modified.startLineNumber<_.modified.endLineNumberExclusive),N=Math.max(R.original.endLineNumberExclusive-_.original.endLineNumberExclusive,I.modified.endLineNumberExclusive-_.modified.endLineNumberExclusive),V;for(V=0;V<M;V++){let re=_.original.startLineNumber-V-1,te=_.modified.startLineNumber-V-1;if(re>n.length||te>i.length||d.contains(te)||p.contains(re)||!Vx(n[re-1],i[te-1],o))break}V>0&&(p.addRange(new Oe(_.original.startLineNumber-V,_.original.startLineNumber)),d.addRange(new Oe(_.modified.startLineNumber-V,_.modified.startLineNumber)));let Y;for(Y=0;Y<N;Y++){let re=_.original.endLineNumberExclusive+Y,te=_.modified.endLineNumberExclusive+Y;if(re>n.length||te>i.length||d.contains(te)||p.contains(re)||!Vx(n[re-1],i[te-1],o))break}Y>0&&(p.addRange(new Oe(_.original.endLineNumberExclusive,_.original.endLineNumberExclusive+Y)),d.addRange(new Oe(_.modified.endLineNumberExclusive,_.modified.endLineNumberExclusive+Y))),(V>0||Y>0)&&(s[w]=new So(new Oe(_.original.startLineNumber-V,_.original.endLineNumberExclusive+Y),new Oe(_.modified.startLineNumber-V,_.modified.endLineNumberExclusive+Y)))}return s}function Vx(e,t,r){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;let i=new tl().compute(new xo([e],new Ie(0,1),!1),new xo([t],new Ie(0,1),!1),r),o=0,s=qt.invert(i.diffs,e.length);for(let p of s)p.seq1Range.forEach(m=>{nu(e.charCodeAt(m))||o++});function a(p){let m=0;for(let w=0;w<e.length;w++)nu(p.charCodeAt(w))||m++;return m}let u=a(e.length>t.length?e:t);return o/u>.6&&u>10}function JR(e){if(e.length===0)return e;e.sort(Xc(r=>r.original.startLineNumber,Qc));let t=[e[0]];for(let r=1;r<e.length;r++){let n=t[t.length-1],i=e[r],o=i.original.startLineNumber-n.original.endLineNumberExclusive,s=i.modified.startLineNumber-n.modified.endLineNumberExclusive;if(o>=0&&s>=0&&o+s<=2){t[t.length-1]=n.join(i);continue}t.push(i)}return t}function XR(e,t){let r=new Xa(e);return t=t.filter(n=>{let i=r.findLastMonotonous(a=>a.original.startLineNumber<n.original.endLineNumberExclusive)||new So(new Oe(1,1),new Oe(1,1)),o=Bi(e,a=>a.modified.startLineNumber<n.modified.endLineNumberExclusive);return i!==o}),t}function P2(e,t,r){let n=r;return n=Wx(e,t,n),n=Wx(e,t,n),n=QR(e,t,n),n}function Wx(e,t,r){if(r.length===0)return r;let n=[];n.push(r[0]);for(let o=1;o<r.length;o++){let s=n[n.length-1],a=r[o];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){let u=a.seq1Range.start-s.seq1Range.endExclusive,d;for(d=1;d<=u&&!(e.getElement(a.seq1Range.start-d)!==e.getElement(a.seq1Range.endExclusive-d)||t.getElement(a.seq2Range.start-d)!==t.getElement(a.seq2Range.endExclusive-d));d++);if(d--,d===u){n[n.length-1]=new qt(new Ie(s.seq1Range.start,a.seq1Range.endExclusive-u),new Ie(s.seq2Range.start,a.seq2Range.endExclusive-u));continue}a=a.delta(-d)}n.push(a)}let i=[];for(let o=0;o<n.length-1;o++){let s=n[o+1],a=n[o];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){let u=s.seq1Range.start-a.seq1Range.endExclusive,d;for(d=0;d<u&&!(!e.isStronglyEqual(a.seq1Range.start+d,a.seq1Range.endExclusive+d)||!t.isStronglyEqual(a.seq2Range.start+d,a.seq2Range.endExclusive+d));d++);if(d===u){n[o+1]=new qt(new Ie(a.seq1Range.start+u,s.seq1Range.endExclusive),new Ie(a.seq2Range.start+u,s.seq2Range.endExclusive));continue}d>0&&(a=a.delta(d))}i.push(a)}return n.length>0&&i.push(n[n.length-1]),i}function QR(e,t,r){if(!e.getBoundaryScore||!t.getBoundaryScore)return r;for(let n=0;n<r.length;n++){let i=n>0?r[n-1]:void 0,o=r[n],s=n+1<r.length?r[n+1]:void 0,a=new Ie(i?i.seq1Range.start+1:0,s?s.seq1Range.endExclusive-1:e.length),u=new Ie(i?i.seq2Range.start+1:0,s?s.seq2Range.endExclusive-1:t.length);o.seq1Range.isEmpty?r[n]=zx(o,e,t,a,u):o.seq2Range.isEmpty&&(r[n]=zx(o.swap(),t,e,u,a).swap())}return r}function zx(e,t,r,n,i){let s=1;for(;e.seq1Range.start-s>=n.start&&e.seq2Range.start-s>=i.start&&r.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let a=0;for(;e.seq1Range.start+a<n.endExclusive&&e.seq2Range.endExclusive+a<i.endExclusive&&r.isStronglyEqual(e.seq2Range.start+a,e.seq2Range.endExclusive+a)&&a<100;)a++;if(s===0&&a===0)return e;let u=0,d=-1;for(let p=-s;p<=a;p++){let m=e.seq2Range.start+p,w=e.seq2Range.endExclusive+p,_=e.seq1Range.start+p,S=t.getBoundaryScore(_)+r.getBoundaryScore(m)+r.getBoundaryScore(w);S>d&&(d=S,u=p)}return e.delta(u)}function Bx(e,t,r){let n=[];for(let i of r){let o=n[n.length-1];if(!o){n.push(i);continue}i.seq1Range.start-o.seq1Range.endExclusive<=2||i.seq2Range.start-o.seq2Range.endExclusive<=2?n[n.length-1]=new qt(o.seq1Range.join(i.seq1Range),o.seq2Range.join(i.seq2Range)):n.push(i)}return n}function Gx(e,t,r){let n=[],i;function o(){if(!i)return;let a=i.s1Range.length-i.deleted,u=i.s2Range.length-i.added;Math.max(i.deleted,i.added)+(i.count-1)>a&&n.push(new qt(i.s1Range,i.s2Range)),i=void 0}for(let a of r){let u=function(_,S){var T,M,R,I;if(!i||!i.s1Range.containsRange(_)||!i.s2Range.containsRange(S))if(i&&!(i.s1Range.endExclusive<_.start&&i.s2Range.endExclusive<S.start)){let Y=Ie.tryCreate(i.s1Range.endExclusive,_.start),re=Ie.tryCreate(i.s2Range.endExclusive,S.start);i.deleted+=(T=Y?.length)!==null&&T!==void 0?T:0,i.added+=(M=re?.length)!==null&&M!==void 0?M:0,i.s1Range=i.s1Range.join(_),i.s2Range=i.s2Range.join(S)}else o(),i={added:0,deleted:0,count:0,s1Range:_,s2Range:S};let N=_.intersect(a.seq1Range),V=S.intersect(a.seq2Range);i.count++,i.deleted+=(R=N?.length)!==null&&R!==void 0?R:0,i.added+=(I=V?.length)!==null&&I!==void 0?I:0},d=e.findWordContaining(a.seq1Range.start-1),p=t.findWordContaining(a.seq2Range.start-1),m=e.findWordContaining(a.seq1Range.endExclusive),w=t.findWordContaining(a.seq2Range.endExclusive);d&&m&&p&&w&&d.equals(m)&&p.equals(w)?u(d,p):(d&&p&&u(d,p),m&&w&&u(m,w))}return o(),KR(r,n)}function KR(e,t){let r=[];for(;e.length>0||t.length>0;){let n=e[0],i=t[0],o;n&&(!i||n.seq1Range.start<i.seq1Range.start)?o=e.shift():o=t.shift(),r.length>0&&r[r.length-1].seq1Range.endExclusive>=o.seq1Range.start?r[r.length-1]=r[r.length-1].join(o):r.push(o)}return r}function qx(e,t,r){let n=r;if(n.length===0)return n;let i=0,o;do{o=!1;let s=[n[0]];for(let a=1;a<n.length;a++){let p=function(w,_){let S=new Ie(d.seq1Range.endExclusive,u.seq1Range.start);return e.getText(S).replace(/\s/g,"").length<=4&&(w.seq1Range.length+w.seq2Range.length>5||_.seq1Range.length+_.seq2Range.length>5)},u=n[a],d=s[s.length-1];p(d,u)?(o=!0,s[s.length-1]=s[s.length-1].join(u)):s.push(u)}n=s}while(i++<10&&o);return n}function jx(e,t,r){let n=r;if(n.length===0)return n;let i=0,o;do{o=!1;let a=[n[0]];for(let u=1;u<n.length;u++){let m=function(_,S){let T=new Ie(p.seq1Range.endExclusive,d.seq1Range.start);if(e.countLinesIn(T)>5||T.length>500)return!1;let R=e.getText(T).trim();if(R.length>20||R.split(/\r\n|\r|\n/).length>1)return!1;let I=e.countLinesIn(_.seq1Range),N=_.seq1Range.length,V=t.countLinesIn(_.seq2Range),Y=_.seq2Range.length,re=e.countLinesIn(S.seq1Range),te=S.seq1Range.length,ie=t.countLinesIn(S.seq2Range),ge=S.seq2Range.length,be=2*40+50;function de(B){return Math.min(B,be)}return Math.pow(Math.pow(de(I*40+N),1.5)+Math.pow(de(V*40+Y),1.5),1.5)+Math.pow(Math.pow(de(re*40+te),1.5)+Math.pow(de(ie*40+ge),1.5),1.5)>(be**1.5)**1.5*1.3},d=n[u],p=a[a.length-1];m(p,d)?(o=!0,a[a.length-1]=a[a.length-1].join(d)):a.push(d)}n=a}while(i++<10&&o);let s=[];return T3(n,(a,u,d)=>{let p=u;function m(R){return R.length>0&&R.trim().length<=3&&u.seq1Range.length+u.seq2Range.length>100}let w=e.extendToFullLines(u.seq1Range),_=e.getText(new Ie(w.start,u.seq1Range.start));m(_)&&(p=p.deltaStart(-_.length));let S=e.getText(new Ie(u.seq1Range.endExclusive,w.endExclusive));m(S)&&(p=p.deltaEnd(S.length));let T=qt.fromOffsetPairs(a?a.getEndExclusives():on.zero,d?d.getStarts():on.max),M=p.intersect(T);s.push(M)}),s}var iu=class{constructor(t,r){this.trimmedHash=t,this.lines=r}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){let r=t===0?0:Hx(this.lines[t-1]),n=t===this.lines.length?0:Hx(this.lines[t]);return 1e3-(r+n)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(`
152
+ `)}isStronglyEqual(t,r){return this.lines[t]===this.lines[r]}};function Hx(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}var l1=class{constructor(){this.dynamicProgrammingDiffing=new o1,this.myersDiffingAlgorithm=new tl}computeDiff(t,r,n){if(t.length<=1&&S3(t,r,(Y,re)=>Y===re))return new vo([],[],!1);if(t.length===1&&t[0].length===0||r.length===1&&r[0].length===0)return new vo([new Vn(new Oe(1,t.length+1),new Oe(1,r.length+1),[new Ds(new Be(1,1,t.length,t[0].length+1),new Be(1,1,r.length,r[0].length+1))])],[],!1);let i=n.maxComputationTimeMs===0?fi.instance:new i1(n.maxComputationTimeMs),o=!n.ignoreTrimWhitespace,s=new Map;function a(Y){let re=s.get(Y);return re===void 0&&(re=s.size,s.set(Y,re)),re}let u=t.map(Y=>a(Y.trim())),d=r.map(Y=>a(Y.trim())),p=new iu(u,t),m=new iu(d,r),w=p.length+m.length<1700?this.dynamicProgrammingDiffing.compute(p,m,i,(Y,re)=>t[Y]===r[re]?r[re].length===0?.1:1+Math.log(1+r[re].length):.99):this.myersDiffingAlgorithm.compute(p,m),_=w.diffs,S=w.hitTimeout;_=P2(p,m,_),_=qx(p,m,_);let T=[],M=Y=>{if(o)for(let re=0;re<Y;re++){let te=R+re,ie=I+re;if(t[te]!==r[ie]){let ge=this.refineDiff(t,r,new qt(new Ie(te,te+1),new Ie(ie,ie+1)),i,o);for(let be of ge.mappings)T.push(be);ge.hitTimeout&&(S=!0)}}},R=0,I=0;for(let Y of _){Ja(()=>Y.seq1Range.start-R===Y.seq2Range.start-I);let re=Y.seq1Range.start-R;M(re),R=Y.seq1Range.endExclusive,I=Y.seq2Range.endExclusive;let te=this.refineDiff(t,r,Y,i,o);te.hitTimeout&&(S=!0);for(let ie of te.mappings)T.push(ie)}M(t.length-R);let N=Zx(T,t,r),V=[];return n.computeMoves&&(V=this.computeMoves(N,t,r,u,d,i,o)),Ja(()=>{function Y(te,ie){if(te.lineNumber<1||te.lineNumber>ie.length)return!1;let ge=ie[te.lineNumber-1];return!(te.column<1||te.column>ge.length+1)}function re(te,ie){return!(te.startLineNumber<1||te.startLineNumber>ie.length+1||te.endLineNumberExclusive<1||te.endLineNumberExclusive>ie.length+1)}for(let te of N){if(!te.innerChanges)return!1;for(let ie of te.innerChanges)if(!(Y(ie.modifiedRange.getStartPosition(),r)&&Y(ie.modifiedRange.getEndPosition(),r)&&Y(ie.originalRange.getStartPosition(),t)&&Y(ie.originalRange.getEndPosition(),t)))return!1;if(!re(te.modified,r)||!re(te.original,t))return!1}return!0}),new vo(N,V,S)}computeMoves(t,r,n,i,o,s,a){return Ux(t,r,n,i,o,s).map(p=>{let m=this.refineDiff(r,n,new qt(p.original.toOffsetRange(),p.modified.toOffsetRange()),s,a),w=Zx(m.mappings,r,n,!0);return new e1(p,w)})}refineDiff(t,r,n,i,o){let s=new xo(t,n.seq1Range,o),a=new xo(r,n.seq2Range,o),u=s.length+a.length<500?this.dynamicProgrammingDiffing.compute(s,a,i):this.myersDiffingAlgorithm.compute(s,a,i),d=u.diffs;return d=P2(s,a,d),d=Gx(s,a,d),d=Bx(s,a,d),d=jx(s,a,d),{mappings:d.map(m=>new Ds(s.translateRange(m.seq1Range),a.translateRange(m.seq2Range))),hitTimeout:u.hitTimeout}}};function Zx(e,t,r,n=!1){let i=[];for(let o of x3(e.map(s=>eD(s,t,r)),(s,a)=>s.original.overlapOrTouch(a.original)||s.modified.overlapOrTouch(a.modified))){let s=o[0],a=o[o.length-1];i.push(new Vn(s.original.join(a.original),s.modified.join(a.modified),o.map(u=>u.innerChanges[0])))}return Ja(()=>!n&&i.length>0&&i[0].original.startLineNumber!==i[0].modified.startLineNumber?!1:Xh(i,(o,s)=>s.original.startLineNumber-o.original.endLineNumberExclusive===s.modified.startLineNumber-o.modified.endLineNumberExclusive&&o.original.endLineNumberExclusive<s.original.startLineNumber&&o.modified.endLineNumberExclusive<s.modified.startLineNumber)),i}function eD(e,t,r){let n=0,i=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+n<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+n<=e.modifiedRange.endLineNumber&&(i=-1),e.modifiedRange.startColumn-1>=r[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(n=1);let o=new Oe(e.originalRange.startLineNumber+n,e.originalRange.endLineNumber+1+i),s=new Oe(e.modifiedRange.startLineNumber+n,e.modifiedRange.endLineNumber+1+i);return new Vn(o,s,[e])}var A2={getLegacy:()=>new r1,getDefault:()=>new l1};function Co(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}var Lt=class{constructor(t,r,n,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,r))|0,this.b=Math.min(255,Math.max(0,n))|0,this.a=Co(Math.max(Math.min(1,i),0),3)}static equals(t,r){return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a}},pi=class e{constructor(t,r,n,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Co(Math.max(Math.min(1,r),0),3),this.l=Co(Math.max(Math.min(1,n),0),3),this.a=Co(Math.max(Math.min(1,i),0),3)}static equals(t,r){return t.h===r.h&&t.s===r.s&&t.l===r.l&&t.a===r.a}static fromRGBA(t){let r=t.r/255,n=t.g/255,i=t.b/255,o=t.a,s=Math.max(r,n,i),a=Math.min(r,n,i),u=0,d=0,p=(a+s)/2,m=s-a;if(m>0){switch(d=Math.min(p<=.5?m/(2*p):m/(2-2*p),1),s){case r:u=(n-i)/m+(n<i?6:0);break;case n:u=(i-r)/m+2;break;case i:u=(r-n)/m+4;break}u*=60,u=Math.round(u)}return new e(u,d,p,o)}static _hue2rgb(t,r,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(r-t)*6*n:n<1/2?r:n<2/3?t+(r-t)*(2/3-n)*6:t}static toRGBA(t){let r=t.h/360,{s:n,l:i,a:o}=t,s,a,u;if(n===0)s=a=u=i;else{let d=i<.5?i*(1+n):i+n-i*n,p=2*i-d;s=e._hue2rgb(p,d,r+1/3),a=e._hue2rgb(p,d,r),u=e._hue2rgb(p,d,r-1/3)}return new Lt(Math.round(s*255),Math.round(a*255),Math.round(u*255),o)}},rl=class e{constructor(t,r,n,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Co(Math.max(Math.min(1,r),0),3),this.v=Co(Math.max(Math.min(1,n),0),3),this.a=Co(Math.max(Math.min(1,i),0),3)}static equals(t,r){return t.h===r.h&&t.s===r.s&&t.v===r.v&&t.a===r.a}static fromRGBA(t){let r=t.r/255,n=t.g/255,i=t.b/255,o=Math.max(r,n,i),s=Math.min(r,n,i),a=o-s,u=o===0?0:a/o,d;return a===0?d=0:o===r?d=((n-i)/a%6+6)%6:o===n?d=(i-r)/a+2:d=(r-n)/a+4,new e(Math.round(d*60),u,o,t.a)}static toRGBA(t){let{h:r,s:n,v:i,a:o}=t,s=i*n,a=s*(1-Math.abs(r/60%2-1)),u=i-s,[d,p,m]=[0,0,0];return r<60?(d=s,p=a):r<120?(d=a,p=s):r<180?(p=s,m=a):r<240?(p=a,m=s):r<300?(d=a,m=s):r<=360&&(d=s,m=a),d=Math.round((d+u)*255),p=Math.round((p+u)*255),m=Math.round((m+u)*255),new Lt(d,p,m,o)}},mt=class e{static fromHex(t){return e.Format.CSS.parseHex(t)||e.red}static equals(t,r){return!t&&!r?!0:!t||!r?!1:t.equals(r)}get hsla(){return this._hsla?this._hsla:pi.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:rl.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof Lt)this.rgba=t;else if(t instanceof pi)this._hsla=t,this.rgba=pi.toRGBA(t);else if(t instanceof rl)this._hsva=t,this.rgba=rl.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&Lt.equals(this.rgba,t.rgba)&&pi.equals(this.hsla,t.hsla)&&rl.equals(this.hsva,t.hsva)}getRelativeLuminance(){let t=e._relativeLuminanceForComponent(this.rgba.r),r=e._relativeLuminanceForComponent(this.rgba.g),n=e._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*r+.0722*n;return Co(i,4)}static _relativeLuminanceForComponent(t){let r=t/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){let r=this.getRelativeLuminance(),n=t.getRelativeLuminance();return r>n}isDarkerThan(t){let r=this.getRelativeLuminance(),n=t.getRelativeLuminance();return r<n}lighten(t){return new e(new pi(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new e(new pi(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){let{r,g:n,b:i,a:o}=this.rgba;return new e(new Lt(r,n,i,o*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new e(new Lt(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;let{r,g:n,b:i,a:o}=this.rgba;return new e(new Lt(t.rgba.r-o*(t.rgba.r-r),t.rgba.g-o*(t.rgba.g-n),t.rgba.b-o*(t.rgba.b-i),1))}toString(){return this._toString||(this._toString=e.Format.CSS.format(this)),this._toString}static getLighterColor(t,r,n){if(t.isLighterThan(r))return t;n=n||.5;let i=t.getRelativeLuminance(),o=r.getRelativeLuminance();return n=n*(o-i)/o,t.lighten(n)}static getDarkerColor(t,r,n){if(t.isDarkerThan(r))return t;n=n||.5;let i=t.getRelativeLuminance(),o=r.getRelativeLuminance();return n=n*(i-o)/i,t.darken(n)}};mt.white=new mt(new Lt(255,255,255,1));mt.black=new mt(new Lt(0,0,0,1));mt.red=new mt(new Lt(255,0,0,1));mt.blue=new mt(new Lt(0,0,255,1));mt.green=new mt(new Lt(0,255,0,1));mt.cyan=new mt(new Lt(0,255,255,1));mt.lightgrey=new mt(new Lt(211,211,211,1));mt.transparent=new mt(new Lt(0,0,0,0));(function(e){let t;(function(r){let n;(function(i){function o(T){return T.rgba.a===1?`rgb(${T.rgba.r}, ${T.rgba.g}, ${T.rgba.b})`:e.Format.CSS.formatRGBA(T)}i.formatRGB=o;function s(T){return`rgba(${T.rgba.r}, ${T.rgba.g}, ${T.rgba.b}, ${+T.rgba.a.toFixed(2)})`}i.formatRGBA=s;function a(T){return T.hsla.a===1?`hsl(${T.hsla.h}, ${(T.hsla.s*100).toFixed(2)}%, ${(T.hsla.l*100).toFixed(2)}%)`:e.Format.CSS.formatHSLA(T)}i.formatHSL=a;function u(T){return`hsla(${T.hsla.h}, ${(T.hsla.s*100).toFixed(2)}%, ${(T.hsla.l*100).toFixed(2)}%, ${T.hsla.a.toFixed(2)})`}i.formatHSLA=u;function d(T){let M=T.toString(16);return M.length!==2?"0"+M:M}function p(T){return`#${d(T.rgba.r)}${d(T.rgba.g)}${d(T.rgba.b)}`}i.formatHex=p;function m(T,M=!1){return M&&T.rgba.a===1?e.Format.CSS.formatHex(T):`#${d(T.rgba.r)}${d(T.rgba.g)}${d(T.rgba.b)}${d(Math.round(T.rgba.a*255))}`}i.formatHexA=m;function w(T){return T.isOpaque()?e.Format.CSS.formatHex(T):e.Format.CSS.formatRGBA(T)}i.format=w;function _(T){let M=T.length;if(M===0||T.charCodeAt(0)!==35)return null;if(M===7){let R=16*S(T.charCodeAt(1))+S(T.charCodeAt(2)),I=16*S(T.charCodeAt(3))+S(T.charCodeAt(4)),N=16*S(T.charCodeAt(5))+S(T.charCodeAt(6));return new e(new Lt(R,I,N,1))}if(M===9){let R=16*S(T.charCodeAt(1))+S(T.charCodeAt(2)),I=16*S(T.charCodeAt(3))+S(T.charCodeAt(4)),N=16*S(T.charCodeAt(5))+S(T.charCodeAt(6)),V=16*S(T.charCodeAt(7))+S(T.charCodeAt(8));return new e(new Lt(R,I,N,V/255))}if(M===4){let R=S(T.charCodeAt(1)),I=S(T.charCodeAt(2)),N=S(T.charCodeAt(3));return new e(new Lt(16*R+R,16*I+I,16*N+N))}if(M===5){let R=S(T.charCodeAt(1)),I=S(T.charCodeAt(2)),N=S(T.charCodeAt(3)),V=S(T.charCodeAt(4));return new e(new Lt(16*R+R,16*I+I,16*N+N,(16*V+V)/255))}return null}i.parseHex=_;function S(T){switch(T){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(n=r.CSS||(r.CSS={}))})(t=e.Format||(e.Format={}))})(mt||(mt={}));function Xx(e){let t=[];for(let r of e){let n=Number(r);(n||n===0&&r.replace(/\s/g,"")!=="")&&t.push(n)}return t}function N2(e,t,r,n){return{red:e/255,blue:r/255,green:t/255,alpha:n}}function ou(e,t){let r=t.index,n=t[0].length;if(!r)return;let i=e.positionAt(r);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+n}}function tD(e,t){if(!e)return;let r=mt.Format.CSS.parseHex(t);if(r)return{range:e,color:N2(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function Yx(e,t,r){if(!e||t.length!==1)return;let i=t[0].values(),o=Xx(i);return{range:e,color:N2(o[0],o[1],o[2],r?o[3]:1)}}function Jx(e,t,r){if(!e||t.length!==1)return;let i=t[0].values(),o=Xx(i),s=new mt(new pi(o[0],o[1]/100,o[2]/100,r?o[3]:1));return{range:e,color:N2(s.rgba.r,s.rgba.g,s.rgba.b,s.rgba.a)}}function su(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function rD(e){let t=[],n=su(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(let i of n){let o=i.filter(d=>d!==void 0),s=o[1],a=o[2];if(!a)continue;let u;if(s==="rgb"){let d=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;u=Yx(ou(e,i),su(a,d),!1)}else if(s==="rgba"){let d=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=Yx(ou(e,i),su(a,d),!0)}else if(s==="hsl"){let d=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;u=Jx(ou(e,i),su(a,d),!1)}else if(s==="hsla"){let d=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=Jx(ou(e,i),su(a,d),!0)}else s==="#"&&(u=tD(ou(e,i),s+a));u&&t.push(u)}return t}function Qx(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:rD(e)}var k2=class extends Vh{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){let r=[];for(let n=0;n<this._lines.length;n++){let i=this._lines[n],o=this.offsetAt(new Gt(n+1,1)),s=i.matchAll(t);for(let a of s)(a.index||a.index===0)&&(a.index=a.index+o),r.push(a)}return r}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,r){let n=Kc(t.column,d2(r),this._lines[t.lineNumber-1],0);return n?new Be(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn):null}words(t){let r=this._lines,n=this._wordenize.bind(this),i=0,o="",s=0,a=[];return{*[Symbol.iterator](){for(;;)if(s<a.length){let u=o.substring(a[s].start,a[s].end);s+=1,yield u}else if(i<r.length)o=r[i],a=n(o,t),s=0,i+=1;else break}}}getLineWords(t,r){let n=this._lines[t-1],i=this._wordenize(n,r),o=[];for(let s of i)o.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return o}_wordenize(t,r){let n=[],i;for(r.lastIndex=0;(i=r.exec(t))&&i[0].length!==0;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);let r=this._eol,n=t.startLineNumber-1,i=t.endLineNumber-1,o=[];o.push(this._lines[n].substring(t.startColumn-1));for(let s=n+1;s<i;s++)o.push(this._lines[s]);return o.push(this._lines[i].substring(0,t.endColumn-1)),o.join(r)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();let r=this._lineStarts.getIndexOf(t),n=this._lines[r.index].length;return{lineNumber:1+r.index,column:1+Math.min(r.remainder,n)}}_validateRange(t){let r=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),n=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return r.lineNumber!==t.startLineNumber||r.column!==t.startColumn||n.lineNumber!==t.endLineNumber||n.column!==t.endColumn?{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:n.lineNumber,endColumn:n.column}:t}_validatePosition(t){if(!Gt.isIPosition(t))throw new Error("bad position");let{lineNumber:r,column:n}=t,i=!1;if(r<1)r=1,n=1,i=!0;else if(r>this._lines.length)r=this._lines.length,n=this._lines[r-1].length+1,i=!0;else{let o=this._lines[r-1].length+1;n<1?(n=1,i=!0):n>o&&(n=o,i=!0)}return i?{lineNumber:r,column:n}:t}},nl=class e{constructor(t,r){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=r,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){let t=[];return Object.keys(this._models).forEach(r=>t.push(this._models[r])),t}acceptNewModel(t){this._models[t.url]=new k2(bo.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,r){if(!this._models[t])return;this._models[t].onEvents(r)}acceptRemovedModel(t){this._models[t]&&delete this._models[t]}async computeUnicodeHighlights(t,r,n){let i=this._getModel(t);return i?Qh.computeUnicodeHighlights(i,r,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async computeDiff(t,r,n,i){let o=this._getModel(t),s=this._getModel(r);return!o||!s?null:e.computeDiff(o,s,n,i)}static computeDiff(t,r,n,i){let o=i==="advanced"?A2.getDefault():A2.getLegacy(),s=t.getLinesContent(),a=r.getLinesContent(),u=o.computeDiff(s,a,n),d=u.changes.length>0?!1:this._modelsAreIdentical(t,r);function p(m){return m.map(w=>{var _;return[w.original.startLineNumber,w.original.endLineNumberExclusive,w.modified.startLineNumber,w.modified.endLineNumberExclusive,(_=w.innerChanges)===null||_===void 0?void 0:_.map(S=>[S.originalRange.startLineNumber,S.originalRange.startColumn,S.originalRange.endLineNumber,S.originalRange.endColumn,S.modifiedRange.startLineNumber,S.modifiedRange.startColumn,S.modifiedRange.endLineNumber,S.modifiedRange.endColumn])]})}return{identical:d,quitEarly:u.hitTimeout,changes:p(u.changes),moves:u.moves.map(m=>[m.lineRangeMapping.original.startLineNumber,m.lineRangeMapping.original.endLineNumberExclusive,m.lineRangeMapping.modified.startLineNumber,m.lineRangeMapping.modified.endLineNumberExclusive,p(m.changes)])}}static _modelsAreIdentical(t,r){let n=t.getLineCount(),i=r.getLineCount();if(n!==i)return!1;for(let o=1;o<=n;o++){let s=t.getLineContent(o),a=r.getLineContent(o);if(s!==a)return!1}return!0}async computeMoreMinimalEdits(t,r,n){let i=this._getModel(t);if(!i)return r;let o=[],s;r=r.slice(0).sort((u,d)=>{if(u.range&&d.range)return Be.compareRangesUsingStarts(u.range,d.range);let p=u.range?0:1,m=d.range?0:1;return p-m});let a=0;for(let u=1;u<r.length;u++)Be.getEndPosition(r[a].range).equals(Be.getStartPosition(r[u].range))?(r[a].range=Be.fromPositions(Be.getStartPosition(r[a].range),Be.getEndPosition(r[u].range)),r[a].text+=r[u].text):(a++,r[a]=r[u]);r.length=a+1;for(let{range:u,text:d,eol:p}of r){if(typeof p=="number"&&(s=p),Be.isEmpty(u)&&!d)continue;let m=i.getValueInRange(u);if(d=d.replace(/\r\n|\n|\r/g,i.eol),m===d)continue;if(Math.max(d.length,m.length)>e._diffLimit){o.push({range:u,text:d});continue}let w=p3(m,d,n),_=i.offsetAt(Be.lift(u).getStartPosition());for(let S of w){let T=i.positionAt(_+S.originalStart),M=i.positionAt(_+S.originalStart+S.originalLength),R={text:d.substr(S.modifiedStart,S.modifiedLength),range:{startLineNumber:T.lineNumber,startColumn:T.column,endLineNumber:M.lineNumber,endColumn:M.column}};i.getValueInRange(R.range)!==R.text&&o.push(R)}}return typeof s=="number"&&o.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async computeLinks(t){let r=this._getModel(t);return r?I3(r):null}async computeDefaultDocumentColors(t){let r=this._getModel(t);return r?Qx(r):null}async textualSuggest(t,r,n,i){let o=new Wa,s=new RegExp(n,i),a=new Set;e:for(let u of t){let d=this._getModel(u);if(d){for(let p of d.words(s))if(!(p===r||!isNaN(Number(p)))&&(a.add(p),a.size>e._suggestionsLimit))break e}}return{words:Array.from(a),duration:o.elapsed()}}async computeWordRanges(t,r,n,i){let o=this._getModel(t);if(!o)return Object.create(null);let s=new RegExp(n,i),a=Object.create(null);for(let u=r.startLineNumber;u<r.endLineNumber;u++){let d=o.getLineWords(u,s);for(let p of d){if(!isNaN(Number(p.word)))continue;let m=a[p.word];m||(m=[],a[p.word]=m),m.push({startLineNumber:u,startColumn:p.startColumn,endLineNumber:u,endColumn:p.endColumn})}}return a}async navigateValueSet(t,r,n,i,o){let s=this._getModel(t);if(!s)return null;let a=new RegExp(i,o);r.startColumn===r.endColumn&&(r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.endColumn+1});let u=s.getValueInRange(r),d=s.getWordAtPosition({lineNumber:r.startLineNumber,column:r.startColumn},a);if(!d)return null;let p=s.getValueInRange(d);return Za.INSTANCE.navigateValueSet(r,u,d,p,n)}loadForeignModule(t,r,n){let s={host:X5(n,(a,u)=>this._host.fhr(a,u)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(s,r),Promise.resolve(qc(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,r){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,r))}catch(n){return Promise.reject(n)}}};nl._diffLimit=1e5;nl._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=Cx());var R2=!1;function D2(e){if(R2)return;R2=!0;let t=new Ah(r=>{globalThis.postMessage(r)},r=>new nl(r,e));globalThis.onmessage=r=>{t.onmessage(r.data)}}globalThis.onmessage=e=>{R2||D2(null)};var c1=class e{constructor(t,r,n,i){this._uri=t,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){for(let n of t)if(e.isIncremental(n)){let i=e9(n.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+n.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),u=Math.max(i.end.line,0),d=this._lineOffsets,p=Kx(n.text,!1,o);if(u-a===p.length)for(let w=0,_=p.length;w<_;w++)d[w+a+1]=p[w];else p.length<1e4?d.splice(a+1,u-a,...p):this._lineOffsets=d=d.slice(0,a+1).concat(p,d.slice(u+1));let m=n.text.length-(s-o);if(m!==0)for(let w=a+1+p.length,_=d.length;w<_;w++)d[w]=d[w]+m}else if(e.isFull(n))this._content=n.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=r}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Kx(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return{line:0,character:t};for(;n<i;){let s=Math.floor((n+i)/2);r[s]>t?i=s:n=s+1}let o=n-1;return{line:o,character:t-r[o]}}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line],i=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(n+t.character,i),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},u1;(function(e){function t(i,o,s,a){return new c1(i,o,s,a)}e.create=t;function r(i,o,s){if(i instanceof c1)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=r;function n(i,o){let s=i.getText(),a=O2(o.map(nD),(p,m)=>{let w=p.range.start.line-m.range.start.line;return w===0?p.range.start.character-m.range.start.character:w}),u=0,d=[];for(let p of a){let m=i.offsetAt(p.range.start);if(m<u)throw new Error("Overlapping edit");m>u&&d.push(s.substring(u,m)),p.newText.length&&d.push(p.newText),u=i.offsetAt(p.range.end)}return d.push(s.substr(u)),d.join("")}e.applyEdits=n})(u1||(u1={}));function O2(e,t){if(e.length<=1)return e;let r=e.length/2|0,n=e.slice(0,r),i=e.slice(r);O2(n,t),O2(i,t);let o=0,s=0,a=0;for(;o<n.length&&s<i.length;)t(n[o],i[s])<=0?e[a++]=n[o++]:e[a++]=i[s++];for(;o<n.length;)e[a++]=n[o++];for(;s<i.length;)e[a++]=i[s++];return e}function Kx(e,t,r=0){let n=t?[r]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);(o===13||o===10)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,n.push(r+i+1))}return n}function e9(e){let t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function nD(e){let t=e9(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var t9;(function(e){function t(r){return typeof r=="string"}e.is=t})(t9||(t9={}));var $2;(function(e){function t(r){return typeof r=="string"}e.is=t})($2||($2={}));var r9;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(r9||(r9={}));var d1;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(d1||(d1={}));var Un;(function(e){function t(n,i){return n===Number.MAX_VALUE&&(n=d1.MAX_VALUE),i===Number.MAX_VALUE&&(i=d1.MAX_VALUE),{line:n,character:i}}e.create=t;function r(n){let i=n;return U.objectLiteral(i)&&U.uinteger(i.line)&&U.uinteger(i.character)}e.is=r})(Un||(Un={}));var It;(function(e){function t(n,i,o,s){if(U.uinteger(n)&&U.uinteger(i)&&U.uinteger(o)&&U.uinteger(s))return{start:Un.create(n,i),end:Un.create(o,s)};if(Un.is(n)&&Un.is(i))return{start:n,end:i};throw new Error(`Range#create called with invalid arguments[${n}, ${i}, ${o}, ${s}]`)}e.create=t;function r(n){let i=n;return U.objectLiteral(i)&&Un.is(i.start)&&Un.is(i.end)}e.is=r})(It||(It={}));var f1;(function(e){function t(n,i){return{uri:n,range:i}}e.create=t;function r(n){let i=n;return U.objectLiteral(i)&&It.is(i.range)&&(U.string(i.uri)||U.undefined(i.uri))}e.is=r})(f1||(f1={}));var n9;(function(e){function t(n,i,o,s){return{targetUri:n,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function r(n){let i=n;return U.objectLiteral(i)&&It.is(i.targetRange)&&U.string(i.targetUri)&&It.is(i.targetSelectionRange)&&(It.is(i.originSelectionRange)||U.undefined(i.originSelectionRange))}e.is=r})(n9||(n9={}));var F2;(function(e){function t(n,i,o,s){return{red:n,green:i,blue:o,alpha:s}}e.create=t;function r(n){let i=n;return U.objectLiteral(i)&&U.numberRange(i.red,0,1)&&U.numberRange(i.green,0,1)&&U.numberRange(i.blue,0,1)&&U.numberRange(i.alpha,0,1)}e.is=r})(F2||(F2={}));var i9;(function(e){function t(n,i){return{range:n,color:i}}e.create=t;function r(n){let i=n;return U.objectLiteral(i)&&It.is(i.range)&&F2.is(i.color)}e.is=r})(i9||(i9={}));var o9;(function(e){function t(n,i,o){return{label:n,textEdit:i,additionalTextEdits:o}}e.create=t;function r(n){let i=n;return U.objectLiteral(i)&&U.string(i.label)&&(U.undefined(i.textEdit)||ol.is(i))&&(U.undefined(i.additionalTextEdits)||U.typedArray(i.additionalTextEdits,ol.is))}e.is=r})(o9||(o9={}));var s9;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(s9||(s9={}));var a9;(function(e){function t(n,i,o,s,a,u){let d={startLine:n,endLine:i};return U.defined(o)&&(d.startCharacter=o),U.defined(s)&&(d.endCharacter=s),U.defined(a)&&(d.kind=a),U.defined(u)&&(d.collapsedText=u),d}e.create=t;function r(n){let i=n;return U.objectLiteral(i)&&U.uinteger(i.startLine)&&U.uinteger(i.startLine)&&(U.undefined(i.startCharacter)||U.uinteger(i.startCharacter))&&(U.undefined(i.endCharacter)||U.uinteger(i.endCharacter))&&(U.undefined(i.kind)||U.string(i.kind))}e.is=r})(a9||(a9={}));var V2;(function(e){function t(n,i){return{location:n,message:i}}e.create=t;function r(n){let i=n;return U.defined(i)&&f1.is(i.location)&&U.string(i.message)}e.is=r})(V2||(V2={}));var l9;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(l9||(l9={}));var c9;(function(e){e.Unnecessary=1,e.Deprecated=2})(c9||(c9={}));var u9;(function(e){function t(r){let n=r;return U.objectLiteral(n)&&U.string(n.href)}e.is=t})(u9||(u9={}));var p1;(function(e){function t(n,i,o,s,a,u){let d={range:n,message:i};return U.defined(o)&&(d.severity=o),U.defined(s)&&(d.code=s),U.defined(a)&&(d.source=a),U.defined(u)&&(d.relatedInformation=u),d}e.create=t;function r(n){var i;let o=n;return U.defined(o)&&It.is(o.range)&&U.string(o.message)&&(U.number(o.severity)||U.undefined(o.severity))&&(U.integer(o.code)||U.string(o.code)||U.undefined(o.code))&&(U.undefined(o.codeDescription)||U.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(U.string(o.source)||U.undefined(o.source))&&(U.undefined(o.relatedInformation)||U.typedArray(o.relatedInformation,V2.is))}e.is=r})(p1||(p1={}));var il;(function(e){function t(n,i,...o){let s={title:n,command:i};return U.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function r(n){let i=n;return U.defined(i)&&U.string(i.title)&&U.string(i.command)}e.is=r})(il||(il={}));var ol;(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function r(o,s){return{range:{start:o,end:o},newText:s}}e.insert=r;function n(o){return{range:o,newText:""}}e.del=n;function i(o){let s=o;return U.objectLiteral(s)&&U.string(s.newText)&&It.is(s.range)}e.is=i})(ol||(ol={}));var U2;(function(e){function t(n,i,o){let s={label:n};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function r(n){let i=n;return U.objectLiteral(i)&&U.string(i.label)&&(U.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(U.string(i.description)||i.description===void 0)}e.is=r})(U2||(U2={}));var sl;(function(e){function t(r){let n=r;return U.string(n)}e.is=t})(sl||(sl={}));var d9;(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function r(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=r;function n(o,s){return{range:o,newText:"",annotationId:s}}e.del=n;function i(o){let s=o;return ol.is(s)&&(U2.is(s.annotationId)||sl.is(s.annotationId))}e.is=i})(d9||(d9={}));var W2;(function(e){function t(n,i){return{textDocument:n,edits:i}}e.create=t;function r(n){let i=n;return U.defined(i)&&j2.is(i.textDocument)&&Array.isArray(i.edits)}e.is=r})(W2||(W2={}));var z2;(function(e){function t(n,i,o){let s={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function r(n){let i=n;return i&&i.kind==="create"&&U.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||U.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||U.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||sl.is(i.annotationId))}e.is=r})(z2||(z2={}));var B2;(function(e){function t(n,i,o,s){let a={kind:"rename",oldUri:n,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function r(n){let i=n;return i&&i.kind==="rename"&&U.string(i.oldUri)&&U.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||U.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||U.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||sl.is(i.annotationId))}e.is=r})(B2||(B2={}));var G2;(function(e){function t(n,i,o){let s={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function r(n){let i=n;return i&&i.kind==="delete"&&U.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||U.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||U.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||sl.is(i.annotationId))}e.is=r})(G2||(G2={}));var q2;(function(e){function t(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(i=>U.string(i.kind)?z2.is(i)||B2.is(i)||G2.is(i):W2.is(i)))}e.is=t})(q2||(q2={}));var f9;(function(e){function t(n){return{uri:n}}e.create=t;function r(n){let i=n;return U.defined(i)&&U.string(i.uri)}e.is=r})(f9||(f9={}));var p9;(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){let i=n;return U.defined(i)&&U.string(i.uri)&&U.integer(i.version)}e.is=r})(p9||(p9={}));var j2;(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){let i=n;return U.defined(i)&&U.string(i.uri)&&(i.version===null||U.integer(i.version))}e.is=r})(j2||(j2={}));var m9;(function(e){function t(n,i,o,s){return{uri:n,languageId:i,version:o,text:s}}e.create=t;function r(n){let i=n;return U.defined(i)&&U.string(i.uri)&&U.string(i.languageId)&&U.integer(i.version)&&U.string(i.text)}e.is=r})(m9||(m9={}));var au;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){let n=r;return n===e.PlainText||n===e.Markdown}e.is=t})(au||(au={}));var lu;(function(e){function t(r){let n=r;return U.objectLiteral(r)&&au.is(n.kind)&&U.string(n.value)}e.is=t})(lu||(lu={}));var Os;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Os||(Os={}));var al;(function(e){e.PlainText=1,e.Snippet=2})(al||(al={}));var h9;(function(e){e.Deprecated=1})(h9||(h9={}));var g9;(function(e){function t(n,i,o){return{newText:n,insert:i,replace:o}}e.create=t;function r(n){let i=n;return i&&U.string(i.newText)&&It.is(i.insert)&&It.is(i.replace)}e.is=r})(g9||(g9={}));var ll;(function(e){e.asIs=1,e.adjustIndentation=2})(ll||(ll={}));var w9;(function(e){function t(r){let n=r;return n&&(U.string(n.detail)||n.detail===void 0)&&(U.string(n.description)||n.description===void 0)}e.is=t})(w9||(w9={}));var y9;(function(e){function t(r){return{label:r}}e.create=t})(y9||(y9={}));var b9;(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}e.create=t})(b9||(b9={}));var m1;(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function r(n){let i=n;return U.string(i)||U.objectLiteral(i)&&U.string(i.language)&&U.string(i.value)}e.is=r})(m1||(m1={}));var _9;(function(e){function t(r){let n=r;return!!n&&U.objectLiteral(n)&&(lu.is(n.contents)||m1.is(n.contents)||U.typedArray(n.contents,m1.is))&&(r.range===void 0||It.is(r.range))}e.is=t})(_9||(_9={}));var v9;(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}e.create=t})(v9||(v9={}));var S9;(function(e){function t(r,n,...i){let o={label:r};return U.defined(n)&&(o.documentation=n),U.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(S9||(S9={}));var x9;(function(e){e.Text=1,e.Read=2,e.Write=3})(x9||(x9={}));var C9;(function(e){function t(r,n){let i={range:r};return U.number(n)&&(i.kind=n),i}e.create=t})(C9||(C9={}));var T9;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(T9||(T9={}));var E9;(function(e){e.Deprecated=1})(E9||(E9={}));var M9;(function(e){function t(r,n,i,o,s){let a={name:r,kind:n,location:{uri:o,range:i}};return s&&(a.containerName=s),a}e.create=t})(M9||(M9={}));var L9;(function(e){function t(r,n,i,o){return o!==void 0?{name:r,kind:n,location:{uri:i,range:o}}:{name:r,kind:n,location:{uri:i}}}e.create=t})(L9||(L9={}));var I9;(function(e){function t(n,i,o,s,a,u){let d={name:n,detail:i,kind:o,range:s,selectionRange:a};return u!==void 0&&(d.children=u),d}e.create=t;function r(n){let i=n;return i&&U.string(i.name)&&U.number(i.kind)&&It.is(i.range)&&It.is(i.selectionRange)&&(i.detail===void 0||U.string(i.detail))&&(i.deprecated===void 0||U.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=r})(I9||(I9={}));var P9;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(P9||(P9={}));var h1;(function(e){e.Invoked=1,e.Automatic=2})(h1||(h1={}));var A9;(function(e){function t(n,i,o){let s={diagnostics:n};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function r(n){let i=n;return U.defined(i)&&U.typedArray(i.diagnostics,p1.is)&&(i.only===void 0||U.typedArray(i.only,U.string))&&(i.triggerKind===void 0||i.triggerKind===h1.Invoked||i.triggerKind===h1.Automatic)}e.is=r})(A9||(A9={}));var N9;(function(e){function t(n,i,o){let s={title:n},a=!0;return typeof i=="string"?(a=!1,s.kind=i):il.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}e.create=t;function r(n){let i=n;return i&&U.string(i.title)&&(i.diagnostics===void 0||U.typedArray(i.diagnostics,p1.is))&&(i.kind===void 0||U.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||il.is(i.command))&&(i.isPreferred===void 0||U.boolean(i.isPreferred))&&(i.edit===void 0||q2.is(i.edit))}e.is=r})(N9||(N9={}));var k9;(function(e){function t(n,i){let o={range:n};return U.defined(i)&&(o.data=i),o}e.create=t;function r(n){let i=n;return U.defined(i)&&It.is(i.range)&&(U.undefined(i.command)||il.is(i.command))}e.is=r})(k9||(k9={}));var R9;(function(e){function t(n,i){return{tabSize:n,insertSpaces:i}}e.create=t;function r(n){let i=n;return U.defined(i)&&U.uinteger(i.tabSize)&&U.boolean(i.insertSpaces)}e.is=r})(R9||(R9={}));var D9;(function(e){function t(n,i,o){return{range:n,target:i,data:o}}e.create=t;function r(n){let i=n;return U.defined(i)&&It.is(i.range)&&(U.undefined(i.target)||U.string(i.target))}e.is=r})(D9||(D9={}));var O9;(function(e){function t(n,i){return{range:n,parent:i}}e.create=t;function r(n){let i=n;return U.objectLiteral(i)&&It.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=r})(O9||(O9={}));var $9;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})($9||($9={}));var F9;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(F9||(F9={}));var V9;(function(e){function t(r){let n=r;return U.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}e.is=t})(V9||(V9={}));var U9;(function(e){function t(n,i){return{range:n,text:i}}e.create=t;function r(n){let i=n;return i!=null&&It.is(i.range)&&U.string(i.text)}e.is=r})(U9||(U9={}));var W9;(function(e){function t(n,i,o){return{range:n,variableName:i,caseSensitiveLookup:o}}e.create=t;function r(n){let i=n;return i!=null&&It.is(i.range)&&U.boolean(i.caseSensitiveLookup)&&(U.string(i.variableName)||i.variableName===void 0)}e.is=r})(W9||(W9={}));var z9;(function(e){function t(n,i){return{range:n,expression:i}}e.create=t;function r(n){let i=n;return i!=null&&It.is(i.range)&&(U.string(i.expression)||i.expression===void 0)}e.is=r})(z9||(z9={}));var B9;(function(e){function t(n,i){return{frameId:n,stoppedLocation:i}}e.create=t;function r(n){let i=n;return U.defined(i)&&It.is(n.stoppedLocation)}e.is=r})(B9||(B9={}));var H2;(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}e.is=t})(H2||(H2={}));var Z2;(function(e){function t(n){return{value:n}}e.create=t;function r(n){let i=n;return U.objectLiteral(i)&&(i.tooltip===void 0||U.string(i.tooltip)||lu.is(i.tooltip))&&(i.location===void 0||f1.is(i.location))&&(i.command===void 0||il.is(i.command))}e.is=r})(Z2||(Z2={}));var G9;(function(e){function t(n,i,o){let s={position:n,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function r(n){let i=n;return U.objectLiteral(i)&&Un.is(i.position)&&(U.string(i.label)||U.typedArray(i.label,Z2.is))&&(i.kind===void 0||H2.is(i.kind))&&i.textEdits===void 0||U.typedArray(i.textEdits,ol.is)&&(i.tooltip===void 0||U.string(i.tooltip)||lu.is(i.tooltip))&&(i.paddingLeft===void 0||U.boolean(i.paddingLeft))&&(i.paddingRight===void 0||U.boolean(i.paddingRight))}e.is=r})(G9||(G9={}));var q9;(function(e){function t(r){return{kind:"snippet",value:r}}e.createSnippet=t})(q9||(q9={}));var j9;(function(e){function t(r,n,i,o){return{insertText:r,filterText:n,range:i,command:o}}e.create=t})(j9||(j9={}));var H9;(function(e){function t(r){return{items:r}}e.create=t})(H9||(H9={}));var Z9;(function(e){e.Invoked=0,e.Automatic=1})(Z9||(Z9={}));var Y9;(function(e){function t(r,n){return{range:r,text:n}}e.create=t})(Y9||(Y9={}));var J9;(function(e){function t(r,n){return{triggerKind:r,selectedCompletionInfo:n}}e.create=t})(J9||(J9={}));var X9;(function(e){function t(r){let n=r;return U.objectLiteral(n)&&$2.is(n.uri)&&U.string(n.name)}e.is=t})(X9||(X9={}));var Q9;(function(e){function t(o,s,a,u){return new Y2(o,s,a,u)}e.create=t;function r(o){let s=o;return!!(U.defined(s)&&U.string(s.uri)&&(U.undefined(s.languageId)||U.string(s.languageId))&&U.uinteger(s.lineCount)&&U.func(s.getText)&&U.func(s.positionAt)&&U.func(s.offsetAt))}e.is=r;function n(o,s){let a=o.getText(),u=i(s,(p,m)=>{let w=p.range.start.line-m.range.start.line;return w===0?p.range.start.character-m.range.start.character:w}),d=a.length;for(let p=u.length-1;p>=0;p--){let m=u[p],w=o.offsetAt(m.range.start),_=o.offsetAt(m.range.end);if(_<=d)a=a.substring(0,w)+m.newText+a.substring(_,a.length);else throw new Error("Overlapping edit");d=w}return a}e.applyEdits=n;function i(o,s){if(o.length<=1)return o;let a=o.length/2|0,u=o.slice(0,a),d=o.slice(a);i(u,s),i(d,s);let p=0,m=0,w=0;for(;p<u.length&&m<d.length;)s(u[p],d[m])<=0?o[w++]=u[p++]:o[w++]=d[m++];for(;p<u.length;)o[w++]=u[p++];for(;m<d.length;)o[w++]=d[m++];return o}})(Q9||(Q9={}));var Y2=class{constructor(t,r,n,i){this._uri=t,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){this._content=t.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],r=this._content,n=!0;for(let i=0;i<r.length;i++){n&&(t.push(i),n=!1);let o=r.charAt(i);n=o==="\r"||o===`
153
+ `,o==="\r"&&i+1<r.length&&r.charAt(i+1)===`
154
+ `&&i++}n&&r.length>0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return Un.create(0,t);for(;n<i;){let s=Math.floor((n+i)/2);r[s]>t?i=s:n=s+1}let o=n-1;return Un.create(o,t-r[o])}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line],i=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(n+t.character,i),n)}get lineCount(){return this.getLineOffsets().length}},U;(function(e){let t=Object.prototype.toString;function r(_){return typeof _<"u"}e.defined=r;function n(_){return typeof _>"u"}e.undefined=n;function i(_){return _===!0||_===!1}e.boolean=i;function o(_){return t.call(_)==="[object String]"}e.string=o;function s(_){return t.call(_)==="[object Number]"}e.number=s;function a(_,S,T){return t.call(_)==="[object Number]"&&S<=_&&_<=T}e.numberRange=a;function u(_){return t.call(_)==="[object Number]"&&-2147483648<=_&&_<=2147483647}e.integer=u;function d(_){return t.call(_)==="[object Number]"&&0<=_&&_<=2147483647}e.uinteger=d;function p(_){return t.call(_)==="[object Function]"}e.func=p;function m(_){return _!==null&&typeof _=="object"}e.objectLiteral=m;function w(_,S){return Array.isArray(_)&&_.every(S)}e.typedArray=w})(U||(U={}));function iD(e){return Array.isArray(e.testSdkCategories)}async function oD(e,t){try{let r=await e,n=new Map,i=new Map,o=[],s=sD(t);return r.forEach(a=>{let u=[];a.items.forEach(d=>aD(u,i,n,s,d)),u.length&&o.push({...a,items:u})}),{categories:o,functionDefinitions:n,constantDefinitions:i}}catch{return{categories:[],functionDefinitions:new Map,constantDefinitions:new Map}}}var e7=class{constructor(e){this._settings=e,this.sdkCategoriesCache=new Map}async getApiDatabase(e){let{locale:t="en"}=e,r=this.sdkCategoriesCache.get(t);if(!r){let{assetsPath:n}=this._settings;if(!n)return{categories:[],functionDefinitions:new Map,constantDefinitions:new Map};r=this.loadSdkApiLibrary(t,n),this.sdkCategoriesCache.set(t,r)}return await oD(r,e)}async getApiLibrary(e){let{categories:t}=await this.getApiDatabase(e);return t}async loadSdkApiLibrary(e="en",t=""){if(iD(this._settings))return this._settings.testSdkCategories;if(t=t.replace(/\/$/u,""),!t)return[];try{let r=this._settings.apiPathTemplate.replace("${assetsPath}",t).replace("${locale}",e),n=await fetch(r);return n.ok?await n.json():e==="en"?[]:await this.loadSdkApiLibrary("en",t)}catch{return[]}}};function sD(e){let{profile:{apiVersion:t,bundles:r,hiddenApiItems:n=[]}={}}=e,i=t7(t),o=Array.isArray(r)&&r.length>0?new Set(["core",...r]):void 0;return s=>cD(i,s.sinceVersion)&&(!o||o.has(s.bundle))&&!n.includes(s.name)}function aD(e,t,r,n,i){if(Array.isArray(i)){i.forEach(o=>K9(e,r,n,o));return}i.type==="constant"?lD(e,t,n,i):K9(e,r,n,i)}function K9(e,t,r,n){if(!r(n))return;n.disableDocumentation||e.push(n);let{completion:{label:i}}=n,o=i.toLowerCase(),s=t.get(o);s||(s={type:"functionDefinition",key:o,overloads:[]},t.set(o,s)),s.overloads.push(n)}function lD(e,t,r,n){if(!r(n))return;e.push(n);let{completion:{label:i}}=n,o=i.toLowerCase();t.set(o,n);let[s,a]=n.completion.label.split(".");if(!a)return;let u=s.toLowerCase(),d=t.get(u);d||(d={type:"namespace",key:u,members:[],completion:{label:s,detail:s,insertText:s,insertTextMode:ll.adjustIndentation,insertTextFormat:al.PlainText,kind:Os.Enum}},t.set(u,d));let p=structuredClone(n);p.name=a,p.completion.label=a,p.completion.insertText=a,p.completion.kind=Os.Constant,d.members.push(p),d.completion.documentation=d.members.reduce((m,w)=>(m.value=`${m.value}${m.value?`
155
+
156
+ `:""}**${w.completion.label}**: ${w.description}`,m),{kind:au.Markdown,value:""})}function t7(e){if(!e||typeof e!="string")return null;let t=e.split(".").map(i=>Number.parseInt(i));if(t.some(Number.isNaN))return console.error("Invalid API version string",e),null;let[r,n]=t.slice(0,2);return{major:r,minor:n}}function cD(e,t){if(!e)return!0;let r=t7(t);return r?e.major>r.major?!1:e.minor===void 0||r.minor===void 0?!0:r.minor<=e.minor:!0}var cu=(u=>(u.CASE_EXPRESSION="case-expression",u.EXPRESSION_LIST="expression-list",u.FUNCTION="function",u.INTERVAL="interval",u.INTERVAL_QUALIFIER="interval-qualifier",u.WHEN_CLAUSE="when-clause",u.UNARY_EXPRESSION="unary-expression",u.BINARY_EXPRESSION="binary-expression",u))(cu||{}),er={"case-expression":["clauses","operand","else"],"when-clause":["operand","value"],"expression-list":["value"],"unary-expression":["expr"],"binary-expression":["left","right"],function:["args"],interval:["value","qualifier"],"interval-qualifier":["start","end"]},J2={Hint:1,Info:2,Warning:4,Error:8},X2={InsertAsSnippet:4},Tr={Function:1,Field:3,Variable:4,Keyword:17,Operator:11,Reference:21},uD={date:"DATE",float:"FLOAT",integer:"INTEGER",real:"REAL",smallint:"SMALLINT",time:"TIME",timestamp:"TIMESTAMP",varchar:"VARCHAR"},g1=Object.values(uD),uu=["YEAR","MONTH","DAY","HOUR","MINUTE","SECOND"],r7=["DATE","TIME","TIMESTAMP"],w1=["LEADING","TRAILING","BOTH"],n7=["AND","AS","BETWEEN","BOTH","CASE","CAST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DAY","ELSE","END","ESCAPE","FALSE","FLOAT","FOR","FROM","HOUR","IN","INTEGER","INTERVAL","IS","LEADING","LIKE","MINUTE","MONTH","NOT","NULL","OR","POSITION","REAL","SECOND","SMALLINT","SUBSTRING","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRIM","TRUE","VARCHAR","WHEN","WITH","YEAR","ZONE"],i7=["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL"],o7=["CAST","EXTRACT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","ABS","ACOS","ASIN","ATAN","CEILING","COS","FLOOR","LOG","LOG10","POWER","ROUND","SIGN","SIN","TAN","CHAR_LENGTH","COALESCE","CONCAT","LOWER","POSITION","TRIM","UPPER"];var dD=(e,t)=>e===t?`${e}`:`${e}-${t}`;var fD={ExpectedDateTimeValue:`Expected ${uu.join(" | ")}.`,ExpectedNumericalLiteral:"Expected a numerical literal.",ExpectedToken:"Expected token ${token}.",FunctionNotSupported:'Function "${function}" not supported.',IncompatibleListDataType:`Incompatible data types in expression list found. All data items should have the same type.
157
+
158
+ Types found: \${types}.`,IncorrectArgumentLength:"Expected ${formatMinMaxParams} arguments, but got ${numArgs}.",IncorrectCastParameters:`Expected usage:
159
+ - CAST(<VALUE> AS <${g1.join(" | ")}>)`,IncorrectExtractParameters:`Expected usage:
160
+ - EXTRACT(<${uu.join(" | ")}> FROM <Datetime>)`,IncorrectSubstringParameters:`Expected usage:
161
+ - SUBSTRING(<VALUE> FROM <START> FOR <LENGTH>)
162
+ - SUBSTRING(<VALUE>, <START>, <LENGTH>)`,IncorrectTrimParameters:`Expected usage:
163
+ - TRIM(<${w1.join(" | ")}> ' ' FROM <STRING>)`,InvalidThenClause:"THEN clause can only follow after a WHEN clause.",InvalidElseClause:"ELSE clause cannot be used without a WHEN clause.",InvalidEndOnWhen:"Cannot end a CASE expression with a WHEN clause. Requires a following THEN clause.",InvalidTrimCharacter:"Trim character must be the space character ' '.",MismatchedTypes:'Invalid type mismatch between ${leftValue} (type: "${providedType}") and ${rightValue} (type: "${expectedType}").',MissingValueInCaseClause:"Missing value after ${clause} clause in CASE expression.",NotCallable:"${expression} is not callable.",TypeNotAssignable:"Type ${providedType} is not assignable to type ${expectedType}.","UnexpectedEnd.":"Unexpected end of SQL expression.",UnexpectedIdentifier:"Unexpected identifier.",UnexpectedNumber:"Unexpected number.",UnexpectedTextLiteral:"Unexpected text literal.",UnexpectedToken:"Unexpected token ${token}.",UnknownField:'No fields with name "${field}" exists.',UnsupportedOperator:"Unsupported SQL operator ${operator}.",UnsupportedSyntax:"Unsupported SQL syntax ${syntax}.",InvalidIntervalQualifier:"Invalid interval qualifier. Expected 'YEAR', 'MONTH', 'DAY', 'HOUR', 'MINUTE', 'SECOND'.",EmptyCaseExpression:"The CASE expression cannot be empty. Please provide valid conditions and results within the CASE block."},Yr=(e,t)=>{let r=fD[e];return t&&"minParams"in t&&"maxParams"in t&&(t.formatMinMaxParams=dD(t.minParams,t.maxParams)),t?r.replace(/\${(.*?)}/g,(n,i)=>t[i]?.toString()??""):r};var y1=(S=>(S.CASE="CASE",S.CASE_ELSE="ELSE",S.CASE_THEN="THEN",S.CASE_WHEN="WHEN",S.COMMA=",",S.DOUBLE_QUOTE='"',S.EMPTY="",S.END="END",S.INTERVAL="INTERVAL",S.LEFT_PARENTHESES="(",S.NEW_LINE=`
164
+ `,S.RIGHT_PARENTHESES=")",S.SINGLE_QUOTE="'",S.WHITE_SPACE=" ",S))(y1||{});var s7=/\d+/u,Q2=["string","number","integer","number","smallint","float","real","date","time","timestamp","current-time","column-reference"];function mD(e,t){return Object.values(e).includes(t)?t:void 0}var hD=e=>{switch(e.operator){case"AND":case"OR":case"IS":case"ISNOT":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"*":case"-":case"+":case"/":return"number";case"||":return"string"}},gD=e=>{switch(e.type){case"number":return"number";case"text":return"string";case"dateOnly":case"date":return"date";case"time":return"time";case"boolean":return"boolean";case"dictionary":case"array":case"geometry":case"feature":case"featureSet":case"featureSetCollection":case"knowledgeGraph":return console.error(`sql-expr validator experienced an unexpected variable type: ${e.type}`),"null"}},du=(e,t)=>{switch(e.type){case"interval":case"interval-period":case"interval-qualifier":case"when-clause":case"case-expression":case"parameter":case"expression-list":return e.type;case"unary-expression":return"boolean";case"binary-expression":return hD(e);case"null":case"boolean":case"string":case"timestamp":case"date":case"time":case"number":case"current-time":case"data-type":return e.type;case"column-reference":{let r=t.find(n=>n.name===e.column);if(r)return gD(r)}return e.type;case"function":switch(e.name.toLowerCase()){case"cast":{if(e.args?.value?.[1]?.type!=="data-type")throw Error("Invalid cast function");switch(e.args?.value?.[1]?.value?.type){case"integer":case"smallint":return"integer";case"real":case"float":return"float";case"date":case"timestamp":return"timestamp";case"time":return"time-only";case"varchar":return"string"}}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":return"float";case"sign":return"integer";case"ceiling":case"floor":case"abs":return"float";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":case"truncate":return"float";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"current_date":case"current_time":case"current_timestamp":return"date";default:return"unknown_function"}}},fu=e=>{switch(e.toLowerCase()){case"integer":case"double":case"number":case"smallint":case"float":case"real":return!0;default:return!1}},K2=(e,t)=>{let r=mD(y1,t)===","?", ":" | ";return e.map(n=>`"${n.toLowerCase()}"`).sort().join(r)},Sn=e=>`"${e}"`,eb=e=>{switch(e.type){case"interval-qualifier":case"interval":return"INTERVAL";case"when-clause":return"WHEN_CLAUSE";case"case-expression":return"CASE_EXPRESSION";case"unary-expression":return"UNARY_EXPRESSION";case"expression-list":return"EXPRESSION_LIST";case"binary-expression":return"BINARY_EXPRESSION";case"current-time":return Sn(e.mode);case"interval-period":return Sn(e.period);case"null":return Sn("null");case"column-reference":return Sn(e.column);case"number":return e.value;case"function":return Sn(`${e.name}()`);case"data-type":return Sn(e.type);case"boolean":case"date":case"parameter":case"time":case"timestamp":case"string":return Sn(String(e.value))}},$r=(e,t,r,n)=>{if(n){let i=t,o={startColumn:i.start.column,endColumn:i.end.column,startLineNumber:i.start.line,endLineNumber:i.end.line};r.some(a=>a.message===e&&a.startColumn===o.startColumn&&a.startLineNumber===o.startLineNumber&&a.endColumn===o.endColumn&&a.endLineNumber===o.endLineNumber)||r.push({message:e,severity:J2.Error,...o})}else{let i=t;r.some(s=>s.message===e&&s.startColumn===i.startColumn&&s.startLineNumber===i.startLineNumber&&s.endColumn===i.endColumn&&s.endLineNumber===i.endLineNumber)||r.push({message:e,severity:J2.Error,...i})}},mi=(e,t,r,n)=>{let i=du(e,n),o=i.toUpperCase()===t;if(t==="NUMBER"&&(o=fu(i)),!o){let s=Yr("TypeNotAssignable",{providedType:Sn(i),expectedType:Sn(t.toLowerCase())});$r(s,e.location,r,!0)}};var xK=typeof window<"u"&&"$arcgis"in window&&typeof window.$arcgis=="object"&&"import"in window.$arcgis&&!("forceESM"in window.$arcgis);var b1=e=>e.variables?e.variables.find(r=>r.name==="$layer"&&r.type==="dictionary").properties??[]:[];$w();i5();var iN={"[ \\t\\n\\r]":"WHITESPACE","[*/]":"MULTIPLICATION (*) OR DIVISION (/)","[+\\-]":"ADDITION (+) OR SUBTRACTION (-)","[<-=]":"LESS THAN (<) OR LESS THAN OR EQUAL TO (<=)","[A-Za-z0-9_.\\\\x80-\uFFFF]":"ALPHANUMERIC, UNDERSCORE, DOT, OR EXTENDED ASCII","[A-Za-z0-9_]":"ALPHANUMERIC OR UNDERSCORE"};function Bw(e){return!(e instanceof Error&&(!("location"in e)||!("format"in e)))}function sN(e){return/^Expected "\S+"/u.test(e.message)}function oY(e){return e.message.match(/Expected (?<expectedToken>.*) but/u)?.groups?.expectedToken?.split(", ").map((t,r,n)=>(r===n.length-1&&t.startsWith("or ")&&(t=t.slice(3)),t=t.replace(/^"|"$/gu,""),t in iN&&(t=iN[t]),t))}function aN(e){if(e.message.match(/but end of input found/u))return"Invalid syntax: unexpected end of SQL Expression.";let r=e.message.match(/but (?<unexpectedToken>.*) found/u)?.groups?.unexpectedToken,n=oY(e)?.map(i=>`\u2022 ${i}`).join(`
165
+ `);return r?`Invalid syntax: unexpected token ${r}.${n?`
166
+ Expected one of the following:
167
+ ${n}`:""}`:"Invalid syntax."}function lN(e){if("expected"in e&&Array.isArray(e.expected)){let t=e,r=new Set;return t.expected.filter(i=>i.type==="literal").reduce((i,o)=>(r.has(o.text)||(r.add(o.text),n7.includes(o.text)?i.push({category:"keywords",text:o.text}):i7.includes(o.text)?i.push({category:"operators",text:o.text}):o7.includes(o.text)&&i.push({category:"functions",text:o.text})),i),[])}return[]}var o5=-2;function cN(e,t){if(!Object.values(cu).includes(t.type))return-1;switch(t.type){case"case-expression":return"else";case"when-clause":return e===t.operand?"operand":e===t.value?"value":-1;case"unary-expression":return"expr";case"binary-expression":return e===t.left?"left":e===t.right?"right":-1;case"function":return t.args.value.findIndex(r=>r===e);case"interval":return e===t.value?"value":e===t.qualifier?"qualifier":-1;case"interval-qualifier":return e===t.start?"start":e===t.end?"end":-1;case"expression-list":return"value";default:return-1}}var sY=["boolean","column-reference","current-time","data-type","date","expression-list","interval-period","interval-qualifier","null","number","parameter","string","time","timestamp"];function s5(e,t){let r=e;return sY.includes(r.type)&&t.length>1?(r=t.at(o5),t.pop(),s5(r,t)):r}var aY=["+","-","*","/","||"],lY=["cast","extract","substring","coalesce"],Gw=class{constructor(t,r){this.callStack=[];this._fields=[];this.markers=[];this._sdkFunctions=t.flatMap(n=>n.items),this._fields=r.profile?b1(r.profile):[]}async validateModel(t){try{let{parseTree:r}=await ff(t,new xc);this.traverse(r)}catch(r){this._handleParserFailure(r,t)}}traverse(t){this.callStack.push(t),this._validateNode(t),this._traverseChildren(t),this.callStack.pop()}_validateNode(t){if(t)switch(t.type){case"interval":{let r=t.value.value;if(!s7.test(r)||t.value.type!=="string"){let n=Yr("ExpectedNumericalLiteral"),i=this._getRange(t.value);$r(n,i,this.markers);return}return}case"interval-period":return;case"interval-qualifier":return;case"case-expression":if(t.clauses.length===0){if(t.else){let i=Yr("InvalidElseClause"),o={startLineNumber:t.elseLocation?.start.line??t.else.location.start.line,endLineNumber:t.elseLocation?.end.line??t.else.location.end.line,startColumn:t.elseLocation?.start.column??t.else.location.start.column,endColumn:t.elseLocation?.end.column??t.else.location.end.column};$r(i,o,this.markers);return}let r=Yr("EmptyCaseExpression"),n={startLineNumber:t.location.start.line,endLineNumber:t.location.end.line,startColumn:t.location.start.column,endColumn:t.location.end.column};$r(r,n,this.markers);return}return;case"parameter":return;case"column-reference":{if(Object.values(y1).map(n=>n.toLowerCase()).includes(t.column.toLowerCase()))return;if(!this._fields.find(n=>n.name===t.column)){let n=Yr("UnknownField",{field:t.column});$r(n,t.location,this.markers,!0)}return}case"expression-list":{let r=t.value,n=new Set,i=this.callStack.at(o5);if(i?.type==="function"&&lY.includes(i?.name?.toLowerCase()))return;if(r.forEach(o=>{let s=du(o,this._fields);if(s!=="column-reference"&&s!=="time-only"){if(s==="unknown_function"){let a=Yr("FunctionNotSupported",{function:o.name});$r(a,o.location,this.markers,!0);return}fu(s)&&(s="number"),n.has(s)||n.add(s)}}),n.size>1){let o=Array.from(n),s=Yr("IncompatibleListDataType",{types:K2(o,",")});$r(s,t.location,this.markers,!0)}return}case"binary-expression":{let r=this.callStack.length===1,n=t.left,i=t.right,o=du(n,this._fields),s=du(i,this._fields);if(r&&!aY.includes(t.operator)){let a=`Cannot perform binary operation '${t.operator}' at root node.`;$r(a,t.location,this.markers,!0);return}switch(t.operator){case"AND":case"OR":mi(n,"BOOLEAN",this.markers,this._fields),mi(i,"BOOLEAN",this.markers,this._fields);break;case"IS":case"ISNOT":mi(i,"NULL",this.markers,this._fields);break;case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":mi(i,"EXPRESSION-LIST",this.markers,this._fields);break;case"LIKE":case"NOT LIKE":mi(i,"STRING",this.markers,this._fields);break;case"<>":case"<":case">":case">=":case"<=":case"=":{if(!Q2.includes(s)){let u=Yr("TypeNotAssignable",{providedType:Sn(s),expectedType:K2(Q2,",")});$r(u,i.location,this.markers,!0)}let a=fu(o)&&fu(s);if(o!==s&&!a){let u=Yr("MismatchedTypes",{leftValue:eb(n),providedType:o,rightValue:eb(i),expectedType:s});$r(u,t.location,this.markers,!0)}break}case"*":case"-":case"+":case"/":mi(n,"NUMBER",this.markers,this._fields),mi(i,"NUMBER",this.markers,this._fields);break;case"||":mi(n,"STRING",this.markers,this._fields),mi(i,"STRING",this.markers,this._fields);break;default:{let a=Yr("UnsupportedOperator",{operator:Sn(t.operator)});$r(a,t.location,this.markers,!0)}}return}case"function":{let r=this._getFunction(t.name);if(!r){let n=Yr("FunctionNotSupported",{function:t.name});$r(n,t.location,this.markers,!0);return}if(r.type==="function"){let{min:n,max:i}=r.parametersInfo,{args:{value:o}}=t,s=o.length;if(s<n||s>i){let a=Yr("IncorrectArgumentLength",{minParams:n,maxParams:i,numArgs:s});$r(a,t.location,this.markers)}}}return;case"null":case"boolean":case"string":case"timestamp":case"date":case"time":case"number":case"current-time":return;case"data-type":return;case"unary-expression":console.warn("Unexpected unary expression found.");return;case"when-clause":return}}_handleParserFailure(t,r){if(!Bw(t))throw t;if(r.trim()===""){this.markers=[];return}let n=t,i=n.message;sN(n)&&(i=aN(n));let o={startLineNumber:n.location.start.line,endLineNumber:n.location.end.line,startColumn:n.location.start.column,endColumn:n.location.end.column};$r(i,o,this.markers)}_getRange(t){return{startLineNumber:t.location.start.line,endLineNumber:t.location.end.line,startColumn:t.location.start.column,endColumn:t.location.end.column}}_getFunction(t){return this._sdkFunctions.find(r=>r.name.toLowerCase()===t.toLowerCase())}_traverseChildren(t){if(t)switch(t.type){case"case-expression":{let r=er[t.type];t.format==="simple"?r.forEach(n=>{let i=t[n];Array.isArray(i)?i.forEach(o=>{this.traverse(o)}):this.traverse(i)}):t.format==="searched"&&r.forEach(n=>{if(n==="operand")return;let i=t[n];Array.isArray(i)?i.forEach(o=>{this.traverse(o)}):this.traverse(i)})}break;case"when-clause":er[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"expression-list":er[t.type].forEach(n=>{let i=t[n];Array.isArray(i)?i.forEach(o=>{this.traverse(o)}):this.traverse(i)});break;case"unary-expression":er[t.type].forEach(n=>{let i=t[n];Array.isArray(i)&&this.traverse(i)});break;case"binary-expression":er[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"function":er[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"interval":er[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"interval-qualifier":er[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;default:break}}};$w();i5();var Nn={identifiers:"a",profileVariables:"aa",constants:"ab",literals:"ab",functions:"ac",operators:"ad",snippets:"b",keywords:"c"};function cY(e){switch(e){case"functions":return Tr.Function;case"keywords":return Tr.Keyword;case"operators":return Tr.Operator}}var qw=class{constructor(t,r){this._fields=[];this._sdkFunctions=t,this._fields=r}async getCompletions(t,r,n){let i={range:t,modelContent:r,position:n,lowestNode:void 0,subTree:[],completionItems:[]},o=new xc;try{let{parseTree:s}=await ff(r,o);this.traverse(s,i),this._getCompletions(i)}catch(s){this.handleParserFailure(s,t,i)}return i.completionItems}traverse(t,r){let{position:n,subTree:i}=r;this._isPositionWithinNode(t,n)&&(i.push(t),r.lowestNode=t,this._traverseChildren(t,r))}_getCompletions(t){let{range:r,lowestNode:n,subTree:i}=t;if(!n)return[];let o=s5(n,i);if(!o)return[];let s=cN(n,o);switch(o.type){case"case-expression":o.else||t.completionItems.push({label:"ELSE",kind:Tr.Keyword,insertText:"ELSE",sortText:"a",range:r});break;case"column-reference":this._suggestFields(t),this._suggestFunctions(t),this._suggestExpressions(t);break;case"function":this._getCompletionsFromFunction(o,s,t);break;case"interval":if(s==="qualifier"){this._suggestDatePeriods(t);break}else if(s==="value")break;break;case"binary-expression":this._suggestFields(t),this._suggestFunctions(t);break;case"string":case"number":case"boolean":case"when-clause":case"date":case"time":case"timestamp":case"current-time":case"null":case"expression-list":case"interval-period":case"interval-qualifier":case"data-type":case"parameter":case"unary-expression":break}return t.completionItems}handleParserFailure(t,r,n){Bw(t)&&lN(t).forEach(o=>{n.completionItems.push({label:o.text,kind:cY(o.category),insertText:o.text,sortText:Nn[o.category],range:r})})}_getCompletionsFromFunction(t,r,n){let{range:i}=n;switch(t.name.toUpperCase()){case"CAST":r===0?this._suggestFields(n):r===1?this._suggestDataTypes(n):t.args.value.length&&r===-1?n.completionItems.push({label:"AS",kind:Tr.Keyword,insertText:"AS",sortText:Nn.keywords,range:i}):this._suggestFields(n);break;case"EXTRACT":r===0?this._suggestDatePeriods(n):r===1?(this._suggestFields(n),this._suggestDateLiterals(n)):t.args.value.length&&r===-1?n.completionItems.push({label:"FROM",kind:Tr.Keyword,insertText:"FROM",sortText:Nn.keywords,range:i}):this._suggestDatePeriods(n);break;case"TRIM":r===0?this._suggestTrimParts(n):r===1?this._suggestTrimParts(n):r===2?this._suggestFields(n):t.args.value.length&&r===-1?n.completionItems.push({label:"FROM",kind:Tr.Keyword,insertText:"FROM",sortText:Nn.keywords,range:i}):this._suggestTrimParts(n);break;case"COALESCE":this._suggestFields(n),this._suggestNull(n);break;case"POSITION":r===1&&this._suggestFields(n);break;case"ABS":case"ACOS":case"ASIN":case"ATAN":case"CEILING":case"COS":case"FLOOR":case"LOG":case"LOG10":case"POWER":case"ROUND":case"SIGN":case"SIN":case"TAN":case"CHAR_LENGTH":case"CONCAT":case"LOWER":case"UPPER":this._suggestFields(n);break;case"CURRENT_DATE":case"CURRENT_TIME":case"CURRENT_TIMESTAMP":break}}_isPositionWithinNode(t,r){if(!t)return!1;let{start:n,end:i}=t.location;return!(r.lineNumber<n.line||r.lineNumber>i.line||r.lineNumber===n.line&&r.column<n.column||r.lineNumber===i.line&&r.column>i.column)}_suggestFields(t){let{range:r}=t;this._fields.forEach(n=>{t.completionItems.push({label:n.name,kind:Tr.Field,insertText:n.name,documentation:n.completion?.documentation,detail:n.completion?.detail,sortText:Nn.profileVariables,range:r})})}_suggestFunctions(t){let{range:r}=t;this._sdkFunctions.functionDefinitions.forEach(n=>{let{overloads:i}=n;i.forEach(o=>{t.completionItems.push({label:o.completion.label,kind:Tr.Function,insertText:o.completion.insertText||o.completion.label,insertTextRules:X2.InsertAsSnippet,documentation:o.completion.documentation,detail:o.completion.detail,sortText:Nn.functions,range:r})})})}_suggestDataTypes(t){let{range:r}=t;g1.forEach(n=>{t.completionItems.push({label:n,kind:Tr.Keyword,insertText:n,sortText:Nn.keywords,range:r})})}_suggestDatePeriods(t){let{range:r}=t;uu.forEach(n=>{t.completionItems.push({label:n,kind:Tr.Keyword,insertText:n,sortText:Nn.keywords,range:r})})}_suggestTrimParts(t){let{range:r}=t;w1.forEach(n=>{t.completionItems.push({label:n,kind:Tr.Keyword,insertText:n,sortText:Nn.keywords,range:r})})}_suggestDateLiterals(t){let{range:r}=t;r7.forEach(n=>{t.completionItems.push({label:n,kind:Tr.Reference,insertText:n,sortText:Nn.literals,range:r})})}_suggestExpressions(t){let{range:r}=t;t.completionItems.push({label:"CASE",kind:Tr.Keyword,insertText:"CASE\n WHEN ${1:condition_1_} THEN ${2:result_1_} \n ELSE ${3:result_2_}\nEND${0}",insertTextRules:X2.InsertAsSnippet,sortText:Nn.keywords,range:r})}_suggestNull(t){let{range:r}=t;t.completionItems.push({label:"NULL",kind:Tr.Keyword,insertText:"NULL",sortText:Nn.keywords,range:r})}_traverseChildren(t,r){if(t)switch(t.type){case"case-expression":{let n=er[t.type];t.format==="simple"?n.forEach(i=>{let o=t[i];Array.isArray(o)?o.forEach(s=>{this.traverse(s,r)}):this.traverse(o,r)}):t.format==="searched"&&n.forEach(i=>{if(i==="operand")return;let o=t[i];Array.isArray(o)?o.forEach(s=>{this.traverse(s,r)}):this.traverse(o,r)})}break;case"when-clause":er[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;case"expression-list":er[t.type].forEach(i=>{t[i].forEach(s=>{this.traverse(s,r)})});break;case"unary-expression":er[t.type].forEach(i=>{let o=t[i];Array.isArray(o)&&this.traverse(o,r)});break;case"binary-expression":er[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;case"function":er[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;case"interval":er[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;case"interval-qualifier":er[t.type].forEach(i=>{let o=t[i];this.traverse(o,r)});break;default:break}}};var uY="${assetsPath}/api/sql-expression-api.t9n.${locale}.json";globalThis.onmessage=()=>{D2((e,t)=>new a5(e,t))};var a5=class{constructor(t,{languageId:r,languageOptions:n}){this._ctx=t;this._languageId=r,this._apiService=new e7({assetsPath:n?.assetsPath??"",languageId:r,apiPathTemplate:uY})}async doValidation(t,r){let n=this._getTextDocument(t);if(!n)return await Promise.resolve([]);let i=await this.getApiLibrary(r),o=new Gw(i,r);return await o.validateModel(n.getText()),await Promise.resolve(o.markers)}async doComplete(t,r,n,i){let o=this._getTextDocument(t);if(!o)return await Promise.resolve({suggestions:[]});let s=o.getText(),a=await this.getApiDatabase(i),u=i.profile?b1(i.profile):[],p=await new qw(a,u).getCompletions(r,s,n);return await Promise.resolve({suggestions:p})}async getApiLibrary(t){return await this._apiService.getApiLibrary(t)}async getApiDatabase(t){return await this._apiService.getApiDatabase(t)}_getTextDocument(t){let r=this._ctx.getMirrorModels();for(let n of r)if(n.uri.toString()===t)return u1.create(t,this._languageId,n.version,n.getValue());return null}};})();
168
+ /*! Bundled license information:
169
+
170
+ @esri/arcgis-html-sanitizer/dist/esm/index.js:
171
+ (*!
172
+ * @esri/arcgis-html-sanitizer - v4.0.3 - Wed Jul 03 2024 17:50:35 GMT-0400 (Eastern Daylight Time)
173
+ * Copyright (c) 2024 - Environmental Systems Research Institute, Inc.
174
+ * Apache-2.0
175
+ *
176
+ * js-xss
177
+ * Copyright (c) 2012-2018 Zongmin Lei(雷宗民) <leizongmin@gmail.com>
178
+ * http://ucdok.com
179
+ * MIT License, see https://github.com/leizongmin/js-xss/blob/master/LICENSE for details
180
+ *)
181
+ (*! *****************************************************************************
182
+ Copyright (c) Microsoft Corporation.
183
+
184
+ Permission to use, copy, modify, and/or distribute this software for any
185
+ purpose with or without fee is hereby granted.
186
+
187
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
188
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
189
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
190
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
191
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
192
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
193
+ PERFORMANCE OF THIS SOFTWARE.
194
+ ***************************************************************************** *)
195
+
196
+ @esri/calcite-components/dist/components/resources.js:
197
+ (*!
198
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
199
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
200
+ * v2.11.1
201
+ *)
202
+
203
+ @esri/calcite-components/dist/components/config.js:
204
+ (*!
205
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
206
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
207
+ * v2.11.1
208
+ *)
209
+
210
+ @stencil/core/internal/client/shadow-css.js:
211
+ (**
212
+ * @license
213
+ * Copyright Google Inc. All Rights Reserved.
214
+ *
215
+ * Use of this source code is governed by an MIT-style license that can be
216
+ * found in the LICENSE file at https://angular.io/license
217
+ *
218
+ * This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
219
+ * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
220
+ * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
221
+ *)
222
+
223
+ @stencil/core/internal/client/index.js:
224
+ (*!__STENCIL_STATIC_IMPORT_SWITCH__*)
225
+
226
+ @esri/calcite-components/dist/components/browser.js:
227
+ (*!
228
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
229
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
230
+ * v2.11.1
231
+ *)
232
+
233
+ @esri/calcite-components/dist/components/index.js:
234
+ (*!
235
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
236
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
237
+ * v2.11.1
238
+ *)
239
+
240
+ @esri/calcite-components/dist/components/guid.js:
241
+ (*!
242
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
243
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
244
+ * v2.11.1
245
+ *)
246
+
247
+ @esri/calcite-components/dist/components/dom.js:
248
+ (*!
249
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
250
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
251
+ * v2.11.1
252
+ *)
253
+ (*!
254
+ * tabbable 6.2.0
255
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
256
+ *)
257
+
258
+ @esri/calcite-components/dist/components/form.js:
259
+ (*!
260
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
261
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
262
+ * v2.11.1
263
+ *)
264
+
265
+ @esri/calcite-components/dist/components/interactive.js:
266
+ (*!
267
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
268
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
269
+ * v2.11.1
270
+ *)
271
+
272
+ @esri/calcite-components/dist/components/component.js:
273
+ (*!
274
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
275
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
276
+ * v2.11.1
277
+ *)
278
+
279
+ @esri/calcite-components/dist/components/label.js:
280
+ (*!
281
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
282
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
283
+ * v2.11.1
284
+ *)
285
+
286
+ @esri/calcite-components/dist/components/loadable.js:
287
+ (*!
288
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
289
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
290
+ * v2.11.1
291
+ *)
292
+
293
+ @esri/calcite-components/dist/components/key.js:
294
+ (*!
295
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
296
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
297
+ * v2.11.1
298
+ *)
299
+
300
+ @esri/calcite-components/dist/components/observers.js:
301
+ (*!
302
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
303
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
304
+ * v2.11.1
305
+ *)
306
+
307
+ @esri/calcite-components/dist/components/locale.js:
308
+ (*!
309
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
310
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
311
+ * v2.11.1
312
+ *)
313
+
314
+ @esri/calcite-components/dist/components/t9n.js:
315
+ (*!
316
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
317
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
318
+ * v2.11.1
319
+ *)
320
+
321
+ @esri/calcite-components/dist/components/icon.js:
322
+ (*!
323
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
324
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
325
+ * v2.11.1
326
+ *)
327
+
328
+ @esri/calcite-components/dist/components/loader.js:
329
+ (*!
330
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
331
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
332
+ * v2.11.1
333
+ *)
334
+
335
+ @esri/calcite-components/dist/components/button.js:
336
+ (*!
337
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
338
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
339
+ * v2.11.1
340
+ *)
341
+
342
+ @esri/calcite-components/dist/components/calcite-button.js:
343
+ (*!
344
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
345
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
346
+ * v2.11.1
347
+ *)
348
+
349
+ @esri/calcite-components/dist/components/Validation.js:
350
+ (*!
351
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
352
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
353
+ * v2.11.1
354
+ *)
355
+
356
+ @esri/calcite-components/dist/components/input.js:
357
+ (*!
358
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
359
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
360
+ * v2.11.1
361
+ *)
362
+
363
+ @esri/calcite-components/dist/components/input-message.js:
364
+ (*!
365
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
366
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
367
+ * v2.11.1
368
+ *)
369
+
370
+ @esri/calcite-components/dist/components/progress.js:
371
+ (*!
372
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
373
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
374
+ * v2.11.1
375
+ *)
376
+
377
+ @esri/calcite-components/dist/components/input2.js:
378
+ (*!
379
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
380
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
381
+ * v2.11.1
382
+ *)
383
+
384
+ @esri/calcite-components/dist/components/calcite-input.js:
385
+ (*!
386
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
387
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
388
+ * v2.11.1
389
+ *)
390
+
391
+ @esri/calcite-components/dist/components/label2.js:
392
+ (*!
393
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
394
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
395
+ * v2.11.1
396
+ *)
397
+
398
+ @esri/calcite-components/dist/components/calcite-label.js:
399
+ (*!
400
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
401
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
402
+ * v2.11.1
403
+ *)
404
+
405
+ @esri/calcite-components/dist/components/conditionalSlot.js:
406
+ (*!
407
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
408
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
409
+ * v2.11.1
410
+ *)
411
+
412
+ @esri/calcite-components/dist/components/focusTrapComponent.js:
413
+ (*!
414
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
415
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
416
+ * v2.11.1
417
+ *)
418
+ (*!
419
+ * focus-trap 7.5.4
420
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
421
+ *)
422
+
423
+ @esri/calcite-components/dist/components/openCloseComponent.js:
424
+ (*!
425
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
426
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
427
+ * v2.11.1
428
+ *)
429
+
430
+ @esri/calcite-components/dist/components/logger.js:
431
+ (*!
432
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
433
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
434
+ * v2.11.1
435
+ *)
436
+
437
+ @esri/calcite-components/dist/components/scrim.js:
438
+ (*!
439
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
440
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
441
+ * v2.11.1
442
+ *)
443
+
444
+ @esri/calcite-components/dist/components/calcite-modal.js:
445
+ (*!
446
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
447
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
448
+ * v2.11.1
449
+ *)
450
+
451
+ @esri/calcite-components/dist/components/resources2.js:
452
+ (*!
453
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
454
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
455
+ * v2.11.1
456
+ *)
457
+
458
+ @esri/calcite-components/dist/components/calcite-notice.js:
459
+ (*!
460
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
461
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
462
+ * v2.11.1
463
+ *)
464
+ */