@vanelsas/baredom 2.3.2 → 2.4.1

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 (95) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +265 -264
  4. package/dist/integrity.json +98 -0
  5. package/dist/x-alert.js +17 -17
  6. package/dist/x-avatar-group.js +11 -11
  7. package/dist/x-avatar.js +14 -14
  8. package/dist/x-badge.js +11 -11
  9. package/dist/x-bento-grid.js +5 -5
  10. package/dist/x-bento-item.js +4 -4
  11. package/dist/x-breadcrumbs.js +14 -14
  12. package/dist/x-button.js +15 -15
  13. package/dist/x-cancel-dialogue.js +16 -16
  14. package/dist/x-card.js +7 -7
  15. package/dist/x-carousel.js +32 -32
  16. package/dist/x-chart.js +47 -47
  17. package/dist/x-checkbox.js +11 -11
  18. package/dist/x-chip.js +8 -8
  19. package/dist/x-collapse.js +10 -10
  20. package/dist/x-color-picker.js +42 -42
  21. package/dist/x-combobox.js +24 -24
  22. package/dist/x-command-palette.js +24 -24
  23. package/dist/x-container.js +6 -6
  24. package/dist/x-context-menu.js +18 -18
  25. package/dist/x-copy.js +22 -22
  26. package/dist/x-currency-field.js +22 -22
  27. package/dist/x-date-picker.js +37 -37
  28. package/dist/x-divider.js +8 -8
  29. package/dist/x-drawer.js +11 -11
  30. package/dist/x-dropdown.js +9 -9
  31. package/dist/x-fieldset.js +5 -5
  32. package/dist/x-file-download.js +7 -7
  33. package/dist/x-file-upload.js +26 -0
  34. package/dist/x-form-field.js +15 -15
  35. package/dist/x-form.js +10 -10
  36. package/dist/x-gaussian-blur.js +18 -18
  37. package/dist/x-grid.js +6 -6
  38. package/dist/x-icon.js +7 -7
  39. package/dist/x-image.js +18 -18
  40. package/dist/x-kinetic-font.js +28 -28
  41. package/dist/x-kinetic-typography.js +38 -38
  42. package/dist/x-liquid-dock.js +36 -36
  43. package/dist/x-liquid-fill.js +42 -42
  44. package/dist/x-liquid-glass.js +40 -40
  45. package/dist/x-menu-item.js +10 -10
  46. package/dist/x-menu.js +10 -10
  47. package/dist/x-metaball-cursor.js +27 -27
  48. package/dist/x-modal.js +11 -11
  49. package/dist/x-morph-stack.js +39 -39
  50. package/dist/x-navbar.js +13 -13
  51. package/dist/x-neural-glow.js +30 -30
  52. package/dist/x-notification-center.js +10 -10
  53. package/dist/x-organic-divider.js +16 -16
  54. package/dist/x-organic-progress.js +35 -35
  55. package/dist/x-organic-shape.js +12 -12
  56. package/dist/x-pagination.js +16 -16
  57. package/dist/x-particle-button.js +49 -49
  58. package/dist/x-popover.js +23 -23
  59. package/dist/x-progress-circle.js +8 -8
  60. package/dist/x-progress.js +8 -8
  61. package/dist/x-radio.js +11 -11
  62. package/dist/x-ripple-effect.js +11 -11
  63. package/dist/x-scroll-parallax.js +17 -17
  64. package/dist/x-scroll-stack.js +18 -18
  65. package/dist/x-scroll-story.js +34 -34
  66. package/dist/x-scroll-timeline.js +45 -45
  67. package/dist/x-scroll.js +40 -40
  68. package/dist/x-search-field.js +14 -14
  69. package/dist/x-select.js +9 -9
  70. package/dist/x-sidebar.js +16 -16
  71. package/dist/x-skeleton-group.js +13 -13
  72. package/dist/x-skeleton.js +1 -1
  73. package/dist/x-slider.js +16 -16
  74. package/dist/x-soft-body.js +20 -20
  75. package/dist/x-spacer.js +5 -5
  76. package/dist/x-spinner.js +5 -5
  77. package/dist/x-splash.js +13 -13
  78. package/dist/x-stat.js +11 -11
  79. package/dist/x-stepper.js +15 -15
  80. package/dist/x-switch.js +10 -10
  81. package/dist/x-tab.js +7 -7
  82. package/dist/x-table-cell.js +20 -20
  83. package/dist/x-table-row.js +10 -10
  84. package/dist/x-table.js +14 -14
  85. package/dist/x-tabs.js +11 -11
  86. package/dist/x-text-area.js +17 -17
  87. package/dist/x-theme.js +25 -25
  88. package/dist/x-timeline-item.js +20 -21
  89. package/dist/x-timeline.js +9 -9
  90. package/dist/x-toast.js +22 -22
  91. package/dist/x-toaster.js +8 -8
  92. package/dist/x-tooltip.js +12 -12
  93. package/dist/x-typography.js +8 -8
  94. package/dist/x-welcome-tour.js +66 -0
  95. package/package.json +10 -2
@@ -0,0 +1,98 @@
1
+ {
2
+ "version": "2.4.1",
3
+ "algorithm": "sha384",
4
+ "generated-at": "2026-04-28T07:50:02Z",
5
+ "files": {
6
+ "base.js": "sha384-assLG6nVQAdz6iUFE5xdx/BnS3Mt1T2br8UMsBy55JPkGpGcdMXy5sjhMtXqGfzl",
7
+ "x-alert.js": "sha384-odYyFpOG5Do6a5cD9zALNp2QoZ+LNrbvVeTbQKYRKr+L37CZMF09iQA3ugL4v4V8",
8
+ "x-avatar-group.js": "sha384-fnKI5t1ypqcDqxyPjd870cUi57a6f1nKUI2TFfZuT3NI8vzFpsX0818GVGVaFRSZ",
9
+ "x-avatar.js": "sha384-W8DDFQddfVMGETbjoudZ12mj8tkrVJiI8gXojUJvLx6YKq1DC9QeYlgpZadnAAEt",
10
+ "x-badge.js": "sha384-uS9GyZAulfD+piFVxxOFGlE6Zt+iu8ZM0OcjCKHlHH0+kGAHv12zJ+PM6M/NQOjN",
11
+ "x-bento-grid.js": "sha384-WvjpI8iBXvUPoLlwelq7+MrBkUatkZoX5Ad53hmHrRQJfNah8VQDG4vtGb+ZiSkI",
12
+ "x-bento-item.js": "sha384-vMwWN19s0aKhP79v1hm8htWiRjXv6HyGj2zxAs3PmZ64oqKYJaaTDgyXyjYy9wQ/",
13
+ "x-breadcrumbs.js": "sha384-ODqLvE92tdxb5lKAFa/QV7qKIAfq8Q37rkTI1iGNunhalp0vuzR5jnZXkHN0dt4e",
14
+ "x-button.js": "sha384-thn7OIGcmYBwK0D2PS6eB/LioN7rtnmZQqxvHAijF3Mb/5yba6rWFFdyPWYiwrTy",
15
+ "x-cancel-dialogue.js": "sha384-WaXYFnPynHhVsfTw6hNIEwOEpuuluhyCy3+8Yg3gr3dgusCbfTBjGiCIpSxLE3Rt",
16
+ "x-card.js": "sha384-n8NtI0Lkfrt7vRCaELnn+8Ju2cBS+Laa5HHOFVQ88LyNDByHWgCUurPbsD/rz6kD",
17
+ "x-carousel.js": "sha384-j7+h+p2e21m6Jpdgajy25vh84k/AZi6dWCqth37Us4vKlBPG/Tbxr/MhJbGx9p8Z",
18
+ "x-chart.js": "sha384-cXqUSShk+KPfL1sKOtxu8GJLZpMVVMyGwkDzokfKv1Sp2emL7lLkQk8pdcQKfzco",
19
+ "x-checkbox.js": "sha384-jUq0Fv37/AcMfFr9a4EVNtXzGwdXbQfD7S5IYyZiSy8ZD93uU0WUxzN7xhvNsLUS",
20
+ "x-chip.js": "sha384-bEDPgFGUKUF4DtxAjf89rJUs2R/vKzJ22YEPGjuY+6kysDwv+QP8+F5P1kyTB3KR",
21
+ "x-collapse.js": "sha384-L+Y4UyEkkUTxj33oQTYdxYL3o6hvYI8JWxW0LnTqtiSIJ9gZIq+KJ5GGqbKYuuxE",
22
+ "x-color-picker.js": "sha384-aMVp7w29C4Is/vm2KVoAdXZxlb7QSvsGdcJsm2QpJ5ksLtboakD0TqXR9ZHsEroJ",
23
+ "x-combobox.js": "sha384-ds7bRL7Y4B/WnmyWXYqqRnZ89KavpaI1OLa/v2klwrLRqFBOx5HhR+Awz+1rYUZ3",
24
+ "x-command-palette.js": "sha384-G7ajr13kQbftiRPBhe7Kwo9ZxdIT550F0rvPhnHI4CtUSx47sviLFGh6Y5GnguM/",
25
+ "x-container.js": "sha384-OgCM8xtu+xgkVXsJ24LVeVKJgdUiVLBjG1joz+q8MRcX8nkXw9LRI/Glhj5qtqXQ",
26
+ "x-context-menu.js": "sha384-T04mRVjleViC/e+pBuTg/x0Fqg81JDWZdlI8te6pm1SIXqvvT9g2FVsIvf9lOrhu",
27
+ "x-copy.js": "sha384-i6+xlQlcrPEXdJCJnqV1Nhv75TMxtTBwtMYCYHm9n1llWVDW7S3ikfi5W2zQoTq+",
28
+ "x-currency-field.js": "sha384-j3gfOIls7FboaObFRn7G+Iq3idRkg/iyDhSJRCeqX3fFNJf0ryBN//Qvoab+OmaG",
29
+ "x-date-picker.js": "sha384-xaomBfECTrRA26cVIeUyFEZUVYwIcUu7Z+ZE9Xk8M4kPfS/0fufoOJAAbfkSygQs",
30
+ "x-divider.js": "sha384-wie5z6QG+VGJhNe0XBx3vGgJWopjrS/t0N2NYNuSRuta8cSmSMDvCm1oP+w93EsK",
31
+ "x-drawer.js": "sha384-oR/NCNZr0Ns9RLxswIg2Qo1p1GIsJftCgZSJ1X2ZVmSNiSuMo9te3YAjrxHTSJHs",
32
+ "x-dropdown.js": "sha384-e4Boc2dxLTKhNz3hFK26WPsD4cvFjzYI9+FKKcVXYZiijAJPcalxFJ0iP6XjrYqE",
33
+ "x-fieldset.js": "sha384-3WIW9MZWNefZpJKDUKR+B9DhgJMhWkBwqey0cba6xinH4fWJmzbTbBGuaRixdSyA",
34
+ "x-file-download.js": "sha384-seXv+B3dvATfwBO74c2hVC/xo4jdFhevtPsRa/9mte/HKamKqMMsw0VUmxISWzzM",
35
+ "x-file-upload.js": "sha384-F7nZgFo1IHO5I4vnvLuDhd2FR7rg4JAlrtV0oCqJJtZK+w4M/pv5zDGrVwrjdOOn",
36
+ "x-form-field.js": "sha384-HuV7qu4qOSkbHrlI8gYA5IsvZknTrYaa0kAimCoUbqDHlLVqjcVWq+jtmTf9FIS7",
37
+ "x-form.js": "sha384-Ry/YFBDtb+Su1S1/3Vpol+C24GQylcuAD2GxPbXG6nsS7I/+SIPpCKb70DkiRw+m",
38
+ "x-gaussian-blur.js": "sha384-CwM02tmDwvd1RELp45jh0GlqqUhOKKJOQ29U80baOlAOtXLQXlgdmx0Kl0gewUZG",
39
+ "x-grid.js": "sha384-uyDRe+QK9fPrW9bPN8DYNhrzwN/wXRs/pyWHqGg9n7qTbwX7nM7p7gKtAz0jkDri",
40
+ "x-icon.js": "sha384-GROEj4V/Md946SKbcEJ3OpPQf3c/Bah8wkX4gcERjweyOtOO2HomLPo8fhu4vb3s",
41
+ "x-image.js": "sha384-athEa5Rl76mK3xkkX3nEAASXPjoLoN2G4/Hr3Fb+AfZ/bDDkD2HnwhpPciuKV9Z5",
42
+ "x-kinetic-font.js": "sha384-ghlCju3qlIP1LpfKX6hHmmiOYXpR3enCJJNd1BazGhiEN66PE81hZEbAcMR55wQI",
43
+ "x-kinetic-typography.js": "sha384-uu116oFjAL6uc3DbKiVgW3CPIcWAgyg3Oo4AvaTQA0cAPCMhjiaOGQ8qTThFqqlb",
44
+ "x-liquid-dock.js": "sha384-cRjHk6RclejI8qDb5jZO5upyUFPeX9D3Zo9imP1CiuLdrKke5T6r4Dyl3WteKn8b",
45
+ "x-liquid-fill.js": "sha384-Rapw1sS04uo6pW+tlPLJB3XUVK23Wvpo9WTf44fpM1WZsbqy8JCP6OmK2TETO1bK",
46
+ "x-liquid-glass.js": "sha384-u8IwhMo8PQtk83IEwfGS9Sq1qSyvyigbnrVv/ZDefcAsXuru+pi7Hiimnyx5IZBE",
47
+ "x-menu-item.js": "sha384-rxUiAW1apP518OPKP/IqEhYFZiJsIE3Yb8BXuFHlDwp8xVDbHjBx0+OXZhjqDlds",
48
+ "x-menu.js": "sha384-RRj2p1yWNZe9yvzoECoXrmvRx4P5mOCbIjr1SLwyME+4Y+Z35rR9a7o+trn51M8j",
49
+ "x-metaball-cursor.js": "sha384-bpIBZKbHFUFQ5O6UCUXKDmS2YpqzZEQIAZXRYxE3+akDTygeSn6v3BWTzQLsN4Bv",
50
+ "x-modal.js": "sha384-Kk5DjzFfL2vPle3vd9dC+afu1LKFaG/s5RRWOpqQEcoW2BaFl90VsYAeccad3buI",
51
+ "x-morph-stack.js": "sha384-JlmxfaBD/blhmf9P4jWfcy8dkG4D+OrxKpAknH7Mc7DifiYUKnAg2Sy9AnUiOxmW",
52
+ "x-navbar.js": "sha384-qdirEqHP42Wzbt1xEvwB9YiAmFz4GCy/rep/ykPDOEyZZr6WeQIsN7/SzvlBn7+d",
53
+ "x-neural-glow.js": "sha384-zWpRhqxxVGJpjZBDdgsqi0L8VAkL4Gt3x0EmkDhxD2QBWiHIf/VyS8vlNhsLJSEW",
54
+ "x-notification-center.js": "sha384-mofGii56nBMlUnPERH4G7KTsq1OpLfsnDlR35gytBV6oVQokWXeAFGZHqCN0fyym",
55
+ "x-organic-divider.js": "sha384-e8H+WuCxElbhmfpIUODyiy2FhnAh1b2g/nBZY3I5qLInhZ+moAHUY+0JstLTFMo+",
56
+ "x-organic-progress.js": "sha384-lgWUsDIRr45Kz8aw7Mz+IdKf/Vypl1PLYcI1eiZVDQC8oY1KAQENH53NDY1pYI+B",
57
+ "x-organic-shape.js": "sha384-NaLNwp1ezyM01n13Tz5hRoAo/1jFiLMM9Avz0oueI3Cm17UouOALZ07ZwS++wsem",
58
+ "x-pagination.js": "sha384-4Xgfx7jgF5WocH2A/MMkmCqmHXmnhy6sXMe09D52m67RBLZRlq1nbRckaeRs45lj",
59
+ "x-particle-button.js": "sha384-wdnCl7bFMSV22xXLjCngmfsDAx+Gz9Nv++SLhFfT2RzoQjGm16WrQoc6atXxDeCi",
60
+ "x-popover.js": "sha384-iQrQad/kFtK6fZtX/EQ7h1uw2amlnK71vWKngHFVpAeqPaap5E4+n6RDNAew9JNu",
61
+ "x-progress-circle.js": "sha384-RrAuy+8bik5A+9jF/ckdnMxunQfO5btRKtoS1irwImFGL/hwvNs44Yry/TTnomc/",
62
+ "x-progress.js": "sha384-6gVEjQrdRz0Z/Chtr2CZRwvHmQtcERmJZNR3I2Iu2IBVMhA9ValqoOoQA9UfNshR",
63
+ "x-radio.js": "sha384-E4M4IbY2YnH0fwLI8bVl/Tv55mG0qd1+UZr+bwQCrQP852OPTTvudLFHQ9E4K65+",
64
+ "x-ripple-effect.js": "sha384-LKJ6V8SUnPiUJajCeTnrVKwyT513C+FkpSFy8nBF8TgvnyKcADgbFPu8hwlcDgKt",
65
+ "x-scroll-parallax.js": "sha384-11fzNoI9Iz19oa3vVquLUArRv8dejRjHzuvl8iOfKhtFg8NOeHFMXb1a2UVOJEhK",
66
+ "x-scroll-stack.js": "sha384-gHzwdOuSS/btJQCg3ixuYNNswS5x7+6x1F88Gpu6vDkH60784WDoc67pYpXc7ClB",
67
+ "x-scroll-story.js": "sha384-E9S8Xrx7yyhTgHvDAz8AwIMuZ1PWRoiAV/iP3WMOV4QW9lozT6Me8Pg+f9DAtxNz",
68
+ "x-scroll-timeline.js": "sha384-QAMMf9tDcm8XTnhgEgwa8ieqGH61ZKWYiCgTfrw3jb1MXDp8RPG7a+ztTphj5Bqj",
69
+ "x-scroll.js": "sha384-1HeOdBiEc68M78xZrRvVqYdq9VzbkCm3fge8x/VJN6pUN8i0hnMAIP2dk8o6zT+o",
70
+ "x-search-field.js": "sha384-l3YvJ+B4yETZXyiYbvrXN8hBrLVfrzshzNsOZT/D4SqU3F1WtuPDNx9r9TuManrA",
71
+ "x-select.js": "sha384-zwnAb7Y5H4UgkK8wubyJa3kBMUhQ9bKNYVdbIfmpGOa7yd65Dgw6v5zkJW2zVD/V",
72
+ "x-sidebar.js": "sha384-Gv/gm9uvBoLHFcEx5JN/mL/KEtsRD+N8TzHGblpafTh6ZHwHThRFvusVj3ADeFPc",
73
+ "x-skeleton-group.js": "sha384-IgTJRHdKwj9L3Po5MCUqNdyUavdkWDkaKB6SZ31lz3imDpLHuUwdrbey+m3qR5mS",
74
+ "x-skeleton.js": "sha384-EOovTVx1vkhAUyPpxP3QvjO59xTicc3XZnxZaLuwkFJIfy/tflOE+B1sQB2c1xKV",
75
+ "x-slider.js": "sha384-KeVuWvQqpQAY5SeKNIIcldjxx2KKqGAgqnVSH+G5TvYJ6BCi4b4ZGq8SCqmmOpWo",
76
+ "x-soft-body.js": "sha384-f9CrUUStkOR7AAKY6mLx18RgJlSvfiiyda4OhwtZUXLN1AkUChfam0hvhtH9wsN3",
77
+ "x-spacer.js": "sha384-sDOFHBYeln+Kd7tN0FGRSg3lTYhTlO+MtSLZv8AkdJ8rqFbKInayQkHWr+KzV+JA",
78
+ "x-spinner.js": "sha384-5ixuckukXIjJCL/tJ2Kvve7OIaXmFssdKY6gl+Kl3KSDuwpoqjWQD5wKg78mgOEC",
79
+ "x-splash.js": "sha384-l33kHDStDcuokVw97/5WpUhemm1m+6xXmIVJLK+z0fveO2LamfLtmYv6crdVCD6B",
80
+ "x-stat.js": "sha384-5IXqeQwsT+pZCvkTku2/2YOH10k55laJ6fNbYZ4t0B59bMsYUbyTAMlcImhzNfol",
81
+ "x-stepper.js": "sha384-g/eZ6xIg875VyDHOhmQGuwdbIQGkljNye7IDdQpy2XuicEK4QCsrTXd6IGMJ6NG5",
82
+ "x-switch.js": "sha384-BCBSOFdsSWeAJnlEfvza3d48OenWMQcwS9AWjPqaL35XsMECu/hqd6LI/RsGsvRt",
83
+ "x-tab.js": "sha384-TpN1jKoJq5GwZA5a3v0PjZvyiz39CfR+qFGigQ+v2mDErp85s5wmgFtdQ0lCcejC",
84
+ "x-table-cell.js": "sha384-HDzLfasI6WFEbmj9ow21VkDAx7lDLqq26jWoCKZ+U6rdfNN/Hx5IhyQhXiUGzwPY",
85
+ "x-table-row.js": "sha384-WWiU1c4OVGXyo/5bhywfT35R4wf+WaecTdogzouCz3MEFzUJ810aTiGv8gI4t/Jb",
86
+ "x-table.js": "sha384-/YA7yuQH02i0c9OGAIPYIXzB3kk3JjLnFmrOSbrC4D7VUCtbCjv8Dy4+8XjxJk7w",
87
+ "x-tabs.js": "sha384-ZUvwrovSGn+qViECKWxcOi+R45KBPDpOP97e9U3hOO+29qhG8oLYC9lBwPyer+h9",
88
+ "x-text-area.js": "sha384-aAqgTL8qE52TuMZ8nFKvMywAE5HsbalVfddAUF7y9YD40RyCcW7dpN8F3PRNdsti",
89
+ "x-theme.js": "sha384-P65eneGGGWqbbm4ZVclzNKwSTuGnbA+ZEvn/d5ZD5nz0FBipCgUVuIWgvWh0hw3F",
90
+ "x-timeline-item.js": "sha384-+i3HzuCwUgW0D9KDDZ115M7i4xpdgjPGNvpLeBwusxVAICdv444kyrn0YaDduCsY",
91
+ "x-timeline.js": "sha384-Tjaw/KlJIvFlEqGCZQLPIX1wMlgTt4+cAY1/eozEG6bKp/avBHhZBkdTQByVs9H7",
92
+ "x-toast.js": "sha384-GTPue6l14fvAc512mbOrAAitfdGpXpa4lKxNBMc+XoHYi7h+15VtPqI+my4qcIFs",
93
+ "x-toaster.js": "sha384-Rdylm/OQ9mibNfbeFd0o0FG9kWxJGfXIGyoRCaOalXWzjiCPNc3iU86MA0B4LifB",
94
+ "x-tooltip.js": "sha384-nfYOQ7LRuUMofMb5nq9ghqneO/f2UnSdPydDLyrAlKqRVx3lh6V25qaPHJCUlWVa",
95
+ "x-typography.js": "sha384-A2eT3MFnx0aq0qE9LuW3R6ficckP+wW+vCJgaZz+drStyvFXI0sgZGv8XYGXWXvk",
96
+ "x-welcome-tour.js": "sha384-5HAtXCyzcXJ+Qe1LOJs7T6pp4ydF6F2KHQ2byeo8jMtqYz1wypiWz7ie55J70GWE"
97
+ }
98
+ }
package/dist/x-alert.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var kz=function(a){a=$APP.D($APP.Vm,a);return $APP.n(a)?a:"info"},lz=function(a){return a==null?!0:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},mz=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:null):null},nz=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Ji);b=$APP.D(b,$APP.X);return $APP.n(a)?$APP.r(b):a},oz=function(a,b){var c=$APP.M(a);a=$APP.D(c,$APP.Z);c=$APP.D(c,$APP.ol);return new $APP.Q(null,3,[$APP.Z,kz(a),$APP.Li,b,$APP.ol,
3
- c],null)},qz=function(a){var b=$APP.k(a,"__xAlertRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("span"),g=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("span"),m=document.createElement("button"),p=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-alert-radius:var(--x-radius-md,10px);--x-alert-padding-y:10px;--x-alert-padding-x:12px;--x-alert-gap:10px;--x-alert-font-size:var(--x-font-size-sm,0.875rem);--x-alert-motion-fast:var(--x-transition-duration,120ms);--x-alert-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-alert-enter-duration:140ms;--x-alert-exit-duration:160ms;--x-alert-press-scale:0.98;--x-alert-disabled-opacity:0.55;--x-alert-focus-ring:var(--x-color-focus-ring,rgba(0,0,0,0.6));--x-alert-dismiss-color:rgba(0,0,0,0.62);--x-alert-dismiss-hover-bg:rgba(0,0,0,0.06);--x-alert-info-bg:rgba(0,102,204,0.08);--x-alert-info-border:rgba(0,102,204,0.35);--x-alert-info-color:rgba(0,60,120,0.95);--x-alert-success-bg:rgba(16,140,72,0.10);--x-alert-success-border:rgba(16,140,72,0.35);--x-alert-success-color:rgba(10,90,46,0.95);--x-alert-warning-bg:rgba(204,120,0,0.12);--x-alert-warning-border:rgba(204,120,0,0.45);--x-alert-warning-color:rgba(120,70,0,0.95);--x-alert-error-bg:rgba(190,20,40,0.10);--x-alert-error-border:rgba(190,20,40,0.45);--x-alert-error-color:rgba(120,10,20,0.95);--x-alert-bg:transparent;--x-alert-border-color:transparent;--x-alert-color:inherit;}@media (prefers-color-scheme:dark){:host{--x-alert-focus-ring:var(--x-color-focus-ring,rgba(255,255,255,0.75));--x-alert-dismiss-color:rgba(255,255,255,0.75);--x-alert-dismiss-hover-bg:rgba(255,255,255,0.14);--x-alert-info-bg:rgba(80,160,255,0.18);--x-alert-info-border:rgba(80,160,255,0.42);--x-alert-info-color:rgba(230,245,255,0.92);--x-alert-success-bg:rgba(60,210,120,0.18);--x-alert-success-border:rgba(60,210,120,0.42);--x-alert-success-color:rgba(235,255,245,0.92);--x-alert-warning-bg:rgba(255,190,90,0.20);--x-alert-warning-border:rgba(255,190,90,0.46);--x-alert-warning-color:rgba(255,248,235,0.92);--x-alert-error-bg:rgba(255,90,110,0.18);--x-alert-error-border:rgba(255,90,110,0.46);--x-alert-error-color:rgba(255,235,238,0.92);}}:host([data-type\x3d'info']){--x-alert-bg:var(--x-alert-info-bg);--x-alert-border-color:var(--x-alert-info-border);--x-alert-color:var(--x-alert-info-color);}:host([data-type\x3d'success']){--x-alert-bg:var(--x-alert-success-bg);--x-alert-border-color:var(--x-alert-success-border);--x-alert-color:var(--x-alert-success-color);}:host([data-type\x3d'warning']){--x-alert-bg:var(--x-alert-warning-bg);--x-alert-border-color:var(--x-alert-warning-border);--x-alert-color:var(--x-alert-warning-color);}:host([data-type\x3d'error']){--x-alert-bg:var(--x-alert-error-bg);--x-alert-border-color:var(--x-alert-error-border);--x-alert-color:var(--x-alert-error-color);}[part\x3dcontainer]{display:flex;align-items:flex-start;gap:var(--x-alert-gap);padding:var(--x-alert-padding-y) var(--x-alert-padding-x);border:1px solid var(--x-alert-border-color);border-radius:var(--x-alert-radius);background:var(--x-alert-bg);color:var(--x-alert-color);font-size:var(--x-alert-font-size);transition:background var(--x-alert-motion-fast) var(--x-alert-motion-ease),border-color var(--x-alert-motion-fast) var(--x-alert-motion-ease),color var(--x-alert-motion-fast) var(--x-alert-motion-ease),opacity var(--x-alert-motion-fast) var(--x-alert-motion-ease),transform var(--x-alert-motion-fast) var(--x-alert-motion-ease);}[part\x3dicon]{flex:0 0 auto;line-height:1;margin-top:0.05em;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dtext]{flex:1 1 auto;line-height:1.25;min-width:0;overflow-wrap:anywhere;}[part\x3ddismiss]{flex:0 0 auto;appearance:none;border:0;background:transparent;color:var(--x-alert-dismiss-color);width:1.5em;height:1.5em;padding:0;margin:0;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background var(--x-alert-motion-fast) var(--x-alert-motion-ease),transform var(--x-alert-motion-fast) var(--x-alert-motion-ease);}:host(:not([disabled])) [part\x3ddismiss]:hover{background:var(--x-alert-dismiss-hover-bg);}:host(:not([disabled])) [part\x3ddismiss]:active{transform:scale(var(--x-alert-press-scale));}[part\x3ddismiss]:focus{outline:none;}:host(:not([disabled])) [part\x3ddismiss]:focus-visible{outline:2px solid var(--x-alert-focus-ring);outline-offset:2px;}:host([disabled]){opacity:var(--x-alert-disabled-opacity);}:host([disabled]) [part\x3ddismiss]{cursor:default;pointer-events:none;}:host([data-entering]) [part\x3dcontainer]{animation:x-alert-enter var(--x-alert-enter-duration) var(--x-alert-motion-ease) both;}@keyframes x-alert-enter{from{opacity:0;transform:translateY(4px);}to{opacity:1;transform:translateY(0);}}:host([data-exiting]) [part\x3dcontainer]{animation:x-alert-exit var(--x-alert-exit-duration) var(--x-alert-motion-ease) forwards;}@keyframes x-alert-exit{from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(4px);}}@media (prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3ddismiss]{transition:none !important;}:host([data-entering]) [part\x3dcontainer],:host([data-exiting]) [part\x3dcontainer]{animation:none !important;}}";
4
- d.setAttribute("part","container");e.setAttribute("part","icon");e.setAttribute("aria-hidden","true");g.setAttribute("name","icon");h.setAttribute("part","default-icon");g.appendChild(h);e.appendChild(g);l.setAttribute("part","text");m.setAttribute("part","dismiss");m.setAttribute("type","button");p.setAttribute("aria-hidden","true");p.textContent="×";m.appendChild(p);d.appendChild(e);d.appendChild(l);d.appendChild(m);b.appendChild(c);b.appendChild(d);a.__xAlertRefs=new $APP.Q(null,7,[$APP.Ci,b,$APP.Cj,
5
- d,$APP.Nh,e,$APP.pj,g,$APP.Hm,h,pz,l,$APP.Lk,m],null);return $APP.k(a,"__xAlertRefs")},rz=function(a){a=new $APP.Q(null,7,[$APP.ui,a.getAttribute("type"),$APP.ol,a.getAttribute("text"),$APP.Wh,a.hasAttribute("icon"),$APP.yj,a.getAttribute("icon"),$APP.mj,a.getAttribute("dismissible"),$APP.Al,a.hasAttribute("disabled"),$APP.ti,a.getAttribute("timeout-ms")],null);var b=$APP.M(a),c=$APP.D(b,$APP.ui);a=$APP.D(b,$APP.ol);var d=$APP.D(b,$APP.Wh),e=$APP.D(b,$APP.yj),g=$APP.D(b,$APP.mj),h=$APP.D(b,$APP.Al);
6
- b=$APP.D(b,$APP.ti);c=$APP.D($APP.Um,typeof c==="string"?c.toLowerCase():null);c=$APP.n(c)?c:$APP.cl;typeof e==="string"?(e=e.trim(),e=$APP.N(e,"")&&$APP.N(e.toLowerCase(),"none")?e:null):e=null;d=$APP.n($APP.n(d)?e==null:d)?$APP.Nm:e!=null?$APP.ql:$APP.ji;return new $APP.Q(null,7,[$APP.Z,c,$APP.ol,$APP.n(a)?a:"",$APP.lk,d,$APP.Jk,$APP.C.i(d,$APP.ql)?e:null,$APP.Ji,lz(g),$APP.X,$APP.F(h),$APP.nm,mz(b)],null)},sz=function(a){var b=rz(a);if($APP.N($APP.k(a,"__xAlertModel"),b)){b=$APP.M(b);var c=$APP.D(b,
7
- $APP.Z),d=$APP.D(b,$APP.ol),e=$APP.D(b,$APP.lk),g=$APP.D(b,$APP.Jk),h=$APP.D(b,$APP.Ji),l=$APP.D(b,$APP.X),m=qz(a),p=$APP.M(m);m=$APP.D(p,$APP.Cj);var q=$APP.D(p,$APP.Nh),v=$APP.D(p,$APP.pj),x=$APP.D(p,$APP.Hm),y=$APP.D(p,pz);p=$APP.D(p,$APP.Lk);v=$APP.n(v)?v.assignedNodes().length>0:null;$APP.C.i(e,$APP.ql)||(g=$APP.D($APP.Wm,c),g=$APP.n(g)?g:$APP.D($APP.Wm,$APP.cl));e=$APP.r(v)&&$APP.C.i(e,$APP.Nm);a.setAttribute("data-type",kz(c));v=m.setAttribute;c=$APP.C.i(c,$APP.Wl)||$APP.C.i(c,$APP.zi)?"alert":
2
+ var Wz=function(a){a=$APP.D($APP.jn,a);return $APP.n(a)?a:"info"},Xz=function(a){return a==null?!0:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},Yz=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:null):null},Zz=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Oi);b=$APP.D(b,$APP.X);return $APP.n(a)?$APP.r(b):a},$z=function(a,b){var c=$APP.M(a);a=$APP.D(c,$APP.Z);c=$APP.D(c,$APP.Al);return new $APP.R(null,3,[$APP.Z,Wz(a),$APP.Qi,b,$APP.Al,
3
+ c],null)},bA=function(a){var b=$APP.k(a,"__xAlertRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("span"),g=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("span"),m=document.createElement("button"),p=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-alert-radius:var(--x-radius-md,10px);--x-alert-padding-y:10px;--x-alert-padding-x:12px;--x-alert-gap:10px;--x-alert-font-size:var(--x-font-size-sm,0.875rem);--x-alert-motion-fast:var(--x-transition-duration,120ms);--x-alert-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-alert-enter-duration:140ms;--x-alert-exit-duration:160ms;--x-alert-press-scale:0.98;--x-alert-disabled-opacity:0.55;--x-alert-focus-ring:var(--x-color-focus-ring,rgba(0,0,0,0.6));--x-alert-dismiss-color:rgba(0,0,0,0.62);--x-alert-dismiss-hover-bg:rgba(0,0,0,0.06);--x-alert-info-bg:rgba(0,102,204,0.08);--x-alert-info-border:rgba(0,102,204,0.35);--x-alert-info-color:rgba(0,60,120,0.95);--x-alert-success-bg:rgba(16,140,72,0.10);--x-alert-success-border:rgba(16,140,72,0.35);--x-alert-success-color:rgba(10,90,46,0.95);--x-alert-warning-bg:rgba(204,120,0,0.12);--x-alert-warning-border:rgba(204,120,0,0.45);--x-alert-warning-color:rgba(120,70,0,0.95);--x-alert-error-bg:rgba(190,20,40,0.10);--x-alert-error-border:rgba(190,20,40,0.45);--x-alert-error-color:rgba(120,10,20,0.95);--x-alert-bg:transparent;--x-alert-border-color:transparent;--x-alert-color:inherit;}@media (prefers-color-scheme:dark){:host{--x-alert-focus-ring:var(--x-color-focus-ring,rgba(255,255,255,0.75));--x-alert-dismiss-color:rgba(255,255,255,0.75);--x-alert-dismiss-hover-bg:rgba(255,255,255,0.14);--x-alert-info-bg:rgba(80,160,255,0.18);--x-alert-info-border:rgba(80,160,255,0.42);--x-alert-info-color:rgba(230,245,255,0.92);--x-alert-success-bg:rgba(60,210,120,0.18);--x-alert-success-border:rgba(60,210,120,0.42);--x-alert-success-color:rgba(235,255,245,0.92);--x-alert-warning-bg:rgba(255,190,90,0.20);--x-alert-warning-border:rgba(255,190,90,0.46);--x-alert-warning-color:rgba(255,248,235,0.92);--x-alert-error-bg:rgba(255,90,110,0.18);--x-alert-error-border:rgba(255,90,110,0.46);--x-alert-error-color:rgba(255,235,238,0.92);}}:host([data-type\x3d'info']){--x-alert-bg:var(--x-alert-info-bg);--x-alert-border-color:var(--x-alert-info-border);--x-alert-color:var(--x-alert-info-color);}:host([data-type\x3d'success']){--x-alert-bg:var(--x-alert-success-bg);--x-alert-border-color:var(--x-alert-success-border);--x-alert-color:var(--x-alert-success-color);}:host([data-type\x3d'warning']){--x-alert-bg:var(--x-alert-warning-bg);--x-alert-border-color:var(--x-alert-warning-border);--x-alert-color:var(--x-alert-warning-color);}:host([data-type\x3d'error']){--x-alert-bg:var(--x-alert-error-bg);--x-alert-border-color:var(--x-alert-error-border);--x-alert-color:var(--x-alert-error-color);}[part\x3dcontainer]{display:flex;align-items:flex-start;gap:var(--x-alert-gap);padding:var(--x-alert-padding-y) var(--x-alert-padding-x);border:1px solid var(--x-alert-border-color);border-radius:var(--x-alert-radius);background:var(--x-alert-bg);color:var(--x-alert-color);font-size:var(--x-alert-font-size);transition:background var(--x-alert-motion-fast) var(--x-alert-motion-ease),border-color var(--x-alert-motion-fast) var(--x-alert-motion-ease),color var(--x-alert-motion-fast) var(--x-alert-motion-ease),opacity var(--x-alert-motion-fast) var(--x-alert-motion-ease),transform var(--x-alert-motion-fast) var(--x-alert-motion-ease);}[part\x3dicon]{flex:0 0 auto;line-height:1;margin-top:0.05em;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dtext]{flex:1 1 auto;line-height:1.25;min-width:0;overflow-wrap:anywhere;}[part\x3ddismiss]{flex:0 0 auto;appearance:none;border:0;background:transparent;color:var(--x-alert-dismiss-color);width:1.5em;height:1.5em;padding:0;margin:0;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background var(--x-alert-motion-fast) var(--x-alert-motion-ease),transform var(--x-alert-motion-fast) var(--x-alert-motion-ease);}:host(:not([disabled])) [part\x3ddismiss]:hover{background:var(--x-alert-dismiss-hover-bg);}:host(:not([disabled])) [part\x3ddismiss]:active{transform:scale(var(--x-alert-press-scale));}[part\x3ddismiss]:focus{outline:none;}:host(:not([disabled])) [part\x3ddismiss]:focus-visible{outline:2px solid var(--x-alert-focus-ring);outline-offset:2px;}:host([disabled]){opacity:var(--x-alert-disabled-opacity);}:host([disabled]) [part\x3ddismiss]{cursor:default;pointer-events:none;}:host([data-entering]) [part\x3dcontainer]{animation:x-alert-enter var(--x-alert-enter-duration) var(--x-alert-motion-ease) both;}@keyframes x-alert-enter{from{opacity:0;transform:translateY(4px);}to{opacity:1;transform:translateY(0);}}:host([data-exiting]) [part\x3dcontainer]{animation:x-alert-exit var(--x-alert-exit-duration) var(--x-alert-motion-ease) forwards;}@keyframes x-alert-exit{from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(4px);}}@media (prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3ddismiss]{transition:none !important;}:host([data-entering]) [part\x3dcontainer],:host([data-exiting]) [part\x3dcontainer]{animation:none !important;}}";
4
+ d.setAttribute("part","container");e.setAttribute("part","icon");e.setAttribute("aria-hidden","true");g.setAttribute("name","icon");h.setAttribute("part","default-icon");g.appendChild(h);e.appendChild(g);l.setAttribute("part","text");m.setAttribute("part","dismiss");m.setAttribute("type","button");p.setAttribute("aria-hidden","true");p.textContent="×";m.appendChild(p);d.appendChild(e);d.appendChild(l);d.appendChild(m);b.appendChild(c);b.appendChild(d);a.__xAlertRefs=new $APP.R(null,7,[$APP.Hi,b,$APP.Hj,
5
+ d,$APP.Ph,e,$APP.uj,g,$APP.Um,h,aA,l,$APP.Sk,m],null);return $APP.k(a,"__xAlertRefs")},cA=function(a){a=new $APP.R(null,7,[$APP.yi,a.getAttribute("type"),$APP.Al,a.getAttribute("text"),$APP.Uh,a.hasAttribute("icon"),$APP.Dj,a.getAttribute("icon"),$APP.rj,a.getAttribute("dismissible"),$APP.Ml,a.hasAttribute("disabled"),$APP.wi,a.getAttribute("timeout-ms")],null);var b=$APP.M(a),c=$APP.D(b,$APP.yi);a=$APP.D(b,$APP.Al);var d=$APP.D(b,$APP.Uh),e=$APP.D(b,$APP.Dj),g=$APP.D(b,$APP.rj),h=$APP.D(b,$APP.Ml);
6
+ b=$APP.D(b,$APP.wi);c=$APP.D($APP.hn,typeof c==="string"?c.toLowerCase():null);c=$APP.n(c)?c:$APP.nl;typeof e==="string"?(e=e.trim(),e=$APP.N(e,"")&&$APP.N(e.toLowerCase(),"none")?e:null):e=null;d=$APP.n($APP.n(d)?e==null:d)?$APP.$m:e!=null?$APP.Cl:$APP.li;return new $APP.R(null,7,[$APP.Z,c,$APP.Al,$APP.n(a)?a:"",$APP.rk,d,$APP.Qk,$APP.B.i(d,$APP.Cl)?e:null,$APP.Oi,Xz(g),$APP.X,$APP.F(h),$APP.sm,Yz(b)],null)},dA=function(a){var b=cA(a);if($APP.N($APP.k(a,"__xAlertModel"),b)){b=$APP.M(b);var c=$APP.D(b,
7
+ $APP.Z),d=$APP.D(b,$APP.Al),e=$APP.D(b,$APP.rk),g=$APP.D(b,$APP.Qk),h=$APP.D(b,$APP.Oi),l=$APP.D(b,$APP.X),m=bA(a),p=$APP.M(m);m=$APP.D(p,$APP.Hj);var q=$APP.D(p,$APP.Ph),v=$APP.D(p,$APP.uj),x=$APP.D(p,$APP.Um),y=$APP.D(p,aA);p=$APP.D(p,$APP.Sk);v=$APP.n(v)?v.assignedNodes().length>0:null;$APP.B.i(e,$APP.Cl)||(g=$APP.D($APP.kn,c),g=$APP.n(g)?g:$APP.D($APP.kn,$APP.nl));e=$APP.r(v)&&$APP.B.i(e,$APP.$m);a.setAttribute("data-type",Wz(c));v=m.setAttribute;c=$APP.B.i(c,$APP.hm)||$APP.B.i(c,$APP.Ei)?"alert":
8
8
  "status";v.call(m,"role",c);y.textContent=d;e?(x.textContent="",q.style.display="none"):(x.textContent=g,q.style.display="inline");$APP.n(h)?(p.disabled=$APP.F(l),p.style.display="inline-flex"):(p.disabled=!0,p.style.display="none");p.setAttribute("aria-label","Dismiss alert");d=$APP.n(h)?$APP.r(l):h;a.tabIndex=$APP.n(d)?0:-1;$APP.n(l)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");$APP.n(d)?a.setAttribute("aria-keyshortcuts","Escape"):a.removeAttribute("aria-keyshortcuts");
9
- a.__xAlertModel=b}},tz=function(a){a=typeof a==="string"?a.trim():"";return $APP.C.i(a,"")||$APP.C.i(a,"0")||$APP.C.i(a,"0ms")||$APP.C.i(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*a))):0},uz=function(a){var b=window.getComputedStyle(a);a=tz(b.getPropertyValue("--x-alert-exit-duration"));b=tz(b.getPropertyValue("--x-motion-exit-duration"));
10
- return a>0?a:b>0?b:160},vz=function(a){var b=$APP.k(a,"__xAlertTimeout");$APP.n(b)&&(clearTimeout(b),a.__xAlertTimeout=null)},xz=function(a){vz(a);var b=function(){var c=$APP.k(a,"__xAlertModel");return $APP.n(c)?c:rz(a)}();$APP.n(function(){var c=nz(b);return $APP.n(c)?typeof $APP.nm.g(b)==="number"&&$APP.r($APP.k(a,"__xAlertExiting")):c}())&&$APP.ja(a,"__xAlertTimeout",setTimeout(function(){a.__xAlertTimeout=null;if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.r($APP.k(a,"__xAlertExiting")):
11
- d}())){var c=function(){var d=$APP.k(a,"__xAlertModel");return $APP.n(d)?d:rz(a)}();if($APP.n(nz(c)))return c=$APP.Gh(oz(c,"timeout")),c=new CustomEvent("x-alert-dismiss",{detail:c,bubbles:!0,composed:!0,cancelable:!0}),c=a.dispatchEvent(c),$APP.n(c)?wz.g?wz.g(a):wz.call(null,a):null}return null},$APP.nm.g(b)))},yz=function(a){if(!$APP.n($APP.k(a,"__xAlertEntered"))){a.__xAlertEntered=!0;a.setAttribute("data-entering","");var b=qz(a);b=$APP.M(b);var c=$APP.D(b,$APP.Cj);c.addEventListener("animationend",
12
- function g(e){return $APP.C.i(e.target,c)?(c.removeEventListener("animationend",g),a.removeAttribute("data-entering")):null})}},wz=function(a){if(!$APP.n($APP.k(a,"__xAlertExiting"))){a.__xAlertExiting=!0;vz(a);a.removeAttribute("data-entering");var b=uz(a);if(b===0||$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches))a.remove();else{var c=qz(a);c=$APP.M(c);var d=$APP.D(c,$APP.Cj),e=function l(h){return $APP.C.i(h.target,d)?(d.removeEventListener("animationend",l),h=$APP.k(a,"__xAlertExitTimer"),
13
- $APP.n(h)&&(clearTimeout(h),a.__xAlertExitTimer=null),$APP.n(a.isConnected)?a.remove():null):null};a.setAttribute("data-exiting","");d.addEventListener("animationend",e);$APP.ja(a,"__xAlertExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.n($APP.n(h)?$APP.k(a,"__xAlertExiting"):h)?(d.removeEventListener("animationend",e),a.__xAlertExitTimer=null,a.remove()):null},b+60))}}return null},zz=function(a,b){var c=$APP.k(a,"__xAlertModel");c=$APP.n(c)?c:rz(a);b=$APP.Gh(oz(c,b));b=new CustomEvent("x-alert-dismiss",
14
- {detail:b,bubbles:!0,composed:!0,cancelable:!0});b=a.dispatchEvent(b);$APP.n(b)&&wz(a)},Az=function(a,b){var c=function(){var d=$APP.k(a,"__xAlertModel");return $APP.n(d)?d:rz(a)}();$APP.n(function(){var d=nz(c);return $APP.n(d)?$APP.r($APP.k(a,"__xAlertExiting")):d}())&&(b.preventDefault(),zz(a,"button"));return null},Bz=function(a,b){if($APP.C.i(b.key,"Escape")){var c=function(){var d=$APP.k(a,"__xAlertModel");return $APP.n(d)?d:rz(a)}();$APP.n(function(){var d=nz(c);return $APP.n(d)?$APP.r($APP.k(a,
15
- "__xAlertExiting")):d}())&&(b.preventDefault(),zz(a,"keyboard"))}return null},Cz=function(a){function b(e){return Bz(a,e)}function c(e){return Az(a,e)}var d=qz(a);d=$APP.M(d);$APP.D(d,$APP.Lk).addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xAlertHandlers",{click:c,keydown:b})},Dz=function(a){vz(a);var b=$APP.k(a,"__xAlertExitTimer");$APP.n(b)&&(clearTimeout(b),a.__xAlertExitTimer=null);b=$APP.k(a,"__xAlertHandlers");var c=$APP.k(a,"__xAlertRefs");if($APP.n($APP.n(b)?c:b)){c=
16
- $APP.Lk.g(c);var d=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xAlertHandlers=null},Ez=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"info"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.T.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"text",{get:function(){var b=this.getAttribute("text");
9
+ a.__xAlertModel=b}},eA=function(a){a=typeof a==="string"?a.trim():"";return $APP.B.i(a,"")||$APP.B.i(a,"0")||$APP.B.i(a,"0ms")||$APP.B.i(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*a))):0},fA=function(a){var b=window.getComputedStyle(a);a=eA(b.getPropertyValue("--x-alert-exit-duration"));b=eA(b.getPropertyValue("--x-motion-exit-duration"));
10
+ return a>0?a:b>0?b:160},gA=function(a){var b=$APP.k(a,"__xAlertTimeout");$APP.n(b)&&(clearTimeout(b),a.__xAlertTimeout=null)},iA=function(a){gA(a);var b=function(){var c=$APP.k(a,"__xAlertModel");return $APP.n(c)?c:cA(a)}();$APP.n(function(){var c=Zz(b);return $APP.n(c)?typeof $APP.sm.g(b)==="number"&&$APP.r($APP.k(a,"__xAlertExiting")):c}())&&$APP.ja(a,"__xAlertTimeout",setTimeout(function(){a.__xAlertTimeout=null;if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.r($APP.k(a,"__xAlertExiting")):
11
+ d}())){var c=function(){var d=$APP.k(a,"__xAlertModel");return $APP.n(d)?d:cA(a)}();if($APP.n(Zz(c)))return c=$APP.Hh($z(c,"timeout")),c=new CustomEvent("x-alert-dismiss",{detail:c,bubbles:!0,composed:!0,cancelable:!0}),c=a.dispatchEvent(c),$APP.n(c)?hA.g?hA.g(a):hA.call(null,a):null}return null},$APP.sm.g(b)))},jA=function(a){if(!$APP.n($APP.k(a,"__xAlertEntered"))){a.__xAlertEntered=!0;a.setAttribute("data-entering","");var b=bA(a);b=$APP.M(b);var c=$APP.D(b,$APP.Hj);c.addEventListener("animationend",
12
+ function g(e){return $APP.B.i(e.target,c)?(c.removeEventListener("animationend",g),a.removeAttribute("data-entering")):null})}},hA=function(a){if(!$APP.n($APP.k(a,"__xAlertExiting"))){a.__xAlertExiting=!0;gA(a);a.removeAttribute("data-entering");var b=fA(a);if(b===0||$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches))a.remove();else{var c=bA(a);c=$APP.M(c);var d=$APP.D(c,$APP.Hj),e=function l(h){return $APP.B.i(h.target,d)?(d.removeEventListener("animationend",l),h=$APP.k(a,"__xAlertExitTimer"),
13
+ $APP.n(h)&&(clearTimeout(h),a.__xAlertExitTimer=null),$APP.n(a.isConnected)?a.remove():null):null};a.setAttribute("data-exiting","");d.addEventListener("animationend",e);$APP.ja(a,"__xAlertExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.n($APP.n(h)?$APP.k(a,"__xAlertExiting"):h)?(d.removeEventListener("animationend",e),a.__xAlertExitTimer=null,a.remove()):null},b+60))}}return null},kA=function(a,b){var c=$APP.k(a,"__xAlertModel");c=$APP.n(c)?c:cA(a);b=$APP.Hh($z(c,b));b=new CustomEvent("x-alert-dismiss",
14
+ {detail:b,bubbles:!0,composed:!0,cancelable:!0});b=a.dispatchEvent(b);$APP.n(b)&&hA(a)},lA=function(a,b){var c=function(){var d=$APP.k(a,"__xAlertModel");return $APP.n(d)?d:cA(a)}();$APP.n(function(){var d=Zz(c);return $APP.n(d)?$APP.r($APP.k(a,"__xAlertExiting")):d}())&&(b.preventDefault(),kA(a,"button"));return null},mA=function(a,b){if($APP.B.i(b.key,"Escape")){var c=function(){var d=$APP.k(a,"__xAlertModel");return $APP.n(d)?d:cA(a)}();$APP.n(function(){var d=Zz(c);return $APP.n(d)?$APP.r($APP.k(a,
15
+ "__xAlertExiting")):d}())&&(b.preventDefault(),kA(a,"keyboard"))}return null},nA=function(a){function b(e){return mA(a,e)}function c(e){return lA(a,e)}var d=bA(a);d=$APP.M(d);$APP.D(d,$APP.Sk).addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xAlertHandlers",{click:c,keydown:b})},oA=function(a){gA(a);var b=$APP.k(a,"__xAlertExitTimer");$APP.n(b)&&(clearTimeout(b),a.__xAlertExitTimer=null);b=$APP.k(a,"__xAlertHandlers");var c=$APP.k(a,"__xAlertRefs");if($APP.n($APP.n(b)?c:b)){c=
16
+ $APP.Sk.g(c);var d=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xAlertHandlers=null},pA=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"info"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.T.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"text",{get:function(){var b=this.getAttribute("text");
17
17
  return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("text",""+$APP.T.g(b)):this.removeAttribute("text")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.T.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",
18
- ""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"dismissible",{get:function(){return lz(this.getAttribute("dismissible"))},set:function(b){return $APP.n(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"timeoutMs",{get:function(){return mz(this.getAttribute("timeout-ms"))},set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",
19
- ""+$APP.T.g(b|0))},enumerable:!0,configurable:!0})},Gz=function(){var a=class extends HTMLElement{};a.observedAttributes=Fz;a.prototype.connectedCallback=function(){qz(this);Dz(this);Cz(this);sz(this);yz(this);xz(this);return null};a.prototype.disconnectedCallback=function(){Dz(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(sz(this),$APP.n(this.isConnected)&&xz(this));return null};Ez(a.prototype);return a},Hz=function(){$APP.n(customElements.get("x-alert"))||
20
- customElements.define("x-alert",Gz());return null},Fz="type text icon dismissible disabled timeout-ms".split(" "),pz=new $APP.K(null,"text-el","text-el",-1615414066);$APP.ha("baredom.exports.x_alert.init",Hz);export const init=Hz;
18
+ ""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"dismissible",{get:function(){return Xz(this.getAttribute("dismissible"))},set:function(b){return $APP.n(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"timeoutMs",{get:function(){return Yz(this.getAttribute("timeout-ms"))},set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",
19
+ ""+$APP.T.g(b|0))},enumerable:!0,configurable:!0})},rA=function(){var a=class extends HTMLElement{};a.observedAttributes=qA;a.prototype.connectedCallback=function(){bA(this);oA(this);nA(this);dA(this);jA(this);iA(this);return null};a.prototype.disconnectedCallback=function(){oA(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(dA(this),$APP.n(this.isConnected)&&iA(this));return null};pA(a.prototype);return a},sA=function(){$APP.n(customElements.get("x-alert"))||
20
+ customElements.define("x-alert",rA());return null},qA="type text icon dismissible disabled timeout-ms".split(" "),aA=new $APP.K(null,"text-el","text-el",-1615414066);$APP.ha("baredom.exports.x_alert.init",sA);export const init=sA;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var aB=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.I(a,c)?c:b},bB=function(a){if(typeof a==="string"){a=parseInt(a,10);var b=isFinite(a);return $APP.n($APP.n(b)?a>0:b)?a:null}return null},dB=function(a){var b=$APP.k(a,"__xAvatarGroupRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("slot"),e=document.createElement("span");c.textContent=":host{display:inline-flex;align-items:center;flex-direction:row;color-scheme:light dark;--x-avatar-group-overflow-bg:var(--x-color-surface, rgba(0,0,0,0.08));--x-avatar-group-overflow-color:var(--x-color-text-muted, rgba(0,0,0,0.70));--x-avatar-group-overflow-border:var(--x-color-border, rgba(0,0,0,0.14));--x-avatar-group-overflow-ring:var(--x-color-bg, #ffffff);--x-avatar-group-size:32px;--x-avatar-group-font-size:0.75rem;}@media (prefers-color-scheme:dark){:host{--x-avatar-group-overflow-bg:var(--x-color-surface, rgba(255,255,255,0.10));--x-avatar-group-overflow-color:var(--x-color-text-muted, rgba(255,255,255,0.75));--x-avatar-group-overflow-border:var(--x-color-border, rgba(255,255,255,0.18));--x-avatar-group-overflow-ring:var(--x-color-bg, #0b0c0f);}}:host([data-size\x3d'xs']){--x-avatar-group-size:20px;--x-avatar-group-font-size:0.625rem;}:host([data-size\x3d'sm']){--x-avatar-group-size:24px;--x-avatar-group-font-size:0.6875rem;}:host([data-size\x3d'md']){--x-avatar-group-size:32px;--x-avatar-group-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-avatar-group-size:40px;--x-avatar-group-font-size:0.875rem;}:host([data-size\x3d'xl']){--x-avatar-group-size:48px;--x-avatar-group-font-size:1rem;}:host([data-direction\x3d'rtl']){flex-direction:row-reverse;}[part\x3doverflow]{display:none;flex-shrink:0;width:var(--x-avatar-group-size);height:var(--x-avatar-group-size);border-radius:999px;background:var(--x-avatar-group-overflow-bg);color:var(--x-avatar-group-overflow-color);border:1px solid var(--x-avatar-group-overflow-border);box-shadow:0 0 0 2px var(--x-avatar-group-overflow-ring);font-size:var(--x-avatar-group-font-size);font-weight:600;line-height:1;align-items:center;justify-content:center;user-select:none;box-sizing:border-box;white-space:nowrap;}::slotted(x-avatar){flex-shrink:0;}@media (prefers-reduced-motion:reduce){::slotted(x-avatar){transition:none !important;}}";
3
- e.setAttribute("part","overflow");e.setAttribute("aria-hidden","true");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xAvatarGroupRefs=new $APP.Q(null,2,[$APP.rl,d,cB,e],null);return $APP.k(a,"__xAvatarGroupRefs")},jB=function(a){a=new $APP.Q(null,6,[$APP.Il,a.getAttribute("size"),eB,a.getAttribute("overlap"),$APP.Pk,a.getAttribute("max"),$APP.Ui,a.getAttribute("direction"),$APP.Al,a.hasAttribute("disabled"),$APP.ni,a.getAttribute("label")],null);var b=$APP.M(a);a=$APP.D(b,$APP.Il);var c=
4
- $APP.D(b,eB),d=$APP.D(b,$APP.Pk),e=$APP.D(b,$APP.Ui),g=$APP.D(b,$APP.Al);b=$APP.D(b,$APP.ni);a=aB(fB,"md",a);c=aB(gB,"md",c);d=bB(d);e=aB(hB,"ltr",e);g=$APP.F(g);typeof b==="string"?(b=b.trim(),b=$APP.C.i(b,"")?null:b):b=null;return new $APP.Q(null,6,[$APP.Kh,a,iB,c,$APP.Mk,d,$APP.oj,e,$APP.Nj,g,$APP.U,b],null)},lB=function(a,b){b=$APP.M(b);var c=$APP.D(b,$APP.Kh),d=$APP.D(b,iB),e=$APP.D(b,$APP.Mk),g=$APP.D(b,$APP.oj),h=$APP.D(b,$APP.Nj),l=$APP.D(b,$APP.U),m=dB(a);m=$APP.M(m);var p=$APP.D(m,$APP.rl);
5
- m=$APP.D(m,cB);var q=$APP.vc(p.assignedElements());p=$APP.z(q);p=$APP.n($APP.n(e)?p>e:e)?new $APP.O(null,2,5,$APP.P,[e,p-e],null):new $APP.O(null,2,5,$APP.P,[p,0],null);e=$APP.Ac(p,0,null);p=$APP.Ac(p,1,null);var v=$APP.Bc(kB,d,"0px");a.setAttribute("data-size",c);a.setAttribute("data-overlap",d);a.setAttribute("data-direction",g);a.setAttribute("role","group");$APP.n(l)?a.setAttribute("aria-label",l):a.removeAttribute("aria-label");$APP.n(h)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");
6
- d=$APP.t($APP.ae.m($APP.wh,q,$APP.dg(0,Number.MAX_VALUE)));g=null;for(q=l=0;;)if(q<l){var x=g.F(null,q),y=$APP.Ac(x,0,null);x=$APP.Ac(x,1,null);x<e?(y.style.display="",y.setAttribute("size",c),$APP.n(h)?y.setAttribute("disabled",""):y.removeAttribute("disabled"),y.style.marginInlineStart=x>0?v:"0px"):y.style.display="none";q+=1}else if(d=$APP.t(d))$APP.Nc(d)?(l=$APP.yb(d),d=$APP.zb(d),g=l,l=$APP.z(l)):(l=$APP.u(d),g=$APP.Ac(l,0,null),l=$APP.Ac(l,1,null),l<e?(g.style.display="",g.setAttribute("size",
7
- c),$APP.n(h)?g.setAttribute("disabled",""):g.removeAttribute("disabled"),g.style.marginInlineStart=l>0?v:"0px"):g.style.display="none",d=$APP.w(d),g=null,l=0),q=0;else break;p>0?(m.textContent="+"+$APP.T.g(p),m.setAttribute("role","img"),m.setAttribute("aria-label",""+$APP.T.g(p)+" more"),m.style.display="inline-flex",m.style.marginInlineStart=v):(m.textContent="",m.style.display="none");a.__xAvatarGroupModel=b},mB=function(a){lB(a,jB(a));return null},nB=function(a){function b(){return mB(a)}var c=
8
- dB(a);c=$APP.M(c);c=$APP.D(c,$APP.rl);$APP.n(c)&&c.addEventListener("slotchange",b);$APP.ja(a,"__xAvatarGroupHandlers",{slot:b})},oB=function(a){var b=$APP.k(a,"__xAvatarGroupHandlers");if($APP.n(b)){var c=$APP.k(a,"__xAvatarGroupRefs");$APP.n(c)&&(c=$APP.rl.g(c),b=$APP.k(b,"slot"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("slotchange",b))}a.__xAvatarGroupHandlers=null},pB=function(a){Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},set:function(b){return $APP.n(b)?
9
- this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},qB=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return $APP.n(d)?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},rB=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",
10
- ""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},sB=function(a){Object.defineProperty(a,"max",{get:function(){return bB(this.getAttribute("max"))},set:function(b){return b!=null?this.setAttribute("max",""+$APP.T.g(b)):this.removeAttribute("max")},enumerable:!0,configurable:!0})},tB=function(a){qB(a,"size","md");qB(a,"overlap","md");qB(a,"direction","ltr");pB(a);rB(a);sB(a)},vB=function(){var a=class extends HTMLElement{};a.observedAttributes=uB;a.prototype.connectedCallback=
11
- function(){dB(this);oB(this);nB(this);mB(this);return null};a.prototype.disconnectedCallback=function(){oB(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(b=jB(this),$APP.N($APP.k(this,"__xAvatarGroupModel"),b)&&lB(this,b));return null};tB(a.prototype);return a},wB=function(){$APP.n(customElements.get("x-avatar-group"))||customElements.define("x-avatar-group",vB());return null},eB=new $APP.K(null,"overlap-raw","overlap-raw",1202229114),cB=new $APP.K(null,"overflow",
12
- "overflow",2058931880),iB=new $APP.K(null,"overlap","overlap",-1673335644);var uB="size overlap max direction disabled label".split(" "),fB=new $APP.R(null,new $APP.Q(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),gB=new $APP.R(null,new $APP.Q(null,4,["none",null,"md",null,"lg",null,"sm",null],null),null),hB=new $APP.R(null,new $APP.Q(null,2,["ltr",null,"rtl",null],null),null),kB=new $APP.Q(null,4,"none 0px sm -4px md -8px lg -12px".split(" "),null);$APP.ha("baredom.exports.x_avatar_group.init",wB);export const init=wB;
2
+ var LB=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.I(a,c)?c:b},MB=function(a){if(typeof a==="string"){a=parseInt(a,10);var b=isFinite(a);return $APP.n($APP.n(b)?a>0:b)?a:null}return null},OB=function(a){var b=$APP.k(a,"__xAvatarGroupRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("slot"),e=document.createElement("span");c.textContent=":host{display:inline-flex;align-items:center;flex-direction:row;color-scheme:light dark;--x-avatar-group-overflow-bg:var(--x-color-surface, rgba(0,0,0,0.08));--x-avatar-group-overflow-color:var(--x-color-text-muted, rgba(0,0,0,0.70));--x-avatar-group-overflow-border:var(--x-color-border, rgba(0,0,0,0.14));--x-avatar-group-overflow-ring:var(--x-color-bg, #ffffff);--x-avatar-group-size:32px;--x-avatar-group-font-size:0.75rem;}@media (prefers-color-scheme:dark){:host{--x-avatar-group-overflow-bg:var(--x-color-surface, rgba(255,255,255,0.10));--x-avatar-group-overflow-color:var(--x-color-text-muted, rgba(255,255,255,0.75));--x-avatar-group-overflow-border:var(--x-color-border, rgba(255,255,255,0.18));--x-avatar-group-overflow-ring:var(--x-color-bg, #0b0c0f);}}:host([data-size\x3d'xs']){--x-avatar-group-size:20px;--x-avatar-group-font-size:0.625rem;}:host([data-size\x3d'sm']){--x-avatar-group-size:24px;--x-avatar-group-font-size:0.6875rem;}:host([data-size\x3d'md']){--x-avatar-group-size:32px;--x-avatar-group-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-avatar-group-size:40px;--x-avatar-group-font-size:0.875rem;}:host([data-size\x3d'xl']){--x-avatar-group-size:48px;--x-avatar-group-font-size:1rem;}:host([data-direction\x3d'rtl']){flex-direction:row-reverse;}[part\x3doverflow]{display:none;flex-shrink:0;width:var(--x-avatar-group-size);height:var(--x-avatar-group-size);border-radius:999px;background:var(--x-avatar-group-overflow-bg);color:var(--x-avatar-group-overflow-color);border:1px solid var(--x-avatar-group-overflow-border);box-shadow:0 0 0 2px var(--x-avatar-group-overflow-ring);font-size:var(--x-avatar-group-font-size);font-weight:600;line-height:1;align-items:center;justify-content:center;user-select:none;box-sizing:border-box;white-space:nowrap;}::slotted(x-avatar){flex-shrink:0;}@media (prefers-reduced-motion:reduce){::slotted(x-avatar){transition:none !important;}}";
3
+ e.setAttribute("part","overflow");e.setAttribute("aria-hidden","true");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xAvatarGroupRefs=new $APP.R(null,2,[$APP.Dl,d,NB,e],null);return $APP.k(a,"__xAvatarGroupRefs")},UB=function(a){a=new $APP.R(null,6,[$APP.Ul,a.getAttribute("size"),PB,a.getAttribute("overlap"),$APP.Zk,a.getAttribute("max"),$APP.Zi,a.getAttribute("direction"),$APP.Ml,a.hasAttribute("disabled"),$APP.pi,a.getAttribute("label")],null);var b=$APP.M(a);a=$APP.D(b,$APP.Ul);var c=
4
+ $APP.D(b,PB),d=$APP.D(b,$APP.Zk),e=$APP.D(b,$APP.Zi),g=$APP.D(b,$APP.Ml);b=$APP.D(b,$APP.pi);a=LB(QB,"md",a);c=LB(RB,"md",c);d=MB(d);e=LB(SB,"ltr",e);g=$APP.F(g);typeof b==="string"?(b=b.trim(),b=$APP.B.i(b,"")?null:b):b=null;return new $APP.R(null,6,[$APP.Mh,a,TB,c,$APP.Vk,d,$APP.tj,e,$APP.Pj,g,$APP.U,b],null)},WB=function(a,b){b=$APP.M(b);var c=$APP.D(b,$APP.Mh),d=$APP.D(b,TB),e=$APP.D(b,$APP.Vk),g=$APP.D(b,$APP.tj),h=$APP.D(b,$APP.Pj),l=$APP.D(b,$APP.U),m=OB(a);m=$APP.M(m);var p=$APP.D(m,$APP.Dl);
5
+ m=$APP.D(m,NB);var q=$APP.vc(p.assignedElements());p=$APP.z(q);p=$APP.n($APP.n(e)?p>e:e)?new $APP.O(null,2,5,$APP.P,[e,p-e],null):new $APP.O(null,2,5,$APP.P,[p,0],null);e=$APP.Ac(p,0,null);p=$APP.Ac(p,1,null);var v=$APP.Bc(VB,d,"0px");a.setAttribute("data-size",c);a.setAttribute("data-overlap",d);a.setAttribute("data-direction",g);a.setAttribute("role","group");$APP.n(l)?a.setAttribute("aria-label",l):a.removeAttribute("aria-label");$APP.n(h)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");
6
+ d=$APP.t($APP.ae.m($APP.xh,q,$APP.dg(0,Number.MAX_VALUE)));g=null;for(q=l=0;;)if(q<l){var x=g.F(null,q),y=$APP.Ac(x,0,null);x=$APP.Ac(x,1,null);x<e?(y.style.display="",y.setAttribute("size",c),$APP.n(h)?y.setAttribute("disabled",""):y.removeAttribute("disabled"),y.style.marginInlineStart=x>0?v:"0px"):y.style.display="none";q+=1}else if(d=$APP.t(d))$APP.Nc(d)?(l=$APP.yb(d),d=$APP.zb(d),g=l,l=$APP.z(l)):(l=$APP.u(d),g=$APP.Ac(l,0,null),l=$APP.Ac(l,1,null),l<e?(g.style.display="",g.setAttribute("size",
7
+ c),$APP.n(h)?g.setAttribute("disabled",""):g.removeAttribute("disabled"),g.style.marginInlineStart=l>0?v:"0px"):g.style.display="none",d=$APP.w(d),g=null,l=0),q=0;else break;p>0?(m.textContent="+"+$APP.T.g(p),m.setAttribute("role","img"),m.setAttribute("aria-label",""+$APP.T.g(p)+" more"),m.style.display="inline-flex",m.style.marginInlineStart=v):(m.textContent="",m.style.display="none");a.__xAvatarGroupModel=b},XB=function(a){WB(a,UB(a));return null},YB=function(a){function b(){return XB(a)}var c=
8
+ OB(a);c=$APP.M(c);c=$APP.D(c,$APP.Dl);$APP.n(c)&&c.addEventListener("slotchange",b);$APP.ja(a,"__xAvatarGroupHandlers",{slot:b})},ZB=function(a){var b=$APP.k(a,"__xAvatarGroupHandlers");if($APP.n(b)){var c=$APP.k(a,"__xAvatarGroupRefs");$APP.n(c)&&(c=$APP.Dl.g(c),b=$APP.k(b,"slot"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("slotchange",b))}a.__xAvatarGroupHandlers=null},$B=function(a){Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},set:function(b){return $APP.n(b)?
9
+ this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},aC=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return $APP.n(d)?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},bC=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",
10
+ ""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},cC=function(a){Object.defineProperty(a,"max",{get:function(){return MB(this.getAttribute("max"))},set:function(b){return b!=null?this.setAttribute("max",""+$APP.T.g(b)):this.removeAttribute("max")},enumerable:!0,configurable:!0})},dC=function(a){aC(a,"size","md");aC(a,"overlap","md");aC(a,"direction","ltr");$B(a);bC(a);cC(a)},fC=function(){var a=class extends HTMLElement{};a.observedAttributes=eC;a.prototype.connectedCallback=
11
+ function(){OB(this);ZB(this);YB(this);XB(this);return null};a.prototype.disconnectedCallback=function(){ZB(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(b=UB(this),$APP.N($APP.k(this,"__xAvatarGroupModel"),b)&&WB(this,b));return null};dC(a.prototype);return a},gC=function(){$APP.n(customElements.get("x-avatar-group"))||customElements.define("x-avatar-group",fC());return null},PB=new $APP.K(null,"overlap-raw","overlap-raw",1202229114),NB=new $APP.K(null,"overflow",
12
+ "overflow",2058931880),TB=new $APP.K(null,"overlap","overlap",-1673335644);var eC="size overlap max direction disabled label".split(" "),QB=new $APP.S(null,new $APP.R(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),RB=new $APP.S(null,new $APP.R(null,4,["none",null,"md",null,"lg",null,"sm",null],null),null),SB=new $APP.S(null,new $APP.R(null,2,["ltr",null,"rtl",null],null),null),VB=new $APP.R(null,4,"none 0px sm -4px md -8px lg -12px".split(" "),null);$APP.ha("baredom.exports.x_avatar_group.init",gC);export const init=gC;
package/dist/x-avatar.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var r_=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.I(a,c)?c:b},s_=function(a){return typeof a==="string"?(a=a.trim(),$APP.C.i(a,"")?null:a):null},t_=function(a){a=s_(a);if($APP.n(a)){var b=$APP.xe($APP.ee(function(c){return $APP.C.i(c,"")},a.split(/\s+/)));if($APP.t(b))return a=$APP.u(b)[0],b=$APP.z(b)>=2?$APP.u($APP.w(b))[0]:null,a=""+$APP.T.g(a)+$APP.T.g($APP.n(b)?b:""),$APP.C.i(a,"")?null:a.toUpperCase()}return null},w_=function(a){var b=$APP.M(a);a=$APP.D(b,u_);
3
- b=$APP.D(b,v_);return $APP.n(a)?a:b},x_=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.gi);b=$APP.D(b,$APP.vj);return $APP.n(a)?a:b},E_=function(a){var b=$APP.k(a,"__xAvatarRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("img"),g=document.createElement("span"),h=document.createElement("span"),l=document.createElement("span"),m=document.createElement("span"),p=document.createElement("slot");c.textContent=
2
+ var R1=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.I(a,c)?c:b},S1=function(a){return typeof a==="string"?(a=a.trim(),$APP.B.i(a,"")?null:a):null},T1=function(a){a=S1(a);if($APP.n(a)){var b=$APP.xe($APP.ee(function(c){return $APP.B.i(c,"")},a.split(/\s+/)));if($APP.t(b))return a=$APP.u(b)[0],b=$APP.z(b)>=2?$APP.u($APP.w(b))[0]:null,a=""+$APP.T.g(a)+$APP.T.g($APP.n(b)?b:""),$APP.B.i(a,"")?null:a.toUpperCase()}return null},W1=function(a){var b=$APP.M(a);a=$APP.D(b,U1);
3
+ b=$APP.D(b,V1);return $APP.n(a)?a:b},X1=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.ii);b=$APP.D(b,$APP.Aj);return $APP.n(a)?a:b},d2=function(a){var b=$APP.k(a,"__xAvatarRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("img"),g=document.createElement("span"),h=document.createElement("span"),l=document.createElement("span"),m=document.createElement("span"),p=document.createElement("slot");c.textContent=
4
4
  ":host{display:inline-block;vertical-align:middle;position:relative;color-scheme:light dark;--x-avatar-size-xs:20px;--x-avatar-size-sm:24px;--x-avatar-size-md:32px;--x-avatar-size-lg:40px;--x-avatar-size-xl:48px;--x-avatar-radius:10px;--x-avatar-disabled-opacity:0.55;--x-avatar-bg:var(--x-color-surface, rgba(0,0,0,0.06));--x-avatar-border:var(--x-color-border, rgba(0,0,0,0.14));--x-avatar-color:var(--x-color-text, rgba(0,0,0,0.86));--x-avatar-ring:var(--x-color-bg, #ffffff);--x-avatar-status-online:rgba(16,140,72,0.95);--x-avatar-status-offline:rgba(0,0,0,0.45);--x-avatar-status-busy:rgba(190,20,40,0.95);--x-avatar-status-away:rgba(204,120,0,0.95);--x-avatar-status-color:transparent;--x-avatar-focus-ring:var(--x-color-focus-ring, rgba(59,130,246,0.55));--x-avatar-font-size:var(--x-font-size-sm, 0.875rem);--x-avatar-size:var(--x-avatar-size-md);}@media (prefers-color-scheme:dark){:host{--x-avatar-bg:var(--x-color-surface, rgba(255,255,255,0.10));--x-avatar-border:var(--x-color-border, rgba(255,255,255,0.18));--x-avatar-color:var(--x-color-text, rgba(255,255,255,0.88));--x-avatar-ring:var(--x-color-bg, #0b0c0f);--x-avatar-status-online:rgba(60,210,120,0.95);--x-avatar-status-offline:rgba(255,255,255,0.45);--x-avatar-status-busy:rgba(255,90,110,0.95);--x-avatar-status-away:rgba(255,190,90,0.95);}}:host([data-size\x3d'xs']){--x-avatar-size:var(--x-avatar-size-xs);--x-avatar-font-size:0.625rem;}:host([data-size\x3d'sm']){--x-avatar-size:var(--x-avatar-size-sm);--x-avatar-font-size:0.75rem;}:host([data-size\x3d'md']){--x-avatar-size:var(--x-avatar-size-md);}:host([data-size\x3d'lg']){--x-avatar-size:var(--x-avatar-size-lg);--x-avatar-font-size:1rem;}:host([data-size\x3d'xl']){--x-avatar-size:var(--x-avatar-size-xl);--x-avatar-font-size:1.125rem;}:host([data-variant\x3d'brand']){--x-avatar-bg:rgba(0,102,204,0.10);--x-avatar-border:rgba(0,102,204,0.30);--x-avatar-color:rgba(0,60,120,0.90);}:host([data-variant\x3d'subtle']){--x-avatar-bg:rgba(0,0,0,0.03);--x-avatar-border:rgba(0,0,0,0.08);--x-avatar-color:rgba(0,0,0,0.55);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'brand']){--x-avatar-bg:rgba(80,160,255,0.18);--x-avatar-border:rgba(80,160,255,0.40);--x-avatar-color:rgba(210,235,255,0.92);}:host([data-variant\x3d'subtle']){--x-avatar-bg:rgba(255,255,255,0.04);--x-avatar-border:rgba(255,255,255,0.08);--x-avatar-color:rgba(255,255,255,0.50);}}[part\x3droot]{width:var(--x-avatar-size);height:var(--x-avatar-size);display:inline-flex;align-items:center;justify-content:center;overflow:hidden;background:var(--x-avatar-bg);color:var(--x-avatar-color);border:1px solid var(--x-avatar-border);box-shadow:0 0 0 2px var(--x-avatar-ring);font-size:var(--x-avatar-font-size);font-weight:600;line-height:1;user-select:none;border-radius:999px;}:host([data-shape\x3d'square']) [part\x3droot]{border-radius:0;}:host([data-shape\x3d'rounded']) [part\x3droot]{border-radius:var(--x-avatar-radius);}:host([disabled]){opacity:var(--x-avatar-disabled-opacity);}[part\x3dimage]{width:100%;height:100%;object-fit:cover;display:none;}[part\x3dinitials],[part\x3dfallback]{display:none;padding:0 0.25em;}[part\x3dstatus]{position:absolute;right:-1px;bottom:-1px;width:0.34em;height:0.34em;min-width:10px;min-height:10px;border-radius:999px;border:2px solid var(--x-avatar-ring);background:var(--x-avatar-status-color);display:none;}[part\x3dbadge]{position:absolute;top:-4px;right:-4px;display:none;}slot[name\x3dbadge]::slotted(*){display:block;}@media (prefers-reduced-motion:reduce){[part\x3droot]{transition:none !important;}}";
5
- d.setAttribute("part","root");e.setAttribute("part","image");e.setAttribute("alt","");g.setAttribute("part","initials");h.setAttribute("part","fallback");h.textContent="?";l.setAttribute("part","status");l.setAttribute("aria-hidden","true");m.setAttribute("part","badge");p.setAttribute("name","badge");m.appendChild(p);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);b.appendChild(l);b.appendChild(m);a.__xAvatarRefs=new $APP.Q(null,7,[y_,d,$APP.tj,e,z_,g,A_,h,B_,
6
- l,C_,m,D_,p],null);return $APP.k(a,"__xAvatarRefs")},F_=function(a,b){b=$APP.M(b);var c=$APP.D(b,$APP.tk),d=$APP.D(b,$APP.Kh),e=$APP.D(b,$APP.fk),g=$APP.D(b,$APP.Tg),h=$APP.D(b,$APP.sk),l=$APP.D(b,$APP.Nj),m=E_(a),p=$APP.M(m);m=$APP.D(p,$APP.tj);var q=$APP.D(p,z_),v=$APP.D(p,A_),x=$APP.D(p,B_),y=$APP.D(p,C_),A=$APP.D(p,D_),B=$APP.F($APP.k(a,"__xAvatarImgOk")),E=c!=null;p=w_(b);var G=x_(b);B=E&&B;E=!B&&p!=null;var H=!B&&!E;A=$APP.n(A)?A.assignedNodes().length>0:null;a.setAttribute("data-size",d);a.setAttribute("data-shape",
7
- e);a.setAttribute("data-variant",g);$APP.n(G)?(a.setAttribute("role","img"),a.setAttribute("aria-label",G),a.removeAttribute("aria-hidden")):(a.removeAttribute("role"),a.removeAttribute("aria-label"),a.setAttribute("aria-hidden","true"));$APP.n(l)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");c=$APP.n(c)?c:"";$APP.N(function(){var J=$APP.k(a,"__xAvatarLastSrc");return $APP.n(J)?J:""}(),c)&&(a.__xAvatarLastSrc=c,m.src=c);m.style.display=B?"block":"none";E&&(q.textContent=
8
- p);q.style.display=E?"inline":"none";v.style.display=H?"inline":"none";$APP.n(h)?(a.style.setProperty("--x-avatar-status-color",function(){switch(h){case "online":return"var(--x-avatar-status-online)";case "busy":return"var(--x-avatar-status-busy)";case "away":return"var(--x-avatar-status-away)";default:return"var(--x-avatar-status-offline)"}}()),x.style.display="block"):x.style.display="none";y.style.display=$APP.n(A)?"block":"none";a.__xAvatarModel=b},M_=function(a){var b=$APP.zf([G_,$APP.hl,$APP.ml,
9
- H_,$APP.Oi,$APP.Al,$APP.wm,$APP.Tl,$APP.Il],[a.getAttribute("initials"),a.getAttribute("variant"),a.getAttribute("name"),a.getAttribute("shape"),a.getAttribute("status"),a.hasAttribute("disabled"),a.getAttribute("alt"),a.getAttribute("src"),a.getAttribute("size")]);var c=$APP.M(b),d=$APP.D(c,G_),e=$APP.D(c,$APP.hl),g=$APP.D(c,$APP.ml);b=$APP.D(c,H_);var h=$APP.D(c,$APP.Oi),l=$APP.D(c,$APP.wm),m=$APP.D(c,$APP.Al),p=$APP.D(c,$APP.Tl);c=$APP.D(c,$APP.Il);p=s_(p);$APP.n(p)?(p=$APP.Mg(p),p=$APP.N(p,"")?
10
- p:null):p=null;l=s_(l);g=s_(g);d=s_(d);d=$APP.n(d)?d.length>3?d.slice(0,3):d:null;var q=d==null?t_(g):null,v=[u_,$APP.Nj,$APP.Tg,$APP.gi,$APP.vj,$APP.tk,$APP.Kh,$APP.sk,v_,$APP.fk];m=$APP.F(m);e=r_(I_,"neutral",e);c=r_(J_,"md",c);h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.I(K_,h)?h:null;b=$APP.zf(v,[d,m,e,l,g,p,c,h,q,r_(L_,"circle",b)]);$APP.N($APP.k(a,"__xAvatarModel"),b)&&F_(a,b);return null},N_=function(a){function b(){return M_(a)}function c(){a.__xAvatarImgOk=!1;return M_(a)}function d(){a.__xAvatarImgOk=
11
- !0;return M_(a)}var e=E_(a),g=$APP.M(e);e=$APP.D(g,$APP.tj);g=$APP.D(g,D_);e.addEventListener("load",d);e.addEventListener("error",c);$APP.n(g)&&g.addEventListener("slotchange",b);$APP.ja(a,"__xAvatarHandlers",{load:d,error:c,slot:b})},O_=function(a){var b=$APP.k(a,"__xAvatarHandlers");if($APP.n(b)){var c=$APP.k(a,"__xAvatarRefs");if($APP.n(c)){var d=$APP.tj.g(c);c=D_.g(c);var e=$APP.k(b,"load"),g=$APP.k(b,"error");b=$APP.k(b,"slot");$APP.n(e)&&d.removeEventListener("load",e);$APP.n(g)&&d.removeEventListener("error",
12
- g);$APP.n($APP.n(c)?b:c)&&c.removeEventListener("slotchange",b)}}a.__xAvatarHandlers=null},P_=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Q_=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return $APP.n(d)?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},
13
- enumerable:!0,configurable:!0})},R_=function(a){P_(a,"src");P_(a,"alt");P_(a,"name");P_(a,"initials");Q_(a,"size","md");Q_(a,"shape","circle");Q_(a,"variant","neutral");P_(a,"status");Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},T_=function(){var a=class extends HTMLElement{};a.observedAttributes=S_;a.prototype.connectedCallback=
14
- function(){E_(this);O_(this);N_(this);M_(this);return null};a.prototype.disconnectedCallback=function(){O_(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&($APP.C.i(b,"src")&&(this.__xAvatarImgOk=!1),M_(this));return null};R_(a.prototype);return a},U_=function(){$APP.n(customElements.get("x-avatar"))||customElements.define("x-avatar",T_());return null},H_=new $APP.K(null,"shape-raw","shape-raw",1588938757),z_=new $APP.K(null,"initials-el","initials-el",2044340724),
15
- B_=new $APP.K(null,"status-el","status-el",2132204108),u_=new $APP.K(null,"initials","initials",-2130377215),C_=new $APP.K(null,"badge-el","badge-el",1341875403),D_=new $APP.K(null,"badge-slot","badge-slot",2030670001),G_=new $APP.K(null,"initials-raw","initials-raw",1031756224),v_=new $APP.K(null,"derived","derived",1986040597),A_=new $APP.K(null,"fallback-el","fallback-el",-208030239),y_=new $APP.K(null,"root-el","root-el",1068654895);var S_="src alt name initials size shape variant status disabled".split(" "),J_=new $APP.R(null,new $APP.Q(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),L_=new $APP.R(null,new $APP.Q(null,3,["rounded",null,"square",null,"circle",null],null),null),I_=new $APP.R(null,new $APP.Q(null,3,["neutral",null,"brand",null,"subtle",null],null),null),K_=new $APP.R(null,new $APP.Q(null,4,["online",null,"away",null,"offline",null,"busy",null],null),null);
16
- $APP.zf([u_,$APP.Nj,$APP.Tg,$APP.gi,$APP.vj,$APP.tk,$APP.Kh,$APP.sk,$APP.fk],[new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Xj],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null)]);$APP.ha("baredom.exports.x_avatar.init",U_);export const init=U_;
5
+ d.setAttribute("part","root");e.setAttribute("part","image");e.setAttribute("alt","");g.setAttribute("part","initials");h.setAttribute("part","fallback");h.textContent="?";l.setAttribute("part","status");l.setAttribute("aria-hidden","true");m.setAttribute("part","badge");p.setAttribute("name","badge");m.appendChild(p);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);b.appendChild(l);b.appendChild(m);a.__xAvatarRefs=new $APP.R(null,7,[Y1,d,$APP.yj,e,Z1,g,$1,h,a2,
6
+ l,b2,m,c2,p],null);return $APP.k(a,"__xAvatarRefs")},e2=function(a,b){b=$APP.M(b);var c=$APP.D(b,$APP.Ak),d=$APP.D(b,$APP.Mh),e=$APP.D(b,$APP.kk),g=$APP.D(b,$APP.Vg),h=$APP.D(b,$APP.zk),l=$APP.D(b,$APP.Pj),m=d2(a),p=$APP.M(m);m=$APP.D(p,$APP.yj);var q=$APP.D(p,Z1),v=$APP.D(p,$1),x=$APP.D(p,a2),y=$APP.D(p,b2),A=$APP.D(p,c2),C=$APP.F($APP.k(a,"__xAvatarImgOk")),E=c!=null;p=W1(b);var H=X1(b);C=E&&C;E=!C&&p!=null;var G=!C&&!E;A=$APP.n(A)?A.assignedNodes().length>0:null;a.setAttribute("data-size",d);a.setAttribute("data-shape",
7
+ e);a.setAttribute("data-variant",g);$APP.n(H)?(a.setAttribute("role","img"),a.setAttribute("aria-label",H),a.removeAttribute("aria-hidden")):(a.removeAttribute("role"),a.removeAttribute("aria-label"),a.setAttribute("aria-hidden","true"));$APP.n(l)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");c=$APP.n(c)?c:"";$APP.N(function(){var J=$APP.k(a,"__xAvatarLastSrc");return $APP.n(J)?J:""}(),c)&&(a.__xAvatarLastSrc=c,m.src=c);m.style.display=C?"block":"none";E&&(q.textContent=
8
+ p);q.style.display=E?"inline":"none";v.style.display=G?"inline":"none";$APP.n(h)?(a.style.setProperty("--x-avatar-status-color",function(){switch(h){case "online":return"var(--x-avatar-status-online)";case "busy":return"var(--x-avatar-status-busy)";case "away":return"var(--x-avatar-status-away)";default:return"var(--x-avatar-status-offline)"}}()),x.style.display="block"):x.style.display="none";y.style.display=$APP.n(A)?"block":"none";a.__xAvatarModel=b},l2=function(a){var b=$APP.zf([f2,$APP.sl,$APP.yl,
9
+ g2,$APP.Ti,$APP.Ml,$APP.Jm,$APP.em,$APP.Ul],[a.getAttribute("initials"),a.getAttribute("variant"),a.getAttribute("name"),a.getAttribute("shape"),a.getAttribute("status"),a.hasAttribute("disabled"),a.getAttribute("alt"),a.getAttribute("src"),a.getAttribute("size")]);var c=$APP.M(b),d=$APP.D(c,f2),e=$APP.D(c,$APP.sl),g=$APP.D(c,$APP.yl);b=$APP.D(c,g2);var h=$APP.D(c,$APP.Ti),l=$APP.D(c,$APP.Jm),m=$APP.D(c,$APP.Ml),p=$APP.D(c,$APP.em);c=$APP.D(c,$APP.Ul);p=S1(p);$APP.n(p)?(p=$APP.Og(p),p=$APP.N(p,"")?
10
+ p:null):p=null;l=S1(l);g=S1(g);d=S1(d);d=$APP.n(d)?d.length>3?d.slice(0,3):d:null;var q=d==null?T1(g):null,v=[U1,$APP.Pj,$APP.Vg,$APP.ii,$APP.Aj,$APP.Ak,$APP.Mh,$APP.zk,V1,$APP.kk];m=$APP.F(m);e=R1(h2,"neutral",e);c=R1(i2,"md",c);h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.I(j2,h)?h:null;b=$APP.zf(v,[d,m,e,l,g,p,c,h,q,R1(k2,"circle",b)]);$APP.N($APP.k(a,"__xAvatarModel"),b)&&e2(a,b);return null},m2=function(a){function b(){return l2(a)}function c(){a.__xAvatarImgOk=!1;return l2(a)}function d(){a.__xAvatarImgOk=
11
+ !0;return l2(a)}var e=d2(a),g=$APP.M(e);e=$APP.D(g,$APP.yj);g=$APP.D(g,c2);e.addEventListener("load",d);e.addEventListener("error",c);$APP.n(g)&&g.addEventListener("slotchange",b);$APP.ja(a,"__xAvatarHandlers",{load:d,error:c,slot:b})},n2=function(a){var b=$APP.k(a,"__xAvatarHandlers");if($APP.n(b)){var c=$APP.k(a,"__xAvatarRefs");if($APP.n(c)){var d=$APP.yj.g(c);c=c2.g(c);var e=$APP.k(b,"load"),g=$APP.k(b,"error");b=$APP.k(b,"slot");$APP.n(e)&&d.removeEventListener("load",e);$APP.n(g)&&d.removeEventListener("error",
12
+ g);$APP.n($APP.n(c)?b:c)&&c.removeEventListener("slotchange",b)}}a.__xAvatarHandlers=null},o2=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},p2=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return $APP.n(d)?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},
13
+ enumerable:!0,configurable:!0})},q2=function(a){o2(a,"src");o2(a,"alt");o2(a,"name");o2(a,"initials");p2(a,"size","md");p2(a,"shape","circle");p2(a,"variant","neutral");o2(a,"status");Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},s2=function(){var a=class extends HTMLElement{};a.observedAttributes=r2;a.prototype.connectedCallback=
14
+ function(){d2(this);n2(this);m2(this);l2(this);return null};a.prototype.disconnectedCallback=function(){n2(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&($APP.B.i(b,"src")&&(this.__xAvatarImgOk=!1),l2(this));return null};q2(a.prototype);return a},t2=function(){$APP.n(customElements.get("x-avatar"))||customElements.define("x-avatar",s2());return null},g2=new $APP.K(null,"shape-raw","shape-raw",1588938757),Z1=new $APP.K(null,"initials-el","initials-el",2044340724),
15
+ a2=new $APP.K(null,"status-el","status-el",2132204108),U1=new $APP.K(null,"initials","initials",-2130377215),b2=new $APP.K(null,"badge-el","badge-el",1341875403),c2=new $APP.K(null,"badge-slot","badge-slot",2030670001),f2=new $APP.K(null,"initials-raw","initials-raw",1031756224),V1=new $APP.K(null,"derived","derived",1986040597),$1=new $APP.K(null,"fallback-el","fallback-el",-208030239),Y1=new $APP.K(null,"root-el","root-el",1068654895);var r2="src alt name initials size shape variant status disabled".split(" "),i2=new $APP.S(null,new $APP.R(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),k2=new $APP.S(null,new $APP.R(null,3,["rounded",null,"square",null,"circle",null],null),null),h2=new $APP.S(null,new $APP.R(null,3,["neutral",null,"brand",null,"subtle",null],null),null),j2=new $APP.S(null,new $APP.R(null,4,["online",null,"away",null,"offline",null,"busy",null],null),null);
16
+ $APP.zf([U1,$APP.Pj,$APP.Vg,$APP.ii,$APP.Aj,$APP.Ak,$APP.Mh,$APP.zk,$APP.kk],[new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Zj],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null)]);$APP.ha("baredom.exports.x_avatar.init",t2);export const init=t2;
package/dist/x-badge.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var sZ=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.I(a,c)?c:b},tZ=function(a,b){if(typeof a==="string"){a=parseInt(a,10);var c=isFinite(a);return $APP.n($APP.n(c)?a>=0:c)?a:b}return b},xZ=function(a){var b=$APP.M(a);a=$APP.D(b,uZ);var c=$APP.D(b,$APP.Ph),d=$APP.D(b,$APP.ol);b=$APP.D(b,vZ);return $APP.n(a)?$APP.fj:c!=null?$APP.Ph:d!=null?$APP.ol:$APP.n(b)?vZ:wZ},yZ=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Ph);var c=$APP.D(b,$APP.Mk),d=$APP.D(b,$APP.ol);b=xZ(b);
3
- switch(b instanceof $APP.K?b.pa:null){case "count":return a>c?""+$APP.T.g(c)+"+":""+$APP.T.g(a);case "text":return d;default:return null}},EZ=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Sj);var c=$APP.D(b,zZ),d=$APP.D(b,$APP.xj),e=$APP.D(b,AZ),g=$APP.D(b,$APP.hl),h=$APP.D(b,$APP.Jh),l=$APP.D(b,uZ),m=$APP.D(b,$APP.Pk),p=$APP.D(b,$APP.bj);b=$APP.D(b,$APP.Il);m=tZ(m,99);var q=$APP.n(p)?function(){var v=tZ(p,null);return v!=null?v:null}():null;return $APP.zf([uZ,$APP.Tg,BZ,$APP.Kh,$APP.Mk,$APP.Ph,$APP.Lm,
4
- vZ,$APP.Cl,$APP.ol],[$APP.F(l),sZ(CZ,"neutral",g),$APP.Ig(e),sZ(DZ,"md",b),m,q,d,$APP.Ig(c),a,typeof h==="string"?function(){var v=h.trim();return $APP.C.i(v,"")?null:v}():null])},e_=function(a){var b=$APP.k(a,"__xBadgeRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElement("span");c.textContent=":host{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;color-scheme:light dark;--x-badge-bg:rgba(0,0,0,0.08);--x-badge-color:var(--x-color-text,rgba(0,0,0,0.80));--x-badge-border:var(--x-color-border,rgba(0,0,0,0.12));--x-badge-font-size:var(--x-font-size-sm,0.75rem);--x-badge-height:1.25rem;--x-badge-padding:0 0.375rem;--x-badge-radius:var(--x-radius-sm,0.25rem);}@media (prefers-color-scheme:dark){:host{--x-badge-bg:rgba(255,255,255,0.12);--x-badge-color:var(--x-color-text,rgba(255,255,255,0.88));--x-badge-border:var(--x-color-border,rgba(255,255,255,0.14));}}:host([data-variant\x3d'info']){--x-badge-bg:rgba(0,102,204,0.12);--x-badge-color:rgba(0,60,140,0.90);--x-badge-border:rgba(0,102,204,0.25);}:host([data-variant\x3d'success']){--x-badge-bg:rgba(16,140,72,0.12);--x-badge-color:rgba(0,90,45,0.90);--x-badge-border:rgba(16,140,72,0.25);}:host([data-variant\x3d'warning']){--x-badge-bg:rgba(204,120,0,0.12);--x-badge-color:rgba(140,70,0,0.90);--x-badge-border:rgba(204,120,0,0.25);}:host([data-variant\x3d'error']){--x-badge-bg:rgba(190,20,40,0.12);--x-badge-color:rgba(140,0,20,0.90);--x-badge-border:rgba(190,20,40,0.25);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'info']){--x-badge-bg:rgba(80,160,255,0.18);--x-badge-color:rgba(210,235,255,0.95);--x-badge-border:rgba(80,160,255,0.35);}:host([data-variant\x3d'success']){--x-badge-bg:rgba(60,210,120,0.18);--x-badge-color:rgba(200,255,230,0.95);--x-badge-border:rgba(60,210,120,0.35);}:host([data-variant\x3d'warning']){--x-badge-bg:rgba(255,190,90,0.18);--x-badge-color:rgba(255,235,180,0.95);--x-badge-border:rgba(255,190,90,0.35);}:host([data-variant\x3d'error']){--x-badge-bg:rgba(255,90,110,0.18);--x-badge-color:rgba(255,210,215,0.95);--x-badge-border:rgba(255,90,110,0.35);}}:host([data-size\x3d'sm']){--x-badge-font-size:0.6875rem;--x-badge-height:1rem;--x-badge-padding:0 0.25rem;--x-badge-radius:0.1875rem;}[part\x3dbase]{display:inline-flex;align-items:center;justify-content:center;min-height:var(--x-badge-height);padding:var(--x-badge-padding);border-radius:var(--x-badge-radius);border:1px solid var(--x-badge-border);background:var(--x-badge-bg);color:var(--x-badge-color);font-size:var(--x-badge-font-size);font-weight:600;line-height:1;white-space:nowrap;user-select:none;box-sizing:border-box;}:host([data-pill]) [part\x3dbase]{border-radius:999px;}:host([data-dot]) [part\x3dbase]{min-width:var(--x-badge-height);padding:0;}:host([data-mode\x3d'dot']) [part\x3dlabel],:host([data-mode\x3d'empty']) [part\x3dbase]{display:none;}slot{display:none;}:host([data-mode\x3d'slot']) slot{display:contents;}:host([data-mode\x3d'slot']) [part\x3dlabel]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dbase]{transition:none !important;}}";
5
- d.setAttribute("part","base");d.setAttribute("role","status");g.setAttribute("part","label");d.appendChild(e);d.appendChild(g);b.appendChild(c);b.appendChild(d);a.__xBadgeRefs=new $APP.Q(null,3,[KZ,d,$APP.rl,e,$APP.Cm,g],null);return $APP.k(a,"__xBadgeRefs")},f_=function(a){var b=e_(a);b=$APP.M(b);b=$APP.D(b,$APP.rl);return EZ($APP.zf([$APP.hl,$APP.Jh,uZ,$APP.Pk,$APP.Il,$APP.bj,$APP.Sj,zZ,$APP.xj,AZ],[a.getAttribute("variant"),a.getAttribute("text"),$APP.n(b)?b.assignedNodes().length>0:null,a.getAttribute("max"),
6
- a.getAttribute("size"),a.getAttribute("count"),a.getAttribute("aria-label"),a.getAttribute("dot"),a.getAttribute("aria-describedby"),a.getAttribute("pill")]))},g_=function(a){var b=f_(a);if($APP.N($APP.k(a,"__xBadgeModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.Tg),d=$APP.D(b,$APP.Kh),e=$APP.D(b,BZ),g=$APP.D(b,vZ),h=$APP.D(b,$APP.Cl),l=$APP.D(b,$APP.Lm),m=e_(a),p=$APP.M(m);m=$APP.D(p,KZ);p=$APP.D(p,$APP.Cm);var q=xZ(b),v=yZ(b);a.setAttribute("data-variant",c);a.setAttribute("data-size",d);a.setAttribute("data-mode",
7
- $APP.Yf(q));$APP.n(e)?a.setAttribute("data-pill",""):a.removeAttribute("data-pill");$APP.n(g)?a.setAttribute("data-dot",""):a.removeAttribute("data-dot");p.textContent=$APP.n(v)?v:"";$APP.n(h)?m.setAttribute("aria-label",h):m.removeAttribute("aria-label");$APP.n(l)?m.setAttribute("aria-describedby",l):m.removeAttribute("aria-describedby");a.__xBadgeModel=b}return null},h_=function(a){function b(){return g_(a)}var c=e_(a);c=$APP.M(c);c=$APP.D(c,$APP.rl);$APP.n(c)&&c.addEventListener("slotchange",b);
8
- $APP.ja(a,"__xBadgeHandlers",{slot:b})},i_=function(a){var b=$APP.k(a,"__xBadgeHandlers");if($APP.n(b)){var c=$APP.k(a,"__xBadgeRefs");$APP.n(c)&&(c=$APP.rl.g(c),b=$APP.k(b,"slot"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("slotchange",b))}a.__xBadgeHandlers=null},j_=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},k_=function(a,b,c){Object.defineProperty(a,
9
- b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return $APP.n(d)?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},l_=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},m_=function(a,b,c){Object.defineProperty(a,b,{get:function(){return tZ(this.getAttribute(b),c)},set:function(d){return d!=
10
- null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},n_=function(a){k_(a,"variant","neutral");k_(a,"size","md");l_(a,"pill");l_(a,"dot");j_(a,"text");j_(a,"aria-label");j_(a,"aria-describedby");m_(a,"count",null);m_(a,"max",99);Object.defineProperty(a,"displayText",{get:function(){return yZ(f_(this))},enumerable:!0,configurable:!0})},p_=function(){var a=class extends HTMLElement{};a.observedAttributes=o_;a.prototype.connectedCallback=function(){e_(this);
11
- i_(this);h_(this);g_(this);return null};a.prototype.disconnectedCallback=function(){i_(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&g_(this);return null};n_(a.prototype);return a},q_=function(){$APP.n(customElements.get("x-badge"))||customElements.define("x-badge",p_());return null},BZ=new $APP.K(null,"pill","pill",-37707E3),uZ=new $APP.K(null,"has-slot?","has-slot?",181244965),wZ=new $APP.K(null,"empty","empty",767870958),vZ=new $APP.K(null,"dot","dot",1442709401),
12
- zZ=new $APP.K(null,"dot-raw","dot-raw",1754908187),AZ=new $APP.K(null,"pill-raw","pill-raw",-557846051),KZ=new $APP.K(null,"base","base",185279322);var o_="variant size pill dot count max text aria-label aria-describedby".split(" "),CZ=new $APP.R(null,new $APP.Q(null,5,["success",null,"neutral",null,"warning",null,"info",null,"error",null],null),null),DZ=new $APP.R(null,new $APP.Q(null,2,["md",null,"sm",null],null),null);$APP.ha("baredom.exports.x_badge.init",q_);export const init=q_;
2
+ var S0=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.I(a,c)?c:b},T0=function(a,b){if(typeof a==="string"){a=parseInt(a,10);var c=isFinite(a);return $APP.n($APP.n(c)?a>=0:c)?a:b}return b},X0=function(a){var b=$APP.M(a);a=$APP.D(b,U0);var c=$APP.D(b,$APP.Rh),d=$APP.D(b,$APP.Al);b=$APP.D(b,V0);return $APP.n(a)?$APP.kj:c!=null?$APP.Rh:d!=null?$APP.Al:$APP.n(b)?V0:W0},Y0=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Rh);var c=$APP.D(b,$APP.Vk),d=$APP.D(b,$APP.Al);b=X0(b);
3
+ switch(b instanceof $APP.K?b.pa:null){case "count":return a>c?""+$APP.T.g(c)+"+":""+$APP.T.g(a);case "text":return d;default:return null}},C1=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Uj);var c=$APP.D(b,Z0),d=$APP.D(b,$APP.Cj),e=$APP.D(b,$0),g=$APP.D(b,$APP.sl),h=$APP.D(b,$APP.Kh),l=$APP.D(b,U0),m=$APP.D(b,$APP.Zk),p=$APP.D(b,$APP.gj);b=$APP.D(b,$APP.Ul);m=T0(m,99);var q=$APP.n(p)?function(){var v=T0(p,null);return v!=null?v:null}():null;return $APP.zf([U0,$APP.Vg,a1,$APP.Mh,$APP.Vk,$APP.Rh,$APP.Ym,
4
+ V0,$APP.Ol,$APP.Al],[$APP.F(l),S0(b1,"neutral",g),$APP.Kg(e),S0(h1,"md",b),m,q,d,$APP.Kg(c),a,typeof h==="string"?function(){var v=h.trim();return $APP.B.i(v,"")?null:v}():null])},E1=function(a){var b=$APP.k(a,"__xBadgeRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElement("span");c.textContent=":host{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;color-scheme:light dark;--x-badge-bg:rgba(0,0,0,0.08);--x-badge-color:var(--x-color-text,rgba(0,0,0,0.80));--x-badge-border:var(--x-color-border,rgba(0,0,0,0.12));--x-badge-font-size:var(--x-font-size-sm,0.75rem);--x-badge-height:1.25rem;--x-badge-padding:0 0.375rem;--x-badge-radius:var(--x-radius-sm,0.25rem);}@media (prefers-color-scheme:dark){:host{--x-badge-bg:rgba(255,255,255,0.12);--x-badge-color:var(--x-color-text,rgba(255,255,255,0.88));--x-badge-border:var(--x-color-border,rgba(255,255,255,0.14));}}:host([data-variant\x3d'info']){--x-badge-bg:rgba(0,102,204,0.12);--x-badge-color:rgba(0,60,140,0.90);--x-badge-border:rgba(0,102,204,0.25);}:host([data-variant\x3d'success']){--x-badge-bg:rgba(16,140,72,0.12);--x-badge-color:rgba(0,90,45,0.90);--x-badge-border:rgba(16,140,72,0.25);}:host([data-variant\x3d'warning']){--x-badge-bg:rgba(204,120,0,0.12);--x-badge-color:rgba(140,70,0,0.90);--x-badge-border:rgba(204,120,0,0.25);}:host([data-variant\x3d'error']){--x-badge-bg:rgba(190,20,40,0.12);--x-badge-color:rgba(140,0,20,0.90);--x-badge-border:rgba(190,20,40,0.25);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'info']){--x-badge-bg:rgba(80,160,255,0.18);--x-badge-color:rgba(210,235,255,0.95);--x-badge-border:rgba(80,160,255,0.35);}:host([data-variant\x3d'success']){--x-badge-bg:rgba(60,210,120,0.18);--x-badge-color:rgba(200,255,230,0.95);--x-badge-border:rgba(60,210,120,0.35);}:host([data-variant\x3d'warning']){--x-badge-bg:rgba(255,190,90,0.18);--x-badge-color:rgba(255,235,180,0.95);--x-badge-border:rgba(255,190,90,0.35);}:host([data-variant\x3d'error']){--x-badge-bg:rgba(255,90,110,0.18);--x-badge-color:rgba(255,210,215,0.95);--x-badge-border:rgba(255,90,110,0.35);}}:host([data-size\x3d'sm']){--x-badge-font-size:0.6875rem;--x-badge-height:1rem;--x-badge-padding:0 0.25rem;--x-badge-radius:0.1875rem;}[part\x3dbase]{display:inline-flex;align-items:center;justify-content:center;min-height:var(--x-badge-height);padding:var(--x-badge-padding);border-radius:var(--x-badge-radius);border:1px solid var(--x-badge-border);background:var(--x-badge-bg);color:var(--x-badge-color);font-size:var(--x-badge-font-size);font-weight:600;line-height:1;white-space:nowrap;user-select:none;box-sizing:border-box;}:host([data-pill]) [part\x3dbase]{border-radius:999px;}:host([data-dot]) [part\x3dbase]{min-width:var(--x-badge-height);padding:0;}:host([data-mode\x3d'dot']) [part\x3dlabel],:host([data-mode\x3d'empty']) [part\x3dbase]{display:none;}slot{display:none;}:host([data-mode\x3d'slot']) slot{display:contents;}:host([data-mode\x3d'slot']) [part\x3dlabel]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dbase]{transition:none !important;}}";
5
+ d.setAttribute("part","base");d.setAttribute("role","status");g.setAttribute("part","label");d.appendChild(e);d.appendChild(g);b.appendChild(c);b.appendChild(d);a.__xBadgeRefs=new $APP.R(null,3,[D1,d,$APP.Dl,e,$APP.Pm,g],null);return $APP.k(a,"__xBadgeRefs")},F1=function(a){var b=E1(a);b=$APP.M(b);b=$APP.D(b,$APP.Dl);return C1($APP.zf([$APP.sl,$APP.Kh,U0,$APP.Zk,$APP.Ul,$APP.gj,$APP.Uj,Z0,$APP.Cj,$0],[a.getAttribute("variant"),a.getAttribute("text"),$APP.n(b)?b.assignedNodes().length>0:null,a.getAttribute("max"),
6
+ a.getAttribute("size"),a.getAttribute("count"),a.getAttribute("aria-label"),a.getAttribute("dot"),a.getAttribute("aria-describedby"),a.getAttribute("pill")]))},G1=function(a){var b=F1(a);if($APP.N($APP.k(a,"__xBadgeModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.Vg),d=$APP.D(b,$APP.Mh),e=$APP.D(b,a1),g=$APP.D(b,V0),h=$APP.D(b,$APP.Ol),l=$APP.D(b,$APP.Ym),m=E1(a),p=$APP.M(m);m=$APP.D(p,D1);p=$APP.D(p,$APP.Pm);var q=X0(b),v=Y0(b);a.setAttribute("data-variant",c);a.setAttribute("data-size",d);a.setAttribute("data-mode",
7
+ $APP.Yf(q));$APP.n(e)?a.setAttribute("data-pill",""):a.removeAttribute("data-pill");$APP.n(g)?a.setAttribute("data-dot",""):a.removeAttribute("data-dot");p.textContent=$APP.n(v)?v:"";$APP.n(h)?m.setAttribute("aria-label",h):m.removeAttribute("aria-label");$APP.n(l)?m.setAttribute("aria-describedby",l):m.removeAttribute("aria-describedby");a.__xBadgeModel=b}return null},H1=function(a){function b(){return G1(a)}var c=E1(a);c=$APP.M(c);c=$APP.D(c,$APP.Dl);$APP.n(c)&&c.addEventListener("slotchange",b);
8
+ $APP.ja(a,"__xBadgeHandlers",{slot:b})},I1=function(a){var b=$APP.k(a,"__xBadgeHandlers");if($APP.n(b)){var c=$APP.k(a,"__xBadgeRefs");$APP.n(c)&&(c=$APP.Dl.g(c),b=$APP.k(b,"slot"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("slotchange",b))}a.__xBadgeHandlers=null},J1=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},K1=function(a,b,c){Object.defineProperty(a,
9
+ b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return $APP.n(d)?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},L1=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},M1=function(a,b,c){Object.defineProperty(a,b,{get:function(){return T0(this.getAttribute(b),c)},set:function(d){return d!=
10
+ null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},N1=function(a){K1(a,"variant","neutral");K1(a,"size","md");L1(a,"pill");L1(a,"dot");J1(a,"text");J1(a,"aria-label");J1(a,"aria-describedby");M1(a,"count",null);M1(a,"max",99);Object.defineProperty(a,"displayText",{get:function(){return Y0(F1(this))},enumerable:!0,configurable:!0})},P1=function(){var a=class extends HTMLElement{};a.observedAttributes=O1;a.prototype.connectedCallback=function(){E1(this);
11
+ I1(this);H1(this);G1(this);return null};a.prototype.disconnectedCallback=function(){I1(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&G1(this);return null};N1(a.prototype);return a},Q1=function(){$APP.n(customElements.get("x-badge"))||customElements.define("x-badge",P1());return null},a1=new $APP.K(null,"pill","pill",-37707E3),U0=new $APP.K(null,"has-slot?","has-slot?",181244965),W0=new $APP.K(null,"empty","empty",767870958),V0=new $APP.K(null,"dot","dot",1442709401),
12
+ Z0=new $APP.K(null,"dot-raw","dot-raw",1754908187),$0=new $APP.K(null,"pill-raw","pill-raw",-557846051),D1=new $APP.K(null,"base","base",185279322);var O1="variant size pill dot count max text aria-label aria-describedby".split(" "),b1=new $APP.S(null,new $APP.R(null,5,["success",null,"neutral",null,"warning",null,"info",null,"error",null],null),null),h1=new $APP.S(null,new $APP.R(null,2,["md",null,"sm",null],null),null);$APP.ha("baredom.exports.x_badge.init",Q1);export const init=Q1;
@@ -1,6 +1,6 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var aF=function(a){switch(a){case "none":return"0";case "xs":return"4px";case "sm":return"8px";case "md":return"16px";case "lg":return"24px";case "xl":return"32px";default:return"16px"}},cF=function(a){return $APP.I(bF,a)?a:"md"},dF=function(a){return typeof a==="string"&&$APP.N(a,"")?(a=parseInt(a,10),typeof a==="number"&&$APP.r(isNaN(a))?$APP.rh.i($APP.qh.i(a,1),12):4):4},eF=function(a){return typeof a==="string"&&$APP.N(a,"")?a:"auto"},hF=function(a){a=$APP.M(a);var b=$APP.D(a,$APP.Fk),c=$APP.D(a,
3
- $APP.Wj),d=$APP.D(a,$APP.im),e=$APP.D(a,$APP.lj);a=$APP.D(a,fF);b=dF(b);var g=cF(c);c=function(){var l=$APP.I(bF,d)?d:null;return $APP.n(l)?l:g}();var h=function(){var l=$APP.I(bF,e)?e:null;return $APP.n(l)?l:g}();a=eF(a);return new $APP.Q(null,6,[$APP.Fk,b,gF,"repeat("+$APP.T.g(b)+",minmax(0,1fr))",$APP.Wj,g,$APP.im,aF(c),$APP.lj,aF(h),fF,a],null)},iF=function(a){var b=new $APP.Q(null,5,[$APP.Fk,a.getAttribute("columns"),$APP.Wj,a.getAttribute("gap"),$APP.im,a.getAttribute("row-gap"),$APP.lj,a.getAttribute("column-gap"),
4
- fF,a.getAttribute("row-height")],null);b=hF(b);a=$APP.k(a,"__xBentoGridBase");$APP.n(a)?(a=a.style,a.setProperty("--x-bento-grid-columns",gF.g(b)),a.setProperty("--x-bento-grid-row-height",fF.g(b)),a.setProperty("--x-bento-grid-row-gap",$APP.im.g(b)),b=a.setProperty("--x-bento-grid-column-gap",$APP.lj.g(b))):b=null;return b},jF=function(a){if(!$APP.Dg(a,"__xBentoGridInit")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");
5
- c.textContent="\n :host {\n display:block;\n }\n\n .base {\n display:grid;\n box-sizing:border-box;\n grid-template-columns:var(--x-bento-grid-columns);\n grid-auto-rows:var(--x-bento-grid-row-height);\n grid-auto-flow:dense;\n row-gap:var(--x-bento-grid-row-gap);\n column-gap:var(--x-bento-grid-column-gap);\n }\n ";d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xBentoGridRoot=b;a.__xBentoGridBase=d;a.__xBentoGridInit=!0}iF(a);
6
- return a},lF=function(){var a=class extends HTMLElement{};a.observedAttributes=kF;a.prototype.connectedCallback=function(){return jF(this)};a.prototype.attributeChangedCallback=function(){return $APP.Dg(this,"__xBentoGridInit")?iF(this):jF(this)};return a},mF=function(){return $APP.n(customElements.get("x-bento-grid"))?null:customElements.define("x-bento-grid",lF())},fF=new $APP.K(null,"row-height","row-height",527360749),gF=new $APP.K(null,"template","template",-702405684);var kF=["columns","gap","row-gap","column-gap","row-height"],bF=new $APP.R(null,new $APP.Q(null,6,["none",null,"xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null);$APP.ha("baredom.exports.x_bento_grid.init",mF);export const init=mF;
2
+ var CH=function(a){switch(a){case "none":return"0";case "xs":return"4px";case "sm":return"8px";case "md":return"16px";case "lg":return"24px";case "xl":return"32px";default:return"16px"}},EH=function(a){return $APP.I(DH,a)?a:"md"},FH=function(a){return typeof a==="string"&&$APP.N(a,"")?(a=parseInt(a,10),typeof a==="number"&&$APP.r(isNaN(a))?$APP.sh.i($APP.oh.i(a,1),12):4):4},GH=function(a){return typeof a==="string"&&$APP.N(a,"")?a:"auto"},JH=function(a){a=$APP.M(a);var b=$APP.D(a,$APP.Mk),c=$APP.D(a,
3
+ $APP.Yj),d=$APP.D(a,$APP.nm),e=$APP.D(a,$APP.qj);a=$APP.D(a,HH);b=FH(b);var g=EH(c);c=function(){var l=$APP.I(DH,d)?d:null;return $APP.n(l)?l:g}();var h=function(){var l=$APP.I(DH,e)?e:null;return $APP.n(l)?l:g}();a=GH(a);return new $APP.R(null,6,[$APP.Mk,b,IH,"repeat("+$APP.T.g(b)+",minmax(0,1fr))",$APP.Yj,g,$APP.nm,CH(c),$APP.qj,CH(h),HH,a],null)},KH=function(a){var b=new $APP.R(null,5,[$APP.Mk,a.getAttribute("columns"),$APP.Yj,a.getAttribute("gap"),$APP.nm,a.getAttribute("row-gap"),$APP.qj,a.getAttribute("column-gap"),
4
+ HH,a.getAttribute("row-height")],null);b=JH(b);a=$APP.k(a,"__xBentoGridBase");$APP.n(a)?(a=a.style,a.setProperty("--x-bento-grid-columns",IH.g(b)),a.setProperty("--x-bento-grid-row-height",HH.g(b)),a.setProperty("--x-bento-grid-row-gap",$APP.nm.g(b)),b=a.setProperty("--x-bento-grid-column-gap",$APP.qj.g(b))):b=null;return b},LH=function(a){if(!$APP.Dg(a,"__xBentoGridInit")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");
5
+ c.textContent="\n :host {\n display:block;\n }\n\n .base {\n display:grid;\n box-sizing:border-box;\n grid-template-columns:var(--x-bento-grid-columns);\n grid-auto-rows:var(--x-bento-grid-row-height);\n grid-auto-flow:dense;\n row-gap:var(--x-bento-grid-row-gap);\n column-gap:var(--x-bento-grid-column-gap);\n }\n ";d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xBentoGridRoot=b;a.__xBentoGridBase=d;a.__xBentoGridInit=!0}KH(a);
6
+ return a},NH=function(){var a=class extends HTMLElement{};a.observedAttributes=MH;a.prototype.connectedCallback=function(){return LH(this)};a.prototype.attributeChangedCallback=function(){return $APP.Dg(this,"__xBentoGridInit")?KH(this):LH(this)};return a},OH=function(){return $APP.n(customElements.get("x-bento-grid"))?null:customElements.define("x-bento-grid",NH())},HH=new $APP.K(null,"row-height","row-height",527360749),IH=new $APP.K(null,"template","template",-702405684);var MH=["columns","gap","row-gap","column-gap","row-height"],DH=new $APP.S(null,new $APP.R(null,6,["none",null,"xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null);$APP.ha("baredom.exports.x_bento_grid.init",OH);export const init=OH;
@@ -1,5 +1,5 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Iz=function(a){return typeof a==="string"&&$APP.N(a,"")?(a=parseInt(a,10),typeof a==="number"&&$APP.r(isNaN(a))?$APP.rh.i($APP.qh.i(a,1),6):1):1},Mz=function(a){var b=new $APP.Q(null,3,[$APP.om,a.getAttribute("col-span"),$APP.$h,a.getAttribute("row-span"),Jz,a.getAttribute("order")],null);var c=$APP.M(b);b=$APP.D(c,$APP.om);var d=$APP.D(c,$APP.$h);c=$APP.D(c,Jz);b=Iz(b);d=Iz(d);typeof c==="string"&&$APP.N(c,"")?(c=parseInt(c,10),c=typeof c==="number"&&$APP.r(isNaN(c))?c:null):c=null;b=new $APP.Q(null,
3
- 5,[$APP.om,b,$APP.$h,d,Kz,"span "+$APP.T.g(b),Lz,"span "+$APP.T.g(d),Jz,c],null);a=a.style;a.setProperty("grid-column",Kz.g(b));a.setProperty("grid-row",Lz.g(b));b=Jz.g(b);return $APP.n(b)?a.setProperty("order",""+$APP.T.g(b)):a.removeProperty("order")},Nz=function(a){if(!$APP.Dg(a,"__xBentoItemInit")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent="\n :host {\n display:block;\n min-width:0;\n min-height:0;\n }\n\n .base {\n width:100%;\n height:100%;\n box-sizing:border-box;\n }\n ";
4
- d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xBentoItemRoot=b;a.__xBentoItemBase=d;a.__xBentoItemInit=!0}Mz(a);return a},Pz=function(){var a=class extends HTMLElement{};a.observedAttributes=Oz;a.prototype.connectedCallback=function(){return Nz(this)};a.prototype.attributeChangedCallback=function(){return $APP.Dg(this,"__xBentoItemInit")?Mz(this):Nz(this)};return a},Qz=function(){return $APP.n(customElements.get("x-bento-item"))?null:customElements.define("x-bento-item",
5
- Pz())},Lz=new $APP.K(null,"row-span-css","row-span-css",956357389),Jz=new $APP.K(null,"order","order",-1254677256),Kz=new $APP.K(null,"col-span-css","col-span-css",-1306581329);var Oz=["col-span","row-span","order"];$APP.ha("baredom.exports.x_bento_item.init",Qz);export const init=Qz;
2
+ var tA=function(a){return typeof a==="string"&&$APP.N(a,"")?(a=parseInt(a,10),typeof a==="number"&&$APP.r(isNaN(a))?$APP.sh.i($APP.oh.i(a,1),6):1):1},xA=function(a){var b=new $APP.R(null,3,[$APP.tm,a.getAttribute("col-span"),$APP.Yh,a.getAttribute("row-span"),uA,a.getAttribute("order")],null);var c=$APP.M(b);b=$APP.D(c,$APP.tm);var d=$APP.D(c,$APP.Yh);c=$APP.D(c,uA);b=tA(b);d=tA(d);typeof c==="string"&&$APP.N(c,"")?(c=parseInt(c,10),c=typeof c==="number"&&$APP.r(isNaN(c))?c:null):c=null;b=new $APP.R(null,
3
+ 5,[$APP.tm,b,$APP.Yh,d,vA,"span "+$APP.T.g(b),wA,"span "+$APP.T.g(d),uA,c],null);a=a.style;a.setProperty("grid-column",vA.g(b));a.setProperty("grid-row",wA.g(b));b=uA.g(b);return $APP.n(b)?a.setProperty("order",""+$APP.T.g(b)):a.removeProperty("order")},yA=function(a){if(!$APP.Dg(a,"__xBentoItemInit")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent="\n :host {\n display:block;\n min-width:0;\n min-height:0;\n }\n\n .base {\n width:100%;\n height:100%;\n box-sizing:border-box;\n }\n ";
4
+ d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xBentoItemRoot=b;a.__xBentoItemBase=d;a.__xBentoItemInit=!0}xA(a);return a},AA=function(){var a=class extends HTMLElement{};a.observedAttributes=zA;a.prototype.connectedCallback=function(){return yA(this)};a.prototype.attributeChangedCallback=function(){return $APP.Dg(this,"__xBentoItemInit")?xA(this):yA(this)};return a},BA=function(){return $APP.n(customElements.get("x-bento-item"))?null:customElements.define("x-bento-item",
5
+ AA())},wA=new $APP.K(null,"row-span-css","row-span-css",956357389),uA=new $APP.K(null,"order","order",-1254677256),vA=new $APP.K(null,"col-span-css","col-span-css",-1306581329);var zA=["col-span","row-span","order"];$APP.ha("baredom.exports.x_bento_item.init",BA);export const init=BA;
@@ -1,15 +1,15 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var xt=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.I(a,c)?c:b},yt=function(a,b){if(typeof a==="string"){a=parseInt(a,10);var c=isFinite(a);return $APP.n($APP.n(c)?a>0:c)?a:b}return b},zt=function(a){var b=$APP.k(a,"__xBreadcrumbsRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("nav"),e=document.createElement("ol"),g=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-breadcrumbs-color:rgba(0,0,0,0.55);--x-breadcrumbs-color-current:rgba(0,0,0,0.88);--x-breadcrumbs-color-hover:rgba(0,0,0,0.80);--x-breadcrumbs-separator-color:rgba(0,0,0,0.35);--x-breadcrumbs-font-size:var(--x-font-size-sm,0.875rem);--x-breadcrumbs-gap:0.25rem;--x-breadcrumbs-disabled-opacity:0.55;}@media (prefers-color-scheme:dark){:host{--x-breadcrumbs-color:rgba(255,255,255,0.50);--x-breadcrumbs-color-current:rgba(255,255,255,0.90);--x-breadcrumbs-color-hover:rgba(255,255,255,0.75);--x-breadcrumbs-separator-color:rgba(255,255,255,0.30);}}:host([data-size\x3d'sm']){--x-breadcrumbs-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-breadcrumbs-font-size:1rem;}:host([disabled]){opacity:var(--x-breadcrumbs-disabled-opacity);pointer-events:none;}[part\x3droot]{display:block;font-size:var(--x-breadcrumbs-font-size);}[part\x3dlist]{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-breadcrumbs-gap);}:host([data-wrap\x3d'false']) [part\x3dlist]{flex-wrap:nowrap;}.crumb{display:inline-flex;align-items:center;gap:var(--x-breadcrumbs-gap);}.crumb-content{color:var(--x-breadcrumbs-color);text-decoration:none;cursor:pointer;}.crumb-content:hover{color:var(--x-breadcrumbs-color-hover);}.crumb[data-current] .crumb-content{color:var(--x-breadcrumbs-color-current);font-weight:500;}:host([data-variant\x3d'subtle']) .crumb-content{opacity:0.75;}:host([data-variant\x3d'text']) .crumb-content{text-decoration:none;border-bottom:none;}.separator{color:var(--x-breadcrumbs-separator-color);user-select:none;aria-hidden:true;flex-shrink:0;}.ellipsis{display:inline-flex;align-items:center;gap:var(--x-breadcrumbs-gap);}.ellipsis-btn{color:var(--x-breadcrumbs-color);background:none;border:none;padding:0;cursor:pointer;font:inherit;line-height:1;}.ellipsis-btn:hover{color:var(--x-breadcrumbs-color-hover);}slot{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dlist]{transition:none !important;}}";
3
- d.setAttribute("part","root");e.setAttribute("part","list");d.appendChild(e);b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xBreadcrumbsRefs=new $APP.Q(null,3,[$APP.xi,d,$APP.Sk,e,$APP.rl,g],null);return $APP.k(a,"__xBreadcrumbsRefs")},At=function(a){var b=document.createElement("span");b.setAttribute("class","separator");b.setAttribute("aria-hidden","true");b.textContent=a;return b},Bt=function(a){var b=document.createElement("li"),c=document.createElement("span"),d=document.createElement("button");
4
- b.setAttribute("class","ellipsis");c.setAttribute("class","separator");c.setAttribute("aria-hidden","true");c.textContent=a;d.setAttribute("class","ellipsis-btn");d.setAttribute("aria-label","Show hidden breadcrumbs");d.textContent="…";b.appendChild(c);b.appendChild(d);return b},Ct=function(a,b){var c=document.createElement("li"),d=document.createElement("span");a=a.cloneNode(!0);c.setAttribute("class","crumb");d.setAttribute("class","crumb-content");d.appendChild(a);c.appendChild(d);$APP.n(b)&&(c.setAttribute("data-current",
5
- ""),d.setAttribute("aria-current","page"));return c},St=function(a){var b=$APP.zf([$APP.hl,Dt,$APP.Al,Et,Ft,$APP.Il,Gt,Ht,$APP.Sj,It,$APP.xj],[a.getAttribute("variant"),a.getAttribute("max-items"),a.hasAttribute("disabled"),a.getAttribute("wrap"),a.getAttribute("items-after"),a.getAttribute("size"),a.hasAttribute("preserve-aria-current"),a.getAttribute("items-before"),a.getAttribute("aria-label"),a.getAttribute("separator"),a.getAttribute("aria-describedby")]);var c=$APP.M(b);b=$APP.D(c,$APP.Sj);
6
- var d=$APP.D(c,It),e=$APP.D(c,$APP.xj),g=$APP.D(c,Dt),h=$APP.D(c,$APP.hl),l=$APP.D(c,$APP.Al),m=$APP.D(c,Ft),p=$APP.D(c,Et),q=$APP.D(c,$APP.Il),v=$APP.D(c,Gt);c=$APP.D(c,Ht);v=$APP.F(v);m=yt(m,2);p=$APP.Ig(p);l=$APP.F(l);h=xt(Jt,"default",h);if(typeof g==="string"){g=parseInt(g,10);var x=isFinite(g);g=$APP.n($APP.n(x)?g>0:x)?g:null}else g=null;b=$APP.zf([Kt,Lt,Mt,$APP.Nj,$APP.Tg,Nt,$APP.Kh,$APP.Lm,Ot,$APP.Cl,$APP.Tk],[v,m,p,l,h,g,xt(Pt,"md",q),e,yt(c,1),b,typeof d==="string"?d:"/"]);b=$APP.M(b);d=
7
- $APP.D(b,$APP.Kh);e=$APP.D(b,$APP.Tg);q=$APP.D(b,Mt);c=$APP.D(b,$APP.Cl);v=$APP.D(b,$APP.Lm);g=zt(a);g=$APP.M(g);g=$APP.D(g,$APP.xi);a.setAttribute("data-size",d);a.setAttribute("data-variant",e);a.setAttribute("data-wrap",""+$APP.T.g($APP.F(q)));$APP.n(c)?g.setAttribute("aria-label",c):g.setAttribute("aria-label","Breadcrumb");$APP.n(v)?g.setAttribute("aria-describedby",v):g.removeAttribute("aria-describedby");e=$APP.M(b);d=$APP.D(e,$APP.Tk);m=$APP.D(e,Nt);h=$APP.D(e,Ot);g=$APP.D(e,Lt);e=$APP.D(e,
8
- Kt);q=zt(a);q=$APP.M(q);c=$APP.D(q,$APP.rl);q=$APP.D(q,$APP.Sk);c=$APP.vc(c.assignedElements());v=$APP.z(c);m==null||v<=m?g=new $APP.Q(null,3,[$APP.yl,$APP.xe($APP.dg(0,v)),Qt,-1,Rt,v],null):(m=$APP.rh.i(h,$APP.qh.i(0,v-g)),g=$APP.rh.i(g,$APP.qh.i(0,v-m)),m=$APP.rh.i(m,v-g),m=$APP.qh.i(0,m),m=$APP.xe($APP.dg(0,m)),g=$APP.xe($APP.dg(v-g,v)),g=new $APP.Q(null,3,[$APP.yl,$APP.We.i(m,g),Qt,$APP.z(m),Rt,v],null));v=$APP.yl.g(g);g=Qt.g(g);q.innerHTML="";m=$APP.t($APP.Xd($APP.wh,v));h=null;for(l=p=0;;)if(l<
9
- p){var y=h.F(null,l);x=$APP.Ac(y,0,null);y=$APP.Ac(y,1,null);y=$APP.Ac(c,y,null);var A=$APP.C.i(x,$APP.z(v)-1)&&$APP.r(e);$APP.C.i(x,g)&&q.appendChild(Bt(d));x>0&&!$APP.C.i(x,g)&&q.appendChild(At(d));$APP.C.i(x,g)&&q.appendChild(At(d));$APP.n(y)&&q.appendChild(Ct(y,A));l+=1}else if(m=$APP.t(m))$APP.Nc(m)?(p=$APP.yb(m),m=$APP.zb(m),h=p,p=$APP.z(p)):(p=$APP.u(m),h=$APP.Ac(p,0,null),p=$APP.Ac(p,1,null),p=$APP.Ac(c,p,null),l=$APP.C.i(h,$APP.z(v)-1)&&$APP.r(e),$APP.C.i(h,g)&&q.appendChild(Bt(d)),h>0&&
10
- !$APP.C.i(h,g)&&q.appendChild(At(d)),$APP.C.i(h,g)&&q.appendChild(At(d)),$APP.n(p)&&q.appendChild(Ct(p,l)),m=$APP.w(m),h=null,p=0),l=0;else break;$APP.C.i(g,$APP.z(v))&&q.appendChild(Bt(d));a.__xBreadcrumbsModel=b;return null},Tt=function(a){function b(){return St(a)}var c=zt(a);c=$APP.M(c);c=$APP.D(c,$APP.rl);$APP.n(c)&&c.addEventListener("slotchange",b);$APP.ja(a,"__xBreadcrumbsHandlers",{slot:b})},Ut=function(a){var b=$APP.k(a,"__xBreadcrumbsHandlers");if($APP.n(b)){var c=$APP.k(a,"__xBreadcrumbsRefs");
11
- $APP.n(c)&&(c=$APP.rl.g(c),b=$APP.k(b,"slot"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("slotchange",b))}a.__xBreadcrumbsHandlers=null},Vt=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Wt=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return $APP.n(d)?this.setAttribute(b,
12
- ""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Xt=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Yt=function(a,b,c){Object.defineProperty(a,b,{get:function(){return yt(this.getAttribute(b),c)},set:function(d){return d!=null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Zt=
13
- function(a){Wt(a,"separator","/");Wt(a,"size","md");Wt(a,"variant","default");Xt(a,"wrap");Xt(a,"disabled");Xt(a,"preserve-aria-current");Yt(a,"max-items",null);Yt(a,"items-before",1);Yt(a,"items-after",2);Vt(a,"aria-label");Vt(a,"aria-describedby")},au=function(){var a=class extends HTMLElement{};a.observedAttributes=$t;a.prototype.connectedCallback=function(){zt(this);Ut(this);Tt(this);St(this);return null};a.prototype.disconnectedCallback=function(){Ut(this);return null};a.prototype.attributeChangedCallback=
14
- function(b,c,d){$APP.N(c,d)&&St(this);return null};Zt(a.prototype);return a},bu=function(){$APP.n(customElements.get("x-breadcrumbs"))||customElements.define("x-breadcrumbs",au());return null},Lt=new $APP.K(null,"items-after","items-after",358736705),Mt=new $APP.K(null,"wrap","wrap",851669987),It=new $APP.K(null,"separator-raw","separator-raw",1358337914),Ht=new $APP.K(null,"items-before-raw","items-before-raw",1580997624),Dt=new $APP.K(null,"max-items-raw","max-items-raw",-340487390),Et=new $APP.K(null,
15
- "wrap-raw","wrap-raw",-1468030804),Nt=new $APP.K(null,"max-items","max-items",-1969244147),Qt=new $APP.K(null,"ellipsis-at","ellipsis-at",-628372349),Gt=new $APP.K(null,"preserve-aria-current-present?","preserve-aria-current-present?",729931506),Ft=new $APP.K(null,"items-after-raw","items-after-raw",-1677187220),Ot=new $APP.K(null,"items-before","items-before",-1151895719),Kt=new $APP.K(null,"preserve-aria-current","preserve-aria-current",682773185),Rt=new $APP.K(null,"total","total",1916810418);var $t="separator size variant wrap max-items items-before items-after disabled preserve-aria-current aria-label aria-describedby".split(" "),Pt=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),Jt=new $APP.R(null,new $APP.Q(null,3,["subtle",null,"text",null,"default",null],null),null);$APP.ha("baredom.exports.x_breadcrumbs.init",bu);export const init=bu;
2
+ var Ft=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.I(a,c)?c:b},Gt=function(a,b){if(typeof a==="string"){a=parseInt(a,10);var c=isFinite(a);return $APP.n($APP.n(c)?a>0:c)?a:b}return b},Ht=function(a){var b=$APP.k(a,"__xBreadcrumbsRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("nav"),e=document.createElement("ol"),g=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-breadcrumbs-color:rgba(0,0,0,0.55);--x-breadcrumbs-color-current:rgba(0,0,0,0.88);--x-breadcrumbs-color-hover:rgba(0,0,0,0.80);--x-breadcrumbs-separator-color:rgba(0,0,0,0.35);--x-breadcrumbs-font-size:var(--x-font-size-sm,0.875rem);--x-breadcrumbs-gap:0.25rem;--x-breadcrumbs-disabled-opacity:0.55;}@media (prefers-color-scheme:dark){:host{--x-breadcrumbs-color:rgba(255,255,255,0.50);--x-breadcrumbs-color-current:rgba(255,255,255,0.90);--x-breadcrumbs-color-hover:rgba(255,255,255,0.75);--x-breadcrumbs-separator-color:rgba(255,255,255,0.30);}}:host([data-size\x3d'sm']){--x-breadcrumbs-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-breadcrumbs-font-size:1rem;}:host([disabled]){opacity:var(--x-breadcrumbs-disabled-opacity);pointer-events:none;}[part\x3droot]{display:block;font-size:var(--x-breadcrumbs-font-size);}[part\x3dlist]{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-breadcrumbs-gap);}:host([data-wrap\x3d'false']) [part\x3dlist]{flex-wrap:nowrap;}.crumb{display:inline-flex;align-items:center;gap:var(--x-breadcrumbs-gap);}.crumb-content{color:var(--x-breadcrumbs-color);text-decoration:none;cursor:pointer;}.crumb-content:hover{color:var(--x-breadcrumbs-color-hover);}.crumb[data-current] .crumb-content{color:var(--x-breadcrumbs-color-current);font-weight:500;}:host([data-variant\x3d'subtle']) .crumb-content{opacity:0.75;}:host([data-variant\x3d'text']) .crumb-content{text-decoration:none;border-bottom:none;}.separator{color:var(--x-breadcrumbs-separator-color);user-select:none;aria-hidden:true;flex-shrink:0;}.ellipsis{display:inline-flex;align-items:center;gap:var(--x-breadcrumbs-gap);}.ellipsis-btn{color:var(--x-breadcrumbs-color);background:none;border:none;padding:0;cursor:pointer;font:inherit;line-height:1;}.ellipsis-btn:hover{color:var(--x-breadcrumbs-color-hover);}slot{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dlist]{transition:none !important;}}";
3
+ d.setAttribute("part","root");e.setAttribute("part","list");d.appendChild(e);b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xBreadcrumbsRefs=new $APP.R(null,3,[$APP.Bi,d,$APP.bl,e,$APP.Dl,g],null);return $APP.k(a,"__xBreadcrumbsRefs")},It=function(a){var b=document.createElement("span");b.setAttribute("class","separator");b.setAttribute("aria-hidden","true");b.textContent=a;return b},Jt=function(a){var b=document.createElement("li"),c=document.createElement("span"),d=document.createElement("button");
4
+ b.setAttribute("class","ellipsis");c.setAttribute("class","separator");c.setAttribute("aria-hidden","true");c.textContent=a;d.setAttribute("class","ellipsis-btn");d.setAttribute("aria-label","Show hidden breadcrumbs");d.textContent="…";b.appendChild(c);b.appendChild(d);return b},Kt=function(a,b){var c=document.createElement("li"),d=document.createElement("span");a=a.cloneNode(!0);c.setAttribute("class","crumb");d.setAttribute("class","crumb-content");d.appendChild(a);c.appendChild(d);$APP.n(b)&&(c.setAttribute("data-current",
5
+ ""),d.setAttribute("aria-current","page"));return c},$t=function(a){var b=$APP.zf([$APP.sl,Lt,$APP.Ml,Mt,Nt,$APP.Ul,Ot,Pt,$APP.Uj,Qt,$APP.Cj],[a.getAttribute("variant"),a.getAttribute("max-items"),a.hasAttribute("disabled"),a.getAttribute("wrap"),a.getAttribute("items-after"),a.getAttribute("size"),a.hasAttribute("preserve-aria-current"),a.getAttribute("items-before"),a.getAttribute("aria-label"),a.getAttribute("separator"),a.getAttribute("aria-describedby")]);var c=$APP.M(b);b=$APP.D(c,$APP.Uj);
6
+ var d=$APP.D(c,Qt),e=$APP.D(c,$APP.Cj),g=$APP.D(c,Lt),h=$APP.D(c,$APP.sl),l=$APP.D(c,$APP.Ml),m=$APP.D(c,Nt),p=$APP.D(c,Mt),q=$APP.D(c,$APP.Ul),v=$APP.D(c,Ot);c=$APP.D(c,Pt);v=$APP.F(v);m=Gt(m,2);p=$APP.Kg(p);l=$APP.F(l);h=Ft(Rt,"default",h);if(typeof g==="string"){g=parseInt(g,10);var x=isFinite(g);g=$APP.n($APP.n(x)?g>0:x)?g:null}else g=null;b=$APP.zf([St,Tt,Ut,$APP.Pj,$APP.Vg,Vt,$APP.Mh,$APP.Ym,Wt,$APP.Ol,$APP.cl],[v,m,p,l,h,g,Ft(Xt,"md",q),e,Gt(c,1),b,typeof d==="string"?d:"/"]);b=$APP.M(b);d=
7
+ $APP.D(b,$APP.Mh);e=$APP.D(b,$APP.Vg);q=$APP.D(b,Ut);c=$APP.D(b,$APP.Ol);v=$APP.D(b,$APP.Ym);g=Ht(a);g=$APP.M(g);g=$APP.D(g,$APP.Bi);a.setAttribute("data-size",d);a.setAttribute("data-variant",e);a.setAttribute("data-wrap",""+$APP.T.g($APP.F(q)));$APP.n(c)?g.setAttribute("aria-label",c):g.setAttribute("aria-label","Breadcrumb");$APP.n(v)?g.setAttribute("aria-describedby",v):g.removeAttribute("aria-describedby");e=$APP.M(b);d=$APP.D(e,$APP.cl);m=$APP.D(e,Vt);h=$APP.D(e,Wt);g=$APP.D(e,Tt);e=$APP.D(e,
8
+ St);q=Ht(a);q=$APP.M(q);c=$APP.D(q,$APP.Dl);q=$APP.D(q,$APP.bl);c=$APP.vc(c.assignedElements());v=$APP.z(c);m==null||v<=m?g=new $APP.R(null,3,[$APP.Kl,$APP.xe($APP.dg(0,v)),Yt,-1,Zt,v],null):(m=$APP.sh.i(h,$APP.oh.i(0,v-g)),g=$APP.sh.i(g,$APP.oh.i(0,v-m)),m=$APP.sh.i(m,v-g),m=$APP.oh.i(0,m),m=$APP.xe($APP.dg(0,m)),g=$APP.xe($APP.dg(v-g,v)),g=new $APP.R(null,3,[$APP.Kl,$APP.We.i(m,g),Yt,$APP.z(m),Zt,v],null));v=$APP.Kl.g(g);g=Yt.g(g);q.innerHTML="";m=$APP.t($APP.Xd($APP.xh,v));h=null;for(l=p=0;;)if(l<
9
+ p){var y=h.F(null,l);x=$APP.Ac(y,0,null);y=$APP.Ac(y,1,null);y=$APP.Ac(c,y,null);var A=$APP.B.i(x,$APP.z(v)-1)&&$APP.r(e);$APP.B.i(x,g)&&q.appendChild(Jt(d));x>0&&!$APP.B.i(x,g)&&q.appendChild(It(d));$APP.B.i(x,g)&&q.appendChild(It(d));$APP.n(y)&&q.appendChild(Kt(y,A));l+=1}else if(m=$APP.t(m))$APP.Nc(m)?(p=$APP.yb(m),m=$APP.zb(m),h=p,p=$APP.z(p)):(p=$APP.u(m),h=$APP.Ac(p,0,null),p=$APP.Ac(p,1,null),p=$APP.Ac(c,p,null),l=$APP.B.i(h,$APP.z(v)-1)&&$APP.r(e),$APP.B.i(h,g)&&q.appendChild(Jt(d)),h>0&&
10
+ !$APP.B.i(h,g)&&q.appendChild(It(d)),$APP.B.i(h,g)&&q.appendChild(It(d)),$APP.n(p)&&q.appendChild(Kt(p,l)),m=$APP.w(m),h=null,p=0),l=0;else break;$APP.B.i(g,$APP.z(v))&&q.appendChild(Jt(d));a.__xBreadcrumbsModel=b;return null},au=function(a){function b(){return $t(a)}var c=Ht(a);c=$APP.M(c);c=$APP.D(c,$APP.Dl);$APP.n(c)&&c.addEventListener("slotchange",b);$APP.ja(a,"__xBreadcrumbsHandlers",{slot:b})},bu=function(a){var b=$APP.k(a,"__xBreadcrumbsHandlers");if($APP.n(b)){var c=$APP.k(a,"__xBreadcrumbsRefs");
11
+ $APP.n(c)&&(c=$APP.Dl.g(c),b=$APP.k(b,"slot"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("slotchange",b))}a.__xBreadcrumbsHandlers=null},cu=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},du=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return $APP.n(d)?this.setAttribute(b,
12
+ ""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},eu=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},fu=function(a,b,c){Object.defineProperty(a,b,{get:function(){return Gt(this.getAttribute(b),c)},set:function(d){return d!=null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},gu=
13
+ function(a){du(a,"separator","/");du(a,"size","md");du(a,"variant","default");eu(a,"wrap");eu(a,"disabled");eu(a,"preserve-aria-current");fu(a,"max-items",null);fu(a,"items-before",1);fu(a,"items-after",2);cu(a,"aria-label");cu(a,"aria-describedby")},iu=function(){var a=class extends HTMLElement{};a.observedAttributes=hu;a.prototype.connectedCallback=function(){Ht(this);bu(this);au(this);$t(this);return null};a.prototype.disconnectedCallback=function(){bu(this);return null};a.prototype.attributeChangedCallback=
14
+ function(b,c,d){$APP.N(c,d)&&$t(this);return null};gu(a.prototype);return a},ju=function(){$APP.n(customElements.get("x-breadcrumbs"))||customElements.define("x-breadcrumbs",iu());return null},Tt=new $APP.K(null,"items-after","items-after",358736705),Ut=new $APP.K(null,"wrap","wrap",851669987),Qt=new $APP.K(null,"separator-raw","separator-raw",1358337914),Pt=new $APP.K(null,"items-before-raw","items-before-raw",1580997624),Lt=new $APP.K(null,"max-items-raw","max-items-raw",-340487390),Mt=new $APP.K(null,
15
+ "wrap-raw","wrap-raw",-1468030804),Vt=new $APP.K(null,"max-items","max-items",-1969244147),Yt=new $APP.K(null,"ellipsis-at","ellipsis-at",-628372349),Ot=new $APP.K(null,"preserve-aria-current-present?","preserve-aria-current-present?",729931506),Nt=new $APP.K(null,"items-after-raw","items-after-raw",-1677187220),Wt=new $APP.K(null,"items-before","items-before",-1151895719),St=new $APP.K(null,"preserve-aria-current","preserve-aria-current",682773185),Zt=new $APP.K(null,"total","total",1916810418);var hu="separator size variant wrap max-items items-before items-after disabled preserve-aria-current aria-label aria-describedby".split(" "),Xt=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),Rt=new $APP.S(null,new $APP.R(null,3,["subtle",null,"text",null,"default",null],null),null);$APP.ha("baredom.exports.x_breadcrumbs.init",ju);export const init=ju;