doph-js 0.0.86 → 0.0.87

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.
package/dist/dophJs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useSlots as Hn, computed as R, h as oo, openBlock as O, createBlock as J, unref as Q, ref as se, createElementBlock as ie, Fragment as An, normalizeClass as Oe, renderSlot as j, createCommentVNode as ue, resolveDynamicComponent as Ve, createElementVNode as ae, toDisplayString as ot, withDirectives as Mn, normalizeStyle as ke, vModelText as Ss, Transition as Lo, withCtx as oe, withModifiers as Ue, resolveComponent as xs, createTextVNode as tt, createVNode as ct, renderList as zo, pushScopeId as $s, popScopeId as Ds, reactive as Pn, getCurrentInstance as ks, watch as st, onUnmounted as No, mergeProps as Ct, shallowRef as Xt, defineComponent as Ho, toRefs as Ts, onMounted as Ao, watchPostEffect as Cs, useCssVars as Is, resolveDirective as Mo, Teleport as Po, nextTick as Ro } from "vue";
1
+ import { useSlots as An, computed as F, h as oo, openBlock as O, createBlock as Q, unref as G, ref as re, createElementBlock as oe, Fragment as Xt, normalizeClass as Oe, renderSlot as j, createCommentVNode as ue, resolveDynamicComponent as Ve, createElementVNode as ae, toDisplayString as ot, withDirectives as Mn, normalizeStyle as Te, vModelText as Ss, Transition as Lo, withCtx as se, withModifiers as Ue, resolveComponent as xs, createTextVNode as tt, createVNode as ct, renderList as zo, pushScopeId as $s, popScopeId as Ds, reactive as Pn, getCurrentInstance as Ts, watch as st, onUnmounted as No, mergeProps as Ct, shallowRef as Gt, defineComponent as Ho, toRefs as ks, onMounted as Ao, watchPostEffect as Cs, useCssVars as Is, resolveDirective as Mo, Teleport as Po, nextTick as Fo } from "vue";
2
2
  const It = {
3
3
  __name: "DIcon",
4
4
  props: {
@@ -8,17 +8,17 @@ const It = {
8
8
  className: String
9
9
  },
10
10
  setup(e) {
11
- const t = e, n = Hn(), o = R(() => {
11
+ const t = e, n = An(), o = F(() => {
12
12
  const { className: l } = t;
13
13
  return l === void 0 ? "icon" : ["icon", l].join(" ");
14
- }), s = R(() => {
14
+ }), s = F(() => {
15
15
  const { color: l } = t;
16
16
  return l === void 0 ? null : l;
17
- }), r = R(() => {
17
+ }), r = F(() => {
18
18
  const l = t.size ?? null;
19
19
  if (l !== void 0)
20
20
  return typeof l == "number" || /^\d+$/.test(l) ? `${l}px` : l;
21
- }), c = R(() => oo(
21
+ }), i = F(() => oo(
22
22
  "i",
23
23
  {
24
24
  class: o.value,
@@ -29,7 +29,7 @@ const It = {
29
29
  },
30
30
  t.component ? oo(t.component) : n
31
31
  ));
32
- return (l, i) => (O(), J(Q(c)));
32
+ return (l, c) => (O(), Q(G(i)));
33
33
  }
34
34
  }, Ye = {
35
35
  state: {},
@@ -51,14 +51,14 @@ const It = {
51
51
  }
52
52
  }
53
53
  };
54
- function Fo(e) {
54
+ function Ro(e) {
55
55
  const t = e.value.getBoundingClientRect();
56
56
  let n = e.value, o = 0, s = 0;
57
57
  for (; n && !isNaN(n.offsetLeft) && !isNaN(n.offsetTop); )
58
58
  o += n.offsetLeft - n.scrollLeft, s += n.offsetTop - n.scrollTop, n = n.offsetParent;
59
59
  return { top: s, left: o, x: t.x, y: t.y, width: t.width, height: t.height };
60
60
  }
61
- const Os = { key: 1 }, Gt = {
61
+ const Os = { key: 1 }, Kt = {
62
62
  __name: "DButton",
63
63
  props: {
64
64
  class: String,
@@ -66,38 +66,38 @@ const Os = { key: 1 }, Gt = {
66
66
  },
67
67
  emits: ["click", "contextmenu"],
68
68
  setup(e, { expose: t, emit: n }) {
69
- const o = e, s = Hn(), r = se(null), c = R(() => o.icon ? Ye.getters.getIcon(o.icon) : null), l = (d) => {
69
+ const o = e, s = An(), r = re(null), i = F(() => o.icon ? Ye.getters.getIcon(o.icon) : null), l = (d) => {
70
70
  n("click", d);
71
- }, i = (d) => {
71
+ }, c = (d) => {
72
72
  n("contextmenu", d);
73
73
  };
74
74
  return t({
75
- elementSize: () => Fo(r)
76
- }), (d, f) => (O(), ie(An, null, [
77
- c.value ? ue("", !0) : (O(), ie("div", {
75
+ elementSize: () => Ro(r)
76
+ }), (d, f) => (O(), oe(Xt, null, [
77
+ i.value ? ue("", !0) : (O(), oe("div", {
78
78
  key: 0,
79
79
  ref_key: "el",
80
80
  ref: r,
81
81
  onClick: l,
82
- onContextmenu: i,
82
+ onContextmenu: c,
83
83
  class: Oe(["button", o.class])
84
84
  }, [
85
85
  j(d.$slots, "default")
86
86
  ], 34)),
87
- c.value ? (O(), ie("div", {
87
+ i.value ? (O(), oe("div", {
88
88
  key: 1,
89
89
  ref_key: "el",
90
90
  ref: r,
91
91
  onClick: l,
92
- onContextmenu: i,
92
+ onContextmenu: c,
93
93
  class: Oe(["button button-ext", o.class])
94
94
  }, [
95
- o.icon ? (O(), J(Ve(It), {
95
+ o.icon ? (O(), Q(Ve(It), {
96
96
  key: 0,
97
- component: c.value,
97
+ component: i.value,
98
98
  color: "inherit"
99
99
  }, null, 8, ["component"])) : ue("", !0),
100
- Q(s).default ? (O(), ie("div", Os, [
100
+ G(s).default ? (O(), oe("div", Os, [
101
101
  j(d.$slots, "default")
102
102
  ])) : ue("", !0)
103
103
  ], 34)) : ue("", !0)
@@ -121,20 +121,20 @@ const Dt = (e, t) => {
121
121
  },
122
122
  emits: ["update:modelValue"],
123
123
  setup(e, { emit: t }) {
124
- const n = e, o = R(() => n.font === "small" ? "d-input-small" : n.font === "big" ? "d-input-big" : ""), s = R({
124
+ const n = e, o = F(() => n.font === "small" ? "d-input-small" : n.font === "big" ? "d-input-big" : ""), s = F({
125
125
  get: () => n.modelValue,
126
126
  set: (r) => {
127
127
  t("update:modelValue", r);
128
128
  }
129
129
  });
130
- return (r, c) => (O(), ie("div", Es, [
130
+ return (r, i) => (O(), oe("div", Es, [
131
131
  ae("div", Bs, ot(n.label), 1),
132
132
  Mn(ae("input", {
133
- "onUpdate:modelValue": c[0] || (c[0] = (l) => s.value = l),
133
+ "onUpdate:modelValue": i[0] || (i[0] = (l) => s.value = l),
134
134
  type: "text",
135
135
  class: Oe(o.value),
136
136
  placeholder: n.placeholder,
137
- style: ke(n.size === "wide" ? "width:100%" : "")
137
+ style: Te(n.size === "wide" ? "width:100%" : "")
138
138
  }, null, 14, Ls), [
139
139
  [Ss, s.value]
140
140
  ])
@@ -147,7 +147,7 @@ const Dt = (e, t) => {
147
147
  },
148
148
  setup(e) {
149
149
  const t = e;
150
- return (n, o) => (O(), ie("div", {
150
+ return (n, o) => (O(), oe("div", {
151
151
  class: Oe(["badge", t.class])
152
152
  }, [
153
153
  j(n.$slots, "default")
@@ -178,29 +178,29 @@ const Dt = (e, t) => {
178
178
  }
179
179
  },
180
180
  setup(e) {
181
- const t = e, n = (i) => ({
182
- height: i.style.height,
183
- width: i.style.width,
184
- position: i.style.position,
185
- visibility: i.style.visibility,
186
- overflow: i.style.overflow,
187
- paddingTop: i.style.paddingTop,
188
- paddingBottom: i.style.paddingBottom,
189
- borderTopWidth: i.style.borderTopWidth,
190
- borderBottomWidth: i.style.borderBottomWidth,
191
- marginTop: i.style.marginTop,
192
- marginBottom: i.style.marginBottom
193
- }), o = (i, a) => {
194
- const { width: d } = getComputedStyle(i);
195
- i.style.width = d, i.style.position = "absolute", i.style.visibility = "hidden", i.style.height = "";
196
- let { height: f } = getComputedStyle(i);
197
- return i.style.width = a.width, i.style.position = a.position, i.style.visibility = a.visibility, i.style.height = We, i.style.overflow = "hidden", a.height && a.height !== We ? a.height : f;
198
- }, s = (i, a, d, f, u) => {
199
- const p = i.animate(f, u);
200
- i.style.height = a.height, p.onfinish = () => {
201
- i.style.overflow = a.overflow, d();
181
+ const t = e, n = (c) => ({
182
+ height: c.style.height,
183
+ width: c.style.width,
184
+ position: c.style.position,
185
+ visibility: c.style.visibility,
186
+ overflow: c.style.overflow,
187
+ paddingTop: c.style.paddingTop,
188
+ paddingBottom: c.style.paddingBottom,
189
+ borderTopWidth: c.style.borderTopWidth,
190
+ borderBottomWidth: c.style.borderBottomWidth,
191
+ marginTop: c.style.marginTop,
192
+ marginBottom: c.style.marginBottom
193
+ }), o = (c, a) => {
194
+ const { width: d } = getComputedStyle(c);
195
+ c.style.width = d, c.style.position = "absolute", c.style.visibility = "hidden", c.style.height = "";
196
+ let { height: f } = getComputedStyle(c);
197
+ return c.style.width = a.width, c.style.position = a.position, c.style.visibility = a.visibility, c.style.height = We, c.style.overflow = "hidden", a.height && a.height !== We ? a.height : f;
198
+ }, s = (c, a, d, f, u) => {
199
+ const p = c.animate(f, u);
200
+ c.style.height = a.height, p.onfinish = () => {
201
+ c.style.overflow = a.overflow, d();
202
202
  };
203
- }, r = (i, a) => [
203
+ }, r = (c, a) => [
204
204
  {
205
205
  height: We,
206
206
  opacity: t.opacityClosed,
@@ -212,7 +212,7 @@ const Dt = (e, t) => {
212
212
  marginBottom: We
213
213
  },
214
214
  {
215
- height: i,
215
+ height: c,
216
216
  opacity: t.opacityOpened,
217
217
  paddingTop: a.paddingTop,
218
218
  paddingBottom: a.paddingBottom,
@@ -221,29 +221,29 @@ const Dt = (e, t) => {
221
221
  marginTop: a.marginTop,
222
222
  marginBottom: a.marginBottom
223
223
  }
224
- ], c = (i, a) => {
225
- const d = i, f = n(d), u = o(d, f), p = r(u, f), y = { duration: t.duration, easing: t.easingEnter };
224
+ ], i = (c, a) => {
225
+ const d = c, f = n(d), u = o(d, f), p = r(u, f), y = { duration: t.duration, easing: t.easingEnter };
226
226
  s(d, f, a, p, y);
227
- }, l = (i, a) => {
228
- const d = i, f = n(d), { height: u } = getComputedStyle(d);
227
+ }, l = (c, a) => {
228
+ const d = c, f = n(d), { height: u } = getComputedStyle(d);
229
229
  d.style.height = u, d.style.overflow = "hidden";
230
230
  const p = r(u, f).reverse(), y = { duration: t.duration, easing: t.easingLeave };
231
231
  s(d, f, a, p, y);
232
232
  };
233
- return (i, a) => (O(), J(Lo, {
233
+ return (c, a) => (O(), Q(Lo, {
234
234
  css: !1,
235
- onEnter: c,
235
+ onEnter: i,
236
236
  onLeave: l
237
237
  }, {
238
- default: oe(() => [
239
- j(i.$slots, "default")
238
+ default: se(() => [
239
+ j(c.$slots, "default")
240
240
  ]),
241
241
  _: 3
242
242
  }));
243
243
  }
244
- }, Kt = {
244
+ }, Zt = {
245
245
  data: void 0
246
- }, Rn = (e) => e.reduce((t, n) => (t[n] = n) && t, {}), me = Rn([
246
+ }, Fn = (e) => e.reduce((t, n) => (t[n] = n) && t, {}), me = Fn([
247
247
  "drag",
248
248
  "dragend",
249
249
  "dragenter",
@@ -251,7 +251,7 @@ const Dt = (e, t) => {
251
251
  "dragstart",
252
252
  "dragover",
253
253
  "drop"
254
- ]), As = Rn(["copy", "move", "link", "none"]), Ms = Rn([
254
+ ]), As = Fn(["copy", "move", "link", "none"]), Ms = Fn([
255
255
  "none",
256
256
  "copy",
257
257
  "copyLink",
@@ -275,29 +275,29 @@ const Dt = (e, t) => {
275
275
  tag: { type: String, default: "div" }
276
276
  },
277
277
  setup(e) {
278
- const t = e, n = Hn(), o = se(!1), s = R(() => o && t.transferData), r = R(() => ({ position: "fixed", top: "-1000px" })), c = (l, i) => {
279
- const a = i.dataTransfer;
278
+ const t = e, n = An(), o = re(!1), s = F(() => o && t.transferData), r = F(() => ({ position: "fixed", top: "-1000px" })), i = (l, c) => {
279
+ const a = c.dataTransfer;
280
280
  if ([me.dragenter, me.dragover].includes(l) && t.dropEffect && (a.dropEffect = t.dropEffect), l === me.dragstart) {
281
281
  if (t.effectAllowed && (a.effectAllowed = t.effectAllowed), t.image || n.image) {
282
282
  let d;
283
283
  t.image ? (d = new Image(), d.src = t.image) : n.image && (d = n.image[0].elm), a.setDragImage && a.setDragImage(d, t.imageXOffset, t.imageYOffset);
284
284
  }
285
- t.transferData !== void 0 && (Kt.data = t.transferData, i.dataTransfer.setData("text", "")), o.value = !0;
285
+ t.transferData !== void 0 && (Zt.data = t.transferData, c.dataTransfer.setData("text", "")), o.value = !0;
286
286
  }
287
287
  };
288
- return (l, i) => (O(), J(Ve(e.tag), {
288
+ return (l, c) => (O(), Q(Ve(e.tag), {
289
289
  draggable: t.draggable,
290
- onDrag: i[0] || (i[0] = (a) => c(Q(me).drag, a)),
291
- onDragstart: i[1] || (i[1] = Ue((a) => c(Q(me).dragstart, a), ["stop"])),
292
- onDragenter: i[2] || (i[2] = (a) => c(Q(me).dragenter, a)),
293
- onDragleave: i[3] || (i[3] = (a) => c(Q(me).dragleave, a)),
294
- onDragend: i[4] || (i[4] = (a) => c(Q(me).dragend, a))
290
+ onDrag: c[0] || (c[0] = (a) => i(G(me).drag, a)),
291
+ onDragstart: c[1] || (c[1] = Ue((a) => i(G(me).dragstart, a), ["stop"])),
292
+ onDragenter: c[2] || (c[2] = (a) => i(G(me).dragenter, a)),
293
+ onDragleave: c[3] || (c[3] = (a) => i(G(me).dragleave, a)),
294
+ onDragend: c[4] || (c[4] = (a) => i(G(me).dragend, a))
295
295
  }, {
296
- default: oe(() => [
296
+ default: se(() => [
297
297
  j(l.$slots, "default", { transferData: s.value }),
298
- e.hideImageHtml ? (O(), ie("div", {
298
+ e.hideImageHtml ? (O(), oe("div", {
299
299
  key: 0,
300
- style: ke(r.value)
300
+ style: Te(r.value)
301
301
  }, [
302
302
  j(l.$slots, "image", { transferData: s.value })
303
303
  ], 4)) : j(l.$slots, "image", {
@@ -309,9 +309,9 @@ const Dt = (e, t) => {
309
309
  }, 40, ["draggable"]));
310
310
  }
311
311
  };
312
- const Rs = (e) => ($s("data-v-6804865f"), e = e(), Ds(), e), Fs = { key: 0 }, Ws = /* @__PURE__ */ Rs(() => /* @__PURE__ */ ae("div", { class: "tree-divider" }, null, -1)), Vs = [
312
+ const Fs = (e) => ($s("data-v-e047277f"), e = e(), Ds(), e), Rs = { key: 1 }, Ws = /* @__PURE__ */ Fs(() => /* @__PURE__ */ ae("div", { class: "tree-divider" }, null, -1)), Vs = [
313
313
  Ws
314
- ], Us = { key: 1 }, Ys = { class: "tree-divider-header" }, qs = { class: "item-title" }, js = {
314
+ ], Us = { key: 2 }, Ys = { class: "tree-divider-header" }, qs = { class: "item-title" }, js = {
315
315
  key: 0,
316
316
  class: "tree-divider"
317
317
  }, Xs = { key: 1 }, Gs = { style: { display: "flex", "flex-direction": "row", "justify-content": "flex-end" } }, Ks = {
@@ -327,27 +327,27 @@ const Rs = (e) => ($s("data-v-6804865f"), e = e(), Ds(), e), Fs = { key: 0 }, Ws
327
327
  },
328
328
  emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick"],
329
329
  setup(e, { emit: t }) {
330
- const n = e, o = se(null), s = se(!1), r = se(!1), c = se(!1), l = R(() => n.model.children && n.model.children.length), i = R(() => (M.actions.isTreeExpanded(n.treeId) && (n.model.expanded = n.model.expanded === void 0 ? !0 : n.model.expanded), n.model.expanded)), a = (m) => {
330
+ const n = e, o = re(null), s = re(!1), r = re(!1), i = re(!1), l = F(() => n.model.children && n.model.children.length), c = F(() => (L.actions.isTreeExpanded(n.treeId) && (n.model.expanded = n.model.expanded === void 0 ? !0 : n.model.expanded), n.model.expanded)), a = (m) => {
331
331
  t("nodeclick", { event: m, model: n.model });
332
332
  }, d = (m) => {
333
333
  t("nodeclick", m);
334
- }, f = R(() => (M.actions.isItemSelected(n.treeId, n.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (r.value ? "node-top " : "") + (c.value ? "node-bottom " : "")), u = R(() => n.search ? !1 : n.model.draggable === !0), p = (m) => {
335
- let g = Kt.data;
336
- if (g.model.id === n.model.id || M.actions.isChildOfParent(n.treeId, n.items, n.model.id, g.model.id) || M.actions.isParentOfChild(n.treeId, n.items, g.model.id, n.model.id))
337
- return s.value = !1, r.value = !1, c.value = !1, !1;
338
- if (!M.state.trees[n.treeId].transfer && g.id !== n.treeId)
334
+ }, f = F(() => (L.actions.isItemSelected(n.treeId, n.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (r.value ? "node-top " : "") + (i.value ? "node-bottom " : "")), u = F(() => n.search ? !1 : n.model.draggable === !0), p = (m) => {
335
+ let g = Zt.data;
336
+ if (g.model.id === n.model.id || L.actions.isChildOfParent(n.treeId, n.items, n.model.id, g.model.id) || L.actions.isParentOfChild(n.treeId, n.items, g.model.id, n.model.id))
337
+ return s.value = !1, r.value = !1, i.value = !1, !1;
338
+ if (!L.state.trees[n.treeId].transfer && g.id !== n.treeId)
339
339
  return !1;
340
340
  let S = "";
341
- r.value ? S = "before" : c.value ? S = "after" : S = "inside", M.actions.moveTreeNode(g.id, n.treeId, n.items, g.model.id, n.model.id, S), s.value = !1, r.value = !1, c.value = !1;
341
+ r.value ? S = "before" : i.value ? S = "after" : S = "inside", L.actions.moveTreeNode(g.id, n.treeId, n.items, g.model.id, n.model.id, S), s.value = !1, r.value = !1, i.value = !1;
342
342
  }, y = (m) => {
343
- let g = Kt.data;
344
- if (g.model.id === n.model.id || M.actions.isChildOfParent(n.treeId, n.items, n.model.id, g.model.id) || M.actions.isParentOfChild(n.treeId, n.items, g.model.id, n.model.id))
343
+ let g = Zt.data;
344
+ if (g.model.id === n.model.id || L.actions.isChildOfParent(n.treeId, n.items, n.model.id, g.model.id) || L.actions.isParentOfChild(n.treeId, n.items, g.model.id, n.model.id))
345
345
  return !1;
346
- const S = m.y, _ = o.value.getBoundingClientRect().top, L = o.value.getBoundingClientRect().height, z = L / 3;
347
- S > _ && S <= _ + z ? (s.value = !1, r.value = !0, c.value = !1) : S < _ + L && S >= _ + L - z ? (s.value = !1, r.value = !1, c.value = !0) : (s.value = !0, r.value = !1, c.value = !1);
346
+ const S = m.y, _ = o.value.getBoundingClientRect().top, z = o.value.getBoundingClientRect().height, N = z / 3;
347
+ S > _ && S <= _ + N ? (s.value = !1, r.value = !0, i.value = !1) : S < _ + z && S >= _ + z - N ? (s.value = !1, r.value = !1, i.value = !0) : (s.value = !0, r.value = !1, i.value = !1);
348
348
  }, h = () => {
349
- s.value = !1, r.value = !1, c.value = !1;
350
- }, w = R(() => n.model.title.startsWith("-")), D = R(() => {
349
+ s.value = !1, r.value = !1, i.value = !1;
350
+ }, w = F(() => n.model.title.startsWith("-")), D = F(() => {
351
351
  if (n.model.title.startsWith("-")) {
352
352
  let [m, ...g] = n.model.title.split(" ");
353
353
  return g = g.join(" "), g;
@@ -356,10 +356,10 @@ const Rs = (e) => ($s("data-v-6804865f"), e = e(), Ds(), e), Fs = { key: 0 }, Ws
356
356
  });
357
357
  return (m, g) => {
358
358
  const S = xs("d-tree-item", !0);
359
- return w.value && !D.value ? (O(), ie("li", Fs, Vs)) : w.value && D.value ? (O(), ie("li", Us, [
360
- ae("div", Ys, ot(Q(M).actions.renderTitle(n.treeId, D.value)), 1)
361
- ])) : (O(), J(Ps, {
362
- key: 2,
359
+ return G(L).actions.beforeItem(n.treeId, e.model) ? w.value && !D.value ? (O(), oe("li", Rs, Vs)) : w.value && D.value ? (O(), oe("li", Us, [
360
+ ae("div", Ys, ot(G(L).actions.renderTitle(n.treeId, D.value)), 1)
361
+ ])) : (O(), Q(Ps, {
362
+ key: 3,
363
363
  tag: "li",
364
364
  class: "tree-item",
365
365
  "transfer-data": { id: n.treeId, model: n.model },
@@ -370,8 +370,8 @@ const Rs = (e) => ($s("data-v-6804865f"), e = e(), Ds(), e), Fs = { key: 0 }, Ws
370
370
  onDragover: Ue(y, ["prevent", "stop"]),
371
371
  onDragleave: Ue(h, ["prevent"])
372
372
  }, {
373
- default: oe(() => {
374
- var _, L;
373
+ default: se(() => {
374
+ var _, z;
375
375
  return [
376
376
  ae("div", {
377
377
  ref_key: "node",
@@ -380,58 +380,58 @@ const Rs = (e) => ($s("data-v-6804865f"), e = e(), Ds(), e), Fs = { key: 0 }, Ws
380
380
  onClick: a
381
381
  }, [
382
382
  ae("div", null, [
383
- n.model.icons && n.model.icons.pre && l.value && !n.search && !w.value ? (O(), J(Ve(It), {
383
+ n.model.icons && n.model.icons.pre && l.value && !n.search && !w.value ? (O(), Q(Ve(It), {
384
384
  key: 0,
385
- component: Q(Ye).getters.getIcon(n.model.icons.pre.component),
385
+ component: G(Ye).getters.getIcon(n.model.icons.pre.component),
386
386
  size: 18,
387
387
  color: n.model.icons.pre.color ? n.model.icons.pre.color : "inherit",
388
- class: Oe(i.value ? "tree-open-pre" : "")
388
+ class: Oe(c.value ? "tree-open-pre" : "")
389
389
  }, null, 8, ["component", "color", "class"])) : ue("", !0),
390
- n.model.icons && n.model.icons.pre && !l.value && !n.search && !w.value ? (O(), J(Ve(It), {
390
+ n.model.icons && n.model.icons.pre && !l.value && !n.search && !w.value ? (O(), Q(Ve(It), {
391
391
  key: 1,
392
- component: Q(Ye).getters.getIcon(n.model.icons.pre.component),
392
+ component: G(Ye).getters.getIcon(n.model.icons.pre.component),
393
393
  size: 18,
394
394
  color: "rgba(0,0,0,0)",
395
- class: Oe(i.value ? "tree-open-pre" : "")
395
+ class: Oe(c.value ? "tree-open-pre" : "")
396
396
  }, null, 8, ["component", "class"])) : ue("", !0),
397
- n.model.icons && n.model.icons.icon && !w.value ? (O(), J(Ve(It), {
397
+ n.model.icons && n.model.icons.icon && !w.value ? (O(), Q(Ve(It), {
398
398
  key: 2,
399
- component: Q(Ye).getters.getIcon(n.model.icons.icon.component),
399
+ component: G(Ye).getters.getIcon(n.model.icons.icon.component),
400
400
  color: n.model.icons.icon.color ? n.model.icons.icon.color : "inherit",
401
401
  size: n.model.icons.icon.size ? n.model.icons.icon.size : null,
402
402
  className: n.model.icons.icon.class ? n.model.icons.icon.class : null
403
403
  }, null, 8, ["component", "color", "size", "className"])) : ue("", !0),
404
404
  ae("div", qs, [
405
- w.value ? (O(), ie("div", js)) : ue("", !0),
406
- w.value ? ue("", !0) : (O(), ie("div", Xs, ot(Q(M).actions.renderTitle(n.treeId, n.model.title)), 1))
405
+ w.value ? (O(), oe("div", js)) : ue("", !0),
406
+ w.value ? ue("", !0) : (O(), oe("div", Xs, ot(G(L).actions.renderTitle(n.treeId, n.model.title)), 1))
407
407
  ])
408
408
  ]),
409
409
  ae("div", Gs, [
410
- ((_ = n.model.badge) == null ? void 0 : _.value) !== void 0 && !w.value ? (O(), J(Ve(Ns), {
410
+ ((_ = n.model.badge) == null ? void 0 : _.value) !== void 0 && !w.value ? (O(), Q(Ve(Ns), {
411
411
  key: 0,
412
- class: Oe([(L = n.model.badge) == null ? void 0 : L.class, "badge-sm"])
412
+ class: Oe([(z = n.model.badge) == null ? void 0 : z.class, "badge-sm"])
413
413
  }, {
414
- default: oe(() => [
414
+ default: se(() => [
415
415
  tt(ot(n.model.badge.value), 1)
416
416
  ]),
417
417
  _: 1
418
418
  }, 8, ["class"])) : ue("", !0),
419
- n.model.icons && n.model.icons.post && l.value && !n.search && !w.value ? (O(), J(Ve(It), {
419
+ n.model.icons && n.model.icons.post && l.value && !n.search && !w.value ? (O(), Q(Ve(It), {
420
420
  key: 1,
421
- component: Q(Ye).getters.getIcon(n.model.icons.post.component),
421
+ component: G(Ye).getters.getIcon(n.model.icons.post.component),
422
422
  size: 20,
423
423
  color: n.model.icons.post.color ? n.model.icons.post.color : "inherit",
424
- class: Oe(i.value ? "tree-open-post" : "")
424
+ class: Oe(c.value ? "tree-open-post" : "")
425
425
  }, null, 8, ["component", "color", "class"])) : ue("", !0)
426
426
  ])
427
427
  ], 2),
428
428
  ct(Hs, null, {
429
- default: oe(() => [
430
- l.value && i.value && !n.search ? (O(), ie("ul", Ks, [
431
- (O(!0), ie(An, null, zo(e.model.children, (z) => (O(), J(S, {
429
+ default: se(() => [
430
+ l.value && c.value && !n.search ? (O(), oe("ul", Ks, [
431
+ (O(!0), oe(Xt, null, zo(e.model.children, (N) => (O(), Q(S, {
432
432
  class: "tree-item",
433
- key: z.id,
434
- model: z,
433
+ key: N.id,
434
+ model: N,
435
435
  treeId: n.treeId,
436
436
  items: n.items,
437
437
  search: n.search,
@@ -444,10 +444,10 @@ const Rs = (e) => ($s("data-v-6804865f"), e = e(), Ds(), e), Fs = { key: 0 }, Ws
444
444
  ];
445
445
  }),
446
446
  _: 1
447
- }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"]));
447
+ }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (O(), oe(Xt, { key: 0 }, [], 64));
448
448
  };
449
449
  }
450
- }, Js = /* @__PURE__ */ Dt(Zs, [["__scopeId", "data-v-6804865f"]]);
450
+ }, Js = /* @__PURE__ */ Dt(Zs, [["__scopeId", "data-v-e047277f"]]);
451
451
  function Qs(e) {
452
452
  return e = e || /* @__PURE__ */ new Map(), {
453
453
  /**
@@ -495,50 +495,53 @@ function Qs(e) {
495
495
  }
496
496
  };
497
497
  }
498
- const rt = Qs(), M = {
498
+ const rt = Qs(), L = {
499
499
  state: Pn({
500
500
  trees: {}
501
501
  }),
502
502
  getters: {
503
503
  getItems(e) {
504
- return M.state.trees[e].items;
504
+ return L.state.trees[e].items;
505
505
  },
506
506
  getItemsSelect(e) {
507
- return M.state.trees[e].selected;
507
+ return L.state.trees[e].selected;
508
508
  },
509
509
  // data - ноды, dataId - ID ноды родителя data
510
510
  getParentId(e, t, n, o = "id", s = "children", r = {}) {
511
- return n && e && (e.find((c) => c[o] === n ? (r.found = t, c) : M.getters.getParentId(c[s], c.id, n, o, s, r)), r.found) ? r.found : !1;
511
+ return n && e && (e.find((i) => i[o] === n ? (r.found = t, i) : L.getters.getParentId(i[s], i.id, n, o, s, r)), r.found) ? r.found : !1;
512
512
  }
513
513
  },
514
514
  mutations: {
515
515
  setTreeItems(e, t) {
516
- M.state.trees[e].items = t;
516
+ L.state.trees[e].items = t;
517
517
  },
518
518
  setItemSelect(e, t) {
519
- M.state.trees[e].noSelect || (M.state.trees[e].multiSelect ? M.state.trees[e].selected.includes(t.id) ? M.state.trees[e].selected = M.state.trees[e].selected.filter(function(n) {
519
+ L.state.trees[e].noSelect || (L.state.trees[e].multiSelect ? L.state.trees[e].selected.includes(t.id) ? L.state.trees[e].selected = L.state.trees[e].selected.filter(function(n) {
520
520
  return n !== t.id;
521
- }) : M.state.trees[e].selected = [...M.state.trees[e].selected, t.id] : M.state.trees[e].selected = [t.id]);
521
+ }) : L.state.trees[e].selected = [...L.state.trees[e].selected, t.id] : L.state.trees[e].selected = [t.id]);
522
522
  }
523
523
  },
524
524
  actions: {
525
- initTreeStore(e, t, n, o, s, r) {
526
- M.state.trees[e] = [], M.state.trees[e].selected = [], M.state.trees[e].noSelect = t, M.state.trees[e].multiSelect = n, M.state.trees[e].expanded = o, M.state.trees[e].transfer = s, M.state.trees[e].renderTitle = r;
525
+ initTreeStore(e, t, n, o, s, r, i) {
526
+ L.state.trees[e] = [], L.state.trees[e].selected = [], L.state.trees[e].noSelect = t, L.state.trees[e].multiSelect = n, L.state.trees[e].expanded = o, L.state.trees[e].transfer = s, L.state.trees[e].renderTitle = r, L.state.trees[e].beforeItem = i;
527
527
  },
528
528
  renderTitle(e, t) {
529
- return M.state.trees[e].renderTitle ? M.state.trees[e].renderTitle(t) : t;
529
+ return L.state.trees[e].renderTitle ? L.state.trees[e].renderTitle(t) : t;
530
+ },
531
+ beforeItem(e, t) {
532
+ return L.state.trees[e].beforeItem ? L.state.trees[e].beforeItem(t) : !0;
530
533
  },
531
534
  isItemSelected(e, t) {
532
- return M.state.trees[e].selected.includes(t);
535
+ return L.state.trees[e].selected.includes(t);
533
536
  },
534
537
  toggleItem(e, t) {
535
538
  t.expanded = t.expanded === void 0 || !t.expanded, t.children && t.children.length && (t.expanded ? rt.emit(`expand-${e}`, { id: e, model: t }) : rt.emit(`collapse-${e}`, { id: e, model: t }));
536
539
  },
537
540
  isTreeExpanded(e) {
538
- return M.state.trees[e].expanded;
541
+ return L.state.trees[e].expanded;
539
542
  },
540
543
  isChildOfParent(e, t, n, o) {
541
- const s = M.actions.deepSearch(t, n);
544
+ const s = L.actions.deepSearch(t, n);
542
545
  if (s && s.children) {
543
546
  for (let r = 0; r < s.children.length; r++)
544
547
  if (s.children[r].id === o)
@@ -548,16 +551,16 @@ const rt = Qs(), M = {
548
551
  },
549
552
  // Является ли нода родителем указанного потомка
550
553
  isParentOfChild(e, t, n, o) {
551
- const s = M.actions.deepSearch(t, n);
552
- return !!(s && s.children && M.actions.deepSearch(s.children, o));
554
+ const s = L.actions.deepSearch(t, n);
555
+ return !!(s && s.children && L.actions.deepSearch(s.children, o));
553
556
  },
554
557
  deepSearch(e, t, n = "id", o = "children", s = {}) {
555
- return t && e && (e.find((r) => r[n] === t ? (s.found = r, r) : M.actions.deepSearch(r[o], t, n, o, s)), s.found) ? s.found : !1;
558
+ return t && e && (e.find((r) => r[n] === t ? (s.found = r, r) : L.actions.deepSearch(r[o], t, n, o, s)), s.found) ? s.found : !1;
556
559
  },
557
560
  deepSearchByTitle(e, t, n = "title", o = "children", s = []) {
558
561
  if (t && e && (e.find((r) => {
559
- const c = new RegExp(t, "gi");
560
- r[n].toString().toLowerCase().match(c) !== null && s.push(r), M.actions.deepSearchByTitle(r[o], t, n, o, s);
562
+ const i = new RegExp(t, "gi");
563
+ r[n].toString().toLowerCase().match(i) !== null && s.push(r), L.actions.deepSearchByTitle(r[o], t, n, o, s);
561
564
  }), s)) {
562
565
  for (let r = 0; r < s.length; r++)
563
566
  ;
@@ -566,15 +569,15 @@ const rt = Qs(), M = {
566
569
  return s;
567
570
  },
568
571
  moveTreeNode(e, t, n, o, s, r) {
569
- const c = M.actions.deleteTreeNode(n, o);
570
- M.actions.insertTreeNode(n, s, c, r), rt.emit(`move-${t}`, { fromTreeId: e, toTreeId: t, moved: c.id, target: s, position: r });
572
+ const i = L.actions.deleteTreeNode(n, o);
573
+ L.actions.insertTreeNode(n, s, i, r), rt.emit(`move-${t}`, { fromTreeId: e, toTreeId: t, moved: i.id, target: s, position: r });
571
574
  },
572
575
  insertTreeNode(e, t, n, o) {
573
576
  if (e)
574
577
  for (let s = 0; s < e.length; s++) {
575
578
  if (e[s].id === t) {
576
- let c = s;
577
- return o === "after" ? (c++, e.splice(c, 0, n)) : o === "before" ? e.splice(c, 0, n) : o === "inside" && (Object.hasOwn(e[s], "children") || (e[s].children = [], e[s].opened = !0), e[s].children.splice(0, 0, n)), e[s];
579
+ let i = s;
580
+ return o === "after" ? (i++, e.splice(i, 0, n)) : o === "before" ? e.splice(i, 0, n) : o === "inside" && (Object.hasOwn(e[s], "children") || (e[s].children = [], e[s].opened = !0), e[s].children.splice(0, 0, n)), e[s];
578
581
  }
579
582
  const r = this.insertTreeNode(e[s].children, t, n, o);
580
583
  if (r)
@@ -588,7 +591,7 @@ const rt = Qs(), M = {
588
591
  const s = e[n];
589
592
  return e.splice(n, 1), s;
590
593
  }
591
- const o = M.actions.deleteTreeNode(e[n].children, t);
594
+ const o = L.actions.deleteTreeNode(e[n].children, t);
592
595
  if (o)
593
596
  return o;
594
597
  }
@@ -602,20 +605,20 @@ const rt = Qs(), M = {
602
605
  emits: Object.keys(me),
603
606
  setup(e, { expose: t, emit: n }) {
604
607
  let o = Pn({});
605
- const s = se("false"), r = se(null), c = /* @__PURE__ */ new Set(), l = R(() => s.value && o), i = (d, f) => {
606
- o = Kt.data, n(d, f, o), d === me.dragenter && (c.size || f.target === r.value) && c.add(f.target), d === me.dragleave && c.delete(f.target), d === me.drop && c.clear(), s.value = !!c.size;
608
+ const s = re("false"), r = re(null), i = /* @__PURE__ */ new Set(), l = F(() => s.value && o), c = (d, f) => {
609
+ o = Zt.data, n(d, f, o), d === me.dragenter && (i.size || f.target === r.value) && i.add(f.target), d === me.dragleave && i.delete(f.target), d === me.drop && i.clear(), s.value = !!i.size;
607
610
  };
608
611
  return t({
609
- elementSize: () => Fo(r)
610
- }), (d, f) => (O(), J(Ve(e.tag), {
612
+ elementSize: () => Ro(r)
613
+ }), (d, f) => (O(), Q(Ve(e.tag), {
611
614
  ref_key: "el",
612
615
  ref: r,
613
- onDragenter: f[0] || (f[0] = (u) => i(Q(me).dragenter, u)),
614
- onDragleave: f[1] || (f[1] = (u) => i(Q(me).dragleave, u)),
615
- onDragover: f[2] || (f[2] = Ue((u) => i(Q(me).dragover, u), ["prevent"])),
616
- onDrop: f[3] || (f[3] = Ue((u) => i(Q(me).drop, u), ["prevent"]))
616
+ onDragenter: f[0] || (f[0] = (u) => c(G(me).dragenter, u)),
617
+ onDragleave: f[1] || (f[1] = (u) => c(G(me).dragleave, u)),
618
+ onDragover: f[2] || (f[2] = Ue((u) => c(G(me).dragover, u), ["prevent"])),
619
+ onDrop: f[3] || (f[3] = Ue((u) => c(G(me).drop, u), ["prevent"]))
617
620
  }, {
618
- default: oe(() => [
621
+ default: se(() => [
619
622
  j(d.$slots, "default", { transferData: l.value })
620
623
  ]),
621
624
  _: 3
@@ -636,14 +639,16 @@ const rt = Qs(), M = {
636
639
  // перенос нод между деревьями
637
640
  renderTitle: Function,
638
641
  // генерация заголовка (постобработка)
642
+ beforeItem: Function,
643
+ // вызывается перед отрисовкой ноды - true, false
639
644
  search: String
640
645
  // строка поиска
641
646
  },
642
647
  emits: ["select", "collapse", "expand", "move"],
643
648
  setup(e, { expose: t, emit: n }) {
644
- const o = e, s = se(null), r = ks().uid;
645
- M.actions.initTreeStore(r, o.noSelect, o.multiSelect, o.expanded, o.transfer, o.renderTitle);
646
- const c = (u, p) => {
649
+ const o = e, s = re(null), r = Ts().uid;
650
+ L.actions.initTreeStore(r, o.noSelect, o.multiSelect, o.expanded, o.transfer, o.renderTitle, o.beforeItem);
651
+ const i = (u, p) => {
647
652
  console.log(u, p);
648
653
  };
649
654
  rt.on(`expand-${r}`, (u) => {
@@ -653,8 +658,8 @@ const rt = Qs(), M = {
653
658
  }), rt.on(`move-${r}`, (u) => {
654
659
  n("move", u);
655
660
  });
656
- const l = R(() => o.search ? M.actions.deepSearchByTitle(o.items, o.search) : o.items), i = (u = null) => {
657
- M.mutations.setItemSelect(r, u.model), M.actions.toggleItem(r, u.model), n("select", u);
661
+ const l = F(() => o.search ? L.actions.deepSearchByTitle(o.items, o.search) : o.items), c = (u = null) => {
662
+ L.mutations.setItemSelect(r, u.model), L.actions.toggleItem(r, u.model), n("select", u);
658
663
  };
659
664
  return t({
660
665
  elementSize: () => s.value.elementSize(),
@@ -666,21 +671,21 @@ const rt = Qs(), M = {
666
671
  for (let u = 0; u < o.items.length; u++)
667
672
  o.items[u].expanded = !1;
668
673
  }
669
- }), (u, p) => (O(), J(er, {
674
+ }), (u, p) => (O(), Q(er, {
670
675
  ref_key: "treeRef",
671
676
  ref: s,
672
677
  class: "tree",
673
678
  tag: "ul",
674
- onDrop: Ue(c, ["stop"])
679
+ onDrop: Ue(i, ["stop"])
675
680
  }, {
676
- default: oe(() => [
677
- (O(!0), ie(An, null, zo(l.value, (y) => (O(), J(Js, {
681
+ default: se(() => [
682
+ (O(!0), oe(Xt, null, zo(l.value, (y) => (O(), Q(Js, {
678
683
  key: y.id,
679
684
  model: y,
680
- treeId: Q(r),
685
+ treeId: G(r),
681
686
  items: o.items,
682
687
  search: o.search,
683
- onNodeclick: i
688
+ onNodeclick: c
684
689
  }, null, 8, ["model", "treeId", "items", "search"]))), 128))
685
690
  ]),
686
691
  _: 1
@@ -694,7 +699,7 @@ const tr = {
694
699
  },
695
700
  setup(e) {
696
701
  const t = e;
697
- return (n, o) => (O(), J(Wo, {
702
+ return (n, o) => (O(), Q(Wo, {
698
703
  class: "accordion",
699
704
  items: t.items,
700
705
  "no-select": !0
@@ -734,13 +739,13 @@ const tr = {
734
739
  useMinWidthLayout: Boolean
735
740
  },
736
741
  setup(e) {
737
- const t = e, n = R(() => {
738
- const { fixed: o, zIndex: s, minWidth: r, height: c, paddingLeft: l, transitionDuration: i, transitionTimingFunction: a } = t, d = o ? "fixed" : "static", f = t.useMinWidthLayout ? `min-width:${r}px;` : "";
739
- return `position:${d};z-index:${s};${f}height:${c}px;padding-left:${l}px;transition-duration:${i}ms;transition-timing-function:${a};`;
742
+ const t = e, n = F(() => {
743
+ const { fixed: o, zIndex: s, minWidth: r, height: i, paddingLeft: l, transitionDuration: c, transitionTimingFunction: a } = t, d = o ? "fixed" : "static", f = t.useMinWidthLayout ? `min-width:${r}px;` : "";
744
+ return `position:${d};z-index:${s};${f}height:${i}px;padding-left:${l}px;transition-duration:${c}ms;transition-timing-function:${a};`;
740
745
  });
741
- return (o, s) => (O(), ie("header", {
746
+ return (o, s) => (O(), oe("header", {
742
747
  class: "d-layout-header",
743
- style: ke(n.value)
748
+ style: Te(n.value)
744
749
  }, [
745
750
  j(o.$slots, "default")
746
751
  ], 4));
@@ -783,13 +788,13 @@ const tr = {
783
788
  useMinWidthLayout: Boolean
784
789
  },
785
790
  setup(e) {
786
- const t = e, n = R(() => {
787
- const { fixed: o, top: s, zIndex: r, minWidth: c, height: l, paddingLeft: i, transitionDuration: a, transitionTimingFunction: d } = t, f = o ? "fixed" : "static", u = t.useMinWidthLayout ? `min-width: ${c}px;` : "";
788
- return `position:${f};top:${s}px;z-index:${r};${u}height:${l}px;padding-left:${i}px;transition-duration:${a}ms;transition-timing-function:${d};`;
791
+ const t = e, n = F(() => {
792
+ const { fixed: o, top: s, zIndex: r, minWidth: i, height: l, paddingLeft: c, transitionDuration: a, transitionTimingFunction: d } = t, f = o ? "fixed" : "static", u = t.useMinWidthLayout ? `min-width: ${i}px;` : "";
793
+ return `position:${f};top:${s}px;z-index:${r};${u}height:${l}px;padding-left:${c}px;transition-duration:${a}ms;transition-timing-function:${d};`;
789
794
  });
790
- return (o, s) => (O(), ie("div", {
795
+ return (o, s) => (O(), oe("div", {
791
796
  class: "d-layout-tab",
792
- style: ke(n.value)
797
+ style: Te(n.value)
793
798
  }, [
794
799
  j(o.$slots, "default")
795
800
  ], 4));
@@ -828,13 +833,13 @@ const tr = {
828
833
  useMinWidthLayout: Boolean
829
834
  },
830
835
  setup(e) {
831
- const t = e, n = R(() => {
832
- const { fixed: o, zIndex: s, minWidth: r, height: c, paddingLeft: l, transitionDuration: i, transitionTimingFunction: a } = t, d = o ? "fixed" : "static", f = t.useMinWidthLayout ? `min-width:${r}px;` : "";
833
- return `position:${d};z-index:${s};${f}height:${c}px;padding-left:${l}px;transition-duration:${i}ms;transition-timing-function:${a};`;
836
+ const t = e, n = F(() => {
837
+ const { fixed: o, zIndex: s, minWidth: r, height: i, paddingLeft: l, transitionDuration: c, transitionTimingFunction: a } = t, d = o ? "fixed" : "static", f = t.useMinWidthLayout ? `min-width:${r}px;` : "";
838
+ return `position:${d};z-index:${s};${f}height:${i}px;padding-left:${l}px;transition-duration:${c}ms;transition-timing-function:${a};`;
834
839
  });
835
- return (o, s) => (O(), ie("footer", {
840
+ return (o, s) => (O(), oe("footer", {
836
841
  class: "d-layout-footer",
837
- style: ke(n.value)
842
+ style: Te(n.value)
838
843
  }, [
839
844
  j(o.$slots, "default")
840
845
  ], 4));
@@ -868,13 +873,13 @@ const tr = {
868
873
  }
869
874
  },
870
875
  setup(e) {
871
- const t = e, n = R(() => {
872
- const { zIndex: o, width: s, paddingTop: r, transitionDuration: c, transitionTimingFunction: l } = t;
873
- return `z-index:${o};width:${s}px;padding-top:${r}px;transition-duration:${c}ms;transition-timing-function:${l};`;
876
+ const t = e, n = F(() => {
877
+ const { zIndex: o, width: s, paddingTop: r, transitionDuration: i, transitionTimingFunction: l } = t;
878
+ return `z-index:${o};width:${s}px;padding-top:${r}px;transition-duration:${i}ms;transition-timing-function:${l};`;
874
879
  });
875
- return (o, s) => (O(), ie("aside", {
880
+ return (o, s) => (O(), oe("aside", {
876
881
  class: "d-layout-sidebar",
877
- style: ke(n.value)
882
+ style: Te(n.value)
878
883
  }, [
879
884
  j(o.$slots, "default")
880
885
  ], 4));
@@ -905,12 +910,12 @@ const tr = {
905
910
  }
906
911
  },
907
912
  setup(e) {
908
- const t = e, n = R(() => {
909
- const { paddingTop: o, paddingBottom: s, paddingLeft: r, transitionDuration: c, transitionTimingFunction: l } = t, i = `overflow:${t.overflowHidden ? "hidden" : "visible"};`;
910
- return `padding-top:${o}px;padding-bottom:${s}px;padding-left:${r}px;${i}transition-duration:${c}ms;transition-timing-function:${l};`;
913
+ const t = e, n = F(() => {
914
+ const { paddingTop: o, paddingBottom: s, paddingLeft: r, transitionDuration: i, transitionTimingFunction: l } = t, c = `overflow:${t.overflowHidden ? "hidden" : "visible"};`;
915
+ return `padding-top:${o}px;padding-bottom:${s}px;padding-left:${r}px;${c}transition-duration:${i}ms;transition-timing-function:${l};`;
911
916
  });
912
- return (o, s) => (O(), ie("main", {
913
- style: ke(n.value),
917
+ return (o, s) => (O(), oe("main", {
918
+ style: Te(n.value),
914
919
  class: "d-layout-content"
915
920
  }, [
916
921
  j(o.$slots, "default")
@@ -918,7 +923,7 @@ const tr = {
918
923
  }
919
924
  };
920
925
  function cr(e) {
921
- const t = se(0), n = R(() => `transform: translateX(${-t.value}px);`);
926
+ const t = re(0), n = F(() => `transform: translateX(${-t.value}px);`);
922
927
  let o = !1;
923
928
  function s(d) {
924
929
  t.value = d;
@@ -928,22 +933,22 @@ function cr(e) {
928
933
  const f = ((d = document.scrollingElement) === null || d === void 0 ? void 0 : d.scrollLeft) || 0;
929
934
  s(f);
930
935
  }
931
- function c() {
936
+ function i() {
932
937
  r();
933
938
  }
934
939
  function l() {
935
940
  document.addEventListener("scroll", r);
936
941
  }
937
- function i() {
942
+ function c() {
938
943
  o && document.removeEventListener("scroll", r);
939
944
  }
940
945
  function a() {
941
- c(), l(), o = !0;
946
+ i(), l(), o = !0;
942
947
  }
943
948
  return st(e, (d) => {
944
- d ? a() : i();
949
+ d ? a() : c();
945
950
  }, { immediate: !0 }), No(() => {
946
- i();
951
+ c();
947
952
  }), n;
948
953
  }
949
954
  const lr = 1001, ar = 999, dr = 998, sc = {
@@ -1037,13 +1042,13 @@ const lr = 1001, ar = 999, dr = 998, sc = {
1037
1042
  },
1038
1043
  emits: ["update:sidebar-collapse", "sidebar-mask-click"],
1039
1044
  setup(e, { emit: t }) {
1040
- const n = e, o = R(() => n.useMinWidthLayout ? `min-width:${n.minWidth}px;` : ""), s = R(() => n.useMinWidthLayout && (n.fixedHeaderAndTab || n.fixedFooter)), r = cr(s), c = R(() => n.fixedHeaderAndTab ? r.value : ""), l = R(() => n.fixedFooter ? r.value : ""), i = R(() => {
1041
- const { transitionDuration: _, transitionTimingFunction: L } = n;
1045
+ const n = e, o = F(() => n.useMinWidthLayout ? `min-width:${n.minWidth}px;` : ""), s = F(() => n.useMinWidthLayout && (n.fixedHeaderAndTab || n.fixedFooter)), r = cr(s), i = F(() => n.fixedHeaderAndTab ? r.value : ""), l = F(() => n.fixedFooter ? r.value : ""), c = F(() => {
1046
+ const { transitionDuration: _, transitionTimingFunction: z } = n;
1042
1047
  return {
1043
1048
  transitionDuration: _,
1044
- transitionTimingFunction: L
1049
+ transitionTimingFunction: z
1045
1050
  };
1046
- }), a = R(() => n.mode === "vertical"), d = R(() => n.isMobile || a.value ? 1003 : 1e3), f = R({
1051
+ }), a = F(() => n.mode === "vertical"), d = F(() => n.isMobile || a.value ? 1003 : 1e3), f = F({
1047
1052
  get() {
1048
1053
  return n.sidebarCollapse;
1049
1054
  },
@@ -1054,77 +1059,77 @@ const lr = 1001, ar = 999, dr = 998, sc = {
1054
1059
  function u() {
1055
1060
  t("sidebar-mask-click");
1056
1061
  }
1057
- const p = R(() => n.isMobile && !f.value), y = R(() => {
1058
- const { transitionDuration: _, transitionTimingFunction: L } = n;
1059
- return `background-color:${n.maskBg};transition-duration:${_}ms;transition-timing-function:${L};`;
1060
- }), h = R(() => {
1061
- const { sidebarWidth: _, sidebarCollapsedWidth: L } = n, z = n.isMobile ? 0 : L, P = f.value ? z : _;
1062
+ const p = F(() => n.isMobile && !f.value), y = F(() => {
1063
+ const { transitionDuration: _, transitionTimingFunction: z } = n;
1064
+ return `background-color:${n.maskBg};transition-duration:${_}ms;transition-timing-function:${z};`;
1065
+ }), h = F(() => {
1066
+ const { sidebarWidth: _, sidebarCollapsedWidth: z } = n, N = n.isMobile ? 0 : z, P = f.value ? N : _;
1062
1067
  return n.sidebarVisible ? P : 0;
1063
- }), w = R(() => n.isMobile ? 0 : h.value), D = R(() => a.value ? w.value : 0), m = R(
1068
+ }), w = F(() => n.isMobile ? 0 : h.value), D = F(() => a.value ? w.value : 0), m = F(
1064
1069
  () => !n.isMobile && !a.value && n.headerVisible ? n.headerHeight : 0
1065
- ), g = R(() => {
1070
+ ), g = F(() => {
1066
1071
  let _ = 0;
1067
1072
  return n.fixedHeaderAndTab && (n.headerVisible && (_ += n.headerHeight), n.tabVisible && (_ += n.tabHeight)), _;
1068
- }), S = R(() => n.fixedFooter && n.footerVisible ? n.footerHeight : 0);
1069
- return (_, L) => (O(), ie("div", {
1073
+ }), S = F(() => n.fixedFooter && n.footerVisible ? n.footerHeight : 0);
1074
+ return (_, z) => (O(), oe("div", {
1070
1075
  class: "d-layout",
1071
- style: ke(o.value)
1076
+ style: Te(o.value)
1072
1077
  }, [
1073
- e.headerVisible ? (O(), J(nr, Ct({ key: 0 }, i.value, {
1078
+ e.headerVisible ? (O(), Q(nr, Ct({ key: 0 }, c.value, {
1074
1079
  fixed: e.fixedHeaderAndTab,
1075
1080
  "z-index": lr,
1076
1081
  "min-width": e.minWidth,
1077
1082
  height: e.headerHeight,
1078
1083
  "padding-left": D.value,
1079
- style: c.value
1084
+ style: i.value
1080
1085
  }), {
1081
- default: oe(() => [
1086
+ default: se(() => [
1082
1087
  j(_.$slots, "header")
1083
1088
  ]),
1084
1089
  _: 3
1085
1090
  }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : ue("", !0),
1086
- e.tabVisible ? (O(), J(or, Ct({ key: 1 }, i.value, {
1091
+ e.tabVisible ? (O(), Q(or, Ct({ key: 1 }, c.value, {
1087
1092
  fixed: e.fixedHeaderAndTab,
1088
1093
  "z-index": ar,
1089
1094
  "min-width": e.minWidth,
1090
1095
  top: e.headerHeight,
1091
1096
  height: e.tabHeight,
1092
1097
  "padding-left": w.value,
1093
- style: c.value
1098
+ style: i.value
1094
1099
  }), {
1095
- default: oe(() => [
1100
+ default: se(() => [
1096
1101
  j(_.$slots, "tab")
1097
1102
  ]),
1098
1103
  _: 3
1099
1104
  }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : ue("", !0),
1100
- e.sidebarVisible ? (O(), J(rr, Ct({ key: 2 }, i.value, {
1105
+ e.sidebarVisible ? (O(), Q(rr, Ct({ key: 2 }, c.value, {
1101
1106
  "z-index": d.value,
1102
1107
  width: h.value,
1103
1108
  "padding-top": m.value
1104
1109
  }), {
1105
- default: oe(() => [
1110
+ default: se(() => [
1106
1111
  j(_.$slots, "sidebar")
1107
1112
  ]),
1108
1113
  _: 3
1109
1114
  }, 16, ["z-index", "width", "padding-top"])) : ue("", !0),
1110
- p.value ? (O(), ie("div", {
1115
+ p.value ? (O(), oe("div", {
1111
1116
  key: 3,
1112
1117
  class: "d-layout-sidebar-mask",
1113
- style: ke(y.value),
1118
+ style: Te(y.value),
1114
1119
  onClick: u
1115
1120
  }, null, 4)) : ue("", !0),
1116
- ct(ir, Ct(i.value, {
1121
+ ct(ir, Ct(c.value, {
1117
1122
  "padding-top": g.value,
1118
1123
  "padding-bottom": S.value,
1119
1124
  "padding-left": w.value,
1120
1125
  "overflow-hidden": e.addMainOverflowHidden
1121
1126
  }), {
1122
- default: oe(() => [
1127
+ default: se(() => [
1123
1128
  j(_.$slots, "default")
1124
1129
  ]),
1125
1130
  _: 3
1126
1131
  }, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
1127
- e.footerVisible ? (O(), J(sr, Ct({ key: 4 }, i.value, {
1132
+ e.footerVisible ? (O(), Q(sr, Ct({ key: 4 }, c.value, {
1128
1133
  fixed: e.fixedFooter,
1129
1134
  "z-index": dr,
1130
1135
  "min-width": e.minWidth,
@@ -1132,7 +1137,7 @@ const lr = 1001, ar = 999, dr = 998, sc = {
1132
1137
  "padding-left": w.value,
1133
1138
  style: l.value
1134
1139
  }), {
1135
- default: oe(() => [
1140
+ default: se(() => [
1136
1141
  j(_.$slots, "footer")
1137
1142
  ]),
1138
1143
  _: 3
@@ -1181,7 +1186,7 @@ const lr = 1001, ar = 999, dr = 998, sc = {
1181
1186
  * Released under the MIT license.
1182
1187
  */
1183
1188
  function Y(e, t) {
1184
- if (on(e))
1189
+ if (sn(e))
1185
1190
  for (let n = 0; n < e.length && t(e[n], n, e) !== !1; n++)
1186
1191
  ;
1187
1192
  else
@@ -1190,64 +1195,64 @@ function Y(e, t) {
1190
1195
  }
1191
1196
  function he(e, t) {
1192
1197
  const n = lt(t);
1193
- if (Te(t) || n) {
1198
+ if (ke(t) || n) {
1194
1199
  let s = n ? "" : {};
1195
1200
  if (e) {
1196
1201
  const r = window.getComputedStyle(e, null);
1197
- s = n ? co(e, r, t) : t.reduce((c, l) => (c[l] = co(e, r, l), c), s);
1202
+ s = n ? co(e, r, t) : t.reduce((i, l) => (i[l] = co(e, r, l), i), s);
1198
1203
  }
1199
1204
  return s;
1200
1205
  }
1201
- e && Y(xe(t), (s) => kr(e, s, t[s]));
1206
+ e && Y(xe(t), (s) => Tr(e, s, t[s]));
1202
1207
  }
1203
1208
  const Ee = (e, t) => {
1204
1209
  const { o: n, u: o, _: s } = e;
1205
- let r = n, c;
1210
+ let r = n, i;
1206
1211
  const l = (d, f) => {
1207
1212
  const u = r, p = d, y = f || (o ? !o(u, p) : u !== p);
1208
- return (y || s) && (r = p, c = u), [r, y, c];
1213
+ return (y || s) && (r = p, i = u), [r, y, i];
1209
1214
  };
1210
- return [t ? (d) => l(t(r, c), d) : l, (d) => [r, !!d, c]];
1211
- }, zt = () => typeof window < "u", Vo = zt() && Node.ELEMENT_NODE, { toString: ur, hasOwnProperty: gn } = Object.prototype, Ge = (e) => e === void 0, nn = (e) => e === null, fr = (e) => Ge(e) || nn(e) ? `${e}` : ur.call(e).replace(/^\[object (.+)\]$/, "$1").toLowerCase(), it = (e) => typeof e == "number", lt = (e) => typeof e == "string", Fn = (e) => typeof e == "boolean", ze = (e) => typeof e == "function", Te = (e) => Array.isArray(e), Et = (e) => typeof e == "object" && !Te(e) && !nn(e), on = (e) => {
1215
+ return [t ? (d) => l(t(r, i), d) : l, (d) => [r, !!d, i]];
1216
+ }, zt = () => typeof window < "u", Vo = zt() && Node.ELEMENT_NODE, { toString: ur, hasOwnProperty: hn } = Object.prototype, Ge = (e) => e === void 0, on = (e) => e === null, fr = (e) => Ge(e) || on(e) ? `${e}` : ur.call(e).replace(/^\[object (.+)\]$/, "$1").toLowerCase(), it = (e) => typeof e == "number", lt = (e) => typeof e == "string", Rn = (e) => typeof e == "boolean", ze = (e) => typeof e == "function", ke = (e) => Array.isArray(e), Et = (e) => typeof e == "object" && !ke(e) && !on(e), sn = (e) => {
1212
1217
  const t = !!e && e.length, n = it(t) && t > -1 && t % 1 == 0;
1213
- return Te(e) || !ze(e) && n ? t > 0 && Et(e) ? t - 1 in e : !0 : !1;
1214
- }, Dn = (e) => {
1218
+ return ke(e) || !ze(e) && n ? t > 0 && Et(e) ? t - 1 in e : !0 : !1;
1219
+ }, Tn = (e) => {
1215
1220
  if (!e || !Et(e) || fr(e) !== "object")
1216
1221
  return !1;
1217
1222
  let t;
1218
- const n = "constructor", o = e[n], s = o && o.prototype, r = gn.call(e, n), c = s && gn.call(s, "isPrototypeOf");
1219
- if (o && !r && !c)
1223
+ const n = "constructor", o = e[n], s = o && o.prototype, r = hn.call(e, n), i = s && hn.call(s, "isPrototypeOf");
1224
+ if (o && !r && !i)
1220
1225
  return !1;
1221
1226
  for (t in e)
1222
1227
  ;
1223
- return Ge(t) || gn.call(e, t);
1228
+ return Ge(t) || hn.call(e, t);
1224
1229
  }, Ot = (e) => {
1225
1230
  const t = HTMLElement;
1226
1231
  return e ? t ? e instanceof t : e.nodeType === Vo : !1;
1227
- }, sn = (e) => {
1232
+ }, rn = (e) => {
1228
1233
  const t = Element;
1229
1234
  return e ? t ? e instanceof t : e.nodeType === Vo : !1;
1230
- }, Wn = (e, t, n) => e.indexOf(t, n), ee = (e, t, n) => (!n && !lt(t) && on(t) ? Array.prototype.push.apply(e, t) : e.push(t), e), gt = (e) => {
1235
+ }, Wn = (e, t, n) => e.indexOf(t, n), ee = (e, t, n) => (!n && !lt(t) && sn(t) ? Array.prototype.push.apply(e, t) : e.push(t), e), gt = (e) => {
1231
1236
  const t = Array.from, n = [];
1232
1237
  return t && e ? t(e) : (e instanceof Set ? e.forEach((o) => {
1233
1238
  ee(n, o);
1234
1239
  }) : Y(e, (o) => {
1235
1240
  ee(n, o);
1236
1241
  }), n);
1237
- }, Vn = (e) => !!e && e.length === 0, Re = (e, t, n) => {
1242
+ }, Vn = (e) => !!e && e.length === 0, Fe = (e, t, n) => {
1238
1243
  Y(e, (s) => s && s.apply(void 0, t || [])), !n && (e.length = 0);
1239
- }, rn = (e, t) => Object.prototype.hasOwnProperty.call(e, t), xe = (e) => e ? Object.keys(e) : [], ce = (e, t, n, o, s, r, c) => {
1240
- const l = [t, n, o, s, r, c];
1241
- return (typeof e != "object" || nn(e)) && !ze(e) && (e = {}), Y(l, (i) => {
1242
- Y(xe(i), (a) => {
1243
- const d = i[a];
1244
+ }, cn = (e, t) => Object.prototype.hasOwnProperty.call(e, t), xe = (e) => e ? Object.keys(e) : [], ce = (e, t, n, o, s, r, i) => {
1245
+ const l = [t, n, o, s, r, i];
1246
+ return (typeof e != "object" || on(e)) && !ze(e) && (e = {}), Y(l, (c) => {
1247
+ Y(xe(c), (a) => {
1248
+ const d = c[a];
1244
1249
  if (e === d)
1245
1250
  return !0;
1246
- const f = Te(d);
1247
- if (d && (Dn(d) || f)) {
1251
+ const f = ke(d);
1252
+ if (d && (Tn(d) || f)) {
1248
1253
  const u = e[a];
1249
1254
  let p = u;
1250
- f && !Te(u) ? p = [] : !f && !Dn(u) && (p = {}), e[a] = ce(p, d);
1255
+ f && !ke(u) ? p = [] : !f && !Tn(u) && (p = {}), e[a] = ce(p, d);
1251
1256
  } else
1252
1257
  e[a] = d;
1253
1258
  });
@@ -1270,25 +1275,25 @@ const Ee = (e, t) => {
1270
1275
  if (n) {
1271
1276
  const s = ge(e, t) || "", r = new Set(s.split(" "));
1272
1277
  r[o ? "add" : "delete"](n);
1273
- const c = gt(r).join(" ").trim();
1274
- ge(e, t, c);
1278
+ const i = gt(r).join(" ").trim();
1279
+ ge(e, t, i);
1275
1280
  }
1276
1281
  }, pr = (e, t, n) => {
1277
1282
  const o = ge(e, t) || "";
1278
1283
  return new Set(o.split(" ")).has(n);
1279
1284
  }, Le = (e, t) => Uo("scrollLeft", 0, e, t), qe = (e, t) => Uo("scrollTop", 0, e, t), kn = zt() && Element.prototype, Yo = (e, t) => {
1280
- const n = [], o = t ? sn(t) ? t : null : document;
1285
+ const n = [], o = t ? rn(t) ? t : null : document;
1281
1286
  return o ? ee(n, o.querySelectorAll(e)) : n;
1282
1287
  }, mr = (e, t) => {
1283
- const n = t ? sn(t) ? t : null : document;
1288
+ const n = t ? rn(t) ? t : null : document;
1284
1289
  return n ? n.querySelector(e) : null;
1285
- }, Zt = (e, t) => sn(e) ? (kn.matches || kn.msMatchesSelector).call(e, t) : !1, Yn = (e) => e ? gt(e.childNodes) : [], Xe = (e) => e ? e.parentElement : null, bt = (e, t) => {
1286
- if (sn(e)) {
1290
+ }, Jt = (e, t) => rn(e) ? (kn.matches || kn.msMatchesSelector).call(e, t) : !1, Yn = (e) => e ? gt(e.childNodes) : [], Xe = (e) => e ? e.parentElement : null, bt = (e, t) => {
1291
+ if (rn(e)) {
1287
1292
  const n = kn.closest;
1288
1293
  if (n)
1289
1294
  return n.call(e, t);
1290
1295
  do {
1291
- if (Zt(e, t))
1296
+ if (Jt(e, t))
1292
1297
  return e;
1293
1298
  e = Xe(e);
1294
1299
  } while (e);
@@ -1300,7 +1305,7 @@ const Ee = (e, t) => {
1300
1305
  }, qn = (e, t, n) => {
1301
1306
  if (n && e) {
1302
1307
  let o = t, s;
1303
- on(n) ? (s = document.createDocumentFragment(), Y(n, (r) => {
1308
+ sn(n) ? (s = document.createDocumentFragment(), Y(n, (r) => {
1304
1309
  r === o && (o = r.previousSibling), s.appendChild(r);
1305
1310
  })) : s = n, t && (o ? o !== t && (o = o.nextSibling) : o = e.firstChild), e.insertBefore(s, o || null);
1306
1311
  }
@@ -1311,7 +1316,7 @@ const Ee = (e, t) => {
1311
1316
  }, so = (e, t) => {
1312
1317
  qn(Xe(e), e && e.nextSibling, t);
1313
1318
  }, Pe = (e) => {
1314
- if (on(e))
1319
+ if (sn(e))
1315
1320
  Y(gt(e), (t) => Pe(t));
1316
1321
  else if (e) {
1317
1322
  const t = Xe(e);
@@ -1323,60 +1328,60 @@ const Ee = (e, t) => {
1323
1328
  }, qo = (e) => {
1324
1329
  const t = pt();
1325
1330
  return t.innerHTML = e.trim(), Y(Yn(t), (n) => Pe(n));
1326
- }, Tn = (e) => e.charAt(0).toUpperCase() + e.slice(1), vr = () => pt().style, yr = ["-webkit-", "-moz-", "-o-", "-ms-"], br = ["WebKit", "Moz", "O", "MS", "webkit", "moz", "o", "ms"], hn = {}, vn = {}, wr = (e) => {
1327
- let t = vn[e];
1328
- if (rn(vn, e))
1331
+ }, Cn = (e) => e.charAt(0).toUpperCase() + e.slice(1), vr = () => pt().style, yr = ["-webkit-", "-moz-", "-o-", "-ms-"], br = ["WebKit", "Moz", "O", "MS", "webkit", "moz", "o", "ms"], vn = {}, yn = {}, wr = (e) => {
1332
+ let t = yn[e];
1333
+ if (cn(yn, e))
1329
1334
  return t;
1330
- const n = Tn(e), o = vr();
1335
+ const n = Cn(e), o = vr();
1331
1336
  return Y(yr, (s) => {
1332
1337
  const r = s.replace(/-/g, "");
1333
- return !(t = [e, s + e, r + n, Tn(r) + n].find((l) => o[l] !== void 0));
1334
- }), vn[e] = t || "";
1335
- }, kt = (e) => {
1338
+ return !(t = [e, s + e, r + n, Cn(r) + n].find((l) => o[l] !== void 0));
1339
+ }), yn[e] = t || "";
1340
+ }, Tt = (e) => {
1336
1341
  if (zt()) {
1337
- let t = hn[e] || window[e];
1338
- return rn(hn, e) || (Y(br, (n) => (t = t || window[n + Tn(e)], !t)), hn[e] = t), t;
1342
+ let t = vn[e] || window[e];
1343
+ return cn(vn, e) || (Y(br, (n) => (t = t || window[n + Cn(e)], !t)), vn[e] = t), t;
1339
1344
  }
1340
- }, _r = kt("MutationObserver"), ro = kt("IntersectionObserver"), wt = kt("ResizeObserver"), jo = kt("cancelAnimationFrame"), Xo = kt("requestAnimationFrame"), Cn = kt("ScrollTimeline"), Jt = zt() && window.setTimeout, In = zt() && window.clearTimeout, Sr = /[^\x20\t\r\n\f]+/g, Go = (e, t, n) => {
1345
+ }, _r = Tt("MutationObserver"), ro = Tt("IntersectionObserver"), wt = Tt("ResizeObserver"), jo = Tt("cancelAnimationFrame"), Xo = Tt("requestAnimationFrame"), In = Tt("ScrollTimeline"), Qt = zt() && window.setTimeout, On = zt() && window.clearTimeout, Sr = /[^\x20\t\r\n\f]+/g, Go = (e, t, n) => {
1341
1346
  const o = e && e.classList;
1342
- let s, r = 0, c = !1;
1347
+ let s, r = 0, i = !1;
1343
1348
  if (o && t && lt(t)) {
1344
1349
  const l = t.match(Sr) || [];
1345
- for (c = l.length > 0; s = l[r++]; )
1346
- c = !!n(o, s) && c;
1350
+ for (i = l.length > 0; s = l[r++]; )
1351
+ i = !!n(o, s) && i;
1347
1352
  }
1348
- return c;
1353
+ return i;
1349
1354
  }, jn = (e, t) => {
1350
1355
  Go(e, t, (n, o) => n.remove(o));
1351
- }, je = (e, t) => (Go(e, t, (n, o) => n.add(o)), jn.bind(0, e, t)), cn = (e, t, n, o) => {
1356
+ }, je = (e, t) => (Go(e, t, (n, o) => n.add(o)), jn.bind(0, e, t)), ln = (e, t, n, o) => {
1352
1357
  if (e && t) {
1353
1358
  let s = !0;
1354
1359
  return Y(n, (r) => {
1355
- const c = o ? o(e[r]) : e[r], l = o ? o(t[r]) : t[r];
1356
- c !== l && (s = !1);
1360
+ const i = o ? o(e[r]) : e[r], l = o ? o(t[r]) : t[r];
1361
+ i !== l && (s = !1);
1357
1362
  }), s;
1358
1363
  }
1359
1364
  return !1;
1360
- }, Ko = (e, t) => cn(e, t, ["w", "h"]), Zo = (e, t) => cn(e, t, ["x", "y"]), xr = (e, t) => cn(e, t, ["t", "r", "b", "l"]), io = (e, t, n) => cn(e, t, ["width", "height"], n && ((o) => Math.round(o))), Se = () => {
1365
+ }, Ko = (e, t) => ln(e, t, ["w", "h"]), Zo = (e, t) => ln(e, t, ["x", "y"]), xr = (e, t) => ln(e, t, ["t", "r", "b", "l"]), io = (e, t, n) => ln(e, t, ["width", "height"], n && ((o) => Math.round(o))), Se = () => {
1361
1366
  }, ut = (e) => {
1362
1367
  let t;
1363
- const n = e ? Jt : Xo, o = e ? In : jo;
1368
+ const n = e ? Qt : Xo, o = e ? On : jo;
1364
1369
  return [(s) => {
1365
1370
  o(t), t = n(s, ze(e) ? e() : e);
1366
1371
  }, () => o(t)];
1367
1372
  }, Xn = (e, t) => {
1368
1373
  let n, o, s, r = Se;
1369
- const { g: c, v: l, p: i } = t || {}, a = function(y) {
1370
- r(), In(n), n = o = void 0, r = Se, e.apply(this, y);
1371
- }, d = (p) => i && o ? i(o, p) : p, f = () => {
1374
+ const { g: i, v: l, p: c } = t || {}, a = function(y) {
1375
+ r(), On(n), n = o = void 0, r = Se, e.apply(this, y);
1376
+ }, d = (p) => c && o ? c(o, p) : p, f = () => {
1372
1377
  r !== Se && a(d(s) || s);
1373
1378
  }, u = function() {
1374
- const y = gt(arguments), h = ze(c) ? c() : c;
1379
+ const y = gt(arguments), h = ze(i) ? i() : i;
1375
1380
  if (it(h) && h >= 0) {
1376
- const D = ze(l) ? l() : l, m = it(D) && D >= 0, g = h > 0 ? Jt : Xo, S = h > 0 ? In : jo, L = d(y) || y, z = a.bind(0, L);
1381
+ const D = ze(l) ? l() : l, m = it(D) && D >= 0, g = h > 0 ? Qt : Xo, S = h > 0 ? On : jo, z = d(y) || y, N = a.bind(0, z);
1377
1382
  r();
1378
- const P = g(z, h);
1379
- r = () => S(P), m && !n && (n = Jt(f, D)), o = s = L;
1383
+ const P = g(N, h);
1384
+ r = () => S(P), m && !n && (n = Qt(f, D)), o = s = z;
1380
1385
  } else
1381
1386
  a(y);
1382
1387
  };
@@ -1384,24 +1389,24 @@ const Ee = (e, t) => {
1384
1389
  }, $r = {
1385
1390
  opacity: 1,
1386
1391
  zIndex: 1
1387
- }, Rt = (e, t) => {
1392
+ }, Ft = (e, t) => {
1388
1393
  const n = e || "", o = t ? parseFloat(n) : parseInt(n, 10);
1389
1394
  return o === o ? o : 0;
1390
- }, Dr = (e, t) => !$r[e] && it(t) ? `${t}px` : t, co = (e, t, n) => String((t != null ? t[n] || t.getPropertyValue(n) : e.style[n]) || ""), kr = (e, t, n) => {
1395
+ }, Dr = (e, t) => !$r[e] && it(t) ? `${t}px` : t, co = (e, t, n) => String((t != null ? t[n] || t.getPropertyValue(n) : e.style[n]) || ""), Tr = (e, t, n) => {
1391
1396
  try {
1392
1397
  const { style: o } = e;
1393
1398
  Ge(o[t]) ? o.setProperty(t, n) : o[t] = Dr(t, n);
1394
1399
  } catch {
1395
1400
  }
1396
1401
  }, Bt = (e) => he(e, "direction") === "rtl", lo = (e, t, n) => {
1397
- const o = t ? `${t}-` : "", s = n ? `-${n}` : "", r = `${o}top${s}`, c = `${o}right${s}`, l = `${o}bottom${s}`, i = `${o}left${s}`, a = he(e, [r, c, l, i]);
1402
+ const o = t ? `${t}-` : "", s = n ? `-${n}` : "", r = `${o}top${s}`, i = `${o}right${s}`, l = `${o}bottom${s}`, c = `${o}left${s}`, a = he(e, [r, i, l, c]);
1398
1403
  return {
1399
- t: Rt(a[r], !0),
1400
- r: Rt(a[c], !0),
1401
- b: Rt(a[l], !0),
1402
- l: Rt(a[i], !0)
1404
+ t: Ft(a[r], !0),
1405
+ r: Ft(a[i], !0),
1406
+ b: Ft(a[l], !0),
1407
+ l: Ft(a[c], !0)
1403
1408
  };
1404
- }, $t = (e, t) => `translate${Te(e) ? `(${e[0]},${e[1]})` : `${t ? "X" : "Y"}(${e})`}`, { round: ao } = Math, Gn = {
1409
+ }, $t = (e, t) => `translate${ke(e) ? `(${e[0]},${e[1]})` : `${t ? "X" : "Y"}(${e})`}`, { round: ao } = Math, Gn = {
1405
1410
  w: 0,
1406
1411
  h: 0
1407
1412
  }, Lt = (e) => e ? {
@@ -1410,85 +1415,85 @@ const Ee = (e, t) => {
1410
1415
  } : Gn, jt = (e) => e ? {
1411
1416
  w: e.clientWidth,
1412
1417
  h: e.clientHeight
1413
- } : Gn, Qt = (e) => e ? {
1418
+ } : Gn, en = (e) => e ? {
1414
1419
  w: e.scrollWidth,
1415
1420
  h: e.scrollHeight
1416
- } : Gn, en = (e) => {
1421
+ } : Gn, tn = (e) => {
1417
1422
  const t = parseFloat(he(e, "height")) || 0, n = parseFloat(he(e, "width")) || 0;
1418
1423
  return {
1419
1424
  w: n - ao(n),
1420
1425
  h: t - ao(t)
1421
1426
  };
1422
1427
  }, Me = (e) => e.getBoundingClientRect(), _t = (e) => !!(e && (e.height || e.width));
1423
- let Ft;
1424
- const Tr = () => {
1425
- if (Ge(Ft)) {
1426
- Ft = !1;
1428
+ let Rt;
1429
+ const kr = () => {
1430
+ if (Ge(Rt)) {
1431
+ Rt = !1;
1427
1432
  try {
1428
1433
  window.addEventListener("test", null, Object.defineProperty({}, "passive", {
1429
1434
  get() {
1430
- Ft = !0;
1435
+ Rt = !0;
1431
1436
  }
1432
1437
  }));
1433
1438
  } catch {
1434
1439
  }
1435
1440
  }
1436
- return Ft;
1441
+ return Rt;
1437
1442
  }, Jo = (e) => e.split(" "), Cr = (e, t, n, o) => {
1438
1443
  Y(Jo(t), (s) => {
1439
1444
  e.removeEventListener(s, n, o);
1440
1445
  });
1441
1446
  }, de = (e, t, n, o) => {
1442
1447
  var s;
1443
- const r = Tr(), c = (s = r && o && o.S) != null ? s : r, l = o && o.$ || !1, i = o && o.C || !1, a = [], d = r ? {
1444
- passive: c,
1448
+ const r = kr(), i = (s = r && o && o.S) != null ? s : r, l = o && o.$ || !1, c = o && o.C || !1, a = [], d = r ? {
1449
+ passive: i,
1445
1450
  capture: l
1446
1451
  } : l;
1447
1452
  return Y(Jo(t), (f) => {
1448
- const u = i ? (p) => {
1453
+ const u = c ? (p) => {
1449
1454
  e.removeEventListener(f, u, l), n && n(p);
1450
1455
  } : n;
1451
1456
  ee(a, Cr.bind(null, e, f, u, l)), e.addEventListener(f, u, d);
1452
- }), Re.bind(0, a);
1457
+ }), Fe.bind(0, a);
1453
1458
  }, Qo = (e) => e.stopPropagation(), es = (e) => e.preventDefault(), Ir = {
1454
1459
  x: 0,
1455
1460
  y: 0
1456
- }, yn = (e) => {
1461
+ }, bn = (e) => {
1457
1462
  const t = e ? Me(e) : 0;
1458
1463
  return t ? {
1459
1464
  x: t.left + window.pageYOffset,
1460
1465
  y: t.top + window.pageXOffset
1461
1466
  } : Ir;
1462
1467
  }, uo = (e, t) => {
1463
- Y(Te(t) ? t : [t], e);
1468
+ Y(ke(t) ? t : [t], e);
1464
1469
  }, Kn = (e) => {
1465
- const t = /* @__PURE__ */ new Map(), n = (r, c) => {
1470
+ const t = /* @__PURE__ */ new Map(), n = (r, i) => {
1466
1471
  if (r) {
1467
1472
  const l = t.get(r);
1468
- uo((i) => {
1469
- l && l[i ? "delete" : "clear"](i);
1470
- }, c);
1473
+ uo((c) => {
1474
+ l && l[c ? "delete" : "clear"](c);
1475
+ }, i);
1471
1476
  } else
1472
1477
  t.forEach((l) => {
1473
1478
  l.clear();
1474
1479
  }), t.clear();
1475
- }, o = (r, c) => {
1480
+ }, o = (r, i) => {
1476
1481
  if (lt(r)) {
1477
1482
  const a = t.get(r) || /* @__PURE__ */ new Set();
1478
1483
  return t.set(r, a), uo((d) => {
1479
1484
  ze(d) && a.add(d);
1480
- }, c), n.bind(0, r, c);
1485
+ }, i), n.bind(0, r, i);
1481
1486
  }
1482
- Fn(c) && c && n();
1483
- const l = xe(r), i = [];
1487
+ Rn(i) && i && n();
1488
+ const l = xe(r), c = [];
1484
1489
  return Y(l, (a) => {
1485
1490
  const d = r[a];
1486
- d && ee(i, o(a, d));
1487
- }), Re.bind(0, i);
1488
- }, s = (r, c) => {
1491
+ d && ee(c, o(a, d));
1492
+ }), Fe.bind(0, c);
1493
+ }, s = (r, i) => {
1489
1494
  const l = t.get(r);
1490
- Y(gt(l), (i) => {
1491
- c && !Vn(c) ? i.apply(0, c) : i();
1495
+ Y(gt(l), (c) => {
1496
+ i && !Vn(i) ? c.apply(0, i) : c();
1492
1497
  });
1493
1498
  };
1494
1499
  return o(e || {}), [o, n, s];
@@ -1522,35 +1527,35 @@ const Tr = () => {
1522
1527
  }, ts = (e, t) => {
1523
1528
  const n = {}, o = xe(t).concat(xe(e));
1524
1529
  return Y(o, (s) => {
1525
- const r = e[s], c = t[s];
1526
- if (Et(r) && Et(c))
1527
- ce(n[s] = {}, ts(r, c)), Un(n[s]) && delete n[s];
1528
- else if (rn(t, s) && c !== r) {
1530
+ const r = e[s], i = t[s];
1531
+ if (Et(r) && Et(i))
1532
+ ce(n[s] = {}, ts(r, i)), Un(n[s]) && delete n[s];
1533
+ else if (cn(t, s) && i !== r) {
1529
1534
  let l = !0;
1530
- if (Te(r) || Te(c))
1535
+ if (ke(r) || ke(i))
1531
1536
  try {
1532
- fo(r) === fo(c) && (l = !1);
1537
+ fo(r) === fo(i) && (l = !1);
1533
1538
  } catch {
1534
1539
  }
1535
- l && (n[s] = c);
1540
+ l && (n[s] = i);
1536
1541
  }
1537
1542
  }), n;
1538
- }, Nt = "data-overlayscrollbars", ns = "os-environment", os = `${ns}-flexbox-glue`, Er = `${os}-max`, ss = "os-scrollbar-hidden", bn = `${Nt}-initialize`, Be = Nt, rs = `${Be}-overflow-x`, is = `${Be}-overflow-y`, St = "overflowVisible", Br = "scrollbarHidden", po = "scrollbarPressed", tn = "updating", Je = `${Nt}-viewport`, wn = "arrange", cs = "scrollbarHidden", xt = St, On = `${Nt}-padding`, Lr = xt, mo = `${Nt}-content`, Zn = "os-size-observer", zr = `${Zn}-appear`, Nr = `${Zn}-listener`, Hr = "os-trinsic-observer", Ar = "os-no-css-vars", Mr = "os-theme-none", we = "os-scrollbar", Pr = `${we}-rtl`, Rr = `${we}-horizontal`, Fr = `${we}-vertical`, ls = `${we}-track`, Jn = `${we}-handle`, Wr = `${we}-visible`, Vr = `${we}-cornerless`, go = `${we}-transitionless`, ho = `${we}-interaction`, vo = `${we}-unusable`, En = `${we}-auto-hide`, yo = `${En}-hidden`, bo = `${we}-wheel`, Ur = `${ls}-interactive`, Yr = `${Jn}-interactive`, as = {}, ht = () => as, qr = (e) => {
1543
+ }, Nt = "data-overlayscrollbars", ns = "os-environment", os = `${ns}-flexbox-glue`, Er = `${os}-max`, ss = "os-scrollbar-hidden", wn = `${Nt}-initialize`, Be = Nt, rs = `${Be}-overflow-x`, is = `${Be}-overflow-y`, St = "overflowVisible", Br = "scrollbarHidden", po = "scrollbarPressed", nn = "updating", Je = `${Nt}-viewport`, _n = "arrange", cs = "scrollbarHidden", xt = St, En = `${Nt}-padding`, Lr = xt, mo = `${Nt}-content`, Zn = "os-size-observer", zr = `${Zn}-appear`, Nr = `${Zn}-listener`, Hr = "os-trinsic-observer", Ar = "os-no-css-vars", Mr = "os-theme-none", we = "os-scrollbar", Pr = `${we}-rtl`, Fr = `${we}-horizontal`, Rr = `${we}-vertical`, ls = `${we}-track`, Jn = `${we}-handle`, Wr = `${we}-visible`, Vr = `${we}-cornerless`, go = `${we}-transitionless`, ho = `${we}-interaction`, vo = `${we}-unusable`, Bn = `${we}-auto-hide`, yo = `${Bn}-hidden`, bo = `${we}-wheel`, Ur = `${ls}-interactive`, Yr = `${Jn}-interactive`, as = {}, ht = () => as, qr = (e) => {
1539
1544
  const t = [];
1540
- return Y(Te(e) ? e : [e], (n) => {
1545
+ return Y(ke(e) ? e : [e], (n) => {
1541
1546
  const o = xe(n);
1542
1547
  Y(o, (s) => {
1543
1548
  ee(t, as[s] = n[s]);
1544
1549
  });
1545
1550
  }), t;
1546
1551
  }, jr = "__osOptionsValidationPlugin", Xr = "__osSizeObserverPlugin", Qn = "__osScrollbarsHidingPlugin", Gr = "__osClickScrollPlugin";
1547
- let _n;
1552
+ let Sn;
1548
1553
  const wo = (e, t, n, o) => {
1549
1554
  De(e, t);
1550
- const s = jt(t), r = Lt(t), c = en(n);
1555
+ const s = jt(t), r = Lt(t), i = tn(n);
1551
1556
  return o && Pe(t), {
1552
- x: r.h - s.h + c.h,
1553
- y: r.w - s.w + c.w
1557
+ x: r.h - s.h + i.h,
1558
+ y: r.w - s.w + i.w
1554
1559
  };
1555
1560
  }, Kr = (e) => {
1556
1561
  let t = !1;
@@ -1567,23 +1572,23 @@ const wo = (e, t, n, o) => {
1567
1572
  overflowY: n,
1568
1573
  direction: "rtl"
1569
1574
  }), Le(e, 0);
1570
- const o = yn(e), s = yn(t);
1575
+ const o = bn(e), s = bn(t);
1571
1576
  Le(e, -999);
1572
- const r = yn(t);
1577
+ const r = bn(t);
1573
1578
  return {
1574
1579
  i: o.x === s.x,
1575
1580
  n: s.x !== r.x
1576
1581
  };
1577
1582
  }, Jr = (e, t) => {
1578
- const n = je(e, os), o = Me(e), s = Me(t), r = io(s, o, !0), c = je(e, Er), l = Me(e), i = Me(t), a = io(i, l, !0);
1579
- return n(), c(), r && a;
1583
+ const n = je(e, os), o = Me(e), s = Me(t), r = io(s, o, !0), i = je(e, Er), l = Me(e), c = Me(t), a = io(c, l, !0);
1584
+ return n(), i(), r && a;
1580
1585
  }, Qr = () => {
1581
- const { body: e } = document, n = qo(`<div class="${ns}"><div></div></div>`)[0], o = n.firstChild, [s, , r] = Kn(), [c, l] = Ee({
1586
+ const { body: e } = document, n = qo(`<div class="${ns}"><div></div></div>`)[0], o = n.firstChild, [s, , r] = Kn(), [i, l] = Ee({
1582
1587
  o: wo(e, n, o),
1583
1588
  u: Zo
1584
- }, wo.bind(0, e, n, o, !0)), [i] = l(), a = Kr(n), d = {
1585
- x: i.x === 0,
1586
- y: i.y === 0
1589
+ }, wo.bind(0, e, n, o, !0)), [c] = l(), a = Kr(n), d = {
1590
+ x: c.x === 0,
1591
+ y: c.y === 0
1587
1592
  }, f = {
1588
1593
  elements: {
1589
1594
  host: null,
@@ -1599,11 +1604,11 @@ const wo = (e, t, n, o) => {
1599
1604
  body: null
1600
1605
  }
1601
1606
  }, u = ce({}, Or), p = ce.bind(0, {}, u), y = ce.bind(0, {}, f), h = {
1602
- k: i,
1607
+ k: c,
1603
1608
  I: d,
1604
1609
  A: a,
1605
1610
  H: he(n, "zIndex") === "-1",
1606
- B: !!Cn,
1611
+ B: !!In,
1607
1612
  V: Zr(n, o),
1608
1613
  Y: Jr(n, o),
1609
1614
  j: s.bind(0, "z"),
@@ -1622,64 +1627,64 @@ const wo = (e, t, n, o) => {
1622
1627
  let m;
1623
1628
  w("resize", () => {
1624
1629
  const g = ht()[Qn];
1625
- m = m || g && g.R(), m && m(h, c, D.bind(0, !0));
1630
+ m = m || g && g.R(), m && m(h, i, D.bind(0, !0));
1626
1631
  });
1627
1632
  }
1628
1633
  return h;
1629
- }, _e = () => (_n || (_n = Qr()), _n), eo = (e, t) => ze(t) ? t.apply(0, e) : t, ei = (e, t, n, o) => {
1634
+ }, _e = () => (Sn || (Sn = Qr()), Sn), eo = (e, t) => ze(t) ? t.apply(0, e) : t, ei = (e, t, n, o) => {
1630
1635
  const s = Ge(o) ? n : o;
1631
1636
  return eo(e, s) || t.apply(0, e);
1632
1637
  }, ds = (e, t, n, o) => {
1633
1638
  const s = Ge(o) ? n : o, r = eo(e, s);
1634
1639
  return !!r && (Ot(r) ? r : t.apply(0, e));
1635
1640
  }, ti = (e, t, n) => {
1636
- const { nativeScrollbarsOverlaid: o, body: s } = n || {}, { I: r, A: c } = _e(), { nativeScrollbarsOverlaid: l, body: i } = t, a = o ?? l, d = Ge(s) ? i : s, f = (r.x || r.y) && a, u = e && (nn(d) ? !c : d);
1641
+ const { nativeScrollbarsOverlaid: o, body: s } = n || {}, { I: r, A: i } = _e(), { nativeScrollbarsOverlaid: l, body: c } = t, a = o ?? l, d = Ge(s) ? c : s, f = (r.x || r.y) && a, u = e && (on(d) ? !i : d);
1637
1642
  return !!f || !!u;
1638
1643
  }, to = /* @__PURE__ */ new WeakMap(), ni = (e, t) => {
1639
1644
  to.set(e, t);
1640
1645
  }, oi = (e) => {
1641
1646
  to.delete(e);
1642
- }, us = (e) => to.get(e), _o = (e, t) => e ? t.split(".").reduce((n, o) => n && rn(n, o) ? n[o] : void 0, e) : void 0, Bn = (e, t, n) => (o) => [_o(e, o), n || _o(t, o) !== void 0], fs = (e) => {
1647
+ }, us = (e) => to.get(e), _o = (e, t) => e ? t.split(".").reduce((n, o) => n && cn(n, o) ? n[o] : void 0, e) : void 0, Ln = (e, t, n) => (o) => [_o(e, o), n || _o(t, o) !== void 0], fs = (e) => {
1643
1648
  let t = e;
1644
1649
  return [() => t, (n) => {
1645
1650
  t = ce({}, t, n);
1646
1651
  }];
1647
- }, Wt = "tabindex", Vt = pt.bind(0, ""), Sn = (e) => {
1652
+ }, Wt = "tabindex", Vt = pt.bind(0, ""), xn = (e) => {
1648
1653
  De(Xe(e), Yn(e)), Pe(e);
1649
1654
  }, si = (e) => {
1650
- const t = _e(), { q: n, A: o } = t, s = ht()[Qn], r = s && s.T, { elements: c } = n(), { host: l, padding: i, viewport: a, content: d } = c, f = Ot(e), u = f ? {} : e, { elements: p } = u, { host: y, padding: h, viewport: w, content: D } = p || {}, m = f ? e : u.target, g = Zt(m, "textarea"), S = m.ownerDocument, _ = S.documentElement, L = m === S.body, z = S.defaultView, P = ei.bind(0, [m]), W = ds.bind(0, [m]), re = eo.bind(0, [m]), q = P.bind(0, Vt, a), F = W.bind(0, Vt, d), b = q(w), v = b === m, x = v && L, k = !v && F(D), N = !v && Ot(b) && b === k, B = N && !!re(d), T = B ? q() : b, E = B ? k : F(), U = x ? _ : N ? T : b, G = g ? P(Vt, l, y) : m, $ = x ? U : G, C = N ? E : k, I = S.activeElement, V = !v && z.top === z && I === m, H = {
1655
+ const t = _e(), { q: n, A: o } = t, s = ht()[Qn], r = s && s.T, { elements: i } = n(), { host: l, padding: c, viewport: a, content: d } = i, f = Ot(e), u = f ? {} : e, { elements: p } = u, { host: y, padding: h, viewport: w, content: D } = p || {}, m = f ? e : u.target, g = Jt(m, "textarea"), S = m.ownerDocument, _ = S.documentElement, z = m === S.body, N = S.defaultView, P = ei.bind(0, [m]), W = ds.bind(0, [m]), ie = eo.bind(0, [m]), q = P.bind(0, Vt, a), R = W.bind(0, Vt, d), b = q(w), v = b === m, x = v && z, T = !v && R(D), H = !v && Ot(b) && b === T, B = H && !!ie(d), k = B ? q() : b, E = B ? T : R(), U = x ? _ : H ? k : b, K = g ? P(Vt, l, y) : m, $ = x ? U : K, C = H ? E : T, I = S.activeElement, V = !v && N.top === N && I === m, A = {
1651
1656
  Z: m,
1652
1657
  J: $,
1653
1658
  K: U,
1654
- tt: !v && W(Vt, i, h),
1659
+ tt: !v && W(Vt, c, h),
1655
1660
  nt: C,
1656
1661
  ot: !v && !o && r && r(t),
1657
1662
  st: x ? _ : U,
1658
1663
  et: x ? S : U,
1659
- ct: z,
1664
+ ct: N,
1660
1665
  rt: S,
1661
1666
  lt: g,
1662
- it: L,
1667
+ it: z,
1663
1668
  ut: f,
1664
1669
  ft: v,
1665
- dt: N,
1670
+ dt: H,
1666
1671
  _t: (fe, ve) => pr(U, v ? Be : Je, v ? ve : fe),
1667
1672
  ht: (fe, ve, ye) => ft(U, v ? Be : Je, v ? ve : fe, ye)
1668
- }, K = xe(H).reduce((fe, ve) => {
1669
- const ye = H[ve];
1673
+ }, Z = xe(A).reduce((fe, ve) => {
1674
+ const ye = A[ve];
1670
1675
  return ee(fe, ye && Ot(ye) && !Xe(ye) ? ye : !1);
1671
- }, []), te = (fe) => fe ? Wn(K, fe) > -1 : null, { Z: ne, J: le, tt: Z, K: X, nt: pe, ot: Ce } = H, $e = [() => {
1672
- be(le, Be), be(le, bn), be(ne, bn), L && (be(_, Be), be(_, bn));
1676
+ }, []), te = (fe) => fe ? Wn(Z, fe) > -1 : null, { Z: ne, J: le, tt: J, K: X, nt: pe, ot: Ce } = A, $e = [() => {
1677
+ be(le, Be), be(le, wn), be(ne, wn), z && (be(_, Be), be(_, wn));
1673
1678
  }], Ke = g && te(le);
1674
- let at = g ? ne : Yn([pe, X, Z, le, ne].find((fe) => te(fe) === !1));
1679
+ let at = g ? ne : Yn([pe, X, J, le, ne].find((fe) => te(fe) === !1));
1675
1680
  const vt = x ? ne : pe || X;
1676
- return [H, () => {
1677
- ge(le, Be, v ? "viewport" : "host"), ge(Z, On, ""), ge(pe, mo, ""), v || ge(X, Je, "");
1678
- const fe = L && !v ? je(Xe(m), ss) : Se;
1681
+ return [A, () => {
1682
+ ge(le, Be, v ? "viewport" : "host"), ge(J, En, ""), ge(pe, mo, ""), v || ge(X, Je, "");
1683
+ const fe = z && !v ? je(Xe(m), ss) : Se;
1679
1684
  if (Ke && (so(ne, le), ee($e, () => {
1680
1685
  so(le, ne), Pe(le);
1681
- })), De(vt, at), De(le, Z), De(Z || le, !v && X), De(X, pe), ee($e, () => {
1682
- fe(), be(Z, On), be(pe, mo), be(X, rs), be(X, is), be(X, Je), te(pe) && Sn(pe), te(X) && Sn(X), te(Z) && Sn(Z);
1686
+ })), De(vt, at), De(le, J), De(J || le, !v && X), De(X, pe), ee($e, () => {
1687
+ fe(), be(J, En), be(pe, mo), be(X, rs), be(X, is), be(X, Je), te(pe) && xn(pe), te(X) && xn(X), te(J) && xn(J);
1683
1688
  }), o && !v && (ft(X, Je, cs, !0), ee($e, be.bind(0, X, Je))), Ce && (hr(X, Ce), ee($e, Pe.bind(0, Ce))), V) {
1684
1689
  const ve = ge(X, Wt);
1685
1690
  ge(X, Wt, "-1"), X.focus();
@@ -1690,54 +1695,54 @@ const wo = (e, t, n, o) => {
1690
1695
  } else
1691
1696
  I && I.focus && I.focus();
1692
1697
  at = 0;
1693
- }, Re.bind(0, $e)];
1698
+ }, Fe.bind(0, $e)];
1694
1699
  }, ri = (e, t) => {
1695
1700
  const { nt: n } = e, [o] = t;
1696
1701
  return (s) => {
1697
- const { Y: r } = _e(), { gt: c } = o(), { vt: l } = s, i = (n || !r) && l;
1698
- return i && he(n, {
1699
- height: c ? "" : "100%"
1702
+ const { Y: r } = _e(), { gt: i } = o(), { vt: l } = s, c = (n || !r) && l;
1703
+ return c && he(n, {
1704
+ height: i ? "" : "100%"
1700
1705
  }), {
1701
- wt: i,
1702
- bt: i
1706
+ wt: c,
1707
+ bt: c
1703
1708
  };
1704
1709
  };
1705
1710
  }, ii = (e, t) => {
1706
- const [n, o] = t, { J: s, tt: r, K: c, ft: l } = e, [i, a] = Ee({
1711
+ const [n, o] = t, { J: s, tt: r, K: i, ft: l } = e, [c, a] = Ee({
1707
1712
  u: xr,
1708
1713
  o: lo()
1709
1714
  }, lo.bind(0, s, "padding", ""));
1710
1715
  return (d, f, u) => {
1711
1716
  let [p, y] = a(u);
1712
- const { A: h, Y: w } = _e(), { yt: D } = n(), { wt: m, bt: g, St: S } = d, [_, L] = f("paddingAbsolute");
1713
- (m || y || !w && g) && ([p, y] = i(u));
1714
- const P = !l && (L || S || y);
1717
+ const { A: h, Y: w } = _e(), { yt: D } = n(), { wt: m, bt: g, St: S } = d, [_, z] = f("paddingAbsolute");
1718
+ (m || y || !w && g) && ([p, y] = c(u));
1719
+ const P = !l && (z || S || y);
1715
1720
  if (P) {
1716
- const W = !_ || !r && !h, re = p.r + p.l, q = p.t + p.b, F = {
1717
- marginRight: W && !D ? -re : 0,
1721
+ const W = !_ || !r && !h, ie = p.r + p.l, q = p.t + p.b, R = {
1722
+ marginRight: W && !D ? -ie : 0,
1718
1723
  marginBottom: W ? -q : 0,
1719
- marginLeft: W && D ? -re : 0,
1724
+ marginLeft: W && D ? -ie : 0,
1720
1725
  top: W ? -p.t : 0,
1721
1726
  right: W ? D ? -p.r : "auto" : 0,
1722
1727
  left: W ? D ? "auto" : -p.l : 0,
1723
- width: W ? `calc(100% + ${re}px)` : ""
1728
+ width: W ? `calc(100% + ${ie}px)` : ""
1724
1729
  }, b = {
1725
1730
  paddingTop: W ? p.t : 0,
1726
1731
  paddingRight: W ? p.r : 0,
1727
1732
  paddingBottom: W ? p.b : 0,
1728
1733
  paddingLeft: W ? p.l : 0
1729
1734
  };
1730
- he(r || c, F), he(c, b), o({
1735
+ he(r || i, R), he(i, b), o({
1731
1736
  tt: p,
1732
1737
  $t: !W,
1733
- P: r ? b : ce({}, F, b)
1738
+ P: r ? b : ce({}, R, b)
1734
1739
  });
1735
1740
  }
1736
1741
  return {
1737
1742
  xt: P
1738
1743
  };
1739
1744
  };
1740
- }, { max: Ln } = Math, Qe = Ln.bind(0, 0), ps = "visible", So = "hidden", ci = 42, Ut = {
1745
+ }, { max: zn } = Math, Qe = zn.bind(0, 0), ps = "visible", So = "hidden", ci = 42, Ut = {
1741
1746
  u: Ko,
1742
1747
  o: {
1743
1748
  w: 0,
@@ -1759,84 +1764,84 @@ const wo = (e, t, n, o) => {
1759
1764
  h: o.h > n ? o.h : 0
1760
1765
  };
1761
1766
  }, Yt = (e) => e.indexOf(ps) === 0, di = (e, t) => {
1762
- const [n, o] = t, { J: s, tt: r, K: c, ot: l, ft: i, ht: a, it: d, ct: f } = e, { k: u, Y: p, A: y, I: h } = _e(), w = ht()[Qn], D = !i && !y && (h.x || h.y), m = d && i, [g, S] = Ee(Ut, en.bind(0, c)), [_, L] = Ee(Ut, Qt.bind(0, c)), [z, P] = Ee(Ut), [W, re] = Ee(Ut), [q] = Ee(li), F = (B, T) => {
1763
- if (he(c, {
1767
+ const [n, o] = t, { J: s, tt: r, K: i, ot: l, ft: c, ht: a, it: d, ct: f } = e, { k: u, Y: p, A: y, I: h } = _e(), w = ht()[Qn], D = !c && !y && (h.x || h.y), m = d && c, [g, S] = Ee(Ut, tn.bind(0, i)), [_, z] = Ee(Ut, en.bind(0, i)), [N, P] = Ee(Ut), [W, ie] = Ee(Ut), [q] = Ee(li), R = (B, k) => {
1768
+ if (he(i, {
1764
1769
  height: ""
1765
- }), T) {
1766
- const { $t: E, tt: A } = n(), { Ct: U, M: G } = B, $ = en(s), C = jt(s), I = he(c, "boxSizing") === "content-box", V = E || I ? A.b + A.t : 0, H = !(h.x && I);
1767
- he(c, {
1768
- height: C.h + $.h + (U.x && H ? G.x : 0) - V
1770
+ }), k) {
1771
+ const { $t: E, tt: M } = n(), { Ct: U, M: K } = B, $ = tn(s), C = jt(s), I = he(i, "boxSizing") === "content-box", V = E || I ? M.b + M.t : 0, A = !(h.x && I);
1772
+ he(i, {
1773
+ height: C.h + $.h + (U.x && A ? K.x : 0) - V
1769
1774
  });
1770
1775
  }
1771
- }, b = (B, T) => {
1772
- const E = !y && !B ? ci : 0, A = (te, ne, le) => {
1773
- const Z = he(c, te), pe = (T ? T[te] : Z) === "scroll";
1774
- return [Z, pe, pe && !y ? ne ? E : le : 0, ne && !!E];
1775
- }, [U, G, $, C] = A("overflowX", h.x, u.x), [I, V, H, K] = A("overflowY", h.y, u.y);
1776
+ }, b = (B, k) => {
1777
+ const E = !y && !B ? ci : 0, M = (te, ne, le) => {
1778
+ const J = he(i, te), pe = (k ? k[te] : J) === "scroll";
1779
+ return [J, pe, pe && !y ? ne ? E : le : 0, ne && !!E];
1780
+ }, [U, K, $, C] = M("overflowX", h.x, u.x), [I, V, A, Z] = M("overflowY", h.y, u.y);
1776
1781
  return {
1777
1782
  Ot: {
1778
1783
  x: U,
1779
1784
  y: I
1780
1785
  },
1781
1786
  Ct: {
1782
- x: G,
1787
+ x: K,
1783
1788
  y: V
1784
1789
  },
1785
1790
  M: {
1786
1791
  x: $,
1787
- y: H
1792
+ y: A
1788
1793
  },
1789
1794
  D: {
1790
1795
  x: C,
1791
- y: K
1796
+ y: Z
1792
1797
  }
1793
1798
  };
1794
- }, v = (B, T, E, A) => {
1795
- const U = (V, H) => {
1796
- const K = Yt(V), te = H && K && V.replace(`${ps}-`, "") || "";
1797
- return [H && !K ? V : "", Yt(te) ? "hidden" : te];
1798
- }, [G, $] = U(E.x, T.x), [C, I] = U(E.y, T.y);
1799
- return A.overflowX = $ && C ? $ : G, A.overflowY = I && G ? I : C, b(B, A);
1800
- }, x = (B, T, E, A) => {
1801
- const { M: U, D: G } = B, { x: $, y: C } = G, { x: I, y: V } = U, { P: H } = n(), K = T ? "marginLeft" : "marginRight", te = T ? "paddingLeft" : "paddingRight", ne = H[K], le = H.marginBottom, Z = H[te], X = H.paddingBottom;
1802
- A.width = `calc(100% + ${V + -1 * ne}px)`, A[K] = -V + ne, A.marginBottom = -I + le, E && (A[te] = Z + (C ? V : 0), A.paddingBottom = X + ($ ? I : 0));
1803
- }, [k, N] = w ? w.L(D, p, c, l, n, b, x) : [() => D, () => [Se]];
1804
- return (B, T, E) => {
1805
- const { wt: A, Tt: U, bt: G, xt: $, vt: C, St: I } = B, { gt: V, yt: H } = n(), [K, te] = T("showNativeOverlaidScrollbars"), [ne, le] = T("overflow"), Z = K && h.x && h.y, X = !i && !p && (A || G || U || te || C), pe = Yt(ne.x), Ce = Yt(ne.y), $e = pe || Ce;
1806
- let Ke = S(E), at = L(E), vt = P(E), yt = re(E), fe;
1807
- if (te && y && a(cs, Br, !Z), X && (fe = b(Z), F(fe, V)), A || $ || G || I || te) {
1799
+ }, v = (B, k, E, M) => {
1800
+ const U = (V, A) => {
1801
+ const Z = Yt(V), te = A && Z && V.replace(`${ps}-`, "") || "";
1802
+ return [A && !Z ? V : "", Yt(te) ? "hidden" : te];
1803
+ }, [K, $] = U(E.x, k.x), [C, I] = U(E.y, k.y);
1804
+ return M.overflowX = $ && C ? $ : K, M.overflowY = I && K ? I : C, b(B, M);
1805
+ }, x = (B, k, E, M) => {
1806
+ const { M: U, D: K } = B, { x: $, y: C } = K, { x: I, y: V } = U, { P: A } = n(), Z = k ? "marginLeft" : "marginRight", te = k ? "paddingLeft" : "paddingRight", ne = A[Z], le = A.marginBottom, J = A[te], X = A.paddingBottom;
1807
+ M.width = `calc(100% + ${V + -1 * ne}px)`, M[Z] = -V + ne, M.marginBottom = -I + le, E && (M[te] = J + (C ? V : 0), M.paddingBottom = X + ($ ? I : 0));
1808
+ }, [T, H] = w ? w.L(D, p, i, l, n, b, x) : [() => D, () => [Se]];
1809
+ return (B, k, E) => {
1810
+ const { wt: M, Tt: U, bt: K, xt: $, vt: C, St: I } = B, { gt: V, yt: A } = n(), [Z, te] = k("showNativeOverlaidScrollbars"), [ne, le] = k("overflow"), J = Z && h.x && h.y, X = !c && !p && (M || K || U || te || C), pe = Yt(ne.x), Ce = Yt(ne.y), $e = pe || Ce;
1811
+ let Ke = S(E), at = z(E), vt = P(E), yt = ie(E), fe;
1812
+ if (te && y && a(cs, Br, !J), X && (fe = b(J), R(fe, V)), M || $ || K || I || te) {
1808
1813
  $e && a(xt, St, !1);
1809
- const [Fe, Ze] = N(Z, H, fe), [He, Pt] = Ke = g(E), [Ae, Tt] = at = _(E), dt = jt(c);
1810
- let pn = Ae, mn = dt;
1811
- Fe(), (Tt || Pt || te) && Ze && !Z && k(Ze, Ae, He, H) && (mn = jt(c), pn = Qt(c));
1814
+ const [Re, Ze] = H(J, A, fe), [He, Pt] = Ke = g(E), [Ae, kt] = at = _(E), dt = jt(i);
1815
+ let mn = Ae, gn = dt;
1816
+ Re(), (kt || Pt || te) && Ze && !J && T(Ze, Ae, He, A) && (gn = jt(i), mn = en(i));
1812
1817
  const _s = {
1813
- w: Qe(Ln(Ae.w, pn.w) + He.w),
1814
- h: Qe(Ln(Ae.h, pn.h) + He.h)
1818
+ w: Qe(zn(Ae.w, mn.w) + He.w),
1819
+ h: Qe(zn(Ae.h, mn.h) + He.h)
1815
1820
  }, no = {
1816
- w: Qe((m ? f.innerWidth : mn.w + Qe(dt.w - Ae.w)) + He.w),
1817
- h: Qe((m ? f.innerHeight + He.h : mn.h + Qe(dt.h - Ae.h)) + He.h)
1821
+ w: Qe((m ? f.innerWidth : gn.w + Qe(dt.w - Ae.w)) + He.w),
1822
+ h: Qe((m ? f.innerHeight + He.h : gn.h + Qe(dt.h - Ae.h)) + He.h)
1818
1823
  };
1819
- yt = W(no), vt = z(ai(_s, no), E);
1824
+ yt = W(no), vt = N(ai(_s, no), E);
1820
1825
  }
1821
- const [ve, ye] = yt, [Ie, Ht] = vt, [ln, an] = at, [dn, un] = Ke, Ne = {
1826
+ const [ve, ye] = yt, [Ie, Ht] = vt, [an, dn] = at, [un, fn] = Ke, Ne = {
1822
1827
  x: Ie.w > 0,
1823
1828
  y: Ie.h > 0
1824
1829
  }, At = pe && Ce && (Ne.x || Ne.y) || pe && Ne.x && !Ne.y || Ce && Ne.y && !Ne.x;
1825
- if ($ || I || un || an || ye || Ht || le || te || X) {
1826
- const Fe = {
1830
+ if ($ || I || fn || dn || ye || Ht || le || te || X) {
1831
+ const Re = {
1827
1832
  marginRight: 0,
1828
1833
  marginBottom: 0,
1829
1834
  marginLeft: 0,
1830
1835
  width: "",
1831
1836
  overflowY: "",
1832
1837
  overflowX: ""
1833
- }, Ze = v(Z, Ne, ne, Fe), He = k(Ze, ln, dn, H);
1834
- i || x(Ze, H, He, Fe), X && F(Ze, V), i ? (ge(s, rs, Fe.overflowX), ge(s, is, Fe.overflowY)) : he(c, Fe);
1838
+ }, Ze = v(J, Ne, ne, Re), He = T(Ze, an, un, A);
1839
+ c || x(Ze, A, He, Re), X && R(Ze, V), c ? (ge(s, rs, Re.overflowX), ge(s, is, Re.overflowY)) : he(i, Re);
1835
1840
  }
1836
- ft(s, Be, St, At), ft(r, On, Lr, At), i || ft(c, Je, xt, $e);
1837
- const [fn, Mt] = q(b(Z).Ot);
1841
+ ft(s, Be, St, At), ft(r, En, Lr, At), c || ft(i, Je, xt, $e);
1842
+ const [pn, Mt] = q(b(J).Ot);
1838
1843
  return o({
1839
- Ot: fn,
1844
+ Ot: pn,
1840
1845
  zt: {
1841
1846
  x: ve.w,
1842
1847
  y: ve.h
@@ -1854,12 +1859,12 @@ const wo = (e, t, n, o) => {
1854
1859
  };
1855
1860
  }, xo = (e, t, n) => {
1856
1861
  const o = {}, s = t || {}, r = xe(e).concat(xe(s));
1857
- return Y(r, (c) => {
1858
- const l = e[c], i = s[c];
1859
- o[c] = !!(n || l || i);
1862
+ return Y(r, (i) => {
1863
+ const l = e[i], c = s[i];
1864
+ o[i] = !!(n || l || c);
1860
1865
  }), o;
1861
1866
  }, ui = (e, t) => {
1862
- const { Z: n, K: o, ht: s, ft: r } = e, { A: c, I: l, Y: i } = _e(), a = !c && (l.x || l.y), d = [ri(e, t), ii(e, t), di(e, t)];
1867
+ const { Z: n, K: o, ht: s, ft: r } = e, { A: i, I: l, Y: c } = _e(), a = !i && (l.x || l.y), d = [ri(e, t), ii(e, t), di(e, t)];
1863
1868
  return (f, u, p) => {
1864
1869
  const y = xo(ce({
1865
1870
  wt: !1,
@@ -1872,27 +1877,27 @@ const wo = (e, t, n, o) => {
1872
1877
  Tt: !1,
1873
1878
  bt: !1,
1874
1879
  Pt: !1
1875
- }, u), {}, p), h = a || !i, w = h && Le(o), D = h && qe(o);
1876
- s("", tn, !0);
1880
+ }, u), {}, p), h = a || !c, w = h && Le(o), D = h && qe(o);
1881
+ s("", nn, !0);
1877
1882
  let m = y;
1878
1883
  return Y(d, (g) => {
1879
1884
  m = xo(m, g(m, f, !!p) || {}, p);
1880
- }), Le(o, w), qe(o, D), s("", tn), r || (Le(n, 0), qe(n, 0)), m;
1885
+ }), Le(o, w), qe(o, D), s("", nn), r || (Le(n, 0), qe(n, 0)), m;
1881
1886
  };
1882
1887
  }, fi = (e, t, n) => {
1883
1888
  let o, s = !1;
1884
1889
  const r = () => {
1885
1890
  s = !0;
1886
- }, c = (l) => {
1891
+ }, i = (l) => {
1887
1892
  if (n) {
1888
- const i = n.reduce((a, d) => {
1893
+ const c = n.reduce((a, d) => {
1889
1894
  if (d) {
1890
1895
  const [f, u] = d, p = u && f && (l ? l(f) : Yo(f, e));
1891
1896
  p && p.length && u && lt(u) && ee(a, [p, u.trim()], !0);
1892
1897
  }
1893
1898
  return a;
1894
1899
  }, []);
1895
- Y(i, (a) => Y(a[0], (d) => {
1900
+ Y(c, (a) => Y(a[0], (d) => {
1896
1901
  const f = a[1], u = o.get(d) || [];
1897
1902
  if (e.contains(d)) {
1898
1903
  const y = de(d, f, (h) => {
@@ -1900,30 +1905,30 @@ const wo = (e, t, n, o) => {
1900
1905
  });
1901
1906
  o.set(d, ee(u, y));
1902
1907
  } else
1903
- Re(u), o.delete(d);
1908
+ Fe(u), o.delete(d);
1904
1909
  }));
1905
1910
  }
1906
1911
  };
1907
- return n && (o = /* @__PURE__ */ new WeakMap(), c()), [r, c];
1912
+ return n && (o = /* @__PURE__ */ new WeakMap(), i()), [r, i];
1908
1913
  }, $o = (e, t, n, o) => {
1909
1914
  let s = !1;
1910
- const { Mt: r, Dt: c, Rt: l, kt: i, Bt: a, Vt: d } = o || {}, f = Xn(() => {
1915
+ const { Mt: r, Dt: i, Rt: l, kt: c, Bt: a, Vt: d } = o || {}, f = Xn(() => {
1911
1916
  s && n(!0);
1912
1917
  }, {
1913
1918
  g: 33,
1914
1919
  v: 99
1915
- }), [u, p] = fi(e, f, l), y = r || [], h = c || [], w = y.concat(h), D = (g, S) => {
1916
- const _ = a || Se, L = d || Se, z = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
1917
- let W = !1, re = !1;
1920
+ }), [u, p] = fi(e, f, l), y = r || [], h = i || [], w = y.concat(h), D = (g, S) => {
1921
+ const _ = a || Se, z = d || Se, N = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
1922
+ let W = !1, ie = !1;
1918
1923
  if (Y(g, (q) => {
1919
- const { attributeName: F, target: b, type: v, oldValue: x, addedNodes: k, removedNodes: N } = q, B = v === "attributes", T = v === "childList", E = e === b, A = B && lt(F) ? ge(b, F) : 0, U = A !== 0 && x !== A, G = Wn(h, F) > -1 && U;
1920
- if (t && (T || !E)) {
1921
- const $ = !B, C = B && U, I = C && i && Zt(b, i), H = (I ? !_(b, F, x, A) : $ || C) && !L(q, !!I, e, o);
1922
- Y(k, (K) => z.add(K)), Y(N, (K) => z.add(K)), re = re || H;
1924
+ const { attributeName: R, target: b, type: v, oldValue: x, addedNodes: T, removedNodes: H } = q, B = v === "attributes", k = v === "childList", E = e === b, M = B && lt(R) ? ge(b, R) : 0, U = M !== 0 && x !== M, K = Wn(h, R) > -1 && U;
1925
+ if (t && (k || !E)) {
1926
+ const $ = !B, C = B && U, I = C && c && Jt(b, c), A = (I ? !_(b, R, x, M) : $ || C) && !z(q, !!I, e, o);
1927
+ Y(T, (Z) => N.add(Z)), Y(H, (Z) => N.add(Z)), ie = ie || A;
1923
1928
  }
1924
- !t && E && U && !_(b, F, x, A) && (P.add(F), W = W || G);
1925
- }), z.size > 0 && p((q) => gt(z).reduce((F, b) => (ee(F, Yo(q, b)), Zt(b, q) ? ee(F, b) : F), [])), t)
1926
- return !S && re && n(!1), [!1];
1929
+ !t && E && U && !_(b, R, x, M) && (P.add(R), W = W || K);
1930
+ }), N.size > 0 && p((q) => gt(N).reduce((R, b) => (ee(R, Yo(q, b)), Jt(b, q) ? ee(R, b) : R), [])), t)
1931
+ return !S && ie && n(!1), [!1];
1927
1932
  if (P.size > 0 || W) {
1928
1933
  const q = [gt(P), W];
1929
1934
  return !S && n.apply(0, q), q;
@@ -1946,21 +1951,21 @@ const wo = (e, t, n, o) => {
1946
1951
  }
1947
1952
  }];
1948
1953
  }, qt = 3333333, ms = (e, t, n) => {
1949
- const { Yt: o = !1, Pt: s = !1 } = n || {}, r = ht()[Xr], { V: c } = _e(), i = qo(`<div class="${Zn}"><div class="${Nr}"></div></div>`)[0], a = i.firstChild, d = Bt.bind(0, e), [f] = Ee({
1954
+ const { Yt: o = !1, Pt: s = !1 } = n || {}, r = ht()[Xr], { V: i } = _e(), c = qo(`<div class="${Zn}"><div class="${Nr}"></div></div>`)[0], a = c.firstChild, d = Bt.bind(0, e), [f] = Ee({
1950
1955
  o: void 0,
1951
1956
  _: !0,
1952
1957
  u: (h, w) => !(!h || !_t(h) && _t(w))
1953
1958
  }), u = (h) => {
1954
- const w = Te(h) && h.length > 0 && Et(h[0]), D = !w && Fn(h[0]);
1959
+ const w = ke(h) && h.length > 0 && Et(h[0]), D = !w && Rn(h[0]);
1955
1960
  let m = !1, g = !1, S = !0;
1956
1961
  if (w) {
1957
- const [_, , L] = f(h.pop().contentRect), z = _t(_), P = _t(L);
1958
- m = !L && !!P || !z, g = !P && z, S = !m;
1962
+ const [_, , z] = f(h.pop().contentRect), N = _t(_), P = _t(z);
1963
+ m = !z && !!P || !N, g = !P && N, S = !m;
1959
1964
  } else
1960
1965
  D ? [, S] = h : g = h === !0;
1961
1966
  if (o && S) {
1962
- const _ = D ? h[0] : Bt(i);
1963
- Le(i, _ ? c.n ? -qt : c.i ? 0 : qt : qt), qe(i, qt);
1967
+ const _ = D ? h[0] : Bt(c);
1968
+ Le(c, _ ? i.n ? -qt : i.i ? 0 : qt : qt), qe(c, qt);
1964
1969
  }
1965
1970
  m || t({
1966
1971
  wt: !D,
@@ -1970,7 +1975,7 @@ const wo = (e, t, n, o) => {
1970
1975
  }, p = [];
1971
1976
  let y = s ? u : !1;
1972
1977
  return [() => {
1973
- Re(p), Pe(i);
1978
+ Fe(p), Pe(c);
1974
1979
  }, () => {
1975
1980
  if (wt) {
1976
1981
  const h = new wt(u);
@@ -1985,151 +1990,151 @@ const wo = (e, t, n, o) => {
1985
1990
  const [h] = Ee({
1986
1991
  o: void 0
1987
1992
  }, d);
1988
- ee(p, de(i, "scroll", (w) => {
1993
+ ee(p, de(c, "scroll", (w) => {
1989
1994
  const D = h(), [m, g, S] = D;
1990
1995
  g && (jn(a, "ltr rtl"), m ? je(a, "rtl") : je(a, "ltr"), u([!!m, g, S])), Qo(w);
1991
1996
  }));
1992
1997
  }
1993
- y && (je(i, zr), ee(p, de(i, "animationstart", y, {
1998
+ y && (je(c, zr), ee(p, de(c, "animationstart", y, {
1994
1999
  C: !!wt
1995
- }))), (wt || r) && De(e, i);
2000
+ }))), (wt || r) && De(e, c);
1996
2001
  }];
1997
2002
  }, pi = (e) => e.h === 0 || e.isIntersecting || e.intersectionRatio > 0, mi = (e, t) => {
1998
2003
  let n;
1999
2004
  const o = pt(Hr), s = [], [r] = Ee({
2000
2005
  o: !1
2001
- }), c = (i, a) => {
2002
- if (i) {
2003
- const d = r(pi(i)), [, f] = d;
2006
+ }), i = (c, a) => {
2007
+ if (c) {
2008
+ const d = r(pi(c)), [, f] = d;
2004
2009
  if (f)
2005
2010
  return !a && t(d), [d];
2006
2011
  }
2007
- }, l = (i, a) => {
2008
- if (i && i.length > 0)
2009
- return c(i.pop(), a);
2012
+ }, l = (c, a) => {
2013
+ if (c && c.length > 0)
2014
+ return i(c.pop(), a);
2010
2015
  };
2011
2016
  return [() => {
2012
- Re(s), Pe(o);
2017
+ Fe(s), Pe(o);
2013
2018
  }, () => {
2014
2019
  if (ro)
2015
- n = new ro((i) => l(i), {
2020
+ n = new ro((c) => l(c), {
2016
2021
  root: e
2017
2022
  }), n.observe(o), ee(s, () => {
2018
2023
  n.disconnect();
2019
2024
  });
2020
2025
  else {
2021
- const i = () => {
2026
+ const c = () => {
2022
2027
  const f = Lt(o);
2023
- c(f);
2024
- }, [a, d] = ms(o, i);
2025
- ee(s, a), d(), i();
2028
+ i(f);
2029
+ }, [a, d] = ms(o, c);
2030
+ ee(s, a), d(), c();
2026
2031
  }
2027
2032
  De(e, o);
2028
2033
  }, () => {
2029
2034
  if (n)
2030
2035
  return l(n.takeRecords(), !0);
2031
2036
  }];
2032
- }, Do = `[${Be}]`, gi = `[${Je}]`, xn = ["tabindex"], ko = ["wrap", "cols", "rows"], $n = ["id", "class", "style", "open"], hi = (e, t, n) => {
2037
+ }, Do = `[${Be}]`, gi = `[${Je}]`, $n = ["tabindex"], To = ["wrap", "cols", "rows"], Dn = ["id", "class", "style", "open"], hi = (e, t, n) => {
2033
2038
  let o, s, r;
2034
- const { J: c, K: l, nt: i, lt: a, ft: d, _t: f, ht: u } = e, { Y: p } = _e(), [y] = Ee({
2039
+ const { J: i, K: l, nt: c, lt: a, ft: d, _t: f, ht: u } = e, { Y: p } = _e(), [y] = Ee({
2035
2040
  u: Ko,
2036
2041
  o: {
2037
2042
  w: 0,
2038
2043
  h: 0
2039
2044
  }
2040
2045
  }, () => {
2041
- const x = f(xt, St), k = f(wn, ""), N = k && Le(l), B = k && qe(l);
2042
- u(xt, St), u(wn, ""), u("", tn, !0);
2043
- const T = Qt(i), E = Qt(l), A = en(l);
2044
- return u(xt, St, x), u(wn, "", k), u("", tn), Le(l, N), qe(l, B), {
2045
- w: E.w + T.w + A.w,
2046
- h: E.h + T.h + A.h
2046
+ const x = f(xt, St), T = f(_n, ""), H = T && Le(l), B = T && qe(l);
2047
+ u(xt, St), u(_n, ""), u("", nn, !0);
2048
+ const k = en(c), E = en(l), M = tn(l);
2049
+ return u(xt, St, x), u(_n, "", T), u("", nn), Le(l, H), qe(l, B), {
2050
+ w: E.w + k.w + M.w,
2051
+ h: E.h + k.h + M.h
2047
2052
  };
2048
- }), h = a ? ko : $n.concat(ko), w = Xn(n, {
2053
+ }), h = a ? To : Dn.concat(To), w = Xn(n, {
2049
2054
  g: () => o,
2050
2055
  v: () => s,
2051
- p(x, k) {
2052
- const [N] = x, [B] = k;
2053
- return [xe(N).concat(xe(B)).reduce((T, E) => (T[E] = N[E] || B[E], T), {})];
2056
+ p(x, T) {
2057
+ const [H] = x, [B] = T;
2058
+ return [xe(H).concat(xe(B)).reduce((k, E) => (k[E] = H[E] || B[E], k), {})];
2054
2059
  }
2055
2060
  }), D = (x) => {
2056
- Y(x || xn, (k) => {
2057
- if (Wn(xn, k) > -1) {
2058
- const N = ge(c, k);
2059
- lt(N) ? ge(l, k, N) : be(l, k);
2061
+ Y(x || $n, (T) => {
2062
+ if (Wn($n, T) > -1) {
2063
+ const H = ge(i, T);
2064
+ lt(H) ? ge(l, T, H) : be(l, T);
2060
2065
  }
2061
2066
  });
2062
- }, m = (x, k) => {
2063
- const [N, B] = x, T = {
2067
+ }, m = (x, T) => {
2068
+ const [H, B] = x, k = {
2064
2069
  vt: B
2065
2070
  };
2066
2071
  return t({
2067
- gt: N
2068
- }), !k && n(T), T;
2069
- }, g = ({ wt: x, jt: k, Pt: N }) => {
2070
- const B = !x || N ? n : w;
2071
- let T = !1;
2072
- if (k) {
2073
- const [E, A] = k;
2074
- T = A, t({
2072
+ gt: H
2073
+ }), !T && n(k), k;
2074
+ }, g = ({ wt: x, jt: T, Pt: H }) => {
2075
+ const B = !x || H ? n : w;
2076
+ let k = !1;
2077
+ if (T) {
2078
+ const [E, M] = T;
2079
+ k = M, t({
2075
2080
  yt: E
2076
2081
  });
2077
2082
  }
2078
2083
  B({
2079
2084
  wt: x,
2080
- Pt: N,
2081
- St: T
2085
+ Pt: H,
2086
+ St: k
2082
2087
  });
2083
- }, S = (x, k) => {
2084
- const [, N] = y(), B = {
2085
- bt: N
2088
+ }, S = (x, T) => {
2089
+ const [, H] = y(), B = {
2090
+ bt: H
2086
2091
  };
2087
- return N && !k && (x ? n : w)(B), B;
2088
- }, _ = (x, k, N) => {
2092
+ return H && !T && (x ? n : w)(B), B;
2093
+ }, _ = (x, T, H) => {
2089
2094
  const B = {
2090
- Tt: k
2095
+ Tt: T
2091
2096
  };
2092
- return k ? !N && w(B) : d || D(x), B;
2093
- }, [L, z, P] = i || !p ? mi(c, m) : [Se, Se, Se], [W, re] = d ? [Se, Se] : ms(c, g, {
2097
+ return T ? !H && w(B) : d || D(x), B;
2098
+ }, [z, N, P] = c || !p ? mi(i, m) : [Se, Se, Se], [W, ie] = d ? [Se, Se] : ms(i, g, {
2094
2099
  Pt: !0,
2095
2100
  Yt: !0
2096
- }), [q, F] = $o(c, !1, _, {
2097
- Dt: $n,
2098
- Mt: $n.concat(xn)
2101
+ }), [q, R] = $o(i, !1, _, {
2102
+ Dt: Dn,
2103
+ Mt: Dn.concat($n)
2099
2104
  });
2100
2105
  let b;
2101
2106
  const v = d && wt && new wt((x) => {
2102
- const k = x[x.length - 1].contentRect, N = _t(k), T = !_t(b) && N;
2107
+ const T = x[x.length - 1].contentRect, H = _t(T), k = !_t(b) && H;
2103
2108
  g({
2104
2109
  wt: !0,
2105
- Pt: T
2106
- }), b = k;
2110
+ Pt: k
2111
+ }), b = T;
2107
2112
  });
2108
2113
  return [() => {
2109
- L(), W(), r && r[0](), v && v.disconnect(), q();
2114
+ z(), W(), r && r[0](), v && v.disconnect(), q();
2110
2115
  }, () => {
2111
- v && v.observe(c), D(), re(), z();
2116
+ v && v.observe(i), D(), ie(), N();
2112
2117
  }, () => {
2113
- const x = {}, k = F(), N = P(), B = r && r[1]();
2114
- return k && ce(x, _.apply(0, ee(k, !0))), N && ce(x, m.apply(0, ee(N, !0))), B && ce(x, S.apply(0, ee(B, !0))), x;
2118
+ const x = {}, T = R(), H = P(), B = r && r[1]();
2119
+ return T && ce(x, _.apply(0, ee(T, !0))), H && ce(x, m.apply(0, ee(H, !0))), B && ce(x, S.apply(0, ee(B, !0))), x;
2115
2120
  }, (x) => {
2116
- const [k] = x("update.ignoreMutation"), [N, B] = x("update.attributes"), [T, E] = x("update.elementEvents"), [A, U] = x("update.debounce"), G = E || B, $ = (C) => ze(k) && k(C);
2117
- if (G && (r && (r[1](), r[0]()), r = $o(i || l, !0, S, {
2118
- Mt: h.concat(N || []),
2119
- Rt: T,
2121
+ const [T] = x("update.ignoreMutation"), [H, B] = x("update.attributes"), [k, E] = x("update.elementEvents"), [M, U] = x("update.debounce"), K = E || B, $ = (C) => ze(T) && T(C);
2122
+ if (K && (r && (r[1](), r[0]()), r = $o(c || l, !0, S, {
2123
+ Mt: h.concat(H || []),
2124
+ Rt: k,
2120
2125
  kt: Do,
2121
2126
  Vt: (C, I) => {
2122
- const { target: V, attributeName: H } = C;
2123
- return (!I && H && !d ? gr(V, Do, gi) : !1) || !!bt(V, `.${we}`) || !!$(C);
2127
+ const { target: V, attributeName: A } = C;
2128
+ return (!I && A && !d ? gr(V, Do, gi) : !1) || !!bt(V, `.${we}`) || !!$(C);
2124
2129
  }
2125
2130
  })), U)
2126
- if (w.m(), Te(A)) {
2127
- const C = A[0], I = A[1];
2131
+ if (w.m(), ke(M)) {
2132
+ const C = M[0], I = M[1];
2128
2133
  o = it(C) && C, s = it(I) && I;
2129
2134
  } else
2130
- it(A) ? (o = A, s = !1) : (o = !1, s = !1);
2135
+ it(M) ? (o = M, s = !1) : (o = !1, s = !1);
2131
2136
  }];
2132
- }, To = {
2137
+ }, ko = {
2133
2138
  x: 0,
2134
2139
  y: 0
2135
2140
  }, vi = (e) => ({
@@ -2149,8 +2154,8 @@ const wo = (e, t, n, o) => {
2149
2154
  paddingBottom: 0,
2150
2155
  paddingLeft: 0
2151
2156
  },
2152
- zt: To,
2153
- Et: To,
2157
+ zt: ko,
2158
+ Et: ko,
2154
2159
  Ot: {
2155
2160
  x: "hidden",
2156
2161
  y: "hidden"
@@ -2162,18 +2167,18 @@ const wo = (e, t, n, o) => {
2162
2167
  gt: !1,
2163
2168
  yt: Bt(e.J)
2164
2169
  }), yi = (e, t) => {
2165
- const n = Bn(t, {}), [o, s, r] = Kn(), [c, l, i] = si(e), a = fs(vi(c)), [d, f] = a, u = ui(c, a), p = (g, S, _) => {
2166
- const z = xe(g).some((P) => !!g[P]) || !Un(S) || _;
2167
- return z && r("u", [g, S, _]), z;
2168
- }, [y, h, w, D] = hi(c, f, (g) => p(u(n, g), {}, !1)), m = d.bind(0);
2170
+ const n = Ln(t, {}), [o, s, r] = Kn(), [i, l, c] = si(e), a = fs(vi(i)), [d, f] = a, u = ui(i, a), p = (g, S, _) => {
2171
+ const N = xe(g).some((P) => !!g[P]) || !Un(S) || _;
2172
+ return N && r("u", [g, S, _]), N;
2173
+ }, [y, h, w, D] = hi(i, f, (g) => p(u(n, g), {}, !1)), m = d.bind(0);
2169
2174
  return m.Nt = (g) => o("u", g), m.qt = () => {
2170
- const { Z: g, K: S, rt: _, it: L } = c, z = L ? _.documentElement : g, P = Le(z), W = qe(z);
2175
+ const { Z: g, K: S, rt: _, it: z } = i, N = z ? _.documentElement : g, P = Le(N), W = qe(N);
2171
2176
  h(), l(), Le(S, P), qe(S, W);
2172
- }, m.Ft = c, [(g, S) => {
2173
- const _ = Bn(t, g, S);
2177
+ }, m.Ft = i, [(g, S) => {
2178
+ const _ = Ln(t, g, S);
2174
2179
  return D(_), p(u(_, w(), S), g, !!S);
2175
2180
  }, m, () => {
2176
- s(), y(), i();
2181
+ s(), y(), c();
2177
2182
  }];
2178
2183
  }, { round: Co } = Math, bi = (e) => {
2179
2184
  const { width: t, height: n } = Me(e), { w: o, h: s } = Lt(e);
@@ -2182,8 +2187,8 @@ const wo = (e, t, n, o) => {
2182
2187
  y: Co(n) / s || 1
2183
2188
  };
2184
2189
  }, wi = (e, t, n) => {
2185
- const o = t.scrollbars, { button: s, isPrimary: r, pointerType: c } = e, { pointers: l } = o;
2186
- return s === 0 && r && o[n ? "dragScroll" : "clickScroll"] && (l || []).includes(c);
2190
+ const o = t.scrollbars, { button: s, isPrimary: r, pointerType: i } = e, { pointers: l } = o;
2191
+ return s === 0 && r && o[n ? "dragScroll" : "clickScroll"] && (l || []).includes(i);
2187
2192
  }, Io = "pointerup pointerleave pointercancel lostpointercapture", _i = (e) => ({
2188
2193
  transform: [$t("0%", e), $t("-100%", e)],
2189
2194
  [e ? "left" : "top"]: ["0%", "100%"]
@@ -2192,27 +2197,27 @@ const wo = (e, t, n, o) => {
2192
2197
  $: !0
2193
2198
  }), {
2194
2199
  $: !0
2195
- }), xi = (e, t, n, o, s, r, c) => {
2196
- const { V: l } = _e(), { Gt: i, Xt: a, Ut: d } = o, f = `scroll${c ? "Left" : "Top"}`, u = `client${c ? "X" : "Y"}`, p = c ? "width" : "height", y = c ? "left" : "top", h = c ? "w" : "h", w = c ? "x" : "y", D = (m, g) => (S) => {
2197
- const { Et: _ } = r(), L = Lt(a)[h] - Lt(i)[h], P = g * S / L * _[w], re = Bt(d) && c ? l.n || l.i ? 1 : -1 : 1;
2198
- s[f] = m + P * re;
2200
+ }), xi = (e, t, n, o, s, r, i) => {
2201
+ const { V: l } = _e(), { Gt: c, Xt: a, Ut: d } = o, f = `scroll${i ? "Left" : "Top"}`, u = `client${i ? "X" : "Y"}`, p = i ? "width" : "height", y = i ? "left" : "top", h = i ? "w" : "h", w = i ? "x" : "y", D = (m, g) => (S) => {
2202
+ const { Et: _ } = r(), z = Lt(a)[h] - Lt(c)[h], P = g * S / z * _[w], ie = Bt(d) && i ? l.n || l.i ? 1 : -1 : 1;
2203
+ s[f] = m + P * ie;
2199
2204
  };
2200
2205
  return de(a, "pointerdown", (m) => {
2201
- const g = bt(m.target, `.${Jn}`) === i, S = g ? i : a;
2206
+ const g = bt(m.target, `.${Jn}`) === c, S = g ? c : a;
2202
2207
  if (ft(t, Be, po, !0), wi(m, e, g)) {
2203
- const _ = !g && m.shiftKey, L = () => Me(i), z = () => Me(a), P = (T, E) => (T || L())[y] - (E || z())[y], W = D(s[f] || 0, 1 / bi(s)[w]), re = m[u], q = L(), F = z(), b = q[p], v = P(q, F) + b / 2, x = re - F[y], k = g ? 0 : x - v, N = (T) => {
2204
- Re(B), S.releasePointerCapture(T.pointerId);
2205
- }, B = [ft.bind(0, t, Be, po), de(n, Io, N), de(n, "selectstart", (T) => es(T), {
2208
+ const _ = !g && m.shiftKey, z = () => Me(c), N = () => Me(a), P = (k, E) => (k || z())[y] - (E || N())[y], W = D(s[f] || 0, 1 / bi(s)[w]), ie = m[u], q = z(), R = N(), b = q[p], v = P(q, R) + b / 2, x = ie - R[y], T = g ? 0 : x - v, H = (k) => {
2209
+ Fe(B), S.releasePointerCapture(k.pointerId);
2210
+ }, B = [ft.bind(0, t, Be, po), de(n, Io, H), de(n, "selectstart", (k) => es(k), {
2206
2211
  S: !1
2207
- }), de(a, Io, N), de(a, "pointermove", (T) => {
2208
- const E = T[u] - re;
2209
- (g || _) && W(k + E);
2212
+ }), de(a, Io, H), de(a, "pointermove", (k) => {
2213
+ const E = k[u] - ie;
2214
+ (g || _) && W(T + E);
2210
2215
  })];
2211
2216
  if (_)
2212
- W(k);
2217
+ W(T);
2213
2218
  else if (!g) {
2214
- const T = ht()[Gr];
2215
- T && ee(B, T.O(W, P, k, b, x));
2219
+ const k = ht()[Gr];
2220
+ k && ee(B, k.O(W, P, T, b, x));
2216
2221
  }
2217
2222
  S.setPointerCapture(m.pointerId);
2218
2223
  }
@@ -2226,16 +2231,16 @@ const wo = (e, t, n, o) => {
2226
2231
  return () => {
2227
2232
  o.cancel();
2228
2233
  };
2229
- }, Di = (e, t) => (n, o, s, r, c, l, i) => {
2230
- const { Ut: a } = n, [d, f] = ut(333), u = !!c.scrollBy;
2234
+ }, Di = (e, t) => (n, o, s, r, i, l, c) => {
2235
+ const { Ut: a } = n, [d, f] = ut(333), u = !!i.scrollBy;
2231
2236
  let p = !0;
2232
- return Re.bind(0, [de(a, "pointerenter", () => {
2237
+ return Fe.bind(0, [de(a, "pointerenter", () => {
2233
2238
  o(ho, !0);
2234
2239
  }), de(a, "pointerleave pointercancel", () => {
2235
2240
  o(ho);
2236
2241
  }), de(a, "wheel", (y) => {
2237
2242
  const { deltaX: h, deltaY: w, deltaMode: D } = y;
2238
- u && p && D === 0 && Xe(a) === r && c.scrollBy({
2243
+ u && p && D === 0 && Xe(a) === r && i.scrollBy({
2239
2244
  left: h,
2240
2245
  top: w,
2241
2246
  behavior: "smooth"
@@ -2245,53 +2250,53 @@ const wo = (e, t, n, o) => {
2245
2250
  }, {
2246
2251
  S: !1,
2247
2252
  $: !0
2248
- }), Si(a, s), xi(e, r, s, n, c, t, i), $i(n, l, i), f]);
2249
- }, { min: zn, max: Oo, abs: ki, round: Ti } = Math, gs = (e, t, n, o) => {
2253
+ }), Si(a, s), xi(e, r, s, n, i, t, c), $i(n, l, c), f]);
2254
+ }, { min: Nn, max: Oo, abs: Ti, round: ki } = Math, gs = (e, t, n, o) => {
2250
2255
  if (o) {
2251
- const l = n ? "x" : "y", { Et: i, zt: a } = o, d = a[l], f = i[l];
2252
- return Oo(0, zn(1, d / (d + f)));
2256
+ const l = n ? "x" : "y", { Et: c, zt: a } = o, d = a[l], f = c[l];
2257
+ return Oo(0, Nn(1, d / (d + f)));
2253
2258
  }
2254
- const s = n ? "width" : "height", r = Me(e)[s], c = Me(t)[s];
2255
- return Oo(0, zn(1, r / c));
2259
+ const s = n ? "width" : "height", r = Me(e)[s], i = Me(t)[s];
2260
+ return Oo(0, Nn(1, r / i));
2256
2261
  }, Ci = (e, t, n, o, s, r) => {
2257
- const { V: c } = _e(), l = r ? "x" : "y", i = r ? "Left" : "Top", { Et: a } = o, d = Ti(a[l]), f = ki(n[`scroll${i}`]), u = r && s, p = c.i ? f : d - f, h = zn(1, (u ? p : f) / d), w = gs(e, t, r);
2262
+ const { V: i } = _e(), l = r ? "x" : "y", c = r ? "Left" : "Top", { Et: a } = o, d = ki(a[l]), f = Ti(n[`scroll${c}`]), u = r && s, p = i.i ? f : d - f, h = Nn(1, (u ? p : f) / d), w = gs(e, t, r);
2258
2263
  return 1 / w * (1 - w) * h;
2259
2264
  }, Ii = (e) => `${Math.max(0, e - 0.5)}px`, Eo = (e, t, n, o) => e.animate({
2260
2265
  transform: [$t("0px", o), $t(Ii(n), o)]
2261
2266
  }, {
2262
2267
  timeline: t,
2263
2268
  composite: "add"
2264
- }), Bo = (e, t) => Cn ? new Cn({
2269
+ }), Bo = (e, t) => In ? new In({
2265
2270
  source: e,
2266
2271
  axis: t
2267
2272
  }) : null, Oi = (e, t, n) => {
2268
- const { q: o, H: s } = _e(), { scrollbars: r } = o(), { slot: c } = r, { rt: l, Z: i, J: a, K: d, ut: f, st: u, it: p, ft: y } = t, { scrollbars: h } = f ? {} : e, { slot: w } = h || {}, D = /* @__PURE__ */ new Map(), m = Bo(u, "x"), g = Bo(u, "y"), S = ds([i, a, d], () => y && p ? i : a, c, w), _ = ($) => y && !p && Xe($) === d, L = () => {
2273
+ const { q: o, H: s } = _e(), { scrollbars: r } = o(), { slot: i } = r, { rt: l, Z: c, J: a, K: d, ut: f, st: u, it: p, ft: y } = t, { scrollbars: h } = f ? {} : e, { slot: w } = h || {}, D = /* @__PURE__ */ new Map(), m = Bo(u, "x"), g = Bo(u, "y"), S = ds([c, a, d], () => y && p ? c : a, i, w), _ = ($) => y && !p && Xe($) === d, z = () => {
2269
2274
  D.forEach(($) => {
2270
2275
  ($ || []).forEach((C) => {
2271
2276
  C.cancel();
2272
2277
  });
2273
2278
  });
2274
- }, z = ($, C, I) => {
2279
+ }, N = ($, C, I) => {
2275
2280
  const V = I ? je : jn;
2276
- Y($, (H) => {
2277
- V(H.Ut, C);
2281
+ Y($, (A) => {
2282
+ V(A.Ut, C);
2278
2283
  });
2279
2284
  }, P = ($, C) => {
2280
2285
  Y($, (I) => {
2281
- const [V, H] = C(I);
2282
- he(V, H);
2286
+ const [V, A] = C(I);
2287
+ he(V, A);
2283
2288
  });
2284
2289
  }, W = ($, C, I) => {
2285
2290
  P($, (V) => {
2286
- const { Gt: H, Xt: K } = V;
2287
- return [H, {
2288
- [I ? "width" : "height"]: `${(100 * gs(H, K, I, C)).toFixed(3)}%`
2291
+ const { Gt: A, Xt: Z } = V;
2292
+ return [A, {
2293
+ [I ? "width" : "height"]: `${(100 * gs(A, Z, I, C)).toFixed(3)}%`
2289
2294
  }];
2290
2295
  });
2291
- }, re = ($, C, I) => {
2296
+ }, ie = ($, C, I) => {
2292
2297
  !g && !g && P($, (V) => {
2293
- const { Gt: H, Xt: K, Ut: te } = V, ne = Ci(H, K, u, C, Bt(te), I);
2294
- return [H, {
2298
+ const { Gt: A, Xt: Z, Ut: te } = V, ne = Ci(A, Z, u, C, Bt(te), I);
2299
+ return [A, {
2295
2300
  transform: ne === ne ? $t(`${(100 * ne).toFixed(3)}%`, I) : ""
2296
2301
  }];
2297
2302
  });
@@ -2300,43 +2305,43 @@ const wo = (e, t, n, o) => {
2300
2305
  return [I, {
2301
2306
  transform: I ? $t([`${Le(u)}px`, `${qe(u)}px`]) : ""
2302
2307
  }];
2303
- }, F = [], b = [], v = [], x = ($, C, I) => {
2304
- const V = Fn(I), H = V ? I : !0, K = V ? !I : !0;
2305
- H && z(b, $, C), K && z(v, $, C);
2306
- }, k = ($) => {
2308
+ }, R = [], b = [], v = [], x = ($, C, I) => {
2309
+ const V = Rn(I), A = V ? I : !0, Z = V ? !I : !0;
2310
+ A && N(b, $, C), Z && N(v, $, C);
2311
+ }, T = ($) => {
2307
2312
  W(b, $, !0), W(v, $);
2308
- }, N = ($) => {
2309
- re(b, $, !0), re(v, $);
2313
+ }, H = ($) => {
2314
+ ie(b, $, !0), ie(v, $);
2310
2315
  }, B = () => {
2311
2316
  !g && !g && (y && P(b, q), y && P(v, q));
2312
- }, T = ({ Et: $ }) => {
2313
- L(), v.concat(b).forEach(({ Ut: C }) => {
2317
+ }, k = ({ Et: $ }) => {
2318
+ z(), v.concat(b).forEach(({ Ut: C }) => {
2314
2319
  _(C) && D.set(C, [Eo(C, m, $.x, !0), Eo(C, g, $.y)]);
2315
2320
  });
2316
2321
  }, E = ($) => {
2317
- const C = $ ? Rr : Fr, I = $ ? b : v, V = Vn(I) ? go : "", H = pt(`${we} ${C} ${V}`), K = pt(ls), te = pt(Jn), ne = {
2318
- Ut: H,
2319
- Xt: K,
2322
+ const C = $ ? Fr : Rr, I = $ ? b : v, V = Vn(I) ? go : "", A = pt(`${we} ${C} ${V}`), Z = pt(ls), te = pt(Jn), ne = {
2323
+ Ut: A,
2324
+ Xt: Z,
2320
2325
  Gt: te
2321
2326
  };
2322
- return s || je(H, Ar), De(H, K), De(K, te), ee(I, ne), ee(F, [() => {
2323
- L(), D.clear();
2324
- }, Pe.bind(0, H), n(ne, x, l, a, u, $ ? m : g, $)]), ne;
2325
- }, A = E.bind(0, !0), U = E.bind(0, !1), G = () => {
2326
- De(S, b[0].Ut), De(S, v[0].Ut), Jt(() => {
2327
+ return s || je(A, Ar), De(A, Z), De(Z, te), ee(I, ne), ee(R, [() => {
2328
+ z(), D.clear();
2329
+ }, Pe.bind(0, A), n(ne, x, l, a, u, $ ? m : g, $)]), ne;
2330
+ }, M = E.bind(0, !0), U = E.bind(0, !1), K = () => {
2331
+ De(S, b[0].Ut), De(S, v[0].Ut), Qt(() => {
2327
2332
  x(go);
2328
2333
  }, 300);
2329
2334
  };
2330
- return A(), U(), [{
2331
- Wt: k,
2332
- Zt: N,
2333
- Jt: T,
2335
+ return M(), U(), [{
2336
+ Wt: T,
2337
+ Zt: H,
2338
+ Jt: k,
2334
2339
  Kt: B,
2335
2340
  Qt: x,
2336
2341
  tn: {
2337
2342
  B: m,
2338
2343
  nn: b,
2339
- sn: A,
2344
+ sn: M,
2340
2345
  en: P.bind(0, b)
2341
2346
  },
2342
2347
  cn: {
@@ -2345,23 +2350,23 @@ const wo = (e, t, n, o) => {
2345
2350
  sn: U,
2346
2351
  en: P.bind(0, v)
2347
2352
  }
2348
- }, G, Re.bind(0, F)];
2353
+ }, K, Fe.bind(0, R)];
2349
2354
  }, Ei = (e, t, n, o) => {
2350
- let s, r, c, l, i, a = 0;
2351
- const d = fs({}), [f] = d, [u, p] = ut(), [y, h] = ut(), [w, D] = ut(100), [m, g] = ut(100), [S, _] = ut(100), [L, z] = ut(() => a), [P, W, re] = Oi(e, n.Ft, Di(t, n)), { J: q, et: F, it: b } = n.Ft, { Qt: v, Wt: x, Zt: k, Jt: N, Kt: B } = P, T = ($) => {
2352
- v(En, $, !0), v(En, $, !1);
2355
+ let s, r, i, l, c, a = 0;
2356
+ const d = fs({}), [f] = d, [u, p] = ut(), [y, h] = ut(), [w, D] = ut(100), [m, g] = ut(100), [S, _] = ut(100), [z, N] = ut(() => a), [P, W, ie] = Oi(e, n.Ft, Di(t, n)), { J: q, et: R, it: b } = n.Ft, { Qt: v, Wt: x, Zt: T, Jt: H, Kt: B } = P, k = ($) => {
2357
+ v(Bn, $, !0), v(Bn, $, !1);
2353
2358
  }, E = ($, C) => {
2354
- if (z(), $)
2359
+ if (N(), $)
2355
2360
  v(yo);
2356
2361
  else {
2357
2362
  const I = () => v(yo, !0);
2358
- a > 0 && !C ? L(I) : I();
2363
+ a > 0 && !C ? z(I) : I();
2359
2364
  }
2360
- }, A = () => {
2365
+ }, M = () => {
2361
2366
  l = r, l && E(!0);
2362
- }, U = [D, z, g, _, h, p, re, de(q, "pointerover", A, {
2367
+ }, U = [D, N, g, _, h, p, ie, de(q, "pointerover", M, {
2363
2368
  C: !0
2364
- }), de(q, "pointerenter", A), de(q, "pointerleave", () => {
2369
+ }), de(q, "pointerenter", M), de(q, "pointerleave", () => {
2365
2370
  l = !1, r && E(!1);
2366
2371
  }), de(q, "pointermove", () => {
2367
2372
  s && u(() => {
@@ -2369,42 +2374,42 @@ const wo = (e, t, n, o) => {
2369
2374
  s && E(!1);
2370
2375
  });
2371
2376
  });
2372
- }), de(F, "scroll", ($) => {
2377
+ }), de(R, "scroll", ($) => {
2373
2378
  y(() => {
2374
- k(n()), c && E(!0), w(() => {
2375
- c && !l && E(!1);
2379
+ T(n()), i && E(!0), w(() => {
2380
+ i && !l && E(!1);
2376
2381
  });
2377
2382
  }), o($), B();
2378
- })], G = f.bind(0);
2379
- return G.Ft = P, G.qt = W, [($, C, I) => {
2380
- const { Ht: V, Lt: H, It: K, St: te, Pt: ne } = I, { I: le } = _e(), Z = Bn(t, $, C), X = n(), { Et: pe, Ot: Ce, yt: $e, At: Ke } = X, [at, vt] = Z("showNativeOverlaidScrollbars"), [yt, fe] = Z("scrollbars.theme"), [ve, ye] = Z("scrollbars.visibility"), [Ie, Ht] = Z("scrollbars.autoHide"), [ln, an] = Z("scrollbars.autoHideSuspend"), [dn] = Z("scrollbars.autoHideDelay"), [un, Ne] = Z("scrollbars.dragScroll"), [At, fn] = Z("scrollbars.clickScroll"), Mt = ne && !C, Fe = V || H || te, Ze = K || ye, He = at && le.x && le.y, Pt = (Ae, Tt) => {
2383
+ })], K = f.bind(0);
2384
+ return K.Ft = P, K.qt = W, [($, C, I) => {
2385
+ const { Ht: V, Lt: A, It: Z, St: te, Pt: ne } = I, { I: le } = _e(), J = Ln(t, $, C), X = n(), { Et: pe, Ot: Ce, yt: $e, At: Ke } = X, [at, vt] = J("showNativeOverlaidScrollbars"), [yt, fe] = J("scrollbars.theme"), [ve, ye] = J("scrollbars.visibility"), [Ie, Ht] = J("scrollbars.autoHide"), [an, dn] = J("scrollbars.autoHideSuspend"), [un] = J("scrollbars.autoHideDelay"), [fn, Ne] = J("scrollbars.dragScroll"), [At, pn] = J("scrollbars.clickScroll"), Mt = ne && !C, Re = V || A || te, Ze = Z || ye, He = at && le.x && le.y, Pt = (Ae, kt) => {
2381
2386
  const dt = ve === "visible" || ve === "auto" && Ae === "scroll";
2382
- return v(Wr, dt, Tt), dt;
2387
+ return v(Wr, dt, kt), dt;
2383
2388
  };
2384
- if (a = dn, vt && v(Mr, He), fe && (v(i), v(yt, !0), i = yt), (an || Mt) && (ln && Mt && (Ke.x || Ke.y) ? (T(!1), S(() => U.push(de(F, "scroll", T.bind(0, !0), {
2389
+ if (a = un, vt && v(Mr, He), fe && (v(c), v(yt, !0), c = yt), (dn || Mt) && (an && Mt && (Ke.x || Ke.y) ? (k(!1), S(() => U.push(de(R, "scroll", k.bind(0, !0), {
2385
2390
  C: !0
2386
- })))) : T(!0)), Ht && (s = Ie === "move", r = Ie === "leave", c = Ie !== "never", E(!c, !0)), Ne && v(Yr, un), fn && v(Ur, At), Ze) {
2387
- const Ae = Pt(Ce.x, !0), Tt = Pt(Ce.y, !1);
2388
- v(Vr, !(Ae && Tt));
2391
+ })))) : k(!0)), Ht && (s = Ie === "move", r = Ie === "leave", i = Ie !== "never", E(!i, !0)), Ne && v(Yr, fn), pn && v(Ur, At), Ze) {
2392
+ const Ae = Pt(Ce.x, !0), kt = Pt(Ce.y, !1);
2393
+ v(Vr, !(Ae && kt));
2389
2394
  }
2390
- Fe && (x(X), k(X), N(X), B(), v(vo, !pe.x, !0), v(vo, !pe.y, !1), v(Pr, $e && !b));
2391
- }, G, Re.bind(0, U)];
2395
+ Re && (x(X), T(X), H(X), B(), v(vo, !pe.x, !0), v(vo, !pe.y, !1), v(Pr, $e && !b));
2396
+ }, K, Fe.bind(0, U)];
2392
2397
  }, hs = (e, t, n) => {
2393
2398
  ze(e) && e(t || void 0, n || void 0);
2394
2399
  }, nt = (e, t, n) => {
2395
- const { G: o, q: s, j: r, N: c } = _e(), l = ht(), i = Ot(e), a = i ? e : e.target, d = us(a);
2400
+ const { G: o, q: s, j: r, N: i } = _e(), l = ht(), c = Ot(e), a = c ? e : e.target, d = us(a);
2396
2401
  if (t && !d) {
2397
2402
  let f = !1;
2398
2403
  const u = (b) => {
2399
2404
  const v = ht()[jr], x = v && v.O;
2400
2405
  return x ? x(b, !0) : b;
2401
- }, p = ce({}, o(), u(t)), [y, h, w] = Kn(n), [D, m, g] = yi(e, p), [S, _, L] = Ei(e, p, m, (b) => w("scroll", [F, b])), z = (b, v) => D(b, !!v), P = z.bind(0, {}, !0), W = r(P), re = c(P), q = (b) => {
2402
- oi(a), W(), re(), L(), g(), f = !0, w("destroyed", [F, !!b]), h();
2403
- }, F = {
2406
+ }, p = ce({}, o(), u(t)), [y, h, w] = Kn(n), [D, m, g] = yi(e, p), [S, _, z] = Ei(e, p, m, (b) => w("scroll", [R, b])), N = (b, v) => D(b, !!v), P = N.bind(0, {}, !0), W = r(P), ie = i(P), q = (b) => {
2407
+ oi(a), W(), ie(), z(), g(), f = !0, w("destroyed", [R, !!b]), h();
2408
+ }, R = {
2404
2409
  options(b, v) {
2405
2410
  if (b) {
2406
- const x = v ? o() : {}, k = ts(p, ce(x, u(b)));
2407
- Un(k) || (ce(p, k), z(k));
2411
+ const x = v ? o() : {}, T = ts(p, ce(x, u(b)));
2412
+ Un(T) || (ce(p, T), N(T));
2408
2413
  }
2409
2414
  return ce({}, p);
2410
2415
  },
@@ -2413,69 +2418,69 @@ const wo = (e, t, n, o) => {
2413
2418
  b && v && h(b, v);
2414
2419
  },
2415
2420
  state() {
2416
- const { zt: b, Et: v, Ot: x, At: k, tt: N, $t: B, yt: T } = m();
2421
+ const { zt: b, Et: v, Ot: x, At: T, tt: H, $t: B, yt: k } = m();
2417
2422
  return ce({}, {
2418
2423
  overflowEdge: b,
2419
2424
  overflowAmount: v,
2420
2425
  overflowStyle: x,
2421
- hasOverflow: k,
2422
- padding: N,
2426
+ hasOverflow: T,
2427
+ padding: H,
2423
2428
  paddingAbsolute: B,
2424
- directionRTL: T,
2429
+ directionRTL: k,
2425
2430
  destroyed: f
2426
2431
  });
2427
2432
  },
2428
2433
  elements() {
2429
- const { Z: b, J: v, tt: x, K: k, nt: N, st: B, et: T } = m.Ft, { tn: E, cn: A } = _.Ft, U = ($) => {
2434
+ const { Z: b, J: v, tt: x, K: T, nt: H, st: B, et: k } = m.Ft, { tn: E, cn: M } = _.Ft, U = ($) => {
2430
2435
  const { Gt: C, Xt: I, Ut: V } = $;
2431
2436
  return {
2432
2437
  scrollbar: V,
2433
2438
  track: I,
2434
2439
  handle: C
2435
2440
  };
2436
- }, G = ($) => {
2441
+ }, K = ($) => {
2437
2442
  const { nn: C, sn: I } = $, V = U(C[0]);
2438
2443
  return ce({}, V, {
2439
2444
  clone: () => {
2440
- const H = U(I());
2441
- return S({}, !0, {}), H;
2445
+ const A = U(I());
2446
+ return S({}, !0, {}), A;
2442
2447
  }
2443
2448
  });
2444
2449
  };
2445
2450
  return ce({}, {
2446
2451
  target: b,
2447
2452
  host: v,
2448
- padding: x || k,
2449
- viewport: k,
2450
- content: N || k,
2453
+ padding: x || T,
2454
+ viewport: T,
2455
+ content: H || T,
2451
2456
  scrollOffsetElement: B,
2452
- scrollEventElement: T,
2453
- scrollbarHorizontal: G(E),
2454
- scrollbarVertical: G(A)
2457
+ scrollEventElement: k,
2458
+ scrollbarHorizontal: K(E),
2459
+ scrollbarVertical: K(M)
2455
2460
  });
2456
2461
  },
2457
- update: (b) => z({}, b),
2462
+ update: (b) => N({}, b),
2458
2463
  destroy: q.bind(0)
2459
2464
  };
2460
2465
  return m.Nt((b, v, x) => {
2461
2466
  S(v, x, b);
2462
- }), ni(a, F), Y(xe(l), (b) => hs(l[b], 0, F)), ti(m.Ft.it, s().cancel, !i && e.cancel) ? (q(!0), F) : (m.qt(), _.qt(), w("initialized", [F]), m.Nt((b, v, x) => {
2463
- const { wt: k, St: N, vt: B, Ht: T, Lt: E, It: A, bt: U, Tt: G } = b;
2464
- w("updated", [F, {
2467
+ }), ni(a, R), Y(xe(l), (b) => hs(l[b], 0, R)), ti(m.Ft.it, s().cancel, !c && e.cancel) ? (q(!0), R) : (m.qt(), _.qt(), w("initialized", [R]), m.Nt((b, v, x) => {
2468
+ const { wt: T, St: H, vt: B, Ht: k, Lt: E, It: M, bt: U, Tt: K } = b;
2469
+ w("updated", [R, {
2465
2470
  updateHints: {
2466
- sizeChanged: k,
2467
- directionChanged: N,
2471
+ sizeChanged: T,
2472
+ directionChanged: H,
2468
2473
  heightIntrinsicChanged: B,
2469
- overflowEdgeChanged: T,
2474
+ overflowEdgeChanged: k,
2470
2475
  overflowAmountChanged: E,
2471
- overflowStyleChanged: A,
2476
+ overflowStyleChanged: M,
2472
2477
  contentMutation: U,
2473
- hostMutation: G
2478
+ hostMutation: K
2474
2479
  },
2475
2480
  changedOptions: v,
2476
2481
  force: x
2477
2482
  }]);
2478
- }), F.update(!0), F);
2483
+ }), R.update(!0), R);
2479
2484
  }
2480
2485
  return d;
2481
2486
  };
@@ -2484,10 +2489,10 @@ nt.plugin = (e) => {
2484
2489
  };
2485
2490
  nt.valid = (e) => {
2486
2491
  const t = e && e.elements, n = ze(t) && t();
2487
- return Dn(n) && !!us(n.target);
2492
+ return Tn(n) && !!us(n.target);
2488
2493
  };
2489
2494
  nt.env = () => {
2490
- const { k: e, I: t, A: n, V: o, Y: s, H: r, B: c, U: l, W: i, q: a, F: d, G: f, X: u } = _e();
2495
+ const { k: e, I: t, A: n, V: o, Y: s, H: r, B: i, U: l, W: c, q: a, F: d, G: f, X: u } = _e();
2491
2496
  return ce({}, {
2492
2497
  scrollbarsSize: e,
2493
2498
  scrollbarsOverlaid: t,
@@ -2495,9 +2500,9 @@ nt.env = () => {
2495
2500
  rtlScrollBehavior: o,
2496
2501
  flexboxGlue: s,
2497
2502
  cssCustomProperties: r,
2498
- scrollTimeline: c,
2503
+ scrollTimeline: i,
2499
2504
  staticDefaultInitialization: l,
2500
- staticDefaultOptions: i,
2505
+ staticDefaultOptions: c,
2501
2506
  getDefaultInitialization: a,
2502
2507
  setDefaultInitialization: d,
2503
2508
  getDefaultOptions: f,
@@ -2511,48 +2516,48 @@ const Bi = () => {
2511
2516
  return [a, a];
2512
2517
  }
2513
2518
  let e, t;
2514
- const n = window, o = typeof n.requestIdleCallback == "function", s = n.requestAnimationFrame, r = n.cancelAnimationFrame, c = o ? n.requestIdleCallback : s, l = o ? n.cancelIdleCallback : r, i = () => {
2519
+ const n = window, o = typeof n.requestIdleCallback == "function", s = n.requestAnimationFrame, r = n.cancelAnimationFrame, i = o ? n.requestIdleCallback : s, l = o ? n.cancelIdleCallback : r, c = () => {
2515
2520
  l(e), r(t);
2516
2521
  };
2517
2522
  return [
2518
2523
  (a, d) => {
2519
- i(), e = c(
2524
+ c(), e = i(
2520
2525
  o ? () => {
2521
- i(), t = s(a);
2526
+ c(), t = s(a);
2522
2527
  } : a,
2523
2528
  typeof d == "object" ? d : { timeout: 2233 }
2524
2529
  );
2525
2530
  },
2526
- i
2531
+ c
2527
2532
  ];
2528
2533
  }, vs = (e) => {
2529
2534
  let t = null, n, o, s;
2530
- const r = Xt(e || {}), [c, l] = Bi();
2535
+ const r = Gt(e || {}), [i, l] = Bi();
2531
2536
  return st(
2532
2537
  () => {
2533
- var i;
2534
- return Q((i = r.value) == null ? void 0 : i.defer);
2538
+ var c;
2539
+ return G((c = r.value) == null ? void 0 : c.defer);
2535
2540
  },
2536
- (i) => {
2537
- s = i;
2541
+ (c) => {
2542
+ s = c;
2538
2543
  },
2539
2544
  { deep: !0, immediate: !0 }
2540
2545
  ), st(
2541
2546
  () => {
2542
- var i;
2543
- return Q((i = r.value) == null ? void 0 : i.options);
2547
+ var c;
2548
+ return G((c = r.value) == null ? void 0 : c.options);
2544
2549
  },
2545
- (i) => {
2546
- n = i, nt.valid(t) && t.options(n || {}, !0);
2550
+ (c) => {
2551
+ n = c, nt.valid(t) && t.options(n || {}, !0);
2547
2552
  },
2548
2553
  { deep: !0, immediate: !0 }
2549
2554
  ), st(
2550
2555
  () => {
2551
- var i;
2552
- return Q((i = r.value) == null ? void 0 : i.events);
2556
+ var c;
2557
+ return G((c = r.value) == null ? void 0 : c.events);
2553
2558
  },
2554
- (i) => {
2555
- o = i, nt.valid(t) && t.on(
2559
+ (c) => {
2560
+ o = c, nt.valid(t) && t.on(
2556
2561
  o || {},
2557
2562
  !0
2558
2563
  );
@@ -2561,11 +2566,11 @@ const Bi = () => {
2561
2566
  ), No(() => {
2562
2567
  l(), t == null || t.destroy();
2563
2568
  }), [
2564
- (i) => {
2569
+ (c) => {
2565
2570
  if (nt.valid(t))
2566
2571
  return t;
2567
- const a = () => t = nt(i, n || {}, o || {});
2568
- s ? c(a, s) : a();
2572
+ const a = () => t = nt(c, n || {}, o || {});
2573
+ s ? i(a, s) : a();
2569
2574
  },
2570
2575
  () => t
2571
2576
  ];
@@ -2584,7 +2589,7 @@ const Bi = () => {
2584
2589
  updated: "osUpdated",
2585
2590
  destroyed: "osDestroyed",
2586
2591
  scroll: "osScroll"
2587
- }, { element: r, options: c, events: l, defer: i } = Ts(o), a = Xt(null), d = Xt(null), f = se(), u = se(!1), [p, y] = vs({ options: c, events: f, defer: i });
2592
+ }, { element: r, options: i, events: l, defer: c } = ks(o), a = Gt(null), d = Gt(null), f = re(), u = re(!1), [p, y] = vs({ options: i, events: f, defer: c });
2588
2593
  return t({
2589
2594
  osInstance: y,
2590
2595
  getElement: () => a.value
@@ -2603,7 +2608,7 @@ const Bi = () => {
2603
2608
  return (m = y()) == null ? void 0 : m.destroy();
2604
2609
  }));
2605
2610
  }), st(
2606
- () => Q(l),
2611
+ () => G(l),
2607
2612
  (h) => {
2608
2613
  const w = h || {};
2609
2614
  f.value = Object.keys(s).reduce((D, m) => {
@@ -2618,13 +2623,13 @@ const Bi = () => {
2618
2623
  }, {});
2619
2624
  },
2620
2625
  { deep: !0, immediate: !0 }
2621
- ), (h, w) => (O(), J(Ve(Q(r)), {
2626
+ ), (h, w) => (O(), Q(Ve(G(r)), {
2622
2627
  "data-overlayscrollbars-initialize": "",
2623
2628
  ref_key: "elementRef",
2624
2629
  ref: a
2625
2630
  }, {
2626
- default: oe(() => [
2627
- u.value ? (O(), ie("div", {
2631
+ default: se(() => [
2632
+ u.value ? (O(), oe("div", {
2628
2633
  key: 0,
2629
2634
  ref_key: "slotRef",
2630
2635
  ref: d,
@@ -2646,7 +2651,7 @@ const Bi = () => {
2646
2651
  // 'never', 'scroll', 'leave' and 'move' - когда гасить
2647
2652
  },
2648
2653
  setup(e) {
2649
- const t = e, n = se(null), [o, s] = vs({
2654
+ const t = e, n = re(null), [o, s] = vs({
2650
2655
  defer: !0,
2651
2656
  events: {
2652
2657
  initialized: () => {
@@ -2670,7 +2675,7 @@ const Bi = () => {
2670
2675
  autoHide: t.autoHide
2671
2676
  }
2672
2677
  });
2673
- }), Ao(() => o(document.body)), (r, c) => j(r.$slots, "default");
2678
+ }), Ao(() => o(document.body)), (r, i) => j(r.$slots, "default");
2674
2679
  }
2675
2680
  };
2676
2681
  const zi = {
@@ -2683,7 +2688,7 @@ const zi = {
2683
2688
  // 'never', 'scroll', 'leave' and 'move' - когда гасить
2684
2689
  },
2685
2690
  setup(e) {
2686
- const t = e, n = se(null);
2691
+ const t = e, n = re(null);
2687
2692
  return st(() => et.state.theme, (o) => {
2688
2693
  n.value.osInstance().options({
2689
2694
  scrollbars: {
@@ -2691,7 +2696,7 @@ const zi = {
2691
2696
  autoHide: t.autoHide
2692
2697
  }
2693
2698
  });
2694
- }), (o, s) => (O(), J(Q(Li), {
2699
+ }), (o, s) => (O(), Q(G(Li), {
2695
2700
  class: "os-vue",
2696
2701
  ref_key: "osRef",
2697
2702
  ref: n,
@@ -2704,14 +2709,14 @@ const zi = {
2704
2709
  events: {},
2705
2710
  defer: ""
2706
2711
  }, {
2707
- default: oe(() => [
2712
+ default: se(() => [
2708
2713
  j(o.$slots, "default", {}, void 0, !0)
2709
2714
  ]),
2710
2715
  _: 3
2711
2716
  }, 8, ["options"]));
2712
2717
  }
2713
2718
  }, cc = /* @__PURE__ */ Dt(zi, [["__scopeId", "data-v-9b322173"]]);
2714
- const Ni = { class: "modal-dialog" }, Hi = { class: "modal-content" }, Ai = { class: "modal-header" }, Mi = { class: "modal-title" }, Pi = { class: "modal-body" }, Ri = { class: "modal-footer" }, Fi = {
2719
+ const Ni = { class: "modal-dialog" }, Hi = { class: "modal-content" }, Ai = { class: "modal-header" }, Mi = { class: "modal-title" }, Pi = { class: "modal-body" }, Fi = { class: "modal-footer" }, Ri = {
2715
2720
  __name: "DModal",
2716
2721
  props: {
2717
2722
  show: Boolean,
@@ -2721,25 +2726,25 @@ const Ni = { class: "modal-dialog" }, Hi = { class: "modal-content" }, Ai = { cl
2721
2726
  emits: ["open", "close"],
2722
2727
  setup(e, { expose: t, emit: n }) {
2723
2728
  const o = e;
2724
- Is((i) => ({
2729
+ Is((c) => ({
2725
2730
  "558e9e46": o.width
2726
2731
  }));
2727
- const s = se(null), r = se(!1);
2732
+ const s = re(null), r = re(!1);
2728
2733
  r.value = o == null ? void 0 : o.show;
2729
- const c = () => {
2734
+ const i = () => {
2730
2735
  r.value = !0, n("open", s);
2731
2736
  }, l = () => {
2732
2737
  r.value = !1, n("close", s);
2733
2738
  };
2734
2739
  return t({
2735
- show: c,
2740
+ show: i,
2736
2741
  hide: l
2737
- }), (i, a) => {
2742
+ }), (c, a) => {
2738
2743
  const d = Mo("keydown");
2739
- return O(), J(Po, { to: "body" }, [
2744
+ return O(), Q(Po, { to: "body" }, [
2740
2745
  ct(Lo, { name: "fade" }, {
2741
- default: oe(() => [
2742
- r.value ? Mn((O(), ie("div", {
2746
+ default: se(() => [
2747
+ r.value ? Mn((O(), oe("div", {
2743
2748
  key: 0,
2744
2749
  ref_key: "modalRef",
2745
2750
  ref: s,
@@ -2749,14 +2754,14 @@ const Ni = { class: "modal-dialog" }, Hi = { class: "modal-content" }, Ai = { cl
2749
2754
  ae("div", Hi, [
2750
2755
  ae("div", Ai, [
2751
2756
  ae("h5", Mi, [
2752
- j(i.$slots, "modal-title", {}, void 0, !0)
2757
+ j(c.$slots, "modal-title", {}, void 0, !0)
2753
2758
  ])
2754
2759
  ]),
2755
2760
  ae("div", Pi, [
2756
- j(i.$slots, "default", {}, void 0, !0)
2761
+ j(c.$slots, "default", {}, void 0, !0)
2757
2762
  ]),
2758
- ae("div", Ri, [
2759
- j(i.$slots, "modal-footer", {}, void 0, !0)
2763
+ ae("div", Fi, [
2764
+ j(c.$slots, "modal-footer", {}, void 0, !0)
2760
2765
  ])
2761
2766
  ])
2762
2767
  ])
@@ -2769,8 +2774,8 @@ const Ni = { class: "modal-dialog" }, Hi = { class: "modal-content" }, Ai = { cl
2769
2774
  ]);
2770
2775
  };
2771
2776
  }
2772
- }, ys = /* @__PURE__ */ Dt(Fi, [["__scopeId", "data-v-82cadd63"]]), mt = Xt();
2773
- function Nn(e) {
2777
+ }, ys = /* @__PURE__ */ Dt(Ri, [["__scopeId", "data-v-82cadd63"]]), mt = Gt();
2778
+ function Hn(e) {
2774
2779
  e === void 0 && (e = mt.value.comp.returnValue()), mt.value.resolve(e), mt.value = null;
2775
2780
  }
2776
2781
  function bs(e, t, n = "default") {
@@ -2794,7 +2799,7 @@ Ho({
2794
2799
  transitionAttrs: Object
2795
2800
  },
2796
2801
  setup() {
2797
- const e = se();
2802
+ const e = re();
2798
2803
  return st(e, () => {
2799
2804
  mt.value && (mt.value.comp = e.value);
2800
2805
  }), {
@@ -2813,19 +2818,19 @@ const Wi = { style: { display: "flex", "flex-direction": "row", "justify-content
2813
2818
  const n = e;
2814
2819
  return t({
2815
2820
  returnValue: () => !0
2816
- }), (s, r) => (O(), J(ys, { show: !0 }, {
2817
- "modal-title": oe(() => [
2821
+ }), (s, r) => (O(), Q(ys, { show: !0 }, {
2822
+ "modal-title": se(() => [
2818
2823
  tt(ot(n.title), 1)
2819
2824
  ]),
2820
- default: oe(() => [
2825
+ default: se(() => [
2821
2826
  tt(ot(n.message), 1)
2822
2827
  ]),
2823
- "modal-footer": oe(() => [
2828
+ "modal-footer": se(() => [
2824
2829
  ae("div", Wi, [
2825
- ct(Gt, {
2826
- onClick: r[0] || (r[0] = (c) => Q(Nn)())
2830
+ ct(Kt, {
2831
+ onClick: r[0] || (r[0] = (i) => G(Hn)())
2827
2832
  }, {
2828
- default: oe(() => [
2833
+ default: se(() => [
2829
2834
  tt("Закрыть")
2830
2835
  ]),
2831
2836
  _: 1
@@ -2845,28 +2850,28 @@ const Wi = { style: { display: "flex", "flex-direction": "row", "justify-content
2845
2850
  const n = e;
2846
2851
  return t({
2847
2852
  returnValue: () => !0
2848
- }), (s, r) => (O(), J(ys, { show: !0 }, {
2849
- "modal-title": oe(() => [
2853
+ }), (s, r) => (O(), Q(ys, { show: !0 }, {
2854
+ "modal-title": se(() => [
2850
2855
  tt(ot(n.title), 1)
2851
2856
  ]),
2852
- default: oe(() => [
2857
+ default: se(() => [
2853
2858
  tt(ot(n.message), 1)
2854
2859
  ]),
2855
- "modal-footer": oe(() => [
2860
+ "modal-footer": se(() => [
2856
2861
  ae("div", Ui, [
2857
- ct(Gt, {
2858
- onClick: r[0] || (r[0] = (c) => Q(Nn)())
2862
+ ct(Kt, {
2863
+ onClick: r[0] || (r[0] = (i) => G(Hn)())
2859
2864
  }, {
2860
- default: oe(() => [
2865
+ default: se(() => [
2861
2866
  tt("Да")
2862
2867
  ]),
2863
2868
  _: 1
2864
2869
  }),
2865
- ct(Gt, {
2870
+ ct(Kt, {
2866
2871
  class: "button-red",
2867
- onClick: r[1] || (r[1] = (c) => Q(Nn)(!1))
2872
+ onClick: r[1] || (r[1] = (i) => G(Hn)(!1))
2868
2873
  }, {
2869
- default: oe(() => [
2874
+ default: se(() => [
2870
2875
  tt("Нет")
2871
2876
  ]),
2872
2877
  _: 1
@@ -2885,42 +2890,46 @@ const Wi = { style: { display: "flex", "flex-direction": "row", "justify-content
2885
2890
  noSelect: {
2886
2891
  type: Boolean,
2887
2892
  default: !0
2888
- }
2893
+ },
2894
+ renderItemTitle: Function,
2895
+ beforeItem: Function
2889
2896
  },
2890
2897
  emits: ["select"],
2891
2898
  setup(e, { expose: t, emit: n }) {
2892
2899
  const o = e;
2893
- let s = se(null), r = se(!1);
2894
- const c = () => {
2900
+ let s = re(null), r = re(!1);
2901
+ const i = () => {
2895
2902
  rt.emit("menu-show-request"), r.value = !0;
2896
2903
  }, l = () => {
2897
2904
  r.value = !1;
2898
- }, i = () => r.value;
2905
+ }, c = () => r.value;
2899
2906
  rt.on("menu-show-request", () => {
2900
2907
  var f;
2901
2908
  (f = s.value) == null || f.collapseAll(), l();
2902
2909
  }), t({
2903
- show: c,
2910
+ show: i,
2904
2911
  hide: l,
2905
2912
  elementSize: () => s.value.elementSize(),
2906
- isShowed: i
2913
+ isShowed: c
2907
2914
  });
2908
2915
  const d = (f) => {
2909
2916
  n("select", f), f.model.children || l();
2910
2917
  };
2911
2918
  return (f, u) => {
2912
2919
  const p = Mo("click-outside");
2913
- return O(), J(Po, { to: "body" }, [
2914
- Q(r) ? Mn((O(), J(Wo, {
2920
+ return O(), Q(Po, { to: "body" }, [
2921
+ G(r) ? Mn((O(), Q(Wo, {
2915
2922
  key: 0,
2916
2923
  ref_key: "treeRef",
2917
2924
  ref: s,
2918
2925
  items: o.items,
2919
2926
  "no-select": o.noSelect,
2920
2927
  class: Oe(o.class),
2921
- style: ke(o.style),
2922
- onSelect: d
2923
- }, null, 8, ["items", "no-select", "class", "style"])), [
2928
+ style: Te(o.style),
2929
+ onSelect: d,
2930
+ "render-title": o.renderItemTitle,
2931
+ "before-item": o.beforeItem
2932
+ }, null, 8, ["items", "no-select", "class", "style", "render-title", "before-item"])), [
2924
2933
  [p, () => l()]
2925
2934
  ]) : ue("", !0)
2926
2935
  ]);
@@ -2935,33 +2944,35 @@ const Wi = { style: { display: "flex", "flex-direction": "row", "justify-content
2935
2944
  default: null
2936
2945
  },
2937
2946
  items: Array,
2938
- menuStyle: Object
2947
+ menuStyle: Object,
2948
+ renderItemTitle: Function,
2949
+ beforeItem: Function
2939
2950
  },
2940
2951
  emits: ["select"],
2941
2952
  setup(e, { expose: t, emit: n }) {
2942
- const o = e, s = se(null), r = se(null), c = se(0), l = se(0), i = () => {
2953
+ const o = e, s = re(null), r = re(null), i = re(0), l = re(0), c = () => {
2943
2954
  if (s.value.isShowed()) {
2944
2955
  s.value.hide();
2945
2956
  return;
2946
2957
  }
2947
- s.value.show(), Ro(() => {
2958
+ s.value.show(), Fo(() => {
2948
2959
  const f = s.value.elementSize(), u = r.value.elementSize(), p = window.innerWidth, y = window.innerHeight;
2949
- c.value = p - (u.x + u.width) < f.width ? u.left - f.width + u.width : u.left, l.value = y - (u.y + u.height) < f.height ? u.top - f.height - 5 : u.height + u.top + 5;
2960
+ i.value = p - (u.x + u.width) < f.width ? u.left - f.width + u.width : u.left, l.value = y - (u.y + u.height) < f.height ? u.top - f.height - 5 : u.height + u.top + 5;
2950
2961
  });
2951
2962
  }, a = (f) => {
2952
2963
  n("select", f);
2953
- }, d = R(() => ({ left: c.value + "px", top: l.value + "px", ...o.menuStyle }));
2964
+ }, d = F(() => ({ left: i.value + "px", top: l.value + "px", ...o.menuStyle }));
2954
2965
  return t({
2955
- show: i
2956
- }), (f, u) => (O(), ie("div", qi, [
2957
- ct(Gt, {
2966
+ show: c
2967
+ }), (f, u) => (O(), oe("div", qi, [
2968
+ ct(Kt, {
2958
2969
  ref_key: "buttonRef",
2959
2970
  ref: r,
2960
2971
  class: Oe(o.class),
2961
2972
  icon: o.icon,
2962
- onClick: Ue(i, ["stop", "prevent"])
2973
+ onClick: Ue(c, ["stop", "prevent"])
2963
2974
  }, {
2964
- default: oe(() => [
2975
+ default: se(() => [
2965
2976
  j(f.$slots, "default")
2966
2977
  ]),
2967
2978
  _: 3
@@ -2971,53 +2982,59 @@ const Wi = { style: { display: "flex", "flex-direction": "row", "justify-content
2971
2982
  ref: s,
2972
2983
  items: o.items,
2973
2984
  class: "dropdown-menu",
2974
- style: ke(d.value),
2985
+ style: Te(d.value),
2975
2986
  "no-select": !0,
2976
- onSelect: a
2977
- }, null, 8, ["items", "style"])
2987
+ onSelect: a,
2988
+ "render-item-title": o.renderItemTitle,
2989
+ "before-item": o.beforeItem
2990
+ }, null, 8, ["items", "style", "render-item-title", "before-item"])
2978
2991
  ]));
2979
2992
  }
2980
2993
  }, ac = {
2981
2994
  __name: "DContextMenu",
2982
2995
  props: {
2983
- items: Array
2996
+ items: Array,
2997
+ renderItemTitle: Function,
2998
+ beforeItem: Function
2984
2999
  },
2985
3000
  emits: ["select"],
2986
3001
  setup(e, { expose: t, emit: n }) {
2987
- const o = e, s = se(null), r = se(0), c = se(0), l = R(() => ({
3002
+ const o = e, s = re(null), r = re(0), i = re(0), l = F(() => ({
2988
3003
  left: r.value + "px",
2989
- top: c.value + "px"
2990
- })), i = (d) => {
2991
- s.value.show(), Ro(() => {
3004
+ top: i.value + "px"
3005
+ })), c = (d) => {
3006
+ s.value.show(), Fo(() => {
2992
3007
  const f = s.value.elementSize(), u = window.innerWidth, p = window.innerHeight;
2993
- r.value = u - d.pageX < f.width ? d.pageX - f.width : d.pageX, c.value = p - d.pageY < f.height ? d.pageY - f.height : d.pageY;
3008
+ r.value = u - d.pageX < f.width ? d.pageX - f.width : d.pageX, i.value = p - d.pageY < f.height ? d.pageY - f.height : d.pageY;
2994
3009
  });
2995
3010
  }, a = (d) => {
2996
3011
  n("select", d);
2997
3012
  };
2998
3013
  return t({
2999
- show: i
3000
- }), (d, f) => (O(), J(ws, {
3014
+ show: c
3015
+ }), (d, f) => (O(), Q(ws, {
3001
3016
  ref_key: "dMenuRef",
3002
3017
  ref: s,
3003
3018
  onSelect: a,
3004
3019
  items: o.items,
3005
- style: ke(l.value),
3020
+ style: Te(l.value),
3006
3021
  class: "context-menu",
3007
- "no-select": !0
3008
- }, null, 8, ["items", "style"]));
3022
+ "no-select": !0,
3023
+ "render-item-title": o.renderItemTitle,
3024
+ "before-item": o.beforeItem
3025
+ }, null, 8, ["items", "style", "render-item-title", "before-item"]));
3009
3026
  }
3010
3027
  }, ji = {}, Xi = { class: "d-panel" };
3011
3028
  function Gi(e, t) {
3012
- return O(), ie("div", Xi, [
3029
+ return O(), oe("div", Xi, [
3013
3030
  j(e.$slots, "default")
3014
3031
  ]);
3015
3032
  }
3016
3033
  const Ki = /* @__PURE__ */ Dt(ji, [["render", Gi]]), Zi = { class: "card-header" }, Ji = { class: "modal-title" }, Qi = { class: "card-body" }, ec = { class: "card-footer" }, dc = {
3017
3034
  __name: "DCard",
3018
3035
  setup(e) {
3019
- return (t, n) => (O(), J(Ki, { class: "d-card" }, {
3020
- default: oe(() => [
3036
+ return (t, n) => (O(), Q(Ki, { class: "d-card" }, {
3037
+ default: se(() => [
3021
3038
  ae("div", Zi, [
3022
3039
  ae("h5", Ji, [
3023
3040
  j(t.$slots, "title")
@@ -3054,7 +3071,7 @@ export {
3054
3071
  oc as DAccordion,
3055
3072
  Vi as DAlertDialog,
3056
3073
  Ns as DBadge,
3057
- Gt as DButton,
3074
+ Kt as DButton,
3058
3075
  dc as DCard,
3059
3076
  Hs as DCollapse,
3060
3077
  rc as DConfigProvider,
@@ -3078,10 +3095,10 @@ export {
3078
3095
  Ki as DPanel,
3079
3096
  cc as DScroll,
3080
3097
  ic as DScrollProvider,
3081
- Kt as DTransferStore,
3098
+ Zt as DTransferStore,
3082
3099
  Wo as DTree,
3083
3100
  Js as DTreeItem,
3084
- M as DTreeStore,
3101
+ L as DTreeStore,
3085
3102
  uc as alert,
3086
3103
  pc as clickOutside,
3087
3104
  fc as confirm,