@pubinfo/module-rbac 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/dist/ComponentSelect-HWE3OTC2.js +2 -0
  2. package/dist/{ComponentSelect-Bhl9ciUm.js → ComponentSelect-lvLZA7v3.js} +866 -866
  3. package/dist/DynamicRoutesForm--yCRC-TS.js +4 -0
  4. package/dist/{DynamicRoutesForm-CE2RPs7y.js → DynamicRoutesForm-CjrPnJvX.js} +28 -28
  5. package/dist/{IconSelect-BeZfjsl0.js → IconSelect-B0CeuV_a.js} +1 -1
  6. package/dist/{IconSelect-BMlRIxBx.js → IconSelect-BRVj6gBy.js} +18 -18
  7. package/dist/{ImportExport-D8uzaOMz.js → ImportExport-BNLVq0fU.js} +1 -1
  8. package/dist/{ImportExport-ByRTssxP.js → ImportExport-HsLm0AJH.js} +63 -63
  9. package/dist/{ResourceEdit-BSaHxlbT.js → ResourceEdit-DGiYedP0.js} +100 -100
  10. package/dist/{ResourceEdit-Beu0QLBf.js → ResourceEdit-DZP72kyb.js} +4 -4
  11. package/dist/{ResourceRelation-CKolCnHC.js → ResourceRelation-BxGFnyVc.js} +1 -1
  12. package/dist/{ResourceRelation-BRseTUw2.js → ResourceRelation-DCjMjLpg.js} +1 -1
  13. package/dist/{ResourceRelation-B_4woLmP.js → ResourceRelation-DhML3AFe.js} +5 -5
  14. package/dist/ResourceRelation.css +1 -1
  15. package/dist/ResourceRelation2.css +1 -1
  16. package/dist/{ResourceSelector-ConJ30Jd.js → ResourceSelector-BAZ-oIRV.js} +46 -46
  17. package/dist/ResourceSelector.css +1 -1
  18. package/dist/RoleRelation-Bxyd5aMn.js +2 -0
  19. package/dist/{RoleRelation-DXZxscPY.js → RoleRelation-CcgE6TEG.js} +1 -1
  20. package/dist/RoleSelector-QpcO4KoV.js +279 -0
  21. package/dist/{TenantEdit-B5_v0C8I.js → TenantEdit-CRhsWhhw.js} +19 -19
  22. package/dist/{TenantEdit-C28473_2.js → TenantEdit-egH6GbbS.js} +2 -2
  23. package/dist/UserAuthorization-B0lHeayD.js +4 -0
  24. package/dist/{UserAuthorization-DTgmWH5Q.js → UserAuthorization-D-LcHhsj.js} +5 -5
  25. package/dist/UserAuthorization.css +1 -1
  26. package/dist/{UserEdit-EOTBOUZu.js → UserEdit-6MPOr7VK.js} +23 -23
  27. package/dist/{UserEdit-CyCXz7g3.js → UserEdit-DGefh7mk.js} +1 -1
  28. package/dist/{blackWhiteList-DQALdBZf.js → blackWhiteList-CFnWvnIK.js} +8 -8
  29. package/dist/blackWhiteList.css +1 -1
  30. package/dist/{breadcrumb_setting-D3UjJYhA.js → breadcrumb_setting-BbdvbC4M.js} +27 -27
  31. package/dist/breadcrumb_setting.css +1 -1
  32. package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +6 -15
  33. package/dist/components/RoleSelector/useRole.d.ts +4 -68
  34. package/dist/{createAndEditDataPermission-DnAcKvaE.js → createAndEditDataPermission-39GKHtzB.js} +50 -50
  35. package/dist/{createAndEditDataPermission-CAaxueTy.js → createAndEditDataPermission-BBSBwjG4.js} +2 -2
  36. package/dist/createAndEditDataPermission.css +1 -1
  37. package/dist/{data-permission-CLnnLoPt.js → data-permission-35wTSMh2.js} +3 -3
  38. package/dist/data-permission.css +1 -1
  39. package/dist/{dictionary-BFM0Mx0P.js → dictionary-BOuYUlfU.js} +1 -1
  40. package/dist/{drawerBlackWhiteList-BYACpO3D.js → drawerBlackWhiteList-BZccd_CZ.js} +8 -8
  41. package/dist/drawerBlackWhiteList-Bz2trn-w.js +3 -0
  42. package/dist/{drawerDictionary-BUBLrbTi.js → drawerDictionary-C2tWu1lt.js} +11 -11
  43. package/dist/{drawerDictionary-Bk0BgL7i.js → drawerDictionary-Cx-QoHn4.js} +1 -1
  44. package/dist/{drawerDictionaryItem-CfOPleN6.js → drawerDictionaryItem-C4mPbQEA.js} +12 -12
  45. package/dist/{drawerDictionaryItem-Dy2T56AH.js → drawerDictionaryItem-DhwinX1a.js} +1 -1
  46. package/dist/{drawerGroup-ZyzAWXOl.js → drawerGroup-BUx0cx6i.js} +1 -1
  47. package/dist/{drawerGroup-Bly3CWfM.js → drawerGroup-DFeiJOBA.js} +9 -9
  48. package/dist/{drawerOrganization-BhO5-PP5.js → drawerOrganization-BEdhq7Z2.js} +26 -26
  49. package/dist/{drawerOrganization-HSVB8JzO.js → drawerOrganization-ijhmuc8a.js} +1 -1
  50. package/dist/{drawerPosition-vsuG4JYe.js → drawerPosition-shL7hfwJ.js} +1 -1
  51. package/dist/{drawerPosition-CM0NBfoR.js → drawerPosition-xI2PyE2x.js} +14 -14
  52. package/dist/{drawerRegion-CGySAL6D.js → drawerRegion-BwWGUHaY.js} +16 -16
  53. package/dist/{drawerRegion-BXZ751ge.js → drawerRegion-Dl1qXPXz.js} +1 -1
  54. package/dist/{drawerRole-BE0utb7R.js → drawerRole-C1I6-hhT.js} +8 -8
  55. package/dist/{drawerRole-CwilBmOE.js → drawerRole-CZpTYFS3.js} +10 -10
  56. package/dist/drawerRole-CgTIHRCA.js +3 -0
  57. package/dist/{drawerRole-BVeaz3Yb.js → drawerRole-Cmrob1UJ.js} +2 -2
  58. package/dist/drawerRole-D2UxgYXQ.js +215 -0
  59. package/dist/{drawerRole-tan379DU.js → drawerRole-DynkfVMp.js} +2 -2
  60. package/dist/{group-B1gGoTD5.js → group-DOmpCW1J.js} +8 -8
  61. package/dist/group.css +1 -1
  62. package/dist/index.css +1 -1
  63. package/dist/index.js +78 -78
  64. package/dist/{itemlist-uCHnA_We.js → itemlist-QBWRLjTd.js} +1 -1
  65. package/dist/{layout_setting-DMvxwL31.js → layout_setting-BZt_X9vU.js} +17 -17
  66. package/dist/layout_setting.css +1 -1
  67. package/dist/{login_history-BexfCN-1.js → login_history-NTSjr6e5.js} +3 -3
  68. package/dist/login_history.css +1 -1
  69. package/dist/{menu_setting-BXR3EAXD.js → menu_setting-CkoDAYJD.js} +38 -38
  70. package/dist/menu_setting.css +1 -1
  71. package/dist/{operate_history-hXxS3atI.js → operate_history-CXoZlYaT.js} +3 -3
  72. package/dist/operate_history.css +1 -1
  73. package/dist/{organization-cvYm9P9w.js → organization-DmGbwqHI.js} +2642 -2642
  74. package/dist/organization.css +1 -1
  75. package/dist/{other_setting-DjVQevBW.js → other_setting-BqWwlJ2u.js} +64 -64
  76. package/dist/other_setting.css +1 -1
  77. package/dist/{page_animation_setting-DgHHmFEc.js → page_animation_setting-g3bkn7vf.js} +48 -48
  78. package/dist/page_animation_setting.css +1 -1
  79. package/dist/{page_w_setting-B_im6vBo.js → page_w_setting-Db9pP86g.js} +17 -17
  80. package/dist/page_w_setting.css +1 -1
  81. package/dist/{position-BkpbHXYP.js → position-Bq4B3_PK.js} +1 -1
  82. package/dist/{region-DVkbjI9t.js → region-DfxAE8eK.js} +4 -4
  83. package/dist/{resource-UmUb9yZa.js → resource-rP8m6eP_.js} +8 -8
  84. package/dist/{role-B2tKqUvP.js → role-DfWw95NS.js} +3 -3
  85. package/dist/{role_group-DqzFHwKx.js → role_group-B4J4RWQt.js} +2 -2
  86. package/dist/{setItem-9ZBl0BlF.js → setItem-C_jx_5fd.js} +1 -1
  87. package/dist/{setItem-BenNySNl.js → setItem-DnJuD3C0.js} +32 -32
  88. package/dist/setItem.css +1 -1
  89. package/dist/stores/view.d.ts +21 -126
  90. package/dist/{tabbar_setting-HFHrLVgt.js → tabbar_setting-DBPggZ6Q.js} +33 -33
  91. package/dist/tabbar_setting.css +1 -1
  92. package/dist/{tenant-C8kVbfgt.js → tenant-Dbydqvrz.js} +2 -2
  93. package/dist/{theme_setting-QgpSGXxq.js → theme_setting-3l5L7tXt.js} +5 -5
  94. package/dist/theme_setting.css +1 -1
  95. package/dist/{toolbar_setting-Dc_h2Mfe.js → toolbar_setting-rv8EGChc.js} +30 -30
  96. package/dist/toolbar_setting.css +1 -1
  97. package/dist/{user-Dub4HhCZ.js → user-DQE6N5EP.js} +9 -9
  98. package/dist/user.css +1 -1
  99. package/dist/utils/routeSystem.d.ts +21 -126
  100. package/dist/views/blackWhiteList/index.vue.d.ts +40 -40
  101. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +4 -4
  102. package/dist/views/data-permission/index.vue.d.ts +44 -44
  103. package/dist/views/dictionary/index.vue.d.ts +40 -40
  104. package/dist/views/dictionary/itemlist.vue.d.ts +40 -40
  105. package/dist/views/group/index.vue.d.ts +40 -40
  106. package/dist/views/log_center/components/browserType.vue.d.ts +2 -2
  107. package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +2 -2
  108. package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +2 -2
  109. package/dist/views/log_center/login_history.vue.d.ts +40 -40
  110. package/dist/views/log_center/operate_history.vue.d.ts +40 -40
  111. package/dist/views/position/index.vue.d.ts +40 -40
  112. package/dist/views/region/index.vue.d.ts +40 -40
  113. package/dist/views/resource/hooks/useMetaForm.d.ts +1 -8
  114. package/dist/views/resource/index.vue.d.ts +40 -40
  115. package/dist/views/role/components/ResourceRelation.vue.d.ts +40 -40
  116. package/dist/views/role/index.vue.d.ts +80 -80
  117. package/dist/views/role_group/index.vue.d.ts +40 -40
  118. package/dist/views/tenant/index.vue.d.ts +40 -40
  119. package/dist/views/user/index.vue.d.ts +40 -40
  120. package/dist/{watermark_setting-BcWy6p2_.js → watermark_setting-B_jC4rjv.js} +106 -106
  121. package/dist/watermark_setting.css +1 -1
  122. package/package.json +3 -3
  123. package/src/assets/styles/vxe-table.css +4 -4
  124. package/dist/ComponentSelect-Bhwuc86o.js +0 -2
  125. package/dist/DynamicRoutesForm-D35jFnxF.js +0 -4
  126. package/dist/RoleRelation-YaSQQxQ2.js +0 -2
  127. package/dist/RoleSelector-DOt30OLy.js +0 -279
  128. package/dist/UserAuthorization-C4SLMNmh.js +0 -4
  129. package/dist/drawerBlackWhiteList-C3xS7Kxx.js +0 -3
  130. package/dist/drawerRole-CzTW_I2H.js +0 -3
  131. package/dist/drawerRole-E1jHM3v-.js +0 -215
@@ -1,84 +1,84 @@
1
1
  import { useViewStore as e } from "./index.js";
2
- import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeProps as d, normalizeClass as f, normalizeProps as p, onBeforeUnmount as m, onMounted as h, onUnmounted as g, openBlock as _, ref as v, resolveComponent as y, shallowRef as b, unref as x, useId as ee, useModel as S, useTemplateRef as C, watch as w, watchEffect as T, withCtx as te } from "vue";
3
- import { CaretDownOutlined as ne } from "@ant-design/icons-vue";
4
- import { Empty as re } from "ant-design-vue";
5
- import { DirectoryTree as ie, Empty as ae, FormItemRest as oe, Input as se } from "ant-design-vue/es";
6
- import './ComponentSelect.css';const ce = [
2
+ import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, isRef as d, mergeProps as f, normalizeClass as p, normalizeProps as m, onBeforeUnmount as h, onMounted as g, onUnmounted as _, openBlock as v, ref as y, resolveComponent as b, shallowRef as x, unref as S, useId as C, useModel as w, useTemplateRef as T, watch as E, watchEffect as ee, withCtx as D } from "vue";
3
+ import { CaretDownOutlined as te } from "@ant-design/icons-vue";
4
+ import { Empty as O } from "ant-design-vue";
5
+ import { DirectoryTree as ne, Empty as re, FormItemRest as ie, Input as ae } from "ant-design-vue/es";
6
+ import './ComponentSelect.css';const oe = [
7
7
  "top",
8
8
  "right",
9
9
  "bottom",
10
10
  "left"
11
- ], E = Math.min, D = Math.max, O = Math.round, le = Math.floor, k = (e) => ({
11
+ ], k = Math.min, A = Math.max, j = Math.round, se = Math.floor, M = (e) => ({
12
12
  x: e,
13
13
  y: e
14
- }), ue = {
14
+ }), ce = {
15
15
  left: "right",
16
16
  right: "left",
17
17
  bottom: "top",
18
18
  top: "bottom"
19
- }, de = {
19
+ }, le = {
20
20
  start: "end",
21
21
  end: "start"
22
22
  };
23
- function fe(e, t, n) {
24
- return D(e, E(t, n));
23
+ function ue(e, t, n) {
24
+ return A(e, k(t, n));
25
25
  }
26
- function A(e, t) {
26
+ function N(e, t) {
27
27
  return typeof e == "function" ? e(t) : e;
28
28
  }
29
- function j(e) {
29
+ function P(e) {
30
30
  return e.split("-")[0];
31
31
  }
32
- function M(e) {
32
+ function F(e) {
33
33
  return e.split("-")[1];
34
34
  }
35
- function pe(e) {
35
+ function de(e) {
36
36
  return e === "x" ? "y" : "x";
37
37
  }
38
- function me(e) {
38
+ function fe(e) {
39
39
  return e === "y" ? "height" : "width";
40
40
  }
41
- const he = /* @__PURE__ */ new Set(["top", "bottom"]);
42
- function N(e) {
43
- return he.has(j(e)) ? "y" : "x";
41
+ const pe = /* @__PURE__ */ new Set(["top", "bottom"]);
42
+ function I(e) {
43
+ return pe.has(P(e)) ? "y" : "x";
44
44
  }
45
- function ge(e) {
46
- return pe(N(e));
45
+ function me(e) {
46
+ return de(I(e));
47
47
  }
48
- function _e(e, t, n) {
48
+ function he(e, t, n) {
49
49
  n === void 0 && (n = !1);
50
- let r = M(e), i = ge(e), a = me(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
51
- return t.reference[a] > t.floating[a] && (o = Ee(o)), [o, Ee(o)];
50
+ let r = F(e), i = me(e), a = fe(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
51
+ return t.reference[a] > t.floating[a] && (o = we(o)), [o, we(o)];
52
52
  }
53
- function ve(e) {
54
- let t = Ee(e);
53
+ function ge(e) {
54
+ let t = we(e);
55
55
  return [
56
- ye(e),
56
+ _e(e),
57
57
  t,
58
- ye(t)
58
+ _e(t)
59
59
  ];
60
60
  }
61
- function ye(e) {
62
- return e.replace(/start|end/g, (e) => de[e]);
61
+ function _e(e) {
62
+ return e.replace(/start|end/g, (e) => le[e]);
63
63
  }
64
- const be = ["left", "right"], xe = ["right", "left"], Se = ["top", "bottom"], Ce = ["bottom", "top"];
65
- function we(e, t, n) {
64
+ const ve = ["left", "right"], ye = ["right", "left"], be = ["top", "bottom"], xe = ["bottom", "top"];
65
+ function Se(e, t, n) {
66
66
  switch (e) {
67
67
  case "top":
68
- case "bottom": return n ? t ? xe : be : t ? be : xe;
68
+ case "bottom": return n ? t ? ye : ve : t ? ve : ye;
69
69
  case "left":
70
- case "right": return t ? Se : Ce;
70
+ case "right": return t ? be : xe;
71
71
  default: return [];
72
72
  }
73
73
  }
74
- function Te(e, t, n, r) {
75
- let i = M(e), a = we(j(e), n === "start", r);
76
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(ye)))), a;
74
+ function Ce(e, t, n, r) {
75
+ let i = F(e), a = Se(P(e), n === "start", r);
76
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(_e)))), a;
77
77
  }
78
- function Ee(e) {
79
- return e.replace(/left|right|bottom|top/g, (e) => ue[e]);
78
+ function we(e) {
79
+ return e.replace(/left|right|bottom|top/g, (e) => ce[e]);
80
80
  }
81
- function De(e) {
81
+ function Te(e) {
82
82
  return {
83
83
  top: 0,
84
84
  right: 0,
@@ -87,15 +87,15 @@ function De(e) {
87
87
  ...e
88
88
  };
89
89
  }
90
- function Oe(e) {
90
+ function Ee(e) {
91
91
  return typeof e == "number" ? {
92
92
  top: e,
93
93
  right: e,
94
94
  bottom: e,
95
95
  left: e
96
- } : De(e);
96
+ } : Te(e);
97
97
  }
98
- function ke(e) {
98
+ function De(e) {
99
99
  let { x: t, y: n, width: r, height: i } = e;
100
100
  return {
101
101
  width: r,
@@ -108,8 +108,8 @@ function ke(e) {
108
108
  y: n
109
109
  };
110
110
  }
111
- function Ae(e, t, n) {
112
- let { reference: r, floating: i } = e, a = N(t), o = ge(t), s = me(o), c = j(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
111
+ function Oe(e, t, n) {
112
+ let { reference: r, floating: i } = e, a = I(t), o = me(t), s = fe(o), c = P(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
113
113
  switch (c) {
114
114
  case "top":
115
115
  p = {
@@ -140,7 +140,7 @@ function Ae(e, t, n) {
140
140
  y: r.y
141
141
  };
142
142
  }
143
- switch (M(t)) {
143
+ switch (F(t)) {
144
144
  case "start":
145
145
  p[o] -= f * (n && l ? -1 : 1);
146
146
  break;
@@ -150,12 +150,12 @@ function Ae(e, t, n) {
150
150
  }
151
151
  return p;
152
152
  }
153
- const je = async (e, t, n) => {
153
+ const ke = async (e, t, n) => {
154
154
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = a.filter(Boolean), c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
155
155
  reference: e,
156
156
  floating: t,
157
157
  strategy: i
158
- }), { x: u, y: d } = Ae(l, r, c), f = r, p = {}, m = 0;
158
+ }), { x: u, y: d } = Oe(l, r, c), f = r, p = {}, m = 0;
159
159
  for (let n = 0; n < s.length; n++) {
160
160
  let { name: a, fn: h } = s[n], { x: g, y: _, data: v, reset: y } = await h({
161
161
  x: u,
@@ -181,7 +181,7 @@ const je = async (e, t, n) => {
181
181
  reference: e,
182
182
  floating: t,
183
183
  strategy: i
184
- }) : y.rects), {x: u, y: d} = Ae(l, f, c)), n = -1);
184
+ }) : y.rects), {x: u, y: d} = Oe(l, f, c)), n = -1);
185
185
  }
186
186
  return {
187
187
  x: u,
@@ -191,10 +191,10 @@ const je = async (e, t, n) => {
191
191
  middlewareData: p
192
192
  };
193
193
  };
194
- async function Me(e, t) {
194
+ async function Ae(e, t) {
195
195
  var n;
196
196
  t === void 0 && (t = {});
197
- let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: p = 0 } = A(t, e), m = Oe(p), h = d === "floating" ? "reference" : "floating", g = s[f ? h : d], _ = ke(await a.getClippingRect({
197
+ let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: p = 0 } = N(t, e), m = Ee(p), h = d === "floating" ? "reference" : "floating", g = s[f ? h : d], _ = De(await a.getClippingRect({
198
198
  element: (n = await (a.isElement == null ? void 0 : a.isElement(g))) ?? !0 ? g : g.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
199
199
  boundary: l,
200
200
  rootBoundary: u,
@@ -207,7 +207,7 @@ async function Me(e, t) {
207
207
  } : o.reference, y = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), b = await (a.isElement == null ? void 0 : a.isElement(y)) && await (a.getScale == null ? void 0 : a.getScale(y)) || {
208
208
  x: 1,
209
209
  y: 1
210
- }, x = ke(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
210
+ }, x = De(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
211
211
  elements: s,
212
212
  rect: v,
213
213
  offsetParent: y,
@@ -220,66 +220,66 @@ async function Me(e, t) {
220
220
  right: (x.right - _.right + m.right) / b.x
221
221
  };
222
222
  }
223
- const Ne = (e) => ({
223
+ const je = (e) => ({
224
224
  name: "arrow",
225
225
  options: e,
226
226
  async fn(t) {
227
- let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = A(e, t) || {};
227
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = N(e, t) || {};
228
228
  if (l == null) return {};
229
- let d = Oe(u), f = {
229
+ let d = Ee(u), f = {
230
230
  x: n,
231
231
  y: r
232
- }, p = ge(i), m = me(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], ee = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), S = ee ? ee[y] : 0;
233
- (!S || !await (o.isElement == null ? void 0 : o.isElement(ee))) && (S = s.floating[y] || a.floating[m]);
234
- let C = b / 2 - x / 2, w = S / 2 - h[m] / 2 - 1, T = E(d[_], w), te = E(d[v], w), ne = T, re = S - h[m] - te, ie = S / 2 - h[m] / 2 + C, ae = fe(ne, ie, re), oe = !c.arrow && M(i) != null && ie !== ae && a.reference[m] / 2 - (ie < ne ? T : te) - h[m] / 2 < 0, se = oe ? ie < ne ? ie - ne : ie - re : 0;
232
+ }, p = me(i), m = fe(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
233
+ (!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
234
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = k(d[_], T), ee = k(d[v], T), D = E, te = C - h[m] - ee, O = C / 2 - h[m] / 2 + w, ne = ue(D, O, te), re = !c.arrow && F(i) != null && O !== ne && a.reference[m] / 2 - (O < D ? E : ee) - h[m] / 2 < 0, ie = re ? O < D ? O - D : O - te : 0;
235
235
  return {
236
- [p]: f[p] + se,
236
+ [p]: f[p] + ie,
237
237
  data: {
238
- [p]: ae,
239
- centerOffset: ie - ae - se,
240
- ...oe && { alignmentOffset: se }
238
+ [p]: ne,
239
+ centerOffset: O - ne - ie,
240
+ ...re && { alignmentOffset: ie }
241
241
  },
242
- reset: oe
242
+ reset: re
243
243
  };
244
244
  }
245
- }), Pe = function(e) {
245
+ }), Me = function(e) {
246
246
  return e === void 0 && (e = {}), {
247
247
  name: "flip",
248
248
  options: e,
249
249
  async fn(t) {
250
250
  var n, r;
251
- let { placement: i, middlewareData: a, rects: o, initialPlacement: s, platform: c, elements: l } = t, { mainAxis: u = !0, crossAxis: d = !0, fallbackPlacements: f, fallbackStrategy: p = "bestFit", fallbackAxisSideDirection: m = "none", flipAlignment: h = !0,...g } = A(e, t);
251
+ let { placement: i, middlewareData: a, rects: o, initialPlacement: s, platform: c, elements: l } = t, { mainAxis: u = !0, crossAxis: d = !0, fallbackPlacements: f, fallbackStrategy: p = "bestFit", fallbackAxisSideDirection: m = "none", flipAlignment: h = !0,...g } = N(e, t);
252
252
  if ((n = a.arrow) != null && n.alignmentOffset) return {};
253
- let _ = j(i), v = N(s), y = j(s) === s, b = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), x = f || (y || !h ? [Ee(s)] : ve(s)), ee = m !== "none";
254
- !f && ee && x.push(...Te(s, h, m, b));
255
- let S = [s, ...x], C = await Me(t, g), w = [], T = (r = a.flip)?.overflows || [];
256
- if (u && w.push(C[_]), d) {
257
- let e = _e(i, o, b);
258
- w.push(C[e[0]], C[e[1]]);
253
+ let _ = P(i), v = I(s), y = P(s) === s, b = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), x = f || (y || !h ? [we(s)] : ge(s)), S = m !== "none";
254
+ !f && S && x.push(...Ce(s, h, m, b));
255
+ let C = [s, ...x], w = await Ae(t, g), T = [], E = (r = a.flip)?.overflows || [];
256
+ if (u && T.push(w[_]), d) {
257
+ let e = he(i, o, b);
258
+ T.push(w[e[0]], w[e[1]]);
259
259
  }
260
- if (T = [...T, {
260
+ if (E = [...E, {
261
261
  placement: i,
262
- overflows: w
263
- }], !w.every((e) => e <= 0)) {
264
- var te, ne;
265
- let e = ((te = a.flip)?.index || 0) + 1, t = S[e];
262
+ overflows: T
263
+ }], !T.every((e) => e <= 0)) {
264
+ var ee, D;
265
+ let e = ((ee = a.flip)?.index || 0) + 1, t = C[e];
266
266
  if (t) {
267
- let n = d === "alignment" ? v !== N(t) : !1;
268
- if (!n || T.every((e) => e.overflows[0] > 0 && N(e.placement) === v)) return {
267
+ let n = d === "alignment" ? v !== I(t) : !1;
268
+ if (!n || E.every((e) => e.overflows[0] > 0 && I(e.placement) === v)) return {
269
269
  data: {
270
270
  index: e,
271
- overflows: T
271
+ overflows: E
272
272
  },
273
273
  reset: { placement: t }
274
274
  };
275
275
  }
276
- let n = (ne = T.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0])?.placement;
276
+ let n = (D = E.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0])?.placement;
277
277
  if (!n) switch (p) {
278
278
  case "bestFit": {
279
- var re;
280
- let e = (re = T.filter((e) => {
281
- if (ee) {
282
- let t = N(e.placement);
279
+ var te;
280
+ let e = (te = E.filter((e) => {
281
+ if (S) {
282
+ let t = I(e.placement);
283
283
  return t === v || t === "y";
284
284
  }
285
285
  return !0;
@@ -297,7 +297,7 @@ const Ne = (e) => ({
297
297
  }
298
298
  };
299
299
  };
300
- function Fe(e, t) {
300
+ function Ne(e, t) {
301
301
  return {
302
302
  top: e.top - t.height,
303
303
  right: e.right - t.width,
@@ -305,43 +305,43 @@ function Fe(e, t) {
305
305
  left: e.left - t.width
306
306
  };
307
307
  }
308
- function Ie(e) {
309
- return ce.some((t) => e[t] >= 0);
308
+ function Pe(e) {
309
+ return oe.some((t) => e[t] >= 0);
310
310
  }
311
- const Le = function(e) {
311
+ const Fe = function(e) {
312
312
  return e === void 0 && (e = {}), {
313
313
  name: "hide",
314
314
  options: e,
315
315
  async fn(t) {
316
- let { rects: n } = t, { strategy: r = "referenceHidden",...i } = A(e, t);
316
+ let { rects: n } = t, { strategy: r = "referenceHidden",...i } = N(e, t);
317
317
  switch (r) {
318
318
  case "referenceHidden": {
319
- let e = await Me(t, {
319
+ let e = await Ae(t, {
320
320
  ...i,
321
321
  elementContext: "reference"
322
- }), r = Fe(e, n.reference);
322
+ }), r = Ne(e, n.reference);
323
323
  return { data: {
324
324
  referenceHiddenOffsets: r,
325
- referenceHidden: Ie(r)
325
+ referenceHidden: Pe(r)
326
326
  } };
327
327
  }
328
328
  case "escaped": {
329
- let e = await Me(t, {
329
+ let e = await Ae(t, {
330
330
  ...i,
331
331
  altBoundary: !0
332
- }), r = Fe(e, n.floating);
332
+ }), r = Ne(e, n.floating);
333
333
  return { data: {
334
334
  escapedOffsets: r,
335
- escaped: Ie(r)
335
+ escaped: Pe(r)
336
336
  } };
337
337
  }
338
338
  default: return {};
339
339
  }
340
340
  }
341
341
  };
342
- }, Re = /* @__PURE__ */ new Set(["left", "top"]);
343
- async function ze(e, t) {
344
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = j(n), s = M(n), c = N(n) === "y", l = Re.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = A(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
342
+ }, Ie = /* @__PURE__ */ new Set(["left", "top"]);
343
+ async function Le(e, t) {
344
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = P(n), s = F(n), c = I(n) === "y", l = Ie.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = N(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
345
345
  mainAxis: d,
346
346
  crossAxis: 0,
347
347
  alignmentAxis: null
@@ -358,13 +358,13 @@ async function ze(e, t) {
358
358
  y: p * u
359
359
  };
360
360
  }
361
- const Be = function(e) {
361
+ const Re = function(e) {
362
362
  return e === void 0 && (e = 0), {
363
363
  name: "offset",
364
364
  options: e,
365
365
  async fn(t) {
366
366
  var n, r;
367
- let { x: i, y: a, placement: o, middlewareData: s } = t, c = await ze(t, e);
367
+ let { x: i, y: a, placement: o, middlewareData: s } = t, c = await Le(t, e);
368
368
  return o === (n = s.offset)?.placement && (r = s.arrow) != null && r.alignmentOffset ? {} : {
369
369
  x: i + c.x,
370
370
  y: a + c.y,
@@ -375,7 +375,7 @@ const Be = function(e) {
375
375
  };
376
376
  }
377
377
  };
378
- }, Ve = function(e) {
378
+ }, ze = function(e) {
379
379
  return e === void 0 && (e = {}), {
380
380
  name: "shift",
381
381
  options: e,
@@ -386,17 +386,17 @@ const Be = function(e) {
386
386
  x: t,
387
387
  y: n
388
388
  };
389
- } },...c } = A(e, t), l = {
389
+ } },...c } = N(e, t), l = {
390
390
  x: n,
391
391
  y: r
392
- }, u = await Me(t, c), d = N(j(i)), f = pe(d), p = l[f], m = l[d];
392
+ }, u = await Ae(t, c), d = I(P(i)), f = de(d), p = l[f], m = l[d];
393
393
  if (a) {
394
394
  let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = p + u[e], r = p - u[t];
395
- p = fe(n, p, r);
395
+ p = ue(n, p, r);
396
396
  }
397
397
  if (o) {
398
398
  let e = d === "y" ? "top" : "left", t = d === "y" ? "bottom" : "right", n = m + u[e], r = m - u[t];
399
- m = fe(n, m, r);
399
+ m = ue(n, m, r);
400
400
  }
401
401
  let h = s.fn({
402
402
  ...t,
@@ -416,14 +416,14 @@ const Be = function(e) {
416
416
  };
417
417
  }
418
418
  };
419
- }, He = function(e) {
419
+ }, Be = function(e) {
420
420
  return e === void 0 && (e = {}), {
421
421
  options: e,
422
422
  fn(t) {
423
- let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = A(e, t), u = {
423
+ let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = N(e, t), u = {
424
424
  x: n,
425
425
  y: r
426
- }, d = N(i), f = pe(d), p = u[f], m = u[d], h = A(s, t), g = typeof h == "number" ? {
426
+ }, d = I(i), f = de(d), p = u[f], m = u[d], h = N(s, t), g = typeof h == "number" ? {
427
427
  mainAxis: h,
428
428
  crossAxis: 0
429
429
  } : {
@@ -437,7 +437,7 @@ const Be = function(e) {
437
437
  }
438
438
  if (l) {
439
439
  var _, v;
440
- let e = f === "y" ? "width" : "height", t = Re.has(j(i)), n = a.reference[d] - a.floating[e] + (t && (_ = o.offset)?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : (v = o.offset)?.[d] || 0) - (t ? g.crossAxis : 0);
440
+ let e = f === "y" ? "width" : "height", t = Ie.has(P(i)), n = a.reference[d] - a.floating[e] + (t && (_ = o.offset)?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : (v = o.offset)?.[d] || 0) - (t ? g.crossAxis : 0);
441
441
  m < n ? m = n : m > r && (m = r);
442
442
  }
443
443
  return {
@@ -446,71 +446,71 @@ const Be = function(e) {
446
446
  };
447
447
  }
448
448
  };
449
- }, Ue = function(e) {
449
+ }, Ve = function(e) {
450
450
  return e === void 0 && (e = {}), {
451
451
  name: "size",
452
452
  options: e,
453
453
  async fn(t) {
454
454
  var n, r;
455
- let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {},...l } = A(e, t), u = await Me(t, l), d = j(i), f = M(i), p = N(i) === "y", { width: m, height: h } = a.floating, g, _;
455
+ let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {},...l } = N(e, t), u = await Ae(t, l), d = P(i), f = F(i), p = I(i) === "y", { width: m, height: h } = a.floating, g, _;
456
456
  d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
457
- let v = h - u.top - u.bottom, y = m - u.left - u.right, b = E(h - u[g], v), x = E(m - u[_], y), ee = !t.middlewareData.shift, S = b, C = x;
458
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (C = y), (r = t.middlewareData.shift) != null && r.enabled.y && (S = v), ee && !f) {
459
- let e = D(u.left, 0), t = D(u.right, 0), n = D(u.top, 0), r = D(u.bottom, 0);
460
- p ? C = m - 2 * (e !== 0 || t !== 0 ? e + t : D(u.left, u.right)) : S = h - 2 * (n !== 0 || r !== 0 ? n + r : D(u.top, u.bottom));
457
+ let v = h - u.top - u.bottom, y = m - u.left - u.right, b = k(h - u[g], v), x = k(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
458
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
459
+ let e = A(u.left, 0), t = A(u.right, 0), n = A(u.top, 0), r = A(u.bottom, 0);
460
+ p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : A(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : A(u.top, u.bottom));
461
461
  }
462
462
  await c({
463
463
  ...t,
464
- availableWidth: C,
465
- availableHeight: S
464
+ availableWidth: w,
465
+ availableHeight: C
466
466
  });
467
- let w = await o.getDimensions(s.floating);
468
- return m !== w.width || h !== w.height ? { reset: { rects: !0 } } : {};
467
+ let T = await o.getDimensions(s.floating);
468
+ return m !== T.width || h !== T.height ? { reset: { rects: !0 } } : {};
469
469
  }
470
470
  };
471
471
  };
472
- function We() {
472
+ function He() {
473
473
  return typeof window < "u";
474
474
  }
475
- function Ge(e) {
476
- return Ke(e) ? (e.nodeName || "").toLowerCase() : "#document";
475
+ function Ue(e) {
476
+ return We(e) ? (e.nodeName || "").toLowerCase() : "#document";
477
477
  }
478
- function P(e) {
478
+ function L(e) {
479
479
  var t;
480
480
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
481
481
  }
482
- function F(e) {
482
+ function R(e) {
483
483
  var t;
484
- return (t = (Ke(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
484
+ return (t = (We(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
485
485
  }
486
- function Ke(e) {
487
- return We() ? e instanceof Node || e instanceof P(e).Node : !1;
486
+ function We(e) {
487
+ return He() ? e instanceof Node || e instanceof L(e).Node : !1;
488
488
  }
489
- function I(e) {
490
- return We() ? e instanceof Element || e instanceof P(e).Element : !1;
489
+ function z(e) {
490
+ return He() ? e instanceof Element || e instanceof L(e).Element : !1;
491
491
  }
492
- function L(e) {
493
- return We() ? e instanceof HTMLElement || e instanceof P(e).HTMLElement : !1;
492
+ function B(e) {
493
+ return He() ? e instanceof HTMLElement || e instanceof L(e).HTMLElement : !1;
494
494
  }
495
- function qe(e) {
496
- return !We() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof P(e).ShadowRoot;
495
+ function Ge(e) {
496
+ return !He() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof L(e).ShadowRoot;
497
497
  }
498
- const Je = /* @__PURE__ */ new Set(["inline", "contents"]);
499
- function Ye(e) {
500
- let { overflow: t, overflowX: n, overflowY: r, display: i } = R(e);
501
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Je.has(i);
498
+ const Ke = /* @__PURE__ */ new Set(["inline", "contents"]);
499
+ function qe(e) {
500
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = V(e);
501
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Ke.has(i);
502
502
  }
503
- const Xe = /* @__PURE__ */ new Set([
503
+ const Je = /* @__PURE__ */ new Set([
504
504
  "table",
505
505
  "td",
506
506
  "th"
507
507
  ]);
508
- function Ze(e) {
509
- return Xe.has(Ge(e));
508
+ function Ye(e) {
509
+ return Je.has(Ue(e));
510
510
  }
511
- const Qe = [":popover-open", ":modal"];
512
- function $e(e) {
513
- return Qe.some((t) => {
511
+ const Xe = [":popover-open", ":modal"];
512
+ function Ze(e) {
513
+ return Xe.some((t) => {
514
514
  try {
515
515
  return e.matches(t);
516
516
  } catch {
@@ -518,54 +518,54 @@ function $e(e) {
518
518
  }
519
519
  });
520
520
  }
521
- const et = [
521
+ const Qe = [
522
522
  "transform",
523
523
  "translate",
524
524
  "scale",
525
525
  "rotate",
526
526
  "perspective"
527
- ], tt = [
527
+ ], $e = [
528
528
  "transform",
529
529
  "translate",
530
530
  "scale",
531
531
  "rotate",
532
532
  "perspective",
533
533
  "filter"
534
- ], nt = [
534
+ ], et = [
535
535
  "paint",
536
536
  "layout",
537
537
  "strict",
538
538
  "content"
539
539
  ];
540
- function rt(e) {
541
- let t = at(), n = I(e) ? R(e) : e;
542
- return et.some((e) => n[e] ? n[e] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || tt.some((e) => (n.willChange || "").includes(e)) || nt.some((e) => (n.contain || "").includes(e));
540
+ function tt(e) {
541
+ let t = rt(), n = z(e) ? V(e) : e;
542
+ return Qe.some((e) => n[e] ? n[e] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || $e.some((e) => (n.willChange || "").includes(e)) || et.some((e) => (n.contain || "").includes(e));
543
543
  }
544
- function it(e) {
545
- let t = z(e);
546
- for (; L(t) && !st(t);) {
547
- if (rt(t)) return t;
548
- if ($e(t)) return null;
549
- t = z(t);
544
+ function nt(e) {
545
+ let t = H(e);
546
+ for (; B(t) && !at(t);) {
547
+ if (tt(t)) return t;
548
+ if (Ze(t)) return null;
549
+ t = H(t);
550
550
  }
551
551
  return null;
552
552
  }
553
- function at() {
553
+ function rt() {
554
554
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
555
555
  }
556
- const ot = /* @__PURE__ */ new Set([
556
+ const it = /* @__PURE__ */ new Set([
557
557
  "html",
558
558
  "body",
559
559
  "#document"
560
560
  ]);
561
- function st(e) {
562
- return ot.has(Ge(e));
561
+ function at(e) {
562
+ return it.has(Ue(e));
563
563
  }
564
- function R(e) {
565
- return P(e).getComputedStyle(e);
564
+ function V(e) {
565
+ return L(e).getComputedStyle(e);
566
566
  }
567
- function ct(e) {
568
- return I(e) ? {
567
+ function ot(e) {
568
+ return z(e) ? {
569
569
  scrollLeft: e.scrollLeft,
570
570
  scrollTop: e.scrollTop
571
571
  } : {
@@ -573,87 +573,87 @@ function ct(e) {
573
573
  scrollTop: e.scrollY
574
574
  };
575
575
  }
576
- function z(e) {
577
- if (Ge(e) === "html") return e;
578
- let t = e.assignedSlot || e.parentNode || qe(e) && e.host || F(e);
579
- return qe(t) ? t.host : t;
576
+ function H(e) {
577
+ if (Ue(e) === "html") return e;
578
+ let t = e.assignedSlot || e.parentNode || Ge(e) && e.host || R(e);
579
+ return Ge(t) ? t.host : t;
580
580
  }
581
- function lt(e) {
582
- let t = z(e);
583
- return st(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : L(t) && Ye(t) ? t : lt(t);
581
+ function st(e) {
582
+ let t = H(e);
583
+ return at(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : B(t) && qe(t) ? t : st(t);
584
584
  }
585
- function ut(e, t, n) {
585
+ function ct(e, t, n) {
586
586
  var r;
587
587
  t === void 0 && (t = []), n === void 0 && (n = !0);
588
- let i = lt(e), a = i === (r = e.ownerDocument)?.body, o = P(i);
588
+ let i = st(e), a = i === (r = e.ownerDocument)?.body, o = L(i);
589
589
  if (a) {
590
- let e = dt(o);
591
- return t.concat(o, o.visualViewport || [], Ye(i) ? i : [], e && n ? ut(e) : []);
590
+ let e = lt(o);
591
+ return t.concat(o, o.visualViewport || [], qe(i) ? i : [], e && n ? ct(e) : []);
592
592
  }
593
- return t.concat(i, ut(i, [], n));
593
+ return t.concat(i, ct(i, [], n));
594
594
  }
595
- function dt(e) {
595
+ function lt(e) {
596
596
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
597
597
  }
598
- const ft = (e) => e.length === 0;
599
- function pt(e) {
598
+ const ut = (e) => e.length === 0;
599
+ function dt(e) {
600
600
  return e.replace(/([a-z\d])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
601
601
  }
602
- function mt(e, t = []) {
602
+ function ft(e, t = []) {
603
603
  return {
604
604
  parts: (...n) => {
605
- if (ft(t)) return mt(e, n);
605
+ if (ut(t)) return ft(e, n);
606
606
  throw Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?");
607
607
  },
608
- extendWith: (...n) => mt(e, [...t, ...n]),
609
- rename: (e) => mt(e, t),
608
+ extendWith: (...n) => ft(e, [...t, ...n]),
609
+ rename: (e) => ft(e, t),
610
610
  keys: () => t,
611
611
  build: () => [...new Set(t)].reduce((t, n) => Object.assign(t, { [n]: {
612
- selector: [`&[data-scope="${pt(e)}"][data-part="${pt(n)}"]`, `& [data-scope="${pt(e)}"][data-part="${pt(n)}"]`].join(", "),
612
+ selector: [`&[data-scope="${dt(e)}"][data-part="${dt(n)}"]`, `& [data-scope="${dt(e)}"][data-part="${dt(n)}"]`].join(", "),
613
613
  attrs: {
614
- "data-scope": pt(e),
615
- "data-part": pt(n)
614
+ "data-scope": dt(e),
615
+ "data-part": dt(n)
616
616
  }
617
617
  } }), {})
618
618
  };
619
619
  }
620
- const ht = (e) => typeof e == "object" && !!e, gt = (e) => e ? "" : void 0;
621
- function B(e) {
622
- return ht(e) && e.nodeType === 1 && typeof e.nodeName == "string";
620
+ const pt = (e) => typeof e == "object" && !!e, mt = (e) => e ? "" : void 0;
621
+ function U(e) {
622
+ return pt(e) && e.nodeType === 1 && typeof e.nodeName == "string";
623
623
  }
624
- const _t = (e) => ht(e) && e.nodeType === 9, vt = (e) => ht(e) && e === e.window;
625
- function yt(e) {
626
- return B(e) ? e.localName || "" : "#document";
624
+ const ht = (e) => pt(e) && e.nodeType === 9, gt = (e) => pt(e) && e === e.window;
625
+ function _t(e) {
626
+ return U(e) ? e.localName || "" : "#document";
627
627
  }
628
- function bt(e) {
628
+ function vt(e) {
629
629
  return [
630
630
  "html",
631
631
  "body",
632
632
  "#document"
633
- ].includes(yt(e));
633
+ ].includes(_t(e));
634
+ }
635
+ const yt = (e) => pt(e) && e.nodeType !== void 0;
636
+ function bt(e) {
637
+ return yt(e) && e.nodeType === 11 && "host" in e;
634
638
  }
635
- const xt = (e) => ht(e) && e.nodeType !== void 0;
639
+ const xt = (e) => U(e) && e.localName === "input";
636
640
  function St(e) {
637
- return xt(e) && e.nodeType === 11 && "host" in e;
641
+ return U(e) ? e.offsetWidth > 0 || e.offsetHeight > 0 || e.getClientRects().length > 0 : !1;
638
642
  }
639
- const Ct = (e) => B(e) && e.localName === "input";
643
+ const Ct = /(textarea|select)/;
640
644
  function wt(e) {
641
- return B(e) ? e.offsetWidth > 0 || e.offsetHeight > 0 || e.getClientRects().length > 0 : !1;
642
- }
643
- const Tt = /(textarea|select)/;
644
- function Et(e) {
645
- if (e == null || !B(e)) return !1;
645
+ if (e == null || !U(e)) return !1;
646
646
  try {
647
- return Ct(e) && e.selectionStart != null || Tt.test(e.localName) || e.isContentEditable || e.getAttribute("contenteditable") === "true" || e.getAttribute("contenteditable") === "";
647
+ return xt(e) && e.selectionStart != null || Ct.test(e.localName) || e.isContentEditable || e.getAttribute("contenteditable") === "true" || e.getAttribute("contenteditable") === "";
648
648
  } catch {
649
649
  return !1;
650
650
  }
651
651
  }
652
- function Dt(e, t) {
653
- if (!e || !t || !B(e) || !B(t)) return !1;
652
+ function Tt(e, t) {
653
+ if (!e || !t || !U(e) || !U(t)) return !1;
654
654
  let n = t.getRootNode?.();
655
655
  if (e === t || e.contains(t)) return !0;
656
- if (n && St(n)) {
656
+ if (n && bt(n)) {
657
657
  let n = t;
658
658
  for (; n;) {
659
659
  if (e === n) return !0;
@@ -662,16 +662,16 @@ function Dt(e, t) {
662
662
  }
663
663
  return !1;
664
664
  }
665
- function V(e) {
666
- return _t(e) ? e : vt(e) ? e.document : e?.ownerDocument ?? document;
665
+ function Et(e) {
666
+ return ht(e) ? e : gt(e) ? e.document : e?.ownerDocument ?? document;
667
+ }
668
+ function Dt(e) {
669
+ return Et(e).documentElement;
667
670
  }
668
671
  function Ot(e) {
669
- return V(e).documentElement;
672
+ return bt(e) ? Ot(e.host) : ht(e) ? e.defaultView ?? window : U(e) ? e.ownerDocument?.defaultView ?? window : window;
670
673
  }
671
674
  function kt(e) {
672
- return St(e) ? kt(e.host) : _t(e) ? e.defaultView ?? window : B(e) ? e.ownerDocument?.defaultView ?? window : window;
673
- }
674
- function At(e) {
675
675
  let t = e.activeElement;
676
676
  for (; t?.shadowRoot;) {
677
677
  let e = t.shadowRoot.activeElement;
@@ -680,39 +680,39 @@ function At(e) {
680
680
  }
681
681
  return t;
682
682
  }
683
- function jt(e) {
684
- if (yt(e) === "html") return e;
685
- let t = e.assignedSlot || e.parentNode || St(e) && e.host || Ot(e);
686
- return St(t) ? t.host : t;
683
+ function At(e) {
684
+ if (_t(e) === "html") return e;
685
+ let t = e.assignedSlot || e.parentNode || bt(e) && e.host || Dt(e);
686
+ return bt(t) ? t.host : t;
687
687
  }
688
- const Mt = /* @__PURE__ */ new WeakMap();
689
- function Nt(e) {
690
- return Mt.has(e) || Mt.set(e, kt(e).getComputedStyle(e)), Mt.get(e);
688
+ const jt = /* @__PURE__ */ new WeakMap();
689
+ function Mt(e) {
690
+ return jt.has(e) || jt.set(e, Ot(e).getComputedStyle(e)), jt.get(e);
691
691
  }
692
- const Pt = () => typeof document < "u";
693
- function Ft() {
692
+ const Nt = () => typeof document < "u";
693
+ function Pt() {
694
694
  let e = navigator.userAgentData;
695
695
  return e?.platform ?? navigator.platform;
696
696
  }
697
- const It = (e) => Pt() && e.test(Ft()), Lt = (e) => Pt() && e.test(navigator.vendor), Rt = () => It(/^Mac/), zt = () => It(/mac|iphone|ipad|ipod/i), Bt = () => zt() && Lt(/apple/i), Vt = () => It(/iP(hone|ad|od)|iOS/);
698
- function Ht(e) {
697
+ const Ft = (e) => Nt() && e.test(Pt()), It = (e) => Nt() && e.test(navigator.vendor), Lt = () => Ft(/^Mac/), Rt = () => Ft(/mac|iphone|ipad|ipod/i), zt = () => Rt() && It(/apple/i), Bt = () => Ft(/iP(hone|ad|od)|iOS/);
698
+ function Vt(e) {
699
699
  return e.composedPath?.() ?? e.nativeEvent?.composedPath?.();
700
700
  }
701
- function H(e) {
702
- let t = Ht(e);
701
+ function Ht(e) {
702
+ let t = Vt(e);
703
703
  return t?.[0] ?? e.target;
704
704
  }
705
705
  function Ut(e) {
706
- return e.button === 2 || Rt() && e.ctrlKey && e.button === 0;
706
+ return e.button === 2 || Lt() && e.ctrlKey && e.button === 0;
707
707
  }
708
- function U(e, t, n, r) {
708
+ function W(e, t, n, r) {
709
709
  let i = typeof e == "function" ? e() : e;
710
710
  return i?.addEventListener(t, n, r), () => {
711
711
  i?.removeEventListener(t, n, r);
712
712
  };
713
713
  }
714
714
  function Wt(e, t) {
715
- let { type: n = "HTMLInputElement", property: r = "value" } = t, i = kt(e)[n].prototype;
715
+ let { type: n = "HTMLInputElement", property: r = "value" } = t, i = Ot(e)[n].prototype;
716
716
  return Object.getOwnPropertyDescriptor(i, r) ?? {};
717
717
  }
718
718
  function Gt(e) {
@@ -731,12 +731,12 @@ function Kt(e, t, n = "value") {
731
731
  }
732
732
  e.setAttribute(n, t);
733
733
  }
734
- const qt = (e) => B(e) && e.tagName === "IFRAME", Jt = (e) => !Number.isNaN(Number.parseInt(e.getAttribute("tabindex") || "0", 10)), Yt = (e) => Number.parseInt(e.getAttribute("tabindex") || "0", 10) < 0, Xt = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type";
734
+ const qt = (e) => U(e) && e.tagName === "IFRAME", Jt = (e) => !Number.isNaN(Number.parseInt(e.getAttribute("tabindex") || "0", 10)), Yt = (e) => Number.parseInt(e.getAttribute("tabindex") || "0", 10) < 0, Xt = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type";
735
735
  function Zt(e, t = !1) {
736
736
  if (!e) return [];
737
737
  let n = Array.from(e.querySelectorAll(Xt)), r = t === !0 || t === "if-empty" && n.length === 0;
738
- r && B(e) && W(e) && n.unshift(e);
739
- let i = n.filter(W);
738
+ r && U(e) && Qt(e) && n.unshift(e);
739
+ let i = n.filter(Qt);
740
740
  return i.forEach((e, t) => {
741
741
  if (qt(e) && e.contentDocument) {
742
742
  let n = e.contentDocument.body;
@@ -744,41 +744,41 @@ function Zt(e, t = !1) {
744
744
  }
745
745
  }), i;
746
746
  }
747
- function W(e) {
748
- return !e || e.closest("[inert]") ? !1 : e.matches(Xt) && wt(e);
747
+ function Qt(e) {
748
+ return !e || e.closest("[inert]") ? !1 : e.matches(Xt) && St(e);
749
749
  }
750
- function Qt(e, t) {
750
+ function $t(e, t) {
751
751
  if (!e) return [];
752
- let n = Array.from(e.querySelectorAll(Xt)), r = n.filter($t);
753
- return t && $t(e) && r.unshift(e), r.forEach((e, t) => {
752
+ let n = Array.from(e.querySelectorAll(Xt)), r = n.filter(en);
753
+ return t && en(e) && r.unshift(e), r.forEach((e, t) => {
754
754
  if (qt(e) && e.contentDocument) {
755
- let n = e.contentDocument.body, i = Qt(n);
755
+ let n = e.contentDocument.body, i = $t(n);
756
756
  r.splice(t, 1, ...i);
757
757
  }
758
758
  }), !r.length && t ? n : r;
759
759
  }
760
- function $t(e) {
761
- return e != null && e.tabIndex > 0 ? !0 : W(e) && !Yt(e);
760
+ function en(e) {
761
+ return e != null && e.tabIndex > 0 ? !0 : Qt(e) && !Yt(e);
762
762
  }
763
- function en(e, t) {
764
- let n = Qt(e, t), r = n[0] || null, i = n[n.length - 1] || null;
763
+ function tn(e, t) {
764
+ let n = $t(e, t), r = n[0] || null, i = n[n.length - 1] || null;
765
765
  return [r, i];
766
766
  }
767
- function tn(e, t) {
768
- let n = Qt(e), r = e?.ownerDocument || document, i = t ?? r.activeElement;
767
+ function nn(e, t) {
768
+ let n = $t(e), r = e?.ownerDocument || document, i = t ?? r.activeElement;
769
769
  if (!i) return null;
770
770
  let a = n.indexOf(i);
771
771
  return n[a + 1] || null;
772
772
  }
773
- function nn(e) {
774
- return e.tabIndex < 0 && (/^(audio|video|details)$/.test(e.localName) || Et(e)) && !Jt(e) ? 0 : e.tabIndex;
775
- }
776
773
  function rn(e) {
774
+ return e.tabIndex < 0 && (/^(audio|video|details)$/.test(e.localName) || wt(e)) && !Jt(e) ? 0 : e.tabIndex;
775
+ }
776
+ function an(e) {
777
777
  let { root: t, getInitialEl: n, filter: r, enabled: i = !0 } = e;
778
778
  if (!i) return;
779
779
  let a = null;
780
780
  if (a ||= typeof n == "function" ? n() : n, a ||= t?.querySelector("[data-autofocus],[autofocus]"), !a) {
781
- let e = Qt(t);
781
+ let e = $t(t);
782
782
  a = r ? e.filter(r)[0] : e[0];
783
783
  }
784
784
  return a || t || void 0;
@@ -789,29 +789,29 @@ function G(e) {
789
789
  globalThis.cancelAnimationFrame(t);
790
790
  };
791
791
  }
792
- function an(e) {
793
- let t = jt(e);
794
- return bt(t) ? V(t).body : B(t) && sn(t) ? t : an(t);
792
+ function on(e) {
793
+ let t = At(e);
794
+ return vt(t) ? Et(t).body : U(t) && cn(t) ? t : on(t);
795
795
  }
796
- const on = /auto|scroll|overlay|hidden|clip/;
797
- function sn(e) {
798
- let t = kt(e), { overflow: n, overflowX: r, overflowY: i, display: a } = t.getComputedStyle(e);
799
- return on.test(n + i + r) && !["inline", "contents"].includes(a);
796
+ const sn = /auto|scroll|overlay|hidden|clip/;
797
+ function cn(e) {
798
+ let t = Ot(e), { overflow: n, overflowX: r, overflowY: i, display: a } = t.getComputedStyle(e);
799
+ return sn.test(n + i + r) && !["inline", "contents"].includes(a);
800
800
  }
801
- function cn(e, t = {}) {
801
+ function ln(e, t = {}) {
802
802
  let { triggerElement: n, onFocus: r } = t, i = e?.ownerDocument || document, a = i.body;
803
803
  function o(t) {
804
804
  if (t.key !== "Tab") return;
805
- let o = null, [s, c] = en(e, !0), l = !s && !c;
806
- t.shiftKey && (i.activeElement === s || l) ? o = n : !t.shiftKey && i.activeElement === n ? o = s : !t.shiftKey && (i.activeElement === c || l) && (o = tn(a, n)), o && (t.preventDefault(), typeof r == "function" ? r(o) : o.focus());
805
+ let o = null, [s, c] = tn(e, !0), l = !s && !c;
806
+ t.shiftKey && (i.activeElement === s || l) ? o = n : !t.shiftKey && i.activeElement === n ? o = s : !t.shiftKey && (i.activeElement === c || l) && (o = nn(a, n)), o && (t.preventDefault(), typeof r == "function" ? r(o) : o.focus());
807
807
  }
808
- return U(i, "keydown", o, !0);
808
+ return W(i, "keydown", o, !0);
809
809
  }
810
- function ln(e, t) {
810
+ function un(e, t) {
811
811
  let { defer: n, triggerElement: r,...i } = t, a = n ? G : (e) => e(), o = [];
812
812
  return o.push(a(() => {
813
813
  let t = typeof e == "function" ? e() : e, n = typeof r == "function" ? r() : r;
814
- o.push(cn(t, {
814
+ o.push(ln(t, {
815
815
  triggerElement: n,
816
816
  ...i
817
817
  }));
@@ -819,12 +819,12 @@ function ln(e, t) {
819
819
  o.forEach((e) => e?.());
820
820
  };
821
821
  }
822
- function un(e) {
822
+ function dn(e) {
823
823
  let t = {
824
824
  getRootNode: (e) => e.getRootNode?.() ?? document,
825
- getDoc: (e) => V(t.getRootNode(e)),
825
+ getDoc: (e) => Et(t.getRootNode(e)),
826
826
  getWin: (e) => t.getDoc(e).defaultView ?? window,
827
- getActiveElement: (e) => At(t.getRootNode(e)),
827
+ getActiveElement: (e) => kt(t.getRootNode(e)),
828
828
  isActiveElement: (e, n) => n === t.getActiveElement(e),
829
829
  getById: (e, n) => t.getRootNode(e).getElementById(n),
830
830
  setValue: (e, t) => {
@@ -836,10 +836,10 @@ function un(e) {
836
836
  ...e
837
837
  };
838
838
  }
839
- const dn = /* @__PURE__ */ new WeakMap();
840
- function fn(e, t, n) {
841
- dn.has(e) || dn.set(e, /* @__PURE__ */ new Map());
842
- let r = dn.get(e), i = r.get(t);
839
+ const fn = /* @__PURE__ */ new WeakMap();
840
+ function pn(e, t, n) {
841
+ fn.has(e) || fn.set(e, /* @__PURE__ */ new Map());
842
+ let r = fn.get(e), i = r.get(t);
843
843
  if (!i) return r.set(t, n()), () => {
844
844
  r.get(t)?.(), r.delete(t);
845
845
  };
@@ -851,7 +851,7 @@ function fn(e, t, n) {
851
851
  e && (a(), r.set(t, i));
852
852
  };
853
853
  }
854
- function pn(e, t) {
854
+ function mn(e, t) {
855
855
  if (!e) return () => {};
856
856
  let n = () => {
857
857
  let n = e.style.cssText;
@@ -859,157 +859,157 @@ function pn(e, t) {
859
859
  e.style.cssText = n;
860
860
  };
861
861
  };
862
- return fn(e, "style", n);
862
+ return pn(e, "style", n);
863
863
  }
864
- function mn(e, t) {
864
+ function hn(e, t) {
865
865
  let n = e();
866
- if (B(n) && n.isConnected) return t(n), () => void 0;
866
+ if (U(n) && n.isConnected) return t(n), () => void 0;
867
867
  {
868
868
  let n = setInterval(() => {
869
869
  let r = e();
870
- B(r) && r.isConnected && (t(r), clearInterval(n));
870
+ U(r) && r.isConnected && (t(r), clearInterval(n));
871
871
  }, 16.666666666666668);
872
872
  return () => clearInterval(n);
873
873
  }
874
874
  }
875
- function hn(e, t) {
875
+ function gn(e, t) {
876
876
  let n = [];
877
877
  return e?.forEach((e) => {
878
- let r = mn(e, t);
878
+ let r = hn(e, t);
879
879
  n.push(r);
880
880
  }), () => {
881
881
  n.forEach((e) => e());
882
882
  };
883
883
  }
884
- function gn(e) {
884
+ function _n(e) {
885
885
  for (; e.length > 0;) e.pop();
886
886
  return e;
887
887
  }
888
- function _n(e, ...t) {
888
+ function vn(e, ...t) {
889
889
  let n = typeof e == "function" ? e(...t) : e;
890
890
  return n ?? void 0;
891
891
  }
892
892
  const K = (e) => e;
893
- function vn() {}
894
- function yn(...e) {
893
+ function yn() {}
894
+ function bn(...e) {
895
895
  return (...t) => {
896
896
  e.forEach((e) => {
897
897
  e?.(...t);
898
898
  });
899
899
  };
900
900
  }
901
- const bn = /* @__PURE__ */ (() => {
901
+ const xn = /* @__PURE__ */ (() => {
902
902
  let e = 0;
903
903
  return () => (e++, e.toString(36));
904
- })(), xn = (e) => Array.isArray(e), Sn = (e) => typeof e == "object" && !!e, Cn = (e) => Sn(e) && !xn(e), wn = (e) => typeof e == "number" && !Number.isNaN(e), q = (e) => typeof e == "string", Tn = (e) => typeof e == "function", En = (e) => e == null;
905
- function Dn(e, t) {
904
+ })(), Sn = (e) => Array.isArray(e), Cn = (e) => typeof e == "object" && !!e, wn = (e) => Cn(e) && !Sn(e), Tn = (e) => typeof e == "number" && !Number.isNaN(e), q = (e) => typeof e == "string", En = (e) => typeof e == "function", Dn = (e) => e == null;
905
+ function On(e, t) {
906
906
  return Object.prototype.hasOwnProperty.call(e, t);
907
907
  }
908
- const On = (e) => Object.prototype.toString.call(e), kn = Function.prototype.toString, An = kn.call(Object);
909
- function jn(e) {
910
- if (!Sn(e) || On(e) !== "[object Object]") return !1;
908
+ const kn = (e) => Object.prototype.toString.call(e), An = Function.prototype.toString, jn = An.call(Object);
909
+ function Mn(e) {
910
+ if (!Cn(e) || kn(e) !== "[object Object]") return !1;
911
911
  let t = Object.getPrototypeOf(e);
912
912
  if (t === null) return !0;
913
- let n = Dn(t, "constructor") && t.constructor;
914
- return typeof n == "function" && n instanceof n && kn.call(n) === An;
913
+ let n = On(t, "constructor") && t.constructor;
914
+ return typeof n == "function" && n instanceof n && An.call(n) === jn;
915
915
  }
916
- const { floor: Mn, abs: Nn, round: Pn, min: Fn, max: In, sign: Ln } = Math;
917
- function Rn(e) {
918
- if (!zn(e) || e === void 0) return e;
916
+ const { floor: Nn, abs: Pn, round: Fn, min: In, max: Ln, sign: Rn } = Math;
917
+ function zn(e) {
918
+ if (!Bn(e) || e === void 0) return e;
919
919
  let t = Reflect.ownKeys(e).filter((e) => typeof e == "string"), n = {};
920
920
  for (let r of t) {
921
921
  let t = e[r];
922
- t !== void 0 && (n[r] = Rn(t));
922
+ t !== void 0 && (n[r] = zn(t));
923
923
  }
924
924
  return n;
925
925
  }
926
- function zn(e) {
926
+ function Bn(e) {
927
927
  return e && typeof e == "object" && e.constructor === Object;
928
928
  }
929
- function Bn(e, t) {
929
+ function Vn(e, t) {
930
930
  let n = {}, r = {}, i = new Set(t);
931
931
  for (let t in e) i.has(t) ? r[t] = e[t] : n[t] = e[t];
932
932
  return [r, n];
933
933
  }
934
- function Vn(e) {
934
+ function Hn(e) {
935
935
  return function(t) {
936
- return Bn(t, e);
936
+ return Vn(t, e);
937
937
  };
938
938
  }
939
- function Hn(e) {
940
- let t = R(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = L(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = O(n) !== a || O(r) !== o;
939
+ function Un(e) {
940
+ let t = V(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = B(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = j(n) !== a || j(r) !== o;
941
941
  return s && (n = a, r = o), {
942
942
  width: n,
943
943
  height: r,
944
944
  $: s
945
945
  };
946
946
  }
947
- function Un(e) {
948
- return I(e) ? e : e.contextElement;
949
- }
950
947
  function Wn(e) {
951
- let t = Un(e);
952
- if (!L(t)) return k(1);
953
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Hn(t), o = (a ? O(n.width) : n.width) / r, s = (a ? O(n.height) : n.height) / i;
948
+ return z(e) ? e : e.contextElement;
949
+ }
950
+ function Gn(e) {
951
+ let t = Wn(e);
952
+ if (!B(t)) return M(1);
953
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Un(t), o = (a ? j(n.width) : n.width) / r, s = (a ? j(n.height) : n.height) / i;
954
954
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
955
955
  x: o,
956
956
  y: s
957
957
  };
958
958
  }
959
- const Gn = /* @__PURE__ */ k(0);
960
- function Kn(e) {
961
- let t = P(e);
962
- return !at() || !t.visualViewport ? Gn : {
959
+ const Kn = /* @__PURE__ */ M(0);
960
+ function qn(e) {
961
+ let t = L(e);
962
+ return !rt() || !t.visualViewport ? Kn : {
963
963
  x: t.visualViewport.offsetLeft,
964
964
  y: t.visualViewport.offsetTop
965
965
  };
966
966
  }
967
- function qn(e, t, n) {
968
- return t === void 0 && (t = !1), !n || t && n !== P(e) ? !1 : t;
967
+ function Jn(e, t, n) {
968
+ return t === void 0 && (t = !1), !n || t && n !== L(e) ? !1 : t;
969
969
  }
970
- function Jn(e, t, n, r) {
970
+ function Yn(e, t, n, r) {
971
971
  t === void 0 && (t = !1), n === void 0 && (n = !1);
972
- let i = e.getBoundingClientRect(), a = Un(e), o = k(1);
973
- t && (r ? I(r) && (o = Wn(r)) : o = Wn(e));
974
- let s = qn(a, n, r) ? Kn(a) : k(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
972
+ let i = e.getBoundingClientRect(), a = Wn(e), o = M(1);
973
+ t && (r ? z(r) && (o = Gn(r)) : o = Gn(e));
974
+ let s = Jn(a, n, r) ? qn(a) : M(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
975
975
  if (a) {
976
- let e = P(a), t = r && I(r) ? P(r) : r, n = e, i = dt(n);
976
+ let e = L(a), t = r && z(r) ? L(r) : r, n = e, i = lt(n);
977
977
  for (; i && r && t !== n;) {
978
- let e = Wn(i), t = i.getBoundingClientRect(), r = R(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
979
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = P(i), i = dt(n);
978
+ let e = Gn(i), t = i.getBoundingClientRect(), r = V(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
979
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = L(i), i = lt(n);
980
980
  }
981
981
  }
982
- return ke({
982
+ return De({
983
983
  width: u,
984
984
  height: d,
985
985
  x: c,
986
986
  y: l
987
987
  });
988
988
  }
989
- function Yn(e, t) {
990
- let n = ct(e).scrollLeft;
991
- return t ? t.left + n : Jn(F(e)).left + n;
989
+ function Xn(e, t) {
990
+ let n = ot(e).scrollLeft;
991
+ return t ? t.left + n : Yn(R(e)).left + n;
992
992
  }
993
- function Xn(e, t, n) {
993
+ function Zn(e, t, n) {
994
994
  n === void 0 && (n = !1);
995
- let r = e.getBoundingClientRect(), i = r.left + t.scrollLeft - (n ? 0 : Yn(e, r)), a = r.top + t.scrollTop;
995
+ let r = e.getBoundingClientRect(), i = r.left + t.scrollLeft - (n ? 0 : Xn(e, r)), a = r.top + t.scrollTop;
996
996
  return {
997
997
  x: i,
998
998
  y: a
999
999
  };
1000
1000
  }
1001
- function Zn(e) {
1002
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = F(r), s = t ? $e(t.floating) : !1;
1001
+ function Qn(e) {
1002
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = R(r), s = t ? Ze(t.floating) : !1;
1003
1003
  if (r === o || s && a) return n;
1004
1004
  let c = {
1005
1005
  scrollLeft: 0,
1006
1006
  scrollTop: 0
1007
- }, l = k(1), u = k(0), d = L(r);
1008
- if ((d || !d && !a) && ((Ge(r) !== "body" || Ye(o)) && (c = ct(r)), L(r))) {
1009
- let e = Jn(r);
1010
- l = Wn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
1007
+ }, l = M(1), u = M(0), d = B(r);
1008
+ if ((d || !d && !a) && ((Ue(r) !== "body" || qe(o)) && (c = ot(r)), B(r))) {
1009
+ let e = Yn(r);
1010
+ l = Gn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
1011
1011
  }
1012
- let f = o && !d && !a ? Xn(o, c, !0) : k(0);
1012
+ let f = o && !d && !a ? Zn(o, c, !0) : M(0);
1013
1013
  return {
1014
1014
  width: n.width * l.x,
1015
1015
  height: n.height * l.y,
@@ -1017,23 +1017,23 @@ function Zn(e) {
1017
1017
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
1018
1018
  };
1019
1019
  }
1020
- function Qn(e) {
1020
+ function $n(e) {
1021
1021
  return Array.from(e.getClientRects());
1022
1022
  }
1023
- function $n(e) {
1024
- let t = F(e), n = ct(e), r = e.ownerDocument.body, i = D(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = D(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Yn(e), s = -n.scrollTop;
1025
- return R(r).direction === "rtl" && (o += D(t.clientWidth, r.clientWidth) - i), {
1023
+ function er(e) {
1024
+ let t = R(e), n = ot(e), r = e.ownerDocument.body, i = A(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = A(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Xn(e), s = -n.scrollTop;
1025
+ return V(r).direction === "rtl" && (o += A(t.clientWidth, r.clientWidth) - i), {
1026
1026
  width: i,
1027
1027
  height: a,
1028
1028
  x: o,
1029
1029
  y: s
1030
1030
  };
1031
1031
  }
1032
- function er(e, t) {
1033
- let n = P(e), r = F(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
1032
+ function tr(e, t) {
1033
+ let n = L(e), r = R(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
1034
1034
  if (i) {
1035
1035
  a = i.width, o = i.height;
1036
- let e = at();
1036
+ let e = rt();
1037
1037
  (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
1038
1038
  }
1039
1039
  return {
@@ -1043,8 +1043,8 @@ function er(e, t) {
1043
1043
  y: c
1044
1044
  };
1045
1045
  }
1046
- function tr(e, t) {
1047
- let n = Jn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = L(e) ? Wn(e) : k(1), o = e.clientWidth * a.x, s = e.clientHeight * a.y, c = i * a.x, l = r * a.y;
1046
+ function nr(e, t) {
1047
+ let n = Yn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = B(e) ? Gn(e) : M(1), o = e.clientWidth * a.x, s = e.clientHeight * a.y, c = i * a.x, l = r * a.y;
1048
1048
  return {
1049
1049
  width: o,
1050
1050
  height: s,
@@ -1052,13 +1052,13 @@ function tr(e, t) {
1052
1052
  y: l
1053
1053
  };
1054
1054
  }
1055
- function nr(e, t, n) {
1055
+ function rr(e, t, n) {
1056
1056
  let r;
1057
- if (t === "viewport") r = er(e, n);
1058
- else if (t === "document") r = $n(F(e));
1059
- else if (I(t)) r = tr(t, n);
1057
+ if (t === "viewport") r = tr(e, n);
1058
+ else if (t === "document") r = er(R(e));
1059
+ else if (z(t)) r = nr(t, n);
1060
1060
  else {
1061
- let n = Kn(e);
1061
+ let n = qn(e);
1062
1062
  r = {
1063
1063
  x: t.x - n.x,
1064
1064
  y: t.y - n.y,
@@ -1066,29 +1066,29 @@ function nr(e, t, n) {
1066
1066
  height: t.height
1067
1067
  };
1068
1068
  }
1069
- return ke(r);
1070
- }
1071
- function rr(e, t) {
1072
- let n = z(e);
1073
- return n === t || !I(n) || st(n) ? !1 : R(n).position === "fixed" || rr(n, t);
1069
+ return De(r);
1074
1070
  }
1075
1071
  function ir(e, t) {
1072
+ let n = H(e);
1073
+ return n === t || !z(n) || at(n) ? !1 : V(n).position === "fixed" || ir(n, t);
1074
+ }
1075
+ function ar(e, t) {
1076
1076
  let n = t.get(e);
1077
1077
  if (n) return n;
1078
- let r = ut(e, [], !1).filter((e) => I(e) && Ge(e) !== "body"), i = null, a = R(e).position === "fixed", o = a ? z(e) : e;
1079
- for (; I(o) && !st(o);) {
1080
- let t = R(o), n = rt(o);
1078
+ let r = ct(e, [], !1).filter((e) => z(e) && Ue(e) !== "body"), i = null, a = V(e).position === "fixed", o = a ? H(e) : e;
1079
+ for (; z(o) && !at(o);) {
1080
+ let t = V(o), n = tt(o);
1081
1081
  !n && t.position === "fixed" && (i = null);
1082
- let s = a ? !n && !i : !n && t.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Ye(o) && !n && rr(e, o);
1083
- s ? r = r.filter((e) => e !== o) : i = t, o = z(o);
1082
+ let s = a ? !n && !i : !n && t.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || qe(o) && !n && ir(e, o);
1083
+ s ? r = r.filter((e) => e !== o) : i = t, o = H(o);
1084
1084
  }
1085
1085
  return t.set(e, r), r;
1086
1086
  }
1087
- function ar(e) {
1088
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = n === "clippingAncestors" ? $e(t) ? [] : ir(t, this._c) : [].concat(n), o = [...a, r], s = o[0], c = o.reduce((e, n) => {
1089
- let r = nr(t, n, i);
1090
- return e.top = D(r.top, e.top), e.right = E(r.right, e.right), e.bottom = E(r.bottom, e.bottom), e.left = D(r.left, e.left), e;
1091
- }, nr(t, s, i));
1087
+ function or(e) {
1088
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = n === "clippingAncestors" ? Ze(t) ? [] : ar(t, this._c) : [].concat(n), o = [...a, r], s = o[0], c = o.reduce((e, n) => {
1089
+ let r = rr(t, n, i);
1090
+ return e.top = A(r.top, e.top), e.right = k(r.right, e.right), e.bottom = k(r.bottom, e.bottom), e.left = A(r.left, e.left), e;
1091
+ }, rr(t, s, i));
1092
1092
  return {
1093
1093
  width: c.right - c.left,
1094
1094
  height: c.bottom - c.top,
@@ -1096,27 +1096,27 @@ function ar(e) {
1096
1096
  y: c.top
1097
1097
  };
1098
1098
  }
1099
- function or(e) {
1100
- let { width: t, height: n } = Hn(e);
1099
+ function sr(e) {
1100
+ let { width: t, height: n } = Un(e);
1101
1101
  return {
1102
1102
  width: t,
1103
1103
  height: n
1104
1104
  };
1105
1105
  }
1106
- function sr(e, t, n) {
1107
- let r = L(t), i = F(t), a = n === "fixed", o = Jn(e, !0, a, t), s = {
1106
+ function cr(e, t, n) {
1107
+ let r = B(t), i = R(t), a = n === "fixed", o = Yn(e, !0, a, t), s = {
1108
1108
  scrollLeft: 0,
1109
1109
  scrollTop: 0
1110
- }, c = k(0);
1110
+ }, c = M(0);
1111
1111
  function l() {
1112
- c.x = Yn(i);
1112
+ c.x = Xn(i);
1113
1113
  }
1114
- if (r || !r && !a) if ((Ge(t) !== "body" || Ye(i)) && (s = ct(t)), r) {
1115
- let e = Jn(t, !0, a, t);
1114
+ if (r || !r && !a) if ((Ue(t) !== "body" || qe(i)) && (s = ot(t)), r) {
1115
+ let e = Yn(t, !0, a, t);
1116
1116
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
1117
1117
  } else i && l();
1118
1118
  a && !r && i && l();
1119
- let u = i && !r && !a ? Xn(i, s) : k(0), d = o.left + s.scrollLeft - c.x - u.x, f = o.top + s.scrollTop - c.y - u.y;
1119
+ let u = i && !r && !a ? Zn(i, s) : M(0), d = o.left + s.scrollLeft - c.x - u.x, f = o.top + s.scrollTop - c.y - u.y;
1120
1120
  return {
1121
1121
  x: d,
1122
1122
  y: f,
@@ -1124,34 +1124,34 @@ function sr(e, t, n) {
1124
1124
  height: o.height
1125
1125
  };
1126
1126
  }
1127
- function cr(e) {
1128
- return R(e).position === "static";
1127
+ function lr(e) {
1128
+ return V(e).position === "static";
1129
1129
  }
1130
- function lr(e, t) {
1131
- if (!L(e) || R(e).position === "fixed") return null;
1130
+ function ur(e, t) {
1131
+ if (!B(e) || V(e).position === "fixed") return null;
1132
1132
  if (t) return t(e);
1133
1133
  let n = e.offsetParent;
1134
- return F(e) === n && (n = n.ownerDocument.body), n;
1134
+ return R(e) === n && (n = n.ownerDocument.body), n;
1135
1135
  }
1136
- function ur(e, t) {
1137
- let n = P(e);
1138
- if ($e(e)) return n;
1139
- if (!L(e)) {
1140
- let t = z(e);
1141
- for (; t && !st(t);) {
1142
- if (I(t) && !cr(t)) return t;
1143
- t = z(t);
1136
+ function dr(e, t) {
1137
+ let n = L(e);
1138
+ if (Ze(e)) return n;
1139
+ if (!B(e)) {
1140
+ let t = H(e);
1141
+ for (; t && !at(t);) {
1142
+ if (z(t) && !lr(t)) return t;
1143
+ t = H(t);
1144
1144
  }
1145
1145
  return n;
1146
1146
  }
1147
- let r = lr(e, t);
1148
- for (; r && Ze(r) && cr(r);) r = lr(r, t);
1149
- return r && st(r) && cr(r) && !rt(r) ? n : r || it(e) || n;
1147
+ let r = ur(e, t);
1148
+ for (; r && Ye(r) && lr(r);) r = ur(r, t);
1149
+ return r && at(r) && lr(r) && !tt(r) ? n : r || nt(e) || n;
1150
1150
  }
1151
- const dr = async function(e) {
1152
- let t = this.getOffsetParent || ur, n = this.getDimensions, r = await n(e.floating);
1151
+ const fr = async function(e) {
1152
+ let t = this.getOffsetParent || dr, n = this.getDimensions, r = await n(e.floating);
1153
1153
  return {
1154
- reference: sr(e.reference, await t(e.floating), e.strategy),
1154
+ reference: cr(e.reference, await t(e.floating), e.strategy),
1155
1155
  floating: {
1156
1156
  x: 0,
1157
1157
  y: 0,
@@ -1160,26 +1160,26 @@ const dr = async function(e) {
1160
1160
  }
1161
1161
  };
1162
1162
  };
1163
- function fr(e) {
1164
- return R(e).direction === "rtl";
1165
- }
1166
- const pr = {
1167
- convertOffsetParentRelativeRectToViewportRelativeRect: Zn,
1168
- getDocumentElement: F,
1169
- getClippingRect: ar,
1170
- getOffsetParent: ur,
1171
- getElementRects: dr,
1172
- getClientRects: Qn,
1173
- getDimensions: or,
1174
- getScale: Wn,
1175
- isElement: I,
1176
- isRTL: fr
1163
+ function pr(e) {
1164
+ return V(e).direction === "rtl";
1165
+ }
1166
+ const mr = {
1167
+ convertOffsetParentRelativeRectToViewportRelativeRect: Qn,
1168
+ getDocumentElement: R,
1169
+ getClippingRect: or,
1170
+ getOffsetParent: dr,
1171
+ getElementRects: fr,
1172
+ getClientRects: $n,
1173
+ getDimensions: sr,
1174
+ getScale: Gn,
1175
+ isElement: z,
1176
+ isRTL: pr
1177
1177
  };
1178
- function mr(e, t) {
1178
+ function hr(e, t) {
1179
1179
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1180
1180
  }
1181
- function hr(e, t) {
1182
- let n = null, r, i = F(e);
1181
+ function gr(e, t) {
1182
+ let n = null, r, i = R(e);
1183
1183
  function a() {
1184
1184
  var e;
1185
1185
  clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
@@ -1188,9 +1188,9 @@ function hr(e, t) {
1188
1188
  s === void 0 && (s = !1), c === void 0 && (c = 1), a();
1189
1189
  let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
1190
1190
  if (s || t(), !f || !p) return;
1191
- let m = le(d), h = le(i.clientWidth - (u + f)), g = le(i.clientHeight - (d + p)), _ = le(u), v = -m + "px " + -h + "px " + -g + "px " + -_ + "px", y = {
1191
+ let m = se(d), h = se(i.clientWidth - (u + f)), g = se(i.clientHeight - (d + p)), _ = se(u), v = -m + "px " + -h + "px " + -g + "px " + -_ + "px", y = {
1192
1192
  rootMargin: v,
1193
- threshold: D(0, E(1, c)) || 1
1193
+ threshold: A(0, k(1, c)) || 1
1194
1194
  }, b = !0;
1195
1195
  function x(t) {
1196
1196
  let n = t[0].intersectionRatio;
@@ -1200,7 +1200,7 @@ function hr(e, t) {
1200
1200
  o(!1, 1e-7);
1201
1201
  }, 1e3);
1202
1202
  }
1203
- n === 1 && !mr(l, e.getBoundingClientRect()) && o(), b = !1;
1203
+ n === 1 && !hr(l, e.getBoundingClientRect()) && o(), b = !1;
1204
1204
  }
1205
1205
  try {
1206
1206
  n = new IntersectionObserver(x, {
@@ -1214,13 +1214,13 @@ function hr(e, t) {
1214
1214
  }
1215
1215
  return o(!0), a;
1216
1216
  }
1217
- function gr(e, t, n, r) {
1217
+ function _r(e, t, n, r) {
1218
1218
  r === void 0 && (r = {});
1219
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Un(e), u = i || a ? [...l ? ut(l) : [], ...ut(t)] : [];
1219
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Wn(e), u = i || a ? [...l ? ct(l) : [], ...ct(t)] : [];
1220
1220
  u.forEach((e) => {
1221
1221
  i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
1222
1222
  });
1223
- let d = l && s ? hr(l, n) : null, f = -1, p = null;
1223
+ let d = l && s ? gr(l, n) : null, f = -1, p = null;
1224
1224
  o && (p = new ResizeObserver((e) => {
1225
1225
  let [r] = e;
1226
1226
  r && r.target === l && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
@@ -1228,11 +1228,11 @@ function gr(e, t, n, r) {
1228
1228
  (e = p) == null || e.observe(t);
1229
1229
  })), n();
1230
1230
  }), l && !c && p.observe(l), p.observe(t));
1231
- let m, h = c ? Jn(e) : null;
1231
+ let m, h = c ? Yn(e) : null;
1232
1232
  c && g();
1233
1233
  function g() {
1234
- let t = Jn(e);
1235
- h && !mr(h, t) && n(), h = t, m = requestAnimationFrame(g);
1234
+ let t = Yn(e);
1235
+ h && !hr(h, t) && n(), h = t, m = requestAnimationFrame(g);
1236
1236
  }
1237
1237
  return n(), () => {
1238
1238
  var e;
@@ -1241,20 +1241,20 @@ function gr(e, t, n, r) {
1241
1241
  }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
1242
1242
  };
1243
1243
  }
1244
- const _r = Be, vr = Ve, yr = Pe, br = Ue, xr = Le, Sr = Ne, Cr = He, wr = (e, t, n) => {
1244
+ const vr = Re, yr = ze, br = Me, xr = Ve, Sr = Fe, Cr = je, wr = Be, Tr = (e, t, n) => {
1245
1245
  let r = /* @__PURE__ */ new Map(), i = {
1246
- platform: pr,
1246
+ platform: mr,
1247
1247
  ...n
1248
1248
  }, a = {
1249
1249
  ...i.platform,
1250
1250
  _c: r
1251
1251
  };
1252
- return je(e, t, {
1252
+ return ke(e, t, {
1253
1253
  ...i,
1254
1254
  platform: a
1255
1255
  });
1256
1256
  };
1257
- function Tr(e = 0, t = 0, n = 0, r = 0) {
1257
+ function Er(e = 0, t = 0, n = 0, r = 0) {
1258
1258
  if (typeof DOMRect == "function") return new DOMRect(e, t, n, r);
1259
1259
  let i = {
1260
1260
  x: e,
@@ -1271,31 +1271,31 @@ function Tr(e = 0, t = 0, n = 0, r = 0) {
1271
1271
  toJSON: () => i
1272
1272
  };
1273
1273
  }
1274
- function Er(e) {
1275
- if (!e) return Tr();
1274
+ function Dr(e) {
1275
+ if (!e) return Er();
1276
1276
  let { x: t, y: n, width: r, height: i } = e;
1277
- return Tr(t, n, r, i);
1277
+ return Er(t, n, r, i);
1278
1278
  }
1279
- function Dr(e, t) {
1279
+ function Or(e, t) {
1280
1280
  return {
1281
- contextElement: B(e) ? e : void 0,
1281
+ contextElement: U(e) ? e : void 0,
1282
1282
  getBoundingClientRect: () => {
1283
1283
  let n = e, r = t?.(n);
1284
- return r || !n ? Er(r) : n.getBoundingClientRect();
1284
+ return r || !n ? Dr(r) : n.getBoundingClientRect();
1285
1285
  }
1286
1286
  };
1287
1287
  }
1288
- const Or = (e) => ({
1288
+ const kr = (e) => ({
1289
1289
  variable: e,
1290
1290
  reference: `var(${e})`
1291
1291
  }), J = {
1292
- arrowSize: Or("--arrow-size"),
1293
- arrowSizeHalf: Or("--arrow-size-half"),
1294
- arrowBg: Or("--arrow-background"),
1295
- transformOrigin: Or("--transform-origin"),
1296
- arrowOffset: Or("--arrow-offset")
1292
+ arrowSize: kr("--arrow-size"),
1293
+ arrowSizeHalf: kr("--arrow-size-half"),
1294
+ arrowBg: kr("--arrow-background"),
1295
+ transformOrigin: kr("--transform-origin"),
1296
+ arrowOffset: kr("--arrow-offset")
1297
1297
  };
1298
- function kr(e) {
1298
+ function Ar(e) {
1299
1299
  return {
1300
1300
  top: "bottom center",
1301
1301
  "top-start": e ? `${e.x}px bottom` : "left bottom",
@@ -1311,19 +1311,19 @@ function kr(e) {
1311
1311
  "right-end": e ? `left ${e.y}px` : "left bottom"
1312
1312
  };
1313
1313
  }
1314
- const Ar = {
1314
+ const jr = {
1315
1315
  name: "transformOrigin",
1316
1316
  fn({ placement: e, elements: t, middlewareData: n }) {
1317
- let { arrow: r } = n, i = kr(r)[e], { floating: a } = t;
1317
+ let { arrow: r } = n, i = Ar(r)[e], { floating: a } = t;
1318
1318
  return a.style.setProperty(J.transformOrigin.variable, i), { data: { transformOrigin: i } };
1319
1319
  }
1320
- }, jr = {
1320
+ }, Mr = {
1321
1321
  name: "rects",
1322
1322
  fn({ rects: e }) {
1323
1323
  return { data: e };
1324
1324
  }
1325
1325
  };
1326
- function Mr(e) {
1326
+ function Nr(e) {
1327
1327
  if (e) return {
1328
1328
  name: "shiftArrow",
1329
1329
  fn({ placement: t, middlewareData: n }) {
@@ -1337,7 +1337,7 @@ function Mr(e) {
1337
1337
  }
1338
1338
  };
1339
1339
  }
1340
- function Nr(e) {
1340
+ function Pr(e) {
1341
1341
  let [t, n] = e.split("-");
1342
1342
  return {
1343
1343
  side: t,
@@ -1345,7 +1345,7 @@ function Nr(e) {
1345
1345
  hasAlign: n != null
1346
1346
  };
1347
1347
  }
1348
- const Pr = {
1348
+ const Fr = {
1349
1349
  strategy: "absolute",
1350
1350
  placement: "bottom",
1351
1351
  listeners: !0,
@@ -1358,47 +1358,47 @@ const Pr = {
1358
1358
  overflowPadding: 8,
1359
1359
  arrowPadding: 4
1360
1360
  };
1361
- function Fr(e, t) {
1361
+ function Ir(e, t) {
1362
1362
  let n = e.devicePixelRatio || 1;
1363
1363
  return Math.round(t * n) / n;
1364
1364
  }
1365
- function Ir(e) {
1366
- return _n(e.boundary);
1365
+ function Lr(e) {
1366
+ return vn(e.boundary);
1367
1367
  }
1368
- function Lr(e, t) {
1369
- if (e) return Sr({
1368
+ function Rr(e, t) {
1369
+ if (e) return Cr({
1370
1370
  element: e,
1371
1371
  padding: t.arrowPadding
1372
1372
  });
1373
1373
  }
1374
- function Rr(e, t) {
1375
- if (!En(t.offset ?? t.gutter)) return _r(({ placement: n }) => {
1376
- let r = (e?.clientHeight || 0) / 2, i = t.offset?.mainAxis ?? t.gutter, a = typeof i == "number" ? i + r : i ?? r, { hasAlign: o } = Nr(n), s = o ? void 0 : t.shift, c = t.offset?.crossAxis ?? s;
1377
- return Rn({
1374
+ function zr(e, t) {
1375
+ if (!Dn(t.offset ?? t.gutter)) return vr(({ placement: n }) => {
1376
+ let r = (e?.clientHeight || 0) / 2, i = t.offset?.mainAxis ?? t.gutter, a = typeof i == "number" ? i + r : i ?? r, { hasAlign: o } = Pr(n), s = o ? void 0 : t.shift, c = t.offset?.crossAxis ?? s;
1377
+ return zn({
1378
1378
  crossAxis: c,
1379
1379
  mainAxis: a,
1380
1380
  alignmentAxis: t.shift
1381
1381
  });
1382
1382
  });
1383
1383
  }
1384
- function zr(e) {
1385
- if (e.flip) return yr({
1386
- boundary: Ir(e),
1384
+ function Br(e) {
1385
+ if (e.flip) return br({
1386
+ boundary: Lr(e),
1387
1387
  padding: e.overflowPadding,
1388
1388
  fallbackPlacements: e.flip === !0 ? void 0 : e.flip
1389
1389
  });
1390
1390
  }
1391
- function Br(e) {
1392
- if (!(!e.slide && !e.overlap)) return vr({
1393
- boundary: Ir(e),
1391
+ function Vr(e) {
1392
+ if (!(!e.slide && !e.overlap)) return yr({
1393
+ boundary: Lr(e),
1394
1394
  mainAxis: e.slide,
1395
1395
  crossAxis: e.overlap,
1396
1396
  padding: e.overflowPadding,
1397
- limiter: Cr()
1397
+ limiter: wr()
1398
1398
  });
1399
1399
  }
1400
- function Vr(e) {
1401
- return br({
1400
+ function Hr(e) {
1401
+ return xr({
1402
1402
  padding: e.overflowPadding,
1403
1403
  apply({ elements: e, rects: t, availableHeight: n, availableWidth: r }) {
1404
1404
  let i = e.floating, a = Math.round(t.reference.width);
@@ -1406,13 +1406,13 @@ function Vr(e) {
1406
1406
  }
1407
1407
  });
1408
1408
  }
1409
- function Hr(e) {
1410
- if (e.hideWhenDetached) return xr({
1409
+ function Ur(e) {
1410
+ if (e.hideWhenDetached) return Sr({
1411
1411
  strategy: "referenceHidden",
1412
1412
  boundary: e.boundary?.() ?? "clippingAncestors"
1413
1413
  });
1414
1414
  }
1415
- function Ur(e) {
1415
+ function Wr(e) {
1416
1416
  return e ? e === !0 ? {
1417
1417
  ancestorResize: !0,
1418
1418
  ancestorScroll: !0,
@@ -1420,60 +1420,60 @@ function Ur(e) {
1420
1420
  layoutShift: !0
1421
1421
  } : e : {};
1422
1422
  }
1423
- function Wr(e, t, n = {}) {
1424
- let r = Dr(e, n.getAnchorRect);
1423
+ function Gr(e, t, n = {}) {
1424
+ let r = Or(e, n.getAnchorRect);
1425
1425
  if (!t || !r) return;
1426
- let i = Object.assign({}, Pr, n), a = t.querySelector("[data-part=arrow]"), o = [
1427
- Rr(a, i),
1428
- zr(i),
1426
+ let i = Object.assign({}, Fr, n), a = t.querySelector("[data-part=arrow]"), o = [
1427
+ zr(a, i),
1429
1428
  Br(i),
1430
- Lr(a, i),
1431
- Mr(a),
1432
- Ar,
1433
1429
  Vr(i),
1430
+ Rr(a, i),
1431
+ Nr(a),
1432
+ jr,
1434
1433
  Hr(i),
1435
- jr
1434
+ Ur(i),
1435
+ Mr
1436
1436
  ], { placement: s, strategy: c, onComplete: l, onPositioned: u } = i, d = async () => {
1437
1437
  if (!r || !t) return;
1438
- let e = await wr(r, t, {
1438
+ let e = await Tr(r, t, {
1439
1439
  placement: s,
1440
1440
  middleware: o,
1441
1441
  strategy: c
1442
1442
  });
1443
1443
  l?.(e), u?.({ placed: !0 });
1444
- let n = kt(t), a = Fr(n, e.x), d = Fr(n, e.y);
1444
+ let n = Ot(t), a = Ir(n, e.x), d = Ir(n, e.y);
1445
1445
  if (t.style.setProperty("--x", `${a}px`), t.style.setProperty("--y", `${d}px`), i.hideWhenDetached) {
1446
1446
  let n = e.middlewareData.hide?.referenceHidden;
1447
1447
  n ? (t.style.setProperty("visibility", "hidden"), t.style.setProperty("pointer-events", "none")) : (t.style.removeProperty("visibility"), t.style.removeProperty("pointer-events"));
1448
1448
  }
1449
1449
  let f = t.firstElementChild;
1450
1450
  if (f) {
1451
- let e = Nt(f);
1451
+ let e = Mt(f);
1452
1452
  t.style.setProperty("--z-index", e.zIndex);
1453
1453
  }
1454
1454
  }, f = async () => {
1455
1455
  n.updatePosition ? (await n.updatePosition({ updatePosition: d }), u?.({ placed: !0 })) : await d();
1456
- }, p = Ur(i.listeners), m = i.listeners ? gr(r, t, f, p) : vn;
1456
+ }, p = Wr(i.listeners), m = i.listeners ? _r(r, t, f, p) : yn;
1457
1457
  return f(), () => {
1458
1458
  m?.(), u?.({ placed: !1 });
1459
1459
  };
1460
1460
  }
1461
- function Gr(e, t, n = {}) {
1461
+ function Kr(e, t, n = {}) {
1462
1462
  let { defer: r,...i } = n, a = r ? G : (e) => e(), o = [];
1463
1463
  return o.push(a(() => {
1464
1464
  let n = typeof e == "function" ? e() : e, r = typeof t == "function" ? t() : t;
1465
- o.push(Wr(n, r, i));
1465
+ o.push(Gr(n, r, i));
1466
1466
  })), () => {
1467
1467
  o.forEach((e) => e?.());
1468
1468
  };
1469
1469
  }
1470
- const Kr = {
1470
+ const qr = {
1471
1471
  bottom: "rotate(45deg)",
1472
1472
  left: "rotate(135deg)",
1473
1473
  top: "rotate(225deg)",
1474
1474
  right: "rotate(315deg)"
1475
1475
  };
1476
- function qr(e = {}) {
1476
+ function Jr(e = {}) {
1477
1477
  let { placement: t, sameWidth: n, fitViewport: r, strategy: i = "absolute" } = e;
1478
1478
  return {
1479
1479
  arrow: {
@@ -1484,7 +1484,7 @@ function qr(e = {}) {
1484
1484
  [J.arrowOffset.variable]: `calc(${J.arrowSizeHalf.reference} * -1)`
1485
1485
  },
1486
1486
  arrowTip: {
1487
- transform: t ? Kr[t.split("-")[0]] : void 0,
1487
+ transform: t ? qr[t.split("-")[0]] : void 0,
1488
1488
  background: J.arrowBg.reference,
1489
1489
  top: "0",
1490
1490
  left: "0",
@@ -1507,24 +1507,24 @@ function qr(e = {}) {
1507
1507
  }
1508
1508
  };
1509
1509
  }
1510
- let Jr = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), Xr = {}, Zr = 0;
1511
- function Qr(e) {
1512
- return e && (e.host || Qr(e.parentNode));
1510
+ let Yr = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), Zr = {}, Qr = 0;
1511
+ function $r(e) {
1512
+ return e && (e.host || $r(e.parentNode));
1513
1513
  }
1514
- function $r(e, t) {
1514
+ function ei(e, t) {
1515
1515
  return t.map((t) => {
1516
1516
  if (e.contains(t)) return t;
1517
- let n = Qr(t);
1517
+ let n = $r(t);
1518
1518
  return n && e.contains(n) ? n : (console.error("[@destyler/aria-hidden] target", t, "in not contained inside", e, ". Doing nothing"), null);
1519
1519
  }).filter((e) => !!e);
1520
1520
  }
1521
- function ei(e) {
1521
+ function ti(e) {
1522
1522
  return e.localName === "next-route-announcer" || e.localName === "script" || e.hasAttribute("aria-live") ? !0 : e.matches("[data-live-announcer]");
1523
1523
  }
1524
- function ti(e, t) {
1525
- let { parentNode: n, markerName: r, controlAttribute: i, explicitBooleanValue: a } = t, o = $r(n, Array.isArray(e) ? e : [e]);
1526
- Xr[r] ||= /* @__PURE__ */ new WeakMap();
1527
- let s = Xr[r], c = [], l = /* @__PURE__ */ new Set(), u = new Set(o), d = (e) => {
1524
+ function ni(e, t) {
1525
+ let { parentNode: n, markerName: r, controlAttribute: i, explicitBooleanValue: a } = t, o = ei(n, Array.isArray(e) ? e : [e]);
1526
+ Zr[r] ||= /* @__PURE__ */ new WeakMap();
1527
+ let s = Zr[r], c = [], l = /* @__PURE__ */ new Set(), u = new Set(o), d = (e) => {
1528
1528
  !e || l.has(e) || (l.add(e), d(e.parentNode));
1529
1529
  };
1530
1530
  o.forEach(d);
@@ -1532,47 +1532,47 @@ function ti(e, t) {
1532
1532
  !e || u.has(e) || Array.prototype.forEach.call(e.children, (e) => {
1533
1533
  if (l.has(e)) f(e);
1534
1534
  else try {
1535
- if (ei(e)) return;
1536
- let t = e.getAttribute(i), n = a ? t === "true" : t !== null && t !== "false", o = (Jr.get(e) || 0) + 1, l = (s.get(e) || 0) + 1;
1537
- Jr.set(e, o), s.set(e, l), c.push(e), o === 1 && n && Yr.set(e, !0), l === 1 && e.setAttribute(r, ""), n || e.setAttribute(i, a ? "true" : "");
1535
+ if (ti(e)) return;
1536
+ let t = e.getAttribute(i), n = a ? t === "true" : t !== null && t !== "false", o = (Yr.get(e) || 0) + 1, l = (s.get(e) || 0) + 1;
1537
+ Yr.set(e, o), s.set(e, l), c.push(e), o === 1 && n && Xr.set(e, !0), l === 1 && e.setAttribute(r, ""), n || e.setAttribute(i, a ? "true" : "");
1538
1538
  } catch (t) {
1539
1539
  console.error("[@destyler/aria-hidden] cannot operate on ", e, t);
1540
1540
  }
1541
1541
  });
1542
1542
  };
1543
- return f(n), l.clear(), Zr++, () => {
1543
+ return f(n), l.clear(), Qr++, () => {
1544
1544
  c.forEach((e) => {
1545
- let t = Jr.get(e) - 1, n = s.get(e) - 1;
1546
- Jr.set(e, t), s.set(e, n), t || (Yr.has(e) || e.removeAttribute(i), Yr.delete(e)), n || e.removeAttribute(r);
1547
- }), Zr--, Zr || (Jr = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), Xr = {});
1545
+ let t = Yr.get(e) - 1, n = s.get(e) - 1;
1546
+ Yr.set(e, t), s.set(e, n), t || (Xr.has(e) || e.removeAttribute(i), Xr.delete(e)), n || e.removeAttribute(r);
1547
+ }), Qr--, Qr || (Yr = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), Zr = {});
1548
1548
  };
1549
1549
  }
1550
- function ni(e) {
1550
+ function ri(e) {
1551
1551
  let t = Array.isArray(e) ? e[0] : e;
1552
1552
  return t.ownerDocument.body;
1553
1553
  }
1554
- function ri(e, t = ni(e), n = "data-aria-hidden") {
1555
- if (t) return ti(e, {
1554
+ function ii(e, t = ri(e), n = "data-aria-hidden") {
1555
+ if (t) return ni(e, {
1556
1556
  parentNode: t,
1557
1557
  markerName: n,
1558
1558
  controlAttribute: "aria-hidden",
1559
1559
  explicitBooleanValue: !0
1560
1560
  });
1561
1561
  }
1562
- function ii(e) {
1562
+ function ai(e) {
1563
1563
  let t = requestAnimationFrame(() => e());
1564
1564
  return () => cancelAnimationFrame(t);
1565
1565
  }
1566
- function ai(e, t = {}) {
1567
- let { defer: n = !0 } = t, r = n ? ii : (e) => e(), i = [];
1566
+ function oi(e, t = {}) {
1567
+ let { defer: n = !0 } = t, r = n ? ai : (e) => e(), i = [];
1568
1568
  return i.push(r(() => {
1569
1569
  let t = typeof e == "function" ? e() : e, n = t.filter(Boolean);
1570
- n.length !== 0 && i.push(ri(n));
1570
+ n.length !== 0 && i.push(ii(n));
1571
1571
  })), () => {
1572
1572
  i.forEach((e) => e?.());
1573
1573
  };
1574
1574
  }
1575
- function oi(e) {
1575
+ function si(e) {
1576
1576
  let t = {
1577
1577
  each(t) {
1578
1578
  for (let n = 0; n < e.frames?.length; n += 1) {
@@ -1601,7 +1601,7 @@ function oi(e) {
1601
1601
  };
1602
1602
  return t;
1603
1603
  }
1604
- function si(e) {
1604
+ function ci(e) {
1605
1605
  let t = e.frameElement == null ? null : e.parent;
1606
1606
  return {
1607
1607
  addEventListener: (e, n, r) => {
@@ -1621,22 +1621,22 @@ function si(e) {
1621
1621
  }
1622
1622
  };
1623
1623
  }
1624
- const ci = "pointerdown.outside", li = "focus.outside";
1625
- function ui(e) {
1626
- for (let t of e) if (B(t) && W(t)) return !0;
1624
+ const li = "pointerdown.outside", ui = "focus.outside";
1625
+ function di(e) {
1626
+ for (let t of e) if (U(t) && Qt(t)) return !0;
1627
1627
  return !1;
1628
1628
  }
1629
- const di = (e) => "clientY" in e;
1630
- function fi(e, t) {
1631
- if (!di(t) || !e) return !1;
1629
+ const fi = (e) => "clientY" in e;
1630
+ function pi(e, t) {
1631
+ if (!fi(t) || !e) return !1;
1632
1632
  let n = e.getBoundingClientRect();
1633
1633
  return n.width === 0 || n.height === 0 ? !1 : n.top <= t.clientY && t.clientY <= n.top + n.height && n.left <= t.clientX && t.clientX <= n.left + n.width;
1634
1634
  }
1635
- function pi(e, t) {
1635
+ function mi(e, t) {
1636
1636
  return e.y <= t.y && t.y <= e.y + e.height && e.x <= t.x && t.x <= e.x + e.width;
1637
1637
  }
1638
- function mi(e, t) {
1639
- if (!t || !di(e)) return !1;
1638
+ function hi(e, t) {
1639
+ if (!t || !fi(e)) return !1;
1640
1640
  let n = t.scrollHeight > t.clientHeight, r = n && e.clientX > t.offsetLeft + t.clientWidth, i = t.scrollWidth > t.clientWidth, a = i && e.clientY > t.offsetTop + t.clientHeight, o = {
1641
1641
  x: t.offsetLeft,
1642
1642
  y: t.offsetTop,
@@ -1646,22 +1646,22 @@ function mi(e, t) {
1646
1646
  x: e.clientX,
1647
1647
  y: e.clientY
1648
1648
  };
1649
- return pi(o, s) ? r || a : !1;
1649
+ return mi(o, s) ? r || a : !1;
1650
1650
  }
1651
- function hi(e, t) {
1651
+ function gi(e, t) {
1652
1652
  let { exclude: n, onFocusOutside: r, onPointerDownOutside: i, onInteractOutside: a, defer: o } = t;
1653
1653
  if (!e) return;
1654
- let s = V(e), c = kt(e), l = oi(c), u = si(c);
1654
+ let s = Et(e), c = Ot(e), l = si(c), u = ci(c);
1655
1655
  function d(t) {
1656
- let r = H(t);
1657
- if (!B(r) || !r.isConnected || Dt(e, r) || fi(e, t)) return !1;
1656
+ let r = Ht(t);
1657
+ if (!U(r) || !r.isConnected || Tt(e, r) || pi(e, t)) return !1;
1658
1658
  let i = s.querySelector(`[aria-controls="${e.id}"]`);
1659
1659
  if (i) {
1660
- let e = an(i);
1661
- if (mi(t, e)) return !1;
1660
+ let e = on(i);
1661
+ if (hi(t, e)) return !1;
1662
1662
  }
1663
- let a = an(e);
1664
- return mi(t, a) ? !1 : !n?.(r);
1663
+ let a = on(e);
1664
+ return hi(t, a) ? !1 : !n?.(r);
1665
1665
  }
1666
1666
  let f = /* @__PURE__ */ new Set();
1667
1667
  function p(t) {
@@ -1670,68 +1670,68 @@ function hi(e, t) {
1670
1670
  n(() => {
1671
1671
  if (!(!e || !d(t))) {
1672
1672
  if (i || a) {
1673
- let t = yn(i, a);
1674
- e.addEventListener(ci, t, { once: !0 });
1673
+ let t = bn(i, a);
1674
+ e.addEventListener(li, t, { once: !0 });
1675
1675
  }
1676
- _i(e, ci, {
1676
+ vi(e, li, {
1677
1677
  bubbles: !1,
1678
1678
  cancelable: !0,
1679
1679
  detail: {
1680
1680
  originalEvent: t,
1681
1681
  contextmenu: Ut(t),
1682
- focusable: ui(r)
1682
+ focusable: di(r)
1683
1683
  }
1684
1684
  });
1685
1685
  }
1686
1686
  });
1687
1687
  }
1688
- t.pointerType === "touch" ? (f.forEach((e) => e()), f.add(U(s, "click", n, { once: !0 })), f.add(u.addEventListener("click", n, { once: !0 })), f.add(l.addEventListener("click", n, { once: !0 }))) : n();
1688
+ t.pointerType === "touch" ? (f.forEach((e) => e()), f.add(W(s, "click", n, { once: !0 })), f.add(u.addEventListener("click", n, { once: !0 })), f.add(l.addEventListener("click", n, { once: !0 }))) : n();
1689
1689
  }
1690
1690
  let m = /* @__PURE__ */ new Set(), h = setTimeout(() => {
1691
- m.add(U(s, "pointerdown", p, !0)), m.add(u.addEventListener("pointerdown", p, !0)), m.add(l.addEventListener("pointerdown", p, !0));
1691
+ m.add(W(s, "pointerdown", p, !0)), m.add(u.addEventListener("pointerdown", p, !0)), m.add(l.addEventListener("pointerdown", p, !0));
1692
1692
  }, 0);
1693
1693
  function g(t) {
1694
1694
  let n = o ? G : (e) => e();
1695
1695
  n(() => {
1696
1696
  if (!(!e || !d(t))) {
1697
1697
  if (r || a) {
1698
- let t = yn(r, a);
1699
- e.addEventListener(li, t, { once: !0 });
1698
+ let t = bn(r, a);
1699
+ e.addEventListener(ui, t, { once: !0 });
1700
1700
  }
1701
- _i(e, li, {
1701
+ vi(e, ui, {
1702
1702
  bubbles: !1,
1703
1703
  cancelable: !0,
1704
1704
  detail: {
1705
1705
  originalEvent: t,
1706
1706
  contextmenu: !1,
1707
- focusable: W(H(t))
1707
+ focusable: Qt(Ht(t))
1708
1708
  }
1709
1709
  });
1710
1710
  }
1711
1711
  });
1712
1712
  }
1713
- return m.add(U(s, "focusin", g, !0)), m.add(u.addEventListener("focusin", g, !0)), m.add(l.addEventListener("focusin", g, !0)), () => {
1713
+ return m.add(W(s, "focusin", g, !0)), m.add(u.addEventListener("focusin", g, !0)), m.add(l.addEventListener("focusin", g, !0)), () => {
1714
1714
  clearTimeout(h), f.forEach((e) => e()), m.forEach((e) => e());
1715
1715
  };
1716
1716
  }
1717
- function gi(e, t) {
1717
+ function _i(e, t) {
1718
1718
  let { defer: n } = t, r = n ? G : (e) => e(), i = [];
1719
1719
  return i.push(r(() => {
1720
1720
  let n = typeof e == "function" ? e() : e;
1721
- i.push(hi(n, t));
1721
+ i.push(gi(n, t));
1722
1722
  })), () => {
1723
1723
  i.forEach((e) => e?.());
1724
1724
  };
1725
1725
  }
1726
- function _i(e, t, n) {
1726
+ function vi(e, t, n) {
1727
1727
  let r = e.ownerDocument.defaultView || window, i = new r.CustomEvent(t, n);
1728
1728
  return e.dispatchEvent(i);
1729
1729
  }
1730
- function vi(e, t) {
1730
+ function yi(e, t) {
1731
1731
  let n = (e) => {
1732
1732
  e.key === "Escape" && (e.isComposing || t?.(e));
1733
1733
  };
1734
- return U(V(e), "keydown", n, { capture: !0 });
1734
+ return W(Et(e), "keydown", n, { capture: !0 });
1735
1735
  }
1736
1736
  const Y = {
1737
1737
  layers: [],
@@ -1760,10 +1760,10 @@ const Y = {
1760
1760
  return Array.from(this.layers).slice(this.indexOf(e) + 1);
1761
1761
  },
1762
1762
  isInNestedLayer(e, t) {
1763
- return this.getNestedLayers(e).some((e) => Dt(e.node, t));
1763
+ return this.getNestedLayers(e).some((e) => Tt(e.node, t));
1764
1764
  },
1765
1765
  isInBranch(e) {
1766
- return Array.from(this.branches).some((t) => Dt(t, e));
1766
+ return Array.from(this.branches).some((t) => Tt(t, e));
1767
1767
  },
1768
1768
  add(e) {
1769
1769
  let t = this.layers.push(e);
@@ -1796,45 +1796,45 @@ const Y = {
1796
1796
  this.remove(this.layers[0].node);
1797
1797
  }
1798
1798
  };
1799
- let yi;
1800
- function bi() {
1799
+ let bi;
1800
+ function xi() {
1801
1801
  Y.layers.forEach(({ node: e }) => {
1802
1802
  e.style.pointerEvents = Y.isBelowPointerBlockingLayer(e) ? "none" : "auto";
1803
1803
  });
1804
1804
  }
1805
- function xi(e) {
1805
+ function Si(e) {
1806
1806
  e.style.pointerEvents = "";
1807
1807
  }
1808
- function Si(e, t) {
1809
- let n = V(e), r = [];
1810
- if (Y.hasPointerBlockingLayer() && !n.body.hasAttribute("data-inert") && (yi = document.body.style.pointerEvents, queueMicrotask(() => {
1808
+ function Ci(e, t) {
1809
+ let n = Et(e), r = [];
1810
+ if (Y.hasPointerBlockingLayer() && !n.body.hasAttribute("data-inert") && (bi = document.body.style.pointerEvents, queueMicrotask(() => {
1811
1811
  n.body.style.pointerEvents = "none", n.body.setAttribute("data-inert", "");
1812
1812
  })), t) {
1813
- let e = hn(t, (e) => {
1814
- r.push(pn(e, { pointerEvents: "auto" }));
1813
+ let e = gn(t, (e) => {
1814
+ r.push(mn(e, { pointerEvents: "auto" }));
1815
1815
  });
1816
1816
  r.push(e);
1817
1817
  }
1818
1818
  return () => {
1819
1819
  Y.hasPointerBlockingLayer() || (queueMicrotask(() => {
1820
- n.body.style.pointerEvents = yi, n.body.removeAttribute("data-inert"), n.body.style.length === 0 && n.body.removeAttribute("style");
1820
+ n.body.style.pointerEvents = bi, n.body.removeAttribute("data-inert"), n.body.style.length === 0 && n.body.removeAttribute("style");
1821
1821
  }), r.forEach((e) => e()));
1822
1822
  };
1823
1823
  }
1824
- function Ci(e, t) {
1824
+ function wi(e, t) {
1825
1825
  if (!e) throw Error("[@destyler/dismissable] node is `null` or `undefined`");
1826
1826
  let { onDismiss: n, pointerBlocking: r, exclude: i, debug: a } = t, o = {
1827
1827
  dismiss: n,
1828
1828
  node: e,
1829
1829
  pointerBlocking: r
1830
1830
  };
1831
- Y.add(o), bi();
1831
+ Y.add(o), xi();
1832
1832
  function s(r) {
1833
- let i = H(r.detail.originalEvent);
1833
+ let i = Ht(r.detail.originalEvent);
1834
1834
  Y.isBelowPointerBlockingLayer(e) || Y.isInBranch(i) || (t.onPointerDownOutside?.(r), t.onInteractOutside?.(r), !r.defaultPrevented && (a && console.log("onPointerDownOutside:", r.detail.originalEvent), n?.()));
1835
1835
  }
1836
1836
  function c(e) {
1837
- let r = H(e.detail.originalEvent);
1837
+ let r = Ht(e.detail.originalEvent);
1838
1838
  Y.isInBranch(r) || (t.onFocusOutside?.(e), t.onInteractOutside?.(e), !e.defaultPrevented && (a && console.log("onFocusOutside:", e.detail.originalEvent), n?.()));
1839
1839
  }
1840
1840
  function l(r) {
@@ -1842,13 +1842,13 @@ function Ci(e, t) {
1842
1842
  }
1843
1843
  function u(n) {
1844
1844
  if (!e) return !1;
1845
- let r = typeof i == "function" ? i() : i, a = Array.isArray(r) ? r : [r], o = t.persistentElements?.map((e) => e()).filter(B);
1846
- return o && a.push(...o), a.some((e) => Dt(e, n)) || Y.isInNestedLayer(e, n);
1845
+ let r = typeof i == "function" ? i() : i, a = Array.isArray(r) ? r : [r], o = t.persistentElements?.map((e) => e()).filter(U);
1846
+ return o && a.push(...o), a.some((e) => Tt(e, n)) || Y.isInNestedLayer(e, n);
1847
1847
  }
1848
1848
  let d = [
1849
- r ? Si(e, t.persistentElements) : void 0,
1850
- vi(e, l),
1851
- gi(e, {
1849
+ r ? Ci(e, t.persistentElements) : void 0,
1850
+ yi(e, l),
1851
+ _i(e, {
1852
1852
  exclude: u,
1853
1853
  onFocusOutside: c,
1854
1854
  onPointerDownOutside: s,
@@ -1856,23 +1856,23 @@ function Ci(e, t) {
1856
1856
  })
1857
1857
  ];
1858
1858
  return () => {
1859
- Y.remove(e), bi(), xi(e), d.forEach((e) => e?.());
1859
+ Y.remove(e), xi(), Si(e), d.forEach((e) => e?.());
1860
1860
  };
1861
1861
  }
1862
- function wi(e, t) {
1862
+ function Ti(e, t) {
1863
1863
  let { defer: n } = t, r = n ? G : (e) => e(), i = [];
1864
1864
  return i.push(r(() => {
1865
- let n = Tn(e) ? e() : e;
1866
- i.push(Ci(n, t));
1865
+ let n = En(e) ? e() : e;
1866
+ i.push(wi(n, t));
1867
1867
  })), () => {
1868
1868
  i.forEach((e) => e?.());
1869
1869
  };
1870
1870
  }
1871
- const Ti = (e) => e.key === "Tab", Ei = (e, ...t) => typeof e == "function" ? e(...t) : e, Di = (e) => !e.isComposing && e.key === "Escape", Oi = (e) => setTimeout(e, 0);
1872
- function ki(e) {
1871
+ const Ei = (e) => e.key === "Tab", Di = (e, ...t) => typeof e == "function" ? e(...t) : e, Oi = (e) => !e.isComposing && e.key === "Escape", ki = (e) => setTimeout(e, 0);
1872
+ function Ai(e) {
1873
1873
  return e.localName === "input" && "select" in e && typeof e.select == "function";
1874
1874
  }
1875
- const Ai = {
1875
+ const ji = {
1876
1876
  activateTrap(e, t) {
1877
1877
  if (e.length > 0) {
1878
1878
  let n = e[e.length - 1];
@@ -1885,8 +1885,8 @@ const Ai = {
1885
1885
  let n = e.indexOf(t);
1886
1886
  n !== -1 && e.splice(n, 1), e.length > 0 && e[e.length - 1].unpause();
1887
1887
  }
1888
- }, ji = [];
1889
- var Mi = class {
1888
+ }, Mi = [];
1889
+ var Ni = class {
1890
1890
  trapStack;
1891
1891
  config;
1892
1892
  doc;
@@ -1908,20 +1908,20 @@ var Mi = class {
1908
1908
  return this.state.paused;
1909
1909
  }
1910
1910
  constructor(e, t) {
1911
- this.trapStack = t.trapStack || ji;
1911
+ this.trapStack = t.trapStack || Mi;
1912
1912
  let n = {
1913
1913
  returnFocusOnDeactivate: !0,
1914
1914
  escapeDeactivates: !0,
1915
1915
  delayInitialFocus: !0,
1916
1916
  isKeyForward(e) {
1917
- return Ti(e) && !e.shiftKey;
1917
+ return Ei(e) && !e.shiftKey;
1918
1918
  },
1919
1919
  isKeyBackward(e) {
1920
- return Ti(e) && e.shiftKey;
1920
+ return Ei(e) && e.shiftKey;
1921
1921
  },
1922
1922
  ...t
1923
1923
  };
1924
- this.doc = n.document || V(Array.isArray(e) ? e[0] : e), this.config = n, this.updateContainerElements(e), this.setupMutationObserver();
1924
+ this.doc = n.document || Et(Array.isArray(e) ? e[0] : e), this.config = n, this.updateContainerElements(e), this.setupMutationObserver();
1925
1925
  }
1926
1926
  findContainerIndex(e, t) {
1927
1927
  let n = typeof t?.composedPath == "function" ? t.composedPath() : void 0;
@@ -1929,10 +1929,10 @@ var Mi = class {
1929
1929
  }
1930
1930
  updateTabbableNodes() {
1931
1931
  if (this.state.containerGroups = this.state.containers.map((e) => {
1932
- let t = Qt(e), n = Zt(e), r = t.length > 0 ? t[0] : void 0, i = t.length > 0 ? t[t.length - 1] : void 0, a = n.find((e) => $t(e)), o = n.slice().reverse().find((e) => $t(e)), s = !!t.find((e) => nn(e) > 0);
1932
+ let t = $t(e), n = Zt(e), r = t.length > 0 ? t[0] : void 0, i = t.length > 0 ? t[t.length - 1] : void 0, a = n.find((e) => en(e)), o = n.slice().reverse().find((e) => en(e)), s = !!t.find((e) => rn(e) > 0);
1933
1933
  function c(e, r = !0) {
1934
1934
  let i = t.indexOf(e);
1935
- return i < 0 ? r ? n.slice(n.indexOf(e) + 1).find((e) => $t(e)) : n.slice(0, n.indexOf(e)).reverse().find((e) => $t(e)) : t[i + (r ? 1 : -1)];
1935
+ return i < 0 ? r ? n.slice(n.indexOf(e) + 1).find((e) => en(e)) : n.slice(0, n.indexOf(e)).reverse().find((e) => en(e)) : t[i + (r ? 1 : -1)];
1936
1936
  }
1937
1937
  return {
1938
1938
  container: e,
@@ -1950,38 +1950,38 @@ var Mi = class {
1950
1950
  }
1951
1951
  listenerCleanups = [];
1952
1952
  addListeners() {
1953
- if (this.state.active) return Ai.activateTrap(this.trapStack, this), this.state.delayInitialFocusTimer = this.config.delayInitialFocus ? Oi(() => {
1953
+ if (this.state.active) return ji.activateTrap(this.trapStack, this), this.state.delayInitialFocusTimer = this.config.delayInitialFocus ? ki(() => {
1954
1954
  this.tryFocus(this.getInitialFocusNode());
1955
- }) : this.tryFocus(this.getInitialFocusNode()), this.listenerCleanups.push(U(this.doc, "focusin", this.handleFocus, !0), U(this.doc, "mousedown", this.handlePointerDown, {
1955
+ }) : this.tryFocus(this.getInitialFocusNode()), this.listenerCleanups.push(W(this.doc, "focusin", this.handleFocus, !0), W(this.doc, "mousedown", this.handlePointerDown, {
1956
1956
  capture: !0,
1957
1957
  passive: !1
1958
- }), U(this.doc, "touchstart", this.handlePointerDown, {
1958
+ }), W(this.doc, "touchstart", this.handlePointerDown, {
1959
1959
  capture: !0,
1960
1960
  passive: !1
1961
- }), U(this.doc, "click", this.handleClick, {
1961
+ }), W(this.doc, "click", this.handleClick, {
1962
1962
  capture: !0,
1963
1963
  passive: !1
1964
- }), U(this.doc, "keydown", this.handleTabKey, {
1964
+ }), W(this.doc, "keydown", this.handleTabKey, {
1965
1965
  capture: !0,
1966
1966
  passive: !1
1967
- }), U(this.doc, "keydown", this.handleEscapeKey)), this;
1967
+ }), W(this.doc, "keydown", this.handleEscapeKey)), this;
1968
1968
  }
1969
1969
  removeListeners() {
1970
1970
  if (this.state.active) return this.listenerCleanups.forEach((e) => e()), this.listenerCleanups = [], this;
1971
1971
  }
1972
1972
  handleFocus = (e) => {
1973
- let t = H(e), n = this.findContainerIndex(t, e) >= 0;
1974
- if (n || _t(t)) n && (this.state.mostRecentlyFocusedNode = t);
1973
+ let t = Ht(e), n = this.findContainerIndex(t, e) >= 0;
1974
+ if (n || ht(t)) n && (this.state.mostRecentlyFocusedNode = t);
1975
1975
  else {
1976
1976
  e.stopImmediatePropagation();
1977
1977
  let t, n = !0;
1978
- if (this.state.mostRecentlyFocusedNode) if (nn(this.state.mostRecentlyFocusedNode) > 0) {
1978
+ if (this.state.mostRecentlyFocusedNode) if (rn(this.state.mostRecentlyFocusedNode) > 0) {
1979
1979
  let e = this.findContainerIndex(this.state.mostRecentlyFocusedNode), { tabbableNodes: r } = this.state.containerGroups[e];
1980
1980
  if (r.length > 0) {
1981
1981
  let e = r.findIndex((e) => e === this.state.mostRecentlyFocusedNode);
1982
1982
  e >= 0 && (this.config.isKeyForward(this.state.recentNavEvent) ? e + 1 < r.length && (t = r[e + 1], n = !1) : e - 1 >= 0 && (t = r[e - 1], n = !1));
1983
1983
  }
1984
- } else this.state.containerGroups.some((e) => e.tabbableNodes.some((e) => nn(e) > 0)) || (n = !1);
1984
+ } else this.state.containerGroups.some((e) => e.tabbableNodes.some((e) => rn(e) > 0)) || (n = !1);
1985
1985
  else n = !1;
1986
1986
  n && (t = this.findNextNavNode({
1987
1987
  target: this.state.mostRecentlyFocusedNode,
@@ -1991,18 +1991,18 @@ var Mi = class {
1991
1991
  this.state.recentNavEvent = void 0;
1992
1992
  };
1993
1993
  handlePointerDown = (e) => {
1994
- let t = H(e);
1994
+ let t = Ht(e);
1995
1995
  if (!(this.findContainerIndex(t, e) >= 0)) {
1996
- if (Ei(this.config.clickOutsideDeactivates, e)) {
1996
+ if (Di(this.config.clickOutsideDeactivates, e)) {
1997
1997
  this.deactivate({ returnFocus: this.config.returnFocusOnDeactivate });
1998
1998
  return;
1999
1999
  }
2000
- Ei(this.config.allowOutsideClick, e) || e.preventDefault();
2000
+ Di(this.config.allowOutsideClick, e) || e.preventDefault();
2001
2001
  }
2002
2002
  };
2003
2003
  handleClick = (e) => {
2004
- let t = H(e);
2005
- this.findContainerIndex(t, e) >= 0 || Ei(this.config.clickOutsideDeactivates, e) || Ei(this.config.allowOutsideClick, e) || (e.preventDefault(), e.stopImmediatePropagation());
2004
+ let t = Ht(e);
2005
+ this.findContainerIndex(t, e) >= 0 || Di(this.config.clickOutsideDeactivates, e) || Di(this.config.allowOutsideClick, e) || (e.preventDefault(), e.stopImmediatePropagation());
2006
2006
  };
2007
2007
  handleTabKey = (e) => {
2008
2008
  if (this.config.isKeyForward(e) || this.config.isKeyBackward(e)) {
@@ -2012,11 +2012,11 @@ var Mi = class {
2012
2012
  isBackward: t
2013
2013
  });
2014
2014
  if (!n) return;
2015
- Ti(e) && e.preventDefault(), this.tryFocus(n);
2015
+ Ei(e) && e.preventDefault(), this.tryFocus(n);
2016
2016
  }
2017
2017
  };
2018
2018
  handleEscapeKey = (e) => {
2019
- Di(e) && Ei(this.config.escapeDeactivates, e) !== !1 && (e.preventDefault(), this.deactivate());
2019
+ Oi(e) && Di(this.config.escapeDeactivates, e) !== !1 && (e.preventDefault(), this.deactivate());
2020
2020
  };
2021
2021
  _mutationObserver;
2022
2022
  setupMutationObserver = () => {
@@ -2040,7 +2040,7 @@ var Mi = class {
2040
2040
  getInitialFocusNode = () => {
2041
2041
  let e = this.getNodeForOption("initialFocus", { hasFallback: !0 });
2042
2042
  if (e === !1) return !1;
2043
- if (e === void 0 || e && !W(e)) if (this.findContainerIndex(this.doc.activeElement) >= 0) e = this.doc.activeElement;
2043
+ if (e === void 0 || e && !Qt(e)) if (this.findContainerIndex(this.doc.activeElement) >= 0) e = this.doc.activeElement;
2044
2044
  else {
2045
2045
  let t = this.state.tabbableGroups[0], n = t && t.firstTabbableNode;
2046
2046
  e = n || this.getNodeForOption("fallbackFocus");
@@ -2050,12 +2050,12 @@ var Mi = class {
2050
2050
  return e.isConnected || (e = this.getNodeForOption("fallbackFocus")), e;
2051
2051
  };
2052
2052
  tryFocus = (e) => {
2053
- if (e !== !1 && e !== At(this.doc)) {
2053
+ if (e !== !1 && e !== kt(this.doc)) {
2054
2054
  if (!e || !e.focus) {
2055
2055
  this.tryFocus(this.getInitialFocusNode());
2056
2056
  return;
2057
2057
  }
2058
- e.focus({ preventScroll: !!this.config.preventScroll }), this.state.mostRecentlyFocusedNode = e, ki(e) && e.select();
2058
+ e.focus({ preventScroll: !!this.config.preventScroll }), this.state.mostRecentlyFocusedNode = e, Ai(e) && e.select();
2059
2059
  }
2060
2060
  };
2061
2061
  activate(e) {
@@ -2075,11 +2075,11 @@ var Mi = class {
2075
2075
  checkCanReturnFocus: this.config.checkCanReturnFocus,
2076
2076
  ...e
2077
2077
  };
2078
- clearTimeout(this.state.delayInitialFocusTimer), this.state.delayInitialFocusTimer = void 0, this.removeListeners(), this.state.active = !1, this.state.paused = !1, this.updateObservedNodes(), Ai.deactivateTrap(this.trapStack, this);
2078
+ clearTimeout(this.state.delayInitialFocusTimer), this.state.delayInitialFocusTimer = void 0, this.removeListeners(), this.state.active = !1, this.state.paused = !1, this.updateObservedNodes(), ji.deactivateTrap(this.trapStack, this);
2079
2079
  let n = this.getOption(t, "onDeactivate"), r = this.getOption(t, "onPostDeactivate"), i = this.getOption(t, "checkCanReturnFocus"), a = this.getOption(t, "returnFocus", "returnFocusOnDeactivate");
2080
2080
  n?.();
2081
2081
  let o = () => {
2082
- Oi(() => {
2082
+ ki(() => {
2083
2083
  if (a) {
2084
2084
  let e = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);
2085
2085
  this.tryFocus(e);
@@ -2127,7 +2127,7 @@ var Mi = class {
2127
2127
  return i;
2128
2128
  };
2129
2129
  findNextNavNode = (e) => {
2130
- let { event: t, isBackward: n = !1 } = e, r = e.target || H(t);
2130
+ let { event: t, isBackward: n = !1 } = e, r = e.target || Ht(t);
2131
2131
  this.updateTabbableNodes();
2132
2132
  let i = null;
2133
2133
  if (this.state.tabbableGroups.length > 0) {
@@ -2135,26 +2135,26 @@ var Mi = class {
2135
2135
  if (e < 0) i = n ? this.state.tabbableGroups[this.state.tabbableGroups.length - 1].lastTabbableNode : this.state.tabbableGroups[0].firstTabbableNode;
2136
2136
  else if (n) {
2137
2137
  let n = this.state.tabbableGroups.findIndex(({ firstTabbableNode: e }) => r === e);
2138
- if (n < 0 && (a?.container === r || W(r) && !$t(r) && !a?.nextTabbableNode(r, !1)) && (n = e), n >= 0) {
2138
+ if (n < 0 && (a?.container === r || Qt(r) && !en(r) && !a?.nextTabbableNode(r, !1)) && (n = e), n >= 0) {
2139
2139
  let e = n === 0 ? this.state.tabbableGroups.length - 1 : n - 1, t = this.state.tabbableGroups[e];
2140
- i = nn(r) >= 0 ? t.lastTabbableNode : t.lastDomTabbableNode;
2141
- } else Ti(t) || (i = a?.nextTabbableNode(r, !1));
2140
+ i = rn(r) >= 0 ? t.lastTabbableNode : t.lastDomTabbableNode;
2141
+ } else Ei(t) || (i = a?.nextTabbableNode(r, !1));
2142
2142
  } else {
2143
2143
  let n = this.state.tabbableGroups.findIndex(({ lastTabbableNode: e }) => r === e);
2144
- if (n < 0 && (a?.container === r || W(r) && !$t(r) && !a?.nextTabbableNode(r)) && (n = e), n >= 0) {
2144
+ if (n < 0 && (a?.container === r || Qt(r) && !en(r) && !a?.nextTabbableNode(r)) && (n = e), n >= 0) {
2145
2145
  let e = n === this.state.tabbableGroups.length - 1 ? 0 : n + 1, t = this.state.tabbableGroups[e];
2146
- i = nn(r) >= 0 ? t.firstTabbableNode : t.firstDomTabbableNode;
2147
- } else Ti(t) || (i = a?.nextTabbableNode(r));
2146
+ i = rn(r) >= 0 ? t.firstTabbableNode : t.firstDomTabbableNode;
2147
+ } else Ei(t) || (i = a?.nextTabbableNode(r));
2148
2148
  }
2149
2149
  } else i = this.getNodeForOption("fallbackFocus");
2150
2150
  return i;
2151
2151
  };
2152
2152
  };
2153
- function Ni(e, t = {}) {
2153
+ function Pi(e, t = {}) {
2154
2154
  let n, r = G(() => {
2155
2155
  let r = typeof e == "function" ? e() : e;
2156
2156
  if (r) {
2157
- n = new Mi(r, {
2157
+ n = new Ni(r, {
2158
2158
  escapeDeactivates: !1,
2159
2159
  allowOutsideClick: !0,
2160
2160
  preventScroll: !0,
@@ -2162,7 +2162,7 @@ function Ni(e, t = {}) {
2162
2162
  delayInitialFocus: !1,
2163
2163
  fallbackFocus: r,
2164
2164
  ...t,
2165
- document: V(r)
2165
+ document: Et(r)
2166
2166
  });
2167
2167
  try {
2168
2168
  n.activate();
@@ -2173,34 +2173,34 @@ function Ni(e, t = {}) {
2173
2173
  n?.deactivate(), r();
2174
2174
  };
2175
2175
  }
2176
- const Pi = "data-scroll-lock";
2177
- function Fi(e, t) {
2176
+ const Fi = "data-scroll-lock";
2177
+ function Ii(e, t) {
2178
2178
  if (!e) return;
2179
2179
  let n = Object.keys(t).reduce((t, n) => (t[n] = e.style.getPropertyValue(n), t), {});
2180
2180
  return Object.assign(e.style, t), () => {
2181
2181
  Object.assign(e.style, n);
2182
2182
  };
2183
2183
  }
2184
- function Ii(e, t, n) {
2184
+ function Li(e, t, n) {
2185
2185
  if (!e) return;
2186
2186
  let r = e.style.getPropertyValue(t);
2187
2187
  return e.style.setProperty(t, n), () => {
2188
2188
  r ? e.style.setProperty(t, r) : e.style.removeProperty(t);
2189
2189
  };
2190
2190
  }
2191
- function Li(e) {
2191
+ function Ri(e) {
2192
2192
  let t = e.getBoundingClientRect().left, n = Math.round(t) + e.scrollLeft;
2193
2193
  return n ? "paddingLeft" : "paddingRight";
2194
2194
  }
2195
- function Ri(e) {
2196
- let t = e ?? document, n = t.defaultView ?? window, { documentElement: r, body: i } = t, a = i.hasAttribute(Pi);
2195
+ function zi(e) {
2196
+ let t = e ?? document, n = t.defaultView ?? window, { documentElement: r, body: i } = t, a = i.hasAttribute(Fi);
2197
2197
  if (a) return;
2198
- i.setAttribute(Pi, "");
2199
- let o = n.innerWidth - r.clientWidth, s = () => Ii(r, "--scrollbar-width", `${o}px`), c = Li(r), l = () => Fi(i, {
2198
+ i.setAttribute(Fi, "");
2199
+ let o = n.innerWidth - r.clientWidth, s = () => Li(r, "--scrollbar-width", `${o}px`), c = Ri(r), l = () => Ii(i, {
2200
2200
  overflow: "hidden",
2201
2201
  [c]: `${o}px`
2202
2202
  }), u = () => {
2203
- let { scrollX: e, scrollY: t, visualViewport: r } = n, a = r?.offsetLeft ?? 0, s = r?.offsetTop ?? 0, l = Fi(i, {
2203
+ let { scrollX: e, scrollY: t, visualViewport: r } = n, a = r?.offsetLeft ?? 0, s = r?.offsetTop ?? 0, l = Ii(i, {
2204
2204
  position: "fixed",
2205
2205
  overflow: "hidden",
2206
2206
  top: `${-(t - Math.floor(s))}px`,
@@ -2215,58 +2215,58 @@ function Ri(e) {
2215
2215
  behavior: "instant"
2216
2216
  });
2217
2217
  };
2218
- }, d = [s(), Vt() ? u() : l()];
2218
+ }, d = [s(), Bt() ? u() : l()];
2219
2219
  return () => {
2220
- d.forEach((e) => e?.()), i.removeAttribute(Pi);
2220
+ d.forEach((e) => e?.()), i.removeAttribute(Fi);
2221
2221
  };
2222
2222
  }
2223
2223
  Symbol();
2224
- const zi = Symbol(), Bi = Object.getPrototypeOf, Vi = /* @__PURE__ */ new WeakMap(), Hi = (e) => e && (Vi.has(e) ? Vi.get(e) : Bi(e) === Object.prototype || Bi(e) === Array.prototype), Ui = (e) => Hi(e) && e[zi] || null, Wi = (e, t = !0) => {
2225
- Vi.set(e, t);
2224
+ const Bi = Symbol(), Vi = Object.getPrototypeOf, Hi = /* @__PURE__ */ new WeakMap(), Ui = (e) => e && (Hi.has(e) ? Hi.get(e) : Vi(e) === Object.prototype || Vi(e) === Array.prototype), Wi = (e) => Ui(e) && e[Bi] || null, Gi = (e, t = !0) => {
2225
+ Hi.set(e, t);
2226
2226
  };
2227
- function Gi() {
2227
+ function Ki() {
2228
2228
  if (typeof globalThis < "u" || typeof globalThis < "u") return globalThis;
2229
2229
  if (typeof window < "u") return window;
2230
2230
  }
2231
- function Ki(e, t) {
2232
- let n = Gi();
2231
+ function qi(e, t) {
2232
+ let n = Ki();
2233
2233
  return n ? (n[e] ||= t(), n[e]) : t();
2234
2234
  }
2235
- const qi = Ki("__destyler__refSet", () => /* @__PURE__ */ new WeakSet()), Ji = (e) => typeof e == "object" && !!e && "$$typeof" in e && "props" in e, Yi = (e) => typeof e == "object" && !!e && "__v_isVNode" in e;
2236
- function Xi(e) {
2235
+ const Ji = qi("__destyler__refSet", () => /* @__PURE__ */ new WeakSet()), Yi = (e) => typeof e == "object" && !!e && "$$typeof" in e && "props" in e, Xi = (e) => typeof e == "object" && !!e && "__v_isVNode" in e;
2236
+ function Zi(e) {
2237
2237
  return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeName == "string";
2238
2238
  }
2239
- const Zi = (e) => Ji(e) || Yi(e) || Xi(e), Qi = (e) => typeof e == "object" && !!e;
2240
- function $i(e) {
2241
- return Qi(e) && !qi.has(e) && (Array.isArray(e) || !(Symbol.iterator in e)) && !Zi(e) && !(e instanceof WeakMap) && !(e instanceof WeakSet) && !(e instanceof Error) && typeof e != "number" && !(e instanceof Date) && typeof e != "string" && !(e instanceof RegExp) && !(e instanceof ArrayBuffer) && !(e instanceof Promise);
2239
+ const Qi = (e) => Yi(e) || Xi(e) || Zi(e), $i = (e) => typeof e == "object" && !!e;
2240
+ function ea(e) {
2241
+ return $i(e) && !Ji.has(e) && (Array.isArray(e) || !(Symbol.iterator in e)) && !Qi(e) && !(e instanceof WeakMap) && !(e instanceof WeakSet) && !(e instanceof Error) && typeof e != "number" && !(e instanceof Date) && typeof e != "string" && !(e instanceof RegExp) && !(e instanceof ArrayBuffer) && !(e instanceof Promise);
2242
2242
  }
2243
- function ea(e, t, n) {
2244
- typeof n.value == "object" && !$i(n.value) && (n.value = ta(n.value)), !n.enumerable || n.get || n.set || !n.configurable || !n.writable || t === "__proto__" ? Object.defineProperty(e, t, n) : e[t] = n.value;
2243
+ function ta(e, t, n) {
2244
+ typeof n.value == "object" && !ea(n.value) && (n.value = na(n.value)), !n.enumerable || n.get || n.set || !n.configurable || !n.writable || t === "__proto__" ? Object.defineProperty(e, t, n) : e[t] = n.value;
2245
2245
  }
2246
- function ta(e) {
2246
+ function na(e) {
2247
2247
  if (typeof e != "object") return e;
2248
2248
  let t = 0, n, r, i, a = Object.prototype.toString.call(e);
2249
2249
  if (a === "[object Object]" ? i = Object.create(Object.getPrototypeOf(e) || null) : a === "[object Array]" ? i = Array.from({ length: e.length }) : a === "[object Set]" ? (i = /* @__PURE__ */ new Set(), e.forEach((e) => {
2250
- i.add(ta(e));
2250
+ i.add(na(e));
2251
2251
  })) : a === "[object Map]" ? (i = /* @__PURE__ */ new Map(), e.forEach((e, t) => {
2252
- i.set(ta(t), ta(e));
2253
- })) : a === "[object Date]" ? i = /* @__PURE__ */ new Date(+e) : a === "[object RegExp]" ? i = new RegExp(e.source, e.flags) : a === "[object DataView]" ? i = new e.constructor(ta(e.buffer)) : a === "[object ArrayBuffer]" ? i = e.slice(0) : a === "[object Blob]" ? i = e.slice() : a.slice(-6) === "Array]" && (i = new e.constructor(e)), i) {
2254
- for (r = Object.getOwnPropertySymbols(e); t < r.length; t++) ea(i, r[t], Object.getOwnPropertyDescriptor(e, r[t]));
2255
- for (t = 0, r = Object.getOwnPropertyNames(e); t < r.length; t++) Object.hasOwnProperty.call(i, n = r[t]) && i[n] === e[n] || ea(i, n, Object.getOwnPropertyDescriptor(e, n));
2252
+ i.set(na(t), na(e));
2253
+ })) : a === "[object Date]" ? i = /* @__PURE__ */ new Date(+e) : a === "[object RegExp]" ? i = new RegExp(e.source, e.flags) : a === "[object DataView]" ? i = new e.constructor(na(e.buffer)) : a === "[object ArrayBuffer]" ? i = e.slice(0) : a === "[object Blob]" ? i = e.slice() : a.slice(-6) === "Array]" && (i = new e.constructor(e)), i) {
2254
+ for (r = Object.getOwnPropertySymbols(e); t < r.length; t++) ta(i, r[t], Object.getOwnPropertyDescriptor(e, r[t]));
2255
+ for (t = 0, r = Object.getOwnPropertyNames(e); t < r.length; t++) Object.hasOwnProperty.call(i, n = r[t]) && i[n] === e[n] || ta(i, n, Object.getOwnPropertyDescriptor(e, n));
2256
2256
  }
2257
2257
  return i || e;
2258
2258
  }
2259
- const na = Ki("__destyler__proxyStateMap", () => /* @__PURE__ */ new WeakMap());
2260
- function ra(e = Object.is, t = (e, t) => new Proxy(e, t), n = /* @__PURE__ */ new WeakMap(), r = (e, t) => {
2259
+ const ra = qi("__destyler__proxyStateMap", () => /* @__PURE__ */ new WeakMap());
2260
+ function ia(e = Object.is, t = (e, t) => new Proxy(e, t), n = /* @__PURE__ */ new WeakMap(), r = (e, t) => {
2261
2261
  let r = n.get(e);
2262
2262
  if (r?.[0] === t) return r[1];
2263
2263
  let i = Array.isArray(e) ? [] : Object.create(Object.getPrototypeOf(e));
2264
- return Wi(i, !0), n.set(e, [t, i]), Reflect.ownKeys(e).forEach((t) => {
2264
+ return Gi(i, !0), n.set(e, [t, i]), Reflect.ownKeys(e).forEach((t) => {
2265
2265
  let n = Reflect.get(e, t);
2266
- qi.has(n) ? (Wi(n, !1), i[t] = n) : na.has(n) ? i[t] = sa(n) : i[t] = n;
2266
+ Ji.has(n) ? (Gi(n, !1), i[t] = n) : ra.has(n) ? i[t] = ca(n) : i[t] = n;
2267
2267
  }), Object.freeze(i);
2268
2268
  }, i = /* @__PURE__ */ new WeakMap(), a = [1, 1], o = (n) => {
2269
- if (!Qi(n)) throw Error("object required");
2269
+ if (!$i(n)) throw Error("object required");
2270
2270
  let o = i.get(n);
2271
2271
  if (o) return o;
2272
2272
  let s = a[0], c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), u = (e, t = ++a[0]) => {
@@ -2310,11 +2310,11 @@ function ra(e = Object.is, t = (e, t) => new Proxy(e, t), n = /* @__PURE__ */ ne
2310
2310
  set(t, n, r, a) {
2311
2311
  let o = Reflect.has(t, n), s = Reflect.get(t, n, a);
2312
2312
  if (o && (e(s, r) || i.has(r) && e(s, i.get(r)))) return !0;
2313
- h(n), Qi(r) && (r = Ui(r) || r);
2313
+ h(n), $i(r) && (r = Wi(r) || r);
2314
2314
  let c = r;
2315
2315
  if (!Object.getOwnPropertyDescriptor(t, n)?.set) {
2316
- !na.has(r) && $i(r) && (c = aa(r));
2317
- let e = !qi.has(c) && na.get(c);
2316
+ !ra.has(r) && ea(r) && (c = oa(r));
2317
+ let e = !Ji.has(c) && ra.get(c);
2318
2318
  e && m(n, e);
2319
2319
  }
2320
2320
  return Reflect.set(t, n, c, a), u([
@@ -2332,30 +2332,30 @@ function ra(e = Object.is, t = (e, t) => new Proxy(e, t), n = /* @__PURE__ */ ne
2332
2332
  r,
2333
2333
  g
2334
2334
  ];
2335
- return na.set(y, b), Reflect.ownKeys(n).forEach((e) => {
2335
+ return ra.set(y, b), Reflect.ownKeys(n).forEach((e) => {
2336
2336
  let t = Object.getOwnPropertyDescriptor(n, e);
2337
2337
  t.get || t.set ? Object.defineProperty(_, e, t) : y[e] = n[e];
2338
2338
  }), y;
2339
2339
  }) {
2340
2340
  return [
2341
2341
  o,
2342
- na,
2343
- qi,
2342
+ ra,
2343
+ Ji,
2344
2344
  e,
2345
2345
  t,
2346
- $i,
2346
+ ea,
2347
2347
  n,
2348
2348
  r,
2349
2349
  i,
2350
2350
  a
2351
2351
  ];
2352
2352
  }
2353
- const [ia] = ra();
2354
- function aa(e = {}) {
2355
- return ia(e);
2353
+ const [aa] = ia();
2354
+ function oa(e = {}) {
2355
+ return aa(e);
2356
2356
  }
2357
- function oa(e, t, n) {
2358
- let r = na.get(e), i = [], a = r[3], o = !1, s = (e) => {
2357
+ function sa(e, t, n) {
2358
+ let r = ra.get(e), i = [], a = r[3], o = !1, s = (e) => {
2359
2359
  if (i.push(e), n) {
2360
2360
  t(i.splice(0));
2361
2361
  return;
@@ -2368,34 +2368,34 @@ function oa(e, t, n) {
2368
2368
  o = !1, c();
2369
2369
  };
2370
2370
  }
2371
- function sa(e) {
2372
- let t = na.get(e), [n, r, i] = t;
2371
+ function ca(e) {
2372
+ let t = ra.get(e), [n, r, i] = t;
2373
2373
  return i(n, r());
2374
2374
  }
2375
- function ca(e) {
2376
- return qi.add(e), e;
2375
+ function la(e) {
2376
+ return Ji.add(e), e;
2377
2377
  }
2378
- function la(e, t) {
2378
+ function ua(e, t) {
2379
2379
  let n = Object.keys(t);
2380
2380
  n.forEach((t) => {
2381
2381
  if (Object.getOwnPropertyDescriptor(e, t)) throw Error("object property already defined");
2382
2382
  });
2383
- let r = aa(e);
2383
+ let r = oa(e);
2384
2384
  return n.forEach((e) => {
2385
2385
  let n = t[e], { get: i, set: a } = typeof n == "function" ? { get: n } : n, o = {};
2386
- o.get = () => i(sa(r)), a && (o.set = (e) => a(r, e)), Object.defineProperty(r, e, o);
2386
+ o.get = () => i(ca(r)), a && (o.set = (e) => a(r, e)), Object.defineProperty(r, e, o);
2387
2387
  }), r;
2388
2388
  }
2389
- function ua(e, ...t) {
2390
- if (!jn(e)) throw TypeError("Source argument must be a plain object");
2389
+ function da(e, ...t) {
2390
+ if (!Mn(e)) throw TypeError("Source argument must be a plain object");
2391
2391
  let n = e;
2392
2392
  for (let e of t) {
2393
- if (!jn(e)) continue;
2394
- let t = Rn(e);
2393
+ if (!Mn(e)) continue;
2394
+ let t = zn(e);
2395
2395
  for (let r in t) {
2396
2396
  if (!Object.prototype.hasOwnProperty.call(t, r) || r === "__proto__" || r === "constructor" || r === "prototype") continue;
2397
2397
  let i = n[r], a = e[r];
2398
- jn(a) ? n[r] = jn(i) ? ua(i, a) : { ...a } : n[r] = a;
2398
+ Mn(a) ? n[r] = Mn(i) ? da(i, a) : { ...a } : n[r] = a;
2399
2399
  }
2400
2400
  }
2401
2401
  return n;
@@ -2404,39 +2404,39 @@ function X(e) {
2404
2404
  let t = q(e) ? { type: e } : e;
2405
2405
  return t;
2406
2406
  }
2407
- function da(e) {
2408
- return e ? xn(e) ? e.slice() : [e] : [];
2409
- }
2410
2407
  function fa(e) {
2411
- return Cn(e) && e.predicate != null;
2408
+ return e ? Sn(e) ? e.slice() : [e] : [];
2409
+ }
2410
+ function pa(e) {
2411
+ return wn(e) && e.predicate != null;
2412
2412
  }
2413
- const pa = () => !0;
2414
- function ma(e, t) {
2415
- return e ??= pa, (n, r, i) => {
2413
+ const ma = () => !0;
2414
+ function ha(e, t) {
2415
+ return e ??= ma, (n, r, i) => {
2416
2416
  if (q(e)) {
2417
2417
  let a = t[e];
2418
- return Tn(a) ? a(n, r, i) : a;
2418
+ return En(a) ? a(n, r, i) : a;
2419
2419
  }
2420
- return fa(e) ? e.predicate(t)(n, r, i) : e?.(n, r, i);
2420
+ return pa(e) ? e.predicate(t)(n, r, i) : e?.(n, r, i);
2421
2421
  };
2422
2422
  }
2423
- function ha(e, t) {
2424
- return (n, r, i) => fa(e) ? e.predicate(t)(n, r, i) : e;
2423
+ function ga(e, t) {
2424
+ return (n, r, i) => pa(e) ? e.predicate(t)(n, r, i) : e;
2425
2425
  }
2426
- let ga = /* @__PURE__ */ function(e) {
2426
+ let _a = /* @__PURE__ */ function(e) {
2427
2427
  return e.NotStarted = "Not Started", e.Running = "Running", e.Stopped = "Stopped", e;
2428
2428
  }({}), Z = /* @__PURE__ */ function(e) {
2429
2429
  return e.Start = "machine.start", e.Stop = "machine.stop", e.Created = "machine.created", e.Init = "machine.init", e;
2430
- }({}), _a = /* @__PURE__ */ function(e) {
2430
+ }({}), va = /* @__PURE__ */ function(e) {
2431
2431
  return e.Machine = "machine", e.Actor = "machine.actor", e;
2432
2432
  }({});
2433
- function va(e) {
2434
- let t = e.computed ?? K({}), n = e.context ?? K({}), r = e.initial ? e.states?.[e.initial]?.tags : [], i = aa({
2433
+ function ya(e) {
2434
+ let t = e.computed ?? K({}), n = e.context ?? K({}), r = e.initial ? e.states?.[e.initial]?.tags : [], i = oa({
2435
2435
  value: e.initial ?? "",
2436
2436
  previousValue: "",
2437
2437
  event: K({}),
2438
2438
  previousEvent: K({}),
2439
- context: la(n, t),
2439
+ context: ua(n, t),
2440
2440
  done: !1,
2441
2441
  tags: r ?? [],
2442
2442
  hasTag(e) {
@@ -2461,43 +2461,43 @@ function va(e) {
2461
2461
  });
2462
2462
  return K(i);
2463
2463
  }
2464
- function ya(e, t) {
2464
+ function ba(e, t) {
2465
2465
  return (n, r) => {
2466
- if (wn(e)) return e;
2467
- if (Tn(e)) return e(n, r);
2466
+ if (Tn(e)) return e;
2467
+ if (En(e)) return e(n, r);
2468
2468
  if (q(e)) {
2469
2469
  let i = Number.parseFloat(e);
2470
2470
  if (!Number.isNaN(i)) return i;
2471
2471
  if (t) {
2472
2472
  let i = t?.[e];
2473
2473
  if (i === null) throw Error(`[@destyler/xstate > determine-delay] Cannot determine delay for \`${e}\`. It is set to null in \`options.delays\``);
2474
- return Tn(i) ? i(n, r) : i;
2474
+ return En(i) ? i(n, r) : i;
2475
2475
  }
2476
2476
  }
2477
2477
  };
2478
2478
  }
2479
- function ba(e) {
2479
+ function xa(e) {
2480
2480
  return q(e) ? { target: e } : e;
2481
2481
  }
2482
- function xa(e, t) {
2483
- return (n, r, i) => da(e).map(ba).find((e) => {
2484
- let a = ma(e.guard, t), o = a(n, r, i);
2482
+ function Sa(e, t) {
2483
+ return (n, r, i) => fa(e).map(xa).find((e) => {
2484
+ let a = ha(e.guard, t), o = a(n, r, i);
2485
2485
  return o ?? e.target ?? e.actions;
2486
2486
  });
2487
2487
  }
2488
- var Sa = class {
2489
- status = ga.NotStarted;
2488
+ var Ca = class {
2489
+ status = _a.NotStarted;
2490
2490
  state;
2491
2491
  initialState;
2492
2492
  initialContext;
2493
2493
  id;
2494
- type = _a.Machine;
2494
+ type = va.Machine;
2495
2495
  activityEvents = /* @__PURE__ */ new Map();
2496
2496
  delayedEvents = /* @__PURE__ */ new Map();
2497
2497
  stateListeners = /* @__PURE__ */ new Set();
2498
2498
  doneListeners = /* @__PURE__ */ new Set();
2499
2499
  contextWatchers = /* @__PURE__ */ new Set();
2500
- removeStateListener = vn;
2500
+ removeStateListener = yn;
2501
2501
  parent;
2502
2502
  children = /* @__PURE__ */ new Map();
2503
2503
  guardMap;
@@ -2508,10 +2508,10 @@ var Sa = class {
2508
2508
  options;
2509
2509
  config;
2510
2510
  constructor(e, t) {
2511
- this.config = ta(e), this.options = ta(t ?? {}), this.id = this.config.id ?? `machine-${bn()}`, this.guardMap = this.options?.guards ?? {}, this.actionMap = this.options?.actions ?? {}, this.delayMap = this.options?.delays ?? {}, this.activityMap = this.options?.activities ?? {}, this.sync = this.options?.sync ?? !1, this.state = va(this.config), this.initialContext = sa(this.state.context);
2511
+ this.config = na(e), this.options = na(t ?? {}), this.id = this.config.id ?? `machine-${xn()}`, this.guardMap = this.options?.guards ?? {}, this.actionMap = this.options?.actions ?? {}, this.delayMap = this.options?.delays ?? {}, this.activityMap = this.options?.activities ?? {}, this.sync = this.options?.sync ?? !1, this.state = ya(this.config), this.initialContext = ca(this.state.context);
2512
2512
  }
2513
2513
  get stateSnapshot() {
2514
- return K(sa(this.state));
2514
+ return K(ca(this.state));
2515
2515
  }
2516
2516
  getState() {
2517
2517
  return this.stateSnapshot;
@@ -2525,13 +2525,13 @@ var Sa = class {
2525
2525
  this.executeActions(this.config.created, e);
2526
2526
  };
2527
2527
  start = (e) => {
2528
- if (this.state.value = "", this.state.tags = [], this.status === ga.Running) return this;
2529
- this.status = ga.Running, this.removeStateListener = oa(this.state, () => {
2528
+ if (this.state.value = "", this.state.tags = [], this.status === _a.Running) return this;
2529
+ this.status = _a.Running, this.removeStateListener = sa(this.state, () => {
2530
2530
  this.stateListeners.forEach((e) => {
2531
2531
  e(this.stateSnapshot);
2532
2532
  });
2533
- }, this.sync), this.setupContextWatchers(), this.executeActivities(X(Z.Start), da(this.config.activities), Z.Start), this.executeActions(this.config.entry, X(Z.Start));
2534
- let t = X(Z.Init), n = Cn(e) ? e.value : e, r = Cn(e) ? e.context : void 0;
2533
+ }, this.sync), this.setupContextWatchers(), this.executeActivities(X(Z.Start), fa(this.config.activities), Z.Start), this.executeActions(this.config.entry, X(Z.Start));
2534
+ let t = X(Z.Init), n = wn(e) ? e.value : e, r = wn(e) ? e.context : void 0;
2535
2535
  r && this.setContext(r);
2536
2536
  let i = { target: n ?? this.config.initial }, a = this.getNextStateInfo(i, t);
2537
2537
  return this.initialState = a, this.performStateChangeEffects(this.state.value, a, t), this;
@@ -2539,8 +2539,8 @@ var Sa = class {
2539
2539
  setupContextWatchers = () => {
2540
2540
  let { watch: e } = this.config;
2541
2541
  if (!e) return;
2542
- let t = sa(this.state.context), n = oa(this.state.context, () => {
2543
- let n = sa(this.state.context);
2542
+ let t = ca(this.state.context), n = sa(this.state.context, () => {
2543
+ let n = ca(this.state.context);
2544
2544
  for (let [r, i] of Object.entries(e)) {
2545
2545
  let e = this.options.compareFns?.[r] ?? Object.is;
2546
2546
  if (e(t[r], n[r])) continue;
@@ -2551,7 +2551,7 @@ var Sa = class {
2551
2551
  this.contextWatchers.add(n);
2552
2552
  };
2553
2553
  stop = () => {
2554
- if (this.status !== ga.Stopped) return this.performExitEffects(this.state.value, X(Z.Stop)), this.executeActions(this.config.exit, X(Z.Stop)), this.setState(""), this.setEvent(Z.Stop), this.stopStateListeners(), this.stopChildren(), this.stopActivities(), this.stopDelayedEvents(), this.stopContextWatchers(), this.status = ga.Stopped, this;
2554
+ if (this.status !== _a.Stopped) return this.performExitEffects(this.state.value, X(Z.Stop)), this.executeActions(this.config.exit, X(Z.Stop)), this.setState(""), this.setEvent(Z.Stop), this.stopStateListeners(), this.stopChildren(), this.stopActivities(), this.stopDelayedEvents(), this.stopContextWatchers(), this.status = _a.Stopped, this;
2555
2555
  };
2556
2556
  stopStateListeners = () => {
2557
2557
  this.removeStateListener(), this.stateListeners.clear();
@@ -2570,7 +2570,7 @@ var Sa = class {
2570
2570
  }), this.activityEvents.clear());
2571
2571
  };
2572
2572
  sendChild = (e, t) => {
2573
- let n = X(e), r = _n(t, this.contextSnapshot), i = this.children.get(r);
2573
+ let n = X(e), r = vn(t, this.contextSnapshot), i = this.children.get(r);
2574
2574
  if (!i) throw Error(`[@destyler/xstate] Cannot send '${n.type}' event to unknown child`);
2575
2575
  i.send(n);
2576
2576
  };
@@ -2588,10 +2588,10 @@ var Sa = class {
2588
2588
  this.parent = e;
2589
2589
  };
2590
2590
  spawn = (e, t) => {
2591
- let n = _n(e);
2592
- return t && (n.id = t), n.type = _a.Actor, n.setParent(this), this.children.set(n.id, K(n)), n.onDone(() => {
2591
+ let n = vn(e);
2592
+ return t && (n.id = t), n.type = va.Actor, n.setParent(this), this.children.set(n.id, K(n)), n.onDone(() => {
2593
2593
  this.removeChild(n.id);
2594
- }).start(), K(ca(n));
2594
+ }).start(), K(la(n));
2595
2595
  };
2596
2596
  stopActivity = (e) => {
2597
2597
  if (!this.state.value) return;
@@ -2604,13 +2604,13 @@ var Sa = class {
2604
2604
  setState = (e) => {
2605
2605
  this.state.previousValue = this.state.value, this.state.value = e;
2606
2606
  let t = this.getStateNode(e);
2607
- e == null ? gn(this.state.tags) : this.state.tags = da(t?.tags);
2607
+ e == null ? _n(this.state.tags) : this.state.tags = fa(t?.tags);
2608
2608
  };
2609
2609
  setContext = (e) => {
2610
- e && ua(this.state.context, e);
2610
+ e && da(this.state.context, e);
2611
2611
  };
2612
2612
  setOptions = (e) => {
2613
- let t = Rn(e);
2613
+ let t = zn(e);
2614
2614
  this.actionMap = {
2615
2615
  ...this.actionMap,
2616
2616
  ...t.actions
@@ -2656,18 +2656,18 @@ var Sa = class {
2656
2656
  let t = this.getStateNode(e), n = this.state.event;
2657
2657
  if (!t || !t.after) return;
2658
2658
  let r = [], i = [];
2659
- if (xn(t.after)) {
2659
+ if (Sn(t.after)) {
2660
2660
  let e = this.determineTransition(t.after, n);
2661
2661
  if (!e) return;
2662
- if (!Dn(e, "delay")) throw Error(`[@destyler/xstate > after] Delay is required for after transition: ${JSON.stringify(e)}`);
2663
- let a = ya(e.delay, this.delayMap), o = a(this.contextSnapshot, n), s = this.getAfterActions(e, o);
2662
+ if (!On(e, "delay")) throw Error(`[@destyler/xstate > after] Delay is required for after transition: ${JSON.stringify(e)}`);
2663
+ let a = ba(e.delay, this.delayMap), o = a(this.contextSnapshot, n), s = this.getAfterActions(e, o);
2664
2664
  return r.push(s.entry), i.push(s.exit), {
2665
2665
  entries: r,
2666
2666
  exits: i
2667
2667
  };
2668
2668
  }
2669
- if (Cn(t.after)) for (let e in t.after) {
2670
- let a = t.after[e], o = ya(e, this.delayMap), s = o(this.contextSnapshot, n), c = this.getAfterActions(a, s);
2669
+ if (wn(t.after)) for (let e in t.after) {
2670
+ let a = t.after[e], o = ba(e, this.delayMap), s = o(this.contextSnapshot, n), c = this.getAfterActions(a, s);
2671
2671
  r.push(c.entry), i.push(c.exit);
2672
2672
  }
2673
2673
  return {
@@ -2714,8 +2714,8 @@ var Sa = class {
2714
2714
  return { state: this.stateSnapshot };
2715
2715
  }
2716
2716
  executeActions = (e, t) => {
2717
- let n = ha(e, this.guardMap)(this.contextSnapshot, t, this.guardMeta);
2718
- for (let e of da(n)) {
2717
+ let n = ga(e, this.guardMap)(this.contextSnapshot, t, this.guardMeta);
2718
+ for (let e of fa(n)) {
2719
2719
  let n = q(e) ? this.actionMap?.[e] : e;
2720
2720
  q(e) && !n && console.warn(`[@destyler/xstate > execute-actions] No implementation found for action: \`${e}\``), n?.(this.state.context, t, this.meta);
2721
2721
  }
@@ -2729,19 +2729,19 @@ var Sa = class {
2729
2729
  }
2730
2730
  let i = t(this.state.context, e, this.meta);
2731
2731
  if (i) {
2732
- let e = q(r) ? r : r.name || bn();
2732
+ let e = q(r) ? r : r.name || xn();
2733
2733
  this.addActivityCleanup(n ?? this.state.value, e, i);
2734
2734
  }
2735
2735
  }
2736
2736
  };
2737
2737
  createEveryActivities = (e, t) => {
2738
- if (e) if (xn(e)) {
2739
- let n = da(e).find((e) => {
2740
- let t = e.delay, n = ya(t, this.delayMap), r = n(this.contextSnapshot, this.state.event), i = ma(e.guard, this.guardMap), a = i(this.contextSnapshot, this.state.event, this.guardMeta);
2738
+ if (e) if (Sn(e)) {
2739
+ let n = fa(e).find((e) => {
2740
+ let t = e.delay, n = ba(t, this.delayMap), r = n(this.contextSnapshot, this.state.event), i = ha(e.guard, this.guardMap), a = i(this.contextSnapshot, this.state.event, this.guardMeta);
2741
2741
  return a ?? r != null;
2742
2742
  });
2743
2743
  if (!n) return;
2744
- let r = ya(n.delay, this.delayMap), i = r(this.contextSnapshot, this.state.event), a = () => {
2744
+ let r = ba(n.delay, this.delayMap), i = r(this.contextSnapshot, this.state.event), a = () => {
2745
2745
  let e = globalThis.setInterval(() => {
2746
2746
  this.executeActions(n.actions, this.state.event);
2747
2747
  }, i);
@@ -2751,7 +2751,7 @@ var Sa = class {
2751
2751
  };
2752
2752
  t(a);
2753
2753
  } else for (let n in e) {
2754
- let r = e?.[n], i = ya(n, this.delayMap), a = i(this.contextSnapshot, this.state.event), o = () => {
2754
+ let r = e?.[n], i = ba(n, this.delayMap), a = i(this.contextSnapshot, this.state.event), o = () => {
2755
2755
  let e = globalThis.setInterval(() => {
2756
2756
  this.executeActions(r, this.state.event);
2757
2757
  }, a);
@@ -2763,22 +2763,22 @@ var Sa = class {
2763
2763
  }
2764
2764
  };
2765
2765
  setEvent = (e) => {
2766
- this.state.previousEvent = this.state.event, this.state.event = ca(X(e));
2766
+ this.state.previousEvent = this.state.event, this.state.event = la(X(e));
2767
2767
  };
2768
2768
  performExitEffects = (e, t) => {
2769
2769
  let n = this.state.value;
2770
2770
  if (n === "") return;
2771
2771
  let r = e ? this.getStateNode(e) : void 0;
2772
2772
  this.stopActivities(n);
2773
- let i = ha(r?.exit, this.guardMap)(this.contextSnapshot, t, this.guardMeta), a = da(i), o = this.delayedEvents.get(n);
2773
+ let i = ga(r?.exit, this.guardMap)(this.contextSnapshot, t, this.guardMeta), a = fa(i), o = this.delayedEvents.get(n);
2774
2774
  o && a.push(...o), this.executeActions(a, t), this.delayedEvents.delete(n);
2775
2775
  };
2776
2776
  performEntryEffects = (e, t) => {
2777
- let n = this.getStateNode(e), r = da(n?.activities);
2777
+ let n = this.getStateNode(e), r = fa(n?.activities);
2778
2778
  this.createEveryActivities(n?.every, (e) => {
2779
2779
  r.unshift(e);
2780
2780
  }), r.length > 0 && this.executeActivities(t, r);
2781
- let i = ha(n?.entry, this.guardMap)(this.contextSnapshot, t, this.guardMeta), a = da(i), o = this.getDelayedEventActions(e);
2781
+ let i = ga(n?.entry, this.guardMap)(this.contextSnapshot, t, this.guardMeta), a = fa(i), o = this.getDelayedEventActions(e);
2782
2782
  n?.after && o && (this.delayedEvents.set(e, o?.exits), a.push(...o.entries)), this.executeActions(a, t), n?.type === "final" && (this.state.done = !0, this.doneListeners.forEach((e) => {
2783
2783
  e(this.stateSnapshot);
2784
2784
  }), this.stop());
@@ -2793,7 +2793,7 @@ var Sa = class {
2793
2793
  r && this.performExitEffects(e, n), this.performTransitionEffects(t.transition, n), this.setState(t.target), r && this.performEntryEffects(t.target, n);
2794
2794
  };
2795
2795
  determineTransition = (e, t) => {
2796
- let n = xa(e, this.guardMap);
2796
+ let n = Sa(e, this.guardMap);
2797
2797
  return n?.(this.contextSnapshot, t, this.guardMeta);
2798
2798
  };
2799
2799
  sendParent = (e) => {
@@ -2811,18 +2811,18 @@ var Sa = class {
2811
2811
  transition = (e, t) => {
2812
2812
  let n = q(e) ? this.getStateNode(e) : e?.stateNode, r = X(t);
2813
2813
  if (!n && !this.config.on) {
2814
- let t = this.status === ga.Stopped ? "[@destyler/xstate > transition] Cannot transition a stopped machine" : `[destyler/xstate > transition] State does not have a definition for \`state\`: ${e}, \`event\`: ${r.type}`;
2814
+ let t = this.status === _a.Stopped ? "[@destyler/xstate > transition] Cannot transition a stopped machine" : `[destyler/xstate > transition] State does not have a definition for \`state\`: ${e}, \`event\`: ${r.type}`;
2815
2815
  console.warn(t);
2816
2816
  return;
2817
2817
  }
2818
2818
  let i = n?.on?.[r.type] ?? this.config.on?.[r.type], a = this.getNextStateInfo(i, r);
2819
2819
  return this.performStateChangeEffects(this.state.value, a, r), a.stateNode;
2820
2820
  };
2821
- subscribe = (e) => (this.stateListeners.add(e), this.status === ga.Running && e(this.stateSnapshot), () => {
2821
+ subscribe = (e) => (this.stateListeners.add(e), this.status === _a.Running && e(this.stateSnapshot), () => {
2822
2822
  this.stateListeners.delete(e);
2823
2823
  });
2824
2824
  onDone = (e) => (this.doneListeners.add(e), this);
2825
- onTransition = (e) => (this.stateListeners.add(e), this.status === ga.Running && e(this.stateSnapshot), this);
2825
+ onTransition = (e) => (this.stateListeners.add(e), this.status === _a.Running && e(this.stateSnapshot), this);
2826
2826
  get [Symbol.toStringTag]() {
2827
2827
  return "Machine";
2828
2828
  }
@@ -2834,18 +2834,18 @@ var Sa = class {
2834
2834
  };
2835
2835
  }
2836
2836
  };
2837
- function Ca(e, t) {
2838
- return new Sa(e, t);
2837
+ function wa(e, t) {
2838
+ return new Ca(e, t);
2839
2839
  }
2840
- function wa() {
2840
+ function Ta() {
2841
2841
  return (e) => Array.from(new Set(e));
2842
2842
  }
2843
- function Ta(e) {
2843
+ function Ea(e) {
2844
2844
  return new Proxy({}, { get() {
2845
2845
  return e;
2846
2846
  } });
2847
2847
  }
2848
- const Ea = mt("popover").parts("arrow", "arrowTip", "anchor", "trigger", "indicator", "positioner", "content", "title", "description", "closeTrigger"), Q = Ea.build(), $ = un({
2848
+ const Da = ft("popover").parts("arrow", "arrowTip", "anchor", "trigger", "indicator", "positioner", "content", "title", "description", "closeTrigger"), Q = Da.build(), $ = dn({
2849
2849
  getAnchorId: (e) => e.ids?.anchor ?? `popover:${e.id}:anchor`,
2850
2850
  getTriggerId: (e) => e.ids?.trigger ?? `popover:${e.id}:trigger`,
2851
2851
  getContentId: (e) => e.ids?.content ?? `popover:${e.id}:content`,
@@ -2863,8 +2863,8 @@ const Ea = mt("popover").parts("arrow", "arrowTip", "anchor", "trigger", "indica
2863
2863
  getFocusableEls: (e) => Zt($.getContentEl(e)),
2864
2864
  getFirstFocusableEl: (e) => $.getFocusableEls(e)[0]
2865
2865
  });
2866
- function Da(e, t, n) {
2867
- let r = e.matches("open"), i = e.context.currentPlacement, a = e.context.currentPortalled, o = e.context.renderedElements, s = qr({
2866
+ function Oa(e, t, n) {
2867
+ let r = e.matches("open"), i = e.context.currentPlacement, a = e.context.currentPortalled, o = e.context.renderedElements, s = Jr({
2868
2868
  ...e.context.positioning,
2869
2869
  placement: i
2870
2870
  });
@@ -2914,7 +2914,7 @@ function Da(e, t, n) {
2914
2914
  "data-state": r ? "open" : "closed",
2915
2915
  "aria-controls": $.getContentId(e.context),
2916
2916
  onPointerDown(e) {
2917
- Bt() && e.currentTarget.focus();
2917
+ zt() && e.currentTarget.focus();
2918
2918
  },
2919
2919
  onClick(e) {
2920
2920
  e.defaultPrevented || t("TOGGLE");
@@ -2951,7 +2951,7 @@ function Da(e, t, n) {
2951
2951
  role: "dialog",
2952
2952
  hidden: !r,
2953
2953
  "data-state": r ? "open" : "closed",
2954
- "data-expanded": gt(r),
2954
+ "data-expanded": mt(r),
2955
2955
  "aria-labelledby": o.title ? $.getTitleId(e.context) : void 0,
2956
2956
  "aria-describedby": o.description ? $.getDescriptionId(e.context) : void 0,
2957
2957
  "data-placement": i
@@ -2985,9 +2985,9 @@ function Da(e, t, n) {
2985
2985
  }
2986
2986
  };
2987
2987
  }
2988
- function Oa(e) {
2989
- let t = Rn(e);
2990
- return Ca({
2988
+ function ka(e) {
2989
+ let t = zn(e);
2990
+ return wa({
2991
2991
  id: "popover",
2992
2992
  initial: t.open ? "open" : "closed",
2993
2993
  context: {
@@ -3069,7 +3069,7 @@ function Oa(e) {
3069
3069
  trackPositioning(e) {
3070
3070
  e.currentPlacement = e.positioning.placement;
3071
3071
  let t = $.getAnchorEl(e) ?? $.getTriggerEl(e), n = () => $.getPositionerEl(e);
3072
- return Gr(t, n, {
3072
+ return Kr(t, n, {
3073
3073
  ...e.positioning,
3074
3074
  defer: !0,
3075
3075
  onComplete(t) {
@@ -3079,7 +3079,7 @@ function Oa(e) {
3079
3079
  },
3080
3080
  trackDismissableElement(e, t, { send: n }) {
3081
3081
  let r = () => $.getContentEl(e), i = !0;
3082
- return wi(r, {
3082
+ return Ti(r, {
3083
3083
  pointerBlocking: e.modal,
3084
3084
  exclude: $.getTriggerEl(e),
3085
3085
  defer: !0,
@@ -3104,7 +3104,7 @@ function Oa(e) {
3104
3104
  proxyTabFocus(e) {
3105
3105
  if (e.modal || !e.portalled) return;
3106
3106
  let t = () => $.getContentEl(e);
3107
- return ln(t, {
3107
+ return un(t, {
3108
3108
  triggerElement: $.getTriggerEl(e),
3109
3109
  defer: !0,
3110
3110
  onFocus(e) {
@@ -3115,15 +3115,15 @@ function Oa(e) {
3115
3115
  hideContentBelow(e) {
3116
3116
  if (!e.modal) return;
3117
3117
  let t = () => [$.getContentEl(e), $.getTriggerEl(e)];
3118
- return ai(t, { defer: !0 });
3118
+ return oi(t, { defer: !0 });
3119
3119
  },
3120
3120
  preventScroll(e) {
3121
- if (e.modal) return Ri($.getDoc(e));
3121
+ if (e.modal) return zi($.getDoc(e));
3122
3122
  },
3123
3123
  trapFocus(e) {
3124
3124
  if (!e.modal) return;
3125
3125
  let t = () => $.getContentEl(e);
3126
- return Ni(t, { initialFocus: () => rn({
3126
+ return Pi(t, { initialFocus: () => an({
3127
3127
  root: $.getContentEl(e),
3128
3128
  getInitialEl: e.initialFocusEl,
3129
3129
  enabled: e.autoFocus
@@ -3133,7 +3133,7 @@ function Oa(e) {
3133
3133
  actions: {
3134
3134
  reposition(e, t) {
3135
3135
  let n = $.getAnchorEl(e) ?? $.getTriggerEl(e), r = () => $.getPositionerEl(e);
3136
- Gr(n, r, {
3136
+ Kr(n, r, {
3137
3137
  ...e.positioning,
3138
3138
  ...t.options,
3139
3139
  defer: !0,
@@ -3153,7 +3153,7 @@ function Oa(e) {
3153
3153
  },
3154
3154
  setInitialFocus(e) {
3155
3155
  e.modal || G(() => {
3156
- let t = rn({
3156
+ let t = an({
3157
3157
  root: $.getContentEl(e),
3158
3158
  getInitialEl: e.initialFocusEl,
3159
3159
  enabled: e.autoFocus
@@ -3183,7 +3183,7 @@ function Oa(e) {
3183
3183
  }
3184
3184
  });
3185
3185
  }
3186
- const ka = wa()([
3186
+ const Aa = Ta()([
3187
3187
  "autoFocus",
3188
3188
  "closeOnEscape",
3189
3189
  "closeOnInteractOutside",
@@ -3204,39 +3204,39 @@ const ka = wa()([
3204
3204
  "portalled",
3205
3205
  "positioning"
3206
3206
  ]);
3207
- Vn(ka);
3208
- function Aa(e, t) {
3209
- let { actions: n, context: r } = t ?? {}, i = b(e.state), a = oa(e.state, () => {
3210
- i.value = sa(e.state);
3207
+ Hn(Aa);
3208
+ function ja(e, t) {
3209
+ let { actions: n, context: r } = t ?? {}, i = x(e.state), a = sa(e.state, () => {
3210
+ i.value = ca(e.state);
3211
3211
  });
3212
- return g(() => {
3212
+ return _(() => {
3213
3213
  a?.();
3214
- }), T(() => {
3214
+ }), ee(() => {
3215
3215
  e.setOptions({ actions: n });
3216
- }), r && w(r, (t) => {
3217
- e.setContext(x(t));
3216
+ }), r && E(r, (t) => {
3217
+ e.setContext(S(t));
3218
3218
  }, { deep: !0 }), i;
3219
3219
  }
3220
- function ja(e, t) {
3220
+ function Ma(e, t) {
3221
3221
  let { state: n, context: r } = t ?? {}, i = typeof e == "function" ? e() : e;
3222
- return r && i.setContext(x(r)), i._created(), h(() => {
3223
- i.start(n), m(() => {
3222
+ return r && i.setContext(S(r)), i._created(), g(() => {
3223
+ i.start(n), h(() => {
3224
3224
  i.stop();
3225
3225
  });
3226
3226
  }), i;
3227
3227
  }
3228
- function Ma(e, t) {
3229
- let n = ja(e, t), r = Aa(n, t);
3228
+ function Na(e, t) {
3229
+ let n = Ma(e, t), r = ja(n, t);
3230
3230
  return [
3231
3231
  r,
3232
3232
  n.send,
3233
3233
  n
3234
3234
  ];
3235
3235
  }
3236
- function Na(e) {
3236
+ function Pa(e) {
3237
3237
  return e.charAt(0).toUpperCase() + e.substr(1).toLowerCase();
3238
3238
  }
3239
- const Pa = {
3239
+ const Fa = {
3240
3240
  htmlFor: "for",
3241
3241
  className: "class",
3242
3242
  onDoubleClick: "onDblclick",
@@ -3246,30 +3246,30 @@ const Pa = {
3246
3246
  defaultValue: "value",
3247
3247
  defaultChecked: "checked"
3248
3248
  };
3249
- function Fa(e) {
3250
- return e in Pa ? Pa[e] : e.startsWith("on") ? `on${Na(e.substr(2))}` : e.toLowerCase();
3249
+ function Ia(e) {
3250
+ return e in Fa ? Fa[e] : e.startsWith("on") ? `on${Pa(e.substr(2))}` : e.toLowerCase();
3251
3251
  }
3252
- const Ia = Ta((e) => {
3252
+ const La = Ea((e) => {
3253
3253
  let t = {};
3254
3254
  for (let n in e) {
3255
3255
  let r = e[n];
3256
- n === "children" ? typeof r == "string" && (t.innerHTML = r) : t[Fa(n)] = e[n];
3256
+ n === "children" ? typeof r == "string" && (t.innerHTML = r) : t[Ia(n)] = e[n];
3257
3257
  }
3258
3258
  return t;
3259
- }), La = {
3259
+ }), Ra = {
3260
3260
  key: 0,
3261
3261
  xmlns: "http://www.w3.org/2000/svg",
3262
3262
  width: "1em",
3263
3263
  height: "1em",
3264
3264
  viewBox: "0 0 16 16"
3265
- }, Ra = {
3265
+ }, za = {
3266
3266
  key: 1,
3267
3267
  xmlns: "http://www.w3.org/2000/svg",
3268
3268
  width: "1em",
3269
3269
  height: "1em",
3270
3270
  viewBox: "0 0 16 16"
3271
3271
  };
3272
- var za = /* @__PURE__ */ l({
3272
+ var Ba = /* @__PURE__ */ l({
3273
3273
  name: "ComponentIcones",
3274
3274
  __name: "ComponentsIcones",
3275
3275
  props: { expanded: {
@@ -3278,7 +3278,7 @@ var za = /* @__PURE__ */ l({
3278
3278
  } },
3279
3279
  setup(e) {
3280
3280
  let t = e;
3281
- return (e, n) => t.expanded ? (_(), o("svg", La, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[0] ||= s("g", {
3281
+ return (e, n) => t.expanded ? (v(), o("svg", Ra, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[0] ||= s("g", {
3282
3282
  fill: "none",
3283
3283
  "stroke-linecap": "round",
3284
3284
  "stroke-linejoin": "round"
@@ -3288,7 +3288,7 @@ var za = /* @__PURE__ */ l({
3288
3288
  }), s("path", {
3289
3289
  stroke: "#67B686",
3290
3290
  d: "m9.485 9.516l3.968 3.968m-3.968 0l3.968-3.968m-1.634-1.874l3.507 3.507a.496.496 0 0 1 0 .702l-3.507 3.507a.496.496 0 0 1-.701 0L7.61 11.85a.496.496 0 0 1 0-.702l3.507-3.507a.496.496 0 0 1 .701 0z"
3291
- })], -1)])) : (_(), o("svg", Ra, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[1] ||= s("g", {
3291
+ })], -1)])) : (v(), o("svg", za, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[1] ||= s("g", {
3292
3292
  fill: "none",
3293
3293
  "stroke-linecap": "round",
3294
3294
  "stroke-linejoin": "round"
@@ -3300,21 +3300,21 @@ var za = /* @__PURE__ */ l({
3300
3300
  d: "m9.485 9.516l3.968 3.968m-3.968 0l3.968-3.968m-1.634-1.874l3.507 3.507a.496.496 0 0 1 0 .702l-3.507 3.507a.496.496 0 0 1-.701 0L7.61 11.85a.496.496 0 0 1 0-.702l3.507-3.507a.496.496 0 0 1 .701 0z"
3301
3301
  })], -1)]));
3302
3302
  }
3303
- }), Ba = za;
3304
- const Va = {
3303
+ }), Va = Ba;
3304
+ const Ha = {
3305
3305
  key: 0,
3306
3306
  xmlns: "http://www.w3.org/2000/svg",
3307
3307
  width: "1em",
3308
3308
  height: "1em",
3309
3309
  viewBox: "0 0 16 16"
3310
- }, Ha = {
3310
+ }, Ua = {
3311
3311
  key: 1,
3312
3312
  xmlns: "http://www.w3.org/2000/svg",
3313
3313
  width: "1em",
3314
3314
  height: "1em",
3315
3315
  viewBox: "0 0 16 16"
3316
3316
  };
3317
- var Ua = /* @__PURE__ */ l({
3317
+ var Wa = /* @__PURE__ */ l({
3318
3318
  name: "FolderIcones",
3319
3319
  __name: "FolderIcones",
3320
3320
  props: { expanded: {
@@ -3323,13 +3323,13 @@ var Ua = /* @__PURE__ */ l({
3323
3323
  } },
3324
3324
  setup(e) {
3325
3325
  let t = e;
3326
- return (e, n) => t.expanded ? (_(), o("svg", Va, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[0] ||= s("path", {
3326
+ return (e, n) => t.expanded ? (v(), o("svg", Ha, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[0] ||= s("path", {
3327
3327
  fill: "none",
3328
3328
  class: "stroke-dark dark:stroke-light",
3329
3329
  "stroke-linecap": "round",
3330
3330
  "stroke-linejoin": "round",
3331
3331
  d: "m1.87 8l.7-2.74a1 1 0 0 1 .96-.76h10.94a1 1 0 0 1 .97 1.24l-1.75 7a1 1 0 0 1-.97.76H2A1.5 1.5 0 0 1 .5 12V3.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1"
3332
- }, null, -1)])) : (_(), o("svg", Ha, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[1] ||= s("path", {
3332
+ }, null, -1)])) : (v(), o("svg", Ua, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[1] ||= s("path", {
3333
3333
  fill: "none",
3334
3334
  class: "stroke-dark dark:stroke-light",
3335
3335
  "stroke-linecap": "round",
@@ -3337,21 +3337,21 @@ var Ua = /* @__PURE__ */ l({
3337
3337
  d: "M4.5 4.5H12c.83 0 1.5.67 1.5 1.5v6c0 .83-.67 1.5-1.5 1.5H2A1.5 1.5 0 0 1 .5 12V3.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1"
3338
3338
  }, null, -1)]));
3339
3339
  }
3340
- }), Wa = Ua;
3341
- const Ga = {
3340
+ }), Ga = Wa;
3341
+ const Ka = {
3342
3342
  key: 0,
3343
3343
  xmlns: "http://www.w3.org/2000/svg",
3344
3344
  width: "1em",
3345
3345
  height: "1em",
3346
3346
  viewBox: "0 0 16 16"
3347
- }, Ka = {
3347
+ }, qa = {
3348
3348
  key: 1,
3349
3349
  xmlns: "http://www.w3.org/2000/svg",
3350
3350
  width: "1em",
3351
3351
  height: "1em",
3352
3352
  viewBox: "0 0 16 16"
3353
3353
  };
3354
- var qa = /* @__PURE__ */ l({
3354
+ var Ja = /* @__PURE__ */ l({
3355
3355
  name: "ModleIcones",
3356
3356
  __name: "ModuleIcones",
3357
3357
  props: { expanded: {
@@ -3360,7 +3360,7 @@ var qa = /* @__PURE__ */ l({
3360
3360
  } },
3361
3361
  setup(e) {
3362
3362
  let t = e;
3363
- return (e, n) => t.expanded ? (_(), o("svg", Ga, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[0] ||= s("g", {
3363
+ return (e, n) => t.expanded ? (v(), o("svg", Ka, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[0] ||= s("g", {
3364
3364
  fill: "none",
3365
3365
  "stroke-linecap": "round",
3366
3366
  "stroke-linejoin": "round"
@@ -3370,7 +3370,7 @@ var qa = /* @__PURE__ */ l({
3370
3370
  }), s("path", {
3371
3371
  stroke: "#65bb87",
3372
3372
  d: "M15.5 13.5v1.2a.8.8 0 0 1-.8.8h-4.4a.8.8 0 0 1-.8-.8v-1.2H9a1 1 0 0 1 0-2h.5v-1.2a.8.8 0 0 1 .8-.8h1.2V9a1 1 0 0 1 2 0v.5h1.2a.8.8 0 0 1 .8.8v1.2H15a1 1 0 0 0 0 2z"
3373
- })], -1)])) : (_(), o("svg", Ka, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[1] ||= s("g", {
3373
+ })], -1)])) : (v(), o("svg", qa, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[1] ||= s("g", {
3374
3374
  fill: "none",
3375
3375
  "stroke-linecap": "round",
3376
3376
  "stroke-linejoin": "round"
@@ -3382,21 +3382,21 @@ var qa = /* @__PURE__ */ l({
3382
3382
  d: "M15.5 13.5v1.2a.8.8 0 0 1-.8.8h-4.4a.8.8 0 0 1-.8-.8v-1.2H9a1 1 0 0 1 0-2h.5v-1.2a.8.8 0 0 1 .8-.8h1.2V9a1 1 0 0 1 2 0v.5h1.2a.8.8 0 0 1 .8.8v1.2H15a1 1 0 0 0 0 2z"
3383
3383
  })], -1)]));
3384
3384
  }
3385
- }), Ja = qa;
3386
- const Ya = {
3385
+ }), Ya = Ja;
3386
+ const Xa = {
3387
3387
  key: 0,
3388
3388
  xmlns: "http://www.w3.org/2000/svg",
3389
3389
  width: "1em",
3390
3390
  height: "1em",
3391
3391
  viewBox: "0 0 16 16"
3392
- }, Xa = {
3392
+ }, Za = {
3393
3393
  key: 1,
3394
3394
  xmlns: "http://www.w3.org/2000/svg",
3395
3395
  width: "1em",
3396
3396
  height: "1em",
3397
3397
  viewBox: "0 0 16 16"
3398
3398
  };
3399
- var Za = /* @__PURE__ */ l({
3399
+ var Qa = /* @__PURE__ */ l({
3400
3400
  name: "PackagesIcones",
3401
3401
  __name: "PackagesIcones",
3402
3402
  props: { expanded: {
@@ -3405,7 +3405,7 @@ var Za = /* @__PURE__ */ l({
3405
3405
  } },
3406
3406
  setup(e) {
3407
3407
  let t = e;
3408
- return (e, n) => t.expanded ? (_(), o("svg", Ya, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[0] ||= s("g", {
3408
+ return (e, n) => t.expanded ? (v(), o("svg", Xa, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[0] ||= s("g", {
3409
3409
  fill: "none",
3410
3410
  "stroke-linecap": "round",
3411
3411
  "stroke-linejoin": "round"
@@ -3415,7 +3415,7 @@ var Za = /* @__PURE__ */ l({
3415
3415
  }), s("path", {
3416
3416
  stroke: "#E23730",
3417
3417
  d: "M12 15.337v-3.919L8.5 9.214m3.5 2.204l3.5-2.204M12 7.5l3.5 1.714v4.408L12 15.5l-3.5-1.878V9.214Z"
3418
- })], -1)])) : (_(), o("svg", Xa, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[1] ||= s("g", {
3418
+ })], -1)])) : (v(), o("svg", Za, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[1] ||= s("g", {
3419
3419
  fill: "none",
3420
3420
  "stroke-linecap": "round",
3421
3421
  "stroke-linejoin": "round"
@@ -3427,21 +3427,21 @@ var Za = /* @__PURE__ */ l({
3427
3427
  d: "M12 15.337v-3.919L8.5 9.214m3.5 2.204l3.5-2.204M12 7.5l3.5 1.714v4.408L12 15.5l-3.5-1.878V9.214Z"
3428
3428
  })], -1)]));
3429
3429
  }
3430
- }), Qa = Za;
3431
- const $a = {
3430
+ }), $a = Qa;
3431
+ const eo = {
3432
3432
  key: 0,
3433
3433
  xmlns: "http://www.w3.org/2000/svg",
3434
3434
  width: "1em",
3435
3435
  height: "1em",
3436
3436
  viewBox: "0 0 16 16"
3437
- }, eo = {
3437
+ }, to = {
3438
3438
  key: 1,
3439
3439
  xmlns: "http://www.w3.org/2000/svg",
3440
3440
  width: "1em",
3441
3441
  height: "1em",
3442
3442
  viewBox: "0 0 16 16"
3443
3443
  };
3444
- var to = /* @__PURE__ */ l({
3444
+ var no = /* @__PURE__ */ l({
3445
3445
  name: "SrcIcones",
3446
3446
  __name: "SrcIcones",
3447
3447
  props: { expanded: {
@@ -3450,7 +3450,7 @@ var to = /* @__PURE__ */ l({
3450
3450
  } },
3451
3451
  setup(e) {
3452
3452
  let t = e;
3453
- return (e, n) => t.expanded ? (_(), o("svg", $a, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[0] ||= s("g", {
3453
+ return (e, n) => t.expanded ? (v(), o("svg", eo, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[0] ||= s("g", {
3454
3454
  fill: "none",
3455
3455
  "stroke-linecap": "round",
3456
3456
  "stroke-linejoin": "round"
@@ -3460,7 +3460,7 @@ var to = /* @__PURE__ */ l({
3460
3460
  }), s("path", {
3461
3461
  stroke: "#65bb87",
3462
3462
  d: "m10.5 8.5l-3 3.5l3 3.5m2-7l3 3.5l-3 3.5"
3463
- })], -1)])) : (_(), o("svg", eo, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[1] ||= s("g", {
3463
+ })], -1)])) : (v(), o("svg", to, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[1] ||= s("g", {
3464
3464
  fill: "none",
3465
3465
  "stroke-linecap": "round",
3466
3466
  "stroke-linejoin": "round"
@@ -3472,21 +3472,21 @@ var to = /* @__PURE__ */ l({
3472
3472
  d: "m10.5 8.5l-3 3.5l3 3.5m2-7l3 3.5l-3 3.5"
3473
3473
  })], -1)]));
3474
3474
  }
3475
- }), no = to;
3476
- const ro = {
3475
+ }), ro = no;
3476
+ const io = {
3477
3477
  key: 0,
3478
3478
  xmlns: "http://www.w3.org/2000/svg",
3479
3479
  width: "1em",
3480
3480
  height: "1em",
3481
3481
  viewBox: "0 0 16 16"
3482
- }, io = {
3482
+ }, ao = {
3483
3483
  key: 1,
3484
3484
  xmlns: "http://www.w3.org/2000/svg",
3485
3485
  width: "1em",
3486
3486
  height: "1em",
3487
3487
  viewBox: "0 0 16 16"
3488
3488
  };
3489
- var ao = /* @__PURE__ */ l({
3489
+ var oo = /* @__PURE__ */ l({
3490
3490
  name: "ViewIcones",
3491
3491
  __name: "ViewIcones",
3492
3492
  props: { expanded: {
@@ -3495,7 +3495,7 @@ var ao = /* @__PURE__ */ l({
3495
3495
  } },
3496
3496
  setup(e) {
3497
3497
  let t = e;
3498
- return (e, n) => t.expanded ? (_(), o("svg", ro, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[0] ||= s("g", {
3498
+ return (e, n) => t.expanded ? (v(), o("svg", io, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[0] ||= s("g", {
3499
3499
  fill: "none",
3500
3500
  "stroke-linecap": "round",
3501
3501
  "stroke-linejoin": "round"
@@ -3505,7 +3505,7 @@ var ao = /* @__PURE__ */ l({
3505
3505
  }), s("path", {
3506
3506
  stroke: "#E23730",
3507
3507
  d: "M14.692 8.5H9.308a.31.31 0 0 0-.307.336l.47 5.241c.01.128.1.235.223.27l2.303 1.153l2.308-1.153a.31.31 0 0 0 .225-.27L15 8.836a.31.31 0 0 0-.307-.336"
3508
- })], -1)])) : (_(), o("svg", io, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[1] ||= s("g", {
3508
+ })], -1)])) : (v(), o("svg", ao, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), n[1] ||= s("g", {
3509
3509
  fill: "none",
3510
3510
  "stroke-linecap": "round",
3511
3511
  "stroke-linejoin": "round"
@@ -3517,30 +3517,30 @@ var ao = /* @__PURE__ */ l({
3517
3517
  d: "M14.692 8.5H9.308a.31.31 0 0 0-.307.336l.47 5.241c.01.128.1.235.223.27l2.303 1.153l2.308-1.153a.31.31 0 0 0 .225-.27L15 8.836a.31.31 0 0 0-.307-.336"
3518
3518
  })], -1)]));
3519
3519
  }
3520
- }), oo = ao;
3521
- const so = {
3520
+ }), so = oo;
3521
+ const co = {
3522
3522
  xmlns: "http://www.w3.org/2000/svg",
3523
3523
  width: "1em",
3524
3524
  height: "1em",
3525
3525
  viewBox: "0 0 16 16"
3526
3526
  };
3527
- var co = /* @__PURE__ */ l({
3527
+ var lo = /* @__PURE__ */ l({
3528
3528
  name: "VueIcones",
3529
3529
  __name: "VueIcones",
3530
3530
  setup(e) {
3531
- return (e, t) => (_(), o("svg", so, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), t[0] ||= s("g", {
3531
+ return (e, t) => (v(), o("svg", co, [a(" Icon from Catppuccin Icons by Catppuccin - https://github.com/catppuccin/vscode-icons/blob/main/LICENSE "), t[0] ||= s("g", {
3532
3532
  fill: "none",
3533
3533
  stroke: "#65bb87",
3534
3534
  "stroke-linecap": "round",
3535
3535
  "stroke-linejoin": "round"
3536
3536
  }, [s("path", { d: "M1 1.5h5.44L8 4.56L9.56 1.5H15l-6.99 13z" }), s("path", { d: "M12.05 1.73L8 9.28L3.95 1.73" })], -1)]));
3537
3537
  }
3538
- }), lo = co;
3539
- const uo = { class: "mt-0" }, fo = { class: "w-152 mb-2" }, po = { class: "inline-flex items-center text-inherit not-italic leading-[0] text-center normal-case [vertical-align:-0.125em] [text-rendering:optimizeLegibility] svg:size-4" }, mo = {
3538
+ }), uo = lo;
3539
+ const fo = { class: "mt-0" }, po = { class: "w-152 mb-2" }, mo = { class: "inline-flex items-center text-inherit not-italic leading-[0] text-center normal-case [vertical-align:-0.125em] [text-rendering:optimizeLegibility] svg:size-4" }, ho = {
3540
3540
  key: 1,
3541
3541
  class: "flex items-center justify-center h-[220px]"
3542
3542
  };
3543
- var ho = /* @__PURE__ */ l({
3543
+ var go = /* @__PURE__ */ l({
3544
3544
  name: "ComponentSelect",
3545
3545
  __name: "ComponentSelect",
3546
3546
  props: {
@@ -3551,22 +3551,22 @@ var ho = /* @__PURE__ */ l({
3551
3551
  },
3552
3552
  emits: ["update:modelValue", "update:scope"],
3553
3553
  setup(l) {
3554
- let m = re.PRESENTED_IMAGE_SIMPLE, h = e(), g = S(l, "modelValue"), y = S(l, "scope"), b = C("searchInputRef"), [T, ce] = Ma(Oa({
3555
- id: ee(),
3556
- initialFocusEl: () => b.value
3557
- })), E = r(() => Da(T.value, ce, Ia)), D = v(!1), O = v(""), le = r(() => {
3558
- if (!g.value) return [];
3559
- let e = y.value ? `module:${y.value}` : "local";
3560
- return [`${e}/${g.value}`];
3561
- }), k = v([]);
3562
- function ue(e) {
3554
+ let h = O.PRESENTED_IMAGE_SIMPLE, g = e(), _ = w(l, "modelValue"), b = w(l, "scope"), x = T("searchInputRef"), [ee, oe] = Na(ka({
3555
+ id: C(),
3556
+ initialFocusEl: () => x.value
3557
+ })), k = r(() => Oa(ee.value, oe, La)), A = y(!1), j = y(""), se = r(() => {
3558
+ if (!_.value) return [];
3559
+ let e = b.value ? `module:${b.value}` : "local";
3560
+ return [`${e}/${_.value}`];
3561
+ }), M = y([]);
3562
+ function ce(e) {
3563
3563
  return !e.includes("/");
3564
3564
  }
3565
- function de(e) {
3565
+ function le(e) {
3566
3566
  let t = e.indexOf("/");
3567
3567
  return t === -1 ? e : e.slice(0, t);
3568
3568
  }
3569
- function fe(e) {
3569
+ function ue(e) {
3570
3570
  let t = e.split("/"), n = [], r = "";
3571
3571
  for (let e = 0; e < Math.max(0, t.length - 1); e++) {
3572
3572
  let i = t[e];
@@ -3574,30 +3574,30 @@ var ho = /* @__PURE__ */ l({
3574
3574
  }
3575
3575
  return n;
3576
3576
  }
3577
- function A(e, t) {
3577
+ function N(e, t) {
3578
3578
  let n = e || [], r = t?.node?.key, i = !!t?.expanded, a;
3579
- a = r && ue(r) ? i ? r : void 0 : r ? de(r) : n.find(ue);
3580
- let o = n.filter((e) => !ue(String(e)) || String(e) === a);
3581
- k.value = o;
3579
+ a = r && ce(r) ? i ? r : void 0 : r ? le(r) : n.find(ce);
3580
+ let o = n.filter((e) => !ce(String(e)) || String(e) === a);
3581
+ M.value = o;
3582
3582
  }
3583
- function j() {
3584
- let e = le.value[0];
3583
+ function P() {
3584
+ let e = se.value[0];
3585
3585
  if (!e) return;
3586
- let t = fe(e);
3587
- k.value = t;
3586
+ let t = ue(e);
3587
+ M.value = t;
3588
3588
  }
3589
- w(le, () => {
3590
- j();
3591
- }, { immediate: !0 }), w(D, (e) => {
3592
- e && j();
3593
- }), w(D, (e) => {
3594
- e && j();
3589
+ E(se, () => {
3590
+ P();
3591
+ }, { immediate: !0 }), E(A, (e) => {
3592
+ e && P();
3593
+ }), E(A, (e) => {
3594
+ e && P();
3595
3595
  });
3596
- let M = r(() => {
3597
- let e = O.value.trim();
3598
- return e ? h.filterRouteTree(e) : h.getRouteTreeData();
3596
+ let F = r(() => {
3597
+ let e = j.value.trim();
3598
+ return e ? g.filterRouteTree(e) : g.getRouteTreeData();
3599
3599
  });
3600
- function pe(e) {
3600
+ function de(e) {
3601
3601
  let t = [], n = (e) => {
3602
3602
  for (let r of e || []) {
3603
3603
  let e = Array.isArray(r?.children) && r.children.length > 0;
@@ -3606,81 +3606,81 @@ var ho = /* @__PURE__ */ l({
3606
3606
  };
3607
3607
  return n(e), t;
3608
3608
  }
3609
- w(O, (e) => {
3609
+ E(j, (e) => {
3610
3610
  let t = String(e || "").trim().length > 0;
3611
3611
  if (t) {
3612
- let e = M.value;
3613
- k.value = pe(e);
3614
- } else j();
3612
+ let e = F.value;
3613
+ M.value = de(e);
3614
+ } else P();
3615
3615
  });
3616
- function me(e, t) {
3616
+ function fe(e, t) {
3617
3617
  let n = t?.node, r = n?.dataRef ?? n;
3618
- r?.isLeaf && (g.value = r.value || "", y.value = r.scope || "", O.value = "", D.value = !1);
3618
+ r?.isLeaf && (_.value = r.value || "", b.value = r.scope || "", j.value = "", A.value = !1);
3619
3619
  }
3620
3620
  return (e, r) => {
3621
- let l = se, h = oe, v = ie, b = ae;
3622
- return _(), o("div", uo, [
3623
- s("div", p(u(E.value.getTriggerProps())), [c(l, {
3624
- value: g.value,
3625
- "onUpdate:value": r[0] ||= (e) => g.value = e,
3626
- "addon-before": y.value || "本地",
3621
+ let l = ae, g = ie, y = ne, x = re;
3622
+ return v(), o("div", fo, [
3623
+ s("div", m(u(S(k).getTriggerProps())), [c(l, {
3624
+ value: _.value,
3625
+ "onUpdate:value": r[0] ||= (e) => _.value = e,
3626
+ "addon-before": b.value || "本地",
3627
3627
  placeholder: "请输入或选择组件路径(views下的路径)"
3628
3628
  }, null, 8, ["value", "addon-before"])], 16),
3629
3629
  a(" 始终挂载 Teleport,内部用 Transition 控制出现/消失动画 "),
3630
- (_(), i(n, { to: "body" }, [E.value.open ? (_(), o("div", d({ key: 0 }, E.value.getPositionerProps(), { class: "z-1050" }), [s("div", d(E.value.getContentProps(), { class: "z-1050 w-162 rounded-md border border-solid p-4 border-[--g-border-color] shadow-md outline-none bg-#ffffff dark:bg-#141414 text-dark dark:text-light data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95" }), [s("div", fo, [c(h, null, {
3631
- default: te(() => [c(l, {
3630
+ (v(), i(n, { to: "body" }, [S(k).open ? (v(), o("div", f({ key: 0 }, S(k).getPositionerProps(), { class: "z-1050" }), [s("div", f(S(k).getContentProps(), { class: "z-1050 w-162 rounded-md border border-solid p-4 border-[--g-border-color] shadow-md outline-none bg-#ffffff dark:bg-#141414 text-dark dark:text-light data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95" }), [s("div", po, [c(g, null, {
3631
+ default: D(() => [c(l, {
3632
3632
  ref: "searchInputRef",
3633
- value: O.value,
3634
- "onUpdate:value": r[1] ||= (e) => O.value = e,
3633
+ value: S(j),
3634
+ "onUpdate:value": r[1] ||= (e) => d(j) ? j.value = e : null,
3635
3635
  "allow-clear": "",
3636
3636
  size: "small",
3637
3637
  placeholder: "搜索组件或路径"
3638
3638
  }, null, 8, ["value"])]),
3639
3639
  _: 1
3640
- })]), M.value && M.value.length ? (_(), i(v, {
3640
+ })]), S(F) && S(F).length ? (v(), i(y, {
3641
3641
  key: 0,
3642
- "expanded-keys": k.value,
3643
- "onUpdate:expandedKeys": r[2] ||= (e) => k.value = e,
3642
+ "expanded-keys": S(M),
3643
+ "onUpdate:expandedKeys": r[2] ||= (e) => d(M) ? M.value = e : null,
3644
3644
  class: "w-152 h-100 overflow-y-auto directory-tree-root",
3645
- "selected-keys": le.value,
3646
- "tree-data": M.value,
3645
+ "selected-keys": S(se),
3646
+ "tree-data": S(F),
3647
3647
  "show-icon": !0,
3648
3648
  "show-line": !0,
3649
3649
  virtual: !0,
3650
3650
  "expand-action": "click",
3651
- onExpand: A,
3652
- onSelect: me
3651
+ onExpand: N,
3652
+ onSelect: fe
3653
3653
  }, {
3654
- switcherIcon: te(({ switcherCls: e }) => [c(x(ne), { class: f(e) }, null, 8, ["class"])]),
3655
- icon: te(({ expanded: e, dataRef: n }) => [s("span", po, [a(" 根:无 '/' 的 key 表示 "), n?.root && !n?.module ? (_(), i(Qa, {
3654
+ switcherIcon: D(({ switcherCls: e }) => [c(S(te), { class: p(e) }, null, 8, ["class"])]),
3655
+ icon: D(({ expanded: e, dataRef: n }) => [s("span", mo, [a(" 根:无 '/' 的 key 表示 "), n?.root && !n?.module ? (v(), i($a, {
3656
3656
  key: 0,
3657
3657
  expanded: e
3658
- }, null, 8, ["expanded"])) : n?.root && n?.module ? (_(), i(Ja, {
3658
+ }, null, 8, ["expanded"])) : n?.root && n?.module ? (v(), i(Ya, {
3659
3659
  key: 1,
3660
3660
  expanded: e
3661
- }, null, 8, ["expanded"])) : n?.isLeaf ? (_(), o(t, { key: 2 }, [a(" 叶子:Vue 文件图标 "), c(lo)], 2112)) : ["components", "component"].includes(String(n?.title).toLowerCase()) ? (_(), o(t, { key: 3 }, [a(" 特殊目录 "), c(Ba, { expanded: e }, null, 8, ["expanded"])], 2112)) : [
3661
+ }, null, 8, ["expanded"])) : n?.isLeaf ? (v(), o(t, { key: 2 }, [a(" 叶子:Vue 文件图标 "), c(uo)], 2112)) : ["components", "component"].includes(String(n?.title).toLowerCase()) ? (v(), o(t, { key: 3 }, [a(" 特殊目录 "), c(Va, { expanded: e }, null, 8, ["expanded"])], 2112)) : [
3662
3662
  "views",
3663
3663
  "view",
3664
3664
  "pages",
3665
3665
  "page"
3666
- ].includes(String(n?.title).toLowerCase()) ? (_(), i(oo, {
3666
+ ].includes(String(n?.title).toLowerCase()) ? (v(), i(so, {
3667
3667
  key: 4,
3668
3668
  expanded: e
3669
- }, null, 8, ["expanded"])) : ["src"].includes(String(n?.title).toLowerCase()) ? (_(), i(no, {
3669
+ }, null, 8, ["expanded"])) : ["src"].includes(String(n?.title).toLowerCase()) ? (v(), i(ro, {
3670
3670
  key: 5,
3671
3671
  expanded: e
3672
- }, null, 8, ["expanded"])) : (_(), o(t, { key: 6 }, [a(" 其他目录 "), c(Wa, { expanded: e }, null, 8, ["expanded"])], 2112))])]),
3672
+ }, null, 8, ["expanded"])) : (v(), o(t, { key: 6 }, [a(" 其他目录 "), c(Ga, { expanded: e }, null, 8, ["expanded"])], 2112))])]),
3673
3673
  _: 1
3674
3674
  }, 8, [
3675
3675
  "expanded-keys",
3676
3676
  "selected-keys",
3677
3677
  "tree-data"
3678
- ])) : (_(), o("div", mo, [c(b, {
3679
- image: x(m),
3678
+ ])) : (v(), o("div", ho, [c(x, {
3679
+ image: S(h),
3680
3680
  description: "没有找到匹配的组件"
3681
3681
  }, null, 8, ["image"])]))], 16)], 16)) : a("v-if", !0)]))
3682
3682
  ]);
3683
3683
  };
3684
3684
  }
3685
- }), go = ho;
3686
- export { go as b };
3685
+ }), _o = go;
3686
+ export { _o as b };