xrk-components 2.0.0-beta.60 → 2.0.0-beta.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getCurrentScope, onScopeDispose, unref, readonly, shallowRef, watchEffect, ref, watch, getCurrentInstance, onMounted, nextTick, computed, defineComponent, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, onBeforeUnmount, inject, isRef, onBeforeMount, provide, renderSlot, normalizeClass, normalizeStyle, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, toRef, onUnmounted, reactive, toRefs, onUpdated, TransitionGroup, useAttrs as useAttrs$1, withModifiers, onActivated, cloneVNode, Text as Text$1, Teleport as Teleport$1, onDeactivated, renderList, withKeys, createSlots, normalizeProps, guardReactiveProps, toRaw, vModelCheckbox, vModelRadio, h as h$1, resolveComponent, onBeforeUpdate, vModelText, toHandlers, markRaw, effectScope, resolveDirective, toHandlerKey, render as render$2, createApp, shallowReactive, pushScopeId, popScopeId } from 'vue';
1
+ import { unref, readonly, shallowRef, watchEffect, ref, watch, customRef, getCurrentScope, onScopeDispose, getCurrentInstance, onMounted, nextTick, computed, defineComponent, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, onBeforeUnmount, inject, isRef, onBeforeMount, provide, renderSlot, normalizeClass, normalizeStyle, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, toRef, onUnmounted, reactive, toRefs, onUpdated, TransitionGroup, useAttrs as useAttrs$1, withModifiers, onActivated, cloneVNode, Text as Text$1, Teleport as Teleport$1, onDeactivated, renderList, withKeys, createSlots, normalizeProps, guardReactiveProps, toRaw, vModelCheckbox, vModelRadio, h as h$1, resolveComponent, onBeforeUpdate, vModelText, toHandlers, markRaw, effectScope, resolveDirective, toHandlerKey, render as render$2, createApp, shallowReactive, pushScopeId, popScopeId } from 'vue';
2
2
  import { check, base } from 'xrk-tools';
3
3
 
4
4
  /*
@@ -133,69 +133,88 @@ function computedEager(fn, options) {
133
133
  return readonly(result);
134
134
  }
135
135
 
136
- var _a;
137
- const isClient = typeof window !== "undefined";
136
+ var _a$1;
137
+ const isClient$1 = typeof window !== "undefined";
138
138
  const isDef = (val) => typeof val !== "undefined";
139
- const isString$2 = (val) => typeof val === "string";
140
- const noop$1 = () => {
139
+ const isFunction$3 = (val) => typeof val === "function";
140
+ const isString$3 = (val) => typeof val === "string";
141
+ const noop$2 = () => {
141
142
  };
142
- const isIOS = isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
143
+ const isIOS = isClient$1 && ((_a$1 = window == null ? void 0 : window.navigator) == null ? void 0 : _a$1.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
143
144
 
144
- function resolveUnref(r) {
145
+ function resolveUnref$1(r) {
145
146
  return typeof r === "function" ? r() : unref(r);
146
147
  }
147
148
 
148
149
  function createFilterWrapper(filter, fn) {
149
150
  function wrapper(...args) {
150
- filter(() => fn.apply(this, args), { fn, thisArg: this, args });
151
+ return new Promise((resolve, reject) => {
152
+ Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);
153
+ });
151
154
  }
152
155
  return wrapper;
153
156
  }
154
157
  function debounceFilter(ms, options = {}) {
155
158
  let timer;
156
159
  let maxTimer;
160
+ let lastRejector = noop$2;
161
+ const _clearTimeout = (timer2) => {
162
+ clearTimeout(timer2);
163
+ lastRejector();
164
+ lastRejector = noop$2;
165
+ };
157
166
  const filter = (invoke) => {
158
- const duration = resolveUnref(ms);
159
- const maxDuration = resolveUnref(options.maxWait);
167
+ const duration = resolveUnref$1(ms);
168
+ const maxDuration = resolveUnref$1(options.maxWait);
160
169
  if (timer)
161
- clearTimeout(timer);
170
+ _clearTimeout(timer);
162
171
  if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
163
172
  if (maxTimer) {
164
- clearTimeout(maxTimer);
173
+ _clearTimeout(maxTimer);
165
174
  maxTimer = null;
166
175
  }
167
- return invoke();
176
+ return Promise.resolve(invoke());
168
177
  }
169
- if (maxDuration && !maxTimer) {
170
- maxTimer = setTimeout(() => {
171
- if (timer)
172
- clearTimeout(timer);
178
+ return new Promise((resolve, reject) => {
179
+ lastRejector = options.rejectOnCancel ? reject : resolve;
180
+ if (maxDuration && !maxTimer) {
181
+ maxTimer = setTimeout(() => {
182
+ if (timer)
183
+ _clearTimeout(timer);
184
+ maxTimer = null;
185
+ resolve(invoke());
186
+ }, maxDuration);
187
+ }
188
+ timer = setTimeout(() => {
189
+ if (maxTimer)
190
+ _clearTimeout(maxTimer);
173
191
  maxTimer = null;
174
- invoke();
175
- }, maxDuration);
176
- }
177
- timer = setTimeout(() => {
178
- if (maxTimer)
179
- clearTimeout(maxTimer);
180
- maxTimer = null;
181
- invoke();
182
- }, duration);
192
+ resolve(invoke());
193
+ }, duration);
194
+ });
183
195
  };
184
196
  return filter;
185
197
  }
186
- function throttleFilter(ms, trailing = true, leading = true) {
198
+ function throttleFilter(ms, trailing = true, leading = true, rejectOnCancel = false) {
187
199
  let lastExec = 0;
188
200
  let timer;
189
201
  let isLeading = true;
202
+ let lastRejector = noop$2;
203
+ let lastValue;
190
204
  const clear = () => {
191
205
  if (timer) {
192
206
  clearTimeout(timer);
193
207
  timer = void 0;
208
+ lastRejector();
209
+ lastRejector = noop$2;
194
210
  }
195
211
  };
196
- const filter = (invoke) => {
197
- const duration = resolveUnref(ms);
212
+ const filter = (_invoke) => {
213
+ const duration = resolveUnref$1(ms);
198
214
  const elapsed = Date.now() - lastExec;
215
+ const invoke = () => {
216
+ return lastValue = _invoke();
217
+ };
199
218
  clear();
200
219
  if (duration <= 0) {
201
220
  lastExec = Date.now();
@@ -205,24 +224,62 @@ function throttleFilter(ms, trailing = true, leading = true) {
205
224
  lastExec = Date.now();
206
225
  invoke();
207
226
  } else if (trailing) {
208
- timer = setTimeout(() => {
209
- lastExec = Date.now();
210
- isLeading = true;
211
- clear();
212
- invoke();
213
- }, duration);
227
+ lastValue = new Promise((resolve, reject) => {
228
+ lastRejector = rejectOnCancel ? reject : resolve;
229
+ timer = setTimeout(() => {
230
+ lastExec = Date.now();
231
+ isLeading = true;
232
+ resolve(invoke());
233
+ clear();
234
+ }, Math.max(0, duration - elapsed));
235
+ });
214
236
  }
215
237
  if (!leading && !timer)
216
238
  timer = setTimeout(() => isLeading = true, duration);
217
239
  isLeading = false;
240
+ return lastValue;
218
241
  };
219
242
  return filter;
220
243
  }
221
- function identity$1(arg) {
244
+ function identity$2(arg) {
222
245
  return arg;
223
246
  }
224
247
 
225
- function tryOnScopeDispose(fn) {
248
+ function computedWithControl(source, fn) {
249
+ let v = void 0;
250
+ let track;
251
+ let trigger;
252
+ const dirty = ref(true);
253
+ const update = () => {
254
+ dirty.value = true;
255
+ trigger();
256
+ };
257
+ watch(source, update, { flush: "sync" });
258
+ const get = isFunction$3(fn) ? fn : fn.get;
259
+ const set = isFunction$3(fn) ? void 0 : fn.set;
260
+ const result = customRef((_track, _trigger) => {
261
+ track = _track;
262
+ trigger = _trigger;
263
+ return {
264
+ get() {
265
+ if (dirty.value) {
266
+ v = get();
267
+ dirty.value = false;
268
+ }
269
+ track();
270
+ return v;
271
+ },
272
+ set(v2) {
273
+ set == null ? void 0 : set(v2);
274
+ }
275
+ };
276
+ });
277
+ if (Object.isExtensible(result))
278
+ result.trigger = update;
279
+ return result;
280
+ }
281
+
282
+ function tryOnScopeDispose$1(fn) {
226
283
  if (getCurrentScope()) {
227
284
  onScopeDispose(fn);
228
285
  return true;
@@ -235,8 +292,6 @@ function useDebounceFn(fn, ms = 200, options = {}) {
235
292
  }
236
293
 
237
294
  function refDebounced(value, ms = 200, options = {}) {
238
- if (ms <= 0)
239
- return value;
240
295
  const debounced = ref(value.value);
241
296
  const updater = useDebounceFn(() => {
242
297
  debounced.value = value.value;
@@ -245,8 +300,8 @@ function refDebounced(value, ms = 200, options = {}) {
245
300
  return debounced;
246
301
  }
247
302
 
248
- function useThrottleFn(fn, ms = 200, trailing = false, leading = true) {
249
- return createFilterWrapper(throttleFilter(ms, trailing, leading), fn);
303
+ function useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnCancel = false) {
304
+ return createFilterWrapper(throttleFilter(ms, trailing, leading, rejectOnCancel), fn);
250
305
  }
251
306
 
252
307
  function tryOnMounted(fn, sync = true) {
@@ -281,100 +336,117 @@ function useTimeoutFn(cb, interval, options = {}) {
281
336
  isPending.value = false;
282
337
  timer = null;
283
338
  cb(...args);
284
- }, resolveUnref(interval));
339
+ }, resolveUnref$1(interval));
285
340
  }
286
341
  if (immediate) {
287
342
  isPending.value = true;
288
- if (isClient)
343
+ if (isClient$1)
289
344
  start();
290
345
  }
291
- tryOnScopeDispose(stop);
346
+ tryOnScopeDispose$1(stop);
292
347
  return {
293
- isPending,
348
+ isPending: readonly(isPending),
294
349
  start,
295
350
  stop
296
351
  };
297
352
  }
298
353
 
299
- function unrefElement(elRef) {
354
+ function unrefElement$1(elRef) {
300
355
  var _a;
301
- const plain = resolveUnref(elRef);
356
+ const plain = resolveUnref$1(elRef);
302
357
  return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
303
358
  }
304
359
 
305
- const defaultWindow = isClient ? window : void 0;
306
- const defaultDocument = isClient ? window.document : void 0;
360
+ const defaultWindow$1 = isClient$1 ? window : void 0;
361
+ const defaultDocument = isClient$1 ? window.document : void 0;
362
+ isClient$1 ? window.navigator : void 0;
363
+ isClient$1 ? window.location : void 0;
307
364
 
308
- function useEventListener(...args) {
365
+ function useEventListener$1(...args) {
309
366
  let target;
310
- let event;
311
- let listener;
367
+ let events;
368
+ let listeners;
312
369
  let options;
313
- if (isString$2(args[0])) {
314
- [event, listener, options] = args;
315
- target = defaultWindow;
370
+ if (isString$3(args[0]) || Array.isArray(args[0])) {
371
+ [events, listeners, options] = args;
372
+ target = defaultWindow$1;
316
373
  } else {
317
- [target, event, listener, options] = args;
374
+ [target, events, listeners, options] = args;
318
375
  }
319
376
  if (!target)
320
- return noop$1;
321
- let cleanup = noop$1;
322
- const stopWatch = watch(() => unrefElement(target), (el) => {
377
+ return noop$2;
378
+ if (!Array.isArray(events))
379
+ events = [events];
380
+ if (!Array.isArray(listeners))
381
+ listeners = [listeners];
382
+ const cleanups = [];
383
+ const cleanup = () => {
384
+ cleanups.forEach((fn) => fn());
385
+ cleanups.length = 0;
386
+ };
387
+ const register = (el, event, listener, options2) => {
388
+ el.addEventListener(event, listener, options2);
389
+ return () => el.removeEventListener(event, listener, options2);
390
+ };
391
+ const stopWatch = watch(() => [unrefElement$1(target), resolveUnref$1(options)], ([el, options2]) => {
323
392
  cleanup();
324
393
  if (!el)
325
394
  return;
326
- el.addEventListener(event, listener, options);
327
- cleanup = () => {
328
- el.removeEventListener(event, listener, options);
329
- cleanup = noop$1;
330
- };
395
+ cleanups.push(...events.flatMap((event) => {
396
+ return listeners.map((listener) => register(el, event, listener, options2));
397
+ }));
331
398
  }, { immediate: true, flush: "post" });
332
399
  const stop = () => {
333
400
  stopWatch();
334
401
  cleanup();
335
402
  };
336
- tryOnScopeDispose(stop);
403
+ tryOnScopeDispose$1(stop);
337
404
  return stop;
338
405
  }
339
406
 
407
+ let _iOSWorkaround = false;
340
408
  function onClickOutside(target, handler, options = {}) {
341
- const { window = defaultWindow, ignore, capture = true, detectIframe = false } = options;
409
+ const { window = defaultWindow$1, ignore = [], capture = true, detectIframe = false } = options;
342
410
  if (!window)
343
411
  return;
344
- const shouldListen = ref(true);
345
- let fallback;
412
+ if (isIOS && !_iOSWorkaround) {
413
+ _iOSWorkaround = true;
414
+ Array.from(window.document.body.children).forEach((el) => el.addEventListener("click", noop$2));
415
+ }
416
+ let shouldListen = true;
417
+ const shouldIgnore = (event) => {
418
+ return ignore.some((target2) => {
419
+ if (typeof target2 === "string") {
420
+ return Array.from(window.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el));
421
+ } else {
422
+ const el = unrefElement$1(target2);
423
+ return el && (event.target === el || event.composedPath().includes(el));
424
+ }
425
+ });
426
+ };
346
427
  const listener = (event) => {
347
- window.clearTimeout(fallback);
348
- const el = unrefElement(target);
349
- const composedPath = event.composedPath();
350
- if (!el || el === event.target || composedPath.includes(el) || !shouldListen.value)
428
+ const el = unrefElement$1(target);
429
+ if (!el || el === event.target || event.composedPath().includes(el))
430
+ return;
431
+ if (event.detail === 0)
432
+ shouldListen = !shouldIgnore(event);
433
+ if (!shouldListen) {
434
+ shouldListen = true;
351
435
  return;
352
- if (ignore && ignore.length > 0) {
353
- if (ignore.some((target2) => {
354
- const el2 = unrefElement(target2);
355
- return el2 && (event.target === el2 || composedPath.includes(el2));
356
- }))
357
- return;
358
436
  }
359
437
  handler(event);
360
438
  };
361
439
  const cleanup = [
362
- useEventListener(window, "click", listener, { passive: true, capture }),
363
- useEventListener(window, "pointerdown", (e) => {
364
- const el = unrefElement(target);
365
- shouldListen.value = !!el && !e.composedPath().includes(el);
366
- }, { passive: true }),
367
- useEventListener(window, "pointerup", (e) => {
368
- if (e.button === 0) {
369
- const path = e.composedPath();
370
- e.composedPath = () => path;
371
- fallback = window.setTimeout(() => listener(e), 50);
372
- }
440
+ useEventListener$1(window, "click", listener, { passive: true, capture }),
441
+ useEventListener$1(window, "pointerdown", (e) => {
442
+ const el = unrefElement$1(target);
443
+ if (el)
444
+ shouldListen = !e.composedPath().includes(el) && !shouldIgnore(e);
373
445
  }, { passive: true }),
374
- detectIframe && useEventListener(window, "blur", (event) => {
446
+ detectIframe && useEventListener$1(window, "blur", (event) => {
375
447
  var _a;
376
- const el = unrefElement(target);
377
- if (((_a = document.activeElement) == null ? void 0 : _a.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(document.activeElement)))
448
+ const el = unrefElement$1(target);
449
+ if (((_a = window.document.activeElement) == null ? void 0 : _a.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window.document.activeElement)))
378
450
  handler(event);
379
451
  })
380
452
  ].filter(Boolean);
@@ -383,16 +455,19 @@ function onClickOutside(target, handler, options = {}) {
383
455
  }
384
456
 
385
457
  function useActiveElement(options = {}) {
386
- const { window = defaultWindow } = options;
387
- const counter = ref(0);
458
+ var _a;
459
+ const { window = defaultWindow$1 } = options;
460
+ const document = (_a = options.document) != null ? _a : window == null ? void 0 : window.document;
461
+ const activeElement = computedWithControl(() => null, () => document == null ? void 0 : document.activeElement);
388
462
  if (window) {
389
- useEventListener(window, "blur", () => counter.value += 1, true);
390
- useEventListener(window, "focus", () => counter.value += 1, true);
463
+ useEventListener$1(window, "blur", (event) => {
464
+ if (event.relatedTarget !== null)
465
+ return;
466
+ activeElement.trigger();
467
+ }, true);
468
+ useEventListener$1(window, "focus", activeElement.trigger, true);
391
469
  }
392
- return computed(() => {
393
- counter.value;
394
- return window == null ? void 0 : window.document.activeElement;
395
- });
470
+ return activeElement;
396
471
  }
397
472
 
398
473
  function useSupported(callback, sync = false) {
@@ -402,19 +477,22 @@ function useSupported(callback, sync = false) {
402
477
  tryOnMounted(update, sync);
403
478
  return isSupported;
404
479
  }
480
+ function cloneFnJSON(source) {
481
+ return JSON.parse(JSON.stringify(source));
482
+ }
405
483
 
406
- const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
407
- const globalKey = "__vueuse_ssr_handlers__";
408
- _global[globalKey] = _global[globalKey] || {};
409
- _global[globalKey];
484
+ const _global$1 = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
485
+ const globalKey$1 = "__vueuse_ssr_handlers__";
486
+ _global$1[globalKey$1] = _global$1[globalKey$1] || {};
487
+ _global$1[globalKey$1];
410
488
 
411
- function useCssVar(prop, target, { window = defaultWindow, initialValue = "" } = {}) {
489
+ function useCssVar(prop, target, { window = defaultWindow$1, initialValue = "" } = {}) {
412
490
  const variable = ref(initialValue);
413
491
  const elRef = computed(() => {
414
492
  var _a;
415
- return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
493
+ return unrefElement$1(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
416
494
  });
417
- watch([elRef, () => resolveUnref(prop)], ([el, prop2]) => {
495
+ watch([elRef, () => resolveUnref$1(prop)], ([el, prop2]) => {
418
496
  var _a;
419
497
  if (el && window) {
420
498
  const value = (_a = window.getComputedStyle(el).getPropertyValue(prop2)) == null ? void 0 : _a.trim();
@@ -424,7 +502,7 @@ function useCssVar(prop, target, { window = defaultWindow, initialValue = "" } =
424
502
  watch(variable, (val) => {
425
503
  var _a;
426
504
  if ((_a = elRef.value) == null ? void 0 : _a.style)
427
- elRef.value.style.setProperty(resolveUnref(prop), val);
505
+ elRef.value.style.setProperty(resolveUnref$1(prop), val);
428
506
  });
429
507
  return variable;
430
508
  }
@@ -433,29 +511,29 @@ function useDocumentVisibility({ document = defaultDocument } = {}) {
433
511
  if (!document)
434
512
  return ref("visible");
435
513
  const visibility = ref(document.visibilityState);
436
- useEventListener(document, "visibilitychange", () => {
514
+ useEventListener$1(document, "visibilitychange", () => {
437
515
  visibility.value = document.visibilityState;
438
516
  });
439
517
  return visibility;
440
518
  }
441
519
 
442
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
443
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
444
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
520
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
521
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
522
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
445
523
  var __objRest$2 = (source, exclude) => {
446
524
  var target = {};
447
525
  for (var prop in source)
448
- if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
526
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
449
527
  target[prop] = source[prop];
450
- if (source != null && __getOwnPropSymbols$f)
451
- for (var prop of __getOwnPropSymbols$f(source)) {
452
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
528
+ if (source != null && __getOwnPropSymbols$g)
529
+ for (var prop of __getOwnPropSymbols$g(source)) {
530
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
453
531
  target[prop] = source[prop];
454
532
  }
455
533
  return target;
456
534
  };
457
535
  function useResizeObserver(target, callback, options = {}) {
458
- const _a = options, { window = defaultWindow } = _a, observerOptions = __objRest$2(_a, ["window"]);
536
+ const _a = options, { window = defaultWindow$1 } = _a, observerOptions = __objRest$2(_a, ["window"]);
459
537
  let observer;
460
538
  const isSupported = useSupported(() => window && "ResizeObserver" in window);
461
539
  const cleanup = () => {
@@ -464,7 +542,7 @@ function useResizeObserver(target, callback, options = {}) {
464
542
  observer = void 0;
465
543
  }
466
544
  };
467
- const stopWatch = watch(() => unrefElement(target), (el) => {
545
+ const stopWatch = watch(() => unrefElement$1(target), (el) => {
468
546
  cleanup();
469
547
  if (isSupported.value && window && el) {
470
548
  observer = new ResizeObserver(callback);
@@ -475,7 +553,7 @@ function useResizeObserver(target, callback, options = {}) {
475
553
  cleanup();
476
554
  stopWatch();
477
555
  };
478
- tryOnScopeDispose(stop);
556
+ tryOnScopeDispose$1(stop);
479
557
  return {
480
558
  isSupported,
481
559
  stop
@@ -498,7 +576,7 @@ function useElementBounding(target, options = {}) {
498
576
  const x = ref(0);
499
577
  const y = ref(0);
500
578
  function update() {
501
- const el = unrefElement(target);
579
+ const el = unrefElement$1(target);
502
580
  if (!el) {
503
581
  if (reset) {
504
582
  height.value = 0;
@@ -523,11 +601,11 @@ function useElementBounding(target, options = {}) {
523
601
  y.value = rect.y;
524
602
  }
525
603
  useResizeObserver(target, update);
526
- watch(() => unrefElement(target), (ele) => !ele && update());
604
+ watch(() => unrefElement$1(target), (ele) => !ele && update());
527
605
  if (windowScroll)
528
- useEventListener("scroll", update, { passive: true });
606
+ useEventListener$1("scroll", update, { capture: true, passive: true });
529
607
  if (windowResize)
530
- useEventListener("resize", update, { passive: true });
608
+ useEventListener$1("resize", update, { passive: true });
531
609
  tryOnMounted(() => {
532
610
  if (immediate)
533
611
  update();
@@ -545,23 +623,23 @@ function useElementBounding(target, options = {}) {
545
623
  };
546
624
  }
547
625
 
548
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
549
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
550
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
626
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
627
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
628
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
551
629
  var __objRest$1 = (source, exclude) => {
552
630
  var target = {};
553
631
  for (var prop in source)
554
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
632
+ if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
555
633
  target[prop] = source[prop];
556
- if (source != null && __getOwnPropSymbols$7)
557
- for (var prop of __getOwnPropSymbols$7(source)) {
558
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
634
+ if (source != null && __getOwnPropSymbols$8)
635
+ for (var prop of __getOwnPropSymbols$8(source)) {
636
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
559
637
  target[prop] = source[prop];
560
638
  }
561
639
  return target;
562
640
  };
563
641
  function useMutationObserver(target, callback, options = {}) {
564
- const _a = options, { window = defaultWindow } = _a, mutationOptions = __objRest$1(_a, ["window"]);
642
+ const _a = options, { window = defaultWindow$1 } = _a, mutationOptions = __objRest$1(_a, ["window"]);
565
643
  let observer;
566
644
  const isSupported = useSupported(() => window && "MutationObserver" in window);
567
645
  const cleanup = () => {
@@ -570,7 +648,7 @@ function useMutationObserver(target, callback, options = {}) {
570
648
  observer = void 0;
571
649
  }
572
650
  };
573
- const stopWatch = watch(() => unrefElement(target), (el) => {
651
+ const stopWatch = watch(() => unrefElement$1(target), (el) => {
574
652
  cleanup();
575
653
  if (isSupported.value && window && el) {
576
654
  observer = new MutationObserver(callback);
@@ -581,39 +659,39 @@ function useMutationObserver(target, callback, options = {}) {
581
659
  cleanup();
582
660
  stopWatch();
583
661
  };
584
- tryOnScopeDispose(stop);
662
+ tryOnScopeDispose$1(stop);
585
663
  return {
586
664
  isSupported,
587
665
  stop
588
666
  };
589
667
  }
590
668
 
591
- var SwipeDirection;
669
+ var SwipeDirection$1;
592
670
  (function(SwipeDirection2) {
593
671
  SwipeDirection2["UP"] = "UP";
594
672
  SwipeDirection2["RIGHT"] = "RIGHT";
595
673
  SwipeDirection2["DOWN"] = "DOWN";
596
674
  SwipeDirection2["LEFT"] = "LEFT";
597
675
  SwipeDirection2["NONE"] = "NONE";
598
- })(SwipeDirection || (SwipeDirection = {}));
599
-
600
- var __defProp = Object.defineProperty;
601
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
602
- var __hasOwnProp = Object.prototype.hasOwnProperty;
603
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
604
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
605
- var __spreadValues = (a, b) => {
676
+ })(SwipeDirection$1 || (SwipeDirection$1 = {}));
677
+
678
+ var __defProp$1 = Object.defineProperty;
679
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
680
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
681
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
682
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
683
+ var __spreadValues$1 = (a, b) => {
606
684
  for (var prop in b || (b = {}))
607
- if (__hasOwnProp.call(b, prop))
608
- __defNormalProp(a, prop, b[prop]);
609
- if (__getOwnPropSymbols)
610
- for (var prop of __getOwnPropSymbols(b)) {
611
- if (__propIsEnum.call(b, prop))
612
- __defNormalProp(a, prop, b[prop]);
685
+ if (__hasOwnProp$1.call(b, prop))
686
+ __defNormalProp$1(a, prop, b[prop]);
687
+ if (__getOwnPropSymbols$1)
688
+ for (var prop of __getOwnPropSymbols$1(b)) {
689
+ if (__propIsEnum$1.call(b, prop))
690
+ __defNormalProp$1(a, prop, b[prop]);
613
691
  }
614
692
  return a;
615
693
  };
616
- const _TransitionPresets = {
694
+ const _TransitionPresets$1 = {
617
695
  easeInSine: [0.12, 0, 0.39, 0],
618
696
  easeOutSine: [0.61, 1, 0.88, 1],
619
697
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -639,13 +717,14 @@ const _TransitionPresets = {
639
717
  easeOutBack: [0.34, 1.56, 0.64, 1],
640
718
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
641
719
  };
642
- __spreadValues({
643
- linear: identity$1
644
- }, _TransitionPresets);
720
+ __spreadValues$1({
721
+ linear: identity$2
722
+ }, _TransitionPresets$1);
645
723
 
646
724
  function useVModel(props, key, emit, options = {}) {
647
725
  var _a, _b, _c;
648
726
  const {
727
+ clone = false,
649
728
  passive = false,
650
729
  eventName,
651
730
  deep = false,
@@ -660,16 +739,16 @@ function useVModel(props, key, emit, options = {}) {
660
739
  }
661
740
  }
662
741
  event = eventName || event || `update:${key.toString()}`;
663
- const getValue = () => isDef(props[key]) ? props[key] : defaultValue;
742
+ const cloneFn = (val) => !clone ? val : isFunction$3(clone) ? clone(val) : cloneFnJSON(val);
743
+ const getValue = () => isDef(props[key]) ? cloneFn(props[key]) : defaultValue;
664
744
  if (passive) {
665
- const proxy = ref(getValue());
666
- watch(() => props[key], (v) => proxy.value = v);
745
+ const initialValue = getValue();
746
+ const proxy = ref(initialValue);
747
+ watch(() => props[key], (v) => proxy.value = cloneFn(v));
667
748
  watch(proxy, (v) => {
668
749
  if (v !== props[key] || deep)
669
750
  _emit(event, v);
670
- }, {
671
- deep
672
- });
751
+ }, { deep });
673
752
  return proxy;
674
753
  } else {
675
754
  return computed({
@@ -683,14 +762,14 @@ function useVModel(props, key, emit, options = {}) {
683
762
  }
684
763
  }
685
764
 
686
- function useWindowFocus({ window = defaultWindow } = {}) {
765
+ function useWindowFocus({ window = defaultWindow$1 } = {}) {
687
766
  if (!window)
688
767
  return ref(false);
689
768
  const focused = ref(window.document.hasFocus());
690
- useEventListener(window, "blur", () => {
769
+ useEventListener$1(window, "blur", () => {
691
770
  focused.value = false;
692
771
  });
693
- useEventListener(window, "focus", () => {
772
+ useEventListener$1(window, "focus", () => {
694
773
  focused.value = true;
695
774
  });
696
775
  return focused;
@@ -698,31 +777,37 @@ function useWindowFocus({ window = defaultWindow } = {}) {
698
777
 
699
778
  function useWindowSize(options = {}) {
700
779
  const {
701
- window = defaultWindow,
780
+ window = defaultWindow$1,
702
781
  initialWidth = Infinity,
703
782
  initialHeight = Infinity,
704
- listenOrientation = true
783
+ listenOrientation = true,
784
+ includeScrollbar = true
705
785
  } = options;
706
786
  const width = ref(initialWidth);
707
787
  const height = ref(initialHeight);
708
788
  const update = () => {
709
789
  if (window) {
710
- width.value = window.innerWidth;
711
- height.value = window.innerHeight;
790
+ if (includeScrollbar) {
791
+ width.value = window.innerWidth;
792
+ height.value = window.innerHeight;
793
+ } else {
794
+ width.value = window.document.documentElement.clientWidth;
795
+ height.value = window.document.documentElement.clientHeight;
796
+ }
712
797
  }
713
798
  };
714
799
  update();
715
800
  tryOnMounted(update);
716
- useEventListener("resize", update, { passive: true });
801
+ useEventListener$1("resize", update, { passive: true });
717
802
  if (listenOrientation)
718
- useEventListener("orientationchange", update, { passive: true });
803
+ useEventListener$1("orientationchange", update, { passive: true });
719
804
  return { width, height };
720
805
  }
721
806
 
722
- const isFirefox = () => isClient && /firefox/i.test(window.navigator.userAgent);
807
+ const isFirefox = () => isClient$1 && /firefox/i.test(window.navigator.userAgent);
723
808
 
724
809
  const isInContainer = (el, container) => {
725
- if (!isClient || !el || !container)
810
+ if (!isClient$1 || !el || !container)
726
811
  return false;
727
812
  const elRect = el.getBoundingClientRect();
728
813
  let containerRect;
@@ -778,59 +863,52 @@ function easeInOutCubic(t, b, c, d) {
778
863
  return cc / 2 * ((t -= 2) * t * t + 2) + b;
779
864
  }
780
865
 
781
- /**
782
- * Make a map and return a function for checking if a key
783
- * is in that map.
784
- * IMPORTANT: all calls of this function must be prefixed with
785
- * \/\*#\_\_PURE\_\_\*\/
786
- * So that rollup can tree-shake them if necessary.
787
- */
866
+ /**
867
+ * @vue/shared v3.5.13
868
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
869
+ * @license MIT
870
+ **/
788
871
 
789
- (process.env.NODE_ENV !== 'production')
790
- ? Object.freeze({})
791
- : {};
792
- (process.env.NODE_ENV !== 'production') ? Object.freeze([]) : [];
793
- const NOOP = () => { };
794
- const hasOwnProperty$p = Object.prototype.hasOwnProperty;
795
- const hasOwn = (val, key) => hasOwnProperty$p.call(val, key);
796
- const isArray$1 = Array.isArray;
797
- const isDate$1 = (val) => toTypeString(val) === '[object Date]';
798
- const isFunction$2 = (val) => typeof val === 'function';
799
- const isString$1 = (val) => typeof val === 'string';
800
- const isObject$1 = (val) => val !== null && typeof val === 'object';
801
- const isPromise = (val) => {
802
- return isObject$1(val) && isFunction$2(val.then) && isFunction$2(val.catch);
803
- };
804
- const objectToString$1 = Object.prototype.toString;
805
- const toTypeString = (value) => objectToString$1.call(value);
806
- const toRawType = (value) => {
807
- // extract "RawType" from strings like "[object RawType]"
808
- return toTypeString(value).slice(8, -1);
809
- };
810
- const isPlainObject$1 = (val) => toTypeString(val) === '[object Object]';
811
- const cacheStringFunction = (fn) => {
812
- const cache = Object.create(null);
813
- return ((str) => {
814
- const hit = cache[str];
815
- return hit || (cache[str] = fn(str));
816
- });
817
- };
818
- const camelizeRE = /-(\w)/g;
819
- /**
820
- * @private
821
- */
822
- const camelize = cacheStringFunction((str) => {
823
- return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));
824
- });
825
- const hyphenateRE = /\B([A-Z])/g;
826
- /**
827
- * @private
828
- */
829
- const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase());
830
- /**
831
- * @private
832
- */
833
- const capitalize$2 = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));
872
+ !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
873
+ !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
874
+ const NOOP = () => {
875
+ };
876
+ const hasOwnProperty$p = Object.prototype.hasOwnProperty;
877
+ const hasOwn = (val, key) => hasOwnProperty$p.call(val, key);
878
+ const isArray$1 = Array.isArray;
879
+ const isDate$1 = (val) => toTypeString(val) === "[object Date]";
880
+ const isFunction$2 = (val) => typeof val === "function";
881
+ const isString$2 = (val) => typeof val === "string";
882
+ const isObject$1 = (val) => val !== null && typeof val === "object";
883
+ const isPromise = (val) => {
884
+ return (isObject$1(val) || isFunction$2(val)) && isFunction$2(val.then) && isFunction$2(val.catch);
885
+ };
886
+ const objectToString$1 = Object.prototype.toString;
887
+ const toTypeString = (value) => objectToString$1.call(value);
888
+ const toRawType = (value) => {
889
+ return toTypeString(value).slice(8, -1);
890
+ };
891
+ const isPlainObject$1 = (val) => toTypeString(val) === "[object Object]";
892
+ const cacheStringFunction = (fn) => {
893
+ const cache = /* @__PURE__ */ Object.create(null);
894
+ return (str) => {
895
+ const hit = cache[str];
896
+ return hit || (cache[str] = fn(str));
897
+ };
898
+ };
899
+ const camelizeRE = /-(\w)/g;
900
+ const camelize = cacheStringFunction(
901
+ (str) => {
902
+ return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
903
+ }
904
+ );
905
+ const hyphenateRE = /\B([A-Z])/g;
906
+ const hyphenate = cacheStringFunction(
907
+ (str) => str.replace(hyphenateRE, "-$1").toLowerCase()
908
+ );
909
+ const capitalize$2 = cacheStringFunction((str) => {
910
+ return str.charAt(0).toUpperCase() + str.slice(1);
911
+ });
834
912
 
835
913
  /** Detect free variable `global` from Node.js. */
836
914
  var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
@@ -1384,7 +1462,7 @@ function after(n, func) {
1384
1462
  * console.log(_.identity(object) === object);
1385
1463
  * // => true
1386
1464
  */
1387
- function identity(value) {
1465
+ function identity$1(value) {
1388
1466
  return value;
1389
1467
  }
1390
1468
 
@@ -1546,7 +1624,7 @@ var metaMap = WeakMap && new WeakMap;
1546
1624
  * @param {*} data The metadata.
1547
1625
  * @returns {Function} Returns `func`.
1548
1626
  */
1549
- var baseSetData = !metaMap ? identity : function(func, data) {
1627
+ var baseSetData = !metaMap ? identity$1 : function(func, data) {
1550
1628
  metaMap.set(func, data);
1551
1629
  return func;
1552
1630
  };
@@ -1798,7 +1876,7 @@ LazyWrapper.prototype.constructor = LazyWrapper;
1798
1876
  * _.times(2, _.noop);
1799
1877
  * // => [undefined, undefined]
1800
1878
  */
1801
- function noop() {
1879
+ function noop$1() {
1802
1880
  // No operation performed.
1803
1881
  }
1804
1882
 
@@ -1809,7 +1887,7 @@ function noop() {
1809
1887
  * @param {Function} func The function to query.
1810
1888
  * @returns {*} Returns the metadata for `func`.
1811
1889
  */
1812
- var getData = !metaMap ? noop : function(func) {
1890
+ var getData = !metaMap ? noop$1 : function(func) {
1813
1891
  return metaMap.get(func);
1814
1892
  };
1815
1893
 
@@ -2191,7 +2269,7 @@ var defineProperty = (function() {
2191
2269
  * @param {Function} string The `toString` result.
2192
2270
  * @returns {Function} Returns `func`.
2193
2271
  */
2194
- var baseSetToString = !defineProperty ? identity : function(func, string) {
2272
+ var baseSetToString = !defineProperty ? identity$1 : function(func, string) {
2195
2273
  return defineProperty(func, 'toString', {
2196
2274
  'configurable': true,
2197
2275
  'enumerable': false,
@@ -3034,7 +3112,7 @@ function overRest(func, start, transform) {
3034
3112
  * @returns {Function} Returns the new function.
3035
3113
  */
3036
3114
  function baseRest(func, start) {
3037
- return setToString(overRest(func, start, identity), func + '');
3115
+ return setToString(overRest(func, start, identity$1), func + '');
3038
3116
  }
3039
3117
 
3040
3118
  /** Used as references for various `Number` constants. */
@@ -7356,7 +7434,7 @@ function baseIteratee(value) {
7356
7434
  return value;
7357
7435
  }
7358
7436
  if (value == null) {
7359
- return identity;
7437
+ return identity$1;
7360
7438
  }
7361
7439
  if (typeof value == 'object') {
7362
7440
  return isArray(value)
@@ -8878,7 +8956,7 @@ function dropWhile(array, predicate) {
8878
8956
  * @returns {Function} Returns cast function.
8879
8957
  */
8880
8958
  function castFunction(value) {
8881
- return typeof value == 'function' ? value : identity;
8959
+ return typeof value == 'function' ? value : identity$1;
8882
8960
  }
8883
8961
 
8884
8962
  /**
@@ -10625,7 +10703,7 @@ var stringTag = '[object String]';
10625
10703
  * _.isString(1);
10626
10704
  * // => false
10627
10705
  */
10628
- function isString(value) {
10706
+ function isString$1(value) {
10629
10707
  return typeof value == 'string' ||
10630
10708
  (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
10631
10709
  }
@@ -10717,7 +10795,7 @@ function includes(collection, value, fromIndex, guard) {
10717
10795
  if (fromIndex < 0) {
10718
10796
  fromIndex = nativeMax$7(length + fromIndex, 0);
10719
10797
  }
10720
- return isString(collection)
10798
+ return isString$1(collection)
10721
10799
  ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
10722
10800
  : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
10723
10801
  }
@@ -11018,7 +11096,7 @@ var invert = createInverter(function(result, value, key) {
11018
11096
  }
11019
11097
 
11020
11098
  result[value] = key;
11021
- }, constant(identity));
11099
+ }, constant(identity$1));
11022
11100
 
11023
11101
  /** Used for built-in method references. */
11024
11102
  var objectProto$4 = Object.prototype;
@@ -12338,7 +12416,7 @@ function baseExtremum(array, iteratee, comparator) {
12338
12416
  */
12339
12417
  function max$2(array) {
12340
12418
  return (array && array.length)
12341
- ? baseExtremum(array, identity, baseGt)
12419
+ ? baseExtremum(array, identity$1, baseGt)
12342
12420
  : undefined;
12343
12421
  }
12344
12422
 
@@ -12426,7 +12504,7 @@ function baseMean(array, iteratee) {
12426
12504
  * // => 5
12427
12505
  */
12428
12506
  function mean(array) {
12429
- return baseMean(array, identity);
12507
+ return baseMean(array, identity$1);
12430
12508
  }
12431
12509
 
12432
12510
  /**
@@ -12570,7 +12648,7 @@ var methodOf = baseRest(function(object, args) {
12570
12648
  */
12571
12649
  function min$2(array) {
12572
12650
  return (array && array.length)
12573
- ? baseExtremum(array, identity, baseLt)
12651
+ ? baseExtremum(array, identity$1, baseLt)
12574
12652
  : undefined;
12575
12653
  }
12576
12654
 
@@ -12778,7 +12856,7 @@ function toArray(value) {
12778
12856
  return [];
12779
12857
  }
12780
12858
  if (isArrayLike(value)) {
12781
- return isString(value) ? stringToArray(value) : copyArray(value);
12859
+ return isString$1(value) ? stringToArray(value) : copyArray(value);
12782
12860
  }
12783
12861
  if (symIterator$1 && value[symIterator$1]) {
12784
12862
  return iteratorToArray(value[symIterator$1]());
@@ -13229,7 +13307,7 @@ function baseOrderBy(collection, iteratees, orders) {
13229
13307
  return iteratee;
13230
13308
  });
13231
13309
  } else {
13232
- iteratees = [identity];
13310
+ iteratees = [identity$1];
13233
13311
  }
13234
13312
 
13235
13313
  var index = -1;
@@ -15120,7 +15198,7 @@ function size$1(collection) {
15120
15198
  return 0;
15121
15199
  }
15122
15200
  if (isArrayLike(collection)) {
15123
- return isString(collection) ? stringSize(collection) : collection.length;
15201
+ return isString$1(collection) ? stringSize(collection) : collection.length;
15124
15202
  }
15125
15203
  var tag = getTag$1(collection);
15126
15204
  if (tag == mapTag || tag == setTag) {
@@ -15389,7 +15467,7 @@ function baseSortedIndex(array, value, retHighest) {
15389
15467
  }
15390
15468
  return high;
15391
15469
  }
15392
- return baseSortedIndexBy(array, value, identity, retHighest);
15470
+ return baseSortedIndexBy(array, value, identity$1, retHighest);
15393
15471
  }
15394
15472
 
15395
15473
  /**
@@ -15865,7 +15943,7 @@ var subtract = createMathOperation(function(minuend, subtrahend) {
15865
15943
  */
15866
15944
  function sum$1(array) {
15867
15945
  return (array && array.length)
15868
- ? baseSum(array, identity)
15946
+ ? baseSum(array, identity$1)
15869
15947
  : 0;
15870
15948
  }
15871
15949
 
@@ -17146,7 +17224,7 @@ var INFINITY = 1 / 0;
17146
17224
  * @param {Array} values The values to add to the set.
17147
17225
  * @returns {Object} Returns the new set.
17148
17226
  */
17149
- var createSet = !(Set$1 && (1 / setToArray(new Set$1([,-0]))[1]) == INFINITY) ? noop : function(values) {
17227
+ var createSet = !(Set$1 && (1 / setToArray(new Set$1([,-0]))[1]) == INFINITY) ? noop$1 : function(values) {
17150
17228
  return new Set$1(values);
17151
17229
  };
17152
17230
 
@@ -18045,7 +18123,7 @@ var lang = {
18045
18123
  isLength, isMap, isMatch, isMatchWith, isNaN: isNaN$1,
18046
18124
  isNative, isNil, isNull, isNumber: isNumber$1, isObject,
18047
18125
  isObjectLike, isPlainObject, isRegExp, isSafeInteger, isSet,
18048
- isString, isSymbol, isTypedArray, isUndefined: isUndefined$1, isWeakMap,
18126
+ isString: isString$1, isSymbol, isTypedArray, isUndefined: isUndefined$1, isWeakMap,
18049
18127
  isWeakSet, lt: lt$1, lte, toArray, toFinite,
18050
18128
  toInteger, toLength, toNumber, toPlainObject, toSafeInteger,
18051
18129
  toString
@@ -18092,9 +18170,9 @@ var string$1 = {
18092
18170
 
18093
18171
  var util = {
18094
18172
  attempt, bindAll, cond, conforms, constant,
18095
- defaultTo, flow, flowRight, identity, iteratee,
18173
+ defaultTo, flow, flowRight, identity: identity$1, iteratee,
18096
18174
  matches, matchesProperty, method: method$1, methodOf, mixin: mixin$1,
18097
- noop, nthArg, over, overEvery, overSome,
18175
+ noop: noop$1, nthArg, over, overEvery, overSome,
18098
18176
  property, propertyOf, range: range$1, rangeRight, stubArray,
18099
18177
  stubFalse, stubObject, stubString, stubTrue, times,
18100
18178
  toPath, uniqueId
@@ -18489,7 +18567,7 @@ lodash.gte = lang.gte;
18489
18567
  lodash.has = object$1.has;
18490
18568
  lodash.hasIn = object$1.hasIn;
18491
18569
  lodash.head = array$1.head;
18492
- lodash.identity = identity;
18570
+ lodash.identity = identity$1;
18493
18571
  lodash.includes = collection.includes;
18494
18572
  lodash.indexOf = array$1.indexOf;
18495
18573
  lodash.inRange = number$1.inRange;
@@ -18689,7 +18767,7 @@ arrayEach(['initial', 'tail'], function(methodName, index) {
18689
18767
  });
18690
18768
 
18691
18769
  LazyWrapper.prototype.compact = function() {
18692
- return this.filter(identity);
18770
+ return this.filter(identity$1);
18693
18771
  };
18694
18772
 
18695
18773
  LazyWrapper.prototype.find = function(predicate) {
@@ -18854,7 +18932,7 @@ const isPropAbsent = (prop) => {
18854
18932
  return isNil(prop);
18855
18933
  };
18856
18934
  const isStringNumber = (val) => {
18857
- if (!isString$1(val)) {
18935
+ if (!isString$2(val)) {
18858
18936
  return false;
18859
18937
  }
18860
18938
  return !Number.isNaN(Number(val));
@@ -18863,8 +18941,8 @@ const isWindow = (val) => {
18863
18941
  return val === window;
18864
18942
  };
18865
18943
 
18866
- const rAF = (fn) => isClient ? window.requestAnimationFrame(fn) : setTimeout(fn, 16);
18867
- const cAF = (handle) => isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle);
18944
+ const rAF = (fn) => isClient$1 ? window.requestAnimationFrame(fn) : setTimeout(fn, 16);
18945
+ const cAF = (handle) => isClient$1 ? window.cancelAnimationFrame(handle) : clearTimeout(handle);
18868
18946
 
18869
18947
  const escapeStringRegexp = (string = "") => string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
18870
18948
  const capitalize = (str) => capitalize$2(str);
@@ -18893,7 +18971,7 @@ function throwError(scope, m) {
18893
18971
  }
18894
18972
  function debugWarn(scope, message) {
18895
18973
  if (process.env.NODE_ENV !== "production") {
18896
- const error = isString$1(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
18974
+ const error = isString$2(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
18897
18975
  console.warn(error);
18898
18976
  }
18899
18977
  }
@@ -18919,7 +18997,7 @@ const removeClass = (el, cls) => {
18919
18997
  };
18920
18998
  const getStyle = (element, styleName) => {
18921
18999
  var _a;
18922
- if (!isClient || !element || !styleName)
19000
+ if (!isClient$1 || !element || !styleName)
18923
19001
  return "";
18924
19002
  let key = camelize(styleName);
18925
19003
  if (key === "float")
@@ -18939,14 +19017,14 @@ function addUnit(value, defaultUnit = "px") {
18939
19017
  return "";
18940
19018
  if (isNumber(value) || isStringNumber(value)) {
18941
19019
  return `${value}${defaultUnit}`;
18942
- } else if (isString$1(value)) {
19020
+ } else if (isString$2(value)) {
18943
19021
  return value;
18944
19022
  }
18945
19023
  debugWarn(SCOPE$9, "binding value must be a string or number");
18946
19024
  }
18947
19025
 
18948
19026
  const isScroll = (el, isVertical) => {
18949
- if (!isClient)
19027
+ if (!isClient$1)
18950
19028
  return false;
18951
19029
  const key = {
18952
19030
  undefined: "overflow",
@@ -18957,7 +19035,7 @@ const isScroll = (el, isVertical) => {
18957
19035
  return ["scroll", "auto", "overlay"].some((s) => overflow.includes(s));
18958
19036
  };
18959
19037
  const getScrollContainer = (el, isVertical) => {
18960
- if (!isClient)
19038
+ if (!isClient$1)
18961
19039
  return;
18962
19040
  let parent = el;
18963
19041
  while (parent) {
@@ -18972,7 +19050,7 @@ const getScrollContainer = (el, isVertical) => {
18972
19050
  let scrollBarWidth;
18973
19051
  const getScrollBarWidth = (namespace) => {
18974
19052
  var _a;
18975
- if (!isClient)
19053
+ if (!isClient$1)
18976
19054
  return 0;
18977
19055
  if (scrollBarWidth !== void 0)
18978
19056
  return scrollBarWidth;
@@ -18994,7 +19072,7 @@ const getScrollBarWidth = (namespace) => {
18994
19072
  return scrollBarWidth;
18995
19073
  };
18996
19074
  function scrollIntoView(container, selected) {
18997
- if (!isClient)
19075
+ if (!isClient$1)
18998
19076
  return;
18999
19077
  if (!selected) {
19000
19078
  container.scrollTop = 0;
@@ -19053,9 +19131,9 @@ const getScrollTop = (container) => {
19053
19131
  };
19054
19132
 
19055
19133
  const getElement = (target) => {
19056
- if (!isClient || target === "")
19134
+ if (!isClient$1 || target === "")
19057
19135
  return null;
19058
- if (isString$1(target)) {
19136
+ if (isString$2(target)) {
19059
19137
  try {
19060
19138
  return document.querySelector(target);
19061
19139
  } catch (e) {
@@ -20403,10 +20481,10 @@ const buildLocaleContext = (locale) => {
20403
20481
  const localeContextKey = Symbol("localeContextKey");
20404
20482
  const useLocale = (localeOverrides) => {
20405
20483
  const locale = localeOverrides || inject(localeContextKey, ref());
20406
- return buildLocaleContext(computed(() => locale.value || zhCn));
20484
+ return buildLocaleContext(computed(() => locale.value || zhCn));
20407
20485
  };
20408
20486
 
20409
- const defaultNamespace = "xrk";
20487
+ const defaultNamespace = "xrk";
20410
20488
  const statePrefix = "is-";
20411
20489
  const _bem = (namespace, block, blockSuffix, element, modifier) => {
20412
20490
  let cls = `${namespace}-${block}`;
@@ -20485,7 +20563,7 @@ const useLockscreen = (trigger, options = {}) => {
20485
20563
  }
20486
20564
  const ns = options.ns || useNamespace("popup");
20487
20565
  const hiddenCls = computed(() => ns.bm("parent", "hidden"));
20488
- if (!isClient || hasClass(document.body, hiddenCls.value)) {
20566
+ if (!isClient$1 || hasClass(document.body, hiddenCls.value)) {
20489
20567
  return;
20490
20568
  }
20491
20569
  let scrollBarWidth = 0;
@@ -20576,7 +20654,7 @@ const createModelToggleComposable = (name) => {
20576
20654
  const show = (event) => {
20577
20655
  if (props.disabled === true || isFunction$2(shouldProceed) && !shouldProceed())
20578
20656
  return;
20579
- const shouldEmit = hasUpdateHandler.value && isClient;
20657
+ const shouldEmit = hasUpdateHandler.value && isClient$1;
20580
20658
  if (shouldEmit) {
20581
20659
  emit(updateEventKey, true);
20582
20660
  }
@@ -20585,9 +20663,9 @@ const createModelToggleComposable = (name) => {
20585
20663
  }
20586
20664
  };
20587
20665
  const hide = (event) => {
20588
- if (props.disabled === true || !isClient)
20666
+ if (props.disabled === true || !isClient$1)
20589
20667
  return;
20590
- const shouldEmit = hasUpdateHandler.value && isClient;
20668
+ const shouldEmit = hasUpdateHandler.value && isClient$1;
20591
20669
  if (shouldEmit) {
20592
20670
  emit(updateEventKey, false);
20593
20671
  }
@@ -20795,7 +20873,7 @@ function useTimeout() {
20795
20873
  timeoutHandle = window.setTimeout(fn, delay);
20796
20874
  };
20797
20875
  const cancelTimeout = () => window.clearTimeout(timeoutHandle);
20798
- tryOnScopeDispose(() => cancelTimeout());
20876
+ tryOnScopeDispose$1(() => cancelTimeout());
20799
20877
  return {
20800
20878
  registerTimeout,
20801
20879
  cancelTimeout
@@ -20812,7 +20890,7 @@ const useIdInjection = () => {
20812
20890
  };
20813
20891
  const useId = (deterministicId) => {
20814
20892
  const idInjection = useIdInjection();
20815
- if (!isClient && idInjection === defaultIdInjection) {
20893
+ if (!isClient$1 && idInjection === defaultIdInjection) {
20816
20894
  debugWarn("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
20817
20895
  usage: app.provide(ID_INJECTION_KEY, {
20818
20896
  prefix: number,
@@ -20836,13 +20914,13 @@ const useEscapeKeydown = (handler) => {
20836
20914
  if (registeredEscapeHandlers.length === 0) {
20837
20915
  document.addEventListener("keydown", cachedHandler);
20838
20916
  }
20839
- if (isClient)
20917
+ if (isClient$1)
20840
20918
  registeredEscapeHandlers.push(handler);
20841
20919
  });
20842
20920
  onBeforeUnmount(() => {
20843
20921
  registeredEscapeHandlers = registeredEscapeHandlers.filter((registeredHandler) => registeredHandler !== handler);
20844
20922
  if (registeredEscapeHandlers.length === 0) {
20845
- if (isClient)
20923
+ if (isClient$1)
20846
20924
  document.removeEventListener("keydown", cachedHandler);
20847
20925
  }
20848
20926
  });
@@ -20869,7 +20947,7 @@ const createContainer = (id) => {
20869
20947
  const usePopperContainer = () => {
20870
20948
  const { id, selector } = usePopperContainerId();
20871
20949
  onBeforeMount(() => {
20872
- if (!isClient)
20950
+ if (!isClient$1)
20873
20951
  return;
20874
20952
  if (process.env.NODE_ENV === "test" || !document.body.querySelector(selector.value)) {
20875
20953
  createContainer(id.value);
@@ -20973,7 +21051,7 @@ const useZIndex = (zIndexOverrides) => {
20973
21051
  zIndex.value = increasingInjection.current;
20974
21052
  return currentZIndex.value;
20975
21053
  };
20976
- if (!isClient && !inject(ZINDEX_INJECTION_KEY)) {
21054
+ if (!isClient$1 && !inject(ZINDEX_INJECTION_KEY)) {
20977
21055
  debugWarn("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
20978
21056
  usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
20979
21057
  }
@@ -22228,7 +22306,8 @@ function isContainingBlock(elementOrCss) {
22228
22306
  const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
22229
22307
 
22230
22308
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
22231
- return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
22309
+ // https://drafts.csswg.org/css-transforms-2/#individual-transforms
22310
+ return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
22232
22311
  }
22233
22312
  function getContainingBlock(element) {
22234
22313
  let currentNode = getParentNode(element);
@@ -22786,6 +22865,10 @@ const platform = {
22786
22865
  isRTL: isRTL$1
22787
22866
  };
22788
22867
 
22868
+ function rectsAreEqual(a, b) {
22869
+ return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
22870
+ }
22871
+
22789
22872
  // https://samthor.au/2021/observing-dom/
22790
22873
  function observeMove(element, onMove) {
22791
22874
  let io = null;
@@ -22805,12 +22888,13 @@ function observeMove(element, onMove) {
22805
22888
  threshold = 1;
22806
22889
  }
22807
22890
  cleanup();
22891
+ const elementRectForRootMargin = element.getBoundingClientRect();
22808
22892
  const {
22809
22893
  left,
22810
22894
  top,
22811
22895
  width,
22812
22896
  height
22813
- } = element.getBoundingClientRect();
22897
+ } = elementRectForRootMargin;
22814
22898
  if (!skip) {
22815
22899
  onMove();
22816
22900
  }
@@ -22843,6 +22927,16 @@ function observeMove(element, onMove) {
22843
22927
  refresh(false, ratio);
22844
22928
  }
22845
22929
  }
22930
+ if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
22931
+ // It's possible that even though the ratio is reported as 1, the
22932
+ // element is not actually fully within the IntersectionObserver's root
22933
+ // area anymore. This can happen under performance constraints. This may
22934
+ // be a bug in the browser's IntersectionObserver implementation. To
22935
+ // work around this, we compare the element's bounding rect now with
22936
+ // what it was at the time we created the IntersectionObserver. If they
22937
+ // are not equal then the element moved, so we refresh.
22938
+ refresh();
22939
+ }
22846
22940
  isFirstUpdate = false;
22847
22941
  }
22848
22942
 
@@ -22920,7 +23014,7 @@ function autoUpdate(reference, floating, update, options) {
22920
23014
  }
22921
23015
  function frameLoop() {
22922
23016
  const nextRefRect = getBoundingClientRect(reference);
22923
- if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
23017
+ if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
22924
23018
  update();
22925
23019
  }
22926
23020
  prevRefRect = nextRefRect;
@@ -23160,15 +23254,15 @@ function useFocusController(target, {
23160
23254
  el.setAttribute("tabindex", "-1");
23161
23255
  }
23162
23256
  });
23163
- useEventListener(wrapperRef, "focus", handleFocus, true);
23164
- useEventListener(wrapperRef, "blur", handleBlur, true);
23165
- useEventListener(wrapperRef, "click", handleClick, true);
23257
+ useEventListener$1(wrapperRef, "focus", handleFocus, true);
23258
+ useEventListener$1(wrapperRef, "blur", handleBlur, true);
23259
+ useEventListener$1(wrapperRef, "click", handleClick, true);
23166
23260
  if (process.env.NODE_ENV === "test") {
23167
23261
  onMounted(() => {
23168
23262
  const targetEl = isElement$1(target.value) ? target.value : document.querySelector("input,textarea");
23169
23263
  if (targetEl) {
23170
- useEventListener(targetEl, "focus", handleFocus, true);
23171
- useEventListener(targetEl, "blur", handleBlur, true);
23264
+ useEventListener$1(targetEl, "focus", handleFocus, true);
23265
+ useEventListener$1(targetEl, "blur", handleBlur, true);
23172
23266
  }
23173
23267
  });
23174
23268
  }
@@ -23511,7 +23605,7 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
23511
23605
  scrollContainer.value = getScrollContainer(root.value, true);
23512
23606
  updateRoot();
23513
23607
  });
23514
- useEventListener(scrollContainer, "scroll", handleScroll);
23608
+ useEventListener$1(scrollContainer, "scroll", handleScroll);
23515
23609
  watchEffect(update);
23516
23610
  expose({
23517
23611
  update,
@@ -23825,7 +23919,7 @@ const formProps = buildProps({
23825
23919
  }
23826
23920
  });
23827
23921
  const formEmits = {
23828
- validate: (prop, isValid, message) => (isArray$1(prop) || isString$1(prop)) && isBoolean(isValid) && isString$1(message)
23922
+ validate: (prop, isValid, message) => (isArray$1(prop) || isString$2(prop)) && isBoolean(isValid) && isString$2(message)
23829
23923
  };
23830
23924
 
23831
23925
  const SCOPE$6 = "ElForm";
@@ -25541,7 +25635,7 @@ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
25541
25635
  const propString = computed(() => {
25542
25636
  if (!props.prop)
25543
25637
  return "";
25544
- return isString$1(props.prop) ? props.prop : props.prop.join(".");
25638
+ return isString$2(props.prop) ? props.prop : props.prop.join(".");
25545
25639
  });
25546
25640
  const hasLabel = computed(() => {
25547
25641
  return !!(props.label || slots.label);
@@ -25943,9 +26037,9 @@ const inputProps = buildProps({
25943
26037
  ...useAriaProps(["ariaLabel"])
25944
26038
  });
25945
26039
  const inputEmits = {
25946
- [UPDATE_MODEL_EVENT]: (value) => isString$1(value),
25947
- input: (value) => isString$1(value),
25948
- change: (value) => isString$1(value),
26040
+ [UPDATE_MODEL_EVENT]: (value) => isString$2(value),
26041
+ input: (value) => isString$2(value),
26042
+ change: (value) => isString$2(value),
25949
26043
  focus: (evt) => evt instanceof FocusEvent,
25950
26044
  blur: (evt) => evt instanceof FocusEvent,
25951
26045
  clear: () => true,
@@ -26062,7 +26156,7 @@ const _sfc_main$2j = /* @__PURE__ */ defineComponent({
26062
26156
  });
26063
26157
  const resizeTextarea = () => {
26064
26158
  const { type, autosize } = props;
26065
- if (!isClient || type !== "textarea" || !textarea.value)
26159
+ if (!isClient$1 || type !== "textarea" || !textarea.value)
26066
26160
  return;
26067
26161
  if (autosize) {
26068
26162
  const minRows = isObject$1(autosize) ? autosize.minRows : void 0;
@@ -26446,7 +26540,7 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
26446
26540
  const visible = ref(false);
26447
26541
  let cursorDown = false;
26448
26542
  let cursorLeave = false;
26449
- let originalOnSelectStart = isClient ? document.onselectstart : null;
26543
+ let originalOnSelectStart = isClient$1 ? document.onselectstart : null;
26450
26544
  const bar = computed(() => BAR_MAP[props.vertical ? "vertical" : "horizontal"]);
26451
26545
  const thumbStyle = computed(() => renderThumbStyle$1({
26452
26546
  size: props.size,
@@ -26520,8 +26614,8 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
26520
26614
  if (document.onselectstart !== originalOnSelectStart)
26521
26615
  document.onselectstart = originalOnSelectStart;
26522
26616
  };
26523
- useEventListener(toRef(scrollbar, "scrollbarElement"), "mousemove", mouseMoveScrollbarHandler);
26524
- useEventListener(toRef(scrollbar, "scrollbarElement"), "mouseleave", mouseLeaveScrollbarHandler);
26617
+ useEventListener$1(toRef(scrollbar, "scrollbarElement"), "mousemove", mouseMoveScrollbarHandler);
26618
+ useEventListener$1(toRef(scrollbar, "scrollbarElement"), "mouseleave", mouseLeaveScrollbarHandler);
26525
26619
  return (_ctx, _cache) => {
26526
26620
  return openBlock(), createBlock(Transition, {
26527
26621
  name: unref(ns).b("fade"),
@@ -26757,7 +26851,7 @@ const _sfc_main$2g = /* @__PURE__ */ defineComponent({
26757
26851
  stopResizeListener == null ? void 0 : stopResizeListener();
26758
26852
  } else {
26759
26853
  ({ stop: stopResizeObserver } = useResizeObserver(resizeRef, update));
26760
- stopResizeListener = useEventListener("resize", update);
26854
+ stopResizeListener = useEventListener$1("resize", update);
26761
26855
  }
26762
26856
  }, { immediate: true });
26763
26857
  watch(() => [props.maxHeight, props.height], () => {
@@ -27060,7 +27154,7 @@ const _sfc_main$2d = /* @__PURE__ */ defineComponent({
27060
27154
  onMounted(() => {
27061
27155
  watch(() => props.virtualRef, (virtualEl) => {
27062
27156
  if (virtualEl) {
27063
- triggerRef.value = unrefElement(virtualEl);
27157
+ triggerRef.value = unrefElement$1(virtualEl);
27064
27158
  }
27065
27159
  }, {
27066
27160
  immediate: true
@@ -27462,7 +27556,7 @@ const _sfc_main$2c = defineComponent({
27462
27556
  if (!focusEvent.defaultPrevented) {
27463
27557
  nextTick(() => {
27464
27558
  let focusStartEl = props.focusStartEl;
27465
- if (!isString$1(focusStartEl)) {
27559
+ if (!isString$2(focusStartEl)) {
27466
27560
  tryFocus(focusStartEl);
27467
27561
  if (document.activeElement !== focusStartEl) {
27468
27562
  focusStartEl = "first";
@@ -27631,9 +27725,9 @@ const buildPopperOptions = (props, modifiers = []) => {
27631
27725
  return options;
27632
27726
  };
27633
27727
  const unwrapMeasurableEl = ($el) => {
27634
- if (!isClient)
27728
+ if (!isClient$1)
27635
27729
  return;
27636
- return unrefElement($el);
27730
+ return unrefElement$1($el);
27637
27731
  };
27638
27732
  function genModifiers(options) {
27639
27733
  const { offset, gpuAcceleration, fallbackPlacements } = options;
@@ -28509,9 +28603,9 @@ const autocompleteProps = buildProps({
28509
28603
  ...useAriaProps(["ariaLabel"])
28510
28604
  });
28511
28605
  const autocompleteEmits = {
28512
- [UPDATE_MODEL_EVENT]: (value) => isString$1(value),
28513
- [INPUT_EVENT]: (value) => isString$1(value),
28514
- [CHANGE_EVENT]: (value) => isString$1(value),
28606
+ [UPDATE_MODEL_EVENT]: (value) => isString$2(value),
28607
+ [INPUT_EVENT]: (value) => isString$2(value),
28608
+ [CHANGE_EVENT]: (value) => isString$2(value),
28515
28609
  focus: (evt) => evt instanceof FocusEvent,
28516
28610
  blur: (evt) => evt instanceof FocusEvent,
28517
28611
  clear: () => true,
@@ -28912,7 +29006,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
28912
29006
  const avatarClass = computed(() => {
28913
29007
  const { size, icon, shape } = props;
28914
29008
  const classList = [ns.b()];
28915
- if (isString$1(size))
29009
+ if (isString$2(size))
28916
29010
  classList.push(ns.m(size));
28917
29011
  if (icon)
28918
29012
  classList.push(ns.m("icon"));
@@ -28996,7 +29090,7 @@ const useBackTop = (props, emit, componentName) => {
28996
29090
  emit("click", event);
28997
29091
  };
28998
29092
  const handleScrollThrottled = useThrottleFn(handleScroll, 300, true);
28999
- useEventListener(container, "scroll", handleScrollThrottled);
29093
+ useEventListener$1(container, "scroll", handleScrollThrottled);
29000
29094
  onMounted(() => {
29001
29095
  var _a;
29002
29096
  container.value = document;
@@ -29346,7 +29440,7 @@ const buttonTypes = [
29346
29440
  "info",
29347
29441
  "danger",
29348
29442
  "text",
29349
- "primary2",
29443
+ "primary2",
29350
29444
  ""
29351
29445
  ];
29352
29446
  const buttonNativeTypes = ["button", "submit", "reset"];
@@ -31662,7 +31756,7 @@ const useOldValue = (props) => {
31662
31756
  };
31663
31757
 
31664
31758
  const nodeList = /* @__PURE__ */ new Map();
31665
- if (isClient) {
31759
+ if (isClient$1) {
31666
31760
  let startClick;
31667
31761
  document.addEventListener("mousedown", (e) => startClick = e);
31668
31762
  document.addEventListener("mouseup", (e) => {
@@ -33305,7 +33399,7 @@ const useCarousel = (props, emit, componentName) => {
33305
33399
  isTransitioning.value = true;
33306
33400
  }
33307
33401
  isFirstCall.value = false;
33308
- if (isString$1(index)) {
33402
+ if (isString$2(index)) {
33309
33403
  const filteredItems = items.value.filter((item) => item.props.name === index);
33310
33404
  if (filteredItems.length > 0) {
33311
33405
  index = items.value.indexOf(filteredItems[0]);
@@ -33951,8 +34045,8 @@ const checkboxProps = {
33951
34045
  ...useAriaProps(["ariaControls"])
33952
34046
  };
33953
34047
  const checkboxEmits = {
33954
- [UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val),
33955
- change: (val) => isString$1(val) || isNumber(val) || isBoolean(val)
34048
+ [UPDATE_MODEL_EVENT]: (val) => isString$2(val) || isNumber(val) || isBoolean(val),
34049
+ change: (val) => isString$2(val) || isNumber(val) || isBoolean(val)
33956
34050
  };
33957
34051
 
33958
34052
  const checkboxGroupContextKey = Symbol("checkboxGroupContextKey");
@@ -34503,8 +34597,8 @@ const radioProps = buildProps({
34503
34597
  border: Boolean
34504
34598
  });
34505
34599
  const radioEmits = {
34506
- [UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val),
34507
- [CHANGE_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val)
34600
+ [UPDATE_MODEL_EVENT]: (val) => isString$2(val) || isNumber(val) || isBoolean(val),
34601
+ [CHANGE_EVENT]: (val) => isString$2(val) || isNumber(val) || isBoolean(val)
34508
34602
  };
34509
34603
 
34510
34604
  const radioGroupKey = Symbol("radioGroupKey");
@@ -35534,7 +35628,7 @@ const _sfc_main$1J = defineComponent({
35534
35628
  nextTick(scrollToExpandingNode);
35535
35629
  };
35536
35630
  const scrollToExpandingNode = () => {
35537
- if (!isClient)
35631
+ if (!isClient$1)
35538
35632
  return;
35539
35633
  menuList.value.forEach((menu) => {
35540
35634
  const menuElement = menu == null ? void 0 : menu.$el;
@@ -36062,7 +36156,7 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
36062
36156
  const inputInner = (_a = input.value) == null ? void 0 : _a.input;
36063
36157
  const tagWrapperEl = tagWrapper.value;
36064
36158
  const suggestionPanelEl = (_b = suggestionPanel.value) == null ? void 0 : _b.$el;
36065
- if (!isClient || !inputInner)
36159
+ if (!isClient$1 || !inputInner)
36066
36160
  return;
36067
36161
  if (suggestionPanelEl) {
36068
36162
  const suggestionList = suggestionPanelEl.querySelector(`.${nsCascader.e("suggestion-list")}`);
@@ -36671,7 +36765,7 @@ var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["__file", "col.vue"]]);
36671
36765
 
36672
36766
  const ElCol = withInstall(Col);
36673
36767
 
36674
- const emitChangeFn = (value) => isNumber(value) || isString$1(value) || isArray$1(value);
36768
+ const emitChangeFn = (value) => isNumber(value) || isString$2(value) || isArray$1(value);
36675
36769
  const collapseProps = buildProps({
36676
36770
  accordion: Boolean,
36677
36771
  modelValue: {
@@ -37028,7 +37122,7 @@ const alphaSliderProps = buildProps({
37028
37122
 
37029
37123
  let isDragging = false;
37030
37124
  function draggable(element, options) {
37031
- if (!isClient)
37125
+ if (!isClient$1)
37032
37126
  return;
37033
37127
  const moveFn = function(event) {
37034
37128
  var _a;
@@ -37408,9 +37502,9 @@ const colorPickerProps = buildProps({
37408
37502
  ...useAriaProps(["ariaLabel"])
37409
37503
  });
37410
37504
  const colorPickerEmits = {
37411
- [UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNil(val),
37412
- [CHANGE_EVENT]: (val) => isString$1(val) || isNil(val),
37413
- activeChange: (val) => isString$1(val) || isNil(val),
37505
+ [UPDATE_MODEL_EVENT]: (val) => isString$2(val) || isNil(val),
37506
+ [CHANGE_EVENT]: (val) => isString$2(val) || isNil(val),
37507
+ activeChange: (val) => isString$2(val) || isNil(val),
37414
37508
  focus: (evt) => evt instanceof FocusEvent,
37415
37509
  blur: (evt) => evt instanceof FocusEvent
37416
37510
  };
@@ -42363,7 +42457,7 @@ const useDialog = (props, targetRef) => {
42363
42457
  }
42364
42458
  }
42365
42459
  function doOpen() {
42366
- if (!isClient)
42460
+ if (!isClient$1)
42367
42461
  return;
42368
42462
  visible.value = true;
42369
42463
  }
@@ -43086,7 +43180,7 @@ const _sfc_main$1b = defineComponent({
43086
43180
  watch(() => props.currentTabId, (val) => {
43087
43181
  currentTabbedId.value = val != null ? val : null;
43088
43182
  });
43089
- useEventListener(rovingFocusGroupRef, ENTRY_FOCUS_EVT, handleEntryFocus);
43183
+ useEventListener$1(rovingFocusGroupRef, ENTRY_FOCUS_EVT, handleEntryFocus);
43090
43184
  }
43091
43185
  });
43092
43186
  function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
@@ -44246,8 +44340,8 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
44246
44340
  });
44247
44341
  });
44248
44342
  scopeEventListener.run(() => {
44249
- useEventListener(document, "keydown", keydownHandler);
44250
- useEventListener(document, "wheel", mousewheelHandler);
44343
+ useEventListener$1(document, "keydown", keydownHandler);
44344
+ useEventListener$1(document, "wheel", mousewheelHandler);
44251
44345
  });
44252
44346
  }
44253
44347
  function unregisterEventListener() {
@@ -44274,8 +44368,8 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
44274
44368
  offsetY: offsetY + ev.pageY - startY
44275
44369
  };
44276
44370
  });
44277
- const removeMousemove = useEventListener(document, "mousemove", dragHandler);
44278
- useEventListener(document, "mouseup", () => {
44371
+ const removeMousemove = useEventListener$1(document, "mousemove", dragHandler);
44372
+ useEventListener$1(document, "mouseup", () => {
44279
44373
  removeMousemove();
44280
44374
  });
44281
44375
  e.preventDefault();
@@ -44364,14 +44458,14 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
44364
44458
  (_b = (_a2 = wrapper.value) == null ? void 0 : _a2.focus) == null ? void 0 : _b.call(_a2);
44365
44459
  });
44366
44460
  expose({
44367
- setActiveItem,
44368
- registerEventListener,
44369
- unregisterEventListener,
44370
- hide,
44371
- toggleMode,
44372
- next,
44373
- prev,
44374
- handleActions
44461
+ setActiveItem,
44462
+ registerEventListener,
44463
+ unregisterEventListener,
44464
+ hide,
44465
+ toggleMode,
44466
+ next,
44467
+ prev,
44468
+ handleActions
44375
44469
  });
44376
44470
  return (_ctx, _cache) => {
44377
44471
  return openBlock(), createBlock(unref(ElTeleport), {
@@ -44613,7 +44707,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
44613
44707
  const showViewer = ref(false);
44614
44708
  const container = ref();
44615
44709
  const _scrollContainer = ref();
44616
- const supportLoading = isClient && "loading" in HTMLImageElement.prototype;
44710
+ const supportLoading = isClient$1 && "loading" in HTMLImageElement.prototype;
44617
44711
  let stopScrollListener;
44618
44712
  let stopWheelListener;
44619
44713
  const imageKls = computed(() => [
@@ -44623,7 +44717,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
44623
44717
  ]);
44624
44718
  const imageStyle = computed(() => {
44625
44719
  const { fit } = props;
44626
- if (isClient && fit) {
44720
+ if (isClient$1 && fit) {
44627
44721
  return { objectFit: fit };
44628
44722
  }
44629
44723
  return {};
@@ -44646,7 +44740,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
44646
44740
  return !supportLoading && props.loading === "lazy" || props.lazy;
44647
44741
  });
44648
44742
  const loadImage = () => {
44649
- if (!isClient)
44743
+ if (!isClient$1)
44650
44744
  return;
44651
44745
  isLoading.value = true;
44652
44746
  hasLoadError.value = false;
@@ -44671,24 +44765,24 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
44671
44765
  const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200, true);
44672
44766
  async function addLazyLoadListener() {
44673
44767
  var _a;
44674
- if (!isClient)
44768
+ if (!isClient$1)
44675
44769
  return;
44676
44770
  await nextTick();
44677
44771
  const { scrollContainer } = props;
44678
44772
  if (isElement$1(scrollContainer)) {
44679
44773
  _scrollContainer.value = scrollContainer;
44680
- } else if (isString$1(scrollContainer) && scrollContainer !== "") {
44774
+ } else if (isString$2(scrollContainer) && scrollContainer !== "") {
44681
44775
  _scrollContainer.value = (_a = document.querySelector(scrollContainer)) != null ? _a : void 0;
44682
44776
  } else if (container.value) {
44683
44777
  _scrollContainer.value = getScrollContainer(container.value);
44684
44778
  }
44685
44779
  if (_scrollContainer.value) {
44686
- stopScrollListener = useEventListener(_scrollContainer, "scroll", lazyLoadHandler);
44780
+ stopScrollListener = useEventListener$1(_scrollContainer, "scroll", lazyLoadHandler);
44687
44781
  setTimeout(() => handleLazyLoad(), 100);
44688
44782
  }
44689
44783
  }
44690
44784
  function removeLazyLoadListener() {
44691
- if (!isClient || !_scrollContainer.value || !lazyLoadHandler)
44785
+ if (!isClient$1 || !_scrollContainer.value || !lazyLoadHandler)
44692
44786
  return;
44693
44787
  stopScrollListener == null ? void 0 : stopScrollListener();
44694
44788
  _scrollContainer.value = void 0;
@@ -44707,7 +44801,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
44707
44801
  function clickHandler() {
44708
44802
  if (!preview.value)
44709
44803
  return;
44710
- stopWheelListener = useEventListener("wheel", wheelHandler, {
44804
+ stopWheelListener = useEventListener$1("wheel", wheelHandler, {
44711
44805
  passive: false
44712
44806
  });
44713
44807
  prevOverflow = document.body.style.overflow;
@@ -44980,7 +45074,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
44980
45074
  if (valueOnClear === null) {
44981
45075
  return null;
44982
45076
  }
44983
- newVal = isString$1(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear;
45077
+ newVal = isString$2(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear;
44984
45078
  }
44985
45079
  if (stepStrictly) {
44986
45080
  newVal = toPrecision(Math.round(newVal / step) * step, precision);
@@ -45695,7 +45789,7 @@ var SubMenu = defineComponent({
45695
45789
  transform: opened.value ? props.expandCloseIcon && props.expandOpenIcon || props.collapseCloseIcon && props.collapseOpenIcon && rootMenu.props.collapse ? "none" : "rotateZ(180deg)" : "none"
45696
45790
  }
45697
45791
  }, {
45698
- default: () => isString$1(subMenuTitleIcon.value) ? h$1(instance.appContext.components[subMenuTitleIcon.value]) : h$1(subMenuTitleIcon.value)
45792
+ default: () => isString$2(subMenuTitleIcon.value) ? h$1(instance.appContext.components[subMenuTitleIcon.value]) : h$1(subMenuTitleIcon.value)
45699
45793
  })
45700
45794
  ];
45701
45795
  const child = rootMenu.isMenuPopup ? h$1(ElTooltip, {
@@ -45830,11 +45924,11 @@ const menuProps = buildProps({
45830
45924
  default: 300
45831
45925
  }
45832
45926
  });
45833
- const checkIndexPath = (indexPath) => Array.isArray(indexPath) && indexPath.every((path) => isString$1(path));
45927
+ const checkIndexPath = (indexPath) => Array.isArray(indexPath) && indexPath.every((path) => isString$2(path));
45834
45928
  const menuEmits = {
45835
- close: (index, indexPath) => isString$1(index) && checkIndexPath(indexPath),
45836
- open: (index, indexPath) => isString$1(index) && checkIndexPath(indexPath),
45837
- select: (index, indexPath, item, routerResult) => isString$1(index) && checkIndexPath(indexPath) && isObject$1(item) && (routerResult === void 0 || routerResult instanceof Promise)
45929
+ close: (index, indexPath) => isString$2(index) && checkIndexPath(indexPath),
45930
+ open: (index, indexPath) => isString$2(index) && checkIndexPath(indexPath),
45931
+ select: (index, indexPath, item, routerResult) => isString$2(index) && checkIndexPath(indexPath) && isObject$1(item) && (routerResult === void 0 || routerResult instanceof Promise)
45838
45932
  };
45839
45933
  var Menu = defineComponent({
45840
45934
  name: "ElMenu",
@@ -46111,7 +46205,7 @@ const menuItemProps = buildProps({
46111
46205
  disabled: Boolean
46112
46206
  });
46113
46207
  const menuItemEmits = {
46114
- click: (item) => isString$1(item.index) && Array.isArray(item.indexPath)
46208
+ click: (item) => isString$2(item.index) && Array.isArray(item.indexPath)
46115
46209
  };
46116
46210
 
46117
46211
  const COMPONENT_NAME$b = "ElMenuItem";
@@ -46858,7 +46952,7 @@ const useSelect$2 = (props, emit) => {
46858
46952
  });
46859
46953
  watch(() => states.options.entries(), () => {
46860
46954
  var _a;
46861
- if (!isClient)
46955
+ if (!isClient$1)
46862
46956
  return;
46863
46957
  const inputs = ((_a = selectRef.value) == null ? void 0 : _a.querySelectorAll("input")) || [];
46864
46958
  if (!props.filterable && !props.defaultFirstOption && !isUndefined(props.modelValue) || !Array.from(inputs).includes(document.activeElement)) {
@@ -47333,7 +47427,7 @@ var ElOptions = defineComponent({
47333
47427
  var _a2, _b2, _c, _d;
47334
47428
  const name = (_a2 = (item == null ? void 0 : item.type) || {}) == null ? void 0 : _a2.name;
47335
47429
  if (name === "ElOptionGroup") {
47336
- filterOptions(!isString$1(item.children) && !isArray$1(item.children) && isFunction$2((_b2 = item.children) == null ? void 0 : _b2.default) ? (_c = item.children) == null ? void 0 : _c.default() : item.children);
47430
+ filterOptions(!isString$2(item.children) && !isArray$1(item.children) && isFunction$2((_b2 = item.children) == null ? void 0 : _b2.default) ? (_c = item.children) == null ? void 0 : _c.default() : item.children);
47337
47431
  } else if (name === "ElOption") {
47338
47432
  valueList.push((_d = item.props) == null ? void 0 : _d.value);
47339
47433
  } else if (isArray$1(item.children)) {
@@ -49087,7 +49181,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
49087
49181
  function getColors(color) {
49088
49182
  const span = 100 / color.length;
49089
49183
  const seriesColors = color.map((seriesColor, index) => {
49090
- if (isString$1(seriesColor)) {
49184
+ if (isString$2(seriesColor)) {
49091
49185
  return {
49092
49186
  color: seriesColor,
49093
49187
  percentage: (index + 1) * span
@@ -49102,7 +49196,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
49102
49196
  const { color } = props;
49103
49197
  if (isFunction$2(color)) {
49104
49198
  return color(percentage);
49105
- } else if (isString$1(color)) {
49199
+ } else if (isString$2(color)) {
49106
49200
  return color;
49107
49201
  } else {
49108
49202
  const colors = getColors(color);
@@ -49363,7 +49457,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
49363
49457
  } : icons;
49364
49458
  });
49365
49459
  const decimalIconComponent = computed(() => getValueFromMap(props.modelValue, componentMap.value));
49366
- const voidComponent = computed(() => rateDisabled.value ? isString$1(props.disabledVoidIcon) ? props.disabledVoidIcon : markRaw(props.disabledVoidIcon) : isString$1(props.voidIcon) ? props.voidIcon : markRaw(props.voidIcon));
49460
+ const voidComponent = computed(() => rateDisabled.value ? isString$2(props.disabledVoidIcon) ? props.disabledVoidIcon : markRaw(props.disabledVoidIcon) : isString$2(props.voidIcon) ? props.voidIcon : markRaw(props.voidIcon));
49367
49461
  const activeComponent = computed(() => getValueFromMap(currentValue.value, componentMap.value));
49368
49462
  function showDecimalIcon(item) {
49369
49463
  const showWhenDisabled = rateDisabled.value && valueDecimal.value > 0 && item - 1 < props.modelValue && item > props.modelValue;
@@ -50147,7 +50241,7 @@ const createList = ({
50147
50241
  (_b = (_a = scrollbarRef.value).onMouseUp) == null ? void 0 : _b.call(_a);
50148
50242
  scrollTo(Math.min(states.value.scrollOffset + offset, estimatedTotalSize.value - clientSize.value));
50149
50243
  });
50150
- useEventListener(windowRef, "wheel", onWheel, {
50244
+ useEventListener$1(windowRef, "wheel", onWheel, {
50151
50245
  passive: false
50152
50246
  });
50153
50247
  const emitEvents = () => {
@@ -50267,7 +50361,7 @@ const createList = ({
50267
50361
  }
50268
50362
  };
50269
50363
  onMounted(() => {
50270
- if (!isClient)
50364
+ if (!isClient$1)
50271
50365
  return;
50272
50366
  const { initScrollOffset } = props;
50273
50367
  const windowElement = unref(windowRef);
@@ -50382,7 +50476,7 @@ const createList = ({
50382
50476
  h$1(Inner, {
50383
50477
  style: innerStyle,
50384
50478
  ref: "innerRef"
50385
- }, !isString$1(Inner) ? {
50479
+ }, !isString$2(Inner) ? {
50386
50480
  default: () => children
50387
50481
  } : children)
50388
50482
  ];
@@ -50401,7 +50495,7 @@ const createList = ({
50401
50495
  onScroll,
50402
50496
  ref: "windowRef",
50403
50497
  key: 0
50404
- }, !isString$1(Container) ? { default: () => [InnerNode] } : [InnerNode]);
50498
+ }, !isString$2(Container) ? { default: () => [InnerNode] } : [InnerNode]);
50405
50499
  return h$1("div", {
50406
50500
  key: 0,
50407
50501
  class: [ns.e("wrapper"), states.scrollbarAlwaysOn ? "always-on" : ""]
@@ -50417,7 +50511,7 @@ const FixedSizeList = createList({
50417
50511
  getEstimatedTotalSize: ({ total, itemSize }) => itemSize * total,
50418
50512
  getOffset: ({ height, total, itemSize, layout, width }, index, alignment, scrollOffset) => {
50419
50513
  const size = isHorizontal(layout) ? width : height;
50420
- if (process.env.NODE_ENV !== "production" && isString$1(size)) {
50514
+ if (process.env.NODE_ENV !== "production" && isString$2(size)) {
50421
50515
  throwError("[ElVirtualList]", `
50422
50516
  You should set
50423
50517
  width/height
@@ -50874,7 +50968,7 @@ const createGrid = ({
50874
50968
  scrollTop: Math.min(states.value.scrollTop + y, estimatedTotalHeight.value - height)
50875
50969
  });
50876
50970
  });
50877
- useEventListener(windowRef, "wheel", onWheel, {
50971
+ useEventListener$1(windowRef, "wheel", onWheel, {
50878
50972
  passive: false
50879
50973
  });
50880
50974
  const scrollTo = ({
@@ -50942,7 +51036,7 @@ const createGrid = ({
50942
51036
  });
50943
51037
  };
50944
51038
  onMounted(() => {
50945
- if (!isClient)
51039
+ if (!isClient$1)
50946
51040
  return;
50947
51041
  const { initScrollLeft, initScrollTop } = props;
50948
51042
  const windowElement = unref(windowRef);
@@ -51070,7 +51164,7 @@ const createGrid = ({
51070
51164
  h$1(Inner, {
51071
51165
  style: unref(innerStyle),
51072
51166
  ref: innerRef
51073
- }, !isString$1(Inner) ? {
51167
+ }, !isString$2(Inner) ? {
51074
51168
  default: () => children
51075
51169
  } : children)
51076
51170
  ];
@@ -51089,7 +51183,7 @@ const createGrid = ({
51089
51183
  style: unref(windowStyle),
51090
51184
  onScroll,
51091
51185
  ref: windowRef
51092
- }, !isString$1(Container) ? { default: () => Inner } : Inner),
51186
+ }, !isString$2(Container) ? { default: () => Inner } : Inner),
51093
51187
  horizontalScrollbar,
51094
51188
  verticalScrollbar
51095
51189
  ]);
@@ -53290,7 +53384,7 @@ const useLifecycle = (props, initData, resetSize) => {
53290
53384
  }
53291
53385
  initData.oldValue = initData.firstValue;
53292
53386
  }
53293
- useEventListener(window, "resize", resetSize);
53387
+ useEventListener$1(window, "resize", resetSize);
53294
53388
  await nextTick();
53295
53389
  resetSize();
53296
53390
  });
@@ -53662,7 +53756,7 @@ const useSliderButton = (props, initData, emit) => {
53662
53756
  watch(() => initData.dragging, (val) => {
53663
53757
  updateDragging(val);
53664
53758
  });
53665
- useEventListener(button, "touchstart", onButtonDown, { passive: false });
53759
+ useEventListener$1(button, "touchstart", onButtonDown, { passive: false });
53666
53760
  return {
53667
53761
  disabled,
53668
53762
  button,
@@ -53893,9 +53987,9 @@ var SliderMarker = defineComponent({
53893
53987
  setup(props) {
53894
53988
  const ns = useNamespace("slider");
53895
53989
  const label = computed(() => {
53896
- return isString$1(props.mark) ? props.mark : props.mark.label;
53990
+ return isString$2(props.mark) ? props.mark : props.mark.label;
53897
53991
  });
53898
- const style = computed(() => isString$1(props.mark) ? void 0 : props.mark.style);
53992
+ const style = computed(() => isString$2(props.mark) ? void 0 : props.mark.style);
53899
53993
  return () => h$1("div", {
53900
53994
  class: ns.e("marks-text"),
53901
53995
  style: style.value
@@ -53988,10 +54082,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
53988
54082
  const updateDragging = (val) => {
53989
54083
  initData.dragging = val;
53990
54084
  };
53991
- useEventListener(sliderWrapper, "touchstart", onSliderWrapperPrevent, {
54085
+ useEventListener$1(sliderWrapper, "touchstart", onSliderWrapperPrevent, {
53992
54086
  passive: false
53993
54087
  });
53994
- useEventListener(sliderWrapper, "touchmove", onSliderWrapperPrevent, {
54088
+ useEventListener$1(sliderWrapper, "touchmove", onSliderWrapperPrevent, {
53995
54089
  passive: false
53996
54090
  });
53997
54091
  provide(sliderContextKey, {
@@ -54227,7 +54321,7 @@ const spaceProps = buildProps({
54227
54321
  spacer: {
54228
54322
  type: definePropType([Object, String, Number, Array]),
54229
54323
  default: null,
54230
- validator: (val) => isVNode(val) || isNumber(val) || isString$1(val)
54324
+ validator: (val) => isVNode(val) || isNumber(val) || isString$2(val)
54231
54325
  },
54232
54326
  wrap: Boolean,
54233
54327
  fill: Boolean,
@@ -54876,9 +54970,9 @@ const switchProps = buildProps({
54876
54970
  ...useAriaProps(["ariaLabel"])
54877
54971
  });
54878
54972
  const switchEmits = {
54879
- [UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString$1(val) || isNumber(val),
54880
- [CHANGE_EVENT]: (val) => isBoolean(val) || isString$1(val) || isNumber(val),
54881
- [INPUT_EVENT]: (val) => isBoolean(val) || isString$1(val) || isNumber(val)
54973
+ [UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString$2(val) || isNumber(val),
54974
+ [CHANGE_EVENT]: (val) => isBoolean(val) || isString$2(val) || isNumber(val),
54975
+ [INPUT_EVENT]: (val) => isBoolean(val) || isString$2(val) || isNumber(val)
54882
54976
  };
54883
54977
 
54884
54978
  const COMPONENT_NAME$8 = "ElSwitch";
@@ -56547,7 +56641,7 @@ class TableLayout {
56547
56641
  return false;
56548
56642
  }
56549
56643
  setHeight(value, prop = "height") {
56550
- if (!isClient)
56644
+ if (!isClient$1)
56551
56645
  return;
56552
56646
  const el = this.table.vnode.el;
56553
56647
  value = parseHeight(value);
@@ -56594,7 +56688,7 @@ class TableLayout {
56594
56688
  return false;
56595
56689
  }
56596
56690
  updateColumnsWidth() {
56597
- if (!isClient)
56691
+ if (!isClient$1)
56598
56692
  return;
56599
56693
  const fit = this.fit;
56600
56694
  const bodyWidth = this.table.vnode.el.clientWidth;
@@ -57050,7 +57144,7 @@ function useEvent(props, emit) {
57050
57144
  const dragging = ref(false);
57051
57145
  const dragState = ref({});
57052
57146
  const handleMouseDown = (event, column) => {
57053
- if (!isClient)
57147
+ if (!isClient$1)
57054
57148
  return;
57055
57149
  if (column.children && column.children.length > 0)
57056
57150
  return;
@@ -57142,7 +57236,7 @@ function useEvent(props, emit) {
57142
57236
  }
57143
57237
  };
57144
57238
  const handleMouseOut = () => {
57145
- if (!isClient)
57239
+ if (!isClient$1)
57146
57240
  return;
57147
57241
  document.body.style.cursor = "";
57148
57242
  };
@@ -58048,7 +58142,7 @@ var TableBody = defineComponent({
58048
58142
  hoveredCellList.forEach((item) => removeClass(item, "hover-cell"));
58049
58143
  hoveredCellList.length = 0;
58050
58144
  }
58051
- if (!props.store.states.isComplex.value || !isClient)
58145
+ if (!props.store.states.isComplex.value || !isClient$1)
58052
58146
  return;
58053
58147
  rAF(() => {
58054
58148
  const oldRow = rows[oldVal];
@@ -58430,14 +58524,14 @@ function useStyle(props, layout, store, table) {
58430
58524
  if (!table.refs.scrollBarRef)
58431
58525
  return;
58432
58526
  if (table.refs.scrollBarRef.wrapRef) {
58433
- useEventListener(table.refs.scrollBarRef.wrapRef, "scroll", syncPosition, {
58527
+ useEventListener$1(table.refs.scrollBarRef.wrapRef, "scroll", syncPosition, {
58434
58528
  passive: true
58435
58529
  });
58436
58530
  }
58437
58531
  if (props.fit) {
58438
58532
  useResizeObserver(table.vnode.el, resizeListener);
58439
58533
  } else {
58440
- useEventListener(window, "resize", resizeListener);
58534
+ useEventListener$1(window, "resize", resizeListener);
58441
58535
  }
58442
58536
  useResizeObserver(table.refs.bodyWrapper, () => {
58443
58537
  var _a, _b;
@@ -58479,7 +58573,7 @@ function useStyle(props, layout, store, table) {
58479
58573
  height,
58480
58574
  headerHeight: props.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) || 0
58481
58575
  };
58482
- requestAnimationFrame(doLayout);
58576
+ requestAnimationFrame(doLayout);
58483
58577
  }
58484
58578
  };
58485
58579
  const tableSize = useFormSize();
@@ -59679,7 +59773,7 @@ var ElTableColumn$1 = defineComponent({
59679
59773
  children.push(childNode);
59680
59774
  } else if (childNode.type === Fragment && Array.isArray(childNode.children)) {
59681
59775
  childNode.children.forEach((vnode2) => {
59682
- if ((vnode2 == null ? void 0 : vnode2.patchFlag) !== 1024 && !isString$1(vnode2 == null ? void 0 : vnode2.children)) {
59776
+ if ((vnode2 == null ? void 0 : vnode2.patchFlag) !== 1024 && !isString$2(vnode2 == null ? void 0 : vnode2.children)) {
59683
59777
  children.push(vnode2);
59684
59778
  }
59685
59779
  });
@@ -62200,7 +62294,7 @@ const tabsProps = buildProps({
62200
62294
  },
62201
62295
  stretch: Boolean
62202
62296
  });
62203
- const isPaneName = (value) => isString$1(value) || isNumber(value);
62297
+ const isPaneName = (value) => isString$2(value) || isNumber(value);
62204
62298
  const tabsEmits = {
62205
62299
  [UPDATE_MODEL_EVENT]: (name) => isPaneName(name),
62206
62300
  tabClick: (pane, ev) => ev instanceof Event,
@@ -64373,7 +64467,7 @@ const _sfc_main$k = defineComponent({
64373
64467
  } else {
64374
64468
  className = nodeClassFunc;
64375
64469
  }
64376
- if (isString$1(className)) {
64470
+ if (isString$2(className)) {
64377
64471
  return { [className]: true };
64378
64472
  } else {
64379
64473
  return className;
@@ -64656,7 +64750,7 @@ function useKeydown({ el$ }, store) {
64656
64750
  hasInput.click();
64657
64751
  }
64658
64752
  };
64659
- useEventListener(el$, "keydown", handleKeydown);
64753
+ useEventListener$1(el$, "keydown", handleKeydown);
64660
64754
  const initTabIndex = () => {
64661
64755
  var _a;
64662
64756
  treeItems.value = Array.from(el$.value.querySelectorAll(`.${ns.is("focusable")}[role=treeitem]`));
@@ -65268,7 +65362,7 @@ var CacheOptions = defineComponent({
65268
65362
  }
65269
65363
  });
65270
65364
  const inputs = ((_a = select.selectRef) == null ? void 0 : _a.querySelectorAll("input")) || [];
65271
- if (isClient && !Array.from(inputs).includes(document.activeElement)) {
65365
+ if (isClient$1 && !Array.from(inputs).includes(document.activeElement)) {
65272
65366
  select.setSelected();
65273
65367
  }
65274
65368
  }, { flush: "post", immediate: true });
@@ -66782,7 +66876,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
66782
66876
  });
66783
66877
  }
66784
66878
  }
66785
- return doUpload(Object.assign(file, {
66879
+ return doUpload(Object.assign(file, {
66786
66880
  uid: rawFile.uid
66787
66881
  }), beforeData);
66788
66882
  };
@@ -66836,7 +66930,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
66836
66930
  requests.value[uid] = request;
66837
66931
  if (request instanceof Promise) {
66838
66932
  request.then(options.onSuccess, options.onError);
66839
- } return request;
66933
+ } return request;
66840
66934
  };
66841
66935
  const handleChange = (e) => {
66842
66936
  const files = e.target.files;
@@ -66863,8 +66957,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
66863
66957
  };
66864
66958
  expose({
66865
66959
  abort,
66866
- upload,
66867
- inputClick: handleClick
66960
+ upload,
66961
+ inputClick: handleClick
66868
66962
  });
66869
66963
  return (_ctx, _cache) => {
66870
66964
  return openBlock(), createElementBlock("div", {
@@ -66921,10 +67015,10 @@ const useHandlers = (props, uploadRef) => {
66921
67015
  var _a;
66922
67016
  (_a = uploadRef.value) == null ? void 0 : _a.abort(file);
66923
67017
  }
66924
- function inputClick() {
66925
- var _a;
66926
- (_a = uploadRef.value) == null ? void 0 : _a.inputClick();
66927
- }
67018
+ function inputClick() {
67019
+ var _a;
67020
+ (_a = uploadRef.value) == null ? void 0 : _a.inputClick();
67021
+ }
66928
67022
  function clearFiles(states = ["ready", "uploading", "success", "fail"]) {
66929
67023
  uploadFiles.value = uploadFiles.value.filter((row) => !states.includes(row.status));
66930
67024
  }
@@ -66999,20 +67093,20 @@ const useHandlers = (props, uploadRef) => {
66999
67093
  }
67000
67094
  };
67001
67095
  function submit() {
67002
- // uploadFiles.value.filter(({ status }) => status === "ready").forEach(({ raw }) => {
67003
- // var _a;
67004
- // return raw && ((_a = uploadRef.value) == null ? void 0 : _a.upload(raw));
67005
- // });
67006
-
67007
- return Promise.all(uploadFiles.value.filter(({ status }) => status === "ready").map(async ({ raw }) => {
67096
+ // uploadFiles.value.filter(({ status }) => status === "ready").forEach(({ raw }) => {
67097
+ // var _a;
67098
+ // return raw && ((_a = uploadRef.value) == null ? void 0 : _a.upload(raw));
67099
+ // });
67100
+
67101
+ return Promise.all(uploadFiles.value.filter(({ status }) => status === "ready").map(async ({ raw }) => {
67008
67102
  var _a;
67009
- return (
67010
- raw &&
67011
- ((_a = uploadRef.value) == null
67012
- ? void 0
67013
- : await _a.upload(raw).catch(err => Promise.resolve(err)))
67014
- );
67015
- }));
67103
+ return (
67104
+ raw &&
67105
+ ((_a = uploadRef.value) == null
67106
+ ? void 0
67107
+ : await _a.upload(raw).catch(err => Promise.resolve(err)))
67108
+ );
67109
+ }));
67016
67110
  }
67017
67111
  watch(() => props.listType, (val) => {
67018
67112
  if (val !== "picture-card" && val !== "picture") {
@@ -67039,7 +67133,7 @@ const useHandlers = (props, uploadRef) => {
67039
67133
  return {
67040
67134
  uploadFiles,
67041
67135
  abort,
67042
- inputClick,
67136
+ inputClick,
67043
67137
  clearFiles,
67044
67138
  handleError,
67045
67139
  handleProgress,
@@ -67063,7 +67157,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
67063
67157
  const uploadRef = shallowRef();
67064
67158
  const {
67065
67159
  abort,
67066
- inputClick,
67160
+ inputClick,
67067
67161
  submit,
67068
67162
  clearFiles,
67069
67163
  uploadFiles,
@@ -67092,7 +67186,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
67092
67186
  });
67093
67187
  expose({
67094
67188
  abort,
67095
- inputClick,
67189
+ inputClick,
67096
67190
  submit,
67097
67191
  clearFiles,
67098
67192
  handleStart,
@@ -67541,7 +67635,7 @@ const useTarget = (target, open, gap, mergedMask, scrollIntoViewOptions) => {
67541
67635
  const posInfo = ref(null);
67542
67636
  const getTargetEl = () => {
67543
67637
  let targetEl;
67544
- if (isString$1(target.value)) {
67638
+ if (isString$2(target.value)) {
67545
67639
  targetEl = document.querySelector(target.value);
67546
67640
  } else if (isFunction$2(target.value)) {
67547
67641
  targetEl = target.value();
@@ -67653,7 +67747,7 @@ const useFloating = (referenceRef, contentRef, arrowRef, placement, strategy, of
67653
67747
  return _middleware;
67654
67748
  });
67655
67749
  const update = async () => {
67656
- if (!isClient)
67750
+ if (!isClient$1)
67657
67751
  return;
67658
67752
  const referenceEl = unref(referenceRef);
67659
67753
  const contentEl = unref(contentRef);
@@ -68410,8 +68504,8 @@ const anchorProps = buildProps({
68410
68504
  }
68411
68505
  });
68412
68506
  const anchorEmits = {
68413
- change: (href) => isString$1(href),
68414
- click: (e, href) => e instanceof MouseEvent && (isString$1(href) || isUndefined(href))
68507
+ change: (href) => isString$2(href),
68508
+ click: (e, href) => e instanceof MouseEvent && (isString$2(href) || isUndefined(href))
68415
68509
  };
68416
68510
 
68417
68511
  const anchorKey = Symbol("anchor");
@@ -68526,7 +68620,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
68526
68620
  containerEl.value = el;
68527
68621
  }
68528
68622
  };
68529
- useEventListener(containerEl, "scroll", handleScroll);
68623
+ useEventListener$1(containerEl, "scroll", handleScroll);
68530
68624
  const markerStyle = computed(() => {
68531
68625
  if (!anchorRef.value || !markerRef.value || !currentAnchor.value)
68532
68626
  return {};
@@ -68708,8 +68802,8 @@ const segmentedProps = buildProps({
68708
68802
  ...useAriaProps(["ariaLabel"])
68709
68803
  });
68710
68804
  const segmentedEmits = {
68711
- [UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val),
68712
- [CHANGE_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val)
68805
+ [UPDATE_MODEL_EVENT]: (val) => isString$2(val) || isNumber(val) || isBoolean(val),
68806
+ [CHANGE_EVENT]: (val) => isString$2(val) || isNumber(val) || isBoolean(val)
68713
68807
  };
68714
68808
 
68715
68809
  const __default__$G = defineComponent({
@@ -69018,9 +69112,9 @@ const mentionProps = buildProps({
69018
69112
  type: definePropType([String, Array]),
69019
69113
  default: "@",
69020
69114
  validator: (val) => {
69021
- if (isString$1(val))
69115
+ if (isString$2(val))
69022
69116
  return val.length === 1;
69023
- return val.every((v) => isString$1(v) && v.length === 1);
69117
+ return val.every((v) => isString$2(v) && v.length === 1);
69024
69118
  }
69025
69119
  },
69026
69120
  split: {
@@ -69062,9 +69156,9 @@ const mentionProps = buildProps({
69062
69156
  }
69063
69157
  });
69064
69158
  const mentionEmits = {
69065
- [UPDATE_MODEL_EVENT]: (value) => isString$1(value),
69066
- search: (pattern, prefix) => isString$1(pattern) && isString$1(prefix),
69067
- select: (option, prefix) => isString$1(option.value) && isString$1(prefix),
69159
+ [UPDATE_MODEL_EVENT]: (value) => isString$2(value),
69160
+ search: (pattern, prefix) => isString$2(pattern) && isString$2(prefix),
69161
+ select: (option, prefix) => isString$2(option.value) && isString$2(prefix),
69068
69162
  focus: (evt) => evt instanceof FocusEvent,
69069
69163
  blur: (evt) => evt instanceof FocusEvent
69070
69164
  };
@@ -69080,7 +69174,7 @@ const mentionDropdownProps = buildProps({
69080
69174
  ariaLabel: String
69081
69175
  });
69082
69176
  const mentionDropdownEmits = {
69083
- select: (option) => isString$1(option.value)
69177
+ select: (option) => isString$2(option.value)
69084
69178
  };
69085
69179
 
69086
69180
  const __default__$F = defineComponent({
@@ -69753,7 +69847,7 @@ function createLoadingComponent(options) {
69753
69847
 
69754
69848
  let fullscreenInstance = void 0;
69755
69849
  const Loading = function(options = {}) {
69756
- if (!isClient)
69850
+ if (!isClient$1)
69757
69851
  return void 0;
69758
69852
  const resolved = resolveOptions(options);
69759
69853
  if (resolved.fullscreen && fullscreenInstance) {
@@ -69788,7 +69882,7 @@ const Loading = function(options = {}) {
69788
69882
  const resolveOptions = (options) => {
69789
69883
  var _a, _b, _c, _d;
69790
69884
  let target;
69791
- if (isString$1(options.target)) {
69885
+ if (isString$2(options.target)) {
69792
69886
  target = (_a = document.querySelector(options.target)) != null ? _a : document.body;
69793
69887
  } else {
69794
69888
  target = options.target || document.body;
@@ -69853,7 +69947,7 @@ const createInstance = (el, binding) => {
69853
69947
  const vm = binding.instance;
69854
69948
  const getBindingProp = (key) => isObject$1(binding.value) ? binding.value[key] : void 0;
69855
69949
  const resolveExpression = (key) => {
69856
- const data = isString$1(key) && (vm == null ? void 0 : vm[key]) || key;
69950
+ const data = isString$2(key) && (vm == null ? void 0 : vm[key]) || key;
69857
69951
  if (data)
69858
69952
  return ref(data);
69859
69953
  else
@@ -69936,7 +70030,7 @@ const messageDefaults = mutable({
69936
70030
  zIndex: 0,
69937
70031
  grouping: false,
69938
70032
  repeatNum: 1,
69939
- appendTo: isClient ? document.body : void 0
70033
+ appendTo: isClient$1 ? document.body : void 0
69940
70034
  });
69941
70035
  const messageProps = buildProps({
69942
70036
  customClass: {
@@ -70086,7 +70180,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
70086
70180
  clearTimer();
70087
70181
  startTimer();
70088
70182
  });
70089
- useEventListener(document, "keydown", keydown);
70183
+ useEventListener$1(document, "keydown", keydown);
70090
70184
  useResizeObserver(messageRef, () => {
70091
70185
  height.value = messageRef.value.getBoundingClientRect().height;
70092
70186
  });
@@ -70170,14 +70264,14 @@ var MessageConstructor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "m
70170
70264
 
70171
70265
  let seed = 1;
70172
70266
  const normalizeOptions = (params) => {
70173
- const options = !params || isString$1(params) || isVNode(params) || isFunction$2(params) ? { message: params } : params;
70267
+ const options = !params || isString$2(params) || isVNode(params) || isFunction$2(params) ? { message: params } : params;
70174
70268
  const normalized = {
70175
70269
  ...messageDefaults,
70176
70270
  ...options
70177
70271
  };
70178
70272
  if (!normalized.appendTo) {
70179
70273
  normalized.appendTo = document.body;
70180
- } else if (isString$1(normalized.appendTo)) {
70274
+ } else if (isString$2(normalized.appendTo)) {
70181
70275
  let appendTo = document.querySelector(normalized.appendTo);
70182
70276
  if (!isElement$1(appendTo)) {
70183
70277
  debugWarn("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body.");
@@ -70244,7 +70338,7 @@ const createMessage = ({ appendTo, ...options }, context) => {
70244
70338
  return instance;
70245
70339
  };
70246
70340
  const message = (options = {}, context) => {
70247
- if (!isClient)
70341
+ if (!isClient$1)
70248
70342
  return { close: () => void 0 };
70249
70343
  const normalized = normalizeOptions(options);
70250
70344
  if (normalized.grouping && instances.length) {
@@ -70762,7 +70856,7 @@ const messageInstance = /* @__PURE__ */ new Map();
70762
70856
  const getAppendToElement = (props) => {
70763
70857
  let appendTo = document.body;
70764
70858
  if (props.appendTo) {
70765
- if (isString$1(props.appendTo)) {
70859
+ if (isString$2(props.appendTo)) {
70766
70860
  appendTo = document.querySelector(props.appendTo);
70767
70861
  }
70768
70862
  if (isElement$1(props.appendTo)) {
@@ -70826,10 +70920,10 @@ const showMessage = (options, appContext) => {
70826
70920
  return vm;
70827
70921
  };
70828
70922
  function MessageBox(options, appContext = null) {
70829
- if (!isClient)
70923
+ if (!isClient$1)
70830
70924
  return Promise.reject();
70831
70925
  let callback;
70832
- if (isString$1(options) || isVNode(options)) {
70926
+ if (isString$2(options) || isVNode(options)) {
70833
70927
  options = {
70834
70928
  message: options
70835
70929
  };
@@ -70895,112 +70989,112 @@ _MessageBox.install = (app) => {
70895
70989
  };
70896
70990
  const ElMessageBox = _MessageBox;
70897
70991
 
70898
- /******************************************************************************
70899
- Copyright (c) Microsoft Corporation.
70900
-
70901
- Permission to use, copy, modify, and/or distribute this software for any
70902
- purpose with or without fee is hereby granted.
70903
-
70904
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
70905
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
70906
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
70907
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
70908
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
70909
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
70910
- PERFORMANCE OF THIS SOFTWARE.
70911
- ***************************************************************************** */
70912
-
70913
- var __assign = function() {
70914
- __assign = Object.assign || function __assign(t) {
70915
- for (var s, i = 1, n = arguments.length; i < n; i++) {
70916
- s = arguments[i];
70917
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
70918
- }
70919
- return t;
70920
- };
70921
- return __assign.apply(this, arguments);
70922
- };
70923
-
70924
- function __awaiter(thisArg, _arguments, P, generator) {
70925
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
70926
- return new (P || (P = Promise))(function (resolve, reject) {
70927
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
70928
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
70929
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
70930
- step((generator = generator.apply(thisArg, _arguments || [])).next());
70931
- });
70932
- }
70933
-
70934
- function __generator(thisArg, body) {
70935
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
70936
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
70937
- function verb(n) { return function (v) { return step([n, v]); }; }
70938
- function step(op) {
70939
- if (f) throw new TypeError("Generator is already executing.");
70940
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
70941
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
70942
- if (y = 0, t) op = [op[0] & 2, t.value];
70943
- switch (op[0]) {
70944
- case 0: case 1: t = op; break;
70945
- case 4: _.label++; return { value: op[1], done: false };
70946
- case 5: _.label++; y = op[1]; op = [0]; continue;
70947
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
70948
- default:
70949
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
70950
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
70951
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
70952
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
70953
- if (t[2]) _.ops.pop();
70954
- _.trys.pop(); continue;
70955
- }
70956
- op = body.call(thisArg, _);
70957
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
70958
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70959
- }
70960
- }
70961
-
70962
- function __values(o) {
70963
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
70964
- if (m) return m.call(o);
70965
- if (o && typeof o.length === "number") return {
70966
- next: function () {
70967
- if (o && i >= o.length) o = void 0;
70968
- return { value: o && o[i++], done: !o };
70969
- }
70970
- };
70971
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
70972
- }
70973
-
70974
- function __read(o, n) {
70975
- var m = typeof Symbol === "function" && o[Symbol.iterator];
70976
- if (!m) return o;
70977
- var i = m.call(o), r, ar = [], e;
70978
- try {
70979
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
70980
- }
70981
- catch (error) { e = { error: error }; }
70982
- finally {
70983
- try {
70984
- if (r && !r.done && (m = i["return"])) m.call(i);
70985
- }
70986
- finally { if (e) throw e.error; }
70987
- }
70988
- return ar;
70989
- }
70990
-
70991
- function __spreadArray(to, from, pack) {
70992
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
70993
- if (ar || !(i in from)) {
70994
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
70995
- ar[i] = from[i];
70996
- }
70997
- }
70998
- return to.concat(ar || Array.prototype.slice.call(from));
70999
- }
71000
-
71001
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
71002
- var e = new Error(message);
71003
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
70992
+ /******************************************************************************
70993
+ Copyright (c) Microsoft Corporation.
70994
+
70995
+ Permission to use, copy, modify, and/or distribute this software for any
70996
+ purpose with or without fee is hereby granted.
70997
+
70998
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
70999
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
71000
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
71001
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
71002
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
71003
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
71004
+ PERFORMANCE OF THIS SOFTWARE.
71005
+ ***************************************************************************** */
71006
+
71007
+ var __assign = function() {
71008
+ __assign = Object.assign || function __assign(t) {
71009
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
71010
+ s = arguments[i];
71011
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
71012
+ }
71013
+ return t;
71014
+ };
71015
+ return __assign.apply(this, arguments);
71016
+ };
71017
+
71018
+ function __awaiter(thisArg, _arguments, P, generator) {
71019
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
71020
+ return new (P || (P = Promise))(function (resolve, reject) {
71021
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
71022
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
71023
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
71024
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
71025
+ });
71026
+ }
71027
+
71028
+ function __generator(thisArg, body) {
71029
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
71030
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
71031
+ function verb(n) { return function (v) { return step([n, v]); }; }
71032
+ function step(op) {
71033
+ if (f) throw new TypeError("Generator is already executing.");
71034
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
71035
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
71036
+ if (y = 0, t) op = [op[0] & 2, t.value];
71037
+ switch (op[0]) {
71038
+ case 0: case 1: t = op; break;
71039
+ case 4: _.label++; return { value: op[1], done: false };
71040
+ case 5: _.label++; y = op[1]; op = [0]; continue;
71041
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
71042
+ default:
71043
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
71044
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
71045
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
71046
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
71047
+ if (t[2]) _.ops.pop();
71048
+ _.trys.pop(); continue;
71049
+ }
71050
+ op = body.call(thisArg, _);
71051
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
71052
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
71053
+ }
71054
+ }
71055
+
71056
+ function __values(o) {
71057
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
71058
+ if (m) return m.call(o);
71059
+ if (o && typeof o.length === "number") return {
71060
+ next: function () {
71061
+ if (o && i >= o.length) o = void 0;
71062
+ return { value: o && o[i++], done: !o };
71063
+ }
71064
+ };
71065
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
71066
+ }
71067
+
71068
+ function __read(o, n) {
71069
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
71070
+ if (!m) return o;
71071
+ var i = m.call(o), r, ar = [], e;
71072
+ try {
71073
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
71074
+ }
71075
+ catch (error) { e = { error: error }; }
71076
+ finally {
71077
+ try {
71078
+ if (r && !r.done && (m = i["return"])) m.call(i);
71079
+ }
71080
+ finally { if (e) throw e.error; }
71081
+ }
71082
+ return ar;
71083
+ }
71084
+
71085
+ function __spreadArray(to, from, pack) {
71086
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
71087
+ if (ar || !(i in from)) {
71088
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
71089
+ ar[i] = from[i];
71090
+ }
71091
+ }
71092
+ return to.concat(ar || Array.prototype.slice.call(from));
71093
+ }
71094
+
71095
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
71096
+ var e = new Error(message);
71097
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
71004
71098
  };
71005
71099
 
71006
71100
  var __default__$C = {
@@ -71293,6 +71387,128 @@ var script$C = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$A
71293
71387
 
71294
71388
  script$C.__file = "packages/base/image/image.vue";
71295
71389
 
71390
+ var _a;
71391
+ const isClient = typeof window !== "undefined";
71392
+ const isString = (val) => typeof val === "string";
71393
+ const noop = () => {
71394
+ };
71395
+ isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
71396
+
71397
+ function resolveUnref(r) {
71398
+ return typeof r === "function" ? r() : unref(r);
71399
+ }
71400
+ function identity(arg) {
71401
+ return arg;
71402
+ }
71403
+
71404
+ function tryOnScopeDispose(fn) {
71405
+ if (getCurrentScope()) {
71406
+ onScopeDispose(fn);
71407
+ return true;
71408
+ }
71409
+ return false;
71410
+ }
71411
+
71412
+ function unrefElement(elRef) {
71413
+ var _a;
71414
+ const plain = resolveUnref(elRef);
71415
+ return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
71416
+ }
71417
+
71418
+ const defaultWindow = isClient ? window : void 0;
71419
+
71420
+ function useEventListener(...args) {
71421
+ let target;
71422
+ let event;
71423
+ let listener;
71424
+ let options;
71425
+ if (isString(args[0])) {
71426
+ [event, listener, options] = args;
71427
+ target = defaultWindow;
71428
+ } else {
71429
+ [target, event, listener, options] = args;
71430
+ }
71431
+ if (!target)
71432
+ return noop;
71433
+ let cleanup = noop;
71434
+ const stopWatch = watch(() => unrefElement(target), (el) => {
71435
+ cleanup();
71436
+ if (!el)
71437
+ return;
71438
+ el.addEventListener(event, listener, options);
71439
+ cleanup = () => {
71440
+ el.removeEventListener(event, listener, options);
71441
+ cleanup = noop;
71442
+ };
71443
+ }, { immediate: true, flush: "post" });
71444
+ const stop = () => {
71445
+ stopWatch();
71446
+ cleanup();
71447
+ };
71448
+ tryOnScopeDispose(stop);
71449
+ return stop;
71450
+ }
71451
+
71452
+ const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
71453
+ const globalKey = "__vueuse_ssr_handlers__";
71454
+ _global[globalKey] = _global[globalKey] || {};
71455
+ _global[globalKey];
71456
+
71457
+ var SwipeDirection;
71458
+ (function(SwipeDirection2) {
71459
+ SwipeDirection2["UP"] = "UP";
71460
+ SwipeDirection2["RIGHT"] = "RIGHT";
71461
+ SwipeDirection2["DOWN"] = "DOWN";
71462
+ SwipeDirection2["LEFT"] = "LEFT";
71463
+ SwipeDirection2["NONE"] = "NONE";
71464
+ })(SwipeDirection || (SwipeDirection = {}));
71465
+
71466
+ var __defProp = Object.defineProperty;
71467
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
71468
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
71469
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
71470
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
71471
+ var __spreadValues = (a, b) => {
71472
+ for (var prop in b || (b = {}))
71473
+ if (__hasOwnProp.call(b, prop))
71474
+ __defNormalProp(a, prop, b[prop]);
71475
+ if (__getOwnPropSymbols)
71476
+ for (var prop of __getOwnPropSymbols(b)) {
71477
+ if (__propIsEnum.call(b, prop))
71478
+ __defNormalProp(a, prop, b[prop]);
71479
+ }
71480
+ return a;
71481
+ };
71482
+ const _TransitionPresets = {
71483
+ easeInSine: [0.12, 0, 0.39, 0],
71484
+ easeOutSine: [0.61, 1, 0.88, 1],
71485
+ easeInOutSine: [0.37, 0, 0.63, 1],
71486
+ easeInQuad: [0.11, 0, 0.5, 0],
71487
+ easeOutQuad: [0.5, 1, 0.89, 1],
71488
+ easeInOutQuad: [0.45, 0, 0.55, 1],
71489
+ easeInCubic: [0.32, 0, 0.67, 0],
71490
+ easeOutCubic: [0.33, 1, 0.68, 1],
71491
+ easeInOutCubic: [0.65, 0, 0.35, 1],
71492
+ easeInQuart: [0.5, 0, 0.75, 0],
71493
+ easeOutQuart: [0.25, 1, 0.5, 1],
71494
+ easeInOutQuart: [0.76, 0, 0.24, 1],
71495
+ easeInQuint: [0.64, 0, 0.78, 0],
71496
+ easeOutQuint: [0.22, 1, 0.36, 1],
71497
+ easeInOutQuint: [0.83, 0, 0.17, 1],
71498
+ easeInExpo: [0.7, 0, 0.84, 0],
71499
+ easeOutExpo: [0.16, 1, 0.3, 1],
71500
+ easeInOutExpo: [0.87, 0, 0.13, 1],
71501
+ easeInCirc: [0.55, 0, 1, 0.45],
71502
+ easeOutCirc: [0, 0.55, 0.45, 1],
71503
+ easeInOutCirc: [0.85, 0, 0.15, 1],
71504
+ easeInBack: [0.36, 0, 0.66, -0.56],
71505
+ easeOutBack: [0.34, 1.56, 0.64, 1],
71506
+ easeInOutBack: [0.68, -0.6, 0.32, 1.6]
71507
+ };
71508
+ __spreadValues({
71509
+ linear: identity
71510
+ }, _TransitionPresets);
71511
+
71296
71512
  var _hoisted_1$g = {
71297
71513
  key: 0,
71298
71514
  style: { "width": "100%", "height": "100%" }
@@ -72187,6 +72403,14 @@ var script$s = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$q
72187
72403
  var toolTipDefault = ref(null);
72188
72404
  var toolTipDefaultContent = ref(null);
72189
72405
  var _content = computed(function () { return String(props.content); });
72406
+ var _getTooltipWidthClass = function (cellValue) {
72407
+ if (!cellValue || (cellValue === null || cellValue === void 0 ? void 0 : cellValue.length) < 400)
72408
+ return 'base-tool-tip-400';
72409
+ if ((cellValue === null || cellValue === void 0 ? void 0 : cellValue.length) < 600)
72410
+ return 'base-tool-tip-800';
72411
+ if ((cellValue === null || cellValue === void 0 ? void 0 : cellValue.length) > 600)
72412
+ return 'base-tool-tip-1200';
72413
+ };
72190
72414
  var handleMouseMove = function () {
72191
72415
  var _a, _b;
72192
72416
  if (((_a = toolTipDefault.value) === null || _a === void 0 ? void 0 : _a.tagName) && ((_b = toolTipDefaultContent.value) === null || _b === void 0 ? void 0 : _b.tagName)) {
@@ -72198,7 +72422,7 @@ var script$s = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$q
72198
72422
  return function (_ctx, _cache) {
72199
72423
  return (openBlock(), createBlock(unref(ElTooltip), mergeProps(__props.useVisible ? { visible: __props.visible } : {}, {
72200
72424
  key: _overShow.value ? '1' : '0',
72201
- "popper-class": __props.popperClass,
72425
+ "popper-class": "".concat(__props.popperClass, " ").concat(_getTooltipWidthClass(unref(_content))),
72202
72426
  trigger: __props.trigger,
72203
72427
  transition: __props.transition,
72204
72428
  disabled: _overShow.value || __props.disabled,
@@ -76465,13 +76689,15 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
76465
76689
  emits('menuClick', menu);
76466
76690
  }
76467
76691
  };
76468
- var onHashChange = function (newPath) {
76692
+ var onHashChange = function (_route) {
76469
76693
  var _a, _b, _c, _d;
76470
- if (newPath === void 0) { newPath = (_d = (_c = (_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.appContext) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.globalProperties) === null || _c === void 0 ? void 0 : _c.$route) === null || _d === void 0 ? void 0 : _d.path; }
76471
- activeMenus.value = menusMap.get(newPath) || [];
76694
+ if (_route === void 0) { _route = (_c = (_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.appContext) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.globalProperties) === null || _c === void 0 ? void 0 : _c.$route; }
76695
+ // 优先使用meta.parentPath,这种参数路由不会注册到menu中,例如详情页面。如果有该值则使用父级path。
76696
+ activeMenus.value =
76697
+ menusMap.get(((_d = _route === null || _route === void 0 ? void 0 : _route.meta) === null || _d === void 0 ? void 0 : _d.parentPath) || (_route === null || _route === void 0 ? void 0 : _route.path)) || [];
76472
76698
  };
76473
- watch(function () { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.appContext) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.globalProperties) === null || _c === void 0 ? void 0 : _c.$route) === null || _d === void 0 ? void 0 : _d.path; }, function (newPath) {
76474
- onHashChange(newPath);
76699
+ watch(function () { var _a, _b, _c; return (_c = (_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.appContext) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.globalProperties) === null || _c === void 0 ? void 0 : _c.$route; }, function () {
76700
+ onHashChange();
76475
76701
  });
76476
76702
  var _b = (function () {
76477
76703
  var showSub = ref(false);
@@ -77616,7 +77842,7 @@ var install = function (app, defaultProps) {
77616
77842
  });
77617
77843
  };
77618
77844
  var index = {
77619
- version: '2.0.0-beta.60',
77845
+ version: '2.0.0-beta.62',
77620
77846
  useSetGlobalDefaultProps: useSetGlobalDefaultProps,
77621
77847
  /**
77622
77848
  * install会调用useSetGlobalDefaultProps