placer-toolkit 0.5.1 → 1.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1392) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +18 -22
  3. package/cdn/animations/attention_seekers/bounce.js +1 -0
  4. package/cdn/animations/attention_seekers/flash.js +1 -0
  5. package/cdn/animations/attention_seekers/headShake.js +1 -0
  6. package/cdn/animations/attention_seekers/heartBeat.js +1 -0
  7. package/cdn/animations/attention_seekers/jello.js +1 -0
  8. package/cdn/animations/attention_seekers/pulse.js +1 -0
  9. package/cdn/animations/attention_seekers/rubberBand.js +1 -0
  10. package/cdn/animations/attention_seekers/shake.js +1 -0
  11. package/cdn/animations/attention_seekers/shakeX.js +1 -0
  12. package/cdn/animations/attention_seekers/shakeY.js +1 -0
  13. package/cdn/animations/attention_seekers/swing.js +1 -0
  14. package/cdn/animations/attention_seekers/tada.js +1 -0
  15. package/cdn/animations/attention_seekers/wobble.js +1 -0
  16. package/cdn/animations/back_entrances/backInDown.js +1 -0
  17. package/cdn/animations/back_entrances/backInLeft.js +1 -0
  18. package/cdn/animations/back_entrances/backInRight.js +1 -0
  19. package/cdn/animations/back_entrances/backInUp.js +1 -0
  20. package/cdn/animations/back_exits/backOutDown.js +1 -0
  21. package/cdn/animations/back_exits/backOutLeft.js +1 -0
  22. package/cdn/animations/back_exits/backOutRight.js +1 -0
  23. package/cdn/animations/back_exits/backOutUp.js +1 -0
  24. package/cdn/animations/bouncing_entrances/bounceIn.js +1 -0
  25. package/cdn/animations/bouncing_entrances/bounceInDown.js +1 -0
  26. package/cdn/animations/bouncing_entrances/bounceInLeft.js +1 -0
  27. package/cdn/animations/bouncing_entrances/bounceInRight.js +1 -0
  28. package/cdn/animations/bouncing_entrances/bounceInUp.js +1 -0
  29. package/cdn/animations/bouncing_exits/bounceOut.js +1 -0
  30. package/cdn/animations/bouncing_exits/bounceOutDown.js +1 -0
  31. package/cdn/animations/bouncing_exits/bounceOutLeft.js +1 -0
  32. package/cdn/animations/bouncing_exits/bounceOutRight.js +1 -0
  33. package/cdn/animations/bouncing_exits/bounceOutUp.js +1 -0
  34. package/cdn/animations/easings/easings.js +1 -0
  35. package/cdn/animations/fading_entrances/fadeIn.js +1 -0
  36. package/cdn/animations/fading_entrances/fadeInBottomLeft.js +1 -0
  37. package/cdn/animations/fading_entrances/fadeInBottomRight.js +1 -0
  38. package/cdn/animations/fading_entrances/fadeInDown.js +1 -0
  39. package/cdn/animations/fading_entrances/fadeInDownBig.js +1 -0
  40. package/cdn/animations/fading_entrances/fadeInLeft.js +1 -0
  41. package/cdn/animations/fading_entrances/fadeInLeftBig.js +1 -0
  42. package/cdn/animations/fading_entrances/fadeInRight.js +1 -0
  43. package/cdn/animations/fading_entrances/fadeInRightBig.js +1 -0
  44. package/cdn/animations/fading_entrances/fadeInTopLeft.js +1 -0
  45. package/cdn/animations/fading_entrances/fadeInTopRight.js +1 -0
  46. package/cdn/animations/fading_entrances/fadeInUp.js +1 -0
  47. package/cdn/animations/fading_entrances/fadeInUpBig.js +1 -0
  48. package/cdn/animations/fading_exits/fadeOut.js +1 -0
  49. package/cdn/animations/fading_exits/fadeOutBottomLeft.js +1 -0
  50. package/cdn/animations/fading_exits/fadeOutBottomRight.js +1 -0
  51. package/cdn/animations/fading_exits/fadeOutDown.js +1 -0
  52. package/cdn/animations/fading_exits/fadeOutDownBig.js +1 -0
  53. package/cdn/animations/fading_exits/fadeOutLeft.js +1 -0
  54. package/cdn/animations/fading_exits/fadeOutLeftBig.js +1 -0
  55. package/cdn/animations/fading_exits/fadeOutRight.js +1 -0
  56. package/cdn/animations/fading_exits/fadeOutRightBig.js +1 -0
  57. package/cdn/animations/fading_exits/fadeOutTopLeft.js +1 -0
  58. package/cdn/animations/fading_exits/fadeOutTopRight.js +1 -0
  59. package/cdn/animations/fading_exits/fadeOutUp.js +1 -0
  60. package/cdn/animations/fading_exits/fadeOutUpBig.js +1 -0
  61. package/cdn/animations/flippers/flip.js +1 -0
  62. package/cdn/animations/flippers/flipInX.js +1 -0
  63. package/cdn/animations/flippers/flipInY.js +1 -0
  64. package/cdn/animations/flippers/flipOutX.js +1 -0
  65. package/cdn/animations/flippers/flipOutY.js +1 -0
  66. package/cdn/animations/index.js +1 -0
  67. package/cdn/animations/lightspeed/lightSpeedInLeft.js +1 -0
  68. package/cdn/animations/lightspeed/lightSpeedInRight.js +1 -0
  69. package/cdn/animations/lightspeed/lightSpeedOutLeft.js +1 -0
  70. package/cdn/animations/lightspeed/lightSpeedOutRight.js +1 -0
  71. package/cdn/animations/rotating_entrances/rotateIn.js +1 -0
  72. package/cdn/animations/rotating_entrances/rotateInDownLeft.js +1 -0
  73. package/cdn/animations/rotating_entrances/rotateInDownRight.js +1 -0
  74. package/cdn/animations/rotating_entrances/rotateInUpLeft.js +1 -0
  75. package/cdn/animations/rotating_entrances/rotateInUpRight.js +1 -0
  76. package/cdn/animations/rotating_exits/rotateOut.js +1 -0
  77. package/cdn/animations/rotating_exits/rotateOutDownLeft.js +1 -0
  78. package/cdn/animations/rotating_exits/rotateOutDownRight.js +1 -0
  79. package/cdn/animations/rotating_exits/rotateOutUpLeft.js +1 -0
  80. package/cdn/animations/rotating_exits/rotateOutUpRight.js +1 -0
  81. package/cdn/animations/sliding_entrances/slideInDown.js +1 -0
  82. package/cdn/animations/sliding_entrances/slideInLeft.js +1 -0
  83. package/cdn/animations/sliding_entrances/slideInRight.js +1 -0
  84. package/cdn/animations/sliding_entrances/slideInUp.js +1 -0
  85. package/cdn/animations/sliding_exits/slideOutDown.js +1 -0
  86. package/cdn/animations/sliding_exits/slideOutLeft.js +1 -0
  87. package/cdn/animations/sliding_exits/slideOutRight.js +1 -0
  88. package/cdn/animations/sliding_exits/slideOutUp.js +1 -0
  89. package/cdn/animations/specials/hinge.js +1 -0
  90. package/cdn/animations/specials/jackInTheBox.js +1 -0
  91. package/cdn/animations/specials/rollIn.js +1 -0
  92. package/cdn/animations/specials/rollOut.js +1 -0
  93. package/cdn/animations/zooming_entrances/zoomIn.js +1 -0
  94. package/cdn/animations/zooming_entrances/zoomInDown.js +1 -0
  95. package/cdn/animations/zooming_entrances/zoomInLeft.js +1 -0
  96. package/cdn/animations/zooming_entrances/zoomInRight.js +1 -0
  97. package/cdn/animations/zooming_entrances/zoomInUp.js +1 -0
  98. package/cdn/animations/zooming_exits/zoomOut.js +1 -0
  99. package/cdn/animations/zooming_exits/zoomOutDown.js +1 -0
  100. package/cdn/animations/zooming_exits/zoomOutLeft.js +1 -0
  101. package/cdn/animations/zooming_exits/zoomOutRight.js +1 -0
  102. package/cdn/animations/zooming_exits/zoomOutUp.js +1 -0
  103. package/cdn/chunks/chunk.22DZRUGL.js +1 -0
  104. package/cdn/chunks/chunk.2K4PNLGV.js +1 -0
  105. package/cdn/chunks/chunk.2KWTNKGQ.js +74 -0
  106. package/cdn/chunks/chunk.2N5ZK4F4.js +28 -0
  107. package/cdn/chunks/chunk.2SM5MTG6.js +1 -0
  108. package/cdn/chunks/chunk.2SQLMTYR.js +1 -0
  109. package/cdn/chunks/chunk.3EUMG6CL.js +112 -0
  110. package/cdn/chunks/chunk.3U3NAHEY.js +1 -0
  111. package/cdn/chunks/chunk.4CAEAIFN.js +1 -0
  112. package/cdn/chunks/chunk.4GFJDCKO.js +1 -0
  113. package/cdn/chunks/chunk.4NL2VE5O.js +1 -0
  114. package/cdn/chunks/chunk.4VMSMOA5.js +1 -0
  115. package/cdn/chunks/chunk.4W3OJG5Y.js +1 -0
  116. package/cdn/chunks/chunk.4X4XH4O2.js +1 -0
  117. package/cdn/chunks/chunk.4ZFWIEG2.js +1 -0
  118. package/cdn/chunks/chunk.5G3DFRPP.js +1 -0
  119. package/cdn/chunks/chunk.5HIUPHOM.js +1 -0
  120. package/cdn/chunks/chunk.5MJRUHKK.js +1 -0
  121. package/cdn/chunks/chunk.5OTOOMMJ.js +223 -0
  122. package/cdn/chunks/chunk.5PONJGRH.js +1 -0
  123. package/cdn/chunks/chunk.5WAFFOC5.js +1 -0
  124. package/cdn/chunks/chunk.5YXXLUP2.js +111 -0
  125. package/cdn/chunks/chunk.63PFEC3G.js +47 -0
  126. package/cdn/chunks/chunk.63YZ2OGJ.js +179 -0
  127. package/cdn/chunks/chunk.6C4VTMLQ.js +1 -0
  128. package/cdn/chunks/chunk.6RYC5FEW.js +1 -0
  129. package/cdn/chunks/chunk.6SP3MLBX.js +1 -0
  130. package/cdn/chunks/chunk.6T73D5OE.js +94 -0
  131. package/cdn/chunks/chunk.75KPG5ZW.js +73 -0
  132. package/cdn/chunks/chunk.75Y77XUI.js +288 -0
  133. package/cdn/chunks/chunk.7IRWTX4A.js +27 -0
  134. package/cdn/chunks/chunk.7QYDQTBC.js +1 -0
  135. package/cdn/chunks/chunk.7SJBQWSL.js +1 -0
  136. package/cdn/chunks/chunk.7UGLJJM6.js +1 -0
  137. package/cdn/chunks/chunk.7UYSBZLK.js +33 -0
  138. package/cdn/chunks/chunk.7XLP7ZNP.js +0 -0
  139. package/cdn/chunks/chunk.7YEJIK24.js +1 -0
  140. package/cdn/chunks/chunk.ADVDY32Z.js +1 -0
  141. package/cdn/chunks/chunk.AMJDSJZ5.js +130 -0
  142. package/cdn/chunks/chunk.B27E7VEZ.js +1 -0
  143. package/cdn/chunks/chunk.BGH5L7N6.js +1 -0
  144. package/cdn/chunks/chunk.BHNAOKFP.js +4 -0
  145. package/cdn/chunks/chunk.BSQP4EKW.js +17 -0
  146. package/cdn/chunks/chunk.C2RXDH23.js +12 -0
  147. package/cdn/chunks/chunk.CQPLNRNB.js +1 -0
  148. package/cdn/chunks/chunk.D5CFOPIE.js +1 -0
  149. package/cdn/chunks/chunk.DG6SQOFC.js +1 -0
  150. package/cdn/chunks/chunk.DNS43PE3.js +1 -0
  151. package/cdn/chunks/chunk.DQ2EFEM7.js +1 -0
  152. package/cdn/chunks/chunk.DRJDBJ6E.js +1 -0
  153. package/cdn/chunks/chunk.E4QLFQIH.js +1 -0
  154. package/cdn/chunks/chunk.E6MOE4FE.js +1 -0
  155. package/cdn/chunks/chunk.ECBLO7D3.js +1 -0
  156. package/cdn/chunks/chunk.EDLGCMPJ.js +1 -0
  157. package/cdn/chunks/chunk.ELYXTKTB.js +1 -0
  158. package/cdn/chunks/chunk.EMVTQD7Z.js +1 -0
  159. package/cdn/chunks/chunk.ESSED3D6.js +1 -0
  160. package/cdn/chunks/chunk.EZBCPDK5.js +1 -0
  161. package/cdn/chunks/chunk.EZBP4Q35.js +1 -0
  162. package/cdn/chunks/chunk.F7P64TTE.js +1 -0
  163. package/cdn/chunks/chunk.F7QM26VX.js +1 -0
  164. package/cdn/chunks/chunk.G3WMDHXU.js +1 -0
  165. package/cdn/chunks/chunk.G443HDU2.js +1 -0
  166. package/cdn/chunks/chunk.G4SAKBPC.js +1 -0
  167. package/cdn/chunks/chunk.GMD2IG67.js +1 -0
  168. package/cdn/chunks/chunk.GQIBOT7V.js +1 -0
  169. package/cdn/chunks/chunk.GRSW4YMQ.js +157 -0
  170. package/cdn/chunks/chunk.GUYJ76FZ.js +1 -0
  171. package/cdn/chunks/chunk.H2EOXVSZ.js +1 -0
  172. package/cdn/chunks/chunk.HAL7R4WT.js +0 -0
  173. package/cdn/chunks/chunk.HGR2N7GN.js +1 -0
  174. package/cdn/chunks/chunk.HNKZJPU5.js +1 -0
  175. package/cdn/chunks/chunk.HTBAOVSV.js +1 -0
  176. package/cdn/chunks/chunk.IFDHHGOU.js +1 -0
  177. package/cdn/chunks/chunk.IGMWK7NZ.js +1 -0
  178. package/cdn/chunks/chunk.IIHX5LOR.js +1 -0
  179. package/cdn/chunks/chunk.IJB4PCJH.js +1 -0
  180. package/cdn/chunks/chunk.IJMKJLO7.js +1 -0
  181. package/cdn/chunks/chunk.IJXVLI7F.js +1 -0
  182. package/cdn/chunks/chunk.ITURS4YZ.js +68 -0
  183. package/cdn/chunks/chunk.IUL3BHES.js +18 -0
  184. package/cdn/chunks/chunk.IX4OV3X6.js +63 -0
  185. package/cdn/chunks/chunk.J35PXB2V.js +204 -0
  186. package/cdn/chunks/chunk.JE6IZBGI.js +10 -0
  187. package/cdn/chunks/chunk.JTEIIDTY.js +106 -0
  188. package/cdn/chunks/chunk.KDTLVKSZ.js +127 -0
  189. package/cdn/chunks/chunk.KKVT4LHX.js +10 -0
  190. package/cdn/chunks/chunk.KPQGFV2T.js +1 -0
  191. package/cdn/chunks/chunk.KWVZRE3E.js +10 -0
  192. package/cdn/chunks/chunk.KYRT75BX.js +1 -0
  193. package/cdn/chunks/chunk.L2CNBOZJ.js +1 -0
  194. package/cdn/chunks/chunk.L4UUK6G4.js +1 -0
  195. package/cdn/chunks/chunk.LCCA4ADE.js +174 -0
  196. package/cdn/chunks/chunk.LDRHXIYA.js +1 -0
  197. package/cdn/chunks/chunk.LGGEB3IB.js +1 -0
  198. package/cdn/chunks/chunk.LHYUHRTC.js +1 -0
  199. package/cdn/chunks/chunk.LI6ACV6L.js +1 -0
  200. package/cdn/chunks/chunk.LIZVMFP3.js +1 -0
  201. package/cdn/chunks/chunk.LVUPLZGE.js +1 -0
  202. package/cdn/chunks/chunk.LWZCSGTE.js +1 -0
  203. package/cdn/chunks/chunk.M256MZ2P.js +1 -0
  204. package/cdn/chunks/chunk.M2NVAC3Z.js +1 -0
  205. package/cdn/chunks/chunk.MAQ3AU52.js +1 -0
  206. package/cdn/chunks/chunk.MM4THVKJ.js +1 -0
  207. package/cdn/chunks/chunk.MO7QMIH2.js +1 -0
  208. package/cdn/chunks/chunk.MV54FYCN.js +1 -0
  209. package/cdn/chunks/chunk.N5AZOOIZ.js +1 -0
  210. package/cdn/chunks/chunk.N72C3VU3.js +1 -0
  211. package/cdn/chunks/chunk.NE3XXRZM.js +1 -0
  212. package/cdn/chunks/chunk.NPYG3KBW.js +1 -0
  213. package/cdn/chunks/chunk.NTFNGAOW.js +117 -0
  214. package/cdn/chunks/chunk.NU2STAMX.js +1 -0
  215. package/cdn/chunks/chunk.NYIRGEA7.js +1 -0
  216. package/cdn/chunks/chunk.NYYTSWQF.js +38 -0
  217. package/cdn/chunks/chunk.O537LU5E.js +1 -0
  218. package/cdn/chunks/chunk.OD26IPSI.js +1 -0
  219. package/cdn/chunks/chunk.OI4TZZJC.js +305 -0
  220. package/cdn/chunks/chunk.OOQOIJSK.js +1 -0
  221. package/cdn/chunks/chunk.OQDGIWGZ.js +196 -0
  222. package/cdn/chunks/chunk.ORA34WZP.js +1 -0
  223. package/cdn/chunks/chunk.P4UE3S5U.js +1 -0
  224. package/cdn/chunks/chunk.P7GBRX2Q.js +1 -0
  225. package/cdn/chunks/chunk.P7X6ERDI.js +1 -0
  226. package/cdn/chunks/chunk.PBL2P7GX.js +1 -0
  227. package/cdn/chunks/chunk.PCTA7J6C.js +1 -0
  228. package/cdn/chunks/chunk.POW4JBEN.js +79 -0
  229. package/cdn/chunks/chunk.PP72VCB4.js +1 -0
  230. package/cdn/chunks/chunk.PSDD6Q4W.js +1 -0
  231. package/cdn/chunks/chunk.QCISI32Q.js +4 -0
  232. package/cdn/chunks/chunk.QE6C2GEL.js +1 -0
  233. package/cdn/chunks/chunk.QL5C2XOW.js +0 -0
  234. package/cdn/chunks/chunk.QPQZP354.js +208 -0
  235. package/cdn/chunks/chunk.QY5QOZRE.js +1 -0
  236. package/cdn/chunks/chunk.R2GXUKDX.js +1 -0
  237. package/cdn/chunks/chunk.R4FKXVN2.js +1 -0
  238. package/cdn/chunks/chunk.RFDMVIMA.js +1 -0
  239. package/cdn/chunks/chunk.RQ34LIU5.js +1 -0
  240. package/cdn/chunks/chunk.RWQ2HCYN.js +297 -0
  241. package/cdn/chunks/chunk.RYPVSVQS.js +326 -0
  242. package/cdn/chunks/chunk.RZZMGXAZ.js +1 -0
  243. package/cdn/chunks/chunk.SEIDC2AV.js +1 -0
  244. package/cdn/chunks/chunk.SMFJUIOR.js +10 -0
  245. package/cdn/chunks/chunk.SPURF5RT.js +4 -0
  246. package/cdn/chunks/chunk.STH7HATQ.js +142 -0
  247. package/cdn/chunks/chunk.SUPXW5XU.js +1 -0
  248. package/cdn/chunks/chunk.SXVGSAUS.js +4 -0
  249. package/cdn/chunks/chunk.TARXG5U3.js +1 -0
  250. package/cdn/chunks/chunk.TMAMLCL3.js +1 -0
  251. package/cdn/chunks/chunk.TMMJRXEV.js +1 -0
  252. package/cdn/chunks/chunk.TRVVBQVV.js +481 -0
  253. package/cdn/chunks/chunk.TSGCOVAS.js +1 -0
  254. package/cdn/chunks/chunk.TSZI2CPF.js +1 -0
  255. package/cdn/chunks/chunk.U2DNK7H4.js +1 -0
  256. package/cdn/chunks/chunk.U3MA3RIB.js +1 -0
  257. package/cdn/chunks/chunk.U3P5JBYR.js +250 -0
  258. package/cdn/chunks/chunk.U4YNKCI4.js +1 -0
  259. package/cdn/chunks/chunk.U7RBI2DC.js +1 -0
  260. package/cdn/chunks/chunk.UDGTTCHU.js +660 -0
  261. package/cdn/chunks/chunk.UJQFNBOE.js +1 -0
  262. package/cdn/chunks/chunk.UY4REGW5.js +1 -0
  263. package/cdn/chunks/chunk.V3AEPIKH.js +1 -0
  264. package/cdn/chunks/chunk.V4EXVX5U.js +1 -0
  265. package/cdn/chunks/chunk.V4LKFSOV.js +1 -0
  266. package/cdn/chunks/chunk.V7QO7LZ4.js +1 -0
  267. package/cdn/chunks/chunk.VVTMOSN2.js +170 -0
  268. package/cdn/chunks/chunk.W5PM7F34.js +34 -0
  269. package/cdn/chunks/chunk.WLREBMFL.js +1 -0
  270. package/cdn/chunks/chunk.X2UEAQ7T.js +1 -0
  271. package/cdn/chunks/chunk.XDLJVU4W.js +3 -0
  272. package/cdn/chunks/chunk.XESREUP5.js +10 -0
  273. package/cdn/chunks/chunk.XGNJKW3A.js +111 -0
  274. package/cdn/chunks/chunk.XNUSDBIN.js +1 -0
  275. package/cdn/chunks/chunk.XSSNRCMY.js +1 -0
  276. package/cdn/chunks/chunk.Y4QDLYQS.js +1 -0
  277. package/cdn/chunks/chunk.YDM7FW42.js +100 -0
  278. package/cdn/chunks/chunk.YEQLZR6M.js +1 -0
  279. package/cdn/chunks/chunk.YPCDSPNA.js +1 -0
  280. package/cdn/chunks/chunk.YUNTZWZZ.js +73 -0
  281. package/cdn/chunks/chunk.YVZPSF4R.js +1 -0
  282. package/cdn/chunks/chunk.YWY7M46V.js +1 -0
  283. package/cdn/chunks/chunk.Z6NCEETZ.js +1 -0
  284. package/cdn/chunks/chunk.ZDVLHLRA.js +1 -0
  285. package/cdn/chunks/chunk.ZE2WQTE4.js +1 -0
  286. package/cdn/chunks/chunk.ZJK5UEUE.js +1 -0
  287. package/cdn/chunks/chunk.ZRRFT6U7.js +1 -0
  288. package/cdn/chunks/chunk.ZS4GILCB.js +1 -0
  289. package/cdn/chunks/chunk.ZVANQQXU.js +1 -0
  290. package/cdn/chunks/chunk.ZY64ASSW.js +1 -0
  291. package/cdn/chunks/chunk.ZZIEMICG.js +11 -0
  292. package/cdn/components/animation/animation.js +1 -0
  293. package/cdn/components/animation/animations.js +1 -0
  294. package/cdn/components/avatar/avatar.js +1 -0
  295. package/cdn/components/badge/badge.js +1 -0
  296. package/cdn/components/button/button.js +1 -0
  297. package/cdn/components/button-group/button-group.js +1 -0
  298. package/cdn/components/callout/callout.js +1 -0
  299. package/cdn/components/card/card.js +1 -0
  300. package/cdn/components/checkbox/checkbox.js +1 -0
  301. package/cdn/components/color-picker/color-picker.js +1 -0
  302. package/cdn/components/comparer/comparer.js +1 -0
  303. package/cdn/components/copy-button/copy-button.js +1 -0
  304. package/cdn/components/details/details.js +1 -0
  305. package/cdn/components/dialog/dialog.js +1 -0
  306. package/cdn/components/divider/divider.js +1 -0
  307. package/cdn/components/drawer/drawer.js +1 -0
  308. package/cdn/components/dropdown/dropdown.js +1 -0
  309. package/cdn/components/dropdown-item/dropdown-item.js +1 -0
  310. package/cdn/components/format-bytes/format-bytes.js +1 -0
  311. package/cdn/components/format-date/format-date.js +1 -0
  312. package/cdn/components/format-number/format-number.js +1 -0
  313. package/cdn/components/icon/icon.js +1 -0
  314. package/cdn/components/icon/library.default.js +1 -0
  315. package/cdn/components/icon/library.js +1 -0
  316. package/cdn/components/icon/library.system.js +1 -0
  317. package/cdn/components/input/input.js +1 -0
  318. package/cdn/components/mutation-observer/mutation-observer.js +1 -0
  319. package/cdn/components/option/option.js +1 -0
  320. package/cdn/components/popup/popup.js +1 -0
  321. package/cdn/components/qr-code/qr-code.js +1 -0
  322. package/cdn/components/radio/radio.js +1 -0
  323. package/cdn/components/radio-group/radio-group.js +1 -0
  324. package/cdn/components/rating/rating.js +1 -0
  325. package/cdn/components/resize-observer/resize-observer.js +1 -0
  326. package/cdn/components/scroller/scroller.js +1 -0
  327. package/cdn/components/select/select.js +1 -0
  328. package/cdn/components/spinner/spinner.js +1 -0
  329. package/cdn/components/switch/switch.js +1 -0
  330. package/cdn/components/tab/tab.js +1 -0
  331. package/cdn/components/tab-group/tab-group.js +1 -0
  332. package/cdn/components/tab-panel/tab-panel.js +1 -0
  333. package/cdn/components/tag/tag.js +1 -0
  334. package/cdn/components/textarea/textarea.js +1 -0
  335. package/cdn/components/tooltip/tooltip.js +1 -0
  336. package/cdn/custom-elements.json +13055 -0
  337. package/cdn/events/events.js +1 -0
  338. package/cdn/events/pc-after-collapse.js +0 -0
  339. package/cdn/events/pc-after-expand.js +0 -0
  340. package/cdn/events/pc-after-hide.js +0 -0
  341. package/cdn/events/pc-after-show.js +0 -0
  342. package/cdn/events/pc-blur.js +0 -0
  343. package/cdn/events/pc-cancel.js +0 -0
  344. package/cdn/events/pc-change.js +0 -0
  345. package/cdn/events/pc-clear.js +0 -0
  346. package/cdn/events/pc-close.js +0 -0
  347. package/cdn/events/pc-collapse.js +0 -0
  348. package/cdn/events/pc-copy.js +0 -0
  349. package/cdn/events/pc-error.js +0 -0
  350. package/cdn/events/pc-expand.js +0 -0
  351. package/cdn/events/pc-finish.js +0 -0
  352. package/cdn/events/pc-focus.js +0 -0
  353. package/cdn/events/pc-hide.js +0 -0
  354. package/cdn/events/pc-hover.js +0 -0
  355. package/cdn/events/pc-initial-focus.js +0 -0
  356. package/cdn/events/pc-input.js +0 -0
  357. package/cdn/events/pc-invalid.js +0 -0
  358. package/cdn/events/pc-lazy-change.js +0 -0
  359. package/cdn/events/pc-lazy-load.js +0 -0
  360. package/cdn/events/pc-load.js +0 -0
  361. package/cdn/events/pc-mutation.js +0 -0
  362. package/cdn/events/pc-remove.js +0 -0
  363. package/cdn/events/pc-reposition.js +0 -0
  364. package/cdn/events/pc-resize.js +0 -0
  365. package/cdn/events/pc-select.js +0 -0
  366. package/cdn/events/pc-selection-change.js +0 -0
  367. package/cdn/events/pc-show.js +0 -0
  368. package/cdn/events/pc-slide-change.js +0 -0
  369. package/cdn/events/pc-start.js +0 -0
  370. package/cdn/events/pc-tab-hide.js +0 -0
  371. package/cdn/events/pc-tab-show.js +0 -0
  372. package/cdn/global-shims.js +1 -0
  373. package/cdn/internal/active-elements.js +1 -0
  374. package/cdn/internal/animate.js +1 -0
  375. package/cdn/internal/close-active-element.js +1 -0
  376. package/cdn/internal/debounce.js +1 -0
  377. package/cdn/internal/default-value.js +1 -0
  378. package/cdn/internal/drag.js +1 -0
  379. package/cdn/internal/emit.js +1 -0
  380. package/cdn/internal/event.js +1 -0
  381. package/cdn/internal/form.js +1 -0
  382. package/cdn/internal/math.js +1 -0
  383. package/cdn/internal/offset.js +1 -0
  384. package/cdn/internal/parse.js +1 -0
  385. package/cdn/internal/placer-element.js +1 -0
  386. package/cdn/internal/placer-form-control.js +0 -0
  387. package/cdn/internal/scroll.js +1 -0
  388. package/cdn/internal/scrollend-polyfill.js +1 -0
  389. package/cdn/internal/slot.js +1 -0
  390. package/cdn/internal/string.js +1 -0
  391. package/cdn/internal/tabbable.js +1 -0
  392. package/cdn/internal/watch.js +1 -0
  393. package/cdn/placer-autoloader.js +1 -0
  394. package/cdn/placer.js +1 -0
  395. package/cdn/styles/component-styles/form-control.css +33 -0
  396. package/cdn/styles/component-styles/host.css +13 -0
  397. package/cdn/styles/native.css +451 -0
  398. package/cdn/styles/palette/base.css +100 -0
  399. package/cdn/styles/palette/default.css +227 -0
  400. package/cdn/styles/palette/muted.css +227 -0
  401. package/cdn/styles/palette/vibrant.css +227 -0
  402. package/cdn/styles/placer.css +10 -0
  403. package/cdn/styles/themes/default.css +445 -0
  404. package/cdn/styles/themes/serene.css +454 -0
  405. package/cdn/styles/themes/utility.css +544 -0
  406. package/cdn/styles/utilities/align-items.css +21 -0
  407. package/cdn/styles/utilities/appearance.css +62 -0
  408. package/cdn/styles/utilities/border-radius.css +29 -0
  409. package/cdn/styles/utilities/fouce.css +11 -0
  410. package/cdn/styles/utilities/gap.css +66 -0
  411. package/cdn/styles/utilities/layout.css +162 -0
  412. package/cdn/styles/utilities/scroll-lock.css +21 -0
  413. package/cdn/styles/utilities/size.css +16 -0
  414. package/cdn/styles/utilities/text.css +156 -0
  415. package/cdn/styles/utilities/visually-hidden.css +16 -0
  416. package/cdn/styles/utilities.css +13 -0
  417. package/cdn/translations/ar.js +1 -0
  418. package/cdn/translations/bg.js +1 -0
  419. package/cdn/translations/bn.js +1 -0
  420. package/cdn/translations/bs.js +1 -0
  421. package/cdn/translations/ca.js +1 -0
  422. package/cdn/translations/cs.js +1 -0
  423. package/cdn/translations/cy.js +1 -0
  424. package/cdn/translations/da.js +1 -0
  425. package/cdn/translations/de-at.js +1 -0
  426. package/cdn/translations/de-ch.js +1 -0
  427. package/cdn/translations/de.js +1 -0
  428. package/cdn/translations/el.js +1 -0
  429. package/cdn/translations/en-gb.js +1 -0
  430. package/cdn/translations/en.js +1 -0
  431. package/cdn/translations/es-es.js +1 -0
  432. package/cdn/translations/es.js +1 -0
  433. package/cdn/translations/et.js +1 -0
  434. package/cdn/translations/eu.js +1 -0
  435. package/cdn/translations/fa.js +1 -0
  436. package/cdn/translations/fi.js +1 -0
  437. package/cdn/translations/fil.js +1 -0
  438. package/cdn/translations/fo.js +1 -0
  439. package/cdn/translations/fr-ca.js +1 -0
  440. package/cdn/translations/fr.js +1 -0
  441. package/cdn/translations/ga.js +1 -0
  442. package/cdn/translations/gu.js +1 -0
  443. package/cdn/translations/he.js +1 -0
  444. package/cdn/translations/hi.js +1 -0
  445. package/cdn/translations/hr.js +1 -0
  446. package/cdn/translations/hu.js +1 -0
  447. package/cdn/translations/id.js +1 -0
  448. package/cdn/translations/index.js +1 -0
  449. package/cdn/translations/is.js +1 -0
  450. package/cdn/translations/it.js +1 -0
  451. package/cdn/translations/ja.js +1 -0
  452. package/cdn/translations/ko.js +1 -0
  453. package/cdn/translations/lb.js +1 -0
  454. package/cdn/translations/lo.js +1 -0
  455. package/cdn/translations/lt.js +1 -0
  456. package/cdn/translations/lv.js +1 -0
  457. package/cdn/translations/mr.js +1 -0
  458. package/cdn/translations/ms.js +1 -0
  459. package/cdn/translations/mt.js +1 -0
  460. package/cdn/translations/nb.js +1 -0
  461. package/cdn/translations/nl-be.js +1 -0
  462. package/cdn/translations/nl.js +1 -0
  463. package/cdn/translations/nn.js +1 -0
  464. package/cdn/translations/pa-guru.js +1 -0
  465. package/cdn/translations/pa.js +1 -0
  466. package/cdn/translations/pl.js +1 -0
  467. package/cdn/translations/ps.js +1 -0
  468. package/cdn/translations/pt-br.js +1 -0
  469. package/cdn/translations/pt-pt.js +1 -0
  470. package/cdn/translations/pt.js +1 -0
  471. package/cdn/translations/ro.js +1 -0
  472. package/cdn/translations/ru.js +1 -0
  473. package/cdn/translations/sk.js +1 -0
  474. package/cdn/translations/sl.js +1 -0
  475. package/cdn/translations/sq.js +1 -0
  476. package/cdn/translations/sr.js +1 -0
  477. package/cdn/translations/sv.js +1 -0
  478. package/cdn/translations/sw.js +1 -0
  479. package/cdn/translations/te.js +1 -0
  480. package/cdn/translations/th.js +1 -0
  481. package/cdn/translations/tl.js +1 -0
  482. package/cdn/translations/tr.js +1 -0
  483. package/cdn/translations/uk.js +1 -0
  484. package/cdn/translations/ur.js +1 -0
  485. package/cdn/translations/vi.js +1 -0
  486. package/cdn/translations/zh-cn.js +1 -0
  487. package/cdn/translations/zh-hk.js +1 -0
  488. package/cdn/translations/zh-tw.js +1 -0
  489. package/cdn/utilities/animation-registry.js +1 -0
  490. package/cdn/utilities/animation.js +1 -0
  491. package/cdn/utilities/form.js +1 -0
  492. package/cdn/utilities/icon-library.js +1 -0
  493. package/cdn/utilities/kit-code.js +1 -0
  494. package/cdn/utilities/localize.js +1 -0
  495. package/dist/animations/attention_seekers/bounce.js +46 -44
  496. package/dist/animations/attention_seekers/flash.js +10 -8
  497. package/dist/animations/attention_seekers/headShake.js +11 -9
  498. package/dist/animations/attention_seekers/heartBeat.js +10 -8
  499. package/dist/animations/attention_seekers/jello.js +18 -16
  500. package/dist/animations/attention_seekers/pulse.js +8 -6
  501. package/dist/animations/attention_seekers/rubberBand.js +12 -10
  502. package/dist/animations/attention_seekers/shake.js +16 -14
  503. package/dist/animations/attention_seekers/shakeX.js +16 -14
  504. package/dist/animations/attention_seekers/shakeY.js +16 -14
  505. package/dist/animations/attention_seekers/swing.js +10 -8
  506. package/dist/animations/attention_seekers/tada.js +43 -41
  507. package/dist/animations/attention_seekers/wobble.js +27 -25
  508. package/dist/animations/back_entrances/backInDown.js +8 -6
  509. package/dist/animations/back_entrances/backInLeft.js +8 -6
  510. package/dist/animations/back_entrances/backInRight.js +8 -6
  511. package/dist/animations/back_entrances/backInUp.js +8 -6
  512. package/dist/animations/back_exits/backOutDown.js +8 -6
  513. package/dist/animations/back_exits/backOutLeft.js +8 -6
  514. package/dist/animations/back_exits/backOutRight.js +8 -6
  515. package/dist/animations/back_exits/backOutUp.js +8 -6
  516. package/dist/animations/bouncing_entrances/bounceIn.js +17 -15
  517. package/dist/animations/bouncing_entrances/bounceInDown.js +23 -21
  518. package/dist/animations/bouncing_entrances/bounceInLeft.js +23 -21
  519. package/dist/animations/bouncing_entrances/bounceInRight.js +23 -21
  520. package/dist/animations/bouncing_entrances/bounceInUp.js +23 -21
  521. package/dist/animations/bouncing_exits/bounceOut.js +9 -7
  522. package/dist/animations/bouncing_exits/bounceOutDown.js +21 -19
  523. package/dist/animations/bouncing_exits/bounceOutLeft.js +15 -13
  524. package/dist/animations/bouncing_exits/bounceOutRight.js +15 -13
  525. package/dist/animations/bouncing_exits/bounceOutUp.js +21 -19
  526. package/dist/animations/easings/easings.js +34 -32
  527. package/dist/animations/fading_entrances/fadeIn.js +7 -5
  528. package/dist/animations/fading_entrances/fadeInBottomLeft.js +7 -5
  529. package/dist/animations/fading_entrances/fadeInBottomRight.js +7 -5
  530. package/dist/animations/fading_entrances/fadeInDown.js +7 -5
  531. package/dist/animations/fading_entrances/fadeInDownBig.js +7 -5
  532. package/dist/animations/fading_entrances/fadeInLeft.js +7 -5
  533. package/dist/animations/fading_entrances/fadeInLeftBig.js +7 -5
  534. package/dist/animations/fading_entrances/fadeInRight.js +7 -5
  535. package/dist/animations/fading_entrances/fadeInRightBig.js +7 -5
  536. package/dist/animations/fading_entrances/fadeInTopLeft.js +7 -5
  537. package/dist/animations/fading_entrances/fadeInTopRight.js +7 -5
  538. package/dist/animations/fading_entrances/fadeInUp.js +7 -5
  539. package/dist/animations/fading_entrances/fadeInUpBig.js +7 -5
  540. package/dist/animations/fading_exits/fadeOut.js +7 -5
  541. package/dist/animations/fading_exits/fadeOutBottomLeft.js +7 -5
  542. package/dist/animations/fading_exits/fadeOutBottomRight.js +7 -5
  543. package/dist/animations/fading_exits/fadeOutDown.js +7 -5
  544. package/dist/animations/fading_exits/fadeOutDownBig.js +7 -5
  545. package/dist/animations/fading_exits/fadeOutLeft.js +7 -5
  546. package/dist/animations/fading_exits/fadeOutLeftBig.js +7 -5
  547. package/dist/animations/fading_exits/fadeOutRight.js +7 -5
  548. package/dist/animations/fading_exits/fadeOutRightBig.js +7 -5
  549. package/dist/animations/fading_exits/fadeOutTopLeft.js +7 -5
  550. package/dist/animations/fading_exits/fadeOutTopRight.js +7 -5
  551. package/dist/animations/fading_exits/fadeOutUp.js +7 -5
  552. package/dist/animations/fading_exits/fadeOutUpBig.js +7 -5
  553. package/dist/animations/flippers/flip.js +30 -28
  554. package/dist/animations/flippers/flipInX.js +23 -21
  555. package/dist/animations/flippers/flipInY.js +23 -21
  556. package/dist/animations/flippers/flipOutX.js +16 -14
  557. package/dist/animations/flippers/flipOutY.js +16 -14
  558. package/dist/animations/index.js +1208 -101
  559. package/dist/animations/lightspeed/lightSpeedInLeft.js +13 -11
  560. package/dist/animations/lightspeed/lightSpeedInRight.js +13 -11
  561. package/dist/animations/lightspeed/lightSpeedOutLeft.js +11 -9
  562. package/dist/animations/lightspeed/lightSpeedOutRight.js +11 -9
  563. package/dist/animations/rotating_entrances/rotateIn.js +7 -5
  564. package/dist/animations/rotating_entrances/rotateInDownLeft.js +7 -5
  565. package/dist/animations/rotating_entrances/rotateInDownRight.js +7 -5
  566. package/dist/animations/rotating_entrances/rotateInUpLeft.js +7 -5
  567. package/dist/animations/rotating_entrances/rotateInUpRight.js +7 -5
  568. package/dist/animations/rotating_exits/rotateOut.js +7 -5
  569. package/dist/animations/rotating_exits/rotateOutDownLeft.js +7 -5
  570. package/dist/animations/rotating_exits/rotateOutDownRight.js +7 -5
  571. package/dist/animations/rotating_exits/rotateOutUpLeft.js +7 -5
  572. package/dist/animations/rotating_exits/rotateOutUpRight.js +7 -5
  573. package/dist/animations/sliding_entrances/slideInDown.js +7 -5
  574. package/dist/animations/sliding_entrances/slideInLeft.js +7 -5
  575. package/dist/animations/sliding_entrances/slideInRight.js +7 -5
  576. package/dist/animations/sliding_entrances/slideInUp.js +7 -5
  577. package/dist/animations/sliding_exits/slideOutDown.js +7 -5
  578. package/dist/animations/sliding_exits/slideOutLeft.js +7 -5
  579. package/dist/animations/sliding_exits/slideOutRight.js +7 -5
  580. package/dist/animations/sliding_exits/slideOutUp.js +7 -5
  581. package/dist/animations/specials/hinge.js +29 -27
  582. package/dist/animations/specials/jackInTheBox.js +14 -12
  583. package/dist/animations/specials/rollIn.js +11 -9
  584. package/dist/animations/specials/rollOut.js +11 -9
  585. package/dist/animations/zooming_entrances/zoomIn.js +7 -5
  586. package/dist/animations/zooming_entrances/zoomInDown.js +17 -15
  587. package/dist/animations/zooming_entrances/zoomInLeft.js +17 -15
  588. package/dist/animations/zooming_entrances/zoomInRight.js +17 -15
  589. package/dist/animations/zooming_entrances/zoomInUp.js +17 -15
  590. package/dist/animations/zooming_exits/zoomOut.js +8 -6
  591. package/dist/animations/zooming_exits/zoomOutDown.js +17 -15
  592. package/dist/animations/zooming_exits/zoomOutLeft.js +15 -13
  593. package/dist/animations/zooming_exits/zoomOutRight.js +15 -13
  594. package/dist/animations/zooming_exits/zoomOutUp.js +17 -15
  595. package/dist/components/animation/animation.d.ts +65 -3
  596. package/dist/components/animation/animation.js +2185 -3
  597. package/dist/components/animation/animations.js +1225 -8
  598. package/dist/components/avatar/avatar.d.ts +43 -3
  599. package/dist/components/avatar/avatar.js +1323 -3
  600. package/dist/components/badge/badge.d.ts +23 -3
  601. package/dist/components/badge/badge.js +754 -3
  602. package/dist/components/button/button.d.ts +102 -3
  603. package/dist/components/button/button.js +1516 -3
  604. package/dist/components/button-group/button-group.d.ts +28 -3
  605. package/dist/components/button-group/button-group.js +898 -3
  606. package/dist/components/callout/callout.d.ts +24 -3
  607. package/dist/components/callout/callout.js +763 -3
  608. package/dist/components/card/card.d.ts +27 -3
  609. package/dist/components/card/card.js +866 -3
  610. package/dist/components/checkbox/checkbox.d.ts +93 -3
  611. package/dist/components/checkbox/checkbox.js +1920 -3
  612. package/dist/components/color-picker/color-picker.d.ts +206 -0
  613. package/dist/components/color-picker/color-picker.js +7014 -0
  614. package/dist/components/comparer/comparer.d.ts +44 -3
  615. package/dist/components/comparer/comparer.js +1631 -3
  616. package/dist/components/copy-button/copy-button.d.ts +74 -3
  617. package/dist/components/copy-button/copy-button.js +3936 -3
  618. package/dist/components/details/details.d.ts +64 -3
  619. package/dist/components/details/details.js +1735 -3
  620. package/dist/components/dialog/dialog.d.ts +71 -3
  621. package/dist/components/dialog/dialog.js +2062 -3
  622. package/dist/components/divider/divider.d.ts +19 -3
  623. package/dist/components/divider/divider.js +778 -3
  624. package/dist/components/drawer/drawer.d.ts +79 -3
  625. package/dist/components/drawer/drawer.js +2150 -3
  626. package/dist/components/dropdown/dropdown.d.ts +103 -3
  627. package/dist/components/dropdown/dropdown.js +3755 -3
  628. package/dist/components/dropdown-item/dropdown-item.d.ts +84 -0
  629. package/dist/components/dropdown-item/dropdown-item.js +1771 -0
  630. package/dist/components/format-bytes/format-bytes.d.ts +24 -0
  631. package/dist/components/format-bytes/format-bytes.js +960 -0
  632. package/dist/components/format-date/format-date.d.ts +40 -0
  633. package/dist/components/format-date/format-date.js +963 -0
  634. package/dist/components/format-number/format-number.d.ts +39 -0
  635. package/dist/components/format-number/format-number.js +1001 -0
  636. package/dist/components/icon/icon.d.ts +49 -3
  637. package/dist/components/icon/icon.js +1175 -3
  638. package/dist/components/icon/library.d.ts +3 -2
  639. package/dist/components/icon/library.default.js +63 -7
  640. package/dist/components/icon/library.js +230 -23
  641. package/dist/components/icon/library.system.js +134 -119
  642. package/dist/components/input/input.d.ts +165 -3
  643. package/dist/components/input/input.js +2303 -3
  644. package/dist/components/mutation-observer/mutation-observer.d.ts +37 -0
  645. package/dist/components/mutation-observer/mutation-observer.js +873 -0
  646. package/dist/components/option/option.d.ts +53 -3
  647. package/dist/components/option/option.js +1352 -3
  648. package/dist/components/popup/popup.d.ts +87 -3
  649. package/dist/components/popup/popup.js +2934 -3
  650. package/dist/components/qr-code/qr-code.d.ts +32 -3
  651. package/dist/components/qr-code/qr-code.js +1533 -3
  652. package/dist/components/radio/radio.d.ts +42 -3
  653. package/dist/components/radio/radio.js +925 -3
  654. package/dist/components/radio-group/radio-group.d.ts +79 -3
  655. package/dist/components/radio-group/radio-group.js +1519 -3
  656. package/dist/components/rating/rating.d.ts +67 -3
  657. package/dist/components/rating/rating.js +1757 -3
  658. package/dist/components/resize-observer/resize-observer.d.ts +26 -3
  659. package/dist/components/resize-observer/resize-observer.js +835 -3
  660. package/dist/components/scroller/scroller.d.ts +35 -0
  661. package/dist/components/scroller/scroller.js +1072 -0
  662. package/dist/components/select/select.d.ts +179 -3
  663. package/dist/components/select/select.js +5107 -3
  664. package/dist/components/spinner/spinner.d.ts +19 -3
  665. package/dist/components/spinner/spinner.js +917 -3
  666. package/dist/components/switch/switch.d.ts +85 -3
  667. package/dist/components/switch/switch.js +1479 -3
  668. package/dist/components/tab/tab.d.ts +47 -3
  669. package/dist/components/tab/tab.js +1788 -3
  670. package/dist/components/tab-group/tab-group.d.ts +91 -3
  671. package/dist/components/tab-group/tab-group.js +2385 -3
  672. package/dist/components/tab-panel/tab-panel.d.ts +24 -3
  673. package/dist/components/tab-panel/tab-panel.js +847 -3
  674. package/dist/components/tag/tag.d.ts +38 -3
  675. package/dist/components/tag/tag.js +1750 -3
  676. package/dist/components/textarea/textarea.d.ts +137 -0
  677. package/dist/components/textarea/textarea.js +1630 -0
  678. package/dist/components/tooltip/tooltip.d.ts +80 -3
  679. package/dist/components/tooltip/tooltip.js +3298 -3
  680. package/dist/custom-elements.json +13055 -0
  681. package/dist/events/events.d.ts +0 -1
  682. package/dist/events/events.js +0 -1
  683. package/dist/events/pc-after-collapse.js +0 -1
  684. package/dist/events/pc-after-expand.js +0 -1
  685. package/dist/events/pc-after-hide.js +0 -1
  686. package/dist/events/pc-after-show.js +0 -1
  687. package/dist/events/pc-blur.js +0 -1
  688. package/dist/events/pc-cancel.js +0 -1
  689. package/dist/events/pc-change.js +0 -1
  690. package/dist/events/pc-clear.js +0 -1
  691. package/dist/events/pc-close.js +0 -1
  692. package/dist/events/pc-collapse.js +0 -1
  693. package/dist/events/pc-copy.js +0 -1
  694. package/dist/events/pc-error.js +0 -1
  695. package/dist/events/pc-expand.js +0 -1
  696. package/dist/events/pc-finish.js +0 -1
  697. package/dist/events/pc-focus.js +0 -1
  698. package/dist/events/pc-hide.js +0 -1
  699. package/dist/events/pc-hover.js +0 -1
  700. package/dist/events/pc-initial-focus.js +0 -1
  701. package/dist/events/pc-input.js +0 -1
  702. package/dist/events/pc-invalid.js +0 -1
  703. package/dist/events/pc-lazy-change.js +0 -1
  704. package/dist/events/pc-lazy-load.js +0 -1
  705. package/dist/events/pc-load.js +0 -1
  706. package/dist/events/pc-mutation.js +0 -1
  707. package/dist/events/pc-remove.js +0 -1
  708. package/dist/events/pc-reposition.js +0 -1
  709. package/dist/events/pc-resize.js +0 -1
  710. package/dist/events/pc-select.d.ts +2 -2
  711. package/dist/events/pc-select.js +0 -1
  712. package/dist/events/pc-selection-change.d.ts +0 -0
  713. package/dist/events/pc-selection-change.js +0 -1
  714. package/dist/events/pc-show.js +0 -1
  715. package/dist/events/pc-slide-change.d.ts +0 -0
  716. package/dist/events/pc-slide-change.js +0 -1
  717. package/dist/events/pc-start.js +0 -1
  718. package/dist/events/pc-tab-hide.js +0 -1
  719. package/dist/events/pc-tab-show.js +0 -1
  720. package/dist/global-shims.js +84 -83
  721. package/dist/internal/active-elements.d.ts +16 -0
  722. package/dist/internal/active-elements.js +13 -12
  723. package/dist/internal/animate.d.ts +6 -6
  724. package/dist/internal/animate.js +45 -33
  725. package/dist/internal/close-active-element.d.ts +5 -0
  726. package/dist/internal/close-active-element.js +9 -7
  727. package/dist/internal/debounce.js +14 -12
  728. package/dist/internal/default-value.js +582 -22
  729. package/dist/internal/drag.d.ts +4 -0
  730. package/dist/internal/drag.js +25 -23
  731. package/dist/internal/emit.d.ts +1 -0
  732. package/dist/internal/emit.js +14 -12
  733. package/dist/internal/event.d.ts +1 -0
  734. package/dist/internal/event.js +13 -11
  735. package/dist/internal/form.d.ts +31 -13
  736. package/dist/internal/form.js +294 -262
  737. package/dist/internal/math.d.ts +3 -0
  738. package/dist/internal/math.js +29 -10
  739. package/dist/internal/offset.d.ts +1 -0
  740. package/dist/internal/offset.js +12 -8
  741. package/dist/internal/parse.d.ts +2 -0
  742. package/dist/internal/parse.js +7 -0
  743. package/dist/internal/placer-element.d.ts +30 -0
  744. package/dist/internal/placer-element.js +712 -0
  745. package/dist/internal/placer-form-control.d.ts +23 -0
  746. package/dist/internal/placer-form-control.js +0 -0
  747. package/dist/internal/scroll.d.ts +3 -0
  748. package/dist/internal/scroll.js +78 -56
  749. package/dist/internal/scrollend-polyfill.js +68 -60
  750. package/dist/internal/slot.d.ts +3 -0
  751. package/dist/internal/slot.js +74 -68
  752. package/dist/internal/string.d.ts +1 -0
  753. package/dist/internal/string.js +5 -3
  754. package/dist/internal/tabbable.d.ts +1 -0
  755. package/dist/internal/tabbable.js +128 -131
  756. package/dist/internal/watch.d.ts +12 -6
  757. package/dist/internal/watch.js +29 -29
  758. package/dist/placer-autoloader.js +45 -33
  759. package/dist/placer.d.ts +42 -38
  760. package/dist/placer.js +16097 -43
  761. package/dist/styles/component-styles/form-control.css +33 -0
  762. package/dist/styles/component-styles/host.css +13 -0
  763. package/dist/styles/native.css +451 -0
  764. package/dist/styles/palette/base.css +100 -0
  765. package/dist/styles/palette/default.css +227 -0
  766. package/dist/styles/palette/muted.css +227 -0
  767. package/dist/styles/palette/vibrant.css +227 -0
  768. package/dist/styles/placer.css +10 -0
  769. package/dist/styles/themes/default.css +445 -0
  770. package/dist/styles/themes/serene.css +454 -0
  771. package/dist/styles/themes/utility.css +544 -0
  772. package/dist/styles/utilities/align-items.css +21 -0
  773. package/dist/styles/utilities/appearance.css +62 -0
  774. package/dist/styles/utilities/border-radius.css +29 -0
  775. package/dist/styles/utilities/fouce.css +11 -0
  776. package/dist/styles/utilities/gap.css +66 -0
  777. package/dist/styles/utilities/layout.css +162 -0
  778. package/dist/styles/utilities/scroll-lock.css +21 -0
  779. package/dist/styles/utilities/size.css +16 -0
  780. package/dist/styles/utilities/text.css +156 -0
  781. package/dist/styles/utilities/visually-hidden.css +16 -0
  782. package/dist/styles/utilities.css +13 -0
  783. package/dist/translations/ar.d.ts +3 -0
  784. package/dist/translations/ar.js +655 -0
  785. package/dist/translations/bg.d.ts +3 -0
  786. package/dist/translations/bg.js +651 -0
  787. package/dist/translations/bn.d.ts +3 -0
  788. package/dist/translations/bn.js +651 -0
  789. package/dist/translations/bs.d.ts +3 -0
  790. package/dist/translations/bs.js +655 -0
  791. package/dist/translations/ca.d.ts +3 -0
  792. package/dist/translations/ca.js +651 -0
  793. package/dist/translations/cs.d.ts +3 -0
  794. package/dist/translations/cs.js +653 -0
  795. package/dist/translations/cy.d.ts +3 -0
  796. package/dist/translations/cy.js +651 -0
  797. package/dist/translations/da.d.ts +3 -0
  798. package/dist/translations/da.js +651 -0
  799. package/dist/translations/de-at.d.ts +3 -0
  800. package/dist/translations/de-at.js +661 -0
  801. package/dist/translations/de-ch.d.ts +3 -0
  802. package/dist/translations/de-ch.js +662 -0
  803. package/dist/translations/de.d.ts +3 -0
  804. package/dist/translations/de.js +651 -0
  805. package/dist/translations/el.d.ts +3 -0
  806. package/dist/translations/el.js +651 -0
  807. package/dist/translations/en-gb.d.ts +3 -0
  808. package/dist/translations/en-gb.js +664 -0
  809. package/dist/translations/en.d.ts +3 -0
  810. package/dist/translations/en.js +651 -0
  811. package/dist/translations/es-es.d.ts +3 -0
  812. package/dist/translations/es-es.js +664 -0
  813. package/dist/translations/es.d.ts +3 -0
  814. package/dist/translations/es.js +651 -0
  815. package/dist/translations/et.d.ts +3 -0
  816. package/dist/translations/et.js +651 -0
  817. package/dist/translations/eu.d.ts +3 -0
  818. package/dist/translations/eu.js +651 -0
  819. package/dist/translations/fa.d.ts +3 -0
  820. package/dist/translations/fa.js +651 -0
  821. package/dist/translations/fi.d.ts +3 -0
  822. package/dist/translations/fi.js +651 -0
  823. package/dist/translations/fil.d.ts +3 -0
  824. package/dist/translations/fil.js +651 -0
  825. package/dist/translations/fo.d.ts +3 -0
  826. package/dist/translations/fo.js +651 -0
  827. package/dist/translations/fr-ca.d.ts +3 -0
  828. package/dist/translations/fr-ca.js +662 -0
  829. package/dist/translations/fr.d.ts +3 -0
  830. package/dist/translations/fr.js +651 -0
  831. package/dist/translations/ga.d.ts +3 -0
  832. package/dist/translations/ga.js +651 -0
  833. package/dist/translations/gu.d.ts +3 -0
  834. package/dist/translations/gu.js +651 -0
  835. package/dist/translations/he.d.ts +3 -0
  836. package/dist/translations/he.js +651 -0
  837. package/dist/translations/hi.d.ts +3 -0
  838. package/dist/translations/hi.js +651 -0
  839. package/dist/translations/hr.d.ts +3 -0
  840. package/dist/translations/hr.js +655 -0
  841. package/dist/translations/hu.d.ts +3 -0
  842. package/dist/translations/hu.js +651 -0
  843. package/dist/translations/id.d.ts +3 -0
  844. package/dist/translations/id.js +651 -0
  845. package/dist/translations/index.d.ts +62 -0
  846. package/dist/translations/index.js +693 -0
  847. package/dist/translations/is.d.ts +3 -0
  848. package/dist/translations/is.js +651 -0
  849. package/dist/translations/it.d.ts +3 -0
  850. package/dist/translations/it.js +651 -0
  851. package/dist/translations/ja.d.ts +3 -0
  852. package/dist/translations/ja.js +649 -0
  853. package/dist/translations/ko.d.ts +3 -0
  854. package/dist/translations/ko.js +649 -0
  855. package/dist/translations/lb.d.ts +3 -0
  856. package/dist/translations/lb.js +651 -0
  857. package/dist/translations/lo.d.ts +3 -0
  858. package/dist/translations/lo.js +643 -0
  859. package/dist/translations/lt.d.ts +3 -0
  860. package/dist/translations/lt.js +651 -0
  861. package/dist/translations/lv.d.ts +3 -0
  862. package/dist/translations/lv.js +651 -0
  863. package/dist/translations/mr.d.ts +3 -0
  864. package/dist/translations/mr.js +651 -0
  865. package/dist/translations/ms.d.ts +3 -0
  866. package/dist/translations/ms.js +643 -0
  867. package/dist/translations/mt.d.ts +3 -0
  868. package/dist/translations/mt.js +651 -0
  869. package/dist/translations/nb.d.ts +3 -0
  870. package/dist/translations/nb.js +651 -0
  871. package/dist/translations/nl-be.d.ts +3 -0
  872. package/dist/translations/nl-be.js +664 -0
  873. package/dist/translations/nl.d.ts +3 -0
  874. package/dist/translations/nl.js +651 -0
  875. package/dist/translations/nn.d.ts +3 -0
  876. package/dist/translations/nn.js +677 -0
  877. package/dist/translations/pa-guru.d.ts +3 -0
  878. package/dist/translations/pa-guru.js +651 -0
  879. package/dist/translations/pa.d.ts +3 -0
  880. package/dist/translations/pa.js +651 -0
  881. package/dist/translations/pl.d.ts +3 -0
  882. package/dist/translations/pl.js +655 -0
  883. package/dist/translations/ps.d.ts +3 -0
  884. package/dist/translations/ps.js +651 -0
  885. package/dist/translations/pt-br.d.ts +3 -0
  886. package/dist/translations/pt-br.js +664 -0
  887. package/dist/translations/pt-pt.d.ts +3 -0
  888. package/dist/translations/pt-pt.js +685 -0
  889. package/dist/translations/pt.d.ts +3 -0
  890. package/dist/translations/pt.js +651 -0
  891. package/dist/translations/ro.d.ts +3 -0
  892. package/dist/translations/ro.js +651 -0
  893. package/dist/translations/ru.d.ts +3 -0
  894. package/dist/translations/ru.js +657 -0
  895. package/dist/translations/sk.d.ts +3 -0
  896. package/dist/translations/sk.js +653 -0
  897. package/dist/translations/sl.d.ts +3 -0
  898. package/dist/translations/sl.js +655 -0
  899. package/dist/translations/sq.d.ts +3 -0
  900. package/dist/translations/sq.js +651 -0
  901. package/dist/translations/sr.d.ts +3 -0
  902. package/dist/translations/sr.js +655 -0
  903. package/dist/translations/sv.d.ts +3 -0
  904. package/dist/translations/sv.js +651 -0
  905. package/dist/translations/sw.d.ts +3 -0
  906. package/dist/translations/sw.js +651 -0
  907. package/dist/translations/te.d.ts +3 -0
  908. package/dist/translations/te.js +651 -0
  909. package/dist/translations/th.d.ts +3 -0
  910. package/dist/translations/th.js +643 -0
  911. package/dist/translations/tl.d.ts +3 -0
  912. package/dist/translations/tl.js +651 -0
  913. package/dist/translations/tr.d.ts +3 -0
  914. package/dist/translations/tr.js +651 -0
  915. package/dist/translations/uk.d.ts +3 -0
  916. package/dist/translations/uk.js +655 -0
  917. package/dist/translations/ur.d.ts +3 -0
  918. package/dist/translations/ur.js +651 -0
  919. package/dist/translations/vi.d.ts +3 -0
  920. package/dist/translations/vi.js +651 -0
  921. package/dist/translations/zh-cn.d.ts +3 -0
  922. package/dist/translations/zh-cn.js +651 -0
  923. package/dist/translations/zh-hk.d.ts +3 -0
  924. package/dist/translations/zh-hk.js +649 -0
  925. package/dist/translations/zh-tw.d.ts +3 -0
  926. package/dist/translations/zh-tw.js +674 -0
  927. package/dist/utilities/animation-registry.js +33 -29
  928. package/dist/utilities/animation.js +1229 -1
  929. package/dist/utilities/form.js +61 -34
  930. package/dist/utilities/icon-library.js +229 -1
  931. package/dist/utilities/kit-code.d.ts +2 -0
  932. package/dist/utilities/kit-code.js +18 -0
  933. package/dist/utilities/localize.d.ts +35 -0
  934. package/dist/utilities/localize.js +739 -0
  935. package/package.json +86 -79
  936. package/dist/components/animation/animation.component.d.ts +0 -65
  937. package/dist/components/animation/animation.component.js +0 -247
  938. package/dist/components/animation/animation.styles.d.ts +0 -1
  939. package/dist/components/animation/animation.styles.js +0 -9
  940. package/dist/components/avatar/avatar.component.d.ts +0 -43
  941. package/dist/components/avatar/avatar.component.js +0 -137
  942. package/dist/components/avatar/avatar.styles.d.ts +0 -1
  943. package/dist/components/avatar/avatar.styles.js +0 -68
  944. package/dist/components/badge/badge.component.d.ts +0 -21
  945. package/dist/components/badge/badge.component.js +0 -64
  946. package/dist/components/badge/badge.styles.d.ts +0 -1
  947. package/dist/components/badge/badge.styles.js +0 -76
  948. package/dist/components/button/button.component.d.ts +0 -104
  949. package/dist/components/button/button.component.js +0 -346
  950. package/dist/components/button/button.styles.d.ts +0 -1
  951. package/dist/components/button/button.styles.js +0 -322
  952. package/dist/components/button-group/button-group.component.d.ts +0 -26
  953. package/dist/components/button-group/button-group.component.js +0 -93
  954. package/dist/components/button-group/button-group.styles.d.ts +0 -1
  955. package/dist/components/button-group/button-group.styles.js +0 -14
  956. package/dist/components/callout/callout.component.d.ts +0 -22
  957. package/dist/components/callout/callout.component.js +0 -63
  958. package/dist/components/callout/callout.styles.d.ts +0 -1
  959. package/dist/components/callout/callout.styles.js +0 -68
  960. package/dist/components/card/card.component.d.ts +0 -29
  961. package/dist/components/card/card.component.js +0 -59
  962. package/dist/components/card/card.styles.d.ts +0 -1
  963. package/dist/components/card/card.styles.js +0 -65
  964. package/dist/components/checkbox/checkbox.component.d.ts +0 -44
  965. package/dist/components/checkbox/checkbox.component.js +0 -287
  966. package/dist/components/checkbox/checkbox.styles.d.ts +0 -1
  967. package/dist/components/checkbox/checkbox.styles.js +0 -166
  968. package/dist/components/comparer/comparer.component.d.ts +0 -43
  969. package/dist/components/comparer/comparer.component.js +0 -181
  970. package/dist/components/comparer/comparer.styles.d.ts +0 -1
  971. package/dist/components/comparer/comparer.styles.js +0 -75
  972. package/dist/components/copy-button/copy-button.component.d.ts +0 -75
  973. package/dist/components/copy-button/copy-button.component.js +0 -289
  974. package/dist/components/copy-button/copy-button.styles.d.ts +0 -1
  975. package/dist/components/copy-button/copy-button.styles.js +0 -61
  976. package/dist/components/details/details.component.d.ts +0 -25
  977. package/dist/components/details/details.component.js +0 -243
  978. package/dist/components/details/details.styles.d.ts +0 -1
  979. package/dist/components/details/details.styles.js +0 -86
  980. package/dist/components/dialog/dialog.component.d.ts +0 -84
  981. package/dist/components/dialog/dialog.component.js +0 -362
  982. package/dist/components/dialog/dialog.styles.d.ts +0 -1
  983. package/dist/components/dialog/dialog.styles.js +0 -123
  984. package/dist/components/divider/divider.component.d.ts +0 -20
  985. package/dist/components/divider/divider.component.js +0 -51
  986. package/dist/components/divider/divider.styles.d.ts +0 -1
  987. package/dist/components/divider/divider.styles.js +0 -29
  988. package/dist/components/drawer/drawer.component.d.ts +0 -95
  989. package/dist/components/drawer/drawer.component.js +0 -509
  990. package/dist/components/drawer/drawer.styles.d.ts +0 -1
  991. package/dist/components/drawer/drawer.styles.js +0 -157
  992. package/dist/components/dropdown/dropdown.component.d.ts +0 -44
  993. package/dist/components/dropdown/dropdown.component.js +0 -385
  994. package/dist/components/dropdown/dropdown.styles.d.ts +0 -1
  995. package/dist/components/dropdown/dropdown.styles.js +0 -52
  996. package/dist/components/icon/icon.component.d.ts +0 -47
  997. package/dist/components/icon/icon.component.js +0 -225
  998. package/dist/components/icon/icon.styles.d.ts +0 -1
  999. package/dist/components/icon/icon.styles.js +0 -49
  1000. package/dist/components/icon-button/icon-button.component.d.ts +0 -27
  1001. package/dist/components/icon-button/icon-button.component.js +0 -151
  1002. package/dist/components/icon-button/icon-button.d.ts +0 -8
  1003. package/dist/components/icon-button/icon-button.js +0 -5
  1004. package/dist/components/icon-button/icon-button.styles.d.ts +0 -1
  1005. package/dist/components/icon-button/icon-button.styles.js +0 -53
  1006. package/dist/components/input/input.component.d.ts +0 -78
  1007. package/dist/components/input/input.component.js +0 -513
  1008. package/dist/components/input/input.styles.d.ts +0 -1
  1009. package/dist/components/input/input.styles.js +0 -308
  1010. package/dist/components/menu/menu.component.d.ts +0 -20
  1011. package/dist/components/menu/menu.component.js +0 -123
  1012. package/dist/components/menu/menu.d.ts +0 -8
  1013. package/dist/components/menu/menu.js +0 -5
  1014. package/dist/components/menu/menu.styles.d.ts +0 -1
  1015. package/dist/components/menu/menu.styles.js +0 -20
  1016. package/dist/components/menu-item/menu-item.component.d.ts +0 -34
  1017. package/dist/components/menu-item/menu-item.component.js +0 -211
  1018. package/dist/components/menu-item/menu-item.d.ts +0 -8
  1019. package/dist/components/menu-item/menu-item.js +0 -5
  1020. package/dist/components/menu-item/menu-item.styles.d.ts +0 -1
  1021. package/dist/components/menu-item/menu-item.styles.js +0 -157
  1022. package/dist/components/menu-item/submenu-controller.d.ts +0 -34
  1023. package/dist/components/menu-item/submenu-controller.js +0 -246
  1024. package/dist/components/menu-label/menu-label.component.d.ts +0 -15
  1025. package/dist/components/menu-label/menu-label.component.js +0 -25
  1026. package/dist/components/menu-label/menu-label.d.ts +0 -8
  1027. package/dist/components/menu-label/menu-label.js +0 -5
  1028. package/dist/components/menu-label/menu-label.styles.d.ts +0 -1
  1029. package/dist/components/menu-label/menu-label.styles.js +0 -22
  1030. package/dist/components/option/option.component.d.ts +0 -42
  1031. package/dist/components/option/option.component.js +0 -161
  1032. package/dist/components/option/option.styles.d.ts +0 -1
  1033. package/dist/components/option/option.styles.js +0 -108
  1034. package/dist/components/popup/popup.component.d.ts +0 -44
  1035. package/dist/components/popup/popup.component.js +0 -483
  1036. package/dist/components/popup/popup.styles.d.ts +0 -1
  1037. package/dist/components/popup/popup.styles.js +0 -64
  1038. package/dist/components/qr-code/qr-code.component.d.ts +0 -16
  1039. package/dist/components/qr-code/qr-code.component.js +0 -94
  1040. package/dist/components/qr-code/qr-code.styles.d.ts +0 -1
  1041. package/dist/components/qr-code/qr-code.styles.js +0 -9
  1042. package/dist/components/radio/radio.component.d.ts +0 -19
  1043. package/dist/components/radio/radio.component.js +0 -120
  1044. package/dist/components/radio/radio.styles.d.ts +0 -1
  1045. package/dist/components/radio/radio.styles.js +0 -132
  1046. package/dist/components/radio-button/radio-button.component.d.ts +0 -22
  1047. package/dist/components/radio-button/radio-button.component.js +0 -131
  1048. package/dist/components/radio-button/radio-button.d.ts +0 -8
  1049. package/dist/components/radio-button/radio-button.js +0 -5
  1050. package/dist/components/radio-button/radio-button.styles.d.ts +0 -1
  1051. package/dist/components/radio-button/radio-button.styles.js +0 -25
  1052. package/dist/components/radio-group/radio-group.component.d.ts +0 -46
  1053. package/dist/components/radio-group/radio-group.component.js +0 -379
  1054. package/dist/components/radio-group/radio-group.styles.d.ts +0 -1
  1055. package/dist/components/radio-group/radio-group.styles.js +0 -42
  1056. package/dist/components/rating/rating.component.d.ts +0 -37
  1057. package/dist/components/rating/rating.component.js +0 -308
  1058. package/dist/components/rating/rating.styles.d.ts +0 -1
  1059. package/dist/components/rating/rating.styles.js +0 -94
  1060. package/dist/components/resize-observer/resize-observer.component.d.ts +0 -26
  1061. package/dist/components/resize-observer/resize-observer.component.js +0 -89
  1062. package/dist/components/resize-observer/resize-observer.styles.d.ts +0 -1
  1063. package/dist/components/resize-observer/resize-observer.styles.js +0 -9
  1064. package/dist/components/select/select.component.d.ts +0 -174
  1065. package/dist/components/select/select.component.js +0 -960
  1066. package/dist/components/select/select.styles.d.ts +0 -1
  1067. package/dist/components/select/select.styles.js +0 -363
  1068. package/dist/components/spinner/spinner.component.d.ts +0 -20
  1069. package/dist/components/spinner/spinner.component.js +0 -47
  1070. package/dist/components/spinner/spinner.styles.d.ts +0 -1
  1071. package/dist/components/spinner/spinner.styles.js +0 -61
  1072. package/dist/components/switch/switch.component.d.ts +0 -84
  1073. package/dist/components/switch/switch.component.js +0 -281
  1074. package/dist/components/switch/switch.styles.d.ts +0 -1
  1075. package/dist/components/switch/switch.styles.js +0 -178
  1076. package/dist/components/tab/tab.component.d.ts +0 -22
  1077. package/dist/components/tab/tab.component.js +0 -112
  1078. package/dist/components/tab/tab.styles.d.ts +0 -1
  1079. package/dist/components/tab/tab.styles.js +0 -85
  1080. package/dist/components/tab-group/tab-group.component.d.ts +0 -51
  1081. package/dist/components/tab-group/tab-group.component.js +0 -513
  1082. package/dist/components/tab-group/tab-group.styles.d.ts +0 -1
  1083. package/dist/components/tab-group/tab-group.styles.js +0 -219
  1084. package/dist/components/tab-panel/tab-panel.component.d.ts +0 -12
  1085. package/dist/components/tab-panel/tab-panel.component.js +0 -56
  1086. package/dist/components/tab-panel/tab-panel.styles.d.ts +0 -1
  1087. package/dist/components/tab-panel/tab-panel.styles.js +0 -18
  1088. package/dist/components/tag/tag.component.d.ts +0 -38
  1089. package/dist/components/tag/tag.component.js +0 -109
  1090. package/dist/components/tag/tag.styles.d.ts +0 -1
  1091. package/dist/components/tag/tag.styles.js +0 -155
  1092. package/dist/components/tooltip/tooltip.component.d.ts +0 -38
  1093. package/dist/components/tooltip/tooltip.component.js +0 -267
  1094. package/dist/components/tooltip/tooltip.styles.d.ts +0 -1
  1095. package/dist/components/tooltip/tooltip.styles.js +0 -59
  1096. package/dist/default.css +0 -1005
  1097. package/dist/events/pc-request-close.d.ts +0 -8
  1098. package/dist/events/pc-request-close.js +0 -1
  1099. package/dist/internal/modal.d.ts +0 -19
  1100. package/dist/internal/modal.js +0 -116
  1101. package/dist/native-styles.css +0 -261
  1102. package/dist/style-utilities/fouce.css +0 -13
  1103. package/dist/style-utilities/style-utilities.css +0 -2
  1104. package/dist/style-utilities/visually-hidden.css +0 -12
  1105. package/dist/utilities/base-path.d.ts +0 -2
  1106. package/dist/utilities/base-path.js +0 -8
  1107. package/dist/utility.css +0 -41
  1108. package/src/animations/attention_seekers/bounce.ts +0 -43
  1109. package/src/animations/attention_seekers/flash.ts +0 -7
  1110. package/src/animations/attention_seekers/headShake.ts +0 -8
  1111. package/src/animations/attention_seekers/heartBeat.ts +0 -7
  1112. package/src/animations/attention_seekers/jello.ts +0 -15
  1113. package/src/animations/attention_seekers/pulse.ts +0 -5
  1114. package/src/animations/attention_seekers/rubberBand.ts +0 -9
  1115. package/src/animations/attention_seekers/shake.ts +0 -13
  1116. package/src/animations/attention_seekers/shakeX.ts +0 -13
  1117. package/src/animations/attention_seekers/shakeY.ts +0 -13
  1118. package/src/animations/attention_seekers/swing.ts +0 -7
  1119. package/src/animations/attention_seekers/tada.ts +0 -40
  1120. package/src/animations/attention_seekers/wobble.ts +0 -24
  1121. package/src/animations/back_entrances/backInDown.ts +0 -5
  1122. package/src/animations/back_entrances/backInLeft.ts +0 -5
  1123. package/src/animations/back_entrances/backInRight.ts +0 -5
  1124. package/src/animations/back_entrances/backInUp.ts +0 -5
  1125. package/src/animations/back_exits/backOutDown.ts +0 -5
  1126. package/src/animations/back_exits/backOutLeft.ts +0 -5
  1127. package/src/animations/back_exits/backOutRight.ts +0 -5
  1128. package/src/animations/back_exits/backOutUp.ts +0 -5
  1129. package/src/animations/bouncing_entrances/bounceIn.ts +0 -14
  1130. package/src/animations/bouncing_entrances/bounceInDown.ts +0 -20
  1131. package/src/animations/bouncing_entrances/bounceInLeft.ts +0 -20
  1132. package/src/animations/bouncing_entrances/bounceInRight.ts +0 -20
  1133. package/src/animations/bouncing_entrances/bounceInUp.ts +0 -20
  1134. package/src/animations/bouncing_exits/bounceOut.ts +0 -6
  1135. package/src/animations/bouncing_exits/bounceOutDown.ts +0 -18
  1136. package/src/animations/bouncing_exits/bounceOutLeft.ts +0 -12
  1137. package/src/animations/bouncing_exits/bounceOutRight.ts +0 -12
  1138. package/src/animations/bouncing_exits/bounceOutUp.ts +0 -18
  1139. package/src/animations/easings/easings.ts +0 -31
  1140. package/src/animations/fading_entrances/fadeIn.ts +0 -4
  1141. package/src/animations/fading_entrances/fadeInBottomLeft.ts +0 -4
  1142. package/src/animations/fading_entrances/fadeInBottomRight.ts +0 -4
  1143. package/src/animations/fading_entrances/fadeInDown.ts +0 -4
  1144. package/src/animations/fading_entrances/fadeInDownBig.ts +0 -4
  1145. package/src/animations/fading_entrances/fadeInLeft.ts +0 -4
  1146. package/src/animations/fading_entrances/fadeInLeftBig.ts +0 -4
  1147. package/src/animations/fading_entrances/fadeInRight.ts +0 -4
  1148. package/src/animations/fading_entrances/fadeInRightBig.ts +0 -4
  1149. package/src/animations/fading_entrances/fadeInTopLeft.ts +0 -4
  1150. package/src/animations/fading_entrances/fadeInTopRight.ts +0 -4
  1151. package/src/animations/fading_entrances/fadeInUp.ts +0 -4
  1152. package/src/animations/fading_entrances/fadeInUpBig.ts +0 -4
  1153. package/src/animations/fading_exits/fadeOut.ts +0 -4
  1154. package/src/animations/fading_exits/fadeOutBottomLeft.ts +0 -4
  1155. package/src/animations/fading_exits/fadeOutBottomRight.ts +0 -4
  1156. package/src/animations/fading_exits/fadeOutDown.ts +0 -4
  1157. package/src/animations/fading_exits/fadeOutDownBig.ts +0 -4
  1158. package/src/animations/fading_exits/fadeOutLeft.ts +0 -4
  1159. package/src/animations/fading_exits/fadeOutLeftBig.ts +0 -4
  1160. package/src/animations/fading_exits/fadeOutRight.ts +0 -4
  1161. package/src/animations/fading_exits/fadeOutRightBig.ts +0 -4
  1162. package/src/animations/fading_exits/fadeOutTopLeft.ts +0 -4
  1163. package/src/animations/fading_exits/fadeOutTopRight.ts +0 -4
  1164. package/src/animations/fading_exits/fadeOutUp.ts +0 -4
  1165. package/src/animations/fading_exits/fadeOutUpBig.ts +0 -4
  1166. package/src/animations/flippers/flip.ts +0 -32
  1167. package/src/animations/flippers/flipInX.ts +0 -20
  1168. package/src/animations/flippers/flipInY.ts +0 -20
  1169. package/src/animations/flippers/flipOutX.ts +0 -13
  1170. package/src/animations/flippers/flipOutY.ts +0 -13
  1171. package/src/animations/index.ts +0 -101
  1172. package/src/animations/lightspeed/lightSpeedInLeft.ts +0 -10
  1173. package/src/animations/lightspeed/lightSpeedInRight.ts +0 -10
  1174. package/src/animations/lightspeed/lightSpeedOutLeft.ts +0 -8
  1175. package/src/animations/lightspeed/lightSpeedOutRight.ts +0 -8
  1176. package/src/animations/rotating_entrances/rotateIn.ts +0 -4
  1177. package/src/animations/rotating_entrances/rotateInDownLeft.ts +0 -4
  1178. package/src/animations/rotating_entrances/rotateInDownRight.ts +0 -4
  1179. package/src/animations/rotating_entrances/rotateInUpLeft.ts +0 -4
  1180. package/src/animations/rotating_entrances/rotateInUpRight.ts +0 -4
  1181. package/src/animations/rotating_exits/rotateOut.ts +0 -4
  1182. package/src/animations/rotating_exits/rotateOutDownLeft.ts +0 -4
  1183. package/src/animations/rotating_exits/rotateOutDownRight.ts +0 -4
  1184. package/src/animations/rotating_exits/rotateOutUpLeft.ts +0 -4
  1185. package/src/animations/rotating_exits/rotateOutUpRight.ts +0 -4
  1186. package/src/animations/sliding_entrances/slideInDown.ts +0 -4
  1187. package/src/animations/sliding_entrances/slideInLeft.ts +0 -4
  1188. package/src/animations/sliding_entrances/slideInRight.ts +0 -4
  1189. package/src/animations/sliding_entrances/slideInUp.ts +0 -4
  1190. package/src/animations/sliding_exits/slideOutDown.ts +0 -4
  1191. package/src/animations/sliding_exits/slideOutLeft.ts +0 -4
  1192. package/src/animations/sliding_exits/slideOutRight.ts +0 -4
  1193. package/src/animations/sliding_exits/slideOutUp.ts +0 -4
  1194. package/src/animations/specials/hinge.ts +0 -26
  1195. package/src/animations/specials/jackInTheBox.ts +0 -11
  1196. package/src/animations/specials/rollIn.ts +0 -8
  1197. package/src/animations/specials/rollOut.ts +0 -8
  1198. package/src/animations/zooming_entrances/zoomIn.ts +0 -4
  1199. package/src/animations/zooming_entrances/zoomInDown.ts +0 -14
  1200. package/src/animations/zooming_entrances/zoomInLeft.ts +0 -14
  1201. package/src/animations/zooming_entrances/zoomInRight.ts +0 -14
  1202. package/src/animations/zooming_entrances/zoomInUp.ts +0 -14
  1203. package/src/animations/zooming_exits/zoomOut.ts +0 -5
  1204. package/src/animations/zooming_exits/zoomOutDown.ts +0 -14
  1205. package/src/animations/zooming_exits/zoomOutLeft.ts +0 -12
  1206. package/src/animations/zooming_exits/zoomOutRight.ts +0 -12
  1207. package/src/animations/zooming_exits/zoomOutUp.ts +0 -14
  1208. package/src/components/animation/animation.component.ts +0 -224
  1209. package/src/components/animation/animation.styles.ts +0 -7
  1210. package/src/components/animation/animation.ts +0 -10
  1211. package/src/components/animation/animations.ts +0 -13
  1212. package/src/components/avatar/avatar.component.ts +0 -113
  1213. package/src/components/avatar/avatar.styles.ts +0 -66
  1214. package/src/components/avatar/avatar.ts +0 -10
  1215. package/src/components/badge/badge.component.ts +0 -54
  1216. package/src/components/badge/badge.styles.ts +0 -74
  1217. package/src/components/badge/badge.ts +0 -10
  1218. package/src/components/button/button.component.ts +0 -335
  1219. package/src/components/button/button.styles.ts +0 -320
  1220. package/src/components/button/button.ts +0 -10
  1221. package/src/components/button-group/button-group.component.ts +0 -101
  1222. package/src/components/button-group/button-group.styles.ts +0 -12
  1223. package/src/components/button-group/button-group.ts +0 -10
  1224. package/src/components/callout/callout.component.ts +0 -60
  1225. package/src/components/callout/callout.styles.ts +0 -66
  1226. package/src/components/callout/callout.ts +0 -10
  1227. package/src/components/card/card.component.ts +0 -59
  1228. package/src/components/card/card.styles.ts +0 -63
  1229. package/src/components/card/card.ts +0 -10
  1230. package/src/components/checkbox/checkbox.component.ts +0 -244
  1231. package/src/components/checkbox/checkbox.styles.ts +0 -164
  1232. package/src/components/checkbox/checkbox.ts +0 -10
  1233. package/src/components/comparer/comparer.component.ts +0 -188
  1234. package/src/components/comparer/comparer.styles.ts +0 -73
  1235. package/src/components/comparer/comparer.ts +0 -10
  1236. package/src/components/copy-button/copy-button.component.ts +0 -272
  1237. package/src/components/copy-button/copy-button.styles.ts +0 -59
  1238. package/src/components/copy-button/copy-button.ts +0 -10
  1239. package/src/components/details/details.component.ts +0 -259
  1240. package/src/components/details/details.styles.ts +0 -84
  1241. package/src/components/details/details.ts +0 -10
  1242. package/src/components/dialog/dialog.component.ts +0 -403
  1243. package/src/components/dialog/dialog.styles.ts +0 -121
  1244. package/src/components/dialog/dialog.ts +0 -10
  1245. package/src/components/divider/divider.component.ts +0 -42
  1246. package/src/components/divider/divider.styles.ts +0 -27
  1247. package/src/components/divider/divider.ts +0 -10
  1248. package/src/components/drawer/drawer.component.ts +0 -565
  1249. package/src/components/drawer/drawer.styles.ts +0 -155
  1250. package/src/components/drawer/drawer.ts +0 -10
  1251. package/src/components/dropdown/dropdown.component.ts +0 -430
  1252. package/src/components/dropdown/dropdown.styles.ts +0 -50
  1253. package/src/components/dropdown/dropdown.ts +0 -10
  1254. package/src/components/icon/icon.component.ts +0 -239
  1255. package/src/components/icon/icon.styles.ts +0 -47
  1256. package/src/components/icon/icon.ts +0 -10
  1257. package/src/components/icon/library.default.ts +0 -10
  1258. package/src/components/icon/library.system.ts +0 -136
  1259. package/src/components/icon/library.ts +0 -54
  1260. package/src/components/icon-button/icon-button.component.ts +0 -129
  1261. package/src/components/icon-button/icon-button.styles.ts +0 -51
  1262. package/src/components/icon-button/icon-button.ts +0 -10
  1263. package/src/components/input/input.component.ts +0 -496
  1264. package/src/components/input/input.styles.ts +0 -306
  1265. package/src/components/input/input.ts +0 -10
  1266. package/src/components/menu/menu.component.ts +0 -161
  1267. package/src/components/menu/menu.styles.ts +0 -18
  1268. package/src/components/menu/menu.ts +0 -10
  1269. package/src/components/menu-item/menu-item.component.ts +0 -190
  1270. package/src/components/menu-item/menu-item.styles.ts +0 -155
  1271. package/src/components/menu-item/menu-item.ts +0 -10
  1272. package/src/components/menu-item/submenu-controller.ts +0 -337
  1273. package/src/components/menu-label/menu-label.component.ts +0 -22
  1274. package/src/components/menu-label/menu-label.styles.ts +0 -20
  1275. package/src/components/menu-label/menu-label.ts +0 -10
  1276. package/src/components/option/option.component.ts +0 -141
  1277. package/src/components/option/option.styles.ts +0 -106
  1278. package/src/components/option/option.ts +0 -10
  1279. package/src/components/popup/popup.component.ts +0 -540
  1280. package/src/components/popup/popup.styles.ts +0 -63
  1281. package/src/components/popup/popup.ts +0 -12
  1282. package/src/components/qr-code/qr-code.component.ts +0 -70
  1283. package/src/components/qr-code/qr-code.styles.ts +0 -7
  1284. package/src/components/qr-code/qr-code.ts +0 -10
  1285. package/src/components/radio/radio.component.ts +0 -100
  1286. package/src/components/radio/radio.styles.ts +0 -130
  1287. package/src/components/radio/radio.ts +0 -10
  1288. package/src/components/radio-button/radio-button.component.ts +0 -116
  1289. package/src/components/radio-button/radio-button.styles.ts +0 -23
  1290. package/src/components/radio-button/radio-button.ts +0 -10
  1291. package/src/components/radio-group/radio-group.component.ts +0 -404
  1292. package/src/components/radio-group/radio-group.styles.ts +0 -40
  1293. package/src/components/radio-group/radio-group.ts +0 -10
  1294. package/src/components/rating/rating.component.ts +0 -319
  1295. package/src/components/rating/rating.styles.ts +0 -92
  1296. package/src/components/rating/rating.ts +0 -10
  1297. package/src/components/resize-observer/resize-observer.component.ts +0 -91
  1298. package/src/components/resize-observer/resize-observer.styles.ts +0 -7
  1299. package/src/components/resize-observer/resize-observer.ts +0 -10
  1300. package/src/components/select/select.component.ts +0 -1013
  1301. package/src/components/select/select.styles.ts +0 -361
  1302. package/src/components/select/select.ts +0 -10
  1303. package/src/components/spinner/spinner.component.ts +0 -38
  1304. package/src/components/spinner/spinner.styles.ts +0 -59
  1305. package/src/components/spinner/spinner.ts +0 -10
  1306. package/src/components/switch/switch.component.ts +0 -253
  1307. package/src/components/switch/switch.styles.ts +0 -176
  1308. package/src/components/switch/switch.ts +0 -10
  1309. package/src/components/tab/tab.component.ts +0 -87
  1310. package/src/components/tab/tab.styles.ts +0 -83
  1311. package/src/components/tab/tab.ts +0 -10
  1312. package/src/components/tab-group/tab-group.component.ts +0 -607
  1313. package/src/components/tab-group/tab-group.styles.ts +0 -217
  1314. package/src/components/tab-group/tab-group.ts +0 -10
  1315. package/src/components/tab-panel/tab-panel.component.ts +0 -43
  1316. package/src/components/tab-panel/tab-panel.styles.ts +0 -16
  1317. package/src/components/tab-panel/tab-panel.ts +0 -10
  1318. package/src/components/tag/tag.component.ts +0 -94
  1319. package/src/components/tag/tag.styles.ts +0 -153
  1320. package/src/components/tag/tag.ts +0 -10
  1321. package/src/components/tooltip/tooltip.component.ts +0 -276
  1322. package/src/components/tooltip/tooltip.styles.ts +0 -57
  1323. package/src/components/tooltip/tooltip.ts +0 -10
  1324. package/src/default.css +0 -1005
  1325. package/src/events/events.ts +0 -35
  1326. package/src/events/pc-after-collapse.ts +0 -7
  1327. package/src/events/pc-after-expand.ts +0 -7
  1328. package/src/events/pc-after-hide.ts +0 -7
  1329. package/src/events/pc-after-show.ts +0 -7
  1330. package/src/events/pc-blur.ts +0 -7
  1331. package/src/events/pc-cancel.ts +0 -7
  1332. package/src/events/pc-change.ts +0 -7
  1333. package/src/events/pc-clear.ts +0 -7
  1334. package/src/events/pc-close.ts +0 -7
  1335. package/src/events/pc-collapse.ts +0 -7
  1336. package/src/events/pc-copy.ts +0 -7
  1337. package/src/events/pc-error.ts +0 -7
  1338. package/src/events/pc-expand.ts +0 -7
  1339. package/src/events/pc-finish.ts +0 -7
  1340. package/src/events/pc-focus.ts +0 -7
  1341. package/src/events/pc-hide.ts +0 -7
  1342. package/src/events/pc-hover.ts +0 -10
  1343. package/src/events/pc-initial-focus.ts +0 -7
  1344. package/src/events/pc-input.ts +0 -7
  1345. package/src/events/pc-invalid.ts +0 -7
  1346. package/src/events/pc-lazy-change.ts +0 -7
  1347. package/src/events/pc-lazy-load.ts +0 -7
  1348. package/src/events/pc-load.ts +0 -7
  1349. package/src/events/pc-mutation.ts +0 -7
  1350. package/src/events/pc-remove.ts +0 -7
  1351. package/src/events/pc-reposition.ts +0 -7
  1352. package/src/events/pc-request-close.ts +0 -9
  1353. package/src/events/pc-resize.ts +0 -7
  1354. package/src/events/pc-select.ts +0 -9
  1355. package/src/events/pc-selection-change.ts +0 -10
  1356. package/src/events/pc-show.ts +0 -7
  1357. package/src/events/pc-slide-change.ts +0 -13
  1358. package/src/events/pc-start.ts +0 -7
  1359. package/src/events/pc-tab-hide.ts +0 -7
  1360. package/src/events/pc-tab-show.ts +0 -7
  1361. package/src/global-shims.ts +0 -126
  1362. package/src/global.d.ts +0 -31
  1363. package/src/internal/active-elements.ts +0 -21
  1364. package/src/internal/animate.ts +0 -62
  1365. package/src/internal/close-active-element.ts +0 -7
  1366. package/src/internal/debounce.ts +0 -25
  1367. package/src/internal/default-value.ts +0 -40
  1368. package/src/internal/drag.ts +0 -36
  1369. package/src/internal/emit.ts +0 -19
  1370. package/src/internal/event.ts +0 -12
  1371. package/src/internal/form.ts +0 -389
  1372. package/src/internal/math.ts +0 -14
  1373. package/src/internal/modal.ts +0 -157
  1374. package/src/internal/offset.ts +0 -12
  1375. package/src/internal/scroll.ts +0 -95
  1376. package/src/internal/scrollend-polyfill.ts +0 -99
  1377. package/src/internal/slot.ts +0 -110
  1378. package/src/internal/string.ts +0 -3
  1379. package/src/internal/tabbable.ts +0 -207
  1380. package/src/internal/watch.ts +0 -58
  1381. package/src/native-styles.css +0 -261
  1382. package/src/placer-autoloader.ts +0 -53
  1383. package/src/placer.ts +0 -53
  1384. package/src/style-utilities/fouce.css +0 -13
  1385. package/src/style-utilities/style-utilities.css +0 -2
  1386. package/src/style-utilities/visually-hidden.css +0 -12
  1387. package/src/utilities/animation-registry.ts +0 -72
  1388. package/src/utilities/animation.ts +0 -4
  1389. package/src/utilities/base-path.ts +0 -39
  1390. package/src/utilities/form.ts +0 -41
  1391. package/src/utilities/icon-library.ts +0 -4
  1392. package/src/utility.css +0 -41
@@ -1,5 +1,2387 @@
1
- import { PcTabGroup as PcTabGroup$1 } from './tab-group.component.js';
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i6 = decorators.length - 1, decorator; i6 >= 0; i6--)
6
+ if (decorator = decorators[i6])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result) __defProp(target, key, result);
9
+ return result;
10
+ };
2
11
 
3
- var PcTabGroup = PcTabGroup$1;
12
+ // node_modules/@lit/reactive-element/css-tag.js
13
+ var t = globalThis;
14
+ var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
15
+ var s = Symbol();
16
+ var o = /* @__PURE__ */ new WeakMap();
17
+ var n = class {
18
+ constructor(t6, e8, o7) {
19
+ if (this._$cssResult$ = true, o7 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
20
+ this.cssText = t6, this.t = e8;
21
+ }
22
+ get styleSheet() {
23
+ let t6 = this.o;
24
+ const s4 = this.t;
25
+ if (e && void 0 === t6) {
26
+ const e8 = void 0 !== s4 && 1 === s4.length;
27
+ e8 && (t6 = o.get(s4)), void 0 === t6 && ((this.o = t6 = new CSSStyleSheet()).replaceSync(this.cssText), e8 && o.set(s4, t6));
28
+ }
29
+ return t6;
30
+ }
31
+ toString() {
32
+ return this.cssText;
33
+ }
34
+ };
35
+ var r = (t6) => new n("string" == typeof t6 ? t6 : t6 + "", void 0, s);
36
+ var S = (s4, o7) => {
37
+ if (e) s4.adoptedStyleSheets = o7.map(((t6) => t6 instanceof CSSStyleSheet ? t6 : t6.styleSheet));
38
+ else for (const e8 of o7) {
39
+ const o8 = document.createElement("style"), n5 = t.litNonce;
40
+ void 0 !== n5 && o8.setAttribute("nonce", n5), o8.textContent = e8.cssText, s4.appendChild(o8);
41
+ }
42
+ };
43
+ var c = e ? (t6) => t6 : (t6) => t6 instanceof CSSStyleSheet ? ((t7) => {
44
+ let e8 = "";
45
+ for (const s4 of t7.cssRules) e8 += s4.cssText;
46
+ return r(e8);
47
+ })(t6) : t6;
4
48
 
5
- export { PcTabGroup$1 as PcTabGroup, PcTabGroup as default };
49
+ // node_modules/@lit/reactive-element/reactive-element.js
50
+ var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
51
+ var a = globalThis;
52
+ var c2 = a.trustedTypes;
53
+ var l = c2 ? c2.emptyScript : "";
54
+ var p = a.reactiveElementPolyfillSupport;
55
+ var d = (t6, s4) => t6;
56
+ var u = { toAttribute(t6, s4) {
57
+ switch (s4) {
58
+ case Boolean:
59
+ t6 = t6 ? l : null;
60
+ break;
61
+ case Object:
62
+ case Array:
63
+ t6 = null == t6 ? t6 : JSON.stringify(t6);
64
+ }
65
+ return t6;
66
+ }, fromAttribute(t6, s4) {
67
+ let i6 = t6;
68
+ switch (s4) {
69
+ case Boolean:
70
+ i6 = null !== t6;
71
+ break;
72
+ case Number:
73
+ i6 = null === t6 ? null : Number(t6);
74
+ break;
75
+ case Object:
76
+ case Array:
77
+ try {
78
+ i6 = JSON.parse(t6);
79
+ } catch (t7) {
80
+ i6 = null;
81
+ }
82
+ }
83
+ return i6;
84
+ } };
85
+ var f = (t6, s4) => !i2(t6, s4);
86
+ var b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f };
87
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), a.litPropertyMetadata ?? (a.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
88
+ var y = class extends HTMLElement {
89
+ static addInitializer(t6) {
90
+ this._$Ei(), (this.l ?? (this.l = [])).push(t6);
91
+ }
92
+ static get observedAttributes() {
93
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
94
+ }
95
+ static createProperty(t6, s4 = b) {
96
+ if (s4.state && (s4.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t6) && ((s4 = Object.create(s4)).wrapped = true), this.elementProperties.set(t6, s4), !s4.noAccessor) {
97
+ const i6 = Symbol(), h3 = this.getPropertyDescriptor(t6, i6, s4);
98
+ void 0 !== h3 && e2(this.prototype, t6, h3);
99
+ }
100
+ }
101
+ static getPropertyDescriptor(t6, s4, i6) {
102
+ const { get: e8, set: r6 } = h(this.prototype, t6) ?? { get() {
103
+ return this[s4];
104
+ }, set(t7) {
105
+ this[s4] = t7;
106
+ } };
107
+ return { get: e8, set(s5) {
108
+ const h3 = e8?.call(this);
109
+ r6?.call(this, s5), this.requestUpdate(t6, h3, i6);
110
+ }, configurable: true, enumerable: true };
111
+ }
112
+ static getPropertyOptions(t6) {
113
+ return this.elementProperties.get(t6) ?? b;
114
+ }
115
+ static _$Ei() {
116
+ if (this.hasOwnProperty(d("elementProperties"))) return;
117
+ const t6 = n2(this);
118
+ t6.finalize(), void 0 !== t6.l && (this.l = [...t6.l]), this.elementProperties = new Map(t6.elementProperties);
119
+ }
120
+ static finalize() {
121
+ if (this.hasOwnProperty(d("finalized"))) return;
122
+ if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
123
+ const t7 = this.properties, s4 = [...r2(t7), ...o2(t7)];
124
+ for (const i6 of s4) this.createProperty(i6, t7[i6]);
125
+ }
126
+ const t6 = this[Symbol.metadata];
127
+ if (null !== t6) {
128
+ const s4 = litPropertyMetadata.get(t6);
129
+ if (void 0 !== s4) for (const [t7, i6] of s4) this.elementProperties.set(t7, i6);
130
+ }
131
+ this._$Eh = /* @__PURE__ */ new Map();
132
+ for (const [t7, s4] of this.elementProperties) {
133
+ const i6 = this._$Eu(t7, s4);
134
+ void 0 !== i6 && this._$Eh.set(i6, t7);
135
+ }
136
+ this.elementStyles = this.finalizeStyles(this.styles);
137
+ }
138
+ static finalizeStyles(s4) {
139
+ const i6 = [];
140
+ if (Array.isArray(s4)) {
141
+ const e8 = new Set(s4.flat(1 / 0).reverse());
142
+ for (const s5 of e8) i6.unshift(c(s5));
143
+ } else void 0 !== s4 && i6.push(c(s4));
144
+ return i6;
145
+ }
146
+ static _$Eu(t6, s4) {
147
+ const i6 = s4.attribute;
148
+ return false === i6 ? void 0 : "string" == typeof i6 ? i6 : "string" == typeof t6 ? t6.toLowerCase() : void 0;
149
+ }
150
+ constructor() {
151
+ super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
152
+ }
153
+ _$Ev() {
154
+ this._$ES = new Promise(((t6) => this.enableUpdating = t6)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((t6) => t6(this)));
155
+ }
156
+ addController(t6) {
157
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t6), void 0 !== this.renderRoot && this.isConnected && t6.hostConnected?.();
158
+ }
159
+ removeController(t6) {
160
+ this._$EO?.delete(t6);
161
+ }
162
+ _$E_() {
163
+ const t6 = /* @__PURE__ */ new Map(), s4 = this.constructor.elementProperties;
164
+ for (const i6 of s4.keys()) this.hasOwnProperty(i6) && (t6.set(i6, this[i6]), delete this[i6]);
165
+ t6.size > 0 && (this._$Ep = t6);
166
+ }
167
+ createRenderRoot() {
168
+ const t6 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
169
+ return S(t6, this.constructor.elementStyles), t6;
170
+ }
171
+ connectedCallback() {
172
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach(((t6) => t6.hostConnected?.()));
173
+ }
174
+ enableUpdating(t6) {
175
+ }
176
+ disconnectedCallback() {
177
+ this._$EO?.forEach(((t6) => t6.hostDisconnected?.()));
178
+ }
179
+ attributeChangedCallback(t6, s4, i6) {
180
+ this._$AK(t6, i6);
181
+ }
182
+ _$ET(t6, s4) {
183
+ const i6 = this.constructor.elementProperties.get(t6), e8 = this.constructor._$Eu(t6, i6);
184
+ if (void 0 !== e8 && true === i6.reflect) {
185
+ const h3 = (void 0 !== i6.converter?.toAttribute ? i6.converter : u).toAttribute(s4, i6.type);
186
+ this._$Em = t6, null == h3 ? this.removeAttribute(e8) : this.setAttribute(e8, h3), this._$Em = null;
187
+ }
188
+ }
189
+ _$AK(t6, s4) {
190
+ const i6 = this.constructor, e8 = i6._$Eh.get(t6);
191
+ if (void 0 !== e8 && this._$Em !== e8) {
192
+ const t7 = i6.getPropertyOptions(e8), h3 = "function" == typeof t7.converter ? { fromAttribute: t7.converter } : void 0 !== t7.converter?.fromAttribute ? t7.converter : u;
193
+ this._$Em = e8, this[e8] = h3.fromAttribute(s4, t7.type) ?? this._$Ej?.get(e8) ?? null, this._$Em = null;
194
+ }
195
+ }
196
+ requestUpdate(t6, s4, i6) {
197
+ if (void 0 !== t6) {
198
+ const e8 = this.constructor, h3 = this[t6];
199
+ if (i6 ?? (i6 = e8.getPropertyOptions(t6)), !((i6.hasChanged ?? f)(h3, s4) || i6.useDefault && i6.reflect && h3 === this._$Ej?.get(t6) && !this.hasAttribute(e8._$Eu(t6, i6)))) return;
200
+ this.C(t6, s4, i6);
201
+ }
202
+ false === this.isUpdatePending && (this._$ES = this._$EP());
203
+ }
204
+ C(t6, s4, { useDefault: i6, reflect: e8, wrapped: h3 }, r6) {
205
+ i6 && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t6) && (this._$Ej.set(t6, r6 ?? s4 ?? this[t6]), true !== h3 || void 0 !== r6) || (this._$AL.has(t6) || (this.hasUpdated || i6 || (s4 = void 0), this._$AL.set(t6, s4)), true === e8 && this._$Em !== t6 && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t6));
206
+ }
207
+ async _$EP() {
208
+ this.isUpdatePending = true;
209
+ try {
210
+ await this._$ES;
211
+ } catch (t7) {
212
+ Promise.reject(t7);
213
+ }
214
+ const t6 = this.scheduleUpdate();
215
+ return null != t6 && await t6, !this.isUpdatePending;
216
+ }
217
+ scheduleUpdate() {
218
+ return this.performUpdate();
219
+ }
220
+ performUpdate() {
221
+ if (!this.isUpdatePending) return;
222
+ if (!this.hasUpdated) {
223
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
224
+ for (const [t8, s5] of this._$Ep) this[t8] = s5;
225
+ this._$Ep = void 0;
226
+ }
227
+ const t7 = this.constructor.elementProperties;
228
+ if (t7.size > 0) for (const [s5, i6] of t7) {
229
+ const { wrapped: t8 } = i6, e8 = this[s5];
230
+ true !== t8 || this._$AL.has(s5) || void 0 === e8 || this.C(s5, void 0, i6, e8);
231
+ }
232
+ }
233
+ let t6 = false;
234
+ const s4 = this._$AL;
235
+ try {
236
+ t6 = this.shouldUpdate(s4), t6 ? (this.willUpdate(s4), this._$EO?.forEach(((t7) => t7.hostUpdate?.())), this.update(s4)) : this._$EM();
237
+ } catch (s5) {
238
+ throw t6 = false, this._$EM(), s5;
239
+ }
240
+ t6 && this._$AE(s4);
241
+ }
242
+ willUpdate(t6) {
243
+ }
244
+ _$AE(t6) {
245
+ this._$EO?.forEach(((t7) => t7.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t6)), this.updated(t6);
246
+ }
247
+ _$EM() {
248
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
249
+ }
250
+ get updateComplete() {
251
+ return this.getUpdateComplete();
252
+ }
253
+ getUpdateComplete() {
254
+ return this._$ES;
255
+ }
256
+ shouldUpdate(t6) {
257
+ return true;
258
+ }
259
+ update(t6) {
260
+ this._$Eq && (this._$Eq = this._$Eq.forEach(((t7) => this._$ET(t7, this[t7])))), this._$EM();
261
+ }
262
+ updated(t6) {
263
+ }
264
+ firstUpdated(t6) {
265
+ }
266
+ };
267
+ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ?? (a.reactiveElementVersions = [])).push("2.1.0");
268
+
269
+ // node_modules/lit-html/lit-html.js
270
+ var t2 = globalThis;
271
+ var i3 = t2.trustedTypes;
272
+ var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t6) => t6 }) : void 0;
273
+ var e3 = "$lit$";
274
+ var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
275
+ var o3 = "?" + h2;
276
+ var n3 = `<${o3}>`;
277
+ var r3 = document;
278
+ var l2 = () => r3.createComment("");
279
+ var c3 = (t6) => null === t6 || "object" != typeof t6 && "function" != typeof t6;
280
+ var a2 = Array.isArray;
281
+ var u2 = (t6) => a2(t6) || "function" == typeof t6?.[Symbol.iterator];
282
+ var d2 = "[ \n\f\r]";
283
+ var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
284
+ var v = /-->/g;
285
+ var _ = />/g;
286
+ var m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^
287
+ \f\r"'\`<>=]|("|')|))|$)`, "g");
288
+ var p2 = /'/g;
289
+ var g = /"/g;
290
+ var $ = /^(?:script|style|textarea|title)$/i;
291
+ var y2 = (t6) => (i6, ...s4) => ({ _$litType$: t6, strings: i6, values: s4 });
292
+ var x = y2(1);
293
+ var b2 = y2(2);
294
+ var w = y2(3);
295
+ var T = Symbol.for("lit-noChange");
296
+ var E = Symbol.for("lit-nothing");
297
+ var A = /* @__PURE__ */ new WeakMap();
298
+ var C = r3.createTreeWalker(r3, 129);
299
+ function P(t6, i6) {
300
+ if (!a2(t6) || !t6.hasOwnProperty("raw")) throw Error("invalid template strings array");
301
+ return void 0 !== s2 ? s2.createHTML(i6) : i6;
302
+ }
303
+ var V = (t6, i6) => {
304
+ const s4 = t6.length - 1, o7 = [];
305
+ let r6, l3 = 2 === i6 ? "<svg>" : 3 === i6 ? "<math>" : "", c4 = f2;
306
+ for (let i7 = 0; i7 < s4; i7++) {
307
+ const s5 = t6[i7];
308
+ let a3, u3, d3 = -1, y3 = 0;
309
+ for (; y3 < s5.length && (c4.lastIndex = y3, u3 = c4.exec(s5), null !== u3); ) y3 = c4.lastIndex, c4 === f2 ? "!--" === u3[1] ? c4 = v : void 0 !== u3[1] ? c4 = _ : void 0 !== u3[2] ? ($.test(u3[2]) && (r6 = RegExp("</" + u3[2], "g")), c4 = m) : void 0 !== u3[3] && (c4 = m) : c4 === m ? ">" === u3[0] ? (c4 = r6 ?? f2, d3 = -1) : void 0 === u3[1] ? d3 = -2 : (d3 = c4.lastIndex - u3[2].length, a3 = u3[1], c4 = void 0 === u3[3] ? m : '"' === u3[3] ? g : p2) : c4 === g || c4 === p2 ? c4 = m : c4 === v || c4 === _ ? c4 = f2 : (c4 = m, r6 = void 0);
310
+ const x2 = c4 === m && t6[i7 + 1].startsWith("/>") ? " " : "";
311
+ l3 += c4 === f2 ? s5 + n3 : d3 >= 0 ? (o7.push(a3), s5.slice(0, d3) + e3 + s5.slice(d3) + h2 + x2) : s5 + h2 + (-2 === d3 ? i7 : x2);
312
+ }
313
+ return [P(t6, l3 + (t6[s4] || "<?>") + (2 === i6 ? "</svg>" : 3 === i6 ? "</math>" : "")), o7];
314
+ };
315
+ var N = class _N {
316
+ constructor({ strings: t6, _$litType$: s4 }, n5) {
317
+ let r6;
318
+ this.parts = [];
319
+ let c4 = 0, a3 = 0;
320
+ const u3 = t6.length - 1, d3 = this.parts, [f3, v2] = V(t6, s4);
321
+ if (this.el = _N.createElement(f3, n5), C.currentNode = this.el.content, 2 === s4 || 3 === s4) {
322
+ const t7 = this.el.content.firstChild;
323
+ t7.replaceWith(...t7.childNodes);
324
+ }
325
+ for (; null !== (r6 = C.nextNode()) && d3.length < u3; ) {
326
+ if (1 === r6.nodeType) {
327
+ if (r6.hasAttributes()) for (const t7 of r6.getAttributeNames()) if (t7.endsWith(e3)) {
328
+ const i6 = v2[a3++], s5 = r6.getAttribute(t7).split(h2), e8 = /([.?@])?(.*)/.exec(i6);
329
+ d3.push({ type: 1, index: c4, name: e8[2], strings: s5, ctor: "." === e8[1] ? H : "?" === e8[1] ? I : "@" === e8[1] ? L : k }), r6.removeAttribute(t7);
330
+ } else t7.startsWith(h2) && (d3.push({ type: 6, index: c4 }), r6.removeAttribute(t7));
331
+ if ($.test(r6.tagName)) {
332
+ const t7 = r6.textContent.split(h2), s5 = t7.length - 1;
333
+ if (s5 > 0) {
334
+ r6.textContent = i3 ? i3.emptyScript : "";
335
+ for (let i6 = 0; i6 < s5; i6++) r6.append(t7[i6], l2()), C.nextNode(), d3.push({ type: 2, index: ++c4 });
336
+ r6.append(t7[s5], l2());
337
+ }
338
+ }
339
+ } else if (8 === r6.nodeType) if (r6.data === o3) d3.push({ type: 2, index: c4 });
340
+ else {
341
+ let t7 = -1;
342
+ for (; -1 !== (t7 = r6.data.indexOf(h2, t7 + 1)); ) d3.push({ type: 7, index: c4 }), t7 += h2.length - 1;
343
+ }
344
+ c4++;
345
+ }
346
+ }
347
+ static createElement(t6, i6) {
348
+ const s4 = r3.createElement("template");
349
+ return s4.innerHTML = t6, s4;
350
+ }
351
+ };
352
+ function S2(t6, i6, s4 = t6, e8) {
353
+ if (i6 === T) return i6;
354
+ let h3 = void 0 !== e8 ? s4._$Co?.[e8] : s4._$Cl;
355
+ const o7 = c3(i6) ? void 0 : i6._$litDirective$;
356
+ return h3?.constructor !== o7 && (h3?._$AO?.(false), void 0 === o7 ? h3 = void 0 : (h3 = new o7(t6), h3._$AT(t6, s4, e8)), void 0 !== e8 ? (s4._$Co ?? (s4._$Co = []))[e8] = h3 : s4._$Cl = h3), void 0 !== h3 && (i6 = S2(t6, h3._$AS(t6, i6.values), h3, e8)), i6;
357
+ }
358
+ var M = class {
359
+ constructor(t6, i6) {
360
+ this._$AV = [], this._$AN = void 0, this._$AD = t6, this._$AM = i6;
361
+ }
362
+ get parentNode() {
363
+ return this._$AM.parentNode;
364
+ }
365
+ get _$AU() {
366
+ return this._$AM._$AU;
367
+ }
368
+ u(t6) {
369
+ const { el: { content: i6 }, parts: s4 } = this._$AD, e8 = (t6?.creationScope ?? r3).importNode(i6, true);
370
+ C.currentNode = e8;
371
+ let h3 = C.nextNode(), o7 = 0, n5 = 0, l3 = s4[0];
372
+ for (; void 0 !== l3; ) {
373
+ if (o7 === l3.index) {
374
+ let i7;
375
+ 2 === l3.type ? i7 = new R(h3, h3.nextSibling, this, t6) : 1 === l3.type ? i7 = new l3.ctor(h3, l3.name, l3.strings, this, t6) : 6 === l3.type && (i7 = new z(h3, this, t6)), this._$AV.push(i7), l3 = s4[++n5];
376
+ }
377
+ o7 !== l3?.index && (h3 = C.nextNode(), o7++);
378
+ }
379
+ return C.currentNode = r3, e8;
380
+ }
381
+ p(t6) {
382
+ let i6 = 0;
383
+ for (const s4 of this._$AV) void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(t6, s4, i6), i6 += s4.strings.length - 2) : s4._$AI(t6[i6])), i6++;
384
+ }
385
+ };
386
+ var R = class _R {
387
+ get _$AU() {
388
+ return this._$AM?._$AU ?? this._$Cv;
389
+ }
390
+ constructor(t6, i6, s4, e8) {
391
+ this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t6, this._$AB = i6, this._$AM = s4, this.options = e8, this._$Cv = e8?.isConnected ?? true;
392
+ }
393
+ get parentNode() {
394
+ let t6 = this._$AA.parentNode;
395
+ const i6 = this._$AM;
396
+ return void 0 !== i6 && 11 === t6?.nodeType && (t6 = i6.parentNode), t6;
397
+ }
398
+ get startNode() {
399
+ return this._$AA;
400
+ }
401
+ get endNode() {
402
+ return this._$AB;
403
+ }
404
+ _$AI(t6, i6 = this) {
405
+ t6 = S2(this, t6, i6), c3(t6) ? t6 === E || null == t6 || "" === t6 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t6 !== this._$AH && t6 !== T && this._(t6) : void 0 !== t6._$litType$ ? this.$(t6) : void 0 !== t6.nodeType ? this.T(t6) : u2(t6) ? this.k(t6) : this._(t6);
406
+ }
407
+ O(t6) {
408
+ return this._$AA.parentNode.insertBefore(t6, this._$AB);
409
+ }
410
+ T(t6) {
411
+ this._$AH !== t6 && (this._$AR(), this._$AH = this.O(t6));
412
+ }
413
+ _(t6) {
414
+ this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t6 : this.T(r3.createTextNode(t6)), this._$AH = t6;
415
+ }
416
+ $(t6) {
417
+ const { values: i6, _$litType$: s4 } = t6, e8 = "number" == typeof s4 ? this._$AC(t6) : (void 0 === s4.el && (s4.el = N.createElement(P(s4.h, s4.h[0]), this.options)), s4);
418
+ if (this._$AH?._$AD === e8) this._$AH.p(i6);
419
+ else {
420
+ const t7 = new M(e8, this), s5 = t7.u(this.options);
421
+ t7.p(i6), this.T(s5), this._$AH = t7;
422
+ }
423
+ }
424
+ _$AC(t6) {
425
+ let i6 = A.get(t6.strings);
426
+ return void 0 === i6 && A.set(t6.strings, i6 = new N(t6)), i6;
427
+ }
428
+ k(t6) {
429
+ a2(this._$AH) || (this._$AH = [], this._$AR());
430
+ const i6 = this._$AH;
431
+ let s4, e8 = 0;
432
+ for (const h3 of t6) e8 === i6.length ? i6.push(s4 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s4 = i6[e8], s4._$AI(h3), e8++;
433
+ e8 < i6.length && (this._$AR(s4 && s4._$AB.nextSibling, e8), i6.length = e8);
434
+ }
435
+ _$AR(t6 = this._$AA.nextSibling, i6) {
436
+ for (this._$AP?.(false, true, i6); t6 && t6 !== this._$AB; ) {
437
+ const i7 = t6.nextSibling;
438
+ t6.remove(), t6 = i7;
439
+ }
440
+ }
441
+ setConnected(t6) {
442
+ void 0 === this._$AM && (this._$Cv = t6, this._$AP?.(t6));
443
+ }
444
+ };
445
+ var k = class {
446
+ get tagName() {
447
+ return this.element.tagName;
448
+ }
449
+ get _$AU() {
450
+ return this._$AM._$AU;
451
+ }
452
+ constructor(t6, i6, s4, e8, h3) {
453
+ this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t6, this.name = i6, this._$AM = e8, this.options = h3, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = E;
454
+ }
455
+ _$AI(t6, i6 = this, s4, e8) {
456
+ const h3 = this.strings;
457
+ let o7 = false;
458
+ if (void 0 === h3) t6 = S2(this, t6, i6, 0), o7 = !c3(t6) || t6 !== this._$AH && t6 !== T, o7 && (this._$AH = t6);
459
+ else {
460
+ const e9 = t6;
461
+ let n5, r6;
462
+ for (t6 = h3[0], n5 = 0; n5 < h3.length - 1; n5++) r6 = S2(this, e9[s4 + n5], i6, n5), r6 === T && (r6 = this._$AH[n5]), o7 || (o7 = !c3(r6) || r6 !== this._$AH[n5]), r6 === E ? t6 = E : t6 !== E && (t6 += (r6 ?? "") + h3[n5 + 1]), this._$AH[n5] = r6;
463
+ }
464
+ o7 && !e8 && this.j(t6);
465
+ }
466
+ j(t6) {
467
+ t6 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t6 ?? "");
468
+ }
469
+ };
470
+ var H = class extends k {
471
+ constructor() {
472
+ super(...arguments), this.type = 3;
473
+ }
474
+ j(t6) {
475
+ this.element[this.name] = t6 === E ? void 0 : t6;
476
+ }
477
+ };
478
+ var I = class extends k {
479
+ constructor() {
480
+ super(...arguments), this.type = 4;
481
+ }
482
+ j(t6) {
483
+ this.element.toggleAttribute(this.name, !!t6 && t6 !== E);
484
+ }
485
+ };
486
+ var L = class extends k {
487
+ constructor(t6, i6, s4, e8, h3) {
488
+ super(t6, i6, s4, e8, h3), this.type = 5;
489
+ }
490
+ _$AI(t6, i6 = this) {
491
+ if ((t6 = S2(this, t6, i6, 0) ?? E) === T) return;
492
+ const s4 = this._$AH, e8 = t6 === E && s4 !== E || t6.capture !== s4.capture || t6.once !== s4.once || t6.passive !== s4.passive, h3 = t6 !== E && (s4 === E || e8);
493
+ e8 && this.element.removeEventListener(this.name, this, s4), h3 && this.element.addEventListener(this.name, this, t6), this._$AH = t6;
494
+ }
495
+ handleEvent(t6) {
496
+ "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t6) : this._$AH.handleEvent(t6);
497
+ }
498
+ };
499
+ var z = class {
500
+ constructor(t6, i6, s4) {
501
+ this.element = t6, this.type = 6, this._$AN = void 0, this._$AM = i6, this.options = s4;
502
+ }
503
+ get _$AU() {
504
+ return this._$AM._$AU;
505
+ }
506
+ _$AI(t6) {
507
+ S2(this, t6);
508
+ }
509
+ };
510
+ var j = t2.litHtmlPolyfillSupport;
511
+ j?.(N, R), (t2.litHtmlVersions ?? (t2.litHtmlVersions = [])).push("3.3.0");
512
+ var B = (t6, i6, s4) => {
513
+ const e8 = s4?.renderBefore ?? i6;
514
+ let h3 = e8._$litPart$;
515
+ if (void 0 === h3) {
516
+ const t7 = s4?.renderBefore ?? null;
517
+ e8._$litPart$ = h3 = new R(i6.insertBefore(l2(), t7), t7, void 0, s4 ?? {});
518
+ }
519
+ return h3._$AI(t6), h3;
520
+ };
521
+
522
+ // node_modules/lit-element/lit-element.js
523
+ var s3 = globalThis;
524
+ var i4 = class extends y {
525
+ constructor() {
526
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
527
+ }
528
+ createRenderRoot() {
529
+ var _a;
530
+ const t6 = super.createRenderRoot();
531
+ return (_a = this.renderOptions).renderBefore ?? (_a.renderBefore = t6.firstChild), t6;
532
+ }
533
+ update(t6) {
534
+ const r6 = this.render();
535
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t6), this._$Do = B(r6, this.renderRoot, this.renderOptions);
536
+ }
537
+ connectedCallback() {
538
+ super.connectedCallback(), this._$Do?.setConnected(true);
539
+ }
540
+ disconnectedCallback() {
541
+ super.disconnectedCallback(), this._$Do?.setConnected(false);
542
+ }
543
+ render() {
544
+ return T;
545
+ }
546
+ };
547
+ i4._$litElement$ = true, i4["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i4 });
548
+ var o4 = s3.litElementPolyfillSupport;
549
+ o4?.({ LitElement: i4 });
550
+ (s3.litElementVersions ?? (s3.litElementVersions = [])).push("4.2.0");
551
+
552
+ // node_modules/@lit/reactive-element/decorators/custom-element.js
553
+ var t3 = (t6) => (e8, o7) => {
554
+ void 0 !== o7 ? o7.addInitializer((() => {
555
+ customElements.define(t6, e8);
556
+ })) : customElements.define(t6, e8);
557
+ };
558
+
559
+ // node_modules/@lit/reactive-element/decorators/property.js
560
+ var o5 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
561
+ var r4 = (t6 = o5, e8, r6) => {
562
+ const { kind: n5, metadata: i6 } = r6;
563
+ let s4 = globalThis.litPropertyMetadata.get(i6);
564
+ if (void 0 === s4 && globalThis.litPropertyMetadata.set(i6, s4 = /* @__PURE__ */ new Map()), "setter" === n5 && ((t6 = Object.create(t6)).wrapped = true), s4.set(r6.name, t6), "accessor" === n5) {
565
+ const { name: o7 } = r6;
566
+ return { set(r7) {
567
+ const n6 = e8.get.call(this);
568
+ e8.set.call(this, r7), this.requestUpdate(o7, n6, t6);
569
+ }, init(e9) {
570
+ return void 0 !== e9 && this.C(o7, void 0, t6, e9), e9;
571
+ } };
572
+ }
573
+ if ("setter" === n5) {
574
+ const { name: o7 } = r6;
575
+ return function(r7) {
576
+ const n6 = this[o7];
577
+ e8.call(this, r7), this.requestUpdate(o7, n6, t6);
578
+ };
579
+ }
580
+ throw Error("Unsupported decorator location: " + n5);
581
+ };
582
+ function n4(t6) {
583
+ return (e8, o7) => "object" == typeof o7 ? r4(t6, e8, o7) : ((t7, e9, o8) => {
584
+ const r6 = e9.hasOwnProperty(o8);
585
+ return e9.constructor.createProperty(o8, t7), r6 ? Object.getOwnPropertyDescriptor(e9, o8) : void 0;
586
+ })(t6, e8, o7);
587
+ }
588
+
589
+ // node_modules/@lit/reactive-element/decorators/state.js
590
+ function r5(r6) {
591
+ return n4({ ...r6, state: true, attribute: false });
592
+ }
593
+
594
+ // node_modules/@lit/reactive-element/decorators/event-options.js
595
+ function t4(t6) {
596
+ return (n5, o7) => {
597
+ const c4 = "function" == typeof n5 ? n5 : n5[o7];
598
+ Object.assign(c4, t6);
599
+ };
600
+ }
601
+
602
+ // node_modules/@lit/reactive-element/decorators/base.js
603
+ var e4 = (e8, t6, c4) => (c4.configurable = true, c4.enumerable = true, Reflect.decorate && "object" != typeof t6 && Object.defineProperty(e8, t6, c4), c4);
604
+
605
+ // node_modules/@lit/reactive-element/decorators/query.js
606
+ function e5(e8, r6) {
607
+ return (n5, s4, i6) => {
608
+ const o7 = (t6) => t6.renderRoot?.querySelector(e8) ?? null;
609
+ if (r6) {
610
+ const { get: e9, set: r7 } = "object" == typeof s4 ? n5 : i6 ?? (() => {
611
+ const t6 = Symbol();
612
+ return { get() {
613
+ return this[t6];
614
+ }, set(e10) {
615
+ this[t6] = e10;
616
+ } };
617
+ })();
618
+ return e4(n5, s4, { get() {
619
+ let t6 = e9.call(this);
620
+ return void 0 === t6 && (t6 = o7(this), (null !== t6 || this.hasUpdated) && r7.call(this, t6)), t6;
621
+ } });
622
+ }
623
+ return e4(n5, s4, { get() {
624
+ return o7(this);
625
+ } });
626
+ };
627
+ }
628
+
629
+ // src/styles/component-styles/host.css
630
+ var host_default = ":host {\n box-sizing: border-box !important;\n}\n\n:host *,\n:host *::before,\n:host *::after {\n box-sizing: inherit !important;\n}\n\n[hidden] {\n display: none !important;\n}\n";
631
+
632
+ // src/internal/placer-element.ts
633
+ var PlacerElement = class extends i4 {
634
+ constructor() {
635
+ super();
636
+ this.hasRecordedInitialProperties = false;
637
+ this.initialReflectedProperties = /* @__PURE__ */ new Map();
638
+ /** A method to set and check custom states. */
639
+ this.customStates = {
640
+ /** Adds or removes the specified custom state. */
641
+ set: (customState, active) => {
642
+ if (!Boolean(this.internals?.states)) {
643
+ return;
644
+ }
645
+ if (active) {
646
+ this.internals.states.add(customState);
647
+ } else {
648
+ this.internals.states.delete(customState);
649
+ }
650
+ },
651
+ /** Determines whether or not the element currently has the specified state. */
652
+ has: (customState) => {
653
+ if (!Boolean(this.internals?.states)) {
654
+ return false;
655
+ }
656
+ return this.internals.states.has(customState);
657
+ }
658
+ };
659
+ try {
660
+ this.internals = this.attachInternals();
661
+ } catch {
662
+ console.error(
663
+ "Element internals are not supported in your browser. Consider using a polyfill."
664
+ );
665
+ }
666
+ this.customStates.set("pc-defined", true);
667
+ let Self = this.constructor;
668
+ for (let [property, spec] of Self.elementProperties) {
669
+ if (spec.default === "inherit" && spec.initial !== void 0 && typeof property === "string") {
670
+ this.customStates.set(
671
+ `initial-${property}-${spec.initial}`,
672
+ true
673
+ );
674
+ }
675
+ }
676
+ }
677
+ /** Override the default `styles` property to fetch and convert string CSS files. Components can override this behavior by setting their own `static styles = []` property. */
678
+ static get styles() {
679
+ const styles = Array.isArray(this.css) ? this.css : this.css ? [this.css] : [];
680
+ return [host_default, ...styles].map(
681
+ (style) => typeof style === "string" ? r(style) : style
682
+ );
683
+ }
684
+ attributeChangedCallback(name, oldValue, newValue) {
685
+ if (!this.hasRecordedInitialProperties) {
686
+ this.constructor.elementProperties.forEach((object, property) => {
687
+ if (typeof property === "string" && object.reflect) {
688
+ const value = this[property];
689
+ if (value != null) {
690
+ this.initialReflectedProperties.set(property, value);
691
+ }
692
+ }
693
+ });
694
+ this.hasRecordedInitialProperties = true;
695
+ }
696
+ super.attributeChangedCallback(name, oldValue, newValue);
697
+ }
698
+ willUpdate(changedProperties) {
699
+ super.willUpdate(changedProperties);
700
+ this.initialReflectedProperties.forEach((value, prop) => {
701
+ if (changedProperties.has(prop) && this[prop] == null) {
702
+ this[prop] = value;
703
+ }
704
+ });
705
+ }
706
+ firstUpdated(changedProperties) {
707
+ super.firstUpdated(changedProperties);
708
+ }
709
+ };
710
+ __decorateClass([
711
+ n4()
712
+ ], PlacerElement.prototype, "lang", 2);
713
+ __decorateClass([
714
+ n4()
715
+ ], PlacerElement.prototype, "dir", 2);
716
+
717
+ // node_modules/lit-html/directive.js
718
+ var t5 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
719
+ var e6 = (t6) => (...e8) => ({ _$litDirective$: t6, values: e8 });
720
+ var i5 = class {
721
+ constructor(t6) {
722
+ }
723
+ get _$AU() {
724
+ return this._$AM._$AU;
725
+ }
726
+ _$AT(t6, e8, i6) {
727
+ this._$Ct = t6, this._$AM = e8, this._$Ci = i6;
728
+ }
729
+ _$AS(t6, e8) {
730
+ return this.update(t6, e8);
731
+ }
732
+ update(t6, e8) {
733
+ return this.render(...e8);
734
+ }
735
+ };
736
+
737
+ // node_modules/lit-html/directives/class-map.js
738
+ var e7 = e6(class extends i5 {
739
+ constructor(t6) {
740
+ if (super(t6), t6.type !== t5.ATTRIBUTE || "class" !== t6.name || t6.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
741
+ }
742
+ render(t6) {
743
+ return " " + Object.keys(t6).filter(((s4) => t6[s4])).join(" ") + " ";
744
+ }
745
+ update(s4, [i6]) {
746
+ if (void 0 === this.st) {
747
+ this.st = /* @__PURE__ */ new Set(), void 0 !== s4.strings && (this.nt = new Set(s4.strings.join(" ").split(/\s/).filter(((t6) => "" !== t6))));
748
+ for (const t6 in i6) i6[t6] && !this.nt?.has(t6) && this.st.add(t6);
749
+ return this.render(i6);
750
+ }
751
+ const r6 = s4.element.classList;
752
+ for (const t6 of this.st) t6 in i6 || (r6.remove(t6), this.st.delete(t6));
753
+ for (const t6 in i6) {
754
+ const s5 = !!i6[t6];
755
+ s5 === this.st.has(t6) || this.nt?.has(t6) || (s5 ? (r6.add(t6), this.st.add(t6)) : (r6.remove(t6), this.st.delete(t6)));
756
+ }
757
+ return T;
758
+ }
759
+ });
760
+
761
+ // src/translations/index.ts
762
+ var connectedElements = /* @__PURE__ */ new Set();
763
+ var translations = /* @__PURE__ */ new Map();
764
+ var fallback;
765
+ var documentDirection = "ltr";
766
+ var documentLanguage = "en";
767
+ var isClient = typeof MutationObserver !== "undefined" && typeof document !== "undefined" && typeof document.documentElement !== "undefined";
768
+ if (isClient) {
769
+ const documentElementObserver = new MutationObserver(update);
770
+ documentDirection = document.documentElement.dir || "ltr";
771
+ documentLanguage = document.documentElement.lang || navigator.language;
772
+ documentElementObserver.observe(document.documentElement, {
773
+ attributes: true,
774
+ attributeFilter: ["dir", "lang"]
775
+ });
776
+ }
777
+ function registerTranslation(...translation2) {
778
+ translation2.map((t6) => {
779
+ const code = t6.$code.toLowerCase();
780
+ if (translations.has(code)) {
781
+ translations.set(code, { ...translations.get(code), ...t6 });
782
+ } else {
783
+ translations.set(code, t6);
784
+ }
785
+ if (!fallback) {
786
+ fallback = t6;
787
+ }
788
+ });
789
+ update();
790
+ }
791
+ function update() {
792
+ if (isClient) {
793
+ documentDirection = document.documentElement.dir || "ltr";
794
+ documentLanguage = document.documentElement.lang || navigator.language;
795
+ }
796
+ [...connectedElements.keys()].map((element) => {
797
+ if (element instanceof i4 && typeof element.requestUpdate === "function") {
798
+ element.requestUpdate();
799
+ }
800
+ });
801
+ }
802
+ var LocalizeController = class {
803
+ constructor(host) {
804
+ this.host = host;
805
+ this.host.addController(this);
806
+ }
807
+ hostConnected() {
808
+ connectedElements.add(this.host);
809
+ }
810
+ hostDisconnected() {
811
+ connectedElements.delete(this.host);
812
+ }
813
+ /** Gets the host element’s direction as determined by the `dir` attribute. The returned value is lowercase. */
814
+ dir() {
815
+ return `${this.host.dir || documentDirection}`.toLowerCase();
816
+ }
817
+ /** Gets the host element’s language as determined by the `lang` attribute. The returned value is lowercase. */
818
+ lang() {
819
+ return `${this.host.lang || documentLanguage}`.toLowerCase();
820
+ }
821
+ getTranslationData(lang) {
822
+ const locale = new Intl.Locale(lang.replace(/_/g, "-"));
823
+ const language = locale?.language.toLowerCase();
824
+ const region = locale?.region?.toLowerCase() ?? "";
825
+ const primary = translations.get(`${language}-${region}`);
826
+ const secondary = translations.get(language);
827
+ return { locale, language, region, primary, secondary };
828
+ }
829
+ /** Determines if the specified term exists, optionally checking the fallback translation. */
830
+ exists(key, options) {
831
+ const { primary, secondary } = this.getTranslationData(
832
+ options.lang ?? this.lang()
833
+ );
834
+ options = {
835
+ includeFallback: false,
836
+ ...options
837
+ };
838
+ if (primary && primary[key] || secondary && secondary[key] || options.includeFallback && fallback && fallback[key]) {
839
+ return true;
840
+ }
841
+ return false;
842
+ }
843
+ /** Outputs a translated term. */
844
+ term(key, ...args) {
845
+ const { primary, secondary } = this.getTranslationData(this.lang());
846
+ let term;
847
+ if (primary && primary[key]) {
848
+ term = primary[key];
849
+ } else if (secondary && secondary[key]) {
850
+ term = secondary[key];
851
+ } else if (fallback && fallback[key]) {
852
+ term = fallback[key];
853
+ } else {
854
+ console.error(`No translation was found for \u201C${String(key)}\u201D.`);
855
+ return String(key);
856
+ }
857
+ if (typeof term === "function") {
858
+ return term(...args);
859
+ }
860
+ return term;
861
+ }
862
+ /** Outputs a localised date in the specified format. */
863
+ date(dateToFormat, options) {
864
+ dateToFormat = new Date(dateToFormat);
865
+ return new Intl.DateTimeFormat(this.lang(), options).format(
866
+ dateToFormat
867
+ );
868
+ }
869
+ /** Outputs a localised number in the specified format. */
870
+ number(numberToFormat, options) {
871
+ numberToFormat = Number(numberToFormat);
872
+ return isNaN(numberToFormat) ? "" : new Intl.NumberFormat(this.lang(), options).format(
873
+ numberToFormat
874
+ );
875
+ }
876
+ /** Outputs a localised time in relative format. */
877
+ relativeTime(value, unit, options) {
878
+ return new Intl.RelativeTimeFormat(this.lang(), options).format(
879
+ value,
880
+ unit
881
+ );
882
+ }
883
+ };
884
+
885
+ // src/translations/en.ts
886
+ var translation = {
887
+ $code: "en",
888
+ $name: "English",
889
+ $dir: "ltr",
890
+ carousel: "Carousel",
891
+ clearEntry: "Clear entry",
892
+ close: "Close",
893
+ copied: "Copied!",
894
+ copy: "Copy",
895
+ currentValue: "Current value",
896
+ error: "Error",
897
+ goToSlide: (slide, count) => `Go to slide ${slide} of ${count}`,
898
+ hidePassword: "Hide password",
899
+ hue: "Hue",
900
+ loading: "Loading\u2026",
901
+ nextSlide: "Next slide",
902
+ numOptionsSelected: (number) => {
903
+ if (number === 0) {
904
+ return "No options selected";
905
+ } else if (number === 1) {
906
+ return "One option selected";
907
+ } else {
908
+ return `${number} options selected`;
909
+ }
910
+ },
911
+ opacity: "Opacity",
912
+ pickAColorFromTheScreen: "Pick a color from the screen",
913
+ previousSlide: "Previous slide",
914
+ progress: "Progress",
915
+ remove: "Remove",
916
+ resize: "Resize",
917
+ scrollableRegion: "Scrollable region",
918
+ scrollToEnd: "Scroll to end",
919
+ scrollToStart: "Scroll to start",
920
+ showPassword: "Show password",
921
+ slideNum: (slide) => `Slide ${slide}`,
922
+ toggleColorFormat: "Toggle color format"
923
+ };
924
+ registerTranslation(translation);
925
+ var en_default = translation;
926
+
927
+ // src/utilities/localize.ts
928
+ var LocalizeController2 = class extends LocalizeController {
929
+ };
930
+ registerTranslation(en_default);
931
+
932
+ // src/internal/offset.ts
933
+ function getOffset(element, parent) {
934
+ return {
935
+ top: Math.round(
936
+ element.getBoundingClientRect().top - parent.getBoundingClientRect().top
937
+ ),
938
+ left: Math.round(
939
+ element.getBoundingClientRect().left - parent.getBoundingClientRect().left
940
+ )
941
+ };
942
+ }
943
+
944
+ // src/internal/scroll.ts
945
+ function scrollIntoView(element, container, direction = "vertical", behavior = "smooth") {
946
+ const offset = getOffset(element, container);
947
+ const offsetTop = offset.top + container.scrollTop;
948
+ const offsetLeft = offset.left + container.scrollLeft;
949
+ const minX = container.scrollLeft;
950
+ const maxX = container.scrollLeft + container.offsetWidth;
951
+ const minY = container.scrollTop;
952
+ const maxY = container.scrollTop + container.offsetHeight;
953
+ if (direction === "horizontal" || direction === "both") {
954
+ if (offsetLeft < minX) {
955
+ container.scrollTo({ left: offsetLeft, behavior });
956
+ } else if (offsetLeft + element.clientWidth > maxX) {
957
+ container.scrollTo({
958
+ left: offsetLeft - container.offsetWidth + element.clientWidth,
959
+ behavior
960
+ });
961
+ }
962
+ }
963
+ if (direction === "vertical" || direction === "both") {
964
+ if (offsetTop < minY) {
965
+ container.scrollTo({ top: offsetTop, behavior });
966
+ } else if (offsetTop + element.clientHeight > maxY) {
967
+ container.scrollTo({
968
+ top: offsetTop - container.offsetHeight + element.clientHeight,
969
+ behavior
970
+ });
971
+ }
972
+ }
973
+ }
974
+
975
+ // src/internal/watch.ts
976
+ function watch(propertyName, options) {
977
+ const resolvedOptions = {
978
+ waitUntilFirstUpdate: false,
979
+ ...options
980
+ };
981
+ return (proto, decoratedFnName) => {
982
+ const { update: update2 } = proto;
983
+ const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];
984
+ proto.update = function(changedProps) {
985
+ watchedProperties.forEach((property) => {
986
+ const key = property;
987
+ if (changedProps.has(key)) {
988
+ const oldValue = changedProps.get(key);
989
+ const newValue = this[key];
990
+ if (oldValue !== newValue) {
991
+ if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {
992
+ this[decoratedFnName](
993
+ oldValue,
994
+ newValue
995
+ );
996
+ }
997
+ }
998
+ }
999
+ });
1000
+ update2.call(this, changedProps);
1001
+ };
1002
+ };
1003
+ }
1004
+
1005
+ // src/internal/emit.ts
1006
+ function emit(target, eventName, eventDetail) {
1007
+ const { detail, cancelable, ...options } = eventDetail || {};
1008
+ const event = new CustomEvent(eventName, {
1009
+ bubbles: true,
1010
+ cancelable: cancelable !== void 0 ? cancelable : false,
1011
+ composed: true,
1012
+ detail,
1013
+ ...options
1014
+ });
1015
+ target.dispatchEvent(event);
1016
+ return event;
1017
+ }
1018
+
1019
+ // src/internal/scrollend-polyfill.ts
1020
+ var debounce = (fn, delay) => {
1021
+ let timerId = 0;
1022
+ return function(...args) {
1023
+ window.clearTimeout(timerId);
1024
+ timerId = window.setTimeout(() => {
1025
+ fn.call(this, ...args);
1026
+ }, delay);
1027
+ };
1028
+ };
1029
+ var decorate = (proto, method, decorateFn) => {
1030
+ const superFn = proto[method];
1031
+ proto[method] = function(...args) {
1032
+ superFn.call(this, ...args);
1033
+ decorateFn.call(this, superFn, ...args);
1034
+ };
1035
+ };
1036
+ (() => {
1037
+ if (typeof window === "undefined") {
1038
+ return;
1039
+ }
1040
+ const isSupported = "onscrollend" in window;
1041
+ if (!isSupported) {
1042
+ const pointers = /* @__PURE__ */ new Set();
1043
+ const scrollHandlers = /* @__PURE__ */ new WeakMap();
1044
+ const handlePointerDown = (event) => {
1045
+ for (const touch of Array.from(event.changedTouches)) {
1046
+ pointers.add(touch.identifier);
1047
+ }
1048
+ };
1049
+ const handlePointerUp = (event) => {
1050
+ for (const touch of Array.from(event.changedTouches)) {
1051
+ pointers.delete(touch.identifier);
1052
+ }
1053
+ };
1054
+ document.addEventListener("touchstart", handlePointerDown, true);
1055
+ document.addEventListener("touchend", handlePointerUp, true);
1056
+ document.addEventListener("touchcancel", handlePointerUp, true);
1057
+ decorate(
1058
+ EventTarget.prototype,
1059
+ "addEventListener",
1060
+ function(addEventListener, type) {
1061
+ if (type !== "scrollend") return;
1062
+ const handleScrollEnd = debounce(() => {
1063
+ if (!pointers.size) {
1064
+ this.dispatchEvent(new Event("scrollend"));
1065
+ } else {
1066
+ handleScrollEnd();
1067
+ }
1068
+ }, 100);
1069
+ addEventListener.call(this, "scroll", handleScrollEnd, {
1070
+ passive: true
1071
+ });
1072
+ scrollHandlers.set(this, handleScrollEnd);
1073
+ }
1074
+ );
1075
+ decorate(
1076
+ EventTarget.prototype,
1077
+ "removeEventListener",
1078
+ function(removeEventListener, type) {
1079
+ if (type !== "scrollend") {
1080
+ return;
1081
+ }
1082
+ const scrollHandler = scrollHandlers.get(this);
1083
+ if (scrollHandler) {
1084
+ removeEventListener.call(this, "scroll", scrollHandler, {
1085
+ passive: true
1086
+ });
1087
+ }
1088
+ }
1089
+ );
1090
+ }
1091
+ })();
1092
+
1093
+ // node_modules/lit-html/directives/if-defined.js
1094
+ var o6 = (o7) => o7 ?? E;
1095
+
1096
+ // src/internal/form.ts
1097
+ var formCollections = /* @__PURE__ */ new WeakMap();
1098
+ var reportValidityOverloads = /* @__PURE__ */ new WeakMap();
1099
+ var checkValidityOverloads = /* @__PURE__ */ new WeakMap();
1100
+ var userInteractedControls = /* @__PURE__ */ new WeakSet();
1101
+ var interactions = /* @__PURE__ */ new WeakMap();
1102
+ var FormControlController = class {
1103
+ constructor(host, options) {
1104
+ this.handleFormData = (event) => {
1105
+ const disabled = this.options.disabled(this.host);
1106
+ const name = this.options.name(this.host);
1107
+ const value = this.options.value(this.host);
1108
+ const isButton = this.host.tagName.toLowerCase() === "pc-button";
1109
+ if (this.host.isConnected && !disabled && !isButton && typeof name === "string" && name.length > 0 && typeof value !== "undefined") {
1110
+ if (Array.isArray(value)) {
1111
+ value.forEach((val) => {
1112
+ event.formData.append(
1113
+ name,
1114
+ val.toString()
1115
+ );
1116
+ });
1117
+ } else {
1118
+ event.formData.append(
1119
+ name,
1120
+ value.toString()
1121
+ );
1122
+ }
1123
+ }
1124
+ };
1125
+ this.handleFormSubmit = (event) => {
1126
+ const disabled = this.options.disabled(this.host);
1127
+ const reportValidity = this.options.reportValidity;
1128
+ if (this.form && !this.form.noValidate) {
1129
+ formCollections.get(this.form)?.forEach((control) => {
1130
+ this.setUserInteracted(control, true);
1131
+ });
1132
+ }
1133
+ if (this.form && !this.form.noValidate && !disabled && !reportValidity(this.host)) {
1134
+ event.preventDefault();
1135
+ event.stopImmediatePropagation();
1136
+ }
1137
+ };
1138
+ this.handleFormReset = () => {
1139
+ this.options.setValue(this.host, this.options.defaultValue(this.host));
1140
+ this.setUserInteracted(this.host, false);
1141
+ interactions.set(this.host, []);
1142
+ };
1143
+ this.handleInteraction = (event) => {
1144
+ const emittedEvents = interactions.get(this.host);
1145
+ if (!emittedEvents.includes(event.type)) {
1146
+ emittedEvents.push(event.type);
1147
+ }
1148
+ if (emittedEvents.length === this.options.assumeInteractionOn.length) {
1149
+ this.setUserInteracted(this.host, true);
1150
+ }
1151
+ };
1152
+ this.checkFormValidity = () => {
1153
+ if (this.form && !this.form.noValidate) {
1154
+ const elements = this.form.querySelectorAll("*");
1155
+ for (const element of elements) {
1156
+ if (typeof element.checkValidity === "function") {
1157
+ if (!element.checkValidity()) {
1158
+ return false;
1159
+ }
1160
+ }
1161
+ }
1162
+ }
1163
+ return true;
1164
+ };
1165
+ this.reportFormValidity = () => {
1166
+ if (this.form && !this.form.noValidate) {
1167
+ const elements = this.form.querySelectorAll("*");
1168
+ for (const element of elements) {
1169
+ if (typeof element.reportValidity === "function") {
1170
+ if (!element.reportValidity()) {
1171
+ return false;
1172
+ }
1173
+ }
1174
+ }
1175
+ }
1176
+ return true;
1177
+ };
1178
+ (this.host = host).addController(this);
1179
+ this.options = {
1180
+ form: (input) => {
1181
+ const formID = input.form;
1182
+ if (formID) {
1183
+ const root = input.getRootNode();
1184
+ const form = root.querySelector(`#${formID}`);
1185
+ if (form) {
1186
+ return form;
1187
+ }
1188
+ }
1189
+ return input.closest("form");
1190
+ },
1191
+ name: (input) => input.name,
1192
+ value: (input) => input.value,
1193
+ defaultValue: (input) => input.defaultValue,
1194
+ disabled: (input) => input.disabled ?? false,
1195
+ reportValidity: (input) => typeof input.reportValidity === "function" ? input.reportValidity() : true,
1196
+ checkValidity: (input) => typeof input.checkValidity === "function" ? input.checkValidity() : true,
1197
+ setValue: (input, value) => input.value = value,
1198
+ assumeInteractionOn: ["pc-input"],
1199
+ ...options
1200
+ };
1201
+ }
1202
+ hostConnected() {
1203
+ const form = this.options.form(this.host);
1204
+ if (form) {
1205
+ this.attachForm(form);
1206
+ }
1207
+ interactions.set(this.host, []);
1208
+ this.options.assumeInteractionOn.forEach((event) => {
1209
+ this.host.addEventListener(event, this.handleInteraction);
1210
+ });
1211
+ }
1212
+ hostDisconnected() {
1213
+ this.detachForm();
1214
+ interactions.delete(this.host);
1215
+ this.options.assumeInteractionOn.forEach((event) => {
1216
+ this.host.removeEventListener(event, this.handleInteraction);
1217
+ });
1218
+ }
1219
+ hostUpdated() {
1220
+ const form = this.options.form(this.host);
1221
+ if (!form) {
1222
+ this.detachForm();
1223
+ }
1224
+ if (form && this.form !== form) {
1225
+ this.detachForm();
1226
+ this.attachForm(form);
1227
+ }
1228
+ if (this.host.hasUpdated) {
1229
+ this.setValidity(this.host.validity.valid);
1230
+ }
1231
+ }
1232
+ attachForm(form) {
1233
+ if (form) {
1234
+ this.form = form;
1235
+ if (formCollections.has(this.form)) {
1236
+ formCollections.get(this.form).add(this.host);
1237
+ } else {
1238
+ formCollections.set(
1239
+ this.form,
1240
+ /* @__PURE__ */ new Set([this.host])
1241
+ );
1242
+ }
1243
+ this.form.addEventListener("formdata", this.handleFormData);
1244
+ this.form.addEventListener("submit", this.handleFormSubmit);
1245
+ this.form.addEventListener("reset", this.handleFormReset);
1246
+ if (!reportValidityOverloads.has(this.form)) {
1247
+ reportValidityOverloads.set(
1248
+ this.form,
1249
+ this.form.reportValidity
1250
+ );
1251
+ this.form.reportValidity = () => this.reportFormValidity();
1252
+ }
1253
+ if (!checkValidityOverloads.has(this.form)) {
1254
+ checkValidityOverloads.set(this.form, this.form.checkValidity);
1255
+ this.form.checkValidity = () => this.checkFormValidity();
1256
+ }
1257
+ } else {
1258
+ this.form = void 0;
1259
+ }
1260
+ }
1261
+ detachForm() {
1262
+ if (!this.form) {
1263
+ return;
1264
+ }
1265
+ const formCollection = formCollections.get(this.form);
1266
+ if (!formCollection) {
1267
+ return;
1268
+ }
1269
+ formCollection.delete(this.host);
1270
+ if (formCollection.size <= 0) {
1271
+ this.form.removeEventListener("formdata", this.handleFormData);
1272
+ this.form.removeEventListener("submit", this.handleFormSubmit);
1273
+ this.form.removeEventListener("reset", this.handleFormReset);
1274
+ if (reportValidityOverloads.has(this.form)) {
1275
+ this.form.reportValidity = reportValidityOverloads.get(
1276
+ this.form
1277
+ );
1278
+ reportValidityOverloads.delete(this.form);
1279
+ }
1280
+ if (checkValidityOverloads.has(this.form)) {
1281
+ this.form.checkValidity = checkValidityOverloads.get(
1282
+ this.form
1283
+ );
1284
+ checkValidityOverloads.delete(this.form);
1285
+ }
1286
+ this.form = void 0;
1287
+ }
1288
+ }
1289
+ setUserInteracted(element, hasInteracted) {
1290
+ if (hasInteracted) {
1291
+ userInteractedControls.add(element);
1292
+ } else {
1293
+ userInteractedControls.delete(element);
1294
+ }
1295
+ element.requestUpdate();
1296
+ }
1297
+ doAction(type, submitter) {
1298
+ if (this.form) {
1299
+ const button = document.createElement("button");
1300
+ button.type = type;
1301
+ button.style.position = "absolute";
1302
+ button.style.inlineSize = "0";
1303
+ button.style.blockSize = "0";
1304
+ button.style.width = "0";
1305
+ button.style.height = "0";
1306
+ button.style.clipPath = "inset(50%)";
1307
+ button.style.overflow = "hidden";
1308
+ button.style.whiteSpace = "nowrap";
1309
+ if (submitter) {
1310
+ button.name = submitter.name;
1311
+ button.value = submitter.value;
1312
+ [
1313
+ "formaction",
1314
+ "formenctype",
1315
+ "formmethod",
1316
+ "formnovalidate",
1317
+ "formtarget"
1318
+ ].forEach((attribute) => {
1319
+ if (submitter.hasAttribute(attribute)) {
1320
+ button.setAttribute(
1321
+ attribute,
1322
+ submitter.getAttribute(attribute)
1323
+ );
1324
+ }
1325
+ });
1326
+ }
1327
+ this.form.append(button);
1328
+ button.click();
1329
+ button.remove();
1330
+ }
1331
+ }
1332
+ /** Returns the associated `<form>` element, if one exists. */
1333
+ getForm() {
1334
+ return this.form ?? null;
1335
+ }
1336
+ /** Resets the form, restoring all form controls to their default value. */
1337
+ reset(submitter) {
1338
+ this.doAction("reset", submitter);
1339
+ }
1340
+ /** Submits the form, triggering validation and form data injection. */
1341
+ submit(submitter) {
1342
+ this.doAction("submit", submitter);
1343
+ }
1344
+ /** Synchronously sets the form control’s validity. Call this when you know the future validity state but need to update the host element immediately (i.e., before Lit updates the component in the next update). */
1345
+ setValidity(isValid) {
1346
+ const host = this.host;
1347
+ const hasInteracted = Boolean(userInteractedControls.has(host));
1348
+ const required = Boolean(host.required);
1349
+ host.toggleAttribute("data-required", required);
1350
+ host.toggleAttribute("data-optional", !required);
1351
+ host.toggleAttribute("data-invalid", !isValid);
1352
+ host.toggleAttribute("data-valid", isValid);
1353
+ host.toggleAttribute("data-user-invalid", !isValid && hasInteracted);
1354
+ host.toggleAttribute("data-user-valid", isValid && hasInteracted);
1355
+ }
1356
+ /** Updates the form control’s validity based on the current value of `host.validity.valid`. Call this when anything that affects constraint validation changes so the component receives the correct validity states. */
1357
+ updateValidity() {
1358
+ const host = this.host;
1359
+ this.setValidity(host.validity.valid);
1360
+ }
1361
+ /** Dispatches a non‐bubbling, cancellable custom event called `pc-invalid`. If the `pc-invalid` event will be cancelled, then the original `invalid` event (which may have been passed as an argument) will also be cancelled. If no original `invalid` event has been passed, then the `pc-invalid` event will be cancelled before being dispatched. */
1362
+ emitInvalidEvent(originalInvalidEvent) {
1363
+ const pcInvalidEvent = new CustomEvent(
1364
+ "pc-invalid",
1365
+ {
1366
+ bubbles: false,
1367
+ composed: false,
1368
+ cancelable: true,
1369
+ detail: {}
1370
+ }
1371
+ );
1372
+ if (!originalInvalidEvent) {
1373
+ pcInvalidEvent.preventDefault();
1374
+ }
1375
+ if (!this.host.dispatchEvent(pcInvalidEvent)) {
1376
+ originalInvalidEvent?.preventDefault();
1377
+ }
1378
+ }
1379
+ };
1380
+ var validValidityState = Object.freeze({
1381
+ badInput: false,
1382
+ customError: false,
1383
+ patternMismatch: false,
1384
+ rangeOverflow: false,
1385
+ rangeUnderflow: false,
1386
+ stepMismatch: false,
1387
+ tooLong: false,
1388
+ tooShort: false,
1389
+ typeMismatch: false,
1390
+ valid: true,
1391
+ valueMissing: false
1392
+ });
1393
+ var valueMissingValidityState = Object.freeze({
1394
+ ...validValidityState,
1395
+ valid: false,
1396
+ valueMissing: true
1397
+ });
1398
+ var customErrorValidityState = Object.freeze({
1399
+ ...validValidityState,
1400
+ valid: false,
1401
+ customError: true
1402
+ });
1403
+
1404
+ // src/internal/slot.ts
1405
+ var HasSlotController = class {
1406
+ constructor(host, ...slotNames) {
1407
+ this.slotNames = [];
1408
+ this.handleSlotChange = (event) => {
1409
+ const slot = event.target;
1410
+ if (this.slotNames.includes("[default]") && !slot.name || slot.name && this.slotNames.includes(slot.name)) {
1411
+ this.host.requestUpdate();
1412
+ }
1413
+ };
1414
+ (this.host = host).addController(this);
1415
+ this.slotNames = slotNames;
1416
+ }
1417
+ hasDefaultSlot() {
1418
+ return Array.from(this.host.childNodes).some((node) => {
1419
+ if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== "") {
1420
+ return true;
1421
+ }
1422
+ if (node.nodeType === node.ELEMENT_NODE) {
1423
+ const element = node;
1424
+ const tagName = element.tagName.toLowerCase();
1425
+ if (tagName === "sl-visually-hidden") {
1426
+ return false;
1427
+ }
1428
+ if (!element.hasAttribute("slot")) {
1429
+ return true;
1430
+ }
1431
+ }
1432
+ return false;
1433
+ });
1434
+ }
1435
+ hasNamedSlot(name) {
1436
+ return this.host.querySelector(`:scope > [slot="${name}"]`) !== null;
1437
+ }
1438
+ test(slotName) {
1439
+ return slotName === "[default]" ? this.hasDefaultSlot() : this.hasNamedSlot(slotName);
1440
+ }
1441
+ hostConnected() {
1442
+ this.host.shadowRoot.addEventListener(
1443
+ "slotchange",
1444
+ this.handleSlotChange
1445
+ );
1446
+ }
1447
+ hostDisconnected() {
1448
+ this.host.shadowRoot.removeEventListener(
1449
+ "slotchange",
1450
+ this.handleSlotChange
1451
+ );
1452
+ }
1453
+ };
1454
+
1455
+ // src/styles/utilities/appearance.css
1456
+ var appearance_default = '@layer pc-utilities {\n :where(:root),\n :host([appearance="neutral"]) {\n --pc-color-fill-loud: var(--pc-color-neutral-fill-loud);\n --pc-color-fill-normal: var(--pc-color-neutral-fill-normal);\n --pc-color-fill-quiet: var(--pc-color-neutral-fill-quiet);\n --pc-color-border-loud: var(--pc-color-neutral-border-loud);\n --pc-color-border-normal: var(--pc-color-neutral-border-normal);\n --pc-color-border-quiet: var(--pc-color-neutral-border-quiet);\n --pc-color-on-loud: var(--pc-color-neutral-on-loud);\n --pc-color-on-normal: var(--pc-color-neutral-on-normal);\n --pc-color-on-quiet: var(--pc-color-neutral-on-quiet);\n }\n\n :host([appearance="primary"]) {\n --pc-color-fill-loud: var(--pc-color-primary-fill-loud);\n --pc-color-fill-normal: var(--pc-color-primary-fill-normal);\n --pc-color-fill-quiet: var(--pc-color-primary-fill-quiet);\n --pc-color-border-loud: var(--pc-color-primary-border-loud);\n --pc-color-border-normal: var(--pc-color-primary-border-normal);\n --pc-color-border-quiet: var(--pc-color-primary-border-quiet);\n --pc-color-on-loud: var(--pc-color-primary-on-loud);\n --pc-color-on-normal: var(--pc-color-primary-on-normal);\n --pc-color-on-quiet: var(--pc-color-primary-on-quiet);\n }\n\n :host([appearance="success"]) {\n --pc-color-fill-loud: var(--pc-color-success-fill-loud);\n --pc-color-fill-normal: var(--pc-color-success-fill-normal);\n --pc-color-fill-quiet: var(--pc-color-success-fill-quiet);\n --pc-color-border-loud: var(--pc-color-success-border-loud);\n --pc-color-border-normal: var(--pc-color-success-border-normal);\n --pc-color-border-quiet: var(--pc-color-success-border-quiet);\n --pc-color-on-loud: var(--pc-color-success-on-loud);\n --pc-color-on-normal: var(--pc-color-success-on-normal);\n --pc-color-on-quiet: var(--pc-color-success-on-quiet);\n }\n\n :host([appearance="warning"]) {\n --pc-color-fill-loud: var(--pc-color-warning-fill-loud);\n --pc-color-fill-normal: var(--pc-color-warning-fill-normal);\n --pc-color-fill-quiet: var(--pc-color-warning-fill-quiet);\n --pc-color-border-loud: var(--pc-color-warning-border-loud);\n --pc-color-border-normal: var(--pc-color-warning-border-normal);\n --pc-color-border-quiet: var(--pc-color-warning-border-quiet);\n --pc-color-on-loud: var(--pc-color-warning-on-loud);\n --pc-color-on-normal: var(--pc-color-warning-on-normal);\n --pc-color-on-quiet: var(--pc-color-warning-on-quiet);\n }\n\n :host([appearance="danger"]) {\n --pc-color-fill-loud: var(--pc-color-danger-fill-loud);\n --pc-color-fill-normal: var(--pc-color-danger-fill-normal);\n --pc-color-fill-quiet: var(--pc-color-danger-fill-quiet);\n --pc-color-border-loud: var(--pc-color-danger-border-loud);\n --pc-color-border-normal: var(--pc-color-danger-border-normal);\n --pc-color-border-quiet: var(--pc-color-danger-border-quiet);\n --pc-color-on-loud: var(--pc-color-danger-on-loud);\n --pc-color-on-normal: var(--pc-color-danger-on-normal);\n --pc-color-on-quiet: var(--pc-color-danger-on-quiet);\n }\n}\n';
1457
+
1458
+ // src/styles/utilities/size.css
1459
+ var size_default = '@layer pc-utilities {\n :host([size="small"]),\n .pc-size-s {\n font-size: var(--pc-font-size-s);\n }\n\n :host([size="medium"]),\n .pc-size-m {\n font-size: var(--pc-font-size-m);\n }\n\n :host([size="large"]),\n .pc-size-l {\n font-size: var(--pc-font-size-l);\n }\n}\n';
1460
+
1461
+ // src/components/button/button.css
1462
+ var button_default = ':host {\n display: inline-block;\n position: relative;\n}\n\n.button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n inline-size: 100%;\n block-size: var(--pc-form-control-height);\n background-color: var(--pc-color-fill-loud);\n color: var(--pc-color-on-loud);\n border: var(--pc-border-width-s) var(--pc-border-style) transparent;\n border-radius: var(--pc-form-control-border-radius);\n padding: 0 var(--pc-form-control-padding-inline);\n box-sizing: border-box;\n font-family: inherit;\n font-size: inherit;\n font-weight: var(--pc-font-weight-bold);\n line-height: calc(var(--pc-form-control-height) - var(--border-width) * 2);\n vertical-align: middle;\n white-space: nowrap;\n user-select: none;\n -webkit-user-select: none;\n cursor: pointer;\n text-align: center;\n text-decoration: none;\n transition: all var(--pc-transition-fast) ease-in-out;\n}\n\n.button::-moz-focus-inner {\n border: 0;\n}\n\n.button:focus {\n outline: none;\n}\n\n.button:focus-visible {\n outline: var(--pc-focus-ring);\n outline-offset: var(--pc-focus-ring-offset);\n animation: focus-ring-animation var(--pc-transition-medium)\n cubic-bezier(0.33, 1, 0.68, 1);\n}\n\n.prefix,\n.suffix {\n display: flex;\n align-items: center;\n pointer-events: none;\n}\n\n.prefix::slotted(*) {\n margin-inline-end: 0.75em;\n}\n\n.suffix::slotted(*) {\n margin-inline-start: 0.75em;\n}\n\n.label {\n display: flex;\n transition: color var(--pc-transition-fast) ease-in-out;\n}\n\n.label::slotted(pc-icon) {\n align-self: center;\n}\n\n:host([pill]) .button {\n border-radius: var(--pc-border-radius-pill);\n}\n\n.disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.disabled * {\n pointer-events: none;\n}\n\n.icon-button {\n aspect-ratio: 1 / 1;\n inline-size: var(--pc-form-control-height);\n}\n\n:host([variant~="accent"]) {\n .button {\n background-color: var(--pc-color-fill-loud);\n color: var(--pc-color-on-loud);\n border-color: transparent;\n }\n\n @media (hover: hover) {\n .button:not(.disabled):hover {\n background-color: color-mix(\n in oklab,\n var(--pc-color-fill-loud),\n var(--pc-color-mix-hover)\n );\n }\n }\n\n .button:not(.disabled):active {\n background-color: color-mix(\n in oklab,\n var(--pc-color-fill-loud),\n var(--pc-color-mix-active)\n );\n }\n}\n\n:host([variant~="outlined"]) {\n .button {\n background-color: transparent;\n color: var(--pc-color-on-quiet);\n border-color: var(--pc-color-border-loud);\n }\n\n @media (hover: hover) {\n .button:not(.disabled):hover {\n background-color: color-mix(\n in oklab,\n var(--pc-color-fill-quiet),\n var(--pc-color-mix-hover)\n );\n color: var(--pc-color-on-quiet);\n }\n }\n\n .button:not(.disabled):active {\n background-color: color-mix(\n in oklab,\n var(--pc-color-fill-quiet),\n var(--pc-color-mix-active)\n );\n color: var(--pc-color-on-quiet);\n }\n}\n\n:host([variant~="filled"]) {\n .button {\n background-color: var(--pc-color-fill-normal);\n color: var(--pc-color-on-normal);\n border-color: transparent;\n }\n\n @media (hover: hover) {\n .button:not(.disabled):hover {\n background-color: color-mix(\n in oklab,\n var(--pc-color-fill-normal),\n var(--pc-color-mix-hover)\n );\n }\n }\n\n .button:not(.disabled):active {\n background-color: color-mix(\n in oklab,\n var(--pc-color-fill-normal),\n var(--pc-color-mix-active)\n );\n }\n}\n\n:host([variant~="filled"][variant~="outlined"]) .button {\n border-color: var(--pc-color-border-normal);\n}\n\n:host([variant~="plain"]) {\n .button {\n background-color: transparent;\n color: var(--pc-color-on-quiet);\n border-color: transparent;\n }\n\n @media (hover: hover) {\n .button:not(.disabled):hover {\n background-color: color-mix(\n in oklab,\n var(--pc-color-fill-quiet),\n var(--pc-color-mix-hover)\n );\n color: var(--pc-color-on-quiet);\n }\n }\n\n .button:not(.disabled):active {\n background-color: color-mix(\n in oklab,\n var(--pc-color-fill-quiet),\n var(--pc-color-mix-active)\n );\n color: var(--pc-color-on-quiet);\n }\n}\n\n:host(\n [data-pc-button-group-button-first]:not(\n [data-pc-button-group-button-last]\n )\n )\n .button {\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n}\n\n:host([data-pc-button-group-button-inner]) .button {\n border-radius: 0;\n}\n\n:host(\n [data-pc-button-group-button-last]:not(\n [data-pc-button-group-button-first]\n )\n )\n .button {\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n}\n\n:host([data-pc-button-group-button]:not([data-pc-button-group-button-first])) {\n margin-inline-start: calc(-1 * var(--pc-input-border-width));\n}\n\n:host([data-pc-button-group-button-hover]),\n:host([data-pc-button-group-button-focus]) {\n z-index: 1;\n}\n\n:host([data-pc-button-group-button][checked]) {\n z-index: 2;\n}\n\n@keyframes focus-ring-animation {\n 0% {\n outline-width: 0;\n }\n\n 50% {\n outline-width: calc(var(--pc-focus-ring-width) * 2);\n }\n\n 100% {\n outline-width: var(--pc-focus-ring-width);\n }\n}\n';
1463
+
1464
+ // src/components/button/button.ts
1465
+ var PcButton = class extends PlacerElement {
1466
+ constructor() {
1467
+ super(...arguments);
1468
+ this.formControlController = new FormControlController(this, {
1469
+ assumeInteractionOn: ["click"]
1470
+ });
1471
+ this.hasSlotController = new HasSlotController(
1472
+ this,
1473
+ "[default]",
1474
+ "prefix",
1475
+ "suffix"
1476
+ );
1477
+ this.hasFocus = false;
1478
+ this.isIconButton = false;
1479
+ this.invalid = false;
1480
+ this.title = "";
1481
+ this.appearance = "neutral";
1482
+ this.variant = "accent";
1483
+ this.size = "medium";
1484
+ this.disabled = false;
1485
+ this.pill = false;
1486
+ this.type = "button";
1487
+ this.name = "";
1488
+ this.value = "";
1489
+ this.href = "";
1490
+ this.rel = "noreferrer noopener";
1491
+ }
1492
+ /** Gets the validity state object. */
1493
+ get validity() {
1494
+ if (this.isButton()) {
1495
+ return this.button.validity;
1496
+ }
1497
+ return validValidityState;
1498
+ }
1499
+ /** Gets the validation message. */
1500
+ get validationMessage() {
1501
+ if (this.isButton()) {
1502
+ return this.button.validationMessage;
1503
+ }
1504
+ return "";
1505
+ }
1506
+ firstUpdated() {
1507
+ if (this.isButton()) {
1508
+ this.formControlController.updateValidity();
1509
+ }
1510
+ this.handleLabelSlotChange();
1511
+ }
1512
+ handleClick() {
1513
+ if (this.type === "submit") {
1514
+ this.formControlController.submit();
1515
+ }
1516
+ if (this.type === "reset") {
1517
+ this.formControlController.reset();
1518
+ }
1519
+ }
1520
+ handleFocus() {
1521
+ this.hasFocus = true;
1522
+ emit(this, "pc-focus");
1523
+ }
1524
+ handleBlur() {
1525
+ this.hasFocus = false;
1526
+ emit(this, "pc-blur");
1527
+ }
1528
+ handleInvalid(event) {
1529
+ this.formControlController.setValidity(false);
1530
+ this.formControlController.emitInvalidEvent(event);
1531
+ }
1532
+ isButton() {
1533
+ return this.href ? false : true;
1534
+ }
1535
+ isLink() {
1536
+ return this.href ? true : false;
1537
+ }
1538
+ handleLabelSlotChange() {
1539
+ const nodes = this.labelSlot.assignedNodes({ flatten: true });
1540
+ let hasIconLabel = false;
1541
+ let hasIcon = false;
1542
+ let hasText = false;
1543
+ let hasOtherElements = false;
1544
+ [...nodes].forEach((node) => {
1545
+ if (node.nodeType === Node.ELEMENT_NODE) {
1546
+ const element = node;
1547
+ if (element.localName === "pc-icon") {
1548
+ hasIcon = true;
1549
+ if (!hasIconLabel) {
1550
+ hasIconLabel = element.label !== void 0;
1551
+ }
1552
+ } else {
1553
+ hasOtherElements = true;
1554
+ }
1555
+ } else if (node.nodeType === Node.TEXT_NODE) {
1556
+ const text = node.textContent?.trim() || "";
1557
+ if (text.length > 0) {
1558
+ hasText = true;
1559
+ }
1560
+ }
1561
+ });
1562
+ this.isIconButton = hasIcon && !hasText && !hasOtherElements;
1563
+ if (this.isIconButton && !hasIconLabel) {
1564
+ console.warn(
1565
+ `<pc-icon> is missing an accessible label. Add a label attribute/property to help screen reader users. ${this}`
1566
+ );
1567
+ }
1568
+ }
1569
+ handleDisabledChange() {
1570
+ if (this.isButton()) {
1571
+ this.formControlController.setValidity(this.disabled);
1572
+ }
1573
+ }
1574
+ /** Simulates a click on the button. */
1575
+ click() {
1576
+ this.button.click();
1577
+ }
1578
+ /** Focuses the button. */
1579
+ focus(options) {
1580
+ this.button.focus(options);
1581
+ }
1582
+ /** Unfocuses the button (i.e., blurs it). */
1583
+ blur() {
1584
+ this.button.blur();
1585
+ }
1586
+ /** Checks for validity but doesn’t show a validation message. Returns `true` when valid and `false` when invalid. */
1587
+ checkValidity() {
1588
+ if (this.isButton()) {
1589
+ return this.button.checkValidity();
1590
+ }
1591
+ return true;
1592
+ }
1593
+ /** Gets the associated form if one exists. */
1594
+ getForm() {
1595
+ return this.formControlController.getForm();
1596
+ }
1597
+ /** Checks for validity and shows the browser’s validation message if the control is invalid. */
1598
+ reportValidity() {
1599
+ if (this.isButton()) {
1600
+ return this.button.reportValidity();
1601
+ }
1602
+ return true;
1603
+ }
1604
+ /** Sets a custom validation message. Pass an empty string to restore validity. */
1605
+ setCustomValidity(message) {
1606
+ if (this.isButton()) {
1607
+ this.button.setCustomValidity(message);
1608
+ this.formControlController.updateValidity();
1609
+ }
1610
+ }
1611
+ render() {
1612
+ const isLink = this.isLink();
1613
+ if (isLink) {
1614
+ return x`
1615
+ <a
1616
+ part="base"
1617
+ class=${e7({
1618
+ "button": true,
1619
+ "disabled": this.disabled,
1620
+ "focused": this.hasFocus,
1621
+ "icon-button": this.isIconButton,
1622
+ "has-label": this.hasSlotController.test("[default]"),
1623
+ "has-prefix": this.hasSlotController.test("prefix"),
1624
+ "has-suffix": this.hasSlotController.test("suffix")
1625
+ })}
1626
+ href=${o6(!this.disabled ? this.href : void 0)}
1627
+ target=${o6(this.target)}
1628
+ download=${o6(this.download)}
1629
+ rel=${o6(this.rel)}
1630
+ aria-disabled=${this.disabled ? "true" : "false"}
1631
+ tabindex=${this.disabled ? "-1" : "0"}
1632
+ @click=${this.handleClick}
1633
+ @focus=${this.handleFocus}
1634
+ @blur=${this.handleBlur}
1635
+ >
1636
+ <slot class="prefix" part="prefix" name="prefix"></slot>
1637
+ <slot
1638
+ class="label"
1639
+ part="label"
1640
+ @slotchange=${this.handleLabelSlotChange}
1641
+ ></slot>
1642
+ <slot class="suffix" part="suffix" name="suffix"></slot>
1643
+ </a>
1644
+ `;
1645
+ } else {
1646
+ return x`
1647
+ <button
1648
+ part="base"
1649
+ class=${e7({
1650
+ "button": true,
1651
+ "disabled": this.disabled,
1652
+ "focused": this.hasFocus,
1653
+ "icon-button": this.isIconButton,
1654
+ "has-label": this.hasSlotController.test("[default]"),
1655
+ "has-prefix": this.hasSlotController.test("prefix"),
1656
+ "has-suffix": this.hasSlotController.test("suffix")
1657
+ })}
1658
+ type=${this.type}
1659
+ title=${this.title}
1660
+ name=${this.name}
1661
+ value=${this.value}
1662
+ role="button"
1663
+ aria-disabled=${this.disabled ? "true" : "false"}
1664
+ tabindex=${this.disabled ? "-1" : "0"}
1665
+ @click=${this.handleClick}
1666
+ @focus=${this.handleFocus}
1667
+ @blur=${this.handleBlur}
1668
+ @invalid=${this.handleInvalid}
1669
+ >
1670
+ <slot class="prefix" part="prefix" name="prefix"></slot>
1671
+ <slot
1672
+ class="label"
1673
+ part="label"
1674
+ @slotchange=${this.handleLabelSlotChange}
1675
+ ></slot>
1676
+ <slot class="suffix" part="suffix" name="suffix"></slot>
1677
+ </button>
1678
+ `;
1679
+ }
1680
+ }
1681
+ };
1682
+ /** @internal This is an internal static property. */
1683
+ PcButton.css = [appearance_default, size_default, button_default];
1684
+ __decorateClass([
1685
+ e5(".button")
1686
+ ], PcButton.prototype, "button", 2);
1687
+ __decorateClass([
1688
+ e5("slot:not([name])")
1689
+ ], PcButton.prototype, "labelSlot", 2);
1690
+ __decorateClass([
1691
+ r5()
1692
+ ], PcButton.prototype, "hasFocus", 2);
1693
+ __decorateClass([
1694
+ r5()
1695
+ ], PcButton.prototype, "isIconButton", 2);
1696
+ __decorateClass([
1697
+ r5()
1698
+ ], PcButton.prototype, "invalid", 2);
1699
+ __decorateClass([
1700
+ n4()
1701
+ ], PcButton.prototype, "title", 2);
1702
+ __decorateClass([
1703
+ n4({ reflect: true })
1704
+ ], PcButton.prototype, "appearance", 2);
1705
+ __decorateClass([
1706
+ n4({ reflect: true })
1707
+ ], PcButton.prototype, "variant", 2);
1708
+ __decorateClass([
1709
+ n4({ reflect: true })
1710
+ ], PcButton.prototype, "size", 2);
1711
+ __decorateClass([
1712
+ n4({ type: Boolean, reflect: true })
1713
+ ], PcButton.prototype, "disabled", 2);
1714
+ __decorateClass([
1715
+ n4({ type: Boolean, reflect: true })
1716
+ ], PcButton.prototype, "pill", 2);
1717
+ __decorateClass([
1718
+ n4({ reflect: true })
1719
+ ], PcButton.prototype, "type", 2);
1720
+ __decorateClass([
1721
+ n4()
1722
+ ], PcButton.prototype, "name", 2);
1723
+ __decorateClass([
1724
+ n4()
1725
+ ], PcButton.prototype, "value", 2);
1726
+ __decorateClass([
1727
+ n4()
1728
+ ], PcButton.prototype, "href", 2);
1729
+ __decorateClass([
1730
+ n4()
1731
+ ], PcButton.prototype, "target", 2);
1732
+ __decorateClass([
1733
+ n4()
1734
+ ], PcButton.prototype, "rel", 2);
1735
+ __decorateClass([
1736
+ n4()
1737
+ ], PcButton.prototype, "download", 2);
1738
+ __decorateClass([
1739
+ n4()
1740
+ ], PcButton.prototype, "form", 2);
1741
+ __decorateClass([
1742
+ n4({ attribute: "formaction" })
1743
+ ], PcButton.prototype, "formAction", 2);
1744
+ __decorateClass([
1745
+ n4({ attribute: "formenctype" })
1746
+ ], PcButton.prototype, "formEnctype", 2);
1747
+ __decorateClass([
1748
+ n4({ attribute: "formmethod" })
1749
+ ], PcButton.prototype, "formMethod", 2);
1750
+ __decorateClass([
1751
+ n4({ attribute: "formnovalidate", type: Boolean })
1752
+ ], PcButton.prototype, "formNoValidate", 2);
1753
+ __decorateClass([
1754
+ n4({ attribute: "formtarget" })
1755
+ ], PcButton.prototype, "formTarget", 2);
1756
+ __decorateClass([
1757
+ watch("disabled", { waitUntilFirstUpdate: true })
1758
+ ], PcButton.prototype, "handleDisabledChange", 1);
1759
+ PcButton = __decorateClass([
1760
+ t3("pc-button")
1761
+ ], PcButton);
1762
+
1763
+ // src/components/resize-observer/resize-observer.css
1764
+ var resize_observer_default = ":host {\n display: contents;\n}\n";
1765
+
1766
+ // src/components/resize-observer/resize-observer.ts
1767
+ var PcResizeObserver = class extends PlacerElement {
1768
+ constructor() {
1769
+ super(...arguments);
1770
+ this.observedElements = [];
1771
+ this.disabled = false;
1772
+ }
1773
+ connectedCallback() {
1774
+ super.connectedCallback();
1775
+ this.resizeObserver = new ResizeObserver(
1776
+ (entries) => {
1777
+ emit(this, "pc-resize", {
1778
+ detail: { entries }
1779
+ });
1780
+ }
1781
+ );
1782
+ if (!this.disabled) {
1783
+ this.startObserver();
1784
+ }
1785
+ }
1786
+ disconnectedCallback() {
1787
+ super.disconnectedCallback();
1788
+ this.stopObserver();
1789
+ }
1790
+ handleSlotChange() {
1791
+ if (!this.disabled) {
1792
+ this.startObserver();
1793
+ }
1794
+ }
1795
+ startObserver() {
1796
+ const slot = this.shadowRoot.querySelector("slot");
1797
+ if (slot !== null) {
1798
+ const elements = slot.assignedElements({
1799
+ flatten: true
1800
+ });
1801
+ this.observedElements.forEach(
1802
+ (element) => this.resizeObserver.unobserve(element)
1803
+ );
1804
+ this.observedElements = [];
1805
+ elements.forEach((element) => {
1806
+ this.resizeObserver.observe(element);
1807
+ this.observedElements.push(element);
1808
+ });
1809
+ }
1810
+ }
1811
+ stopObserver() {
1812
+ this.resizeObserver.disconnect();
1813
+ }
1814
+ handleDisabledChange() {
1815
+ if (this.disabled) {
1816
+ this.stopObserver();
1817
+ } else {
1818
+ this.startObserver();
1819
+ }
1820
+ }
1821
+ render() {
1822
+ return x`<slot @slotchange=${this.handleSlotChange}></slot>`;
1823
+ }
1824
+ };
1825
+ /** @internal This is an internal static property. */
1826
+ PcResizeObserver.css = resize_observer_default;
1827
+ __decorateClass([
1828
+ n4({ type: Boolean, reflect: true })
1829
+ ], PcResizeObserver.prototype, "disabled", 2);
1830
+ __decorateClass([
1831
+ watch("disabled", { waitUntilFirstUpdate: true })
1832
+ ], PcResizeObserver.prototype, "handleDisabledChange", 1);
1833
+ PcResizeObserver = __decorateClass([
1834
+ t3("pc-resize-observer")
1835
+ ], PcResizeObserver);
1836
+
1837
+ // src/components/tab-group/tab-group.css
1838
+ var tab_group_default = ":host {\n --indicator-color: var(--pc-color-primary-fill-loud);\n --track-width: 4px;\n\n display: block;\n}\n\n.tab-group {\n display: flex;\n border-radius: 0;\n}\n\n.tabs {\n display: flex;\n position: relative;\n}\n\n.indicator {\n position: absolute;\n transition: all var(--pc-transition-medium) ease-in-out;\n}\n\n.has-scroll-controls .navigation-container {\n position: relative;\n padding-inline: calc(var(--pc-spacing-xxxl) + var(--pc-spacing-xs));\n}\n\n.has-scroll-controls .scroll-button-start-hidden,\n.has-scroll-controls .scroll-button-end-hidden {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n\n.navigation-container,\n.navigation {\n outline: none;\n}\n\n.body {\n display: block;\n}\n\n.scroll-button {\n display: flex;\n position: absolute;\n align-items: center;\n justify-content: center;\n inset-block: 0;\n opacity: 1;\n visibility: visible;\n pointer-events: auto;\n transition:\n opacity var(--pc-transition-fast) ease-in-out,\n visibility 0s ease-in-out var(--pc-transition-fast);\n}\n\n.scroll-button-start {\n inset-inline-start: 0;\n}\n\n.scroll-button-end {\n inset-inline-end: 0;\n}\n\n.is-rtl .scroll-button-start {\n inset-inline-start: auto;\n inset-inline-end: 0;\n}\n\n.is-rtl .scroll-button-end {\n inset-inline-start: 0;\n inset-inline-end: auto;\n}\n\n.top {\n flex-direction: column;\n}\n\n.top .navigation-container {\n order: 1;\n}\n\n.top .navigation {\n display: flex;\n overflow-x: auto;\n scrollbar-width: none;\n}\n\n.top .navigation::-webkit-scrollbar {\n inline-size: 0;\n block-size: 0;\n}\n\n.top .tabs {\n position: relative;\n flex-direction: row;\n flex: 1 1 auto;\n}\n\n.top .indicator {\n inset-block-end: 0;\n min-block-size: var(--track-width);\n background-color: var(--indicator-color);\n border-radius: var(--pc-border-radius-pill);\n}\n\n.top .body {\n order: 2;\n}\n\n.top ::slotted(pc-tab-panel) {\n padding-block: var(--pc-spacing-m);\n}\n\n.bottom {\n flex-direction: column;\n}\n\n.bottom .navigation-container {\n order: 2;\n}\n\n.bottom .navigation {\n display: flex;\n overflow-x: auto;\n scrollbar-width: none;\n}\n\n.bottom .tabs {\n position: relative;\n flex-direction: row;\n flex: 1 1 auto;\n}\n\n.bottom .indicator {\n inset-block-start: 0;\n min-block-size: var(--track-width);\n background-color: var(--indicator-color);\n border-radius: var(--pc-border-radius-pill);\n}\n\n.bottom .body {\n order: 1;\n}\n\n.bottom ::slotted(pc-tab-panel) {\n padding-block: var(--pc-spacing-m);\n}\n\n.start {\n flex-direction: row;\n}\n\n.start .navigation-container {\n order: 1;\n}\n\n.start .tabs {\n flex-direction: column;\n flex: 0 0 auto;\n}\n\n.start .indicator {\n inset-inline-end: calc(-1 * var(--track-width));\n min-inline-size: var(--track-width);\n background-color: var(--indicator-color);\n border-radius: var(--pc-border-radius-pill);\n}\n\n.start .body {\n flex: 1 1 auto;\n order: 2;\n}\n\n.start ::slotted(pc-tab-panel) {\n padding: 0 var(--pc-spacing-m);\n}\n\n.end {\n flex-direction: row;\n}\n\n.end .navigation-container {\n order: 2;\n}\n\n.end .tabs {\n flex-direction: column;\n flex: 0 0 auto;\n}\n\n.end .indicator {\n inset-inline-start: calc(-1 * var(--track-width));\n min-inline-size: var(--track-width);\n background-color: var(--indicator-color);\n border-radius: var(--pc-border-radius-pill);\n}\n\n.end.is-rtl .indicator {\n inset-inline-start: auto;\n inset-inline-end: 0;\n}\n\n.end .body {\n flex: 1 1 auto;\n order: 1;\n}\n\n.end ::slotted(pc-tab-panel) {\n padding-inline: var(--pc-spacing-m);\n}\n";
1839
+
1840
+ // src/components/tab-group/tab-group.ts
1841
+ var PcTabGroup = class extends PlacerElement {
1842
+ constructor() {
1843
+ super(...arguments);
1844
+ this.localize = new LocalizeController2(this);
1845
+ this.tabs = [];
1846
+ this.focusableTabs = [];
1847
+ this.panels = [];
1848
+ this.hasScrollControls = false;
1849
+ this.shouldHideScrollStartButton = false;
1850
+ this.shouldHideScrollEndButton = false;
1851
+ this.placement = "top";
1852
+ this.activation = "auto";
1853
+ this.noScrollControls = false;
1854
+ this.fixedScrollControls = false;
1855
+ this.scrollOffset = 1;
1856
+ }
1857
+ connectedCallback() {
1858
+ const whenAllDefined = Promise.all([
1859
+ customElements.whenDefined("pc-tab"),
1860
+ customElements.whenDefined("pc-tab-panel")
1861
+ ]);
1862
+ super.connectedCallback();
1863
+ this.resizeObserver = new ResizeObserver(() => {
1864
+ this.repositionIndicator();
1865
+ this.updateScrollControls();
1866
+ });
1867
+ this.mutationObserver = new MutationObserver((mutations) => {
1868
+ const instanceMutations = mutations.filter(({ target }) => {
1869
+ if (target === this) {
1870
+ return true;
1871
+ }
1872
+ if (target.closest("pc-tab-group") !== this) {
1873
+ return false;
1874
+ }
1875
+ const tagName = target.tagName.toLowerCase();
1876
+ return tagName === "pc-tab" || tagName === "pc-tab-panel";
1877
+ });
1878
+ if (instanceMutations.length === 0) {
1879
+ return;
1880
+ }
1881
+ if (instanceMutations.some(
1882
+ (mutation) => !["aria-labelledby", "aria-controls"].includes(
1883
+ mutation.attributeName
1884
+ )
1885
+ )) {
1886
+ setTimeout(() => this.setAriaLabels());
1887
+ }
1888
+ if (instanceMutations.some(
1889
+ (mutation) => mutation.attributeName === "disabled"
1890
+ )) {
1891
+ this.syncTabsAndPanels();
1892
+ } else if (instanceMutations.some(
1893
+ (mutation) => mutation.attributeName === "active"
1894
+ )) {
1895
+ const tabs = instanceMutations.filter(
1896
+ (mutation) => mutation.attributeName === "active" && mutation.target.tagName.toLowerCase() === "pc-tab"
1897
+ ).map((mutation) => mutation.target);
1898
+ const newActiveTab = tabs.find((tab) => tab.active);
1899
+ if (newActiveTab) {
1900
+ this.setActiveTab(newActiveTab);
1901
+ }
1902
+ }
1903
+ });
1904
+ this.updateComplete.then(() => {
1905
+ this.syncTabsAndPanels();
1906
+ this.mutationObserver.observe(this, {
1907
+ attributes: true,
1908
+ attributeFilter: ["active", "disabled", "name", "panel"],
1909
+ childList: true,
1910
+ subtree: true
1911
+ });
1912
+ this.resizeObserver.observe(this.navigation);
1913
+ whenAllDefined.then(() => {
1914
+ const intersectionObserver = new IntersectionObserver(
1915
+ (entries, observer) => {
1916
+ if (entries[0].intersectionRatio > 0) {
1917
+ this.setAriaLabels();
1918
+ this.setActiveTab(
1919
+ this.getActiveTab() ?? this.tabs[0],
1920
+ { emitEvents: false }
1921
+ );
1922
+ observer.unobserve(entries[0].target);
1923
+ }
1924
+ }
1925
+ );
1926
+ intersectionObserver.observe(this.tabGroup);
1927
+ });
1928
+ });
1929
+ }
1930
+ disconnectedCallback() {
1931
+ super.disconnectedCallback();
1932
+ this.mutationObserver?.disconnect();
1933
+ if (this.navigation) {
1934
+ this.resizeObserver?.unobserve(this.navigation);
1935
+ }
1936
+ }
1937
+ getAllTabs() {
1938
+ const slot = this.shadowRoot.querySelector(
1939
+ 'slot[name="navigation"]'
1940
+ );
1941
+ return slot.assignedElements();
1942
+ }
1943
+ getAllPanels() {
1944
+ return [...this.body.assignedElements()].filter(
1945
+ (element) => element.tagName.toLowerCase() === "pc-tab-panel"
1946
+ );
1947
+ }
1948
+ getActiveTab() {
1949
+ return this.tabs.find((element) => element.active);
1950
+ }
1951
+ handleClick(event) {
1952
+ const target = event.target;
1953
+ const tab = target.closest("pc-tab");
1954
+ const tabGroup = tab?.closest("pc-tab-group");
1955
+ if (tabGroup !== this) {
1956
+ return;
1957
+ }
1958
+ if (tab !== null) {
1959
+ this.setActiveTab(tab, { scrollBehavior: "smooth" });
1960
+ }
1961
+ }
1962
+ handleKeyDown(event) {
1963
+ const target = event.target;
1964
+ const tab = target.closest("pc-tab");
1965
+ const tabGroup = tab?.closest("pc-tab-group");
1966
+ if (tabGroup !== this) {
1967
+ return;
1968
+ }
1969
+ if (["Enter", " "].includes(event.key)) {
1970
+ if (tab !== null) {
1971
+ this.setActiveTab(tab, { scrollBehavior: "smooth" });
1972
+ event.preventDefault();
1973
+ }
1974
+ }
1975
+ if ([
1976
+ "ArrowLeft",
1977
+ "ArrowRight",
1978
+ "ArrowUp",
1979
+ "ArrowDown",
1980
+ "Home",
1981
+ "End"
1982
+ ].includes(event.key)) {
1983
+ const activeElement = this.tabs.find(
1984
+ (tab2) => tab2.matches(":focus")
1985
+ );
1986
+ const isRTL = this.localize.dir() === "rtl";
1987
+ let nextTab = null;
1988
+ if (activeElement?.tagName.toLowerCase() === "pc-tab") {
1989
+ if (event.key === "Home") {
1990
+ nextTab = this.focusableTabs[0];
1991
+ } else if (event.key === "End") {
1992
+ nextTab = this.focusableTabs[this.focusableTabs.length - 1];
1993
+ } else if (["top", "bottom"].includes(this.placement) && event.key === (isRTL ? "ArrowRight" : "ArrowLeft") || ["start", "end"].includes(this.placement) && event.key === "ArrowUp") {
1994
+ const currentIndex = this.tabs.findIndex(
1995
+ (element) => element === activeElement
1996
+ );
1997
+ nextTab = this.findNextFocusableTab(
1998
+ currentIndex,
1999
+ "backward"
2000
+ );
2001
+ } else if (["top", "bottom"].includes(this.placement) && event.key === (isRTL ? "ArrowLeft" : "ArrowRight") || ["start", "end"].includes(this.placement) && event.key === "ArrowDown") {
2002
+ const currentIndex = this.tabs.findIndex(
2003
+ (element) => element === activeElement
2004
+ );
2005
+ nextTab = this.findNextFocusableTab(
2006
+ currentIndex,
2007
+ "forward"
2008
+ );
2009
+ }
2010
+ if (!nextTab) {
2011
+ return;
2012
+ }
2013
+ nextTab.tabIndex = 0;
2014
+ nextTab.focus({ preventScroll: true });
2015
+ if (this.activation === "auto") {
2016
+ this.setActiveTab(nextTab, { scrollBehavior: "smooth" });
2017
+ } else {
2018
+ this.tabs.forEach((tabElement) => {
2019
+ tabElement.tabIndex = tabElement === nextTab ? 0 : -1;
2020
+ });
2021
+ }
2022
+ if (["top", "bottom"].includes(this.placement)) {
2023
+ scrollIntoView(nextTab, this.navigation, "horizontal");
2024
+ }
2025
+ event.preventDefault();
2026
+ }
2027
+ }
2028
+ }
2029
+ handleScrollToStart() {
2030
+ this.navigation.scroll({
2031
+ left: this.localize.dir() === "rtl" ? this.navigation.scrollLeft + this.navigation.clientWidth : this.navigation.scrollLeft - this.navigation.clientWidth,
2032
+ behavior: "smooth"
2033
+ });
2034
+ }
2035
+ handleScrollToEnd() {
2036
+ this.navigation.scroll({
2037
+ left: this.localize.dir() === "rtl" ? this.navigation.scrollLeft - this.navigation.clientWidth : this.navigation.scrollLeft + this.navigation.clientWidth,
2038
+ behavior: "smooth"
2039
+ });
2040
+ }
2041
+ setActiveTab(tab, options) {
2042
+ options = {
2043
+ emitEvents: true,
2044
+ scrollBehavior: "auto",
2045
+ ...options
2046
+ };
2047
+ if (tab !== this.activeTab && !tab.disabled) {
2048
+ const previousTab = this.activeTab;
2049
+ this.activeTab = tab;
2050
+ this.tabs.forEach((element) => {
2051
+ element.active = element === this.activeTab;
2052
+ element.tabIndex = element === this.activeTab ? 0 : -1;
2053
+ });
2054
+ this.panels.forEach(
2055
+ (element) => element.active = element.name === this.activeTab?.panel
2056
+ );
2057
+ this.syncIndicator();
2058
+ if (["top", "bottom"].includes(this.placement)) {
2059
+ scrollIntoView(
2060
+ this.activeTab,
2061
+ this.navigation,
2062
+ "horizontal",
2063
+ options.scrollBehavior
2064
+ );
2065
+ }
2066
+ if (options.emitEvents) {
2067
+ if (previousTab) {
2068
+ emit(this, "pc-tab-hide", {
2069
+ detail: { name: previousTab.panel }
2070
+ });
2071
+ }
2072
+ emit(this, "pc-tab-show", {
2073
+ detail: { name: this.activeTab.panel }
2074
+ });
2075
+ }
2076
+ }
2077
+ }
2078
+ setAriaLabels() {
2079
+ this.tabs.forEach((tab) => {
2080
+ const panel = this.panels.find(
2081
+ (element) => element.name === tab.panel
2082
+ );
2083
+ if (panel) {
2084
+ tab.setAttribute("aria-controls", panel.getAttribute("id"));
2085
+ panel.setAttribute("aria-labelledby", tab.getAttribute("id"));
2086
+ }
2087
+ });
2088
+ }
2089
+ repositionIndicator() {
2090
+ const currentTab = this.getActiveTab();
2091
+ if (!currentTab) {
2092
+ return;
2093
+ }
2094
+ const width = currentTab.clientWidth;
2095
+ const height = currentTab.clientHeight;
2096
+ const isRTL = this.localize.dir() === "rtl";
2097
+ const allTabs = this.getAllTabs();
2098
+ const precedingTabs = allTabs.slice(0, allTabs.indexOf(currentTab));
2099
+ const offset = precedingTabs.reduce(
2100
+ (previous, current) => ({
2101
+ left: previous.left + current.clientWidth,
2102
+ top: previous.top + current.clientHeight
2103
+ }),
2104
+ { left: 0, top: 0 }
2105
+ );
2106
+ switch (this.placement) {
2107
+ case "top":
2108
+ case "bottom":
2109
+ this.indicator.style.inlineSize = `${width}px`;
2110
+ this.indicator.style.blockSize = "auto";
2111
+ this.indicator.style.translate = isRTL ? `${-1 * offset.left}px` : `${offset.left}px`;
2112
+ break;
2113
+ case "start":
2114
+ case "end":
2115
+ this.indicator.style.inlineSize = "auto";
2116
+ this.indicator.style.blockSize = `${height}px`;
2117
+ this.indicator.style.translate = `0 ${offset.top}px`;
2118
+ break;
2119
+ }
2120
+ }
2121
+ syncTabsAndPanels() {
2122
+ this.tabs = this.getAllTabs();
2123
+ this.focusableTabs = this.tabs.filter((el) => !el.disabled);
2124
+ this.panels = this.getAllPanels();
2125
+ this.syncIndicator();
2126
+ this.updateComplete.then(() => this.updateScrollControls());
2127
+ }
2128
+ findNextFocusableTab(currentIndex, direction) {
2129
+ let nextTab = null;
2130
+ const iterator = direction === "forward" ? 1 : -1;
2131
+ let nextIndex = currentIndex + iterator;
2132
+ while (currentIndex < this.tabs.length) {
2133
+ nextTab = this.tabs[nextIndex] || null;
2134
+ if (nextTab === null) {
2135
+ if (direction === "forward") {
2136
+ nextTab = this.focusableTabs[0];
2137
+ } else {
2138
+ nextTab = this.focusableTabs[this.focusableTabs.length - 1];
2139
+ }
2140
+ break;
2141
+ }
2142
+ if (!nextTab.disabled) {
2143
+ break;
2144
+ }
2145
+ nextIndex += iterator;
2146
+ }
2147
+ return nextTab;
2148
+ }
2149
+ updateScrollButtons() {
2150
+ if (this.hasScrollControls && !this.fixedScrollControls) {
2151
+ this.shouldHideScrollStartButton = this.scrollFromStart() <= this.scrollOffset;
2152
+ this.shouldHideScrollEndButton = this.isScrolledToEnd();
2153
+ }
2154
+ }
2155
+ isScrolledToEnd() {
2156
+ return this.scrollFromStart() + this.navigation.clientWidth >= this.navigation.scrollWidth - this.scrollOffset;
2157
+ }
2158
+ scrollFromStart() {
2159
+ return this.localize.dir() === "rtl" ? -this.navigation.scrollLeft : this.navigation.scrollLeft;
2160
+ }
2161
+ updateScrollControls() {
2162
+ if (this.noScrollControls) {
2163
+ this.hasScrollControls = false;
2164
+ } else {
2165
+ this.hasScrollControls = ["top", "bottom"].includes(this.placement) && this.navigation.scrollWidth > this.navigation.clientWidth + 1;
2166
+ }
2167
+ this.updateScrollButtons();
2168
+ }
2169
+ syncIndicator() {
2170
+ const tab = this.getActiveTab();
2171
+ if (tab) {
2172
+ this.indicator.style.display = "block";
2173
+ this.repositionIndicator();
2174
+ } else {
2175
+ this.indicator.style.display = "none";
2176
+ }
2177
+ }
2178
+ /** Shows the specified tab panel. */
2179
+ show(panel) {
2180
+ const tab = this.tabs.find((element) => element.panel === panel);
2181
+ if (tab) {
2182
+ this.setActiveTab(tab, { scrollBehavior: "smooth" });
2183
+ }
2184
+ }
2185
+ render() {
2186
+ const isRTL = this.localize.dir() === "rtl";
2187
+ return x`
2188
+ <div
2189
+ part="base"
2190
+ class=${e7({
2191
+ "tab-group": true,
2192
+ "top": this.placement === "top",
2193
+ "bottom": this.placement === "bottom",
2194
+ "start": this.placement === "start",
2195
+ "end": this.placement === "end",
2196
+ "is-rtl": isRTL,
2197
+ "has-scroll-controls": this.hasScrollControls
2198
+ })}
2199
+ @click=${this.handleClick}
2200
+ @keydown=${this.handleKeyDown}
2201
+ >
2202
+ <div class="navigation-container" part="navigation">
2203
+ ${this.hasScrollControls ? x`
2204
+ <pc-button
2205
+ part="scroll-button scroll-button-start"
2206
+ class=${e7({
2207
+ "scroll-button": true,
2208
+ "scroll-button-start": true,
2209
+ "scroll-button-start-hidden": this.shouldHideScrollStartButton
2210
+ })}
2211
+ size="small"
2212
+ variant="plain"
2213
+ tabindex="-1"
2214
+ aria-hidden="true"
2215
+ @click=${this.handleScrollToStart}
2216
+ exportparts="base:scroll-button__base"
2217
+ >
2218
+ <pc-icon
2219
+ library="system"
2220
+ icon-style="solid"
2221
+ name=${isRTL ? "chevron-right" : "chevron-left"}
2222
+ label=${this.localize.term(
2223
+ "scrollToStart"
2224
+ )}
2225
+ ></pc-icon>
2226
+ </pc-button>
2227
+ ` : ""}
2228
+
2229
+ <div
2230
+ class="navigation"
2231
+ @scrollend=${this.updateScrollButtons}
2232
+ >
2233
+ <div part="tabs" class="tabs" role="tablist">
2234
+ <div
2235
+ class="indicator"
2236
+ part="active-tab-indicator"
2237
+ ></div>
2238
+ <pc-resize-observer
2239
+ @pc-resize=${this.syncIndicator}
2240
+ >
2241
+ <slot
2242
+ name="navigation"
2243
+ @slotchange=${this.syncTabsAndPanels}
2244
+ ></slot>
2245
+ </pc-resize-observer>
2246
+ </div>
2247
+ </div>
2248
+
2249
+ ${this.hasScrollControls ? x`
2250
+ <pc-button
2251
+ part="scroll-button scroll-button-end"
2252
+ class=${e7({
2253
+ "scroll-button": true,
2254
+ "scroll-button-end": true,
2255
+ "scroll-button-end-hidden": this.shouldHideScrollEndButton
2256
+ })}
2257
+ size="small"
2258
+ variant="plain"
2259
+ tabindex="-1"
2260
+ aria-hidden="true"
2261
+ @click=${this.handleScrollToEnd}
2262
+ exportparts="base:scroll-button__base"
2263
+ >
2264
+ <pc-icon
2265
+ library="system"
2266
+ icon-style="solid"
2267
+ name=${isRTL ? "chevron-left" : "chevron-right"}
2268
+ label=${this.localize.term("scrollToEnd")}
2269
+ ></pc-icon>
2270
+ </pc-button>
2271
+ ` : ""}
2272
+ </div>
2273
+
2274
+ <slot
2275
+ class="body"
2276
+ part="body"
2277
+ @slotchange=${this.syncTabsAndPanels}
2278
+ ></slot>
2279
+ </div>
2280
+ `;
2281
+ }
2282
+ };
2283
+ /** @internal This is an internal static property. */
2284
+ PcTabGroup.css = tab_group_default;
2285
+ /** @internal This is an internal static property. */
2286
+ PcTabGroup.dependencies = {
2287
+ "pc-button": PcButton,
2288
+ "pc-resize-observer": PcResizeObserver
2289
+ };
2290
+ __decorateClass([
2291
+ e5(".tab-group")
2292
+ ], PcTabGroup.prototype, "tabGroup", 2);
2293
+ __decorateClass([
2294
+ e5(".body")
2295
+ ], PcTabGroup.prototype, "body", 2);
2296
+ __decorateClass([
2297
+ e5(".navigation")
2298
+ ], PcTabGroup.prototype, "navigation", 2);
2299
+ __decorateClass([
2300
+ e5(".indicator")
2301
+ ], PcTabGroup.prototype, "indicator", 2);
2302
+ __decorateClass([
2303
+ r5()
2304
+ ], PcTabGroup.prototype, "hasScrollControls", 2);
2305
+ __decorateClass([
2306
+ r5()
2307
+ ], PcTabGroup.prototype, "shouldHideScrollStartButton", 2);
2308
+ __decorateClass([
2309
+ r5()
2310
+ ], PcTabGroup.prototype, "shouldHideScrollEndButton", 2);
2311
+ __decorateClass([
2312
+ n4()
2313
+ ], PcTabGroup.prototype, "placement", 2);
2314
+ __decorateClass([
2315
+ n4()
2316
+ ], PcTabGroup.prototype, "activation", 2);
2317
+ __decorateClass([
2318
+ n4({ attribute: "no-scroll-controls", type: Boolean })
2319
+ ], PcTabGroup.prototype, "noScrollControls", 2);
2320
+ __decorateClass([
2321
+ n4({ attribute: "fixed-scroll-controls", type: Boolean })
2322
+ ], PcTabGroup.prototype, "fixedScrollControls", 2);
2323
+ __decorateClass([
2324
+ t4({ passive: true })
2325
+ ], PcTabGroup.prototype, "updateScrollButtons", 1);
2326
+ __decorateClass([
2327
+ watch("noScrollControls", { waitUntilFirstUpdate: true })
2328
+ ], PcTabGroup.prototype, "updateScrollControls", 1);
2329
+ __decorateClass([
2330
+ watch("placement", { waitUntilFirstUpdate: true })
2331
+ ], PcTabGroup.prototype, "syncIndicator", 1);
2332
+ PcTabGroup = __decorateClass([
2333
+ t3("pc-tab-group")
2334
+ ], PcTabGroup);
2335
+ export {
2336
+ PcTabGroup
2337
+ };
2338
+ /*! Bundled license information:
2339
+
2340
+ @lit/reactive-element/css-tag.js:
2341
+ (**
2342
+ * @license
2343
+ * Copyright 2019 Google LLC
2344
+ * SPDX-License-Identifier: BSD-3-Clause
2345
+ *)
2346
+
2347
+ @lit/reactive-element/reactive-element.js:
2348
+ lit-html/lit-html.js:
2349
+ lit-element/lit-element.js:
2350
+ @lit/reactive-element/decorators/custom-element.js:
2351
+ @lit/reactive-element/decorators/property.js:
2352
+ @lit/reactive-element/decorators/state.js:
2353
+ @lit/reactive-element/decorators/event-options.js:
2354
+ @lit/reactive-element/decorators/base.js:
2355
+ @lit/reactive-element/decorators/query.js:
2356
+ @lit/reactive-element/decorators/query-all.js:
2357
+ @lit/reactive-element/decorators/query-async.js:
2358
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
2359
+ lit-html/directive.js:
2360
+ (**
2361
+ * @license
2362
+ * Copyright 2017 Google LLC
2363
+ * SPDX-License-Identifier: BSD-3-Clause
2364
+ *)
2365
+
2366
+ lit-html/is-server.js:
2367
+ (**
2368
+ * @license
2369
+ * Copyright 2022 Google LLC
2370
+ * SPDX-License-Identifier: BSD-3-Clause
2371
+ *)
2372
+
2373
+ @lit/reactive-element/decorators/query-assigned-elements.js:
2374
+ (**
2375
+ * @license
2376
+ * Copyright 2021 Google LLC
2377
+ * SPDX-License-Identifier: BSD-3-Clause
2378
+ *)
2379
+
2380
+ lit-html/directives/class-map.js:
2381
+ lit-html/directives/if-defined.js:
2382
+ (**
2383
+ * @license
2384
+ * Copyright 2018 Google LLC
2385
+ * SPDX-License-Identifier: BSD-3-Clause
2386
+ *)
2387
+ */