wcs-core 7.5.1 → 7.6.0

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 (481) hide show
  1. package/bundle/{p-763371a0.js → p-1329a1af.js} +3 -3
  2. package/bundle/p-1329a1af.js.map +1 -0
  3. package/bundle/p-2f7bca1e.js +2 -0
  4. package/bundle/p-2f7bca1e.js.map +1 -0
  5. package/bundle/p-475be4d2.js +2 -0
  6. package/bundle/{p-010cf905.js → p-5ef2bc63.js} +2 -2
  7. package/bundle/{p-44a3b0b9.js → p-7a06295b.js} +2 -2
  8. package/bundle/{p-2751ddc1.js → p-8b186fcf.js} +2 -2
  9. package/bundle/{p-d23d7658.js → p-a0268a31.js} +2 -2
  10. package/bundle/{p-c8b73e93.js → p-bce8c93f.js} +2 -2
  11. package/bundle/{p-2e9b9605.js → p-bf326ae8.js} +2 -2
  12. package/bundle/{p-98bd8a96.js → p-d018450c.js} +2 -2
  13. package/bundle/p-d05140f5.js +2 -0
  14. package/bundle/p-d05140f5.js.map +1 -0
  15. package/bundle/{p-f0dda0b8.js → p-d3fe6951.js} +2 -2
  16. package/bundle/{p-9c2aa87a.js → p-ee6ff5f8.js} +2 -2
  17. package/bundle/{p-cdc6f6c2.js → p-ff261e50.js} +2 -2
  18. package/bundle/wcs-accordion-panel.js +1 -1
  19. package/bundle/wcs-alert-drawer.js +1 -1
  20. package/bundle/wcs-alert.js +1 -1
  21. package/bundle/wcs-breadcrumb.js +1 -1
  22. package/bundle/wcs-button.js +1 -1
  23. package/bundle/wcs-card-content.js +1 -1
  24. package/bundle/wcs-card-content.js.map +1 -1
  25. package/bundle/wcs-card.js +1 -1
  26. package/bundle/wcs-card.js.map +1 -1
  27. package/bundle/wcs-checkbox.js +1 -1
  28. package/bundle/wcs-com-nav-category.js +1 -1
  29. package/bundle/wcs-com-nav-submenu.js +1 -1
  30. package/bundle/wcs-com-nav.js +1 -1
  31. package/bundle/wcs-counter.js +1 -1
  32. package/bundle/wcs-dropdown-item.js +1 -1
  33. package/bundle/wcs-dropdown.js +1 -1
  34. package/bundle/wcs-dropdown.js.map +1 -1
  35. package/bundle/wcs-editable-field.js +1 -1
  36. package/bundle/wcs-editable-field.js.map +1 -1
  37. package/bundle/wcs-form-field.js +1 -1
  38. package/bundle/wcs-galactic-menu.js +1 -1
  39. package/bundle/wcs-grid-column.js +1 -1
  40. package/bundle/wcs-grid-column.js.map +1 -1
  41. package/bundle/wcs-grid-custom-cell.js +1 -1
  42. package/bundle/wcs-grid-custom-cell.js.map +1 -1
  43. package/bundle/wcs-grid-pagination.js +1 -1
  44. package/bundle/wcs-grid.js +1 -1
  45. package/bundle/wcs-grid.js.map +1 -1
  46. package/bundle/wcs-header.js +1 -1
  47. package/bundle/wcs-hint.js +1 -1
  48. package/bundle/wcs-horizontal-stepper.js +1 -1
  49. package/bundle/wcs-icon.js +1 -1
  50. package/bundle/wcs-input.js +1 -1
  51. package/bundle/wcs-input.js.map +1 -1
  52. package/bundle/wcs-label.js +1 -1
  53. package/bundle/wcs-list-item-properties.js +1 -1
  54. package/bundle/wcs-list-item-property.js +1 -1
  55. package/bundle/wcs-list-item.js +1 -1
  56. package/bundle/wcs-mat-icon.js +1 -1
  57. package/bundle/wcs-modal.js +1 -1
  58. package/bundle/wcs-native-select.js +1 -1
  59. package/bundle/wcs-nav-item.js +1 -1
  60. package/bundle/wcs-nav.js +1 -1
  61. package/bundle/wcs-progress-bar.js +1 -1
  62. package/bundle/wcs-progress-radial.js +1 -1
  63. package/bundle/wcs-radio-group.js +1 -1
  64. package/bundle/wcs-radio-group.js.map +1 -1
  65. package/bundle/wcs-radio.js +1 -1
  66. package/bundle/wcs-radio.js.map +1 -1
  67. package/bundle/wcs-select-option.js +1 -1
  68. package/bundle/wcs-select.js +1 -1
  69. package/bundle/wcs-skeleton-circle.js +1 -1
  70. package/bundle/wcs-skeleton-rectangle.js +1 -1
  71. package/bundle/wcs-skeleton-text.js +1 -1
  72. package/bundle/wcs-spinner.js +1 -1
  73. package/bundle/wcs-switch.js +1 -1
  74. package/bundle/wcs-tab.js +1 -1
  75. package/bundle/wcs-tabs.js +1 -1
  76. package/bundle/wcs-textarea.js +1 -1
  77. package/bundle/wcs-tooltip.js +2 -2
  78. package/composite-elements/{p-af24fb0d.js → p-00dd13c3.js} +3 -3
  79. package/composite-elements/p-00dd13c3.js.map +1 -0
  80. package/composite-elements/p-6b91c7bd.js +2 -0
  81. package/composite-elements/p-6b91c7bd.js.map +1 -0
  82. package/{bundle/p-30d83d3d.js → composite-elements/p-7feba658.js} +2 -2
  83. package/composite-elements/p-7feba658.js.map +1 -0
  84. package/composite-elements/{p-b83afff9.js → p-87e97a2e.js} +2 -2
  85. package/composite-elements/{p-b92e818b.js → p-a70a3379.js} +2 -2
  86. package/composite-elements/{p-55668982.js → p-c028b8e6.js} +2 -2
  87. package/composite-elements/{p-2a51c239.js → p-c6adb221.js} +2 -2
  88. package/composite-elements/{p-04663560.js → p-e4e3ed2c.js} +2 -2
  89. package/composite-elements/{p-51517fda.js → p-ec3ce4d4.js} +2 -2
  90. package/composite-elements/wcs-alert-drawer.js +1 -1
  91. package/composite-elements/wcs-alert.js +1 -1
  92. package/composite-elements/wcs-breadcrumb.js +1 -1
  93. package/composite-elements/wcs-button.js +1 -1
  94. package/composite-elements/wcs-card-content.js +1 -1
  95. package/composite-elements/wcs-card-content.js.map +1 -1
  96. package/composite-elements/wcs-card.js +1 -1
  97. package/composite-elements/wcs-card.js.map +1 -1
  98. package/composite-elements/wcs-counter.js +1 -1
  99. package/composite-elements/wcs-dropdown.js +1 -1
  100. package/composite-elements/wcs-dropdown.js.map +1 -1
  101. package/composite-elements/wcs-editable-field.js +1 -1
  102. package/composite-elements/wcs-editable-field.js.map +1 -1
  103. package/composite-elements/wcs-galactic-menu.js +1 -1
  104. package/composite-elements/wcs-grid-column.js +1 -1
  105. package/composite-elements/wcs-grid-column.js.map +1 -1
  106. package/composite-elements/wcs-grid-custom-cell.js +1 -1
  107. package/composite-elements/wcs-grid-custom-cell.js.map +1 -1
  108. package/composite-elements/wcs-grid-pagination.js +1 -1
  109. package/composite-elements/wcs-grid.js +1 -1
  110. package/composite-elements/wcs-grid.js.map +1 -1
  111. package/composite-elements/wcs-header.js +1 -1
  112. package/composite-elements/wcs-hint.js +1 -1
  113. package/composite-elements/wcs-horizontal-stepper.js +1 -1
  114. package/composite-elements/wcs-icon.js +1 -1
  115. package/composite-elements/wcs-input.js +1 -1
  116. package/composite-elements/wcs-input.js.map +1 -1
  117. package/composite-elements/wcs-label.js +1 -1
  118. package/composite-elements/wcs-list-item-properties.js +1 -1
  119. package/composite-elements/wcs-list-item-property.js +1 -1
  120. package/composite-elements/wcs-list-item.js +1 -1
  121. package/composite-elements/wcs-mat-icon.js +1 -1
  122. package/composite-elements/wcs-modal.js +1 -1
  123. package/composite-elements/wcs-native-select.js +1 -1
  124. package/composite-elements/wcs-nav-item.js +1 -1
  125. package/composite-elements/wcs-nav.js +1 -1
  126. package/composite-elements/wcs-progress-bar.js +1 -1
  127. package/composite-elements/wcs-progress-radial.js +1 -1
  128. package/composite-elements/wcs-radio-group.js +1 -1
  129. package/composite-elements/wcs-radio.js +1 -1
  130. package/composite-elements/wcs-radio.js.map +1 -1
  131. package/composite-elements/wcs-select-option.js +1 -1
  132. package/composite-elements/wcs-select.js +1 -1
  133. package/composite-elements/wcs-skeleton-circle.js +1 -1
  134. package/composite-elements/wcs-skeleton-rectangle.js +1 -1
  135. package/composite-elements/wcs-skeleton-text.js +1 -1
  136. package/composite-elements/wcs-spinner.js +1 -1
  137. package/composite-elements/wcs-switch.js +1 -1
  138. package/composite-elements/wcs-tab.js +1 -1
  139. package/composite-elements/wcs-tabs.js +1 -1
  140. package/composite-elements/wcs-textarea.js +1 -1
  141. package/composite-elements/wcs-tooltip.js +1 -1
  142. package/dist/cjs/{grid-pagination-4505d7b6.js → grid-pagination-ded127cc.js} +2 -2
  143. package/dist/cjs/grid-pagination-ded127cc.js.map +1 -0
  144. package/dist/cjs/{isEqual-8a0a6936.js → isEqual-be8e5a57.js} +2 -2
  145. package/dist/cjs/{isEqual-8a0a6936.js.map → isEqual-be8e5a57.js.map} +1 -1
  146. package/dist/cjs/loader.cjs.js +1 -1
  147. package/dist/cjs/wcs-button_2.cjs.entry.js +1 -1
  148. package/dist/cjs/wcs-card-content.cjs.entry.js +1 -1
  149. package/dist/cjs/wcs-card-content.cjs.entry.js.map +1 -1
  150. package/dist/cjs/wcs-card.cjs.entry.js +1 -1
  151. package/dist/cjs/wcs-card.cjs.entry.js.map +1 -1
  152. package/dist/cjs/wcs-dropdown.cjs.entry.js +1 -1
  153. package/dist/cjs/wcs-dropdown.cjs.entry.js.map +1 -1
  154. package/dist/cjs/wcs-editable-field.cjs.entry.js +34 -10
  155. package/dist/cjs/wcs-editable-field.cjs.entry.js.map +1 -1
  156. package/dist/cjs/wcs-error_3.cjs.entry.js +2 -2
  157. package/dist/cjs/wcs-error_3.cjs.entry.js.map +1 -1
  158. package/dist/cjs/wcs-grid-column.cjs.entry.js +1 -1
  159. package/dist/cjs/wcs-grid-custom-cell.cjs.entry.js +1 -1
  160. package/dist/cjs/wcs-grid-pagination.cjs.entry.js +1 -1
  161. package/dist/cjs/wcs-grid.cjs.entry.js +6 -6
  162. package/dist/cjs/wcs-grid.cjs.entry.js.map +1 -1
  163. package/dist/cjs/wcs-header.cjs.entry.js +1 -1
  164. package/dist/cjs/wcs-hint.cjs.entry.js +1 -1
  165. package/dist/cjs/wcs-horizontal-stepper.cjs.entry.js +1 -1
  166. package/dist/cjs/wcs-icon.cjs.entry.js +1 -1
  167. package/dist/cjs/wcs-input.cjs.entry.js +1 -6
  168. package/dist/cjs/wcs-input.cjs.entry.js.map +1 -1
  169. package/dist/cjs/wcs-list-item-properties.cjs.entry.js +1 -1
  170. package/dist/cjs/wcs-list-item-property.cjs.entry.js +1 -1
  171. package/dist/cjs/wcs-list-item.cjs.entry.js +1 -1
  172. package/dist/cjs/wcs-mat-icon.cjs.entry.js +1 -1
  173. package/dist/cjs/wcs-modal.cjs.entry.js +1 -1
  174. package/dist/cjs/wcs-native-select.cjs.entry.js +1 -1
  175. package/dist/cjs/wcs-nav-item.cjs.entry.js +1 -1
  176. package/dist/cjs/wcs-nav.cjs.entry.js +1 -1
  177. package/dist/cjs/wcs-progress-bar.cjs.entry.js +2 -2
  178. package/dist/cjs/wcs-progress-radial.cjs.entry.js +2 -2
  179. package/dist/cjs/wcs-radio-group.cjs.entry.js +1 -1
  180. package/dist/cjs/wcs-radio.cjs.entry.js +24 -20
  181. package/dist/cjs/wcs-radio.cjs.entry.js.map +1 -1
  182. package/dist/cjs/wcs-select_2.cjs.entry.js +19 -9
  183. package/dist/cjs/wcs-select_2.cjs.entry.js.map +1 -1
  184. package/dist/cjs/wcs-skeleton-circle.cjs.entry.js +1 -1
  185. package/dist/cjs/wcs-skeleton-rectangle.cjs.entry.js +1 -1
  186. package/dist/cjs/wcs-skeleton-text.cjs.entry.js +1 -1
  187. package/dist/cjs/wcs-switch.cjs.entry.js +1 -1
  188. package/dist/cjs/wcs-tab.cjs.entry.js +1 -1
  189. package/dist/cjs/wcs-tabs.cjs.entry.js +1 -1
  190. package/dist/cjs/wcs-textarea.cjs.entry.js +1 -1
  191. package/dist/cjs/wcs-tooltip.cjs.entry.js +1 -1
  192. package/dist/cjs/wcs.cjs.js +1 -1
  193. package/dist/collection/components/card/card.js +11 -4
  194. package/dist/collection/components/card/card.js.map +1 -1
  195. package/dist/collection/components/card-content/card-content.js +8 -3
  196. package/dist/collection/components/card-content/card-content.js.map +1 -1
  197. package/dist/collection/components/dropdown/dropdown.css +8 -0
  198. package/dist/collection/components/dropdown/dropdown.e2e.playwright.js +53 -0
  199. package/dist/collection/components/dropdown/dropdown.e2e.playwright.js.map +1 -1
  200. package/dist/collection/components/editable-field/editable-field.e2e.playwright.js +214 -0
  201. package/dist/collection/components/editable-field/editable-field.e2e.playwright.js.map +1 -1
  202. package/dist/collection/components/editable-field/editable-field.js +34 -10
  203. package/dist/collection/components/editable-field/editable-field.js.map +1 -1
  204. package/dist/collection/components/grid/grid-radio.css +8 -0
  205. package/dist/collection/components/grid/grid.e2e.playwright.js +55 -0
  206. package/dist/collection/components/grid/grid.e2e.playwright.js.map +1 -1
  207. package/dist/collection/components/grid/grid.js +3 -3
  208. package/dist/collection/components/grid-column/grid-column.js +1 -1
  209. package/dist/collection/components/grid-custom-cell/grid-custom-cell.js +1 -1
  210. package/dist/collection/components/grid-pagination/grid-pagination.js +4 -1
  211. package/dist/collection/components/grid-pagination/grid-pagination.js.map +1 -1
  212. package/dist/collection/components/header/header.js +1 -1
  213. package/dist/collection/components/hint/hint.js +1 -1
  214. package/dist/collection/components/horizontal-stepper/horizontal-stepper.js +1 -1
  215. package/dist/collection/components/icon/icon.js +1 -1
  216. package/dist/collection/components/input/input.js +2 -7
  217. package/dist/collection/components/input/input.js.map +1 -1
  218. package/dist/collection/components/label/label.css +12 -8
  219. package/dist/collection/components/label/label.e2e.playwright.js +62 -0
  220. package/dist/collection/components/label/label.e2e.playwright.js.map +1 -1
  221. package/dist/collection/components/label/label.js +1 -1
  222. package/dist/collection/components/label/label.js.map +1 -1
  223. package/dist/collection/components/list-item/list-item.js +1 -1
  224. package/dist/collection/components/list-item-properties/list-item-properties.js +1 -1
  225. package/dist/collection/components/list-item-property/list-item-property.js +1 -1
  226. package/dist/collection/components/mat-icon/mat-icon.js +1 -1
  227. package/dist/collection/components/modal/modal.js +1 -1
  228. package/dist/collection/components/native-select/native-select.js +1 -1
  229. package/dist/collection/components/nav/nav.js +1 -1
  230. package/dist/collection/components/nav-item/nav-item.js +1 -1
  231. package/dist/collection/components/progress-bar/progress-bar.js +2 -2
  232. package/dist/collection/components/progress-radial/progress-radial.js +2 -2
  233. package/dist/collection/components/radio/radio.css +48 -37
  234. package/dist/collection/components/radio/radio.js +24 -20
  235. package/dist/collection/components/radio/radio.js.map +1 -1
  236. package/dist/collection/components/radio-group/radio-group.e2e.playwright.js +92 -7
  237. package/dist/collection/components/radio-group/radio-group.e2e.playwright.js.map +1 -1
  238. package/dist/collection/components/radio-group/radio-group.js +1 -1
  239. package/dist/collection/components/select/select-interface.js.map +1 -1
  240. package/dist/collection/components/select/select.e2e.playwright.js +9 -9
  241. package/dist/collection/components/select/select.e2e.playwright.js.map +1 -1
  242. package/dist/collection/components/select/select.js +16 -6
  243. package/dist/collection/components/select/select.js.map +1 -1
  244. package/dist/collection/components/select-option/select-option.js +2 -2
  245. package/dist/collection/components/skeleton-circle/skeleton-circle.js +1 -1
  246. package/dist/collection/components/skeleton-rectangle/skeleton-rectangle.js +1 -1
  247. package/dist/collection/components/skeleton-text/skeleton-text.js +1 -1
  248. package/dist/collection/components/spinner/spinner.js +1 -1
  249. package/dist/collection/components/switch/switch.js +1 -1
  250. package/dist/collection/components/tab/tab.js +1 -1
  251. package/dist/collection/components/tabs/tabs.js +1 -1
  252. package/dist/collection/components/textarea/textarea.js +1 -1
  253. package/dist/collection/components/tooltip/tooltip.js +1 -1
  254. package/dist/esm/{com-nav-utils-ee7bf77c.js → com-nav-utils-27c1efdf.js} +2 -2
  255. package/dist/esm/{com-nav-utils-ee7bf77c.js.map → com-nav-utils-27c1efdf.js.map} +1 -1
  256. package/dist/esm/{grid-pagination-731726a6.js → grid-pagination-23102986.js} +3 -3
  257. package/dist/esm/grid-pagination-23102986.js.map +1 -0
  258. package/dist/esm/{helpers-ece6a2d3.js → helpers-89faa1b1.js} +2 -2
  259. package/dist/esm/{helpers-ece6a2d3.js.map → helpers-89faa1b1.js.map} +1 -1
  260. package/dist/esm/{isEqual-f2a07f4c.js → isEqual-89e74e17.js} +2 -2
  261. package/dist/esm/{isEqual-f2a07f4c.js.map → isEqual-89e74e17.js.map} +1 -1
  262. package/dist/esm/{keyboard-event-26b65ae5.js → keyboard-event-dd35bb6b.js} +2 -2
  263. package/dist/esm/{keyboard-event-26b65ae5.js.map → keyboard-event-dd35bb6b.js.map} +1 -1
  264. package/dist/esm/loader.js +1 -1
  265. package/dist/esm/wcs-accordion-panel.entry.js +1 -1
  266. package/dist/esm/wcs-alert-drawer.entry.js +1 -1
  267. package/dist/esm/wcs-breadcrumb.entry.js +1 -1
  268. package/dist/esm/wcs-button_2.entry.js +2 -2
  269. package/dist/esm/wcs-card-content.entry.js +1 -1
  270. package/dist/esm/wcs-card-content.entry.js.map +1 -1
  271. package/dist/esm/wcs-card.entry.js +1 -1
  272. package/dist/esm/wcs-card.entry.js.map +1 -1
  273. package/dist/esm/wcs-checkbox.entry.js +1 -1
  274. package/dist/esm/wcs-com-nav-category.entry.js +2 -2
  275. package/dist/esm/wcs-com-nav-submenu.entry.js +2 -2
  276. package/dist/esm/wcs-com-nav.entry.js +2 -2
  277. package/dist/esm/wcs-counter.entry.js +1 -1
  278. package/dist/esm/wcs-dropdown-item.entry.js +1 -1
  279. package/dist/esm/wcs-dropdown.entry.js +3 -3
  280. package/dist/esm/wcs-dropdown.entry.js.map +1 -1
  281. package/dist/esm/wcs-editable-field.entry.js +35 -11
  282. package/dist/esm/wcs-editable-field.entry.js.map +1 -1
  283. package/dist/esm/wcs-error_3.entry.js +3 -3
  284. package/dist/esm/wcs-error_3.entry.js.map +1 -1
  285. package/dist/esm/wcs-galactic-menu.entry.js +1 -1
  286. package/dist/esm/wcs-grid-column.entry.js +2 -2
  287. package/dist/esm/wcs-grid-custom-cell.entry.js +1 -1
  288. package/dist/esm/wcs-grid-pagination.entry.js +2 -2
  289. package/dist/esm/wcs-grid.entry.js +8 -8
  290. package/dist/esm/wcs-grid.entry.js.map +1 -1
  291. package/dist/esm/wcs-header.entry.js +2 -2
  292. package/dist/esm/wcs-hint.entry.js +1 -1
  293. package/dist/esm/wcs-horizontal-stepper.entry.js +1 -1
  294. package/dist/esm/wcs-icon.entry.js +2 -2
  295. package/dist/esm/wcs-input.entry.js +2 -7
  296. package/dist/esm/wcs-input.entry.js.map +1 -1
  297. package/dist/esm/wcs-list-item-properties.entry.js +1 -1
  298. package/dist/esm/wcs-list-item-property.entry.js +1 -1
  299. package/dist/esm/wcs-list-item.entry.js +1 -1
  300. package/dist/esm/wcs-mat-icon.entry.js +2 -2
  301. package/dist/esm/wcs-modal.entry.js +2 -2
  302. package/dist/esm/wcs-native-select.entry.js +1 -1
  303. package/dist/esm/wcs-nav-item.entry.js +2 -2
  304. package/dist/esm/wcs-nav.entry.js +2 -2
  305. package/dist/esm/wcs-progress-bar.entry.js +3 -3
  306. package/dist/esm/wcs-progress-radial.entry.js +3 -3
  307. package/dist/esm/wcs-radio-group.entry.js +2 -2
  308. package/dist/esm/wcs-radio.entry.js +25 -21
  309. package/dist/esm/wcs-radio.entry.js.map +1 -1
  310. package/dist/esm/wcs-select_2.entry.js +21 -11
  311. package/dist/esm/wcs-select_2.entry.js.map +1 -1
  312. package/dist/esm/wcs-skeleton-circle.entry.js +1 -1
  313. package/dist/esm/wcs-skeleton-rectangle.entry.js +1 -1
  314. package/dist/esm/wcs-skeleton-text.entry.js +1 -1
  315. package/dist/esm/wcs-switch.entry.js +2 -2
  316. package/dist/esm/wcs-tab.entry.js +1 -1
  317. package/dist/esm/wcs-tabs.entry.js +2 -2
  318. package/dist/esm/wcs-textarea.entry.js +2 -2
  319. package/dist/esm/wcs-tooltip.entry.js +2 -2
  320. package/dist/esm/wcs.js +1 -1
  321. package/dist/types/components/card/card.d.ts +10 -3
  322. package/dist/types/components/card-content/card-content.d.ts +7 -2
  323. package/dist/types/components/editable-field/editable-field.d.ts +3 -0
  324. package/dist/types/components/grid-pagination/grid-pagination.d.ts +3 -0
  325. package/dist/types/components/radio/radio.d.ts +4 -5
  326. package/dist/types/components/select/select-interface.d.ts +4 -0
  327. package/dist/types/components.d.ts +52 -16
  328. package/dist/wcs/{p-1ba616c2.entry.js → p-03838b42.entry.js} +2 -2
  329. package/dist/wcs/{p-b0a6eec6.entry.js → p-0cbf08fb.entry.js} +2 -2
  330. package/dist/wcs/{p-cad10435.entry.js → p-0d233c6a.entry.js} +2 -2
  331. package/dist/wcs/{p-db7ba599.entry.js → p-14dfa087.entry.js} +3 -3
  332. package/dist/wcs/p-1c356201.entry.js +2 -0
  333. package/dist/wcs/p-1c356201.entry.js.map +1 -0
  334. package/dist/wcs/{p-b28b2fba.entry.js → p-218b5f3d.entry.js} +2 -2
  335. package/dist/wcs/{p-aadf37e7.entry.js → p-25d7b2f8.entry.js} +2 -2
  336. package/dist/wcs/{p-850fa9c9.entry.js → p-3e57c746.entry.js} +2 -2
  337. package/dist/wcs/{p-52d77e1f.js → p-5314a64d.js} +2 -2
  338. package/dist/wcs/{p-27b438c0.entry.js → p-53bc2cae.entry.js} +2 -2
  339. package/dist/wcs/p-5443c9af.entry.js +2 -0
  340. package/dist/wcs/p-5443c9af.entry.js.map +1 -0
  341. package/dist/wcs/{p-ad286030.entry.js → p-56d9554a.entry.js} +2 -2
  342. package/dist/wcs/p-59f96b21.entry.js +2 -0
  343. package/dist/wcs/{p-ff826ebe.js → p-5cea30cb.js} +1 -1
  344. package/dist/wcs/{p-ff826ebe.js.map → p-5cea30cb.js.map} +1 -1
  345. package/dist/wcs/{p-2329af04.entry.js → p-63a8e5cc.entry.js} +2 -2
  346. package/dist/wcs/{p-fbd68522.entry.js → p-6d8f0040.entry.js} +2 -2
  347. package/dist/wcs/p-6e7db56e.entry.js +2 -0
  348. package/dist/wcs/p-6e7db56e.entry.js.map +1 -0
  349. package/dist/wcs/{p-c84ae00d.entry.js → p-6f937b20.entry.js} +2 -2
  350. package/dist/wcs/p-7af9a2f3.js +2 -0
  351. package/dist/wcs/p-7b60d4c7.js +2 -0
  352. package/dist/wcs/p-7b60d4c7.js.map +1 -0
  353. package/dist/wcs/{p-2221bf0c.entry.js → p-82838611.entry.js} +3 -3
  354. package/dist/wcs/p-82838611.entry.js.map +1 -0
  355. package/dist/wcs/{p-bc009574.entry.js → p-8f95bbf3.entry.js} +2 -2
  356. package/dist/wcs/{p-9fd3366c.entry.js → p-912c2c9b.entry.js} +2 -2
  357. package/dist/wcs/p-9197e9b5.entry.js +2 -0
  358. package/dist/wcs/p-9197e9b5.entry.js.map +1 -0
  359. package/dist/wcs/{p-1e7ea63c.entry.js → p-9388283a.entry.js} +2 -2
  360. package/dist/wcs/{p-18fa39f4.entry.js → p-9c6db857.entry.js} +2 -2
  361. package/dist/wcs/{p-637ec45a.entry.js → p-9d4c8f84.entry.js} +2 -2
  362. package/dist/wcs/p-9d4c8f84.entry.js.map +1 -0
  363. package/dist/wcs/{p-dfb52a1c.entry.js → p-9e091c53.entry.js} +2 -2
  364. package/dist/wcs/{p-450942b1.entry.js → p-a60ba874.entry.js} +3 -3
  365. package/dist/wcs/{p-c6f8c45c.entry.js → p-a6d64e5b.entry.js} +2 -2
  366. package/dist/wcs/{p-9c73744c.entry.js → p-ae299c3f.entry.js} +2 -2
  367. package/dist/wcs/{p-a0f6ef30.entry.js → p-b04471f5.entry.js} +2 -2
  368. package/dist/wcs/p-b04471f5.entry.js.map +1 -0
  369. package/dist/wcs/{p-4ae08567.entry.js → p-b3b31d43.entry.js} +2 -2
  370. package/dist/wcs/{p-abd8d5a0.entry.js → p-b42f441f.entry.js} +2 -2
  371. package/dist/wcs/{p-5202b323.entry.js → p-b9368690.entry.js} +2 -2
  372. package/dist/wcs/{p-e56b9ce2.entry.js → p-beeec782.entry.js} +2 -2
  373. package/dist/wcs/{p-c261eaf9.entry.js → p-c169d496.entry.js} +2 -2
  374. package/dist/wcs/p-c3b733ff.entry.js +2 -0
  375. package/dist/wcs/{p-22620c69.entry.js → p-c42a6c1c.entry.js} +2 -2
  376. package/dist/wcs/p-c42a6c1c.entry.js.map +1 -0
  377. package/dist/wcs/p-c6808cab.entry.js +2 -0
  378. package/dist/wcs/{p-ed3b0709.entry.js → p-cb9147b8.entry.js} +2 -2
  379. package/dist/wcs/{p-f2f7595e.entry.js → p-cceee683.entry.js} +2 -2
  380. package/dist/wcs/{p-f2f7595e.entry.js.map → p-cceee683.entry.js.map} +1 -1
  381. package/dist/wcs/p-d3afc02f.entry.js +2 -0
  382. package/dist/wcs/{p-5e8fff73.entry.js → p-d89ad962.entry.js} +2 -2
  383. package/dist/wcs/{p-4e2d6227.entry.js → p-d8c4dbc3.entry.js} +2 -2
  384. package/dist/wcs/p-dbf82cb9.js +2 -0
  385. package/dist/wcs/{p-dff8641e.entry.js → p-e35b138e.entry.js} +2 -2
  386. package/dist/wcs/{p-fdeae83e.entry.js → p-f2c49d83.entry.js} +2 -2
  387. package/dist/wcs/{p-cbda74f6.entry.js → p-f411974e.entry.js} +2 -2
  388. package/dist/wcs/{p-0326f834.entry.js → p-f974210c.entry.js} +2 -2
  389. package/dist/wcs/{p-352e1f99.entry.js → p-ff48a8b2.entry.js} +2 -2
  390. package/dist/wcs/wcs.esm.js +1 -1
  391. package/dist/wcs/wcs.esm.js.map +1 -1
  392. package/package.json +2 -2
  393. package/bundle/p-30d83d3d.js.map +0 -1
  394. package/bundle/p-581fc0fc.js +0 -2
  395. package/bundle/p-581fc0fc.js.map +0 -1
  396. package/bundle/p-763371a0.js.map +0 -1
  397. package/bundle/p-97e70e10.js +0 -2
  398. package/composite-elements/p-79ad61e4.js +0 -2
  399. package/composite-elements/p-79ad61e4.js.map +0 -1
  400. package/composite-elements/p-af24fb0d.js.map +0 -1
  401. package/composite-elements/p-bc4c736d.js +0 -2
  402. package/composite-elements/p-bc4c736d.js.map +0 -1
  403. package/dist/cjs/grid-pagination-4505d7b6.js.map +0 -1
  404. package/dist/esm/grid-pagination-731726a6.js.map +0 -1
  405. package/dist/wcs/p-0017d766.js +0 -2
  406. package/dist/wcs/p-0b8157e7.entry.js +0 -2
  407. package/dist/wcs/p-2221bf0c.entry.js.map +0 -1
  408. package/dist/wcs/p-22620c69.entry.js.map +0 -1
  409. package/dist/wcs/p-3823f54e.entry.js +0 -2
  410. package/dist/wcs/p-580b3142.entry.js +0 -2
  411. package/dist/wcs/p-5da0534f.entry.js +0 -2
  412. package/dist/wcs/p-5da0534f.entry.js.map +0 -1
  413. package/dist/wcs/p-637ec45a.entry.js.map +0 -1
  414. package/dist/wcs/p-86ec9ead.entry.js +0 -2
  415. package/dist/wcs/p-86ec9ead.entry.js.map +0 -1
  416. package/dist/wcs/p-89b8c724.js +0 -2
  417. package/dist/wcs/p-98a8b806.entry.js +0 -2
  418. package/dist/wcs/p-98a8b806.entry.js.map +0 -1
  419. package/dist/wcs/p-a0f6ef30.entry.js.map +0 -1
  420. package/dist/wcs/p-ad5192cd.entry.js +0 -2
  421. package/dist/wcs/p-c5bad0b8.js +0 -2
  422. package/dist/wcs/p-c5bad0b8.js.map +0 -1
  423. package/dist/wcs/p-fe303f58.entry.js +0 -2
  424. package/dist/wcs/p-fe303f58.entry.js.map +0 -1
  425. /package/bundle/{p-97e70e10.js.map → p-475be4d2.js.map} +0 -0
  426. /package/bundle/{p-010cf905.js.map → p-5ef2bc63.js.map} +0 -0
  427. /package/bundle/{p-44a3b0b9.js.map → p-7a06295b.js.map} +0 -0
  428. /package/bundle/{p-2751ddc1.js.map → p-8b186fcf.js.map} +0 -0
  429. /package/bundle/{p-d23d7658.js.map → p-a0268a31.js.map} +0 -0
  430. /package/bundle/{p-c8b73e93.js.map → p-bce8c93f.js.map} +0 -0
  431. /package/bundle/{p-2e9b9605.js.map → p-bf326ae8.js.map} +0 -0
  432. /package/bundle/{p-98bd8a96.js.map → p-d018450c.js.map} +0 -0
  433. /package/bundle/{p-f0dda0b8.js.map → p-d3fe6951.js.map} +0 -0
  434. /package/bundle/{p-9c2aa87a.js.map → p-ee6ff5f8.js.map} +0 -0
  435. /package/bundle/{p-cdc6f6c2.js.map → p-ff261e50.js.map} +0 -0
  436. /package/composite-elements/{p-b83afff9.js.map → p-87e97a2e.js.map} +0 -0
  437. /package/composite-elements/{p-b92e818b.js.map → p-a70a3379.js.map} +0 -0
  438. /package/composite-elements/{p-55668982.js.map → p-c028b8e6.js.map} +0 -0
  439. /package/composite-elements/{p-2a51c239.js.map → p-c6adb221.js.map} +0 -0
  440. /package/composite-elements/{p-04663560.js.map → p-e4e3ed2c.js.map} +0 -0
  441. /package/composite-elements/{p-51517fda.js.map → p-ec3ce4d4.js.map} +0 -0
  442. /package/dist/wcs/{p-1ba616c2.entry.js.map → p-03838b42.entry.js.map} +0 -0
  443. /package/dist/wcs/{p-b0a6eec6.entry.js.map → p-0cbf08fb.entry.js.map} +0 -0
  444. /package/dist/wcs/{p-cad10435.entry.js.map → p-0d233c6a.entry.js.map} +0 -0
  445. /package/dist/wcs/{p-db7ba599.entry.js.map → p-14dfa087.entry.js.map} +0 -0
  446. /package/dist/wcs/{p-b28b2fba.entry.js.map → p-218b5f3d.entry.js.map} +0 -0
  447. /package/dist/wcs/{p-aadf37e7.entry.js.map → p-25d7b2f8.entry.js.map} +0 -0
  448. /package/dist/wcs/{p-850fa9c9.entry.js.map → p-3e57c746.entry.js.map} +0 -0
  449. /package/dist/wcs/{p-52d77e1f.js.map → p-5314a64d.js.map} +0 -0
  450. /package/dist/wcs/{p-27b438c0.entry.js.map → p-53bc2cae.entry.js.map} +0 -0
  451. /package/dist/wcs/{p-ad286030.entry.js.map → p-56d9554a.entry.js.map} +0 -0
  452. /package/dist/wcs/{p-3823f54e.entry.js.map → p-59f96b21.entry.js.map} +0 -0
  453. /package/dist/wcs/{p-2329af04.entry.js.map → p-63a8e5cc.entry.js.map} +0 -0
  454. /package/dist/wcs/{p-fbd68522.entry.js.map → p-6d8f0040.entry.js.map} +0 -0
  455. /package/dist/wcs/{p-c84ae00d.entry.js.map → p-6f937b20.entry.js.map} +0 -0
  456. /package/dist/wcs/{p-89b8c724.js.map → p-7af9a2f3.js.map} +0 -0
  457. /package/dist/wcs/{p-bc009574.entry.js.map → p-8f95bbf3.entry.js.map} +0 -0
  458. /package/dist/wcs/{p-9fd3366c.entry.js.map → p-912c2c9b.entry.js.map} +0 -0
  459. /package/dist/wcs/{p-1e7ea63c.entry.js.map → p-9388283a.entry.js.map} +0 -0
  460. /package/dist/wcs/{p-18fa39f4.entry.js.map → p-9c6db857.entry.js.map} +0 -0
  461. /package/dist/wcs/{p-dfb52a1c.entry.js.map → p-9e091c53.entry.js.map} +0 -0
  462. /package/dist/wcs/{p-450942b1.entry.js.map → p-a60ba874.entry.js.map} +0 -0
  463. /package/dist/wcs/{p-c6f8c45c.entry.js.map → p-a6d64e5b.entry.js.map} +0 -0
  464. /package/dist/wcs/{p-9c73744c.entry.js.map → p-ae299c3f.entry.js.map} +0 -0
  465. /package/dist/wcs/{p-4ae08567.entry.js.map → p-b3b31d43.entry.js.map} +0 -0
  466. /package/dist/wcs/{p-abd8d5a0.entry.js.map → p-b42f441f.entry.js.map} +0 -0
  467. /package/dist/wcs/{p-5202b323.entry.js.map → p-b9368690.entry.js.map} +0 -0
  468. /package/dist/wcs/{p-e56b9ce2.entry.js.map → p-beeec782.entry.js.map} +0 -0
  469. /package/dist/wcs/{p-c261eaf9.entry.js.map → p-c169d496.entry.js.map} +0 -0
  470. /package/dist/wcs/{p-0b8157e7.entry.js.map → p-c3b733ff.entry.js.map} +0 -0
  471. /package/dist/wcs/{p-580b3142.entry.js.map → p-c6808cab.entry.js.map} +0 -0
  472. /package/dist/wcs/{p-ed3b0709.entry.js.map → p-cb9147b8.entry.js.map} +0 -0
  473. /package/dist/wcs/{p-ad5192cd.entry.js.map → p-d3afc02f.entry.js.map} +0 -0
  474. /package/dist/wcs/{p-5e8fff73.entry.js.map → p-d89ad962.entry.js.map} +0 -0
  475. /package/dist/wcs/{p-4e2d6227.entry.js.map → p-d8c4dbc3.entry.js.map} +0 -0
  476. /package/dist/wcs/{p-0017d766.js.map → p-dbf82cb9.js.map} +0 -0
  477. /package/dist/wcs/{p-dff8641e.entry.js.map → p-e35b138e.entry.js.map} +0 -0
  478. /package/dist/wcs/{p-fdeae83e.entry.js.map → p-f2c49d83.entry.js.map} +0 -0
  479. /package/dist/wcs/{p-cbda74f6.entry.js.map → p-f411974e.entry.js.map} +0 -0
  480. /package/dist/wcs/{p-0326f834.entry.js.map → p-f974210c.entry.js.map} +0 -0
  481. /package/dist/wcs/{p-352e1f99.entry.js.map → p-ff48a8b2.entry.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import{p as t,H as e,d as r,h as i,c as n}from"./p-2bef72c7.js";import{S as s}from"./p-35d7af48.js";import{y as o,z as a,n as c,i as u,a as l,s as f,A as h}from"./p-2e9b9605.js";import{h as v}from"./p-d3404c52.js";import{k as d}from"./p-97e70e10.js";import{i as p}from"./p-fb2751c2.js";import{c as w}from"./p-e1fb3625.js";var b=typeof global=="object"&&global&&global.Object===Object&&global;const y=b;var m=typeof self=="object"&&self&&self.Object===Object&&self;var g=y||m||Function("return this")();const O=g;var k=O.Symbol;const j=k;var x=Object.prototype;var S=x.hasOwnProperty;var _=x.toString;var A=j?j.toStringTag:undefined;function E(t){var e=S.call(t,A),r=t[A];try{t[A]=undefined;var i=true}catch(t){}var n=_.call(t);if(i){if(e){t[A]=r}else{delete t[A]}}return n}var C=Object.prototype;var z=C.toString;function q(t){return z.call(t)}var F="[object Null]",T="[object Undefined]";var R=j?j.toStringTag:undefined;function N(t){if(t==null){return t===undefined?T:F}return R&&R in Object(t)?E(t):q(t)}function P(t){return t!=null&&typeof t=="object"}var M=Array.isArray;const L=M;function I(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var W="[object AsyncFunction]",B="[object Function]",D="[object GeneratorFunction]",U="[object Proxy]";function H(t){if(!I(t)){return false}var e=N(t);return e==B||e==D||e==W||e==U}var V=O["__core-js_shared__"];const $=V;var K=function(){var t=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function J(t){return!!K&&K in t}var G=Function.prototype;var Q=G.toString;function X(t){if(t!=null){try{return Q.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var Y=/[\\^$.*+?()[\]{}|]/g;var Z=/^\[object .+?Constructor\]$/;var tt=Function.prototype,et=Object.prototype;var rt=tt.toString;var it=et.hasOwnProperty;var nt=RegExp("^"+rt.call(it).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function st(t){if(!I(t)||J(t)){return false}var e=H(t)?nt:Z;return e.test(X(t))}function ot(t,e){return t==null?undefined:t[e]}function at(t,e){var r=ot(t,e);return st(r)?r:undefined}var ct=at(O,"WeakMap");const ut=ct;var lt=9007199254740991;var ft=/^(?:0|[1-9]\d*)$/;function ht(t,e){var r=typeof t;e=e==null?lt:e;return!!e&&(r=="number"||r!="symbol"&&ft.test(t))&&(t>-1&&t%1==0&&t<e)}function vt(t,e){return t===e||t!==t&&e!==e}var dt=9007199254740991;function pt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=dt}function wt(t){return t!=null&&pt(t.length)&&!H(t)}var bt=Object.prototype;function yt(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||bt;return t===r}function mt(t,e){var r=-1,i=Array(t);while(++r<t){i[r]=e(r)}return i}var gt="[object Arguments]";function Ot(t){return P(t)&&N(t)==gt}var kt=Object.prototype;var jt=kt.hasOwnProperty;var xt=kt.propertyIsEnumerable;var St=Ot(function(){return arguments}())?Ot:function(t){return P(t)&&jt.call(t,"callee")&&!xt.call(t,"callee")};const _t=St;function At(){return false}var Et=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var Ct=Et&&typeof module=="object"&&module&&!module.nodeType&&module;var zt=Ct&&Ct.exports===Et;var qt=zt?O.Buffer:undefined;var Ft=qt?qt.isBuffer:undefined;var Tt=Ft||At;const Rt=Tt;var Nt="[object Arguments]",Pt="[object Array]",Mt="[object Boolean]",Lt="[object Date]",It="[object Error]",Wt="[object Function]",Bt="[object Map]",Dt="[object Number]",Ut="[object Object]",Ht="[object RegExp]",Vt="[object Set]",$t="[object String]",Kt="[object WeakMap]";var Jt="[object ArrayBuffer]",Gt="[object DataView]",Qt="[object Float32Array]",Xt="[object Float64Array]",Yt="[object Int8Array]",Zt="[object Int16Array]",te="[object Int32Array]",ee="[object Uint8Array]",re="[object Uint8ClampedArray]",ie="[object Uint16Array]",ne="[object Uint32Array]";var se={};se[Qt]=se[Xt]=se[Yt]=se[Zt]=se[te]=se[ee]=se[re]=se[ie]=se[ne]=true;se[Nt]=se[Pt]=se[Jt]=se[Mt]=se[Gt]=se[Lt]=se[It]=se[Wt]=se[Bt]=se[Dt]=se[Ut]=se[Ht]=se[Vt]=se[$t]=se[Kt]=false;function oe(t){return P(t)&&pt(t.length)&&!!se[N(t)]}function ae(t){return function(e){return t(e)}}var ce=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var ue=ce&&typeof module=="object"&&module&&!module.nodeType&&module;var le=ue&&ue.exports===ce;var fe=le&&y.process;var he=function(){try{var t=ue&&ue.require&&ue.require("util").types;if(t){return t}return fe&&fe.binding&&fe.binding("util")}catch(t){}}();const ve=he;var de=ve&&ve.isTypedArray;var pe=de?ae(de):oe;const we=pe;var be=Object.prototype;var ye=be.hasOwnProperty;function me(t,e){var r=L(t),i=!r&&_t(t),n=!r&&!i&&Rt(t),s=!r&&!i&&!n&&we(t),o=r||i||n||s,a=o?mt(t.length,String):[],c=a.length;for(var u in t){if((e||ye.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ht(u,c)))){a.push(u)}}return a}function ge(t,e){return function(r){return t(e(r))}}var Oe=ge(Object.keys,Object);const ke=Oe;var je=Object.prototype;var xe=je.hasOwnProperty;function Se(t){if(!yt(t)){return ke(t)}var e=[];for(var r in Object(t)){if(xe.call(t,r)&&r!="constructor"){e.push(r)}}return e}function _e(t){return wt(t)?me(t):Se(t)}var Ae=at(Object,"create");const Ee=Ae;function Ce(){this.__data__=Ee?Ee(null):{};this.size=0}function ze(t){var e=this.has(t)&&delete this.__data__[t];this.size-=e?1:0;return e}var qe="__lodash_hash_undefined__";var Fe=Object.prototype;var Te=Fe.hasOwnProperty;function Re(t){var e=this.__data__;if(Ee){var r=e[t];return r===qe?undefined:r}return Te.call(e,t)?e[t]:undefined}var Ne=Object.prototype;var Pe=Ne.hasOwnProperty;function Me(t){var e=this.__data__;return Ee?e[t]!==undefined:Pe.call(e,t)}var Le="__lodash_hash_undefined__";function Ie(t,e){var r=this.__data__;this.size+=this.has(t)?0:1;r[t]=Ee&&e===undefined?Le:e;return this}function We(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var i=t[e];this.set(i[0],i[1])}}We.prototype.clear=Ce;We.prototype["delete"]=ze;We.prototype.get=Re;We.prototype.has=Me;We.prototype.set=Ie;function Be(){this.__data__=[];this.size=0}function De(t,e){var r=t.length;while(r--){if(vt(t[r][0],e)){return r}}return-1}var Ue=Array.prototype;var He=Ue.splice;function Ve(t){var e=this.__data__,r=De(e,t);if(r<0){return false}var i=e.length-1;if(r==i){e.pop()}else{He.call(e,r,1)}--this.size;return true}function $e(t){var e=this.__data__,r=De(e,t);return r<0?undefined:e[r][1]}function Ke(t){return De(this.__data__,t)>-1}function Je(t,e){var r=this.__data__,i=De(r,t);if(i<0){++this.size;r.push([t,e])}else{r[i][1]=e}return this}function Ge(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var i=t[e];this.set(i[0],i[1])}}Ge.prototype.clear=Be;Ge.prototype["delete"]=Ve;Ge.prototype.get=$e;Ge.prototype.has=Ke;Ge.prototype.set=Je;var Qe=at(O,"Map");const Xe=Qe;function Ye(){this.size=0;this.__data__={hash:new We,map:new(Xe||Ge),string:new We}}function Ze(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function tr(t,e){var r=t.__data__;return Ze(e)?r[typeof e=="string"?"string":"hash"]:r.map}function er(t){var e=tr(this,t)["delete"](t);this.size-=e?1:0;return e}function rr(t){return tr(this,t).get(t)}function ir(t){return tr(this,t).has(t)}function nr(t,e){var r=tr(this,t),i=r.size;r.set(t,e);this.size+=r.size==i?0:1;return this}function sr(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var i=t[e];this.set(i[0],i[1])}}sr.prototype.clear=Ye;sr.prototype["delete"]=er;sr.prototype.get=rr;sr.prototype.has=ir;sr.prototype.set=nr;function or(t,e){var r=-1,i=e.length,n=t.length;while(++r<i){t[n+r]=e[r]}return t}function ar(){this.__data__=new Ge;this.size=0}function cr(t){var e=this.__data__,r=e["delete"](t);this.size=e.size;return r}function ur(t){return this.__data__.get(t)}function lr(t){return this.__data__.has(t)}var fr=200;function hr(t,e){var r=this.__data__;if(r instanceof Ge){var i=r.__data__;if(!Xe||i.length<fr-1){i.push([t,e]);this.size=++r.size;return this}r=this.__data__=new sr(i)}r.set(t,e);this.size=r.size;return this}function vr(t){var e=this.__data__=new Ge(t);this.size=e.size}vr.prototype.clear=ar;vr.prototype["delete"]=cr;vr.prototype.get=ur;vr.prototype.has=lr;vr.prototype.set=hr;function dr(t,e){var r=-1,i=t==null?0:t.length,n=0,s=[];while(++r<i){var o=t[r];if(e(o,r,t)){s[n++]=o}}return s}function pr(){return[]}var wr=Object.prototype;var br=wr.propertyIsEnumerable;var yr=Object.getOwnPropertySymbols;var mr=!yr?pr:function(t){if(t==null){return[]}t=Object(t);return dr(yr(t),(function(e){return br.call(t,e)}))};const gr=mr;function Or(t,e,r){var i=e(t);return L(t)?i:or(i,r(t))}function kr(t){return Or(t,_e,gr)}var jr=at(O,"DataView");const xr=jr;var Sr=at(O,"Promise");const _r=Sr;var Ar=at(O,"Set");const Er=Ar;var Cr="[object Map]",zr="[object Object]",qr="[object Promise]",Fr="[object Set]",Tr="[object WeakMap]";var Rr="[object DataView]";var Nr=X(xr),Pr=X(Xe),Mr=X(_r),Lr=X(Er),Ir=X(ut);var Wr=N;if(xr&&Wr(new xr(new ArrayBuffer(1)))!=Rr||Xe&&Wr(new Xe)!=Cr||_r&&Wr(_r.resolve())!=qr||Er&&Wr(new Er)!=Fr||ut&&Wr(new ut)!=Tr){Wr=function(t){var e=N(t),r=e==zr?t.constructor:undefined,i=r?X(r):"";if(i){switch(i){case Nr:return Rr;case Pr:return Cr;case Mr:return qr;case Lr:return Fr;case Ir:return Tr}}return e}}const Br=Wr;var Dr=O.Uint8Array;const Ur=Dr;var Hr="__lodash_hash_undefined__";function Vr(t){this.__data__.set(t,Hr);return this}function $r(t){return this.__data__.has(t)}function Kr(t){var e=-1,r=t==null?0:t.length;this.__data__=new sr;while(++e<r){this.add(t[e])}}Kr.prototype.add=Kr.prototype.push=Vr;Kr.prototype.has=$r;function Jr(t,e){var r=-1,i=t==null?0:t.length;while(++r<i){if(e(t[r],r,t)){return true}}return false}function Gr(t,e){return t.has(e)}var Qr=1,Xr=2;function Yr(t,e,r,i,n,s){var o=r&Qr,a=t.length,c=e.length;if(a!=c&&!(o&&c>a)){return false}var u=s.get(t);var l=s.get(e);if(u&&l){return u==e&&l==t}var f=-1,h=true,v=r&Xr?new Kr:undefined;s.set(t,e);s.set(e,t);while(++f<a){var d=t[f],p=e[f];if(i){var w=o?i(p,d,f,e,t,s):i(d,p,f,t,e,s)}if(w!==undefined){if(w){continue}h=false;break}if(v){if(!Jr(e,(function(t,e){if(!Gr(v,e)&&(d===t||n(d,t,r,i,s))){return v.push(e)}}))){h=false;break}}else if(!(d===p||n(d,p,r,i,s))){h=false;break}}s["delete"](t);s["delete"](e);return h}function Zr(t){var e=-1,r=Array(t.size);t.forEach((function(t,i){r[++e]=[i,t]}));return r}function ti(t){var e=-1,r=Array(t.size);t.forEach((function(t){r[++e]=t}));return r}var ei=1,ri=2;var ii="[object Boolean]",ni="[object Date]",si="[object Error]",oi="[object Map]",ai="[object Number]",ci="[object RegExp]",ui="[object Set]",li="[object String]",fi="[object Symbol]";var hi="[object ArrayBuffer]",vi="[object DataView]";var di=j?j.prototype:undefined,pi=di?di.valueOf:undefined;function wi(t,e,r,i,n,s,o){switch(r){case vi:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset){return false}t=t.buffer;e=e.buffer;case hi:if(t.byteLength!=e.byteLength||!s(new Ur(t),new Ur(e))){return false}return true;case ii:case ni:case ai:return vt(+t,+e);case si:return t.name==e.name&&t.message==e.message;case ci:case li:return t==e+"";case oi:var a=Zr;case ui:var c=i&ei;a||(a=ti);if(t.size!=e.size&&!c){return false}var u=o.get(t);if(u){return u==e}i|=ri;o.set(t,e);var l=Yr(a(t),a(e),i,n,s,o);o["delete"](t);return l;case fi:if(pi){return pi.call(t)==pi.call(e)}}return false}var bi=1;var yi=Object.prototype;var mi=yi.hasOwnProperty;function gi(t,e,r,i,n,s){var o=r&bi,a=kr(t),c=a.length,u=kr(e),l=u.length;if(c!=l&&!o){return false}var f=c;while(f--){var h=a[f];if(!(o?h in e:mi.call(e,h))){return false}}var v=s.get(t);var d=s.get(e);if(v&&d){return v==e&&d==t}var p=true;s.set(t,e);s.set(e,t);var w=o;while(++f<c){h=a[f];var b=t[h],y=e[h];if(i){var m=o?i(y,b,h,e,t,s):i(b,y,h,t,e,s)}if(!(m===undefined?b===y||n(b,y,r,i,s):m)){p=false;break}w||(w=h=="constructor")}if(p&&!w){var g=t.constructor,O=e.constructor;if(g!=O&&("constructor"in t&&"constructor"in e)&&!(typeof g=="function"&&g instanceof g&&typeof O=="function"&&O instanceof O)){p=false}}s["delete"](t);s["delete"](e);return p}var Oi=1;var ki="[object Arguments]",ji="[object Array]",xi="[object Object]";var Si=Object.prototype;var _i=Si.hasOwnProperty;function Ai(t,e,r,i,n,s){var o=L(t),a=L(e),c=o?ji:Br(t),u=a?ji:Br(e);c=c==ki?xi:c;u=u==ki?xi:u;var l=c==xi,f=u==xi,h=c==u;if(h&&Rt(t)){if(!Rt(e)){return false}o=true;l=false}if(h&&!l){s||(s=new vr);return o||we(t)?Yr(t,e,r,i,n,s):wi(t,e,c,r,i,n,s)}if(!(r&Oi)){var v=l&&_i.call(t,"__wrapped__"),d=f&&_i.call(e,"__wrapped__");if(v||d){var p=v?t.value():t,w=d?e.value():e;s||(s=new vr);return n(p,w,r,i,s)}}if(!h){return false}s||(s=new vr);return gi(t,e,r,i,n,s)}function Ei(t,e,r,i,n){if(t===e){return true}if(t==null||e==null||!P(t)&&!P(e)){return t!==t&&e!==e}return Ai(t,e,r,i,Ei,n)}function Ci(t,e){return Ei(t,e)}
1
+ import{p as t,H as e,d as r,h as i,c as n}from"./p-2bef72c7.js";import{S as s}from"./p-35d7af48.js";import{x as o,y as a,z as c,i as u,a as l,s as f,A as h}from"./p-bf326ae8.js";import{h as v}from"./p-d3404c52.js";import{k as d}from"./p-475be4d2.js";import{i as p}from"./p-fb2751c2.js";import{c as b}from"./p-e1fb3625.js";var w=typeof global=="object"&&global&&global.Object===Object&&global;const y=w;var m=typeof self=="object"&&self&&self.Object===Object&&self;var g=y||m||Function("return this")();const O=g;var k=O.Symbol;const j=k;var x=Object.prototype;var S=x.hasOwnProperty;var _=x.toString;var A=j?j.toStringTag:undefined;function E(t){var e=S.call(t,A),r=t[A];try{t[A]=undefined;var i=true}catch(t){}var n=_.call(t);if(i){if(e){t[A]=r}else{delete t[A]}}return n}var C=Object.prototype;var z=C.toString;function q(t){return z.call(t)}var F="[object Null]",T="[object Undefined]";var R=j?j.toStringTag:undefined;function N(t){if(t==null){return t===undefined?T:F}return R&&R in Object(t)?E(t):q(t)}function P(t){return t!=null&&typeof t=="object"}var M=Array.isArray;const L=M;function I(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var W="[object AsyncFunction]",B="[object Function]",D="[object GeneratorFunction]",U="[object Proxy]";function H(t){if(!I(t)){return false}var e=N(t);return e==B||e==D||e==W||e==U}var V=O["__core-js_shared__"];const $=V;var K=function(){var t=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function J(t){return!!K&&K in t}var G=Function.prototype;var Q=G.toString;function X(t){if(t!=null){try{return Q.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var Y=/[\\^$.*+?()[\]{}|]/g;var Z=/^\[object .+?Constructor\]$/;var tt=Function.prototype,et=Object.prototype;var rt=tt.toString;var it=et.hasOwnProperty;var nt=RegExp("^"+rt.call(it).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function st(t){if(!I(t)||J(t)){return false}var e=H(t)?nt:Z;return e.test(X(t))}function ot(t,e){return t==null?undefined:t[e]}function at(t,e){var r=ot(t,e);return st(r)?r:undefined}var ct=at(O,"WeakMap");const ut=ct;var lt=9007199254740991;var ft=/^(?:0|[1-9]\d*)$/;function ht(t,e){var r=typeof t;e=e==null?lt:e;return!!e&&(r=="number"||r!="symbol"&&ft.test(t))&&(t>-1&&t%1==0&&t<e)}function vt(t,e){return t===e||t!==t&&e!==e}var dt=9007199254740991;function pt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=dt}function bt(t){return t!=null&&pt(t.length)&&!H(t)}var wt=Object.prototype;function yt(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||wt;return t===r}function mt(t,e){var r=-1,i=Array(t);while(++r<t){i[r]=e(r)}return i}var gt="[object Arguments]";function Ot(t){return P(t)&&N(t)==gt}var kt=Object.prototype;var jt=kt.hasOwnProperty;var xt=kt.propertyIsEnumerable;var St=Ot(function(){return arguments}())?Ot:function(t){return P(t)&&jt.call(t,"callee")&&!xt.call(t,"callee")};const _t=St;function At(){return false}var Et=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var Ct=Et&&typeof module=="object"&&module&&!module.nodeType&&module;var zt=Ct&&Ct.exports===Et;var qt=zt?O.Buffer:undefined;var Ft=qt?qt.isBuffer:undefined;var Tt=Ft||At;const Rt=Tt;var Nt="[object Arguments]",Pt="[object Array]",Mt="[object Boolean]",Lt="[object Date]",It="[object Error]",Wt="[object Function]",Bt="[object Map]",Dt="[object Number]",Ut="[object Object]",Ht="[object RegExp]",Vt="[object Set]",$t="[object String]",Kt="[object WeakMap]";var Jt="[object ArrayBuffer]",Gt="[object DataView]",Qt="[object Float32Array]",Xt="[object Float64Array]",Yt="[object Int8Array]",Zt="[object Int16Array]",te="[object Int32Array]",ee="[object Uint8Array]",re="[object Uint8ClampedArray]",ie="[object Uint16Array]",ne="[object Uint32Array]";var se={};se[Qt]=se[Xt]=se[Yt]=se[Zt]=se[te]=se[ee]=se[re]=se[ie]=se[ne]=true;se[Nt]=se[Pt]=se[Jt]=se[Mt]=se[Gt]=se[Lt]=se[It]=se[Wt]=se[Bt]=se[Dt]=se[Ut]=se[Ht]=se[Vt]=se[$t]=se[Kt]=false;function oe(t){return P(t)&&pt(t.length)&&!!se[N(t)]}function ae(t){return function(e){return t(e)}}var ce=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var ue=ce&&typeof module=="object"&&module&&!module.nodeType&&module;var le=ue&&ue.exports===ce;var fe=le&&y.process;var he=function(){try{var t=ue&&ue.require&&ue.require("util").types;if(t){return t}return fe&&fe.binding&&fe.binding("util")}catch(t){}}();const ve=he;var de=ve&&ve.isTypedArray;var pe=de?ae(de):oe;const be=pe;var we=Object.prototype;var ye=we.hasOwnProperty;function me(t,e){var r=L(t),i=!r&&_t(t),n=!r&&!i&&Rt(t),s=!r&&!i&&!n&&be(t),o=r||i||n||s,a=o?mt(t.length,String):[],c=a.length;for(var u in t){if((e||ye.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ht(u,c)))){a.push(u)}}return a}function ge(t,e){return function(r){return t(e(r))}}var Oe=ge(Object.keys,Object);const ke=Oe;var je=Object.prototype;var xe=je.hasOwnProperty;function Se(t){if(!yt(t)){return ke(t)}var e=[];for(var r in Object(t)){if(xe.call(t,r)&&r!="constructor"){e.push(r)}}return e}function _e(t){return bt(t)?me(t):Se(t)}var Ae=at(Object,"create");const Ee=Ae;function Ce(){this.__data__=Ee?Ee(null):{};this.size=0}function ze(t){var e=this.has(t)&&delete this.__data__[t];this.size-=e?1:0;return e}var qe="__lodash_hash_undefined__";var Fe=Object.prototype;var Te=Fe.hasOwnProperty;function Re(t){var e=this.__data__;if(Ee){var r=e[t];return r===qe?undefined:r}return Te.call(e,t)?e[t]:undefined}var Ne=Object.prototype;var Pe=Ne.hasOwnProperty;function Me(t){var e=this.__data__;return Ee?e[t]!==undefined:Pe.call(e,t)}var Le="__lodash_hash_undefined__";function Ie(t,e){var r=this.__data__;this.size+=this.has(t)?0:1;r[t]=Ee&&e===undefined?Le:e;return this}function We(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var i=t[e];this.set(i[0],i[1])}}We.prototype.clear=Ce;We.prototype["delete"]=ze;We.prototype.get=Re;We.prototype.has=Me;We.prototype.set=Ie;function Be(){this.__data__=[];this.size=0}function De(t,e){var r=t.length;while(r--){if(vt(t[r][0],e)){return r}}return-1}var Ue=Array.prototype;var He=Ue.splice;function Ve(t){var e=this.__data__,r=De(e,t);if(r<0){return false}var i=e.length-1;if(r==i){e.pop()}else{He.call(e,r,1)}--this.size;return true}function $e(t){var e=this.__data__,r=De(e,t);return r<0?undefined:e[r][1]}function Ke(t){return De(this.__data__,t)>-1}function Je(t,e){var r=this.__data__,i=De(r,t);if(i<0){++this.size;r.push([t,e])}else{r[i][1]=e}return this}function Ge(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var i=t[e];this.set(i[0],i[1])}}Ge.prototype.clear=Be;Ge.prototype["delete"]=Ve;Ge.prototype.get=$e;Ge.prototype.has=Ke;Ge.prototype.set=Je;var Qe=at(O,"Map");const Xe=Qe;function Ye(){this.size=0;this.__data__={hash:new We,map:new(Xe||Ge),string:new We}}function Ze(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function tr(t,e){var r=t.__data__;return Ze(e)?r[typeof e=="string"?"string":"hash"]:r.map}function er(t){var e=tr(this,t)["delete"](t);this.size-=e?1:0;return e}function rr(t){return tr(this,t).get(t)}function ir(t){return tr(this,t).has(t)}function nr(t,e){var r=tr(this,t),i=r.size;r.set(t,e);this.size+=r.size==i?0:1;return this}function sr(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var i=t[e];this.set(i[0],i[1])}}sr.prototype.clear=Ye;sr.prototype["delete"]=er;sr.prototype.get=rr;sr.prototype.has=ir;sr.prototype.set=nr;function or(t,e){var r=-1,i=e.length,n=t.length;while(++r<i){t[n+r]=e[r]}return t}function ar(){this.__data__=new Ge;this.size=0}function cr(t){var e=this.__data__,r=e["delete"](t);this.size=e.size;return r}function ur(t){return this.__data__.get(t)}function lr(t){return this.__data__.has(t)}var fr=200;function hr(t,e){var r=this.__data__;if(r instanceof Ge){var i=r.__data__;if(!Xe||i.length<fr-1){i.push([t,e]);this.size=++r.size;return this}r=this.__data__=new sr(i)}r.set(t,e);this.size=r.size;return this}function vr(t){var e=this.__data__=new Ge(t);this.size=e.size}vr.prototype.clear=ar;vr.prototype["delete"]=cr;vr.prototype.get=ur;vr.prototype.has=lr;vr.prototype.set=hr;function dr(t,e){var r=-1,i=t==null?0:t.length,n=0,s=[];while(++r<i){var o=t[r];if(e(o,r,t)){s[n++]=o}}return s}function pr(){return[]}var br=Object.prototype;var wr=br.propertyIsEnumerable;var yr=Object.getOwnPropertySymbols;var mr=!yr?pr:function(t){if(t==null){return[]}t=Object(t);return dr(yr(t),(function(e){return wr.call(t,e)}))};const gr=mr;function Or(t,e,r){var i=e(t);return L(t)?i:or(i,r(t))}function kr(t){return Or(t,_e,gr)}var jr=at(O,"DataView");const xr=jr;var Sr=at(O,"Promise");const _r=Sr;var Ar=at(O,"Set");const Er=Ar;var Cr="[object Map]",zr="[object Object]",qr="[object Promise]",Fr="[object Set]",Tr="[object WeakMap]";var Rr="[object DataView]";var Nr=X(xr),Pr=X(Xe),Mr=X(_r),Lr=X(Er),Ir=X(ut);var Wr=N;if(xr&&Wr(new xr(new ArrayBuffer(1)))!=Rr||Xe&&Wr(new Xe)!=Cr||_r&&Wr(_r.resolve())!=qr||Er&&Wr(new Er)!=Fr||ut&&Wr(new ut)!=Tr){Wr=function(t){var e=N(t),r=e==zr?t.constructor:undefined,i=r?X(r):"";if(i){switch(i){case Nr:return Rr;case Pr:return Cr;case Mr:return qr;case Lr:return Fr;case Ir:return Tr}}return e}}const Br=Wr;var Dr=O.Uint8Array;const Ur=Dr;var Hr="__lodash_hash_undefined__";function Vr(t){this.__data__.set(t,Hr);return this}function $r(t){return this.__data__.has(t)}function Kr(t){var e=-1,r=t==null?0:t.length;this.__data__=new sr;while(++e<r){this.add(t[e])}}Kr.prototype.add=Kr.prototype.push=Vr;Kr.prototype.has=$r;function Jr(t,e){var r=-1,i=t==null?0:t.length;while(++r<i){if(e(t[r],r,t)){return true}}return false}function Gr(t,e){return t.has(e)}var Qr=1,Xr=2;function Yr(t,e,r,i,n,s){var o=r&Qr,a=t.length,c=e.length;if(a!=c&&!(o&&c>a)){return false}var u=s.get(t);var l=s.get(e);if(u&&l){return u==e&&l==t}var f=-1,h=true,v=r&Xr?new Kr:undefined;s.set(t,e);s.set(e,t);while(++f<a){var d=t[f],p=e[f];if(i){var b=o?i(p,d,f,e,t,s):i(d,p,f,t,e,s)}if(b!==undefined){if(b){continue}h=false;break}if(v){if(!Jr(e,(function(t,e){if(!Gr(v,e)&&(d===t||n(d,t,r,i,s))){return v.push(e)}}))){h=false;break}}else if(!(d===p||n(d,p,r,i,s))){h=false;break}}s["delete"](t);s["delete"](e);return h}function Zr(t){var e=-1,r=Array(t.size);t.forEach((function(t,i){r[++e]=[i,t]}));return r}function ti(t){var e=-1,r=Array(t.size);t.forEach((function(t){r[++e]=t}));return r}var ei=1,ri=2;var ii="[object Boolean]",ni="[object Date]",si="[object Error]",oi="[object Map]",ai="[object Number]",ci="[object RegExp]",ui="[object Set]",li="[object String]",fi="[object Symbol]";var hi="[object ArrayBuffer]",vi="[object DataView]";var di=j?j.prototype:undefined,pi=di?di.valueOf:undefined;function bi(t,e,r,i,n,s,o){switch(r){case vi:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset){return false}t=t.buffer;e=e.buffer;case hi:if(t.byteLength!=e.byteLength||!s(new Ur(t),new Ur(e))){return false}return true;case ii:case ni:case ai:return vt(+t,+e);case si:return t.name==e.name&&t.message==e.message;case ci:case li:return t==e+"";case oi:var a=Zr;case ui:var c=i&ei;a||(a=ti);if(t.size!=e.size&&!c){return false}var u=o.get(t);if(u){return u==e}i|=ri;o.set(t,e);var l=Yr(a(t),a(e),i,n,s,o);o["delete"](t);return l;case fi:if(pi){return pi.call(t)==pi.call(e)}}return false}var wi=1;var yi=Object.prototype;var mi=yi.hasOwnProperty;function gi(t,e,r,i,n,s){var o=r&wi,a=kr(t),c=a.length,u=kr(e),l=u.length;if(c!=l&&!o){return false}var f=c;while(f--){var h=a[f];if(!(o?h in e:mi.call(e,h))){return false}}var v=s.get(t);var d=s.get(e);if(v&&d){return v==e&&d==t}var p=true;s.set(t,e);s.set(e,t);var b=o;while(++f<c){h=a[f];var w=t[h],y=e[h];if(i){var m=o?i(y,w,h,e,t,s):i(w,y,h,t,e,s)}if(!(m===undefined?w===y||n(w,y,r,i,s):m)){p=false;break}b||(b=h=="constructor")}if(p&&!b){var g=t.constructor,O=e.constructor;if(g!=O&&("constructor"in t&&"constructor"in e)&&!(typeof g=="function"&&g instanceof g&&typeof O=="function"&&O instanceof O)){p=false}}s["delete"](t);s["delete"](e);return p}var Oi=1;var ki="[object Arguments]",ji="[object Array]",xi="[object Object]";var Si=Object.prototype;var _i=Si.hasOwnProperty;function Ai(t,e,r,i,n,s){var o=L(t),a=L(e),c=o?ji:Br(t),u=a?ji:Br(e);c=c==ki?xi:c;u=u==ki?xi:u;var l=c==xi,f=u==xi,h=c==u;if(h&&Rt(t)){if(!Rt(e)){return false}o=true;l=false}if(h&&!l){s||(s=new vr);return o||be(t)?Yr(t,e,r,i,n,s):bi(t,e,c,r,i,n,s)}if(!(r&Oi)){var v=l&&_i.call(t,"__wrapped__"),d=f&&_i.call(e,"__wrapped__");if(v||d){var p=v?t.value():t,b=d?e.value():e;s||(s=new vr);return n(p,b,r,i,s)}}if(!h){return false}s||(s=new vr);return gi(t,e,r,i,n,s)}function Ei(t,e,r,i,n){if(t===e){return true}if(t==null||e==null||!P(t)&&!P(e)){return t!==t&&e!==e}return Ai(t,e,r,i,Ei,n)}function Ci(t,e){return Ei(t,e)}
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,5 +12,5 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var zi=function(){zi=Object.assign||function t(e){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))e[s]=r[s]}return e};return zi.apply(this,arguments)};function qi(t,e){var r={};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0)r[i]=t[i];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++){if(e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n]))r[i[n]]=t[i[n]]}return r}function Fi(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ti(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,s=[],o;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)s.push(n.value)}catch(t){o={error:t}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(o)throw o.error}}return s}function Ri(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,s;i<n;i++){if(s||!(i in e)){if(!s)s=Array.prototype.slice.call(e,0,i);s[i]=e[i]}}return t.concat(s||Array.prototype.slice.call(e))}var Ni;(function(t){t["Start"]="xstate.start";t["Stop"]="xstate.stop";t["Raise"]="xstate.raise";t["Send"]="xstate.send";t["Cancel"]="xstate.cancel";t["NullEvent"]="";t["Assign"]="xstate.assign";t["After"]="xstate.after";t["DoneState"]="done.state";t["DoneInvoke"]="done.invoke";t["Log"]="xstate.log";t["Init"]="xstate.init";t["Invoke"]="xstate.invoke";t["ErrorExecution"]="error.execution";t["ErrorCommunication"]="error.communication";t["ErrorPlatform"]="error.platform";t["ErrorCustom"]="xstate.error";t["Update"]="xstate.update";t["Pure"]="xstate.pure";t["Choose"]="xstate.choose"})(Ni||(Ni={}));var Pi;(function(t){t["Parent"]="#_parent";t["Internal"]="#_internal"})(Pi||(Pi={}));var Mi=Ni.Start;var Li=Ni.Stop;var Ii=Ni.Raise;var Wi=Ni.Send;var Bi=Ni.Cancel;var Di=Ni.NullEvent;var Ui=Ni.Assign;var Hi=Ni.Log;var Vi=Ni.Init;var $i=Ni.Invoke;var Ki=Ni.ErrorPlatform;var Ji=Ni.ErrorCustom;var Gi=Ni.Update;var Qi=Ni.Choose;var Xi=Ni.Pure;var Yi=".";var Zi={};var tn="xstate.guard";var en="";var rn="production"==="production";var nn;function sn(t,e,r){if(r===void 0){r=Yi}var i=un(t,r);var n=un(e,r);if(zn(n)){if(zn(i)){return n===i}return false}if(zn(i)){return i in n}return Object.keys(i).every((function(t){if(!(t in n)){return false}return sn(i[t],n[t])}))}function on(t){try{return zn(t)||typeof t==="number"?"".concat(t):t.type}catch(t){throw new Error("Events must be strings or objects with a string event.type property.")}}function an(t,e){try{if(En(t)){return t}return t.toString().split(e)}catch(e){throw new Error("'".concat(t,"' is not a valid state path."))}}function cn(t){return typeof t==="object"&&"value"in t&&"context"in t&&"event"in t&&"_event"in t}function un(t,e){if(cn(t)){return t.value}if(En(t)){return ln(t)}if(typeof t!=="string"){return t}var r=an(t,e);return ln(r)}function ln(t){if(t.length===1){return t[0]}var e={};var r=e;for(var i=0;i<t.length-1;i++){if(i===t.length-2){r[t[i]]=t[i+1]}else{r[t[i]]={};r=r[t[i]]}}return e}function fn(t,e){var r={};var i=Object.keys(t);for(var n=0;n<i.length;n++){var s=i[n];r[s]=e(t[s],s,t,n)}return r}function hn(t,e,r){var i,n;var s={};try{for(var o=Fi(Object.keys(t)),a=o.next();!a.done;a=o.next()){var c=a.value;var u=t[c];if(!r(u)){continue}s[c]=e(u,c,t)}}catch(t){i={error:t}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(i)throw i.error}}return s}var vn=function(t){return function(e){var r,i;var n=e;try{for(var s=Fi(t),o=s.next();!o.done;o=s.next()){var a=o.value;n=n[a]}}catch(t){r={error:t}}finally{try{if(o&&!o.done&&(i=s.return))i.call(s)}finally{if(r)throw r.error}}return n}};function dn(t,e){return function(r){var i,n;var s=r;try{for(var o=Fi(t),a=o.next();!a.done;a=o.next()){var c=a.value;s=s[e][c]}}catch(t){i={error:t}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(i)throw i.error}}return s}}function pn(t){if(!t){return[[]]}if(zn(t)){return[[t]]}var e=wn(Object.keys(t).map((function(e){var r=t[e];if(typeof r!=="string"&&(!r||!Object.keys(r).length)){return[[e]]}return pn(t[e]).map((function(t){return[e].concat(t)}))})));return e}function wn(t){var e;return(e=[]).concat.apply(e,Ri([],Ti(t),false))}function bn(t){if(En(t)){return t}return[t]}function yn(t){if(t===undefined){return[]}return bn(t)}function mn(t,e,r){var i,n;if(Cn(t)){return t(e,r.data)}var s={};try{for(var o=Fi(Object.keys(t)),a=o.next();!a.done;a=o.next()){var c=a.value;var u=t[c];if(Cn(u)){s[c]=u(e,r.data)}else{s[c]=u}}}catch(t){i={error:t}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(i)throw i.error}}return s}function gn(t){return/^(done|error)\./.test(t)}function On(t){if(t instanceof Promise){return true}if(t!==null&&(Cn(t)||typeof t==="object")&&Cn(t.then)){return true}return false}function kn(t){return t!==null&&typeof t==="object"&&"transition"in t&&typeof t.transition==="function"}function jn(t,e){var r,i;var n=Ti([[],[]],2),s=n[0],o=n[1];try{for(var a=Fi(t),c=a.next();!c.done;c=a.next()){var u=c.value;if(e(u)){s.push(u)}else{o.push(u)}}}catch(t){r={error:t}}finally{try{if(c&&!c.done&&(i=a.return))i.call(a)}finally{if(r)throw r.error}}return[s,o]}function xn(t,e){return fn(t.states,(function(t,r){if(!t){return undefined}var i=(zn(e)?undefined:e[r])||(t?t.current:undefined);if(!i){return undefined}return{current:i,states:xn(t,i)}}))}function Sn(t,e){return{current:e,states:xn(t,e)}}function _n(t,e,r,i){var n=t?r.reduce((function(t,r){var n,s;var o=r.assignment;var a={state:i,action:r,_event:e};var c={};if(Cn(o)){c=o(t,e.data,a)}else{try{for(var u=Fi(Object.keys(o)),l=u.next();!l.done;l=u.next()){var f=l.value;var h=o[f];c[f]=Cn(h)?h(t,e.data,a):h}}catch(t){n={error:t}}finally{try{if(l&&!l.done&&(s=u.return))s.call(u)}finally{if(n)throw n.error}}}return Object.assign({},t,c)}),t):t;return n}var An=function(){};function En(t){return Array.isArray(t)}function Cn(t){return typeof t==="function"}function zn(t){return typeof t==="string"}function qn(t,e){if(!t){return undefined}if(zn(t)){return{type:tn,name:t,predicate:e?e[t]:undefined}}if(Cn(t)){return{type:tn,name:t.name,predicate:t}}return t}function Fn(t){try{return"subscribe"in t&&Cn(t.subscribe)}catch(t){return false}}var Tn=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();nn={},nn[Tn]=function(){return this},nn[Symbol.observable]=function(){return this},nn;function Rn(t){return!!t&&"__xstatenode"in t}function Nn(t){return!!t&&typeof t.send==="function"}function Pn(t,e){if(zn(t)||typeof t==="number"){return zi({type:t},e)}return t}function Mn(t,e){if(!zn(t)&&"$$type"in t&&t.$$type==="scxml"){return t}var r=Pn(t);return zi({name:r.type,data:r,$$type:"scxml",type:"external"},e)}function Ln(t,e){var r=bn(e).map((function(e){if(typeof e==="undefined"||typeof e==="string"||Rn(e)){return{target:e,event:t}}return zi(zi({},e),{event:t})}));return r}function In(t){if(t===undefined||t===en){return undefined}return yn(t)}function Wn(t,e,r,i,n){var s=t.options.guards;var o={state:n,cond:e,_event:i};if(e.type===tn){return((s===null||s===void 0?void 0:s[e.name])||e.predicate)(r,i.data,o)}var a=s===null||s===void 0?void 0:s[e.type];if(!a){throw new Error("Guard '".concat(e.type,"' is not implemented on machine '").concat(t.id,"'."))}return a(r,i.data,o)}function Bn(t){if(typeof t==="string"){return{type:t}}return t}function Dn(t,e,r){var i=function(){};var n=typeof t==="object";var s=n?t:null;return{next:((n?t.next:t)||i).bind(s),error:((n?t.error:e)||i).bind(s),complete:((n?t.complete:r)||i).bind(s)}}function Un(t,e){return"".concat(t,":invocation[").concat(e,"]")}function Hn(t){return(t.type===Ii||t.type===Wi&&t.to===Pi.Internal)&&typeof t.delay!=="number"}var Vn=Mn({type:Vi});function $n(t,e){return e?e[t]||undefined:undefined}function Kn(t,e){var r;if(zn(t)||typeof t==="number"){var i=$n(t,e);if(Cn(i)){r={type:t,exec:i}}else if(i){r=i}else{r={type:t,exec:undefined}}}else if(Cn(t)){r={type:t.name||t.toString(),exec:t}}else{var i=$n(t.type,e);if(Cn(i)){r=zi(zi({},t),{exec:i})}else if(i){var n=i.type||t.type;r=zi(zi(zi({},i),t),{type:n})}else{r=t}}return r}var Jn=function(t,e){if(!t){return[]}var r=En(t)?t:[t];return r.map((function(t){return Kn(t,e)}))};function Gn(t){var e=Kn(t);return zi(zi({id:zn(t)?t:e.id},e),{type:e.type})}function Qn(t,e){return{type:Ii,event:typeof t==="function"?t:Pn(t),delay:e?e.delay:undefined,id:e===null||e===void 0?void 0:e.id}}function Xn(t,e,r,i){var n={_event:r};var s=Mn(Cn(t.event)?t.event(e,r.data,n):t.event);var o;if(zn(t.delay)){var a=i&&i[t.delay];o=Cn(a)?a(e,r.data,n):a}else{o=Cn(t.delay)?t.delay(e,r.data,n):t.delay}return zi(zi({},t),{type:Ii,_event:s,delay:o})}function Yn(t,e){return{to:e?e.to:undefined,type:Wi,event:Cn(t)?t:Pn(t),delay:e?e.delay:undefined,id:e&&e.id!==undefined?e.id:Cn(t)?t.name:on(t)}}function Zn(t,e,r,i){var n={_event:r};var s=Mn(Cn(t.event)?t.event(e,r.data,n):t.event);var o;if(zn(t.delay)){var a=i&&i[t.delay];o=Cn(a)?a(e,r.data,n):a}else{o=Cn(t.delay)?t.delay(e,r.data,n):t.delay}var c=Cn(t.to)?t.to(e,r.data,n):t.to;return zi(zi({},t),{to:c,_event:s,event:s.data,delay:o})}var ts=function(t,e,r){return zi(zi({},t),{value:zn(t.expr)?t.expr:t.expr(e,r.data,{_event:r})})};var es=function(t){return{type:Bi,sendId:t}};function rs(t){var e=Gn(t);return{type:Ni.Start,activity:e,exec:undefined}}function is(t){var e=Cn(t)?t:Gn(t);return{type:Ni.Stop,activity:e,exec:undefined}}function ns(t,e,r){var i=Cn(t.activity)?t.activity(e,r.data):t.activity;var n=typeof i==="string"?{id:i}:i;var s={type:Ni.Stop,activity:n};return s}function ss(t,e){var r=e?"#".concat(e):"";return"".concat(Ni.After,"(").concat(t,")").concat(r)}function os(t,e){var r="".concat(Ni.DoneState,".").concat(t);var i={type:r,data:e};i.toString=function(){return r};return i}function as(t,e){var r="".concat(Ni.DoneInvoke,".").concat(t);var i={type:r,data:e};i.toString=function(){return r};return i}function cs(t,e){var r="".concat(Ni.ErrorPlatform,".").concat(t);var i={type:r,data:e};i.toString=function(){return r};return i}var us=function(t){var e,r;var i=[];try{for(var n=Fi(t),s=n.next();!s.done;s=n.next()){var o=s.value;var a=0;while(a<o.actions.length){if(o.actions[a].type===Ui){i.push(o.actions[a]);o.actions.splice(a,1);continue}a++}}}catch(t){e={error:t}}finally{try{if(s&&!s.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}return i};function ls(t,e,r,i,n,s,o){if(o===void 0){o=false}var a=o?[]:us(n);var c=a.length?_n(r,i,a,e):r;var u=o?[r]:undefined;var l=[];function f(n,a){var f;switch(a.type){case Ii:{var h=Xn(a,c,i,t.options.delays);if(s&&typeof h.delay==="number"){s(h,c,i)}return h}case Wi:var v=Zn(a,c,i,t.options.delays);if(s&&v.to!==Pi.Internal){if(n==="entry"){l.push(v)}else{s(v,c,i)}}return v;case Hi:{var d=ts(a,c,i);s===null||s===void 0?void 0:s(d,c,i);return d}case Qi:{var p=a;var w=(f=p.conds.find((function(r){var n=qn(r.cond,t.options.guards);return!n||Wn(t,n,c,i,!s?e:undefined)})))===null||f===void 0?void 0:f.actions;if(!w){return[]}var b=Ti(ls(t,e,c,i,[{type:n,actions:Jn(yn(w),t.options.actions)}],s,o),2),y=b[0],m=b[1];c=m;u===null||u===void 0?void 0:u.push(c);return y}case Xi:{var w=a.get(c,i.data);if(!w){return[]}var g=Ti(ls(t,e,c,i,[{type:n,actions:Jn(yn(w),t.options.actions)}],s,o),2),O=g[0],k=g[1];c=k;u===null||u===void 0?void 0:u.push(c);return O}case Li:{var d=ns(a,c,i);s===null||s===void 0?void 0:s(d,r,i);return d}case Ui:{c=_n(c,i,[a],!s?e:undefined);u===null||u===void 0?void 0:u.push(c);break}default:var j=Kn(a,t.options.actions);var x=j.exec;if(s){s(j,c,i)}else if(x&&u){var S=u.length-1;var _=zi(zi({},j),{exec:function(t){var e=[];for(var r=1;r<arguments.length;r++){e[r-1]=arguments[r]}x.apply(void 0,Ri([u[S]],Ti(e),false))}});j=_}return j}}function h(t){var e,r;var n=[];try{for(var o=Fi(t.actions),a=o.next();!a.done;a=o.next()){var u=a.value;var h=f(t.type,u);if(h){n=n.concat(h)}}}catch(t){e={error:t}}finally{try{if(a&&!a.done&&(r=o.return))r.call(o)}finally{if(e)throw e.error}}l.forEach((function(t){s(t,c,i)}));l.length=0;return n}var v=wn(n.map(h));return[v,c]}var fs=function(t,e){var r=e(t);return r};function hs(t){var e;return e={id:t,send:function(){return void 0},subscribe:function(){return{unsubscribe:function(){return void 0}}},getSnapshot:function(){return undefined},toJSON:function(){return{id:t}}},e[Tn]=function(){return this},e}function vs(t,e,r,i){var n;var s=Bn(t.src);var o=(n=e===null||e===void 0?void 0:e.options.services)===null||n===void 0?void 0:n[s.type];var a=t.data?mn(t.data,r,i):undefined;var c=o?ds(o,t.id,a):hs(t.id);c.meta=t;return c}function ds(t,e,r){var i=hs(e);i.deferred=true;if(Rn(t)){var n=i.state=fs(undefined,(function(){return(r?t.withContext(r):t).initialState}));i.getSnapshot=function(){return n}}return i}function ps(t){try{return typeof t.send==="function"}catch(t){return false}}function ws(t){return ps(t)&&"id"in t}function bs(t){var e;return zi((e={subscribe:function(){return{unsubscribe:function(){return void 0}}},id:"anonymous",getSnapshot:function(){return undefined}},e[Tn]=function(){return this},e),t)}var ys=function(t){return t.type==="atomic"||t.type==="final"};function ms(t){return Object.keys(t.states).map((function(e){return t.states[e]}))}function gs(t){return ms(t).filter((function(t){return t.type!=="history"}))}function Os(t){var e=[t];if(ys(t)){return e}return e.concat(wn(gs(t).map(Os)))}function ks(t,e){var r,i,n,s,o,a,c,u;var l=new Set(t);var f=xs(l);var h=new Set(e);try{for(var v=Fi(h),d=v.next();!d.done;d=v.next()){var p=d.value;var w=p.parent;while(w&&!h.has(w)){h.add(w);w=w.parent}}}catch(t){r={error:t}}finally{try{if(d&&!d.done&&(i=v.return))i.call(v)}finally{if(r)throw r.error}}var b=xs(h);try{for(var y=Fi(h),m=y.next();!m.done;m=y.next()){var p=m.value;if(p.type==="compound"&&(!b.get(p)||!b.get(p).length)){if(f.get(p)){f.get(p).forEach((function(t){return h.add(t)}))}else{p.initialStateNodes.forEach((function(t){return h.add(t)}))}}else{if(p.type==="parallel"){try{for(var g=(o=void 0,Fi(gs(p))),O=g.next();!O.done;O=g.next()){var k=O.value;if(!h.has(k)){h.add(k);if(f.get(k)){f.get(k).forEach((function(t){return h.add(t)}))}else{k.initialStateNodes.forEach((function(t){return h.add(t)}))}}}}catch(t){o={error:t}}finally{try{if(O&&!O.done&&(a=g.return))a.call(g)}finally{if(o)throw o.error}}}}}}catch(t){n={error:t}}finally{try{if(m&&!m.done&&(s=y.return))s.call(y)}finally{if(n)throw n.error}}try{for(var j=Fi(h),x=j.next();!x.done;x=j.next()){var p=x.value;var w=p.parent;while(w&&!h.has(w)){h.add(w);w=w.parent}}}catch(t){c={error:t}}finally{try{if(x&&!x.done&&(u=j.return))u.call(j)}finally{if(c)throw c.error}}return h}function js(t,e){var r=e.get(t);if(!r){return{}}if(t.type==="compound"){var i=r[0];if(i){if(ys(i)){return i.key}}else{return{}}}var n={};r.forEach((function(t){n[t.key]=js(t,e)}));return n}function xs(t){var e,r;var i=new Map;try{for(var n=Fi(t),s=n.next();!s.done;s=n.next()){var o=s.value;if(!i.has(o)){i.set(o,[])}if(o.parent){if(!i.has(o.parent)){i.set(o.parent,[])}i.get(o.parent).push(o)}}}catch(t){e={error:t}}finally{try{if(s&&!s.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}return i}function Ss(t,e){var r=ks([t],e);return js(t,xs(r))}function _s(t,e){if(Array.isArray(t)){return t.some((function(t){return t===e}))}if(t instanceof Set){return t.has(e)}return false}function As(t){return Ri([],Ti(new Set(wn(Ri([],Ti(t.map((function(t){return t.ownEvents}))),false)))),false)}function Es(t,e){if(e.type==="compound"){return gs(e).some((function(e){return e.type==="final"&&_s(t,e)}))}if(e.type==="parallel"){return gs(e).every((function(e){return Es(t,e)}))}return false}function Cs(t){if(t===void 0){t=[]}return t.reduce((function(t,e){if(e.meta!==undefined){t[e.id]=e.meta}return t}),{})}function zs(t){return new Set(wn(t.map((function(t){return t.tags}))))}function qs(t,e){if(t===e){return true}if(t===undefined||e===undefined){return false}if(zn(t)||zn(e)){return t===e}var r=Object.keys(t);var i=Object.keys(e);return r.length===i.length&&r.every((function(r){return qs(t[r],e[r])}))}function Fs(t){if(typeof t!=="object"||t===null){return false}return"value"in t&&"_event"in t}function Ts(t,e){var r=t.exec;var i=zi(zi({},t),{exec:r!==undefined?function(){return r(e.context,e.event,{action:t,state:e,_event:e._event})}:undefined});return i}var Rs=function(){function t(t){var e=this;var r;this.actions=[];this.activities=Zi;this.meta={};this.events=[];this.value=t.value;this.context=t.context;this._event=t._event;this._sessionid=t._sessionid;this.event=this._event.data;this.historyValue=t.historyValue;this.history=t.history;this.actions=t.actions||[];this.activities=t.activities||Zi;this.meta=Cs(t.configuration);this.events=t.events||[];this.matches=this.matches.bind(this);this.toStrings=this.toStrings.bind(this);this.configuration=t.configuration;this.transitions=t.transitions;this.children=t.children;this.done=!!t.done;this.tags=(r=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&r!==void 0?r:new Set;this.machine=t.machine;Object.defineProperty(this,"nextEvents",{get:function(){return As(e.configuration)}})}t.from=function(e,r){if(e instanceof t){if(e.context!==r){return new t({value:e.value,context:r,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}})}return e}var i=Vn;return new t({value:e,context:r,_event:i,_sessionid:null,historyValue:undefined,history:undefined,actions:[],activities:undefined,meta:undefined,events:[],configuration:[],transitions:[],children:{}})};t.create=function(e){return new t(e)};t.inert=function(e,r){if(e instanceof t){if(!e.actions.length){return e}var i=Vn;return new t({value:e.value,context:r,_event:i,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,r)};t.prototype.toStrings=function(t,e){var r=this;if(t===void 0){t=this.value}if(e===void 0){e="."}if(zn(t)){return[t]}var i=Object.keys(t);return i.concat.apply(i,Ri([],Ti(i.map((function(i){return r.toStrings(t[i],e).map((function(t){return i+e+t}))}))),false))};t.prototype.toJSON=function(){var t=this;var e=t.tags;var r=qi(t,["configuration","transitions","tags","machine"]);return zi(zi({},r),{tags:Array.from(e)})};t.prototype.matches=function(t){return sn(t,this.value)};t.prototype.hasTag=function(t){return this.tags.has(t)};t.prototype.can=function(t){var e;var r=(e=this.machine)===null||e===void 0?void 0:e.getTransitionData(this,t);return!!(r===null||r===void 0?void 0:r.transitions.length)&&r.transitions.some((function(t){return t.target!==undefined||t.actions.length}))};return t}();var Ns={deferEvents:false};var Ps=function(){function t(t){this.processingEvent=false;this.queue=[];this.initialized=false;this.options=zi(zi({},Ns),t)}t.prototype.initialize=function(t){this.initialized=true;if(t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()};t.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(this.queue.length!==0){throw new Error("Event queue should be empty when it is not processing events")}this.process(t);this.flushEvents()};t.prototype.clear=function(){this.queue=[]};t.prototype.flushEvents=function(){var t=this.queue.shift();while(t){this.process(t);t=this.queue.shift()}};t.prototype.process=function(t){this.processingEvent=true;try{t()}catch(t){this.clear();throw t}finally{this.processingEvent=false}};return t}();var Ms=new Map;var Ls=0;var Is={bookId:function(){return"x:".concat(Ls++)},register:function(t,e){Ms.set(t,e);return t},get:function(t){return Ms.get(t)},free:function(t){Ms.delete(t)}};function Ws(){if(typeof globalThis!=="undefined"){return globalThis}if(typeof self!=="undefined"){return self}if(typeof window!=="undefined"){return window}if(typeof global!=="undefined"){return global}}function Bs(){var t=Ws();if(t&&"__xstate__"in t){return t.__xstate__}return undefined}function Ds(t){if(!Ws()){return}var e=Bs();if(e){e.register(t)}}function Us(t,e){if(e===void 0){e={}}var r=t.initialState;var i=new Set;var n=[];var s=false;var o=function(){if(s){return}s=true;while(n.length>0){var e=n.shift();r=t.transition(r,e,c);i.forEach((function(t){return t.next(r)}))}s=false};var a=bs({id:e.id,send:function(t){n.push(t);o()},getSnapshot:function(){return r},subscribe:function(t,e,n){var s=Dn(t,e,n);i.add(s);s.next(r);return{unsubscribe:function(){i.delete(s)}}}});var c={parent:e.parent,self:a,id:e.id||"anonymous",observers:i};r=t.start?t.start(c):r;return a}var Hs={sync:false,autoForward:false};var Vs;(function(t){t[t["NotStarted"]=0]="NotStarted";t[t["Running"]=1]="Running";t[t["Stopped"]=2]="Stopped"})(Vs||(Vs={}));var $s=function(){function t(e,r){if(r===void 0){r=t.defaultOptions}var i=this;this.machine=e;this.delayedEventsMap={};this.listeners=new Set;this.contextListeners=new Set;this.stopListeners=new Set;this.doneListeners=new Set;this.eventListeners=new Set;this.sendListeners=new Set;this.initialized=false;this.status=Vs.NotStarted;this.children=new Map;this.forwardTo=new Set;this._outgoingQueue=[];this.init=this.start;this.send=function(t,e){if(En(t)){i.batch(t);return i.state}var r=Mn(Pn(t,e));if(i.status===Vs.Stopped){return i.state}if(i.status!==Vs.Running&&!i.options.deferEvents){throw new Error('Event "'.concat(r.name,'" was sent to uninitialized service "').concat(i.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(r.data)))}i.scheduler.schedule((function(){i.forward(r);var t=i._nextState(r);i.update(t,r)}));return i._state};this.sendTo=function(t,e,r){var n=i.parent&&(e===Pi.Parent||i.parent.id===e);var s=n?i.parent:zn(e)?e===Pi.Internal?i:i.children.get(e)||Is.get(e):Nn(e)?e:undefined;if(!s){if(!n){throw new Error("Unable to send event to child '".concat(e,"' from service '").concat(i.id,"'."))}return}if("machine"in s){if(i.status!==Vs.Stopped||i.parent!==s||i.state.done){var o=zi(zi({},t),{name:t.name===Ji?"".concat(cs(i.id)):t.name,origin:i.sessionId});if(!r&&i.machine.config.predictableActionArguments){i._outgoingQueue.push([s,o])}else{s.send(o)}}}else{if(!r&&i.machine.config.predictableActionArguments){i._outgoingQueue.push([s,t.data])}else{s.send(t.data)}}};this._exec=function(t,e,r,n){if(n===void 0){n=i.machine.options.actions}var s=t.exec||$n(t.type,n);var o=Cn(s)?s:s?s.exec:t.exec;if(o){try{return o(e,r.data,!i.machine.config.predictableActionArguments?{action:t,state:i.state,_event:r}:{action:t,_event:r})}catch(t){if(i.parent){i.parent.send({type:"xstate.error",data:t})}throw t}}switch(t.type){case Ii:{var a=t;i.defer(a);break}case Wi:var c=t;if(typeof c.delay==="number"){i.defer(c);return}else{if(c.to){i.sendTo(c._event,c.to,r===Vn)}else{i.send(c._event)}}break;case Bi:i.cancel(t.sendId);break;case Mi:{if(i.status!==Vs.Running){return}var u=t.activity;if(!i.machine.config.predictableActionArguments&&!i.state.activities[u.id||u.type]){break}if(u.type===Ni.Invoke){var l=Bn(u.src);var f=i.machine.options.services?i.machine.options.services[l.type]:undefined;var h=u.id,v=u.data;var d="autoForward"in u?u.autoForward:!!u.forward;if(!f){return}var p=v?mn(v,e,r):undefined;if(typeof f==="string"){return}var w=Cn(f)?f(e,r.data,{data:p,src:l,meta:u.meta}):f;if(!w){return}var b=void 0;if(Rn(w)){w=p?w.withContext(p):w;b={autoForward:d}}i.spawn(w,h,b)}else{i.spawnActivity(u)}break}case Li:{i.stopChild(t.activity.id);break}case Hi:var y=t,m=y.label,g=y.value;if(m){i.logger(m,g)}else{i.logger(g)}break}};var n=zi(zi({},t.defaultOptions),r);var s=n.clock,o=n.logger,a=n.parent,c=n.id;var u=c!==undefined?c:e.id;this.id=u;this.logger=o;this.clock=s;this.parent=a;this.options=n;this.scheduler=new Ps({deferEvents:this.options.deferEvents});this.sessionId=Is.bookId()}Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this;if(this._initialState){return this._initialState}return fs(this,(function(){t._initialState=t.machine.initialState;return t._initialState}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});t.prototype.execute=function(t,e){var r,i;try{for(var n=Fi(t.actions),s=n.next();!s.done;s=n.next()){var o=s.value;this.exec(o,t,e)}}catch(t){r={error:t}}finally{try{if(s&&!s.done&&(i=n.return))i.call(n)}finally{if(r)throw r.error}}};t.prototype.update=function(t,e){var r,i,n,s,o,a,c,u;var l=this;t._sessionid=this.sessionId;this._state=t;if((!this.machine.config.predictableActionArguments||e===Vn)&&this.options.execute){this.execute(this.state)}else{var f=void 0;while(f=this._outgoingQueue.shift()){f[0].send(f[1])}}this.children.forEach((function(t){l.state.children[t.id]=t}));if(this.devTools){this.devTools.send(e.data,t)}if(t.event){try{for(var h=Fi(this.eventListeners),v=h.next();!v.done;v=h.next()){var d=v.value;d(t.event)}}catch(t){r={error:t}}finally{try{if(v&&!v.done&&(i=h.return))i.call(h)}finally{if(r)throw r.error}}}try{for(var p=Fi(this.listeners),w=p.next();!w.done;w=p.next()){var d=w.value;d(t,t.event)}}catch(t){n={error:t}}finally{try{if(w&&!w.done&&(s=p.return))s.call(p)}finally{if(n)throw n.error}}try{for(var b=Fi(this.contextListeners),y=b.next();!y.done;y=b.next()){var m=y.value;m(this.state.context,this.state.history?this.state.history.context:undefined)}}catch(t){o={error:t}}finally{try{if(y&&!y.done&&(a=b.return))a.call(b)}finally{if(o)throw o.error}}if(this.state.done){var g=t.configuration.find((function(t){return t.type==="final"&&t.parent===l.machine}));var O=g&&g.doneData?mn(g.doneData,t.context,e):undefined;this._doneEvent=as(this.id,O);try{for(var k=Fi(this.doneListeners),j=k.next();!j.done;j=k.next()){var d=j.value;d(this._doneEvent)}}catch(t){c={error:t}}finally{try{if(j&&!j.done&&(u=k.return))u.call(k)}finally{if(c)throw c.error}}this._stop();this._stopChildren();Is.free(this.sessionId)}};t.prototype.onTransition=function(t){this.listeners.add(t);if(this.status===Vs.Running){t(this.state,this.state.event)}return this};t.prototype.subscribe=function(t,e,r){var i=this;var n=Dn(t,e,r);this.listeners.add(n.next);if(this.status!==Vs.NotStarted){n.next(this.state)}var s=function(){i.doneListeners.delete(s);i.stopListeners.delete(s);n.complete()};if(this.status===Vs.Stopped){n.complete()}else{this.onDone(s);this.onStop(s)}return{unsubscribe:function(){i.listeners.delete(n.next);i.doneListeners.delete(s);i.stopListeners.delete(s)}}};t.prototype.onEvent=function(t){this.eventListeners.add(t);return this};t.prototype.onSend=function(t){this.sendListeners.add(t);return this};t.prototype.onChange=function(t){this.contextListeners.add(t);return this};t.prototype.onStop=function(t){this.stopListeners.add(t);return this};t.prototype.onDone=function(t){if(this.status===Vs.Stopped&&this._doneEvent){t(this._doneEvent)}else{this.doneListeners.add(t)}return this};t.prototype.off=function(t){this.listeners.delete(t);this.eventListeners.delete(t);this.sendListeners.delete(t);this.stopListeners.delete(t);this.doneListeners.delete(t);this.contextListeners.delete(t);return this};t.prototype.start=function(t){var e=this;if(this.status===Vs.Running){return this}this.machine._init();Is.register(this.sessionId,this);this.initialized=true;this.status=Vs.Running;var r=t===undefined?this.initialState:fs(this,(function(){return Fs(t)?e.machine.resolveState(t):e.machine.resolveState(Rs.from(t,e.machine.context))}));if(this.options.devTools){this.attachDev()}this.scheduler.initialize((function(){e.update(r,Vn)}));return this};t.prototype._stopChildren=function(){this.children.forEach((function(t){if(Cn(t.stop)){t.stop()}}));this.children.clear()};t.prototype._stop=function(){var t,e,r,i,n,s,o,a,c,u;try{for(var l=Fi(this.listeners),f=l.next();!f.done;f=l.next()){var h=f.value;this.listeners.delete(h)}}catch(e){t={error:e}}finally{try{if(f&&!f.done&&(e=l.return))e.call(l)}finally{if(t)throw t.error}}try{for(var v=Fi(this.stopListeners),d=v.next();!d.done;d=v.next()){var h=d.value;h();this.stopListeners.delete(h)}}catch(t){r={error:t}}finally{try{if(d&&!d.done&&(i=v.return))i.call(v)}finally{if(r)throw r.error}}try{for(var p=Fi(this.contextListeners),w=p.next();!w.done;w=p.next()){var h=w.value;this.contextListeners.delete(h)}}catch(t){n={error:t}}finally{try{if(w&&!w.done&&(s=p.return))s.call(p)}finally{if(n)throw n.error}}try{for(var b=Fi(this.doneListeners),y=b.next();!y.done;y=b.next()){var h=y.value;this.doneListeners.delete(h)}}catch(t){o={error:t}}finally{try{if(y&&!y.done&&(a=b.return))a.call(b)}finally{if(o)throw o.error}}if(!this.initialized){return this}this.initialized=false;this.status=Vs.Stopped;this._initialState=undefined;try{for(var m=Fi(Object.keys(this.delayedEventsMap)),g=m.next();!g.done;g=m.next()){var O=g.value;this.clock.clearTimeout(this.delayedEventsMap[O])}}catch(t){c={error:t}}finally{try{if(g&&!g.done&&(u=m.return))u.call(m)}finally{if(c)throw c.error}}this.scheduler.clear();this.scheduler=new Ps({deferEvents:this.options.deferEvents})};t.prototype.stop=function(){var t=this;var e=this.scheduler;this._stop();e.schedule((function(){var e;if((e=t._state)===null||e===void 0?void 0:e.done){return}var r=Mn({type:"xstate.stop"});var i=fs(t,(function(){var e=wn(Ri([],Ti(t.state.configuration),false).sort((function(t,e){return e.order-t.order})).map((function(e){return Jn(e.onExit,t.machine.options.actions)})));var i=Ti(ls(t.machine,t.state,t.state.context,r,[{type:"exit",actions:e}],t.machine.config.predictableActionArguments?t._exec:undefined,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),n=i[0],s=i[1];var o=new Rs({value:t.state.value,context:s,_event:r,_sessionid:t.sessionId,historyValue:undefined,history:t.state,actions:n.filter((function(t){return!Hn(t)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});o.changed=true;return o}));t.update(i,r);t._stopChildren();Is.free(t.sessionId)}));return this};t.prototype.batch=function(t){var e=this;if(this.status===Vs.NotStarted&&this.options.deferEvents);else if(this.status!==Vs.Running){throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}if(!t.length){return}var r=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var i,n;var s=e.state;var o=false;var a=[];var c=function(t){var i=Mn(t);e.forward(i);s=fs(e,(function(){return e.machine.transition(s,i,undefined,r||undefined)}));a.push.apply(a,Ri([],Ti(e.machine.config.predictableActionArguments?s.actions:s.actions.map((function(t){return Ts(t,s)}))),false));o=o||!!s.changed};try{for(var u=Fi(t),l=u.next();!l.done;l=u.next()){var f=l.value;c(f)}}catch(t){i={error:t}}finally{try{if(l&&!l.done&&(n=u.return))n.call(u)}finally{if(i)throw i.error}}s.changed=o;s.actions=a;e.update(s,Mn(t[t.length-1]))}))};t.prototype.sender=function(t){return this.send.bind(this,t)};t.prototype._nextState=function(t,e){var r=this;if(e===void 0){e=!!this.machine.config.predictableActionArguments&&this._exec}var i=Mn(t);if(i.name.indexOf(Ki)===0&&!this.state.nextEvents.some((function(t){return t.indexOf(Ki)===0}))){throw i.data.data}var n=fs(this,(function(){return r.machine.transition(r.state,i,undefined,e||undefined)}));return n};t.prototype.nextState=function(t){return this._nextState(t,false)};t.prototype.forward=function(t){var e,r;try{for(var i=Fi(this.forwardTo),n=i.next();!n.done;n=i.next()){var s=n.value;var o=this.children.get(s);if(!o){throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."))}o.send(t)}}catch(t){e={error:t}}finally{try{if(n&&!n.done&&(r=i.return))r.call(i)}finally{if(e)throw e.error}}};t.prototype.defer=function(t){var e=this;var r=this.clock.setTimeout((function(){if("to"in t&&t.to){e.sendTo(t._event,t.to,true)}else{e.send(t._event)}}),t.delay);if(t.id){this.delayedEventsMap[t.id]=r}};t.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]);delete this.delayedEventsMap[t]};t.prototype.exec=function(t,e,r){if(r===void 0){r=this.machine.options.actions}this._exec(t,e.context,e._event,r)};t.prototype.removeChild=function(t){var e;this.children.delete(t);this.forwardTo.delete(t);(e=this.state)===null||e===void 0?true:delete e.children[t]};t.prototype.stopChild=function(t){var e=this.children.get(t);if(!e){return}this.removeChild(t);if(Cn(e.stop)){e.stop()}};t.prototype.spawn=function(t,e,r){if(this.status!==Vs.Running){return ds(t,e)}if(On(t)){return this.spawnPromise(Promise.resolve(t),e)}else if(Cn(t)){return this.spawnCallback(t,e)}else if(ws(t)){return this.spawnActor(t,e)}else if(Fn(t)){return this.spawnObservable(t,e)}else if(Rn(t)){return this.spawnMachine(t,zi(zi({},r),{id:e}))}else if(kn(t)){return this.spawnBehavior(t,e)}else{throw new Error('Unable to spawn entity "'.concat(e,'" of type "').concat(typeof t,'".'))}};t.prototype.spawnMachine=function(e,r){var i=this;if(r===void 0){r={}}var n=new t(e,zi(zi({},this.options),{parent:this,id:r.id||e.id}));var s=zi(zi({},Hs),r);if(s.sync){n.onTransition((function(t){i.send(Gi,{state:t,id:n.id})}))}var o=n;this.children.set(n.id,o);if(s.autoForward){this.forwardTo.add(n.id)}n.onDone((function(t){i.removeChild(n.id);i.send(Mn(t,{origin:n.id}))})).start();return o};t.prototype.spawnBehavior=function(t,e){var r=Us(t,{id:e,parent:this});this.children.set(e,r);return r};t.prototype.spawnPromise=function(t,e){var r;var i=this;var n=false;var s;t.then((function(t){if(!n){s=t;i.removeChild(e);i.send(Mn(as(e,t),{origin:e}))}}),(function(t){if(!n){i.removeChild(e);var r=cs(e,t);try{i.send(Mn(r,{origin:e}))}catch(t){if(i.devTools){i.devTools.send(r,i.state)}if(i.machine.strict){i.stop()}}}}));var o=(r={id:e,send:function(){return void 0},subscribe:function(e,r,i){var n=Dn(e,r,i);var s=false;t.then((function(t){if(s){return}n.next(t);if(s){return}n.complete()}),(function(t){if(s){return}n.error(t)}));return{unsubscribe:function(){return s=true}}},stop:function(){n=true},toJSON:function(){return{id:e}},getSnapshot:function(){return s}},r[Tn]=function(){return this},r);this.children.set(e,o);return o};t.prototype.spawnCallback=function(t,e){var r;var i=this;var n=false;var s=new Set;var o=new Set;var a;var c=function(t){a=t;o.forEach((function(e){return e(t)}));if(n){return}i.send(Mn(t,{origin:e}))};var u;try{u=t(c,(function(t){s.add(t)}))}catch(t){this.send(cs(e,t))}if(On(u)){return this.spawnPromise(u,e)}var l=(r={id:e,send:function(t){return s.forEach((function(e){return e(t)}))},subscribe:function(t){var e=Dn(t);o.add(e.next);return{unsubscribe:function(){o.delete(e.next)}}},stop:function(){n=true;if(Cn(u)){u()}},toJSON:function(){return{id:e}},getSnapshot:function(){return a}},r[Tn]=function(){return this},r);this.children.set(e,l);return l};t.prototype.spawnObservable=function(t,e){var r;var i=this;var n;var s=t.subscribe((function(t){n=t;i.send(Mn(t,{origin:e}))}),(function(t){i.removeChild(e);i.send(Mn(cs(e,t),{origin:e}))}),(function(){i.removeChild(e);i.send(Mn(as(e),{origin:e}))}));var o=(r={id:e,send:function(){return void 0},subscribe:function(e,r,i){return t.subscribe(e,r,i)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return n},toJSON:function(){return{id:e}}},r[Tn]=function(){return this},r);this.children.set(e,o);return o};t.prototype.spawnActor=function(t,e){this.children.set(e,t);return t};t.prototype.spawnActivity=function(t){var e=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:undefined;if(!e){return}var r=e(this.state.context,t);this.spawnEffect(t.id,r)};t.prototype.spawnEffect=function(t,e){var r;this.children.set(t,(r={id:t,send:function(){return void 0},subscribe:function(){return{unsubscribe:function(){return void 0}}},stop:e||undefined,getSnapshot:function(){return undefined},toJSON:function(){return{id:t}}},r[Tn]=function(){return this},r))};t.prototype.attachDev=function(){var t=Ws();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var e=typeof this.options.devTools==="object"?this.options.devTools:undefined;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(zi(zi({name:this.id,autoPause:true,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},e),{features:zi({jump:false,skip:false},e?e.features:undefined)}),this.machine);this.devTools.init(this.state)}Ds(this)}};t.prototype.toJSON=function(){return{id:this.id}};t.prototype[Tn]=function(){return this};t.prototype.getSnapshot=function(){if(this.status===Vs.NotStarted){return this.initialState}return this._state};t.defaultOptions={execute:true,deferEvents:true,clock:{setTimeout:function(t,e){return setTimeout(t,e)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:false};t.interpret=Ks;return t}();function Ks(t,e){var r=new $s(t,e);return r}function Js(t){if(typeof t==="string"){var e={type:t};e.toString=function(){return t};return e}return t}function Gs(t){return zi(zi({type:$i},t),{toJSON:function(){var e=qi(t,["onDone","onError"]);return zi(zi({},e),{type:$i,src:Js(t.src)})}})}var Qs="";var Xs="#";var Ys="*";var Zs={};var to=function(t){return t[0]===Xs};var eo=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}};var ro=function(t,e,r){r.slice(0,-1).some((function(t){return!("cond"in t)&&!("in"in t)&&(zn(t.target)||Rn(t.target))}))};var io=function(){function t(e,r,i,n){if(i===void 0){i="context"in e?e.context:undefined}var s=this;var o;this.config=e;this._context=i;this.order=-1;this.__xstatenode=true;this.__cache={events:undefined,relativeValue:new Map,initialStateValue:undefined,initialState:undefined,on:undefined,transitions:undefined,candidates:{},delayedTransitions:undefined};this.idMap={};this.tags=[];this.options=Object.assign(eo(),r);this.parent=n===null||n===void 0?void 0:n.parent;this.key=this.config.key||(n===null||n===void 0?void 0:n.key)||this.config.id||"(machine)";this.machine=this.parent?this.parent.machine:this;this.path=this.parent?this.parent.path.concat(this.key):[];this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:Yi);this.id=this.config.id||Ri([this.machine.key],Ti(this.path),false).join(this.delimiter);this.version=this.parent?this.parent.version:this.config.version;this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic");this.schema=this.parent?this.machine.schema:(o=this.config.schema)!==null&&o!==void 0?o:{};this.description=this.config.description;this.initial=this.config.initial;this.states=this.config.states?fn(this.config.states,(function(e,r){var i;var n=new t(e,{},undefined,{parent:s,key:r});Object.assign(s.idMap,zi((i={},i[n.id]=n,i),n.idMap));return n})):Zs;var a=0;function c(t){var e,r;t.order=a++;try{for(var i=Fi(ms(t)),n=i.next();!n.done;n=i.next()){var s=n.value;c(s)}}catch(t){e={error:t}}finally{try{if(n&&!n.done&&(r=i.return))r.call(i)}finally{if(e)throw e.error}}}c(this);this.history=this.config.history===true?"shallow":this.config.history||false;this._transient=!!this.config.always||(!this.config.on?false:Array.isArray(this.config.on)?this.config.on.some((function(t){var e=t.event;return e===Qs})):Qs in this.config.on);this.strict=!!this.config.strict;this.onEntry=yn(this.config.entry||this.config.onEntry).map((function(t){return Kn(t)}));this.onExit=yn(this.config.exit||this.config.onExit).map((function(t){return Kn(t)}));this.meta=this.config.meta;this.doneData=this.type==="final"?this.config.data:undefined;this.invoke=yn(this.config.invoke).map((function(t,e){var r,i;if(Rn(t)){var n=Un(s.id,e);s.machine.options.services=zi((r={},r[n]=t,r),s.machine.options.services);return Gs({src:n,id:n})}else if(zn(t.src)){var n=t.id||Un(s.id,e);return Gs(zi(zi({},t),{id:n,src:t.src}))}else if(Rn(t.src)||Cn(t.src)){var n=t.id||Un(s.id,e);s.machine.options.services=zi((i={},i[n]=t.src,i),s.machine.options.services);return Gs(zi(zi({id:n},t),{src:n}))}else{var o=t.src;return Gs(zi(zi({id:Un(s.id,e)},t),{src:o}))}}));this.activities=yn(this.config.activities).concat(this.invoke).map((function(t){return Gn(t)}));this.transition=this.transition.bind(this);this.tags=yn(this.config.tags)}t.prototype._init=function(){if(this.__cache.transitions){return}Os(this).forEach((function(t){return t.on}))};t.prototype.withConfig=function(e,r){var i=this.options,n=i.actions,s=i.activities,o=i.guards,a=i.services,c=i.delays;return new t(this.config,{actions:zi(zi({},n),e.actions),activities:zi(zi({},s),e.activities),guards:zi(zi({},o),e.guards),services:zi(zi({},a),e.services),delays:zi(zi({},c),e.delays)},r!==null&&r!==void 0?r:this.context)};t.prototype.withContext=function(e){return new t(this.config,this.options,e)};Object.defineProperty(t.prototype,"context",{get:function(){return Cn(this._context)?this._context():this._context},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:fn(this.states,(function(t){return t.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:false,configurable:true});t.prototype.toJSON=function(){return this.definition};Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on){return this.__cache.on}var t=this.transitions;return this.__cache.on=t.reduce((function(t,e){t[e.eventType]=t[e.eventType]||[];t[e.eventType].push(e);return t}),{})},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:false,configurable:true});t.prototype.getCandidates=function(t){if(this.__cache.candidates[t]){return this.__cache.candidates[t]}var e=t===Qs;var r=this.transitions.filter((function(r){var i=r.eventType===t;return e?i:i||r.eventType===Ys}));this.__cache.candidates[t]=r;return r};t.prototype.getDelayedTransitions=function(){var t=this;var e=this.config.after;if(!e){return[]}var r=function(e,r){var i=Cn(e)?"".concat(t.id,":delay[").concat(r,"]"):e;var n=ss(i,t.id);t.onEntry.push(Yn(n,{delay:e}));t.onExit.push(es(n));return n};var i=En(e)?e.map((function(t,e){var i=r(t.delay,e);return zi(zi({},t),{event:i})})):wn(Object.keys(e).map((function(t,i){var n=e[t];var s=zn(n)?{target:n}:n;var o=!isNaN(+t)?+t:t;var a=r(o,i);return yn(s).map((function(t){return zi(zi({},t),{event:a,delay:o})}))})));return i.map((function(e){var r=e.delay;return zi(zi({},t.formatTransition(e)),{delay:r})}))};t.prototype.getStateNodes=function(t){var e;var r=this;if(!t){return[]}var i=t instanceof Rs?t.value:un(t,this.delimiter);if(zn(i)){var n=this.getStateNode(i).initial;return n!==undefined?this.getStateNodes((e={},e[i]=n,e)):[this,this.states[i]]}var s=Object.keys(i);var o=[this];o.push.apply(o,Ri([],Ti(wn(s.map((function(t){return r.getStateNode(t).getStateNodes(i[t])})))),false));return o};t.prototype.handles=function(t){var e=on(t);return this.events.includes(e)};t.prototype.resolveState=function(t){var e=t instanceof Rs?t:Rs.create(t);var r=Array.from(ks([],this.getStateNodes(e.value)));return new Rs(zi(zi({},e),{value:this.resolve(e.value),configuration:r,done:Es(r,this),tags:zs(r),machine:this.machine}))};t.prototype.transitionLeafNode=function(t,e,r){var i=this.getStateNode(t);var n=i.next(e,r);if(!n||!n.transitions.length){return this.next(e,r)}return n};t.prototype.transitionCompoundNode=function(t,e,r){var i=Object.keys(t);var n=this.getStateNode(i[0]);var s=n._transition(t[i[0]],e,r);if(!s||!s.transitions.length){return this.next(e,r)}return s};t.prototype.transitionParallelNode=function(t,e,r){var i,n;var s={};try{for(var o=Fi(Object.keys(t)),a=o.next();!a.done;a=o.next()){var c=a.value;var u=t[c];if(!u){continue}var l=this.getStateNode(c);var f=l._transition(u,e,r);if(f){s[c]=f}}}catch(t){i={error:t}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(i)throw i.error}}var h=Object.keys(s).map((function(t){return s[t]}));var v=wn(h.map((function(t){return t.transitions})));var d=h.some((function(t){return t.transitions.length>0}));if(!d){return this.next(e,r)}var p=wn(Object.keys(s).map((function(t){return s[t].configuration})));return{transitions:v,exitSet:wn(h.map((function(t){return t.exitSet}))),configuration:p,source:e,actions:wn(Object.keys(s).map((function(t){return s[t].actions})))}};t.prototype._transition=function(t,e,r){if(zn(t)){return this.transitionLeafNode(t,e,r)}if(Object.keys(t).length===1){return this.transitionCompoundNode(t,e,r)}return this.transitionParallelNode(t,e,r)};t.prototype.getTransitionData=function(t,e){return this._transition(t.value,t,Mn(e))};t.prototype.next=function(t,e){var r,i;var n=this;var s=e.name;var o=[];var a=[];var c;try{for(var u=Fi(this.getCandidates(s)),l=u.next();!l.done;l=u.next()){var f=l.value;var h=f.cond,v=f.in;var d=t.context;var p=v?zn(v)&&to(v)?t.matches(un(this.getStateNodeById(v).path,this.delimiter)):sn(un(v,this.delimiter),vn(this.path.slice(0,-2))(t.value)):true;var w=false;try{w=!h||Wn(this.machine,h,d,e,t)}catch(t){throw new Error("Unable to evaluate guard '".concat(h.name||h.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,"':\n").concat(t.message))}if(w&&p){if(f.target!==undefined){a=f.target}o.push.apply(o,Ri([],Ti(f.actions),false));c=f;break}}}catch(t){r={error:t}}finally{try{if(l&&!l.done&&(i=u.return))i.call(u)}finally{if(r)throw r.error}}if(!c){return undefined}if(!a.length){return{transitions:[c],exitSet:[],configuration:t.value?[this]:[],source:t,actions:o}}var b=wn(a.map((function(e){return n.getRelativeStateNodes(e,t.historyValue)})));var y=!!c.internal;return{transitions:[c],exitSet:y?[]:wn(a.map((function(t){return n.getPotentiallyReenteringNodes(t)}))),configuration:b,source:t,actions:o}};t.prototype.getPotentiallyReenteringNodes=function(t){if(this.order<t.order){return[this]}var e=[];var r=this;var i=t;while(r&&r!==i){e.push(r);r=r.parent}if(r!==i){return[]}e.push(i);return e};t.prototype.getActions=function(t,e,r,i,n,s,o){var a,c,u,l;var f=this;var h=s?ks([],this.getStateNodes(s.value)):[];var v=new Set;try{for(var d=Fi(Array.from(t).sort((function(t,e){return t.order-e.order}))),p=d.next();!p.done;p=d.next()){var w=p.value;if(!_s(h,w)||_s(r.exitSet,w)||w.parent&&v.has(w.parent)){v.add(w)}}}catch(t){a={error:t}}finally{try{if(p&&!p.done&&(c=d.return))c.call(d)}finally{if(a)throw a.error}}try{for(var b=Fi(h),y=b.next();!y.done;y=b.next()){var w=y.value;if(!_s(t,w)||_s(r.exitSet,w.parent)){r.exitSet.push(w)}}}catch(t){u={error:t}}finally{try{if(y&&!y.done&&(l=b.return))l.call(b)}finally{if(u)throw u.error}}r.exitSet.sort((function(t,e){return e.order-t.order}));var m=Array.from(v).sort((function(t,e){return t.order-e.order}));var g=new Set(r.exitSet);var O=wn(m.map((function(t){var e=[];if(t.type!=="final"){return e}var s=t.parent;if(!s.parent){return e}e.push(os(t.id,t.doneData),os(s.id,t.doneData?mn(t.doneData,i,n):undefined));var o=s.parent;if(o.type==="parallel"){if(gs(o).every((function(t){return Es(r.configuration,t)}))){e.push(os(o.id))}}return e})));var k=m.map((function(t){var e=t.onEntry;var r=t.activities.map((function(t){return rs(t)}));return{type:"entry",actions:Jn(o?Ri(Ri([],Ti(e),false),Ti(r),false):Ri(Ri([],Ti(r),false),Ti(e),false),f.machine.options.actions)}})).concat({type:"state_done",actions:O.map((function(t){return Qn(t)}))});var j=Array.from(g).map((function(t){return{type:"exit",actions:Jn(Ri(Ri([],Ti(t.onExit),false),Ti(t.activities.map((function(t){return is(t)}))),false),f.machine.options.actions)}}));var x=j.concat({type:"transition",actions:Jn(r.actions,this.machine.options.actions)}).concat(k);if(e){var S=Jn(wn(Ri([],Ti(t),false).sort((function(t,e){return e.order-t.order})).map((function(t){return t.onExit}))),this.machine.options.actions).filter((function(t){return!Hn(t)}));return x.concat({type:"stop",actions:S})}return x};t.prototype.transition=function(t,e,r,i){if(t===void 0){t=this.initialState}var n=Mn(e);var s;if(t instanceof Rs){s=r===undefined?t:this.resolveState(Rs.from(t,r))}else{var o=zn(t)?this.resolve(ln(this.getResolvedPath(t))):this.resolve(t);var a=r!==null&&r!==void 0?r:this.machine.context;s=this.resolveState(Rs.from(o,a))}if(!rn&&n.name===Ys){throw new Error("An event cannot have the wildcard type ('".concat(Ys,"')"))}if(this.strict){if(!this.events.includes(n.name)&&!gn(n.name)){throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(n.name,"'"))}}var c=this._transition(s.value,s,n)||{transitions:[],configuration:[],exitSet:[],source:s,actions:[]};var u=ks([],this.getStateNodes(s.value));var l=c.configuration.length?ks(u,c.configuration):u;c.configuration=Ri([],Ti(l),false);return this.resolveTransition(c,s,s.context,i,n)};t.prototype.resolveRaisedTransition=function(t,e,r,i){var n;var s=t.actions;t=this.transition(t,e,undefined,i);t._event=r;t.event=r.data;(n=t.actions).unshift.apply(n,Ri([],Ti(s),false));return t};t.prototype.resolveTransition=function(t,e,r,i,n){var s,o,a,c;var u=this;if(n===void 0){n=Vn}var l=t.configuration;var f=!e||t.transitions.length>0;var h=f?t.configuration:e?e.configuration:[];var v=Es(h,this);var d=f?Ss(this.machine,l):undefined;var p=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):undefined:undefined;var w=this.getActions(new Set(h),v,t,r,n,e,i);var b=e?zi({},e.activities):{};try{for(var y=Fi(w),m=y.next();!m.done;m=y.next()){var g=m.value;try{for(var O=(a=void 0,Fi(g.actions)),k=O.next();!k.done;k=O.next()){var j=k.value;if(j.type===Mi){b[j.activity.id||j.activity.type]=j}else if(j.type===Li){b[j.activity.id||j.activity.type]=false}}}catch(t){a={error:t}}finally{try{if(k&&!k.done&&(c=O.return))c.call(O)}finally{if(a)throw a.error}}}}catch(t){s={error:t}}finally{try{if(m&&!m.done&&(o=y.return))o.call(y)}finally{if(s)throw s.error}}var x=Ti(ls(this,e,r,n,w,i,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),S=x[0],_=x[1];var A=Ti(jn(S,Hn),2),E=A[0],C=A[1];var z=S.filter((function(t){var e;return t.type===Mi&&((e=t.activity)===null||e===void 0?void 0:e.type)===$i}));var q=z.reduce((function(t,e){t[e.activity.id]=vs(e.activity,u.machine,_,n);return t}),e?zi({},e.children):{});var F=new Rs({value:d||e.value,context:_,_event:n,_sessionid:e?e._sessionid:null,historyValue:d?p?Sn(p,d):undefined:e?e.historyValue:undefined,history:!d||t.source?e:undefined,actions:d?C:[],activities:d?b:e?e.activities:{},events:[],configuration:h,transitions:t.transitions,children:q,done:v,tags:zs(h),machine:this});var T=r!==_;F.changed=n.name===Gi||T;var R=F.history;if(R){delete R.history}var N=!v&&(this._transient||l.some((function(t){return t._transient})));if(!f&&(!N||n.name===Qs)){return F}var P=F;if(!v){if(N){P=this.resolveRaisedTransition(P,{type:Di},n,i)}while(E.length){var M=E.shift();P=this.resolveRaisedTransition(P,M._event,n,i)}}var L=P.changed||(R?!!P.actions.length||T||typeof R.value!==typeof P.value||!qs(P.value,R.value):undefined);P.changed=L;P.history=R;return P};t.prototype.getStateNode=function(t){if(to(t)){return this.machine.getStateNodeById(t)}if(!this.states){throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."))}var e=this.states[t];if(!e){throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"))}return e};t.prototype.getStateNodeById=function(t){var e=to(t)?t.slice(Xs.length):t;if(e===this.id){return this}var r=this.machine.idMap[e];if(!r){throw new Error("Child state node '#".concat(e,"' does not exist on machine '").concat(this.id,"'"))}return r};t.prototype.getStateNodeByPath=function(t){if(typeof t==="string"&&to(t)){try{return this.getStateNodeById(t.slice(1))}catch(t){}}var e=an(t,this.delimiter).slice();var r=this;while(e.length){var i=e.shift();if(!i.length){break}r=r.getStateNode(i)}return r};t.prototype.resolve=function(t){var e;var r=this;if(!t){return this.initialStateValue||Zs}switch(this.type){case"parallel":return fn(this.initialStateValue,(function(e,i){return e?r.getStateNode(i).resolve(t[i]||e):Zs}));case"compound":if(zn(t)){var i=this.getStateNode(t);if(i.type==="parallel"||i.type==="compound"){return e={},e[t]=i.initialStateValue,e}return t}if(!Object.keys(t).length){return this.initialStateValue||{}}return fn(t,(function(t,e){return t?r.getStateNode(e).resolve(t):Zs}));default:return t||Zs}};t.prototype.getResolvedPath=function(t){if(to(t)){var e=this.machine.idMap[t.slice(Xs.length)];if(!e){throw new Error("Unable to find state node '".concat(t,"'"))}return e.path}return an(t,this.delimiter)};Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue){return this.__cache.initialStateValue}var e;if(this.type==="parallel"){e=hn(this.states,(function(t){return t.initialStateValue||Zs}),(function(t){return!(t.type==="history")}))}else if(this.initial!==undefined){if(!this.states[this.initial]){throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"))}e=ys(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else{e={}}this.__cache.initialStateValue=e;return this.__cache.initialStateValue},enumerable:false,configurable:true});t.prototype.getInitialState=function(t,e){this._init();var r=this.getStateNodes(t);return this.resolveTransition({configuration:r,exitSet:[],transitions:[],source:undefined,actions:[]},undefined,e!==null&&e!==void 0?e:this.machine.context,undefined)};Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t){throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."))}return this.getInitialState(t)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"target",{get:function(){var t;if(this.type==="history"){var e=this.config;if(zn(e.target)){t=to(e.target)?ln(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}else{t=e.target}}return t},enumerable:false,configurable:true});t.prototype.getRelativeStateNodes=function(t,e,r){if(r===void 0){r=true}return r?t.type==="history"?t.resolveHistory(e):t.initialStateNodes:[t]};Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;if(ys(this)){return[this]}if(this.type==="compound"&&!this.initial){if(!rn){An(false,"Compound state node '".concat(this.id,"' has no initial state."))}return[this]}var e=pn(this.initialStateValue);return wn(e.map((function(e){return t.getFromRelativePath(e)})))},enumerable:false,configurable:true});t.prototype.getFromRelativePath=function(t){if(!t.length){return[this]}var e=Ti(t),r=e[0],i=e.slice(1);if(!this.states){throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"))}var n=this.getStateNode(r);if(n.type==="history"){return n.resolveHistory()}if(!this.states[r]){throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"))}return this.states[r].getFromRelativePath(i)};t.prototype.historyValue=function(t){if(!Object.keys(this.states).length){return undefined}return{current:t||this.initialStateValue,states:hn(this.states,(function(e,r){if(!t){return e.historyValue()}var i=zn(t)?undefined:t[r];return e.historyValue(i||e.initialStateValue)}),(function(t){return!t.history}))}};t.prototype.resolveHistory=function(t){var e=this;if(this.type!=="history"){return[this]}var r=this.parent;if(!t){var i=this.target;return i?wn(pn(i).map((function(t){return r.getFromRelativePath(t)}))):r.initialStateNodes}var n=dn(r.path,"states")(t).current;if(zn(n)){return[r.getStateNode(n)]}return wn(pn(n).map((function(t){return e.history==="deep"?r.getFromRelativePath(t):[r.states[t[0]]]})))};Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this;var e=wn(Object.keys(this.states).map((function(e){return t.states[e].stateIds})));return[this.id].concat(e)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"events",{get:function(){var t,e,r,i;if(this.__cache.events){return this.__cache.events}var n=this.states;var s=new Set(this.ownEvents);if(n){try{for(var o=Fi(Object.keys(n)),a=o.next();!a.done;a=o.next()){var c=a.value;var u=n[c];if(u.states){try{for(var l=(r=void 0,Fi(u.events)),f=l.next();!f.done;f=l.next()){var h=f.value;s.add("".concat(h))}}catch(t){r={error:t}}finally{try{if(f&&!f.done&&(i=l.return))i.call(l)}finally{if(r)throw r.error}}}}}catch(e){t={error:e}}finally{try{if(a&&!a.done&&(e=o.return))e.call(o)}finally{if(t)throw t.error}}}return this.__cache.events=Array.from(s)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter((function(t){return!(!t.target&&!t.actions.length&&t.internal)})).map((function(t){return t.eventType})));return Array.from(t)},enumerable:false,configurable:true});t.prototype.resolveTarget=function(t){var e=this;if(t===undefined){return undefined}return t.map((function(t){if(!zn(t)){return t}var r=t[0]===e.delimiter;if(r&&!e.parent){return e.getStateNodeByPath(t.slice(1))}var i=r?e.key+t:t;if(e.parent){try{var n=e.parent.getStateNodeByPath(i);return n}catch(t){throw new Error("Invalid transition definition for state node '".concat(e.id,"':\n").concat(t.message))}}else{return e.getStateNodeByPath(i)}}))};t.prototype.formatTransition=function(t){var e=this;var r=In(t.target);var i="internal"in t?t.internal:r?r.some((function(t){return zn(t)&&t[0]===e.delimiter})):true;var n=this.machine.options.guards;var s=this.resolveTarget(r);var o=zi(zi({},t),{actions:Jn(yn(t.actions)),cond:qn(t.cond,n),target:s,source:this,internal:i,eventType:t.event,toJSON:function(){return zi(zi({},o),{target:o.target?o.target.map((function(t){return"#".concat(t.id)})):undefined,source:"#".concat(e.id)})}});return o};t.prototype.formatTransitions=function(){var t,e;var r=this;var i;if(!this.config.on){i=[]}else if(Array.isArray(this.config.on)){i=this.config.on}else{var n=this.config.on,s=Ys,o=n[s],a=o===void 0?[]:o,c=qi(n,[typeof s==="symbol"?s:s+""]);i=wn(Object.keys(c).map((function(t){if(!rn&&t===Qs){An(false,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'))}var e=Ln(t,c[t]);if(!rn){ro(r,t,e)}return e})).concat(Ln(Ys,a)))}var u=this.config.always?Ln("",this.config.always):[];var l=this.config.onDone?Ln(String(os(this.id)),this.config.onDone):[];if(!rn){An(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'))}var f=wn(this.invoke.map((function(t){var e=[];if(t.onDone){e.push.apply(e,Ri([],Ti(Ln(String(as(t.id)),t.onDone)),false))}if(t.onError){e.push.apply(e,Ri([],Ti(Ln(String(cs(t.id)),t.onError)),false))}return e})));var h=this.after;var v=wn(Ri(Ri(Ri(Ri([],Ti(l),false),Ti(f),false),Ti(i),false),Ti(u),false).map((function(t){return yn(t).map((function(t){return r.formatTransition(t)}))})));try{for(var d=Fi(h),p=d.next();!p.done;p=d.next()){var w=p.value;v.push(w)}}catch(e){t={error:e}}finally{try{if(p&&!p.done&&(e=d.return))e.call(d)}finally{if(t)throw t.error}}return v};return t}();function no(t,e,r){if(r===void 0){r=t.context}return new io(t,e,r)}const so=(t,e)=>t.textContent.toLowerCase().startsWith(e.toLowerCase());const oo=["m","l"];function ao(t){return oo.includes(t)}const co=({disabled:t,option:e,onRemove:r})=>{const i={};if(e.chipColor){i["color"]=e.chipColor}if(e.chipBackgroundColor){i["background-color"]=e.chipBackgroundColor}return v("label",{class:"wcs-select-chip",style:i,onClick:t=>t.stopImmediatePropagation()},v("div",null,e.displayText),t?null:v("div",{onClick:()=>r(e)},v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"12",viewBox:"0 0 20 12",class:"chip"},v("path",{d:"M2,0 6,4 10,0 12,2 8,6 12,10 10,12 6,8 2,12 0,10 4,6 0,2 2,0",fill:e.chipColor,transform:"translate(8 0)"}))))};function uo(t,e,r){const i=d(t);if(i==="UNKNOWN"){return[]}switch(e){case"closed":switch(i){case"MAJ+TAB":switch(r){case"unique":case"multiple":return[];case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"MoveFocus",target:"previous"}]}break;case"DOWN_ARROW":switch(r){case"unique":return[{kind:"SelectOption",target:"next"}];case"autocomplete_multiple":case"autocomplete_unique":return[{kind:"OpenSelect"},{kind:"HighlightOption",target:"first"}];case"multiple":return[{kind:"OpenSelect"},{kind:"FocusOption",target:"first"}]}break;case"RIGHT_ARROW":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[];case"unique":return[{kind:"SelectOption",target:"next"}];case"multiple":return[{kind:"OpenSelect"},{kind:"FocusOption",target:"first"}]}break;case"UP_ARROW":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"OpenSelect"},{kind:"HighlightOption",target:"last"}];case"multiple":break;case"unique":return[{kind:"SelectOption",target:"previous"}]}break;case"LEFT_ARROW":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[];case"unique":return[{kind:"SelectOption",target:"previous"}]}break;case"ALT+DOWN_ARROW":case"ALT+UP_ARROW":switch(r){case"unique":return[{kind:"OpenSelect"},{kind:"FocusOption",target:"first"}];case"autocomplete_unique":case"autocomplete_multiple":case"multiple":return[{kind:"OpenSelect"}]}break;case"SPACE":case"ENTER":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[];case"unique":case"multiple":return[{kind:"OpenSelect"},{kind:"FocusOption",target:"lastFocused"}]}break;case"ESCAPE":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"ClearAutocompleteInput"}];case"unique":case"multiple":return[]}break;case"PAGE_UP":switch(r){case"autocomplete_unique":return[];case"autocomplete_multiple":return[];case"unique":return[{kind:"SelectOption",target:"first"}];case"multiple":return[]}break;case"PAGE_DOWN":switch(r){case"autocomplete_unique":return[];case"autocomplete_multiple":return[];case"unique":return[{kind:"SelectOption",target:"last"}];case"multiple":return[]}break}break;case"opened":switch(i){case"ESCAPE":switch(r){case"unique":case"multiple":case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"CloseSelect",shouldBlur:false}]}break;case"ALT+UP_ARROW":switch(r){case"unique":case"multiple":return[{kind:"CloseSelect",shouldBlur:false}];case"autocomplete_unique":case"autocomplete_multiple":return[]}break;case"TAB":switch(r){case"autocomplete_unique":return[{kind:"SelectOption",target:"lastHighlighted"},{kind:"CloseSelect",shouldBlur:false}];case"autocomplete_multiple":return[{kind:"CloseSelect",shouldBlur:false}];case"unique":case"multiple":return[{kind:"CloseSelect",shouldBlur:true}]}break;case"MAJ+TAB":switch(r){case"autocomplete_unique":return[{kind:"SelectOption",target:"lastHighlighted"},{kind:"CloseSelect",shouldBlur:false},{kind:"MoveFocus",target:"previous"}];case"autocomplete_multiple":return[{kind:"CloseSelect",shouldBlur:false},{kind:"MoveFocus",target:"previous"}];case"unique":case"multiple":return[{kind:"CloseSelect",shouldBlur:true}]}break;case"UP_ARROW":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"HighlightOption",target:"previous"}];case"unique":case"multiple":return[{kind:"FocusOption",target:"previous"}]}break;case"LEFT_ARROW":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[];case"unique":case"multiple":return[{kind:"FocusOption",target:"previous"}]}break;case"DOWN_ARROW":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"HighlightOption",target:"next"}];case"unique":case"multiple":return[{kind:"FocusOption",target:"next"}]}break;case"RIGHT_ARROW":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[];case"unique":case"multiple":return[{kind:"FocusOption",target:"next"}]}break;case"PAGE_UP":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"HighlightOption",target:"first"}];case"unique":case"multiple":return[{kind:"FocusOption",target:"first"}]}break;case"PAGE_DOWN":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"HighlightOption",target:"last"}];case"unique":case"multiple":return[{kind:"FocusOption",target:"last"}]}break;case"ENTER":switch(r){case"autocomplete_unique":return[{kind:"SelectOption",target:"lastHighlighted"}];case"autocomplete_multiple":return[{kind:"SelectOption",target:"lastHighlighted"}]}break}break;default:throw Error("Unknown error")}return[]}const lo=':host{--wcs-select-ligther-percentage:40;--wcs-select-control-border-radius:var(--wcs-semantic-border-radius-base);--wcs-select-text-color-disabled:var(--wcs-semantic-color-text-disabled);--wcs-select-value-color:var(--wcs-semantic-color-text-primary);--wcs-select-value-font-weight:var(--wcs-semantic-font-weight-medium);--wcs-select-placeholder-color:var(--wcs-semantic-color-text-tertiary);--wcs-select-placeholder-font-weight:var(--wcs-semantic-font-weight-roman);--wcs-select-placeholder-font-style:var(--wcs-semantic-font-style-control-placeholder);--wcs-select-options-padding:var(--wcs-semantic-spacing-base-150);--wcs-select-control-line-height:var(--wcs-semantic-font-line-height-large);--wcs-select-control-background-color:var(--wcs-semantic-color-background-control-default);--wcs-select-control-arrow-color:var(--wcs-semantic-color-foreground-action-secondary-default);--wcs-select-control-arrow-color-disabled:var(--wcs-semantic-color-foreground-disabled);--wcs-select-control-chips-gap:var(--wcs-semantic-spacing-small);--wcs-select-control-border-color-default:var(--wcs-semantic-color-border-primary);--wcs-select-control-border-color-disabled:var(--wcs-semantic-color-border-disabled);--wcs-select-control-border-color-focus:var(--wcs-semantic-color-border-control-focus);--wcs-select-control-border-color-error:var(--wcs-semantic-color-border-critical);--wcs-select-control-border-style-default:solid;--wcs-select-control-border-style-error:solid;--wcs-select-control-border-style-focus:var(--wcs-semantic-border-style-focus-control);--wcs-select-control-border-width-default:var(--wcs-semantic-border-width-default);--wcs-select-control-border-width-focus:var(--wcs-semantic-border-width-large);--wcs-select-control-padding-horizontal-m:var(--wcs-semantic-spacing-large);--wcs-select-control-padding-horizontal-l:var(--wcs-semantic-spacing-large);--wcs-select-control-height:var(--wcs-select-control-height-m);--wcs-select-control-height-m:var(--wcs-semantic-size-m);--wcs-select-control-height-l:var(--wcs-semantic-size-l);--wcs-internal-select-chip-size:var(--wcs-semantic-size-s);--wcs-select-control-font-size:var(--wcs-select-control-font-size-m, 1rem);--wcs-select-control-font-size-m:var(--wcs-semantic-font-size-m);--wcs-select-control-font-size-l:var(--wcs-semantic-font-size-l);--wcs-select-overlay-max-height:360px;--wcs-select-overlay-background-color:var(--wcs-semantic-color-background-surface-primary);--wcs-select-overlay-border-width:var(--wcs-semantic-border-width-default);--wcs-select-overlay-border-color:var(--wcs-semantic-color-border-secondary);--wcs-select-overlay-border-radius:var(--wcs-semantic-border-radius-base);--wcs-select-control-chip-color-default:var(--wcs-semantic-color-foreground-action-primary-default);--wcs-select-control-chip-color-disabled:var(--wcs-semantic-color-text-disabled);--wcs-select-control-chip-background-color-default:var(--wcs-semantic-color-background-action-primary-default);--wcs-select-control-chip-background-color-disabled:var(--wcs-semantic-color-background-action-primary-disabled);--wcs-select-control-chip-padding-vertical:var(--wcs-semantic-spacing-small);--wcs-select-control-chip-padding-horizontal:calc(1.5 * var(--wcs-semantic-spacing-base));--wcs-select-control-chip-line-height:var(--wcs-semantic-font-line-height-large);--wcs-select-control-chip-border-radius:var(--wcs-semantic-border-radius-base);--wcs-select-control-autocomplete-padding-vertical-m:var(--wcs-semantic-spacing-small);--wcs-select-control-autocomplete-padding-vertical-l:var(--wcs-semantic-spacing-small);--wcs-select-internal-noresult-padding-horizontal:var(--wcs-semantic-spacing-base);display:block;min-height:var(--wcs-select-control-height);position:relative;outline:none;user-select:none;box-sizing:border-box}:host svg{flex-shrink:0}:host .wcs-select-control{min-height:var(--wcs-select-control-height);outline:var(--wcs-select-control-border-width-default) var(--wcs-select-control-border-style-default) var(--wcs-select-control-border-color-default);outline-offset:calc(var(--wcs-select-control-border-width-default) * -1)}:host .arrow{fill:var(--wcs-select-control-arrow-color)}:host .chip{fill:var(--wcs-select-control-chip-color-default);opacity:calc((100 - var(--wcs-select-ligther-percentage)) / 100)}:host .chip:hover{opacity:100}.wcs-select-control{box-sizing:border-box;display:flex;align-items:center;background-color:var(--wcs-select-control-background-color);border-radius:var(--wcs-select-control-border-radius);outline:var(--wcs-select-control-border-color-default) solid var(--wcs-select-control-border-width-default);outline-offset:calc(var(--wcs-select-control-border-width-default) * -1);font-size:var(--wcs-select-control-font-size, 1rem);line-height:var(--wcs-select-control-line-height);cursor:pointer;padding-left:var(--wcs-select-control-padding-horizontal-m);padding-right:calc(var(--wcs-select-control-padding-horizontal-m) - 4px)}label{cursor:pointer;transition:color 125ms ease-in;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}label.wcs-select-placeholder{color:var(--wcs-select-placeholder-color);font-style:var(--wcs-select-placeholder-font-style);font-weight:var(--wcs-select-placeholder-font-weight)}label.wcs-select-value{color:var(--wcs-select-value-color);font-style:normal;font-weight:var(--wcs-select-value-font-weight)}label::after{content:"";padding:1px}.wcs-select-value-container{max-width:calc(100% - (24px + var(--wcs-semantic-spacing-base)));padding-right:8px;display:flex;flex-direction:row;gap:var(--wcs-select-control-chips-gap);align-items:center;flex-wrap:wrap}.wcs-select-chip{box-sizing:border-box;height:var(--wcs-internal-select-chip-size);line-height:var(--wcs-select-control-chip-line-height);color:var(--wcs-select-control-chip-color-default);background-color:var(--wcs-select-control-chip-background-color-default);border-radius:var(--wcs-select-control-chip-border-radius);display:flex;align-items:center;padding:var(--wcs-select-control-chip-padding-vertical) var(--wcs-select-control-chip-padding-horizontal);overflow:initial;z-index:1}.wcs-select-options{display:none;position:absolute;z-index:999999999;border:solid var(--wcs-select-overlay-border-width) var(--wcs-select-overlay-border-color);border-radius:var(--wcs-select-overlay-border-radius);max-height:var(--wcs-select-overlay-max-height);overflow-y:auto;width:calc(100% - (2 * var(--wcs-select-overlay-border-width) + 2 * var(--wcs-select-options-padding)));padding:var(--wcs-select-options-padding);background-color:var(--wcs-select-overlay-background-color)}:host(.expanded){outline-width:var(--wcs-select-control-border-width-focus)}:host(.expanded) .wcs-select-control{outline:var(--wcs-select-control-border-width-focus) var(--wcs-select-control-border-style-focus) var(--wcs-select-control-border-color-focus);outline-offset:calc(var(--wcs-select-control-border-width-focus) * -1)}:host(.expanded) .wcs-select-options{display:block}:host([aria-invalid=true]) .wcs-select-control,:host([autocomplete]):has(input[aria-invalid=true]) .wcs-select-control{outline-style:var(--wcs-select-control-border-style-error);outline-color:var(--wcs-select-control-border-color-error)}:host(:not(.expanded):focus-visible){outline-width:var(--wcs-select-control-border-width-focus)}:host(:not(.expanded):focus-visible) .wcs-select-control{outline:var(--wcs-select-control-border-width-focus) var(--wcs-select-control-border-style-focus) var(--wcs-select-control-border-color-focus);outline-offset:calc(var(--wcs-select-control-border-width-focus) * -1)}:host([disabled]){cursor:not-allowed;--wcs-select-control-background-color:var(--wcs-semantic-color-background-control-disabled)}:host([disabled]) .wcs-select-control{outline-style:var(--wcs-select-control-border-style-default);outline-color:var(--wcs-select-control-border-color-disabled)}:host([disabled]) .wcs-select-control,:host([disabled]) label{cursor:default;pointer-events:none}:host([disabled]) label{color:var(--wcs-select-text-color-disabled)}:host([disabled]) .arrow{fill:var(--wcs-select-control-arrow-color-disabled)}:host([disabled]) .wcs-select-chip{color:var(--wcs-select-control-chip-color-disabled);background-color:var(--wcs-select-control-chip-background-color-disabled)}:host([disabled]) .chip{fill:var(--wcs-select-control-chip-color-disabled)}:host([size=m]){--wcs-select-control-font-size:var(--wcs-select-control-font-size-m);--wcs-select-control-height:var(--wcs-select-control-height-m);--wcs-internal-select-chip-size:var(--wcs-select-chip-size-m)}:host([size=m]) .wcs-select-control{padding-left:var(--wcs-select-control-padding-horizontal-m);padding-right:calc(var(--wcs-select-control-padding-horizontal-m) - 4px)}:host([size=m]):host([autocomplete]) .autocomplete-field{height:calc(var(--wcs-select-control-height) - var(--wcs-select-control-autocomplete-padding-vertical-m) * 2)}:host([size=m]):host([autocomplete]) .wcs-select-value-container{padding-top:var(--wcs-select-control-autocomplete-padding-vertical-m);padding-bottom:var(--wcs-select-control-autocomplete-padding-vertical-m)}:host([size=l]){--wcs-select-control-font-size:var(--wcs-select-control-font-size-l);--wcs-select-control-height:var(--wcs-select-control-height-l);--wcs-internal-select-chip-size:var(--wcs-select-chip-size-l)}:host([size=l]) .wcs-select-control{padding-left:var(--wcs-select-control-padding-horizontal-l);padding-right:calc(var(--wcs-select-control-padding-horizontal-l) - 4px)}:host([size=l]):host([autocomplete]) .autocomplete-field{height:calc(var(--wcs-select-control-height) - var(--wcs-select-control-autocomplete-padding-vertical-l) * 2)}:host([size=l]):host([autocomplete]) .wcs-select-value-container{padding-top:var(--wcs-select-control-autocomplete-padding-vertical-l);padding-bottom:var(--wcs-select-control-autocomplete-padding-vertical-l)}:host([chips]) .wcs-select-control{flex-wrap:wrap}:host([chips]) .wcs-select-value-container{margin-top:4px;margin-bottom:4px}:host([autocomplete]) .wcs-select-value-container{margin:0;width:100%}:host([autocomplete]) input{font:unset;background-color:transparent;outline:none;border:none;padding:unset;color:var(--wcs-select-value-color);font-weight:var(--wcs-select-value-font-weight) !important;font-size:var(--wcs-select-control-font-size);line-height:inherit}:host([autocomplete]) input::placeholder{color:var(--wcs-select-placeholder-color);opacity:1;font-weight:var(--wcs-select-placeholder-font-weight);font-style:var(--wcs-select-placeholder-font-style)}:host([autocomplete]:focus-within) .wcs-select-control{outline:var(--wcs-select-control-border-width-focus) var(--wcs-select-control-border-style-focus) var(--wcs-select-control-border-color-focus);outline-offset:calc(var(--wcs-select-control-border-width-focus) * -1)}.autocomplete-field{width:0;min-width:50px;flex-grow:1}.noresult-container{padding-left:var(--wcs-select-internal-noresult-padding-horizontal);padding-right:var(--wcs-select-internal-noresult-padding-horizontal);display:flex;flex-direction:row;align-items:center;height:var(--wcs-select-control-height)}';const fo=lo;const ho={key:"select",initial:"closed",states:{closed:{entry:["close"],on:{CLICK:"opened",OPEN:"opened",OPTION_SELECTED:{actions:["selectOption"]}}},opened:{entry:["open"],on:{CLICK:"closed",CLOSE:"closed",OPTION_SELECTED:{actions:["selectOption"]}}}}};const vo=["tabindex","title"];const po=t(class t extends e{constructor(){super();this.__registerHost();this.__attachShadow();this.wcsChange=r(this,"wcsChange",7);this.wcsFocus=r(this,"wcsFocus",7);this.wcsBlur=r(this,"wcsBlur",7);this.wcsFilterChange=r(this,"wcsFilterChange",7);this.inheritedAttributes={};this.selectId=`wcs-select-${wo++}`;this.optionsId=o("OPTIONS");this.expanded=false;this.size="m";this.displayText=undefined;this.focused=undefined;this.value=undefined;this.placeholder=undefined;this.disabled=false;this.required=false;this.multiple=false;this.autocomplete=false;this.serverMode=false;this.filterFn=undefined;this.chips=false;this.name=undefined;this.compareWith=(t,e)=>Ci(t,e);this.showNoResultFoundLabel=false;this.autocompleteValue=undefined;this.overlayDirection="bottom"}async open(){this.stateService.send("OPEN")}async close(){this.stateService.send("CLOSE")}onValueChangeHandler(t){this.updateSelectedValue(t)}updateSelectedValue(t,e=true,r=true){var i;if(!t&&e){this.reset()}if(this.multiple){if(!Array.isArray(t)){t=[t]}this.lastModifiedOptionElement=t.length>0?(i=Array.from(this.options).find((e=>this.compareWith(e.value,t[t.length-1]))))!==null&&i!==void 0?i:null:null;if(this.serverMode){const e=a(this.values.map((t=>t.value)),t,this.compareWith);e.added.forEach((t=>{const e=Array.from(this.options).find((e=>this.compareWith(e.value,t)));if(e){this.values.push({value:e.value,displayText:e.innerText,chipColor:e.chipColor,chipBackgroundColor:e.chipBackgroundColor});e.selected=true}}));e.kept.forEach((t=>{const e=Array.from(this.options).find((e=>this.compareWith(e.value,t)));if(e){e.selected=true}}));e.removed.forEach((t=>{this.values=this.values.filter((e=>!this.compareWith(e.value,t)));const e=Array.from(this.options).find((e=>this.compareWith(e.value,t)));if(e){e.selected=false}}))}else{this.values=[];this.options.forEach((e=>{const r=t?t.findIndex((t=>this.compareWith(e.value,t)))!==-1:false;if(r){this.values.push({value:e.value,displayText:e.innerText,chipColor:e.chipColor,chipBackgroundColor:e.chipBackgroundColor})}e.selected=r}))}this.displayText=this.values.length!==0?this.values.map((t=>t.displayText)).join(", "):undefined}else{let e=false;this.options.forEach((i=>{const n=this.compareWith(i.value,t);if(n){e=true;this.displayText=i.innerText;this.lastModifiedOptionElement=i;if(this.autocomplete){this.setAutocompleteValue(i.innerText,false,false,r)}}i.selected=n}));if(this.serverMode&&!e){this.setAutocompleteValue("",false,false,r);this.displayText=""}}}reset(){this.values=[];this.displayText=undefined;if(this.autocomplete){this.setAutocompleteValue("",true)}this.options.forEach((t=>{t.selected=false}))}componentDidLoad(){this.optionsEl=this.el.shadowRoot.querySelector(".wcs-select-options");this.controlEl=this.el.shadowRoot.querySelector(".wcs-select-control");const t=no(ho,this.initMachineOptions());this.stateService=Ks(t);if(this.multiple){this.values=[]}this.stateService.start();if(this.optionsEl.querySelector("slot")===null){this.replaceOptions_firefoxBefore63();this.listenDomUpdate_firefoxBefore63()}if(this.value!==undefined){this.updateSelectedValue(this.value)}this.popper=this.createPopperInstance();this.labelElement=c(this.el);if(this.labelElement){this.labelElement.id=this.selectId+"-lbl"}}createPopperInstance(){return w(this.controlEl,this.optionsEl,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,4]}}]})}emitChange(t){this.wcsChange.emit({value:t})}replaceOptions_firefoxBefore63(){Array.from(this.el.querySelectorAll("wcs-select-option")).forEach((t=>{if(t.parentNode===this.el){this.el.removeChild(t);this.optionsEl.appendChild(t)}}))}listenDomUpdate_firefoxBefore63(){const t=new MutationObserver((t=>{for(const e of t){if(e.type==="childList"){this.replaceOptions_firefoxBefore63()}}}));t.observe(this.el,{childList:true})}componentWillRender(){if(this.multiple){this.options.forEach((t=>t.multiple=true))}}componentWillLoad(){if(!ao(this.size)){console.warn(`Invalid size value for wcs-select : "${this.size}". Must be one of "${oo.join(", ")}"`);this.size="m"}if(this.autocomplete){this.inheritedAttributes=Object.assign(Object.assign({},u(this.el)),l(this.el,vo))}}async setAriaAttribute(t,e){if(this.autocomplete===false){f(this.el,t,e)}else{f(this.autocompleteInput,t,e)}}get options(){var t;const e=(t=this.el)===null||t===void 0?void 0:t.querySelectorAll("wcs-select-option");if(e&&e.length!==0){return e}return[]}get notDisabledOptions(){var t;const e=(t=this.el)===null||t===void 0?void 0:t.querySelectorAll("wcs-select-option:not([disabled]):not([aria-hidden])");if(e&&e.length!==0){return e}return[]}initMachineOptions(){return{actions:{open:()=>{var t;if(!this.disabled){this.expanded=true;this.focused=false;if(this.multiple===false&&this.autocomplete&&this.hasValue===false){if(this.autocompleteValue&&this.autocompleteValue!==""){this.setAutocompleteValue(this.autocompleteValue)}}this.clearHighlightOnLastHighlightedOption();if(this.notDisabledOptions.length>0){this.lastFocusedOptionElement=(t=this.lastModifiedOptionElement)!==null&&t!==void 0?t:this.notDisabledOptions[0];requestAnimationFrame((()=>{var t,e;this.autocomplete?(t=this.autocompleteInput)===null||t===void 0?void 0:t.focus():(e=this.lastFocusedOptionElement)===null||e===void 0?void 0:e.focus()}))}}},close:(t,e)=>{var r,i;if(e.type==="CLOSE"){this.clearHighlightOnLastHighlightedOption();if((r=e.value)===null||r===void 0?void 0:r.shouldBlur){this.focused=false}else{if(this.autocomplete&&((i=e.value)===null||i===void 0?void 0:i.fromKeyboard)){this.focusAutocompleteInput()}else{this.el.focus()}this.focused=true}if(this.autocomplete&&this.displayText&&this.multiple===false){this.setAutocompleteValue(this.displayText)}}this.expanded=false},selectOption:(t,e)=>{if(e.type==="OPTION_SELECTED"){if(this.multiple){this.handleOptionSelectedOnMultiple(e.value.option)}else{this.handleOptionSelectedOnSingle(e.value.option);this.stateService.send("CLOSE",{value:{fromKeyboard:e.value.fromKeyboard}})}if(this.autocomplete){if(this.multiple){requestAnimationFrame((()=>{this.autocompleteInput.focus()}))}else{this.setAutocompleteValue(e.value.option.displayText)}}this.emitChange(this.value)}}},guards:{enabled:()=>!this.disabled}}}handleOptionSelectedOnMultiple(t){const e=this.values.findIndex((e=>this.compareWith(e.value,t.value)));if(e===-1){this.value=[...this.values.map((t=>t.value)),t.value]}else{this.value=this.values.filter((e=>!this.compareWith(e.value,t.value))).map((t=>t.value))}}handleOptionSelectedOnSingle(t){this.value=t.value}disconnectedCallback(){var t;(t=this.stateService)===null||t===void 0?void 0:t.stop()}get hasValue(){return this.displayText!==undefined}onMouseUp(t){const e=h(t.target)&&(t.offsetX>t.target.clientWidth||t.offsetY>t.target.clientHeight||t.offsetY<0);const r=t.composedPath().filter((t=>{const e=t;return e.nodeName==="svg"&&e.classList.contains("chip")})).length>0;if(!e&&!r){this.stateService.send("CLICK")}}onWindowClickEvent(t){const e=t.composedPath().filter((t=>t.nodeName==="WCS-SELECT"))[0];const r=e===this.el;if(this.expanded&&!r){this.stateService.send({type:"CLOSE",value:{shouldBlur:true,fromKeyboard:false}})}}onKeyDown(t){const e=this.stateService.getSnapshot().matches("closed")?"closed":"opened";let r;if(this.autocomplete){r=this.multiple?"autocomplete_multiple":"autocomplete_unique"}else{r=this.multiple?"multiple":"unique"}const i=uo(t,e,r);if(i.length!=0&&i.filter((t=>t.kind==="MoveFocus")).length===0){t.preventDefault()}for(const e of i){this.doActionFromKeyboardEventAssociatedAction(e,t)}}doActionFromKeyboardEventAssociatedAction(t,e){var r,i;switch(t.kind){case"CloseSelect":this.stateService.send({type:"CLOSE",value:{shouldBlur:t.shouldBlur,fromKeyboard:true}});break;case"OpenSelect":this.stateService.send("OPEN");break;case"SelectOption":switch(t.target){case"next":this.selectClosestOption("next");break;case"previous":this.selectClosestOption("previous");break;case"first":this.selectFirstOption();break;case"last":this.selectLastOption();break;case"lastHighlighted":{const t=Array.from(this.notDisabledOptions).indexOf(this.lastHighlightedOptionElement);if(t!==-1){this.lastModifiedOptionElement=this.lastHighlightedOptionElement;this.selectOption(t,true)}break}}break;case"ClearAutocompleteInput":this.setAutocompleteValue("",false,false);break;case"ClearHighlight":this.clearHighlightOnLastHighlightedOption();break;case"HighlightOption":switch(t.target){case"next":this.highlightClosestOption("next");break;case"previous":this.highlightClosestOption("previous");break;case"first":this.highlightFirstOption();break;case"last":this.highlightLastOption();break}break;case"FocusOption":switch(t.target){case"next":this.focusClosestOption("next");break;case"previous":this.focusClosestOption("previous");break;case"first":this.focusFirstOption();break;case"last":this.focusLastOption();break;case"lastFocused":if(this.lastFocusedOptionElement!=null){this.focusOption(Array.from(this.notDisabledOptions).indexOf(this.lastFocusedOptionElement))}break}break;case"MoveFocus":switch(t.target){case"previous":{let t=(r=this.el.previousElementSibling)!==null&&r!==void 0?r:this.el.parentElement;while(t){if(p(t))break;t=(i=t.previousElementSibling)!==null&&i!==void 0?i:t.parentElement}if(t){e.preventDefault();t.focus()}break}}break;default:throw new Error("Internal error")}}getClosestActiveOptionIndexForState(t,e){let r;switch(e){case"focused":r=this.lastFocusedOptionElement;break;case"modified":r=this.lastModifiedOptionElement;break;case"highlighted":r=this.lastHighlightedOptionElement;break;default:r=null}let i=Array.from(this.notDisabledOptions).indexOf(r);const n=0;const s=this.notDisabledOptions.length-1;if(t==="next"&&i<s){i++}else if(t==="previous"&&i>n){i--}else{if(!this.autocomplete)return"nothing";if(t==="next"&&i>=s){i=0}if(t==="previous"&&i===n){i=s}}return i}selectOption(t,e=false){const r=this.notDisabledOptions[t];if(!r)return;this.sendOptionSelectedToStateMachine({source:r,value:r.value,displayText:r.innerText},e)}selectClosestOption(t){const e=this.getClosestActiveOptionIndexForState(t,"modified");if(e==="nothing")return;this.selectOption(e,true)}selectFirstOption(){if(this.notDisabledOptions.length<1){return}this.selectOption(0,true)}selectLastOption(){if(this.notDisabledOptions.length<1){return}this.selectOption(this.notDisabledOptions.length-1,true)}focusOption(t){var e;this.lastFocusedOptionElement=this.notDisabledOptions[t];(e=this.lastFocusedOptionElement)===null||e===void 0?void 0:e.focus();this.el.setAttribute("aria-activedescendant",this.lastFocusedOptionElement.id)}focusClosestOption(t){const e=this.getClosestActiveOptionIndexForState(t,"focused");if(e==="nothing")return;this.focusOption(e)}focusFirstOption(){this.focusOption(0)}focusLastOption(){this.focusOption(this.notDisabledOptions.length-1)}selectedOptionChanged(t){this.sendOptionSelectedToStateMachine(t.detail)}sendOptionSelectedToStateMachine(t,e=false){this.stateService.send({type:"OPTION_SELECTED",value:{option:t,fromKeyboard:e}})}onSlotchange(){if(!this.serverMode||this.autocomplete&&this.displayText===this.autocompleteValue){this.updateSelectedValue(this.value,false,false)}else{this.syncOptionsElementsStateWithCurrentSelectedValue()}if(this.autocomplete&&this.serverMode){this.showNoResultFoundLabel=this.options.length<1}if(this.multiple){this.options.forEach((t=>t.multiple=true))}}syncOptionsElementsStateWithCurrentSelectedValue(){this.options.forEach((t=>{const e=this.compareWith(t.value,this.value);t.selected=e}))}removeChip(t){this.options.forEach((e=>{if(e.value===t.value){this.sendOptionSelectedToStateMachine(Object.assign(Object.assign({},t),{source:e}))}}))}highlightOption(t){this.clearHighlightOnLastHighlightedOption();this.lastHighlightedOptionElement=this.notDisabledOptions[t];if(this.lastHighlightedOptionElement){this.lastHighlightedOptionElement.highlighted=true;this.autocompleteInput.setAttribute("aria-activedescendant",this.lastHighlightedOptionElement.id);requestAnimationFrame((()=>{this.lastHighlightedOptionElement.scrollIntoView({block:"nearest",inline:"nearest"})}))}}highlightFirstOption(){this.highlightOption(0)}highlightLastOption(){this.highlightOption(this.notDisabledOptions.length-1)}highlightClosestOption(t){const e=this.getClosestActiveOptionIndexForState(t,"highlighted");if(e==="nothing")return;this.highlightOption(e)}clearHighlightOnLastHighlightedOption(){if(this.lastHighlightedOptionElement){this.lastHighlightedOptionElement.highlighted=false;this.lastHighlightedOptionElement=null}}onAutocompleteInputEvent(t){var e;const r=(e=this.autocompleteInput.value)!==null&&e!==void 0?e:"";this.setAutocompleteValue(r,false,true);t.stopPropagation()}setAutocompleteValue(t,e=false,r=false,i=true){var n,s;this.clearHighlightOnLastHighlightedOption();const o=this.lastModifiedOptionElement==null||((n=this.lastModifiedOptionElement)===null||n===void 0?void 0:n.textContent)!==this.autocompleteValue;if(!this.expanded&&o&&!e&&r){this.open()}if(!this.serverMode){if(t.length){const[e,r]=[[],[]];const i=(s=this.filterFn)!==null&&s!==void 0?s:so;this.options.forEach((n=>(i(n,t)?e:r).push(n)));this.showNoResultFoundLabel=e.length===0;e.forEach((t=>{t.hidden=false;t.removeAttribute("aria-hidden")}));r.forEach((t=>{t.hidden=true;t.setAttribute("aria-hidden","true")}))}else{this.showNoResultFoundLabel=false;this.options.forEach((t=>{t.hidden=false;t.removeAttribute("aria-hidden")}))}}const a=t!==null&&t!==void 0?t:"";const c=this.autocompleteValue!==a;if(c){this.autocompleteValue=a}if(i&&c){this.wcsFilterChange.emit({value:t})}}onFocus(t){if(this.autocomplete){this.focusAutocompleteInput()}this.wcsFocus.emit(t)}focusAutocompleteInput(){var t;(t=this.autocompleteInput)===null||t===void 0?void 0:t.focus()}onBlur(t){const e=t.relatedTarget;if(this.el.contains(e)){return}this.wcsBlur.emit(t)}componentDidRender(){var t;(t=this.popper)===null||t===void 0?void 0:t.update()}focusedAttributes(){return!this.disabled?{tabIndex:0}:{}}render(){var t;const e=`${this.labelElement?this.labelElement.innerText:""} ${this.hasValue?this.displayText:""}`.trimEnd();const r="no-result-container";return i(n,Object.assign({key:"5da08e1418d8e8a2f65295a86a4868357ac676cb",class:this.expanded?"expanded ":"",overlayDirection:this.overlayDirection},this.focusedAttributes(),{role:!this.autocomplete?"combobox":null,"aria-haspopup":!this.autocomplete?"listbox":null,"aria-owns":!this.autocomplete?this.optionsId:null,"aria-controls":!this.autocomplete?this.optionsId:null,"aria-disabled":!this.autocomplete?this.disabled?"true":null:null,"aria-required":!this.autocomplete?this.required?"true":"false":null,"aria-expanded":!this.autocomplete?this.expanded?"true":"false":null,"aria-multiselectable":!this.autocomplete?this.multiple?"true":"false":null,"aria-label":!this.autocomplete?e:null}),i("div",{key:"64bb5c04992a0ecf451a6ea5114bcb631f936555",class:"wcs-select-control"},i("div",{key:"9279627148ef9bf1e8113df1dd97ab9d721f2f06",class:"wcs-select-value-container"},this.hasValue?this.chips?this.values.map((t=>i(co,{disabled:this.disabled,option:t,onRemove:this.removeChip.bind(this)}))):(!this.autocomplete||this.autocomplete&&this.multiple)&&i("label",{class:"wcs-select-value"},this.displayText):!this.autocomplete&&i("label",{class:"wcs-select-placeholder"},this.placeholder),this.autocomplete&&i("input",Object.assign({key:"97732eba53ac636b9f9e231ad6c86903599dd21b",class:"autocomplete-field",value:this.autocompleteValue,role:"combobox","aria-haspopup":"listbox","aria-label":e,"aria-describedby":r,"aria-disabled":this.disabled?"true":null,"aria-expanded":this.expanded?"true":"false","aria-controls":this.optionsId,"aria-owns":this.optionsId,"aria-multiselectable":this.multiple?"true":"false","aria-autocomplete":"list",autocomplete:"off",disabled:this.disabled,required:this.required,placeholder:((t=this.values)===null||t===void 0?void 0:t.length)?null:this.placeholder,onInput:t=>this.onAutocompleteInputEvent(t),ref:t=>this.autocompleteInput=t},this.inheritedAttributes))),i(s,{key:"4546d670d107ad9bb496844ef6b4d2b1e7d333c4",up:this.expanded})),i("div",{key:"75eda1298dab81575144d561120290d804d84cce",class:"wcs-select-options",id:this.optionsId,role:"listbox"},i("slot",{key:"4de8ebd148df28d68c4163026562669ebfbc37b3",name:"options",onSlotchange:this.onSlotchange.bind(this)}),this.autocomplete&&this.showNoResultFoundLabel&&i("div",{key:"6ebeb7af554a9f3799658e7e3d58f0c1ac25f9f2",role:"alert",id:r,class:"noresult-container"},i("slot",{key:"2c34abe1a89dc797f80944809457710e66d0336d",name:"filter-no-result"},i("span",{key:"6e51c2870b926c593dbd53d87a99ef1beb989343"},"Aucun résultat")))))}get el(){return this}static get watchers(){return{value:["onValueChangeHandler"]}}static get style(){return fo}},[1,"wcs-select",{size:[513],value:[1032],placeholder:[1537],disabled:[1540],required:[516],multiple:[516],autocomplete:[516],serverMode:[516,"server-mode"],filterFn:[16],chips:[516],name:[1],compareWith:[16],expanded:[32],displayText:[32],focused:[32],showNoResultFoundLabel:[32],autocompleteValue:[32],overlayDirection:[32],open:[64],close:[64],setAriaAttribute:[64]},[[1,"mouseup","onMouseUp"],[8,"click","onWindowClickEvent"],[0,"keydown","onKeyDown"],[0,"wcsSelectOptionClick","selectedOptionChanged"],[0,"focus","onFocus"],[2,"blur","onBlur"]],{value:["onValueChangeHandler"]}]);let wo=0;function bo(){if(typeof customElements==="undefined"){return}const t=["wcs-select"];t.forEach((t=>{switch(t){case"wcs-select":if(!customElements.get(t)){customElements.define(t,po)}break}}))}export{sr as M,j as S,Ur as U,L as a,N as b,I as c,yt as d,vt as e,wt as f,at as g,me as h,P as i,gr as j,_e as k,or as l,Or as m,Br as n,ge as o,ae as p,ve as q,O as r,pr as s,Rt as t,vr as u,kr as v,Ci as w,po as x,bo as y};
16
- //# sourceMappingURL=p-763371a0.js.map
15
+ ***************************************************************************** */var zi=function(){zi=Object.assign||function t(e){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))e[s]=r[s]}return e};return zi.apply(this,arguments)};function qi(t,e){var r={};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0)r[i]=t[i];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++){if(e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n]))r[i[n]]=t[i[n]]}return r}function Fi(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ti(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,s=[],o;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)s.push(n.value)}catch(t){o={error:t}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(o)throw o.error}}return s}function Ri(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,s;i<n;i++){if(s||!(i in e)){if(!s)s=Array.prototype.slice.call(e,0,i);s[i]=e[i]}}return t.concat(s||Array.prototype.slice.call(e))}var Ni;(function(t){t["Start"]="xstate.start";t["Stop"]="xstate.stop";t["Raise"]="xstate.raise";t["Send"]="xstate.send";t["Cancel"]="xstate.cancel";t["NullEvent"]="";t["Assign"]="xstate.assign";t["After"]="xstate.after";t["DoneState"]="done.state";t["DoneInvoke"]="done.invoke";t["Log"]="xstate.log";t["Init"]="xstate.init";t["Invoke"]="xstate.invoke";t["ErrorExecution"]="error.execution";t["ErrorCommunication"]="error.communication";t["ErrorPlatform"]="error.platform";t["ErrorCustom"]="xstate.error";t["Update"]="xstate.update";t["Pure"]="xstate.pure";t["Choose"]="xstate.choose"})(Ni||(Ni={}));var Pi;(function(t){t["Parent"]="#_parent";t["Internal"]="#_internal"})(Pi||(Pi={}));var Mi=Ni.Start;var Li=Ni.Stop;var Ii=Ni.Raise;var Wi=Ni.Send;var Bi=Ni.Cancel;var Di=Ni.NullEvent;var Ui=Ni.Assign;var Hi=Ni.Log;var Vi=Ni.Init;var $i=Ni.Invoke;var Ki=Ni.ErrorPlatform;var Ji=Ni.ErrorCustom;var Gi=Ni.Update;var Qi=Ni.Choose;var Xi=Ni.Pure;var Yi=".";var Zi={};var tn="xstate.guard";var en="";var rn="production"==="production";var nn;function sn(t,e,r){if(r===void 0){r=Yi}var i=un(t,r);var n=un(e,r);if(zn(n)){if(zn(i)){return n===i}return false}if(zn(i)){return i in n}return Object.keys(i).every((function(t){if(!(t in n)){return false}return sn(i[t],n[t])}))}function on(t){try{return zn(t)||typeof t==="number"?"".concat(t):t.type}catch(t){throw new Error("Events must be strings or objects with a string event.type property.")}}function an(t,e){try{if(En(t)){return t}return t.toString().split(e)}catch(e){throw new Error("'".concat(t,"' is not a valid state path."))}}function cn(t){return typeof t==="object"&&"value"in t&&"context"in t&&"event"in t&&"_event"in t}function un(t,e){if(cn(t)){return t.value}if(En(t)){return ln(t)}if(typeof t!=="string"){return t}var r=an(t,e);return ln(r)}function ln(t){if(t.length===1){return t[0]}var e={};var r=e;for(var i=0;i<t.length-1;i++){if(i===t.length-2){r[t[i]]=t[i+1]}else{r[t[i]]={};r=r[t[i]]}}return e}function fn(t,e){var r={};var i=Object.keys(t);for(var n=0;n<i.length;n++){var s=i[n];r[s]=e(t[s],s,t,n)}return r}function hn(t,e,r){var i,n;var s={};try{for(var o=Fi(Object.keys(t)),a=o.next();!a.done;a=o.next()){var c=a.value;var u=t[c];if(!r(u)){continue}s[c]=e(u,c,t)}}catch(t){i={error:t}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(i)throw i.error}}return s}var vn=function(t){return function(e){var r,i;var n=e;try{for(var s=Fi(t),o=s.next();!o.done;o=s.next()){var a=o.value;n=n[a]}}catch(t){r={error:t}}finally{try{if(o&&!o.done&&(i=s.return))i.call(s)}finally{if(r)throw r.error}}return n}};function dn(t,e){return function(r){var i,n;var s=r;try{for(var o=Fi(t),a=o.next();!a.done;a=o.next()){var c=a.value;s=s[e][c]}}catch(t){i={error:t}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(i)throw i.error}}return s}}function pn(t){if(!t){return[[]]}if(zn(t)){return[[t]]}var e=bn(Object.keys(t).map((function(e){var r=t[e];if(typeof r!=="string"&&(!r||!Object.keys(r).length)){return[[e]]}return pn(t[e]).map((function(t){return[e].concat(t)}))})));return e}function bn(t){var e;return(e=[]).concat.apply(e,Ri([],Ti(t),false))}function wn(t){if(En(t)){return t}return[t]}function yn(t){if(t===undefined){return[]}return wn(t)}function mn(t,e,r){var i,n;if(Cn(t)){return t(e,r.data)}var s={};try{for(var o=Fi(Object.keys(t)),a=o.next();!a.done;a=o.next()){var c=a.value;var u=t[c];if(Cn(u)){s[c]=u(e,r.data)}else{s[c]=u}}}catch(t){i={error:t}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(i)throw i.error}}return s}function gn(t){return/^(done|error)\./.test(t)}function On(t){if(t instanceof Promise){return true}if(t!==null&&(Cn(t)||typeof t==="object")&&Cn(t.then)){return true}return false}function kn(t){return t!==null&&typeof t==="object"&&"transition"in t&&typeof t.transition==="function"}function jn(t,e){var r,i;var n=Ti([[],[]],2),s=n[0],o=n[1];try{for(var a=Fi(t),c=a.next();!c.done;c=a.next()){var u=c.value;if(e(u)){s.push(u)}else{o.push(u)}}}catch(t){r={error:t}}finally{try{if(c&&!c.done&&(i=a.return))i.call(a)}finally{if(r)throw r.error}}return[s,o]}function xn(t,e){return fn(t.states,(function(t,r){if(!t){return undefined}var i=(zn(e)?undefined:e[r])||(t?t.current:undefined);if(!i){return undefined}return{current:i,states:xn(t,i)}}))}function Sn(t,e){return{current:e,states:xn(t,e)}}function _n(t,e,r,i){var n=t?r.reduce((function(t,r){var n,s;var o=r.assignment;var a={state:i,action:r,_event:e};var c={};if(Cn(o)){c=o(t,e.data,a)}else{try{for(var u=Fi(Object.keys(o)),l=u.next();!l.done;l=u.next()){var f=l.value;var h=o[f];c[f]=Cn(h)?h(t,e.data,a):h}}catch(t){n={error:t}}finally{try{if(l&&!l.done&&(s=u.return))s.call(u)}finally{if(n)throw n.error}}}return Object.assign({},t,c)}),t):t;return n}var An=function(){};function En(t){return Array.isArray(t)}function Cn(t){return typeof t==="function"}function zn(t){return typeof t==="string"}function qn(t,e){if(!t){return undefined}if(zn(t)){return{type:tn,name:t,predicate:e?e[t]:undefined}}if(Cn(t)){return{type:tn,name:t.name,predicate:t}}return t}function Fn(t){try{return"subscribe"in t&&Cn(t.subscribe)}catch(t){return false}}var Tn=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();nn={},nn[Tn]=function(){return this},nn[Symbol.observable]=function(){return this},nn;function Rn(t){return!!t&&"__xstatenode"in t}function Nn(t){return!!t&&typeof t.send==="function"}function Pn(t,e){if(zn(t)||typeof t==="number"){return zi({type:t},e)}return t}function Mn(t,e){if(!zn(t)&&"$$type"in t&&t.$$type==="scxml"){return t}var r=Pn(t);return zi({name:r.type,data:r,$$type:"scxml",type:"external"},e)}function Ln(t,e){var r=wn(e).map((function(e){if(typeof e==="undefined"||typeof e==="string"||Rn(e)){return{target:e,event:t}}return zi(zi({},e),{event:t})}));return r}function In(t){if(t===undefined||t===en){return undefined}return yn(t)}function Wn(t,e,r,i,n){var s=t.options.guards;var o={state:n,cond:e,_event:i};if(e.type===tn){return((s===null||s===void 0?void 0:s[e.name])||e.predicate)(r,i.data,o)}var a=s===null||s===void 0?void 0:s[e.type];if(!a){throw new Error("Guard '".concat(e.type,"' is not implemented on machine '").concat(t.id,"'."))}return a(r,i.data,o)}function Bn(t){if(typeof t==="string"){return{type:t}}return t}function Dn(t,e,r){var i=function(){};var n=typeof t==="object";var s=n?t:null;return{next:((n?t.next:t)||i).bind(s),error:((n?t.error:e)||i).bind(s),complete:((n?t.complete:r)||i).bind(s)}}function Un(t,e){return"".concat(t,":invocation[").concat(e,"]")}function Hn(t){return(t.type===Ii||t.type===Wi&&t.to===Pi.Internal)&&typeof t.delay!=="number"}var Vn=Mn({type:Vi});function $n(t,e){return e?e[t]||undefined:undefined}function Kn(t,e){var r;if(zn(t)||typeof t==="number"){var i=$n(t,e);if(Cn(i)){r={type:t,exec:i}}else if(i){r=i}else{r={type:t,exec:undefined}}}else if(Cn(t)){r={type:t.name||t.toString(),exec:t}}else{var i=$n(t.type,e);if(Cn(i)){r=zi(zi({},t),{exec:i})}else if(i){var n=i.type||t.type;r=zi(zi(zi({},i),t),{type:n})}else{r=t}}return r}var Jn=function(t,e){if(!t){return[]}var r=En(t)?t:[t];return r.map((function(t){return Kn(t,e)}))};function Gn(t){var e=Kn(t);return zi(zi({id:zn(t)?t:e.id},e),{type:e.type})}function Qn(t,e){return{type:Ii,event:typeof t==="function"?t:Pn(t),delay:e?e.delay:undefined,id:e===null||e===void 0?void 0:e.id}}function Xn(t,e,r,i){var n={_event:r};var s=Mn(Cn(t.event)?t.event(e,r.data,n):t.event);var o;if(zn(t.delay)){var a=i&&i[t.delay];o=Cn(a)?a(e,r.data,n):a}else{o=Cn(t.delay)?t.delay(e,r.data,n):t.delay}return zi(zi({},t),{type:Ii,_event:s,delay:o})}function Yn(t,e){return{to:e?e.to:undefined,type:Wi,event:Cn(t)?t:Pn(t),delay:e?e.delay:undefined,id:e&&e.id!==undefined?e.id:Cn(t)?t.name:on(t)}}function Zn(t,e,r,i){var n={_event:r};var s=Mn(Cn(t.event)?t.event(e,r.data,n):t.event);var o;if(zn(t.delay)){var a=i&&i[t.delay];o=Cn(a)?a(e,r.data,n):a}else{o=Cn(t.delay)?t.delay(e,r.data,n):t.delay}var c=Cn(t.to)?t.to(e,r.data,n):t.to;return zi(zi({},t),{to:c,_event:s,event:s.data,delay:o})}var ts=function(t,e,r){return zi(zi({},t),{value:zn(t.expr)?t.expr:t.expr(e,r.data,{_event:r})})};var es=function(t){return{type:Bi,sendId:t}};function rs(t){var e=Gn(t);return{type:Ni.Start,activity:e,exec:undefined}}function is(t){var e=Cn(t)?t:Gn(t);return{type:Ni.Stop,activity:e,exec:undefined}}function ns(t,e,r){var i=Cn(t.activity)?t.activity(e,r.data):t.activity;var n=typeof i==="string"?{id:i}:i;var s={type:Ni.Stop,activity:n};return s}function ss(t,e){var r=e?"#".concat(e):"";return"".concat(Ni.After,"(").concat(t,")").concat(r)}function os(t,e){var r="".concat(Ni.DoneState,".").concat(t);var i={type:r,data:e};i.toString=function(){return r};return i}function as(t,e){var r="".concat(Ni.DoneInvoke,".").concat(t);var i={type:r,data:e};i.toString=function(){return r};return i}function cs(t,e){var r="".concat(Ni.ErrorPlatform,".").concat(t);var i={type:r,data:e};i.toString=function(){return r};return i}var us=function(t){var e,r;var i=[];try{for(var n=Fi(t),s=n.next();!s.done;s=n.next()){var o=s.value;var a=0;while(a<o.actions.length){if(o.actions[a].type===Ui){i.push(o.actions[a]);o.actions.splice(a,1);continue}a++}}}catch(t){e={error:t}}finally{try{if(s&&!s.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}return i};function ls(t,e,r,i,n,s,o){if(o===void 0){o=false}var a=o?[]:us(n);var c=a.length?_n(r,i,a,e):r;var u=o?[r]:undefined;var l=[];function f(n,a){var f;switch(a.type){case Ii:{var h=Xn(a,c,i,t.options.delays);if(s&&typeof h.delay==="number"){s(h,c,i)}return h}case Wi:var v=Zn(a,c,i,t.options.delays);if(s&&v.to!==Pi.Internal){if(n==="entry"){l.push(v)}else{s(v,c,i)}}return v;case Hi:{var d=ts(a,c,i);s===null||s===void 0?void 0:s(d,c,i);return d}case Qi:{var p=a;var b=(f=p.conds.find((function(r){var n=qn(r.cond,t.options.guards);return!n||Wn(t,n,c,i,!s?e:undefined)})))===null||f===void 0?void 0:f.actions;if(!b){return[]}var w=Ti(ls(t,e,c,i,[{type:n,actions:Jn(yn(b),t.options.actions)}],s,o),2),y=w[0],m=w[1];c=m;u===null||u===void 0?void 0:u.push(c);return y}case Xi:{var b=a.get(c,i.data);if(!b){return[]}var g=Ti(ls(t,e,c,i,[{type:n,actions:Jn(yn(b),t.options.actions)}],s,o),2),O=g[0],k=g[1];c=k;u===null||u===void 0?void 0:u.push(c);return O}case Li:{var d=ns(a,c,i);s===null||s===void 0?void 0:s(d,r,i);return d}case Ui:{c=_n(c,i,[a],!s?e:undefined);u===null||u===void 0?void 0:u.push(c);break}default:var j=Kn(a,t.options.actions);var x=j.exec;if(s){s(j,c,i)}else if(x&&u){var S=u.length-1;var _=zi(zi({},j),{exec:function(t){var e=[];for(var r=1;r<arguments.length;r++){e[r-1]=arguments[r]}x.apply(void 0,Ri([u[S]],Ti(e),false))}});j=_}return j}}function h(t){var e,r;var n=[];try{for(var o=Fi(t.actions),a=o.next();!a.done;a=o.next()){var u=a.value;var h=f(t.type,u);if(h){n=n.concat(h)}}}catch(t){e={error:t}}finally{try{if(a&&!a.done&&(r=o.return))r.call(o)}finally{if(e)throw e.error}}l.forEach((function(t){s(t,c,i)}));l.length=0;return n}var v=bn(n.map(h));return[v,c]}var fs=function(t,e){var r=e(t);return r};function hs(t){var e;return e={id:t,send:function(){return void 0},subscribe:function(){return{unsubscribe:function(){return void 0}}},getSnapshot:function(){return undefined},toJSON:function(){return{id:t}}},e[Tn]=function(){return this},e}function vs(t,e,r,i){var n;var s=Bn(t.src);var o=(n=e===null||e===void 0?void 0:e.options.services)===null||n===void 0?void 0:n[s.type];var a=t.data?mn(t.data,r,i):undefined;var c=o?ds(o,t.id,a):hs(t.id);c.meta=t;return c}function ds(t,e,r){var i=hs(e);i.deferred=true;if(Rn(t)){var n=i.state=fs(undefined,(function(){return(r?t.withContext(r):t).initialState}));i.getSnapshot=function(){return n}}return i}function ps(t){try{return typeof t.send==="function"}catch(t){return false}}function bs(t){return ps(t)&&"id"in t}function ws(t){var e;return zi((e={subscribe:function(){return{unsubscribe:function(){return void 0}}},id:"anonymous",getSnapshot:function(){return undefined}},e[Tn]=function(){return this},e),t)}var ys=function(t){return t.type==="atomic"||t.type==="final"};function ms(t){return Object.keys(t.states).map((function(e){return t.states[e]}))}function gs(t){return ms(t).filter((function(t){return t.type!=="history"}))}function Os(t){var e=[t];if(ys(t)){return e}return e.concat(bn(gs(t).map(Os)))}function ks(t,e){var r,i,n,s,o,a,c,u;var l=new Set(t);var f=xs(l);var h=new Set(e);try{for(var v=Fi(h),d=v.next();!d.done;d=v.next()){var p=d.value;var b=p.parent;while(b&&!h.has(b)){h.add(b);b=b.parent}}}catch(t){r={error:t}}finally{try{if(d&&!d.done&&(i=v.return))i.call(v)}finally{if(r)throw r.error}}var w=xs(h);try{for(var y=Fi(h),m=y.next();!m.done;m=y.next()){var p=m.value;if(p.type==="compound"&&(!w.get(p)||!w.get(p).length)){if(f.get(p)){f.get(p).forEach((function(t){return h.add(t)}))}else{p.initialStateNodes.forEach((function(t){return h.add(t)}))}}else{if(p.type==="parallel"){try{for(var g=(o=void 0,Fi(gs(p))),O=g.next();!O.done;O=g.next()){var k=O.value;if(!h.has(k)){h.add(k);if(f.get(k)){f.get(k).forEach((function(t){return h.add(t)}))}else{k.initialStateNodes.forEach((function(t){return h.add(t)}))}}}}catch(t){o={error:t}}finally{try{if(O&&!O.done&&(a=g.return))a.call(g)}finally{if(o)throw o.error}}}}}}catch(t){n={error:t}}finally{try{if(m&&!m.done&&(s=y.return))s.call(y)}finally{if(n)throw n.error}}try{for(var j=Fi(h),x=j.next();!x.done;x=j.next()){var p=x.value;var b=p.parent;while(b&&!h.has(b)){h.add(b);b=b.parent}}}catch(t){c={error:t}}finally{try{if(x&&!x.done&&(u=j.return))u.call(j)}finally{if(c)throw c.error}}return h}function js(t,e){var r=e.get(t);if(!r){return{}}if(t.type==="compound"){var i=r[0];if(i){if(ys(i)){return i.key}}else{return{}}}var n={};r.forEach((function(t){n[t.key]=js(t,e)}));return n}function xs(t){var e,r;var i=new Map;try{for(var n=Fi(t),s=n.next();!s.done;s=n.next()){var o=s.value;if(!i.has(o)){i.set(o,[])}if(o.parent){if(!i.has(o.parent)){i.set(o.parent,[])}i.get(o.parent).push(o)}}}catch(t){e={error:t}}finally{try{if(s&&!s.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}return i}function Ss(t,e){var r=ks([t],e);return js(t,xs(r))}function _s(t,e){if(Array.isArray(t)){return t.some((function(t){return t===e}))}if(t instanceof Set){return t.has(e)}return false}function As(t){return Ri([],Ti(new Set(bn(Ri([],Ti(t.map((function(t){return t.ownEvents}))),false)))),false)}function Es(t,e){if(e.type==="compound"){return gs(e).some((function(e){return e.type==="final"&&_s(t,e)}))}if(e.type==="parallel"){return gs(e).every((function(e){return Es(t,e)}))}return false}function Cs(t){if(t===void 0){t=[]}return t.reduce((function(t,e){if(e.meta!==undefined){t[e.id]=e.meta}return t}),{})}function zs(t){return new Set(bn(t.map((function(t){return t.tags}))))}function qs(t,e){if(t===e){return true}if(t===undefined||e===undefined){return false}if(zn(t)||zn(e)){return t===e}var r=Object.keys(t);var i=Object.keys(e);return r.length===i.length&&r.every((function(r){return qs(t[r],e[r])}))}function Fs(t){if(typeof t!=="object"||t===null){return false}return"value"in t&&"_event"in t}function Ts(t,e){var r=t.exec;var i=zi(zi({},t),{exec:r!==undefined?function(){return r(e.context,e.event,{action:t,state:e,_event:e._event})}:undefined});return i}var Rs=function(){function t(t){var e=this;var r;this.actions=[];this.activities=Zi;this.meta={};this.events=[];this.value=t.value;this.context=t.context;this._event=t._event;this._sessionid=t._sessionid;this.event=this._event.data;this.historyValue=t.historyValue;this.history=t.history;this.actions=t.actions||[];this.activities=t.activities||Zi;this.meta=Cs(t.configuration);this.events=t.events||[];this.matches=this.matches.bind(this);this.toStrings=this.toStrings.bind(this);this.configuration=t.configuration;this.transitions=t.transitions;this.children=t.children;this.done=!!t.done;this.tags=(r=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&r!==void 0?r:new Set;this.machine=t.machine;Object.defineProperty(this,"nextEvents",{get:function(){return As(e.configuration)}})}t.from=function(e,r){if(e instanceof t){if(e.context!==r){return new t({value:e.value,context:r,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}})}return e}var i=Vn;return new t({value:e,context:r,_event:i,_sessionid:null,historyValue:undefined,history:undefined,actions:[],activities:undefined,meta:undefined,events:[],configuration:[],transitions:[],children:{}})};t.create=function(e){return new t(e)};t.inert=function(e,r){if(e instanceof t){if(!e.actions.length){return e}var i=Vn;return new t({value:e.value,context:r,_event:i,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,r)};t.prototype.toStrings=function(t,e){var r=this;if(t===void 0){t=this.value}if(e===void 0){e="."}if(zn(t)){return[t]}var i=Object.keys(t);return i.concat.apply(i,Ri([],Ti(i.map((function(i){return r.toStrings(t[i],e).map((function(t){return i+e+t}))}))),false))};t.prototype.toJSON=function(){var t=this;var e=t.tags;var r=qi(t,["configuration","transitions","tags","machine"]);return zi(zi({},r),{tags:Array.from(e)})};t.prototype.matches=function(t){return sn(t,this.value)};t.prototype.hasTag=function(t){return this.tags.has(t)};t.prototype.can=function(t){var e;var r=(e=this.machine)===null||e===void 0?void 0:e.getTransitionData(this,t);return!!(r===null||r===void 0?void 0:r.transitions.length)&&r.transitions.some((function(t){return t.target!==undefined||t.actions.length}))};return t}();var Ns={deferEvents:false};var Ps=function(){function t(t){this.processingEvent=false;this.queue=[];this.initialized=false;this.options=zi(zi({},Ns),t)}t.prototype.initialize=function(t){this.initialized=true;if(t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()};t.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(this.queue.length!==0){throw new Error("Event queue should be empty when it is not processing events")}this.process(t);this.flushEvents()};t.prototype.clear=function(){this.queue=[]};t.prototype.flushEvents=function(){var t=this.queue.shift();while(t){this.process(t);t=this.queue.shift()}};t.prototype.process=function(t){this.processingEvent=true;try{t()}catch(t){this.clear();throw t}finally{this.processingEvent=false}};return t}();var Ms=new Map;var Ls=0;var Is={bookId:function(){return"x:".concat(Ls++)},register:function(t,e){Ms.set(t,e);return t},get:function(t){return Ms.get(t)},free:function(t){Ms.delete(t)}};function Ws(){if(typeof globalThis!=="undefined"){return globalThis}if(typeof self!=="undefined"){return self}if(typeof window!=="undefined"){return window}if(typeof global!=="undefined"){return global}}function Bs(){var t=Ws();if(t&&"__xstate__"in t){return t.__xstate__}return undefined}function Ds(t){if(!Ws()){return}var e=Bs();if(e){e.register(t)}}function Us(t,e){if(e===void 0){e={}}var r=t.initialState;var i=new Set;var n=[];var s=false;var o=function(){if(s){return}s=true;while(n.length>0){var e=n.shift();r=t.transition(r,e,c);i.forEach((function(t){return t.next(r)}))}s=false};var a=ws({id:e.id,send:function(t){n.push(t);o()},getSnapshot:function(){return r},subscribe:function(t,e,n){var s=Dn(t,e,n);i.add(s);s.next(r);return{unsubscribe:function(){i.delete(s)}}}});var c={parent:e.parent,self:a,id:e.id||"anonymous",observers:i};r=t.start?t.start(c):r;return a}var Hs={sync:false,autoForward:false};var Vs;(function(t){t[t["NotStarted"]=0]="NotStarted";t[t["Running"]=1]="Running";t[t["Stopped"]=2]="Stopped"})(Vs||(Vs={}));var $s=function(){function t(e,r){if(r===void 0){r=t.defaultOptions}var i=this;this.machine=e;this.delayedEventsMap={};this.listeners=new Set;this.contextListeners=new Set;this.stopListeners=new Set;this.doneListeners=new Set;this.eventListeners=new Set;this.sendListeners=new Set;this.initialized=false;this.status=Vs.NotStarted;this.children=new Map;this.forwardTo=new Set;this._outgoingQueue=[];this.init=this.start;this.send=function(t,e){if(En(t)){i.batch(t);return i.state}var r=Mn(Pn(t,e));if(i.status===Vs.Stopped){return i.state}if(i.status!==Vs.Running&&!i.options.deferEvents){throw new Error('Event "'.concat(r.name,'" was sent to uninitialized service "').concat(i.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(r.data)))}i.scheduler.schedule((function(){i.forward(r);var t=i._nextState(r);i.update(t,r)}));return i._state};this.sendTo=function(t,e,r){var n=i.parent&&(e===Pi.Parent||i.parent.id===e);var s=n?i.parent:zn(e)?e===Pi.Internal?i:i.children.get(e)||Is.get(e):Nn(e)?e:undefined;if(!s){if(!n){throw new Error("Unable to send event to child '".concat(e,"' from service '").concat(i.id,"'."))}return}if("machine"in s){if(i.status!==Vs.Stopped||i.parent!==s||i.state.done){var o=zi(zi({},t),{name:t.name===Ji?"".concat(cs(i.id)):t.name,origin:i.sessionId});if(!r&&i.machine.config.predictableActionArguments){i._outgoingQueue.push([s,o])}else{s.send(o)}}}else{if(!r&&i.machine.config.predictableActionArguments){i._outgoingQueue.push([s,t.data])}else{s.send(t.data)}}};this._exec=function(t,e,r,n){if(n===void 0){n=i.machine.options.actions}var s=t.exec||$n(t.type,n);var o=Cn(s)?s:s?s.exec:t.exec;if(o){try{return o(e,r.data,!i.machine.config.predictableActionArguments?{action:t,state:i.state,_event:r}:{action:t,_event:r})}catch(t){if(i.parent){i.parent.send({type:"xstate.error",data:t})}throw t}}switch(t.type){case Ii:{var a=t;i.defer(a);break}case Wi:var c=t;if(typeof c.delay==="number"){i.defer(c);return}else{if(c.to){i.sendTo(c._event,c.to,r===Vn)}else{i.send(c._event)}}break;case Bi:i.cancel(t.sendId);break;case Mi:{if(i.status!==Vs.Running){return}var u=t.activity;if(!i.machine.config.predictableActionArguments&&!i.state.activities[u.id||u.type]){break}if(u.type===Ni.Invoke){var l=Bn(u.src);var f=i.machine.options.services?i.machine.options.services[l.type]:undefined;var h=u.id,v=u.data;var d="autoForward"in u?u.autoForward:!!u.forward;if(!f){return}var p=v?mn(v,e,r):undefined;if(typeof f==="string"){return}var b=Cn(f)?f(e,r.data,{data:p,src:l,meta:u.meta}):f;if(!b){return}var w=void 0;if(Rn(b)){b=p?b.withContext(p):b;w={autoForward:d}}i.spawn(b,h,w)}else{i.spawnActivity(u)}break}case Li:{i.stopChild(t.activity.id);break}case Hi:var y=t,m=y.label,g=y.value;if(m){i.logger(m,g)}else{i.logger(g)}break}};var n=zi(zi({},t.defaultOptions),r);var s=n.clock,o=n.logger,a=n.parent,c=n.id;var u=c!==undefined?c:e.id;this.id=u;this.logger=o;this.clock=s;this.parent=a;this.options=n;this.scheduler=new Ps({deferEvents:this.options.deferEvents});this.sessionId=Is.bookId()}Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this;if(this._initialState){return this._initialState}return fs(this,(function(){t._initialState=t.machine.initialState;return t._initialState}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});t.prototype.execute=function(t,e){var r,i;try{for(var n=Fi(t.actions),s=n.next();!s.done;s=n.next()){var o=s.value;this.exec(o,t,e)}}catch(t){r={error:t}}finally{try{if(s&&!s.done&&(i=n.return))i.call(n)}finally{if(r)throw r.error}}};t.prototype.update=function(t,e){var r,i,n,s,o,a,c,u;var l=this;t._sessionid=this.sessionId;this._state=t;if((!this.machine.config.predictableActionArguments||e===Vn)&&this.options.execute){this.execute(this.state)}else{var f=void 0;while(f=this._outgoingQueue.shift()){f[0].send(f[1])}}this.children.forEach((function(t){l.state.children[t.id]=t}));if(this.devTools){this.devTools.send(e.data,t)}if(t.event){try{for(var h=Fi(this.eventListeners),v=h.next();!v.done;v=h.next()){var d=v.value;d(t.event)}}catch(t){r={error:t}}finally{try{if(v&&!v.done&&(i=h.return))i.call(h)}finally{if(r)throw r.error}}}try{for(var p=Fi(this.listeners),b=p.next();!b.done;b=p.next()){var d=b.value;d(t,t.event)}}catch(t){n={error:t}}finally{try{if(b&&!b.done&&(s=p.return))s.call(p)}finally{if(n)throw n.error}}try{for(var w=Fi(this.contextListeners),y=w.next();!y.done;y=w.next()){var m=y.value;m(this.state.context,this.state.history?this.state.history.context:undefined)}}catch(t){o={error:t}}finally{try{if(y&&!y.done&&(a=w.return))a.call(w)}finally{if(o)throw o.error}}if(this.state.done){var g=t.configuration.find((function(t){return t.type==="final"&&t.parent===l.machine}));var O=g&&g.doneData?mn(g.doneData,t.context,e):undefined;this._doneEvent=as(this.id,O);try{for(var k=Fi(this.doneListeners),j=k.next();!j.done;j=k.next()){var d=j.value;d(this._doneEvent)}}catch(t){c={error:t}}finally{try{if(j&&!j.done&&(u=k.return))u.call(k)}finally{if(c)throw c.error}}this._stop();this._stopChildren();Is.free(this.sessionId)}};t.prototype.onTransition=function(t){this.listeners.add(t);if(this.status===Vs.Running){t(this.state,this.state.event)}return this};t.prototype.subscribe=function(t,e,r){var i=this;var n=Dn(t,e,r);this.listeners.add(n.next);if(this.status!==Vs.NotStarted){n.next(this.state)}var s=function(){i.doneListeners.delete(s);i.stopListeners.delete(s);n.complete()};if(this.status===Vs.Stopped){n.complete()}else{this.onDone(s);this.onStop(s)}return{unsubscribe:function(){i.listeners.delete(n.next);i.doneListeners.delete(s);i.stopListeners.delete(s)}}};t.prototype.onEvent=function(t){this.eventListeners.add(t);return this};t.prototype.onSend=function(t){this.sendListeners.add(t);return this};t.prototype.onChange=function(t){this.contextListeners.add(t);return this};t.prototype.onStop=function(t){this.stopListeners.add(t);return this};t.prototype.onDone=function(t){if(this.status===Vs.Stopped&&this._doneEvent){t(this._doneEvent)}else{this.doneListeners.add(t)}return this};t.prototype.off=function(t){this.listeners.delete(t);this.eventListeners.delete(t);this.sendListeners.delete(t);this.stopListeners.delete(t);this.doneListeners.delete(t);this.contextListeners.delete(t);return this};t.prototype.start=function(t){var e=this;if(this.status===Vs.Running){return this}this.machine._init();Is.register(this.sessionId,this);this.initialized=true;this.status=Vs.Running;var r=t===undefined?this.initialState:fs(this,(function(){return Fs(t)?e.machine.resolveState(t):e.machine.resolveState(Rs.from(t,e.machine.context))}));if(this.options.devTools){this.attachDev()}this.scheduler.initialize((function(){e.update(r,Vn)}));return this};t.prototype._stopChildren=function(){this.children.forEach((function(t){if(Cn(t.stop)){t.stop()}}));this.children.clear()};t.prototype._stop=function(){var t,e,r,i,n,s,o,a,c,u;try{for(var l=Fi(this.listeners),f=l.next();!f.done;f=l.next()){var h=f.value;this.listeners.delete(h)}}catch(e){t={error:e}}finally{try{if(f&&!f.done&&(e=l.return))e.call(l)}finally{if(t)throw t.error}}try{for(var v=Fi(this.stopListeners),d=v.next();!d.done;d=v.next()){var h=d.value;h();this.stopListeners.delete(h)}}catch(t){r={error:t}}finally{try{if(d&&!d.done&&(i=v.return))i.call(v)}finally{if(r)throw r.error}}try{for(var p=Fi(this.contextListeners),b=p.next();!b.done;b=p.next()){var h=b.value;this.contextListeners.delete(h)}}catch(t){n={error:t}}finally{try{if(b&&!b.done&&(s=p.return))s.call(p)}finally{if(n)throw n.error}}try{for(var w=Fi(this.doneListeners),y=w.next();!y.done;y=w.next()){var h=y.value;this.doneListeners.delete(h)}}catch(t){o={error:t}}finally{try{if(y&&!y.done&&(a=w.return))a.call(w)}finally{if(o)throw o.error}}if(!this.initialized){return this}this.initialized=false;this.status=Vs.Stopped;this._initialState=undefined;try{for(var m=Fi(Object.keys(this.delayedEventsMap)),g=m.next();!g.done;g=m.next()){var O=g.value;this.clock.clearTimeout(this.delayedEventsMap[O])}}catch(t){c={error:t}}finally{try{if(g&&!g.done&&(u=m.return))u.call(m)}finally{if(c)throw c.error}}this.scheduler.clear();this.scheduler=new Ps({deferEvents:this.options.deferEvents})};t.prototype.stop=function(){var t=this;var e=this.scheduler;this._stop();e.schedule((function(){var e;if((e=t._state)===null||e===void 0?void 0:e.done){return}var r=Mn({type:"xstate.stop"});var i=fs(t,(function(){var e=bn(Ri([],Ti(t.state.configuration),false).sort((function(t,e){return e.order-t.order})).map((function(e){return Jn(e.onExit,t.machine.options.actions)})));var i=Ti(ls(t.machine,t.state,t.state.context,r,[{type:"exit",actions:e}],t.machine.config.predictableActionArguments?t._exec:undefined,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),n=i[0],s=i[1];var o=new Rs({value:t.state.value,context:s,_event:r,_sessionid:t.sessionId,historyValue:undefined,history:t.state,actions:n.filter((function(t){return!Hn(t)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});o.changed=true;return o}));t.update(i,r);t._stopChildren();Is.free(t.sessionId)}));return this};t.prototype.batch=function(t){var e=this;if(this.status===Vs.NotStarted&&this.options.deferEvents);else if(this.status!==Vs.Running){throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}if(!t.length){return}var r=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var i,n;var s=e.state;var o=false;var a=[];var c=function(t){var i=Mn(t);e.forward(i);s=fs(e,(function(){return e.machine.transition(s,i,undefined,r||undefined)}));a.push.apply(a,Ri([],Ti(e.machine.config.predictableActionArguments?s.actions:s.actions.map((function(t){return Ts(t,s)}))),false));o=o||!!s.changed};try{for(var u=Fi(t),l=u.next();!l.done;l=u.next()){var f=l.value;c(f)}}catch(t){i={error:t}}finally{try{if(l&&!l.done&&(n=u.return))n.call(u)}finally{if(i)throw i.error}}s.changed=o;s.actions=a;e.update(s,Mn(t[t.length-1]))}))};t.prototype.sender=function(t){return this.send.bind(this,t)};t.prototype._nextState=function(t,e){var r=this;if(e===void 0){e=!!this.machine.config.predictableActionArguments&&this._exec}var i=Mn(t);if(i.name.indexOf(Ki)===0&&!this.state.nextEvents.some((function(t){return t.indexOf(Ki)===0}))){throw i.data.data}var n=fs(this,(function(){return r.machine.transition(r.state,i,undefined,e||undefined)}));return n};t.prototype.nextState=function(t){return this._nextState(t,false)};t.prototype.forward=function(t){var e,r;try{for(var i=Fi(this.forwardTo),n=i.next();!n.done;n=i.next()){var s=n.value;var o=this.children.get(s);if(!o){throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."))}o.send(t)}}catch(t){e={error:t}}finally{try{if(n&&!n.done&&(r=i.return))r.call(i)}finally{if(e)throw e.error}}};t.prototype.defer=function(t){var e=this;var r=this.clock.setTimeout((function(){if("to"in t&&t.to){e.sendTo(t._event,t.to,true)}else{e.send(t._event)}}),t.delay);if(t.id){this.delayedEventsMap[t.id]=r}};t.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]);delete this.delayedEventsMap[t]};t.prototype.exec=function(t,e,r){if(r===void 0){r=this.machine.options.actions}this._exec(t,e.context,e._event,r)};t.prototype.removeChild=function(t){var e;this.children.delete(t);this.forwardTo.delete(t);(e=this.state)===null||e===void 0?true:delete e.children[t]};t.prototype.stopChild=function(t){var e=this.children.get(t);if(!e){return}this.removeChild(t);if(Cn(e.stop)){e.stop()}};t.prototype.spawn=function(t,e,r){if(this.status!==Vs.Running){return ds(t,e)}if(On(t)){return this.spawnPromise(Promise.resolve(t),e)}else if(Cn(t)){return this.spawnCallback(t,e)}else if(bs(t)){return this.spawnActor(t,e)}else if(Fn(t)){return this.spawnObservable(t,e)}else if(Rn(t)){return this.spawnMachine(t,zi(zi({},r),{id:e}))}else if(kn(t)){return this.spawnBehavior(t,e)}else{throw new Error('Unable to spawn entity "'.concat(e,'" of type "').concat(typeof t,'".'))}};t.prototype.spawnMachine=function(e,r){var i=this;if(r===void 0){r={}}var n=new t(e,zi(zi({},this.options),{parent:this,id:r.id||e.id}));var s=zi(zi({},Hs),r);if(s.sync){n.onTransition((function(t){i.send(Gi,{state:t,id:n.id})}))}var o=n;this.children.set(n.id,o);if(s.autoForward){this.forwardTo.add(n.id)}n.onDone((function(t){i.removeChild(n.id);i.send(Mn(t,{origin:n.id}))})).start();return o};t.prototype.spawnBehavior=function(t,e){var r=Us(t,{id:e,parent:this});this.children.set(e,r);return r};t.prototype.spawnPromise=function(t,e){var r;var i=this;var n=false;var s;t.then((function(t){if(!n){s=t;i.removeChild(e);i.send(Mn(as(e,t),{origin:e}))}}),(function(t){if(!n){i.removeChild(e);var r=cs(e,t);try{i.send(Mn(r,{origin:e}))}catch(t){if(i.devTools){i.devTools.send(r,i.state)}if(i.machine.strict){i.stop()}}}}));var o=(r={id:e,send:function(){return void 0},subscribe:function(e,r,i){var n=Dn(e,r,i);var s=false;t.then((function(t){if(s){return}n.next(t);if(s){return}n.complete()}),(function(t){if(s){return}n.error(t)}));return{unsubscribe:function(){return s=true}}},stop:function(){n=true},toJSON:function(){return{id:e}},getSnapshot:function(){return s}},r[Tn]=function(){return this},r);this.children.set(e,o);return o};t.prototype.spawnCallback=function(t,e){var r;var i=this;var n=false;var s=new Set;var o=new Set;var a;var c=function(t){a=t;o.forEach((function(e){return e(t)}));if(n){return}i.send(Mn(t,{origin:e}))};var u;try{u=t(c,(function(t){s.add(t)}))}catch(t){this.send(cs(e,t))}if(On(u)){return this.spawnPromise(u,e)}var l=(r={id:e,send:function(t){return s.forEach((function(e){return e(t)}))},subscribe:function(t){var e=Dn(t);o.add(e.next);return{unsubscribe:function(){o.delete(e.next)}}},stop:function(){n=true;if(Cn(u)){u()}},toJSON:function(){return{id:e}},getSnapshot:function(){return a}},r[Tn]=function(){return this},r);this.children.set(e,l);return l};t.prototype.spawnObservable=function(t,e){var r;var i=this;var n;var s=t.subscribe((function(t){n=t;i.send(Mn(t,{origin:e}))}),(function(t){i.removeChild(e);i.send(Mn(cs(e,t),{origin:e}))}),(function(){i.removeChild(e);i.send(Mn(as(e),{origin:e}))}));var o=(r={id:e,send:function(){return void 0},subscribe:function(e,r,i){return t.subscribe(e,r,i)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return n},toJSON:function(){return{id:e}}},r[Tn]=function(){return this},r);this.children.set(e,o);return o};t.prototype.spawnActor=function(t,e){this.children.set(e,t);return t};t.prototype.spawnActivity=function(t){var e=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:undefined;if(!e){return}var r=e(this.state.context,t);this.spawnEffect(t.id,r)};t.prototype.spawnEffect=function(t,e){var r;this.children.set(t,(r={id:t,send:function(){return void 0},subscribe:function(){return{unsubscribe:function(){return void 0}}},stop:e||undefined,getSnapshot:function(){return undefined},toJSON:function(){return{id:t}}},r[Tn]=function(){return this},r))};t.prototype.attachDev=function(){var t=Ws();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var e=typeof this.options.devTools==="object"?this.options.devTools:undefined;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(zi(zi({name:this.id,autoPause:true,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},e),{features:zi({jump:false,skip:false},e?e.features:undefined)}),this.machine);this.devTools.init(this.state)}Ds(this)}};t.prototype.toJSON=function(){return{id:this.id}};t.prototype[Tn]=function(){return this};t.prototype.getSnapshot=function(){if(this.status===Vs.NotStarted){return this.initialState}return this._state};t.defaultOptions={execute:true,deferEvents:true,clock:{setTimeout:function(t,e){return setTimeout(t,e)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:false};t.interpret=Ks;return t}();function Ks(t,e){var r=new $s(t,e);return r}function Js(t){if(typeof t==="string"){var e={type:t};e.toString=function(){return t};return e}return t}function Gs(t){return zi(zi({type:$i},t),{toJSON:function(){var e=qi(t,["onDone","onError"]);return zi(zi({},e),{type:$i,src:Js(t.src)})}})}var Qs="";var Xs="#";var Ys="*";var Zs={};var to=function(t){return t[0]===Xs};var eo=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}};var ro=function(t,e,r){r.slice(0,-1).some((function(t){return!("cond"in t)&&!("in"in t)&&(zn(t.target)||Rn(t.target))}))};var io=function(){function t(e,r,i,n){if(i===void 0){i="context"in e?e.context:undefined}var s=this;var o;this.config=e;this._context=i;this.order=-1;this.__xstatenode=true;this.__cache={events:undefined,relativeValue:new Map,initialStateValue:undefined,initialState:undefined,on:undefined,transitions:undefined,candidates:{},delayedTransitions:undefined};this.idMap={};this.tags=[];this.options=Object.assign(eo(),r);this.parent=n===null||n===void 0?void 0:n.parent;this.key=this.config.key||(n===null||n===void 0?void 0:n.key)||this.config.id||"(machine)";this.machine=this.parent?this.parent.machine:this;this.path=this.parent?this.parent.path.concat(this.key):[];this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:Yi);this.id=this.config.id||Ri([this.machine.key],Ti(this.path),false).join(this.delimiter);this.version=this.parent?this.parent.version:this.config.version;this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic");this.schema=this.parent?this.machine.schema:(o=this.config.schema)!==null&&o!==void 0?o:{};this.description=this.config.description;this.initial=this.config.initial;this.states=this.config.states?fn(this.config.states,(function(e,r){var i;var n=new t(e,{},undefined,{parent:s,key:r});Object.assign(s.idMap,zi((i={},i[n.id]=n,i),n.idMap));return n})):Zs;var a=0;function c(t){var e,r;t.order=a++;try{for(var i=Fi(ms(t)),n=i.next();!n.done;n=i.next()){var s=n.value;c(s)}}catch(t){e={error:t}}finally{try{if(n&&!n.done&&(r=i.return))r.call(i)}finally{if(e)throw e.error}}}c(this);this.history=this.config.history===true?"shallow":this.config.history||false;this._transient=!!this.config.always||(!this.config.on?false:Array.isArray(this.config.on)?this.config.on.some((function(t){var e=t.event;return e===Qs})):Qs in this.config.on);this.strict=!!this.config.strict;this.onEntry=yn(this.config.entry||this.config.onEntry).map((function(t){return Kn(t)}));this.onExit=yn(this.config.exit||this.config.onExit).map((function(t){return Kn(t)}));this.meta=this.config.meta;this.doneData=this.type==="final"?this.config.data:undefined;this.invoke=yn(this.config.invoke).map((function(t,e){var r,i;if(Rn(t)){var n=Un(s.id,e);s.machine.options.services=zi((r={},r[n]=t,r),s.machine.options.services);return Gs({src:n,id:n})}else if(zn(t.src)){var n=t.id||Un(s.id,e);return Gs(zi(zi({},t),{id:n,src:t.src}))}else if(Rn(t.src)||Cn(t.src)){var n=t.id||Un(s.id,e);s.machine.options.services=zi((i={},i[n]=t.src,i),s.machine.options.services);return Gs(zi(zi({id:n},t),{src:n}))}else{var o=t.src;return Gs(zi(zi({id:Un(s.id,e)},t),{src:o}))}}));this.activities=yn(this.config.activities).concat(this.invoke).map((function(t){return Gn(t)}));this.transition=this.transition.bind(this);this.tags=yn(this.config.tags)}t.prototype._init=function(){if(this.__cache.transitions){return}Os(this).forEach((function(t){return t.on}))};t.prototype.withConfig=function(e,r){var i=this.options,n=i.actions,s=i.activities,o=i.guards,a=i.services,c=i.delays;return new t(this.config,{actions:zi(zi({},n),e.actions),activities:zi(zi({},s),e.activities),guards:zi(zi({},o),e.guards),services:zi(zi({},a),e.services),delays:zi(zi({},c),e.delays)},r!==null&&r!==void 0?r:this.context)};t.prototype.withContext=function(e){return new t(this.config,this.options,e)};Object.defineProperty(t.prototype,"context",{get:function(){return Cn(this._context)?this._context():this._context},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:fn(this.states,(function(t){return t.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:false,configurable:true});t.prototype.toJSON=function(){return this.definition};Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on){return this.__cache.on}var t=this.transitions;return this.__cache.on=t.reduce((function(t,e){t[e.eventType]=t[e.eventType]||[];t[e.eventType].push(e);return t}),{})},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:false,configurable:true});t.prototype.getCandidates=function(t){if(this.__cache.candidates[t]){return this.__cache.candidates[t]}var e=t===Qs;var r=this.transitions.filter((function(r){var i=r.eventType===t;return e?i:i||r.eventType===Ys}));this.__cache.candidates[t]=r;return r};t.prototype.getDelayedTransitions=function(){var t=this;var e=this.config.after;if(!e){return[]}var r=function(e,r){var i=Cn(e)?"".concat(t.id,":delay[").concat(r,"]"):e;var n=ss(i,t.id);t.onEntry.push(Yn(n,{delay:e}));t.onExit.push(es(n));return n};var i=En(e)?e.map((function(t,e){var i=r(t.delay,e);return zi(zi({},t),{event:i})})):bn(Object.keys(e).map((function(t,i){var n=e[t];var s=zn(n)?{target:n}:n;var o=!isNaN(+t)?+t:t;var a=r(o,i);return yn(s).map((function(t){return zi(zi({},t),{event:a,delay:o})}))})));return i.map((function(e){var r=e.delay;return zi(zi({},t.formatTransition(e)),{delay:r})}))};t.prototype.getStateNodes=function(t){var e;var r=this;if(!t){return[]}var i=t instanceof Rs?t.value:un(t,this.delimiter);if(zn(i)){var n=this.getStateNode(i).initial;return n!==undefined?this.getStateNodes((e={},e[i]=n,e)):[this,this.states[i]]}var s=Object.keys(i);var o=[this];o.push.apply(o,Ri([],Ti(bn(s.map((function(t){return r.getStateNode(t).getStateNodes(i[t])})))),false));return o};t.prototype.handles=function(t){var e=on(t);return this.events.includes(e)};t.prototype.resolveState=function(t){var e=t instanceof Rs?t:Rs.create(t);var r=Array.from(ks([],this.getStateNodes(e.value)));return new Rs(zi(zi({},e),{value:this.resolve(e.value),configuration:r,done:Es(r,this),tags:zs(r),machine:this.machine}))};t.prototype.transitionLeafNode=function(t,e,r){var i=this.getStateNode(t);var n=i.next(e,r);if(!n||!n.transitions.length){return this.next(e,r)}return n};t.prototype.transitionCompoundNode=function(t,e,r){var i=Object.keys(t);var n=this.getStateNode(i[0]);var s=n._transition(t[i[0]],e,r);if(!s||!s.transitions.length){return this.next(e,r)}return s};t.prototype.transitionParallelNode=function(t,e,r){var i,n;var s={};try{for(var o=Fi(Object.keys(t)),a=o.next();!a.done;a=o.next()){var c=a.value;var u=t[c];if(!u){continue}var l=this.getStateNode(c);var f=l._transition(u,e,r);if(f){s[c]=f}}}catch(t){i={error:t}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(i)throw i.error}}var h=Object.keys(s).map((function(t){return s[t]}));var v=bn(h.map((function(t){return t.transitions})));var d=h.some((function(t){return t.transitions.length>0}));if(!d){return this.next(e,r)}var p=bn(Object.keys(s).map((function(t){return s[t].configuration})));return{transitions:v,exitSet:bn(h.map((function(t){return t.exitSet}))),configuration:p,source:e,actions:bn(Object.keys(s).map((function(t){return s[t].actions})))}};t.prototype._transition=function(t,e,r){if(zn(t)){return this.transitionLeafNode(t,e,r)}if(Object.keys(t).length===1){return this.transitionCompoundNode(t,e,r)}return this.transitionParallelNode(t,e,r)};t.prototype.getTransitionData=function(t,e){return this._transition(t.value,t,Mn(e))};t.prototype.next=function(t,e){var r,i;var n=this;var s=e.name;var o=[];var a=[];var c;try{for(var u=Fi(this.getCandidates(s)),l=u.next();!l.done;l=u.next()){var f=l.value;var h=f.cond,v=f.in;var d=t.context;var p=v?zn(v)&&to(v)?t.matches(un(this.getStateNodeById(v).path,this.delimiter)):sn(un(v,this.delimiter),vn(this.path.slice(0,-2))(t.value)):true;var b=false;try{b=!h||Wn(this.machine,h,d,e,t)}catch(t){throw new Error("Unable to evaluate guard '".concat(h.name||h.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,"':\n").concat(t.message))}if(b&&p){if(f.target!==undefined){a=f.target}o.push.apply(o,Ri([],Ti(f.actions),false));c=f;break}}}catch(t){r={error:t}}finally{try{if(l&&!l.done&&(i=u.return))i.call(u)}finally{if(r)throw r.error}}if(!c){return undefined}if(!a.length){return{transitions:[c],exitSet:[],configuration:t.value?[this]:[],source:t,actions:o}}var w=bn(a.map((function(e){return n.getRelativeStateNodes(e,t.historyValue)})));var y=!!c.internal;return{transitions:[c],exitSet:y?[]:bn(a.map((function(t){return n.getPotentiallyReenteringNodes(t)}))),configuration:w,source:t,actions:o}};t.prototype.getPotentiallyReenteringNodes=function(t){if(this.order<t.order){return[this]}var e=[];var r=this;var i=t;while(r&&r!==i){e.push(r);r=r.parent}if(r!==i){return[]}e.push(i);return e};t.prototype.getActions=function(t,e,r,i,n,s,o){var a,c,u,l;var f=this;var h=s?ks([],this.getStateNodes(s.value)):[];var v=new Set;try{for(var d=Fi(Array.from(t).sort((function(t,e){return t.order-e.order}))),p=d.next();!p.done;p=d.next()){var b=p.value;if(!_s(h,b)||_s(r.exitSet,b)||b.parent&&v.has(b.parent)){v.add(b)}}}catch(t){a={error:t}}finally{try{if(p&&!p.done&&(c=d.return))c.call(d)}finally{if(a)throw a.error}}try{for(var w=Fi(h),y=w.next();!y.done;y=w.next()){var b=y.value;if(!_s(t,b)||_s(r.exitSet,b.parent)){r.exitSet.push(b)}}}catch(t){u={error:t}}finally{try{if(y&&!y.done&&(l=w.return))l.call(w)}finally{if(u)throw u.error}}r.exitSet.sort((function(t,e){return e.order-t.order}));var m=Array.from(v).sort((function(t,e){return t.order-e.order}));var g=new Set(r.exitSet);var O=bn(m.map((function(t){var e=[];if(t.type!=="final"){return e}var s=t.parent;if(!s.parent){return e}e.push(os(t.id,t.doneData),os(s.id,t.doneData?mn(t.doneData,i,n):undefined));var o=s.parent;if(o.type==="parallel"){if(gs(o).every((function(t){return Es(r.configuration,t)}))){e.push(os(o.id))}}return e})));var k=m.map((function(t){var e=t.onEntry;var r=t.activities.map((function(t){return rs(t)}));return{type:"entry",actions:Jn(o?Ri(Ri([],Ti(e),false),Ti(r),false):Ri(Ri([],Ti(r),false),Ti(e),false),f.machine.options.actions)}})).concat({type:"state_done",actions:O.map((function(t){return Qn(t)}))});var j=Array.from(g).map((function(t){return{type:"exit",actions:Jn(Ri(Ri([],Ti(t.onExit),false),Ti(t.activities.map((function(t){return is(t)}))),false),f.machine.options.actions)}}));var x=j.concat({type:"transition",actions:Jn(r.actions,this.machine.options.actions)}).concat(k);if(e){var S=Jn(bn(Ri([],Ti(t),false).sort((function(t,e){return e.order-t.order})).map((function(t){return t.onExit}))),this.machine.options.actions).filter((function(t){return!Hn(t)}));return x.concat({type:"stop",actions:S})}return x};t.prototype.transition=function(t,e,r,i){if(t===void 0){t=this.initialState}var n=Mn(e);var s;if(t instanceof Rs){s=r===undefined?t:this.resolveState(Rs.from(t,r))}else{var o=zn(t)?this.resolve(ln(this.getResolvedPath(t))):this.resolve(t);var a=r!==null&&r!==void 0?r:this.machine.context;s=this.resolveState(Rs.from(o,a))}if(!rn&&n.name===Ys){throw new Error("An event cannot have the wildcard type ('".concat(Ys,"')"))}if(this.strict){if(!this.events.includes(n.name)&&!gn(n.name)){throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(n.name,"'"))}}var c=this._transition(s.value,s,n)||{transitions:[],configuration:[],exitSet:[],source:s,actions:[]};var u=ks([],this.getStateNodes(s.value));var l=c.configuration.length?ks(u,c.configuration):u;c.configuration=Ri([],Ti(l),false);return this.resolveTransition(c,s,s.context,i,n)};t.prototype.resolveRaisedTransition=function(t,e,r,i){var n;var s=t.actions;t=this.transition(t,e,undefined,i);t._event=r;t.event=r.data;(n=t.actions).unshift.apply(n,Ri([],Ti(s),false));return t};t.prototype.resolveTransition=function(t,e,r,i,n){var s,o,a,c;var u=this;if(n===void 0){n=Vn}var l=t.configuration;var f=!e||t.transitions.length>0;var h=f?t.configuration:e?e.configuration:[];var v=Es(h,this);var d=f?Ss(this.machine,l):undefined;var p=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):undefined:undefined;var b=this.getActions(new Set(h),v,t,r,n,e,i);var w=e?zi({},e.activities):{};try{for(var y=Fi(b),m=y.next();!m.done;m=y.next()){var g=m.value;try{for(var O=(a=void 0,Fi(g.actions)),k=O.next();!k.done;k=O.next()){var j=k.value;if(j.type===Mi){w[j.activity.id||j.activity.type]=j}else if(j.type===Li){w[j.activity.id||j.activity.type]=false}}}catch(t){a={error:t}}finally{try{if(k&&!k.done&&(c=O.return))c.call(O)}finally{if(a)throw a.error}}}}catch(t){s={error:t}}finally{try{if(m&&!m.done&&(o=y.return))o.call(y)}finally{if(s)throw s.error}}var x=Ti(ls(this,e,r,n,b,i,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),S=x[0],_=x[1];var A=Ti(jn(S,Hn),2),E=A[0],C=A[1];var z=S.filter((function(t){var e;return t.type===Mi&&((e=t.activity)===null||e===void 0?void 0:e.type)===$i}));var q=z.reduce((function(t,e){t[e.activity.id]=vs(e.activity,u.machine,_,n);return t}),e?zi({},e.children):{});var F=new Rs({value:d||e.value,context:_,_event:n,_sessionid:e?e._sessionid:null,historyValue:d?p?Sn(p,d):undefined:e?e.historyValue:undefined,history:!d||t.source?e:undefined,actions:d?C:[],activities:d?w:e?e.activities:{},events:[],configuration:h,transitions:t.transitions,children:q,done:v,tags:zs(h),machine:this});var T=r!==_;F.changed=n.name===Gi||T;var R=F.history;if(R){delete R.history}var N=!v&&(this._transient||l.some((function(t){return t._transient})));if(!f&&(!N||n.name===Qs)){return F}var P=F;if(!v){if(N){P=this.resolveRaisedTransition(P,{type:Di},n,i)}while(E.length){var M=E.shift();P=this.resolveRaisedTransition(P,M._event,n,i)}}var L=P.changed||(R?!!P.actions.length||T||typeof R.value!==typeof P.value||!qs(P.value,R.value):undefined);P.changed=L;P.history=R;return P};t.prototype.getStateNode=function(t){if(to(t)){return this.machine.getStateNodeById(t)}if(!this.states){throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."))}var e=this.states[t];if(!e){throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"))}return e};t.prototype.getStateNodeById=function(t){var e=to(t)?t.slice(Xs.length):t;if(e===this.id){return this}var r=this.machine.idMap[e];if(!r){throw new Error("Child state node '#".concat(e,"' does not exist on machine '").concat(this.id,"'"))}return r};t.prototype.getStateNodeByPath=function(t){if(typeof t==="string"&&to(t)){try{return this.getStateNodeById(t.slice(1))}catch(t){}}var e=an(t,this.delimiter).slice();var r=this;while(e.length){var i=e.shift();if(!i.length){break}r=r.getStateNode(i)}return r};t.prototype.resolve=function(t){var e;var r=this;if(!t){return this.initialStateValue||Zs}switch(this.type){case"parallel":return fn(this.initialStateValue,(function(e,i){return e?r.getStateNode(i).resolve(t[i]||e):Zs}));case"compound":if(zn(t)){var i=this.getStateNode(t);if(i.type==="parallel"||i.type==="compound"){return e={},e[t]=i.initialStateValue,e}return t}if(!Object.keys(t).length){return this.initialStateValue||{}}return fn(t,(function(t,e){return t?r.getStateNode(e).resolve(t):Zs}));default:return t||Zs}};t.prototype.getResolvedPath=function(t){if(to(t)){var e=this.machine.idMap[t.slice(Xs.length)];if(!e){throw new Error("Unable to find state node '".concat(t,"'"))}return e.path}return an(t,this.delimiter)};Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue){return this.__cache.initialStateValue}var e;if(this.type==="parallel"){e=hn(this.states,(function(t){return t.initialStateValue||Zs}),(function(t){return!(t.type==="history")}))}else if(this.initial!==undefined){if(!this.states[this.initial]){throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"))}e=ys(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else{e={}}this.__cache.initialStateValue=e;return this.__cache.initialStateValue},enumerable:false,configurable:true});t.prototype.getInitialState=function(t,e){this._init();var r=this.getStateNodes(t);return this.resolveTransition({configuration:r,exitSet:[],transitions:[],source:undefined,actions:[]},undefined,e!==null&&e!==void 0?e:this.machine.context,undefined)};Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t){throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."))}return this.getInitialState(t)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"target",{get:function(){var t;if(this.type==="history"){var e=this.config;if(zn(e.target)){t=to(e.target)?ln(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}else{t=e.target}}return t},enumerable:false,configurable:true});t.prototype.getRelativeStateNodes=function(t,e,r){if(r===void 0){r=true}return r?t.type==="history"?t.resolveHistory(e):t.initialStateNodes:[t]};Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;if(ys(this)){return[this]}if(this.type==="compound"&&!this.initial){if(!rn){An(false,"Compound state node '".concat(this.id,"' has no initial state."))}return[this]}var e=pn(this.initialStateValue);return bn(e.map((function(e){return t.getFromRelativePath(e)})))},enumerable:false,configurable:true});t.prototype.getFromRelativePath=function(t){if(!t.length){return[this]}var e=Ti(t),r=e[0],i=e.slice(1);if(!this.states){throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"))}var n=this.getStateNode(r);if(n.type==="history"){return n.resolveHistory()}if(!this.states[r]){throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"))}return this.states[r].getFromRelativePath(i)};t.prototype.historyValue=function(t){if(!Object.keys(this.states).length){return undefined}return{current:t||this.initialStateValue,states:hn(this.states,(function(e,r){if(!t){return e.historyValue()}var i=zn(t)?undefined:t[r];return e.historyValue(i||e.initialStateValue)}),(function(t){return!t.history}))}};t.prototype.resolveHistory=function(t){var e=this;if(this.type!=="history"){return[this]}var r=this.parent;if(!t){var i=this.target;return i?bn(pn(i).map((function(t){return r.getFromRelativePath(t)}))):r.initialStateNodes}var n=dn(r.path,"states")(t).current;if(zn(n)){return[r.getStateNode(n)]}return bn(pn(n).map((function(t){return e.history==="deep"?r.getFromRelativePath(t):[r.states[t[0]]]})))};Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this;var e=bn(Object.keys(this.states).map((function(e){return t.states[e].stateIds})));return[this.id].concat(e)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"events",{get:function(){var t,e,r,i;if(this.__cache.events){return this.__cache.events}var n=this.states;var s=new Set(this.ownEvents);if(n){try{for(var o=Fi(Object.keys(n)),a=o.next();!a.done;a=o.next()){var c=a.value;var u=n[c];if(u.states){try{for(var l=(r=void 0,Fi(u.events)),f=l.next();!f.done;f=l.next()){var h=f.value;s.add("".concat(h))}}catch(t){r={error:t}}finally{try{if(f&&!f.done&&(i=l.return))i.call(l)}finally{if(r)throw r.error}}}}}catch(e){t={error:e}}finally{try{if(a&&!a.done&&(e=o.return))e.call(o)}finally{if(t)throw t.error}}}return this.__cache.events=Array.from(s)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter((function(t){return!(!t.target&&!t.actions.length&&t.internal)})).map((function(t){return t.eventType})));return Array.from(t)},enumerable:false,configurable:true});t.prototype.resolveTarget=function(t){var e=this;if(t===undefined){return undefined}return t.map((function(t){if(!zn(t)){return t}var r=t[0]===e.delimiter;if(r&&!e.parent){return e.getStateNodeByPath(t.slice(1))}var i=r?e.key+t:t;if(e.parent){try{var n=e.parent.getStateNodeByPath(i);return n}catch(t){throw new Error("Invalid transition definition for state node '".concat(e.id,"':\n").concat(t.message))}}else{return e.getStateNodeByPath(i)}}))};t.prototype.formatTransition=function(t){var e=this;var r=In(t.target);var i="internal"in t?t.internal:r?r.some((function(t){return zn(t)&&t[0]===e.delimiter})):true;var n=this.machine.options.guards;var s=this.resolveTarget(r);var o=zi(zi({},t),{actions:Jn(yn(t.actions)),cond:qn(t.cond,n),target:s,source:this,internal:i,eventType:t.event,toJSON:function(){return zi(zi({},o),{target:o.target?o.target.map((function(t){return"#".concat(t.id)})):undefined,source:"#".concat(e.id)})}});return o};t.prototype.formatTransitions=function(){var t,e;var r=this;var i;if(!this.config.on){i=[]}else if(Array.isArray(this.config.on)){i=this.config.on}else{var n=this.config.on,s=Ys,o=n[s],a=o===void 0?[]:o,c=qi(n,[typeof s==="symbol"?s:s+""]);i=bn(Object.keys(c).map((function(t){if(!rn&&t===Qs){An(false,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'))}var e=Ln(t,c[t]);if(!rn){ro(r,t,e)}return e})).concat(Ln(Ys,a)))}var u=this.config.always?Ln("",this.config.always):[];var l=this.config.onDone?Ln(String(os(this.id)),this.config.onDone):[];if(!rn){An(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'))}var f=bn(this.invoke.map((function(t){var e=[];if(t.onDone){e.push.apply(e,Ri([],Ti(Ln(String(as(t.id)),t.onDone)),false))}if(t.onError){e.push.apply(e,Ri([],Ti(Ln(String(cs(t.id)),t.onError)),false))}return e})));var h=this.after;var v=bn(Ri(Ri(Ri(Ri([],Ti(l),false),Ti(f),false),Ti(i),false),Ti(u),false).map((function(t){return yn(t).map((function(t){return r.formatTransition(t)}))})));try{for(var d=Fi(h),p=d.next();!p.done;p=d.next()){var b=p.value;v.push(b)}}catch(e){t={error:e}}finally{try{if(p&&!p.done&&(e=d.return))e.call(d)}finally{if(t)throw t.error}}return v};return t}();function no(t,e,r){if(r===void 0){r=t.context}return new io(t,e,r)}const so=(t,e)=>t.textContent.toLowerCase().startsWith(e.toLowerCase());const oo=["m","l"];function ao(t){return oo.includes(t)}const co=({disabled:t,option:e,onRemove:r})=>{const i={};if(e.chipColor){i["color"]=e.chipColor}if(e.chipBackgroundColor){i["background-color"]=e.chipBackgroundColor}return v("label",{class:"wcs-select-chip",style:i,onClick:t=>t.stopImmediatePropagation()},v("div",null,e.displayText),t?null:v("div",{onClick:()=>r(e)},v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"12",viewBox:"0 0 20 12",class:"chip"},v("path",{d:"M2,0 6,4 10,0 12,2 8,6 12,10 10,12 6,8 2,12 0,10 4,6 0,2 2,0",fill:e.chipColor,transform:"translate(8 0)"}))))};function uo(t,e,r){const i=d(t);if(i==="UNKNOWN"){return[]}switch(e){case"closed":switch(i){case"MAJ+TAB":switch(r){case"unique":case"multiple":return[];case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"MoveFocus",target:"previous"}]}break;case"DOWN_ARROW":switch(r){case"unique":return[{kind:"SelectOption",target:"next"}];case"autocomplete_multiple":case"autocomplete_unique":return[{kind:"OpenSelect"},{kind:"HighlightOption",target:"first"}];case"multiple":return[{kind:"OpenSelect"},{kind:"FocusOption",target:"first"}]}break;case"RIGHT_ARROW":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[];case"unique":return[{kind:"SelectOption",target:"next"}];case"multiple":return[{kind:"OpenSelect"},{kind:"FocusOption",target:"first"}]}break;case"UP_ARROW":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"OpenSelect"},{kind:"HighlightOption",target:"last"}];case"multiple":break;case"unique":return[{kind:"SelectOption",target:"previous"}]}break;case"LEFT_ARROW":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[];case"unique":return[{kind:"SelectOption",target:"previous"}]}break;case"ALT+DOWN_ARROW":case"ALT+UP_ARROW":switch(r){case"unique":return[{kind:"OpenSelect"},{kind:"FocusOption",target:"first"}];case"autocomplete_unique":case"autocomplete_multiple":case"multiple":return[{kind:"OpenSelect"}]}break;case"SPACE":case"ENTER":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[];case"unique":case"multiple":return[{kind:"OpenSelect"},{kind:"FocusOption",target:"lastFocused"}]}break;case"ESCAPE":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"ClearAutocompleteInput"}];case"unique":case"multiple":return[]}break;case"PAGE_UP":switch(r){case"autocomplete_unique":return[];case"autocomplete_multiple":return[];case"unique":return[{kind:"SelectOption",target:"first"}];case"multiple":return[]}break;case"PAGE_DOWN":switch(r){case"autocomplete_unique":return[];case"autocomplete_multiple":return[];case"unique":return[{kind:"SelectOption",target:"last"}];case"multiple":return[]}break}break;case"opened":switch(i){case"ESCAPE":switch(r){case"unique":case"multiple":case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"CloseSelect",shouldBlur:false}]}break;case"ALT+UP_ARROW":switch(r){case"unique":case"multiple":return[{kind:"CloseSelect",shouldBlur:false}];case"autocomplete_unique":case"autocomplete_multiple":return[]}break;case"TAB":switch(r){case"autocomplete_unique":return[{kind:"SelectOption",target:"lastHighlighted"},{kind:"CloseSelect",shouldBlur:false}];case"autocomplete_multiple":return[{kind:"CloseSelect",shouldBlur:false}];case"unique":case"multiple":return[{kind:"CloseSelect",shouldBlur:true}]}break;case"MAJ+TAB":switch(r){case"autocomplete_unique":return[{kind:"SelectOption",target:"lastHighlighted"},{kind:"CloseSelect",shouldBlur:false},{kind:"MoveFocus",target:"previous"}];case"autocomplete_multiple":return[{kind:"CloseSelect",shouldBlur:false},{kind:"MoveFocus",target:"previous"}];case"unique":case"multiple":return[{kind:"CloseSelect",shouldBlur:true}]}break;case"UP_ARROW":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"HighlightOption",target:"previous"}];case"unique":case"multiple":return[{kind:"FocusOption",target:"previous"}]}break;case"LEFT_ARROW":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[];case"unique":case"multiple":return[{kind:"FocusOption",target:"previous"}]}break;case"DOWN_ARROW":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"HighlightOption",target:"next"}];case"unique":case"multiple":return[{kind:"FocusOption",target:"next"}]}break;case"RIGHT_ARROW":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[];case"unique":case"multiple":return[{kind:"FocusOption",target:"next"}]}break;case"PAGE_UP":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"HighlightOption",target:"first"}];case"unique":case"multiple":return[{kind:"FocusOption",target:"first"}]}break;case"PAGE_DOWN":switch(r){case"autocomplete_unique":case"autocomplete_multiple":return[{kind:"HighlightOption",target:"last"}];case"unique":case"multiple":return[{kind:"FocusOption",target:"last"}]}break;case"ENTER":switch(r){case"autocomplete_unique":return[{kind:"SelectOption",target:"lastHighlighted"}];case"autocomplete_multiple":return[{kind:"SelectOption",target:"lastHighlighted"}]}break}break;default:throw Error("Unknown error")}return[]}const lo=':host{--wcs-select-ligther-percentage:40;--wcs-select-control-border-radius:var(--wcs-semantic-border-radius-base);--wcs-select-text-color-disabled:var(--wcs-semantic-color-text-disabled);--wcs-select-value-color:var(--wcs-semantic-color-text-primary);--wcs-select-value-font-weight:var(--wcs-semantic-font-weight-medium);--wcs-select-placeholder-color:var(--wcs-semantic-color-text-tertiary);--wcs-select-placeholder-font-weight:var(--wcs-semantic-font-weight-roman);--wcs-select-placeholder-font-style:var(--wcs-semantic-font-style-control-placeholder);--wcs-select-options-padding:var(--wcs-semantic-spacing-base-150);--wcs-select-control-line-height:var(--wcs-semantic-font-line-height-large);--wcs-select-control-background-color:var(--wcs-semantic-color-background-control-default);--wcs-select-control-arrow-color:var(--wcs-semantic-color-foreground-action-secondary-default);--wcs-select-control-arrow-color-disabled:var(--wcs-semantic-color-foreground-disabled);--wcs-select-control-chips-gap:var(--wcs-semantic-spacing-small);--wcs-select-control-border-color-default:var(--wcs-semantic-color-border-primary);--wcs-select-control-border-color-disabled:var(--wcs-semantic-color-border-disabled);--wcs-select-control-border-color-focus:var(--wcs-semantic-color-border-control-focus);--wcs-select-control-border-color-error:var(--wcs-semantic-color-border-critical);--wcs-select-control-border-style-default:solid;--wcs-select-control-border-style-error:solid;--wcs-select-control-border-style-focus:var(--wcs-semantic-border-style-focus-control);--wcs-select-control-border-width-default:var(--wcs-semantic-border-width-default);--wcs-select-control-border-width-focus:var(--wcs-semantic-border-width-large);--wcs-select-control-padding-horizontal-m:var(--wcs-semantic-spacing-large);--wcs-select-control-padding-horizontal-l:var(--wcs-semantic-spacing-large);--wcs-select-control-height:var(--wcs-select-control-height-m);--wcs-select-control-height-m:var(--wcs-semantic-size-m);--wcs-select-control-height-l:var(--wcs-semantic-size-l);--wcs-internal-select-chip-size:var(--wcs-semantic-size-s);--wcs-select-control-font-size:var(--wcs-select-control-font-size-m, 1rem);--wcs-select-control-font-size-m:var(--wcs-semantic-font-size-m);--wcs-select-control-font-size-l:var(--wcs-semantic-font-size-l);--wcs-select-overlay-max-height:360px;--wcs-select-overlay-background-color:var(--wcs-semantic-color-background-surface-primary);--wcs-select-overlay-border-width:var(--wcs-semantic-border-width-default);--wcs-select-overlay-border-color:var(--wcs-semantic-color-border-secondary);--wcs-select-overlay-border-radius:var(--wcs-semantic-border-radius-base);--wcs-select-control-chip-color-default:var(--wcs-semantic-color-foreground-action-primary-default);--wcs-select-control-chip-color-disabled:var(--wcs-semantic-color-text-disabled);--wcs-select-control-chip-background-color-default:var(--wcs-semantic-color-background-action-primary-default);--wcs-select-control-chip-background-color-disabled:var(--wcs-semantic-color-background-action-primary-disabled);--wcs-select-control-chip-padding-vertical:var(--wcs-semantic-spacing-small);--wcs-select-control-chip-padding-horizontal:calc(1.5 * var(--wcs-semantic-spacing-base));--wcs-select-control-chip-line-height:var(--wcs-semantic-font-line-height-large);--wcs-select-control-chip-border-radius:var(--wcs-semantic-border-radius-base);--wcs-select-control-autocomplete-padding-vertical-m:var(--wcs-semantic-spacing-small);--wcs-select-control-autocomplete-padding-vertical-l:var(--wcs-semantic-spacing-small);--wcs-select-internal-noresult-padding-horizontal:var(--wcs-semantic-spacing-base);display:block;min-height:var(--wcs-select-control-height);position:relative;outline:none;user-select:none;box-sizing:border-box}:host svg{flex-shrink:0}:host .wcs-select-control{min-height:var(--wcs-select-control-height);outline:var(--wcs-select-control-border-width-default) var(--wcs-select-control-border-style-default) var(--wcs-select-control-border-color-default);outline-offset:calc(var(--wcs-select-control-border-width-default) * -1)}:host .arrow{fill:var(--wcs-select-control-arrow-color)}:host .chip{fill:var(--wcs-select-control-chip-color-default);opacity:calc((100 - var(--wcs-select-ligther-percentage)) / 100)}:host .chip:hover{opacity:100}.wcs-select-control{box-sizing:border-box;display:flex;align-items:center;background-color:var(--wcs-select-control-background-color);border-radius:var(--wcs-select-control-border-radius);outline:var(--wcs-select-control-border-color-default) solid var(--wcs-select-control-border-width-default);outline-offset:calc(var(--wcs-select-control-border-width-default) * -1);font-size:var(--wcs-select-control-font-size, 1rem);line-height:var(--wcs-select-control-line-height);cursor:pointer;padding-left:var(--wcs-select-control-padding-horizontal-m);padding-right:calc(var(--wcs-select-control-padding-horizontal-m) - 4px)}label{cursor:pointer;transition:color 125ms ease-in;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}label.wcs-select-placeholder{color:var(--wcs-select-placeholder-color);font-style:var(--wcs-select-placeholder-font-style);font-weight:var(--wcs-select-placeholder-font-weight)}label.wcs-select-value{color:var(--wcs-select-value-color);font-style:normal;font-weight:var(--wcs-select-value-font-weight)}label::after{content:"";padding:1px}.wcs-select-value-container{max-width:calc(100% - (24px + var(--wcs-semantic-spacing-base)));padding-right:8px;display:flex;flex-direction:row;gap:var(--wcs-select-control-chips-gap);align-items:center;flex-wrap:wrap}.wcs-select-chip{box-sizing:border-box;height:var(--wcs-internal-select-chip-size);line-height:var(--wcs-select-control-chip-line-height);color:var(--wcs-select-control-chip-color-default);background-color:var(--wcs-select-control-chip-background-color-default);border-radius:var(--wcs-select-control-chip-border-radius);display:flex;align-items:center;padding:var(--wcs-select-control-chip-padding-vertical) var(--wcs-select-control-chip-padding-horizontal);overflow:initial;z-index:1}.wcs-select-options{display:none;position:absolute;z-index:999999999;border:solid var(--wcs-select-overlay-border-width) var(--wcs-select-overlay-border-color);border-radius:var(--wcs-select-overlay-border-radius);max-height:var(--wcs-select-overlay-max-height);overflow-y:auto;width:calc(100% - (2 * var(--wcs-select-overlay-border-width) + 2 * var(--wcs-select-options-padding)));padding:var(--wcs-select-options-padding);background-color:var(--wcs-select-overlay-background-color)}:host(.expanded){outline-width:var(--wcs-select-control-border-width-focus)}:host(.expanded) .wcs-select-control{outline:var(--wcs-select-control-border-width-focus) var(--wcs-select-control-border-style-focus) var(--wcs-select-control-border-color-focus);outline-offset:calc(var(--wcs-select-control-border-width-focus) * -1)}:host(.expanded) .wcs-select-options{display:block}:host([aria-invalid=true]) .wcs-select-control,:host([autocomplete]):has(input[aria-invalid=true]) .wcs-select-control{outline-style:var(--wcs-select-control-border-style-error);outline-color:var(--wcs-select-control-border-color-error)}:host(:not(.expanded):focus-visible){outline-width:var(--wcs-select-control-border-width-focus)}:host(:not(.expanded):focus-visible) .wcs-select-control{outline:var(--wcs-select-control-border-width-focus) var(--wcs-select-control-border-style-focus) var(--wcs-select-control-border-color-focus);outline-offset:calc(var(--wcs-select-control-border-width-focus) * -1)}:host([disabled]){cursor:not-allowed;--wcs-select-control-background-color:var(--wcs-semantic-color-background-control-disabled)}:host([disabled]) .wcs-select-control{outline-style:var(--wcs-select-control-border-style-default);outline-color:var(--wcs-select-control-border-color-disabled)}:host([disabled]) .wcs-select-control,:host([disabled]) label{cursor:default;pointer-events:none}:host([disabled]) label{color:var(--wcs-select-text-color-disabled)}:host([disabled]) .arrow{fill:var(--wcs-select-control-arrow-color-disabled)}:host([disabled]) .wcs-select-chip{color:var(--wcs-select-control-chip-color-disabled);background-color:var(--wcs-select-control-chip-background-color-disabled)}:host([disabled]) .chip{fill:var(--wcs-select-control-chip-color-disabled)}:host([size=m]){--wcs-select-control-font-size:var(--wcs-select-control-font-size-m);--wcs-select-control-height:var(--wcs-select-control-height-m);--wcs-internal-select-chip-size:var(--wcs-select-chip-size-m)}:host([size=m]) .wcs-select-control{padding-left:var(--wcs-select-control-padding-horizontal-m);padding-right:calc(var(--wcs-select-control-padding-horizontal-m) - 4px)}:host([size=m]):host([autocomplete]) .autocomplete-field{height:calc(var(--wcs-select-control-height) - var(--wcs-select-control-autocomplete-padding-vertical-m) * 2)}:host([size=m]):host([autocomplete]) .wcs-select-value-container{padding-top:var(--wcs-select-control-autocomplete-padding-vertical-m);padding-bottom:var(--wcs-select-control-autocomplete-padding-vertical-m)}:host([size=l]){--wcs-select-control-font-size:var(--wcs-select-control-font-size-l);--wcs-select-control-height:var(--wcs-select-control-height-l);--wcs-internal-select-chip-size:var(--wcs-select-chip-size-l)}:host([size=l]) .wcs-select-control{padding-left:var(--wcs-select-control-padding-horizontal-l);padding-right:calc(var(--wcs-select-control-padding-horizontal-l) - 4px)}:host([size=l]):host([autocomplete]) .autocomplete-field{height:calc(var(--wcs-select-control-height) - var(--wcs-select-control-autocomplete-padding-vertical-l) * 2)}:host([size=l]):host([autocomplete]) .wcs-select-value-container{padding-top:var(--wcs-select-control-autocomplete-padding-vertical-l);padding-bottom:var(--wcs-select-control-autocomplete-padding-vertical-l)}:host([chips]) .wcs-select-control{flex-wrap:wrap}:host([chips]) .wcs-select-value-container{margin-top:4px;margin-bottom:4px}:host([autocomplete]) .wcs-select-value-container{margin:0;width:100%}:host([autocomplete]) input{font:unset;background-color:transparent;outline:none;border:none;padding:unset;color:var(--wcs-select-value-color);font-weight:var(--wcs-select-value-font-weight) !important;font-size:var(--wcs-select-control-font-size);line-height:inherit}:host([autocomplete]) input::placeholder{color:var(--wcs-select-placeholder-color);opacity:1;font-weight:var(--wcs-select-placeholder-font-weight);font-style:var(--wcs-select-placeholder-font-style)}:host([autocomplete]:focus-within) .wcs-select-control{outline:var(--wcs-select-control-border-width-focus) var(--wcs-select-control-border-style-focus) var(--wcs-select-control-border-color-focus);outline-offset:calc(var(--wcs-select-control-border-width-focus) * -1)}.autocomplete-field{width:0;min-width:50px;flex-grow:1}.noresult-container{padding-left:var(--wcs-select-internal-noresult-padding-horizontal);padding-right:var(--wcs-select-internal-noresult-padding-horizontal);display:flex;flex-direction:row;align-items:center;height:var(--wcs-select-control-height)}';const fo=lo;const ho={key:"select",initial:"closed",states:{closed:{entry:["close"],on:{CLICK:"opened",OPEN:"opened",OPTION_SELECTED:{actions:["selectOption"]}}},opened:{entry:["open"],on:{CLICK:"closed",CLOSE:"closed",OPTION_SELECTED:{actions:["selectOption"]}}}}};const vo=["tabindex","title"];const po=t(class t extends e{constructor(){super();this.__registerHost();this.__attachShadow();this.wcsChange=r(this,"wcsChange",7);this.wcsFocus=r(this,"wcsFocus",7);this.wcsBlur=r(this,"wcsBlur",7);this.wcsFilterChange=r(this,"wcsFilterChange",7);this.inheritedAttributes={};this.selectId=`wcs-select-${bo++}`;this.optionsId=o("OPTIONS");this.expanded=false;this.size="m";this.displayText=undefined;this.focused=undefined;this.value=undefined;this.placeholder=undefined;this.disabled=false;this.required=false;this.multiple=false;this.autocomplete=false;this.serverMode=false;this.filterFn=undefined;this.chips=false;this.name=undefined;this.compareWith=(t,e)=>Ci(t,e);this.showNoResultFoundLabel=false;this.autocompleteValue=undefined;this.overlayDirection="bottom"}async open(){this.stateService.send("OPEN")}async close(){this.stateService.send("CLOSE")}onValueChangeHandler(t){this.updateSelectedValue(t)}updateSelectedValue(t,e=true,r=true){var i;if(!t&&e){this.reset()}if(this.multiple){if(!Array.isArray(t)){t=[t]}this.lastModifiedOptionElement=t.length>0?(i=Array.from(this.options).find((e=>this.compareWith(e.value,t[t.length-1]))))!==null&&i!==void 0?i:null:null;if(this.serverMode){const e=a(this.values.map((t=>t.value)),t,this.compareWith);e.added.forEach((t=>{const e=Array.from(this.options).find((e=>this.compareWith(e.value,t)));if(e){this.values.push({value:e.value,displayText:e.innerText,chipColor:e.chipColor,chipBackgroundColor:e.chipBackgroundColor});e.selected=true}}));e.kept.forEach((t=>{const e=Array.from(this.options).find((e=>this.compareWith(e.value,t)));if(e){e.selected=true}}));e.removed.forEach((t=>{this.values=this.values.filter((e=>!this.compareWith(e.value,t)));const e=Array.from(this.options).find((e=>this.compareWith(e.value,t)));if(e){e.selected=false}}))}else{this.values=[];this.options.forEach((e=>{const r=t?t.findIndex((t=>this.compareWith(e.value,t)))!==-1:false;if(r){this.values.push({value:e.value,displayText:e.innerText,chipColor:e.chipColor,chipBackgroundColor:e.chipBackgroundColor})}e.selected=r}))}this.displayText=this.values.length!==0?this.values.map((t=>t.displayText)).join(", "):undefined}else{let e=false;this.options.forEach((i=>{const n=this.compareWith(i.value,t);if(n){e=true;this.displayText=i.innerText;this.lastModifiedOptionElement=i;if(this.autocomplete){this.setAutocompleteValue(i.innerText,false,false,r)}}i.selected=n}));if(this.serverMode&&!e){this.setAutocompleteValue("",false,false,r);this.displayText=""}}}reset(){this.values=[];this.displayText=undefined;if(this.autocomplete){this.setAutocompleteValue("",true)}this.options.forEach((t=>{t.selected=false}))}componentDidLoad(){this.optionsEl=this.el.shadowRoot.querySelector(".wcs-select-options");this.controlEl=this.el.shadowRoot.querySelector(".wcs-select-control");const t=no(ho,this.initMachineOptions());this.stateService=Ks(t);if(this.multiple){this.values=[]}this.stateService.start();if(this.optionsEl.querySelector("slot")===null){this.replaceOptions_firefoxBefore63();this.listenDomUpdate_firefoxBefore63()}if(this.value!==undefined){this.updateSelectedValue(this.value)}this.popper=this.createPopperInstance();this.labelElement=c(this.el);if(this.labelElement){this.labelElement.id=this.selectId+"-lbl"}}createPopperInstance(){return b(this.controlEl,this.optionsEl,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,4]}}]})}emitChange(t){if(this.serverMode){this.wcsChange.emit({value:t,selectedOptions:undefined})}else{this.wcsChange.emit({value:t,selectedOptions:Array.from(this.options).filter((t=>t.selected))})}}replaceOptions_firefoxBefore63(){Array.from(this.el.querySelectorAll("wcs-select-option")).forEach((t=>{if(t.parentNode===this.el){this.el.removeChild(t);this.optionsEl.appendChild(t)}}))}listenDomUpdate_firefoxBefore63(){const t=new MutationObserver((t=>{for(const e of t){if(e.type==="childList"){this.replaceOptions_firefoxBefore63()}}}));t.observe(this.el,{childList:true})}componentWillRender(){if(this.multiple){this.options.forEach((t=>t.multiple=true))}}componentWillLoad(){if(!ao(this.size)){console.warn(`Invalid size value for wcs-select : "${this.size}". Must be one of "${oo.join(", ")}"`);this.size="m"}if(this.autocomplete){this.inheritedAttributes=Object.assign(Object.assign({},u(this.el)),l(this.el,vo))}}async setAriaAttribute(t,e){if(this.autocomplete===false){f(this.el,t,e)}else{f(this.autocompleteInput,t,e)}}get options(){var t;const e=(t=this.el)===null||t===void 0?void 0:t.querySelectorAll("wcs-select-option");if(e&&e.length!==0){return e}return[]}get notDisabledOptions(){var t;const e=(t=this.el)===null||t===void 0?void 0:t.querySelectorAll("wcs-select-option:not([disabled]):not([aria-hidden])");if(e&&e.length!==0){return e}return[]}initMachineOptions(){return{actions:{open:()=>{var t;if(!this.disabled){this.expanded=true;this.focused=false;if(this.multiple===false&&this.autocomplete&&this.hasValue===false){if(this.autocompleteValue&&this.autocompleteValue!==""){this.setAutocompleteValue(this.autocompleteValue)}}this.clearHighlightOnLastHighlightedOption();if(this.notDisabledOptions.length>0){this.lastFocusedOptionElement=(t=this.lastModifiedOptionElement)!==null&&t!==void 0?t:this.notDisabledOptions[0];requestAnimationFrame((()=>{var t,e;this.autocomplete?(t=this.autocompleteInput)===null||t===void 0?void 0:t.focus():(e=this.lastFocusedOptionElement)===null||e===void 0?void 0:e.focus()}))}}},close:(t,e)=>{var r,i;if(e.type==="CLOSE"){this.clearHighlightOnLastHighlightedOption();if((r=e.value)===null||r===void 0?void 0:r.shouldBlur){this.focused=false}else{if(this.autocomplete&&((i=e.value)===null||i===void 0?void 0:i.fromKeyboard)){this.focusAutocompleteInput()}else{this.el.focus()}this.focused=true}if(this.autocomplete&&this.displayText&&this.multiple===false){this.setAutocompleteValue(this.displayText)}}this.expanded=false},selectOption:(t,e)=>{if(e.type==="OPTION_SELECTED"){if(this.multiple){this.handleOptionSelectedOnMultiple(e.value.option)}else{this.handleOptionSelectedOnSingle(e.value.option);this.stateService.send("CLOSE",{value:{fromKeyboard:e.value.fromKeyboard}})}if(this.autocomplete){if(this.multiple){requestAnimationFrame((()=>{this.autocompleteInput.focus()}))}else{this.setAutocompleteValue(e.value.option.displayText)}}this.emitChange(this.value)}}},guards:{enabled:()=>!this.disabled}}}handleOptionSelectedOnMultiple(t){const e=this.values.findIndex((e=>this.compareWith(e.value,t.value)));if(e===-1){this.value=[...this.values.map((t=>t.value)),t.value]}else{this.value=this.values.filter((e=>!this.compareWith(e.value,t.value))).map((t=>t.value))}}handleOptionSelectedOnSingle(t){this.value=t.value}disconnectedCallback(){var t;(t=this.stateService)===null||t===void 0?void 0:t.stop()}get hasValue(){return this.displayText!==undefined}onMouseUp(t){const e=h(t.target)&&(t.offsetX>t.target.clientWidth||t.offsetY>t.target.clientHeight||t.offsetY<0);const r=t.composedPath().filter((t=>{const e=t;return e.nodeName==="svg"&&e.classList.contains("chip")})).length>0;if(!e&&!r){this.stateService.send("CLICK")}}onWindowClickEvent(t){const e=t.composedPath().filter((t=>t.nodeName==="WCS-SELECT"))[0];const r=e===this.el;if(this.expanded&&!r){this.stateService.send({type:"CLOSE",value:{shouldBlur:true,fromKeyboard:false}})}}onKeyDown(t){const e=this.stateService.getSnapshot().matches("closed")?"closed":"opened";let r;if(this.autocomplete){r=this.multiple?"autocomplete_multiple":"autocomplete_unique"}else{r=this.multiple?"multiple":"unique"}const i=uo(t,e,r);if(i.length!=0&&i.filter((t=>t.kind==="MoveFocus")).length===0){t.preventDefault()}for(const e of i){this.doActionFromKeyboardEventAssociatedAction(e,t)}}doActionFromKeyboardEventAssociatedAction(t,e){var r,i;switch(t.kind){case"CloseSelect":this.stateService.send({type:"CLOSE",value:{shouldBlur:t.shouldBlur,fromKeyboard:true}});break;case"OpenSelect":this.stateService.send("OPEN");break;case"SelectOption":switch(t.target){case"next":this.selectClosestOption("next");break;case"previous":this.selectClosestOption("previous");break;case"first":this.selectFirstOption();break;case"last":this.selectLastOption();break;case"lastHighlighted":{const t=Array.from(this.notDisabledOptions).indexOf(this.lastHighlightedOptionElement);if(t!==-1){this.lastModifiedOptionElement=this.lastHighlightedOptionElement;this.selectOption(t,true)}break}}break;case"ClearAutocompleteInput":this.setAutocompleteValue("",false,false);break;case"ClearHighlight":this.clearHighlightOnLastHighlightedOption();break;case"HighlightOption":switch(t.target){case"next":this.highlightClosestOption("next");break;case"previous":this.highlightClosestOption("previous");break;case"first":this.highlightFirstOption();break;case"last":this.highlightLastOption();break}break;case"FocusOption":switch(t.target){case"next":this.focusClosestOption("next");break;case"previous":this.focusClosestOption("previous");break;case"first":this.focusFirstOption();break;case"last":this.focusLastOption();break;case"lastFocused":if(this.lastFocusedOptionElement!=null){this.focusOption(Array.from(this.notDisabledOptions).indexOf(this.lastFocusedOptionElement))}break}break;case"MoveFocus":switch(t.target){case"previous":{let t=(r=this.el.previousElementSibling)!==null&&r!==void 0?r:this.el.parentElement;while(t){if(p(t))break;t=(i=t.previousElementSibling)!==null&&i!==void 0?i:t.parentElement}if(t){e.preventDefault();t.focus()}break}}break;default:throw new Error("Internal error")}}getClosestActiveOptionIndexForState(t,e){let r;switch(e){case"focused":r=this.lastFocusedOptionElement;break;case"modified":r=this.lastModifiedOptionElement;break;case"highlighted":r=this.lastHighlightedOptionElement;break;default:r=null}let i=Array.from(this.notDisabledOptions).indexOf(r);const n=0;const s=this.notDisabledOptions.length-1;if(t==="next"&&i<s){i++}else if(t==="previous"&&i>n){i--}else{if(!this.autocomplete)return"nothing";if(t==="next"&&i>=s){i=0}if(t==="previous"&&i===n){i=s}}return i}selectOption(t,e=false){const r=this.notDisabledOptions[t];if(!r)return;this.sendOptionSelectedToStateMachine({source:r,value:r.value,displayText:r.innerText},e)}selectClosestOption(t){const e=this.getClosestActiveOptionIndexForState(t,"modified");if(e==="nothing")return;this.selectOption(e,true)}selectFirstOption(){if(this.notDisabledOptions.length<1){return}this.selectOption(0,true)}selectLastOption(){if(this.notDisabledOptions.length<1){return}this.selectOption(this.notDisabledOptions.length-1,true)}focusOption(t){var e;this.lastFocusedOptionElement=this.notDisabledOptions[t];(e=this.lastFocusedOptionElement)===null||e===void 0?void 0:e.focus();this.el.setAttribute("aria-activedescendant",this.lastFocusedOptionElement.id)}focusClosestOption(t){const e=this.getClosestActiveOptionIndexForState(t,"focused");if(e==="nothing")return;this.focusOption(e)}focusFirstOption(){this.focusOption(0)}focusLastOption(){this.focusOption(this.notDisabledOptions.length-1)}selectedOptionChanged(t){this.sendOptionSelectedToStateMachine(t.detail)}sendOptionSelectedToStateMachine(t,e=false){this.stateService.send({type:"OPTION_SELECTED",value:{option:t,fromKeyboard:e}})}onSlotchange(){if(!this.serverMode||this.autocomplete&&this.displayText===this.autocompleteValue){this.updateSelectedValue(this.value,false,false)}else{this.syncOptionsElementsStateWithCurrentSelectedValue()}if(this.autocomplete&&this.serverMode){this.showNoResultFoundLabel=this.options.length<1}if(this.multiple){this.options.forEach((t=>t.multiple=true))}}syncOptionsElementsStateWithCurrentSelectedValue(){this.options.forEach((t=>{const e=this.compareWith(t.value,this.value);t.selected=e}))}removeChip(t){this.options.forEach((e=>{if(e.value===t.value){this.sendOptionSelectedToStateMachine(Object.assign(Object.assign({},t),{source:e}))}}))}highlightOption(t){this.clearHighlightOnLastHighlightedOption();this.lastHighlightedOptionElement=this.notDisabledOptions[t];if(this.lastHighlightedOptionElement){this.lastHighlightedOptionElement.highlighted=true;this.autocompleteInput.setAttribute("aria-activedescendant",this.lastHighlightedOptionElement.id);requestAnimationFrame((()=>{this.lastHighlightedOptionElement.scrollIntoView({block:"nearest",inline:"nearest"})}))}}highlightFirstOption(){this.highlightOption(0)}highlightLastOption(){this.highlightOption(this.notDisabledOptions.length-1)}highlightClosestOption(t){const e=this.getClosestActiveOptionIndexForState(t,"highlighted");if(e==="nothing")return;this.highlightOption(e)}clearHighlightOnLastHighlightedOption(){if(this.lastHighlightedOptionElement){this.lastHighlightedOptionElement.highlighted=false;this.lastHighlightedOptionElement=null}}onAutocompleteInputEvent(t){var e;const r=(e=this.autocompleteInput.value)!==null&&e!==void 0?e:"";this.setAutocompleteValue(r,false,true);t.stopPropagation()}setAutocompleteValue(t,e=false,r=false,i=true){var n,s;this.clearHighlightOnLastHighlightedOption();const o=this.lastModifiedOptionElement==null||((n=this.lastModifiedOptionElement)===null||n===void 0?void 0:n.textContent)!==this.autocompleteValue;if(!this.expanded&&o&&!e&&r){this.open()}if(!this.serverMode){if(t.length){const[e,r]=[[],[]];const i=(s=this.filterFn)!==null&&s!==void 0?s:so;this.options.forEach((n=>(i(n,t)?e:r).push(n)));this.showNoResultFoundLabel=e.length===0;e.forEach((t=>{t.hidden=false;t.removeAttribute("aria-hidden")}));r.forEach((t=>{t.hidden=true;t.setAttribute("aria-hidden","true")}))}else{this.showNoResultFoundLabel=false;this.options.forEach((t=>{t.hidden=false;t.removeAttribute("aria-hidden")}))}}const a=t!==null&&t!==void 0?t:"";const c=this.autocompleteValue!==a;if(c){this.autocompleteValue=a}if(i&&c){this.wcsFilterChange.emit({value:t})}}onFocus(t){if(this.autocomplete){this.focusAutocompleteInput()}this.wcsFocus.emit(t)}focusAutocompleteInput(){var t;(t=this.autocompleteInput)===null||t===void 0?void 0:t.focus()}onBlur(t){const e=t.relatedTarget;if(this.el.contains(e)){return}this.wcsBlur.emit(t)}componentDidRender(){var t;(t=this.popper)===null||t===void 0?void 0:t.update()}focusedAttributes(){return!this.disabled?{tabIndex:0}:{}}render(){var t;const e=`${this.labelElement?this.labelElement.innerText:""} ${this.hasValue?this.displayText:""}`.trimEnd();const r="no-result-container";return i(n,Object.assign({key:"34a191b99645da1e3303c25899b259b8cdb1ee4a",class:this.expanded?"expanded ":"",overlayDirection:this.overlayDirection},this.focusedAttributes(),{role:!this.autocomplete?"combobox":null,"aria-haspopup":!this.autocomplete?"listbox":null,"aria-owns":!this.autocomplete?this.optionsId:null,"aria-controls":!this.autocomplete?this.optionsId:null,"aria-disabled":!this.autocomplete?this.disabled?"true":null:null,"aria-required":!this.autocomplete?this.required?"true":"false":null,"aria-expanded":!this.autocomplete?this.expanded?"true":"false":null,"aria-multiselectable":!this.autocomplete?this.multiple?"true":"false":null,"aria-label":!this.autocomplete?e:null}),i("div",{key:"459fbc973a080ee868ad8db7f8923f350f9c9797",class:"wcs-select-control"},i("div",{key:"39d512233c98df9073334334c64c6214fe7f7008",class:"wcs-select-value-container"},this.hasValue?this.chips?this.values.map((t=>i(co,{disabled:this.disabled,option:t,onRemove:this.removeChip.bind(this)}))):(!this.autocomplete||this.autocomplete&&this.multiple)&&i("label",{class:"wcs-select-value"},this.displayText):!this.autocomplete&&i("label",{class:"wcs-select-placeholder"},this.placeholder),this.autocomplete&&i("input",Object.assign({key:"52561ab64683b48df6e3e8d8813013bb369c8405",class:"autocomplete-field",value:this.autocompleteValue,role:"combobox","aria-haspopup":"listbox","aria-label":e,"aria-describedby":r,"aria-disabled":this.disabled?"true":null,"aria-expanded":this.expanded?"true":"false","aria-controls":this.optionsId,"aria-owns":this.optionsId,"aria-multiselectable":this.multiple?"true":"false","aria-autocomplete":"list",autocomplete:"off",disabled:this.disabled,required:this.required,placeholder:((t=this.values)===null||t===void 0?void 0:t.length)?null:this.placeholder,onInput:t=>this.onAutocompleteInputEvent(t),ref:t=>this.autocompleteInput=t},this.inheritedAttributes))),i(s,{key:"3fbe828718fa2afb8379ed673148a91bcbdbaddb",up:this.expanded})),i("div",{key:"a4aab4d8a15efb5226204945986cccfd04fab44f",class:"wcs-select-options",id:this.optionsId,role:"listbox"},i("slot",{key:"32c6ee55bf39c3da7ae2fee5012a849b472b0e18",name:"options",onSlotchange:this.onSlotchange.bind(this)}),this.autocomplete&&this.showNoResultFoundLabel&&i("div",{key:"bd44edbf07935d16b4bc8df53a724bcc82dd3df4",role:"alert",id:r,class:"noresult-container"},i("slot",{key:"7bc1d019368ce1c0867e5c7b87ce2918e676a814",name:"filter-no-result"},i("span",{key:"741628bfc5a45abead13a63fe4a1ec1ad9745393"},"Aucun résultat")))))}get el(){return this}static get watchers(){return{value:["onValueChangeHandler"]}}static get style(){return fo}},[1,"wcs-select",{size:[513],value:[1032],placeholder:[1537],disabled:[1540],required:[516],multiple:[516],autocomplete:[516],serverMode:[516,"server-mode"],filterFn:[16],chips:[516],name:[1],compareWith:[16],expanded:[32],displayText:[32],focused:[32],showNoResultFoundLabel:[32],autocompleteValue:[32],overlayDirection:[32],open:[64],close:[64],setAriaAttribute:[64]},[[1,"mouseup","onMouseUp"],[8,"click","onWindowClickEvent"],[0,"keydown","onKeyDown"],[0,"wcsSelectOptionClick","selectedOptionChanged"],[0,"focus","onFocus"],[2,"blur","onBlur"]],{value:["onValueChangeHandler"]}]);let bo=0;function wo(){if(typeof customElements==="undefined"){return}const t=["wcs-select"];t.forEach((t=>{switch(t){case"wcs-select":if(!customElements.get(t)){customElements.define(t,po)}break}}))}export{sr as M,j as S,Ur as U,L as a,N as b,I as c,yt as d,vt as e,bt as f,at as g,me as h,P as i,gr as j,_e as k,or as l,Or as m,Br as n,ge as o,ae as p,ve as q,O as r,pr as s,Rt as t,vr as u,kr as v,Ci as w,po as x,wo as y};
16
+ //# sourceMappingURL=p-1329a1af.js.map