@univerjs/ui 0.4.1 → 0.4.2-nightly.202410291606

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/es/index.js CHANGED
@@ -6,10 +6,10 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
6
6
  var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
7
7
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
8
8
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
9
- import { toDisposable, IUniverInstanceService, DocumentFlavor, useDependency, LocaleService, ColorKit, createIdentifier, Disposable, Workbook, UniverInstanceType, DocumentDataModel, SlideDataModel, remove, FOCUSING_UNIVER_EDITOR, IContextService, Inject, Injector, Tools, IConfigService, isRealNum, ErrorService, CommandType, IUndoRedoService, UndoCommand, RedoCommand, Optional, ICommandService, useInjector, ILogService, useObservable as useObservable$1, ThemeService, LifecycleService, connectInjector, isInternalEditorID, LifecycleStages, DependentOn, Plugin, mergeOverrideWithDependencies, ILocalStorageService, BaselineOffset, getBorderStyleType, BorderStyleTypes } from "@univerjs/core";
9
+ import { toDisposable, IUniverInstanceService, DocumentFlavor, useDependency, LocaleService, ColorKit, createIdentifier, Disposable, Workbook, UniverInstanceType, DocumentDataModel, SlideDataModel, remove, FOCUSING_UNIVER_EDITOR, IContextService, Inject, Injector, Tools, IConfigService, isRealNum, ThemeService, ErrorService, CommandType, IUndoRedoService, UndoCommand, RedoCommand, Optional, ICommandService, useInjector, ILogService, useObservable as useObservable$1, LifecycleService, connectInjector, isInternalEditorID, LifecycleStages, DependentOn, Plugin, mergeOverrideWithDependencies, ILocalStorageService, BaselineOffset, getBorderStyleType, BorderStyleTypes } from "@univerjs/core";
10
10
  import * as React from "react";
11
11
  import React__default, { forwardRef, useRef, createElement, cloneElement, useEffect, useState, useMemo, useCallback, memo, createContext, useContext, version as version$1, isValidElement, useLayoutEffect } from "react";
12
- import { Observable, switchMap, BehaviorSubject, isObservable, fromEvent, Subject, combineLatest, distinctUntilChanged, throttleTime, animationFrameScheduler, filter, debounceTime, map as map$1, startWith, take, ReplaySubject } from "rxjs";
12
+ import { Observable, switchMap, BehaviorSubject, isObservable, fromEvent, Subject, combineLatest, distinctUntilChanged, first, throttleTime, animationFrameScheduler, filter, debounceTime, map as map$1, startWith, take, ReplaySubject } from "rxjs";
13
13
  import { InputNumber, resizeObserverCtor, Menu as Menu$1, MenuItemGroup, MenuItem as MenuItem$1, SubMenu, MessageType, RectPopup, Popup, Tooltip, Dropdown, defaultTheme, themeInstance, ConfigProvider, ConfigContext, Confirm, Dialog, Message } from "@univerjs/design";
14
14
  import { map } from "rxjs/operators";
15
15
  import { IRenderManagerService, UniverRenderEnginePlugin, ptToPx } from "@univerjs/engine-render";
@@ -61,78 +61,86 @@ function generateShortUuid() {
61
61
  }
62
62
  __name(generateShortUuid, "generateShortUuid");
63
63
  IconBase.displayName = "UniverIcon";
64
- var element$1I = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.06641 3.49366C4.06641 2.27555 5.14145 1.3916 6.33307 1.3916 7.52469 1.3916 8.59974 2.27555 8.59974 3.49366V6.49777C8.59974 7.71586 7.52469 8.59982 6.33307 8.59982 5.14145 8.59982 4.06641 7.71586 4.06641 6.49777V3.49366zM6.33307 2.5916C5.68376 2.5916 5.26641 3.05264 5.26641 3.49366V6.49777C5.26641 6.93878 5.68376 7.39982 6.33307 7.39982 6.98239 7.39982 7.39974 6.93878 7.39974 6.49777V3.49366C7.39974 3.05264 6.98239 2.5916 6.33307 2.5916zM10.0664 3.49366C10.0664 2.27555 11.1415 1.3916 12.3331 1.3916 13.5247 1.3916 14.5997 2.27555 14.5997 3.49366V6.49777C14.5997 7.71586 13.5247 8.59982 12.3331 8.59982 11.1415 8.59982 10.0664 7.71586 10.0664 6.49777V3.49366zM12.3331 2.5916C11.6838 2.5916 11.2664 3.05264 11.2664 3.49366V6.49777C11.2664 6.93878 11.6838 7.39982 12.3331 7.39982 12.9824 7.39982 13.3997 6.93878 13.3997 6.49777V3.49366C13.3997 3.05264 12.9824 2.5916 12.3331 2.5916z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M12.4242 9.5417C12.1899 9.30739 11.81 9.30739 11.5756 9.5417 11.3413 9.77602 11.3413 10.1559 11.5756 10.3902L12.5514 11.366H6.3334C6.00203 11.366 5.7334 11.6346 5.7334 11.966 5.7334 12.2973 6.00203 12.566 6.3334 12.566H12.5514L11.5756 13.5417C11.3413 13.776 11.3413 14.1559 11.5756 14.3902 11.81 14.6245 12.1899 14.6245 12.4242 14.3902L14.4159 12.3985C14.5294 12.2893 14.6001 12.1359 14.6001 11.966 14.6001 11.796 14.5294 11.6426 14.4159 11.5334L12.4242 9.5417zM1.3999 8.3002C1.3999 7.96882 1.66853 7.7002 1.9999 7.7002H2.33324C2.66461 7.7002 2.93324 7.96882 2.93324 8.3002 2.93324 8.63157 2.66461 8.9002 2.33324 8.9002H1.9999C1.66853 8.9002 1.3999 8.63157 1.3999 8.3002z" } }] }, AddDigitsSingle = forwardRef(function(props, ref) {
64
+ var element$1J = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.06641 3.49366C4.06641 2.27555 5.14145 1.3916 6.33307 1.3916 7.52469 1.3916 8.59974 2.27555 8.59974 3.49366V6.49777C8.59974 7.71586 7.52469 8.59982 6.33307 8.59982 5.14145 8.59982 4.06641 7.71586 4.06641 6.49777V3.49366zM6.33307 2.5916C5.68376 2.5916 5.26641 3.05264 5.26641 3.49366V6.49777C5.26641 6.93878 5.68376 7.39982 6.33307 7.39982 6.98239 7.39982 7.39974 6.93878 7.39974 6.49777V3.49366C7.39974 3.05264 6.98239 2.5916 6.33307 2.5916zM10.0664 3.49366C10.0664 2.27555 11.1415 1.3916 12.3331 1.3916 13.5247 1.3916 14.5997 2.27555 14.5997 3.49366V6.49777C14.5997 7.71586 13.5247 8.59982 12.3331 8.59982 11.1415 8.59982 10.0664 7.71586 10.0664 6.49777V3.49366zM12.3331 2.5916C11.6838 2.5916 11.2664 3.05264 11.2664 3.49366V6.49777C11.2664 6.93878 11.6838 7.39982 12.3331 7.39982 12.9824 7.39982 13.3997 6.93878 13.3997 6.49777V3.49366C13.3997 3.05264 12.9824 2.5916 12.3331 2.5916z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M12.4242 9.5417C12.1899 9.30739 11.81 9.30739 11.5756 9.5417 11.3413 9.77602 11.3413 10.1559 11.5756 10.3902L12.5514 11.366H6.3334C6.00203 11.366 5.7334 11.6346 5.7334 11.966 5.7334 12.2973 6.00203 12.566 6.3334 12.566H12.5514L11.5756 13.5417C11.3413 13.776 11.3413 14.1559 11.5756 14.3902 11.81 14.6245 12.1899 14.6245 12.4242 14.3902L14.4159 12.3985C14.5294 12.2893 14.6001 12.1359 14.6001 11.966 14.6001 11.796 14.5294 11.6426 14.4159 11.5334L12.4242 9.5417zM1.3999 8.3002C1.3999 7.96882 1.66853 7.7002 1.9999 7.7002H2.33324C2.66461 7.7002 2.93324 7.96882 2.93324 8.3002 2.93324 8.63157 2.66461 8.9002 2.33324 8.9002H1.9999C1.66853 8.9002 1.3999 8.63157 1.3999 8.3002z" } }] }, AddDigitsSingle = forwardRef(function(props, ref) {
65
65
  return createElement(IconBase, Object.assign({}, props, {
66
66
  id: "add-digits-single",
67
67
  ref,
68
- icon: element$1I
68
+ icon: element$1J
69
69
  }));
70
70
  });
71
71
  AddDigitsSingle.displayName = "AddDigitsSingle";
72
- var element$1H = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_107_1312", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_107_1312)" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M8.60231 5.77597L9.38125 6.55432C9.61658 6.78947 9.99797 6.78932 10.2331 6.554C10.4683 6.31867 10.4681 5.93728 10.2328 5.70214L8.44939 3.92009C8.33908 3.79657 8.1786 3.7188 7.99995 3.7188C7.84562 3.71861 7.6906 3.77736 7.57281 3.89506L5.76712 5.69933C5.5318 5.93447 5.53165 6.31587 5.76679 6.55119C6.00193 6.78652 6.38332 6.78667 6.61865 6.55153L7.3976 5.77319L7.3976 10.2246L6.61865 9.44621C6.38333 9.21107 6.00194 9.21121 5.76679 9.44654C5.53165 9.68186 5.53179 10.0633 5.76712 10.2984L7.55051 12.0804C7.66082 12.204 7.82131 12.2817 7.99995 12.2817L8.00089 12.2817C8.15512 12.2819 8.30939 12.2231 8.4271 12.1055L10.2328 10.3012C10.4681 10.0661 10.4683 9.68467 10.2331 9.44934C9.99798 9.21402 9.61659 9.21387 9.38126 9.44901L8.60231 10.2274L8.60231 5.77597Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M13.7039 3.24701C14.0539 3.24701 14.3377 2.96327 14.3377 2.61325 14.3377 2.26324 14.0539 1.97949 13.7039 1.97949L2.29627 1.97949C1.94625 1.97949 1.66251 2.26324 1.66251 2.61325 1.66251 2.96327 1.94625 3.24701 2.29627 3.24701L13.7039 3.24701zM13.7039 14.0209C14.0539 14.0209 14.3377 13.7372 14.3377 13.3872 14.3377 13.0371 14.0539 12.7534 13.7039 12.7534L2.29627 12.7534C1.94625 12.7534 1.66251 13.0371 1.66251 13.3872 1.66251 13.7372 1.94625 14.0209 2.29627 14.0209L13.7039 14.0209z" } }] }] }, AdjustHeight = forwardRef(function(props, ref) {
72
+ var element$1I = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_107_1312", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_107_1312)" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M8.60231 5.77597L9.38125 6.55432C9.61658 6.78947 9.99797 6.78932 10.2331 6.554C10.4683 6.31867 10.4681 5.93728 10.2328 5.70214L8.44939 3.92009C8.33908 3.79657 8.1786 3.7188 7.99995 3.7188C7.84562 3.71861 7.6906 3.77736 7.57281 3.89506L5.76712 5.69933C5.5318 5.93447 5.53165 6.31587 5.76679 6.55119C6.00193 6.78652 6.38332 6.78667 6.61865 6.55153L7.3976 5.77319L7.3976 10.2246L6.61865 9.44621C6.38333 9.21107 6.00194 9.21121 5.76679 9.44654C5.53165 9.68186 5.53179 10.0633 5.76712 10.2984L7.55051 12.0804C7.66082 12.204 7.82131 12.2817 7.99995 12.2817L8.00089 12.2817C8.15512 12.2819 8.30939 12.2231 8.4271 12.1055L10.2328 10.3012C10.4681 10.0661 10.4683 9.68467 10.2331 9.44934C9.99798 9.21402 9.61659 9.21387 9.38126 9.44901L8.60231 10.2274L8.60231 5.77597Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M13.7039 3.24701C14.0539 3.24701 14.3377 2.96327 14.3377 2.61325 14.3377 2.26324 14.0539 1.97949 13.7039 1.97949L2.29627 1.97949C1.94625 1.97949 1.66251 2.26324 1.66251 2.61325 1.66251 2.96327 1.94625 3.24701 2.29627 3.24701L13.7039 3.24701zM13.7039 14.0209C14.0539 14.0209 14.3377 13.7372 14.3377 13.3872 14.3377 13.0371 14.0539 12.7534 13.7039 12.7534L2.29627 12.7534C1.94625 12.7534 1.66251 13.0371 1.66251 13.3872 1.66251 13.7372 1.94625 14.0209 2.29627 14.0209L13.7039 14.0209z" } }] }] }, AdjustHeight = forwardRef(function(props, ref) {
73
73
  return createElement(IconBase, Object.assign({}, props, {
74
74
  id: "adjust-height",
75
75
  ref,
76
- icon: element$1H
76
+ icon: element$1I
77
77
  }));
78
78
  });
79
79
  AdjustHeight.displayName = "AdjustHeight";
80
- var element$1G = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_102_1166", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_102_1166)" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M5.77574 7.3974L6.5541 6.61846C6.78924 6.38313 6.78909 6.00174 6.55377 5.7666C6.31844 5.53145 5.93705 5.5316 5.70191 5.76692L3.91987 7.55032C3.79634 7.66063 3.71857 7.82111 3.71857 7.99976C3.71838 8.15409 3.77713 8.30912 3.89483 8.42691L5.6991 10.2326C5.93425 10.4679 6.31564 10.4681 6.55096 10.2329C6.78629 9.99778 6.78644 9.61639 6.5513 9.38106L5.77296 8.60211L10.2243 8.60211L9.44598 9.38106C9.21084 9.61638 9.21099 9.99777 9.44631 10.2329C9.68164 10.4681 10.063 10.4679 10.2982 10.2326L12.0802 8.4492C12.2037 8.33889 12.2815 8.1784 12.2815 7.99976L12.2815 7.99882C12.2816 7.84459 12.2229 7.69032 12.1052 7.57261L10.301 5.76693C10.0658 5.5316 9.68444 5.53145 9.44911 5.76659C9.21379 6.00173 9.21364 6.38312 9.44878 6.61845L10.2271 7.3974L5.77574 7.3974Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.24683 2.29598C3.24683 1.94596 2.96308 1.66222 2.61307 1.66222 2.26305 1.66222 1.97931 1.94596 1.97931 2.29598L1.97931 13.7036C1.97931 14.0537 2.26305 14.3374 2.61307 14.3374 2.96308 14.3374 3.24683 14.0537 3.24683 13.7036L3.24683 2.29598zM14.0207 2.29598C14.0207 1.94596 13.737 1.66222 13.387 1.66222 13.037 1.66222 12.7532 1.94596 12.7532 2.29598L12.7532 13.7036C12.7532 14.0537 13.037 14.3374 13.387 14.3374 13.737 14.3374 14.0207 14.0537 14.0207 13.7036L14.0207 2.29598z" } }] }] }, AdjustWidth = forwardRef(function(props, ref) {
80
+ var element$1H = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_102_1166", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_102_1166)" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M5.77574 7.3974L6.5541 6.61846C6.78924 6.38313 6.78909 6.00174 6.55377 5.7666C6.31844 5.53145 5.93705 5.5316 5.70191 5.76692L3.91987 7.55032C3.79634 7.66063 3.71857 7.82111 3.71857 7.99976C3.71838 8.15409 3.77713 8.30912 3.89483 8.42691L5.6991 10.2326C5.93425 10.4679 6.31564 10.4681 6.55096 10.2329C6.78629 9.99778 6.78644 9.61639 6.5513 9.38106L5.77296 8.60211L10.2243 8.60211L9.44598 9.38106C9.21084 9.61638 9.21099 9.99777 9.44631 10.2329C9.68164 10.4681 10.063 10.4679 10.2982 10.2326L12.0802 8.4492C12.2037 8.33889 12.2815 8.1784 12.2815 7.99976L12.2815 7.99882C12.2816 7.84459 12.2229 7.69032 12.1052 7.57261L10.301 5.76693C10.0658 5.5316 9.68444 5.53145 9.44911 5.76659C9.21379 6.00173 9.21364 6.38312 9.44878 6.61845L10.2271 7.3974L5.77574 7.3974Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.24683 2.29598C3.24683 1.94596 2.96308 1.66222 2.61307 1.66222 2.26305 1.66222 1.97931 1.94596 1.97931 2.29598L1.97931 13.7036C1.97931 14.0537 2.26305 14.3374 2.61307 14.3374 2.96308 14.3374 3.24683 14.0537 3.24683 13.7036L3.24683 2.29598zM14.0207 2.29598C14.0207 1.94596 13.737 1.66222 13.387 1.66222 13.037 1.66222 12.7532 1.94596 12.7532 2.29598L12.7532 13.7036C12.7532 14.0537 13.037 14.3374 13.387 14.3374 13.737 14.3374 14.0207 14.0537 14.0207 13.7036L14.0207 2.29598z" } }] }] }, AdjustWidth = forwardRef(function(props, ref) {
81
81
  return createElement(IconBase, Object.assign({}, props, {
82
82
  id: "adjust-width",
83
83
  ref,
84
- icon: element$1G
84
+ icon: element$1H
85
85
  }));
86
86
  });
87
87
  AdjustWidth.displayName = "AdjustWidth";
88
- var element$1F = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.3999 13.6999C1.3999 13.3685 1.66853 13.0999 1.9999 13.0999H13.9999C14.3313 13.0999 14.5999 13.3685 14.5999 13.6999 14.5999 14.0312 14.3313 14.2999 13.9999 14.2999H1.9999C1.66853 14.2999 1.3999 14.0312 1.3999 13.6999zM7.57564 10.3914C7.80995 10.6257 8.18985 10.6257 8.42417 10.3914L10.4242 8.3914C10.6585 8.15709 10.6585 7.77719 10.4242 7.54287 10.1899 7.30856 9.80995 7.30856 9.57564 7.54287L7.9999 9.11861 6.42417 7.54287C6.18985 7.30856 5.80995 7.30856 5.57564 7.54287 5.34132 7.77719 5.34132 8.15709 5.57564 8.3914L7.57564 10.3914z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M7.9999 10.5671C8.33127 10.5671 8.5999 10.2985 8.5999 9.96714V2.30047C8.5999 1.9691 8.33127 1.70047 7.9999 1.70047C7.66853 1.70047 7.3999 1.9691 7.3999 2.30047V9.96714C7.3999 10.2985 7.66853 10.5671 7.9999 10.5671Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, AlignBottomSingle = forwardRef(function(props, ref) {
88
+ var element$1G = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.3999 13.6999C1.3999 13.3685 1.66853 13.0999 1.9999 13.0999H13.9999C14.3313 13.0999 14.5999 13.3685 14.5999 13.6999 14.5999 14.0312 14.3313 14.2999 13.9999 14.2999H1.9999C1.66853 14.2999 1.3999 14.0312 1.3999 13.6999zM7.57564 10.3914C7.80995 10.6257 8.18985 10.6257 8.42417 10.3914L10.4242 8.3914C10.6585 8.15709 10.6585 7.77719 10.4242 7.54287 10.1899 7.30856 9.80995 7.30856 9.57564 7.54287L7.9999 9.11861 6.42417 7.54287C6.18985 7.30856 5.80995 7.30856 5.57564 7.54287 5.34132 7.77719 5.34132 8.15709 5.57564 8.3914L7.57564 10.3914z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M7.9999 10.5671C8.33127 10.5671 8.5999 10.2985 8.5999 9.96714V2.30047C8.5999 1.9691 8.33127 1.70047 7.9999 1.70047C7.66853 1.70047 7.3999 1.9691 7.3999 2.30047V9.96714C7.3999 10.2985 7.66853 10.5671 7.9999 10.5671Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, AlignBottomSingle = forwardRef(function(props, ref) {
89
89
  return createElement(IconBase, Object.assign({}, props, {
90
90
  id: "align-bottom-single",
91
91
  ref,
92
- icon: element$1F
92
+ icon: element$1G
93
93
  }));
94
94
  });
95
95
  AlignBottomSingle.displayName = "AlignBottomSingle";
96
- var element$1E = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641 1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H13.9999C14.3313 6.76641 14.5999 6.49778 14.5999 6.16641 14.5999 5.83504 14.3313 5.56641 13.9999 5.56641H1.9999zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004 1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H13.9999C14.3313 14.1004 14.5999 13.8318 14.5999 13.5004 14.5999 13.169 14.3313 12.9004 13.9999 12.9004H1.9999z" } }] }, AlignTextBothSingle = forwardRef(function(props, ref) {
96
+ var element$1F = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641 1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H13.9999C14.3313 6.76641 14.5999 6.49778 14.5999 6.16641 14.5999 5.83504 14.3313 5.56641 13.9999 5.56641H1.9999zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004 1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H13.9999C14.3313 14.1004 14.5999 13.8318 14.5999 13.5004 14.5999 13.169 14.3313 12.9004 13.9999 12.9004H1.9999z" } }] }, AlignTextBothSingle = forwardRef(function(props, ref) {
97
97
  return createElement(IconBase, Object.assign({}, props, {
98
98
  id: "align-text-both-single",
99
99
  ref,
100
- icon: element$1E
100
+ icon: element$1F
101
101
  }));
102
102
  });
103
103
  AlignTextBothSingle.displayName = "AlignTextBothSingle";
104
- var element$1D = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.3999 2.3002C1.3999 2.63157 1.66853 2.9002 1.9999 2.9002H13.9999C14.3313 2.9002 14.5999 2.63157 14.5999 2.3002 14.5999 1.96882 14.3313 1.7002 13.9999 1.7002H1.9999C1.66853 1.7002 1.3999 1.96882 1.3999 2.3002zM8.22957 5.47839C8.30034 5.50767 8.36664 5.55107 8.42417 5.6086L10.4242 7.6086C10.6585 7.84291 10.6585 8.22281 10.4242 8.45713 10.1899 8.69144 9.80995 8.69144 9.57564 8.45713L8.5999 7.48139V13.6995C8.5999 14.0309 8.33127 14.2995 7.9999 14.2995 7.66853 14.2995 7.3999 14.0309 7.3999 13.6995V7.48139L6.42417 8.45713C6.18985 8.69144 5.80995 8.69144 5.57564 8.45713 5.34132 8.22281 5.34132 7.84291 5.57564 7.6086L7.57541 5.60882C7.7522 5.43203 8.01209 5.38841 8.22957 5.47839z" } }] }, AlignTopSingle = forwardRef(function(props, ref) {
104
+ var element$1E = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.3999 2.3002C1.3999 2.63157 1.66853 2.9002 1.9999 2.9002H13.9999C14.3313 2.9002 14.5999 2.63157 14.5999 2.3002 14.5999 1.96882 14.3313 1.7002 13.9999 1.7002H1.9999C1.66853 1.7002 1.3999 1.96882 1.3999 2.3002zM8.22957 5.47839C8.30034 5.50767 8.36664 5.55107 8.42417 5.6086L10.4242 7.6086C10.6585 7.84291 10.6585 8.22281 10.4242 8.45713 10.1899 8.69144 9.80995 8.69144 9.57564 8.45713L8.5999 7.48139V13.6995C8.5999 14.0309 8.33127 14.2995 7.9999 14.2995 7.66853 14.2995 7.3999 14.0309 7.3999 13.6995V7.48139L6.42417 8.45713C6.18985 8.69144 5.80995 8.69144 5.57564 8.45713 5.34132 8.22281 5.34132 7.84291 5.57564 7.6086L7.57541 5.60882C7.7522 5.43203 8.01209 5.38841 8.22957 5.47839z" } }] }, AlignTopSingle = forwardRef(function(props, ref) {
105
105
  return createElement(IconBase, Object.assign({}, props, {
106
106
  id: "align-top-single",
107
107
  ref,
108
- icon: element$1D
108
+ icon: element$1E
109
109
  }));
110
110
  });
111
111
  AlignTopSingle.displayName = "AlignTopSingle";
112
- var element$1C = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.9999 1.12915C8.03875 1.12915 8.07673 1.13284 8.11352 1.13989H12.2599C13.6958 1.13989 14.8599 2.30395 14.8599 3.73989V7.88619C14.867 7.92301 14.8707 7.96102 14.8707 7.9999C14.8707 8.03878 14.867 8.0768 14.8599 8.11362V12.2599C14.8599 13.6958 13.6958 14.8599 12.2599 14.8599H8.11362C8.0768 14.867 8.03878 14.8707 7.9999 14.8707C7.96102 14.8707 7.92301 14.867 7.88619 14.8599H3.73989C2.30396 14.8599 1.13989 13.6958 1.13989 12.2599V8.11352C1.13284 8.07673 1.12915 8.03875 1.12915 7.9999C1.12915 7.96106 1.13284 7.92308 1.13989 7.88629V3.73989C1.13989 2.30396 2.30395 1.13989 3.73989 1.13989H7.88629C7.92308 1.13284 7.96106 1.12915 7.9999 1.12915ZM2.33989 8.5999V12.2599C2.33989 13.0331 2.9667 13.6599 3.73989 13.6599H7.3999V8.5999H2.33989ZM7.3999 7.3999H2.33989V3.73989C2.33989 2.9667 2.96669 2.33989 3.73989 2.33989H7.3999V7.3999ZM8.5999 8.5999V13.6599H12.2599C13.0331 13.6599 13.6599 13.0331 13.6599 12.2599V8.5999H8.5999ZM13.6599 7.3999H8.5999V2.33989H12.2599C13.0331 2.33989 13.6599 2.96669 13.6599 3.73989V7.3999Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, AllBorderSingle = forwardRef(function(props, ref) {
112
+ var element$1D = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.9999 1.12915C8.03875 1.12915 8.07673 1.13284 8.11352 1.13989H12.2599C13.6958 1.13989 14.8599 2.30395 14.8599 3.73989V7.88619C14.867 7.92301 14.8707 7.96102 14.8707 7.9999C14.8707 8.03878 14.867 8.0768 14.8599 8.11362V12.2599C14.8599 13.6958 13.6958 14.8599 12.2599 14.8599H8.11362C8.0768 14.867 8.03878 14.8707 7.9999 14.8707C7.96102 14.8707 7.92301 14.867 7.88619 14.8599H3.73989C2.30396 14.8599 1.13989 13.6958 1.13989 12.2599V8.11352C1.13284 8.07673 1.12915 8.03875 1.12915 7.9999C1.12915 7.96106 1.13284 7.92308 1.13989 7.88629V3.73989C1.13989 2.30396 2.30395 1.13989 3.73989 1.13989H7.88629C7.92308 1.13284 7.96106 1.12915 7.9999 1.12915ZM2.33989 8.5999V12.2599C2.33989 13.0331 2.9667 13.6599 3.73989 13.6599H7.3999V8.5999H2.33989ZM7.3999 7.3999H2.33989V3.73989C2.33989 2.9667 2.96669 2.33989 3.73989 2.33989H7.3999V7.3999ZM8.5999 8.5999V13.6599H12.2599C13.0331 13.6599 13.6599 13.0331 13.6599 12.2599V8.5999H8.5999ZM13.6599 7.3999H8.5999V2.33989H12.2599C13.0331 2.33989 13.6599 2.96669 13.6599 3.73989V7.3999Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, AllBorderSingle = forwardRef(function(props, ref) {
113
113
  return createElement(IconBase, Object.assign({}, props, {
114
114
  id: "all-border-single",
115
115
  ref,
116
- icon: element$1C
116
+ icon: element$1D
117
117
  }));
118
118
  });
119
119
  AllBorderSingle.displayName = "AllBorderSingle";
120
- var element$1B = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.5999 5.9999C8.5999 5.66853 8.33127 5.3999 7.9999 5.3999C7.66853 5.3999 7.3999 5.66853 7.3999 5.9999V7.40329L6.004 7.4051C5.67263 7.40553 5.40435 7.67451 5.40479 8.00588C5.40522 8.33725 5.6742 8.60553 6.00557 8.6051L7.3999 8.60329V9.9999C7.3999 10.3313 7.66853 10.5999 7.9999 10.5999C8.33127 10.5999 8.5999 10.3313 8.5999 9.9999V8.60172L10.0004 8.5999C10.3317 8.59947 10.6 8.33049 10.5996 7.99912C10.5992 7.66775 10.3302 7.39947 9.9988 7.3999L8.5999 7.40172V5.9999Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M7.99958 1.73315C4.53861 1.73315 1.73291 4.53885 1.73291 7.99982C1.73291 11.4608 4.53861 14.2665 7.99958 14.2665C9.51395 14.2665 10.9029 13.7293 11.9862 12.8351L13.2422 14.0908C13.4765 14.3251 13.8564 14.3251 14.0907 14.0907C14.325 13.8564 14.325 13.4765 14.0906 13.2422L12.8347 11.9866C13.729 10.9033 14.2662 9.51428 14.2662 7.99982C14.2662 4.53885 11.4605 1.73315 7.99958 1.73315ZM2.93291 7.99982C2.93291 5.20159 5.20135 2.93315 7.99958 2.93315C10.7978 2.93315 13.0662 5.20159 13.0662 7.99982C13.0662 10.7981 10.7978 13.0665 7.99958 13.0665C5.20135 13.0665 2.93291 10.7981 2.93291 7.99982Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, AmplifySingle = forwardRef(function(props, ref) {
120
+ var element$1C = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.5999 5.9999C8.5999 5.66853 8.33127 5.3999 7.9999 5.3999C7.66853 5.3999 7.3999 5.66853 7.3999 5.9999V7.40329L6.004 7.4051C5.67263 7.40553 5.40435 7.67451 5.40479 8.00588C5.40522 8.33725 5.6742 8.60553 6.00557 8.6051L7.3999 8.60329V9.9999C7.3999 10.3313 7.66853 10.5999 7.9999 10.5999C8.33127 10.5999 8.5999 10.3313 8.5999 9.9999V8.60172L10.0004 8.5999C10.3317 8.59947 10.6 8.33049 10.5996 7.99912C10.5992 7.66775 10.3302 7.39947 9.9988 7.3999L8.5999 7.40172V5.9999Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M7.99958 1.73315C4.53861 1.73315 1.73291 4.53885 1.73291 7.99982C1.73291 11.4608 4.53861 14.2665 7.99958 14.2665C9.51395 14.2665 10.9029 13.7293 11.9862 12.8351L13.2422 14.0908C13.4765 14.3251 13.8564 14.3251 14.0907 14.0907C14.325 13.8564 14.325 13.4765 14.0906 13.2422L12.8347 11.9866C13.729 10.9033 14.2662 9.51428 14.2662 7.99982C14.2662 4.53885 11.4605 1.73315 7.99958 1.73315ZM2.93291 7.99982C2.93291 5.20159 5.20135 2.93315 7.99958 2.93315C10.7978 2.93315 13.0662 5.20159 13.0662 7.99982C13.0662 10.7981 10.7978 13.0665 7.99958 13.0665C5.20135 13.0665 2.93291 10.7981 2.93291 7.99982Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, AmplifySingle = forwardRef(function(props, ref) {
121
121
  return createElement(IconBase, Object.assign({}, props, {
122
122
  id: "amplify-single",
123
123
  ref,
124
- icon: element$1B
124
+ icon: element$1C
125
125
  }));
126
126
  });
127
127
  AmplifySingle.displayName = "AmplifySingle";
128
- var element$1A = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_107_1317", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_107_1317)" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.29713 1.98047C1.94717 1.98047 1.66348 2.26416 1.66348 2.61412 1.66348 2.96408 1.94717 3.24777 2.29713 3.24777H13.7028C14.0528 3.24777 14.3365 2.96408 14.3365 2.61412 14.3365 2.26416 14.0528 1.98047 13.7028 1.98047H2.29713zM2.29713 12.7525C1.94717 12.7525 1.66348 13.0362 1.66348 13.3862 1.66348 13.7361 1.94717 14.0198 2.29713 14.0198H13.7028C14.0528 14.0198 14.3365 13.7361 14.3365 13.3862 14.3365 13.0362 14.0528 12.7525 13.7028 12.7525H2.29713z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M7.42163 4.25588L4.25471 11.2231C4.10989 11.5417 4.25077 11.9174 4.56935 12.0622C4.88794 12.207 5.2636 12.0661 5.40841 11.7475L6.24766 9.90119H9.75197L10.5912 11.7475C10.736 12.0661 11.1117 12.207 11.4303 12.0622C11.7489 11.9174 11.8897 11.5417 11.7449 11.2231L8.578 4.25589C8.5675 4.23244 8.55557 4.20961 8.54227 4.18755C8.49012 4.10102 8.41688 4.0262 8.32579 3.97171C8.301 3.95688 8.27527 3.94377 8.24878 3.93246C8.16764 3.89775 8.08309 3.8813 7.99981 3.88135C7.88457 3.88142 7.77177 3.91309 7.67384 3.97171C7.58714 4.02361 7.5121 4.09664 7.45735 4.18755C7.44406 4.20961 7.43213 4.23244 7.42163 4.25588ZM9.17592 8.63388L7.99981 6.04644L6.8237 8.63388H9.17592Z", fillRule: "evenodd", clipRule: "evenodd" } }] }] }, AutoHeight = forwardRef(function(props, ref) {
128
+ var element$1B = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_107_1317", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_107_1317)" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.29713 1.98047C1.94717 1.98047 1.66348 2.26416 1.66348 2.61412 1.66348 2.96408 1.94717 3.24777 2.29713 3.24777H13.7028C14.0528 3.24777 14.3365 2.96408 14.3365 2.61412 14.3365 2.26416 14.0528 1.98047 13.7028 1.98047H2.29713zM2.29713 12.7525C1.94717 12.7525 1.66348 13.0362 1.66348 13.3862 1.66348 13.7361 1.94717 14.0198 2.29713 14.0198H13.7028C14.0528 14.0198 14.3365 13.7361 14.3365 13.3862 14.3365 13.0362 14.0528 12.7525 13.7028 12.7525H2.29713z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M7.42163 4.25588L4.25471 11.2231C4.10989 11.5417 4.25077 11.9174 4.56935 12.0622C4.88794 12.207 5.2636 12.0661 5.40841 11.7475L6.24766 9.90119H9.75197L10.5912 11.7475C10.736 12.0661 11.1117 12.207 11.4303 12.0622C11.7489 11.9174 11.8897 11.5417 11.7449 11.2231L8.578 4.25589C8.5675 4.23244 8.55557 4.20961 8.54227 4.18755C8.49012 4.10102 8.41688 4.0262 8.32579 3.97171C8.301 3.95688 8.27527 3.94377 8.24878 3.93246C8.16764 3.89775 8.08309 3.8813 7.99981 3.88135C7.88457 3.88142 7.77177 3.91309 7.67384 3.97171C7.58714 4.02361 7.5121 4.09664 7.45735 4.18755C7.44406 4.20961 7.43213 4.23244 7.42163 4.25588ZM9.17592 8.63388L7.99981 6.04644L6.8237 8.63388H9.17592Z", fillRule: "evenodd", clipRule: "evenodd" } }] }] }, AutoHeight = forwardRef(function(props, ref) {
129
129
  return createElement(IconBase, Object.assign({}, props, {
130
130
  id: "auto-height",
131
131
  ref,
132
- icon: element$1A
132
+ icon: element$1B
133
133
  }));
134
134
  });
135
135
  AutoHeight.displayName = "AutoHeight";
136
+ var element$1A = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_102_1171", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_102_1171)" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.98032 13.7028C1.98032 14.0527 2.26401 14.3364 2.61397 14.3364 2.96392 14.3364 3.24762 14.0527 3.24762 13.7028L3.24762 2.29706C3.24762 1.9471 2.96392 1.66341 2.61397 1.66341 2.26401 1.66341 1.98032 1.9471 1.98032 2.29706L1.98032 13.7028zM12.7524 13.7028C12.7524 14.0527 13.0361 14.3364 13.386 14.3364 13.736 14.3364 14.0197 14.0527 14.0197 13.7028L14.0197 2.29706C14.0197 1.9471 13.736 1.66341 13.386 1.66341 13.0361 1.66341 12.7524 1.9471 12.7524 2.29706L12.7524 13.7028z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M7.42187 4.25588L4.25495 11.2231C4.11014 11.5417 4.25101 11.9174 4.5696 12.0622C4.88819 12.207 5.26385 12.0661 5.40866 11.7475L6.2479 9.90119H9.75222L10.5915 11.7475C10.7363 12.0661 11.1119 12.207 11.4305 12.0622C11.7491 11.9174 11.89 11.5417 11.7452 11.2231L8.57825 4.25589C8.56775 4.23244 8.55582 4.20961 8.54252 4.18755C8.49037 4.10102 8.41713 4.0262 8.32603 3.97171C8.30125 3.95688 8.27551 3.94377 8.24902 3.93246C8.16788 3.89775 8.08333 3.8813 8.00006 3.88135C7.88481 3.88142 7.77201 3.91309 7.67409 3.97171C7.58739 4.02361 7.51235 4.09664 7.4576 4.18755C7.4443 4.20961 7.43237 4.23244 7.42187 4.25588ZM9.17617 8.63388L8.00006 6.04644L6.82395 8.63388H9.17617Z", fillRule: "evenodd", clipRule: "evenodd" } }] }] }, AutoWidth = forwardRef(function(props, ref) {
137
+ return createElement(IconBase, Object.assign({}, props, {
138
+ id: "auto-width",
139
+ ref,
140
+ icon: element$1A
141
+ }));
142
+ });
143
+ AutoWidth.displayName = "AutoWidth";
136
144
  var element$1z = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.5999 2.2001C2.5999 1.86873 2.33127 1.6001 1.9999 1.6001 1.66853 1.6001 1.3999 1.86873 1.3999 2.2001V13.8001C1.3999 14.1315 1.66853 14.4001 1.9999 14.4001 2.33127 14.4001 2.5999 14.1315 2.5999 13.8001V2.2001zM14.5999 2.2001C14.5999 1.86873 14.3313 1.6001 13.9999 1.6001 13.6685 1.6001 13.3999 1.86873 13.3999 2.2001V13.8001C13.3999 14.1315 13.6685 14.4001 13.9999 14.4001 14.3313 14.4001 14.5999 14.1315 14.5999 13.8001V2.2001zM6.424 8.24239C6.65832 8.4767 6.65832 8.8566 6.424 9.09091L6.11502 9.3999H9.33307C10.1063 9.3999 10.7331 8.7731 10.7331 7.9999 10.7331 7.22671 10.1063 6.5999 9.33307 6.5999H4.6666L4.66645 5.3999H9.33307C10.769 5.3999 11.9331 6.56396 11.9331 7.9999 11.9331 9.43584 10.769 10.5999 9.33307 10.5999H6.11485L6.424 10.9091C6.65832 11.1434 6.65832 11.5233 6.424 11.7576 6.18969 11.9919 5.80979 11.9919 5.57548 11.7576L4.24214 10.4242C4.00783 10.1899 4.00783 9.81003 4.24214 9.57572L5.57548 8.24239C5.80979 8.00807 6.18969 8.00807 6.424 8.24239z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.6666 6.5999C4.33523 6.5999 4.06641 6.33127 4.06641 5.9999C4.06641 5.66853 4.33508 5.3999 4.66645 5.3999L4.6666 6.5999Z" } }] }, AutowrapSingle = forwardRef(function(props, ref) {
137
145
  return createElement(IconBase, Object.assign({}, props, {
138
146
  id: "autowrap-single",
@@ -1008,6 +1016,7 @@ const _ComponentManager = class _ComponentManager {
1008
1016
  Hide,
1009
1017
  HorizontalBorder,
1010
1018
  AutoHeight,
1019
+ AutoWidth,
1011
1020
  AdjustHeight,
1012
1021
  AdjustWidth,
1013
1022
  AvgSingle,
@@ -1122,11 +1131,11 @@ const _ZIndexManager = class _ZIndexManager {
1122
1131
  };
1123
1132
  _MAX_INDEX = new WeakMap(), _MIN_INDEX = new WeakMap(), __name(_ZIndexManager, "ZIndexManager"), __privateAdd(_ZIndexManager, _MAX_INDEX, 2147483647), __privateAdd(_ZIndexManager, _MIN_INDEX, -2147483647);
1124
1133
  let ZIndexManager = _ZIndexManager;
1125
- function getMenuHiddenObservable(accessor, targetUniverType, matchUnitId) {
1134
+ function getMenuHiddenObservable(accessor, targetUniverType, matchUnitId, needHideUnitId) {
1126
1135
  const univerInstanceService = accessor.get(IUniverInstanceService);
1127
1136
  return new Observable((subscriber) => {
1128
1137
  const subscription = univerInstanceService.focused$.subscribe((unitId) => {
1129
- if (unitId == null || matchUnitId && matchUnitId !== unitId)
1138
+ if (unitId == null || matchUnitId && matchUnitId !== unitId || needHideUnitId && needHideUnitId === unitId)
1130
1139
  return subscriber.next(!0);
1131
1140
  const univerType2 = univerInstanceService.getUnitType(unitId);
1132
1141
  subscriber.next(univerType2 !== targetUniverType);
@@ -2076,93 +2085,41 @@ function MenuItem({ menuItem, onClick }) {
2076
2085
  ] });
2077
2086
  }
2078
2087
  __name(MenuItem, "MenuItem");
2079
- const _ProgressService = class _ProgressService extends Disposable {
2080
- constructor() {
2081
- super(...arguments);
2082
- /**
2083
- * The total number of tasks remaining
2084
- */
2085
- __publicField(this, "_taskCount", 0);
2086
- __publicField(this, "_progressChange$", new Subject());
2087
- __publicField(this, "_progressVisible$", new Subject());
2088
- __publicField(this, "progressChange$", this._progressChange$.asObservable());
2089
- __publicField(this, "progressVisible$", this._progressVisible$.asObservable());
2090
- }
2091
- dispose() {
2092
- super.dispose(), this._clear(), this._progressChange$.complete(), this._progressVisible$.complete();
2093
- }
2094
- pushTask(task) {
2095
- if (this._taskCount === 0)
2096
- return;
2097
- const { count } = task;
2098
- if (count <= 0)
2099
- return;
2100
- const step = Math.min(1, count / this._taskCount);
2101
- this._progressChange$.next({
2102
- step
2103
- }), this._taskCount -= count, this._taskCount < 0 && (this._taskCount = 0), this._taskCount === 0 && this._progressVisible$.next(!1);
2104
- }
2105
- insertTaskCount(count) {
2106
- count <= 0 || (this._taskCount === 0 && this._progressVisible$.next(!0), this._taskCount += count);
2107
- }
2108
- complete() {
2109
- this._taskCount !== 0 && (this._progressChange$.next({
2110
- step: 1
2111
- }), this._clear(), this._progressVisible$.next(!1));
2112
- }
2113
- stop() {
2114
- this._taskCount !== 0 && (this._clear(), this._progressVisible$.next(!1));
2115
- }
2116
- getTaskCount() {
2117
- return this._taskCount;
2118
- }
2119
- _clear() {
2120
- this._taskCount = 0;
2121
- }
2122
- };
2123
- __name(_ProgressService, "ProgressService");
2124
- let ProgressService = _ProgressService;
2125
- const IProgressService = createIdentifier(
2126
- "univer.progress.service"
2127
- ), progressBar = "univer-progress-bar", progressBarContainer = "univer-progress-bar-container", progressBarInner = "univer-progress-bar-inner", progressBarCloseButton = "univer-progress-bar-close-button", styles$b = {
2088
+ const progressBar = "univer-progress-bar", progressBarContainer = "univer-progress-bar-container", progressBarInner = "univer-progress-bar-inner", progressBarCloseButton = "univer-progress-bar-close-button", styles$b = {
2128
2089
  progressBar,
2129
2090
  progressBarContainer,
2130
2091
  progressBarInner,
2131
2092
  progressBarCloseButton
2132
2093
  };
2133
2094
  function ProgressBar(props) {
2134
- const { barColor } = props, progressService = useDependency(IProgressService), progressBarInnerRef = useRef(null), [visible, setVisible] = useState(!1);
2135
- useEffect(() => {
2136
- const progressVisible = progressService.progressVisible$.subscribe((isVisible) => {
2137
- isVisible ? setVisible(isVisible) : setTimeout(() => {
2138
- setVisible(isVisible), progressBarInnerRef.current && (progressBarInnerRef.current.style.width = "0%");
2139
- }, 500);
2140
- }), progressChange = progressService.progressChange$.subscribe((task) => {
2141
- const { step } = task;
2142
- if (progressBarInnerRef.current) {
2143
- const currentProgress = Number.parseFloat(progressBarInnerRef.current.style.width) || 0, newProgress = currentProgress + (100 - currentProgress) * step;
2144
- progressBarInnerRef.current.style.width = `${newProgress}%`;
2145
- }
2146
- });
2147
- return () => {
2148
- progressVisible.unsubscribe(), progressChange.unsubscribe();
2095
+ const { barColor, progress, onTerminate, onClearProgress } = props, { count, done } = progress, themeService = useDependency(ThemeService), color = barColor != null ? barColor : themeService.getCurrentTheme().primaryColor, progressBarInnerRef = useRef(null), [visible, setVisible] = useState(count > 0), [prevCount, setPrevCount] = useState(0), [prevDone, setPrevDone] = useState(0);
2096
+ return useEffect(() => {
2097
+ if (!progressBarInnerRef.current) return;
2098
+ const progressBarInner2 = progressBarInnerRef.current;
2099
+ count === 0 && done === 0 ? setVisible(!1) : count === done && prevCount === 0 && prevDone === 0 ? (setVisible(!0), progressBarInner2.style.width = "0%", requestAnimationFrame(() => {
2100
+ progressBarInner2.style.width = "100%";
2101
+ })) : count > 0 && (setVisible(!0), progressBarInner2.style.width = `${Math.floor(done / count * 100)}%`);
2102
+ const handleTransitionEnd = /* @__PURE__ */ __name(() => {
2103
+ (count === 0 && done === 0 || done === count) && (setVisible(!1), progressBarInner2.style.width = "0%", done === count && onClearProgress && onClearProgress());
2104
+ }, "handleTransitionEnd");
2105
+ return progressBarInner2.addEventListener("transitionend", handleTransitionEnd), setPrevCount(count), setPrevDone(done), () => {
2106
+ progressBarInner2.removeEventListener("transitionend", handleTransitionEnd);
2149
2107
  };
2150
- }, []);
2151
- function handleClose() {
2152
- progressService.stop();
2153
- }
2154
- return __name(handleClose, "handleClose"), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$b.progressBarContainer, style: { display: visible ? "flex" : "none" }, children: [
2108
+ }, [count, done]), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$b.progressBarContainer, style: { display: visible ? "flex" : "none" }, children: [
2155
2109
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$b.progressBar, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2156
2110
  "div",
2157
2111
  {
2158
2112
  ref: progressBarInnerRef,
2159
2113
  className: styles$b.progressBarInner,
2160
2114
  style: {
2161
- backgroundColor: barColor
2115
+ backgroundColor: color
2162
2116
  }
2163
2117
  }
2164
2118
  ) }),
2165
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$b.progressBarCloseButton, onClick: handleClose, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CloseSingle, {}) })
2119
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$b.progressBarCloseButton, onClick: onTerminate, children: [
2120
+ " ",
2121
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CloseSingle, {})
2122
+ ] })
2166
2123
  ] });
2167
2124
  }
2168
2125
  __name(ProgressBar, "ProgressBar");
@@ -2602,7 +2559,7 @@ ShortcutPanelController = __decorateClass$c([
2602
2559
  __decorateParam$c(4, ICommandService)
2603
2560
  ], ShortcutPanelController);
2604
2561
  const IUIController = createIdentifier("univer.ui.ui-controller");
2605
- var render$1 = {}, interopRequireWildcard = { exports: {} }, _typeof$2 = { exports: {} };
2562
+ var render$1 = {}, interopRequireWildcard = { exports: {} }, _typeof$1 = { exports: {} };
2606
2563
  (function(module) {
2607
2564
  function _typeof3(o) {
2608
2565
  "@babel/helpers - typeof";
@@ -2613,8 +2570,8 @@ var render$1 = {}, interopRequireWildcard = { exports: {} }, _typeof$2 = { expor
2613
2570
  }, module.exports.__esModule = !0, module.exports.default = module.exports, _typeof3(o);
2614
2571
  }
2615
2572
  __name(_typeof3, "_typeof"), module.exports = _typeof3, module.exports.__esModule = !0, module.exports.default = module.exports;
2616
- })(_typeof$2);
2617
- var _typeofExports = _typeof$2.exports;
2573
+ })(_typeof$1);
2574
+ var _typeofExports = _typeof$1.exports;
2618
2575
  (function(module) {
2619
2576
  var _typeof3 = _typeofExports.default;
2620
2577
  function _getRequireWildcardCache(e2) {
@@ -2984,7 +2941,7 @@ var regeneratorRuntimeExports = regeneratorRuntime.exports, asyncToGenerator = {
2984
2941
  }
2985
2942
  __name(_asyncToGenerator, "_asyncToGenerator"), module.exports = _asyncToGenerator, module.exports.__esModule = !0, module.exports.default = module.exports;
2986
2943
  })(asyncToGenerator);
2987
- var asyncToGeneratorExports = asyncToGenerator.exports, objectSpread2 = { exports: {} }, defineProperty = { exports: {} }, toPropertyKey$2 = { exports: {} }, toPrimitive$2 = { exports: {} };
2944
+ var asyncToGeneratorExports = asyncToGenerator.exports, objectSpread2 = { exports: {} }, defineProperty = { exports: {} }, toPropertyKey$1 = { exports: {} }, toPrimitive$1 = { exports: {} };
2988
2945
  (function(module) {
2989
2946
  var _typeof3 = _typeofExports.default;
2990
2947
  function toPrimitive2(t2, r2) {
@@ -2998,8 +2955,8 @@ var asyncToGeneratorExports = asyncToGenerator.exports, objectSpread2 = { export
2998
2955
  return (r2 === "string" ? String : Number)(t2);
2999
2956
  }
3000
2957
  __name(toPrimitive2, "toPrimitive"), module.exports = toPrimitive2, module.exports.__esModule = !0, module.exports.default = module.exports;
3001
- })(toPrimitive$2);
3002
- var toPrimitiveExports = toPrimitive$2.exports;
2958
+ })(toPrimitive$1);
2959
+ var toPrimitiveExports = toPrimitive$1.exports;
3003
2960
  (function(module) {
3004
2961
  var _typeof3 = _typeofExports.default, toPrimitive2 = toPrimitiveExports;
3005
2962
  function toPropertyKey2(t2) {
@@ -3007,8 +2964,8 @@ var toPrimitiveExports = toPrimitive$2.exports;
3007
2964
  return _typeof3(i) == "symbol" ? i : i + "";
3008
2965
  }
3009
2966
  __name(toPropertyKey2, "toPropertyKey"), module.exports = toPropertyKey2, module.exports.__esModule = !0, module.exports.default = module.exports;
3010
- })(toPropertyKey$2);
3011
- var toPropertyKeyExports = toPropertyKey$2.exports;
2967
+ })(toPropertyKey$1);
2968
+ var toPropertyKeyExports = toPropertyKey$1.exports;
3012
2969
  (function(module) {
3013
2970
  var toPropertyKey2 = toPropertyKeyExports;
3014
2971
  function _defineProperty2(e2, r2, t2) {
@@ -3054,7 +3011,7 @@ Object.defineProperty(render$1, "__esModule", {
3054
3011
  });
3055
3012
  render$1._r = _r;
3056
3013
  render$1._u = _u;
3057
- var render_2 = render$1.render = render, unmount_1 = render$1.unmount = unmount, _regeneratorRuntime2 = _interopRequireDefault(regeneratorRuntimeExports), _asyncToGenerator2 = _interopRequireDefault(asyncToGeneratorExports), _typeof2 = _interopRequireDefault(_typeofExports), _objectSpread2$2 = _interopRequireDefault(objectSpread2Exports), ReactDOM = _interopRequireWildcard(ReactDOM$1), fullClone = (0, _objectSpread2$2.default)({}, ReactDOM), version = fullClone.version, reactRender = fullClone.render, unmountComponentAtNode = fullClone.unmountComponentAtNode, createRoot;
3014
+ var render_2 = render$1.render = render, unmount_1 = render$1.unmount = unmount, _regeneratorRuntime2 = _interopRequireDefault(regeneratorRuntimeExports), _asyncToGenerator2 = _interopRequireDefault(asyncToGeneratorExports), _typeof2 = _interopRequireDefault(_typeofExports), _objectSpread2$1 = _interopRequireDefault(objectSpread2Exports), ReactDOM = _interopRequireWildcard(ReactDOM$1), fullClone = (0, _objectSpread2$1.default)({}, ReactDOM), version = fullClone.version, reactRender = fullClone.render, unmountComponentAtNode = fullClone.unmountComponentAtNode, createRoot;
3058
3015
  try {
3059
3016
  var mainVersion = Number((version || "").split(".")[0]);
3060
3017
  mainVersion >= 18 && (createRoot = fullClone.createRoot);
@@ -3190,21 +3147,47 @@ const floatDomWrapper = "univer-float-dom-wrapper", floatDom = "univer-float-dom
3190
3147
  floatDomWrapper,
3191
3148
  floatDom
3192
3149
  }, FloatDomSingle = memo((props) => {
3193
- const { layer, id } = props, componentManager = useDependency(ComponentManager), position = useObservable(layer.position$), Component = typeof layer.componentKey == "string" ? componentManager.get(layer.componentKey) : layer.componentKey, layerProps = {
3150
+ const { layer, id } = props, componentManager = useDependency(ComponentManager), size$ = useMemo(() => layer.position$.pipe(
3151
+ distinctUntilChanged(
3152
+ (prev, curr) => prev.absolute.left === curr.absolute.left && prev.absolute.top === curr.absolute.top && prev.endX - prev.startX === curr.endX - curr.startX && prev.endY - prev.startY === curr.endY - curr.startY
3153
+ )
3154
+ ), [layer.position$]), position = useObservable(useMemo(() => layer.position$.pipe(first()), [layer.position$])), domRef = useRef(null), innerDomRef = useRef(null), transformRef = useRef(`transform: rotate(${position == null ? void 0 : position.rotate}deg) translate(${position == null ? void 0 : position.startX}px, ${position == null ? void 0 : position.startY}px)`), innerStyle = useRef({}), Component = typeof layer.componentKey == "string" ? componentManager.get(layer.componentKey) : layer.componentKey, layerProps = useMemo(() => ({
3194
3155
  data: layer.data,
3195
3156
  ...layer.props
3196
- };
3157
+ }), [layer.data, layer.props]);
3158
+ useEffect(() => {
3159
+ const subscription = layer.position$.subscribe((position2) => {
3160
+ transformRef.current = `rotate(${position2.rotate}deg) translate(${position2.startX}px, ${position2.startY}px)`, domRef.current && (domRef.current.style.transform = transformRef.current);
3161
+ }), sizeSubscription = size$.subscribe((size) => {
3162
+ if (domRef.current && (domRef.current.style.width = `${Math.max(size.endX - size.startX - 2, 0)}px`, domRef.current.style.height = `${Math.max(size.endY - size.startY - 2, 0)}px`), innerDomRef.current) {
3163
+ const style2 = {
3164
+ width: `${size.width - 4}px`,
3165
+ height: `${size.height - 4}px`,
3166
+ left: `${size.absolute.left ? 0 : "auto"}`,
3167
+ top: `${size.absolute.top ? 0 : "auto"}`,
3168
+ right: `${size.absolute.left ? "auto" : 0}`,
3169
+ bottom: `${size.absolute.top ? "auto" : 0}`
3170
+ };
3171
+ innerDomRef.current.style.width = style2.width, innerDomRef.current.style.height = style2.height, innerDomRef.current.style.left = style2.left, innerDomRef.current.style.top = style2.top, innerDomRef.current.style.right = style2.right, innerDomRef.current.style.bottom = style2.bottom, innerStyle.current = style2;
3172
+ }
3173
+ });
3174
+ return () => {
3175
+ subscription.unsubscribe(), sizeSubscription.unsubscribe();
3176
+ };
3177
+ }, [layer.position$, size$]);
3178
+ const component = useMemo(() => Component ? /* @__PURE__ */ jsxRuntimeExports.jsx(Component, { ...layerProps }) : null, [Component, layerProps]);
3197
3179
  return position ? /* @__PURE__ */ jsxRuntimeExports.jsx(
3198
3180
  "div",
3199
3181
  {
3182
+ ref: domRef,
3200
3183
  className: styles$9.floatDomWrapper,
3201
3184
  style: {
3202
3185
  position: "absolute",
3203
- top: position.startY,
3204
- left: position.startX,
3186
+ top: 0,
3187
+ left: 0,
3205
3188
  width: Math.max(position.endX - position.startX - 2, 0),
3206
3189
  height: Math.max(position.endY - position.startY - 2, 0),
3207
- transform: `rotate(${position.rotate}deg)`,
3190
+ transform: transformRef.current,
3208
3191
  overflow: "hidden"
3209
3192
  },
3210
3193
  onPointerMove: /* @__PURE__ */ __name((e2) => {
@@ -3223,15 +3206,10 @@ const floatDomWrapper = "univer-float-dom-wrapper", floatDom = "univer-float-dom
3223
3206
  "div",
3224
3207
  {
3225
3208
  id,
3209
+ ref: innerDomRef,
3226
3210
  className: styles$9.floatDom,
3227
- style: {
3228
- width: position.width,
3229
- height: position.height,
3230
- position: "absolute",
3231
- ...position.absolute.left ? { left: 0 } : { right: 0 },
3232
- ...position.absolute.top ? { top: 0 } : { bottom: 0 }
3233
- },
3234
- children: Component ? /* @__PURE__ */ jsxRuntimeExports.jsx(Component, { ...layerProps }) : null
3211
+ style: { position: "absolute", ...innerStyle.current },
3212
+ children: component
3235
3213
  }
3236
3214
  )
3237
3215
  }
@@ -4088,7 +4066,7 @@ function ZenZone() {
4088
4066
  if (Component2)
4089
4067
  return Component2;
4090
4068
  }, [componentKey]);
4091
- return /* @__PURE__ */ jsxRuntimeExports.jsx("section", { style: hidden ? { display: "none" } : void 0, className: _className, children: Component && /* @__PURE__ */ jsxRuntimeExports.jsx(Component, {}) });
4069
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("section", { style: hidden ? { opacity: 0, zIndex: -1 } : void 0, className: _className, children: Component && /* @__PURE__ */ jsxRuntimeExports.jsx(Component, {}) });
4092
4070
  }
4093
4071
  __name(ZenZone, "ZenZone");
4094
4072
  const IGlobalZoneService = createIdentifier("univer.global-zone-service"), globalZone = "univer-global-zone", globalZoneOpen = "univer-global-zone-open", globalZoneClose = "univer-global-zone-close", styles$4 = {
@@ -4131,13 +4109,13 @@ function DesktopWorkbench(props) {
4131
4109
  contextMenu = !0,
4132
4110
  mountContainer,
4133
4111
  onRendered
4134
- } = props, localeService = useDependency(LocaleService), themeService = useDependency(ThemeService), messageService = useDependency(IMessageService), instanceService = useDependency(IUniverInstanceService), contentRef = useRef(null), footerComponents = useComponentsOfPart(BuiltInUIPart.FOOTER), headerComponents = useComponentsOfPart(BuiltInUIPart.HEADER), headerMenuComponents = useComponentsOfPart(BuiltInUIPart.HEADER_MENU), contentComponents = useComponentsOfPart(BuiltInUIPart.CONTENT), leftSidebarComponents = useComponentsOfPart(BuiltInUIPart.LEFT_SIDEBAR), globalComponents = useComponentsOfPart(BuiltInUIPart.GLOBAL), [focusUnitType, setFocusUnitType] = useState(UniverInstanceType.UNIVER_UNKNOWN);
4112
+ } = props, localeService = useDependency(LocaleService), themeService = useDependency(ThemeService), messageService = useDependency(IMessageService), instanceService = useDependency(IUniverInstanceService), contentRef = useRef(null), footerComponents = useComponentsOfPart(BuiltInUIPart.FOOTER), headerComponents = useComponentsOfPart(BuiltInUIPart.HEADER), headerMenuComponents = useComponentsOfPart(BuiltInUIPart.HEADER_MENU), contentComponents = useComponentsOfPart(BuiltInUIPart.CONTENT), leftSidebarComponents = useComponentsOfPart(BuiltInUIPart.LEFT_SIDEBAR), globalComponents = useComponentsOfPart(BuiltInUIPart.GLOBAL), [docSnapShot, setDocSnapShot] = useState(null);
4135
4113
  useEffect(() => {
4136
4114
  const sub = instanceService.focused$.subscribe((id) => {
4137
4115
  if (id == null)
4138
4116
  return;
4139
- const instanceType = instanceService.getUnitType(id);
4140
- setFocusUnitType(instanceType);
4117
+ const instanceType = instanceService.getUnitType(id), instance = instanceService.getUnit(id);
4118
+ instanceType === UniverInstanceType.UNIVER_DOC && instance && setDocSnapShot(instance.getSnapshot());
4141
4119
  });
4142
4120
  return () => {
4143
4121
  sub.unsubscribe();
@@ -4173,7 +4151,7 @@ function DesktopWorkbench(props) {
4173
4151
  className: clsx$1(
4174
4152
  styles$3.workbenchContainerContent,
4175
4153
  {
4176
- [styles$3.workbenchContainerDocContent]: focusUnitType === UniverInstanceType.UNIVER_DOC
4154
+ [styles$3.workbenchContainerDocContent]: (docSnapShot == null ? void 0 : docSnapShot.documentStyle.documentFlavor) === DocumentFlavor.TRADITIONAL
4177
4155
  }
4178
4156
  ),
4179
4157
  children: [
@@ -4294,17 +4272,7 @@ function createContainer$1(id) {
4294
4272
  return element2.id = id, element2;
4295
4273
  }
4296
4274
  __name(createContainer$1, "createContainer$1");
4297
- const appLayout = "univer-app-layout", appHeader = "univer-app-header", appContainer = "univer-app-container", appContainerHeader = "univer-app-container-header", appContainerWrapper = "univer-app-container-wrapper", appContainerContent = "univer-app-container-content", appContainerCanvas = "univer-app-container-canvas", appContainerLeftSidebar = "univer-app-container-left-sidebar", appContainerSidebar = "univer-app-container-sidebar", styles$2 = {
4298
- appLayout,
4299
- appHeader,
4300
- appContainer,
4301
- appContainerHeader,
4302
- appContainerWrapper,
4303
- appContainerContent,
4304
- appContainerCanvas,
4305
- appContainerLeftSidebar,
4306
- appContainerSidebar
4307
- }, mobileMenuContainer = "univer-mobile-menu-container", mobileMenuItem = "univer-mobile-menu-item", styles$1 = {
4275
+ const mobileMenuContainer = "univer-mobile-menu-container", mobileMenuItem = "univer-mobile-menu-item", styles$2 = {
4308
4276
  mobileMenuContainer,
4309
4277
  mobileMenuItem
4310
4278
  };
@@ -4322,7 +4290,7 @@ function MobileMenu(props) {
4322
4290
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
4323
4291
  "div",
4324
4292
  {
4325
- className: styles$1.mobileMenuContainer,
4293
+ className: styles$2.mobileMenuContainer,
4326
4294
  style: {
4327
4295
  gridTemplateColumns: `repeat(${Math.min(2, flattedMenuItems.length)}, 48px)`
4328
4296
  },
@@ -4342,9 +4310,9 @@ function MobileMenuItem(props) {
4342
4310
  const { menuItem, onClick } = props, { id, type, title, label, icon } = menuItem;
4343
4311
  if (type !== MenuItemType.BUTTON)
4344
4312
  throw new Error(`[MobileMenuItem]: on mobile devices only "BUTTON" type menu items are supported. Please check "${id}".`);
4345
- const disabled = useObservable$1(menuItem.disabled$, !1), activated = useObservable$1(menuItem.activated$, !1), hidden = useObservable$1(menuItem.hidden$, !1), value = useObservable$1(menuItem.value$), className = clsx$1(styles$1.mobileMenuItem, {
4346
- [styles$1.mobileMenuItemActivated]: activated,
4347
- [styles$1.mobileMenuItemHidden]: hidden
4313
+ const disabled = useObservable$1(menuItem.disabled$, !1), activated = useObservable$1(menuItem.activated$, !1), hidden = useObservable$1(menuItem.hidden$, !1), value = useObservable$1(menuItem.value$), className = clsx$1(styles$2.mobileMenuItem, {
4314
+ [styles$2.mobileMenuItemActivated]: activated,
4315
+ [styles$2.mobileMenuItemHidden]: hidden
4348
4316
  });
4349
4317
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
4350
4318
  "button",
@@ -4395,6 +4363,17 @@ function MobileContextMenu() {
4395
4363
  ) }) });
4396
4364
  }
4397
4365
  __name(MobileContextMenu, "MobileContextMenu");
4366
+ const appLayout = "univer-app-layout", appHeader = "univer-app-header", appContainer = "univer-app-container", appContainerHeader = "univer-app-container-header", appContainerWrapper = "univer-app-container-wrapper", appContainerContent = "univer-app-container-content", appContainerCanvas = "univer-app-container-canvas", appContainerLeftSidebar = "univer-app-container-left-sidebar", appContainerSidebar = "univer-app-container-sidebar", styles$1 = {
4367
+ appLayout,
4368
+ appHeader,
4369
+ appContainer,
4370
+ appContainerHeader,
4371
+ appContainerWrapper,
4372
+ appContainerContent,
4373
+ appContainerCanvas,
4374
+ appContainerLeftSidebar,
4375
+ appContainerSidebar
4376
+ };
4398
4377
  function MobileApp(props) {
4399
4378
  const {
4400
4379
  header = !0,
@@ -4425,17 +4404,17 @@ function MobileApp(props) {
4425
4404
  subscriptions.forEach((subscription) => subscription.unsubscribe()), document.body.removeChild(portalContainer);
4426
4405
  };
4427
4406
  }, [localeService, messageService, mountContainer, portalContainer, themeService.currentTheme$]), /* @__PURE__ */ jsxRuntimeExports.jsxs(ConfigProvider, { locale: locale == null ? void 0 : locale.design, mountContainer: portalContainer, children: [
4428
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$2.appLayout, tabIndex: -1, onBlur: /* @__PURE__ */ __name((e2) => e2.stopPropagation(), "onBlur"), children: [
4429
- header && /* @__PURE__ */ jsxRuntimeExports.jsx("header", { className: styles$2.appContainerHeader }),
4430
- /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { className: styles$2.appContainer, children: [
4431
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$2.appContainerWrapper, children: [
4432
- /* @__PURE__ */ jsxRuntimeExports.jsx("aside", { className: styles$2.appContainerLeftSidebar, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ComponentContainer, { components: leftSidebarComponents }, "left-sidebar") }),
4433
- /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { className: styles$2.appContainerContent, children: [
4434
- /* @__PURE__ */ jsxRuntimeExports.jsx("header", { className: styles$2.appHeader, children: header && /* @__PURE__ */ jsxRuntimeExports.jsx(ComponentContainer, { components: headerComponents }, "header") }),
4407
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1.appLayout, tabIndex: -1, onBlur: /* @__PURE__ */ __name((e2) => e2.stopPropagation(), "onBlur"), children: [
4408
+ header && /* @__PURE__ */ jsxRuntimeExports.jsx("header", { className: styles$1.appContainerHeader }),
4409
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { className: styles$1.appContainer, children: [
4410
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1.appContainerWrapper, children: [
4411
+ /* @__PURE__ */ jsxRuntimeExports.jsx("aside", { className: styles$1.appContainerLeftSidebar, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ComponentContainer, { components: leftSidebarComponents }, "left-sidebar") }),
4412
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { className: styles$1.appContainerContent, children: [
4413
+ /* @__PURE__ */ jsxRuntimeExports.jsx("header", { className: styles$1.appHeader, children: header && /* @__PURE__ */ jsxRuntimeExports.jsx(ComponentContainer, { components: headerComponents }, "header") }),
4435
4414
  /* @__PURE__ */ jsxRuntimeExports.jsx(
4436
4415
  "section",
4437
4416
  {
4438
- className: styles$2.appContainerCanvas,
4417
+ className: styles$1.appContainerCanvas,
4439
4418
  ref: contentRef,
4440
4419
  "data-range-selector": !0,
4441
4420
  onContextMenu: /* @__PURE__ */ __name((e2) => e2.preventDefault(), "onContextMenu"),
@@ -4443,9 +4422,9 @@ function MobileApp(props) {
4443
4422
  }
4444
4423
  )
4445
4424
  ] }),
4446
- /* @__PURE__ */ jsxRuntimeExports.jsx("aside", { className: styles$2.appContainerSidebar, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Sidebar, {}) })
4425
+ /* @__PURE__ */ jsxRuntimeExports.jsx("aside", { className: styles$1.appContainerSidebar, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Sidebar, {}) })
4447
4426
  ] }),
4448
- footer && /* @__PURE__ */ jsxRuntimeExports.jsx("footer", { className: styles$2.appFooter, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ComponentContainer, { components: footerComponents }, "footer") }),
4427
+ footer && /* @__PURE__ */ jsxRuntimeExports.jsx("footer", { className: styles$1.appFooter, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ComponentContainer, { components: footerComponents }, "footer") }),
4449
4428
  /* @__PURE__ */ jsxRuntimeExports.jsx(ZenZone, {})
4450
4429
  ] })
4451
4430
  ] }),
@@ -6453,42 +6432,42 @@ const _DesktopMessageService = class _DesktopMessageService {
6453
6432
  };
6454
6433
  __name(_DesktopMessageService, "DesktopMessageService");
6455
6434
  let DesktopMessageService = _DesktopMessageService;
6456
- function _arrayLikeToArray$1(r2, a) {
6435
+ function _arrayLikeToArray(r2, a) {
6457
6436
  (a == null || a > r2.length) && (a = r2.length);
6458
6437
  for (var e2 = 0, n2 = Array(a); e2 < a; e2++) n2[e2] = r2[e2];
6459
6438
  return n2;
6460
6439
  }
6461
- __name(_arrayLikeToArray$1, "_arrayLikeToArray$1");
6440
+ __name(_arrayLikeToArray, "_arrayLikeToArray");
6462
6441
  function _arrayWithoutHoles(r2) {
6463
- if (Array.isArray(r2)) return _arrayLikeToArray$1(r2);
6442
+ if (Array.isArray(r2)) return _arrayLikeToArray(r2);
6464
6443
  }
6465
6444
  __name(_arrayWithoutHoles, "_arrayWithoutHoles");
6466
6445
  function _iterableToArray(r2) {
6467
6446
  if (typeof Symbol < "u" && r2[Symbol.iterator] != null || r2["@@iterator"] != null) return Array.from(r2);
6468
6447
  }
6469
6448
  __name(_iterableToArray, "_iterableToArray");
6470
- function _unsupportedIterableToArray$1(r2, a) {
6449
+ function _unsupportedIterableToArray(r2, a) {
6471
6450
  if (r2) {
6472
- if (typeof r2 == "string") return _arrayLikeToArray$1(r2, a);
6451
+ if (typeof r2 == "string") return _arrayLikeToArray(r2, a);
6473
6452
  var t2 = {}.toString.call(r2).slice(8, -1);
6474
- return t2 === "Object" && r2.constructor && (t2 = r2.constructor.name), t2 === "Map" || t2 === "Set" ? Array.from(r2) : t2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$1(r2, a) : void 0;
6453
+ return t2 === "Object" && r2.constructor && (t2 = r2.constructor.name), t2 === "Map" || t2 === "Set" ? Array.from(r2) : t2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray(r2, a) : void 0;
6475
6454
  }
6476
6455
  }
6477
- __name(_unsupportedIterableToArray$1, "_unsupportedIterableToArray$1");
6456
+ __name(_unsupportedIterableToArray, "_unsupportedIterableToArray");
6478
6457
  function _nonIterableSpread() {
6479
6458
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
6480
6459
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
6481
6460
  }
6482
6461
  __name(_nonIterableSpread, "_nonIterableSpread");
6483
6462
  function _toConsumableArray(r2) {
6484
- return _arrayWithoutHoles(r2) || _iterableToArray(r2) || _unsupportedIterableToArray$1(r2) || _nonIterableSpread();
6463
+ return _arrayWithoutHoles(r2) || _iterableToArray(r2) || _unsupportedIterableToArray(r2) || _nonIterableSpread();
6485
6464
  }
6486
6465
  __name(_toConsumableArray, "_toConsumableArray");
6487
- function _arrayWithHoles$1(r2) {
6466
+ function _arrayWithHoles(r2) {
6488
6467
  if (Array.isArray(r2)) return r2;
6489
6468
  }
6490
- __name(_arrayWithHoles$1, "_arrayWithHoles$1");
6491
- function _iterableToArrayLimit$1(r2, l2) {
6469
+ __name(_arrayWithHoles, "_arrayWithHoles");
6470
+ function _iterableToArrayLimit(r2, l2) {
6492
6471
  var t2 = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
6493
6472
  if (t2 != null) {
6494
6473
  var e2, n2, i, u2, a = [], f2 = !0, o = !1;
@@ -6509,16 +6488,16 @@ function _iterableToArrayLimit$1(r2, l2) {
6509
6488
  return a;
6510
6489
  }
6511
6490
  }
6512
- __name(_iterableToArrayLimit$1, "_iterableToArrayLimit$1");
6513
- function _nonIterableRest$1() {
6491
+ __name(_iterableToArrayLimit, "_iterableToArrayLimit");
6492
+ function _nonIterableRest() {
6514
6493
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6515
6494
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
6516
6495
  }
6517
- __name(_nonIterableRest$1, "_nonIterableRest$1");
6518
- function _slicedToArray$1(r2, e2) {
6519
- return _arrayWithHoles$1(r2) || _iterableToArrayLimit$1(r2, e2) || _unsupportedIterableToArray$1(r2, e2) || _nonIterableRest$1();
6496
+ __name(_nonIterableRest, "_nonIterableRest");
6497
+ function _slicedToArray(r2, e2) {
6498
+ return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e2) || _unsupportedIterableToArray(r2, e2) || _nonIterableRest();
6520
6499
  }
6521
- __name(_slicedToArray$1, "_slicedToArray$1");
6500
+ __name(_slicedToArray, "_slicedToArray");
6522
6501
  function _objectWithoutPropertiesLoose(r2, e2) {
6523
6502
  if (r2 == null) return {};
6524
6503
  var t2 = {};
@@ -6539,41 +6518,41 @@ function _objectWithoutProperties(e2, t2) {
6539
6518
  return i;
6540
6519
  }
6541
6520
  __name(_objectWithoutProperties, "_objectWithoutProperties");
6542
- function _typeof$1(o) {
6521
+ function _typeof(o) {
6543
6522
  "@babel/helpers - typeof";
6544
- return _typeof$1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
6523
+ return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
6545
6524
  return typeof o2;
6546
6525
  } : function(o2) {
6547
6526
  return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
6548
- }, _typeof$1(o);
6527
+ }, _typeof(o);
6549
6528
  }
6550
- __name(_typeof$1, "_typeof$1");
6551
- function toPrimitive$1(t2, r2) {
6552
- if (_typeof$1(t2) != "object" || !t2) return t2;
6529
+ __name(_typeof, "_typeof");
6530
+ function toPrimitive(t2, r2) {
6531
+ if (_typeof(t2) != "object" || !t2) return t2;
6553
6532
  var e2 = t2[Symbol.toPrimitive];
6554
6533
  if (e2 !== void 0) {
6555
6534
  var i = e2.call(t2, r2 || "default");
6556
- if (_typeof$1(i) != "object") return i;
6535
+ if (_typeof(i) != "object") return i;
6557
6536
  throw new TypeError("@@toPrimitive must return a primitive value.");
6558
6537
  }
6559
6538
  return (r2 === "string" ? String : Number)(t2);
6560
6539
  }
6561
- __name(toPrimitive$1, "toPrimitive$1");
6562
- function toPropertyKey$1(t2) {
6563
- var i = toPrimitive$1(t2, "string");
6564
- return _typeof$1(i) == "symbol" ? i : i + "";
6540
+ __name(toPrimitive, "toPrimitive");
6541
+ function toPropertyKey(t2) {
6542
+ var i = toPrimitive(t2, "string");
6543
+ return _typeof(i) == "symbol" ? i : i + "";
6565
6544
  }
6566
- __name(toPropertyKey$1, "toPropertyKey$1");
6567
- function _defineProperty$1(e2, r2, t2) {
6568
- return (r2 = toPropertyKey$1(r2)) in e2 ? Object.defineProperty(e2, r2, {
6545
+ __name(toPropertyKey, "toPropertyKey");
6546
+ function _defineProperty(e2, r2, t2) {
6547
+ return (r2 = toPropertyKey(r2)) in e2 ? Object.defineProperty(e2, r2, {
6569
6548
  value: t2,
6570
6549
  enumerable: !0,
6571
6550
  configurable: !0,
6572
6551
  writable: !0
6573
6552
  }) : e2[r2] = t2, e2;
6574
6553
  }
6575
- __name(_defineProperty$1, "_defineProperty$1");
6576
- function ownKeys$1(e2, r2) {
6554
+ __name(_defineProperty, "_defineProperty");
6555
+ function ownKeys(e2, r2) {
6577
6556
  var t2 = Object.keys(e2);
6578
6557
  if (Object.getOwnPropertySymbols) {
6579
6558
  var o = Object.getOwnPropertySymbols(e2);
@@ -6583,19 +6562,19 @@ function ownKeys$1(e2, r2) {
6583
6562
  }
6584
6563
  return t2;
6585
6564
  }
6586
- __name(ownKeys$1, "ownKeys$1");
6587
- function _objectSpread2$1(e2) {
6565
+ __name(ownKeys, "ownKeys");
6566
+ function _objectSpread2(e2) {
6588
6567
  for (var r2 = 1; r2 < arguments.length; r2++) {
6589
6568
  var t2 = arguments[r2] != null ? arguments[r2] : {};
6590
- r2 % 2 ? ownKeys$1(Object(t2), !0).forEach(function(r3) {
6591
- _defineProperty$1(e2, r3, t2[r3]);
6592
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys$1(Object(t2)).forEach(function(r3) {
6569
+ r2 % 2 ? ownKeys(Object(t2), !0).forEach(function(r3) {
6570
+ _defineProperty(e2, r3, t2[r3]);
6571
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys(Object(t2)).forEach(function(r3) {
6593
6572
  Object.defineProperty(e2, r3, Object.getOwnPropertyDescriptor(t2, r3));
6594
6573
  });
6595
6574
  }
6596
6575
  return e2;
6597
6576
  }
6598
- __name(_objectSpread2$1, "_objectSpread2$1");
6577
+ __name(_objectSpread2, "_objectSpread2");
6599
6578
  function _extends() {
6600
6579
  return _extends = Object.assign ? Object.assign.bind() : function(n2) {
6601
6580
  for (var e2 = 1; e2 < arguments.length; e2++) {
@@ -6646,15 +6625,6 @@ var classnames = { exports: {} };
6646
6625
  })(classnames);
6647
6626
  var classnamesExports = classnames.exports;
6648
6627
  const clsx = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
6649
- function _typeof(o) {
6650
- "@babel/helpers - typeof";
6651
- return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
6652
- return typeof o2;
6653
- } : function(o2) {
6654
- return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
6655
- }, _typeof(o);
6656
- }
6657
- __name(_typeof, "_typeof");
6658
6628
  function isDOM(node) {
6659
6629
  return node instanceof HTMLElement || node instanceof SVGElement;
6660
6630
  }
@@ -6795,7 +6765,7 @@ __name(_classCallCheck, "_classCallCheck");
6795
6765
  function _defineProperties(e2, r2) {
6796
6766
  for (var t2 = 0; t2 < r2.length; t2++) {
6797
6767
  var o = r2[t2];
6798
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e2, toPropertyKey$1(o.key), o);
6768
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e2, toPropertyKey(o.key), o);
6799
6769
  }
6800
6770
  }
6801
6771
  __name(_defineProperties, "_defineProperties");
@@ -6847,7 +6817,7 @@ function _assertThisInitialized(e2) {
6847
6817
  }
6848
6818
  __name(_assertThisInitialized, "_assertThisInitialized");
6849
6819
  function _possibleConstructorReturn(t2, e2) {
6850
- if (e2 && (_typeof$1(e2) == "object" || typeof e2 == "function")) return e2;
6820
+ if (e2 && (_typeof(e2) == "object" || typeof e2 == "function")) return e2;
6851
6821
  if (e2 !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
6852
6822
  return _assertThisInitialized(t2);
6853
6823
  }
@@ -6888,52 +6858,6 @@ function useEvent(callback) {
6888
6858
  return memoFn;
6889
6859
  }
6890
6860
  __name(useEvent, "useEvent");
6891
- function _arrayWithHoles(r2) {
6892
- if (Array.isArray(r2)) return r2;
6893
- }
6894
- __name(_arrayWithHoles, "_arrayWithHoles");
6895
- function _iterableToArrayLimit(r2, l2) {
6896
- var t2 = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
6897
- if (t2 != null) {
6898
- var e2, n2, i, u2, a = [], f2 = !0, o = !1;
6899
- try {
6900
- if (i = (t2 = t2.call(r2)).next, l2 !== 0) for (; !(f2 = (e2 = i.call(t2)).done) && (a.push(e2.value), a.length !== l2); f2 = !0) ;
6901
- } catch (r3) {
6902
- o = !0, n2 = r3;
6903
- } finally {
6904
- try {
6905
- if (!f2 && t2.return != null && (u2 = t2.return(), Object(u2) !== u2)) return;
6906
- } finally {
6907
- if (o) throw n2;
6908
- }
6909
- }
6910
- return a;
6911
- }
6912
- }
6913
- __name(_iterableToArrayLimit, "_iterableToArrayLimit");
6914
- function _arrayLikeToArray(r2, a) {
6915
- (a == null || a > r2.length) && (a = r2.length);
6916
- for (var e2 = 0, n2 = Array(a); e2 < a; e2++) n2[e2] = r2[e2];
6917
- return n2;
6918
- }
6919
- __name(_arrayLikeToArray, "_arrayLikeToArray");
6920
- function _unsupportedIterableToArray(r2, a) {
6921
- if (r2) {
6922
- if (typeof r2 == "string") return _arrayLikeToArray(r2, a);
6923
- var t2 = {}.toString.call(r2).slice(8, -1);
6924
- return t2 === "Object" && r2.constructor && (t2 = r2.constructor.name), t2 === "Map" || t2 === "Set" ? Array.from(r2) : t2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray(r2, a) : void 0;
6925
- }
6926
- }
6927
- __name(_unsupportedIterableToArray, "_unsupportedIterableToArray");
6928
- function _nonIterableRest() {
6929
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6930
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
6931
- }
6932
- __name(_nonIterableRest, "_nonIterableRest");
6933
- function _slicedToArray(r2, e2) {
6934
- return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e2) || _unsupportedIterableToArray(r2, e2) || _nonIterableRest();
6935
- }
6936
- __name(_slicedToArray, "_slicedToArray");
6937
6861
  function canUseDom() {
6938
6862
  return !!(typeof window < "u" && window.document && window.document.createElement);
6939
6863
  }
@@ -6951,54 +6875,6 @@ function useSafeState(defaultValue) {
6951
6875
  return __name(safeSetState, "safeSetState"), [value, safeSetState];
6952
6876
  }
6953
6877
  __name(useSafeState, "useSafeState");
6954
- function toPrimitive(t2, r2) {
6955
- if (_typeof(t2) != "object" || !t2) return t2;
6956
- var e2 = t2[Symbol.toPrimitive];
6957
- if (e2 !== void 0) {
6958
- var i = e2.call(t2, r2 || "default");
6959
- if (_typeof(i) != "object") return i;
6960
- throw new TypeError("@@toPrimitive must return a primitive value.");
6961
- }
6962
- return (r2 === "string" ? String : Number)(t2);
6963
- }
6964
- __name(toPrimitive, "toPrimitive");
6965
- function toPropertyKey(t2) {
6966
- var i = toPrimitive(t2, "string");
6967
- return _typeof(i) == "symbol" ? i : i + "";
6968
- }
6969
- __name(toPropertyKey, "toPropertyKey");
6970
- function _defineProperty(e2, r2, t2) {
6971
- return (r2 = toPropertyKey(r2)) in e2 ? Object.defineProperty(e2, r2, {
6972
- value: t2,
6973
- enumerable: !0,
6974
- configurable: !0,
6975
- writable: !0
6976
- }) : e2[r2] = t2, e2;
6977
- }
6978
- __name(_defineProperty, "_defineProperty");
6979
- function ownKeys(e2, r2) {
6980
- var t2 = Object.keys(e2);
6981
- if (Object.getOwnPropertySymbols) {
6982
- var o = Object.getOwnPropertySymbols(e2);
6983
- r2 && (o = o.filter(function(r3) {
6984
- return Object.getOwnPropertyDescriptor(e2, r3).enumerable;
6985
- })), t2.push.apply(t2, o);
6986
- }
6987
- return t2;
6988
- }
6989
- __name(ownKeys, "ownKeys");
6990
- function _objectSpread2(e2) {
6991
- for (var r2 = 1; r2 < arguments.length; r2++) {
6992
- var t2 = arguments[r2] != null ? arguments[r2] : {};
6993
- r2 % 2 ? ownKeys(Object(t2), !0).forEach(function(r3) {
6994
- _defineProperty(e2, r3, t2[r3]);
6995
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys(Object(t2)).forEach(function(r3) {
6996
- Object.defineProperty(e2, r3, Object.getOwnPropertyDescriptor(t2, r3));
6997
- });
6998
- }
6999
- return e2;
7000
- }
7001
- __name(_objectSpread2, "_objectSpread2");
7002
6878
  function useSyncState(defaultValue) {
7003
6879
  var _React$useReducer = React.useReducer(function(x) {
7004
6880
  return x + 1;
@@ -7046,7 +6922,7 @@ __name(getVendorPrefixedEventName, "getVendorPrefixedEventName");
7046
6922
  var internalAnimationEndName = getVendorPrefixedEventName("animationend"), internalTransitionEndName = getVendorPrefixedEventName("transitionend"), supportTransition = !!(internalAnimationEndName && internalTransitionEndName), animationEndName = internalAnimationEndName || "animationend", transitionEndName = internalTransitionEndName || "transitionend";
7047
6923
  function getTransitionName(transitionName, transitionType) {
7048
6924
  if (!transitionName) return null;
7049
- if (_typeof$1(transitionName) === "object") {
6925
+ if (_typeof(transitionName) === "object") {
7050
6926
  var type = transitionType.replace(/-\w/g, function(match2) {
7051
6927
  return match2[1].toUpperCase();
7052
6928
  });
@@ -7135,7 +7011,7 @@ function isActive(step) {
7135
7011
  }
7136
7012
  __name(isActive, "isActive");
7137
7013
  const useStepQueue = /* @__PURE__ */ __name(function(status, prepareOnly, callback) {
7138
- var _useState = useSafeState(STEP_NONE), _useState2 = _slicedToArray$1(_useState, 2), step = _useState2[0], setStep = _useState2[1], _useNextFrame = useNextFrame(), _useNextFrame2 = _slicedToArray$1(_useNextFrame, 2), nextFrame = _useNextFrame2[0], cancelNextFrame = _useNextFrame2[1];
7014
+ var _useState = useSafeState(STEP_NONE), _useState2 = _slicedToArray(_useState, 2), step = _useState2[0], setStep = _useState2[1], _useNextFrame = useNextFrame(), _useNextFrame2 = _slicedToArray(_useNextFrame, 2), nextFrame = _useNextFrame2[0], cancelNextFrame = _useNextFrame2[1];
7139
7015
  function startQueue() {
7140
7016
  setStep(STEP_PREPARE, !0);
7141
7017
  }
@@ -7158,7 +7034,7 @@ const useStepQueue = /* @__PURE__ */ __name(function(status, prepareOnly, callba
7158
7034
  }, []), [startQueue, step];
7159
7035
  }, "useStepQueue");
7160
7036
  function useStatus(supportMotion, visible, getElement, _ref) {
7161
- var _ref$motionEnter = _ref.motionEnter, motionEnter = _ref$motionEnter === void 0 ? !0 : _ref$motionEnter, _ref$motionAppear = _ref.motionAppear, motionAppear = _ref$motionAppear === void 0 ? !0 : _ref$motionAppear, _ref$motionLeave = _ref.motionLeave, motionLeave = _ref$motionLeave === void 0 ? !0 : _ref$motionLeave, motionDeadline = _ref.motionDeadline, motionLeaveImmediately = _ref.motionLeaveImmediately, onAppearPrepare = _ref.onAppearPrepare, onEnterPrepare = _ref.onEnterPrepare, onLeavePrepare = _ref.onLeavePrepare, onAppearStart = _ref.onAppearStart, onEnterStart = _ref.onEnterStart, onLeaveStart = _ref.onLeaveStart, onAppearActive = _ref.onAppearActive, onEnterActive = _ref.onEnterActive, onLeaveActive = _ref.onLeaveActive, onAppearEnd = _ref.onAppearEnd, onEnterEnd = _ref.onEnterEnd, onLeaveEnd = _ref.onLeaveEnd, onVisibleChanged = _ref.onVisibleChanged, _useState = useSafeState(), _useState2 = _slicedToArray$1(_useState, 2), asyncVisible = _useState2[0], setAsyncVisible = _useState2[1], _useSyncState = useSyncState(STATUS_NONE), _useSyncState2 = _slicedToArray$1(_useSyncState, 2), getStatus = _useSyncState2[0], setStatus = _useSyncState2[1], _useState3 = useSafeState(null), _useState4 = _slicedToArray$1(_useState3, 2), style2 = _useState4[0], setStyle = _useState4[1], currentStatus = getStatus(), mountedRef = useRef(!1), deadlineRef = useRef(null);
7037
+ var _ref$motionEnter = _ref.motionEnter, motionEnter = _ref$motionEnter === void 0 ? !0 : _ref$motionEnter, _ref$motionAppear = _ref.motionAppear, motionAppear = _ref$motionAppear === void 0 ? !0 : _ref$motionAppear, _ref$motionLeave = _ref.motionLeave, motionLeave = _ref$motionLeave === void 0 ? !0 : _ref$motionLeave, motionDeadline = _ref.motionDeadline, motionLeaveImmediately = _ref.motionLeaveImmediately, onAppearPrepare = _ref.onAppearPrepare, onEnterPrepare = _ref.onEnterPrepare, onLeavePrepare = _ref.onLeavePrepare, onAppearStart = _ref.onAppearStart, onEnterStart = _ref.onEnterStart, onLeaveStart = _ref.onLeaveStart, onAppearActive = _ref.onAppearActive, onEnterActive = _ref.onEnterActive, onLeaveActive = _ref.onLeaveActive, onAppearEnd = _ref.onAppearEnd, onEnterEnd = _ref.onEnterEnd, onLeaveEnd = _ref.onLeaveEnd, onVisibleChanged = _ref.onVisibleChanged, _useState = useSafeState(), _useState2 = _slicedToArray(_useState, 2), asyncVisible = _useState2[0], setAsyncVisible = _useState2[1], _useSyncState = useSyncState(STATUS_NONE), _useSyncState2 = _slicedToArray(_useSyncState, 2), getStatus = _useSyncState2[0], setStatus = _useSyncState2[1], _useState3 = useSafeState(null), _useState4 = _slicedToArray(_useState3, 2), style2 = _useState4[0], setStyle = _useState4[1], currentStatus = getStatus(), mountedRef = useRef(!1), deadlineRef = useRef(null);
7162
7038
  function getDomElement() {
7163
7039
  return getElement();
7164
7040
  }
@@ -7177,14 +7053,14 @@ function useStatus(supportMotion, visible, getElement, _ref) {
7177
7053
  status === STATUS_APPEAR && currentActive ? canEnd = onAppearEnd == null ? void 0 : onAppearEnd(element2, event) : status === STATUS_ENTER && currentActive ? canEnd = onEnterEnd == null ? void 0 : onEnterEnd(element2, event) : status === STATUS_LEAVE && currentActive && (canEnd = onLeaveEnd == null ? void 0 : onLeaveEnd(element2, event)), currentActive && canEnd !== !1 && updateMotionEndStatus();
7178
7054
  }
7179
7055
  }
7180
- }), _useDomMotionEvents = useDomMotionEvents(onInternalMotionEnd), _useDomMotionEvents2 = _slicedToArray$1(_useDomMotionEvents, 1), patchMotionEvents = _useDomMotionEvents2[0], getEventHandlers = /* @__PURE__ */ __name(function(targetStatus) {
7056
+ }), _useDomMotionEvents = useDomMotionEvents(onInternalMotionEnd), _useDomMotionEvents2 = _slicedToArray(_useDomMotionEvents, 1), patchMotionEvents = _useDomMotionEvents2[0], getEventHandlers = /* @__PURE__ */ __name(function(targetStatus) {
7181
7057
  switch (targetStatus) {
7182
7058
  case STATUS_APPEAR:
7183
- return _defineProperty$1(_defineProperty$1(_defineProperty$1({}, STEP_PREPARE, onAppearPrepare), STEP_START, onAppearStart), STEP_ACTIVE, onAppearActive);
7059
+ return _defineProperty(_defineProperty(_defineProperty({}, STEP_PREPARE, onAppearPrepare), STEP_START, onAppearStart), STEP_ACTIVE, onAppearActive);
7184
7060
  case STATUS_ENTER:
7185
- return _defineProperty$1(_defineProperty$1(_defineProperty$1({}, STEP_PREPARE, onEnterPrepare), STEP_START, onEnterStart), STEP_ACTIVE, onEnterActive);
7061
+ return _defineProperty(_defineProperty(_defineProperty({}, STEP_PREPARE, onEnterPrepare), STEP_START, onEnterStart), STEP_ACTIVE, onEnterActive);
7186
7062
  case STATUS_LEAVE:
7187
- return _defineProperty$1(_defineProperty$1(_defineProperty$1({}, STEP_PREPARE, onLeavePrepare), STEP_START, onLeaveStart), STEP_ACTIVE, onLeaveActive);
7063
+ return _defineProperty(_defineProperty(_defineProperty({}, STEP_PREPARE, onLeavePrepare), STEP_START, onLeaveStart), STEP_ACTIVE, onLeaveActive);
7188
7064
  default:
7189
7065
  return {};
7190
7066
  }
@@ -7204,7 +7080,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
7204
7080
  deadline: !0
7205
7081
  });
7206
7082
  }, motionDeadline))), step === STEP_PREPARED && updateMotionEndStatus(), DoStep;
7207
- }), _useStepQueue2 = _slicedToArray$1(_useStepQueue, 2), startStep = _useStepQueue2[0], step = _useStepQueue2[1], active = isActive(step);
7083
+ }), _useStepQueue2 = _slicedToArray(_useStepQueue, 2), startStep = _useStepQueue2[0], step = _useStepQueue2[1], active = isActive(step);
7208
7084
  activeRef.current = active, useIsomorphicLayoutEffect(function() {
7209
7085
  setAsyncVisible(visible);
7210
7086
  var isMounted = mountedRef.current;
@@ -7228,14 +7104,14 @@ function useStatus(supportMotion, visible, getElement, _ref) {
7228
7104
  asyncVisible && (firstMountChangeRef.current = !0), asyncVisible !== void 0 && currentStatus === STATUS_NONE && ((firstMountChangeRef.current || asyncVisible) && (onVisibleChanged == null || onVisibleChanged(asyncVisible)), firstMountChangeRef.current = !0);
7229
7105
  }, [asyncVisible, currentStatus]);
7230
7106
  var mergedStyle = style2;
7231
- return eventHandlers[STEP_PREPARE] && step === STEP_START && (mergedStyle = _objectSpread2$1({
7107
+ return eventHandlers[STEP_PREPARE] && step === STEP_START && (mergedStyle = _objectSpread2({
7232
7108
  transition: "none"
7233
7109
  }, mergedStyle)), [currentStatus, step, mergedStyle, asyncVisible != null ? asyncVisible : visible];
7234
7110
  }
7235
7111
  __name(useStatus, "useStatus");
7236
7112
  function genCSSMotion(config) {
7237
7113
  var transitionSupport = config;
7238
- _typeof$1(config) === "object" && (transitionSupport = config.transitionSupport);
7114
+ _typeof(config) === "object" && (transitionSupport = config.transitionSupport);
7239
7115
  function isSupportTransition(props, contextMotion) {
7240
7116
  return !!(props.motionName && transitionSupport && contextMotion !== !1);
7241
7117
  }
@@ -7250,19 +7126,19 @@ function genCSSMotion(config) {
7250
7126
  }
7251
7127
  }
7252
7128
  __name(getDomElement, "getDomElement");
7253
- var _useStatus = useStatus(supportMotion, visible, getDomElement, props), _useStatus2 = _slicedToArray$1(_useStatus, 4), status = _useStatus2[0], statusStep = _useStatus2[1], statusStyle = _useStatus2[2], mergedVisible = _useStatus2[3], renderedRef = React.useRef(mergedVisible);
7129
+ var _useStatus = useStatus(supportMotion, visible, getDomElement, props), _useStatus2 = _slicedToArray(_useStatus, 4), status = _useStatus2[0], statusStep = _useStatus2[1], statusStyle = _useStatus2[2], mergedVisible = _useStatus2[3], renderedRef = React.useRef(mergedVisible);
7254
7130
  mergedVisible && (renderedRef.current = !0);
7255
7131
  var setNodeRef = React.useCallback(function(node) {
7256
7132
  nodeRef.current = node, fillRef(ref, node);
7257
- }, [ref]), motionChildren, mergedProps = _objectSpread2$1(_objectSpread2$1({}, eventProps), {}, {
7133
+ }, [ref]), motionChildren, mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
7258
7134
  visible
7259
7135
  });
7260
7136
  if (!children)
7261
7137
  motionChildren = null;
7262
7138
  else if (status === STATUS_NONE)
7263
- mergedVisible ? motionChildren = children(_objectSpread2$1({}, mergedProps), setNodeRef) : !removeOnLeave && renderedRef.current && leavedClassName ? motionChildren = children(_objectSpread2$1(_objectSpread2$1({}, mergedProps), {}, {
7139
+ mergedVisible ? motionChildren = children(_objectSpread2({}, mergedProps), setNodeRef) : !removeOnLeave && renderedRef.current && leavedClassName ? motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
7264
7140
  className: leavedClassName
7265
- }), setNodeRef) : forceRender || !removeOnLeave && !leavedClassName ? motionChildren = children(_objectSpread2$1(_objectSpread2$1({}, mergedProps), {}, {
7141
+ }), setNodeRef) : forceRender || !removeOnLeave && !leavedClassName ? motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
7266
7142
  style: {
7267
7143
  display: "none"
7268
7144
  }
@@ -7271,8 +7147,8 @@ function genCSSMotion(config) {
7271
7147
  var statusSuffix;
7272
7148
  statusStep === STEP_PREPARE ? statusSuffix = "prepare" : isActive(statusStep) ? statusSuffix = "active" : statusStep === STEP_START && (statusSuffix = "start");
7273
7149
  var motionCls = getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix));
7274
- motionChildren = children(_objectSpread2$1(_objectSpread2$1({}, mergedProps), {}, {
7275
- className: clsx(getTransitionName(motionName, status), _defineProperty$1(_defineProperty$1({}, motionCls, motionCls && statusSuffix), motionName, typeof motionName == "string")),
7150
+ motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
7151
+ className: clsx(getTransitionName(motionName, status), _defineProperty(_defineProperty({}, motionCls, motionCls && statusSuffix), motionName, typeof motionName == "string")),
7276
7152
  style: statusStyle
7277
7153
  }), setNodeRef);
7278
7154
  }
@@ -7293,9 +7169,9 @@ const CSSMotion = genCSSMotion(supportTransition);
7293
7169
  var STATUS_ADD = "add", STATUS_KEEP = "keep", STATUS_REMOVE = "remove", STATUS_REMOVED = "removed";
7294
7170
  function wrapKeyToObject(key) {
7295
7171
  var keyObj;
7296
- return key && _typeof$1(key) === "object" && "key" in key ? keyObj = key : keyObj = {
7172
+ return key && _typeof(key) === "object" && "key" in key ? keyObj = key : keyObj = {
7297
7173
  key
7298
- }, _objectSpread2$1(_objectSpread2$1({}, keyObj), {}, {
7174
+ }, _objectSpread2(_objectSpread2({}, keyObj), {}, {
7299
7175
  key: String(keyObj.key)
7300
7176
  });
7301
7177
  }
@@ -7312,20 +7188,20 @@ function diffKeys() {
7312
7188
  var currentKeyObj = currentKeyObjects[i];
7313
7189
  if (currentKeyObj.key === keyObj.key) {
7314
7190
  currentIndex < i && (list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function(obj) {
7315
- return _objectSpread2$1(_objectSpread2$1({}, obj), {}, {
7191
+ return _objectSpread2(_objectSpread2({}, obj), {}, {
7316
7192
  status: STATUS_ADD
7317
7193
  });
7318
- })), currentIndex = i), list.push(_objectSpread2$1(_objectSpread2$1({}, currentKeyObj), {}, {
7194
+ })), currentIndex = i), list.push(_objectSpread2(_objectSpread2({}, currentKeyObj), {}, {
7319
7195
  status: STATUS_KEEP
7320
7196
  })), currentIndex += 1, hit = !0;
7321
7197
  break;
7322
7198
  }
7323
7199
  }
7324
- hit || list.push(_objectSpread2$1(_objectSpread2$1({}, keyObj), {}, {
7200
+ hit || list.push(_objectSpread2(_objectSpread2({}, keyObj), {}, {
7325
7201
  status: STATUS_REMOVE
7326
7202
  }));
7327
7203
  }), currentIndex < currentLen && (list = list.concat(currentKeyObjects.slice(currentIndex).map(function(obj) {
7328
- return _objectSpread2$1(_objectSpread2$1({}, obj), {}, {
7204
+ return _objectSpread2(_objectSpread2({}, obj), {}, {
7329
7205
  status: STATUS_ADD
7330
7206
  });
7331
7207
  })));
@@ -7357,11 +7233,11 @@ function genCSSMotionList(transitionSupport) {
7357
7233
  _classCallCheck(this, CSSMotionList3);
7358
7234
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
7359
7235
  args[_key] = arguments[_key];
7360
- return _this = _super.call.apply(_super, [this].concat(args)), _defineProperty$1(_assertThisInitialized(_this), "state", {
7236
+ return _this = _super.call.apply(_super, [this].concat(args)), _defineProperty(_assertThisInitialized(_this), "state", {
7361
7237
  keyEntities: []
7362
- }), _defineProperty$1(_assertThisInitialized(_this), "removeKey", function(removeKey) {
7238
+ }), _defineProperty(_assertThisInitialized(_this), "removeKey", function(removeKey) {
7363
7239
  var keyEntities = _this.state.keyEntities, nextKeyEntities = keyEntities.map(function(entity) {
7364
- return entity.key !== removeKey ? entity : _objectSpread2$1(_objectSpread2$1({}, entity), {}, {
7240
+ return entity.key !== removeKey ? entity : _objectSpread2(_objectSpread2({}, entity), {}, {
7365
7241
  status: STATUS_REMOVED
7366
7242
  });
7367
7243
  });
@@ -7394,7 +7270,7 @@ function genCSSMotionList(transitionSupport) {
7394
7270
  }
7395
7271
  }, "onVisibleChanged")
7396
7272
  }), function(props, ref) {
7397
- return children(_objectSpread2$1(_objectSpread2$1({}, props), {}, {
7273
+ return children(_objectSpread2(_objectSpread2({}, props), {}, {
7398
7274
  index
7399
7275
  }), ref);
7400
7276
  });
@@ -7416,7 +7292,7 @@ function genCSSMotionList(transitionSupport) {
7416
7292
  }, "getDerivedStateFromProps")
7417
7293
  }]), CSSMotionList3;
7418
7294
  }(React.Component);
7419
- return _defineProperty$1(CSSMotionList2, "defaultProps", {
7295
+ return _defineProperty(CSSMotionList2, "defaultProps", {
7420
7296
  component: "div"
7421
7297
  }), CSSMotionList2;
7422
7298
  }
@@ -7976,7 +7852,7 @@ function pickAttrs(props) {
7976
7852
  }
7977
7853
  __name(pickAttrs, "pickAttrs");
7978
7854
  var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
7979
- var prefixCls = props.prefixCls, style2 = props.style, className = props.className, _props$duration = props.duration, duration = _props$duration === void 0 ? 4.5 : _props$duration, showProgress = props.showProgress, _props$pauseOnHover = props.pauseOnHover, pauseOnHover = _props$pauseOnHover === void 0 ? !0 : _props$pauseOnHover, eventKey = props.eventKey, content = props.content, closable = props.closable, _props$closeIcon = props.closeIcon, closeIcon = _props$closeIcon === void 0 ? "x" : _props$closeIcon, divProps = props.props, onClick = props.onClick, onNoticeClose = props.onNoticeClose, times = props.times, forcedHovering = props.hovering, _React$useState = React.useState(!1), _React$useState2 = _slicedToArray$1(_React$useState, 2), hovering = _React$useState2[0], setHovering = _React$useState2[1], _React$useState3 = React.useState(0), _React$useState4 = _slicedToArray$1(_React$useState3, 2), percent = _React$useState4[0], setPercent = _React$useState4[1], _React$useState5 = React.useState(0), _React$useState6 = _slicedToArray$1(_React$useState5, 2), spentTime = _React$useState6[0], setSpentTime = _React$useState6[1], mergedHovering = forcedHovering || hovering, mergedShowProgress = duration > 0 && showProgress, onInternalClose = /* @__PURE__ */ __name(function() {
7855
+ var prefixCls = props.prefixCls, style2 = props.style, className = props.className, _props$duration = props.duration, duration = _props$duration === void 0 ? 4.5 : _props$duration, showProgress = props.showProgress, _props$pauseOnHover = props.pauseOnHover, pauseOnHover = _props$pauseOnHover === void 0 ? !0 : _props$pauseOnHover, eventKey = props.eventKey, content = props.content, closable = props.closable, _props$closeIcon = props.closeIcon, closeIcon = _props$closeIcon === void 0 ? "x" : _props$closeIcon, divProps = props.props, onClick = props.onClick, onNoticeClose = props.onNoticeClose, times = props.times, forcedHovering = props.hovering, _React$useState = React.useState(!1), _React$useState2 = _slicedToArray(_React$useState, 2), hovering = _React$useState2[0], setHovering = _React$useState2[1], _React$useState3 = React.useState(0), _React$useState4 = _slicedToArray(_React$useState3, 2), percent = _React$useState4[0], setPercent = _React$useState4[1], _React$useState5 = React.useState(0), _React$useState6 = _slicedToArray(_React$useState5, 2), spentTime = _React$useState6[0], setSpentTime = _React$useState6[1], mergedHovering = forcedHovering || hovering, mergedShowProgress = duration > 0 && showProgress, onInternalClose = /* @__PURE__ */ __name(function() {
7980
7856
  onNoticeClose(eventKey);
7981
7857
  }, "onInternalClose"), onCloseKeyDown = /* @__PURE__ */ __name(function(e2) {
7982
7858
  (e2.key === "Enter" || e2.code === "Enter" || e2.keyCode === KeyCode.ENTER) && onInternalClose();
@@ -8004,13 +7880,13 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8004
7880
  }
8005
7881
  }, [duration, spentTime, mergedHovering, mergedShowProgress, times]);
8006
7882
  var closableObj = React.useMemo(function() {
8007
- return _typeof$1(closable) === "object" && closable !== null ? closable : closable ? {
7883
+ return _typeof(closable) === "object" && closable !== null ? closable : closable ? {
8008
7884
  closeIcon
8009
7885
  } : {};
8010
7886
  }, [closable, closeIcon]), ariaProps = pickAttrs(closableObj, !0), validPercent = 100 - (!percent || percent < 0 ? 0 : percent > 100 ? 100 : percent), noticePrefixCls = "".concat(prefixCls, "-notice");
8011
7887
  return /* @__PURE__ */ React.createElement("div", _extends({}, divProps, {
8012
7888
  ref,
8013
- className: clsx(noticePrefixCls, className, _defineProperty$1({}, "".concat(noticePrefixCls, "-closable"), closable)),
7889
+ className: clsx(noticePrefixCls, className, _defineProperty({}, "".concat(noticePrefixCls, "-closable"), closable)),
8014
7890
  style: style2,
8015
7891
  onMouseEnter: /* @__PURE__ */ __name(function(e2) {
8016
7892
  var _divProps$onMouseEnte;
@@ -8043,18 +7919,18 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8043
7919
  threshold: DEFAULT_THRESHOLD,
8044
7920
  gap: DEFAULT_GAP
8045
7921
  };
8046
- if (config && _typeof$1(config) === "object") {
7922
+ if (config && _typeof(config) === "object") {
8047
7923
  var _config$offset, _config$threshold, _config$gap;
8048
7924
  result.offset = (_config$offset = config.offset) !== null && _config$offset !== void 0 ? _config$offset : DEFAULT_OFFSET, result.threshold = (_config$threshold = config.threshold) !== null && _config$threshold !== void 0 ? _config$threshold : DEFAULT_THRESHOLD, result.gap = (_config$gap = config.gap) !== null && _config$gap !== void 0 ? _config$gap : DEFAULT_GAP;
8049
7925
  }
8050
7926
  return [!!config, result];
8051
7927
  }, "useStack"), _excluded$1 = ["className", "style", "classNames", "styles"], NoticeList = /* @__PURE__ */ __name(function(props) {
8052
- var configList = props.configList, placement = props.placement, prefixCls = props.prefixCls, className = props.className, style2 = props.style, motion = props.motion, onAllNoticeRemoved = props.onAllNoticeRemoved, onNoticeClose = props.onNoticeClose, stackConfig = props.stack, _useContext = useContext(NotificationContext), ctxCls = _useContext.classNames, dictRef = useRef({}), _useState = useState(null), _useState2 = _slicedToArray$1(_useState, 2), latestNotice = _useState2[0], setLatestNotice = _useState2[1], _useState3 = useState([]), _useState4 = _slicedToArray$1(_useState3, 2), hoverKeys = _useState4[0], setHoverKeys = _useState4[1], keys = configList.map(function(config) {
7928
+ var configList = props.configList, placement = props.placement, prefixCls = props.prefixCls, className = props.className, style2 = props.style, motion = props.motion, onAllNoticeRemoved = props.onAllNoticeRemoved, onNoticeClose = props.onNoticeClose, stackConfig = props.stack, _useContext = useContext(NotificationContext), ctxCls = _useContext.classNames, dictRef = useRef({}), _useState = useState(null), _useState2 = _slicedToArray(_useState, 2), latestNotice = _useState2[0], setLatestNotice = _useState2[1], _useState3 = useState([]), _useState4 = _slicedToArray(_useState3, 2), hoverKeys = _useState4[0], setHoverKeys = _useState4[1], keys = configList.map(function(config) {
8053
7929
  return {
8054
7930
  config,
8055
7931
  key: String(config.key)
8056
7932
  };
8057
- }), _useStack = useStack(stackConfig), _useStack2 = _slicedToArray$1(_useStack, 2), stack = _useStack2[0], _useStack2$ = _useStack2[1], offset = _useStack2$.offset, threshold = _useStack2$.threshold, gap = _useStack2$.gap, expanded = stack && (hoverKeys.length > 0 || keys.length <= threshold), placementMotion = typeof motion == "function" ? motion(placement) : motion;
7933
+ }), _useStack = useStack(stackConfig), _useStack2 = _slicedToArray(_useStack, 2), stack = _useStack2[0], _useStack2$ = _useStack2[1], offset = _useStack2$.offset, threshold = _useStack2$.threshold, gap = _useStack2$.gap, expanded = stack && (hoverKeys.length > 0 || keys.length <= threshold), placementMotion = typeof motion == "function" ? motion(placement) : motion;
8058
7934
  return useEffect(function() {
8059
7935
  stack && hoverKeys.length > 1 && setHoverKeys(function(prev) {
8060
7936
  return prev.filter(function(key) {
@@ -8072,7 +7948,7 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8072
7948
  }
8073
7949
  }, [keys, stack]), /* @__PURE__ */ React__default.createElement(CSSMotionList, _extends({
8074
7950
  key: placement,
8075
- className: clsx(prefixCls, "".concat(prefixCls, "-").concat(placement), ctxCls == null ? void 0 : ctxCls.list, className, _defineProperty$1(_defineProperty$1({}, "".concat(prefixCls, "-stack"), !!stack), "".concat(prefixCls, "-stack-expanded"), expanded)),
7951
+ className: clsx(prefixCls, "".concat(prefixCls, "-").concat(placement), ctxCls == null ? void 0 : ctxCls.list, className, _defineProperty(_defineProperty({}, "".concat(prefixCls, "-stack"), !!stack), "".concat(prefixCls, "-stack-expanded"), expanded)),
8076
7952
  style: style2,
8077
7953
  keys,
8078
7954
  motionAppear: !0
@@ -8101,7 +7977,7 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8101
7977
  return /* @__PURE__ */ React__default.createElement("div", {
8102
7978
  ref: nodeRef,
8103
7979
  className: clsx("".concat(prefixCls, "-notice-wrapper"), motionClassName, configClassNames == null ? void 0 : configClassNames.wrapper),
8104
- style: _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, motionStyle), stackStyle), configStyles == null ? void 0 : configStyles.wrapper),
7980
+ style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), stackStyle), configStyles == null ? void 0 : configStyles.wrapper),
8105
7981
  onMouseEnter: /* @__PURE__ */ __name(function() {
8106
7982
  return setHoverKeys(function(prev) {
8107
7983
  return prev.includes(strKey) ? prev : [].concat(_toConsumableArray(prev), [strKey]);
@@ -8131,7 +8007,7 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8131
8007
  })));
8132
8008
  });
8133
8009
  }, "NoticeList2"), Notifications = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8134
- var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-notification" : _props$prefixCls, container = props.container, motion = props.motion, maxCount = props.maxCount, className = props.className, style2 = props.style, onAllRemoved = props.onAllRemoved, stack = props.stack, renderNotifications = props.renderNotifications, _React$useState = React.useState([]), _React$useState2 = _slicedToArray$1(_React$useState, 2), configList = _React$useState2[0], setConfigList = _React$useState2[1], onNoticeClose = /* @__PURE__ */ __name(function(key) {
8010
+ var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-notification" : _props$prefixCls, container = props.container, motion = props.motion, maxCount = props.maxCount, className = props.className, style2 = props.style, onAllRemoved = props.onAllRemoved, stack = props.stack, renderNotifications = props.renderNotifications, _React$useState = React.useState([]), _React$useState2 = _slicedToArray(_React$useState, 2), configList = _React$useState2[0], setConfigList = _React$useState2[1], onNoticeClose = /* @__PURE__ */ __name(function(key) {
8135
8011
  var _config$onClose, config = configList.find(function(item) {
8136
8012
  return item.key === key;
8137
8013
  });
@@ -8147,7 +8023,7 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8147
8023
  setConfigList(function(list) {
8148
8024
  var clone = _toConsumableArray(list), index = clone.findIndex(function(item) {
8149
8025
  return item.key === config.key;
8150
- }), innerConfig = _objectSpread2$1({}, config);
8026
+ }), innerConfig = _objectSpread2({}, config);
8151
8027
  if (index >= 0) {
8152
8028
  var _list$index;
8153
8029
  innerConfig.times = (((_list$index = list[index]) === null || _list$index === void 0 ? void 0 : _list$index.times) || 0) + 1, clone[index] = innerConfig;
@@ -8164,7 +8040,7 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8164
8040
  }, "destroy")
8165
8041
  };
8166
8042
  });
8167
- var _React$useState3 = React.useState({}), _React$useState4 = _slicedToArray$1(_React$useState3, 2), placements = _React$useState4[0], setPlacements = _React$useState4[1];
8043
+ var _React$useState3 = React.useState({}), _React$useState4 = _slicedToArray(_React$useState3, 2), placements = _React$useState4[0], setPlacements = _React$useState4[1];
8168
8044
  React.useEffect(function() {
8169
8045
  var nextPlacements = {};
8170
8046
  configList.forEach(function(config) {
@@ -8176,7 +8052,7 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8176
8052
  }, [configList]);
8177
8053
  var onAllNoticeRemoved = /* @__PURE__ */ __name(function(placement) {
8178
8054
  setPlacements(function(originPlacements) {
8179
- var clone = _objectSpread2$1({}, originPlacements), list = clone[placement] || [];
8055
+ var clone = _objectSpread2({}, originPlacements), list = clone[placement] || [];
8180
8056
  return list.length || delete clone[placement], clone;
8181
8057
  });
8182
8058
  }, "onAllNoticeRemoved2"), emptyRef = React.useRef(!1);
@@ -8218,7 +8094,7 @@ function mergeConfig() {
8218
8094
  }
8219
8095
  __name(mergeConfig, "mergeConfig");
8220
8096
  function useNotification() {
8221
- var rootConfig = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _rootConfig$getContai = rootConfig.getContainer, getContainer = _rootConfig$getContai === void 0 ? defaultGetContainer : _rootConfig$getContai, motion = rootConfig.motion, prefixCls = rootConfig.prefixCls, maxCount = rootConfig.maxCount, className = rootConfig.className, style2 = rootConfig.style, onAllRemoved = rootConfig.onAllRemoved, stack = rootConfig.stack, renderNotifications = rootConfig.renderNotifications, shareConfig = _objectWithoutProperties(rootConfig, _excluded), _React$useState = React.useState(), _React$useState2 = _slicedToArray$1(_React$useState, 2), container = _React$useState2[0], setContainer = _React$useState2[1], notificationsRef = React.useRef(), contextHolder = /* @__PURE__ */ React.createElement(Notifications, {
8097
+ var rootConfig = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _rootConfig$getContai = rootConfig.getContainer, getContainer = _rootConfig$getContai === void 0 ? defaultGetContainer : _rootConfig$getContai, motion = rootConfig.motion, prefixCls = rootConfig.prefixCls, maxCount = rootConfig.maxCount, className = rootConfig.className, style2 = rootConfig.style, onAllRemoved = rootConfig.onAllRemoved, stack = rootConfig.stack, renderNotifications = rootConfig.renderNotifications, shareConfig = _objectWithoutProperties(rootConfig, _excluded), _React$useState = React.useState(), _React$useState2 = _slicedToArray(_React$useState, 2), container = _React$useState2[0], setContainer = _React$useState2[1], notificationsRef = React.useRef(), contextHolder = /* @__PURE__ */ React.createElement(Notifications, {
8222
8098
  container,
8223
8099
  ref: notificationsRef,
8224
8100
  prefixCls,
@@ -8229,7 +8105,7 @@ function useNotification() {
8229
8105
  onAllRemoved,
8230
8106
  stack,
8231
8107
  renderNotifications
8232
- }), _React$useState3 = React.useState([]), _React$useState4 = _slicedToArray$1(_React$useState3, 2), taskQueue = _React$useState4[0], setTaskQueue = _React$useState4[1], api = React.useMemo(function() {
8108
+ }), _React$useState3 = React.useState([]), _React$useState4 = _slicedToArray(_React$useState3, 2), taskQueue = _React$useState4[0], setTaskQueue = _React$useState4[1], api = React.useMemo(function() {
8233
8109
  return {
8234
8110
  open: /* @__PURE__ */ __name(function(config) {
8235
8111
  var mergedConfig = mergeConfig(shareConfig, config);
@@ -8504,7 +8380,6 @@ let UniverMobileUIPlugin = (_a17 = class extends Plugin {
8504
8380
  [ILocalStorageService, { useClass: DesktopLocalStorageService, lazy: !0 }],
8505
8381
  [IBeforeCloseService, { useClass: DesktopBeforeCloseService }],
8506
8382
  [ICanvasPopupService, { useClass: CanvasPopupService }],
8507
- [IProgressService, { useClass: ProgressService }],
8508
8383
  [CanvasFloatDomService],
8509
8384
  // controllers
8510
8385
  [
@@ -8580,7 +8455,6 @@ let UniverUIPlugin = (_a18 = class extends Plugin {
8580
8455
  [IBeforeCloseService, { useClass: DesktopBeforeCloseService }],
8581
8456
  [ILocalFileService, { useClass: DesktopLocalFileService }],
8582
8457
  [ICanvasPopupService, { useClass: CanvasPopupService }],
8583
- [IProgressService, { useClass: ProgressService }],
8584
8458
  [CanvasFloatDomService],
8585
8459
  [IUIController, {
8586
8460
  useFactory: /* @__PURE__ */ __name((injector) => injector.createInstance(DesktopUIController, this._config), "useFactory"),
@@ -8921,8 +8795,8 @@ function handelTableToJson(table) {
8921
8795
  data[r2][c2] = cell;
8922
8796
  const rowSpan = (_a19 = Number(td.getAttribute("rowSpan"))) != null ? _a19 : 1, colSpan = (_b = Number(td.getAttribute("colSpan"))) != null ? _b : 1;
8923
8797
  if (rowSpan > 1 || colSpan > 1) {
8924
- const first = { rs: +rowSpan - 1, cs: +colSpan - 1, r: r2, c: c2 };
8925
- data[r2][c2].mc = first;
8798
+ const first2 = { rs: +rowSpan - 1, cs: +colSpan - 1, r: r2, c: c2 };
8799
+ data[r2][c2].mc = first2;
8926
8800
  for (let rp = 0; rp < rowSpan; rp++)
8927
8801
  for (let cp = 0; cp < colSpan; cp++)
8928
8802
  rp === 0 && cp === 0 || (data[r2 + rp][c2 + cp] = { mc: null });
@@ -9010,8 +8884,8 @@ function handelExcelToJson(html) {
9010
8884
  data[r2][c2] = cell;
9011
8885
  const rowSpan = (_a20 = Number(td.getAttribute("rowSpan"))) != null ? _a20 : 1, colSpan = (_b = Number(td.getAttribute("colSpan"))) != null ? _b : 1;
9012
8886
  if (rowSpan > 1 || colSpan > 1) {
9013
- const first = { rs: +rowSpan - 1, cs: +colSpan - 1, r: r2, c: c2 };
9014
- data[r2][c2].mc = first;
8887
+ const first2 = { rs: +rowSpan - 1, cs: +colSpan - 1, r: r2, c: c2 };
8888
+ data[r2][c2].mc = first2;
9015
8889
  for (let rp = 0; rp < rowSpan; rp++)
9016
8890
  for (let cp = 0; cp < colSpan; cp++)
9017
8891
  rp === 0 && cp === 0 || (data[r2 + rp][c2 + cp] = { mc: null });
@@ -9102,7 +8976,6 @@ export {
9102
8976
  IMessageService,
9103
8977
  INotificationService,
9104
8978
  IPlatformService,
9105
- IProgressService,
9106
8979
  IShortcutService,
9107
8980
  ISidebarService,
9108
8981
  IUIController,
@@ -9123,7 +8996,6 @@ export {
9123
8996
  PasteCommand,
9124
8997
  PlatformService,
9125
8998
  ProgressBar,
9126
- ProgressService,
9127
8999
  RedoShortcutItem,
9128
9000
  Ribbon,
9129
9001
  RibbonDataGroup,