doph-js 0.0.89 → 0.0.90

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