@webquark/core 1.1.0-dev.4 → 1.1.0-dev.5

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 (480) hide show
  1. package/README.md +24 -9
  2. package/dist/cjs/{action.props-CkEZpMY6.js → action.props-CtwTiyf6.js} +1 -1
  3. package/dist/cjs/field-CiEtk37y.js +14 -0
  4. package/dist/cjs/{index-B7ex88C2.js → index-BLlc_shC.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/q-accordion.cjs.entry.js +18 -0
  7. package/dist/cjs/q-alert.cjs.entry.js +1 -1
  8. package/dist/cjs/q-avatar.cjs.entry.js +6 -6
  9. package/dist/cjs/q-banner.cjs.entry.js +19 -0
  10. package/dist/cjs/q-button_2.cjs.entry.js +7 -7
  11. package/dist/cjs/q-card.cjs.entry.js +17 -6
  12. package/dist/cjs/q-carousel.cjs.entry.js +3 -3
  13. package/dist/cjs/q-chip.cjs.entry.js +2 -2
  14. package/dist/cjs/q-conversation-bubble.cjs.entry.js +6 -6
  15. package/dist/cjs/q-data-table.cjs.entry.js +4 -4
  16. package/dist/cjs/q-dialog.cjs.entry.js +22 -8
  17. package/dist/cjs/q-dropdown.cjs.entry.js +50 -6
  18. package/dist/cjs/q-form.cjs.entry.js +11 -5
  19. package/dist/cjs/q-grid.cjs.entry.js +24 -0
  20. package/dist/cjs/q-icon.cjs.entry.js +16 -6
  21. package/dist/cjs/q-inline.cjs.entry.js +22 -0
  22. package/dist/cjs/q-input_2.cjs.entry.js +14 -7
  23. package/dist/cjs/q-link.cjs.entry.js +5 -5
  24. package/dist/cjs/q-map.cjs.entry.js +2 -2
  25. package/dist/cjs/q-media.cjs.entry.js +21 -0
  26. package/dist/cjs/q-navbar.cjs.entry.js +9 -6
  27. package/dist/cjs/q-pagination.cjs.entry.js +2 -2
  28. package/dist/cjs/q-panel.cjs.entry.js +17 -8
  29. package/dist/cjs/q-quantity-selector.cjs.entry.js +15 -8
  30. package/dist/cjs/q-radio-group.cjs.entry.js +14 -7
  31. package/dist/cjs/q-reel.cjs.entry.js +3 -3
  32. package/dist/cjs/q-scrollable.cjs.entry.js +4 -4
  33. package/dist/cjs/q-section.cjs.entry.js +20 -0
  34. package/dist/cjs/q-sidepanel.cjs.entry.js +14 -7
  35. package/dist/cjs/q-stack.cjs.entry.js +20 -0
  36. package/dist/cjs/q-step-diagram-item.cjs.entry.js +7 -4
  37. package/dist/cjs/q-step-diagram.cjs.entry.js +21 -11
  38. package/dist/cjs/q-syntax-box.cjs.entry.js +1 -1
  39. package/dist/cjs/q-tabs.cjs.entry.js +3 -3
  40. package/dist/cjs/q-textarea.cjs.entry.js +61 -7
  41. package/dist/cjs/q-thumbnail.cjs.entry.js +3 -3
  42. package/dist/cjs/q-toast.cjs.entry.js +3 -3
  43. package/dist/cjs/q-toggle.cjs.entry.js +14 -6
  44. package/dist/cjs/q-toolbar.cjs.entry.js +8 -4
  45. package/dist/cjs/tokens-DGECOqpA.js +42 -0
  46. package/dist/cjs/webquark.cjs.js +2 -2
  47. package/dist/collection/collection-manifest.json +16 -9
  48. package/dist/collection/components/actions/button/button.css +55 -4
  49. package/dist/collection/components/actions/button/button.js +4 -4
  50. package/dist/collection/components/actions/link/link.js +8 -5
  51. package/dist/collection/components/{data-display → communication}/alert/alert.js +2 -2
  52. package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.js +40 -40
  53. package/dist/collection/components/{overlays → communication}/toast/test/toast.cmp.test.js +1 -1
  54. package/dist/collection/components/{overlays → communication}/toast/toast.js +14 -14
  55. package/dist/collection/components/content/banner/banner.css +1 -0
  56. package/dist/collection/components/content/banner/banner.js +84 -0
  57. package/dist/collection/components/{layout → content}/card/card.css +12 -0
  58. package/dist/collection/components/content/card/card.js +308 -0
  59. package/dist/collection/components/{layout → content}/carousel/carousel.js +4 -4
  60. package/dist/collection/components/data-display/accordion/accordion.css +1 -0
  61. package/dist/collection/components/data-display/accordion/accordion.js +54 -0
  62. package/dist/collection/components/{actions → data-display}/chip/chip.js +5 -5
  63. package/dist/collection/components/data-display/data-table/data-table.js +3 -3
  64. package/dist/collection/components/data-display/map/map.js +1 -1
  65. package/dist/collection/components/data-display/pagination/pagination.js +1 -1
  66. package/dist/collection/components/indicators/step-diagram/step-diagram.js +50 -11
  67. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.css +7 -7
  68. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +36 -4
  69. package/dist/collection/components/inputs/dropdown/dropdown.css +77 -34
  70. package/dist/collection/components/inputs/dropdown/dropdown.js +202 -6
  71. package/dist/collection/components/inputs/form/form.css +85 -0
  72. package/dist/collection/components/{layout → inputs}/form/form.js +105 -13
  73. package/dist/collection/components/inputs/form/form.types.js +1 -0
  74. package/dist/collection/components/inputs/input/input.css +78 -62
  75. package/dist/collection/components/inputs/input/input.js +77 -9
  76. package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +43 -3
  77. package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +70 -7
  78. package/dist/collection/components/inputs/radio-group/radio-group.css +77 -30
  79. package/dist/collection/components/inputs/radio-group/radio-group.js +77 -9
  80. package/dist/collection/components/inputs/textarea/textarea.css +85 -1
  81. package/dist/collection/components/inputs/textarea/textarea.js +149 -7
  82. package/dist/collection/components/inputs/toggle/toggle.css +80 -48
  83. package/dist/collection/components/inputs/toggle/toggle.js +72 -6
  84. package/dist/collection/components/layout/grid/grid.css +11 -0
  85. package/dist/collection/components/layout/grid/grid.js +152 -0
  86. package/dist/collection/components/layout/inline/inline.css +4 -0
  87. package/dist/collection/components/layout/inline/inline.js +118 -0
  88. package/dist/collection/components/layout/navbar/navbar.js +32 -7
  89. package/dist/collection/components/layout/panel/panel.css +13 -12
  90. package/dist/collection/components/layout/panel/panel.js +139 -10
  91. package/dist/collection/components/layout/scrollable/scrollable.js +3 -3
  92. package/dist/collection/components/layout/section/section.css +1 -0
  93. package/dist/collection/components/layout/section/section.js +98 -0
  94. package/dist/collection/components/layout/section/section.types.js +1 -0
  95. package/dist/collection/components/layout/sidepanel/internals/nav-items.js +1 -1
  96. package/dist/collection/components/layout/sidepanel/sidepanel.js +90 -10
  97. package/dist/collection/components/layout/stack/stack.css +4 -0
  98. package/dist/collection/components/layout/stack/stack.js +76 -0
  99. package/dist/collection/components/layout/tabs/tabs.js +2 -2
  100. package/dist/collection/components/layout/toolbar/toolbar.css +24 -1
  101. package/dist/collection/components/layout/toolbar/toolbar.js +81 -3
  102. package/dist/collection/components/media/avatar/avatar.js +43 -43
  103. package/dist/collection/components/media/icon/icon.js +79 -18
  104. package/dist/collection/components/media/media/media.css +1 -0
  105. package/dist/collection/components/media/media/media.js +125 -0
  106. package/dist/collection/components/media/media/media.types.js +1 -0
  107. package/dist/collection/components/media/reel/reel.js +2 -2
  108. package/dist/collection/components/media/thumbnail/thumbnail.js +2 -2
  109. package/dist/collection/components/overlays/dialog/dialog.css +16 -0
  110. package/dist/collection/components/overlays/dialog/dialog.js +144 -14
  111. package/dist/collection/components/overlays/tooltip/tooltip.js +2 -2
  112. package/dist/collection/components/shared/field.js +8 -0
  113. package/dist/collection/components/shared/test/orientation.cmp.test.js +36 -0
  114. package/dist/collection/index.js +1 -1
  115. package/dist/collection/playground/components/playground-event-log/playground-event-log.js +1 -1
  116. package/dist/collection/playground/components/playground-sidebar/playground-sidebar.js +5 -3
  117. package/dist/collection/playground/components/theme-designer/theme-designer.js +13 -35
  118. package/dist/collection/playground/components/theme-designer/token-row.js +26 -7
  119. package/dist/collection/playground/playground.bundled.js +846 -34
  120. package/dist/collection/theme/test/foundation.cmp.test.js +347 -0
  121. package/dist/collection/theme/tokens.js +828 -0
  122. package/dist/components/index.js +1 -1
  123. package/dist/components/p-0PieXMX9.js +1 -0
  124. package/dist/components/p-BOYjkCNa.js +1 -0
  125. package/dist/components/p-Bw4TVbfm.js +1 -0
  126. package/dist/components/{p-7oXL29Gu.js → p-BxFGkrUe.js} +1 -1
  127. package/dist/components/{p-CQofbR9q.js → p-CK7avZdv.js} +1 -1
  128. package/dist/components/p-Cx1vCuMp.js +1 -0
  129. package/dist/components/{p-Czf3kP0S.js → p-D0Q2vrt5.js} +1 -1
  130. package/dist/components/p-GU98U1DJ.js +1 -0
  131. package/dist/components/{p-C8fq-feq.js → p-NEolaUak.js} +1 -1
  132. package/dist/components/p-f95uguY1.js +1 -0
  133. package/dist/components/q-accordion.d.ts +11 -0
  134. package/dist/components/q-accordion.js +1 -0
  135. package/dist/components/q-alert.js +1 -1
  136. package/dist/components/q-avatar.js +1 -1
  137. package/dist/components/q-banner.d.ts +11 -0
  138. package/dist/components/q-banner.js +1 -0
  139. package/dist/components/q-button.js +1 -1
  140. package/dist/components/q-card.js +1 -1
  141. package/dist/components/q-carousel.js +1 -1
  142. package/dist/components/q-chip.js +1 -1
  143. package/dist/components/q-conversation-bubble.js +1 -1
  144. package/dist/components/q-data-table.js +1 -1
  145. package/dist/components/q-dialog.js +1 -1
  146. package/dist/components/q-dropdown.js +1 -1
  147. package/dist/components/q-form.js +1 -1
  148. package/dist/components/q-grid.d.ts +11 -0
  149. package/dist/components/q-grid.js +1 -0
  150. package/dist/components/q-icon.js +1 -1
  151. package/dist/components/q-inline.d.ts +11 -0
  152. package/dist/components/q-inline.js +1 -0
  153. package/dist/components/q-input.js +1 -1
  154. package/dist/components/q-link.js +1 -1
  155. package/dist/components/q-map.js +1 -1
  156. package/dist/components/q-media.d.ts +11 -0
  157. package/dist/components/q-media.js +1 -0
  158. package/dist/components/q-navbar.js +1 -1
  159. package/dist/components/q-pagination.js +1 -1
  160. package/dist/components/q-panel.js +1 -1
  161. package/dist/components/q-progress.js +1 -1
  162. package/dist/components/q-quantity-selector.js +1 -1
  163. package/dist/components/q-radio-group.js +1 -1
  164. package/dist/components/q-reel.js +1 -1
  165. package/dist/components/q-scrollable.js +1 -1
  166. package/dist/components/q-section.d.ts +11 -0
  167. package/dist/components/q-section.js +1 -0
  168. package/dist/components/q-sidepanel.js +3 -3
  169. package/dist/components/q-stack.d.ts +11 -0
  170. package/dist/components/q-stack.js +1 -0
  171. package/dist/components/q-step-diagram-item.js +1 -1
  172. package/dist/components/q-step-diagram.js +1 -1
  173. package/dist/components/q-syntax-box.js +2 -2
  174. package/dist/components/q-tabs.js +1 -1
  175. package/dist/components/q-textarea.js +1 -1
  176. package/dist/components/q-thumbnail.js +1 -1
  177. package/dist/components/q-toast.js +1 -1
  178. package/dist/components/q-toggle.js +1 -1
  179. package/dist/components/q-toolbar.js +1 -1
  180. package/dist/components/q-tooltip.js +1 -1
  181. package/dist/esm/{action.props-CJoxGHR7.js → action.props-GP1ameE3.js} +1 -1
  182. package/dist/esm/field-DkpyvZiX.js +11 -0
  183. package/dist/esm/{index-VFWyFa-_.js → index-DbGG9Q40.js} +1 -1
  184. package/dist/esm/loader.js +3 -3
  185. package/dist/esm/q-accordion.entry.js +16 -0
  186. package/dist/esm/q-alert.entry.js +1 -1
  187. package/dist/esm/q-avatar.entry.js +6 -6
  188. package/dist/esm/q-banner.entry.js +17 -0
  189. package/dist/esm/q-button_2.entry.js +7 -7
  190. package/dist/esm/q-card.entry.js +17 -6
  191. package/dist/esm/q-carousel.entry.js +3 -3
  192. package/dist/esm/q-chip.entry.js +2 -2
  193. package/dist/esm/q-conversation-bubble.entry.js +6 -6
  194. package/dist/esm/q-data-table.entry.js +4 -4
  195. package/dist/esm/q-dialog.entry.js +22 -8
  196. package/dist/esm/q-dropdown.entry.js +50 -6
  197. package/dist/esm/q-form.entry.js +11 -5
  198. package/dist/esm/q-grid.entry.js +22 -0
  199. package/dist/esm/q-icon.entry.js +16 -6
  200. package/dist/esm/q-inline.entry.js +20 -0
  201. package/dist/esm/q-input_2.entry.js +14 -7
  202. package/dist/esm/q-link.entry.js +5 -5
  203. package/dist/esm/q-map.entry.js +2 -2
  204. package/dist/esm/q-media.entry.js +19 -0
  205. package/dist/esm/q-navbar.entry.js +9 -6
  206. package/dist/esm/q-pagination.entry.js +2 -2
  207. package/dist/esm/q-panel.entry.js +17 -8
  208. package/dist/esm/q-quantity-selector.entry.js +15 -8
  209. package/dist/esm/q-radio-group.entry.js +14 -7
  210. package/dist/esm/q-reel.entry.js +3 -3
  211. package/dist/esm/q-scrollable.entry.js +4 -4
  212. package/dist/esm/q-section.entry.js +18 -0
  213. package/dist/esm/q-sidepanel.entry.js +14 -7
  214. package/dist/esm/q-stack.entry.js +18 -0
  215. package/dist/esm/q-step-diagram-item.entry.js +7 -4
  216. package/dist/esm/q-step-diagram.entry.js +21 -11
  217. package/dist/esm/q-syntax-box.entry.js +1 -1
  218. package/dist/esm/q-tabs.entry.js +3 -3
  219. package/dist/esm/q-textarea.entry.js +61 -7
  220. package/dist/esm/q-thumbnail.entry.js +3 -3
  221. package/dist/esm/q-toast.entry.js +3 -3
  222. package/dist/esm/q-toggle.entry.js +14 -6
  223. package/dist/esm/q-toolbar.entry.js +8 -4
  224. package/dist/esm/tokens-f95uguY1.js +38 -0
  225. package/dist/esm/webquark.js +3 -3
  226. package/dist/playground/build/p-0aea8464.entry.js +1 -0
  227. package/dist/playground/build/p-0d98e500.entry.js +1 -0
  228. package/dist/playground/build/p-139fec38.entry.js +1 -0
  229. package/dist/{webquark/p-0053ec76.entry.js → playground/build/p-15502232.entry.js} +1 -1
  230. package/dist/playground/build/p-17340abf.entry.js +1 -0
  231. package/dist/playground/build/p-303dcac8.entry.js +1 -0
  232. package/dist/playground/build/p-408bf48a.entry.js +1 -0
  233. package/dist/playground/build/p-47253466.entry.js +1 -0
  234. package/dist/playground/build/p-5f6860f2.entry.js +13 -0
  235. package/dist/playground/build/p-6b619655.entry.js +1 -0
  236. package/dist/playground/build/p-6b63922b.entry.js +1 -0
  237. package/dist/playground/build/p-71e3d582.entry.js +1 -0
  238. package/dist/playground/build/p-737ca99e.entry.js +1 -0
  239. package/dist/playground/build/{p-41421759.entry.js → p-742e39f1.entry.js} +1 -1
  240. package/dist/playground/build/p-8115ec23.entry.js +1 -0
  241. package/dist/playground/build/{p-8ada8fc6.entry.js → p-8ad43d7f.entry.js} +1 -1
  242. package/dist/playground/build/{p-885572ee.entry.js → p-8bdababd.entry.js} +1 -1
  243. package/dist/playground/build/p-9418caa0.entry.js +1 -0
  244. package/dist/playground/build/p-96ef2b54.entry.js +1 -0
  245. package/dist/playground/build/p-97dae970.entry.js +1 -0
  246. package/dist/{webquark/p-b5066051.entry.js → playground/build/p-989bdc1a.entry.js} +1 -1
  247. package/dist/playground/build/{p-DoS2fiWw.js → p-BqvCR2U8.js} +1 -1
  248. package/dist/playground/build/p-DbGG9Q40.js +3 -0
  249. package/dist/playground/build/p-JgeOdXyP.js +1 -0
  250. package/dist/playground/build/p-a4b36120.entry.js +1 -0
  251. package/dist/playground/build/p-abf54361.entry.js +1 -0
  252. package/dist/playground/build/p-aed4b219.entry.js +1 -0
  253. package/dist/playground/build/p-b3a07d94.entry.js +1 -0
  254. package/dist/{webquark/p-8077aa3f.entry.js → playground/build/p-b465aebd.entry.js} +1 -1
  255. package/dist/playground/build/p-c1f3dca6.entry.js +1 -0
  256. package/dist/playground/build/p-c4899c2b.entry.js +1 -0
  257. package/dist/{webquark/p-1c9a82b8.entry.js → playground/build/p-c4fd89b8.entry.js} +1 -1
  258. package/dist/playground/build/p-cf8f7f2a.entry.js +1 -0
  259. package/dist/playground/build/{p-2e2b3ca9.entry.js → p-d4a915e5.entry.js} +1 -1
  260. package/dist/{webquark/p-6c0bc4b9.entry.js → playground/build/p-d7d436c5.entry.js} +1 -1
  261. package/dist/playground/build/{p-316a92e2.entry.js → p-de8813be.entry.js} +1 -1
  262. package/dist/{webquark/p-8ec7d250.entry.js → playground/build/p-eb71e335.entry.js} +1 -1
  263. package/dist/playground/build/p-ecbc0fee.entry.js +1 -0
  264. package/dist/{webquark/p-d837603c.entry.js → playground/build/p-ed327679.entry.js} +1 -1
  265. package/dist/{webquark/p-e0e6b68f.entry.js → playground/build/p-f911c90f.entry.js} +1 -1
  266. package/dist/playground/build/p-f95uguY1.js +1 -0
  267. package/dist/playground/build/{p-5c08aa94.entry.js → p-fdd85ce4.entry.js} +1 -1
  268. package/dist/{webquark/p-13329777.entry.js → playground/build/p-ff1e2363.entry.js} +1 -1
  269. package/dist/playground/build/webquark.css +1 -1
  270. package/dist/playground/build/webquark.esm.js +1 -1
  271. package/dist/playground/playground/components.manifest.json +40 -35
  272. package/dist/playground/playground/specs/q-button.sandbox.json +3 -2
  273. package/dist/playground/playground/specs/q-card.sandbox.json +37 -3
  274. package/dist/playground/playground/specs/q-dialog.sandbox.json +16 -6
  275. package/dist/playground/playground/specs/q-dropdown.sandbox.json +12 -2
  276. package/dist/playground/playground/specs/q-form.sandbox.json +88 -10
  277. package/dist/playground/playground/specs/q-grid.sandbox.json +56 -0
  278. package/dist/playground/playground/specs/q-icon.sandbox.json +11 -11
  279. package/dist/playground/playground/specs/q-inline.sandbox.json +60 -0
  280. package/dist/playground/playground/specs/q-input.sandbox.json +12 -2
  281. package/dist/playground/playground/specs/q-navbar.sandbox.json +3 -3
  282. package/dist/playground/playground/specs/q-panel.sandbox.json +138 -17
  283. package/dist/playground/playground/specs/q-quantity-selector.sandbox.json +13 -2
  284. package/dist/playground/playground/specs/q-radio-group.sandbox.json +46 -10
  285. package/dist/playground/playground/specs/q-sidepanel.sandbox.json +7 -7
  286. package/dist/playground/playground/specs/q-stack.sandbox.json +56 -0
  287. package/dist/playground/playground/specs/q-step-diagram.sandbox.json +5 -5
  288. package/dist/playground/playground/specs/q-textarea.sandbox.json +20 -0
  289. package/dist/playground/playground/specs/q-toggle.sandbox.json +12 -2
  290. package/dist/playground/playground/specs/q-toolbar.sandbox.json +99 -14
  291. package/dist/playground/playground.js +846 -34
  292. package/dist/types/components/actions/button/button.types.d.ts +2 -1
  293. package/dist/types/components/actions/link/link.d.ts +1 -1
  294. package/dist/types/components/communication/toast/test/toast.cmp.test.d.ts +2 -0
  295. package/dist/types/components/communication/toast/test/toast.unit.test.d.ts +1 -0
  296. package/dist/types/components/content/banner/banner.d.ts +12 -0
  297. package/dist/types/components/content/banner/banner.types.d.ts +2 -0
  298. package/dist/types/components/{layout → content}/card/card.d.ts +11 -0
  299. package/dist/types/components/content/card/card.types.d.ts +1 -0
  300. package/dist/types/components/{layout → content}/card/card.utils.d.ts +1 -1
  301. package/dist/types/components/data-display/accordion/accordion.d.ts +9 -0
  302. package/dist/types/components/data-display/accordion/accordion.types.d.ts +1 -0
  303. package/dist/types/components/indicators/step-diagram/step-diagram.d.ts +6 -3
  304. package/dist/types/components/indicators/step-diagram/step-diagram.types.d.ts +3 -1
  305. package/dist/types/components/indicators/step-diagram-item/step-diagram-item.d.ts +4 -2
  306. package/dist/types/components/indicators/step-diagram-item/step-diagram-item.types.d.ts +3 -1
  307. package/dist/types/components/inputs/dropdown/dropdown.d.ts +13 -0
  308. package/dist/types/components/inputs/dropdown/dropdown.types.d.ts +2 -1
  309. package/dist/types/components/{layout → inputs}/form/form.d.ts +6 -0
  310. package/dist/types/components/inputs/input/input.d.ts +7 -1
  311. package/dist/types/components/inputs/input/input.types.d.ts +2 -1
  312. package/dist/types/components/inputs/quantity-selector/quantity-selector.d.ts +6 -1
  313. package/dist/types/components/inputs/quantity-selector/quantity-selector.types.d.ts +3 -1
  314. package/dist/types/components/inputs/radio-group/radio-group.d.ts +7 -1
  315. package/dist/types/components/inputs/radio-group/radio-group.types.d.ts +2 -1
  316. package/dist/types/components/inputs/textarea/textarea.d.ts +16 -1
  317. package/dist/types/components/inputs/toggle/toggle.d.ts +6 -0
  318. package/dist/types/components/inputs/toggle/toggle.types.d.ts +2 -1
  319. package/dist/types/components/layout/grid/grid.d.ts +13 -0
  320. package/dist/types/components/layout/inline/inline.d.ts +12 -0
  321. package/dist/types/components/layout/navbar/navbar.d.ts +2 -0
  322. package/dist/types/components/layout/panel/panel.d.ts +8 -0
  323. package/dist/types/components/layout/panel/panel.types.d.ts +2 -1
  324. package/dist/types/components/layout/section/section.d.ts +13 -0
  325. package/dist/types/components/layout/section/section.types.d.ts +1 -0
  326. package/dist/types/components/layout/sidepanel/sidepanel.d.ts +7 -0
  327. package/dist/types/components/layout/stack/stack.d.ts +10 -0
  328. package/dist/types/components/layout/toolbar/toolbar.d.ts +4 -0
  329. package/dist/types/components/media/avatar/avatar.d.ts +4 -4
  330. package/dist/types/components/media/icon/icon.d.ts +7 -3
  331. package/dist/types/components/media/media/media.d.ts +13 -0
  332. package/dist/types/components/media/media/media.types.d.ts +2 -0
  333. package/dist/types/components/overlays/dialog/dialog.d.ts +14 -2
  334. package/dist/types/components/shared/field.d.ts +3 -0
  335. package/dist/types/components/shared/test/orientation.cmp.test.d.ts +1 -0
  336. package/dist/types/components.d.ts +887 -66
  337. package/dist/types/index.d.ts +7 -2
  338. package/dist/types/playground/components/theme-designer/token-row.d.ts +2 -1
  339. package/dist/types/theme/test/assets.d.ts +4 -0
  340. package/dist/types/theme/test/foundation.cmp.test.d.ts +16 -0
  341. package/dist/types/theme/tokens.d.ts +63 -0
  342. package/dist/webquark/p-0aea8464.entry.js +1 -0
  343. package/dist/webquark/p-0d98e500.entry.js +1 -0
  344. package/dist/webquark/p-139fec38.entry.js +1 -0
  345. package/dist/{playground/build/p-0053ec76.entry.js → webquark/p-15502232.entry.js} +1 -1
  346. package/dist/webquark/p-17340abf.entry.js +1 -0
  347. package/dist/webquark/p-303dcac8.entry.js +1 -0
  348. package/dist/webquark/p-408bf48a.entry.js +1 -0
  349. package/dist/webquark/p-47253466.entry.js +1 -0
  350. package/dist/webquark/p-5f6860f2.entry.js +13 -0
  351. package/dist/webquark/p-6b619655.entry.js +1 -0
  352. package/dist/webquark/p-6b63922b.entry.js +1 -0
  353. package/dist/webquark/p-71e3d582.entry.js +1 -0
  354. package/dist/webquark/p-737ca99e.entry.js +1 -0
  355. package/dist/webquark/{p-41421759.entry.js → p-742e39f1.entry.js} +1 -1
  356. package/dist/webquark/p-8115ec23.entry.js +1 -0
  357. package/dist/webquark/{p-8ada8fc6.entry.js → p-8ad43d7f.entry.js} +1 -1
  358. package/dist/webquark/{p-885572ee.entry.js → p-8bdababd.entry.js} +1 -1
  359. package/dist/webquark/p-9418caa0.entry.js +1 -0
  360. package/dist/webquark/p-96ef2b54.entry.js +1 -0
  361. package/dist/webquark/p-97dae970.entry.js +1 -0
  362. package/dist/{playground/build/p-b5066051.entry.js → webquark/p-989bdc1a.entry.js} +1 -1
  363. package/dist/webquark/{p-DoS2fiWw.js → p-BqvCR2U8.js} +1 -1
  364. package/dist/webquark/p-DbGG9Q40.js +3 -0
  365. package/dist/webquark/p-JgeOdXyP.js +1 -0
  366. package/dist/webquark/p-a4b36120.entry.js +1 -0
  367. package/dist/webquark/p-abf54361.entry.js +1 -0
  368. package/dist/webquark/p-aed4b219.entry.js +1 -0
  369. package/dist/webquark/p-b3a07d94.entry.js +1 -0
  370. package/dist/{playground/build/p-8077aa3f.entry.js → webquark/p-b465aebd.entry.js} +1 -1
  371. package/dist/webquark/p-c1f3dca6.entry.js +1 -0
  372. package/dist/webquark/p-c4899c2b.entry.js +1 -0
  373. package/dist/{playground/build/p-1c9a82b8.entry.js → webquark/p-c4fd89b8.entry.js} +1 -1
  374. package/dist/webquark/p-cf8f7f2a.entry.js +1 -0
  375. package/dist/webquark/{p-2e2b3ca9.entry.js → p-d4a915e5.entry.js} +1 -1
  376. package/dist/{playground/build/p-6c0bc4b9.entry.js → webquark/p-d7d436c5.entry.js} +1 -1
  377. package/dist/webquark/{p-316a92e2.entry.js → p-de8813be.entry.js} +1 -1
  378. package/dist/{playground/build/p-8ec7d250.entry.js → webquark/p-eb71e335.entry.js} +1 -1
  379. package/dist/webquark/p-ecbc0fee.entry.js +1 -0
  380. package/dist/{playground/build/p-d837603c.entry.js → webquark/p-ed327679.entry.js} +1 -1
  381. package/dist/{playground/build/p-e0e6b68f.entry.js → webquark/p-f911c90f.entry.js} +1 -1
  382. package/dist/webquark/p-f95uguY1.js +1 -0
  383. package/dist/webquark/{p-5c08aa94.entry.js → p-fdd85ce4.entry.js} +1 -1
  384. package/dist/{playground/build/p-13329777.entry.js → webquark/p-ff1e2363.entry.js} +1 -1
  385. package/dist/webquark/webquark.css +1 -1
  386. package/dist/webquark/webquark.esm.js +1 -1
  387. package/package.json +68 -5
  388. package/scripts/wq-switch/README.md +113 -0
  389. package/scripts/wq-switch/dist/index.js +530 -0
  390. package/scripts/wq-switch/dist/setup.js +333 -0
  391. package/dist/collection/components/layout/card/card.js +0 -168
  392. package/dist/collection/components/layout/form/form.css +0 -49
  393. package/dist/components/p-BygmcFxM.js +0 -1
  394. package/dist/components/p-CVtof65h.js +0 -1
  395. package/dist/components/p-I81wUKud.js +0 -1
  396. package/dist/components/p-vv3X99Ji.js +0 -1
  397. package/dist/playground/build/p-0363c0e6.entry.js +0 -1
  398. package/dist/playground/build/p-0e3dbe01.entry.js +0 -1
  399. package/dist/playground/build/p-226c2f79.entry.js +0 -13
  400. package/dist/playground/build/p-38b92be6.entry.js +0 -1
  401. package/dist/playground/build/p-42831108.entry.js +0 -1
  402. package/dist/playground/build/p-50ca27f7.entry.js +0 -1
  403. package/dist/playground/build/p-611ef3e0.entry.js +0 -1
  404. package/dist/playground/build/p-684292dd.entry.js +0 -1
  405. package/dist/playground/build/p-7081c96b.entry.js +0 -1
  406. package/dist/playground/build/p-789eb3c9.entry.js +0 -1
  407. package/dist/playground/build/p-8d0aa5a7.entry.js +0 -1
  408. package/dist/playground/build/p-9978ae38.entry.js +0 -1
  409. package/dist/playground/build/p-VFWyFa-_.js +0 -3
  410. package/dist/playground/build/p-b99541cd.entry.js +0 -1
  411. package/dist/playground/build/p-ca1a1d25.entry.js +0 -1
  412. package/dist/playground/build/p-e15e6d76.entry.js +0 -1
  413. package/dist/playground/build/p-e272dd45.entry.js +0 -1
  414. package/dist/playground/build/p-e8003179.entry.js +0 -1
  415. package/dist/types/components/layout/card/card.types.d.ts +0 -1
  416. package/dist/types/components/overlays/toast/test/toast.cmp.test.d.ts +0 -2
  417. package/dist/webquark/p-0363c0e6.entry.js +0 -1
  418. package/dist/webquark/p-0e3dbe01.entry.js +0 -1
  419. package/dist/webquark/p-226c2f79.entry.js +0 -13
  420. package/dist/webquark/p-38b92be6.entry.js +0 -1
  421. package/dist/webquark/p-42831108.entry.js +0 -1
  422. package/dist/webquark/p-50ca27f7.entry.js +0 -1
  423. package/dist/webquark/p-611ef3e0.entry.js +0 -1
  424. package/dist/webquark/p-684292dd.entry.js +0 -1
  425. package/dist/webquark/p-7081c96b.entry.js +0 -1
  426. package/dist/webquark/p-789eb3c9.entry.js +0 -1
  427. package/dist/webquark/p-8d0aa5a7.entry.js +0 -1
  428. package/dist/webquark/p-9978ae38.entry.js +0 -1
  429. package/dist/webquark/p-VFWyFa-_.js +0 -3
  430. package/dist/webquark/p-b99541cd.entry.js +0 -1
  431. package/dist/webquark/p-ca1a1d25.entry.js +0 -1
  432. package/dist/webquark/p-e15e6d76.entry.js +0 -1
  433. package/dist/webquark/p-e272dd45.entry.js +0 -1
  434. package/dist/webquark/p-e8003179.entry.js +0 -1
  435. package/dist/collection/components/{data-display → communication}/alert/alert.css +0 -0
  436. package/dist/collection/components/{data-display → communication}/alert/alert.types.js +0 -0
  437. package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.css +0 -0
  438. package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.types.js +0 -0
  439. package/dist/collection/components/{overlays → communication}/toast/internals/icons.js +0 -0
  440. package/dist/collection/components/{overlays → communication}/toast/internals/queue.js +0 -0
  441. package/dist/collection/components/{overlays → communication}/toast/internals/timers.js +0 -0
  442. package/dist/collection/components/{overlays → communication}/toast/test/toast.unit.test.js +0 -0
  443. package/dist/collection/components/{overlays → communication}/toast/toast-controller.js +0 -0
  444. package/dist/collection/components/{overlays → communication}/toast/toast.css +0 -0
  445. package/dist/collection/components/{overlays → communication}/toast/toast.types.js +0 -0
  446. package/dist/collection/components/{actions/chip/chip.types.js → content/banner/banner.types.js} +0 -0
  447. package/dist/collection/components/{layout → content}/card/card.types.js +0 -0
  448. package/dist/collection/components/{layout → content}/card/card.utils.js +0 -0
  449. package/dist/collection/components/{layout → content}/carousel/carousel.css +0 -0
  450. package/dist/collection/components/{layout → content}/carousel/carousel.types.js +0 -0
  451. package/dist/collection/components/{layout → content}/carousel/carousel.utils.js +0 -0
  452. package/dist/collection/components/{layout → content}/carousel/internals/metrics.js +0 -0
  453. package/dist/collection/components/{layout/form/form.types.js → data-display/accordion/accordion.types.js} +0 -0
  454. package/dist/collection/components/{actions → data-display}/chip/chip.css +0 -0
  455. package/dist/{types/components/overlays/toast/test/toast.unit.test.d.ts → collection/components/data-display/chip/chip.types.js} +0 -0
  456. package/dist/collection/components/{layout → inputs}/form/internals/controls.js +0 -0
  457. package/dist/collection/components/{layout → inputs}/form/internals/enter-behavior.js +0 -0
  458. package/dist/collection/components/{layout → inputs}/form/internals/values.js +0 -0
  459. package/dist/collection/components/{layout → inputs}/form/test/form.cmp.test.js +0 -0
  460. package/dist/types/components/{data-display → communication}/alert/alert.d.ts +0 -0
  461. package/dist/types/components/{data-display → communication}/alert/alert.types.d.ts +0 -0
  462. package/dist/types/components/{data-display → communication}/conversation-bubble/conversation-bubble.d.ts +3 -3
  463. /package/dist/types/components/{data-display → communication}/conversation-bubble/conversation-bubble.types.d.ts +0 -0
  464. /package/dist/types/components/{overlays → communication}/toast/internals/icons.d.ts +0 -0
  465. /package/dist/types/components/{overlays → communication}/toast/internals/queue.d.ts +0 -0
  466. /package/dist/types/components/{overlays → communication}/toast/internals/timers.d.ts +0 -0
  467. /package/dist/types/components/{overlays → communication}/toast/toast-controller.d.ts +0 -0
  468. /package/dist/types/components/{overlays → communication}/toast/toast.d.ts +0 -0
  469. /package/dist/types/components/{overlays → communication}/toast/toast.types.d.ts +0 -0
  470. /package/dist/types/components/{layout → content}/carousel/carousel.d.ts +0 -0
  471. /package/dist/types/components/{layout → content}/carousel/carousel.types.d.ts +0 -0
  472. /package/dist/types/components/{layout → content}/carousel/carousel.utils.d.ts +0 -0
  473. /package/dist/types/components/{layout → content}/carousel/internals/metrics.d.ts +0 -0
  474. /package/dist/types/components/{actions → data-display}/chip/chip.d.ts +0 -0
  475. /package/dist/types/components/{actions → data-display}/chip/chip.types.d.ts +0 -0
  476. /package/dist/types/components/{layout → inputs}/form/form.types.d.ts +0 -0
  477. /package/dist/types/components/{layout → inputs}/form/internals/controls.d.ts +0 -0
  478. /package/dist/types/components/{layout → inputs}/form/internals/enter-behavior.d.ts +0 -0
  479. /package/dist/types/components/{layout → inputs}/form/internals/values.d.ts +0 -0
  480. /package/dist/types/components/{layout → inputs}/form/test/form.cmp.test.d.ts +0 -0
@@ -0,0 +1,333 @@
1
+ #!/usr/bin/env node
2
+
3
+ // scripts/wq-switch/config.ts
4
+ var import_node_fs = require("node:fs");
5
+ var import_node_path = require("node:path");
6
+ var names = ["@webquark/core", "@webquark/angular", "@webquark/react"];
7
+ function json(file) {
8
+ return JSON.parse(import_node_fs.readFileSync(file, "utf8"));
9
+ }
10
+ function manifest(root) {
11
+ return json(import_node_path.join(root, "package.json"));
12
+ }
13
+ function writeJson(file, value) {
14
+ import_node_fs.mkdirSync(import_node_path.dirname(file), { recursive: true });
15
+ const temporary = `${file}.${process.pid}.tmp`;
16
+ import_node_fs.writeFileSync(temporary, JSON.stringify(value, null, 2) + `
17
+ `);
18
+ import_node_fs.renameSync(temporary, file);
19
+ }
20
+ function consumerRoot(cwd = process.cwd()) {
21
+ let root = import_node_path.resolve(cwd);
22
+ while (!import_node_fs.existsSync(import_node_path.join(root, "package.json"))) {
23
+ const parent = import_node_path.dirname(root);
24
+ if (parent === root)
25
+ throw new Error("Run this command inside the consuming project.");
26
+ root = parent;
27
+ }
28
+ if (manifest(root).name === "@webquark/core")
29
+ throw new Error("Run wq-switch in the consuming app, not the WebQuark repository.");
30
+ return import_node_fs.realpathSync(root);
31
+ }
32
+ function validateSource(source) {
33
+ const root = import_node_fs.realpathSync(import_node_path.resolve(source));
34
+ if (manifest(root).name !== "@webquark/core" || !manifest(root).scripts?.["packages:build"] || manifest(import_node_path.join(root, "packages/angular")).name !== "@webquark/angular" || manifest(import_node_path.join(root, "packages/react")).name !== "@webquark/react") {
35
+ throw new Error("Source must be the WebQuark repository root, with packages:build and both wrappers.");
36
+ }
37
+ return root;
38
+ }
39
+ function sourceFor(root) {
40
+ const file = import_node_path.join(root, ".wq-switch.json");
41
+ if (!import_node_fs.existsSync(file))
42
+ throw new Error("First run: wq-setup");
43
+ const config = json(file);
44
+ if (config.version !== 1 || typeof config.source !== "string")
45
+ throw new Error("Invalid .wq-switch.json. Run setup again.");
46
+ if (!config.source.trim())
47
+ throw new Error('Set source in .wq-switch.json to your WebQuark repository, or run wq-setup --source "path/to/WebQuark".');
48
+ return validateSource(import_node_path.resolve(root, config.source));
49
+ }
50
+ function selectedPackages(root) {
51
+ const pkg = manifest(root);
52
+ const dependencies = { ...pkg.dependencies, ...pkg.devDependencies };
53
+ if (!dependencies["@webquark/core"])
54
+ throw new Error("The consuming project must declare @webquark/core.");
55
+ return names.filter((name) => dependencies[name]);
56
+ }
57
+
58
+ // scripts/wq-switch/commands/setup.ts
59
+ var import_node_fs3 = require("node:fs");
60
+ var import_node_path3 = require("node:path");
61
+
62
+ // scripts/wq-switch/state.ts
63
+ var import_node_fs2 = require("node:fs");
64
+ var import_node_path2 = require("node:path");
65
+ var import_node_crypto = require("node:crypto");
66
+ var import_node_os = require("node:os");
67
+ function identity(file) {
68
+ const stat = import_node_fs2.statSync(file);
69
+ return `${stat.dev}:${stat.ino}`;
70
+ }
71
+ var home = (root) => import_node_path2.join(root, ".wq-switch");
72
+ var stateFile = (root) => import_node_path2.join(home(root), "state.json");
73
+ var journalFile = (root) => import_node_path2.join(home(root), "journal.json");
74
+ function present(file) {
75
+ try {
76
+ import_node_fs2.lstatSync(file);
77
+ return true;
78
+ } catch (error) {
79
+ if (error.code === "ENOENT")
80
+ return false;
81
+ throw error;
82
+ }
83
+ }
84
+ function within(parent, child) {
85
+ const r = import_node_path2.relative(parent, child);
86
+ return r !== "" && !r.startsWith("..") && !import_node_path2.isAbsolute(r);
87
+ }
88
+ function linkTarget(file) {
89
+ if (!present(file) || !import_node_fs2.lstatSync(file).isSymbolicLink())
90
+ return null;
91
+ return import_node_path2.resolve(import_node_path2.dirname(file), import_node_fs2.readlinkSync(file));
92
+ }
93
+ function link(target, file) {
94
+ import_node_fs2.mkdirSync(import_node_path2.dirname(file), { recursive: true });
95
+ import_node_fs2.symlinkSync(target, file, process.platform === "win32" ? "junction" : "dir");
96
+ }
97
+ function validateState(root, state) {
98
+ if (state.version !== 1 || !Array.isArray(state.entries))
99
+ throw new Error("Unsupported switch state.");
100
+ for (const entry of state.entries) {
101
+ if (!names.includes(entry.name) || entry.slot !== import_node_path2.join(root, "node_modules", entry.name) || import_node_path2.dirname(entry.backup) !== import_node_path2.dirname(entry.slot) || !entry.backup.startsWith(entry.slot + ".wq-original-") || !within(import_node_path2.join(home(root), "packages"), entry.target))
102
+ throw new Error("Invalid switch state paths; refusing filesystem changes.");
103
+ }
104
+ }
105
+ function readState(root) {
106
+ if (!import_node_fs2.existsSync(stateFile(root)))
107
+ return null;
108
+ const state = json(stateFile(root));
109
+ validateState(root, state);
110
+ return state;
111
+ }
112
+ function saveState(root, state) {
113
+ if (state)
114
+ writeJson(stateFile(root), state);
115
+ else if (import_node_fs2.existsSync(stateFile(root)))
116
+ import_node_fs2.unlinkSync(stateFile(root));
117
+ }
118
+ function assertActive(state) {
119
+ for (const entry of state.entries) {
120
+ if (linkTarget(entry.slot) !== entry.target)
121
+ throw new Error(`${entry.name} was changed by another install. Refusing to overwrite it.`);
122
+ if (entry.identity && (!present(entry.backup) || identity(entry.backup) !== entry.identity))
123
+ throw new Error(`Original package backup is missing or changed: ${entry.backup}`);
124
+ }
125
+ }
126
+ function hasJournal(root) {
127
+ return import_node_fs2.existsSync(journalFile(root));
128
+ }
129
+ function removeExpectedLink(slot, expected) {
130
+ if (linkTarget(slot) !== expected)
131
+ throw new Error(`Package connection changed: ${slot}`);
132
+ import_node_fs2.unlinkSync(slot);
133
+ }
134
+ function validateJournal(root, journal) {
135
+ if (journal.previous)
136
+ validateState(root, journal.previous);
137
+ if (journal.next)
138
+ validateState(root, journal.next);
139
+ const entries = [...journal.previous?.entries ?? [], ...journal.next?.entries ?? []];
140
+ for (const op of journal.operations) {
141
+ const matching = entries.filter((entry) => entry.slot === op.slot);
142
+ if (!matching.length || op.move && !matching.some((entry) => entry.backup === op.move) || [op.before, op.after].some((target) => target !== null && !matching.some((entry) => entry.target === target)))
143
+ throw new Error("Invalid recovery journal.");
144
+ }
145
+ }
146
+ function recover(root) {
147
+ if (!hasJournal(root))
148
+ return;
149
+ const journal = json(journalFile(root));
150
+ validateJournal(root, journal);
151
+ for (const op of [...journal.operations].reverse()) {
152
+ if (op.move) {
153
+ const entry = journal.next.entries.find((entry2) => entry2.slot === op.slot);
154
+ if (!entry.identity) {
155
+ if (present(op.slot))
156
+ removeExpectedLink(op.slot, op.after);
157
+ continue;
158
+ }
159
+ if (present(op.move)) {
160
+ if (present(op.slot))
161
+ removeExpectedLink(op.slot, op.after);
162
+ import_node_fs2.renameSync(op.move, op.slot);
163
+ } else if (!present(op.slot) || identity(op.slot) !== entry.identity)
164
+ throw new Error(`Recovery needs the original package: ${op.slot}`);
165
+ } else if (op.after === null) {
166
+ const entry = journal.previous.entries.find((entry2) => entry2.slot === op.slot);
167
+ if (entry.identity && !present(entry.backup)) {
168
+ if (!present(op.slot) || identity(op.slot) !== entry.identity)
169
+ throw new Error(`Recovery found an unexpected package: ${op.slot}`);
170
+ import_node_fs2.renameSync(op.slot, entry.backup);
171
+ }
172
+ if (!present(op.slot))
173
+ link(op.before, op.slot);
174
+ else if (linkTarget(op.slot) !== op.before)
175
+ throw new Error(`Recovery found an unexpected connection: ${op.slot}`);
176
+ } else {
177
+ const current = linkTarget(op.slot);
178
+ if (current === op.after)
179
+ removeExpectedLink(op.slot, op.after);
180
+ else if (present(op.slot) && current !== op.before)
181
+ throw new Error(`Recovery found an unexpected connection: ${op.slot}`);
182
+ if (!present(op.slot))
183
+ link(op.before, op.slot);
184
+ }
185
+ }
186
+ saveState(root, journal.previous);
187
+ import_node_fs2.unlinkSync(journalFile(root));
188
+ }
189
+ function activate(root, next) {
190
+ validateState(root, next);
191
+ const previous = readState(root);
192
+ if (previous)
193
+ assertActive(previous);
194
+ const operations = next.entries.map((entry) => {
195
+ const old = previous?.entries.find((old2) => old2.name === entry.name);
196
+ if (!old && (present(entry.backup) || (entry.identity ? !present(entry.slot) || identity(entry.slot) !== entry.identity : present(entry.slot))))
197
+ throw new Error(`Original connection changed: ${entry.name}`);
198
+ return { slot: entry.slot, before: old?.target ?? null, after: entry.target, ...old ? {} : { move: entry.backup } };
199
+ });
200
+ writeJson(journalFile(root), { previous, next, operations });
201
+ try {
202
+ for (const op of operations) {
203
+ if (op.move) {
204
+ if (present(op.slot))
205
+ import_node_fs2.renameSync(op.slot, op.move);
206
+ } else
207
+ removeExpectedLink(op.slot, op.before);
208
+ link(op.after, op.slot);
209
+ }
210
+ saveState(root, next);
211
+ import_node_fs2.unlinkSync(journalFile(root));
212
+ } catch (error) {
213
+ recover(root);
214
+ throw error;
215
+ }
216
+ }
217
+ function restore(root) {
218
+ const previous = readState(root);
219
+ if (!previous)
220
+ return;
221
+ assertActive(previous);
222
+ const operations = previous.entries.map((entry) => ({ slot: entry.slot, before: entry.target, after: null }));
223
+ writeJson(journalFile(root), { previous, next: null, operations });
224
+ try {
225
+ for (const entry of previous.entries) {
226
+ removeExpectedLink(entry.slot, entry.target);
227
+ if (entry.identity)
228
+ import_node_fs2.renameSync(entry.backup, entry.slot);
229
+ }
230
+ saveState(root, null);
231
+ import_node_fs2.unlinkSync(journalFile(root));
232
+ } catch (error) {
233
+ recover(root);
234
+ throw error;
235
+ }
236
+ }
237
+ function originalEntry(root, name, target) {
238
+ const slot = import_node_path2.join(root, "node_modules", name);
239
+ return { name, slot, backup: `${slot}.wq-original-${import_node_crypto.randomUUID()}`, original: present(slot) ? import_node_fs2.realpathSync(slot) : "", identity: present(slot) ? identity(slot) : "", target };
240
+ }
241
+ async function locked(key, action) {
242
+ const file = import_node_path2.join(import_node_os.tmpdir(), `wq-switch-${import_node_crypto.createHash("sha256").update(key.toLowerCase()).digest("hex")}.lock`);
243
+ const content = JSON.stringify({ pid: process.pid, id: import_node_crypto.randomUUID() });
244
+ try {
245
+ import_node_fs2.writeFileSync(file, content, { flag: "wx" });
246
+ } catch (error) {
247
+ if (error.code !== "EEXIST")
248
+ throw error;
249
+ const previous = import_node_fs2.readFileSync(file, "utf8");
250
+ const { pid } = JSON.parse(previous);
251
+ let alive = true;
252
+ try {
253
+ process.kill(pid, 0);
254
+ } catch (e) {
255
+ if (e.code === "ESRCH")
256
+ alive = false;
257
+ }
258
+ if (alive)
259
+ throw new Error(`Another switch/build is running (PID ${pid}).`);
260
+ if (import_node_fs2.readFileSync(file, "utf8") !== previous)
261
+ throw new Error("Lock changed; retry.");
262
+ import_node_fs2.unlinkSync(file);
263
+ import_node_fs2.writeFileSync(file, content, { flag: "wx" });
264
+ }
265
+ try {
266
+ return await action();
267
+ } finally {
268
+ if (import_node_fs2.existsSync(file) && import_node_fs2.readFileSync(file, "utf8") === content)
269
+ import_node_fs2.unlinkSync(file);
270
+ }
271
+ }
272
+
273
+ // scripts/wq-switch/commands/setup.ts
274
+ function setup(root, source) {
275
+ selectedPackages(root);
276
+ if (readState(root))
277
+ throw new Error("Run wq-switch npm before changing configuration.");
278
+ const file = import_node_path3.join(root, ".wq-switch.json");
279
+ const previous = import_node_fs3.existsSync(file) ? json(file) : undefined;
280
+ if (previous && (previous.version !== 1 || typeof previous.source !== "string" || previous.preferredVersion !== undefined && typeof previous.preferredVersion !== "string"))
281
+ throw new Error("Invalid .wq-switch.json; existing configuration was not overwritten.");
282
+ const pkg = manifest(root);
283
+ const scripts = { "wq-sandbox": "wq-sandbox", "wq-switch": "wq-switch" };
284
+ for (const [name, command] of Object.entries(scripts)) {
285
+ if (pkg.scripts?.[name] && pkg.scripts[name] !== command)
286
+ throw new Error(`package.json already has a custom ${name} script. Rename it before running setup; no files were changed.`);
287
+ }
288
+ const config = {
289
+ ...previous,
290
+ version: 1,
291
+ source: source === undefined ? previous?.source ?? "" : validateSource(import_node_path3.resolve(root, source)),
292
+ preferredVersion: previous?.preferredVersion ?? pkg.dependencies?.["@webquark/core"] ?? pkg.devDependencies["@webquark/core"]
293
+ };
294
+ writeJson(file, config);
295
+ writeJson(import_node_path3.join(root, "package.json"), { ...pkg, scripts: { ...pkg.scripts, ...scripts } });
296
+ const ignore = import_node_path3.join(root, ".gitignore");
297
+ const current = import_node_fs3.existsSync(ignore) ? import_node_fs3.readFileSync(ignore, "utf8") : "";
298
+ const missing = ["/.wq-switch.json", "/.wq-switch/", "/node_modules/"].filter((line) => !current.split(/\r?\n/).includes(line));
299
+ if (missing.length)
300
+ import_node_fs3.appendFileSync(ignore, `
301
+ # Local WebQuark development
302
+ ` + missing.join(`
303
+ `) + `
304
+ `);
305
+ console.log(`Created/updated .wq-switch.json and package scripts.
306
+ Preferred release: ${config.preferredVersion}
307
+ ${config.source ? `Source: ${config.source}
308
+ Next: bun run wq-switch local` : "Next: fill in source in .wq-switch.json before switching locally."}
309
+ Sandbox: bun run wq-sandbox
310
+ Status: bun run wq-switch status`);
311
+ }
312
+
313
+ // scripts/wq-switch/setup.ts
314
+ async function main() {
315
+ const args = process.argv.slice(2);
316
+ const help = `wq-setup [--source <path>]
317
+ Creates .wq-switch.json and wq-sandbox/wq-switch package scripts in the consuming project.`;
318
+ if (args.length === 1 && ["--help", "-h"].includes(args[0])) {
319
+ console.log(help);
320
+ return;
321
+ }
322
+ if (args.length && (args.length !== 2 || args[0] !== "--source"))
323
+ throw new Error(help);
324
+ const root = consumerRoot();
325
+ await locked(`consumer:${root}`, async () => {
326
+ recover(root);
327
+ setup(root, args[1]);
328
+ });
329
+ }
330
+ main().catch((error) => {
331
+ console.error(`wq-setup: ${error.message}`);
332
+ process.exitCode = 1;
333
+ });
@@ -1,168 +0,0 @@
1
- import { h } from "@stencil/core";
2
- import { getSlottedElements } from "../../../utils/dom";
3
- import { normalizeCardElevation, shouldActivateCardFromKey } from "./card.utils";
4
- /**
5
- * Flexible content card with optional header slot, elevation, glass, lift, and interactive button semantics.
6
- * @slot header - Optional header content, hidden automatically when empty.
7
- * @slot - Main card body content.
8
- * @part header - Header slot container.
9
- * @part body - Body slot container.
10
- */
11
- export class QCard {
12
- // ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
13
- el;
14
- /** Numeric values remain supported as legacy elevation aliases. */
15
- elevation = 'medium';
16
- /** Applies translucent glass styling without backdrop-filter. */
17
- glass = false;
18
- /** Applies a visual hover/focus lift without adding interactive semantics. */
19
- lift = false;
20
- /** Adds button semantics and keyboard activation to the card container. */
21
- interactive = false;
22
- // ========================= [2] INTERNAL STATE & REFS =========================
23
- hasHeader = false;
24
- checkHeaderSlot = () => {
25
- const headerContainer = this.el.shadowRoot?.querySelector('.card-header');
26
- if (headerContainer) {
27
- const elements = getSlottedElements(headerContainer);
28
- this.hasHeader = elements.length > 0;
29
- }
30
- else {
31
- this.hasHeader = false;
32
- }
33
- };
34
- // ========================= [3] LIFECYCLE & WATCHERS ==========================
35
- componentDidLoad() {
36
- this.checkHeaderSlot();
37
- }
38
- // =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
39
- handleKeyDown = (e) => {
40
- if (shouldActivateCardFromKey(this.interactive, e.key, e.target, e.currentTarget)) {
41
- e.preventDefault();
42
- e.currentTarget.click();
43
- }
44
- };
45
- // ===================== [6] RENDER (Visual Template Only) =====================
46
- render() {
47
- const elevationClass = normalizeCardElevation(this.elevation);
48
- return (h("div", { key: 'd62ed3a68c56f6858a22e6704decde705fb658e4', class: {
49
- 'card-container': true,
50
- [`elevation-${elevationClass}`]: true,
51
- 'is-interactive': this.interactive,
52
- 'is-glass': this.glass,
53
- 'has-lift': this.lift,
54
- }, tabindex: this.interactive ? 0 : undefined, role: this.interactive ? 'button' : undefined, onKeyDown: this.interactive ? this.handleKeyDown : undefined }, h("div", { key: 'bb0c57733ac53b8e7118d7384b2f784a7edfb328', class: {
55
- 'card-header': true,
56
- 'is-hidden': !this.hasHeader,
57
- }, part: "header" }, h("slot", { key: 'ac582ddceadbff40d250dbc15ecdc29c1a0f970f', name: "header", onSlotchange: this.checkHeaderSlot })), h("div", { key: 'ed47b73b524f782ec16f02281b1484bdf4ae73ba', class: "card-body", part: "body" }, h("slot", { key: 'ffbe8cc195cc6e9b1b85a6bfd213928cf225217a' }))));
58
- }
59
- static get is() { return "q-card"; }
60
- static get encapsulation() { return "shadow"; }
61
- static get originalStyleUrls() {
62
- return {
63
- "$": ["card.css"]
64
- };
65
- }
66
- static get styleUrls() {
67
- return {
68
- "$": ["card.css"]
69
- };
70
- }
71
- static get properties() {
72
- return {
73
- "elevation": {
74
- "type": "any",
75
- "mutable": false,
76
- "complexType": {
77
- "original": "QCardElevation",
78
- "resolved": "\"high\" | \"low\" | \"medium\" | 1 | 2 | 3",
79
- "references": {
80
- "QCardElevation": {
81
- "location": "import",
82
- "path": "./card.types",
83
- "id": "src/components/layout/card/card.types.ts::QCardElevation",
84
- "referenceLocation": "QCardElevation"
85
- }
86
- }
87
- },
88
- "required": false,
89
- "optional": false,
90
- "docs": {
91
- "tags": [],
92
- "text": "Numeric values remain supported as legacy elevation aliases."
93
- },
94
- "getter": false,
95
- "setter": false,
96
- "reflect": true,
97
- "attribute": "elevation",
98
- "defaultValue": "'medium'"
99
- },
100
- "glass": {
101
- "type": "boolean",
102
- "mutable": false,
103
- "complexType": {
104
- "original": "boolean",
105
- "resolved": "boolean",
106
- "references": {}
107
- },
108
- "required": false,
109
- "optional": false,
110
- "docs": {
111
- "tags": [],
112
- "text": "Applies translucent glass styling without backdrop-filter."
113
- },
114
- "getter": false,
115
- "setter": false,
116
- "reflect": true,
117
- "attribute": "glass",
118
- "defaultValue": "false"
119
- },
120
- "lift": {
121
- "type": "boolean",
122
- "mutable": false,
123
- "complexType": {
124
- "original": "boolean",
125
- "resolved": "boolean",
126
- "references": {}
127
- },
128
- "required": false,
129
- "optional": false,
130
- "docs": {
131
- "tags": [],
132
- "text": "Applies a visual hover/focus lift without adding interactive semantics."
133
- },
134
- "getter": false,
135
- "setter": false,
136
- "reflect": true,
137
- "attribute": "lift",
138
- "defaultValue": "false"
139
- },
140
- "interactive": {
141
- "type": "boolean",
142
- "mutable": false,
143
- "complexType": {
144
- "original": "boolean",
145
- "resolved": "boolean",
146
- "references": {}
147
- },
148
- "required": false,
149
- "optional": false,
150
- "docs": {
151
- "tags": [],
152
- "text": "Adds button semantics and keyboard activation to the card container."
153
- },
154
- "getter": false,
155
- "setter": false,
156
- "reflect": true,
157
- "attribute": "interactive",
158
- "defaultValue": "false"
159
- }
160
- };
161
- }
162
- static get states() {
163
- return {
164
- "hasHeader": {}
165
- };
166
- }
167
- static get elementRef() { return "el"; }
168
- }
@@ -1,49 +0,0 @@
1
- :host {
2
- display: block;
3
- box-sizing: border-box;
4
- }
5
-
6
- .form-shell {
7
- display: flex;
8
- flex-direction: column;
9
- gap: var(--q-form-gap, 16px);
10
- width: 100%;
11
- color: var(--q-form-fg, var(--q-fg-base, #172033));
12
- font-family: var(--q-font-family, inherit);
13
- }
14
-
15
- .form-header.is-hidden,
16
- .form-actions.is-hidden {
17
- display: none;
18
- }
19
-
20
- .form-title {
21
- margin: 0;
22
- color: var(--q-form-title-color, var(--q-fg-base, #172033));
23
- font-size: var(--q-form-title-size, var(--q-font-size-lg, 1rem));
24
- font-weight: var(--q-font-weight-bold, 600);
25
- line-height: 1.3;
26
- }
27
-
28
- form {
29
- display: flex;
30
- flex-direction: column;
31
- gap: var(--q-form-gap, 16px);
32
- width: 100%;
33
- margin: 0;
34
- }
35
-
36
- .form-body {
37
- display: flex;
38
- flex-direction: column;
39
- gap: var(--q-form-field-gap, 12px);
40
- min-width: 0;
41
- }
42
-
43
- .form-actions {
44
- display: flex;
45
- align-items: center;
46
- justify-content: flex-end;
47
- gap: var(--q-form-action-gap, 10px);
48
- padding-top: var(--q-form-actions-padding-top, 4px);
49
- }
@@ -1 +0,0 @@
1
- import{h as t,t as i,p as e,H as s}from"./p-CVtof65h.js";import{a as n,p as r,i as o}from"./p-BvBRW3dl.js";function a(i){const[e,s,n]=i;return t(e,s,n?.map(a))}const c=new Set(["script","foreignobject","iframe","object","embed","link","meta"]),h=/<\s*(script|foreignObject|iframe|object|embed|link|meta)\b[\s\S]*?(?:<\/\s*\1\s*>|\/\s*>)/gi,l=/\s+on[a-z]+\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,d=/\s+(style|tabindex)\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,f=/\s+(xlink:href|href)\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,u=/\s+[a-z_:.-]+\s*=\s*("[^"]*javascript:[^"]*"|'[^']*javascript:[^']*'|[^\s>]*javascript:[^\s>]*)/gi;function g(t){return/<svg[\s>]/i.test(t)?t.replace(h,"").replace(l,"").replace(d,"").replace(u,"").replace(f,((t,i,e)=>String(e).replace(/^['"]|['"]$/g,"").trim().toLowerCase().startsWith("#")?t:"")).replace(/<svg\b([^>]*)>/i,((t,i)=>`<svg${String(i).replace(/\s+aria-hidden\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/\s+focusable\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,"")} aria-hidden="true" focusable="false">`)).trim():""}const m=[".png",".jpg",".jpeg",".webp",".gif",".ico"];function p(t,i){const e=t?.trim();return e||i}const v=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get el(){return this}name;definition;lib="lucide";localPath="/assets/icons/";libVersion;fetchTimeout=8e3;size="md";color="currentColor";label;svgContent="";isBinary=!1;resolvedUrl="";hasError=!1;resolvedDefinition;fetchId=0;watchHandler(){this.loadIcon()}componentWillLoad(){this.loadIcon()}componentWillRender(){this.syncHostState()}componentDidRender(){this.syncHostState()}componentDidLoad(){this.syncHostState()}componentDidUpdate(){this.syncHostState()}get accessibleLabel(){const t=this.label?.trim();return t||void 0}handleImageError=()=>{this.hasError=!0,this.syncHostState()};syncHostState(){if(!this.el)return;const t=function(t){const i=t?String(t).trim():"md";return"sm"===i?"16px":"md"===i?"24px":"lg"===i?"32px":/^\d+$/.test(i)?`${i}px`:i}(this.size),i=this.accessibleLabel;this.el.style.width=t,this.el.style.height=t,this.el.style.color=this.color,this.el.classList.toggle("q-icon-error",this.hasError),this.el.classList.toggle("q-icon-binary",!this.hasError&&this.isBinary),this.el.classList.toggle("q-icon-svg",!this.hasError&&!this.isBinary),i?(this.el.setAttribute("role","img"),this.el.setAttribute("aria-label",i),this.el.setAttribute("aria-hidden","false")):(this.el.removeAttribute("role"),this.el.removeAttribute("aria-label"),this.el.setAttribute("aria-hidden","true"))}async loadIcon(){const t=++this.fetchId;this.hasError=!1,this.resolvedDefinition=void 0,this.syncHostState();const i=this.definition??n(this.name);if(i){try{this.resolvedDefinition=this.definition?r(i,"q-icon definition"):i,this.svgContent="",this.resolvedUrl="",this.isBinary=!1}catch(t){console.error(t),this.hasError=!0}return void this.syncHostState()}if(!this.name)return this.svgContent="",this.resolvedUrl="",this.isBinary=!1,void this.syncHostState();if(o())return this.svgContent="",this.resolvedUrl="",this.isBinary=!1,this.hasError=!0,void this.syncHostState();const e=function(t){const i=t.name.trim();if("lucide"===t.library)return`https://cdn.jsdelivr.net/npm/lucide-static@${p(t.libraryVersion,"0.416.0")}/icons/${encodeURIComponent(i)}.svg`;if("font-awesome"===t.library||"fontawesome"===t.library)return`https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@${p(t.libraryVersion,"6.7.2")}/svgs/solid/${encodeURIComponent(i)}.svg`;if("local"===t.library){let e=t.localPath||"/assets/icons/";return e.endsWith("/")||(e+="/"),`${e}${i}${i.includes(".")?"":".svg"}`}if(t.library.includes("{name}"))return t.library.replace("{name}",i);let e=t.library;return e.endsWith("/")||(e+="/"),`${e}${i}`}({name:this.name,library:this.lib,localPath:this.localPath,libraryVersion:this.libVersion});if(function(t){const i=t.toLowerCase();return m.some((t=>i.endsWith(t)))}(e))this.fetchId===t&&(this.isBinary=!0,this.resolvedUrl=e,this.svgContent="",this.syncHostState());else{this.fetchId===t&&(this.isBinary=!1,this.resolvedUrl="",this.syncHostState());try{const i=function(t,i=("undefined"!=typeof window?window.location:void 0)){if(!i||/^https?:\/\//i.test(t)||t.startsWith("data:"))return t;const e=i.origin&&"null"!==i.origin?i.origin:"http://localhost";try{return new URL(t,e).href}catch(i){return t}}(e),s=await async function(t,i){const e=Number.isFinite(i)&&i>0?i:8e3,s="undefined"!=typeof AbortController?new AbortController:void 0,n=s?setTimeout((()=>s.abort()),e):void 0;try{const i=await fetch(t,s?{signal:s.signal}:void 0);if(!i.ok)throw new Error(`Failed to load icon SVG from ${t} (status: ${i.status})`);return await i.text()}finally{void 0!==n&&clearTimeout(n)}}(i,this.fetchTimeout),n=function(t){if("undefined"==typeof DOMParser||"undefined"==typeof XMLSerializer)return g(t);const i=(new DOMParser).parseFromString(t,"image/svg+xml"),e=i.querySelector("parsererror"),s=i.documentElement;if(e||!s||"svg"!==s.tagName.toLowerCase())return g(t);const n=t=>{const i=t.tagName.toLowerCase();c.has(i)?t.remove():(Array.from(t.attributes).forEach((e=>{const s=e.name.toLowerCase(),n=e.value.trim().toLowerCase();(s.startsWith("on")||"style"===s||"tabindex"===s||n.startsWith("javascript:")||n.includes("url(javascript:")||("href"===s||"xlink:href"===s)&&"use"===i&&!n.startsWith("#"))&&t.removeAttribute(e.name)})),Array.from(t.children).forEach(n))};return n(s),s.setAttribute("aria-hidden","true"),s.setAttribute("focusable","false"),(new XMLSerializer).serializeToString(s)}(s);if(!n)throw new Error(`Failed to sanitize icon SVG from ${i}`);this.fetchId===t&&(this.svgContent=n,this.syncHostState())}catch(i){console.error(i),this.fetchId===t&&(this.hasError=!0,this.svgContent="",this.syncHostState())}}}render(){return this.hasError?t("div",{class:"icon-fallback",part:"fallback"},t("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true",focusable:"false"},t("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),t("line",{x1:"9",y1:"9",x2:"15",y2:"15"}),t("line",{x1:"15",y1:"9",x2:"9",y2:"15"}))):this.resolvedDefinition?t("div",{class:"svg-container",part:"svg"},function(i){const e={xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${i.width??i.size??24} ${i.height??i.size??24}`,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",...i.attributes,width:"100%",height:"100%","aria-hidden":"true",focusable:"false"};return t("svg",e,i.node.map(a))}(this.resolvedDefinition)):this.isBinary?t("img",{src:this.resolvedUrl,alt:"","aria-hidden":"true",part:"image",style:{width:"100%",height:"100%",objectFit:"contain"},onError:this.handleImageError}):t("div",{class:"svg-container",part:"svg",innerHTML:this.svgContent})}static get watchers(){return{name:[{watchHandler:0}],definition:[{watchHandler:0}],lib:[{watchHandler:0}],localPath:[{watchHandler:0}],libVersion:[{watchHandler:0}]}}static get style(){return":host{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;line-height:1}.svg-container{display:inline-flex;width:100%;height:100%;align-items:center;justify-content:center}.svg-container svg{width:100% !important;height:100% !important;stroke-width:var(--q-icon-stroke-width, 2.1) !important;display:block}.icon-fallback{display:inline-flex;align-items:center;justify-content:center;color:var(--q-color-danger, #f87171);opacity:0.8;width:100%;height:100%}.icon-fallback svg{width:100%;height:100%;stroke-width:var(--q-icon-stroke-width, 2.1);display:block}"}},[513,"q-icon",{name:[1],definition:[16],lib:[1],localPath:[1,"local-path"],libVersion:[1,"lib-version"],fetchTimeout:[2,"fetch-timeout"],size:[8],color:[1],label:[1],svgContent:[32],isBinary:[32],resolvedUrl:[32],hasError:[32],resolvedDefinition:[32]},void 0,{name:[{watchHandler:0}],definition:[{watchHandler:0}],lib:[{watchHandler:0}],localPath:[{watchHandler:0}],libVersion:[{watchHandler:0}]}]);function w(){"undefined"!=typeof customElements&&["q-icon"].forEach((t=>{"q-icon"===t&&(customElements.get(i(t))||customElements.define(i(t),v))}))}w();export{v as Q,w as d}
@@ -1 +0,0 @@
1
- const r=":root{--q-color-primary:#60a5fa;--q-color-primary-hover:#93c5fd;--q-color-secondary:#9777ea;--q-color-success:#34d399;--q-color-warning:#fbbf24;--q-color-danger:#f87171;--q-bg-base:#0b0f19;--q-bg-surface-1:#111827;--q-bg-surface-2:#19243b;--q-bg-surface-3:#22304d;--q-bg-surface-4:#2c3a58;--q-bg-surface-5:#374761;--q-bg-card:var(--q-bg-surface-2);--q-bg-glass:rgba(25, 36, 59, 0.85);--q-bg-overlay:rgba(0, 0, 0, 0.85);--q-fg-base:#f9fafb;--q-fg-muted:#9ca3af;--q-border-color:#374151;--q-dialog-backdrop-bg:var(--q-bg-overlay, rgba(0, 0, 0, 0.85));--q-dialog-backdrop-solid-bg:var(--q-bg-overlay, rgba(0, 0, 0, 0.85));--q-shadow-low:0 2px 4px rgba(0, 0, 0, 0.2);--q-shadow-medium:0 8px 16px rgba(0, 0, 0, 0.3);--q-shadow-high:0 16px 32px rgba(0, 0, 0, 0.45);--q-glow-interactive:0 0 20px rgba(96, 165, 250, 0.3);--q-border-width:1px;--q-border:var(--q-border-width) solid var(--q-border-color);--q-focus-ring:2px solid var(--q-color-primary);--q-font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--q-font-size-sm:0.7rem;--q-font-size-base:0.9rem;--q-font-size-lg:1rem;--q-font-weight-normal:400;--q-font-weight-bold:600;--q-radius-sm:4px;--q-radius-md:7px;--q-radius-lg:11px;--q-padding-sm:4px;--q-padding-md:9px;--q-padding-lg:16px;--q-transition-fast:150ms ease;--q-transition-normal:250ms cubic-bezier(0.4, 0, 0.2, 1);--q-transition-slow:400ms cubic-bezier(0.4, 0, 0.2, 1);--q-z-index-overlay:1000;--q-z-index-popover:1100;--q-z-index-toast:1200;--q-hover-transform:translateY(-4px) scale(1.02);--q-btn-hover-overlay:color-mix(in srgb, var(--q-fg-base) 8%, transparent);--q-card-min-width:280px;--q-card-border:var(--q-border);--q-card-hover-transform:var(--q-hover-transform);--q-card-transition-duration:var(--q-transition-normal);--q-step-diag-line:2px solid var(--q-border-color);--q-step-diag-border:var(--q-border);--q-step-diag-icon-size:32px;--q-step-diag-item-gap:24px;--q-thumb-aspect-ratio:16 / 9;--q-thumb-border:2px solid var(--q-thumb-border-color);--q-thumb-hover-transform:var(--q-hover-transform);--q-thumb-overlay-bg:rgba(0, 0, 0, 0.4);--q-thumb-radius:var(--q-radius-md);--q-thumb-border-color:transparent;--q-thumb-glow:var(--q-glow-interactive);--q-reel-gap:12px;--q-reel-columns-desktop:repeat(auto-fill, minmax(200px, 1fr));--q-reel-columns-mobile:1fr;--q-lightbox-max-size:90vh;--q-reel-lightbox-btn-bg:rgba(0, 0, 0, 0.5);--q-reel-lightbox-btn-border:1px solid rgba(255, 255, 255, 0.2);--q-reel-lightbox-btn-color:#ffffff;--q-reel-lightbox-btn-hover-bg:rgba(255, 255, 255, 0.2);--q-avatar-size-sm:28px;--q-avatar-size-md:40px;--q-avatar-size-lg:56px;--q-avatar-bg:var(--q-bg-surface-3);--q-avatar-fg:var(--q-fg-base);--q-avatar-border:var(--q-border);--q-conversation-incoming-bg:var(--q-bg-surface-2);--q-conversation-outgoing-bg:var(--q-color-primary);--q-conversation-outgoing-fg:#ffffff;--q-conversation-system-bg:transparent;--q-conversation-system-fg:var(--q-fg-muted);--q-carousel-gap:16px;--q-carousel-padding:24px 20px;--q-carousel-arrow-bg:var(--q-bg-overlay);--q-carousel-arrow-border:var(--q-border);--q-carousel-arrow-color:#ffffff;--q-carousel-arrow-size:40px;--q-carousel-indicator-gap:8px;--q-carousel-indicator-size:6px;--q-progress-transition:var(--q-transition-normal);--q-progress-indeterminate-duration:1.4s;--q-progress-linear-height-sm:4px;--q-progress-linear-height-md:6px;--q-progress-linear-height-lg:8px;--q-progress-linear-radius:999px;--q-progress-circular-size-sm:64px;--q-progress-circular-size-md:120px;--q-progress-circular-size-lg:180px;--q-progress-circular-stroke-width-sm:6px;--q-progress-circular-stroke-width-md:8px;--q-progress-circular-stroke-width-lg:10px;--q-progress-circular-linecap:round;--q-progress-circular-font-weight:var(--q-font-weight-bold);--q-btn-radius:var(--q-radius-md);--q-btn-radius-sm:var(--q-radius-sm);--q-btn-radius-md:var(--q-radius-md);--q-btn-radius-lg:var(--q-radius-lg);--q-btn-font-size:var(--q-font-size-base);--q-btn-font-weight:var(--q-font-weight-bold);--q-btn-active-transform:scale(0.97);--q-btn-transition:all 150ms cubic-bezier(0.4, 0, 0.2, 1);--q-btn-padding-sm:6px 10px;--q-btn-padding-md:5px 8px;--q-btn-padding-lg:9px 16px;--q-btn-icon-padding-sm:4px;--q-btn-icon-padding-md:6px;--q-btn-icon-padding-lg:9px;--q-chip-radius:999px;--q-chip-border:var(--q-border);--q-chip-font-weight:var(--q-font-weight-bold);--q-chip-padding-sm:4px 9px;--q-chip-padding-md:6px 11px;--q-chip-padding-lg:8px 14px;--q-chip-height-sm:24px;--q-chip-height-md:30px;--q-chip-height-lg:36px;--q-chip-active-transform:scale(0.97);--q-field-bg:var(--q-bg-surface-2);--q-field-border:var(--q-border);--q-field-radius:var(--q-radius-md);--q-field-padding:10px 14px;--q-field-border-color-focus:var(--q-color-primary);--q-input-bg:var(--q-field-bg);--q-input-border:var(--q-field-border);--q-input-radius:var(--q-field-radius);--q-input-padding:var(--q-field-padding);--q-dropdown-bg:var(--q-field-bg);--q-dropdown-menu-bg:var(--q-bg-surface-3);--q-dropdown-border:var(--q-field-border);--q-dropdown-radius:var(--q-field-radius);--q-panel-bg:var(--q-bg-surface-1);--q-panel-border:var(--q-border);--q-sidepanel-bg:var(--q-bg-surface-1);--q-sidepanel-border:var(--q-border);--q-sidepanel-shadow:var(--q-shadow-high);--q-sidepanel-panel-width:320px;--q-sidepanel-panel-padding:var(--q-padding-lg);--q-sidepanel-panel-header-padding:var(--q-padding-lg);--q-sidepanel-panel-footer-padding:var(--q-padding-lg);--q-sidepanel-panel-section-border:var(--q-border);--q-map-height:100%;--q-map-min-height:240px;--q-map-bg:var(--q-bg-surface-1);--q-map-border:var(--q-border);--q-map-radius:var(--q-radius-lg);--q-map-marker-size:20px;--q-map-marker-size-small:16px;--q-map-marker-size-medium:var(--q-map-marker-size);--q-map-marker-size-large:24px;--q-map-marker-color:var(--q-color-primary);--q-map-marker-success:var(--q-color-success);--q-map-marker-warning:var(--q-color-warning);--q-map-marker-danger:var(--q-color-danger);--q-map-marker-muted:var(--q-fg-muted);--q-map-marker-selected-color:var(--q-fg-base);--q-map-marker-selected-shadow:var(--q-shadow-medium);--q-map-attribution-bg:var(--q-bg-base);--q-map-attribution-color:var(--q-fg-muted);--q-scrollbar-width:6px;--q-scrollbar-width-thin:thin;--q-scrollbar-track-color:transparent;--q-scrollbar-thumb-color:var(--q-border-color, #374151);--q-scrollbar-thumb-color-hover:var(--q-color-primary, #60a5fa);--q-scrollbar-radius:var(--q-radius-sm, 4px)}@media (prefers-color-scheme: light){:root{--q-color-primary:#3b82f6;--q-color-primary-hover:#2563eb;--q-color-secondary:#7c3aed;--q-color-success:#10b981;--q-color-warning:#f59e0b;--q-color-danger:#ef4444;--q-bg-base:#ffffff;--q-bg-surface-1:#f0f3f9;--q-bg-surface-2:#dee5f2;--q-bg-surface-3:#c7d1e6;--q-bg-surface-4:#aab8d5;--q-bg-surface-5:#8b9dc1;--q-bg-card:var(--q-bg-surface-2);--q-bg-glass:rgba(255, 255, 255, 0.85);--q-bg-overlay:rgba(0, 0, 0, 0.6);--q-fg-base:#1f2937;--q-fg-muted:#4b5563;--q-border-color:#e5e7eb;--q-sidepanel-bg:var(--q-bg-surface-1);--q-shadow-low:0 2px 4px rgba(0, 0, 0, 0.05);--q-shadow-medium:0 8px 16px rgba(0, 0, 0, 0.08);--q-shadow-high:0 16px 32px rgba(0, 0, 0, 0.12);--q-glow-interactive:0 0 20px rgba(59, 130, 246, 0.3)}}[data-theme='light']{--q-color-primary:#3b82f6;--q-color-primary-hover:#2563eb;--q-color-secondary:#7c3aed;--q-color-success:#10b981;--q-color-warning:#f59e0b;--q-color-danger:#ef4444;--q-bg-base:#ffffff;--q-bg-surface-1:#f0f3f9;--q-bg-surface-2:#dee5f2;--q-bg-surface-3:#c7d1e6;--q-bg-surface-4:#aab8d5;--q-bg-surface-5:#8b9dc1;--q-bg-card:var(--q-bg-surface-2);--q-bg-glass:rgba(255, 255, 255, 0.85);--q-bg-overlay:rgba(0, 0, 0, 0.6);--q-fg-base:#1f2937;--q-fg-muted:#4b5563;--q-border-color:#e5e7eb;--q-sidepanel-bg:var(--q-bg-surface-1);--q-shadow-low:0 2px 4px rgba(0, 0, 0, 0.05);--q-shadow-medium:0 8px 16px rgba(0, 0, 0, 0.08);--q-shadow-high:0 16px 32px rgba(0, 0, 0, 0.12);--q-glow-interactive:0 0 20px rgba(59, 130, 246, 0.3)}[data-theme='dark']{--q-color-primary:#60a5fa;--q-color-primary-hover:#93c5fd;--q-color-secondary:#9777ea;--q-color-success:#34d399;--q-color-warning:#fbbf24;--q-color-danger:#f87171;--q-bg-base:#0b0f19;--q-bg-surface-1:#111827;--q-bg-surface-2:#19243b;--q-bg-surface-3:#22304d;--q-bg-surface-4:#2c3a58;--q-bg-surface-5:#374761;--q-bg-card:var(--q-bg-surface-2);--q-bg-glass:rgba(25, 36, 59, 0.85);--q-bg-overlay:rgba(0, 0, 0, 0.85);--q-fg-base:#f9fafb;--q-fg-muted:#9ca3af;--q-border-color:#374151;--q-sidepanel-bg:var(--q-bg-surface-1);--q-shadow-low:0 2px 4px rgba(0, 0, 0, 0.2);--q-shadow-medium:0 8px 16px rgba(0, 0, 0, 0.3);--q-shadow-high:0 16px 32px rgba(0, 0, 0, 0.45);--q-glow-interactive:0 0 20px rgba(96, 165, 250, 0.3)}";function e(r,e,t){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;r&&r!==o;){const o=Object.getOwnPropertyDescriptor(r,e);if(o&&(!t||o.get))return o;r=Object.getPrototypeOf(r)}}var t,o=(r,t)=>{var o;Object.entries(null!=(o=t.o.t)?o:{}).map((([o,[a]])=>{if(31&a||32&a){const a=r[o],n=e(Object.getPrototypeOf(r),o,!0)||Object.getOwnPropertyDescriptor(r,o);n&&Object.defineProperty(r,o,{get(){return n.get.call(this)},set(r){n.set.call(this,r)},configurable:!0,enumerable:!0}),t.i.has(o)?r[o]=t.i.get(o):void 0!==a&&(r[o]=a)}}))},a=r=>{if(r.__stencil__getHostRef)return r.__stencil__getHostRef()},n=(r,e)=>e in r,s=(r,e)=>(0,console.error)(r,e),i=new Map,l="http://www.w3.org/1999/xlink",c=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],f="undefined"!=typeof window?window:{},d=f.HTMLElement||class{},q={l:0,q:"",jmp:r=>r(),raf:r=>requestAnimationFrame(r),ael:(r,e,t,o)=>r.addEventListener(e,t,o),rel:(r,e,t,o)=>r.removeEventListener(e,t,o),ce:(r,e)=>new CustomEvent(r,e)},u=(()=>{var r;let e=!1;try{null==(r=f.document)||r.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(r){}return e})(),b=(()=>{try{return!!f.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(r){}return!1})(),p=!!b&&(()=>!!f.document&&Object.getOwnPropertyDescriptor(f.document.adoptedStyleSheets,"length").writable)(),g=!1,m=[],v=[],h=()=>{var r;return(null==(r=f.document)?void 0:r.hidden)?$(y):q.raf(y)},x=(r,e)=>t=>{r.push(t),g||(g=!0,e&&4&q.l?$(y):h())},w=r=>{for(let e=0;e<r.length;e++)try{r[e](performance.now())}catch(r){s(r)}r.length=0},y=()=>{w(m),w(v),(g=m.length>0)&&h()},$=r=>Promise.resolve(undefined).then(r),k=x(v,!0),j=r=>{const e=new URL(r,q.q);return e.origin!==f.location.origin?e.href:e.pathname},O=r=>q.q=r;function S(e){var o;const a={mode:"open"};a.delegatesFocus=!!(16&e.l);const n=this.attachShadow(a);if(void 0===t&&(t=null!=(o=function(r){if(!b)return;const e=new CSSStyleSheet;return e.replaceSync(r),e}(r))?o:null),t)p?n.adoptedStyleSheets.push(t):n.adoptedStyleSheets=[...n.adoptedStyleSheets,t];else if(!b){const e=document.createElement("style");e.innerHTML=r,n.prepend(e)}}var z,M=new WeakMap,C=r=>"sc-"+r.u,E=r=>"object"==(r=typeof r)||"function"===r,A=(r,e,...t)=>{let o=null,a=null,n=!1,i=!1;const l=[],c=e=>{for(let t=0;t<e.length;t++)if(o=e[t],Array.isArray(o))c(o);else if(null!=o&&"boolean"!=typeof o){if(n="function"!=typeof r&&!E(o))o=String(o);else if("function"!=typeof r&&void 0===o.l){s("Invalid vNode child");continue}n&&i?l[l.length-1].p+=o:l.push(n?R(null,o):o),i=n}};if(c(t),e){e.key&&(a=e.key);{const r=e.className||e.class;r&&(e.class="object"!=typeof r?r:Object.keys(r).filter((e=>r[e])).join(" "))}}if("function"==typeof r)return r(null===e?{}:e,l,D);const f=R(r,null);return f.m=e,l.length>0&&(f.v=l),f.h=a,f},R=(r,e)=>({l:0,$:r,p:null!=e?e:null,k:null,v:null,m:null,h:null}),N={},D={forEach:(r,e)=>r.map(H).forEach(e),map:(r,e)=>r.map(H).map(e).map(L)},H=r=>({vattrs:r.m,vchildren:r.v,vkey:r.h,vname:r.j,vtag:r.$,vtext:r.p}),L=r=>{if("function"==typeof r.vtag){const e={...r.vattrs};return r.vkey&&(e.key=r.vkey),r.vname&&(e.name=r.vname),A(r.vtag,e,...r.vchildren||[])}const e=R(r.vtag,r.vtext);return e.m=r.vattrs,e.v=r.vchildren,e.h=r.vkey,e.j=r.vname,e},U=r=>{if(!r)return;const e=Object.keys(r);if(0===e.length)return;let t=!1;for(const o of e){if(t)break;for(const e of r[o])if("string"==typeof e){t=!0;break}}if(!t)return r;const o={};for(const t of e)o[t]=r[t].map((r=>"string"==typeof r?{[r]:0}:r));return o},_=(r,e,t)=>null==r||E(r)?r:4&e?(t&&"string"==typeof r||"false"!==r)&&(""===r||!!r):2&e?"string"==typeof r?parseFloat(r):"number"==typeof r?r:NaN:1&e?String(r):r,P=(r,e)=>{const t=r;return{emit:r=>W(t,e,{bubbles:!0,composed:!0,cancelable:!0,detail:r})}},W=(r,e,t)=>{const o=q.ce(e,t);return r.dispatchEvent(o),o},F=(r,e,t,o,s,i)=>{if(t===o)return;let c=n(r,e),d=e.toLowerCase();if("class"===e){const e=r.classList,a=Y(t);let n=Y(o);e.remove(...a.filter((r=>r&&!n.includes(r)))),e.add(...n.filter((r=>r&&!a.includes(r))))}else if("style"===e){for(const e in t)o&&null!=o[e]||(e.includes("-")?r.style.removeProperty(e):r.style[e]="");for(const e in o)t&&o[e]===t[e]||(e.includes("-")?r.style.setProperty(e,o[e]):r.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&ir(o,r);else if(r.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const t=e.slice(5);let n;{const e=a(r);if(e&&e.o&&e.o.t){const r=e.o.t[t];r&&r[1]&&(n=r[1])}}return n||(n=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==r.getAttribute(n)||r.removeAttribute(n):r.setAttribute(n,!0===o?"":o))}if("p"===e[0]&&e.startsWith("prop:")){const t=e.slice(5);try{r[t]=o}catch(r){}return}{const a=E(o);if((c||a&&null!==o)&&!s)try{if(r.tagName.includes("-"))r[e]!==o&&(r[e]=o);else{const a=null==o?"":o;"list"===e?c=!1:null!=t&&r[e]===a||("function"==typeof r.__lookupSetter__(e)?r[e]=a:r.setAttribute(e,a))}}catch(r){}let n=!1;d!==(d=d.replace(/^xlink\:?/,""))&&(e=d,n=!0),null==o||!1===o?(!1!==o||""===r.getAttribute(e)||4&i&&!V(e))&&(n?r.removeAttributeNS(l,e):r.removeAttribute(e)):(!c||4&i||s)&&!a&&1===r.nodeType&&(o=!0===o?"":o,n?r.setAttributeNS(l,e,o):r.setAttribute(e,o))}}else if(e="-"===e[2]?e.slice(3):n(f,d)?d.slice(2):d[2]+e.slice(3),t||o){const a=e.endsWith(B);e=e.replace(Z,""),t&&q.rel(r,e,t,a),o&&q.ael(r,e,o,a)}},T=new Set(["draggable","contenteditable","spellcheck"]),V=r=>T.has(r)||r.startsWith("aria-"),I=/\s/,Y=r=>("object"==typeof r&&r&&"baseVal"in r&&(r=r.baseVal),r&&"string"==typeof r?r.split(I):[]),B="Capture",Z=new RegExp(B+"$"),G=(r,e,t)=>{const o=11===e.k.nodeType&&e.k.host?e.k.host:e.k,a=r&&r.m||{},n=e.m||{};for(const r of J(Object.keys(a)))r in n||F(o,r,a[r],void 0,t,e.l);for(const r of J(Object.keys(n)))F(o,r,a[r],n[r],t,e.l)};function J(r){return r.includes("ref")?[...r.filter((r=>"ref"!==r)),"ref"]:r}var K=!1,Q=!1,X=[],rr=[],er=(r,e,t)=>{const o=e.v[t];let a,n,s=0;if(null!=o.p)a=o.k=f.document.createTextNode(o.p);else{if(Q||(Q="svg"===o.$),!f.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(a=o.k=f.document.createElementNS(Q?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.$),Q&&"foreignObject"===o.$&&(Q=!1),G(null,o,Q),o.v){const e="template"===o.$?a.content:a;for(s=0;s<o.v.length;++s)n=er(r,o,s),n&&e.appendChild(n)}"svg"===o.$?Q=!1:"foreignObject"===a.tagName&&(Q=!0)}return a["s-hn"]=z,a},tr=(r,e,t,o,a,n)=>{let s,i=r;for(i.shadowRoot&&i.tagName===z&&(i=i.shadowRoot),"template"===t.$&&(i=i.content);a<=n;++a)o[a]&&(s=er(null,t,a),s&&(o[a].k=s,lr(i,s,e)))},or=(r,e,t)=>{for(let o=e;o<=t;++o){const e=r[o];if(e){const r=e.k;sr(e),r&&r.remove()}}},ar=(r,e,t=!1)=>r.$===e.$&&(t?(t&&!r.h&&e.h&&(r.h=e.h),!0):r.h===e.h),nr=(r,e,t=!1)=>{const o=e.k=r.k,a=r.v,n=e.v,s=e.$,i=e.p;null==i?(Q="svg"===s||"foreignObject"!==s&&Q,"slot"!==s||K||r.j!==e.j&&(e.k["s-sn"]=e.j||"",(r=>{q.l|=1;const e=r.closest(z.toLowerCase());if(null!=e){const t=Array.from(e.__childNodes||e.childNodes).find((r=>r["s-cr"])),o=Array.from(r.__childNodes||r.childNodes);for(const r of t?o.reverse():o)null!=r["s-sh"]&&(lr(e,r,null!=t?t:null),r["s-sh"]=void 0)}q.l&=-2})(e.k.parentElement)),G(r,e,Q),null!==a&&null!==n?((r,e,t,o,a=!1)=>{let n,s,i=0,l=0,c=0,f=0,d=e.length-1,q=e[0],u=e[d],b=o.length-1,p=o[0],g=o[b];const m="template"===t.$?r.content:r;for(;i<=d&&l<=b;)if(null==q)q=e[++i];else if(null==u)u=e[--d];else if(null==p)p=o[++l];else if(null==g)g=o[--b];else if(ar(q,p,a))nr(q,p,a),q=e[++i],p=o[++l];else if(ar(u,g,a))nr(u,g,a),u=e[--d],g=o[--b];else if(ar(q,g,a))nr(q,g,a),lr(m,q.k,u.k.nextSibling),q=e[++i],g=o[--b];else if(ar(u,p,a))nr(u,p,a),lr(m,u.k,q.k),u=e[--d],p=o[++l];else{for(c=-1,f=i;f<=d;++f)if(e[f]&&null!==e[f].h&&e[f].h===p.h){c=f;break}c>=0?(s=e[c],s.$!==p.$?n=er(e&&e[l],t,l):(nr(s,p,a),e[c]=void 0,n=s.k),p=o[++l]):(n=er(e&&e[l],t,l),p=o[++l]),n&&lr(q.k.parentNode,n,q.k)}i>d?tr(r,null==o[b+1]?null:o[b+1].k,t,o,l,b):l>b&&or(e,i,d)})(o,a,e,n,t):null!==n?(null!==r.p&&(o.textContent=""),tr(o,null,e,n,0,n.length-1)):!t&&null!==a&&or(a,0,a.length-1),Q&&"svg"===s&&(Q=!1)):r.p!==i&&(o.data=i)},sr=r=>{r.m&&r.m.ref&&X.push((()=>r.m.ref(null))),r.v&&r.v.map(sr)},ir=(r,e)=>{rr.push((()=>r(e)))},lr=(r,e,t)=>null==r?void 0:r.insertBefore(e,t),cr=(r,e,t=!1)=>{const o=r.$hostElement$,a=r.o,n=r.O||R(null,null);var s;const i=(s=e)&&s.$===N?e:A(null,null,e);if(z=o.tagName,a.S&&(i.m=i.m||{},a.S.forEach((([r,e])=>{i.m[e]=o[r]}))),t&&i.m)for(const r of Object.keys(i.m))o.hasAttribute(r)&&!["key","ref","style","class"].includes(r)&&(i.m[r]=o[r]);i.$=null,i.l|=4,r.O=i,i.k=n.k=o.shadowRoot||o,K=!(!(1&a.l)||128&a.l),nr(n,i,t),X.forEach((r=>r())),X.length=0,rr.forEach((r=>r())),rr.length=0},fr=(r,e)=>{if(e&&!r.M&&e["s-p"]){const t=e["s-p"].push(new Promise((o=>r.M=()=>{e["s-p"].splice(t-1,1),o()})))}},dr=(r,e)=>{if(r.l|=16,4&r.l)return void(r.l|=512);fr(r,r.C);const t=()=>qr(r,e);if(!e)return k(t);queueMicrotask((()=>{t()}))},qr=(r,e)=>{const t=r.$hostElement$,o=t;if(!o)throw new Error(`Can't render component <${t.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return a=hr(o,e?"componentWillLoad":"componentWillUpdate",void 0,t),a=ur(a,(()=>hr(o,"componentWillRender",void 0,t))),ur(a,(()=>pr(r,o,e)))},ur=(r,e)=>br(r)?r.then(e).catch((r=>{console.error(r),e()})):e(),br=r=>r instanceof Promise||r&&r.then&&"function"==typeof r.then,pr=async(r,e,t)=>{var o;const a=r.$hostElement$,n=a["s-rc"];t&&(r=>{const e=r.o,t=r.$hostElement$,o=e.l,a=((r,e)=>{var t,o,a;const n=C(e),s=i.get(n);if(!f.document)return n;if(r=11===r.nodeType?r:f.document,s)if("string"==typeof s){let a,i=M.get(r=r.head||r);if(i||M.set(r,i=new Set),!i.has(n)){a=f.document.createElement("style"),a.textContent=s;const l=null!=(t=q.A)?t:function(){var r,e,t;return null!=(t=null==(e=null==(r=f.document.head)?void 0:r.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?t:void 0}();if(null!=l&&a.setAttribute("nonce",l),!(1&e.l))if("HEAD"===r.nodeName){const e=r.querySelectorAll("link[rel=preconnect]"),t=e.length>0?e[e.length-1].nextSibling:r.querySelector("style");r.insertBefore(a,(null==t?void 0:t.parentNode)===r?t:null)}else if("host"in r)if(b){const e=new(null!=(o=r.defaultView)?o:r.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(s),p?r.adoptedStyleSheets.unshift(e):r.adoptedStyleSheets=[e,...r.adoptedStyleSheets]}else{const e=r.querySelector("style");e?e.textContent=s+e.textContent:r.prepend(a)}else r.append(a);1&e.l&&r.insertBefore(a,null),4&e.l&&(a.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),i&&i.add(n)}}else{let e=M.get(r);if(e||M.set(r,e=new Set),!e.has(n)){const t=null!=(a=r.defaultView)?a:r.ownerDocument.defaultView;let o;if(s.constructor===t.CSSStyleSheet)o=s;else{o=new t.CSSStyleSheet;for(let r=0;r<s.cssRules.length;r++)o.insertRule(s.cssRules[r].cssText,r)}p?r.adoptedStyleSheets.push(o):r.adoptedStyleSheets=[...r.adoptedStyleSheets,o],e.add(n)}}return n})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&o&&(t["s-sc"]=a,t.classList.add(a+"-h"))})(r);gr(r,e,a,t),n&&(n.map((r=>r())),a["s-rc"]=void 0);{const e=null!=(o=a["s-p"])?o:[],t=()=>mr(r);0===e.length?t():(Promise.all(e).then(t).catch(t),r.l|=4,e.length=0)}},gr=(r,e,t,o)=>{try{e=e.render(),r.l&=-17,r.l|=2,cr(r,e,o)}catch(e){s(e,r.$hostElement$)}return null},mr=r=>{const e=r.$hostElement$,t=e,o=r.C;hr(t,"componentDidRender",void 0,e),64&r.l?hr(t,"componentDidUpdate",void 0,e):(r.l|=64,xr(e),hr(t,"componentDidLoad",void 0,e),r.R(e),o||vr()),r.M&&(r.M(),r.M=void 0),512&r.l&&$((()=>dr(r,!1))),r.l&=-517},vr=()=>{$((()=>W(f,"appload",{detail:{namespace:"webquark"}})))},hr=(r,e,t,o)=>{if(r&&r[e])try{return r[e](t)}catch(r){s(r,o)}},xr=r=>r.classList.add("hydrated"),wr=(r,e,t,o)=>{const n=a(r);if(!n)return;const i=r,l=n.i.get(e),c=n.l,f=i;t=_(t,o.t[e][0],!!(64&o.l));const d=Number.isNaN(l)&&Number.isNaN(t);if(t!==l&&!d){if(n.i.set(e,t),o.N){const r=o.N[e];r&&r.map((r=>{try{const[[o,a]]=Object.entries(r);(128&c||1&a)&&(f?f[o](t,l,e):n.D.push((()=>{n.H[o](t,l,e)})))}catch(r){s(r,i)}}))}if(2&c){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(t,l,e)&&!(16&c))return;16&c||dr(n,!1)}}},yr=(r,t,o)=>{var n,s;const i=r.prototype;64&t.l&&1&o&&c.forEach((r=>{const e=i[r];Object.defineProperty(i,r,{value(...t){var o;const n=a(this),s=this;s?"function"==typeof e&&e.call(s,...t):null==(o=null==n?void 0:n.L)||o.then((e=>{const o=e[r];"function"==typeof o&&o.call(e,...t)}))}})}));{r.watchers&&!t.N&&(t.N=U(r.watchers)),r.deserializers&&!t.U&&(t.U=r.deserializers),r.serializers&&!t._&&(t._=r.serializers);const o=Object.entries(null!=(n=t.t)?n:{});o.map((([r,[o]])=>{if(31&o||32&o){const{get:n,set:s}=e(i,r)||{};n&&(t.t[r][0]|=2048),s&&(t.t[r][0]|=4096),Object.defineProperty(i,r,{get(){return n?n.apply(this):(e=r,a(this).i.get(e));var e},configurable:!0,enumerable:!0}),Object.defineProperty(i,r,{set(e){const n=a(this);if(n){if(s)return void 0===(32&o?this[r]:n.$hostElement$[r])&&n.i.get(r)&&(e=n.i.get(r)),s.apply(this,[_(e,o,!!(64&t.l))]),void wr(this,r,e=32&o?this[r]:n.$hostElement$[r],t);wr(this,r,e,t)}}})}}));{const e=new Map;i.attributeChangedCallback=function(r,n,s){q.jmp((()=>{var l;const c=e.get(r),f=a(this);if(this.hasOwnProperty(c),i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const e=null==f?void 0:f.l;if(f&&e&&!(8&e)&&s!==n){const o=this,a=null==(l=t.N)?void 0:l[r];null==a||a.forEach((t=>{const[[a,i]]=Object.entries(t);null!=o[a]&&(128&e||1&i)&&o[a].call(o,s,n,r)}))}return}const d=o.find((([r])=>r===c)),q=d?d[1][0]:0,u=4&q;if(512&q&&8&q&&!E(this[c])&&(null==(b=this[c])||!1===b?null:!0===b?"":String(b))===s)return;var b;const p=u&&null===s&&void 0===this[c];u&&(s=null!==s&&"false"!==s);const g=Object.getOwnPropertyDescriptor(i,c);p||s==this[c]||g.get&&!g.set||(this[c]=s)}))},r.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.N)?s:{}),...o.filter((([r,e])=>31&e[0])).map((([r,o])=>{var a;const n=o[1]||r;return e.set(n,r),512&o[0]&&(null==(a=t.S)||a.push([r,n])),n}))]))}}return r},$r=async(r,e,t)=>{let o;try{if(!(32&e.l)&&(e.l|=32,e.l&=-1025,o=r.constructor,customElements.whenDefined(r.localName).then((()=>e.l|=128)),o&&o.style)){let r;"string"==typeof o.style&&(r=o.style);const e=C(t);if(!i.has(e)){const o=()=>{};((r,e,t)=>{let o=i.get(r);b&&t?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(r,o)})(e,r,!!(1&t.l)),o()}}const a=e.C,n=()=>dr(e,!0);a&&a["s-rc"]?a["s-rc"].push(n):n()}catch(t){s(t,r),e.M&&(e.M(),e.M=void 0),!e.R||1024&e.l||e.R(r)}},kr=(r,e)=>{const t={l:e[0],u:e[1]};try{t.t=e[2],t.P=e[3],t.N=U(r.N),t.U=r.U,t._=r._,t.S=[];const n=r.prototype.connectedCallback,s=r.prototype.disconnectedCallback;return Object.assign(r.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,e)=>{const t={l:0,$hostElement$:r,o:e,i:new Map,W:new Map};t.L=new Promise((r=>t.R=r)),r["s-p"]=[],r["s-rc"]=[];const a=t;r.__stencil__getHostRef=()=>a,512&e.l&&o(r,t)})(this,t)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=a(this);if(!r)return;jr(this,r,t.P),this.__hasHostListenerAttached=!0}(r=>{if(!(1&q.l)){const e=a(r);if(!e)return;const t=e.o,o=()=>{};if(1&e.l)jr(r,e,t.P),(null==e?void 0:e.H)||(1024&e.l?setTimeout((()=>$r(r,e,t)),1e3):(null==e?void 0:e.L)&&e.L.then((()=>{})));else{e.l|=1;{let t=r;for(;t=t.parentNode||t.host;)if(t["s-p"]){fr(e,e.C=t);break}}t.t&&Object.entries(t.t).map((([e,[t]])=>{if(31&t&&Object.prototype.hasOwnProperty.call(r,e)){const t=r[e];delete r[e],r[e]=t}})),$r(r,e,t)}o()}})(this),n&&n.call(this)},disconnectedCallback(){(async r=>{if(!(1&q.l)){const e=a(r);(null==e?void 0:e.F)&&(e.F.map((r=>r())),e.F=void 0)}M.has(r)&&M.delete(r),r.shadowRoot&&M.has(r.shadowRoot)&&M.delete(r.shadowRoot)})(this),s&&s.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${t.u}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else S.call(this,t)}}),Object.defineProperty(r,"is",{value:t.u,configurable:!0}),yr(r,t,3)}catch(e){return s(e),r}},jr=(r,e,t)=>{t&&f.document&&t.map((([t,o,a])=>{const n=Sr(f.document,r,t),s=Or(e,a),i=zr(t);q.ael(n,o,s,i),(e.F=e.F||[]).push((()=>q.rel(n,o,s,i)))}))},Or=(r,e)=>t=>{try{r.$hostElement$[e](t)}catch(e){s(e,r.$hostElement$)}},Sr=(r,e,t)=>8&t?f:e,zr=r=>u?{passive:!!(1&r),capture:!!(2&r)}:!!(2&r),Mr=globalThis.HTMLElement||class{};function Cr(...r){return r.reduceRight(((r,e)=>e(r)),Mr)}var Er=r=>q.A=r,Ar=r=>Object.assign(q,r),Rr=new WeakMap;function Nr(r,e){let t=Rr.get(e);t||(t={l:0,o:{l:0,u:e.tagName},$hostElement$:e},Rr.set(e,t)),cr(t,r)}function Dr(r){return r}export{d as H,Cr as M,Er as a,Ar as b,P as c,N as d,j as g,A as h,kr as p,Nr as r,O as s,Dr as t}