@das-fed/ui 6.4.0-dev.62 → 6.4.0-dev.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/esm-map.json +3 -1
  2. package/package.json +5 -5
  3. package/packages/components/autocomplete/index.js +1 -1
  4. package/packages/components/autocomplete/index.js.gz +0 -0
  5. package/packages/components/autocomplete/src/type.d.ts +5 -0
  6. package/packages/components/autocomplete/style.css +1 -1
  7. package/packages/components/autocomplete/style.css.gz +0 -0
  8. package/packages/components/edit-table/index.js +273 -269
  9. package/packages/components/edit-table/index.js.gz +0 -0
  10. package/packages/components/index.d.ts +1 -0
  11. package/packages/components/index.js +1 -0
  12. package/packages/components/search-form/index.js +233 -232
  13. package/packages/components/search-form/index.js.gz +0 -0
  14. package/packages/components/search-form/src/Index.vue.d.ts +3 -1
  15. package/packages/components/search-form/src/type.d.ts +3 -0
  16. package/packages/components/search-form/style.css +1 -1
  17. package/packages/components/search-form/style.css.gz +0 -0
  18. package/packages/components/tree-v2/i18n/index.d.ts +31 -0
  19. package/packages/components/tree-v2/index.d.ts +585 -0
  20. package/packages/components/tree-v2/index.js +3371 -0
  21. package/packages/components/tree-v2/index.js.gz +0 -0
  22. package/packages/components/tree-v2/src/App.vue.d.ts +99 -0
  23. package/packages/components/tree-v2/src/empty.vue.d.ts +19 -0
  24. package/packages/components/tree-v2/src/expand-icon.vue.d.ts +2 -0
  25. package/packages/components/tree-v2/src/hooks/use-lazy-tree.d.ts +15 -0
  26. package/packages/components/tree-v2/src/hooks/use-style.d.ts +5 -0
  27. package/packages/components/tree-v2/src/hooks/use-tree.d.ts +43 -0
  28. package/packages/components/tree-v2/src/type.d.ts +283 -0
  29. package/packages/components/tree-v2/src/utils.d.ts +18 -0
  30. package/packages/components/tree-v2/style.css +1 -0
  31. package/packages/components/tree-v2/style.css.gz +0 -0
  32. package/packages/components/tree-v2/theme/base.d.ts +16 -0
@@ -0,0 +1,3371 @@
1
+ import '@das-fed/ui/packages/components/tree-v2/style.css';
2
+ import { defineComponent as $r, openBlock as C, createBlock as De, unref as c, createElementBlock as x, createElementVNode as Oe, renderSlot as M, createTextVNode as je, toDisplayString as me, ref as F, computed as ie, watch as Qe, nextTick as ve, onMounted as mr, onBeforeUnmount as Gn, pushScopeId as ei, popScopeId as ti, withScopeId as ri, markRaw as ni, shallowReactive as ai, resolveComponent as ii, resolveDirective as oi, withDirectives as ge, normalizeClass as Fe, createCommentVNode as j, resolveDynamicComponent as Rr, normalizeStyle as nr, withCtx as be, Fragment as Ae, renderList as It, mergeProps as ar, toHandlers as si, createVNode as Ie, useAttrs as li, isRef as ci, createSlots as jt, withModifiers as Xe, vShow as ui } from "vue";
3
+ import { withInstall as Hn } from "@das-fed/utils/with-install/index";
4
+ import { setThemeRule as fi } from "@das-fed/web/packages/theme/index";
5
+ import { t as _e, setI18nRule as di } from "@das-fed/web/packages/i18n/index";
6
+ import { DasAutoRegisterIcon as hi, DasIcon as pt } from "@das-fed/ui/packages/components/icon/index";
7
+ import { DasInput as vi } from "@das-fed/ui/packages/components/input/index";
8
+ import { vOverlay as Xt } from "@das-fed/ui/packages/components/overlay/index";
9
+ import { vDasTooltip as Ee } from "@das-fed/ui/packages/components/text-tooltip/index";
10
+ import { ElLoading as Gr, ElTreeV2 as yi, ElPopover as pi } from "element-plus";
11
+ import "element-plus/es/components/popover/style/css";
12
+ import "element-plus/es/components/tree-v2/style/css";
13
+ import { DasIconCaretRight as gi } from "@das-fed/ui/packages/icons/caret-right/index";
14
+ import { arrUnique as Hr } from "@das-fed/utils/common-tools";
15
+ import "element-plus/es/components/loading/style/css";
16
+ import { SizeWatcher as bi } from "@das-fed/utils/size-watcher";
17
+ const $i = /* @__PURE__ */ $r({
18
+ __name: "expand-icon",
19
+ setup(e) {
20
+ return (t, r) => (C(), De(c(gi), {
21
+ class: "das-tree__expand-icon",
22
+ size: "medium"
23
+ }));
24
+ }
25
+ }), Wn = (e, t) => {
26
+ const r = e.__vccOpts || e;
27
+ for (const [n, a] of t)
28
+ r[n] = a;
29
+ return r;
30
+ }, mi = /* @__PURE__ */ Wn($i, [["__scopeId", "data-v-4f1cb6b8"]]), _i = { class: "tree-empty-block" }, Ti = { class: "tree-empty-text" }, wi = /* @__PURE__ */ $r({
31
+ __name: "empty",
32
+ props: {
33
+ emptyText: {}
34
+ },
35
+ setup(e) {
36
+ return (t, r) => (C(), x("div", _i, [
37
+ Oe("div", Ti, [
38
+ M(t.$slots, "default", {}, () => [
39
+ je(
40
+ me(t.emptyText),
41
+ 1
42
+ /* TEXT */
43
+ )
44
+ ], !0)
45
+ ])
46
+ ]));
47
+ }
48
+ }), kt = /* @__PURE__ */ Wn(wi, [["__scopeId", "data-v-507e2bf9"]]), Si = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e), Ci = (e) => typeof e == "string" && Si(e) ? e : e + "px", ir = (e, t = "children") => Array.isArray(e) && e.length ? e.reduce((r, n) => {
49
+ let a = n[t], l = { ...n };
50
+ return delete l[t], a && a.length ? r.concat(l, ir(a, t)) : r.concat(l);
51
+ }, []) : [];
52
+ function Oi() {
53
+ this.__data__ = [], this.size = 0;
54
+ }
55
+ function qn(e, t) {
56
+ return e === t || e !== e && t !== t;
57
+ }
58
+ function Ft(e, t) {
59
+ for (var r = e.length; r--; )
60
+ if (qn(e[r][0], t))
61
+ return r;
62
+ return -1;
63
+ }
64
+ var ji = Array.prototype, Ai = ji.splice;
65
+ function Ii(e) {
66
+ var t = this.__data__, r = Ft(t, e);
67
+ if (r < 0)
68
+ return !1;
69
+ var n = t.length - 1;
70
+ return r == n ? t.pop() : Ai.call(t, r, 1), --this.size, !0;
71
+ }
72
+ function ki(e) {
73
+ var t = this.__data__, r = Ft(t, e);
74
+ return r < 0 ? void 0 : t[r][1];
75
+ }
76
+ function xi(e) {
77
+ return Ft(this.__data__, e) > -1;
78
+ }
79
+ function Ei(e, t) {
80
+ var r = this.__data__, n = Ft(r, e);
81
+ return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
82
+ }
83
+ function Le(e) {
84
+ var t = -1, r = e == null ? 0 : e.length;
85
+ for (this.clear(); ++t < r; ) {
86
+ var n = e[t];
87
+ this.set(n[0], n[1]);
88
+ }
89
+ }
90
+ Le.prototype.clear = Oi;
91
+ Le.prototype.delete = Ii;
92
+ Le.prototype.get = ki;
93
+ Le.prototype.has = xi;
94
+ Le.prototype.set = Ei;
95
+ function Pi() {
96
+ this.__data__ = new Le(), this.size = 0;
97
+ }
98
+ function Li(e) {
99
+ var t = this.__data__, r = t.delete(e);
100
+ return this.size = t.size, r;
101
+ }
102
+ function Ni(e) {
103
+ return this.__data__.get(e);
104
+ }
105
+ function zi(e) {
106
+ return this.__data__.has(e);
107
+ }
108
+ var Jn = typeof global == "object" && global && global.Object === Object && global, Mi = typeof self == "object" && self && self.Object === Object && self, Te = Jn || Mi || Function("return this")(), et = Te.Symbol, Yn = Object.prototype, Ki = Yn.hasOwnProperty, Fi = Yn.toString, gt = et ? et.toStringTag : void 0;
109
+ function Di(e) {
110
+ var t = Ki.call(e, gt), r = e[gt];
111
+ try {
112
+ e[gt] = void 0;
113
+ var n = !0;
114
+ } catch {
115
+ }
116
+ var a = Fi.call(e);
117
+ return n && (t ? e[gt] = r : delete e[gt]), a;
118
+ }
119
+ var Bi = Object.prototype, Ui = Bi.toString;
120
+ function Vi(e) {
121
+ return Ui.call(e);
122
+ }
123
+ var Ri = "[object Null]", Gi = "[object Undefined]", Wr = et ? et.toStringTag : void 0;
124
+ function rt(e) {
125
+ return e == null ? e === void 0 ? Gi : Ri : Wr && Wr in Object(e) ? Di(e) : Vi(e);
126
+ }
127
+ function Be(e) {
128
+ var t = typeof e;
129
+ return e != null && (t == "object" || t == "function");
130
+ }
131
+ var Hi = "[object AsyncFunction]", Wi = "[object Function]", qi = "[object GeneratorFunction]", Ji = "[object Proxy]";
132
+ function Xn(e) {
133
+ if (!Be(e))
134
+ return !1;
135
+ var t = rt(e);
136
+ return t == Wi || t == qi || t == Hi || t == Ji;
137
+ }
138
+ var Zt = Te["__core-js_shared__"], qr = function() {
139
+ var e = /[^.]+$/.exec(Zt && Zt.keys && Zt.keys.IE_PROTO || "");
140
+ return e ? "Symbol(src)_1." + e : "";
141
+ }();
142
+ function Yi(e) {
143
+ return !!qr && qr in e;
144
+ }
145
+ var Xi = Function.prototype, Zi = Xi.toString;
146
+ function He(e) {
147
+ if (e != null) {
148
+ try {
149
+ return Zi.call(e);
150
+ } catch {
151
+ }
152
+ try {
153
+ return e + "";
154
+ } catch {
155
+ }
156
+ }
157
+ return "";
158
+ }
159
+ var Qi = /[\\^$.*+?()[\]{}|]/g, eo = /^\[object .+?Constructor\]$/, to = Function.prototype, ro = Object.prototype, no = to.toString, ao = ro.hasOwnProperty, io = RegExp(
160
+ "^" + no.call(ao).replace(Qi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
161
+ );
162
+ function oo(e) {
163
+ if (!Be(e) || Yi(e))
164
+ return !1;
165
+ var t = Xn(e) ? io : eo;
166
+ return t.test(He(e));
167
+ }
168
+ function so(e, t) {
169
+ return e == null ? void 0 : e[t];
170
+ }
171
+ function We(e, t) {
172
+ var r = so(e, t);
173
+ return oo(r) ? r : void 0;
174
+ }
175
+ var _t = We(Te, "Map"), Tt = We(Object, "create");
176
+ function lo() {
177
+ this.__data__ = Tt ? Tt(null) : {}, this.size = 0;
178
+ }
179
+ function co(e) {
180
+ var t = this.has(e) && delete this.__data__[e];
181
+ return this.size -= t ? 1 : 0, t;
182
+ }
183
+ var uo = "__lodash_hash_undefined__", fo = Object.prototype, ho = fo.hasOwnProperty;
184
+ function vo(e) {
185
+ var t = this.__data__;
186
+ if (Tt) {
187
+ var r = t[e];
188
+ return r === uo ? void 0 : r;
189
+ }
190
+ return ho.call(t, e) ? t[e] : void 0;
191
+ }
192
+ var yo = Object.prototype, po = yo.hasOwnProperty;
193
+ function go(e) {
194
+ var t = this.__data__;
195
+ return Tt ? t[e] !== void 0 : po.call(t, e);
196
+ }
197
+ var bo = "__lodash_hash_undefined__";
198
+ function $o(e, t) {
199
+ var r = this.__data__;
200
+ return this.size += this.has(e) ? 0 : 1, r[e] = Tt && t === void 0 ? bo : t, this;
201
+ }
202
+ function Ge(e) {
203
+ var t = -1, r = e == null ? 0 : e.length;
204
+ for (this.clear(); ++t < r; ) {
205
+ var n = e[t];
206
+ this.set(n[0], n[1]);
207
+ }
208
+ }
209
+ Ge.prototype.clear = lo;
210
+ Ge.prototype.delete = co;
211
+ Ge.prototype.get = vo;
212
+ Ge.prototype.has = go;
213
+ Ge.prototype.set = $o;
214
+ function mo() {
215
+ this.size = 0, this.__data__ = {
216
+ hash: new Ge(),
217
+ map: new (_t || Le)(),
218
+ string: new Ge()
219
+ };
220
+ }
221
+ function _o(e) {
222
+ var t = typeof e;
223
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
224
+ }
225
+ function Dt(e, t) {
226
+ var r = e.__data__;
227
+ return _o(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
228
+ }
229
+ function To(e) {
230
+ var t = Dt(this, e).delete(e);
231
+ return this.size -= t ? 1 : 0, t;
232
+ }
233
+ function wo(e) {
234
+ return Dt(this, e).get(e);
235
+ }
236
+ function So(e) {
237
+ return Dt(this, e).has(e);
238
+ }
239
+ function Co(e, t) {
240
+ var r = Dt(this, e), n = r.size;
241
+ return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
242
+ }
243
+ function nt(e) {
244
+ var t = -1, r = e == null ? 0 : e.length;
245
+ for (this.clear(); ++t < r; ) {
246
+ var n = e[t];
247
+ this.set(n[0], n[1]);
248
+ }
249
+ }
250
+ nt.prototype.clear = mo;
251
+ nt.prototype.delete = To;
252
+ nt.prototype.get = wo;
253
+ nt.prototype.has = So;
254
+ nt.prototype.set = Co;
255
+ var Oo = 200;
256
+ function jo(e, t) {
257
+ var r = this.__data__;
258
+ if (r instanceof Le) {
259
+ var n = r.__data__;
260
+ if (!_t || n.length < Oo - 1)
261
+ return n.push([e, t]), this.size = ++r.size, this;
262
+ r = this.__data__ = new nt(n);
263
+ }
264
+ return r.set(e, t), this.size = r.size, this;
265
+ }
266
+ function at(e) {
267
+ var t = this.__data__ = new Le(e);
268
+ this.size = t.size;
269
+ }
270
+ at.prototype.clear = Pi;
271
+ at.prototype.delete = Li;
272
+ at.prototype.get = Ni;
273
+ at.prototype.has = zi;
274
+ at.prototype.set = jo;
275
+ function Ao(e, t) {
276
+ for (var r = -1, n = e == null ? 0 : e.length; ++r < n && t(e[r], r, e) !== !1; )
277
+ ;
278
+ return e;
279
+ }
280
+ var Jr = function() {
281
+ try {
282
+ var e = We(Object, "defineProperty");
283
+ return e({}, "", {}), e;
284
+ } catch {
285
+ }
286
+ }();
287
+ function Zn(e, t, r) {
288
+ t == "__proto__" && Jr ? Jr(e, t, {
289
+ configurable: !0,
290
+ enumerable: !0,
291
+ value: r,
292
+ writable: !0
293
+ }) : e[t] = r;
294
+ }
295
+ var Io = Object.prototype, ko = Io.hasOwnProperty;
296
+ function Qn(e, t, r) {
297
+ var n = e[t];
298
+ (!(ko.call(e, t) && qn(n, r)) || r === void 0 && !(t in e)) && Zn(e, t, r);
299
+ }
300
+ function Bt(e, t, r, n) {
301
+ var a = !r;
302
+ r || (r = {});
303
+ for (var l = -1, s = t.length; ++l < s; ) {
304
+ var u = t[l], f = void 0;
305
+ f === void 0 && (f = e[u]), a ? Zn(r, u, f) : Qn(r, u, f);
306
+ }
307
+ return r;
308
+ }
309
+ function xo(e, t) {
310
+ for (var r = -1, n = Array(e); ++r < e; )
311
+ n[r] = t(r);
312
+ return n;
313
+ }
314
+ function it(e) {
315
+ return e != null && typeof e == "object";
316
+ }
317
+ var Eo = "[object Arguments]";
318
+ function Yr(e) {
319
+ return it(e) && rt(e) == Eo;
320
+ }
321
+ var ea = Object.prototype, Po = ea.hasOwnProperty, Lo = ea.propertyIsEnumerable, No = Yr(/* @__PURE__ */ function() {
322
+ return arguments;
323
+ }()) ? Yr : function(e) {
324
+ return it(e) && Po.call(e, "callee") && !Lo.call(e, "callee");
325
+ }, _r = Array.isArray;
326
+ function zo() {
327
+ return !1;
328
+ }
329
+ var ta = typeof exports == "object" && exports && !exports.nodeType && exports, Xr = ta && typeof module == "object" && module && !module.nodeType && module, Mo = Xr && Xr.exports === ta, Zr = Mo ? Te.Buffer : void 0, Ko = Zr ? Zr.isBuffer : void 0, ra = Ko || zo, Fo = 9007199254740991, Do = /^(?:0|[1-9]\d*)$/;
330
+ function Bo(e, t) {
331
+ var r = typeof e;
332
+ return t = t ?? Fo, !!t && (r == "number" || r != "symbol" && Do.test(e)) && e > -1 && e % 1 == 0 && e < t;
333
+ }
334
+ var Uo = 9007199254740991;
335
+ function na(e) {
336
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Uo;
337
+ }
338
+ var Vo = "[object Arguments]", Ro = "[object Array]", Go = "[object Boolean]", Ho = "[object Date]", Wo = "[object Error]", qo = "[object Function]", Jo = "[object Map]", Yo = "[object Number]", Xo = "[object Object]", Zo = "[object RegExp]", Qo = "[object Set]", es = "[object String]", ts = "[object WeakMap]", rs = "[object ArrayBuffer]", ns = "[object DataView]", as = "[object Float32Array]", is = "[object Float64Array]", os = "[object Int8Array]", ss = "[object Int16Array]", ls = "[object Int32Array]", cs = "[object Uint8Array]", us = "[object Uint8ClampedArray]", fs = "[object Uint16Array]", ds = "[object Uint32Array]", W = {};
339
+ W[as] = W[is] = W[os] = W[ss] = W[ls] = W[cs] = W[us] = W[fs] = W[ds] = !0;
340
+ W[Vo] = W[Ro] = W[rs] = W[Go] = W[ns] = W[Ho] = W[Wo] = W[qo] = W[Jo] = W[Yo] = W[Xo] = W[Zo] = W[Qo] = W[es] = W[ts] = !1;
341
+ function hs(e) {
342
+ return it(e) && na(e.length) && !!W[rt(e)];
343
+ }
344
+ function Tr(e) {
345
+ return function(t) {
346
+ return e(t);
347
+ };
348
+ }
349
+ var aa = typeof exports == "object" && exports && !exports.nodeType && exports, mt = aa && typeof module == "object" && module && !module.nodeType && module, vs = mt && mt.exports === aa, Qt = vs && Jn.process, tt = function() {
350
+ try {
351
+ var e = mt && mt.require && mt.require("util").types;
352
+ return e || Qt && Qt.binding && Qt.binding("util");
353
+ } catch {
354
+ }
355
+ }(), Qr = tt && tt.isTypedArray, ys = Qr ? Tr(Qr) : hs, ps = Object.prototype, gs = ps.hasOwnProperty;
356
+ function ia(e, t) {
357
+ var r = _r(e), n = !r && No(e), a = !r && !n && ra(e), l = !r && !n && !a && ys(e), s = r || n || a || l, u = s ? xo(e.length, String) : [], f = u.length;
358
+ for (var h in e)
359
+ (t || gs.call(e, h)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
360
+ (h == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
361
+ a && (h == "offset" || h == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
362
+ l && (h == "buffer" || h == "byteLength" || h == "byteOffset") || // Skip index properties.
363
+ Bo(h, f))) && u.push(h);
364
+ return u;
365
+ }
366
+ var bs = Object.prototype;
367
+ function wr(e) {
368
+ var t = e && e.constructor, r = typeof t == "function" && t.prototype || bs;
369
+ return e === r;
370
+ }
371
+ function oa(e, t) {
372
+ return function(r) {
373
+ return e(t(r));
374
+ };
375
+ }
376
+ var $s = oa(Object.keys, Object), ms = Object.prototype, _s = ms.hasOwnProperty;
377
+ function Ts(e) {
378
+ if (!wr(e))
379
+ return $s(e);
380
+ var t = [];
381
+ for (var r in Object(e))
382
+ _s.call(e, r) && r != "constructor" && t.push(r);
383
+ return t;
384
+ }
385
+ function sa(e) {
386
+ return e != null && na(e.length) && !Xn(e);
387
+ }
388
+ function Sr(e) {
389
+ return sa(e) ? ia(e) : Ts(e);
390
+ }
391
+ function ws(e, t) {
392
+ return e && Bt(t, Sr(t), e);
393
+ }
394
+ function Ss(e) {
395
+ var t = [];
396
+ if (e != null)
397
+ for (var r in Object(e))
398
+ t.push(r);
399
+ return t;
400
+ }
401
+ var Cs = Object.prototype, Os = Cs.hasOwnProperty;
402
+ function js(e) {
403
+ if (!Be(e))
404
+ return Ss(e);
405
+ var t = wr(e), r = [];
406
+ for (var n in e)
407
+ n == "constructor" && (t || !Os.call(e, n)) || r.push(n);
408
+ return r;
409
+ }
410
+ function Cr(e) {
411
+ return sa(e) ? ia(e, !0) : js(e);
412
+ }
413
+ function As(e, t) {
414
+ return e && Bt(t, Cr(t), e);
415
+ }
416
+ var la = typeof exports == "object" && exports && !exports.nodeType && exports, en = la && typeof module == "object" && module && !module.nodeType && module, Is = en && en.exports === la, tn = Is ? Te.Buffer : void 0, rn = tn ? tn.allocUnsafe : void 0;
417
+ function ks(e, t) {
418
+ if (t)
419
+ return e.slice();
420
+ var r = e.length, n = rn ? rn(r) : new e.constructor(r);
421
+ return e.copy(n), n;
422
+ }
423
+ function xs(e, t) {
424
+ var r = -1, n = e.length;
425
+ for (t || (t = Array(n)); ++r < n; )
426
+ t[r] = e[r];
427
+ return t;
428
+ }
429
+ function Es(e, t) {
430
+ for (var r = -1, n = e == null ? 0 : e.length, a = 0, l = []; ++r < n; ) {
431
+ var s = e[r];
432
+ t(s, r, e) && (l[a++] = s);
433
+ }
434
+ return l;
435
+ }
436
+ function ca() {
437
+ return [];
438
+ }
439
+ var Ps = Object.prototype, Ls = Ps.propertyIsEnumerable, nn = Object.getOwnPropertySymbols, Or = nn ? function(e) {
440
+ return e == null ? [] : (e = Object(e), Es(nn(e), function(t) {
441
+ return Ls.call(e, t);
442
+ }));
443
+ } : ca;
444
+ function Ns(e, t) {
445
+ return Bt(e, Or(e), t);
446
+ }
447
+ function ua(e, t) {
448
+ for (var r = -1, n = t.length, a = e.length; ++r < n; )
449
+ e[a + r] = t[r];
450
+ return e;
451
+ }
452
+ var fa = oa(Object.getPrototypeOf, Object), zs = Object.getOwnPropertySymbols, da = zs ? function(e) {
453
+ for (var t = []; e; )
454
+ ua(t, Or(e)), e = fa(e);
455
+ return t;
456
+ } : ca;
457
+ function Ms(e, t) {
458
+ return Bt(e, da(e), t);
459
+ }
460
+ function ha(e, t, r) {
461
+ var n = t(e);
462
+ return _r(e) ? n : ua(n, r(e));
463
+ }
464
+ function Ks(e) {
465
+ return ha(e, Sr, Or);
466
+ }
467
+ function Fs(e) {
468
+ return ha(e, Cr, da);
469
+ }
470
+ var or = We(Te, "DataView"), sr = We(Te, "Promise"), lr = We(Te, "Set"), cr = We(Te, "WeakMap"), an = "[object Map]", Ds = "[object Object]", on = "[object Promise]", sn = "[object Set]", ln = "[object WeakMap]", cn = "[object DataView]", Bs = He(or), Us = He(_t), Vs = He(sr), Rs = He(lr), Gs = He(cr), Pe = rt;
471
+ (or && Pe(new or(new ArrayBuffer(1))) != cn || _t && Pe(new _t()) != an || sr && Pe(sr.resolve()) != on || lr && Pe(new lr()) != sn || cr && Pe(new cr()) != ln) && (Pe = function(e) {
472
+ var t = rt(e), r = t == Ds ? e.constructor : void 0, n = r ? He(r) : "";
473
+ if (n)
474
+ switch (n) {
475
+ case Bs:
476
+ return cn;
477
+ case Us:
478
+ return an;
479
+ case Vs:
480
+ return on;
481
+ case Rs:
482
+ return sn;
483
+ case Gs:
484
+ return ln;
485
+ }
486
+ return t;
487
+ });
488
+ var Hs = Object.prototype, Ws = Hs.hasOwnProperty;
489
+ function qs(e) {
490
+ var t = e.length, r = new e.constructor(t);
491
+ return t && typeof e[0] == "string" && Ws.call(e, "index") && (r.index = e.index, r.input = e.input), r;
492
+ }
493
+ var un = Te.Uint8Array;
494
+ function jr(e) {
495
+ var t = new e.constructor(e.byteLength);
496
+ return new un(t).set(new un(e)), t;
497
+ }
498
+ function Js(e, t) {
499
+ var r = t ? jr(e.buffer) : e.buffer;
500
+ return new e.constructor(r, e.byteOffset, e.byteLength);
501
+ }
502
+ var Ys = /\w*$/;
503
+ function Xs(e) {
504
+ var t = new e.constructor(e.source, Ys.exec(e));
505
+ return t.lastIndex = e.lastIndex, t;
506
+ }
507
+ var fn = et ? et.prototype : void 0, dn = fn ? fn.valueOf : void 0;
508
+ function Zs(e) {
509
+ return dn ? Object(dn.call(e)) : {};
510
+ }
511
+ function Qs(e, t) {
512
+ var r = t ? jr(e.buffer) : e.buffer;
513
+ return new e.constructor(r, e.byteOffset, e.length);
514
+ }
515
+ var el = "[object Boolean]", tl = "[object Date]", rl = "[object Map]", nl = "[object Number]", al = "[object RegExp]", il = "[object Set]", ol = "[object String]", sl = "[object Symbol]", ll = "[object ArrayBuffer]", cl = "[object DataView]", ul = "[object Float32Array]", fl = "[object Float64Array]", dl = "[object Int8Array]", hl = "[object Int16Array]", vl = "[object Int32Array]", yl = "[object Uint8Array]", pl = "[object Uint8ClampedArray]", gl = "[object Uint16Array]", bl = "[object Uint32Array]";
516
+ function $l(e, t, r) {
517
+ var n = e.constructor;
518
+ switch (t) {
519
+ case ll:
520
+ return jr(e);
521
+ case el:
522
+ case tl:
523
+ return new n(+e);
524
+ case cl:
525
+ return Js(e, r);
526
+ case ul:
527
+ case fl:
528
+ case dl:
529
+ case hl:
530
+ case vl:
531
+ case yl:
532
+ case pl:
533
+ case gl:
534
+ case bl:
535
+ return Qs(e, r);
536
+ case rl:
537
+ return new n();
538
+ case nl:
539
+ case ol:
540
+ return new n(e);
541
+ case al:
542
+ return Xs(e);
543
+ case il:
544
+ return new n();
545
+ case sl:
546
+ return Zs(e);
547
+ }
548
+ }
549
+ var hn = Object.create, ml = /* @__PURE__ */ function() {
550
+ function e() {
551
+ }
552
+ return function(t) {
553
+ if (!Be(t))
554
+ return {};
555
+ if (hn)
556
+ return hn(t);
557
+ e.prototype = t;
558
+ var r = new e();
559
+ return e.prototype = void 0, r;
560
+ };
561
+ }();
562
+ function _l(e) {
563
+ return typeof e.constructor == "function" && !wr(e) ? ml(fa(e)) : {};
564
+ }
565
+ var Tl = "[object Map]";
566
+ function wl(e) {
567
+ return it(e) && Pe(e) == Tl;
568
+ }
569
+ var vn = tt && tt.isMap, Sl = vn ? Tr(vn) : wl, Cl = "[object Set]";
570
+ function Ol(e) {
571
+ return it(e) && Pe(e) == Cl;
572
+ }
573
+ var yn = tt && tt.isSet, jl = yn ? Tr(yn) : Ol, Al = 1, Il = 2, kl = 4, va = "[object Arguments]", xl = "[object Array]", El = "[object Boolean]", Pl = "[object Date]", Ll = "[object Error]", ya = "[object Function]", Nl = "[object GeneratorFunction]", zl = "[object Map]", Ml = "[object Number]", pa = "[object Object]", Kl = "[object RegExp]", Fl = "[object Set]", Dl = "[object String]", Bl = "[object Symbol]", Ul = "[object WeakMap]", Vl = "[object ArrayBuffer]", Rl = "[object DataView]", Gl = "[object Float32Array]", Hl = "[object Float64Array]", Wl = "[object Int8Array]", ql = "[object Int16Array]", Jl = "[object Int32Array]", Yl = "[object Uint8Array]", Xl = "[object Uint8ClampedArray]", Zl = "[object Uint16Array]", Ql = "[object Uint32Array]", G = {};
574
+ G[va] = G[xl] = G[Vl] = G[Rl] = G[El] = G[Pl] = G[Gl] = G[Hl] = G[Wl] = G[ql] = G[Jl] = G[zl] = G[Ml] = G[pa] = G[Kl] = G[Fl] = G[Dl] = G[Bl] = G[Yl] = G[Xl] = G[Zl] = G[Ql] = !0;
575
+ G[Ll] = G[ya] = G[Ul] = !1;
576
+ function xt(e, t, r, n, a, l) {
577
+ var s, u = t & Al, f = t & Il, h = t & kl;
578
+ if (s !== void 0)
579
+ return s;
580
+ if (!Be(e))
581
+ return e;
582
+ var T = _r(e);
583
+ if (T) {
584
+ if (s = qs(e), !u)
585
+ return xs(e, s);
586
+ } else {
587
+ var w = Pe(e), $ = w == ya || w == Nl;
588
+ if (ra(e))
589
+ return ks(e, u);
590
+ if (w == pa || w == va || $ && !a) {
591
+ if (s = f || $ ? {} : _l(e), !u)
592
+ return f ? Ms(e, As(s, e)) : Ns(e, ws(s, e));
593
+ } else {
594
+ if (!G[w])
595
+ return a ? e : {};
596
+ s = $l(e, w, u);
597
+ }
598
+ }
599
+ l || (l = new at());
600
+ var J = l.get(e);
601
+ if (J)
602
+ return J;
603
+ l.set(e, s), jl(e) ? e.forEach(function(m) {
604
+ s.add(xt(m, t, r, m, e, l));
605
+ }) : Sl(e) && e.forEach(function(m, I) {
606
+ s.set(I, xt(m, t, r, I, e, l));
607
+ });
608
+ var oe = h ? f ? Fs : Ks : f ? Cr : Sr, E = T ? void 0 : oe(e);
609
+ return Ao(E || e, function(m, I) {
610
+ E && (I = m, m = e[I]), Qn(s, I, xt(m, t, r, I, e, l));
611
+ }), s;
612
+ }
613
+ var ec = 1, tc = 4;
614
+ function Ze(e) {
615
+ return xt(e, ec | tc);
616
+ }
617
+ var er = function() {
618
+ return Te.Date.now();
619
+ }, rc = /\s/;
620
+ function nc(e) {
621
+ for (var t = e.length; t-- && rc.test(e.charAt(t)); )
622
+ ;
623
+ return t;
624
+ }
625
+ var ac = /^\s+/;
626
+ function ic(e) {
627
+ return e && e.slice(0, nc(e) + 1).replace(ac, "");
628
+ }
629
+ var oc = "[object Symbol]";
630
+ function sc(e) {
631
+ return typeof e == "symbol" || it(e) && rt(e) == oc;
632
+ }
633
+ var pn = NaN, lc = /^[-+]0x[0-9a-f]+$/i, cc = /^0b[01]+$/i, uc = /^0o[0-7]+$/i, fc = parseInt;
634
+ function gn(e) {
635
+ if (typeof e == "number")
636
+ return e;
637
+ if (sc(e))
638
+ return pn;
639
+ if (Be(e)) {
640
+ var t = typeof e.valueOf == "function" ? e.valueOf() : e;
641
+ e = Be(t) ? t + "" : t;
642
+ }
643
+ if (typeof e != "string")
644
+ return e === 0 ? e : +e;
645
+ e = ic(e);
646
+ var r = cc.test(e);
647
+ return r || uc.test(e) ? fc(e.slice(2), r ? 2 : 8) : lc.test(e) ? pn : +e;
648
+ }
649
+ var dc = "Expected a function", hc = Math.max, vc = Math.min;
650
+ function yc(e, t, r) {
651
+ var n, a, l, s, u, f, h = 0, T = !1, w = !1, $ = !0;
652
+ if (typeof e != "function")
653
+ throw new TypeError(dc);
654
+ t = gn(t) || 0, Be(r) && (T = !!r.leading, w = "maxWait" in r, l = w ? hc(gn(r.maxWait) || 0, t) : l, $ = "trailing" in r ? !!r.trailing : $);
655
+ function J(z) {
656
+ var B = n, Y = a;
657
+ return n = a = void 0, h = z, s = e.apply(Y, B), s;
658
+ }
659
+ function oe(z) {
660
+ return h = z, u = setTimeout(I, t), T ? J(z) : s;
661
+ }
662
+ function E(z) {
663
+ var B = z - f, Y = z - h, se = t - B;
664
+ return w ? vc(se, l - Y) : se;
665
+ }
666
+ function m(z) {
667
+ var B = z - f, Y = z - h;
668
+ return f === void 0 || B >= t || B < 0 || w && Y >= l;
669
+ }
670
+ function I() {
671
+ var z = er();
672
+ if (m(z))
673
+ return Q(z);
674
+ u = setTimeout(I, E(z));
675
+ }
676
+ function Q(z) {
677
+ return u = void 0, $ && n ? J(z) : (n = a = void 0, s);
678
+ }
679
+ function ee() {
680
+ u !== void 0 && clearTimeout(u), h = 0, n = f = a = u = void 0;
681
+ }
682
+ function g() {
683
+ return u === void 0 ? s : Q(er());
684
+ }
685
+ function D() {
686
+ var z = er(), B = m(z);
687
+ if (n = arguments, a = this, f = z, B) {
688
+ if (u === void 0)
689
+ return oe(f);
690
+ if (w)
691
+ return clearTimeout(u), u = setTimeout(I, t), J(f);
692
+ }
693
+ return u === void 0 && (u = setTimeout(I, t)), s;
694
+ }
695
+ return D.cancel = ee, D.flush = g, D;
696
+ }
697
+ const pc = (e, t, r, n, a, l, s, u, f) => {
698
+ const h = F(null), T = F([]), w = F(!1), $ = ie(() => ({
699
+ label: "name",
700
+ children: "children",
701
+ parentId: "parentId",
702
+ pathName: "pathName",
703
+ disabled: "disabled",
704
+ isLeaf: "leaf",
705
+ allowUnSelect: "allowUnSelect",
706
+ ...e.props
707
+ })), J = ie(() => {
708
+ let i = "100%";
709
+ return e.height && (i = Ci(e.height)), i;
710
+ }), oe = (i, v, d) => {
711
+ if (!e.operationsLabel) return;
712
+ const p = e.operationsLabel[i];
713
+ if (p)
714
+ return typeof p == "function" ? p(v, d) : p;
715
+ }, E = F({}), m = (i, v) => {
716
+ i && (E.value[v] = i);
717
+ }, I = F(null), Q = F(null), ee = F({ node: null, data: null }), g = (i, v) => {
718
+ Q.value = E.value[v[e.nodeKey]], ee.value = {
719
+ node: i,
720
+ data: v
721
+ };
722
+ }, D = () => {
723
+ var i;
724
+ (i = I.value) == null || i.hide();
725
+ }, z = F(""), B = (i) => {
726
+ z.value = i ? ee.value.data[e.nodeKey] : "";
727
+ }, Y = (i, v) => {
728
+ var _, U, X, Z;
729
+ let d = {};
730
+ const p = "bottom";
731
+ return e.showOperations && ((_ = e.mergeOprations) != null && _.list ? typeof e.mergeOprations.list != "function" ? (U = e.mergeOprations) != null && U.list && e.mergeOprations.list.length && (d.list = e.mergeOprations.list) : d.list = e.mergeOprations.list(i, v) : d.list = [], (X = d.list) != null && X.length && (d.list = d.list.filter((he) => !he.hidden)), (Z = e.mergeOprations) != null && Z.position ? (typeof e.mergeOprations.position != "function" ? d.position = e.mergeOprations.position : d.position = e.mergeOprations.position(i, v), d.position === "left" && (d.position = "top"), d.position === "right" && (d.position = "bottom")) : d.position = p), d;
732
+ }, se = (i, v) => {
733
+ let d = [], p = [];
734
+ if (e.showOperations && (!e.operations || !e.operations.length ? p = [
735
+ {
736
+ value: "add",
737
+ label: oe("add", i, v) ?? _e("新增同级"),
738
+ icon: "add"
739
+ },
740
+ {
741
+ value: "addItem",
742
+ label: oe("addItem", i, v) ?? _e("新增子级"),
743
+ icon: "addItem"
744
+ },
745
+ {
746
+ value: "edit",
747
+ label: oe("edit", i, v) ?? _e("编辑"),
748
+ icon: "edit"
749
+ },
750
+ {
751
+ value: "delete",
752
+ label: oe("delete", i, v) ?? _e("删除"),
753
+ icon: "delete"
754
+ }
755
+ ] : typeof e.operations == "function" ? p = e.operations(i, v) : p = e.operations), !p || !p.length) return [];
756
+ if (e.operations)
757
+ d = p;
758
+ else {
759
+ let _ = [];
760
+ e.operationsLayout && (typeof e.operationsLayout == "string" ? _ = e.operationsLayout.split(",") : typeof e.operationsLayout(i, v) == "string" ? _ = e.operationsLayout(i, v).split(",") : _ = ["add", "addItem", "edit", "delete"]), p != null && p.length && (_ != null && _.length) && _.forEach((U) => {
761
+ const X = p.find((Z) => Z.value === U);
762
+ X && d.push(X);
763
+ });
764
+ }
765
+ return i.level === Number(e.maxNodeLevel) && (d = d.filter((_) => _.icon !== "addItem" && _.name !== _e("新增子级"))), d.length && (d = d.filter((_) => !_.hidden)), d;
766
+ }, A = (i, v, d) => {
767
+ i.disabled || (D(), z.value = "", setTimeout(() => t("handleOperation", i, v, d), 0));
768
+ }, ne = (i, v) => i ? v[$.value.label].toLowerCase().includes(i.toLowerCase()) : !0, R = ie(() => (e == null ? void 0 : e.filterNodeMethod) ?? ne), N = ie({
769
+ get: () => e.filterValue,
770
+ set: (i) => {
771
+ t("update:filterValue", i);
772
+ }
773
+ }), de = () => {
774
+ const i = N.value;
775
+ if (!i) {
776
+ T.value = [];
777
+ return;
778
+ }
779
+ const v = $.value.children;
780
+ i && e.data ? T.value = ir(e.data, v).filter((d) => R.value(i, d)) : e.data && (T.value = ir(e.data, v)), T.value.length || T.value.push({ [$.value.label]: _e("暂无数据"), id: "nodata" });
781
+ }, $e = () => {
782
+ T.value = [];
783
+ }, te = (i, v) => {
784
+ var d;
785
+ return i ? v[(d = $.value) == null ? void 0 : d.label].includes(i) : !0;
786
+ }, le = (i, v) => {
787
+ let d = !1;
788
+ return typeof $.value.disabled == "string" ? d = i[$.value.disabled] ?? !1 : typeof $.value.disabled == "function" && (d = $.value.disabled(i, v) ?? !1), d;
789
+ }, Ne = (i, v = "parentId") => {
790
+ var X;
791
+ const d = i[v], p = (X = r.value) == null ? void 0 : X.store.nodesMap, _ = (p == null ? void 0 : p[d]) ?? null;
792
+ if (!_) return [null, null];
793
+ if (!le(_.data, _)) return [_.data, _];
794
+ const U = Ne(_.data, v);
795
+ if (U) return U;
796
+ }, Ue = (i, v) => {
797
+ let d = !1;
798
+ return typeof $.value.isLeaf == "string" ? d = i[$.value.isLeaf] ?? !1 : typeof $.value.isLeaf == "function" && (d = $.value.isLeaf(i, v) ?? !1), d;
799
+ }, ze = (i) => {
800
+ let v = !1;
801
+ return typeof $.value.allowUnSelect == "string" ? v = i[$.value.allowUnSelect] ?? !1 : typeof $.value.allowUnSelect == "function" && (v = $.value.allowUnSelect(i) ?? !1), v;
802
+ }, ft = (i) => e.draggable ? e.allowDrag ? e.allowDrag(i) : !0 : !1, dt = (i, v) => {
803
+ if (typeof e.filterItemClass == "string")
804
+ return e.filterItemClass;
805
+ if (typeof e.filterItemClass == "function")
806
+ return e.filterItemClass(i, v);
807
+ };
808
+ let xe = 0;
809
+ const ye = async (i, v) => {
810
+ var p;
811
+ if ((p = h.value) == null || p.click(), le(i, v) || e.showCheckbox) return;
812
+ let d = !0;
813
+ e.changeNodeConfirm && (d = await e.changeNodeConfirm(i)), d && (xe++, Ve(i, v));
814
+ }, Ve = yc((...i) => {
815
+ const [v, d] = i;
816
+ xe > 1 ? Me(v, d) : b(v, d), xe = 0;
817
+ }, 200), Me = (i, v) => {
818
+ t("node-db-click", i, v);
819
+ }, b = (i, v) => {
820
+ var d;
821
+ w.value = !0, a.value = i[e.nodeKey], (d = r.value) == null || d.setCurrentKey(a.value), i.path && (n.value = i.path), t("change", i[e.nodeKey]), t("node-click", i, v), t("node-change", i);
822
+ }, P = async (i, v) => {
823
+ if (await ve(), l.value && !e.showCheckbox) {
824
+ if (a.value && i[e.nodeKey] !== a.value) return;
825
+ t("current-change", i, v);
826
+ } else
827
+ t("current-change", i, v);
828
+ }, L = (i, v = !1) => {
829
+ let d = !1;
830
+ return e != null && e.nodeKey && (e.showCheckbox ? v && (d = !!a.value.includes(i[e.nodeKey])) : d = a.value === i[e.nodeKey]), d;
831
+ }, ce = async (i, v) => {
832
+ var d, p, _, U;
833
+ if (!le(i, null)) {
834
+ if (!e.showCheckbox)
835
+ ye(i);
836
+ else {
837
+ const X = (d = e.data) == null ? void 0 : d.find((Z) => Z[e.nodeKey] === i[e.nodeKey]);
838
+ if (!L(i, !0) || !(e.hideRootCheckbox && X)) {
839
+ const Z = a.value || [];
840
+ if (e != null && e.nodeKey && !Z.includes(i[e.nodeKey])) {
841
+ const he = Z.concat(i[e.nodeKey]) || [];
842
+ e.showCheckbox && ((p = r.value) == null || p.setCheckedKeys(he)), (_ = r.value) == null || _.setExpandedKeys(i.path.split("/")), u(i, { checkedKeys: [...he] }, !0);
843
+ }
844
+ }
845
+ (U = r.value) == null || U.setCurrentKey(i[e.nodeKey]);
846
+ }
847
+ T.value = [], N.value = "", t("filter-node-click", i);
848
+ }
849
+ }, re = (i, v) => {
850
+ let d = "", p = "";
851
+ return $.value.class && (typeof $.value.class == "string" ? p = $.value.class : p = $.value.class(i, v)), p && (d = `${d} ${p}`), L(i) && (d = `${d} is-active`), ft(v) && (d = `${d} show-draggable-icon`), d;
852
+ }, pe = async () => {
853
+ var i;
854
+ return await ve(), w.value ? w.value = !1 : (e.showCheckbox || (i = r.value) == null || i.setCurrentKey(a.value, !0), !0);
855
+ };
856
+ return Qe(
857
+ () => e.data,
858
+ (i, v) => {
859
+ if (!l.value) {
860
+ if (!e.showOperations)
861
+ if (i && i.length) {
862
+ const d = i.find(
863
+ (p) => p[$.value.children] && p[$.value.children].length
864
+ );
865
+ f.value = !d;
866
+ } else
867
+ f.value = !1;
868
+ if (JSON.stringify(i) !== JSON.stringify(v)) {
869
+ if (i && i.length && e.defaultExpandRoot) {
870
+ const d = i.map((p) => p[e.nodeKey]);
871
+ s.value = Ze(d);
872
+ }
873
+ pe();
874
+ }
875
+ }
876
+ },
877
+ { immediate: !0, deep: !0 }
878
+ ), {
879
+ realHeight: J,
880
+ dasTree: h,
881
+ treeRef: r,
882
+ oprationVisibleChange: B,
883
+ getOperations: se,
884
+ handleOperation: A,
885
+ filterInnerValue: N,
886
+ filterMethod: te,
887
+ filterList: T,
888
+ selectItem: ce,
889
+ nodeClass: re,
890
+ innerValue: a,
891
+ nodeClick: ye,
892
+ defaultProps: $,
893
+ filterSeach: de,
894
+ filterNodeMethodFn: R,
895
+ filterClear: $e,
896
+ isActive: L,
897
+ expandParent: pe,
898
+ disabledFlag: le,
899
+ currentOprationKey: z,
900
+ getMergeOperations: Y,
901
+ setOprationsMoreBtnRefs: m,
902
+ oprationsPopoverRef: I,
903
+ currentMoreBtnRef: Q,
904
+ moreBtnEnter: g,
905
+ currentOprationItem: ee,
906
+ isLeafFlag: Ue,
907
+ filterCustomClass: dt,
908
+ allowUnSelectFlag: ze,
909
+ findSelectableParentNode: Ne,
910
+ currentChange: P
911
+ };
912
+ };
913
+ var At = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
914
+ function gc(e) {
915
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
916
+ }
917
+ function bc() {
918
+ this.__data__ = [], this.size = 0;
919
+ }
920
+ var $c = bc;
921
+ function mc(e, t) {
922
+ return e === t || e !== e && t !== t;
923
+ }
924
+ var ga = mc, _c = ga;
925
+ function Tc(e, t) {
926
+ for (var r = e.length; r--; )
927
+ if (_c(e[r][0], t))
928
+ return r;
929
+ return -1;
930
+ }
931
+ var Ut = Tc, wc = Ut, Sc = Array.prototype, Cc = Sc.splice;
932
+ function Oc(e) {
933
+ var t = this.__data__, r = wc(t, e);
934
+ if (r < 0)
935
+ return !1;
936
+ var n = t.length - 1;
937
+ return r == n ? t.pop() : Cc.call(t, r, 1), --this.size, !0;
938
+ }
939
+ var jc = Oc, Ac = Ut;
940
+ function Ic(e) {
941
+ var t = this.__data__, r = Ac(t, e);
942
+ return r < 0 ? void 0 : t[r][1];
943
+ }
944
+ var kc = Ic, xc = Ut;
945
+ function Ec(e) {
946
+ return xc(this.__data__, e) > -1;
947
+ }
948
+ var Pc = Ec, Lc = Ut;
949
+ function Nc(e, t) {
950
+ var r = this.__data__, n = Lc(r, e);
951
+ return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
952
+ }
953
+ var zc = Nc, Mc = $c, Kc = jc, Fc = kc, Dc = Pc, Bc = zc;
954
+ function ot(e) {
955
+ var t = -1, r = e == null ? 0 : e.length;
956
+ for (this.clear(); ++t < r; ) {
957
+ var n = e[t];
958
+ this.set(n[0], n[1]);
959
+ }
960
+ }
961
+ ot.prototype.clear = Mc;
962
+ ot.prototype.delete = Kc;
963
+ ot.prototype.get = Fc;
964
+ ot.prototype.has = Dc;
965
+ ot.prototype.set = Bc;
966
+ var Vt = ot, Uc = Vt;
967
+ function Vc() {
968
+ this.__data__ = new Uc(), this.size = 0;
969
+ }
970
+ var Rc = Vc;
971
+ function Gc(e) {
972
+ var t = this.__data__, r = t.delete(e);
973
+ return this.size = t.size, r;
974
+ }
975
+ var Hc = Gc;
976
+ function Wc(e) {
977
+ return this.__data__.get(e);
978
+ }
979
+ var qc = Wc;
980
+ function Jc(e) {
981
+ return this.__data__.has(e);
982
+ }
983
+ var Yc = Jc, Xc = typeof At == "object" && At && At.Object === Object && At, ba = Xc, Zc = ba, Qc = typeof self == "object" && self && self.Object === Object && self, eu = Zc || Qc || Function("return this")(), ke = eu, tu = ke, ru = tu.Symbol, Ar = ru, bn = Ar, $a = Object.prototype, nu = $a.hasOwnProperty, au = $a.toString, bt = bn ? bn.toStringTag : void 0;
984
+ function iu(e) {
985
+ var t = nu.call(e, bt), r = e[bt];
986
+ try {
987
+ e[bt] = void 0;
988
+ var n = !0;
989
+ } catch {
990
+ }
991
+ var a = au.call(e);
992
+ return n && (t ? e[bt] = r : delete e[bt]), a;
993
+ }
994
+ var ou = iu, su = Object.prototype, lu = su.toString;
995
+ function cu(e) {
996
+ return lu.call(e);
997
+ }
998
+ var uu = cu, $n = Ar, fu = ou, du = uu, hu = "[object Null]", vu = "[object Undefined]", mn = $n ? $n.toStringTag : void 0;
999
+ function yu(e) {
1000
+ return e == null ? e === void 0 ? vu : hu : mn && mn in Object(e) ? fu(e) : du(e);
1001
+ }
1002
+ var Rt = yu;
1003
+ function pu(e) {
1004
+ var t = typeof e;
1005
+ return e != null && (t == "object" || t == "function");
1006
+ }
1007
+ var wt = pu, gu = Rt, bu = wt, $u = "[object AsyncFunction]", mu = "[object Function]", _u = "[object GeneratorFunction]", Tu = "[object Proxy]";
1008
+ function wu(e) {
1009
+ if (!bu(e))
1010
+ return !1;
1011
+ var t = gu(e);
1012
+ return t == mu || t == _u || t == $u || t == Tu;
1013
+ }
1014
+ var ma = wu, Su = ke, Cu = Su["__core-js_shared__"], Ou = Cu, tr = Ou, _n = function() {
1015
+ var e = /[^.]+$/.exec(tr && tr.keys && tr.keys.IE_PROTO || "");
1016
+ return e ? "Symbol(src)_1." + e : "";
1017
+ }();
1018
+ function ju(e) {
1019
+ return !!_n && _n in e;
1020
+ }
1021
+ var Au = ju, Iu = Function.prototype, ku = Iu.toString;
1022
+ function xu(e) {
1023
+ if (e != null) {
1024
+ try {
1025
+ return ku.call(e);
1026
+ } catch {
1027
+ }
1028
+ try {
1029
+ return e + "";
1030
+ } catch {
1031
+ }
1032
+ }
1033
+ return "";
1034
+ }
1035
+ var _a = xu, Eu = ma, Pu = Au, Lu = wt, Nu = _a, zu = /[\\^$.*+?()[\]{}|]/g, Mu = /^\[object .+?Constructor\]$/, Ku = Function.prototype, Fu = Object.prototype, Du = Ku.toString, Bu = Fu.hasOwnProperty, Uu = RegExp(
1036
+ "^" + Du.call(Bu).replace(zu, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1037
+ );
1038
+ function Vu(e) {
1039
+ if (!Lu(e) || Pu(e))
1040
+ return !1;
1041
+ var t = Eu(e) ? Uu : Mu;
1042
+ return t.test(Nu(e));
1043
+ }
1044
+ var Ru = Vu;
1045
+ function Gu(e, t) {
1046
+ return e == null ? void 0 : e[t];
1047
+ }
1048
+ var Hu = Gu, Wu = Ru, qu = Hu;
1049
+ function Ju(e, t) {
1050
+ var r = qu(e, t);
1051
+ return Wu(r) ? r : void 0;
1052
+ }
1053
+ var qe = Ju, Yu = qe, Xu = ke, Zu = Yu(Xu, "Map"), Ir = Zu, Qu = qe, ef = Qu(Object, "create"), Gt = ef, Tn = Gt;
1054
+ function tf() {
1055
+ this.__data__ = Tn ? Tn(null) : {}, this.size = 0;
1056
+ }
1057
+ var rf = tf;
1058
+ function nf(e) {
1059
+ var t = this.has(e) && delete this.__data__[e];
1060
+ return this.size -= t ? 1 : 0, t;
1061
+ }
1062
+ var af = nf, of = Gt, sf = "__lodash_hash_undefined__", lf = Object.prototype, cf = lf.hasOwnProperty;
1063
+ function uf(e) {
1064
+ var t = this.__data__;
1065
+ if (of) {
1066
+ var r = t[e];
1067
+ return r === sf ? void 0 : r;
1068
+ }
1069
+ return cf.call(t, e) ? t[e] : void 0;
1070
+ }
1071
+ var ff = uf, df = Gt, hf = Object.prototype, vf = hf.hasOwnProperty;
1072
+ function yf(e) {
1073
+ var t = this.__data__;
1074
+ return df ? t[e] !== void 0 : vf.call(t, e);
1075
+ }
1076
+ var pf = yf, gf = Gt, bf = "__lodash_hash_undefined__";
1077
+ function $f(e, t) {
1078
+ var r = this.__data__;
1079
+ return this.size += this.has(e) ? 0 : 1, r[e] = gf && t === void 0 ? bf : t, this;
1080
+ }
1081
+ var mf = $f, _f = rf, Tf = af, wf = ff, Sf = pf, Cf = mf;
1082
+ function st(e) {
1083
+ var t = -1, r = e == null ? 0 : e.length;
1084
+ for (this.clear(); ++t < r; ) {
1085
+ var n = e[t];
1086
+ this.set(n[0], n[1]);
1087
+ }
1088
+ }
1089
+ st.prototype.clear = _f;
1090
+ st.prototype.delete = Tf;
1091
+ st.prototype.get = wf;
1092
+ st.prototype.has = Sf;
1093
+ st.prototype.set = Cf;
1094
+ var Of = st, wn = Of, jf = Vt, Af = Ir;
1095
+ function If() {
1096
+ this.size = 0, this.__data__ = {
1097
+ hash: new wn(),
1098
+ map: new (Af || jf)(),
1099
+ string: new wn()
1100
+ };
1101
+ }
1102
+ var kf = If;
1103
+ function xf(e) {
1104
+ var t = typeof e;
1105
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
1106
+ }
1107
+ var Ef = xf, Pf = Ef;
1108
+ function Lf(e, t) {
1109
+ var r = e.__data__;
1110
+ return Pf(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
1111
+ }
1112
+ var Ht = Lf, Nf = Ht;
1113
+ function zf(e) {
1114
+ var t = Nf(this, e).delete(e);
1115
+ return this.size -= t ? 1 : 0, t;
1116
+ }
1117
+ var Mf = zf, Kf = Ht;
1118
+ function Ff(e) {
1119
+ return Kf(this, e).get(e);
1120
+ }
1121
+ var Df = Ff, Bf = Ht;
1122
+ function Uf(e) {
1123
+ return Bf(this, e).has(e);
1124
+ }
1125
+ var Vf = Uf, Rf = Ht;
1126
+ function Gf(e, t) {
1127
+ var r = Rf(this, e), n = r.size;
1128
+ return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
1129
+ }
1130
+ var Hf = Gf, Wf = kf, qf = Mf, Jf = Df, Yf = Vf, Xf = Hf;
1131
+ function lt(e) {
1132
+ var t = -1, r = e == null ? 0 : e.length;
1133
+ for (this.clear(); ++t < r; ) {
1134
+ var n = e[t];
1135
+ this.set(n[0], n[1]);
1136
+ }
1137
+ }
1138
+ lt.prototype.clear = Wf;
1139
+ lt.prototype.delete = qf;
1140
+ lt.prototype.get = Jf;
1141
+ lt.prototype.has = Yf;
1142
+ lt.prototype.set = Xf;
1143
+ var Zf = lt, Qf = Vt, ed = Ir, td = Zf, rd = 200;
1144
+ function nd(e, t) {
1145
+ var r = this.__data__;
1146
+ if (r instanceof Qf) {
1147
+ var n = r.__data__;
1148
+ if (!ed || n.length < rd - 1)
1149
+ return n.push([e, t]), this.size = ++r.size, this;
1150
+ r = this.__data__ = new td(n);
1151
+ }
1152
+ return r.set(e, t), this.size = r.size, this;
1153
+ }
1154
+ var ad = nd, id = Vt, od = Rc, sd = Hc, ld = qc, cd = Yc, ud = ad;
1155
+ function ct(e) {
1156
+ var t = this.__data__ = new id(e);
1157
+ this.size = t.size;
1158
+ }
1159
+ ct.prototype.clear = od;
1160
+ ct.prototype.delete = sd;
1161
+ ct.prototype.get = ld;
1162
+ ct.prototype.has = cd;
1163
+ ct.prototype.set = ud;
1164
+ var fd = ct;
1165
+ function dd(e, t) {
1166
+ for (var r = -1, n = e == null ? 0 : e.length; ++r < n && t(e[r], r, e) !== !1; )
1167
+ ;
1168
+ return e;
1169
+ }
1170
+ var hd = dd, vd = qe, yd = function() {
1171
+ try {
1172
+ var e = vd(Object, "defineProperty");
1173
+ return e({}, "", {}), e;
1174
+ } catch {
1175
+ }
1176
+ }(), pd = yd, Sn = pd;
1177
+ function gd(e, t, r) {
1178
+ t == "__proto__" && Sn ? Sn(e, t, {
1179
+ configurable: !0,
1180
+ enumerable: !0,
1181
+ value: r,
1182
+ writable: !0
1183
+ }) : e[t] = r;
1184
+ }
1185
+ var Ta = gd, bd = Ta, $d = ga, md = Object.prototype, _d = md.hasOwnProperty;
1186
+ function Td(e, t, r) {
1187
+ var n = e[t];
1188
+ (!(_d.call(e, t) && $d(n, r)) || r === void 0 && !(t in e)) && bd(e, t, r);
1189
+ }
1190
+ var wa = Td, wd = wa, Sd = Ta;
1191
+ function Cd(e, t, r, n) {
1192
+ var a = !r;
1193
+ r || (r = {});
1194
+ for (var l = -1, s = t.length; ++l < s; ) {
1195
+ var u = t[l], f = n ? n(r[u], e[u], u, r, e) : void 0;
1196
+ f === void 0 && (f = e[u]), a ? Sd(r, u, f) : wd(r, u, f);
1197
+ }
1198
+ return r;
1199
+ }
1200
+ var Wt = Cd;
1201
+ function Od(e, t) {
1202
+ for (var r = -1, n = Array(e); ++r < e; )
1203
+ n[r] = t(r);
1204
+ return n;
1205
+ }
1206
+ var jd = Od;
1207
+ function Ad(e) {
1208
+ return e != null && typeof e == "object";
1209
+ }
1210
+ var St = Ad, Id = Rt, kd = St, xd = "[object Arguments]";
1211
+ function Ed(e) {
1212
+ return kd(e) && Id(e) == xd;
1213
+ }
1214
+ var Pd = Ed, Cn = Pd, Ld = St, Sa = Object.prototype, Nd = Sa.hasOwnProperty, zd = Sa.propertyIsEnumerable, Md = Cn(/* @__PURE__ */ function() {
1215
+ return arguments;
1216
+ }()) ? Cn : function(e) {
1217
+ return Ld(e) && Nd.call(e, "callee") && !zd.call(e, "callee");
1218
+ }, Kd = Md, Fd = Array.isArray, kr = Fd, Nt = { exports: {} };
1219
+ function Dd() {
1220
+ return !1;
1221
+ }
1222
+ var Bd = Dd;
1223
+ Nt.exports;
1224
+ (function(e, t) {
1225
+ var r = ke, n = Bd, a = t && !t.nodeType && t, l = a && !0 && e && !e.nodeType && e, s = l && l.exports === a, u = s ? r.Buffer : void 0, f = u ? u.isBuffer : void 0, h = f || n;
1226
+ e.exports = h;
1227
+ })(Nt, Nt.exports);
1228
+ var Ca = Nt.exports, Ud = 9007199254740991, Vd = /^(?:0|[1-9]\d*)$/;
1229
+ function Rd(e, t) {
1230
+ var r = typeof e;
1231
+ return t = t ?? Ud, !!t && (r == "number" || r != "symbol" && Vd.test(e)) && e > -1 && e % 1 == 0 && e < t;
1232
+ }
1233
+ var Gd = Rd, Hd = 9007199254740991;
1234
+ function Wd(e) {
1235
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Hd;
1236
+ }
1237
+ var Oa = Wd, qd = Rt, Jd = Oa, Yd = St, Xd = "[object Arguments]", Zd = "[object Array]", Qd = "[object Boolean]", eh = "[object Date]", th = "[object Error]", rh = "[object Function]", nh = "[object Map]", ah = "[object Number]", ih = "[object Object]", oh = "[object RegExp]", sh = "[object Set]", lh = "[object String]", ch = "[object WeakMap]", uh = "[object ArrayBuffer]", fh = "[object DataView]", dh = "[object Float32Array]", hh = "[object Float64Array]", vh = "[object Int8Array]", yh = "[object Int16Array]", ph = "[object Int32Array]", gh = "[object Uint8Array]", bh = "[object Uint8ClampedArray]", $h = "[object Uint16Array]", mh = "[object Uint32Array]", q = {};
1238
+ q[dh] = q[hh] = q[vh] = q[yh] = q[ph] = q[gh] = q[bh] = q[$h] = q[mh] = !0;
1239
+ q[Xd] = q[Zd] = q[uh] = q[Qd] = q[fh] = q[eh] = q[th] = q[rh] = q[nh] = q[ah] = q[ih] = q[oh] = q[sh] = q[lh] = q[ch] = !1;
1240
+ function _h(e) {
1241
+ return Yd(e) && Jd(e.length) && !!q[qd(e)];
1242
+ }
1243
+ var Th = _h;
1244
+ function wh(e) {
1245
+ return function(t) {
1246
+ return e(t);
1247
+ };
1248
+ }
1249
+ var xr = wh, zt = { exports: {} };
1250
+ zt.exports;
1251
+ (function(e, t) {
1252
+ var r = ba, n = t && !t.nodeType && t, a = n && !0 && e && !e.nodeType && e, l = a && a.exports === n, s = l && r.process, u = function() {
1253
+ try {
1254
+ var f = a && a.require && a.require("util").types;
1255
+ return f || s && s.binding && s.binding("util");
1256
+ } catch {
1257
+ }
1258
+ }();
1259
+ e.exports = u;
1260
+ })(zt, zt.exports);
1261
+ var Er = zt.exports, Sh = Th, Ch = xr, On = Er, jn = On && On.isTypedArray, Oh = jn ? Ch(jn) : Sh, jh = Oh, Ah = jd, Ih = Kd, kh = kr, xh = Ca, Eh = Gd, Ph = jh, Lh = Object.prototype, Nh = Lh.hasOwnProperty;
1262
+ function zh(e, t) {
1263
+ var r = kh(e), n = !r && Ih(e), a = !r && !n && xh(e), l = !r && !n && !a && Ph(e), s = r || n || a || l, u = s ? Ah(e.length, String) : [], f = u.length;
1264
+ for (var h in e)
1265
+ (t || Nh.call(e, h)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
1266
+ (h == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1267
+ a && (h == "offset" || h == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1268
+ l && (h == "buffer" || h == "byteLength" || h == "byteOffset") || // Skip index properties.
1269
+ Eh(h, f))) && u.push(h);
1270
+ return u;
1271
+ }
1272
+ var ja = zh, Mh = Object.prototype;
1273
+ function Kh(e) {
1274
+ var t = e && e.constructor, r = typeof t == "function" && t.prototype || Mh;
1275
+ return e === r;
1276
+ }
1277
+ var Pr = Kh;
1278
+ function Fh(e, t) {
1279
+ return function(r) {
1280
+ return e(t(r));
1281
+ };
1282
+ }
1283
+ var Aa = Fh, Dh = Aa, Bh = Dh(Object.keys, Object), Uh = Bh, Vh = Pr, Rh = Uh, Gh = Object.prototype, Hh = Gh.hasOwnProperty;
1284
+ function Wh(e) {
1285
+ if (!Vh(e))
1286
+ return Rh(e);
1287
+ var t = [];
1288
+ for (var r in Object(e))
1289
+ Hh.call(e, r) && r != "constructor" && t.push(r);
1290
+ return t;
1291
+ }
1292
+ var qh = Wh, Jh = ma, Yh = Oa;
1293
+ function Xh(e) {
1294
+ return e != null && Yh(e.length) && !Jh(e);
1295
+ }
1296
+ var Ia = Xh, Zh = ja, Qh = qh, ev = Ia;
1297
+ function tv(e) {
1298
+ return ev(e) ? Zh(e) : Qh(e);
1299
+ }
1300
+ var Lr = tv, rv = Wt, nv = Lr;
1301
+ function av(e, t) {
1302
+ return e && rv(t, nv(t), e);
1303
+ }
1304
+ var iv = av;
1305
+ function ov(e) {
1306
+ var t = [];
1307
+ if (e != null)
1308
+ for (var r in Object(e))
1309
+ t.push(r);
1310
+ return t;
1311
+ }
1312
+ var sv = ov, lv = wt, cv = Pr, uv = sv, fv = Object.prototype, dv = fv.hasOwnProperty;
1313
+ function hv(e) {
1314
+ if (!lv(e))
1315
+ return uv(e);
1316
+ var t = cv(e), r = [];
1317
+ for (var n in e)
1318
+ n == "constructor" && (t || !dv.call(e, n)) || r.push(n);
1319
+ return r;
1320
+ }
1321
+ var vv = hv, yv = ja, pv = vv, gv = Ia;
1322
+ function bv(e) {
1323
+ return gv(e) ? yv(e, !0) : pv(e);
1324
+ }
1325
+ var Nr = bv, $v = Wt, mv = Nr;
1326
+ function _v(e, t) {
1327
+ return e && $v(t, mv(t), e);
1328
+ }
1329
+ var Tv = _v, Mt = { exports: {} };
1330
+ Mt.exports;
1331
+ (function(e, t) {
1332
+ var r = ke, n = t && !t.nodeType && t, a = n && !0 && e && !e.nodeType && e, l = a && a.exports === n, s = l ? r.Buffer : void 0, u = s ? s.allocUnsafe : void 0;
1333
+ function f(h, T) {
1334
+ if (T)
1335
+ return h.slice();
1336
+ var w = h.length, $ = u ? u(w) : new h.constructor(w);
1337
+ return h.copy($), $;
1338
+ }
1339
+ e.exports = f;
1340
+ })(Mt, Mt.exports);
1341
+ var wv = Mt.exports;
1342
+ function Sv(e, t) {
1343
+ var r = -1, n = e.length;
1344
+ for (t || (t = Array(n)); ++r < n; )
1345
+ t[r] = e[r];
1346
+ return t;
1347
+ }
1348
+ var Cv = Sv;
1349
+ function Ov(e, t) {
1350
+ for (var r = -1, n = e == null ? 0 : e.length, a = 0, l = []; ++r < n; ) {
1351
+ var s = e[r];
1352
+ t(s, r, e) && (l[a++] = s);
1353
+ }
1354
+ return l;
1355
+ }
1356
+ var jv = Ov;
1357
+ function Av() {
1358
+ return [];
1359
+ }
1360
+ var ka = Av, Iv = jv, kv = ka, xv = Object.prototype, Ev = xv.propertyIsEnumerable, An = Object.getOwnPropertySymbols, Pv = An ? function(e) {
1361
+ return e == null ? [] : (e = Object(e), Iv(An(e), function(t) {
1362
+ return Ev.call(e, t);
1363
+ }));
1364
+ } : kv, zr = Pv, Lv = Wt, Nv = zr;
1365
+ function zv(e, t) {
1366
+ return Lv(e, Nv(e), t);
1367
+ }
1368
+ var Mv = zv;
1369
+ function Kv(e, t) {
1370
+ for (var r = -1, n = t.length, a = e.length; ++r < n; )
1371
+ e[a + r] = t[r];
1372
+ return e;
1373
+ }
1374
+ var xa = Kv, Fv = Aa, Dv = Fv(Object.getPrototypeOf, Object), Ea = Dv, Bv = xa, Uv = Ea, Vv = zr, Rv = ka, Gv = Object.getOwnPropertySymbols, Hv = Gv ? function(e) {
1375
+ for (var t = []; e; )
1376
+ Bv(t, Vv(e)), e = Uv(e);
1377
+ return t;
1378
+ } : Rv, Pa = Hv, Wv = Wt, qv = Pa;
1379
+ function Jv(e, t) {
1380
+ return Wv(e, qv(e), t);
1381
+ }
1382
+ var Yv = Jv, Xv = xa, Zv = kr;
1383
+ function Qv(e, t, r) {
1384
+ var n = t(e);
1385
+ return Zv(e) ? n : Xv(n, r(e));
1386
+ }
1387
+ var La = Qv, ey = La, ty = zr, ry = Lr;
1388
+ function ny(e) {
1389
+ return ey(e, ry, ty);
1390
+ }
1391
+ var ay = ny, iy = La, oy = Pa, sy = Nr;
1392
+ function ly(e) {
1393
+ return iy(e, sy, oy);
1394
+ }
1395
+ var cy = ly, uy = qe, fy = ke, dy = uy(fy, "DataView"), hy = dy, vy = qe, yy = ke, py = vy(yy, "Promise"), gy = py, by = qe, $y = ke, my = by($y, "Set"), _y = my, Ty = qe, wy = ke, Sy = Ty(wy, "WeakMap"), Cy = Sy, ur = hy, fr = Ir, dr = gy, hr = _y, vr = Cy, Na = Rt, ut = _a, In = "[object Map]", Oy = "[object Object]", kn = "[object Promise]", xn = "[object Set]", En = "[object WeakMap]", Pn = "[object DataView]", jy = ut(ur), Ay = ut(fr), Iy = ut(dr), ky = ut(hr), xy = ut(vr), Re = Na;
1396
+ (ur && Re(new ur(new ArrayBuffer(1))) != Pn || fr && Re(new fr()) != In || dr && Re(dr.resolve()) != kn || hr && Re(new hr()) != xn || vr && Re(new vr()) != En) && (Re = function(e) {
1397
+ var t = Na(e), r = t == Oy ? e.constructor : void 0, n = r ? ut(r) : "";
1398
+ if (n)
1399
+ switch (n) {
1400
+ case jy:
1401
+ return Pn;
1402
+ case Ay:
1403
+ return In;
1404
+ case Iy:
1405
+ return kn;
1406
+ case ky:
1407
+ return xn;
1408
+ case xy:
1409
+ return En;
1410
+ }
1411
+ return t;
1412
+ });
1413
+ var Mr = Re, Ey = Object.prototype, Py = Ey.hasOwnProperty;
1414
+ function Ly(e) {
1415
+ var t = e.length, r = new e.constructor(t);
1416
+ return t && typeof e[0] == "string" && Py.call(e, "index") && (r.index = e.index, r.input = e.input), r;
1417
+ }
1418
+ var Ny = Ly, zy = ke, My = zy.Uint8Array, Ky = My, Ln = Ky;
1419
+ function Fy(e) {
1420
+ var t = new e.constructor(e.byteLength);
1421
+ return new Ln(t).set(new Ln(e)), t;
1422
+ }
1423
+ var Kr = Fy, Dy = Kr;
1424
+ function By(e, t) {
1425
+ var r = t ? Dy(e.buffer) : e.buffer;
1426
+ return new e.constructor(r, e.byteOffset, e.byteLength);
1427
+ }
1428
+ var Uy = By, Vy = /\w*$/;
1429
+ function Ry(e) {
1430
+ var t = new e.constructor(e.source, Vy.exec(e));
1431
+ return t.lastIndex = e.lastIndex, t;
1432
+ }
1433
+ var Gy = Ry, Nn = Ar, zn = Nn ? Nn.prototype : void 0, Mn = zn ? zn.valueOf : void 0;
1434
+ function Hy(e) {
1435
+ return Mn ? Object(Mn.call(e)) : {};
1436
+ }
1437
+ var Wy = Hy, qy = Kr;
1438
+ function Jy(e, t) {
1439
+ var r = t ? qy(e.buffer) : e.buffer;
1440
+ return new e.constructor(r, e.byteOffset, e.length);
1441
+ }
1442
+ var Yy = Jy, Xy = Kr, Zy = Uy, Qy = Gy, ep = Wy, tp = Yy, rp = "[object Boolean]", np = "[object Date]", ap = "[object Map]", ip = "[object Number]", op = "[object RegExp]", sp = "[object Set]", lp = "[object String]", cp = "[object Symbol]", up = "[object ArrayBuffer]", fp = "[object DataView]", dp = "[object Float32Array]", hp = "[object Float64Array]", vp = "[object Int8Array]", yp = "[object Int16Array]", pp = "[object Int32Array]", gp = "[object Uint8Array]", bp = "[object Uint8ClampedArray]", $p = "[object Uint16Array]", mp = "[object Uint32Array]";
1443
+ function _p(e, t, r) {
1444
+ var n = e.constructor;
1445
+ switch (t) {
1446
+ case up:
1447
+ return Xy(e);
1448
+ case rp:
1449
+ case np:
1450
+ return new n(+e);
1451
+ case fp:
1452
+ return Zy(e, r);
1453
+ case dp:
1454
+ case hp:
1455
+ case vp:
1456
+ case yp:
1457
+ case pp:
1458
+ case gp:
1459
+ case bp:
1460
+ case $p:
1461
+ case mp:
1462
+ return tp(e, r);
1463
+ case ap:
1464
+ return new n();
1465
+ case ip:
1466
+ case lp:
1467
+ return new n(e);
1468
+ case op:
1469
+ return Qy(e);
1470
+ case sp:
1471
+ return new n();
1472
+ case cp:
1473
+ return ep(e);
1474
+ }
1475
+ }
1476
+ var Tp = _p, wp = wt, Kn = Object.create, Sp = /* @__PURE__ */ function() {
1477
+ function e() {
1478
+ }
1479
+ return function(t) {
1480
+ if (!wp(t))
1481
+ return {};
1482
+ if (Kn)
1483
+ return Kn(t);
1484
+ e.prototype = t;
1485
+ var r = new e();
1486
+ return e.prototype = void 0, r;
1487
+ };
1488
+ }(), Cp = Sp, Op = Cp, jp = Ea, Ap = Pr;
1489
+ function Ip(e) {
1490
+ return typeof e.constructor == "function" && !Ap(e) ? Op(jp(e)) : {};
1491
+ }
1492
+ var kp = Ip, xp = Mr, Ep = St, Pp = "[object Map]";
1493
+ function Lp(e) {
1494
+ return Ep(e) && xp(e) == Pp;
1495
+ }
1496
+ var Np = Lp, zp = Np, Mp = xr, Fn = Er, Dn = Fn && Fn.isMap, Kp = Dn ? Mp(Dn) : zp, Fp = Kp, Dp = Mr, Bp = St, Up = "[object Set]";
1497
+ function Vp(e) {
1498
+ return Bp(e) && Dp(e) == Up;
1499
+ }
1500
+ var Rp = Vp, Gp = Rp, Hp = xr, Bn = Er, Un = Bn && Bn.isSet, Wp = Un ? Hp(Un) : Gp, qp = Wp, Jp = fd, Yp = hd, Xp = wa, Zp = iv, Qp = Tv, eg = wv, tg = Cv, rg = Mv, ng = Yv, ag = ay, ig = cy, og = Mr, sg = Ny, lg = Tp, cg = kp, ug = kr, fg = Ca, dg = Fp, hg = wt, vg = qp, yg = Lr, pg = Nr, gg = 1, bg = 2, $g = 4, za = "[object Arguments]", mg = "[object Array]", _g = "[object Boolean]", Tg = "[object Date]", wg = "[object Error]", Ma = "[object Function]", Sg = "[object GeneratorFunction]", Cg = "[object Map]", Og = "[object Number]", Ka = "[object Object]", jg = "[object RegExp]", Ag = "[object Set]", Ig = "[object String]", kg = "[object Symbol]", xg = "[object WeakMap]", Eg = "[object ArrayBuffer]", Pg = "[object DataView]", Lg = "[object Float32Array]", Ng = "[object Float64Array]", zg = "[object Int8Array]", Mg = "[object Int16Array]", Kg = "[object Int32Array]", Fg = "[object Uint8Array]", Dg = "[object Uint8ClampedArray]", Bg = "[object Uint16Array]", Ug = "[object Uint32Array]", H = {};
1501
+ H[za] = H[mg] = H[Eg] = H[Pg] = H[_g] = H[Tg] = H[Lg] = H[Ng] = H[zg] = H[Mg] = H[Kg] = H[Cg] = H[Og] = H[Ka] = H[jg] = H[Ag] = H[Ig] = H[kg] = H[Fg] = H[Dg] = H[Bg] = H[Ug] = !0;
1502
+ H[wg] = H[Ma] = H[xg] = !1;
1503
+ function Et(e, t, r, n, a, l) {
1504
+ var s, u = t & gg, f = t & bg, h = t & $g;
1505
+ if (r && (s = a ? r(e, n, a, l) : r(e)), s !== void 0)
1506
+ return s;
1507
+ if (!hg(e))
1508
+ return e;
1509
+ var T = ug(e);
1510
+ if (T) {
1511
+ if (s = sg(e), !u)
1512
+ return tg(e, s);
1513
+ } else {
1514
+ var w = og(e), $ = w == Ma || w == Sg;
1515
+ if (fg(e))
1516
+ return eg(e, u);
1517
+ if (w == Ka || w == za || $ && !a) {
1518
+ if (s = f || $ ? {} : cg(e), !u)
1519
+ return f ? ng(e, Qp(s, e)) : rg(e, Zp(s, e));
1520
+ } else {
1521
+ if (!H[w])
1522
+ return a ? e : {};
1523
+ s = lg(e, w, u);
1524
+ }
1525
+ }
1526
+ l || (l = new Jp());
1527
+ var J = l.get(e);
1528
+ if (J)
1529
+ return J;
1530
+ l.set(e, s), vg(e) ? e.forEach(function(m) {
1531
+ s.add(Et(m, t, r, m, e, l));
1532
+ }) : dg(e) && e.forEach(function(m, I) {
1533
+ s.set(I, Et(m, t, r, I, e, l));
1534
+ });
1535
+ var oe = h ? f ? ig : ag : f ? pg : yg, E = T ? void 0 : oe(e);
1536
+ return Yp(E || e, function(m, I) {
1537
+ E && (I = m, m = e[I]), Xp(s, I, Et(m, t, r, I, e, l));
1538
+ }), s;
1539
+ }
1540
+ var Vg = Et, Rg = Vg, Gg = 1, Hg = 4;
1541
+ function Wg(e) {
1542
+ return Rg(e, Gg | Hg);
1543
+ }
1544
+ var qg = Wg;
1545
+ const $t = /* @__PURE__ */ gc(qg), Jg = (e, t, r, n, a, l, s, u, f, h, T, w, $, J, oe, E, m, I, Q, ee, g, D, z) => {
1546
+ const B = F([]), Y = F(!1), se = F(null), A = F(null);
1547
+ Qe(
1548
+ () => Y.value,
1549
+ (b) => {
1550
+ if (!b) {
1551
+ A.value && A.value.close();
1552
+ return;
1553
+ }
1554
+ A.value = n.value && Gr.service({
1555
+ target: n.value
1556
+ });
1557
+ }
1558
+ );
1559
+ const ne = async (b, P) => {
1560
+ if (e.load)
1561
+ return await e.load(b, P);
1562
+ }, R = async () => {
1563
+ if (e.search)
1564
+ return await e.search(l.value);
1565
+ }, N = F([]), de = F([]), $e = F([]), te = F(!1), le = async (b, P, L = !1) => {
1566
+ var v, d;
1567
+ await ve(), !se.value && n.value && (te.value = !0, se.value = Gr.service({
1568
+ target: n.value
1569
+ }));
1570
+ let ce = {};
1571
+ J(b.data, b) ? ce = { data: [] } : ce = await ne(b.data, b.level), se.value && (se.value.close(), te.value = !1);
1572
+ let { data: re } = ce;
1573
+ re || (re = []);
1574
+ let pe = [];
1575
+ const i = ((v = b == null ? void 0 : b.childNodes) == null ? void 0 : v.map((p) => p.data)) || [];
1576
+ if (i && re && i.length && re.length && i.length === re.length) {
1577
+ const p = Object.keys(re[0]), _ = i.map((Z) => {
1578
+ let he = {};
1579
+ return p.forEach((we) => he[we] = Z[we]), he;
1580
+ }), U = re.map((Z) => {
1581
+ let he = {};
1582
+ return p.forEach((we) => he[we] = Z[we]), he;
1583
+ });
1584
+ if (JSON.stringify(_) === JSON.stringify(U))
1585
+ return b.loaded = !0, b.loading = !1, [];
1586
+ }
1587
+ if (b.level === 0) {
1588
+ if (N.value = re, e.parentLinkChildrenStrictly)
1589
+ for (const p of N.value) {
1590
+ const _ = await I(p);
1591
+ pe = [...pe, ..._];
1592
+ }
1593
+ if (e.defaultExpandRoot) {
1594
+ const p = (d = N.value) == null ? void 0 : d.map((_) => _[e.nodeKey]);
1595
+ m.value = $t(p);
1596
+ }
1597
+ L || (de.value.push(b), $e.value.push(P));
1598
+ }
1599
+ if (oe.value = Hr([...oe.value, ...re, ...pe], e.nodeKey), P && P(re), b.level === 0)
1600
+ re.forEach((p) => {
1601
+ var _, U, X;
1602
+ !p[u.value.isLeaf] && (!((_ = p.children) != null && _.length) || !((X = (U = p.children) == null ? void 0 : U[0]) != null && X.id)) && (p.children = [{ [e.nodeKey]: "", [u.value.label]: "" }]);
1603
+ }), ee(re);
1604
+ else {
1605
+ let p = Hr([...re], e.nodeKey).filter((_) => _[e.nodeKey]).map((_) => {
1606
+ var U, X, Z;
1607
+ return !_[u.value.isLeaf] && (!((U = _.children) != null && U.length) || !((Z = (X = _.children) == null ? void 0 : X[0]) != null && Z.id)) && (_.children = [{ [e.nodeKey]: "", [u.value.label]: "" }]), _;
1608
+ });
1609
+ g(D.value, b.data[e.nodeKey], {
1610
+ [u.value.children]: p,
1611
+ _hasLoadData: !0
1612
+ }), ee();
1613
+ }
1614
+ return re;
1615
+ }, Ne = async () => {
1616
+ var L;
1617
+ if (!(l.value ? (L = l.value) == null ? void 0 : L.trim() : "")) {
1618
+ B.value = [];
1619
+ return;
1620
+ }
1621
+ const P = await R();
1622
+ P.length === 0 && P.push({ [u.value.label]: _e("暂无数据"), id: "nodata" }), B.value = P;
1623
+ }, Ue = () => {
1624
+ B.value = [];
1625
+ }, ze = async (b, P = !1) => {
1626
+ var pe, i, v, d, p, _, U, X, Z, he, we;
1627
+ let L = b ?? {};
1628
+ if (B.value = [], l.value = "", Y.value || P && w(L, null) || (L.path || (L.path = L[e.nodeKey] ?? ""), !L.path)) return;
1629
+ const ce = L.path.split(/[\/,]/);
1630
+ if (ce[0] !== e.rootNodeId && ce.unshift(e.rootNodeId + ""), (pe = r.value) == null ? void 0 : pe.getNode(L[e.nodeKey])) {
1631
+ if (!e.showCheckbox)
1632
+ h(L);
1633
+ else if (P) {
1634
+ const Se = (_ = N.value) == null ? void 0 : _.find((ue) => ue[e.nodeKey] === L[e.nodeKey]);
1635
+ if (!(e.hideRootCheckbox && Se)) {
1636
+ const ue = s.value.includes(L.id) ? $t(s.value) : $t([...s.value, L.id]);
1637
+ (U = r.value) == null || U.setCheckedKeys(ue), E(L, { checkedKeys: [...ue] }, P);
1638
+ }
1639
+ L[e.nodeKey] && ((X = r.value) == null || X.setCurrentKey(L[e.nodeKey]));
1640
+ }
1641
+ for (const Se of ce) {
1642
+ await ve();
1643
+ const ue = (Z = r.value) == null ? void 0 : Z.getNode(Se);
1644
+ ue && (await le(ue), await ve());
1645
+ }
1646
+ (he = r.value) == null || he.setExpandedKeys(ce), (we = r.value) == null || we.setCurrentKey(L[e.nodeKey]), t("filter-node-click", L);
1647
+ } else {
1648
+ let Se = "", ue = {};
1649
+ Y.value = !0;
1650
+ for (const V of ce) {
1651
+ await ve();
1652
+ const Ke = (i = r.value) == null ? void 0 : i.getNode(V);
1653
+ if (Ke) {
1654
+ if (Ke.loaded) {
1655
+ Se = V;
1656
+ continue;
1657
+ }
1658
+ Ke.loading = !0, Ke.childNodes = [], await le(Ke), (v = r.value) == null || v.setExpandedKeys(ce), await ve(), Se = V, ue = Ke.data;
1659
+ }
1660
+ }
1661
+ if (P && ue) {
1662
+ if (!e.showCheckbox)
1663
+ h(ue);
1664
+ else {
1665
+ const V = s.value.includes(Se) ? $t(s.value) : $t([...s.value, Se]);
1666
+ (d = r.value) == null || d.setCheckedKeys(V), E(ue, { checkedKeys: [...V] }, P), ue[e.nodeKey] && ((p = r.value) == null || p.setCurrentKey(ue[e.nodeKey]));
1667
+ }
1668
+ t("filter-node-click", ue);
1669
+ }
1670
+ }
1671
+ return Y.value = !1, !0;
1672
+ }, ft = async () => {
1673
+ let b = e.defaultExpandedPaths || [];
1674
+ if (e.showCheckbox ? f.value && f.value.length && (b = [...b, ...f.value]) : f.value && (b = b == null ? void 0 : b.concat(f.value)), b.length) {
1675
+ b = Array.from(new Set(b));
1676
+ for (const P of b)
1677
+ await ze({ path: P });
1678
+ }
1679
+ return !0;
1680
+ }, dt = () => new Promise((b) => {
1681
+ const P = () => {
1682
+ if (N.value && N.value.length) return b(!0);
1683
+ setTimeout(() => P(), 50);
1684
+ };
1685
+ P();
1686
+ }), xe = async () => {
1687
+ await dt();
1688
+ const b = N.value.find((P) => !J(P));
1689
+ Q.value = !b;
1690
+ }, ye = async () => {
1691
+ await T(), await ft(), e.showOperations || await xe();
1692
+ }, Ve = async () => {
1693
+ var b, P;
1694
+ if ((P = (b = r.value) == null ? void 0 : b.store) != null && P.nodesMap && (r.value.store.nodesMap = {}), de.value.length) {
1695
+ for (let L = 0; L < de.value.length; L++)
1696
+ de.value[L].childNodes = [], ye(), await le(de.value[L], $e.value[L], !0);
1697
+ return !0;
1698
+ }
1699
+ r.value.setExpandedKeys(m.value), Me();
1700
+ };
1701
+ Qe(
1702
+ () => e.renderDom,
1703
+ (b) => {
1704
+ b && Ve();
1705
+ }
1706
+ );
1707
+ const Me = () => new Promise((b) => {
1708
+ le({ level: 0, data: {}, [u.value.isLeaf]: !0 }, b, !0).then(() => {
1709
+ T().then((P) => {
1710
+ z.value.forEach(async (L) => {
1711
+ let ce = r.value.getNode(L);
1712
+ ce && (le(ce), r.value.setExpandedKeys(z.value));
1713
+ });
1714
+ });
1715
+ });
1716
+ }).then(async () => {
1717
+ ye();
1718
+ });
1719
+ return mr(async () => {
1720
+ a.value && Me();
1721
+ }), {
1722
+ rootLevelData: N,
1723
+ searchData: B,
1724
+ firstLoading: te,
1725
+ lazyLoad: le,
1726
+ search: R,
1727
+ handleSearch: Ne,
1728
+ handleSearchClear: Ue,
1729
+ handleSearchResultItemClick: ze,
1730
+ resetLazyLoad: Ve
1731
+ };
1732
+ }, Yg = (e, t, r) => {
1733
+ let n = 0, a = "";
1734
+ const l = (f = "visible", h) => {
1735
+ var $;
1736
+ if (!r.isEllipsis) return;
1737
+ const T = ($ = t.value) == null ? void 0 : $.$el.querySelectorAll(".el-tree-node__children"), w = (T == null ? void 0 : T.length) ?? 0;
1738
+ !h && a === f && n === w || (n = w, a = f, T && T.length && T.forEach((J) => {
1739
+ J.classList.remove(a === "visible" ? "overflow-hide" : "overflow-visible"), J.classList.add(a === "visible" ? "overflow-visible" : "overflow-hide");
1740
+ }));
1741
+ }, s = new AbortController(), { signal: u } = s;
1742
+ return mr(() => {
1743
+ var h;
1744
+ if (!r.isEllipsis) return;
1745
+ const f = (h = e.value) == null ? void 0 : h.querySelector(".das-tree-container");
1746
+ f && f.addEventListener("mousemove", () => l("visible"), { signal: u });
1747
+ }), Gn(() => {
1748
+ r.isEllipsis && s.abort();
1749
+ }), { setTreeNodeChildrenOverflow: l };
1750
+ };
1751
+ function Xg() {
1752
+ var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
1753
+ if (t > 0)
1754
+ return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
1755
+ var r = e.indexOf("Trident/");
1756
+ if (r > 0) {
1757
+ var n = e.indexOf("rv:");
1758
+ return parseInt(e.substring(n + 3, e.indexOf(".", n)), 10);
1759
+ }
1760
+ var a = e.indexOf("Edge/");
1761
+ return a > 0 ? parseInt(e.substring(a + 5, e.indexOf(".", a)), 10) : -1;
1762
+ }
1763
+ let Pt;
1764
+ function yr() {
1765
+ yr.init || (yr.init = !0, Pt = Xg() !== -1);
1766
+ }
1767
+ var qt = {
1768
+ name: "ResizeObserver",
1769
+ props: {
1770
+ emitOnMount: {
1771
+ type: Boolean,
1772
+ default: !1
1773
+ },
1774
+ ignoreWidth: {
1775
+ type: Boolean,
1776
+ default: !1
1777
+ },
1778
+ ignoreHeight: {
1779
+ type: Boolean,
1780
+ default: !1
1781
+ }
1782
+ },
1783
+ emits: [
1784
+ "notify"
1785
+ ],
1786
+ mounted() {
1787
+ yr(), ve(() => {
1788
+ this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
1789
+ });
1790
+ const e = document.createElement("object");
1791
+ this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", Pt && this.$el.appendChild(e), e.data = "about:blank", Pt || this.$el.appendChild(e);
1792
+ },
1793
+ beforeUnmount() {
1794
+ this.removeResizeHandlers();
1795
+ },
1796
+ methods: {
1797
+ compareAndNotify() {
1798
+ (!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitSize());
1799
+ },
1800
+ emitSize() {
1801
+ this.$emit("notify", {
1802
+ width: this._w,
1803
+ height: this._h
1804
+ });
1805
+ },
1806
+ addResizeHandlers() {
1807
+ this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
1808
+ },
1809
+ removeResizeHandlers() {
1810
+ this._resizeObject && this._resizeObject.onload && (!Pt && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
1811
+ }
1812
+ }
1813
+ };
1814
+ const Zg = /* @__PURE__ */ ri("data-v-b329ee4c");
1815
+ ei("data-v-b329ee4c");
1816
+ const Qg = {
1817
+ class: "resize-observer",
1818
+ tabindex: "-1"
1819
+ };
1820
+ ti();
1821
+ const eb = /* @__PURE__ */ Zg((e, t, r, n, a, l) => (C(), De("div", Qg)));
1822
+ qt.render = eb;
1823
+ qt.__scopeId = "data-v-b329ee4c";
1824
+ qt.__file = "src/components/ResizeObserver.vue";
1825
+ function Lt(e) {
1826
+ "@babel/helpers - typeof";
1827
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Lt = function(t) {
1828
+ return typeof t;
1829
+ } : Lt = function(t) {
1830
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1831
+ }, Lt(e);
1832
+ }
1833
+ function tb(e, t) {
1834
+ if (!(e instanceof t))
1835
+ throw new TypeError("Cannot call a class as a function");
1836
+ }
1837
+ function rb(e, t) {
1838
+ for (var r = 0; r < t.length; r++) {
1839
+ var n = t[r];
1840
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
1841
+ }
1842
+ }
1843
+ function nb(e, t, r) {
1844
+ return t && rb(e.prototype, t), e;
1845
+ }
1846
+ function Vn(e) {
1847
+ return ab(e) || ib(e) || ob(e) || sb();
1848
+ }
1849
+ function ab(e) {
1850
+ if (Array.isArray(e)) return pr(e);
1851
+ }
1852
+ function ib(e) {
1853
+ if (typeof Symbol < "u" && Symbol.iterator in Object(e)) return Array.from(e);
1854
+ }
1855
+ function ob(e, t) {
1856
+ if (e) {
1857
+ if (typeof e == "string") return pr(e, t);
1858
+ var r = Object.prototype.toString.call(e).slice(8, -1);
1859
+ if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
1860
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return pr(e, t);
1861
+ }
1862
+ }
1863
+ function pr(e, t) {
1864
+ (t == null || t > e.length) && (t = e.length);
1865
+ for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
1866
+ return n;
1867
+ }
1868
+ function sb() {
1869
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
1870
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1871
+ }
1872
+ function lb(e) {
1873
+ var t;
1874
+ return typeof e == "function" ? t = {
1875
+ callback: e
1876
+ } : t = e, t;
1877
+ }
1878
+ function cb(e, t) {
1879
+ var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, a, l, s = function(f) {
1880
+ for (var h = arguments.length, T = new Array(h > 1 ? h - 1 : 0), w = 1; w < h; w++)
1881
+ T[w - 1] = arguments[w];
1882
+ if (l = T, !(n && f === a)) {
1883
+ var $ = r.leading;
1884
+ typeof $ == "function" && ($ = $(f, a)), (!n || f !== a) && $ && e.apply(void 0, [f].concat(Vn(l))), a = f, clearTimeout(n), n = setTimeout(function() {
1885
+ e.apply(void 0, [f].concat(Vn(l))), n = 0;
1886
+ }, t);
1887
+ }
1888
+ };
1889
+ return s._clear = function() {
1890
+ clearTimeout(n), n = null;
1891
+ }, s;
1892
+ }
1893
+ function Fa(e, t) {
1894
+ if (e === t) return !0;
1895
+ if (Lt(e) === "object") {
1896
+ for (var r in e)
1897
+ if (!Fa(e[r], t[r]))
1898
+ return !1;
1899
+ return !0;
1900
+ }
1901
+ return !1;
1902
+ }
1903
+ var ub = /* @__PURE__ */ function() {
1904
+ function e(t, r, n) {
1905
+ tb(this, e), this.el = t, this.observer = null, this.frozen = !1, this.createObserver(r, n);
1906
+ }
1907
+ return nb(e, [{
1908
+ key: "createObserver",
1909
+ value: function(r, n) {
1910
+ var a = this;
1911
+ if (this.observer && this.destroyObserver(), !this.frozen) {
1912
+ if (this.options = lb(r), this.callback = function(u, f) {
1913
+ a.options.callback(u, f), u && a.options.once && (a.frozen = !0, a.destroyObserver());
1914
+ }, this.callback && this.options.throttle) {
1915
+ var l = this.options.throttleOptions || {}, s = l.leading;
1916
+ this.callback = cb(this.callback, this.options.throttle, {
1917
+ leading: function(f) {
1918
+ return s === "both" || s === "visible" && f || s === "hidden" && !f;
1919
+ }
1920
+ });
1921
+ }
1922
+ this.oldResult = void 0, this.observer = new IntersectionObserver(function(u) {
1923
+ var f = u[0];
1924
+ if (u.length > 1) {
1925
+ var h = u.find(function(w) {
1926
+ return w.isIntersecting;
1927
+ });
1928
+ h && (f = h);
1929
+ }
1930
+ if (a.callback) {
1931
+ var T = f.isIntersecting && f.intersectionRatio >= a.threshold;
1932
+ if (T === a.oldResult) return;
1933
+ a.oldResult = T, a.callback(T, f);
1934
+ }
1935
+ }, this.options.intersection), ve(function() {
1936
+ a.observer && a.observer.observe(a.el);
1937
+ });
1938
+ }
1939
+ }
1940
+ }, {
1941
+ key: "destroyObserver",
1942
+ value: function() {
1943
+ this.observer && (this.observer.disconnect(), this.observer = null), this.callback && this.callback._clear && (this.callback._clear(), this.callback = null);
1944
+ }
1945
+ }, {
1946
+ key: "threshold",
1947
+ get: function() {
1948
+ return this.options.intersection && typeof this.options.intersection.threshold == "number" ? this.options.intersection.threshold : 0;
1949
+ }
1950
+ }]), e;
1951
+ }();
1952
+ function Da(e, t, r) {
1953
+ var n = t.value;
1954
+ if (n && !(typeof IntersectionObserver > "u")) {
1955
+ var a = new ub(e, n, r);
1956
+ e._vue_visibilityState = a;
1957
+ }
1958
+ }
1959
+ function fb(e, t, r) {
1960
+ var n = t.value, a = t.oldValue;
1961
+ if (!Fa(n, a)) {
1962
+ var l = e._vue_visibilityState;
1963
+ if (!n) {
1964
+ Ba(e);
1965
+ return;
1966
+ }
1967
+ l ? l.createObserver(n, r) : Da(e, {
1968
+ value: n
1969
+ }, r);
1970
+ }
1971
+ }
1972
+ function Ba(e) {
1973
+ var t = e._vue_visibilityState;
1974
+ t && (t.destroyObserver(), delete e._vue_visibilityState);
1975
+ }
1976
+ var db = {
1977
+ beforeMount: Da,
1978
+ updated: fb,
1979
+ unmounted: Ba
1980
+ }, hb = {
1981
+ itemsLimit: 1e3
1982
+ }, vb = /(auto|scroll)/;
1983
+ function Ua(e, t) {
1984
+ return e.parentNode === null ? t : Ua(e.parentNode, t.concat([e]));
1985
+ }
1986
+ var rr = function(t, r) {
1987
+ return getComputedStyle(t, null).getPropertyValue(r);
1988
+ }, yb = function(t) {
1989
+ return rr(t, "overflow") + rr(t, "overflow-y") + rr(t, "overflow-x");
1990
+ }, pb = function(t) {
1991
+ return vb.test(yb(t));
1992
+ };
1993
+ function Rn(e) {
1994
+ if (e instanceof HTMLElement || e instanceof SVGElement) {
1995
+ for (var t = Ua(e.parentNode, []), r = 0; r < t.length; r += 1)
1996
+ if (pb(t[r]))
1997
+ return t[r];
1998
+ return document.scrollingElement || document.documentElement;
1999
+ }
2000
+ }
2001
+ function gr(e) {
2002
+ "@babel/helpers - typeof";
2003
+ return gr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2004
+ return typeof t;
2005
+ } : function(t) {
2006
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2007
+ }, gr(e);
2008
+ }
2009
+ var gb = {
2010
+ items: {
2011
+ type: Array,
2012
+ required: !0
2013
+ },
2014
+ keyField: {
2015
+ type: String,
2016
+ default: "id"
2017
+ },
2018
+ direction: {
2019
+ type: String,
2020
+ default: "vertical",
2021
+ validator: function(t) {
2022
+ return ["vertical", "horizontal"].includes(t);
2023
+ }
2024
+ },
2025
+ listTag: {
2026
+ type: String,
2027
+ default: "div"
2028
+ },
2029
+ itemTag: {
2030
+ type: String,
2031
+ default: "div"
2032
+ }
2033
+ };
2034
+ function bb() {
2035
+ return this.items.length && gr(this.items[0]) !== "object";
2036
+ }
2037
+ var br = !1;
2038
+ if (typeof window < "u") {
2039
+ br = !1;
2040
+ try {
2041
+ var $b = Object.defineProperty({}, "passive", {
2042
+ get: function() {
2043
+ br = !0;
2044
+ }
2045
+ });
2046
+ window.addEventListener("test", null, $b);
2047
+ } catch {
2048
+ }
2049
+ }
2050
+ let mb = 0;
2051
+ var Kt = {
2052
+ name: "RecycleScroller",
2053
+ components: {
2054
+ ResizeObserver: qt
2055
+ },
2056
+ directives: {
2057
+ ObserveVisibility: db
2058
+ },
2059
+ props: {
2060
+ ...gb,
2061
+ itemSize: {
2062
+ type: Number,
2063
+ default: null
2064
+ },
2065
+ gridItems: {
2066
+ type: Number,
2067
+ default: void 0
2068
+ },
2069
+ itemSecondarySize: {
2070
+ type: Number,
2071
+ default: void 0
2072
+ },
2073
+ minItemSize: {
2074
+ type: [Number, String],
2075
+ default: null
2076
+ },
2077
+ sizeField: {
2078
+ type: String,
2079
+ default: "size"
2080
+ },
2081
+ typeField: {
2082
+ type: String,
2083
+ default: "type"
2084
+ },
2085
+ buffer: {
2086
+ type: Number,
2087
+ default: 200
2088
+ },
2089
+ pageMode: {
2090
+ type: Boolean,
2091
+ default: !1
2092
+ },
2093
+ prerender: {
2094
+ type: Number,
2095
+ default: 0
2096
+ },
2097
+ emitUpdate: {
2098
+ type: Boolean,
2099
+ default: !1
2100
+ },
2101
+ updateInterval: {
2102
+ type: Number,
2103
+ default: 0
2104
+ },
2105
+ skipHover: {
2106
+ type: Boolean,
2107
+ default: !1
2108
+ },
2109
+ listTag: {
2110
+ type: String,
2111
+ default: "div"
2112
+ },
2113
+ itemTag: {
2114
+ type: String,
2115
+ default: "div"
2116
+ },
2117
+ listClass: {
2118
+ type: [String, Object, Array],
2119
+ default: ""
2120
+ },
2121
+ itemClass: {
2122
+ type: [String, Object, Array],
2123
+ default: ""
2124
+ }
2125
+ },
2126
+ emits: [
2127
+ "resize",
2128
+ "visible",
2129
+ "hidden",
2130
+ "update",
2131
+ "scroll-start",
2132
+ "scroll-end"
2133
+ ],
2134
+ data() {
2135
+ return {
2136
+ pool: [],
2137
+ totalSize: 0,
2138
+ ready: !1,
2139
+ hoverKey: null
2140
+ };
2141
+ },
2142
+ computed: {
2143
+ sizes() {
2144
+ if (this.itemSize === null) {
2145
+ const e = {
2146
+ "-1": { accumulator: 0 }
2147
+ }, t = this.items, r = this.sizeField, n = this.minItemSize;
2148
+ let a = 1e4, l = 0, s;
2149
+ for (let u = 0, f = t.length; u < f; u++)
2150
+ s = t[u][r] || n, s < a && (a = s), l += s, e[u] = { accumulator: l, size: s };
2151
+ return this.$_computedMinItemSize = a, e;
2152
+ }
2153
+ return [];
2154
+ },
2155
+ simpleArray: bb,
2156
+ itemIndexByKey() {
2157
+ const { keyField: e, items: t } = this, r = {};
2158
+ for (let n = 0, a = t.length; n < a; n++)
2159
+ r[t[n][e]] = n;
2160
+ return r;
2161
+ }
2162
+ },
2163
+ watch: {
2164
+ items() {
2165
+ this.updateVisibleItems(!0);
2166
+ },
2167
+ pageMode() {
2168
+ this.applyPageMode(), this.updateVisibleItems(!1);
2169
+ },
2170
+ sizes: {
2171
+ handler() {
2172
+ this.updateVisibleItems(!1);
2173
+ },
2174
+ deep: !0
2175
+ },
2176
+ gridItems() {
2177
+ this.updateVisibleItems(!0);
2178
+ },
2179
+ itemSecondarySize() {
2180
+ this.updateVisibleItems(!0);
2181
+ }
2182
+ },
2183
+ created() {
2184
+ this.$_startIndex = 0, this.$_endIndex = 0, this.$_views = /* @__PURE__ */ new Map(), this.$_unusedViews = /* @__PURE__ */ new Map(), this.$_scrollDirty = !1, this.$_lastUpdateScrollPosition = 0, this.prerender && (this.$_prerender = !0, this.updateVisibleItems(!1)), this.gridItems && this.itemSize;
2185
+ },
2186
+ mounted() {
2187
+ this.applyPageMode(), this.$nextTick(() => {
2188
+ this.$_prerender = !1, this.updateVisibleItems(!0), this.ready = !0;
2189
+ });
2190
+ },
2191
+ activated() {
2192
+ const e = this.$_lastUpdateScrollPosition;
2193
+ typeof e == "number" && this.$nextTick(() => {
2194
+ this.scrollToPosition(e);
2195
+ });
2196
+ },
2197
+ beforeUnmount() {
2198
+ this.removeListeners();
2199
+ },
2200
+ methods: {
2201
+ addView(e, t, r, n, a) {
2202
+ const l = ni({
2203
+ id: mb++,
2204
+ index: t,
2205
+ used: !0,
2206
+ key: n,
2207
+ type: a
2208
+ }), s = ai({
2209
+ item: r,
2210
+ position: 0,
2211
+ nr: l
2212
+ });
2213
+ return e.push(s), s;
2214
+ },
2215
+ unuseView(e, t = !1) {
2216
+ const r = this.$_unusedViews, n = e.nr.type;
2217
+ let a = r.get(n);
2218
+ a || (a = [], r.set(n, a)), a.push(e), t || (e.nr.used = !1, e.position = -9999);
2219
+ },
2220
+ handleResize() {
2221
+ this.$emit("resize"), this.ready && this.updateVisibleItems(!1);
2222
+ },
2223
+ handleScroll(e) {
2224
+ if (!this.$_scrollDirty) {
2225
+ if (this.$_scrollDirty = !0, this.$_updateTimeout) return;
2226
+ const t = () => requestAnimationFrame(() => {
2227
+ this.$_scrollDirty = !1;
2228
+ const { continuous: r } = this.updateVisibleItems(!1, !0);
2229
+ r || (clearTimeout(this.$_refreshTimout), this.$_refreshTimout = setTimeout(this.handleScroll, this.updateInterval + 100));
2230
+ });
2231
+ t(), this.updateInterval && (this.$_updateTimeout = setTimeout(() => {
2232
+ this.$_updateTimeout = 0, this.$_scrollDirty && t();
2233
+ }, this.updateInterval));
2234
+ }
2235
+ },
2236
+ handleVisibilityChange(e, t) {
2237
+ this.ready && (e || t.boundingClientRect.width !== 0 || t.boundingClientRect.height !== 0 ? (this.$emit("visible"), requestAnimationFrame(() => {
2238
+ this.updateVisibleItems(!1);
2239
+ })) : this.$emit("hidden"));
2240
+ },
2241
+ updateVisibleItems(e, t = !1) {
2242
+ const r = this.itemSize, n = this.gridItems || 1, a = this.itemSecondarySize || r, l = this.$_computedMinItemSize, s = this.typeField, u = this.simpleArray ? null : this.keyField, f = this.items, h = f.length, T = this.sizes, w = this.$_views, $ = this.$_unusedViews, J = this.pool, oe = this.itemIndexByKey;
2243
+ let E, m, I, Q, ee;
2244
+ if (!h)
2245
+ E = m = Q = ee = I = 0;
2246
+ else if (this.$_prerender)
2247
+ E = Q = 0, m = ee = Math.min(this.prerender, f.length), I = null;
2248
+ else {
2249
+ const A = this.getScroll();
2250
+ if (t) {
2251
+ let N = A.start - this.$_lastUpdateScrollPosition;
2252
+ if (N < 0 && (N = -N), r === null && N < l || N < r)
2253
+ return {
2254
+ continuous: !0
2255
+ };
2256
+ }
2257
+ this.$_lastUpdateScrollPosition = A.start;
2258
+ const ne = this.buffer;
2259
+ A.start -= ne, A.end += ne;
2260
+ let R = 0;
2261
+ if (this.$refs.before && (R = this.$refs.before.scrollHeight, A.start -= R), this.$refs.after) {
2262
+ const N = this.$refs.after.scrollHeight;
2263
+ A.end += N;
2264
+ }
2265
+ if (r === null) {
2266
+ let N, de = 0, $e = h - 1, te = ~~(h / 2), le;
2267
+ do
2268
+ le = te, N = T[te].accumulator, N < A.start ? de = te : te < h - 1 && T[te + 1].accumulator > A.start && ($e = te), te = ~~((de + $e) / 2);
2269
+ while (te !== le);
2270
+ for (te < 0 && (te = 0), E = te, I = T[h - 1].accumulator, m = te; m < h && T[m].accumulator < A.end; m++) ;
2271
+ for (m === -1 ? m = f.length - 1 : (m++, m > h && (m = h)), Q = E; Q < h && R + T[Q].accumulator < A.start; Q++) ;
2272
+ for (ee = Q; ee < h && R + T[ee].accumulator < A.end; ee++) ;
2273
+ } else {
2274
+ E = ~~(A.start / r * n);
2275
+ const N = E % n;
2276
+ E -= N, m = Math.ceil(A.end / r * n), Q = Math.max(0, Math.floor((A.start - R) / r * n)), ee = Math.floor((A.end - R) / r * n), E < 0 && (E = 0), m > h && (m = h), Q < 0 && (Q = 0), ee > h && (ee = h), I = Math.ceil(h / n) * r;
2277
+ }
2278
+ }
2279
+ m - E > hb.itemsLimit && this.itemsLimitError(), this.totalSize = I;
2280
+ let g;
2281
+ const D = E <= this.$_endIndex && m >= this.$_startIndex;
2282
+ if (D)
2283
+ for (let A = 0, ne = J.length; A < ne; A++)
2284
+ g = J[A], g.nr.used && (e && (g.nr.index = oe[g.item[u]]), (g.nr.index == null || g.nr.index < E || g.nr.index >= m) && this.unuseView(g));
2285
+ const z = D ? null : /* @__PURE__ */ new Map();
2286
+ let B, Y, se;
2287
+ for (let A = E; A < m; A++) {
2288
+ B = f[A];
2289
+ const ne = u ? B[u] : B;
2290
+ if (ne == null)
2291
+ throw new Error(`Key is ${ne} on item (keyField is '${u}')`);
2292
+ if (g = w.get(ne), !r && !T[A].size) {
2293
+ g && this.unuseView(g);
2294
+ continue;
2295
+ }
2296
+ Y = B[s];
2297
+ let R = $.get(Y), N = !1;
2298
+ if (!g)
2299
+ D ? R && R.length ? g = R.pop() : g = this.addView(J, A, B, ne, Y) : (se = z.get(Y) || 0, (!R || se >= R.length) && (g = this.addView(J, A, B, ne, Y), this.unuseView(g, !0), R = $.get(Y)), g = R[se], z.set(Y, se + 1)), w.delete(g.nr.key), g.nr.used = !0, g.nr.index = A, g.nr.key = ne, g.nr.type = Y, w.set(ne, g), N = !0;
2300
+ else if (!g.nr.used && (g.nr.used = !0, N = !0, R)) {
2301
+ const de = R.indexOf(g);
2302
+ de !== -1 && R.splice(de, 1);
2303
+ }
2304
+ g.item = B, N && (A === f.length - 1 && this.$emit("scroll-end"), A === 0 && this.$emit("scroll-start")), r === null ? (g.position = T[A - 1].accumulator, g.offset = 0) : (g.position = Math.floor(A / n) * r, g.offset = A % n * a);
2305
+ }
2306
+ return this.$_startIndex = E, this.$_endIndex = m, this.emitUpdate && this.$emit("update", E, m, Q, ee), clearTimeout(this.$_sortTimer), this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300), {
2307
+ continuous: D
2308
+ };
2309
+ },
2310
+ getListenerTarget() {
2311
+ let e = Rn(this.$el);
2312
+ return window.document && (e === window.document.documentElement || e === window.document.body) && (e = window), e;
2313
+ },
2314
+ getScroll() {
2315
+ const { $el: e, direction: t } = this, r = t === "vertical";
2316
+ let n;
2317
+ if (this.pageMode) {
2318
+ const a = e.getBoundingClientRect(), l = r ? a.height : a.width;
2319
+ let s = -(r ? a.top : a.left), u = r ? window.innerHeight : window.innerWidth;
2320
+ s < 0 && (u += s, s = 0), s + u > l && (u = l - s), n = {
2321
+ start: s,
2322
+ end: s + u
2323
+ };
2324
+ } else r ? n = {
2325
+ start: e.scrollTop,
2326
+ end: e.scrollTop + e.clientHeight
2327
+ } : n = {
2328
+ start: e.scrollLeft,
2329
+ end: e.scrollLeft + e.clientWidth
2330
+ };
2331
+ return n;
2332
+ },
2333
+ applyPageMode() {
2334
+ this.pageMode ? this.addListeners() : this.removeListeners();
2335
+ },
2336
+ addListeners() {
2337
+ this.listenerTarget = this.getListenerTarget(), this.listenerTarget.addEventListener("scroll", this.handleScroll, br ? {
2338
+ passive: !0
2339
+ } : !1), this.listenerTarget.addEventListener("resize", this.handleResize);
2340
+ },
2341
+ removeListeners() {
2342
+ this.listenerTarget && (this.listenerTarget.removeEventListener("scroll", this.handleScroll), this.listenerTarget.removeEventListener("resize", this.handleResize), this.listenerTarget = null);
2343
+ },
2344
+ scrollToItem(e) {
2345
+ let t;
2346
+ const r = this.gridItems || 1;
2347
+ this.itemSize === null ? t = e > 0 ? this.sizes[e - 1].accumulator : 0 : t = Math.floor(e / r) * this.itemSize, this.scrollToPosition(t);
2348
+ },
2349
+ scrollToPosition(e) {
2350
+ const t = this.direction === "vertical" ? { scroll: "scrollTop", start: "top" } : { scroll: "scrollLeft", start: "left" };
2351
+ let r, n, a;
2352
+ if (this.pageMode) {
2353
+ const l = Rn(this.$el), s = l.tagName === "HTML" ? 0 : l[t.scroll], u = l.getBoundingClientRect(), h = this.$el.getBoundingClientRect()[t.start] - u[t.start];
2354
+ r = l, n = t.scroll, a = e + s + h;
2355
+ } else
2356
+ r = this.$el, n = t.scroll, a = e;
2357
+ r[n] = a;
2358
+ },
2359
+ itemsLimitError() {
2360
+ throw setTimeout(() => {
2361
+ }), new Error("Rendered items limit reached");
2362
+ },
2363
+ sortViews() {
2364
+ this.pool.sort((e, t) => e.nr.index - t.nr.index);
2365
+ }
2366
+ }
2367
+ };
2368
+ const _b = {
2369
+ key: 0,
2370
+ ref: "before",
2371
+ class: "vue-recycle-scroller__slot"
2372
+ }, Tb = {
2373
+ key: 1,
2374
+ ref: "after",
2375
+ class: "vue-recycle-scroller__slot"
2376
+ };
2377
+ function wb(e, t, r, n, a, l) {
2378
+ const s = ii("ResizeObserver"), u = oi("observe-visibility");
2379
+ return ge((C(), x(
2380
+ "div",
2381
+ {
2382
+ class: Fe(["vue-recycle-scroller", {
2383
+ ready: a.ready,
2384
+ "page-mode": r.pageMode,
2385
+ [`direction-${e.direction}`]: !0
2386
+ }]),
2387
+ onScrollPassive: t[0] || (t[0] = (...f) => l.handleScroll && l.handleScroll(...f))
2388
+ },
2389
+ [
2390
+ e.$slots.before ? (C(), x(
2391
+ "div",
2392
+ _b,
2393
+ [
2394
+ M(e.$slots, "before")
2395
+ ],
2396
+ 512
2397
+ /* NEED_PATCH */
2398
+ )) : j("v-if", !0),
2399
+ (C(), De(Rr(r.listTag), {
2400
+ ref: "wrapper",
2401
+ style: nr({ [e.direction === "vertical" ? "minHeight" : "minWidth"]: a.totalSize + "px" }),
2402
+ class: Fe(["vue-recycle-scroller__item-wrapper", r.listClass])
2403
+ }, {
2404
+ default: be(() => [
2405
+ (C(!0), x(
2406
+ Ae,
2407
+ null,
2408
+ It(a.pool, (f) => (C(), De(Rr(r.itemTag), ar({
2409
+ key: f.nr.id,
2410
+ style: a.ready ? {
2411
+ transform: `translate${e.direction === "vertical" ? "Y" : "X"}(${f.position}px) translate${e.direction === "vertical" ? "X" : "Y"}(${f.offset}px)`,
2412
+ width: r.gridItems ? `${e.direction === "vertical" && r.itemSecondarySize || r.itemSize}px` : void 0,
2413
+ height: r.gridItems ? `${e.direction === "horizontal" && r.itemSecondarySize || r.itemSize}px` : void 0
2414
+ } : null,
2415
+ class: ["vue-recycle-scroller__item-view", [
2416
+ r.itemClass,
2417
+ {
2418
+ hover: !r.skipHover && a.hoverKey === f.nr.key
2419
+ }
2420
+ ]]
2421
+ }, si(r.skipHover ? {} : {
2422
+ mouseenter: () => {
2423
+ a.hoverKey = f.nr.key;
2424
+ },
2425
+ mouseleave: () => {
2426
+ a.hoverKey = null;
2427
+ }
2428
+ })), {
2429
+ default: be(() => [
2430
+ M(e.$slots, "default", {
2431
+ item: f.item,
2432
+ index: f.nr.index,
2433
+ active: f.nr.used
2434
+ })
2435
+ ]),
2436
+ _: 2
2437
+ /* DYNAMIC */
2438
+ }, 1040, ["style", "class"]))),
2439
+ 128
2440
+ /* KEYED_FRAGMENT */
2441
+ )),
2442
+ M(e.$slots, "empty")
2443
+ ]),
2444
+ _: 3
2445
+ /* FORWARDED */
2446
+ }, 8, ["style", "class"])),
2447
+ e.$slots.after ? (C(), x(
2448
+ "div",
2449
+ Tb,
2450
+ [
2451
+ M(e.$slots, "after")
2452
+ ],
2453
+ 512
2454
+ /* NEED_PATCH */
2455
+ )) : j("v-if", !0),
2456
+ Ie(s, { onNotify: l.handleResize }, null, 8, ["onNotify"])
2457
+ ],
2458
+ 34
2459
+ /* CLASS, HYDRATE_EVENTS */
2460
+ )), [
2461
+ [u, l.handleVisibilityChange]
2462
+ ]);
2463
+ }
2464
+ Kt.render = wb;
2465
+ Kt.__file = "src/components/RecycleScroller.vue";
2466
+ const Sb = { class: "das-tree-box" }, Cb = { class: "das-tree-container das-ce-scrollbar" }, Ob = {
2467
+ key: 0,
2468
+ class: "tree-oprations-node"
2469
+ }, jb = {
2470
+ key: 0,
2471
+ class: "tree-oprations-label"
2472
+ }, Ab = {
2473
+ key: 1,
2474
+ class: "tree-oprations-label"
2475
+ }, Ib = ["onMouseenter"], kb = {
2476
+ key: 0,
2477
+ class: "tree-normal-node"
2478
+ }, xb = {
2479
+ key: 1,
2480
+ class: "tree-normal-node"
2481
+ }, Eb = {
2482
+ key: 0,
2483
+ class: "empty-box"
2484
+ }, Pb = {
2485
+ key: 0,
2486
+ class: "search-result-container das-ce-scrollbar"
2487
+ }, Lb = ["onMousedown"], Nb = { class: "name" }, zb = {
2488
+ key: 0,
2489
+ class: "path-name"
2490
+ }, Mb = {
2491
+ key: 1,
2492
+ class: "search-result-container"
2493
+ }, Kb = {
2494
+ key: 0,
2495
+ class: "search-result-container das-ce-scrollbar"
2496
+ }, Fb = ["onMousedown"], Db = { class: "name" }, Bb = {
2497
+ key: 0,
2498
+ class: "path-name"
2499
+ }, Ub = {
2500
+ key: 1,
2501
+ class: "search-result-container"
2502
+ }, Vb = {
2503
+ key: 0,
2504
+ class: "opration-list"
2505
+ }, Rb = ["disabled", "onClick"], Gb = { class: "icon" }, Hb = { class: "label" }, Wb = ["disabled", "onClick"], qb = { class: "icon" }, Jb = { class: "label" }, Yb = ["disabled", "onClick"], Xb = { class: "icon" }, Zb = { class: "label" }, Qb = {
2506
+ name: "DasTree",
2507
+ inheritAttrs: !1
2508
+ }, e$ = /* @__PURE__ */ $r({
2509
+ ...Qb,
2510
+ props: {
2511
+ data: { default: () => [] },
2512
+ loading: { type: Boolean },
2513
+ nodeKey: { default: "id" },
2514
+ modelValue: { default: "" },
2515
+ path: {},
2516
+ height: {},
2517
+ isEllipsis: { type: Boolean },
2518
+ draggable: { type: Boolean },
2519
+ allowDrag: {},
2520
+ currentNodeKey: { default: "" },
2521
+ defaultCheckedKeys: {},
2522
+ defaultExpandedKeys: { default: () => [] },
2523
+ defaultExpandedPaths: { default: () => [] },
2524
+ defaultExpandRoot: { type: Boolean, default: !0 },
2525
+ expandOnClickNode: { type: Boolean, default: void 0 },
2526
+ checkStrictly: { type: Boolean, default: void 0 },
2527
+ parentLinkChildrenStrictly: { type: Boolean },
2528
+ getGrandChildren: {},
2529
+ childLinkParentStrictly: { type: Boolean },
2530
+ props: { default: () => ({}) },
2531
+ showCheckbox: { type: Boolean },
2532
+ hideRootCheckbox: { type: Boolean },
2533
+ showOperations: { type: Boolean },
2534
+ operations: {},
2535
+ mergeOprations: {},
2536
+ operationsLayout: { type: [String, Function], default: "add,addItem,edit,delete,preview,view" },
2537
+ operationsLabel: {},
2538
+ maxNodeLevel: { default: 12 },
2539
+ showFilterInput: { type: Boolean, default: !0 },
2540
+ isFilter: { type: Boolean },
2541
+ filterNodeMethod: {},
2542
+ filterValue: {},
2543
+ filterItemClass: {},
2544
+ inputOptions: { default: () => ({}) },
2545
+ emptyText: { default: "" },
2546
+ searchEmptyText: { default: "" },
2547
+ rootNodeId: { default: "-1" },
2548
+ load: {},
2549
+ search: {},
2550
+ renderDom: { type: Boolean, default: !0 },
2551
+ overlayZIndex: { default: "1" },
2552
+ keepSelected: { type: Boolean },
2553
+ notAutoresetLazyLoad: { type: Boolean },
2554
+ changeNodeConfirm: {}
2555
+ },
2556
+ emits: ["update:filterValue", "update:modelValue", "update:path", "change", "handleOperation", "filter-value-change", "filter-node-click", "node-change", "node-click", "node-db-click", "current-change", "check-node-change"],
2557
+ setup(e, { expose: t, emit: r }) {
2558
+ const n = e, a = r, l = F([]);
2559
+ hi({
2560
+ gengduocaozuo: import("@das-fed/ui/packages/icons/gengduocaozuo"),
2561
+ search: import("@das-fed/ui/packages/icons/search"),
2562
+ add: import("@das-fed/ui/packages/icons/add"),
2563
+ addItem: import("@das-fed/ui/packages/icons/add-item"),
2564
+ edit: import("@das-fed/ui/packages/icons/edit"),
2565
+ delete: import("@das-fed/ui/packages/icons/delete"),
2566
+ preview: import("@das-fed/ui/packages/icons/preview"),
2567
+ view: import("@das-fed/ui/packages/icons/view")
2568
+ });
2569
+ const s = F(), u = F(null), f = F(0);
2570
+ mr(() => {
2571
+ s.value = bi(
2572
+ (o) => {
2573
+ f.value = o.height;
2574
+ },
2575
+ u.value.parentElement
2576
+ );
2577
+ }), Gn(() => {
2578
+ s.value.disconnect();
2579
+ });
2580
+ const h = ie(() => n != null && n.height ? n.height : f.value), T = async (o, S) => {
2581
+ if (m.value && !o[i.value.isLeaf] && !o._hasLoadData) {
2582
+ o[i.value.children] = o[i.value.children].filter(
2583
+ (y) => y[n.nodeKey]
2584
+ );
2585
+ let K = await m.value(o);
2586
+ if (!K.data) return;
2587
+ K.data.forEach((y) => {
2588
+ var O, ae, fe;
2589
+ !y[i.value.isLeaf] && (!((O = y.children) != null && O.length) || !((fe = (ae = y.children) == null ? void 0 : ae[0]) != null && fe.id)) && (y.children = [{ [n.nodeKey]: "", [i.value.label]: "" }]);
2590
+ }), o[i.value.children] = K.data, o._hasLoadData = !0, w();
2591
+ }
2592
+ a("node-expend", o, S);
2593
+ }, w = (o = l.value) => {
2594
+ var S;
2595
+ g.value && (l.value = o, (S = g.value) == null || S.setData(o));
2596
+ }, $ = li(), J = ie(() => n.emptyText || _e("暂无数据")), oe = ie(() => n.searchEmptyText || _e("noDataTryAnotherKeyword")), E = ie(() => $.lazy ?? !!m.value), m = ie(() => n.load ?? void 0), I = ie(() => n.search ?? void 0), Q = ie(() => n.showCheckbox ? D.value : []), ee = ie(() => n.showCheckbox ? n.currentNodeKey : D.value), g = F(), D = ie({
2597
+ get() {
2598
+ return n.showCheckbox && !n.modelValue ? [] : n.modelValue;
2599
+ },
2600
+ set(o) {
2601
+ a("update:modelValue", o);
2602
+ }
2603
+ }), z = ie({
2604
+ get: () => n.path,
2605
+ set: (o) => {
2606
+ a("update:path", o);
2607
+ }
2608
+ }), B = F([]), Y = ie(() => {
2609
+ let o = [...B.value, ...n.defaultExpandedKeys];
2610
+ return Array.from(new Set(o));
2611
+ });
2612
+ let se = null;
2613
+ const A = () => new Promise((o) => {
2614
+ const S = () => {
2615
+ if (u.value.querySelector(".el-tree-virtual-list"))
2616
+ return se = new MutationObserver((y, O) => {
2617
+ }), se.observe(u.value, { childList: !0 }), o(!0);
2618
+ setTimeout(() => S(), 50);
2619
+ };
2620
+ S();
2621
+ }), ne = (o, S, K) => {
2622
+ if (o)
2623
+ for (let y = 0; y < o.length; y++) {
2624
+ if (o[y][n.nodeKey] === S) {
2625
+ o[y] = { ...o[y], ...K };
2626
+ break;
2627
+ }
2628
+ o[y][i.value.children] && ne(o[y][i.value.children], S, K);
2629
+ }
2630
+ }, R = async (o) => {
2631
+ if (n.getGrandChildren)
2632
+ return await n.getGrandChildren(o);
2633
+ }, N = (o, S) => {
2634
+ var y;
2635
+ let K = o.childNodes.length;
2636
+ if (K > 0)
2637
+ for (let O = 0; O < K; O++) {
2638
+ const ae = S, fe = o.childNodes[O];
2639
+ if (U(fe.data, fe)) {
2640
+ N({ ...fe, checked: ae }, S);
2641
+ continue;
2642
+ }
2643
+ fe.checked !== ae && (fe.checked = ae), N(fe, S);
2644
+ }
2645
+ g.value && (D.value = (y = g.value) == null ? void 0 : y.getCheckedKeys());
2646
+ }, de = async (o, S) => {
2647
+ var y;
2648
+ await ve();
2649
+ const K = (y = g.value) == null ? void 0 : y.getNode(o[n.nodeKey]);
2650
+ return N(K, S), !0;
2651
+ }, $e = (o, S) => {
2652
+ const K = o == null ? void 0 : o.parent;
2653
+ if (!K) return;
2654
+ const y = S;
2655
+ if (U(K.data, K)) {
2656
+ $e({ ...K, checked: y }, S);
2657
+ return;
2658
+ }
2659
+ K.checked !== y && (K.checked = y), $e(K, S);
2660
+ }, te = async (o, S) => {
2661
+ var y, O;
2662
+ await ve();
2663
+ const K = (y = g.value) == null ? void 0 : y.getNode(o[n.nodeKey]);
2664
+ return $e(K, S), g.value && (D.value = (O = g.value) == null ? void 0 : O.getCheckedKeys()), !0;
2665
+ }, le = F(!1), Ne = F(!1), Ue = async (o, S, K = !1) => {
2666
+ var ht, vt;
2667
+ Ne.value = !0;
2668
+ const { checkedKeys: y } = S, O = y.includes(o[n.nodeKey]), ae = D.value.includes(o[n.nodeKey]), fe = n.keepSelected && !Va(o) && ae && !O;
2669
+ await ve();
2670
+ let Ce = ((ht = g.value) == null ? void 0 : ht.getCheckedKeys()) || [];
2671
+ if (fe && (Ce = Ze([...Ce, o[n.nodeKey]]), n.showCheckbox && ((vt = g.value) == null || vt.setCheckedKeys(Ce))), n.parentLinkChildrenStrictly || (D.value = Ce), O && n.childLinkParentStrictly && !le.value) {
2672
+ const Ot = D.value ?? [];
2673
+ await te(o, O), D.value = Array.from(/* @__PURE__ */ new Set([...Ot, ...D.value]));
2674
+ }
2675
+ n.parentLinkChildrenStrictly && !le.value && await de(o, O), n.parentLinkChildrenStrictly && E.value || (await ve(), a("check-node-change", D.value, o, O)), K && a("change", D.value);
2676
+ }, ze = F(!1), ft = F([]), {
2677
+ realHeight: dt,
2678
+ dasTree: xe,
2679
+ getMergeOperations: ye,
2680
+ getOperations: Ve,
2681
+ handleOperation: Me,
2682
+ filterInnerValue: b,
2683
+ filterList: P,
2684
+ selectItem: L,
2685
+ nodeClass: ce,
2686
+ nodeClick: re,
2687
+ isActive: pe,
2688
+ defaultProps: i,
2689
+ filterNodeMethodFn: v,
2690
+ filterSeach: d,
2691
+ filterClear: p,
2692
+ expandParent: _,
2693
+ disabledFlag: U,
2694
+ currentOprationKey: X,
2695
+ oprationVisibleChange: Z,
2696
+ setOprationsMoreBtnRefs: he,
2697
+ oprationsPopoverRef: we,
2698
+ moreBtnEnter: Se,
2699
+ currentMoreBtnRef: ue,
2700
+ currentOprationItem: V,
2701
+ isLeafFlag: Ke,
2702
+ filterCustomClass: Fr,
2703
+ allowUnSelectFlag: Va,
2704
+ findSelectableParentNode: Ra,
2705
+ currentChange: Ga
2706
+ } = pc(n, a, g, z, D, E, B, Ue, ze), { searchData: Je, handleSearch: Dr, handleSearchClear: Ha, resetLazyLoad: Wa, handleSearchResultItemClick: qa } = Jg(
2707
+ n,
2708
+ a,
2709
+ g,
2710
+ xe,
2711
+ E,
2712
+ b,
2713
+ D,
2714
+ i,
2715
+ z,
2716
+ re,
2717
+ A,
2718
+ U,
2719
+ pe,
2720
+ Ke,
2721
+ ft,
2722
+ Ue,
2723
+ B,
2724
+ R,
2725
+ ze,
2726
+ w,
2727
+ ne,
2728
+ l,
2729
+ Y
2730
+ ), Ja = () => {
2731
+ I.value ? Dr() : d(), ve(() => {
2732
+ Ct.value = !1, ve(() => {
2733
+ Ct.value = !0;
2734
+ });
2735
+ });
2736
+ };
2737
+ let Ct = F(!1);
2738
+ Qe(
2739
+ () => b.value,
2740
+ (o) => {
2741
+ a("filter-value-change", o), D.value = [], Ja();
2742
+ }
2743
+ );
2744
+ const Ye = F(null);
2745
+ Qe(
2746
+ () => D.value,
2747
+ (o) => {
2748
+ var y, O, ae;
2749
+ const S = n.showCheckbox ? o ?? [] : o ?? void 0, K = n.showCheckbox ? Ye.value ?? [] : Ye.value ?? void 0;
2750
+ if (JSON.stringify(S) !== JSON.stringify(K)) {
2751
+ if (n.showCheckbox) {
2752
+ if (S.length === 0) {
2753
+ (O = g.value) == null || O.setCheckedKeys([]), Ye.value = Ze(S);
2754
+ return;
2755
+ }
2756
+ } else if (!S) {
2757
+ (y = g.value) == null || y.setCurrentKey(), Ye.value = Ze(S);
2758
+ return;
2759
+ }
2760
+ if (Ne.value) {
2761
+ Ne.value = !1, Ye.value = Ze(S);
2762
+ return;
2763
+ }
2764
+ E.value || (n.showCheckbox ? (ae = g.value) == null || ae.setCheckedKeys(S) : _()), Ye.value = Ze(S);
2765
+ }
2766
+ },
2767
+ { immediate: !0, deep: !0 }
2768
+ );
2769
+ const Jt = () => {
2770
+ I.value ? Ha() : p();
2771
+ }, Ya = ie(() => n.parentLinkChildrenStrictly || n.childLinkParentStrictly ? !0 : !!(n.checkStrictly ?? E.value)), Xa = ie(() => n.loading), Yt = ie(() => {
2772
+ var o;
2773
+ return !((o = l.value) != null && o.length);
2774
+ }), Br = ie(() => {
2775
+ if (I.value)
2776
+ return Je.value.length === 1 && Je.value[0][i.value.label] === _e("暂无数据");
2777
+ if (n.isFilter)
2778
+ return P.value.length === 1 && P.value[0][i.value.label] === _e("暂无数据");
2779
+ }), { setTreeNodeChildrenOverflow: Za } = Yg(xe, g, n), Qa = () => {
2780
+ n.isEllipsis && Za("hidden");
2781
+ };
2782
+ return Qe(
2783
+ () => n.data,
2784
+ (o) => {
2785
+ l.value = o, w(l.value);
2786
+ },
2787
+ {
2788
+ immediate: !0,
2789
+ deep: !0
2790
+ }
2791
+ ), t({
2792
+ /** el-tree实例 */
2793
+ treeRef: g,
2794
+ /** 数据是否为空 */
2795
+ treeIsEmpty: Yt,
2796
+ /** 获取可选的父级节点,递归往上查找 */
2797
+ findSelectableParentNode: Ra,
2798
+ /** 非懒加载:子级联动父级 */
2799
+ childLinkParent: $e,
2800
+ /** 非懒加载:父级联动子级 */
2801
+ parentLinkChild: N,
2802
+ /** 清空搜索框并重新加载整棵树方法(用于懒加载重新请求整颗树的数据) */
2803
+ resetLazyLoad: async () => ((I.value || n.isFilter) && (b.value = "", Jt()), await Wa(), !0),
2804
+ /** 自动展开父节点方法 */
2805
+ autoExpand: _,
2806
+ /** 清空搜索值,回到tree面板 */
2807
+ searchClear: Jt,
2808
+ /** 非懒加载模式触发搜索 */
2809
+ filterSeach: d,
2810
+ /** 懒加载模式触发搜索 */
2811
+ handleSearch: Dr,
2812
+ /** 根据父级获取所有子孙节点(提供给tree-select组件使用) */
2813
+ getGrandChildrenFn: R,
2814
+ setData: w
2815
+ }), (o, S) => {
2816
+ var K;
2817
+ return C(), x(
2818
+ "div",
2819
+ {
2820
+ ref_key: "dasTree",
2821
+ ref: xe,
2822
+ style: nr({ height: c(dt) }),
2823
+ class: Fe({
2824
+ "das-ui-tree": !0,
2825
+ "is-checkbox": o.showCheckbox,
2826
+ "is-ellipsis": o.isEllipsis,
2827
+ "is-operations": o.showOperations,
2828
+ "is-draggable": o.draggable,
2829
+ "root-checkbox_hide": o.hideRootCheckbox
2830
+ })
2831
+ },
2832
+ [
2833
+ (o.isFilter || I.value) && o.showFilterInput ? (C(), De(c(vi), ar({
2834
+ key: 0,
2835
+ class: "das-tree-filter-input",
2836
+ modelValue: c(b),
2837
+ "onUpdate:modelValue": S[0] || (S[0] = (y) => ci(b) ? b.value = y : null),
2838
+ borderType: "bordered",
2839
+ size: "table"
2840
+ }, o.inputOptions, {
2841
+ placeholder: (K = o.inputOptions) != null && K.placeholder ? o.inputOptions.placeholder : "请搜索",
2842
+ onClear: Jt,
2843
+ clearable: "",
2844
+ filterSpace: !1
2845
+ }), jt({
2846
+ prefix: be(() => [
2847
+ M(o.$slots, "prefix", {}, () => [
2848
+ Ie(c(pt), {
2849
+ icon: "search",
2850
+ customSize: 19,
2851
+ iconColor: "#999999",
2852
+ style: { cursor: "pointer" }
2853
+ })
2854
+ ])
2855
+ ]),
2856
+ _: 2
2857
+ /* DYNAMIC */
2858
+ }, [
2859
+ o.$slots.suffix ? {
2860
+ name: "suffix",
2861
+ fn: be(() => [
2862
+ M(o.$slots, "suffix")
2863
+ ]),
2864
+ key: "0"
2865
+ } : void 0,
2866
+ o.$slots.prepend ? {
2867
+ name: "prepend",
2868
+ fn: be(() => [
2869
+ M(o.$slots, "prepend")
2870
+ ]),
2871
+ key: "1"
2872
+ } : void 0,
2873
+ o.$slots.append ? {
2874
+ name: "append",
2875
+ fn: be(() => [
2876
+ M(o.$slots, "append")
2877
+ ]),
2878
+ key: "2"
2879
+ } : void 0
2880
+ ]), 1040, ["modelValue", "placeholder"])) : j("v-if", !0),
2881
+ o.$slots["container-top"] ? M(o.$slots, "container-top", { key: 1 }) : j("v-if", !0),
2882
+ Oe("div", Sb, [
2883
+ j(" das-ce-scrollbar开头的样式不要删除 web componets引用了该组件,有用的!!! "),
2884
+ ge((C(), x("div", Cb, [
2885
+ o.$slots.top ? M(o.$slots, "top", { key: 0 }) : j("v-if", !0),
2886
+ Oe(
2887
+ "div",
2888
+ {
2889
+ ref_key: "treeParentRef",
2890
+ ref: u,
2891
+ class: "tree-parent-container"
2892
+ },
2893
+ [
2894
+ (C(), De(c(yi), ar({
2895
+ height: h.value,
2896
+ "item-size": 32,
2897
+ ref_key: "treeRef",
2898
+ ref: g,
2899
+ key: o.renderDom,
2900
+ class: { "is-root-all-left": ze.value },
2901
+ icon: mi,
2902
+ data: o.renderDom ? l.value : [],
2903
+ "check-strictly": Ya.value,
2904
+ "current-node-key": ee.value,
2905
+ "default-checked-keys": Q.value,
2906
+ "default-expanded-keys": Y.value,
2907
+ props: { ...c(i), class: c(ce) },
2908
+ "show-checkbox": o.showCheckbox,
2909
+ "expand-on-click-node": o.expandOnClickNode ?? o.showCheckbox,
2910
+ "filter-method": c(v)
2911
+ }, { ...c($), onCurrentChange: void 0 }, {
2912
+ onCurrentChange: c(Ga),
2913
+ onNodeClick: c(re),
2914
+ onCheck: S[2] || (S[2] = (y, O) => {
2915
+ Ue(y, O, !0);
2916
+ }),
2917
+ onNodeCollapse: Qa,
2918
+ onNodeExpand: T
2919
+ }), {
2920
+ default: be(({ node: y, data: O }) => [
2921
+ M(o.$slots, "default", {
2922
+ node: y,
2923
+ data: O
2924
+ }, () => {
2925
+ var ae, fe;
2926
+ return [
2927
+ S[5] || (S[5] = Oe(
2928
+ "div",
2929
+ null,
2930
+ null,
2931
+ -1
2932
+ /* HOISTED */
2933
+ )),
2934
+ j(" 有操作项 "),
2935
+ o.showOperations ? (C(), x("div", Ob, [
2936
+ M(o.$slots, "oprations-label", {
2937
+ node: y,
2938
+ data: O
2939
+ }, () => [
2940
+ o.isEllipsis ? ge((C(), x("div", jb, [
2941
+ je(
2942
+ me(O[c(i).label]),
2943
+ 1
2944
+ /* TEXT */
2945
+ )
2946
+ ])), [
2947
+ [c(Ee)]
2948
+ ]) : j("v-if", !0),
2949
+ o.isEllipsis ? j("v-if", !0) : (C(), x(
2950
+ "div",
2951
+ Ab,
2952
+ me(O[c(i).label]),
2953
+ 1
2954
+ /* TEXT */
2955
+ ))
2956
+ ]),
2957
+ !c(U)(O, y) && ((fe = (ae = c(ye)(y, O)) == null ? void 0 : ae.list) != null && fe.length || c(Ve)(y, O).length) ? (C(), x("div", {
2958
+ key: 0,
2959
+ class: "oprations-box",
2960
+ onMouseenter: (Ce) => c(Se)(y, O)
2961
+ }, [
2962
+ Oe(
2963
+ "div",
2964
+ {
2965
+ class: "more-icon",
2966
+ ref: (Ce) => c(he)(Ce, O[o.nodeKey]),
2967
+ style: nr(c(X) === O[o.nodeKey] ? "opacity: 1" : ""),
2968
+ onClick: S[1] || (S[1] = Xe(() => {
2969
+ }, ["stop"]))
2970
+ },
2971
+ [
2972
+ Ie(c(pt), {
2973
+ icon: "gengduocaozuo",
2974
+ iconColor: "#666666",
2975
+ size: "medium"
2976
+ })
2977
+ ],
2978
+ 4
2979
+ /* STYLE */
2980
+ )
2981
+ ], 40, Ib)) : j("v-if", !0)
2982
+ ])) : j("v-if", !0),
2983
+ j(" 无操作项 "),
2984
+ o.showOperations ? j("v-if", !0) : (C(), x(
2985
+ Ae,
2986
+ { key: 1 },
2987
+ [
2988
+ o.isEllipsis ? ge((C(), x("div", kb, [
2989
+ je(
2990
+ me(O[c(i).label]),
2991
+ 1
2992
+ /* TEXT */
2993
+ )
2994
+ ])), [
2995
+ [c(Ee)]
2996
+ ]) : (C(), x(
2997
+ "div",
2998
+ xb,
2999
+ me(O[c(i).label]),
3000
+ 1
3001
+ /* TEXT */
3002
+ ))
3003
+ ],
3004
+ 64
3005
+ /* STABLE_FRAGMENT */
3006
+ ))
3007
+ ];
3008
+ })
3009
+ ]),
3010
+ _: 3
3011
+ /* FORWARDED */
3012
+ }, 16, ["height", "class", "data", "check-strictly", "current-node-key", "default-checked-keys", "default-expanded-keys", "props", "show-checkbox", "expand-on-click-node", "filter-method", "onCurrentChange", "onNodeClick"]))
3013
+ ],
3014
+ 512
3015
+ /* NEED_PATCH */
3016
+ ),
3017
+ o.$slots.bottom ? M(o.$slots, "bottom", { key: 1 }) : j("v-if", !0)
3018
+ ])), [
3019
+ [c(Xt)],
3020
+ [ui, !Yt.value]
3021
+ ]),
3022
+ j(" 空状态 "),
3023
+ Yt.value && !Xa.value ? (C(), x("div", Eb, [
3024
+ o.$slots.top ? M(o.$slots, "top", { key: 0 }) : j("v-if", !0),
3025
+ Ie(kt, { "empty-text": J.value }, jt({
3026
+ _: 2
3027
+ /* DYNAMIC */
3028
+ }, [
3029
+ o.$slots["empty-text"] ? {
3030
+ name: "default",
3031
+ fn: be(() => [
3032
+ M(o.$slots, "empty-text")
3033
+ ]),
3034
+ key: "0"
3035
+ } : void 0
3036
+ ]), 1032, ["empty-text"]),
3037
+ o.$slots.bottom ? M(o.$slots, "bottom", { key: 1 }) : j("v-if", !0)
3038
+ ])) : j("v-if", !0),
3039
+ j(" 远程搜索 "),
3040
+ c(b) && I.value && c(Je).length ? (C(), x(
3041
+ Ae,
3042
+ { key: 1 },
3043
+ [
3044
+ Br.value ? (C(), x("div", Mb, [
3045
+ o.$slots.top ? M(o.$slots, "top", { key: 0 }) : j("v-if", !0),
3046
+ Ie(kt, { "empty-text": oe.value }, jt({
3047
+ _: 2
3048
+ /* DYNAMIC */
3049
+ }, [
3050
+ o.$slots["search-empty-text"] ? {
3051
+ name: "default",
3052
+ fn: be(() => [
3053
+ M(o.$slots, "search-empty-text")
3054
+ ]),
3055
+ key: "0"
3056
+ } : void 0
3057
+ ]), 1032, ["empty-text"]),
3058
+ o.$slots.bottom ? M(o.$slots, "bottom", { key: 1 }) : j("v-if", !0)
3059
+ ])) : ge((C(), x("ul", Pb, [
3060
+ o.$slots.top ? M(o.$slots, "top", { key: 0 }) : j("v-if", !0),
3061
+ c(Je).length > 0 && c(Ct) ? (C(), De(c(Kt), {
3062
+ key: c(Je).length,
3063
+ items: c(Je),
3064
+ "item-size": "32",
3065
+ "key-field": n.nodeKey,
3066
+ class: "virtual-list"
3067
+ }, {
3068
+ default: be(({ item: y, index: O }) => [
3069
+ Oe("div", {
3070
+ class: Fe([
3071
+ "search-result-item",
3072
+ c(pe)(y, !0) ? "is-active" : "",
3073
+ c(U)(y, null) ? "is-disabled" : "",
3074
+ c(Fr)(y, O)
3075
+ ]),
3076
+ onMousedown: Xe((ae) => c(qa)(y, O), ["stop"])
3077
+ }, [
3078
+ M(o.$slots, "search-result-item", {
3079
+ item: y,
3080
+ index: O
3081
+ }, () => [
3082
+ ge((C(), x("div", Nb, [
3083
+ je(
3084
+ me(y[c(i).label]),
3085
+ 1
3086
+ /* TEXT */
3087
+ )
3088
+ ])), [
3089
+ [c(Ee)]
3090
+ ]),
3091
+ y[c(i).pathName] ? ge((C(), x("div", zb, [
3092
+ je(
3093
+ me(y[c(i).pathName]),
3094
+ 1
3095
+ /* TEXT */
3096
+ )
3097
+ ])), [
3098
+ [c(Ee)]
3099
+ ]) : j("v-if", !0)
3100
+ ])
3101
+ ], 42, Lb)
3102
+ ]),
3103
+ _: 3
3104
+ /* FORWARDED */
3105
+ }, 8, ["items", "key-field"])) : j("v-if", !0),
3106
+ o.$slots.bottom ? M(o.$slots, "bottom", { key: 2 }) : j("v-if", !0)
3107
+ ])), [
3108
+ [c(Xt)]
3109
+ ])
3110
+ ],
3111
+ 64
3112
+ /* STABLE_FRAGMENT */
3113
+ )) : c(b) && o.isFilter && c(P).length ? (C(), x(
3114
+ Ae,
3115
+ { key: 2 },
3116
+ [
3117
+ j(" 节点过滤 "),
3118
+ Br.value ? (C(), x("div", Ub, [
3119
+ o.$slots.top ? M(o.$slots, "top", { key: 0 }) : j("v-if", !0),
3120
+ Ie(kt, { "empty-text": oe.value }, jt({
3121
+ _: 2
3122
+ /* DYNAMIC */
3123
+ }, [
3124
+ o.$slots["search-empty-text"] ? {
3125
+ name: "default",
3126
+ fn: be(() => [
3127
+ M(o.$slots, "search-empty-text")
3128
+ ]),
3129
+ key: "0"
3130
+ } : void 0
3131
+ ]), 1032, ["empty-text"]),
3132
+ o.$slots.bottom ? M(o.$slots, "bottom", { key: 1 }) : j("v-if", !0)
3133
+ ])) : ge((C(), x("ul", Kb, [
3134
+ o.$slots.top ? M(o.$slots, "top", { key: 0 }) : j("v-if", !0),
3135
+ c(P).length > 0 && c(Ct) ? (C(), De(c(Kt), {
3136
+ key: c(P).length,
3137
+ items: c(P),
3138
+ "item-size": "32",
3139
+ "key-field": n.nodeKey,
3140
+ class: "virtual-list"
3141
+ }, {
3142
+ default: be(({ item: y, index: O }) => [
3143
+ Oe("div", {
3144
+ class: Fe([
3145
+ "search-result-item",
3146
+ c(pe)(y, !0) ? "is-active" : "",
3147
+ c(U)(y, null) ? "is-disabled" : "",
3148
+ c(Fr)(y, O)
3149
+ ]),
3150
+ onMousedown: Xe((ae) => c(L)(y, O), ["stop"])
3151
+ }, [
3152
+ M(o.$slots, "search-result-item", {
3153
+ item: y,
3154
+ index: O
3155
+ }, () => [
3156
+ ge((C(), x("div", Db, [
3157
+ je(
3158
+ me(y[c(i).label]),
3159
+ 1
3160
+ /* TEXT */
3161
+ )
3162
+ ])), [
3163
+ [c(Ee)]
3164
+ ]),
3165
+ y[c(i).pathName] ? ge((C(), x("div", Bb, [
3166
+ je(
3167
+ me(y[c(i).pathName]),
3168
+ 1
3169
+ /* TEXT */
3170
+ )
3171
+ ])), [
3172
+ [c(Ee)]
3173
+ ]) : j("v-if", !0)
3174
+ ])
3175
+ ], 42, Fb)
3176
+ ]),
3177
+ _: 3
3178
+ /* FORWARDED */
3179
+ }, 8, ["items", "key-field"])) : j("v-if", !0),
3180
+ o.$slots.bottom ? M(o.$slots, "bottom", { key: 2 }) : j("v-if", !0)
3181
+ ])), [
3182
+ [c(Xt)]
3183
+ ])
3184
+ ],
3185
+ 64
3186
+ /* STABLE_FRAGMENT */
3187
+ )) : j("v-if", !0)
3188
+ ]),
3189
+ o.$slots["container-bottom"] ? M(o.$slots, "container-bottom", { key: 2 }) : j("v-if", !0),
3190
+ j(" 操作项(单例,解决dom渲染性能问题) "),
3191
+ Ie(c(pi), {
3192
+ "popper-class": "das-tree-operation-dropdown",
3193
+ ref_key: "oprationsPopoverRef",
3194
+ ref: we,
3195
+ "virtual-ref": c(ue),
3196
+ placement: "bottom-start",
3197
+ "show-arrow": !1,
3198
+ trigger: "hover",
3199
+ "virtual-triggering": "",
3200
+ onShow: S[3] || (S[3] = (y) => c(Z)(!0)),
3201
+ onHide: S[4] || (S[4] = (y) => c(Z)(!1))
3202
+ }, {
3203
+ default: be(() => {
3204
+ var y, O, ae, fe, Ce, ht, vt, Ot, Ur;
3205
+ return [
3206
+ (y = c(V)) != null && y.node ? (C(), x("ul", Vb, [
3207
+ (ae = (O = c(ye)(c(V).node, c(V).data)) == null ? void 0 : O.list) != null && ae.length && ((fe = c(ye)(c(V).node, c(V).data)) == null ? void 0 : fe.position) === "top" ? (C(!0), x(
3208
+ Ae,
3209
+ { key: 0 },
3210
+ It((Ce = c(ye)(c(V).node, c(V).data)) == null ? void 0 : Ce.list, (k, yt) => (C(), x(
3211
+ Ae,
3212
+ {
3213
+ key: k.value
3214
+ },
3215
+ [
3216
+ k.hidden ? j("v-if", !0) : (C(), x("li", {
3217
+ class: Fe(["opration-item", k.disabled ? "is-disabled" : ""]),
3218
+ key: k.value || yt,
3219
+ disabled: k.disabled,
3220
+ onClick: Xe((Vr) => c(Me)(k, c(V).node, c(V).data), ["stop"])
3221
+ }, [
3222
+ Oe("div", Gb, [
3223
+ Ie(c(pt), {
3224
+ icon: k.icon,
3225
+ size: "small",
3226
+ iconColor: k.disabled ? "#b2b2b2" : k.iconColor ? k.iconColor : "#666666"
3227
+ }, null, 8, ["icon", "iconColor"])
3228
+ ]),
3229
+ ge((C(), x("div", Hb, [
3230
+ je(
3231
+ me(k.label || k.value),
3232
+ 1
3233
+ /* TEXT */
3234
+ )
3235
+ ])), [
3236
+ [c(Ee)]
3237
+ ])
3238
+ ], 10, Rb))
3239
+ ],
3240
+ 64
3241
+ /* STABLE_FRAGMENT */
3242
+ ))),
3243
+ 128
3244
+ /* KEYED_FRAGMENT */
3245
+ )) : j("v-if", !0),
3246
+ (C(!0), x(
3247
+ Ae,
3248
+ null,
3249
+ It(c(Ve)(c(V).node, c(V).data), (k, yt) => (C(), x(
3250
+ Ae,
3251
+ {
3252
+ key: k.value
3253
+ },
3254
+ [
3255
+ k.hidden ? j("v-if", !0) : (C(), x("li", {
3256
+ class: Fe(["opration-item", k.disabled ? "is-disabled" : ""]),
3257
+ key: k.value || yt,
3258
+ disabled: k.disabled,
3259
+ onClick: Xe((Vr) => c(Me)(k, c(V).node, c(V).data), ["stop"])
3260
+ }, [
3261
+ Oe("div", qb, [
3262
+ Ie(c(pt), {
3263
+ icon: k.icon,
3264
+ size: "small",
3265
+ iconColor: k.disabled ? "#b2b2b2" : k.iconColor ? k.iconColor : "#666666"
3266
+ }, null, 8, ["icon", "iconColor"])
3267
+ ]),
3268
+ ge((C(), x("div", Jb, [
3269
+ je(
3270
+ me(k.label || k.value),
3271
+ 1
3272
+ /* TEXT */
3273
+ )
3274
+ ])), [
3275
+ [c(Ee)]
3276
+ ])
3277
+ ], 10, Wb))
3278
+ ],
3279
+ 64
3280
+ /* STABLE_FRAGMENT */
3281
+ ))),
3282
+ 128
3283
+ /* KEYED_FRAGMENT */
3284
+ )),
3285
+ (vt = (ht = c(ye)(c(V).node, c(V).data)) == null ? void 0 : ht.list) != null && vt.length && ((Ot = c(ye)(c(V).node, c(V).data)) == null ? void 0 : Ot.position) === "bottom" ? (C(!0), x(
3286
+ Ae,
3287
+ { key: 1 },
3288
+ It((Ur = c(ye)(c(V).node, c(V).data)) == null ? void 0 : Ur.list, (k, yt) => (C(), x(
3289
+ Ae,
3290
+ {
3291
+ key: k.value
3292
+ },
3293
+ [
3294
+ k.hidden ? j("v-if", !0) : (C(), x("li", {
3295
+ class: Fe(["opration-item", k.disabled ? "is-disabled" : ""]),
3296
+ key: k.value || yt,
3297
+ disabled: k.disabled,
3298
+ onClick: Xe((Vr) => c(Me)(k, c(V).node, c(V).data), ["stop"])
3299
+ }, [
3300
+ Oe("div", Xb, [
3301
+ Ie(c(pt), {
3302
+ icon: k.icon,
3303
+ size: "small",
3304
+ iconColor: k.disabled ? "#b2b2b2" : k.iconColor ? k.iconColor : "#666666"
3305
+ }, null, 8, ["icon", "iconColor"])
3306
+ ]),
3307
+ ge((C(), x("div", Zb, [
3308
+ je(
3309
+ me(k.label || k.value),
3310
+ 1
3311
+ /* TEXT */
3312
+ )
3313
+ ])), [
3314
+ [c(Ee)]
3315
+ ])
3316
+ ], 10, Yb))
3317
+ ],
3318
+ 64
3319
+ /* STABLE_FRAGMENT */
3320
+ ))),
3321
+ 128
3322
+ /* KEYED_FRAGMENT */
3323
+ )) : j("v-if", !0)
3324
+ ])) : j("v-if", !0)
3325
+ ];
3326
+ }),
3327
+ _: 1
3328
+ /* STABLE */
3329
+ }, 8, ["virtual-ref"])
3330
+ ],
3331
+ 6
3332
+ /* CLASS, STYLE */
3333
+ );
3334
+ };
3335
+ }
3336
+ }), t$ = {
3337
+ "--das-ui-tree-node-disabled-bg-color": "#B2B2B2",
3338
+ "--das-ui-tree-node-hover-bg-color": "#F5F5F5",
3339
+ "--das-ui-tree-node-active-bg-color": "#E3EBFF",
3340
+ "--das-ui-tree-node-active-font-color": "#5582F3",
3341
+ "--das-ui-tree-node-checkbox-border-color": "#D9D9D9",
3342
+ "--das-ui-tree-node-checkbox-checked-bg-color": "#5582F3",
3343
+ "--das-ui-tree-node-checkbox-disabled-checked-bg-color": "#D9D9D9",
3344
+ "--das-ui-tree-node-checkbox-disabled-checked-icon-color": "#b4b4b4",
3345
+ "--das-ui-tree-node-drop-color": "#333333",
3346
+ "--das-ui-tree-node-drop-bg-color": "#E3EBFF",
3347
+ "--das-ui-tree-node-drop-border-color": "#5582F3",
3348
+ "--das-ui-tree-node-drop-indicator-color": "#276FF5",
3349
+ "--das-ui-tree-empty-text": "#999999"
3350
+ }, r$ = {
3351
+ 新增同级: { "zh-CN": "新增同级", en: "Add sibling" },
3352
+ 新增子级: { "zh-CN": "新增子级", en: "Add child" },
3353
+ 编辑: { "zh-CN": "编辑", en: "Edit" },
3354
+ 删除: { "zh-CN": "删除", en: "Delete" },
3355
+ 请选择: { "zh-CN": "请选择", en: "Please select" },
3356
+ 暂无数据: { "zh-CN": "暂无数据", en: "No data" },
3357
+ noDataTryAnotherKeyword: {
3358
+ "zh-CN": "未查询到相关数据,换个关键词试试吧!",
3359
+ en: "No relevant data found. Try a different keyword!"
3360
+ }
3361
+ };
3362
+ di(r$);
3363
+ fi(t$);
3364
+ const b$ = Hn(e$);
3365
+ Hn(kt);
3366
+ const $$ = () => F(null), m$ = { name: "Tree 树" };
3367
+ export {
3368
+ b$ as DasTreeV2,
3369
+ $$ as DasTreeV2Ref,
3370
+ m$ as default
3371
+ };