doph-js 0.0.81 → 0.0.83

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