@luzmo/lucero 1.0.1-alpha.14 → 1.0.1-alpha.16

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 (275) hide show
  1. package/components/accordion/index.cjs +183 -6
  2. package/components/accordion/index.js +136 -88
  3. package/components/action-bar/index.cjs +85 -4
  4. package/components/action-bar/index.js +72 -50
  5. package/components/action-button/index.cjs +205 -3
  6. package/components/action-button/index.js +167 -93
  7. package/components/action-group/index.cjs +7 -1
  8. package/components/action-group/index.js +12 -8
  9. package/components/action-group-DHp8RHDf.js +392 -0
  10. package/components/action-group-MPf19RPV.cjs +391 -0
  11. package/components/action-menu/index.cjs +91 -11
  12. package/components/action-menu/index.js +66 -47
  13. package/components/avatar/index.cjs +63 -3
  14. package/components/avatar/index.js +54 -42
  15. package/components/base-COw9n7UR.cjs +119 -0
  16. package/components/base-DmeVy0cq.js +120 -0
  17. package/components/button/index.cjs +134 -2
  18. package/components/button/index.js +106 -72
  19. package/components/button-base-7Ak55xFd.cjs +206 -0
  20. package/components/button-base-C3kf6BTK.js +207 -0
  21. package/components/button-group/index.cjs +45 -1
  22. package/components/button-group/index.js +37 -25
  23. package/components/calendar/index.cjs +632 -1
  24. package/components/calendar/index.js +637 -7
  25. package/components/checkbox/index.cjs +111 -4
  26. package/components/checkbox/index.js +98 -53
  27. package/components/checkbox-mixin-8cL-vfDy.js +84 -0
  28. package/components/checkbox-mixin-CE7dJj3J.cjs +83 -0
  29. package/components/clear-button-Co6oKSgl.js +59 -0
  30. package/components/clear-button-X_HDY2eH.cjs +58 -0
  31. package/components/close-button-DPBK6Kpu.cjs +59 -0
  32. package/components/close-button-Miw9ZjoJ.js +60 -0
  33. package/components/color-area/index.cjs +440 -13
  34. package/components/color-area/index.js +322 -187
  35. package/components/color-controller-BjDZaxhX.js +491 -0
  36. package/components/color-controller-C3c_vb2P.cjs +490 -0
  37. package/components/color-field/index.cjs +95 -2
  38. package/components/color-field/index.js +77 -41
  39. package/components/color-handle/index.cjs +64 -3
  40. package/components/color-handle/index.js +58 -37
  41. package/components/color-loupe/index.cjs +7 -1
  42. package/components/color-loupe/index.js +12 -8
  43. package/components/color-loupe-BQqNR8YD.cjs +88 -0
  44. package/components/color-loupe-B_DDFv8l.js +89 -0
  45. package/components/color-menu/index.cjs +217 -12
  46. package/components/color-menu/index.js +187 -93
  47. package/components/color-palette/index.cjs +89 -1
  48. package/components/color-palette/index.js +78 -51
  49. package/components/color-palette-group/index.cjs +259 -3
  50. package/components/color-palette-group/index.js +193 -105
  51. package/components/color-picker/index.cjs +114 -6
  52. package/components/color-picker/index.js +92 -72
  53. package/components/color-slider/index.cjs +585 -1
  54. package/components/color-slider/index.js +590 -7
  55. package/components/{directive-oAbCiebi.js → condition-attribute-with-id-Cn815e9W.js} +22 -22
  56. package/components/condition-attribute-with-id-DEc2Yjne.cjs +43 -0
  57. package/components/date-time-picker/index.cjs +1357 -31
  58. package/components/date-time-picker/index.js +951 -637
  59. package/components/dependency-manger-CcIE1uvQ.cjs +63 -0
  60. package/components/{dependency-manger-CEXvGQUV.js → dependency-manger-XHpQjFgK.js} +24 -14
  61. package/components/divider/index.cjs +54 -1
  62. package/components/divider/index.js +49 -30
  63. package/components/divider.module-Cm5LcDRV.cjs +20 -0
  64. package/components/divider.module-DauH6k2_.js +21 -0
  65. package/components/element-resolution-DCsrhGZO.cjs +112 -0
  66. package/components/element-resolution-nMlmW4Jy.js +113 -0
  67. package/components/field-group/index.cjs +7 -1
  68. package/components/field-group/index.js +12 -8
  69. package/components/field-group-DNmY8W9v.cjs +86 -0
  70. package/components/field-group-DVdAWCQF.js +87 -0
  71. package/components/field-label/index.cjs +7 -1
  72. package/components/field-label/index.js +12 -8
  73. package/components/field-label-CKH9EXpR.cjs +156 -0
  74. package/components/field-label-Dpsecoc6.js +157 -0
  75. package/components/focus-group-BqDAk9Is.js +337 -0
  76. package/components/focus-group-DFzOlalL.cjs +336 -0
  77. package/components/focus-visible-B-B8-P9R.cjs +104 -0
  78. package/components/focus-visible-BUPRWlsh.js +105 -0
  79. package/components/focusable-BPrTcZPd.cjs +262 -0
  80. package/components/focusable-ChCLg1k4.js +263 -0
  81. package/components/{directive-C7oCP5Bh.cjs → focusable-selectors-D0t_5P7C.cjs} +16 -5
  82. package/components/{focusable-selectors-B4YgbghQ.js → focusable-selectors-IltOAOd9.js} +7 -4
  83. package/components/icon/index.cjs +90 -1
  84. package/components/icon/index.js +74 -46
  85. package/components/index.cjs +174 -1
  86. package/components/index.js +174 -172
  87. package/components/infield-button/index.cjs +46 -2
  88. package/components/infield-button/index.js +41 -30
  89. package/components/label/index.cjs +37 -1
  90. package/components/label/index.js +36 -24
  91. package/components/{language-resolution-8yZa5r_P.js → language-resolution-BSGJAWiQ.js} +21 -16
  92. package/components/language-resolution-iN9EImbb.cjs +57 -0
  93. package/components/like-anchor-D62faRNG.cjs +79 -0
  94. package/components/like-anchor-v3cJ9RWM.js +80 -0
  95. package/components/manage-help-text-BYx84zZR.cjs +125 -0
  96. package/components/manage-help-text-DOuMTGht.js +126 -0
  97. package/components/menu/index.cjs +1297 -29
  98. package/components/menu/index.js +954 -499
  99. package/components/multi-language-field/index.cjs +132 -2
  100. package/components/multi-language-field/index.js +118 -88
  101. package/components/number-field/index.cjs +613 -10
  102. package/components/number-field/index.js +442 -243
  103. package/components/observe-slot-presence-9AwLGUQ_.cjs +78 -0
  104. package/components/observe-slot-presence-DcMdoumP.js +79 -0
  105. package/components/observe-slot-text-CSofZeeF.cjs +104 -0
  106. package/components/observe-slot-text-CjnkkBPn.js +105 -0
  107. package/components/options/index.cjs +693 -60
  108. package/components/options/index.js +519 -953
  109. package/components/overlay/index.cjs +367 -21
  110. package/components/overlay/index.js +273 -189
  111. package/components/overlay-CN8ISP1F.js +2485 -0
  112. package/components/overlay-LViy9VWM.cjs +2484 -0
  113. package/components/{pending-state-DTX7ggyF.js → pending-state-CXbe-Xul.js} +28 -13
  114. package/components/pending-state-e4RbXe9u.cjs +75 -0
  115. package/components/picker/index.cjs +9 -1
  116. package/components/picker/index.js +15 -11
  117. package/components/picker-DNde3awt.cjs +672 -0
  118. package/components/picker-PfUAF05y.js +673 -0
  119. package/components/picker-button/index.cjs +56 -4
  120. package/components/picker-button/index.js +45 -34
  121. package/components/platform-CxDar3Dn.cjs +68 -0
  122. package/components/platform-Cxn0WbyT.js +69 -0
  123. package/components/popover/index.cjs +7 -1
  124. package/components/popover/index.js +12 -8
  125. package/components/popover-BkbYhl3i.js +74 -0
  126. package/components/popover-BkgUf0kL.cjs +74 -0
  127. package/components/progress-circle/index.cjs +7 -1
  128. package/components/progress-circle/index.js +12 -8
  129. package/components/progress-circle-Hu_ivPHf.js +133 -0
  130. package/components/progress-circle-_Etqsj9f.cjs +132 -0
  131. package/components/radio/index.cjs +244 -2
  132. package/components/radio/index.js +192 -110
  133. package/components/{when-CDK1Tt5Y.js → random-id-BE6HA503.cjs} +7 -10
  134. package/components/{random-id-ByCz1xaq.js → random-id-BEc6QIUL.js} +3 -3
  135. package/components/roving-tabindex-AsmAh2In.cjs +95 -0
  136. package/components/roving-tabindex-DPF9NmrH.js +96 -0
  137. package/components/search/index.cjs +115 -8
  138. package/components/search/index.js +96 -66
  139. package/components/select/index.cjs +720 -51
  140. package/components/select/index.js +563 -347
  141. package/components/sized-mixin-DmkrNdWB.js +80 -0
  142. package/components/sized-mixin-UaTVa-AE.cjs +79 -0
  143. package/components/slider/index.cjs +119 -1
  144. package/components/slider/index.js +100 -1113
  145. package/components/{condition-attribute-with-id-Dv4lSRbe.js → slottable-request-event-CANixJnR.cjs} +15 -13
  146. package/components/{slottable-request-event-DggLA4Rx.js → slottable-request-event-D9WzrdWv.js} +12 -9
  147. package/components/strategies-DlMlaSJR.cjs +317 -0
  148. package/components/strategies-DlPQoTFE.js +318 -0
  149. package/components/streaming-listener-D4sHaMub.cjs +145 -0
  150. package/components/streaming-listener-cAz5zJyk.js +146 -0
  151. package/components/swatch/index.cjs +436 -7
  152. package/components/swatch/index.js +350 -205
  153. package/components/switch/index.cjs +61 -2
  154. package/components/switch/index.js +51 -34
  155. package/components/tabs/index.cjs +693 -26
  156. package/components/tabs/index.js +521 -388
  157. package/components/tags/index.cjs +201 -4
  158. package/components/tags/index.js +152 -87
  159. package/components/text-field/index.cjs +49 -3
  160. package/components/text-field/index.js +44 -30
  161. package/components/text-field-11tcnftU.cjs +338 -0
  162. package/components/text-field-Chi9J2Cz.js +339 -0
  163. package/components/text-field.module-CMBS0jSL.js +21 -0
  164. package/components/text-field.module-DIJdV_sA.cjs +20 -0
  165. package/components/toast/index.cjs +177 -12
  166. package/components/toast/index.js +145 -73
  167. package/components/tooltip/index.cjs +221 -6
  168. package/components/tooltip/index.js +156 -109
  169. package/components/unit-input/index.cjs +232 -8
  170. package/components/unit-input/index.js +201 -108
  171. package/components/utils.cjs +25 -1
  172. package/components/utils.js +22 -22
  173. package/package.json +1 -1
  174. package/components/NumberFormatter-DewVDY5w.cjs +0 -18
  175. package/components/NumberFormatter-DgOUVrge.js +0 -136
  176. package/components/NumberParser-Dik4a0h-.cjs +0 -18
  177. package/components/NumberParser-ci9J5EKv.js +0 -173
  178. package/components/action-group-DBImibFn.js +0 -258
  179. package/components/action-group-DJGMcRHb.cjs +0 -20
  180. package/components/async-directive-BX1T1e1_.cjs +0 -22
  181. package/components/async-directive-BfcqVjDp.js +0 -82
  182. package/components/base-BjTwmyRF.cjs +0 -22
  183. package/components/base-CBCg3yyw.cjs +0 -40
  184. package/components/base-D76d76ww.js +0 -26
  185. package/components/base-WsynuqaS.js +0 -677
  186. package/components/button-base-DbkDzb71.js +0 -144
  187. package/components/button-base-XgPLmwP-.cjs +0 -25
  188. package/components/checkbox-mixin-BDN0dBtS.cjs +0 -27
  189. package/components/checkbox-mixin-Do7EgtpQ.js +0 -70
  190. package/components/class-map-Di1D_rCm.cjs +0 -22
  191. package/components/class-map-NbVXqBU0.js +0 -51
  192. package/components/clear-button-DQcRdcUa.js +0 -53
  193. package/components/clear-button-OFUFFe7G.cjs +0 -18
  194. package/components/close-button-Cbnb7XXj.cjs +0 -18
  195. package/components/close-button-CqHYZhum.js +0 -51
  196. package/components/color-controller-B0uX6Zso.js +0 -3230
  197. package/components/color-controller-CoUL5f9K.cjs +0 -18
  198. package/components/color-loupe-CaA_Lfkk.cjs +0 -56
  199. package/components/color-loupe-CmMsXbjT.js +0 -81
  200. package/components/condition-attribute-with-id-DrQYZzFS.cjs +0 -18
  201. package/components/dependency-manger-C5HCkMMB.cjs +0 -18
  202. package/components/directive-helpers-Cm6gitnu.js +0 -62
  203. package/components/directive-helpers-DyIRTWwA.cjs +0 -22
  204. package/components/divider.module-DDvBo9zo.cjs +0 -18
  205. package/components/divider.module-DoQWQEIJ.js +0 -21
  206. package/components/element-resolution-BvRLGqIU.cjs +0 -18
  207. package/components/element-resolution-FCUT-wql.js +0 -91
  208. package/components/field-group-DXfBWrkO.js +0 -66
  209. package/components/field-group-DkGst3r5.cjs +0 -23
  210. package/components/field-label-CZ2zzChK.js +0 -106
  211. package/components/field-label-mO1AkUgR.cjs +0 -25
  212. package/components/flow-D-0MTYCm.js +0 -527
  213. package/components/flow-DM3dNAKs.cjs +0 -30
  214. package/components/focus-group-DHeTq18L.js +0 -218
  215. package/components/focus-group-DnxZUBhQ.cjs +0 -18
  216. package/components/focus-visible-B0P9aY_G.cjs +0 -18
  217. package/components/focus-visible-DBlJGoEW.js +0 -74
  218. package/components/focusable-BxtpnzWp.js +0 -153
  219. package/components/focusable-EbipgXRh.cjs +0 -18
  220. package/components/focusable-selectors-BgFlyFcY.cjs +0 -18
  221. package/components/if-defined-C9YGdo33.cjs +0 -22
  222. package/components/if-defined-DOaE2coe.js +0 -27
  223. package/components/index-BwxgAdzi.cjs +0 -57
  224. package/components/index-Cl54m8Yh.js +0 -1490
  225. package/components/index-HjQa8tew.js +0 -1174
  226. package/components/index-Wq3qZJGh.cjs +0 -113
  227. package/components/language-resolution-DJzmyzZq.cjs +0 -18
  228. package/components/like-anchor-Bvn_vLQ8.js +0 -69
  229. package/components/like-anchor-sod1C1fR.cjs +0 -32
  230. package/components/luzmo-icons-4nDFv1Lq.js +0 -229
  231. package/components/luzmo-icons-D4IvHgVd.cjs +0 -29
  232. package/components/manage-help-text-DhgARkZX.cjs +0 -30
  233. package/components/manage-help-text-syYnjKGL.js +0 -92
  234. package/components/mutation-controller-DH7YOCyj.js +0 -52
  235. package/components/mutation-controller-DkOMCW-c.cjs +0 -22
  236. package/components/observe-slot-presence-CmVi0zTc.js +0 -68
  237. package/components/observe-slot-presence-bc9chhsi.cjs +0 -18
  238. package/components/observe-slot-text-BPfIQQtz.js +0 -87
  239. package/components/observe-slot-text-Ceb7SvYT.cjs +0 -18
  240. package/components/overlay-Cig9r6uU.js +0 -2747
  241. package/components/overlay-KSKMzzkh.cjs +0 -47
  242. package/components/pending-state-CaH1si5b.cjs +0 -26
  243. package/components/picker-BfBP7XJN.js +0 -461
  244. package/components/picker-xIphqE6d.cjs +0 -123
  245. package/components/platform-BM-uMWpX.js +0 -69
  246. package/components/platform-BiXhwqk3.cjs +0 -18
  247. package/components/popover-DjX0aAnY.js +0 -67
  248. package/components/popover-KFfO0IYL.cjs +0 -30
  249. package/components/progress-circle-BvRJNuNo.cjs +0 -33
  250. package/components/progress-circle-DXH9z8-6.js +0 -97
  251. package/components/query-BL-TJj7K.cjs +0 -22
  252. package/components/query-D_KR_GUc.js +0 -51
  253. package/components/query-assigned-elements-DjfhL1cl.js +0 -36
  254. package/components/query-assigned-elements-DsKsfk7G.cjs +0 -22
  255. package/components/query-assigned-nodes-BcKWmGzy.cjs +0 -22
  256. package/components/query-assigned-nodes-C76XVPWY.js +0 -36
  257. package/components/random-id-CqvckpWe.cjs +0 -18
  258. package/components/roving-tabindex-By_fCy_e.cjs +0 -18
  259. package/components/roving-tabindex-DOg4z6ZU.js +0 -66
  260. package/components/sized-mixin-CPxE5C96.cjs +0 -18
  261. package/components/sized-mixin-D4ACoVUr.js +0 -63
  262. package/components/slottable-request-event-BfUUt1Mh.cjs +0 -18
  263. package/components/state-D8JEtYqe.cjs +0 -22
  264. package/components/state-Deh-vKYE.js +0 -29
  265. package/components/strategies-9indNIEb.js +0 -195
  266. package/components/strategies-BACP6MhR.cjs +0 -18
  267. package/components/streaming-listener-B00MvALi.cjs +0 -18
  268. package/components/streaming-listener-CP-JE6Fa.js +0 -91
  269. package/components/style-map-CeilmSgs.cjs +0 -22
  270. package/components/style-map-IgqIKvlE.js +0 -53
  271. package/components/text-field-CeG75PPO.cjs +0 -85
  272. package/components/text-field-DCl-AFM-.js +0 -314
  273. package/components/text-field.module-C2KVUJcX.js +0 -21
  274. package/components/text-field.module-DXhFA9G-.cjs +0 -18
  275. package/components/when-CDZyJPvd.cjs +0 -22
@@ -1,677 +0,0 @@
1
- /*! * Lucero - The design system for Luzmo.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
- * This license allows users with a current active Luzmo account to use Lucero.
7
- * This license terminates automatically if a user no longer has an active Luzmo account.
8
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
- * SOFTWARE.
17
- * */
18
- /**
19
- * @license
20
- * Copyright 2019 Google LLC
21
- * SPDX-License-Identifier: BSD-3-Clause
22
- */
23
- const O = globalThis, j = O.ShadowRoot && (O.ShadyCSS === void 0 || O.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, B = Symbol(), q = /* @__PURE__ */ new WeakMap();
24
- let st = class {
25
- constructor(t, e, s) {
26
- if (this._$cssResult$ = !0, s !== B) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
27
- this.cssText = t, this.t = e;
28
- }
29
- get styleSheet() {
30
- let t = this.o;
31
- const e = this.t;
32
- if (j && t === void 0) {
33
- const s = e !== void 0 && e.length === 1;
34
- s && (t = q.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && q.set(e, t));
35
- }
36
- return t;
37
- }
38
- toString() {
39
- return this.cssText;
40
- }
41
- };
42
- const at = (n) => new st(typeof n == "string" ? n : n + "", void 0, B), Ht = (n, ...t) => {
43
- const e = n.length === 1 ? n[0] : t.reduce((s, i, o) => s + ((r) => {
44
- if (r._$cssResult$ === !0) return r.cssText;
45
- if (typeof r == "number") return r;
46
- throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
47
- })(i) + n[o + 1], n[0]);
48
- return new st(e, n, B);
49
- }, lt = (n, t) => {
50
- if (j) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
51
- else for (const e of t) {
52
- const s = document.createElement("style"), i = O.litNonce;
53
- i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, n.appendChild(s);
54
- }
55
- }, F = j ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
56
- let e = "";
57
- for (const s of t.cssRules) e += s.cssText;
58
- return at(e);
59
- })(n) : n;
60
- /**
61
- * @license
62
- * Copyright 2017 Google LLC
63
- * SPDX-License-Identifier: BSD-3-Clause
64
- */
65
- const { is: ct, defineProperty: dt, getOwnPropertyDescriptor: ut, getOwnPropertyNames: pt, getOwnPropertySymbols: $t, getPrototypeOf: _t } = Object, f = globalThis, Z = f.trustedTypes, ft = Z ? Z.emptyScript : "", k = f.reactiveElementPolyfillSupport, w = (n, t) => n, H = { toAttribute(n, t) {
66
- switch (t) {
67
- case Boolean:
68
- n = n ? ft : null;
69
- break;
70
- case Object:
71
- case Array:
72
- n = n == null ? n : JSON.stringify(n);
73
- }
74
- return n;
75
- }, fromAttribute(n, t) {
76
- let e = n;
77
- switch (t) {
78
- case Boolean:
79
- e = n !== null;
80
- break;
81
- case Number:
82
- e = n === null ? null : Number(n);
83
- break;
84
- case Object:
85
- case Array:
86
- try {
87
- e = JSON.parse(n);
88
- } catch {
89
- e = null;
90
- }
91
- }
92
- return e;
93
- } }, V = (n, t) => !ct(n, t), J = { attribute: !0, type: String, converter: H, reflect: !1, hasChanged: V };
94
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), f.litPropertyMetadata ?? (f.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
95
- let y = class extends HTMLElement {
96
- static addInitializer(t) {
97
- this._$Ei(), (this.l ?? (this.l = [])).push(t);
98
- }
99
- static get observedAttributes() {
100
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
101
- }
102
- static createProperty(t, e = J) {
103
- if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
104
- const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
105
- i !== void 0 && dt(this.prototype, t, i);
106
- }
107
- }
108
- static getPropertyDescriptor(t, e, s) {
109
- const { get: i, set: o } = ut(this.prototype, t) ?? { get() {
110
- return this[e];
111
- }, set(r) {
112
- this[e] = r;
113
- } };
114
- return { get() {
115
- return i == null ? void 0 : i.call(this);
116
- }, set(r) {
117
- const a = i == null ? void 0 : i.call(this);
118
- o.call(this, r), this.requestUpdate(t, a, s);
119
- }, configurable: !0, enumerable: !0 };
120
- }
121
- static getPropertyOptions(t) {
122
- return this.elementProperties.get(t) ?? J;
123
- }
124
- static _$Ei() {
125
- if (this.hasOwnProperty(w("elementProperties"))) return;
126
- const t = _t(this);
127
- t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
128
- }
129
- static finalize() {
130
- if (this.hasOwnProperty(w("finalized"))) return;
131
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(w("properties"))) {
132
- const e = this.properties, s = [...pt(e), ...$t(e)];
133
- for (const i of s) this.createProperty(i, e[i]);
134
- }
135
- const t = this[Symbol.metadata];
136
- if (t !== null) {
137
- const e = litPropertyMetadata.get(t);
138
- if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
139
- }
140
- this._$Eh = /* @__PURE__ */ new Map();
141
- for (const [e, s] of this.elementProperties) {
142
- const i = this._$Eu(e, s);
143
- i !== void 0 && this._$Eh.set(i, e);
144
- }
145
- this.elementStyles = this.finalizeStyles(this.styles);
146
- }
147
- static finalizeStyles(t) {
148
- const e = [];
149
- if (Array.isArray(t)) {
150
- const s = new Set(t.flat(1 / 0).reverse());
151
- for (const i of s) e.unshift(F(i));
152
- } else t !== void 0 && e.push(F(t));
153
- return e;
154
- }
155
- static _$Eu(t, e) {
156
- const s = e.attribute;
157
- return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
158
- }
159
- constructor() {
160
- super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
161
- }
162
- _$Ev() {
163
- var t;
164
- this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
165
- }
166
- addController(t) {
167
- var e;
168
- (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
169
- }
170
- removeController(t) {
171
- var e;
172
- (e = this._$EO) == null || e.delete(t);
173
- }
174
- _$E_() {
175
- const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
176
- for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
177
- t.size > 0 && (this._$Ep = t);
178
- }
179
- createRenderRoot() {
180
- const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
181
- return lt(t, this.constructor.elementStyles), t;
182
- }
183
- connectedCallback() {
184
- var t;
185
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
186
- var s;
187
- return (s = e.hostConnected) == null ? void 0 : s.call(e);
188
- });
189
- }
190
- enableUpdating(t) {
191
- }
192
- disconnectedCallback() {
193
- var t;
194
- (t = this._$EO) == null || t.forEach((e) => {
195
- var s;
196
- return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
197
- });
198
- }
199
- attributeChangedCallback(t, e, s) {
200
- this._$AK(t, s);
201
- }
202
- _$EC(t, e) {
203
- var o;
204
- const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
205
- if (i !== void 0 && s.reflect === !0) {
206
- const r = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : H).toAttribute(e, s.type);
207
- this._$Em = t, r == null ? this.removeAttribute(i) : this.setAttribute(i, r), this._$Em = null;
208
- }
209
- }
210
- _$AK(t, e) {
211
- var o;
212
- const s = this.constructor, i = s._$Eh.get(t);
213
- if (i !== void 0 && this._$Em !== i) {
214
- const r = s.getPropertyOptions(i), a = typeof r.converter == "function" ? { fromAttribute: r.converter } : ((o = r.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? r.converter : H;
215
- this._$Em = i, this[i] = a.fromAttribute(e, r.type), this._$Em = null;
216
- }
217
- }
218
- requestUpdate(t, e, s) {
219
- if (t !== void 0) {
220
- if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? V)(this[t], e)) return;
221
- this.P(t, e, s);
222
- }
223
- this.isUpdatePending === !1 && (this._$ES = this._$ET());
224
- }
225
- P(t, e, s) {
226
- this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
227
- }
228
- async _$ET() {
229
- this.isUpdatePending = !0;
230
- try {
231
- await this._$ES;
232
- } catch (e) {
233
- Promise.reject(e);
234
- }
235
- const t = this.scheduleUpdate();
236
- return t != null && await t, !this.isUpdatePending;
237
- }
238
- scheduleUpdate() {
239
- return this.performUpdate();
240
- }
241
- performUpdate() {
242
- var s;
243
- if (!this.isUpdatePending) return;
244
- if (!this.hasUpdated) {
245
- if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
246
- for (const [o, r] of this._$Ep) this[o] = r;
247
- this._$Ep = void 0;
248
- }
249
- const i = this.constructor.elementProperties;
250
- if (i.size > 0) for (const [o, r] of i) r.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], r);
251
- }
252
- let t = !1;
253
- const e = this._$AL;
254
- try {
255
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
256
- var o;
257
- return (o = i.hostUpdate) == null ? void 0 : o.call(i);
258
- }), this.update(e)) : this._$EU();
259
- } catch (i) {
260
- throw t = !1, this._$EU(), i;
261
- }
262
- t && this._$AE(e);
263
- }
264
- willUpdate(t) {
265
- }
266
- _$AE(t) {
267
- var e;
268
- (e = this._$EO) == null || e.forEach((s) => {
269
- var i;
270
- return (i = s.hostUpdated) == null ? void 0 : i.call(s);
271
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
272
- }
273
- _$EU() {
274
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
275
- }
276
- get updateComplete() {
277
- return this.getUpdateComplete();
278
- }
279
- getUpdateComplete() {
280
- return this._$ES;
281
- }
282
- shouldUpdate(t) {
283
- return !0;
284
- }
285
- update(t) {
286
- this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
287
- }
288
- updated(t) {
289
- }
290
- firstUpdated(t) {
291
- }
292
- };
293
- y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[w("elementProperties")] = /* @__PURE__ */ new Map(), y[w("finalized")] = /* @__PURE__ */ new Map(), k == null || k({ ReactiveElement: y }), (f.reactiveElementVersions ?? (f.reactiveElementVersions = [])).push("2.0.4");
294
- /**
295
- * @license
296
- * Copyright 2017 Google LLC
297
- * SPDX-License-Identifier: BSD-3-Clause
298
- */
299
- const C = globalThis, N = C.trustedTypes, K = N ? N.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, it = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, nt = "?" + _, mt = `<${nt}>`, A = document, U = () => A.createComment(""), x = (n) => n === null || typeof n != "object" && typeof n != "function", W = Array.isArray, gt = (n) => W(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", L = `[
300
- \f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, G = /-->/g, Q = />/g, m = RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^
301
- \f\r"'\`<>=]|("|')|))|$)`, "g"), X = /'/g, Y = /"/g, rt = /^(?:script|style|textarea|title)$/i, ot = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Rt = ot(1), kt = ot(2), v = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), tt = /* @__PURE__ */ new WeakMap(), g = A.createTreeWalker(A, 129);
302
- function ht(n, t) {
303
- if (!W(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
304
- return K !== void 0 ? K.createHTML(t) : t;
305
- }
306
- const At = (n, t) => {
307
- const e = n.length - 1, s = [];
308
- let i, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = S;
309
- for (let a = 0; a < e; a++) {
310
- const h = n[a];
311
- let c, u, l = -1, p = 0;
312
- for (; p < h.length && (r.lastIndex = p, u = r.exec(h), u !== null); ) p = r.lastIndex, r === S ? u[1] === "!--" ? r = G : u[1] !== void 0 ? r = Q : u[2] !== void 0 ? (rt.test(u[2]) && (i = RegExp("</" + u[2], "g")), r = m) : u[3] !== void 0 && (r = m) : r === m ? u[0] === ">" ? (r = i ?? S, l = -1) : u[1] === void 0 ? l = -2 : (l = r.lastIndex - u[2].length, c = u[1], r = u[3] === void 0 ? m : u[3] === '"' ? Y : X) : r === Y || r === X ? r = m : r === G || r === Q ? r = S : (r = m, i = void 0);
313
- const $ = r === m && n[a + 1].startsWith("/>") ? " " : "";
314
- o += r === S ? h + mt : l >= 0 ? (s.push(c), h.slice(0, l) + it + h.slice(l) + _ + $) : h + _ + (l === -2 ? a : $);
315
- }
316
- return [ht(n, o + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
317
- };
318
- class M {
319
- constructor({ strings: t, _$litType$: e }, s) {
320
- let i;
321
- this.parts = [];
322
- let o = 0, r = 0;
323
- const a = t.length - 1, h = this.parts, [c, u] = At(t, e);
324
- if (this.el = M.createElement(c, s), g.currentNode = this.el.content, e === 2 || e === 3) {
325
- const l = this.el.content.firstChild;
326
- l.replaceWith(...l.childNodes);
327
- }
328
- for (; (i = g.nextNode()) !== null && h.length < a; ) {
329
- if (i.nodeType === 1) {
330
- if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(it)) {
331
- const p = u[r++], $ = i.getAttribute(l).split(_), T = /([.?@])?(.*)/.exec(p);
332
- h.push({ type: 1, index: o, name: T[2], strings: $, ctor: T[1] === "." ? vt : T[1] === "?" ? Et : T[1] === "@" ? bt : R }), i.removeAttribute(l);
333
- } else l.startsWith(_) && (h.push({ type: 6, index: o }), i.removeAttribute(l));
334
- if (rt.test(i.tagName)) {
335
- const l = i.textContent.split(_), p = l.length - 1;
336
- if (p > 0) {
337
- i.textContent = N ? N.emptyScript : "";
338
- for (let $ = 0; $ < p; $++) i.append(l[$], U()), g.nextNode(), h.push({ type: 2, index: ++o });
339
- i.append(l[p], U());
340
- }
341
- }
342
- } else if (i.nodeType === 8) if (i.data === nt) h.push({ type: 2, index: o });
343
- else {
344
- let l = -1;
345
- for (; (l = i.data.indexOf(_, l + 1)) !== -1; ) h.push({ type: 7, index: o }), l += _.length - 1;
346
- }
347
- o++;
348
- }
349
- }
350
- static createElement(t, e) {
351
- const s = A.createElement("template");
352
- return s.innerHTML = t, s;
353
- }
354
- }
355
- function E(n, t, e = n, s) {
356
- var r, a;
357
- if (t === v) return t;
358
- let i = s !== void 0 ? (r = e._$Co) == null ? void 0 : r[s] : e._$Cl;
359
- const o = x(t) ? void 0 : t._$litDirective$;
360
- return (i == null ? void 0 : i.constructor) !== o && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), o === void 0 ? i = void 0 : (i = new o(n), i._$AT(n, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = E(n, i._$AS(n, t.values), i, s)), t;
361
- }
362
- class yt {
363
- constructor(t, e) {
364
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
365
- }
366
- get parentNode() {
367
- return this._$AM.parentNode;
368
- }
369
- get _$AU() {
370
- return this._$AM._$AU;
371
- }
372
- u(t) {
373
- const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? A).importNode(e, !0);
374
- g.currentNode = i;
375
- let o = g.nextNode(), r = 0, a = 0, h = s[0];
376
- for (; h !== void 0; ) {
377
- if (r === h.index) {
378
- let c;
379
- h.type === 2 ? c = new b(o, o.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (c = new St(o, this, t)), this._$AV.push(c), h = s[++a];
380
- }
381
- r !== (h == null ? void 0 : h.index) && (o = g.nextNode(), r++);
382
- }
383
- return g.currentNode = A, i;
384
- }
385
- p(t) {
386
- let e = 0;
387
- for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
388
- }
389
- }
390
- class b {
391
- get _$AU() {
392
- var t;
393
- return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
394
- }
395
- constructor(t, e, s, i) {
396
- this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
397
- }
398
- get parentNode() {
399
- let t = this._$AA.parentNode;
400
- const e = this._$AM;
401
- return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
402
- }
403
- get startNode() {
404
- return this._$AA;
405
- }
406
- get endNode() {
407
- return this._$AB;
408
- }
409
- _$AI(t, e = this) {
410
- t = E(this, t, e), x(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== v && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : gt(t) ? this.k(t) : this._(t);
411
- }
412
- O(t) {
413
- return this._$AA.parentNode.insertBefore(t, this._$AB);
414
- }
415
- T(t) {
416
- this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
417
- }
418
- _(t) {
419
- this._$AH !== d && x(this._$AH) ? this._$AA.nextSibling.data = t : this.T(A.createTextNode(t)), this._$AH = t;
420
- }
421
- $(t) {
422
- var o;
423
- const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = M.createElement(ht(s.h, s.h[0]), this.options)), s);
424
- if (((o = this._$AH) == null ? void 0 : o._$AD) === i) this._$AH.p(e);
425
- else {
426
- const r = new yt(i, this), a = r.u(this.options);
427
- r.p(e), this.T(a), this._$AH = r;
428
- }
429
- }
430
- _$AC(t) {
431
- let e = tt.get(t.strings);
432
- return e === void 0 && tt.set(t.strings, e = new M(t)), e;
433
- }
434
- k(t) {
435
- W(this._$AH) || (this._$AH = [], this._$AR());
436
- const e = this._$AH;
437
- let s, i = 0;
438
- for (const o of t) i === e.length ? e.push(s = new b(this.O(U()), this.O(U()), this, this.options)) : s = e[i], s._$AI(o), i++;
439
- i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
440
- }
441
- _$AR(t = this._$AA.nextSibling, e) {
442
- var s;
443
- for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
444
- const i = t.nextSibling;
445
- t.remove(), t = i;
446
- }
447
- }
448
- setConnected(t) {
449
- var e;
450
- this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
451
- }
452
- }
453
- class R {
454
- get tagName() {
455
- return this.element.tagName;
456
- }
457
- get _$AU() {
458
- return this._$AM._$AU;
459
- }
460
- constructor(t, e, s, i, o) {
461
- this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
462
- }
463
- _$AI(t, e = this, s, i) {
464
- const o = this.strings;
465
- let r = !1;
466
- if (o === void 0) t = E(this, t, e, 0), r = !x(t) || t !== this._$AH && t !== v, r && (this._$AH = t);
467
- else {
468
- const a = t;
469
- let h, c;
470
- for (t = o[0], h = 0; h < o.length - 1; h++) c = E(this, a[s + h], e, h), c === v && (c = this._$AH[h]), r || (r = !x(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + o[h + 1]), this._$AH[h] = c;
471
- }
472
- r && !i && this.j(t);
473
- }
474
- j(t) {
475
- t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
476
- }
477
- }
478
- class vt extends R {
479
- constructor() {
480
- super(...arguments), this.type = 3;
481
- }
482
- j(t) {
483
- this.element[this.name] = t === d ? void 0 : t;
484
- }
485
- }
486
- class Et extends R {
487
- constructor() {
488
- super(...arguments), this.type = 4;
489
- }
490
- j(t) {
491
- this.element.toggleAttribute(this.name, !!t && t !== d);
492
- }
493
- }
494
- class bt extends R {
495
- constructor(t, e, s, i, o) {
496
- super(t, e, s, i, o), this.type = 5;
497
- }
498
- _$AI(t, e = this) {
499
- if ((t = E(this, t, e, 0) ?? d) === v) return;
500
- const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== d && (s === d || i);
501
- i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
502
- }
503
- handleEvent(t) {
504
- var e;
505
- typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
506
- }
507
- }
508
- class St {
509
- constructor(t, e, s) {
510
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
511
- }
512
- get _$AU() {
513
- return this._$AM._$AU;
514
- }
515
- _$AI(t) {
516
- E(this, t);
517
- }
518
- }
519
- const Lt = { I: b }, D = C.litHtmlPolyfillSupport;
520
- D == null || D(M, b), (C.litHtmlVersions ?? (C.litHtmlVersions = [])).push("3.2.1");
521
- const wt = (n, t, e) => {
522
- const s = (e == null ? void 0 : e.renderBefore) ?? t;
523
- let i = s._$litPart$;
524
- if (i === void 0) {
525
- const o = (e == null ? void 0 : e.renderBefore) ?? null;
526
- s._$litPart$ = i = new b(t.insertBefore(U(), o), o, void 0, e ?? {});
527
- }
528
- return i._$AI(n), i;
529
- };
530
- /**
531
- * @license
532
- * Copyright 2017 Google LLC
533
- * SPDX-License-Identifier: BSD-3-Clause
534
- */
535
- let P = class extends y {
536
- constructor() {
537
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
538
- }
539
- createRenderRoot() {
540
- var e;
541
- const t = super.createRenderRoot();
542
- return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
543
- }
544
- update(t) {
545
- const e = this.render();
546
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = wt(e, this.renderRoot, this.renderOptions);
547
- }
548
- connectedCallback() {
549
- var t;
550
- super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
551
- }
552
- disconnectedCallback() {
553
- var t;
554
- super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
555
- }
556
- render() {
557
- return v;
558
- }
559
- };
560
- var et;
561
- P._$litElement$ = !0, P.finalized = !0, (et = globalThis.litElementHydrateSupport) == null || et.call(globalThis, { LitElement: P });
562
- const z = globalThis.litElementPolyfillSupport;
563
- z == null || z({ LitElement: P });
564
- (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
565
- /**
566
- * @license
567
- * Copyright 2017 Google LLC
568
- * SPDX-License-Identifier: BSD-3-Clause
569
- */
570
- const Ct = { attribute: !0, type: String, converter: H, reflect: !1, hasChanged: V }, Pt = (n = Ct, t, e) => {
571
- const { kind: s, metadata: i } = e;
572
- let o = globalThis.litPropertyMetadata.get(i);
573
- if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), o.set(e.name, n), s === "accessor") {
574
- const { name: r } = e;
575
- return { set(a) {
576
- const h = t.get.call(this);
577
- t.set.call(this, a), this.requestUpdate(r, h, n);
578
- }, init(a) {
579
- return a !== void 0 && this.P(r, void 0, n), a;
580
- } };
581
- }
582
- if (s === "setter") {
583
- const { name: r } = e;
584
- return function(a) {
585
- const h = this[r];
586
- t.call(this, a), this.requestUpdate(r, h, n);
587
- };
588
- }
589
- throw Error("Unsupported decorator location: " + s);
590
- };
591
- function zt(n) {
592
- return (t, e) => typeof e == "object" ? Pt(n, t, e) : ((s, i, o) => {
593
- const r = i.hasOwnProperty(o);
594
- return i.constructor.createProperty(o, r ? { ...s, wrapped: !0 } : s), r ? Object.getOwnPropertyDescriptor(i, o) : void 0;
595
- })(n, t, e);
596
- }
597
- const I = /* @__PURE__ */ new Set(), Ut = () => {
598
- const n = document.documentElement.dir === "rtl" ? document.documentElement.dir : "ltr";
599
- I.forEach((t) => {
600
- t.setAttribute("dir", n);
601
- });
602
- }, xt = new MutationObserver(Ut);
603
- xt.observe(document.documentElement, {
604
- attributes: !0,
605
- attributeFilter: ["dir"]
606
- });
607
- const Mt = (n) => n.startManagingContentDirection !== void 0 || n.tagName === "LUZMO-THEME";
608
- function Tt(n) {
609
- class t extends n {
610
- /**
611
- * @private
612
- */
613
- get isLTR() {
614
- return this.dir === "ltr";
615
- }
616
- hasVisibleFocusInTree() {
617
- const i = ((o = document) => {
618
- var h;
619
- let r = o.activeElement;
620
- for (; r != null && r.shadowRoot && r.shadowRoot.activeElement; )
621
- r = r.shadowRoot.activeElement;
622
- const a = r ? [r] : [];
623
- for (; r; ) {
624
- const c = r.assignedSlot || r.parentElement || ((h = r.getRootNode()) == null ? void 0 : h.host);
625
- c && a.push(c), r = c;
626
- }
627
- return a;
628
- })(this.getRootNode())[0];
629
- if (!i)
630
- return !1;
631
- try {
632
- return i.matches(":focus-visible") || i.matches(".focus-visible");
633
- } catch {
634
- return i.matches(".focus-visible");
635
- }
636
- }
637
- connectedCallback() {
638
- if (!this.hasAttribute("dir")) {
639
- let s = this.assignedSlot || this.parentNode;
640
- for (; s !== document.documentElement && !Mt(s); )
641
- s = s.assignedSlot || // step into the shadow DOM of the parent of a slotted node
642
- s.parentNode || // DOM Element detected
643
- s.host;
644
- if (this.dir = s.dir === "rtl" ? s.dir : this.dir || "ltr", s === document.documentElement)
645
- I.add(this);
646
- else {
647
- const { localName: i } = s;
648
- i.search("-") > -1 && !customElements.get(i) ? customElements.whenDefined(i).then(() => {
649
- s.startManagingContentDirection(this);
650
- }) : s.startManagingContentDirection(this);
651
- }
652
- this._dirParent = s;
653
- }
654
- super.connectedCallback();
655
- }
656
- disconnectedCallback() {
657
- super.disconnectedCallback(), this._dirParent && (this._dirParent === document.documentElement ? I.delete(this) : this._dirParent.stopManagingContentDirection(this), this.removeAttribute("dir"));
658
- }
659
- }
660
- return t;
661
- }
662
- class It extends Tt(P) {
663
- }
664
- export {
665
- wt as B,
666
- d as E,
667
- Tt as L,
668
- v as T,
669
- Lt as Z,
670
- It as a,
671
- kt as b,
672
- P as c,
673
- Ht as i,
674
- zt as n,
675
- at as r,
676
- Rt as x
677
- };