@microsoft/fast-element 3.0.0-rc.1 → 3.0.0-rc.2

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 (286) hide show
  1. package/CHANGELOG.md +51 -1
  2. package/README.md +50 -14
  3. package/dist/context/context.api.json +13 -13
  4. package/dist/declarative/declarative.api.json +654 -15
  5. package/dist/di/di.api.json +15 -15
  6. package/dist/dts/__test__/helpers.d.ts +6 -0
  7. package/dist/dts/__test__/setup-node.d.ts +0 -0
  8. package/dist/dts/binding/binding.d.ts +15 -5
  9. package/dist/dts/binding/one-time.d.ts +1 -1
  10. package/dist/dts/binding/one-way.d.ts +1 -1
  11. package/dist/dts/binding/signal.d.ts +1 -1
  12. package/dist/dts/binding/two-way.d.ts +1 -1
  13. package/dist/dts/components/attributes.d.ts +1 -1
  14. package/dist/dts/components/enable-hydration.d.ts +22 -2
  15. package/dist/dts/components/fast-definitions.d.ts +7 -4
  16. package/dist/dts/components/fast-element.d.ts +42 -12
  17. package/dist/dts/components/hydration-tracker.d.ts +47 -4
  18. package/dist/dts/components/hydration.d.ts +5 -0
  19. package/dist/dts/context.d.ts +7 -7
  20. package/dist/dts/declarative/debug.d.ts +2 -3
  21. package/dist/dts/declarative/index.d.ts +3 -2
  22. package/dist/dts/declarative/interfaces.d.ts +1 -2
  23. package/dist/dts/declarative/template.d.ts +2 -1
  24. package/dist/dts/declarative/utilities.d.ts +50 -4
  25. package/dist/dts/di/di.d.ts +6 -6
  26. package/dist/dts/dom-policy.d.ts +22 -4
  27. package/dist/dts/dom.d.ts +4 -16
  28. package/dist/dts/hydration/diagnostics.d.ts +93 -0
  29. package/dist/dts/hydration/hydration-debugger.d.ts +35 -0
  30. package/dist/dts/hydration/messages.d.ts +62 -0
  31. package/dist/dts/hydration/target-builder.d.ts +26 -1
  32. package/dist/dts/hydration.d.ts +7 -3
  33. package/dist/dts/index.d.ts +7 -3
  34. package/dist/dts/interfaces.d.ts +1 -0
  35. package/dist/dts/observation/observable.d.ts +3 -3
  36. package/dist/dts/platform.d.ts +20 -4
  37. package/dist/dts/registry.d.ts +1 -0
  38. package/dist/dts/templating/children.d.ts +1 -1
  39. package/dist/dts/templating/compiler.d.ts +1 -1
  40. package/dist/dts/templating/html-binding-directive.d.ts +6 -2
  41. package/dist/dts/templating/html-directive.d.ts +2 -1
  42. package/dist/dts/templating/hydration-view.d.ts +24 -3
  43. package/dist/dts/templating/ref.d.ts +1 -1
  44. package/dist/dts/templating/render.d.ts +2 -2
  45. package/dist/dts/templating/repeat.d.ts +1 -1
  46. package/dist/dts/templating/slotted.d.ts +1 -1
  47. package/dist/dts/templating/template.d.ts +5 -5
  48. package/dist/dts/templating/when.d.ts +1 -1
  49. package/dist/dts/testing/fakes.d.ts +4 -4
  50. package/dist/esm/__test__/helpers.js +22 -0
  51. package/dist/esm/__test__/setup-node.js +18 -0
  52. package/dist/esm/binding/two-way.js +1 -2
  53. package/dist/esm/components/attributes.js +12 -8
  54. package/dist/esm/components/element-controller.js +11 -6
  55. package/dist/esm/components/enable-hydration.js +27 -3
  56. package/dist/esm/components/fast-definitions.js +19 -18
  57. package/dist/esm/components/hydration-tracker.js +34 -5
  58. package/dist/esm/components/hydration.js +85 -6
  59. package/dist/esm/debug.js +1 -0
  60. package/dist/esm/declarative/attribute-map.js +2 -1
  61. package/dist/esm/declarative/debug.js +0 -1
  62. package/dist/esm/declarative/index.js +1 -0
  63. package/dist/esm/declarative/interfaces.js +0 -1
  64. package/dist/esm/declarative/observer-map-utilities.js +58 -55
  65. package/dist/esm/declarative/template-bridge.js +4 -14
  66. package/dist/esm/declarative/template.js +4 -3
  67. package/dist/esm/declarative/utilities.js +236 -1
  68. package/dist/esm/di/di.js +2 -1
  69. package/dist/esm/dom-policy.js +33 -4
  70. package/dist/esm/hydration/diagnostics.js +50 -0
  71. package/dist/esm/hydration/hydration-debugger.js +112 -0
  72. package/dist/esm/hydration/messages.js +84 -0
  73. package/dist/esm/hydration/target-builder.js +65 -19
  74. package/dist/esm/hydration.js +3 -1
  75. package/dist/esm/index.js +6 -2
  76. package/dist/esm/interfaces.js +1 -0
  77. package/dist/esm/metadata.js +2 -8
  78. package/dist/esm/observation/notifier.js +2 -4
  79. package/dist/esm/registry.js +1 -0
  80. package/dist/esm/templating/html-binding-directive.js +1 -1
  81. package/dist/esm/templating/hydration-view.js +20 -27
  82. package/dist/esm/templating/render.js +39 -18
  83. package/dist/esm/templating/repeat.js +51 -17
  84. package/dist/esm/templating/view.js +1 -1
  85. package/dist/esm/testing/fixture.js +2 -2
  86. package/dist/esm/testing/timeout.js +2 -2
  87. package/dist/fast-element.api.json +1329 -99
  88. package/dist/fast-element.d.ts +147 -66
  89. package/dist/fast-element.debug.js +392 -99
  90. package/dist/fast-element.debug.min.js +2 -2
  91. package/dist/fast-element.js +392 -99
  92. package/dist/fast-element.min.js +2 -2
  93. package/dist/fast-element.untrimmed.d.ts +133 -70
  94. package/dist/hydration/hydration.api.json +1280 -57
  95. package/dist/styles/styles.api.json +1 -1
  96. package/package.json +21 -9
  97. package/ARCHITECTURE_FASTELEMENT.md +0 -63
  98. package/ARCHITECTURE_HTML_TAGGED_TEMPLATE_LITERAL.md +0 -36
  99. package/ARCHITECTURE_INTRO.md +0 -10
  100. package/ARCHITECTURE_OVERVIEW.md +0 -52
  101. package/ARCHITECTURE_UPDATES.md +0 -11
  102. package/CHANGELOG.json +0 -2275
  103. package/DECLARATIVE_DESIGN.md +0 -806
  104. package/DECLARATIVE_HTML.md +0 -470
  105. package/DECLARATIVE_MIGRATION.md +0 -215
  106. package/DECLARATIVE_RENDERING.md +0 -530
  107. package/DECLARATIVE_RENDERING_LIFECYCLE.md +0 -288
  108. package/DECLARATIVE_SCHEMA_OBSERVER_MAP.md +0 -489
  109. package/DESIGN.md +0 -615
  110. package/MIGRATION.md +0 -387
  111. package/SIZES.md +0 -25
  112. package/api-extractor.arrays.json +0 -15
  113. package/api-extractor.context.json +0 -15
  114. package/api-extractor.declarative.json +0 -15
  115. package/api-extractor.di.json +0 -15
  116. package/api-extractor.hydration.json +0 -15
  117. package/api-extractor.styles.json +0 -15
  118. package/biome.json +0 -4
  119. package/docs/ACKNOWLEDGEMENTS.md +0 -12
  120. package/docs/api-report.api.md +0 -1299
  121. package/docs/arrays/api-report.api.md +0 -114
  122. package/docs/context/api-report.api.md +0 -69
  123. package/docs/declarative/api-report.api.md +0 -397
  124. package/docs/di/api-report.api.md +0 -315
  125. package/docs/fast-element-2-changes.md +0 -15
  126. package/docs/hydration/api-report.api.md +0 -285
  127. package/docs/styles/api-report.api.md +0 -135
  128. package/playwright.config.ts +0 -26
  129. package/playwright.declarative.config.ts +0 -26
  130. package/playwright.declarative.webui.config.ts +0 -20
  131. package/scripts/declarative/build-fixtures-with-webui.js +0 -135
  132. package/scripts/declarative/build-fixtures.js +0 -49
  133. package/scripts/declarative/build-fixtures.utilities.js +0 -101
  134. package/scripts/measure-sizes.js +0 -219
  135. package/scripts/run-api-extractor.js +0 -70
  136. package/test/declarative/fixtures/README.md +0 -72
  137. package/test/declarative/fixtures/WRITING_FIXTURES.md +0 -330
  138. package/test/declarative/fixtures/bindings/README.md +0 -12
  139. package/test/declarative/fixtures/bindings/attribute/entry.html +0 -13
  140. package/test/declarative/fixtures/bindings/attribute/fast-build.config.json +0 -6
  141. package/test/declarative/fixtures/bindings/attribute/index.html +0 -25
  142. package/test/declarative/fixtures/bindings/attribute/main.ts +0 -41
  143. package/test/declarative/fixtures/bindings/attribute/state.json +0 -8
  144. package/test/declarative/fixtures/bindings/attribute/templates.html +0 -11
  145. package/test/declarative/fixtures/bindings/content/entry.html +0 -12
  146. package/test/declarative/fixtures/bindings/content/fast-build.config.json +0 -6
  147. package/test/declarative/fixtures/bindings/content/index.html +0 -19
  148. package/test/declarative/fixtures/bindings/content/main.ts +0 -27
  149. package/test/declarative/fixtures/bindings/content/state.json +0 -4
  150. package/test/declarative/fixtures/bindings/content/templates.html +0 -6
  151. package/test/declarative/fixtures/bindings/dot-syntax/entry.html +0 -11
  152. package/test/declarative/fixtures/bindings/dot-syntax/fast-build.config.json +0 -6
  153. package/test/declarative/fixtures/bindings/dot-syntax/index.html +0 -47
  154. package/test/declarative/fixtures/bindings/dot-syntax/main.ts +0 -59
  155. package/test/declarative/fixtures/bindings/dot-syntax/state.json +0 -16
  156. package/test/declarative/fixtures/bindings/dot-syntax/templates.html +0 -17
  157. package/test/declarative/fixtures/bindings/event/entry.html +0 -11
  158. package/test/declarative/fixtures/bindings/event/fast-build.config.json +0 -6
  159. package/test/declarative/fixtures/bindings/event/index.html +0 -43
  160. package/test/declarative/fixtures/bindings/event/main.ts +0 -43
  161. package/test/declarative/fixtures/bindings/event/state.json +0 -3
  162. package/test/declarative/fixtures/bindings/event/templates.html +0 -18
  163. package/test/declarative/fixtures/bindings/host/entry.html +0 -40
  164. package/test/declarative/fixtures/bindings/host/fast-build.config.json +0 -6
  165. package/test/declarative/fixtures/bindings/host/index.html +0 -96
  166. package/test/declarative/fixtures/bindings/host/main.ts +0 -222
  167. package/test/declarative/fixtures/bindings/host/state.json +0 -9
  168. package/test/declarative/fixtures/bindings/host/templates.html +0 -55
  169. package/test/declarative/fixtures/directives/README.md +0 -12
  170. package/test/declarative/fixtures/directives/children/entry.html +0 -11
  171. package/test/declarative/fixtures/directives/children/fast-build.config.json +0 -6
  172. package/test/declarative/fixtures/directives/children/index.html +0 -15
  173. package/test/declarative/fixtures/directives/children/main.ts +0 -22
  174. package/test/declarative/fixtures/directives/children/state.json +0 -3
  175. package/test/declarative/fixtures/directives/children/templates.html +0 -3
  176. package/test/declarative/fixtures/directives/ref/entry.html +0 -11
  177. package/test/declarative/fixtures/directives/ref/fast-build.config.json +0 -6
  178. package/test/declarative/fixtures/directives/ref/index.html +0 -15
  179. package/test/declarative/fixtures/directives/ref/main.ts +0 -17
  180. package/test/declarative/fixtures/directives/ref/state.json +0 -1
  181. package/test/declarative/fixtures/directives/ref/templates.html +0 -3
  182. package/test/declarative/fixtures/directives/repeat/entry.html +0 -21
  183. package/test/declarative/fixtures/directives/repeat/fast-build.config.json +0 -6
  184. package/test/declarative/fixtures/directives/repeat/index.html +0 -133
  185. package/test/declarative/fixtures/directives/repeat/main.ts +0 -110
  186. package/test/declarative/fixtures/directives/repeat/sprites.svg +0 -8
  187. package/test/declarative/fixtures/directives/repeat/state.json +0 -10
  188. package/test/declarative/fixtures/directives/repeat/templates.html +0 -75
  189. package/test/declarative/fixtures/directives/slotted/entry.html +0 -17
  190. package/test/declarative/fixtures/directives/slotted/fast-build.config.json +0 -6
  191. package/test/declarative/fixtures/directives/slotted/index.html +0 -27
  192. package/test/declarative/fixtures/directives/slotted/main.ts +0 -29
  193. package/test/declarative/fixtures/directives/slotted/state.json +0 -1
  194. package/test/declarative/fixtures/directives/slotted/templates.html +0 -7
  195. package/test/declarative/fixtures/directives/when/entry.html +0 -51
  196. package/test/declarative/fixtures/directives/when/fast-build.config.json +0 -6
  197. package/test/declarative/fixtures/directives/when/index.html +0 -136
  198. package/test/declarative/fixtures/directives/when/main.ts +0 -172
  199. package/test/declarative/fixtures/directives/when/state.json +0 -12
  200. package/test/declarative/fixtures/directives/when/templates.html +0 -75
  201. package/test/declarative/fixtures/ecosystem/README.md +0 -11
  202. package/test/declarative/fixtures/ecosystem/declarative-no-hydration/entry.html +0 -12
  203. package/test/declarative/fixtures/ecosystem/declarative-no-hydration/fast-build.config.json +0 -6
  204. package/test/declarative/fixtures/ecosystem/declarative-no-hydration/index.html +0 -20
  205. package/test/declarative/fixtures/ecosystem/declarative-no-hydration/main.ts +0 -68
  206. package/test/declarative/fixtures/ecosystem/declarative-no-hydration/state.json +0 -4
  207. package/test/declarative/fixtures/ecosystem/declarative-no-hydration/templates.html +0 -7
  208. package/test/declarative/fixtures/ecosystem/errors/entry.html +0 -12
  209. package/test/declarative/fixtures/ecosystem/errors/fast-build.config.json +0 -6
  210. package/test/declarative/fixtures/ecosystem/errors/index.html +0 -20
  211. package/test/declarative/fixtures/ecosystem/errors/main.ts +0 -17
  212. package/test/declarative/fixtures/ecosystem/errors/state.json +0 -1
  213. package/test/declarative/fixtures/ecosystem/errors/templates.html +0 -7
  214. package/test/declarative/fixtures/ecosystem/lifecycle-callbacks/entry.html +0 -17
  215. package/test/declarative/fixtures/ecosystem/lifecycle-callbacks/fast-build.config.json +0 -6
  216. package/test/declarative/fixtures/ecosystem/lifecycle-callbacks/index.html +0 -56
  217. package/test/declarative/fixtures/ecosystem/lifecycle-callbacks/main.ts +0 -134
  218. package/test/declarative/fixtures/ecosystem/lifecycle-callbacks/state.json +0 -12
  219. package/test/declarative/fixtures/ecosystem/lifecycle-callbacks/templates.html +0 -34
  220. package/test/declarative/fixtures/ecosystem/performance-metrics/entry.html +0 -25
  221. package/test/declarative/fixtures/ecosystem/performance-metrics/fast-build.config.json +0 -6
  222. package/test/declarative/fixtures/ecosystem/performance-metrics/fast-card.css +0 -10
  223. package/test/declarative/fixtures/ecosystem/performance-metrics/index.html +0 -181
  224. package/test/declarative/fixtures/ecosystem/performance-metrics/main.ts +0 -58
  225. package/test/declarative/fixtures/ecosystem/performance-metrics/state.json +0 -6
  226. package/test/declarative/fixtures/ecosystem/performance-metrics/templates.html +0 -15
  227. package/test/declarative/fixtures/extensions/README.md +0 -15
  228. package/test/declarative/fixtures/extensions/attribute-map/entry.html +0 -14
  229. package/test/declarative/fixtures/extensions/attribute-map/fast-build.config.json +0 -6
  230. package/test/declarative/fixtures/extensions/attribute-map/index.html +0 -31
  231. package/test/declarative/fixtures/extensions/attribute-map/main.ts +0 -40
  232. package/test/declarative/fixtures/extensions/attribute-map/state.json +0 -4
  233. package/test/declarative/fixtures/extensions/attribute-map/templates.html +0 -14
  234. package/test/declarative/fixtures/extensions/attribute-map-naming-strategy/entry.html +0 -12
  235. package/test/declarative/fixtures/extensions/attribute-map-naming-strategy/fast-build.config.json +0 -7
  236. package/test/declarative/fixtures/extensions/attribute-map-naming-strategy/index.html +0 -25
  237. package/test/declarative/fixtures/extensions/attribute-map-naming-strategy/main.ts +0 -31
  238. package/test/declarative/fixtures/extensions/attribute-map-naming-strategy/state.json +0 -5
  239. package/test/declarative/fixtures/extensions/attribute-map-naming-strategy/templates.html +0 -11
  240. package/test/declarative/fixtures/extensions/attribute-map-naming-strategy-camel-case/entry.html +0 -13
  241. package/test/declarative/fixtures/extensions/attribute-map-naming-strategy-camel-case/fast-build.config.json +0 -7
  242. package/test/declarative/fixtures/extensions/attribute-map-naming-strategy-camel-case/index.html +0 -23
  243. package/test/declarative/fixtures/extensions/attribute-map-naming-strategy-camel-case/main.ts +0 -37
  244. package/test/declarative/fixtures/extensions/attribute-map-naming-strategy-camel-case/state.json +0 -1
  245. package/test/declarative/fixtures/extensions/attribute-map-naming-strategy-camel-case/templates.html +0 -9
  246. package/test/declarative/fixtures/extensions/observer-map/entry.html +0 -15
  247. package/test/declarative/fixtures/extensions/observer-map/fast-build.config.json +0 -6
  248. package/test/declarative/fixtures/extensions/observer-map/index.html +0 -442
  249. package/test/declarative/fixtures/extensions/observer-map/main.ts +0 -482
  250. package/test/declarative/fixtures/extensions/observer-map/state.json +0 -158
  251. package/test/declarative/fixtures/extensions/observer-map/templates.html +0 -172
  252. package/test/declarative/fixtures/extensions/observer-map-config-object/entry.html +0 -16
  253. package/test/declarative/fixtures/extensions/observer-map-config-object/fast-build.config.json +0 -6
  254. package/test/declarative/fixtures/extensions/observer-map-config-object/index.html +0 -27
  255. package/test/declarative/fixtures/extensions/observer-map-config-object/main.ts +0 -53
  256. package/test/declarative/fixtures/extensions/observer-map-config-object/state.json +0 -9
  257. package/test/declarative/fixtures/extensions/observer-map-config-object/templates.html +0 -12
  258. package/test/declarative/fixtures/extensions/observer-map-deep-merge/README.md +0 -98
  259. package/test/declarative/fixtures/extensions/observer-map-deep-merge/entry.html +0 -156
  260. package/test/declarative/fixtures/extensions/observer-map-deep-merge/fast-build.config.json +0 -6
  261. package/test/declarative/fixtures/extensions/observer-map-deep-merge/index.html +0 -376
  262. package/test/declarative/fixtures/extensions/observer-map-deep-merge/main.ts +0 -366
  263. package/test/declarative/fixtures/extensions/observer-map-deep-merge/state.json +0 -69
  264. package/test/declarative/fixtures/extensions/observer-map-deep-merge/templates.html +0 -91
  265. package/test/declarative/fixtures/extensions/observer-map-properties/entry.html +0 -14
  266. package/test/declarative/fixtures/extensions/observer-map-properties/fast-build.config.json +0 -6
  267. package/test/declarative/fixtures/extensions/observer-map-properties/index.html +0 -110
  268. package/test/declarative/fixtures/extensions/observer-map-properties/main.ts +0 -175
  269. package/test/declarative/fixtures/extensions/observer-map-properties/state.json +0 -29
  270. package/test/declarative/fixtures/extensions/observer-map-properties/templates.html +0 -55
  271. package/test/declarative/fixtures/scenarios/README.md +0 -7
  272. package/test/declarative/fixtures/scenarios/nested-elements/entry.html +0 -16
  273. package/test/declarative/fixtures/scenarios/nested-elements/fast-build.config.json +0 -6
  274. package/test/declarative/fixtures/scenarios/nested-elements/index.html +0 -126
  275. package/test/declarative/fixtures/scenarios/nested-elements/main.ts +0 -214
  276. package/test/declarative/fixtures/scenarios/nested-elements/state.json +0 -10
  277. package/test/declarative/fixtures/scenarios/nested-elements/templates.html +0 -54
  278. package/test/declarative/index.html +0 -12
  279. package/test/declarative/vite.config.ts +0 -55
  280. package/test/declarative-main.ts +0 -6
  281. package/test/extension-subpaths-main.ts +0 -9
  282. package/test/index.html +0 -11
  283. package/test/main.ts +0 -109
  284. package/test/pure-declarative-main.ts +0 -1
  285. package/test/vite.config.ts +0 -19
  286. package/tsconfig.api-extractor.json +0 -6
@@ -1,3 +1,3 @@
1
- var e;!function(e){e[e.needsArrayObservation=1101]="needsArrayObservation",e[e.onlySetDOMPolicyOnce=1201]="onlySetDOMPolicyOnce",e[e.bindingInnerHTMLRequiresTrustedTypes=1202]="bindingInnerHTMLRequiresTrustedTypes",e[e.twoWayBindingRequiresObservables=1203]="twoWayBindingRequiresObservables",e[e.hostBindingWithoutHost=1204]="hostBindingWithoutHost",e[e.unsupportedBindingBehavior=1205]="unsupportedBindingBehavior",e[e.directCallToHTMLTagNotAllowed=1206]="directCallToHTMLTagNotAllowed",e[e.onlySetTemplatePolicyOnce=1207]="onlySetTemplatePolicyOnce",e[e.cannotSetTemplatePolicyAfterCompilation=1208]="cannotSetTemplatePolicyAfterCompilation",e[e.blockedByDOMPolicy=1209]="blockedByDOMPolicy",e[e.invalidHydrationAttributeMarker=1210]="invalidHydrationAttributeMarker",e[e.missingElementDefinition=1401]="missingElementDefinition",e[e.noRegistrationForContext=1501]="noRegistrationForContext",e[e.noFactoryForResolver=1502]="noFactoryForResolver",e[e.invalidResolverStrategy=1503]="invalidResolverStrategy",e[e.cannotAutoregisterDependency=1504]="cannotAutoregisterDependency",e[e.cannotResolveKey=1505]="cannotResolveKey",e[e.cannotConstructNativeFunction=1506]="cannotConstructNativeFunction",e[e.cannotJITRegisterNonConstructor=1507]="cannotJITRegisterNonConstructor",e[e.cannotJITRegisterIntrinsic=1508]="cannotJITRegisterIntrinsic",e[e.cannotJITRegisterInterface=1509]="cannotJITRegisterInterface",e[e.invalidResolver=1510]="invalidResolver",e[e.invalidKey=1511]="invalidKey",e[e.noDefaultResolver=1512]="noDefaultResolver",e[e.cyclicDependency=1513]="cyclicDependency",e[e.connectUpdateRequiresController=1514]="connectUpdateRequiresController"}(e||(e={}));const t=e=>"function"==typeof e,n=e=>"string"==typeof e,i=()=>{},s=Object.create(null),r={warn(e,t){},error:(e,t)=>new Error(`Error ${e}`),addMessages(e){Object.assign(s,e)}};function o(){return s}const a=Object.freeze([]);function l(){const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t),getForInstance(t){if(null!=t)return e.get(t.constructor)}})}function c(){const e=new WeakMap;return function(t){let n=e.get(t);if(void 0===n){let i=Reflect.getPrototypeOf(t);for(;void 0===n&&null!==i;)n=e.get(i),i=Reflect.getPrototypeOf(i);n=void 0===n?[]:n.slice(0),e.set(t,n)}return n}}function d(e){e.prototype.toJSON=i}const h=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),u=e=>e,p=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-element",{createHTML:u}):{createHTML:u};let f=Object.freeze({createHTML:e=>p.createHTML(e),protect:(e,t,n,i)=>i});const g=f,b=Object.freeze({get policy(){return f},setPolicy(t){if(f!==g)throw r.error(e.onlySetDOMPolicyOnce);f=t},setAttribute(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)}});function v(e,t,i,s){return(e,t,i,...r)=>{n(i)&&(i=i.replace(/(javascript:|vbscript:|data:)/,"")),s(e,t,i,...r)}}function m(t,n,i,s){throw r.error(e.blockedByDOMPolicy,{aspectName:i,tagName:null!=t?t:"text"})}const y={onabort:m,onauxclick:m,onbeforeinput:m,onbeforematch:m,onblur:m,oncancel:m,oncanplay:m,oncanplaythrough:m,onchange:m,onclick:m,onclose:m,oncontextlost:m,oncontextmenu:m,oncontextrestored:m,oncopy:m,oncuechange:m,oncut:m,ondblclick:m,ondrag:m,ondragend:m,ondragenter:m,ondragleave:m,ondragover:m,ondragstart:m,ondrop:m,ondurationchange:m,onemptied:m,onended:m,onerror:m,onfocus:m,onformdata:m,oninput:m,oninvalid:m,onkeydown:m,onkeypress:m,onkeyup:m,onload:m,onloadeddata:m,onloadedmetadata:m,onloadstart:m,onmousedown:m,onmouseenter:m,onmouseleave:m,onmousemove:m,onmouseout:m,onmouseover:m,onmouseup:m,onpaste:m,onpause:m,onplay:m,onplaying:m,onprogress:m,onratechange:m,onreset:m,onresize:m,onscroll:m,onsecuritypolicyviolation:m,onseeked:m,onseeking:m,onselect:m,onslotchange:m,onstalled:m,onsubmit:m,onsuspend:m,ontimeupdate:m,ontoggle:m,onvolumechange:m,onwaiting:m,onwebkitanimationend:m,onwebkitanimationiteration:m,onwebkitanimationstart:m,onwebkittransitionend:m,onwheel:m},w={elements:{a:{[h.attribute]:{href:v},[h.property]:{href:v}},area:{[h.attribute]:{href:v},[h.property]:{href:v}},button:{[h.attribute]:{formaction:v},[h.property]:{formAction:v}},embed:{[h.attribute]:{src:m},[h.property]:{src:m}},form:{[h.attribute]:{action:v},[h.property]:{action:v}},frame:{[h.attribute]:{src:v},[h.property]:{src:v}},iframe:{[h.attribute]:{src:v},[h.property]:{src:v,srcdoc:m}},input:{[h.attribute]:{formaction:v},[h.property]:{formAction:v}},link:{[h.attribute]:{href:m},[h.property]:{href:m}},object:{[h.attribute]:{codebase:m,data:m},[h.property]:{codeBase:m,data:m}},script:{[h.attribute]:{src:m,text:m},[h.property]:{src:m,text:m,innerText:m,textContent:m}},style:{[h.property]:{innerText:m,textContent:m}}},aspects:{[h.attribute]:Object.assign({},y),[h.property]:Object.assign({innerHTML:m},y),[h.event]:Object.assign({},y)}};function C(e,t){const n={};for(const i in t){const s=e[i],r=t[i];switch(s){case null:break;case void 0:n[i]=r;break;default:n[i]=s}}for(const t in e)t in n||(n[t]=e[t]);return Object.freeze(n)}function S(e,t){const n={};for(const i in t){const s=e[i],r=t[i];switch(s){case null:break;case void 0:n[i]=C(r,{});break;default:n[i]=C(s,r)}}for(const t in e)t in n||(n[t]=C(e[t],{}));return Object.freeze(n)}function O(e,t){const n={};for(const i in t){const s=e[i],r=t[i];switch(s){case null:break;case void 0:n[i]=S(s,{});break;default:n[i]=S(s,r)}}for(const t in e)t in n||(n[t]=S(e[t],{}));return Object.freeze(n)}function T(e,t,n,i,s){const r=e[n];if(r){const e=r[i];if(e)return e(t,n,i,s)}}const x=Object.freeze({create(e={}){var t,n;const i=null!==(t=e.trustedType)&&void 0!==t?t:function(){const e=e=>e;return globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-element",{createHTML:e}):{createHTML:e}}(),s=(r=null!==(n=e.guards)&&void 0!==n?n:{},o=w,Object.freeze({elements:r.elements?O(r.elements,o.elements):o.elements,aspects:r.aspects?S(r.aspects,o.aspects):o.aspects}));var r,o;return Object.freeze({createHTML:e=>i.createHTML(e),protect(e,t,n,i){var r;const o=(null!=e?e:"").toLowerCase(),a=s.elements[o];if(a){const s=T(a,e,t,n,i);if(s)return s}return null!==(r=T(s.aspects,e,t,n,i))&&void 0!==r?r:i}})}});class N{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}subscribe(e){const t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else{-1===t.indexOf(e)&&t.push(e)}}unsubscribe(e){const t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}notify(e){const t=this.spillover,n=this.subject;if(void 0===t){const t=this.sub1,i=this.sub2;void 0!==t&&t.handleChange(n,e),void 0!==i&&i.handleChange(n,e)}else for(let i=0,s=t.length;i<s;++i)t[i].handleChange(n,e)}}class B{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,n;null===(t=this.subscribers[e])||void 0===t||t.notify(e),null===(n=this.subjectSubscribers)||void 0===n||n.notify(e)}subscribe(e,t){var n,i;let s;s=t?null!==(n=this.subscribers[t])&&void 0!==n?n:this.subscribers[t]=new N(this.subject):null!==(i=this.subjectSubscribers)&&void 0!==i?i:this.subjectSubscribers=new N(this.subject),s.subscribe(e)}unsubscribe(e,t){var n,i;t?null===(n=this.subscribers[t])||void 0===n||n.unsubscribe(e):null===(i=this.subjectSubscribers)||void 0===i||i.unsubscribe(e)}}const k=[],A=[],j=globalThis.requestAnimationFrame;let M=!0;function E(){if(A.length)throw A.shift()}function $(e){try{e.call()}catch(e){if(!M)throw k.length=0,e;A.push(e),setTimeout(E,0)}}function P(){let e=0;for(;e<k.length;)if($(k[e]),e++,e>1024){for(let t=0,n=k.length-e;t<n;t++)k[t]=k[t+e];k.length-=e,e=0}k.length=0}function R(e){k.push(e),k.length<2&&(M?j(P):P())}const I=Object.freeze({enqueue:R,next:()=>new Promise(R),process:P,setMode:e=>M=e}),_=Object.freeze({unknown:void 0,coupled:1}),V=(()=>{const i=I.enqueue,s=/(:|&&|\|\||if|\?\.)/,o=new WeakMap;let a,l=t=>{throw r.error(e.needsArrayObservation)};function h(e){var t;let n=null!==(t=e.$fastController)&&void 0!==t?t:o.get(e);return void 0===n&&(Array.isArray(e)?n=l(e):o.set(e,n=new B(e))),n}const u=c();class p{constructor(e){this.name=e,this.field=`_${e}`,this.callback=`${e}Changed`}getValue(e){return void 0!==a&&a.watch(e,this.name),e[this.field]}setValue(e,n){const i=this.field,s=e[i];if(s!==n){e[i]=n;const r=e[this.callback];t(r)&&r.call(e,s,n),h(e).notify(this.name)}}}class f extends N{constructor(e,t,n=!1){super(e,t),this.expression=e,this.isVolatileBinding=n,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(e){this.isAsync=this.needsQueue=e}bind(e){this.controller=e;const t=this.observe(e.source,e.context);return!e.isBound&&this.requiresUnbind(e)&&e.onUnbind(this),t}requiresUnbind(e){return e.sourceLifetime!==_.coupled||this.first!==this.last||this.first.propertySource!==e.source}unbind(e){this.dispose()}observe(e,t){this.needsRefresh&&null!==this.last&&this.dispose();const n=a;let i;a=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;try{i=this.expression(e,t)}finally{a=n}return i}disconnect(){this.dispose()}dispose(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(e,t){const n=this.last,i=h(e),s=null===n?this.first:{};if(s.propertySource=e,s.propertyName=t,s.notifier=i,i.subscribe(this,t),null!==n){if(!this.needsRefresh){let t;a=void 0,t=n.propertySource[n.propertyName],a=this,e===t&&(this.needsRefresh=!0)}n.next=s}this.last=s}handleChange(){this.needsQueue?(this.needsQueue=!1,i(this)):this.isAsync||this.call()}call(){null!==this.last&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let e=this.first;for(;void 0!==e;)yield e,e=e.next}}return d(f),Object.freeze({setArrayObserverFactory(e){l=e},getNotifier:h,track(e,t){a&&a.watch(e,t)},trackVolatile(){a&&(a.needsRefresh=!0)},notify(e,t){h(e).notify(t)},defineProperty(e,t){n(t)&&(t=new p(t)),u(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get(){return t.getValue(this)},set(e){t.setValue(this,e)}})},getAccessors:u,binding(e,t,n=this.isVolatileBinding(e)){return new f(e,t,n)},isVolatileBinding:e=>s.test(e.toString())})})();function L(e,t){V.defineProperty(e,t)}function D(e,t,n){return Object.assign({},n,{get(){return V.trackVolatile(),n.get.apply(this)}})}const H=(()=>{let e=null;return{get:()=>e,set(t){e=t}}})(),z=Object.freeze({default:{index:0,length:0,get event(){return z.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent:()=>H.get(),setEvent(e){H.set(e)}}),F="boolean",U="reflect",W=Object.freeze({locate:c()}),q={toView:e=>e?"true":"false",fromView:e=>!(null==e||"false"===e||!1===e||0===e)},Q={toView:e=>"boolean"==typeof e?e.toString():"",fromView:e=>[null,void 0,void 0].includes(e)?null:q.fromView(e)};function J(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}const K={toView(e){const t=J(e);return t?t.toString():t},fromView:J};class X{constructor(e,t,n=t.toLowerCase(),i=U,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=n,this.mode=i,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i===F&&void 0===s&&(this.converter=q)}setValue(e,t){const n=e[this.fieldName],i=this.converter;void 0!==i&&(t=i.fromView(t)),n!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](n,t),e.$fastController.notify(this.name))}getValue(e){return V.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,n=this.guards;n.has(e)||"fromView"===t||I.enqueue(()=>{n.add(e);const i=e[this.fieldName];switch(t){case U:{const t=this.converter;b.setAttribute(e,this.attribute,void 0!==t?t.toView(i):i);break}case F:b.setBooleanAttribute(e,this.attribute,i)}n.delete(e)})}static collect(e,...t){const i=[];t.push(W.locate(e));for(let s=0,r=t.length;s<r;++s){const r=t[s];if(void 0!==r)for(let t=0,s=r.length;t<s;++t){const s=r[t];n(s)?i.push(new X(e,s)):i.push(new X(e,s.property,s.attribute,s.mode,s.converter))}}return i}}function G(e,t){let n;function i(e,t){arguments.length>1&&(n.property=t),W.locate(e.constructor).push(n)}return arguments.length>1?(n={},void i(e,t)):(n=void 0===e?{}:e,i)}class Y{constructor(e,t,n=!1){this.evaluate=e,this.policy=t,this.isVolatile=n}}class Z extends Y{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}function ee(e,t){return new Z(e,t)}d(Z);class te extends Y{createObserver(e){return V.binding(this.evaluate,e,this.isVolatile)}}function ne(e,t,n=V.isVolatileBinding(e)){return new te(e,t,n)}function ie(e,t){const n=new te(e);return n.options=t,n}function se(e){return t(e)?ne(e):e instanceof Y?e:ee(()=>e)}const re=Object.create(null),oe=Object.freeze({subscribe(e,t){const n=re[e];n?n instanceof Set?n.add(t):re[e]=new Set([n,t]):re[e]=t},unsubscribe(e,t){const n=re[e];n&&n instanceof Set?n.delete(t):re[e]=void 0},send(e){const t=re[e];t&&(t instanceof Set?t.forEach(n=>n.handleChange(t,e)):t.handleChange(this,e))}});class ae{constructor(e,t){this.dataBinding=e,this.subscriber=t,this.isNotBound=!0}bind(e){return this.isNotBound&&(oe.subscribe(this.getSignal(e),this),e.onUnbind(this),this.isNotBound=!1),this.dataBinding.evaluate(e.source,e.context)}unbind(e){this.isNotBound=!0,oe.unsubscribe(this.getSignal(e),this)}handleChange(){this.subscriber.handleChange(this.dataBinding.evaluate,this)}getSignal(e){const t=this.dataBinding.options;return n(t)?t:t(e.source,e.context)}}d(ae);class le extends Y{createObserver(e){return new ae(this,e)}}function ce(e,t,n){const i=new le(e,n);return i.options=t,i}const de={fromView:e=>e};let he={determineChangeEvent:()=>"change"};const ue=Object.freeze({configure(e){he=e}});class pe{constructor(e,t,n){this.directive=e,this.subscriber=t,this.dataBinding=n,this.isNotBound=!0,this.notifier=V.binding(n.evaluate,this,n.isVolatile)}bind(e){var t;return this.changeEvent||(this.changeEvent=null!==(t=this.dataBinding.options.changeEvent)&&void 0!==t?t:he.determineChangeEvent(this.directive,this.target)),this.isNotBound&&(this.target.addEventListener(this.changeEvent,this),e.onUnbind(this),this.isNotBound=!1),this.notifier.bind(e)}unbind(e){this.isNotBound=!0,this.target.removeEventListener(this.changeEvent,this)}handleChange(e,t){this.subscriber.handleChange(this.dataBinding.evaluate,this)}handleEvent(t){const n=this.directive,i=t.currentTarget,s=this.notifier.last;if(!s)return void r.warn(e.twoWayBindingRequiresObservables);let o;switch(n.aspectType){case 1:o=i.getAttribute(n.targetAspect);break;case 2:o=i.hasAttribute(n.targetAspect);break;case 4:o=i.innerText;break;default:o=i[n.targetAspect]}s.propertySource[s.propertyName]=this.dataBinding.options.fromView(o)}}d(pe);class fe extends Y{createObserver(e,t){return new pe(t,e,this)}}function ge(e,t,i,s=V.isVolatileBinding(e)){n(t)&&(t={changeEvent:t}),t?t.fromView||(t.fromView=de.fromView):t=de;const r=new fe(e,i,s);return r.options=t,r}let be;function ve(e){return e.reduce((e,t)=>(t instanceof me?e.push(...ve(t.styles)):e.push(t),e),[])}class me{get strategy(){return null===this._strategy&&(be||me.setDefaultStrategy(me.supportsAdoptedStyleSheets?function(){const e=new Map;return class{constructor(t){this.sheets=t.map(t=>{if(t instanceof CSSStyleSheet)return t;let n=e.get(t);return void 0===n&&(n=new CSSStyleSheet,n.replaceSync(t),e.set(t,n)),n})}addStylesTo(e){const t=e;t.adoptedStyleSheets=[...t.adoptedStyleSheets,...this.sheets]}removeStylesFrom(e){const t=e;t.adoptedStyleSheets=t.adoptedStyleSheets.filter(e=>-1===this.sheets.indexOf(e))}}}():class{constructor(e){this.styles=e,this.styleClass="fast-"+ ++ye}addStylesTo(e){const t=e===document?document.body:e;for(let e=0;e<this.styles.length;e++){const n=document.createElement("style");n.innerHTML=this.styles[e],n.className=this.styleClass,t.append(n)}}removeStylesFrom(e){const t=e===document?document.body:e,n=t.querySelectorAll(`.${this.styleClass}`);for(let e=0,i=n.length;e<i;++e)t.removeChild(n[e])}}),this.withStrategy(be)),this._strategy}constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withStrategy(e){return this._strategy=new e(ve(this.styles)),this}static setDefaultStrategy(e){be=e}static normalize(e){return void 0===e?void 0:Array.isArray(e)?new me(e):e instanceof me?e:new me([e])}}me.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;let ye=0;function we(e,t,n,i){return new(n||(n=Promise))(function(s,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})}var Ce;"function"==typeof SuppressedError&&SuppressedError;const Se={mode:"open"},Oe={},Te=new Set,xe=l(),Ne=new WeakMap,Be=new WeakMap,ke=new WeakMap,Ae=new WeakMap,je=new WeakMap,Me=new WeakMap;function Ee(e=customElements){if(e===customElements)return _e.isRegistered;let t=Ae.get(e);return t||(t={},Ae.set(e,t)),t}function $e(e,t){var n,i;if(Be.delete(e),void 0===e.template&&void 0!==t&&(e.template=t,null===(i=null===(n=e.lifecycleCallbacks)||void 0===n?void 0:n.templateDidUpdate)||void 0===i||i.call(n,e.name)),void 0!==e.template)return ke.delete(e),Ne.delete(e),e.template}function Pe(e,t=e.registry,n){if(!(null==n?void 0:n.length))return;const i=e;let s=je.get(i);if(!(null==s?void 0:s.has(t))){void 0===s&&(s=new WeakSet,je.set(i,s)),s.add(t);for(const t of n)t(e)}}function Re(e){var t;return null!==(t=Me.get(e))&&void 0!==t?t:null}function Ie(e){if(void 0!==e.template)return ke.delete(e),e.template;const t=Be.get(e);if(t)return t;const n=Ne.get(e);if(!n)return;let i;ke.delete(e);try{i=n(e)}catch(t){throw ke.set(e,t),t}if("function"==typeof(null==(s=i)?void 0:s.then)){const t=Promise.resolve(i).then(t=>$e(e,t)).catch(t=>{throw Be.delete(e),ke.set(e,t),t});return Be.set(e,t),t}var s;return $e(e,i)}class _e{get isDefined(){return this.platformDefined}constructor(e,i=e.definition){var s,r;this.platformDefined=!1,n(i)&&(i={name:i}),this.type=e,this.name=i.name,this.registry=null!==(s=i.registry)&&void 0!==s?s:customElements,r=i.template,t(r)?Ne.set(this,i.template):this.template=i.template;const o=e.prototype,a=X.collect(e,i.attributes),l=new Array(a.length),c={},d={};for(let e=0,t=a.length;e<t;++e){const t=a[e];l[e]=t.attribute,c[t.name]=t,d[t.attribute]=t,V.defineProperty(o,t)}Reflect.defineProperty(e,"observedAttributes",{value:l,enumerable:!0}),this.attributes=a,this.propertyLookup=c,this.attributeLookup=d,this.shadowOptions=void 0===i.shadowOptions?Se:null===i.shadowOptions?void 0:Object.assign(Object.assign({},Se),i.shadowOptions),this.elementOptions=void 0===i.elementOptions?Oe:Object.assign(Object.assign({},Oe),i.elementOptions),this.styles=me.normalize(i.styles),this.schema=i.schema,xe.register(this);const h=Ee(this.registry);Object.prototype.hasOwnProperty.call(h,this.name)||V.defineProperty(h,this.name),h[this.name]=this.type}define(e=this.registry,t){var n,i;const s=this.type;if(!e.get(this.name)){if(Pe(this,e,t),void 0===this.template&&Ne.has(this))return Promise.resolve().then(()=>Ie(this)).then(t=>{var n,i;void 0===t||e.get(this.name)||(this.platformDefined=!0,e.define(this.name,s,this.elementOptions),null===(i=null===(n=this.lifecycleCallbacks)||void 0===n?void 0:n.elementDidDefine)||void 0===i||i.call(n,this.name))}).catch(e=>{!function(e,t){const n=e;void 0!==t?ke.set(n,t):ke.delete(n)}(this,e),V.notify(this,"template")}),this;this.platformDefined=!0,e.define(this.name,s,this.elementOptions),null===(i=null===(n=this.lifecycleCallbacks)||void 0===n?void 0:n.elementDidDefine)||void 0===i||i.call(n,this.name)}return this}static compose(e,t){const n=Te.has(e)||xe.getByType(e)?new Ce(class extends e{},t):new Ce(e,t);return Promise.resolve(n)}static registerBaseType(e){Te.add(e)}}Ce=_e,_e.isRegistered={},_e.getByType=xe.getByType,_e.getForInstance=xe.getForInstance,_e.register=(e,t=customElements)=>we(void 0,void 0,void 0,function*(){const n=Ee(t);return Object.prototype.hasOwnProperty.call(n,e)||V.defineProperty(n,e),new Promise(t=>{if(n[e])return void t(n[e]);const i=V.getNotifier(n),s={handleChange:()=>{const r=n[e];r&&(i.unsubscribe(s,e),t(r))}};i.subscribe(s,e)})}),V.defineProperty(_e.prototype,"template");const Ve={bubbles:!0,composed:!0,cancelable:!0},Le="isConnected",De=new WeakMap,He=Symbol("fast-late-attribute-observer");function ze(e){var t,n;return null!==(n=null!==(t=e.shadowRoot)&&void 0!==t?t:De.get(e))&&void 0!==n?n:null}let Fe;var Ue;!function(e){e[e.connecting=0]="connecting",e[e.connected=1]="connected",e[e.disconnecting=2]="disconnecting",e[e.disconnected=3]="disconnected"}(Ue||(Ue={}));class We{get isConnected(){return V.track(this,Le),this.stage===Ue.connected}get context(){var e,t;return null!==(t=null===(e=this.view)||void 0===e?void 0:e.context)&&void 0!==t?t:z.default}get isBound(){var e,t;return null!==(t=null===(e=this.view)||void 0===e?void 0:e.isBound)&&void 0!==t&&t}get sourceLifetime(){var e;return null===(e=this.view)||void 0===e?void 0:e.sourceLifetime}get template(){var e;if(null===this._template){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=null!==(e=t.template)&&void 0!==e?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get shadowOptions(){return this._shadowRootOptions}set shadowOptions(e){if(void 0===this._shadowRootOptions&&void 0!==e){this._shadowRootOptions=e;let t=this.source.shadowRoot;t?this.hasExistingShadowRoot=!0:(t=this.source.attachShadow(e),"closed"===e.mode&&De.set(this.source,t))}}get mainStyles(){var e;if(null===this._mainStyles){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=null!==(e=t.styles)&&void 0!==e?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(null!==this._mainStyles&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}constructor(e,t){this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this.isPrerendered=new Promise(e=>{this._resolvePrerendered=e}),this.isHydrated=new Promise(e=>{this._resolveHydrated=e}),this._template=null,this.stage=Ue.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this._notifier=new B(e),this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;const n=Reflect.getPrototypeOf(e),i=null===n?[]:V.getAccessors(n);if(i.length>0){const t=this.boundObservables=Object.create(null);for(let n=0,s=i.length;n<s;++n){const s=i[n].name,r=e[s];void 0!==r&&(delete e[s],t[s]=r)}0===Object.keys(t).length&&(this.boundObservables=null)}this.captureBoundObservables()}get subject(){return this._notifier.subject}notify(e){this._notifier.notify(e)}subscribe(e,t){this._notifier.subscribe(e,t)}unsubscribe(e,t){this._notifier.unsubscribe(e,t)}onUnbind(e){var t;null===(t=this.view)||void 0===t||t.onUnbind(e)}addBehavior(e){var t,n;const i=null!==(t=this.behaviors)&&void 0!==t?t:this.behaviors=new Map,s=null!==(n=i.get(e))&&void 0!==n?n:0;0===s?(i.set(e,1),e.addedCallback&&e.addedCallback(this),!e.connectedCallback||this.guardBehaviorConnection||this.stage!==Ue.connected&&this.stage!==Ue.connecting||e.connectedCallback(this)):i.set(e,s+1)}removeBehavior(e,t=!1){const n=this.behaviors;if(null===n)return;const i=n.get(e);void 0!==i&&(1===i||t?(n.delete(e),e.disconnectedCallback&&this.stage!==Ue.disconnected&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):n.set(e,i-1))}addStyles(e){var t;if(!e)return;const n=this.source;if(e instanceof HTMLElement){(null!==(t=ze(n))&&void 0!==t?t:this.source).append(e)}else e.isAttachedTo(n)||e.addStylesTo(n)}removeStyles(e){var t;if(!e)return;const n=this.source;if(e instanceof HTMLElement){(null!==(t=ze(n))&&void 0!==t?t:n).removeChild(e)}else e.isAttachedTo(n)&&e.removeStylesFrom(n)}connect(){this.stage===Ue.disconnected&&(this.stage=Ue.connecting,this.captureBoundObservables(),this.syncLateAttributes(),this.observeLateAttributes(),this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):null!==this.view&&this.view.bind(this.source),this.stage=Ue.connected,V.notify(this,Le))}bindObservables(){if(null!==this.boundObservables){const e=this.source,t=this.boundObservables,n=Object.keys(t);for(let i=0,s=n.length;i<s;++i){const s=n[i];e[s]=t[s]}this.boundObservables=null}}captureBoundObservables(){const e=this.source,t=Object.getOwnPropertyNames(e),n=t=>{let n=Reflect.getPrototypeOf(e);for(;null!==n;){const e=Reflect.getOwnPropertyDescriptor(n,t);if((null==e?void 0:e.get)||(null==e?void 0:e.set))return!0;n=Reflect.getPrototypeOf(n)}return!1};let i=this.boundObservables;for(let s=0,r=t.length;s<r;++s){const r=t[s],o="_"===r[0]?r.slice(1):r;if(!n(o))continue;const a=e[o],l=r!==o,c=!(null===a||"object"!=typeof a||(null==a?void 0:a.$isProxy)||Array.isArray(a)&&(null==a?void 0:a.$fastController));void 0!==a?l&&!c||(delete e[r],(null!=i?i:i=this.boundObservables=Object.create(null))[o]=a):l||delete e[r]}}syncLateAttributes(){const e=Re(this.definition);if(null!==e)for(const t of Object.keys(e))this.source.hasAttribute(t)&&this.onAttributeChangedCallback(t,null,this.source.getAttribute(t))}observeLateAttributes(){if(null===Re(this.definition))return;const e=this.source;void 0===e[He]&&(e[He]=new MutationObserver(t=>{const n=e.$fastController,i=Re(n.definition);if(null!==i)for(let s=0,r=t.length;s<r;++s){const r=t[s].attributeName;null!==r&&void 0!==i[r]&&n.onAttributeChangedCallback(r,null,e.getAttribute(r))}}),e[He].observe(e,{attributes:!0}))}connectBehaviors(){if(!1===this.behaviorsConnected){const e=this.behaviors;if(null!==e){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(!0===this.behaviorsConnected){const e=this.behaviors;if(null!==e)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===Ue.connected&&(this.stage=Ue.disconnecting,V.notify(this,Le),null!==this.view&&this.view.unbind(),this.disconnectBehaviors(),this.stage=Ue.disconnected)}onAttributeChangedCallback(e,t,n){const i=this.definition.attributeLookup[e];void 0!==i&&i.onAttributeChangedCallback(this.source,n)}emit(e,t,n){return this.stage===Ue.connected&&this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},Ve),n)))}renderTemplate(e){var t;const n=this.source,i=null!==(t=ze(n))&&void 0!==t?t:n;if(null!==this.view)this.view.dispose(),this.view=null;else if((!this.needsInitialization||this.hasExistingShadowRoot)&&(!this.hasExistingShadowRoot||!this.needsInitialization))for(let e=i.firstChild;null!==e;e=i.firstChild)i.removeChild(e);if(e){const t=this.hasExistingShadowRoot&&this.needsInitialization;let s=!1;t&&We.hydrationHook&&(s=We.hydrationHook(this,e,n,i)),s||this.renderClientSide(e,n,i),this._resolvePrerendered(t),this._resolveHydrated(s)}else this.needsInitialization&&(this._resolvePrerendered(!1),this._resolveHydrated(!1))}renderClientSide(e,t,n){if(this.hasExistingShadowRoot){for(let e=n.firstChild;null!==e;e=n.firstChild)n.removeChild(e);this.hasExistingShadowRoot=!1}this.view=e.render(t,n,t),this.view.sourceLifetime=_.coupled}static forCustomElement(t,n=!1){const i=t.$fastController;if(void 0!==i&&!n)return i;const s=_e.getForInstance(t);if(void 0===s)throw r.error(e.missingElementDefinition);return V.getNotifier(s).subscribe({handleChange:()=>{We.forCustomElement(t,!0),t.$fastController.connect()}},"template"),V.getNotifier(s).subscribe({handleChange:()=>{We.forCustomElement(t,!0),t.$fastController.connect()}},"shadowOptions"),t.$fastController=new Fe(t,s)}static setStrategy(e){Fe=e}static installHydrationHook(e){We.hydrationHook=e}}function qe(e){var t;return"adoptedStyleSheets"in e?e:null!==(t=ze(e))&&void 0!==t?t:e.getRootNode()}We.hydrationHook=null,d(We),We.setStrategy(We);class Qe{constructor(e){const t=Qe.styleSheetCache;this.sheets=e.map(e=>{if(e instanceof CSSStyleSheet)return e;let n=t.get(e);return void 0===n&&(n=new CSSStyleSheet,n.replaceSync(e),t.set(e,n)),n})}addStylesTo(e){Ge(qe(e),this.sheets)}removeStylesFrom(e){Ye(qe(e),this.sheets)}}Qe.styleSheetCache=new Map;let Je=0;function Ke(e){return e===document?document.body:e}class Xe{constructor(e){this.styles=e,this.styleClass="fast-"+ ++Je}addStylesTo(e){e=Ke(qe(e));const t=this.styles,n=this.styleClass;for(let i=0;i<t.length;i++){const s=document.createElement("style");s.innerHTML=t[i],s.className=n,e.append(s)}}removeStylesFrom(e){const t=(e=Ke(qe(e))).querySelectorAll(`.${this.styleClass}`);for(let n=0,i=t.length;n<i;++n)e.removeChild(t[n])}}let Ge=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},Ye=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(e=>-1===t.indexOf(e))};if(me.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Ge=(e,t)=>{e.adoptedStyleSheets.push(...t)},Ye=(e,t)=>{for(const n of t){const t=e.adoptedStyleSheets.indexOf(n);-1!==t&&e.adoptedStyleSheets.splice(t,1)}}}catch(e){}me.setDefaultStrategy(Qe)}else me.setDefaultStrategy(Xe);function Ze(e){const t=class extends e{constructor(){super(),We.forCustomElement(this)}$emit(e,t,n){return this.$fastController.emit(e,t,n)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,t,n){this.$fastController.onAttributeChangedCallback(e,t,n)}};return _e.registerBaseType(t),t}function et(e,n,i){Array.isArray(n)&&(i=n,n=void 0);return(t(e)?_e.compose(e,n):_e.compose(this,e)).then(e=>{Pe(e,e.registry,i);const t=Ie(e);return"function"==typeof(null==(n=t)?void 0:n.then)?t.then(()=>e.define().type):e.define().type;var n})}const tt=Object.assign(Ze(HTMLElement),{from:function(e){return Ze(e)},define:et,compose:function(e,n){return t(e)?_e.compose(e,n):_e.compose(this,e)}});function nt(e){return function(t){et(t,e)}}const it={1101:"Must call ArrayObserver.enable() before observing arrays.",1201:"The DOM Policy can only be set once.",1202:"To bind innerHTML, you must use a TrustedTypesPolicy.",1203:"View=>Model update skipped. To use twoWay binding, the target property must be observable.",1204:"No host element is present. Cannot bind host with ${name}.",1205:"The requested binding behavior is not supported by the binding engine.",1206:"Calling html`` as a normal function invalidates the security guarantees provided by FAST.",1207:"The DOM Policy for an HTML template can only be set once.",1208:"The DOM Policy cannot be set after a template is compiled.",1209:"'${aspectName}' on '${tagName}' is blocked by the current DOMPolicy.",1210:"Invalid data-fe attribute value '${value}'. Expected a positive integer.",1401:"Missing FASTElement definition.",1501:"No registration for Context/Interface '${name}'.",1502:"Dependency injection resolver for '${key}' returned a null factory.",1503:"Invalid dependency injection resolver strategy specified '${strategy}'.",1504:"Unable to autoregister dependency.",1505:"Unable to resolve dependency injection key '${key}'.",1506:"'${name}' is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.",1507:"Attempted to jitRegister something that is not a constructor '${value}'. Did you forget to register this dependency?",1508:"Attempted to jitRegister an intrinsic type '${value}'. Did you forget to add @inject(Key)?",1509:"Attempted to jitRegister an interface '${value}'.",1510:"A valid resolver was not returned from the register method.",1511:"Key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?",1512:"'${key}' not registered. Did you forget to add @singleton()?",1513:"Cyclic dependency found '${name}'.",1514:"Injected properties that are updated on changes to DOM connectivity require the target object to be an instance of FASTElement.",1601:"Invalid attribute marker name: ${name}. Expected format is ${expectedFormat}.",1602:"Invalid compact attribute marker values in ${markerName}. Both index and count must be positive integers.",1604:"Invalid compact attribute marker name: ${name}. Expected format is ${expectedFormat}."},st=/(\$\{\w+?})/g,rt=/\$\{(\w+?)}/g,ot=Object.freeze({});function at(e,t){return e.split(st).map(e=>{var n;const i=e.replace(rt,"$1");return String(null!==(n=t[i])&&void 0!==n?n:e)}).join("")}function lt(){const e=o();Object.assign(e,it),Object.assign(r,{addMessages(t){Object.assign(e,t)},warn(t,n=ot){var i;const s=null!==(i=e[t])&&void 0!==i?i:"Unknown Warning";console.warn(at(s,n))},error(t,n=ot){var i;const s=null!==(i=e[t])&&void 0!==i?i:"Unknown Error";return new Error(at(s,n))}})}const ct=`fast-${Math.random().toString(36).substring(2,8)}`,dt=`${ct}{`,ht=`}${ct}`,ut=ht.length;let pt=0;const ft=()=>`${ct}-${++pt}`,gt=Object.freeze({interpolation:e=>`${dt}${e}${ht}`,attribute:e=>`${ft()}="${dt}${e}${ht}"`,comment:e=>`\x3c!--${dt}${e}${ht}--\x3e`}),bt=Object.freeze({parse(e,t){const n=e.split(dt);if(1===n.length)return null;const i=[];for(let e=0,s=n.length;e<s;++e){const s=n[e],r=s.indexOf(ht);let o;if(-1===r)o=s;else{const e=s.substring(0,r);i.push(t[e]),o=s.substring(r+ut)}""!==o&&i.push(o)}return i}}),vt=l(),mt=Object.freeze({getForInstance:vt.getForInstance,getByType:vt.getByType,define:(e,t)=>((t=t||{}).type=e,vt.register(t),e),assignAspect(e,t){if(t)switch(e.sourceAspect=t,t[0]){case":":e.targetAspect=t.substring(1),e.aspectType="classList"===e.targetAspect?h.tokenList:h.property;break;case"?":e.targetAspect=t.substring(1),e.aspectType=h.booleanAttribute;break;case"@":e.targetAspect=t.substring(1),e.aspectType=h.event;break;default:e.targetAspect=t,e.aspectType=h.attribute}else e.aspectType=h.content}});function yt(e){return function(t){mt.define(t,e)}}class wt{constructor(e){this.options=e}createHTML(e){return gt.attribute(e(this))}createBehavior(){return this}}d(wt);const Ct=e=>1===e.nodeType,St=e=>e?t=>1===t.nodeType&&t.matches(e):Ct;class Ot extends wt{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,a),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}class Tt extends Ot{constructor(e){super(e),this.observerProperty=Symbol(),e.childList=!0}observe(e){let t=e[this.observerProperty];if(!t){t=new MutationObserver((t,n)=>{this.updateTarget(this.getSource(e),this.computeNodes(e))}),t.toJSON=i,e[this.observerProperty]=t}t.observe(e,this.options)}disconnect(e){e[this.observerProperty].disconnect()}getNodes(e){return"selector"in this.options?Array.from(e.querySelectorAll(this.options.selector)):Array.from(e.childNodes)}}function xt(e){return n(e)&&(e={property:e}),new Tt(e)}mt.define(Tt);class Nt extends wt{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}mt.define(Nt);const Bt=e=>new Nt(e);function kt(e){return e&&e.nodeType===Node.COMMENT_NODE}const At=Object.freeze({attributeMarkerName:"data-fe",contentBindingStartMarker:()=>"fe:b",contentBindingEndMarker:()=>"fe:/b",repeatStartMarker:()=>"fe:r",repeatEndMarker:()=>"fe:/r",elementBoundaryStartMarker:()=>"fe:e",elementBoundaryEndMarker:()=>"fe:/e",isContentBindingStartMarker:e=>"fe:b"===e,isContentBindingEndMarker:e=>"fe:/b"===e,isRepeatViewStartMarker:e=>"fe:r"===e,isRepeatViewEndMarker:e=>"fe:/r"===e,isElementBoundaryStartMarker:e=>kt(e)&&"fe:e"===e.data,isElementBoundaryEndMarker:e=>kt(e)&&"fe:/e"===e.data,parseAttributeBindingCount(t){const n=t.getAttribute(this.attributeMarkerName);if(null===n)return null;const i=n.trim();if(!/^\d+$/.test(i))throw r.error(e.invalidHydrationAttributeMarker,{value:n});const s=parseInt(i,10);if(s<1)throw r.error(e.invalidHydrationAttributeMarker,{value:n});return s}}),jt=Symbol.for("fe-hydration");function Mt(e){return e[jt]===jt}class Et{constructor(e,t,n){this.index=e,this.removed=t,this.addedCount=n}adjustTo(e){let t=this.index;const n=e.length;return t>n?t=n-this.addedCount:t<0&&(t=n+this.removed.length+t-this.addedCount),this.index=t<0?0:t,this}}class $t{constructor(e){this.sorted=e}}const Pt=Object.freeze({reset:1,splice:2,optimized:3}),Rt=new Et(0,a,0);Rt.reset=!0;const It=[Rt];var _t;function Vt(e,t,n,i){return t<n||i<e?-1:t===n||i===e?0:e<n?t<i?t-n:i-n:i<t?i-e:t-e}function Lt(e,t,n,i,s,r){let o=0,l=0;const c=Math.min(n-t,r-s);if(0===t&&0===s&&(o=function(e,t,n){for(let i=0;i<n;++i)if(e[i]!==t[i])return i;return n}(e,i,c)),n===e.length&&r===i.length&&(l=function(e,t,n){let i=e.length,s=t.length,r=0;for(;r<n&&e[--i]===t[--s];)r++;return r}(e,i,c-o)),s+=o,r-=l,(n-=l)-(t+=o)===0&&r-s===0)return a;if(t===n){const e=new Et(t,[],0);for(;s<r;)e.removed.push(i[s++]);return[e]}if(s===r)return[new Et(t,[],n-t)];const d=function(e){let t=e.length-1,n=e[0].length-1,i=e[t][n];const s=[];for(;t>0||n>0;){if(0===t){s.push(_t.add),n--;continue}if(0===n){s.push(_t.delete),t--;continue}const r=e[t-1][n-1],o=e[t-1][n],a=e[t][n-1];let l;l=o<a?o<r?o:r:a<r?a:r,l===r?(r===i?s.push(_t.leave):(s.push(_t.update),i=r),t--,n--):l===o?(s.push(_t.delete),t--,i=o):(s.push(_t.add),n--,i=a)}return s.reverse()}(function(e,t,n,i,s,r){const o=r-s+1,a=n-t+1,l=new Array(o);let c,d;for(let e=0;e<o;++e)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;++e)l[0][e]=e;for(let n=1;n<o;++n)for(let r=1;r<a;++r)e[t+r-1]===i[s+n-1]?l[n][r]=l[n-1][r-1]:(c=l[n-1][r]+1,d=l[n][r-1]+1,l[n][r]=c<d?c:d);return l}(e,t,n,i,s,r)),h=[];let u,p=t,f=s;for(let e=0;e<d.length;++e)switch(d[e]){case _t.leave:void 0!==u&&(h.push(u),u=void 0),p++,f++;break;case _t.update:void 0===u&&(u=new Et(p,[],0)),u.addedCount++,p++,u.removed.push(i[f]),f++;break;case _t.add:void 0===u&&(u=new Et(p,[],0)),u.addedCount++,p++;break;case _t.delete:void 0===u&&(u=new Et(p,[],0)),u.removed.push(i[f]),f++}return void 0!==u&&h.push(u),h}function Dt(e,t){let n=!1,i=0;for(let s=0;s<t.length;s++){const r=t[s];if(r.index+=i,n)continue;const o=Vt(e.index,e.index+e.removed.length,r.index,r.index+r.addedCount);if(o>=0){t.splice(s,1),s--,i-=r.addedCount-r.removed.length,e.addedCount+=r.addedCount-o;const a=e.removed.length+r.removed.length-o;if(e.addedCount||a){let t=r.removed;if(e.index<r.index){const n=e.removed.slice(0,r.index-e.index);n.push(...t),t=n}if(e.index+e.removed.length>r.index+r.addedCount){const n=e.removed.slice(r.index+r.addedCount-e.index);t.push(...n)}e.removed=t,r.index<e.index&&(e.index=r.index)}else n=!0}else if(e.index<r.index){n=!0,t.splice(s,0,e),s++;const o=e.addedCount-e.removed.length;r.index+=o,i+=o}}n||t.push(e)}!function(e){e[e.leave=0]="leave",e[e.update=1]="update",e[e.add=2]="add",e[e.delete=3]="delete"}(_t||(_t={}));let Ht=Object.freeze({support:Pt.optimized,normalize:(e,t,n)=>void 0===e?void 0===n?a:function(e,t){let n=[];const i=[];for(let e=0,n=t.length;e<n;e++)Dt(t[e],i);for(let t=0,s=i.length;t<s;++t){const s=i[t];1!==s.addedCount||1!==s.removed.length?n=n.concat(Lt(e,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==e[s.index]&&n.push(s)}return n}(t,n):It,pop(e,t,n,i){const s=e.length>0,r=n.apply(e,i);return s&&t.addSplice(new Et(e.length,[r],0)),r},push(e,t,n,i){const s=n.apply(e,i);return t.addSplice(new Et(e.length-i.length,[],i.length).adjustTo(e)),s},reverse(e,t,n,i){const s=n.apply(e,i);e.sorted++;const r=[];for(let t=e.length-1;t>=0;t--)r.push(t);return t.addSort(new $t(r)),s},shift(e,t,n,i){const s=e.length>0,r=n.apply(e,i);return s&&t.addSplice(new Et(0,[r],0)),r},sort(e,t,n,i){const s=new Map;for(let t=0,n=e.length;t<n;++t){const n=s.get(e[t])||[];s.set(e[t],[...n,t])}const r=n.apply(e,i);e.sorted++;const o=[];for(let t=0,n=e.length;t<n;++t){const n=s.get(e[t]);o.push(n[0]),s.set(e[t],n.splice(1))}return t.addSort(new $t(o)),r},splice(e,t,n,i){const s=n.apply(e,i);return t.addSplice(new Et(+i[0],s,i.length>2?i.length-2:0).adjustTo(e)),s},unshift(e,t,n,i){const s=n.apply(e,i);return t.addSplice(new Et(0,[],i.length).adjustTo(e)),s}});const zt=Object.freeze({reset:It,setDefaultStrategy(e){Ht=e}});function Ft(e,t,n,i=!0){Reflect.defineProperty(e,t,{value:n,enumerable:!1,writable:i})}class Ut extends N{get strategy(){return this._strategy}set strategy(e){this._strategy=e}get lengthObserver(){let e=this._lengthObserver;if(void 0===e){const t=this.subject;this._lengthObserver=e={length:t.length,handleChange(){this.length!==t.length&&(this.length=t.length,V.notify(e,"length"))}},this.subscribe(e)}return e}get sortObserver(){let e=this._sortObserver;if(void 0===e){const t=this.subject;this._sortObserver=e={sorted:t.sorted,handleChange(){this.sorted!==t.sorted&&(this.sorted=t.sorted,V.notify(e,"sorted"))}},this.subscribe(e)}return e}constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.sorts=void 0,this.needsQueue=!0,this._strategy=null,this._lengthObserver=void 0,this._sortObserver=void 0,this.call=this.flush,Ft(e,"$fastController",this)}subscribe(e){this.flush(),super.subscribe(e)}addSplice(e){void 0===this.splices?this.splices=[e]:this.splices.push(e),this.enqueue()}addSort(e){void 0===this.sorts?this.sorts=[e]:this.sorts.push(e),this.enqueue()}reset(e){this.oldCollection=e,this.enqueue()}flush(){var e;const t=this.splices,n=this.sorts,i=this.oldCollection;void 0===t&&void 0===i&&void 0===n||(this.needsQueue=!0,this.splices=void 0,this.sorts=void 0,this.oldCollection=void 0,void 0!==n?this.notify(n):this.notify((null!==(e=this._strategy)&&void 0!==e?e:Ht).normalize(i,this.subject,t)))}enqueue(){this.needsQueue&&(this.needsQueue=!1,I.enqueue(this))}}let Wt=!1;const qt=Object.freeze({sorted:0,enable(){if(Wt)return;Wt=!0,V.setArrayObserverFactory(e=>new Ut(e));const e=Array.prototype;e.$fastPatch||(Ft(e,"$fastPatch",1),Ft(e,"sorted",0),[e.pop,e.push,e.reverse,e.shift,e.sort,e.splice,e.unshift].forEach(t=>{e[t.name]=function(...e){var n;const i=this.$fastController;return void 0===i?t.apply(this,e):(null!==(n=i.strategy)&&void 0!==n?n:Ht)[t.name](this,i,t,e)}}))}});function Qt(e){if(!e)return 0;let t=e.$fastController;return void 0===t&&(qt.enable(),t=V.getNotifier(e)),V.track(t.lengthObserver,"length"),e.length}function Jt(e){if(!e)return 0;let t=e.$fastController;return void 0===t&&(qt.enable(),t=V.getNotifier(e)),V.track(t.sortObserver,"sorted"),e.sorted}class Kt extends Error{constructor(e,t,n){super(e),this.factories=t,this.node=n}}function Xt(e){return e.nodeType===Node.COMMENT_NODE}function Gt(e){return e.nodeType===Node.TEXT_NODE}function Yt(e,t){const n=document.createRange();return n.setStart(e,0),n.setEnd(t,Xt(t)||Gt(t)?t.data.length:t.childNodes.length),n}function Zt(e,t,n,i,s,r){var o,a,l,c;const d=[];let h=t.nextSibling();if(e.data="",null===h)throw new Kt(`Error hydrating content binding inside "${null!==(a=null===(o=e.getRootNode().host)||void 0===o?void 0:o.nodeName)&&void 0!==a?a:"unknown"}": no sibling found after content binding start marker.`,i,e);const u=h;let p=0;for(;null!==h;){if(Xt(h))if("fe:b"===h.data)p++;else if("fe:/b"===h.data){if(0===p)break;p--}d.push(h),h=t.nextSibling()}if(null===h)throw new Kt(`Error hydrating content binding inside "${null!==(c=null===(l=e.getRootNode().host)||void 0===l?void 0:l.nodeName)&&void 0!==c?c:"unknown"}": missing fe:/b end marker.`,i,e);if(h.data="",1===d.length&&Gt(d[0]))tn(n,d[0],s);else{h!==u&&null!==h.previousSibling&&(r[n.targetNodeId]={first:u,last:h.previousSibling});tn(n,h.parentNode.insertBefore(document.createTextNode(""),h),s)}}function en(e,t,n){var i,s;let r=0,o=e.nextSibling();for(;null!==o;){if(Xt(o))if("fe:e"===o.data)o.data="",r++;else if("fe:/e"===o.data){if(0===r)return void(o.data="");o.data="",r--}o=e.nextSibling()}throw new Kt(`HydrationView could not find the end of an element boundary inside ${null!==(s=null===(i=n.getRootNode().host)||void 0===i?void 0:i.nodeName)&&void 0!==s?s:"unknown"}. This likely indicates a template mismatch between SSR rendering and hydration.`,t,n)}function tn(e,t,n){if(void 0===e.targetNodeId)throw new Error("Factory could not be target to the node");n[e.targetNodeId]=t}function nn(e,t){const n=e.parentNode;let i,s=e;for(;s!==t;){if(i=s.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);n.removeChild(s),s=i}n.removeChild(t)}class sn{constructor(){this.index=0,this.length=0}get event(){return z.getEvent()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class rn extends sn{constructor(e,t,n){super(),this.fragment=e,this.factories=t,this.targets=n,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=_.unknown,this._skipAttrUpdates=!1,this.isPrerendered=Promise.resolve(!1),this.isHydrated=Promise.resolve(!1),this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const n=e.parentNode;let i,s=this.firstChild;for(;s!==t;)i=s.nextSibling,n.insertBefore(s,e),s=i;n.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let n,i=this.firstChild;for(;i!==t;)n=i.nextSibling,e.appendChild(i),i=n;e.appendChild(t)}dispose(){nn(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let n=this.behaviors;if(null===n){this.source=e,this.context=t,this.behaviors=n=new Array(this.factories.length);const i=this.factories;for(let e=0,t=i.length;e<t;++e){const t=i[e].createBehavior();t.bind(this),n[e]=t}}else{null!==this.source&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let e=0,t=n.length;e<t;++e)n[e].bind(this)}this.isBound=!0}unbind(){this.isBound&&null!==this.source&&(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,n=e.length;t<n;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(0!==e.length){nn(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,n=e.length;t<n;++t)e[t].unbind()}}}var on;d(rn),V.defineProperty(rn.prototype,"index"),V.defineProperty(rn.prototype,"length");const an="unhydrated",ln="hydrating",cn="hydrated";class dn extends Error{constructor(e,t,n,i){super(e),this.factory=t,this.fragment=n,this.templateString=i}}on=jt,d(class extends sn{get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}constructor(e,t,n,i){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=n,this.hostBindingTarget=i,this[on]=jt,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=_.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=an,this._bindingViewBoundaries={},this._targets={},this.factories=n.compile().factories}insertBefore(e){if(null!==this.fragment)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const n=e.parentNode;let i,s=this.firstChild;for(;s!==t;)i=s.nextSibling,n.insertBefore(s,e),s=i;n.insertBefore(t,e)}}appendTo(e){null!==this.fragment&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let n,i=this.firstChild;for(;i!==t;){if(n=i.nextSibling,!n)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=n}e.appendChild(t)}bind(e,t=this){var n;if(this.hydrationStage!==cn&&(this._hydrationStage=ln),this.source===e)return;let i=this.behaviors;if(null===i){this.source=e,this.context=t;try{const{targets:e,boundaries:t}=function(e,t,n){var i,s;const r=Yt(e,t),o=r.commonAncestorContainer,a=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode:e=>0===r.comparePoint(e,0)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),l={},c={};let d=function(e){let t=0;for(let n=0,i=e.length;n<i&&"h"===e[n].targetNodeId;++n)t++;return t}(n),h=a.currentNode=e;for(;null!==h;){switch(h.nodeType){case Node.ELEMENT_NODE:{const e=At.parseAttributeBindingCount(h);if(null!==e){for(let t=0;t<e;t++){const e=n[d++];if(!e)throw new Kt(`HydrationView was unable to successfully target factory on ${h.nodeName} inside ${h.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,n,h);tn(e,h,l)}h.removeAttribute(At.attributeMarkerName)}break}case Node.COMMENT_NODE:{const e=h.data;if("fe:e"===e)h.data="",en(a,n,h);else if("fe:b"===e){const e=n[d++];if(!e)throw new Kt(`HydrationView ran out of factories while processing a content binding marker inside ${null!==(s=null===(i=h.getRootNode().host)||void 0===i?void 0:i.nodeName)&&void 0!==s?s:"unknown"}. This likely indicates a template mismatch between SSR rendering and hydration.`,n,h);Zt(h,a,e,n,l,c)}break}}h=a.nextNode()}return r.detach(),{targets:l,boundaries:c}}(this.firstChild,this.lastChild,this.factories);this._targets=e,this._bindingViewBoundaries=t}catch(e){if(e instanceof Kt){let t=this.sourceTemplate.html;"string"!=typeof t&&(t=t.innerHTML),e.templateString=t}throw e}this.behaviors=i=new Array(this.factories.length);const s=this.factories;for(let e=0,t=s.length;e<t;++e){const t=s[e];if("h"===t.targetNodeId&&this.hostBindingTarget&&tn(t,this.hostBindingTarget,this._targets),!(t.targetNodeId in this.targets)){let e=this.sourceTemplate.html;"string"!=typeof e&&(e=e.innerHTML);const i=(null===(n=this.firstChild)||void 0===n?void 0:n.getRootNode()).host,s=t,r=[`HydrationView was unable to successfully target bindings inside "<${((null==i?void 0:i.nodeName)||"unknown").toLowerCase()}>".`,"\nMismatch Details:",` - Expected target node ID: "${t.targetNodeId}"`,` - Available target IDs: [${Object.keys(this.targets).join(", ")||"none"}]`];throw t.targetTagName&&r.push(` - Expected tag name: "${t.targetTagName}"`),s.sourceAspect&&r.push(` - Source aspect: "${s.sourceAspect}"`),void 0!==s.aspectType&&r.push(` - Aspect type: ${s.aspectType}`),r.push("\nThis usually means:"," 1. The server-rendered HTML doesn't match the client template"," 2. The hydration markers are missing or corrupted"," 3. The DOM structure was modified before hydration",`\nTemplate: ${e.slice(0,200)}${e.length>200?"...":""}`),new dn(r.join("\n"),t,Yt(this.firstChild,this.lastChild).cloneContents(),e)}{const n=t.createBehavior();n.bind(this),i[e]=n}}}else{null!==this.source&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let e=0,t=i.length;e<t;++e)i[e].bind(this)}this.isBound=!0,this._hydrationStage=cn}unbind(){this.isBound&&null!==this.source&&(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){nn(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,n=e.length;t<n;++t)e[t].unbind(this);e.length=0}});const hn=Object.freeze({positioning:!1,recycle:!0});function un(e,t,n,i){e.context.parent=i.source,e.context.parentContext=i.context,e.bind(t[n])}function pn(e,t,n,i){e.context.parent=i.source,e.context.parentContext=i.context,e.context.length=t.length,e.context.index=n,e.bind(t[n])}function fn(e){return e.nodeType===Node.COMMENT_NODE}class gn extends Error{constructor(e,t){super(e),this.propertyBag=t}}class bn{constructor(e){this.directive=e,this.items=null,this.itemsObserver=null,this.bindView=un,this.views=[],this.itemsBindingObserver=e.dataBinding.createObserver(this,e),this.templateBindingObserver=e.templateBinding.createObserver(this,e),e.options.positioning&&(this.bindView=pn)}bind(e){this.location=e.targets[this.directive.targetNodeId],this.controller=e,this.items=this.itemsBindingObserver.bind(e),this.template=this.templateBindingObserver.bind(e),this.observeItems(!0),Mt(this.template)&&Mt(e)&&e.hydrationStage!==cn?this.hydrateViews(this.template):this.refreshAllViews(),e.onUnbind(this)}unbind(){null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews()}handleChange(e,t){if(t===this.itemsBindingObserver)this.items=this.itemsBindingObserver.bind(this.controller),this.observeItems(),this.refreshAllViews();else if(t===this.templateBindingObserver)this.template=this.templateBindingObserver.bind(this.controller),this.refreshAllViews(!0);else{if(!t[0])return;t[0].reset?this.refreshAllViews():t[0].sorted?this.updateSortedViews(t):this.updateSplicedViews(t)}}observeItems(e=!1){if(!this.items)return void(this.items=a);const t=this.itemsObserver,n=this.itemsObserver=V.getNotifier(this.items),i=t!==n;i&&null!==t&&t.unsubscribe(this),(i||e)&&n.subscribe(this)}updateSortedViews(e){const t=this.views;for(let n=0,i=e.length;n<i;++n){const i=e[n].sorted.slice(),s=i.slice().sort();for(let e=0,n=i.length;e<n;++e){const n=i.find(t=>i[e]===s[t]);if(n!==e){const i=s.splice(n,1);s.splice(e,0,...i);const r=t[e],o=r?r.firstChild:this.location;t[n].remove(),t[n].insertBefore(o);const a=t.splice(n,1);t.splice(e,0,...a)}}}}updateSplicedViews(e){const t=this.views,n=this.bindView,i=this.items,s=this.template,r=this.controller,o=this.directive.options.recycle,a=[];let l=0,c=0;for(let d=0,h=e.length;d<h;++d){const h=e[d],u=h.removed;let p=0,f=h.index;const g=f+h.addedCount,b=t.splice(h.index,u.length),v=c=a.length+b.length;for(;f<g;++f){const e=t[f],d=e?e.firstChild:this.location;let h;o&&c>0?(p<=v&&b.length>0?(h=b[p],p++):(h=a[l],l++),c--):h=s.create(),t.splice(f,0,h),n(h,i,f,r),h.insertBefore(d)}b[p]&&a.push(...b.slice(p))}for(let e=l,t=a.length;e<t;++e)a[e].dispose();if(this.directive.options.positioning)for(let e=0,n=t.length;e<n;++e){const i=t[e].context;i.length=n,i.index=e}}refreshAllViews(e=!1){const t=this.items,n=this.template,i=this.location,s=this.bindView,r=this.controller;let o=t.length,a=this.views,l=a.length;if(0!==o&&!e&&this.directive.options.recycle||(rn.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(o);for(let e=0;e<o;++e){const o=n.create();s(o,t,e,r),a[e]=o,o.insertBefore(i)}}else{let e=0;for(;e<o;++e)if(e<l){const i=a[e];if(!i){const t=new XMLSerializer;throw new gn(`View is null or undefined inside "${this.location.getRootNode().host.nodeName}".`,{index:e,hydrationStage:this.controller.hydrationStage,itemsLength:o,viewsState:a.map(e=>e?"hydrated":"empty"),viewTemplateString:t.serializeToString(n.create().fragment),rootNodeContent:t.serializeToString(this.location.getRootNode())})}s(i,t,e,r)}else{const o=n.create();s(o,t,e,r),a.push(o),o.insertBefore(i)}const c=a.splice(e,l-e);for(e=0,o=c.length;e<o;++e)c[e].dispose()}}unbindAllViews(){const e=this.views;for(let t=0,n=e.length;t<n;++t){const n=e[t];if(!n){const n=new XMLSerializer;throw new gn(`View is null or undefined inside "${this.location.getRootNode().host.nodeName}".`,{index:t,hydrationStage:this.controller.hydrationStage,viewsState:e.map(e=>e?"hydrated":"empty"),rootNodeContent:n.serializeToString(this.location.getRootNode())})}n.unbind()}}hydrateViews(e){if(!this.items)return;const t=this.items.length;this.views=new Array(t);const n=[];let i=this.location.previousSibling;for(;null!==i;){if(!fn(i)||"fe:/r"!==i.data){i=i.previousSibling;continue}i.data="";const e=i.previousSibling;if(!e)throw new Error(`Error when hydrating inside "${this.location.getRootNode().host.nodeName}": end should never be null.`);let t=e,s=0;for(;null!==t;){if(fn(t))if("fe:/r"===t.data)s++;else if("fe:r"===t.data){if(0===s){const s=t;s.data="",i=s.previousSibling;const r=s.nextSibling,o=e===s?r:e;n.push({start:r,end:o});break}s--}t=t.previousSibling}if(!t)throw new Error(`Error when hydrating inside "${this.location.getRootNode().host.nodeName}": repeat start marker not found.`)}n.reverse();for(let i=0;i<n.length&&i<t;i++){const{start:t,end:s}=n[i],r=e.hydrate(t,s);this.views[i]=r,this.bindView(r,this.items,i,this.controller)}}}class vn{createHTML(e){return gt.comment(e(this))}constructor(e,t,n){this.dataBinding=e,this.templateBinding=t,this.options=n,qt.enable()}createBehavior(){return new bn(this)}}function mn(e,t,n=hn){const i=se(e),s=se(t);return new vn(i,s,Object.assign(Object.assign({},hn),n))}mt.define(vn);const yn="slotchange";class wn extends Ot{observe(e){e.addEventListener(yn,this)}disconnect(e){e.removeEventListener(yn,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}function Cn(e){return n(e)&&(e={property:e}),new wn(e)}mt.define(wn);const Sn=()=>null;function On(e){return void 0===e?Sn:t(e)?e:()=>e}function Tn(e,n,i){const s=t(e)?e:()=>e,r=On(n),o=On(i);return(e,t)=>s(e,t)?r(e,t):o(e,t)}const xn="$fast_context",Nn="$fast_parent_contexts",Bn="$defs",kn="$ref",An=new Map;class jn{constructor(e){this.customElementName=e,this.schemaMap=new Map,An.set(e,this.schemaMap)}addPath(e){var t,n,i;const s=this.getSplitPath(e.pathConfig.path);let r=this.schemaMap.get(e.rootPropertyName),o=null;switch(r||(this.addNewSchema(e.rootPropertyName),r=this.schemaMap.get(e.rootPropertyName)),e.childrenMap&&(o=this.getSchemaId(e.childrenMap.customElementName,e.childrenMap.attributeName),1===s.length&&(r.anyOf?r.anyOf.push({[kn]:o}):r.anyOf=[{[kn]:o}])),e.pathConfig.type){case"default":case"access":s.length>1&&(null===e.pathConfig.currentContext?this.addPropertiesToAnObject(r,s.slice(1),e.pathConfig.currentContext,o):((null===(t=r[Bn])||void 0===t?void 0:t[s[0]])||(r[Bn]=Object.assign(Object.assign({},r[Bn]),{[s[0]]:{}})),this.addPropertiesToAContext(r[Bn][s[0]],s.slice(1),e.pathConfig.currentContext,o)));break;case"repeat":if(this.addContext(r,s[s.length-1],e.pathConfig.currentContext,e.pathConfig.parentContext),s.length>2){let t=r;const i=!!e.pathConfig.parentContext;i&&(t=this.addPropertiesToAnObject(null===(n=r[Bn])||void 0===n?void 0:n[e.pathConfig.parentContext],s.slice(1,-1),e.pathConfig.parentContext,o)),this.addPropertiesToAnObject(t,i?s.slice(2):s.slice(1),e.pathConfig.currentContext,o,"array")}else if(s.length>1){let t;e.pathConfig.parentContext&&(t=null===(i=null==r?void 0:r[Bn])||void 0===i?void 0:i[e.pathConfig.parentContext]),this.addPropertiesToAnObject(null!=t?t:r,s.slice(1),e.pathConfig.currentContext,o,"array")}else r.type="array",r[kn]=this.getDefsPath(e.pathConfig.currentContext)}}getSchema(e){var t;return null!==(t=this.schemaMap.get(e))&&void 0!==t?t:null}getRootProperties(){return this.schemaMap.keys()}getSplitPath(e){return e.split(".")}getDefsPath(e){return`#/${Bn}/${e}`}getSchemaId(e,t){return`https://fast.design/schemas/${e}/${t}.json`}addNewSchema(e){this.schemaMap.set(e,{$schema:"https://json-schema.org/draft/2019-09/schema",$id:this.getSchemaId(this.customElementName,e),[Bn]:{}})}addPropertiesToAContext(e,t,n,i){e.type="object",e.properties&&!e.properties[t[0]]?e.properties[t[0]]={}:e.properties||(e.properties={[t[0]]:{}}),t.length>1?this.addPropertiesToAnObject(e.properties[t[0]],t.slice(1),n,i):i&&(e.properties[t[0]].anyOf?e.properties[t[0]].anyOf.push({[kn]:i}):e.properties[t[0]].anyOf=[{[kn]:i}])}addPropertiesToAnObject(e,t,n,i,s="object"){return e.type="object",e.properties&&!e.properties[t[0]]?e.properties[t[0]]={}:e.properties||(e.properties={[t[0]]:{}}),"object"===s&&t.length>1?this.addPropertiesToAnObject(e.properties[t[0]],t.slice(1),n,i,s):"array"===s?t.length>1?this.addPropertiesToAnObject(e.properties[t[0]],t.slice(1),n,i,s):this.addArrayToAnObject(e.properties[t[0]],n):(e.properties[t[0]].anyOf&&i?e.properties[t[0]].anyOf.push({[kn]:i}):i&&(e.properties[t[0]].anyOf=[{[kn]:i}]),e.properties[t[0]])}addArrayToAnObject(e,t){return e.type="array",e.items={[kn]:this.getDefsPath(t)},e.items}addContext(e,t,n,i){e[Bn][n]||(e[Bn][n]={[xn]:t,[Nn]:this.getParentContexts(e,i)})}getParentContexts(e,t,n=[]){var i;if(null===t)return[null,...n];const s=null===(i=null==e?void 0:e[Bn])||void 0===i?void 0:i[t][Nn];return this.getParentContexts(e,s[s.length-1],[t,...n])}}function Mn(e,t,n,i,s){if(function(e,t){return null!=e&&"object"==typeof e&&!t.has(e)}(e,s))if(s.add(e),Array.isArray(e)){n.visitArray(e,i);for(const r of e)Mn(r,t,n,i,s)}else{n.visitObject(e,i);for(const r in e){const o=e[r];n.visitProperty(e,r,o,i),t&&Mn(o,t,n,i,s)}}}const En=new WeakSet,$n={visitObject:i,visitArray:i,visitProperty(e,t,n){Reflect.defineProperty(e,t,{enumerable:!0,get:()=>(V.track(e,t),n),set(i){n!==i&&(n=i,V.notify(e,t))}})}};function Pn(e,t=!1){return Mn(e,t,$n,void 0,En),e}const Rn={deep:!1};function In(e,t=Rn){var i;n(t)&&(t={deep:!1,name:t});const s=Pn({value:e},t.deep),r=()=>s.value;return Object.defineProperty(r,"current",{get:()=>s.value,set:e=>s.value=e}),Object.defineProperty(r,"name",{value:null!==(i=t.name)&&void 0!==i?i:"SharedState"}),r.set=e=>s.value=e,r.asReadonly=()=>{const e=()=>s.value;return Object.defineProperty(e,"current",{get:()=>s.value}),Object.defineProperty(e,"name",{value:`${r.name} (Readonly)`}),Object.freeze(e)},r}function _n(e,i=Rn){var s;if(n(i)&&(i={deep:!1,name:i}),!t(e)){const t=e;e=()=>t}const r=new WeakMap,o=t=>{let n=r.get(t);return void 0===n&&(n=Pn({value:e()},i.deep),r.set(t,n)),n},a=e=>o(e).value;return Object.defineProperty(a,"name",{value:null!==(s=i.name)&&void 0!==s?s:"OwnedState"}),a.set=(e,t)=>o(e).value=t,a.asReadonly=()=>{const e=e=>o(e).value;return Object.defineProperty(e,"name",{value:`${a.name} (Readonly)`}),Object.freeze(e)},a}function Vn(e,t="ComputedState"){let n=null;const i=e({on:{setup(e){n=e}}}),s=Pn({value:null},!1),r=()=>s.value;let o;Object.defineProperty(r,"current",{get:()=>s.value}),Object.defineProperty(r,"name",{value:t});const a={handleChange(){s.value=o.observe(null)}};let l,c;if(o=V.binding(i,a),o.setMode(!1),n){const e={handleChange(){l&&l(),l=c.observe(null),s.value=i()}};c=V.binding(n,e),c.setMode(!1),l=c.observe(null)}return s.value=o.observe(null),r.dispose=()=>{l&&l(),c&&c.dispose(),o.dispose()},r.subscribe=e=>{o.subscribe(e)},r.unsubscribe=e=>{o.unsubscribe(e)},r}function Ln(e,t){const n=V.getNotifier(e);n.subscribe(t.subscriber),t.notifiers.push(n)}const Dn={visitProperty:i,visitObject:Ln,visitArray:Ln};function Hn(e,n){const i={notifiers:[],subscriber:t(n)?{handleChange:n}:n};return qt.enable(),Mn(e,!0,Dn,i,new Set),{dispose(){for(const e of i.notifiers)e.unsubscribe(i.subscriber)}}}const zn=l(),Fn=Object.freeze({getForInstance:zn.getForInstance,getByType:zn.getByType,define:e=>(zn.register({type:e}),e)});function Un(){return function(e){Fn.define(e)}}function Wn(e,t){const n=[];let i="";for(let s=0,r=e.length-1;s<r;++s){i+=e[s];let r=t[s];void 0!==Fn.getForInstance(r)&&(r=r.createCSS()),r instanceof me||r instanceof CSSStyleSheet?(""!==i.trim()&&(n.push(i),i=""),n.push(r)):i+=r}return i+=e[e.length-1],""!==i.trim()&&n.push(i),n}const qn=(e,...t)=>new me(Wn(e,t));class Qn{constructor(e){this.value=0===e.length?"":1===e.length?e[0]:new me(e)}createCSS(){return this.value}}Fn.define(Qn),qn.partial=(e,...t)=>new Qn(Wn(e,t));const Jn={[h.attribute]:b.setAttribute,[h.booleanAttribute]:b.setBooleanAttribute,[h.property]:(e,t,n)=>e[t]=n,[h.content]:function(e,t,n,i){if(null==n&&(n=""),function(e){return void 0!==e.create}(n)){e.textContent="";let t=e.$fastView;if(void 0===t)if(Mt(i)&&Mt(n)&&void 0!==i.bindingViewBoundaries[this.targetNodeId]&&i.hydrationStage!==cn){const e=i.bindingViewBoundaries[this.targetNodeId];t=n.hydrate(e.first,e.last)}else t=n.create();else e.$fastTemplate!==n&&(t.isComposed&&(t.remove(),t.unbind()),t=n.create());t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(i.source,i.context)):(t.isComposed=!0,t.bind(i.source,i.context),t.insertBefore(e),e.$fastView=t,e.$fastTemplate=n)}else{const t=e.$fastView;void 0!==t&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),e.textContent=n}},[h.tokenList]:function(e,t,n){var i;const s=`${this.id}-t`,r=null!==(i=e[s])&&void 0!==i?i:e[s]={v:0,cv:Object.create(null)},o=r.cv;let a=r.v;const l=e[t];if(null!=n&&n.length){const e=n.split(/\s+/);for(let t=0,n=e.length;t<n;++t){const n=e[t];""!==n&&(o[n]=a,l.add(n))}}if(r.v=a+1,0!==a){a-=1;for(const e in o)o[e]===a&&l.remove(e)}},[h.event]:()=>{}};class Kn{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=h.content}createHTML(e){return gt.interpolation(e(this))}createBehavior(){var t;if(null===this.updateTarget){const n=Jn[this.aspectType],i=null!==(t=this.dataBinding.policy)&&void 0!==t?t:this.policy;if(!n)throw r.error(e.unsupportedBindingBehavior);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,n)}return this}bind(e){var t;const n=e.targets[this.targetNodeId];switch(this.aspectType){case h.event:n[this.data]=e,n.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case h.content:e.onUnbind(this);default:{const i=null!==(t=n[this.data])&&void 0!==t?t:n[this.data]=this.dataBinding.createObserver(this,this);i.target=n,i.controller=e;const s=i.bind(e);if(e._skipAttrUpdates&&(this.aspectType===h.attribute||this.aspectType===h.booleanAttribute))break;this.updateTarget(n,this.targetAspect,s,e);break}}}unbind(e){const t=e.targets[this.targetNodeId].$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){z.setEvent(e);const n=this.dataBinding.evaluate(t.source,t.context);z.setEvent(null),!0!==n&&e.preventDefault()}}handleChange(e,t){const n=t.controller;if(!n.isBound)return;const i=t.target;this.updateTarget(i,this.targetAspect,t.bind(n),n)}}mt.define(Kn,{aspected:!0});const Xn=(e,t)=>`${e}.${t}`,Gn={},Yn={index:0,node:null};function Zn(t){t.startsWith("fast-")||r.warn(e.hostBindingWithoutHost,{name:t})}const ei=new Proxy(document.createElement("div"),{get(e,n){Zn(n);const i=Reflect.get(e,n);return t(i)?i.bind(e):i},set:(e,t,n)=>(Zn(t),Reflect.set(e,t,n))});class ti{constructor(e,t,n){this.fragment=e,this.directives=t,this.policy=n,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,n,i,s){var r,o;this.nodeIds.has(n)||(this.nodeIds.add(n),this.addTargetDescriptor(t,n,i)),e.id=null!==(r=e.id)&&void 0!==r?r:ft(),e.targetNodeId=n,e.targetTagName=s,e.policy=null!==(o=e.policy)&&void 0!==o?o:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,n){const i=this.descriptors;if("r"===t||"h"===t||i[t])return;if(!i[e]){const t=e.lastIndexOf("."),n=e.substring(0,t),i=parseInt(e.substring(t+1),10);this.addTargetDescriptor(n,e,i)}let s=Gn[t];if(!s){const i=`_${t}`;Gn[t]=s={get(){var t;return null!==(t=this[i])&&void 0!==t?t:this[i]=this[e].childNodes[n]}}}i[t]=s}createView(e){const t=this.fragment.cloneNode(!0),n=Object.create(this.proto);n.r=t,n.h=null!=e?e:ei;for(const e of this.nodeIds)Reflect.get(n,e);return new rn(t,this.factories,n)}}function ni(e,t,n,i,s,r=!1){const o=n.attributes,a=e.directives;for(let l=0,c=o.length;l<c;++l){const d=o[l],h=d.value,u=bt.parse(h,a);let p=null;null===u?r&&(p=new Kn(ee(()=>h,e.policy)),mt.assignAspect(p,d.name)):p=oi.aggregate(u,e.policy),null!==p&&(n.removeAttributeNode(d),l--,c--,e.addFactory(p,t,i,s,n.tagName))}}function ii(e,t,n){let i=0,s=t.firstChild;for(;s;){const t=si(e,n,s,i);s=t.node,i=t.index}}function si(e,t,i,s){const r=Xn(t,s);switch(i.nodeType){case 1:ni(e,t,i,r,s),ii(e,i,r);break;case 3:return function(e,t,i,s,r){const o=bt.parse(t.textContent,e.directives);if(null===o)return Yn.node=t.nextSibling,Yn.index=r+1,Yn;let a,l=a=t;for(let t=0,c=o.length;t<c;++t){const c=o[t];0!==t&&(r++,s=Xn(i,r),a=l.parentNode.insertBefore(document.createTextNode(""),l.nextSibling)),n(c)?a.textContent=c:(a.textContent=" ",mt.assignAspect(c),e.addFactory(c,i,s,r,null)),l=a}return Yn.index=r+1,Yn.node=l.nextSibling,Yn}(e,i,t,r,s);case 8:{const n=bt.parse(i.data,e.directives);null!==n&&e.addFactory(oi.aggregate(n),t,r,s,null);break}}return Yn.index=s+1,Yn.node=i.nextSibling,Yn}const ri="TEMPLATE",oi={compile(e,t,i=b.policy){let s;if(n(e)){s=document.createElement(ri),s.innerHTML=i.createHTML(e);const t=s.content.firstElementChild;null!==t&&t.tagName===ri&&(s=t)}else s=e;s.content.firstChild||s.content.lastChild||s.content.appendChild(document.createComment(""));const r=document.adoptNode(s.content),o=new ti(r,t,i);var a,l;return ni(o,"",s,"h",0,!0),a=r.firstChild,l=t,(a&&8===a.nodeType&&null!==bt.parse(a.data,l)||1===r.childNodes.length&&Object.keys(t).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),ii(o,r,"r"),Yn.node=null,o.freeze()},setDefaultStrategy(e){this.compile=e},aggregate(e,t=b.policy){if(1===e.length)return e[0];let i,s,r=!1;const o=e.length,a=e.map(e=>n(e)?()=>e:(i=e.sourceAspect||i,r=r||e.dataBinding.isVolatile,s=s||e.dataBinding.policy,e.dataBinding.evaluate)),l=new Kn(ne((e,t)=>{let n="";for(let i=0;i<o;++i)n+=a[i](e,t);return n},null!=s?s:t,r));return mt.assignAspect(l,i),l}},ai=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,li=Object.create(null);class ci{constructor(e,t=li){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const n in t)e(t[n]);return this.html}}function di(e,t,n,i=mt.getForInstance(e)){if(i.aspected){const n=ai.exec(t);null!==n&&mt.assignAspect(e,n[2])}return e.createHTML(n)}ci.empty=new ci(""),mt.define(ci);class hi{constructor(e,t={},n){this.policy=n,this.result=null,this.html=e,this.factories=t}compile(){return null===this.result&&(this.result=oi.compile(this.html,this.factories,this.policy)),this.result}inline(){return new ci(n(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw r.error(e.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw r.error(e.onlySetTemplatePolicyOnce);return this.policy=t,this}render(e,t,n){const i=this.create(n);return i.bind(e),i.appendTo(t),i}create(e){return this.compile().createView(e)}static create(e,n,i){let s="";const r=Object.create(null),o=e=>{var t;const n=null!==(t=e.id)&&void 0!==t?t:e.id=ft();return r[n]=e,n};for(let i=0,r=e.length-1;i<r;++i){const r=e[i];let a,l=n[i];if(s+=r,t(l))l=new Kn(ne(l));else if(l instanceof Y)l=new Kn(l);else if(!(a=mt.getForInstance(l))){const e=l;l=new Kn(ee(()=>e))}s+=di(l,r,o,a)}return new hi(s+e[e.length-1],r,i)}}d(hi);const ui=(t,...n)=>{if(Array.isArray(t)&&Array.isArray(t.raw))return hi.create(t,n);throw r.error(e.directCallToHTMLTagNotAllowed)};ui.partial=e=>new ci(e);class pi{constructor(e){this.directive=e,this.location=null,this.controller=null,this.view=null,this.data=null,this.dataBindingObserver=e.dataBinding.createObserver(this,e),this.templateBindingObserver=e.templateBinding.createObserver(this,e)}bind(e){if(this.location=e.targets[this.directive.targetNodeId],this.controller=e,this.data=this.dataBindingObserver.bind(e),this.template=this.templateBindingObserver.bind(e),e.onUnbind(this),Mt(this.template)&&Mt(e)&&e.hydrationStage!==cn&&!this.view){const t=e.bindingViewBoundaries[this.directive.targetNodeId];t&&(this.view=this.template.hydrate(t.first,t.last),this.bindView(this.view))}else this.refreshView()}unbind(e){const t=this.view;null!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}handleChange(e,t){this.controller.isBound&&(t===this.dataBindingObserver&&(this.data=this.dataBindingObserver.bind(this.controller)),(this.directive.templateBindingDependsOnData||t===this.templateBindingObserver)&&(this.template=this.templateBindingObserver.bind(this.controller)),this.refreshView())}bindView(e){e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.data)):(e.isComposed=!0,e.bind(this.data),e.insertBefore(this.location),e.$fastTemplate=this.template)}refreshView(){let e=this.view;const t=this.template;null===e?(this.view=e=t.create(),this.view.context.parent=this.controller.source,this.view.context.parentContext=this.controller.context):e.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),this.view=e=t.create(),this.view.context.parent=this.controller.source,this.view.context.parentContext=this.controller.context),this.bindView(e)}}class fi{constructor(e,t,n){this.dataBinding=e,this.templateBinding=t,this.templateBindingDependsOnData=n}createHTML(e){return gt.comment(e(this))}createBehavior(){return new pi(this)}}mt.define(fi);const gi=new Map,bi=ui`
1
+ var e;!function(e){e[e.needsArrayObservation=1101]="needsArrayObservation",e[e.onlySetDOMPolicyOnce=1201]="onlySetDOMPolicyOnce",e[e.bindingInnerHTMLRequiresTrustedTypes=1202]="bindingInnerHTMLRequiresTrustedTypes",e[e.twoWayBindingRequiresObservables=1203]="twoWayBindingRequiresObservables",e[e.hostBindingWithoutHost=1204]="hostBindingWithoutHost",e[e.unsupportedBindingBehavior=1205]="unsupportedBindingBehavior",e[e.directCallToHTMLTagNotAllowed=1206]="directCallToHTMLTagNotAllowed",e[e.onlySetTemplatePolicyOnce=1207]="onlySetTemplatePolicyOnce",e[e.cannotSetTemplatePolicyAfterCompilation=1208]="cannotSetTemplatePolicyAfterCompilation",e[e.blockedByDOMPolicy=1209]="blockedByDOMPolicy",e[e.invalidHydrationAttributeMarker=1210]="invalidHydrationAttributeMarker",e[e.duplicateRenderInstruction=1211]="duplicateRenderInstruction",e[e.missingElementDefinition=1401]="missingElementDefinition",e[e.noRegistrationForContext=1501]="noRegistrationForContext",e[e.noFactoryForResolver=1502]="noFactoryForResolver",e[e.invalidResolverStrategy=1503]="invalidResolverStrategy",e[e.cannotAutoregisterDependency=1504]="cannotAutoregisterDependency",e[e.cannotResolveKey=1505]="cannotResolveKey",e[e.cannotConstructNativeFunction=1506]="cannotConstructNativeFunction",e[e.cannotJITRegisterNonConstructor=1507]="cannotJITRegisterNonConstructor",e[e.cannotJITRegisterIntrinsic=1508]="cannotJITRegisterIntrinsic",e[e.cannotJITRegisterInterface=1509]="cannotJITRegisterInterface",e[e.invalidResolver=1510]="invalidResolver",e[e.invalidKey=1511]="invalidKey",e[e.noDefaultResolver=1512]="noDefaultResolver",e[e.cyclicDependency=1513]="cyclicDependency",e[e.connectUpdateRequiresController=1514]="connectUpdateRequiresController"}(e||(e={}));const t=e=>"function"==typeof e,n=e=>"string"==typeof e,i=()=>{},s=Object.create(null),r={warn(e,t){},error:(e,t)=>new Error(`Error ${e}`),addMessages(e){Object.assign(s,e)}};function o(){return s}const a=Object.freeze([]);function l(){const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t),getForInstance(t){if(null!=t)return e.get(t.constructor)}})}function c(){const e=new WeakMap;return function(t){let n=e.get(t);if(void 0===n){let i=Reflect.getPrototypeOf(t);for(;void 0===n&&null!==i;)n=e.get(i),i=Reflect.getPrototypeOf(i);n=void 0===n?[]:n.slice(0),e.set(t,n)}return n}}function d(e){e.prototype.toJSON=i}const h=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),u=e=>e,f=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-element",{createHTML:u}):{createHTML:u};let p=Object.freeze({createHTML:e=>f.createHTML(e),protect:(e,t,n,i)=>i});const g=p,b=Object.freeze({get policy(){return p},setPolicy(t){if(p!==g)throw r.error(e.onlySetDOMPolicyOnce);p=t},setAttribute(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)}}),v=/^[\u0000-\u0020\u007F]+|[\u0000-\u0020\u007F]+$/g,m=/[\u0000-\u0020\u007F]+/g,y=/^(?:javascript|vbscript|data):/;function w(e){return e.replace(v,"")}function C(e){try{return decodeURIComponent(e)}catch(t){return e}}function S(e){const t=w(e);return function(e){let t=w(e);for(let e=0;e<3;++e){const e=C(t);if(e===t)break;t=w(e)}return t=t.replace(m,"").toLowerCase(),y.test(t)}(t)?"":t}function O(e,t,i,s){return(e,t,i,...r)=>{n(i)&&(i=S(i)),s(e,t,i,...r)}}function x(t,n,i,s){throw r.error(e.blockedByDOMPolicy,{aspectName:i,tagName:null!=t?t:"text"})}const T={onabort:x,onauxclick:x,onbeforeinput:x,onbeforematch:x,onblur:x,oncancel:x,oncanplay:x,oncanplaythrough:x,onchange:x,onclick:x,onclose:x,oncontextlost:x,oncontextmenu:x,oncontextrestored:x,oncopy:x,oncuechange:x,oncut:x,ondblclick:x,ondrag:x,ondragend:x,ondragenter:x,ondragleave:x,ondragover:x,ondragstart:x,ondrop:x,ondurationchange:x,onemptied:x,onended:x,onerror:x,onfocus:x,onformdata:x,oninput:x,oninvalid:x,onkeydown:x,onkeypress:x,onkeyup:x,onload:x,onloadeddata:x,onloadedmetadata:x,onloadstart:x,onmousedown:x,onmouseenter:x,onmouseleave:x,onmousemove:x,onmouseout:x,onmouseover:x,onmouseup:x,onpaste:x,onpause:x,onplay:x,onplaying:x,onprogress:x,onratechange:x,onreset:x,onresize:x,onscroll:x,onsecuritypolicyviolation:x,onseeked:x,onseeking:x,onselect:x,onslotchange:x,onstalled:x,onsubmit:x,onsuspend:x,ontimeupdate:x,ontoggle:x,onvolumechange:x,onwaiting:x,onwebkitanimationend:x,onwebkitanimationiteration:x,onwebkitanimationstart:x,onwebkittransitionend:x,onwheel:x},N={elements:{a:{[h.attribute]:{href:O},[h.property]:{href:O}},area:{[h.attribute]:{href:O},[h.property]:{href:O}},button:{[h.attribute]:{formaction:O},[h.property]:{formAction:O}},embed:{[h.attribute]:{src:x},[h.property]:{src:x}},form:{[h.attribute]:{action:O},[h.property]:{action:O}},frame:{[h.attribute]:{src:O},[h.property]:{src:O}},iframe:{[h.attribute]:{src:O},[h.property]:{src:O,srcdoc:x}},input:{[h.attribute]:{formaction:O},[h.property]:{formAction:O}},link:{[h.attribute]:{href:x},[h.property]:{href:x}},object:{[h.attribute]:{codebase:x,data:x},[h.property]:{codeBase:x,data:x}},script:{[h.attribute]:{src:x,text:x},[h.property]:{src:x,text:x,innerText:x,textContent:x}},style:{[h.property]:{innerText:x,textContent:x}}},aspects:{[h.attribute]:Object.assign({},T),[h.property]:Object.assign({innerHTML:x},T),[h.event]:Object.assign({},T)}};function B(e,t){const n={};for(const i in t){const s=e[i],r=t[i];switch(s){case null:break;case void 0:n[i]=r;break;default:n[i]=s}}for(const t in e)t in n||(n[t]=e[t]);return Object.freeze(n)}function k(e,t){const n={};for(const i in t){const s=e[i],r=t[i];switch(s){case null:break;case void 0:n[i]=B(r,{});break;default:n[i]=B(s,r)}}for(const t in e)t in n||(n[t]=B(e[t],{}));return Object.freeze(n)}function A(e,t){const n={};for(const i in t){const s=e[i],r=t[i];switch(s){case null:break;case void 0:n[i]=k(r,{});break;default:n[i]=k(s,r)}}for(const t in e)t in n||(n[t]=k(e[t],{}));return Object.freeze(n)}function $(e,t,n,i,s){const r=e[n];if(r){const e=r[i];if(e)return e(t,n,i,s)}}const M=Object.freeze({create(e={}){var t,n;const i=null!==(t=e.trustedType)&&void 0!==t?t:function(){const e=e=>e;return globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-element",{createHTML:e}):{createHTML:e}}(),s=(r=null!==(n=e.guards)&&void 0!==n?n:{},o=N,Object.freeze({elements:r.elements?A(r.elements,o.elements):o.elements,aspects:r.aspects?k(r.aspects,o.aspects):o.aspects}));var r,o;return Object.freeze({createHTML:e=>i.createHTML(e),protect(e,t,n,i){var r;const o=(null!=e?e:"").toLowerCase(),a=s.elements[o];if(a){const s=$(a,e,t,n,i);if(s)return s}return null!==(r=$(s.aspects,e,t,n,i))&&void 0!==r?r:i}})}});class j{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}subscribe(e){const t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else{-1===t.indexOf(e)&&t.push(e)}}unsubscribe(e){const t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}notify(e){const t=this.spillover,n=this.subject;if(void 0===t){const t=this.sub1,i=this.sub2;void 0!==t&&t.handleChange(n,e),void 0!==i&&i.handleChange(n,e)}else for(let i=0,s=t.length;i<s;++i)t[i].handleChange(n,e)}}class E{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,n;null===(t=this.subscribers[e])||void 0===t||t.notify(e),null===(n=this.subjectSubscribers)||void 0===n||n.notify(e)}subscribe(e,t){var n,i;let s;s=t?null!==(n=this.subscribers[t])&&void 0!==n?n:this.subscribers[t]=new j(this.subject):null!==(i=this.subjectSubscribers)&&void 0!==i?i:this.subjectSubscribers=new j(this.subject),s.subscribe(e)}unsubscribe(e,t){var n,i;t?null===(n=this.subscribers[t])||void 0===n||n.unsubscribe(e):null===(i=this.subjectSubscribers)||void 0===i||i.unsubscribe(e)}}const P=[],R=[],I=globalThis.requestAnimationFrame;let V=!0;function _(){if(R.length)throw R.shift()}function L(e){try{e.call()}catch(e){if(!V)throw P.length=0,e;R.push(e),setTimeout(_,0)}}function D(){let e=0;for(;e<P.length;)if(L(P[e]),e++,e>1024){for(let t=0,n=P.length-e;t<n;t++)P[t]=P[t+e];P.length-=e,e=0}P.length=0}function H(e){P.push(e),P.length<2&&(V?I(D):D())}const z=Object.freeze({enqueue:H,next:()=>new Promise(H),process:D,setMode:e=>V=e}),F=Object.freeze({unknown:void 0,coupled:1}),U=(()=>{const i=z.enqueue,s=/(:|&&|\|\||if|\?\.)/,o=new WeakMap;let a,l=t=>{throw r.error(e.needsArrayObservation)};function h(e){var t;let n=null!==(t=e.$fastController)&&void 0!==t?t:o.get(e);return void 0===n&&(Array.isArray(e)?n=l(e):o.set(e,n=new E(e))),n}const u=c();class f{constructor(e){this.name=e,this.field=`_${e}`,this.callback=`${e}Changed`}getValue(e){return void 0!==a&&a.watch(e,this.name),e[this.field]}setValue(e,n){const i=this.field,s=e[i];if(s!==n){e[i]=n;const r=e[this.callback];t(r)&&r.call(e,s,n),h(e).notify(this.name)}}}class p extends j{constructor(e,t,n=!1){super(e,t),this.expression=e,this.isVolatileBinding=n,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(e){this.isAsync=this.needsQueue=e}bind(e){this.controller=e;const t=this.observe(e.source,e.context);return!e.isBound&&this.requiresUnbind(e)&&e.onUnbind(this),t}requiresUnbind(e){return e.sourceLifetime!==F.coupled||this.first!==this.last||this.first.propertySource!==e.source}unbind(e){this.dispose()}observe(e,t){this.needsRefresh&&null!==this.last&&this.dispose();const n=a;let i;a=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;try{i=this.expression(e,t)}finally{a=n}return i}disconnect(){this.dispose()}dispose(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(e,t){const n=this.last,i=h(e),s=null===n?this.first:{};if(s.propertySource=e,s.propertyName=t,s.notifier=i,i.subscribe(this,t),null!==n){if(!this.needsRefresh){let t;a=void 0,t=n.propertySource[n.propertyName],a=this,e===t&&(this.needsRefresh=!0)}n.next=s}this.last=s}handleChange(){this.needsQueue?(this.needsQueue=!1,i(this)):this.isAsync||this.call()}call(){null!==this.last&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let e=this.first;for(;void 0!==e;)yield e,e=e.next}}return d(p),Object.freeze({setArrayObserverFactory(e){l=e},getNotifier:h,track(e,t){a&&a.watch(e,t)},trackVolatile(){a&&(a.needsRefresh=!0)},notify(e,t){h(e).notify(t)},defineProperty(e,t){n(t)&&(t=new f(t)),u(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get(){return t.getValue(this)},set(e){t.setValue(this,e)}})},getAccessors:u,binding(e,t,n=this.isVolatileBinding(e)){return new p(e,t,n)},isVolatileBinding:e=>s.test(e.toString())})})();function W(e,t){U.defineProperty(e,t)}function q(e,t,n){return Object.assign({},n,{get(){return U.trackVolatile(),n.get.apply(this)}})}const Q=(()=>{let e=null;return{get:()=>e,set(t){e=t}}})(),J=Object.freeze({default:{index:0,length:0,get event(){return J.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent:()=>Q.get(),setEvent(e){Q.set(e)}}),K="boolean",X="reflect",G=Object.freeze({locate:c()}),Y={toView:e=>e?"":null,fromView:e=>!!e},Z={toView:e=>"boolean"==typeof e?e.toString():"",fromView:e=>[null,void 0,void 0].includes(e)?null:Y.fromView(e)};function ee(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}const te={toView(e){const t=ee(e);return t?t.toString():t},fromView:ee};class ne{constructor(e,t,n=t.toLowerCase(),i=X,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=n,this.mode=i,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i===K&&void 0===s&&(this.converter=Y)}setValue(e,t){const n=e[this.fieldName],i=this.converter;void 0!==i&&(t=i.fromView(t)),n!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](n,t),e.$fastController.notify(this.name))}getValue(e){return U.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.mode===K?this.setValue(e,null!==t):this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,n=this.guards;n.has(e)||"fromView"===t||z.enqueue((()=>{n.add(e);const i=e[this.fieldName];switch(t){case X:{const t=this.converter;b.setAttribute(e,this.attribute,void 0!==t?t.toView(i):i);break}case K:b.setBooleanAttribute(e,this.attribute,i)}n.delete(e)}))}static collect(e,...t){const i=[];t.push(G.locate(e));for(let s=0,r=t.length;s<r;++s){const r=t[s];if(void 0!==r)for(let t=0,s=r.length;t<s;++t){const s=r[t];n(s)?i.push(new ne(e,s)):i.push(new ne(e,s.property,s.attribute,s.mode,s.converter))}}return i}}function ie(e,t){let n;function i(e,t){arguments.length>1&&(n.property=t),G.locate(e.constructor).push(n)}return arguments.length>1?(n={},void i(e,t)):(n=void 0===e?{}:e,i)}class se{constructor(e,t,n=!1){this.evaluate=e,this.policy=t,this.isVolatile=n}}class re extends se{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}function oe(e,t){return new re(e,t)}d(re);class ae extends se{createObserver(e){return U.binding(this.evaluate,e,this.isVolatile)}}function le(e,t,n=U.isVolatileBinding(e)){return new ae(e,t,n)}function ce(e,t){const n=new ae(e);return n.options=t,n}function de(e){return t(e)?le(e):e instanceof se?e:oe((()=>e))}const he=Object.create(null),ue=Object.freeze({subscribe(e,t){const n=he[e];n?n instanceof Set?n.add(t):he[e]=new Set([n,t]):he[e]=t},unsubscribe(e,t){const n=he[e];n&&n instanceof Set?n.delete(t):he[e]=void 0},send(e){const t=he[e];t&&(t instanceof Set?t.forEach((n=>n.handleChange(t,e))):t.handleChange(this,e))}});class fe{constructor(e,t){this.dataBinding=e,this.subscriber=t,this.isNotBound=!0}bind(e){return this.isNotBound&&(ue.subscribe(this.getSignal(e),this),e.onUnbind(this),this.isNotBound=!1),this.dataBinding.evaluate(e.source,e.context)}unbind(e){this.isNotBound=!0,ue.unsubscribe(this.getSignal(e),this)}handleChange(){this.subscriber.handleChange(this.dataBinding.evaluate,this)}getSignal(e){const t=this.dataBinding.options;return n(t)?t:t(e.source,e.context)}}d(fe);class pe extends se{createObserver(e){return new fe(this,e)}}function ge(e,t,n){const i=new pe(e,n);return i.options=t,i}const be={fromView:e=>e};let ve={determineChangeEvent:()=>"change"};const me=Object.freeze({configure(e){ve=e}});class ye{constructor(e,t,n){this.directive=e,this.subscriber=t,this.dataBinding=n,this.isNotBound=!0,this.notifier=U.binding(n.evaluate,this,n.isVolatile)}bind(e){var t;return this.changeEvent||(this.changeEvent=null!==(t=this.dataBinding.options.changeEvent)&&void 0!==t?t:ve.determineChangeEvent(this.directive,this.target)),this.isNotBound&&(this.target.addEventListener(this.changeEvent,this),e.onUnbind(this),this.isNotBound=!1),this.notifier.bind(e)}unbind(e){this.isNotBound=!0,this.target.removeEventListener(this.changeEvent,this)}handleChange(e,t){this.subscriber.handleChange(this.dataBinding.evaluate,this)}handleEvent(t){const n=this.directive,i=t.currentTarget,s=this.notifier.last;if(!s)return void r.warn(e.twoWayBindingRequiresObservables);let o;switch(n.aspectType){case 1:o=i.getAttribute(n.targetAspect);break;case 2:o=i.hasAttribute(n.targetAspect);break;case 4:o=i.innerText;break;default:o=i[n.targetAspect]}s.propertySource[s.propertyName]=this.dataBinding.options.fromView(o)}}d(ye);class we extends se{createObserver(e,t){return new ye(t,e,this)}}function Ce(e,t,i,s=U.isVolatileBinding(e)){n(t)&&(t={changeEvent:t}),t?t.fromView||(t.fromView=be.fromView):t=be;const r=new we(e,i,s);return r.options=t,r}let Se;function Oe(e){return e.reduce(((e,t)=>(t instanceof xe?e.push(...Oe(t.styles)):e.push(t),e)),[])}class xe{get strategy(){return null===this._strategy&&(Se||xe.setDefaultStrategy(xe.supportsAdoptedStyleSheets?function(){const e=new Map;return class{constructor(t){this.sheets=t.map((t=>{if(t instanceof CSSStyleSheet)return t;let n=e.get(t);return void 0===n&&(n=new CSSStyleSheet,n.replaceSync(t),e.set(t,n)),n}))}addStylesTo(e){const t=e;t.adoptedStyleSheets=[...t.adoptedStyleSheets,...this.sheets]}removeStylesFrom(e){const t=e;t.adoptedStyleSheets=t.adoptedStyleSheets.filter((e=>-1===this.sheets.indexOf(e)))}}}():class{constructor(e){this.styles=e,this.styleClass="fast-"+ ++Te}addStylesTo(e){const t=e===document?document.body:e;for(let e=0;e<this.styles.length;e++){const n=document.createElement("style");n.innerHTML=this.styles[e],n.className=this.styleClass,t.append(n)}}removeStylesFrom(e){const t=e===document?document.body:e,n=t.querySelectorAll(`.${this.styleClass}`);for(let e=0,i=n.length;e<i;++e)t.removeChild(n[e])}}),this.withStrategy(Se)),this._strategy}constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withStrategy(e){return this._strategy=new e(Oe(this.styles)),this}static setDefaultStrategy(e){Se=e}static normalize(e){return void 0===e?void 0:Array.isArray(e)?new xe(e):e instanceof xe?e:new xe([e])}}xe.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;let Te=0;function Ne(e,t,n,i){return new(n||(n=Promise))((function(s,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))}var Be;"function"==typeof SuppressedError&&SuppressedError;const ke={mode:"open"},Ae={},$e=new Set,Me=l(),je=new WeakMap,Ee=new WeakMap,Pe=new WeakMap,Re=new WeakMap,Ie=new WeakMap,Ve=new WeakMap;function _e(e=customElements){if(e===customElements)return Fe.isRegistered;let t=Re.get(e);return t||(t={},Re.set(e,t)),t}function Le(e,t){var n,i;if(Ee.delete(e),void 0===e.template&&void 0!==t&&(e.template=t,null===(i=null===(n=e.lifecycleCallbacks)||void 0===n?void 0:n.templateDidUpdate)||void 0===i||i.call(n,e.name)),void 0!==e.template)return Pe.delete(e),je.delete(e),e.template}function De(e,t=e.registry,n){if(!(null==n?void 0:n.length))return;const i=e;let s=Ie.get(i);if(!(null==s?void 0:s.has(t))){void 0===s&&(s=new WeakSet,Ie.set(i,s)),s.add(t);for(const t of n)t(e)}}function He(e){var t;return null!==(t=Ve.get(e))&&void 0!==t?t:null}function ze(e){if(void 0!==e.template)return Pe.delete(e),e.template;const t=Ee.get(e);if(t)return t;const n=je.get(e);if(!n)return;let i;Pe.delete(e);try{i=n(e)}catch(t){throw Pe.set(e,t),t}if("function"==typeof(null==(s=i)?void 0:s.then)){const t=Promise.resolve(i).then((t=>Le(e,t))).catch((t=>{throw Ee.delete(e),Pe.set(e,t),t}));return Ee.set(e,t),t}var s;return Le(e,i)}class Fe{get isDefined(){return this.platformDefined}constructor(e,i=e.definition){var s,r;this.platformDefined=!1,n(i)&&(i={name:i}),this.type=e,this.name=i.name,this.registry=null!==(s=i.registry)&&void 0!==s?s:customElements,r=i.template,t(r)?je.set(this,i.template):this.template=i.template;const o=e.prototype,a=ne.collect(e,i.attributes),l=new Array(a.length),c={},d={};for(let e=0,t=a.length;e<t;++e){const t=a[e];l[e]=t.attribute,c[t.name]=t,d[t.attribute]=t,U.defineProperty(o,t)}Reflect.defineProperty(e,"observedAttributes",{value:l,enumerable:!0}),this.attributes=a,this.propertyLookup=c,this.attributeLookup=d,this.shadowOptions=void 0===i.shadowOptions?ke:null===i.shadowOptions?void 0:Object.assign(Object.assign({},ke),i.shadowOptions),this.elementOptions=void 0===i.elementOptions?Ae:Object.assign(Object.assign({},Ae),i.elementOptions),this.styles=xe.normalize(i.styles),this.schema=i.schema,Me.register(this);const h=_e(this.registry);Object.prototype.hasOwnProperty.call(h,this.name)||U.defineProperty(h,this.name),h[this.name]=this.type}define(e=this.registry,t){var n,i;const s=this.type;if(!e.get(this.name)){if(De(this,e,t),void 0===this.template&&je.has(this))return Promise.resolve().then((()=>ze(this))).then((t=>{var n,i;void 0===t||e.get(this.name)||(this.platformDefined=!0,e.define(this.name,s,this.elementOptions),null===(i=null===(n=this.lifecycleCallbacks)||void 0===n?void 0:n.elementDidDefine)||void 0===i||i.call(n,this.name))})).catch((e=>{!function(e,t){const n=e;void 0!==t?Pe.set(n,t):Pe.delete(n)}(this,e),U.notify(this,"template")})),this;this.platformDefined=!0,e.define(this.name,s,this.elementOptions),null===(i=null===(n=this.lifecycleCallbacks)||void 0===n?void 0:n.elementDidDefine)||void 0===i||i.call(n,this.name)}return this}static compose(e,t){const n=$e.has(e)||Me.getByType(e)?new Be(class extends e{},t):new Be(e,t);return Promise.resolve(n)}static registerBaseType(e){$e.add(e)}}Be=Fe,Fe.isRegistered={},Fe.getByType=Me.getByType,Fe.getForInstance=Me.getForInstance,Fe.register=(e,...t)=>Ne(void 0,[e,...t],void 0,(function*(e,t=customElements){const n=_e(t);return Object.prototype.hasOwnProperty.call(n,e)||U.defineProperty(n,e),new Promise((t=>{if(n[e])return void t(n[e]);const i=U.getNotifier(n),s={handleChange:()=>{const r=n[e];r&&(i.unsubscribe(s,e),t(r))}};i.subscribe(s,e)}))})),U.defineProperty(Fe.prototype,"template");const Ue={bubbles:!0,composed:!0,cancelable:!0},We="isConnected",qe=new WeakMap,Qe=Symbol("fast-late-attribute-observer");function Je(e){var t,n;return null!==(n=null!==(t=e.shadowRoot)&&void 0!==t?t:qe.get(e))&&void 0!==n?n:null}let Ke;var Xe;!function(e){e[e.connecting=0]="connecting",e[e.connected=1]="connected",e[e.disconnecting=2]="disconnecting",e[e.disconnected=3]="disconnected"}(Xe||(Xe={}));class Ge{get isConnected(){return U.track(this,We),this.stage===Xe.connected}get context(){var e,t;return null!==(t=null===(e=this.view)||void 0===e?void 0:e.context)&&void 0!==t?t:J.default}get isBound(){var e,t;return null!==(t=null===(e=this.view)||void 0===e?void 0:e.isBound)&&void 0!==t&&t}get sourceLifetime(){var e;return null===(e=this.view)||void 0===e?void 0:e.sourceLifetime}get template(){var e;if(null===this._template){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=null!==(e=t.template)&&void 0!==e?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get shadowOptions(){return this._shadowRootOptions}set shadowOptions(e){if(void 0===this._shadowRootOptions&&void 0!==e){this._shadowRootOptions=e;let t=this.source.shadowRoot;t?this.hasExistingShadowRoot=!0:(t=this.source.attachShadow(e),"closed"===e.mode&&qe.set(this.source,t))}}get mainStyles(){var e;if(null===this._mainStyles){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=null!==(e=t.styles)&&void 0!==e?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(null!==this._mainStyles&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}constructor(e,t){this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this.isPrerendered=new Promise((e=>{this._resolvePrerendered=e})),this.isHydrated=new Promise((e=>{this._resolveHydrated=e})),this._template=null,this.stage=Xe.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this._notifier=new E(e),this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;const n=Reflect.getPrototypeOf(e),i=null===n?[]:U.getAccessors(n);if(i.length>0){const t=this.boundObservables=Object.create(null);for(let n=0,s=i.length;n<s;++n){const s=i[n].name,r=e[s];void 0!==r&&(delete e[s],t[s]=r)}0===Object.keys(t).length&&(this.boundObservables=null)}this.captureBoundObservables()}get subject(){return this._notifier.subject}notify(e){this._notifier.notify(e)}subscribe(e,t){this._notifier.subscribe(e,t)}unsubscribe(e,t){this._notifier.unsubscribe(e,t)}onUnbind(e){var t;null===(t=this.view)||void 0===t||t.onUnbind(e)}addBehavior(e){var t,n;const i=null!==(t=this.behaviors)&&void 0!==t?t:this.behaviors=new Map,s=null!==(n=i.get(e))&&void 0!==n?n:0;0===s?(i.set(e,1),e.addedCallback&&e.addedCallback(this),!e.connectedCallback||this.guardBehaviorConnection||this.stage!==Xe.connected&&this.stage!==Xe.connecting||e.connectedCallback(this)):i.set(e,s+1)}removeBehavior(e,t=!1){const n=this.behaviors;if(null===n)return;const i=n.get(e);void 0!==i&&(1===i||t?(n.delete(e),e.disconnectedCallback&&this.stage!==Xe.disconnected&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):n.set(e,i-1))}addStyles(e){var t;if(!e)return;const n=this.source;if(e instanceof HTMLElement){(null!==(t=Je(n))&&void 0!==t?t:this.source).append(e)}else e.isAttachedTo(n)||e.addStylesTo(n)}removeStyles(e){var t;if(!e)return;const n=this.source;if(e instanceof HTMLElement){(null!==(t=Je(n))&&void 0!==t?t:n).removeChild(e)}else e.isAttachedTo(n)&&e.removeStylesFrom(n)}connect(){this.stage===Xe.disconnected&&(this.stage=Xe.connecting,this.captureBoundObservables(),this.syncLateAttributes(),this.observeLateAttributes(),this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):null!==this.view&&this.view.bind(this.source),this.stage=Xe.connected,U.notify(this,We))}bindObservables(){if(null!==this.boundObservables){const e=this.source,t=this.boundObservables,n=Object.keys(t);for(let i=0,s=n.length;i<s;++i){const s=n[i];e[s]=t[s]}this.boundObservables=null}}captureBoundObservables(){const e=this.source,t=Object.getOwnPropertyNames(e),n=t=>{let n=Reflect.getPrototypeOf(e);for(;null!==n;){const e=Reflect.getOwnPropertyDescriptor(n,t);if((null==e?void 0:e.get)||(null==e?void 0:e.set))return!0;n=Reflect.getPrototypeOf(n)}return!1};let i=this.boundObservables;for(let s=0,r=t.length;s<r;++s){const r=t[s],o="_"===r[0]?r.slice(1):r;if(!n(o))continue;const a=e[o],l=r!==o,c=!(null===a||"object"!=typeof a||(null==a?void 0:a.$isProxy)||Array.isArray(a)&&(null==a?void 0:a.$fastController));void 0!==a?l&&!c||(delete e[r],(null!=i?i:i=this.boundObservables=Object.create(null))[o]=a):l||delete e[r]}}syncLateAttributes(){const e=He(this.definition);if(null!==e)for(const t of Object.keys(e))this.source.hasAttribute(t)&&this.onAttributeChangedCallback(t,null,this.source.getAttribute(t))}observeLateAttributes(){const e=He(this.definition);if(null===e)return;const t=this.source;void 0===t[Qe]&&(t[Qe]=new MutationObserver((e=>{const n=t.$fastController,i=He(n.definition);if(null!==i)for(let s=0,r=e.length;s<r;++s){const r=e[s].attributeName;null!==r&&void 0!==i[r]&&n.onAttributeChangedCallback(r,null,t.getAttribute(r))}})),t[Qe].observe(t,{attributes:!0,attributeFilter:Object.keys(e)}))}connectBehaviors(){if(!1===this.behaviorsConnected){const e=this.behaviors;if(null!==e){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(!0===this.behaviorsConnected){const e=this.behaviors;if(null!==e)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===Xe.connected&&(this.stage=Xe.disconnecting,U.notify(this,We),null!==this.view&&this.view.unbind(),this.disconnectBehaviors(),this.stage=Xe.disconnected)}onAttributeChangedCallback(e,t,n){const i=this.definition.attributeLookup[e];void 0!==i&&i.onAttributeChangedCallback(this.source,n)}emit(e,t,n){return this.stage===Xe.connected&&this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},Ue),n)))}renderTemplate(e){var t;const n=this.source,i=null!==(t=Je(n))&&void 0!==t?t:n;if(null!==this.view)this.view.dispose(),this.view=null;else if((!this.needsInitialization||this.hasExistingShadowRoot)&&(!this.hasExistingShadowRoot||!this.needsInitialization))for(let e=i.firstChild;null!==e;e=i.firstChild)i.removeChild(e);if(e){const t=this.hasExistingShadowRoot&&this.needsInitialization;let s=!1;t&&Ge.hydrationHook&&(s=Ge.hydrationHook(this,e,n,i)),s||this.renderClientSide(e,n,i),this._resolvePrerendered(t),this._resolveHydrated(s)}else this.needsInitialization&&(this._resolvePrerendered(!1),this._resolveHydrated(!1))}renderClientSide(e,t,n){if(this.hasExistingShadowRoot){for(let e=n.firstChild;null!==e;e=n.firstChild)n.removeChild(e);this.hasExistingShadowRoot=!1}this.view=e.render(t,n,t),this.view.sourceLifetime=F.coupled}static forCustomElement(t,n=!1){const i=t.$fastController;if(void 0!==i&&!n)return i;const s=Fe.getForInstance(t);if(void 0===s)throw r.error(e.missingElementDefinition);return U.getNotifier(s).subscribe({handleChange:()=>{Ge.forCustomElement(t,!0),t.$fastController.connect()}},"template"),U.getNotifier(s).subscribe({handleChange:()=>{Ge.forCustomElement(t,!0),t.$fastController.connect()}},"shadowOptions"),t.$fastController=new Ke(t,s)}static setStrategy(e){Ke=e}static installHydrationHook(e){Ge.hydrationHook=e}}function Ye(e){var t;return"adoptedStyleSheets"in e?e:null!==(t=Je(e))&&void 0!==t?t:e.getRootNode()}Ge.hydrationHook=null,d(Ge),Ge.setStrategy(Ge);class Ze{constructor(e){const t=Ze.styleSheetCache;this.sheets=e.map((e=>{if(e instanceof CSSStyleSheet)return e;let n=t.get(e);return void 0===n&&(n=new CSSStyleSheet,n.replaceSync(e),t.set(e,n)),n}))}addStylesTo(e){it(Ye(e),this.sheets)}removeStylesFrom(e){st(Ye(e),this.sheets)}}Ze.styleSheetCache=new Map;let et=0;function tt(e){return e===document?document.body:e}class nt{constructor(e){this.styles=e,this.styleClass="fast-"+ ++et}addStylesTo(e){e=tt(Ye(e));const t=this.styles,n=this.styleClass;for(let i=0;i<t.length;i++){const s=document.createElement("style");s.innerHTML=t[i],s.className=n,e.append(s)}}removeStylesFrom(e){const t=(e=tt(Ye(e))).querySelectorAll(`.${this.styleClass}`);for(let n=0,i=t.length;n<i;++n)e.removeChild(t[n])}}let it=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},st=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e)))};if(xe.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),it=(e,t)=>{e.adoptedStyleSheets.push(...t)},st=(e,t)=>{for(const n of t){const t=e.adoptedStyleSheets.indexOf(n);-1!==t&&e.adoptedStyleSheets.splice(t,1)}}}catch(e){}xe.setDefaultStrategy(Ze)}else xe.setDefaultStrategy(nt);function rt(e){const t=class extends e{constructor(){super(),Ge.forCustomElement(this)}$emit(e,t,n){return this.$fastController.emit(e,t,n)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,t,n){this.$fastController.onAttributeChangedCallback(e,t,n)}};return Fe.registerBaseType(t),t}function ot(e,n,i){Array.isArray(n)&&(i=n,n=void 0);return(t(e)?Fe.compose(e,n):Fe.compose(this,e)).then((e=>{De(e,e.registry,i);const t=ze(e);return"function"==typeof(null==(n=t)?void 0:n.then)?t.then((()=>e.define().type)):e.define().type;var n}))}const at=Object.assign(rt(HTMLElement),{from:function(e){return rt(e)},define:ot,compose:function(e,n){return t(e)?Fe.compose(e,n):Fe.compose(this,e)}});function lt(e){return function(t){ot(t,e)}}const ct={1101:"Must call ArrayObserver.enable() before observing arrays.",1201:"The DOM Policy can only be set once.",1202:"To bind innerHTML, you must use a TrustedTypesPolicy.",1203:"View=>Model update skipped. To use twoWay binding, the target property must be observable.",1204:"No host element is present. Cannot bind host with ${name}.",1205:"The requested binding behavior is not supported by the binding engine.",1206:"Calling html`` as a normal function invalidates the security guarantees provided by FAST.",1207:"The DOM Policy for an HTML template can only be set once.",1208:"The DOM Policy cannot be set after a template is compiled.",1209:"'${aspectName}' on '${tagName}' is blocked by the current DOMPolicy.",1210:"Invalid data-fe attribute value '${value}'. Expected a positive integer.",1211:"Replacing existing RenderInstruction for '${type}' with name '${name}'.",1401:"Missing FASTElement definition.",1501:"No registration for Context/Interface '${name}'.",1502:"Dependency injection resolver for '${key}' returned a null factory.",1503:"Invalid dependency injection resolver strategy specified '${strategy}'.",1504:"Unable to autoregister dependency.",1505:"Unable to resolve dependency injection key '${key}'.",1506:"'${name}' is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.",1507:"Attempted to jitRegister something that is not a constructor '${value}'. Did you forget to register this dependency?",1508:"Attempted to jitRegister an intrinsic type '${value}'. Did you forget to add @inject(Key)?",1509:"Attempted to jitRegister an interface '${value}'.",1510:"A valid resolver was not returned from the register method.",1511:"Key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?",1512:"'${key}' not registered. Did you forget to add @singleton()?",1513:"Cyclic dependency found '${name}'.",1514:"Injected properties that are updated on changes to DOM connectivity require the target object to be an instance of FASTElement.",1601:"Invalid attribute marker name: ${name}. Expected format is ${expectedFormat}.",1602:"Invalid compact attribute marker values in ${markerName}. Both index and count must be positive integers.",1604:"Invalid compact attribute marker name: ${name}. Expected format is ${expectedFormat}."},dt=/(\$\{\w+?})/g,ht=/\$\{(\w+?)}/g,ut=Object.freeze({});function ft(e,t){return e.split(dt).map((e=>{var n;const i=e.replace(ht,"$1");return String(null!==(n=t[i])&&void 0!==n?n:e)})).join("")}function pt(){const e=o();Object.assign(e,ct),Object.assign(r,{addMessages(t){Object.assign(e,t)},warn(t,n=ut){var i;const s=null!==(i=e[t])&&void 0!==i?i:"Unknown Warning";console.warn(ft(s,n))},error(t,n=ut){var i;const s=null!==(i=e[t])&&void 0!==i?i:"Unknown Error";return new Error(ft(s,n))}})}const gt=`fast-${Math.random().toString(36).substring(2,8)}`,bt=`${gt}{`,vt=`}${gt}`,mt=vt.length;let yt=0;const wt=()=>`${gt}-${++yt}`,Ct=Object.freeze({interpolation:e=>`${bt}${e}${vt}`,attribute:e=>`${wt()}="${bt}${e}${vt}"`,comment:e=>`\x3c!--${bt}${e}${vt}--\x3e`}),St=Object.freeze({parse(e,t){const n=e.split(bt);if(1===n.length)return null;const i=[];for(let e=0,s=n.length;e<s;++e){const s=n[e],r=s.indexOf(vt);let o;if(-1===r)o=s;else{const e=s.substring(0,r);i.push(t[e]),o=s.substring(r+mt)}""!==o&&i.push(o)}return i}}),Ot=l(),xt=Object.freeze({getForInstance:Ot.getForInstance,getByType:Ot.getByType,define:(e,t)=>((t=t||{}).type=e,Ot.register(t),e),assignAspect(e,t){if(t)switch(e.sourceAspect=t,t[0]){case":":e.targetAspect=t.substring(1),e.aspectType="classList"===e.targetAspect?h.tokenList:h.property;break;case"?":e.targetAspect=t.substring(1),e.aspectType=h.booleanAttribute;break;case"@":e.targetAspect=t.substring(1),e.aspectType=h.event;break;default:e.targetAspect=t,e.aspectType=h.attribute}else e.aspectType=h.content}});function Tt(e){return function(t){xt.define(t,e)}}class Nt{constructor(e){this.options=e}createHTML(e){return Ct.attribute(e(this))}createBehavior(){return this}}d(Nt);const Bt=e=>1===e.nodeType,kt=e=>e?t=>1===t.nodeType&&t.matches(e):Bt;class At extends Nt{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,a),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}class $t extends At{constructor(e){super(e),this.observerProperty=Symbol(),e.childList=!0}observe(e){let t=e[this.observerProperty];if(!t){t=new MutationObserver(((t,n)=>{this.updateTarget(this.getSource(e),this.computeNodes(e))})),t.toJSON=i,e[this.observerProperty]=t}t.observe(e,this.options)}disconnect(e){e[this.observerProperty].disconnect()}getNodes(e){return"selector"in this.options?Array.from(e.querySelectorAll(this.options.selector)):Array.from(e.childNodes)}}function Mt(e){return n(e)&&(e={property:e}),new $t(e)}xt.define($t);class jt extends Nt{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}xt.define(jt);const Et=e=>new jt(e),Pt=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,Rt=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,It=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,Vt=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,_t=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,Lt=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Dt(e){return e&&e.nodeType===Node.COMMENT_NODE}const Ht=Object.freeze({attributeMarkerName:"data-fe",legacyAttributeMarkerName:"data-fe-b",legacyCompactAttributeMarkerName:"data-fe-c",contentBindingStartMarker:()=>"fe:b",contentBindingEndMarker:()=>"fe:/b",repeatStartMarker:()=>"fe:r",repeatEndMarker:()=>"fe:/r",elementBoundaryStartMarker:()=>"fe:e",elementBoundaryEndMarker:()=>"fe:/e",isContentBindingStartMarker:e=>"fe:b"===e||Pt.test(e),isContentBindingEndMarker:e=>"fe:/b"===e||Rt.test(e),isRepeatViewStartMarker:e=>"fe:r"===e||It.test(e),isRepeatViewEndMarker:e=>"fe:/r"===e||Vt.test(e),isElementBoundaryStartMarker:e=>Dt(e)&&("fe:e"===e.data||_t.test(e.data)),isElementBoundaryEndMarker:e=>Dt(e)&&("fe:/e"===e.data||Lt.test(e.data)),parseAttributeBindingCount(t){const n=t.getAttribute(this.attributeMarkerName);if(null===n)return null;const i=n.trim();if(!/^\d+$/.test(i))throw r.error(e.invalidHydrationAttributeMarker,{value:n});const s=parseInt(i,10);if(s<1)throw r.error(e.invalidHydrationAttributeMarker,{value:n});return s},parseLegacyAttributeBindingIndices(t){const n=[],i=t.getAttribute(this.legacyAttributeMarkerName);if(null!==i)for(const t of i.trim().split(/\s+/)){if(""===t)continue;const s=Number(t);if(!Number.isInteger(s)||s<0)throw r.error(e.invalidHydrationAttributeMarker,{value:i});n.push(s)}const s=`${this.legacyAttributeMarkerName}-`,o=`${this.legacyCompactAttributeMarkerName}-`;for(const i of t.getAttributeNames())if(i.startsWith(s)){const t=Number(i.slice(s.length));if(!Number.isInteger(t)||t<0)throw r.error(e.invalidHydrationAttributeMarker,{value:i});n.push(t)}else if(i.startsWith(o)){const[t,s]=i.slice(o.length).split("-").map((e=>Number(e)));if(!Number.isInteger(t)||!Number.isInteger(s)||t<0||s<1)throw r.error(e.invalidHydrationAttributeMarker,{value:i});for(let e=0;e<s;e++)n.push(t+e)}return 0===n.length?null:n},removeLegacyAttributeBindingMarkers(e){e.removeAttribute(this.legacyAttributeMarkerName);for(const t of e.getAttributeNames())(t.startsWith(`${this.legacyAttributeMarkerName}-`)||t.startsWith(`${this.legacyCompactAttributeMarkerName}-`))&&e.removeAttribute(t)},parseLegacyContentBindingStartIndex:e=>function(e,t){const n=e.exec(t);return null===n?null:Number(n[1])}(Pt,e)});const zt=Symbol.for("fe-hydration");function Ft(e){return e[zt]===zt}class Ut{constructor(e,t,n){this.index=e,this.removed=t,this.addedCount=n}adjustTo(e){let t=this.index;const n=e.length;return t>n?t=n-this.addedCount:t<0&&(t=n+this.removed.length+t-this.addedCount),this.index=t<0?0:t,this}}class Wt{constructor(e){this.sorted=e}}const qt=Object.freeze({reset:1,splice:2,optimized:3}),Qt=new Ut(0,a,0);Qt.reset=!0;const Jt=[Qt];var Kt;function Xt(e,t,n,i,s,r){let o=0,l=0;const c=Math.min(n-t,r-s);if(0===t&&0===s&&(o=function(e,t,n){for(let i=0;i<n;++i)if(e[i]!==t[i])return i;return n}(e,i,c)),n===e.length&&r===i.length&&(l=function(e,t,n){let i=e.length,s=t.length,r=0;for(;r<n&&e[--i]===t[--s];)r++;return r}(e,i,c-o)),s+=o,r-=l,(n-=l)-(t+=o)==0&&r-s==0)return a;if(t===n){const e=new Ut(t,[],0);for(;s<r;)e.removed.push(i[s++]);return[e]}if(s===r)return[new Ut(t,[],n-t)];const d=function(e){let t=e.length-1,n=e[0].length-1,i=e[t][n];const s=[];for(;t>0||n>0;){if(0===t){s.push(Kt.add),n--;continue}if(0===n){s.push(Kt.delete),t--;continue}const r=e[t-1][n-1],o=e[t-1][n],a=e[t][n-1];let l;l=o<a?o<r?o:r:a<r?a:r,l===r?(r===i?s.push(Kt.leave):(s.push(Kt.update),i=r),t--,n--):l===o?(s.push(Kt.delete),t--,i=o):(s.push(Kt.add),n--,i=a)}return s.reverse()}(function(e,t,n,i,s,r){const o=r-s+1,a=n-t+1,l=new Array(o);let c,d;for(let e=0;e<o;++e)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;++e)l[0][e]=e;for(let n=1;n<o;++n)for(let r=1;r<a;++r)e[t+r-1]===i[s+n-1]?l[n][r]=l[n-1][r-1]:(c=l[n-1][r]+1,d=l[n][r-1]+1,l[n][r]=c<d?c:d);return l}(e,t,n,i,s,r)),h=[];let u,f=t,p=s;for(let e=0;e<d.length;++e)switch(d[e]){case Kt.leave:void 0!==u&&(h.push(u),u=void 0),f++,p++;break;case Kt.update:void 0===u&&(u=new Ut(f,[],0)),u.addedCount++,f++,u.removed.push(i[p]),p++;break;case Kt.add:void 0===u&&(u=new Ut(f,[],0)),u.addedCount++,f++;break;case Kt.delete:void 0===u&&(u=new Ut(f,[],0)),u.removed.push(i[p]),p++}return void 0!==u&&h.push(u),h}function Gt(e,t){let n=!1,i=0;for(let l=0;l<t.length;l++){const c=t[l];if(c.index+=i,n)continue;const d=(s=e.index,r=e.index+e.removed.length,o=c.index,a=c.index+c.addedCount,r<o||a<s?-1:r===o||a===s?0:s<o?r<a?r-o:a-o:a<r?a-s:r-s);if(d>=0){t.splice(l,1),l--,i-=c.addedCount-c.removed.length,e.addedCount+=c.addedCount-d;const s=e.removed.length+c.removed.length-d;if(e.addedCount||s){let t=c.removed;if(e.index<c.index){const n=e.removed.slice(0,c.index-e.index);n.push(...t),t=n}if(e.index+e.removed.length>c.index+c.addedCount){const n=e.removed.slice(c.index+c.addedCount-e.index);t.push(...n)}e.removed=t,c.index<e.index&&(e.index=c.index)}else n=!0}else if(e.index<c.index){n=!0,t.splice(l,0,e),l++;const s=e.addedCount-e.removed.length;c.index+=s,i+=s}}var s,r,o,a;n||t.push(e)}!function(e){e[e.leave=0]="leave",e[e.update=1]="update",e[e.add=2]="add",e[e.delete=3]="delete"}(Kt||(Kt={}));let Yt=Object.freeze({support:qt.optimized,normalize:(e,t,n)=>void 0===e?void 0===n?a:function(e,t){let n=[];const i=[];for(let e=0,n=t.length;e<n;e++)Gt(t[e],i);for(let t=0,s=i.length;t<s;++t){const s=i[t];1!==s.addedCount||1!==s.removed.length?n=n.concat(Xt(e,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==e[s.index]&&n.push(s)}return n}(t,n):Jt,pop(e,t,n,i){const s=e.length>0,r=n.apply(e,i);return s&&t.addSplice(new Ut(e.length,[r],0)),r},push(e,t,n,i){const s=n.apply(e,i);return t.addSplice(new Ut(e.length-i.length,[],i.length).adjustTo(e)),s},reverse(e,t,n,i){const s=n.apply(e,i);e.sorted++;const r=[];for(let t=e.length-1;t>=0;t--)r.push(t);return t.addSort(new Wt(r)),s},shift(e,t,n,i){const s=e.length>0,r=n.apply(e,i);return s&&t.addSplice(new Ut(0,[r],0)),r},sort(e,t,n,i){const s=new Map;for(let t=0,n=e.length;t<n;++t){const n=s.get(e[t])||[];s.set(e[t],[...n,t])}const r=n.apply(e,i);e.sorted++;const o=[];for(let t=0,n=e.length;t<n;++t){const n=s.get(e[t]);o.push(n[0]),s.set(e[t],n.splice(1))}return t.addSort(new Wt(o)),r},splice(e,t,n,i){const s=n.apply(e,i);return t.addSplice(new Ut(+i[0],s,i.length>2?i.length-2:0).adjustTo(e)),s},unshift(e,t,n,i){const s=n.apply(e,i);return t.addSplice(new Ut(0,[],i.length).adjustTo(e)),s}});const Zt=Object.freeze({reset:Jt,setDefaultStrategy(e){Yt=e}});function en(e,t,n,i=!0){Reflect.defineProperty(e,t,{value:n,enumerable:!1,writable:i})}class tn extends j{get strategy(){return this._strategy}set strategy(e){this._strategy=e}get lengthObserver(){let e=this._lengthObserver;if(void 0===e){const t=this.subject;this._lengthObserver=e={length:t.length,handleChange(){this.length!==t.length&&(this.length=t.length,U.notify(e,"length"))}},this.subscribe(e)}return e}get sortObserver(){let e=this._sortObserver;if(void 0===e){const t=this.subject;this._sortObserver=e={sorted:t.sorted,handleChange(){this.sorted!==t.sorted&&(this.sorted=t.sorted,U.notify(e,"sorted"))}},this.subscribe(e)}return e}constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.sorts=void 0,this.needsQueue=!0,this._strategy=null,this._lengthObserver=void 0,this._sortObserver=void 0,this.call=this.flush,en(e,"$fastController",this)}subscribe(e){this.flush(),super.subscribe(e)}addSplice(e){void 0===this.splices?this.splices=[e]:this.splices.push(e),this.enqueue()}addSort(e){void 0===this.sorts?this.sorts=[e]:this.sorts.push(e),this.enqueue()}reset(e){this.oldCollection=e,this.enqueue()}flush(){var e;const t=this.splices,n=this.sorts,i=this.oldCollection;void 0===t&&void 0===i&&void 0===n||(this.needsQueue=!0,this.splices=void 0,this.sorts=void 0,this.oldCollection=void 0,void 0!==n?this.notify(n):this.notify((null!==(e=this._strategy)&&void 0!==e?e:Yt).normalize(i,this.subject,t)))}enqueue(){this.needsQueue&&(this.needsQueue=!1,z.enqueue(this))}}let nn=!1;const sn=Object.freeze({sorted:0,enable(){if(nn)return;nn=!0,U.setArrayObserverFactory((e=>new tn(e)));const e=Array.prototype;e.$fastPatch||(en(e,"$fastPatch",1),en(e,"sorted",0),[e.pop,e.push,e.reverse,e.shift,e.sort,e.splice,e.unshift].forEach((t=>{e[t.name]=function(...e){var n;const i=this.$fastController;return void 0===i?t.apply(this,e):(null!==(n=i.strategy)&&void 0!==n?n:Yt)[t.name](this,i,t,e)}})))}});function rn(e){if(!e)return 0;let t=e.$fastController;return void 0===t&&(sn.enable(),t=U.getNotifier(e)),U.track(t.lengthObserver,"length"),e.length}function on(e){if(!e)return 0;let t=e.$fastController;return void 0===t&&(sn.enable(),t=U.getNotifier(e)),U.track(t.sortObserver,"sorted"),e.sorted}const an="content following `\x3c!--fe:b--\x3e` content binding marker",ln="matching `\x3c!--fe:/b--\x3e` content binding close marker",cn="matching `\x3c!--fe:/e--\x3e` element boundary close marker";function dn(e){return`no more attribute bindings (template defines ${e})`}function hn(e,t){return function(e,t){return`Hydration mismatch in <${e}>${t?`: ${t}`:""}. Install hydrationDebugger() from "@microsoft/fast-element/hydration.js" and pass it as enableHydration({ debugger: hydrationDebugger() }) for an "Expected / Received" report including the SSR HTML snippet.`}((null!=e?e:"unknown").toLowerCase(),t)}let un={formatBindingMismatch:(e,t,n,i)=>({message:hn(i,void 0)}),formatStructuralError:(e,t,n)=>({message:hn(t,n)})};function fn(){return un}function pn(e){var t;if(!e)return;return null===(t=e.getRootNode().host)||void 0===t?void 0:t.nodeName}class gn extends Error{constructor(e,t,n,i,s){super(e),this.factories=t,this.node=n,this.expected=i,this.received=s}}function bn(e){return e.nodeType===Node.COMMENT_NODE}function vn(e){return e.nodeType===Node.TEXT_NODE}function mn(e,t){const n=document.createRange();return n.setStart(e,0),n.setEnd(t,bn(t)||vn(t)?t.data.length:t.childNodes.length),n}function yn(e,t,n,i,s,r){const o=[];let a=t.nextSibling();if(e.data="",null===a){const t=an,n=fn().formatStructuralError(e,pn(e),t);throw new gn(n.message,i,e,n.expected,n.received)}const l=a;let c=0;for(;null!==a;){if(bn(a))if(Ht.isContentBindingStartMarker(a.data))c++;else if(Ht.isContentBindingEndMarker(a.data)){if(0===c)break;c--}o.push(a),a=t.nextSibling()}if(null===a){const t=ln,n=fn().formatStructuralError(e,pn(e),t);throw new gn(n.message,i,e,n.expected,n.received)}if(a.data="",1===o.length&&vn(o[0]))Cn(n,o[0],s);else{a!==l&&null!==a.previousSibling&&(r[n.targetNodeId]={first:l,last:a.previousSibling});Cn(n,a.parentNode.insertBefore(document.createTextNode(""),a),s)}}function wn(e,t,n){let i=0,s=e.nextSibling();for(;null!==s;){if(bn(s))if(Ht.isElementBoundaryStartMarker(s))s.data="",i++;else if(Ht.isElementBoundaryEndMarker(s)){if(0===i)return void(s.data="");s.data="",i--}s=e.nextSibling()}const r=cn,o=fn().formatStructuralError(n,pn(n),r);throw new gn(o.message,t,n,o.expected,o.received)}function Cn(e,t,n){if(void 0===e.targetNodeId)throw new Error("Factory could not be target to the node");n[e.targetNodeId]=t}function Sn(e,t){const n=e.parentNode;let i,s=e;for(;s!==t;){if(i=s.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);n.removeChild(s),s=i}n.removeChild(t)}class On{constructor(){this.index=0,this.length=0}get event(){return J.getEvent()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class xn extends On{constructor(e,t,n){super(),this.fragment=e,this.factories=t,this.targets=n,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=F.unknown,this._skipAttrUpdates=!1,this.isPrerendered=Promise.resolve(!1),this.isHydrated=Promise.resolve(!1),this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const n=e.parentNode;let i,s=this.firstChild;for(;s!==t;)i=s.nextSibling,n.insertBefore(s,e),s=i;n.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let n,i=this.firstChild;for(;i!==t;)n=i.nextSibling,e.appendChild(i),i=n;e.appendChild(t)}dispose(){Sn(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e&&this.context===t)return;let n=this.behaviors;if(null===n){this.source=e,this.context=t,this.behaviors=n=new Array(this.factories.length);const i=this.factories;for(let e=0,t=i.length;e<t;++e){const t=i[e].createBehavior();t.bind(this),n[e]=t}}else{null!==this.source&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let e=0,t=n.length;e<t;++e)n[e].bind(this)}this.isBound=!0}unbind(){this.isBound&&null!==this.source&&(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,n=e.length;t<n;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(0!==e.length){Sn(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,n=e.length;t<n;++t)e[t].unbind()}}}var Tn;d(xn),U.defineProperty(xn.prototype,"index"),U.defineProperty(xn.prototype,"length");const Nn="unhydrated",Bn="hydrating",kn="hydrated";class An extends Error{constructor(e,t,n,i,s,r){super(e),this.factory=t,this.fragment=n,this.templateString=i,this.expected=s,this.received=r}}Tn=zt,d(class extends On{get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}constructor(e,t,n,i){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=n,this.hostBindingTarget=i,this[Tn]=zt,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=F.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=Nn,this._bindingViewBoundaries={},this._targets={},this.factories=n.compile().factories}insertBefore(e){if(null!==this.fragment)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const n=e.parentNode;let i,s=this.firstChild;for(;s!==t;)i=s.nextSibling,n.insertBefore(s,e),s=i;n.insertBefore(t,e)}}appendTo(e){null!==this.fragment&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let n,i=this.firstChild;for(;i!==t;){if(n=i.nextSibling,!n)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=n}e.appendChild(t)}bind(e,t=this){if(this.source===e&&this.context===t)return;this.hydrationStage!==kn&&(this._hydrationStage=Bn);let n=this.behaviors;if(null===n){this.source=e,this.context=t;try{const{targets:e,boundaries:t}=function(e,t,n){const i=mn(e,t),s=i.commonAncestorContainer,r=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode:e=>0===i.comparePoint(e,0)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),o={},a={},l=function(e){let t=0;for(let n=0,i=e.length;n<i&&"h"===e[n].targetNodeId;++n)t++;return t}(n);let c=l,d=r.currentNode=e;for(;null!==d;){switch(d.nodeType){case Node.ELEMENT_NODE:{const e=d,t=Ht.parseLegacyAttributeBindingIndices(e);if(null!==t){for(const i of t){const t=i+l,s=n[t];if(!s){const t=dn(n.length),i=fn().formatStructuralError(d,pn(d),t);throw new gn(i.message,n,e,i.expected,i.received)}Cn(s,d,o),c=Math.max(c,t+1)}Ht.removeLegacyAttributeBindingMarkers(e);break}const i=Ht.parseAttributeBindingCount(e);if(null!==i){for(let e=0;e<i;e++){const e=n[c++];if(!e){const e=dn(n.length),t=fn().formatStructuralError(d,pn(d),e);throw new gn(t.message,n,d,t.expected,t.received)}Cn(e,d,o)}e.removeAttribute(Ht.attributeMarkerName)}break}case Node.COMMENT_NODE:{const e=d.data;if(Ht.isElementBoundaryStartMarker(d))d.data="",wn(r,n,d);else if(Ht.isContentBindingStartMarker(e)){const t=Ht.parseLegacyContentBindingStartIndex(e),i=null===t?c++:t+l,s=n[i];if(c=Math.max(c,i+1),!s){const e=`no more content bindings (template defines ${n.length})`,t=fn().formatStructuralError(d,pn(d),e);throw new gn(t.message,n,d,t.expected,t.received)}yn(d,r,s,n,o,a)}break}}d=r.nextNode()}return i.detach(),{targets:o,boundaries:a}}(this.firstChild,this.lastChild,this.factories);this._targets=e,this._bindingViewBoundaries=t}catch(e){if(e instanceof gn){let t=this.sourceTemplate.html;"string"!=typeof t&&(t=t.innerHTML),e.templateString=t}throw e}this.behaviors=n=new Array(this.factories.length);const i=this.factories;for(let e=0,t=i.length;e<t;++e){const t=i[e];if("h"===t.targetNodeId&&this.hostBindingTarget&&Cn(t,this.hostBindingTarget,this._targets),!(t.targetNodeId in this.targets)){let e=this.sourceTemplate.html;"string"!=typeof e&&(e=e.innerHTML);const n=mn(this.firstChild,this.lastChild).cloneContents(),i=fn().formatBindingMismatch(t,this.firstChild,this.lastChild,pn(this.firstChild));throw new An(i.message,t,n,e,i.expected,i.received)}{const i=t.createBehavior();i.bind(this),n[e]=i}}}else{null!==this.source&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let e=0,t=n.length;e<t;++e)n[e].bind(this)}this.isBound=!0,this._hydrationStage=kn}unbind(){this.isBound&&null!==this.source&&(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){Sn(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,n=e.length;t<n;++t)e[t].unbind(this);e.length=0}});const $n=Object.freeze({positioning:!1,recycle:!0});function Mn(e,t,n,i){e.context.parent=i.source,e.context.parentContext=i.context,e.bind(t[n])}function jn(e,t,n,i){e.context.parent=i.source,e.context.parentContext=i.context,e.context.length=t.length,e.context.index=n,e.bind(t[n])}function En(e){return e.nodeType===Node.COMMENT_NODE}function Pn(e,t){const n=e.parentNode;if(null===n)return;let i=e;for(;null!==i;){const e=i.nextSibling;if(n.removeChild(i),i===t)break;i=e}}class Rn extends Error{constructor(e,t){super(e),this.propertyBag=t}}class In{constructor(e){this.directive=e,this.items=null,this.itemsObserver=null,this.bindView=Mn,this.views=[],this.itemsBindingObserver=e.dataBinding.createObserver(this,e),this.templateBindingObserver=e.templateBinding.createObserver(this,e),e.options.positioning&&(this.bindView=jn)}bind(e){this.location=e.targets[this.directive.targetNodeId],this.controller=e,this.items=this.itemsBindingObserver.bind(e),this.template=this.templateBindingObserver.bind(e),this.observeItems(!0),Ft(this.template)&&Ft(e)&&e.hydrationStage!==kn?this.hydrateViews(this.template):this.refreshAllViews(),e.onUnbind(this)}unbind(){null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews()}handleChange(e,t){if(t===this.itemsBindingObserver)this.items=this.itemsBindingObserver.bind(this.controller),this.observeItems(),this.refreshAllViews();else if(t===this.templateBindingObserver)this.template=this.templateBindingObserver.bind(this.controller),this.refreshAllViews(!0);else{if(!t[0])return;t[0].reset?this.refreshAllViews():t[0].sorted?this.updateSortedViews(t):this.updateSplicedViews(t)}}observeItems(e=!1){if(!this.items)return void(this.items=a);const t=this.itemsObserver,n=this.itemsObserver=U.getNotifier(this.items),i=t!==n;i&&null!==t&&t.unsubscribe(this),(i||e)&&n.subscribe(this)}updateSortedViews(e){const t=this.views;for(let n=0,i=e.length;n<i;++n){const i=e[n].sorted.slice(),s=i.slice().sort();for(let e=0,n=i.length;e<n;++e){const n=i.find((t=>i[e]===s[t]));if(n!==e){const i=s.splice(n,1);s.splice(e,0,...i);const r=t[e],o=r?r.firstChild:this.location;t[n].remove(),t[n].insertBefore(o);const a=t.splice(n,1);t.splice(e,0,...a)}}}}updateSplicedViews(e){const t=this.views,n=this.bindView,i=this.items,s=this.template,r=this.controller,o=this.directive.options.recycle,a=[];let l=0,c=0;for(let d=0,h=e.length;d<h;++d){const h=e[d],u=h.removed;let f=0,p=h.index;const g=p+h.addedCount,b=t.splice(h.index,u.length),v=c=a.length+b.length;for(;p<g;++p){const e=t[p],d=e?e.firstChild:this.location;let h;o&&c>0?(f<=v&&b.length>0?(h=b[f],f++):(h=a[l],l++),c--):h=s.create(),t.splice(p,0,h),n(h,i,p,r),h.insertBefore(d)}b[f]&&a.push(...b.slice(f))}for(let e=l,t=a.length;e<t;++e)a[e].dispose();if(this.directive.options.positioning)for(let e=0,n=t.length;e<n;++e){const i=t[e].context;i.length=n,i.index=e}}refreshAllViews(e=!1){const t=this.items,n=this.template,i=this.location,s=this.bindView,r=this.controller;let o=t.length,a=this.views,l=a.length;if(0!==o&&!e&&this.directive.options.recycle||(xn.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(o);for(let e=0;e<o;++e){const o=n.create();s(o,t,e,r),a[e]=o,o.insertBefore(i)}}else{let e=0;for(;e<o;++e)if(e<l){const i=a[e];if(!i){const t=new XMLSerializer;throw new Rn(`View is null or undefined inside "${this.location.getRootNode().host.nodeName}".`,{index:e,hydrationStage:this.controller.hydrationStage,itemsLength:o,viewsState:a.map((e=>e?"hydrated":"empty")),viewTemplateString:t.serializeToString(n.create().fragment),rootNodeContent:t.serializeToString(this.location.getRootNode())})}s(i,t,e,r)}else{const o=n.create();s(o,t,e,r),a.push(o),o.insertBefore(i)}const c=a.splice(e,l-e);for(e=0,o=c.length;e<o;++e)c[e].dispose()}}unbindAllViews(){const e=this.views;for(let t=0,n=e.length;t<n;++t){const n=e[t];if(!n){const n=new XMLSerializer;throw new Rn(`View is null or undefined inside "${this.location.getRootNode().host.nodeName}".`,{index:t,hydrationStage:this.controller.hydrationStage,viewsState:e.map((e=>e?"hydrated":"empty")),rootNodeContent:n.serializeToString(this.location.getRootNode())})}n.unbind()}}hydrateViews(e){var t;if(!this.items)return;const n=this.items,i=n.length,s=this.views=new Array(i),r=[];let o=this.location.previousSibling;for(;null!==o;){if(!En(o)||!Ht.isRepeatViewEndMarker(o.data)){o=o.previousSibling;continue}const e=o;e.data="";const n=e.previousSibling;if(!n)throw new Error(`Error when hydrating inside "${this.location.getRootNode().host.nodeName}": end should never be null.`);let i=n,s=0;for(;null!==i;){if(En(i))if(Ht.isRepeatViewEndMarker(i.data))s++;else if(Ht.isRepeatViewStartMarker(i.data)){if(0===s){const s=i;s.data="",o=s.previousSibling;const a=null!==(t=s.nextSibling)&&void 0!==t?t:e,l=n===s?a:n;r.push({start:a,end:l,startMarker:s,endMarker:e});break}s--}i=i.previousSibling}if(!i)throw new Error(`Error when hydrating inside "${this.location.getRootNode().host.nodeName}": repeat start marker not found.`)}r.reverse();const a=Math.min(r.length,i);for(let t=0;t<a;t++){const{start:i,end:o}=r[t],a=e.hydrate(i,o);s[t]=a,this.bindView(a,n,t,this.controller)}for(let t=a;t<i;t++){const i=e.create();s[t]=i,this.bindView(i,n,t,this.controller),i.insertBefore(this.location)}for(let e=i,t=r.length;e<t;e++){const{startMarker:t,endMarker:n}=r[e];Pn(t,n)}}}class Vn{createHTML(e){return Ct.comment(e(this))}constructor(e,t,n){this.dataBinding=e,this.templateBinding=t,this.options=n,sn.enable()}createBehavior(){return new In(this)}}function _n(e,t,n=$n){const i=de(e),s=de(t);return new Vn(i,s,Object.assign(Object.assign({},$n),n))}xt.define(Vn);const Ln="slotchange";class Dn extends At{observe(e){e.addEventListener(Ln,this)}disconnect(e){e.removeEventListener(Ln,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}function Hn(e){return n(e)&&(e={property:e}),new Dn(e)}xt.define(Dn);const zn=()=>null;function Fn(e){return void 0===e?zn:t(e)?e:()=>e}function Un(e,n,i){const s=t(e)?e:()=>e,r=Fn(n),o=Fn(i);return(e,t)=>s(e,t)?r(e,t):o(e,t)}const Wn="$fast_context",qn="$fast_parent_contexts",Qn="$defs",Jn="$ref",Kn=new Map;class Xn{constructor(e){this.customElementName=e,this.schemaMap=new Map,Kn.set(e,this.schemaMap)}addPath(e){var t,n,i;const s=this.getSplitPath(e.pathConfig.path);let r=this.schemaMap.get(e.rootPropertyName),o=null;switch(r||(this.addNewSchema(e.rootPropertyName),r=this.schemaMap.get(e.rootPropertyName)),e.childrenMap&&(o=this.getSchemaId(e.childrenMap.customElementName,e.childrenMap.attributeName),1===s.length&&(r.anyOf?r.anyOf.push({[Jn]:o}):r.anyOf=[{[Jn]:o}])),e.pathConfig.type){case"default":case"access":s.length>1&&(null===e.pathConfig.currentContext?this.addPropertiesToAnObject(r,s.slice(1),e.pathConfig.currentContext,o):((null===(t=r[Qn])||void 0===t?void 0:t[s[0]])||(r[Qn]=Object.assign(Object.assign({},r[Qn]),{[s[0]]:{}})),this.addPropertiesToAContext(r[Qn][s[0]],s.slice(1),e.pathConfig.currentContext,o)));break;case"repeat":if(this.addContext(r,s[s.length-1],e.pathConfig.currentContext,e.pathConfig.parentContext),s.length>2){let t=r;const i=!!e.pathConfig.parentContext;i&&(t=this.addPropertiesToAnObject(null===(n=r[Qn])||void 0===n?void 0:n[e.pathConfig.parentContext],s.slice(1,-1),e.pathConfig.parentContext,o)),this.addPropertiesToAnObject(t,i?s.slice(2):s.slice(1),e.pathConfig.currentContext,o,"array")}else if(s.length>1){let t;e.pathConfig.parentContext&&(t=null===(i=null==r?void 0:r[Qn])||void 0===i?void 0:i[e.pathConfig.parentContext]),this.addPropertiesToAnObject(null!=t?t:r,s.slice(1),e.pathConfig.currentContext,o,"array")}else r.type="array",r[Jn]=this.getDefsPath(e.pathConfig.currentContext)}}getSchema(e){var t;return null!==(t=this.schemaMap.get(e))&&void 0!==t?t:null}getRootProperties(){return this.schemaMap.keys()}getSplitPath(e){return e.split(".")}getDefsPath(e){return`#/${Qn}/${e}`}getSchemaId(e,t){return`https://fast.design/schemas/${e}/${t}.json`}addNewSchema(e){this.schemaMap.set(e,{$schema:"https://json-schema.org/draft/2019-09/schema",$id:this.getSchemaId(this.customElementName,e),[Qn]:{}})}addPropertiesToAContext(e,t,n,i){e.type="object",e.properties&&!e.properties[t[0]]?e.properties[t[0]]={}:e.properties||(e.properties={[t[0]]:{}}),t.length>1?this.addPropertiesToAnObject(e.properties[t[0]],t.slice(1),n,i):i&&(e.properties[t[0]].anyOf?e.properties[t[0]].anyOf.push({[Jn]:i}):e.properties[t[0]].anyOf=[{[Jn]:i}])}addPropertiesToAnObject(e,t,n,i,s="object"){return e.type="object",e.properties&&!e.properties[t[0]]?e.properties[t[0]]={}:e.properties||(e.properties={[t[0]]:{}}),"object"===s&&t.length>1?this.addPropertiesToAnObject(e.properties[t[0]],t.slice(1),n,i,s):"array"===s?t.length>1?this.addPropertiesToAnObject(e.properties[t[0]],t.slice(1),n,i,s):this.addArrayToAnObject(e.properties[t[0]],n):(e.properties[t[0]].anyOf&&i?e.properties[t[0]].anyOf.push({[Jn]:i}):i&&(e.properties[t[0]].anyOf=[{[Jn]:i}]),e.properties[t[0]])}addArrayToAnObject(e,t){return e.type="array",e.items={[Jn]:this.getDefsPath(t)},e.items}addContext(e,t,n,i){e[Qn][n]||(e[Qn][n]={[Wn]:t,[qn]:this.getParentContexts(e,i)})}getParentContexts(e,t,n=[]){var i;if(null===t)return[null,...n];const s=null===(i=null==e?void 0:e[Qn])||void 0===i?void 0:i[t][qn];return this.getParentContexts(e,s[s.length-1],[t,...n])}}function Gn(e,t,n,i,s){if(function(e,t){return null!=e&&"object"==typeof e&&!t.has(e)}(e,s))if(s.add(e),Array.isArray(e)){n.visitArray(e,i);for(const r of e)Gn(r,t,n,i,s)}else{n.visitObject(e,i);for(const r in e){const o=e[r];n.visitProperty(e,r,o,i),t&&Gn(o,t,n,i,s)}}}const Yn=new WeakSet,Zn={visitObject:i,visitArray:i,visitProperty(e,t,n){Reflect.defineProperty(e,t,{enumerable:!0,get:()=>(U.track(e,t),n),set(i){n!==i&&(n=i,U.notify(e,t))}})}};function ei(e,t=!1){return Gn(e,t,Zn,void 0,Yn),e}const ti={deep:!1};function ni(e,t=ti){var i;n(t)&&(t={deep:!1,name:t});const s=ei({value:e},t.deep),r=()=>s.value;return Object.defineProperty(r,"current",{get:()=>s.value,set:e=>s.value=e}),Object.defineProperty(r,"name",{value:null!==(i=t.name)&&void 0!==i?i:"SharedState"}),r.set=e=>s.value=e,r.asReadonly=()=>{const e=()=>s.value;return Object.defineProperty(e,"current",{get:()=>s.value}),Object.defineProperty(e,"name",{value:`${r.name} (Readonly)`}),Object.freeze(e)},r}function ii(e,i=ti){var s;if(n(i)&&(i={deep:!1,name:i}),!t(e)){const t=e;e=()=>t}const r=new WeakMap,o=t=>{let n=r.get(t);return void 0===n&&(n=ei({value:e()},i.deep),r.set(t,n)),n},a=e=>o(e).value;return Object.defineProperty(a,"name",{value:null!==(s=i.name)&&void 0!==s?s:"OwnedState"}),a.set=(e,t)=>o(e).value=t,a.asReadonly=()=>{const e=e=>o(e).value;return Object.defineProperty(e,"name",{value:`${a.name} (Readonly)`}),Object.freeze(e)},a}function si(e,t="ComputedState"){let n=null;const i=e({on:{setup(e){n=e}}}),s=ei({value:null},!1),r=()=>s.value;let o;Object.defineProperty(r,"current",{get:()=>s.value}),Object.defineProperty(r,"name",{value:t});const a={handleChange(){s.value=o.observe(null)}};let l,c;if(o=U.binding(i,a),o.setMode(!1),n){const e={handleChange(){l&&l(),l=c.observe(null),s.value=i()}};c=U.binding(n,e),c.setMode(!1),l=c.observe(null)}return s.value=o.observe(null),r.dispose=()=>{l&&l(),c&&c.dispose(),o.dispose()},r.subscribe=e=>{o.subscribe(e)},r.unsubscribe=e=>{o.unsubscribe(e)},r}function ri(e,t){const n=U.getNotifier(e);n.subscribe(t.subscriber),t.notifiers.push(n)}const oi={visitProperty:i,visitObject:ri,visitArray:ri};function ai(e,n){const i={notifiers:[],subscriber:t(n)?{handleChange:n}:n};return sn.enable(),Gn(e,!0,oi,i,new Set),{dispose(){for(const e of i.notifiers)e.unsubscribe(i.subscriber)}}}const li=l(),ci=Object.freeze({getForInstance:li.getForInstance,getByType:li.getByType,define:e=>(li.register({type:e}),e)});function di(){return function(e){ci.define(e)}}function hi(e,t){const n=[];let i="";for(let s=0,r=e.length-1;s<r;++s){i+=e[s];let r=t[s];void 0!==ci.getForInstance(r)&&(r=r.createCSS()),r instanceof xe||r instanceof CSSStyleSheet?(""!==i.trim()&&(n.push(i),i=""),n.push(r)):i+=r}return i+=e[e.length-1],""!==i.trim()&&n.push(i),n}const ui=(e,...t)=>new xe(hi(e,t));class fi{constructor(e){this.value=0===e.length?"":1===e.length?e[0]:new xe(e)}createCSS(){return this.value}}ci.define(fi),ui.partial=(e,...t)=>new fi(hi(e,t));const pi={[h.attribute]:b.setAttribute,[h.booleanAttribute]:b.setBooleanAttribute,[h.property]:(e,t,n)=>e[t]=n,[h.content]:function(e,t,n,i){if(null==n&&(n=""),function(e){return void 0!==e.create}(n)){e.textContent="";let t=e.$fastView;if(void 0===t)if(Ft(i)&&Ft(n)&&void 0!==i.bindingViewBoundaries[this.targetNodeId]&&i.hydrationStage!==kn){const e=i.bindingViewBoundaries[this.targetNodeId];t=n.hydrate(e.first,e.last)}else t=n.create();else e.$fastTemplate!==n&&(t.isComposed&&(t.remove(),t.unbind()),t=n.create());t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(i.source,i.context)):(t.isComposed=!0,t.bind(i.source,i.context),t.insertBefore(e),e.$fastView=t,e.$fastTemplate=n)}else{const t=e.$fastView;void 0!==t&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),e.textContent=n}},[h.tokenList]:function(e,t,n){var i;const s=`${this.id}-t`,r=null!==(i=e[s])&&void 0!==i?i:e[s]={v:0,cv:Object.create(null)},o=r.cv;let a=r.v;const l=e[t];if(null!=n&&n.length){const e=n.split(/\s+/);for(let t=0,n=e.length;t<n;++t){const n=e[t];""!==n&&(o[n]=a,l.add(n))}}if(r.v=a+1,0!==a){a-=1;for(const e in o)o[e]===a&&l.remove(e)}},[h.event]:()=>{}};class gi{constructor(e){this.updateTarget=null,this.aspectType=h.content,this.dataBinding=e}createHTML(e){return Ct.interpolation(e(this))}createBehavior(){var t;if(null===this.updateTarget){const n=pi[this.aspectType],i=null!==(t=this.dataBinding.policy)&&void 0!==t?t:this.policy;if(!n)throw r.error(e.unsupportedBindingBehavior);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,n)}return this}bind(e){var t;const n=e.targets[this.targetNodeId];switch(this.aspectType){case h.event:n[this.data]=e,n.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case h.content:e.onUnbind(this);default:{const i=null!==(t=n[this.data])&&void 0!==t?t:n[this.data]=this.dataBinding.createObserver(this,this);i.target=n,i.controller=e;const s=i.bind(e);if(e._skipAttrUpdates&&(this.aspectType===h.attribute||this.aspectType===h.booleanAttribute))break;this.updateTarget(n,this.targetAspect,s,e);break}}}unbind(e){const t=e.targets[this.targetNodeId].$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){J.setEvent(e);const n=this.dataBinding.evaluate(t.source,t.context);J.setEvent(null),!0!==n&&e.preventDefault()}}handleChange(e,t){const n=t.controller;if(!n.isBound)return;const i=t.target;this.updateTarget(i,this.targetAspect,t.bind(n),n)}}xt.define(gi,{aspected:!0});const bi=(e,t)=>`${e}.${t}`,vi={},mi={index:0,node:null};function yi(t){t.startsWith("fast-")||r.warn(e.hostBindingWithoutHost,{name:t})}const wi=new Proxy(document.createElement("div"),{get(e,n){yi(n);const i=Reflect.get(e,n);return t(i)?i.bind(e):i},set:(e,t,n)=>(yi(t),Reflect.set(e,t,n))});class Ci{constructor(e,t,n){this.fragment=e,this.directives=t,this.policy=n,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,n,i,s){var r,o;this.nodeIds.has(n)||(this.nodeIds.add(n),this.addTargetDescriptor(t,n,i)),e.id=null!==(r=e.id)&&void 0!==r?r:wt(),e.targetNodeId=n,e.targetTagName=s,e.policy=null!==(o=e.policy)&&void 0!==o?o:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,n){const i=this.descriptors;if("r"===t||"h"===t||i[t])return;if(!i[e]){const t=e.lastIndexOf("."),n=e.substring(0,t),i=parseInt(e.substring(t+1),10);this.addTargetDescriptor(n,e,i)}let s=vi[t];if(!s){const i=`_${t}`;vi[t]=s={get(){var t;return null!==(t=this[i])&&void 0!==t?t:this[i]=this[e].childNodes[n]}}}i[t]=s}createView(e){const t=this.fragment.cloneNode(!0),n=Object.create(this.proto);n.r=t,n.h=null!=e?e:wi;for(const e of this.nodeIds)Reflect.get(n,e);return new xn(t,this.factories,n)}}function Si(e,t,n,i,s,r=!1){const o=n.attributes,a=e.directives;for(let l=0,c=o.length;l<c;++l){const d=o[l],h=d.value,u=St.parse(h,a);let f=null;null===u?r&&(f=new gi(oe((()=>h),e.policy)),xt.assignAspect(f,d.name)):f=Ni.aggregate(u,e.policy),null!==f&&(n.removeAttributeNode(d),l--,c--,e.addFactory(f,t,i,s,n.tagName))}}function Oi(e,t,n){let i=0,s=t.firstChild;for(;s;){const t=xi(e,n,s,i);s=t.node,i=t.index}}function xi(e,t,i,s){const r=bi(t,s);switch(i.nodeType){case 1:Si(e,t,i,r,s),Oi(e,i,r);break;case 3:return function(e,t,i,s,r){const o=St.parse(t.textContent,e.directives);if(null===o)return mi.node=t.nextSibling,mi.index=r+1,mi;let a,l=a=t;for(let t=0,c=o.length;t<c;++t){const c=o[t];0!==t&&(r++,s=bi(i,r),a=l.parentNode.insertBefore(document.createTextNode(""),l.nextSibling)),n(c)?a.textContent=c:(a.textContent=" ",xt.assignAspect(c),e.addFactory(c,i,s,r,null)),l=a}return mi.index=r+1,mi.node=l.nextSibling,mi}(e,i,t,r,s);case 8:{const n=St.parse(i.data,e.directives);null!==n&&e.addFactory(Ni.aggregate(n),t,r,s,null);break}}return mi.index=s+1,mi.node=i.nextSibling,mi}const Ti="TEMPLATE",Ni={compile(e,t,i=b.policy){let s;if(n(e)){s=document.createElement(Ti),s.innerHTML=i.createHTML(e);const t=s.content.firstElementChild;null!==t&&t.tagName===Ti&&(s=t)}else s=e;s.content.firstChild||s.content.lastChild||s.content.appendChild(document.createComment(""));const r=document.adoptNode(s.content),o=new Ci(r,t,i);var a,l;return Si(o,"",s,"h",0,!0),a=r.firstChild,l=t,(a&&8===a.nodeType&&null!==St.parse(a.data,l)||1===r.childNodes.length&&Object.keys(t).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Oi(o,r,"r"),mi.node=null,o.freeze()},setDefaultStrategy(e){this.compile=e},aggregate(e,t=b.policy){if(1===e.length)return e[0];let i,s,r=!1;const o=e.length,a=e.map((e=>n(e)?()=>e:(i=e.sourceAspect||i,r=r||e.dataBinding.isVolatile,s=s||e.dataBinding.policy,e.dataBinding.evaluate))),l=new gi(le(((e,t)=>{let n="";for(let i=0;i<o;++i)n+=a[i](e,t);return n}),null!=s?s:t,r));return xt.assignAspect(l,i),l}},Bi=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,ki=Object.create(null);class Ai{constructor(e,t=ki){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const n in t)e(t[n]);return this.html}}function $i(e,t,n,i=xt.getForInstance(e)){if(i.aspected){const n=Bi.exec(t);null!==n&&xt.assignAspect(e,n[2])}return e.createHTML(n)}Ai.empty=new Ai(""),xt.define(Ai);class Mi{constructor(e,t={},n){this.policy=n,this.result=null,this.html=e,this.factories=t}compile(){return null===this.result&&(this.result=Ni.compile(this.html,this.factories,this.policy)),this.result}inline(){return new Ai(n(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw r.error(e.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw r.error(e.onlySetTemplatePolicyOnce);return this.policy=t,this}render(e,t,n){const i=this.create(n);return i.bind(e),i.appendTo(t),i}create(e){return this.compile().createView(e)}static create(e,n,i){let s="";const r=Object.create(null),o=e=>{var t;const n=null!==(t=e.id)&&void 0!==t?t:e.id=wt();return r[n]=e,n};for(let i=0,r=e.length-1;i<r;++i){const r=e[i];let a,l=n[i];if(s+=r,t(l))l=new gi(le(l));else if(l instanceof se)l=new gi(l);else if(!(a=xt.getForInstance(l))){const e=l;l=new gi(oe((()=>e)))}s+=$i(l,r,o,a)}return new Mi(s+e[e.length-1],r,i)}}d(Mi);const ji=(t,...n)=>{if(Array.isArray(t)&&Array.isArray(t.raw))return Mi.create(t,n);throw r.error(e.directCallToHTMLTagNotAllowed)};ji.partial=e=>new Ai(e);class Ei{constructor(e){this.directive=e,this.location=null,this.controller=null,this.view=null,this.data=null,this.dataBindingObserver=e.dataBinding.createObserver(this,e),this.templateBindingObserver=e.templateBinding.createObserver(this,e)}bind(e){if(this.location=e.targets[this.directive.targetNodeId],this.controller=e,this.data=this.dataBindingObserver.bind(e),this.template=this.templateBindingObserver.bind(e),e.onUnbind(this),Ft(this.template)&&Ft(e)&&e.hydrationStage!==kn&&!this.view){const t=e.bindingViewBoundaries[this.directive.targetNodeId];if(t)return this.view=this.template.hydrate(t.first,t.last),void this.bindView(this.view)}this.refreshView()}unbind(e){const t=this.view;null!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}handleChange(e,t){this.controller.isBound&&(t===this.dataBindingObserver&&(this.data=this.dataBindingObserver.bind(this.controller)),(this.directive.templateBindingDependsOnData||t===this.templateBindingObserver)&&(this.template=this.templateBindingObserver.bind(this.controller)),this.refreshView())}bindView(e){e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.data)):(e.isComposed=!0,e.bind(this.data),e.insertBefore(this.location),e.$fastTemplate=this.template)}refreshView(){let e=this.view;const t=this.template;null===e?(this.view=e=t.create(),this.view.context.parent=this.controller.source,this.view.context.parentContext=this.controller.context):e.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),this.view=e=t.create(),this.view.context.parent=this.controller.source,this.view.context.parentContext=this.controller.context),this.bindView(e)}}class Pi{constructor(e,t,n){this.dataBinding=e,this.templateBinding=t,this.templateBindingDependsOnData=n}createHTML(e){return Ct.comment(e(this))}createBehavior(){return new Ei(this)}}xt.define(Pi);const Ri=new Map,Ii="default-view",Vi=ji`
2
2
  &nbsp;
3
- `;function vi(e){return void 0===e?bi:e.template}function mi(e,t){if(e)return function(e,t){const n=gi.get(e);if(void 0!==n)return n[null!=t?t:"default-view"]}(e.constructor,t)}class yi{constructor(e){this.node=e,e.$fastTemplate=this}get context(){return this}bind(e){}unbind(){}insertBefore(e){e.parentNode.insertBefore(this.node,e)}remove(){this.node.parentNode.removeChild(this.node)}create(){return this}hydrate(e,t){return this}}function wi(e,i){let s,r;s=void 0===e?ee(e=>e):se(e);let o=!1;if(void 0===i)o=!0,r=ee((e,t)=>{var n;const i=s.evaluate(e,t);return i instanceof Node?null!==(n=i.$fastTemplate)&&void 0!==n?n:new yi(i):vi(mi(i))});else if(t(i))r=ne((e,t)=>{var r;let o=i(e,t);return n(o)?o=vi(mi(s.evaluate(e,t),o)):o instanceof Node&&(o=null!==(r=o.$fastTemplate)&&void 0!==r?r:new yi(o)),o},void 0,!0);else if(n(i))o=!0,r=ee((e,t)=>{var n;const r=s.evaluate(e,t);return r instanceof Node?null!==(n=r.$fastTemplate)&&void 0!==n?n:new yi(r):vi(mi(r,i))});else if(i instanceof Y){const e=i.evaluate;i.evaluate=(t,i)=>{var r;let o=e(t,i);return n(o)?o=vi(mi(s.evaluate(t,i),o)):o instanceof Node&&(o=null!==(r=o.$fastTemplate)&&void 0!==r?r:new yi(o)),o},r=i}else r=ee((e,t)=>i);return new fi(s,r,o)}function Ci(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}function Si(e,t){let n=t;for(;null!==n;){if(n===e)return!0;n=Ci(n)}return!1}class Oi extends MutationObserver{constructor(e){super(function(e){this.callback.call(null,e.filter(e=>this.observedNodes.has(e.target)))}),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}const Ti=Object.freeze({create(e){const t=[],n={};let i=null,s=!1;return{source:e,context:z.default,targets:n,get isBound(){return s},addBehaviorFactory(e,t){var n,i,s,r;const o=e;o.id=null!==(n=o.id)&&void 0!==n?n:ft(),o.targetNodeId=null!==(i=o.targetNodeId)&&void 0!==i?i:ft(),o.targetTagName=null!==(s=t.tagName)&&void 0!==s?s:null,o.policy=null!==(r=o.policy)&&void 0!==r?r:b.policy,this.addTarget(o.targetNodeId,t),this.addBehavior(o.createBehavior())},addTarget(e,t){n[e]=t},addBehavior(e){t.push(e),s&&e.bind(this)},onUnbind(e){null===i&&(i=[]),i.push(e)},connectedCallback(e){s||(s=!0,t.forEach(e=>e.bind(this)))},disconnectedCallback(e){s&&(s=!1,null!==i&&i.forEach(e=>e.unbind(this)))}}}});b.setPolicy(x.create());export{qt as ArrayObserver,W as AttributeConfiguration,X as AttributeDefinition,Y as Binding,Fn as CSSDirective,Tt as ChildrenDirective,oi as Compiler,b as DOM,h as DOMAspect,x as DOMPolicy,sn as DefaultExecutionContext,We as ElementController,me as ElementStyles,z as ExecutionContext,r as FAST,tt as FASTElement,_e as FASTElementDefinition,Kn as HTMLBindingDirective,mt as HTMLDirective,rn as HTMLView,ci as InlineTemplateDirective,gt as Markup,Ot as NodeObservationDirective,V as Observable,bt as Parser,B as PropertyChangeNotifier,Nt as RefDirective,pi as RenderBehavior,fi as RenderDirective,bn as RepeatBehavior,vn as RepeatDirective,jn as Schema,oe as Signal,wn as SlottedDirective,$t as Sort,_ as SourceLifetime,Et as Splice,zt as SpliceStrategy,Pt as SpliceStrategySupport,Ue as Stages,wt as StatelessAttachedAttributeDirective,N as SubscriberSet,ue as TwoWaySettings,Oi as UnobservableMutationObserver,I as Updates,Ti as ViewBehaviorOrchestrator,hi as ViewTemplate,G as attr,q as booleanConverter,xt as children,Si as composedContains,Ci as composedParent,Vn as computedState,qn as css,Un as cssDirective,nt as customElement,St as elements,a as emptyArray,lt as enableDebug,xe as fastElementRegistry,ui as html,yt as htmlDirective,Qt as lengthOf,ie as listener,se as normalizeBinding,Q as nullableBooleanConverter,K as nullableNumberConverter,L as observable,ee as oneTime,ne as oneWay,_n as ownedState,Pn as reactive,Bt as ref,wi as render,mn as repeat,An as schemaRegistry,ce as signal,Cn as slotted,Jt as sortedCount,In as state,ge as twoWay,D as volatile,Hn as watch,Tn as when};
3
+ `;function _i(e){return void 0===e?Vi:e.template}function Li(e,t){const i=e.evaluate,s=Object.create(Object.getPrototypeOf(e));for(const t of Object.getOwnPropertyNames(e))"evaluate"!==t&&Object.defineProperty(s,t,Object.getOwnPropertyDescriptor(e,t));return Object.defineProperty(s,"evaluate",{configurable:!0,enumerable:!0,value:(e,s)=>function(e,t,i,s){var r;return n(e)?_i(Di(t.evaluate(i,s),e)):e instanceof Node?null!==(r=e.$fastTemplate)&&void 0!==r?r:new Hi(e):e}(i(e,s),t,e,s),writable:!0}),s}function Di(e,t){if(e)return function(e,t){const n=Ri.get(e);if(void 0!==n)return n[null!=t?t:Ii]}(e.constructor,t)}class Hi{constructor(e){this.node=e,e.$fastTemplate=this}get context(){return this}bind(e){}unbind(){}insertBefore(e){e.parentNode.insertBefore(this.node,e)}remove(){this.node.parentNode.removeChild(this.node)}create(){return this}hydrate(e,t){return this}}function zi(e,i){let s,r;s=void 0===e?oe((e=>e)):de(e);let o=!1;return void 0===i?(o=!0,r=oe(((e,t)=>{var n;const i=s.evaluate(e,t);return i instanceof Node?null!==(n=i.$fastTemplate)&&void 0!==n?n:new Hi(i):_i(Di(i))}))):t(i)?r=le(((e,t)=>{var r;let o=i(e,t);return n(o)?o=_i(Di(s.evaluate(e,t),o)):o instanceof Node&&(o=null!==(r=o.$fastTemplate)&&void 0!==r?r:new Hi(o)),o}),void 0,!0):n(i)?(o=!0,r=oe(((e,t)=>{var n;const r=s.evaluate(e,t);return r instanceof Node?null!==(n=r.$fastTemplate)&&void 0!==n?n:new Hi(r):_i(Di(r,i))}))):r=i instanceof se?Li(i,s):oe(((e,t)=>i)),new Pi(s,r,o)}function Fi(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}function Ui(e,t){let n=t;for(;null!==n;){if(n===e)return!0;n=Fi(n)}return!1}class Wi extends MutationObserver{constructor(e){super((function(e){this.callback.call(null,e.filter((e=>this.observedNodes.has(e.target))))})),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}const qi=Object.freeze({create(e){const t=[],n={};let i=null,s=!1;return{source:e,context:J.default,targets:n,get isBound(){return s},addBehaviorFactory(e,t){var n,i,s,r;const o=e;o.id=null!==(n=o.id)&&void 0!==n?n:wt(),o.targetNodeId=null!==(i=o.targetNodeId)&&void 0!==i?i:wt(),o.targetTagName=null!==(s=t.tagName)&&void 0!==s?s:null,o.policy=null!==(r=o.policy)&&void 0!==r?r:b.policy,this.addTarget(o.targetNodeId,t),this.addBehavior(o.createBehavior())},addTarget(e,t){n[e]=t},addBehavior(e){t.push(e),s&&e.bind(this)},onUnbind(e){null===i&&(i=[]),i.push(e)},connectedCallback(e){s||(s=!0,t.forEach((e=>e.bind(this))))},disconnectedCallback(e){s&&(s=!1,null!==i&&i.forEach((e=>e.unbind(this))))}}}});b.setPolicy(M.create());export{sn as ArrayObserver,G as AttributeConfiguration,ne as AttributeDefinition,se as Binding,ci as CSSDirective,$t as ChildrenDirective,Ni as Compiler,b as DOM,h as DOMAspect,M as DOMPolicy,On as DefaultExecutionContext,Ge as ElementController,xe as ElementStyles,J as ExecutionContext,r as FAST,at as FASTElement,Fe as FASTElementDefinition,gi as HTMLBindingDirective,xt as HTMLDirective,xn as HTMLView,Ai as InlineTemplateDirective,Ct as Markup,At as NodeObservationDirective,U as Observable,St as Parser,E as PropertyChangeNotifier,jt as RefDirective,Ei as RenderBehavior,Pi as RenderDirective,In as RepeatBehavior,Vn as RepeatDirective,Xn as Schema,ue as Signal,Dn as SlottedDirective,Wt as Sort,F as SourceLifetime,Ut as Splice,Zt as SpliceStrategy,qt as SpliceStrategySupport,Xe as Stages,Nt as StatelessAttachedAttributeDirective,j as SubscriberSet,me as TwoWaySettings,Wi as UnobservableMutationObserver,z as Updates,qi as ViewBehaviorOrchestrator,Mi as ViewTemplate,ie as attr,Y as booleanConverter,Mt as children,Ui as composedContains,Fi as composedParent,si as computedState,ui as css,di as cssDirective,lt as customElement,kt as elements,a as emptyArray,pt as enableDebug,Me as fastElementRegistry,ji as html,Tt as htmlDirective,rn as lengthOf,ce as listener,de as normalizeBinding,Z as nullableBooleanConverter,te as nullableNumberConverter,W as observable,oe as oneTime,le as oneWay,ii as ownedState,ei as reactive,Et as ref,zi as render,_n as repeat,Kn as schemaRegistry,ge as signal,Hn as slotted,on as sortedCount,ni as state,Ce as twoWay,q as volatile,ai as watch,Un as when};