@univerjs/ui 0.13.0 → 0.14.0

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
@@ -3,23 +3,23 @@ var u2 = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
5
  var d2 = (e, t, n) => t in e ? c2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var P = (e, t, n) => d2(e, typeof t != "symbol" ? t + "" : t, n);
6
+ var F = (e, t, n) => d2(e, typeof t != "symbol" ? t + "" : t, n);
7
7
  var m3 = (e, t, n) => t.has(e) ? u2("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n);
8
- import { Disposable as p1, createIdentifier as C1, CommandType as t3, toDisposable as f1, IUniverInstanceService as T1, DocumentFlavor as Ot, LocaleService as L1, ColorKit as V3, NAMED_STYLE_MAP as f2, IConfigService as G1, ICommandService as X1, NamedStyleType as P1, Workbook as h2, UniverInstanceType as b3, DocumentDataModel as d9, SlideDataModel as C2, remove as $t, FOCUSING_UNIVER_EDITOR as Ne, IContextService as pe, Inject as m1, Injector as V1, merge as De, convertObservableToBehaviorSubject as v2, isRealNum as g2, ErrorService as p2, RedoCommand as U3, UndoCommand as z3, IUndoRedoService as m2, EDITOR_ACTIVATED as f9, FOCUSING_FX_BAR_EDITOR as h9, Optional as C9, dedupeBy as b2, generateRandomId as Ce, throttle as L2, ThemeService as W3, LifecycleStages as L3, LifecycleUnreachableError as w2, isInternalEditorID as y2, LifecycleService as v9, ILogService as _2, DependentOn as g9, Plugin as p9, registerDependencies as m9, mergeOverrideWithDependencies as b9, ILocalStorageService as L9, touchDependencies as ne, BaselineOffset as w3, getBorderStyleType as D1, BorderStyleTypes as M2, Tools as w9 } from "@univerjs/core";
9
- import { BehaviorSubject as k1, distinctUntilChanged as y9, Observable as ve, switchMap as I2, isObservable as Te, fromEvent as x2, Subject as E1, of as me, combineLatest as le, merge as H2, first as S2, throttleTime as y3, animationFrameScheduler as _3, map as _9, filter as Et, debounceTime as R2, startWith as V2, ReplaySubject as O2 } from "rxjs";
8
+ import { Disposable as g1, createIdentifier as p1, CommandType as t3, toDisposable as f1, IUniverInstanceService as T1, DocumentFlavor as Ot, LocaleService as L1, ColorKit as V3, NAMED_STYLE_MAP as f2, IConfigService as G1, ICommandService as X1, NamedStyleType as P1, Workbook as h2, UniverInstanceType as b3, DocumentDataModel as d9, SlideDataModel as C2, remove as $t, FOCUSING_UNIVER_EDITOR as Ne, IContextService as pe, Inject as m1, Injector as V1, merge as De, convertObservableToBehaviorSubject as v2, isRealNum as g2, ErrorService as p2, RedoCommand as U3, UndoCommand as z3, IUndoRedoService as m2, EDITOR_ACTIVATED as f9, FOCUSING_FX_BAR_EDITOR as h9, Optional as C9, dedupeBy as b2, generateRandomId as Ce, throttle as L2, ThemeService as W3, LifecycleStages as L3, LifecycleUnreachableError as w2, isInternalEditorID as y2, LifecycleService as v9, ILogService as _2, IConfirmService as Y3, DependentOn as g9, Plugin as p9, registerDependencies as m9, mergeOverrideWithDependencies as b9, ILocalStorageService as L9, touchDependencies as ne, BaselineOffset as w3, getBorderStyleType as N1, BorderStyleTypes as M2, Tools as w9 } from "@univerjs/core";
9
+ import { BehaviorSubject as k1, distinctUntilChanged as y9, Observable as ve, switchMap as I2, isObservable as Te, fromEvent as x2, Subject as D1, of as me, combineLatest as le, merge as H2, first as S2, throttleTime as y3, animationFrameScheduler as _3, map as _9, filter as Et, debounceTime as R2, startWith as V2, ReplaySubject as O2 } from "rxjs";
10
10
  import { useRef as t1, createElement as M, forwardRef as I, useEffect as q, useMemo as Q, useState as Y, useCallback as n3, memo as M9, createContext as I9, useContext as r3, useImperativeHandle as $2, Fragment as Nt, useLayoutEffect as O3, cloneElement as E2 } from "react";
11
11
  import { jsx as h, Fragment as o3, jsxs as K } from "react/jsx-runtime";
12
12
  import { useDependency as k, useObservable as d1, useInjector as N2, connectInjector as $1 } from "@wendellhu/redi/react-bindings";
13
13
  export * from "@wendellhu/redi/react-bindings";
14
- import { clsx as n1, isBrowser as D2, resizeObserverCtor as T2, Button as M3, DropdownMenu as $3, Tooltip as Y3, InputNumber as Z2, TinyMenuGroup as A2, Menu as B2, MenuItem as E3, MenuItemGroup as N3, SubMenu as Dt, MessageType as P2, KBD as F2, divideYClassName as k2, HoverCard as j2, borderClassName as U2, Dropdown as x9, divideXClassName as Tt, borderBottomClassName as Ze, Popup as H9, borderLeftBottomClassName as z2, scrollbarClassName as W2, ConfigProvider as S9, ConfigContext as Y2, ColorPicker as G2, render as Oe, unmount as R9, Confirm as X2, Dialog as q2, Gallery as J2, Messager as Q2, removeMessage as _e, message as K2, toast as e4, Toaster as t4 } from "@univerjs/design";
14
+ import { clsx as n1, isBrowser as D2, resizeObserverCtor as T2, Button as M3, DropdownMenu as $3, Tooltip as G3, InputNumber as Z2, TinyMenuGroup as A2, Menu as B2, MenuItem as E3, MenuItemGroup as N3, SubMenu as Dt, MessageType as P2, KBD as F2, divideYClassName as k2, HoverCard as j2, borderClassName as U2, Dropdown as x9, divideXClassName as Tt, borderBottomClassName as Ze, Popup as H9, borderLeftBottomClassName as z2, scrollbarClassName as W2, ConfigProvider as S9, ConfigContext as Y2, ColorPicker as G2, render as Oe, unmount as R9, Confirm as X2, Dialog as q2, Gallery as J2, Messager as Q2, removeMessage as _e, message as K2, toast as e4, Toaster as t4 } from "@univerjs/design";
15
15
  import { map as Zt } from "rxjs/operators";
16
16
  import { IRenderManagerService as V9, UniverRenderEnginePlugin as O9, ptToPx as n4 } from "@univerjs/engine-render";
17
17
  import { createPortal as $9 } from "react-dom";
18
- class G3 extends p1 {
18
+ class X3 extends g1 {
19
19
  constructor() {
20
20
  super(...arguments);
21
- P(this, "_open$", new k1(!1));
22
- P(this, "open$", this._open$.pipe(y9()));
21
+ F(this, "_open$", new k1(!1));
22
+ F(this, "open$", this._open$.pipe(y9()));
23
23
  }
24
24
  get isOpen() {
25
25
  return this._open$.getValue();
@@ -34,11 +34,11 @@ class G3 extends p1 {
34
34
  this._open$.next(!1);
35
35
  }
36
36
  }
37
- const Qi = C1("ui.left-sidebar.service"), be = C1("ui.sidebar.service"), E9 = "ShortcutPanel", i3 = {
37
+ const Qi = p1("ui.left-sidebar.service"), be = p1("ui.sidebar.service"), E9 = "ShortcutPanel", i3 = {
38
38
  id: "base-ui.operation.toggle-shortcut-panel",
39
39
  type: t3.OPERATION,
40
40
  handler: (e) => {
41
- const t = e.get(G3), n = e.get(be);
41
+ const t = e.get(X3), n = e.get(be);
42
42
  return t.isOpen ? (t.close(), n.close()) : (t.open(), n.open({
43
43
  header: { title: "shortcut-panel.title" },
44
44
  children: { label: E9 }
@@ -664,14 +664,14 @@ const L4 = {
664
664
  clipRule: "evenodd"
665
665
  }
666
666
  }]
667
- }, X3 = I(function(t, n) {
667
+ }, q3 = I(function(t, n) {
668
668
  return M(x, Object.assign({}, t, {
669
669
  id: "check-mark-icon",
670
670
  ref: n,
671
671
  icon: L4
672
672
  }));
673
673
  });
674
- X3.displayName = "CheckMarkIcon";
674
+ q3.displayName = "CheckMarkIcon";
675
675
  const w4 = {
676
676
  tag: "svg",
677
677
  attrs: {
@@ -688,14 +688,14 @@ const w4 = {
688
688
  d: "M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z"
689
689
  }
690
690
  }]
691
- }, q3 = I(function(t, n) {
691
+ }, J3 = I(function(t, n) {
692
692
  return M(x, Object.assign({}, t, {
693
693
  id: "close-icon",
694
694
  ref: n,
695
695
  icon: w4
696
696
  }));
697
697
  });
698
- q3.displayName = "CloseIcon";
698
+ J3.displayName = "CloseIcon";
699
699
  const y4 = {
700
700
  tag: "svg",
701
701
  attrs: {
@@ -1252,14 +1252,14 @@ const B4 = {
1252
1252
  clipRule: "evenodd"
1253
1253
  }
1254
1254
  }]
1255
- }, J3 = I(function(t, n) {
1255
+ }, Q3 = I(function(t, n) {
1256
1256
  return M(x, Object.assign({}, t, {
1257
1257
  id: "function-icon",
1258
1258
  ref: n,
1259
1259
  icon: B4
1260
1260
  }));
1261
1261
  });
1262
- J3.displayName = "FunctionIcon";
1262
+ Q3.displayName = "FunctionIcon";
1263
1263
  const P4 = {
1264
1264
  tag: "svg",
1265
1265
  attrs: {
@@ -1970,14 +1970,14 @@ const o0 = {
1970
1970
  }
1971
1971
  }
1972
1972
  ]
1973
- }, Q3 = I(function(t, n) {
1973
+ }, K3 = I(function(t, n) {
1974
1974
  return M(x, Object.assign({}, t, {
1975
1975
  id: "more-function-icon",
1976
1976
  ref: n,
1977
1977
  icon: o0
1978
1978
  }));
1979
1979
  });
1980
- Q3.displayName = "MoreFunctionIcon";
1980
+ K3.displayName = "MoreFunctionIcon";
1981
1981
  const i0 = {
1982
1982
  tag: "svg",
1983
1983
  attrs: {
@@ -2373,14 +2373,14 @@ const C0 = {
2373
2373
  clipRule: "evenodd"
2374
2374
  }
2375
2375
  }]
2376
- }, K3 = I(function(t, n) {
2376
+ }, et = I(function(t, n) {
2377
2377
  return M(x, Object.assign({}, t, {
2378
2378
  id: "reduce-icon",
2379
2379
  ref: n,
2380
2380
  icon: C0
2381
2381
  }));
2382
2382
  });
2383
- K3.displayName = "ReduceIcon";
2383
+ et.displayName = "ReduceIcon";
2384
2384
  const v0 = {
2385
2385
  tag: "svg",
2386
2386
  attrs: {
@@ -4783,7 +4783,7 @@ const Me = {
4783
4783
  FreezeColumnIcon: c6,
4784
4784
  FreezeRowIcon: u6,
4785
4785
  FreezeToSelectedIcon: d6,
4786
- FunctionIcon: J3,
4786
+ FunctionIcon: Q3,
4787
4787
  GridIcon: f6,
4788
4788
  HeaderFooterIcon: h6,
4789
4789
  HideDoubleIcon: pn,
@@ -4823,7 +4823,7 @@ const Me = {
4823
4823
  RedoIcon: D6,
4824
4824
  ReduceDigitsIcon: T6,
4825
4825
  ReduceDoubleIcon: En,
4826
- ReduceIcon: K3,
4826
+ ReduceIcon: et,
4827
4827
  RightBorderDoubleIcon: Nn,
4828
4828
  RightDoubleDiagonalDoubleIcon: Dn,
4829
4829
  RightInsertColumnDoubleIcon: Tn,
@@ -4848,17 +4848,17 @@ const Me = {
4848
4848
  VerticalIntegrationIcon: Q6,
4849
4849
  VerticalTextIcon: K6
4850
4850
  };
4851
- class S1 extends p1 {
4851
+ class S1 extends g1 {
4852
4852
  constructor() {
4853
4853
  super();
4854
- P(this, "_components", /* @__PURE__ */ new Map());
4855
- P(this, "_componentsReverse", /* @__PURE__ */ new Map());
4856
- P(this, "reactUtils", {
4854
+ F(this, "_components", /* @__PURE__ */ new Map());
4855
+ F(this, "_componentsReverse", /* @__PURE__ */ new Map());
4856
+ F(this, "reactUtils", {
4857
4857
  createElement: M,
4858
4858
  useEffect: q,
4859
4859
  useRef: t1
4860
4860
  });
4861
- P(this, "_handler", {
4861
+ F(this, "_handler", {
4862
4862
  react: (n) => n
4863
4863
  });
4864
4864
  for (const n in Me)
@@ -4901,7 +4901,7 @@ class S1 extends p1 {
4901
4901
  var k3, j3;
4902
4902
  class Ae {
4903
4903
  constructor() {
4904
- P(this, "_list", /* @__PURE__ */ new Map());
4904
+ F(this, "_list", /* @__PURE__ */ new Map());
4905
4905
  }
4906
4906
  setIndex(t, n) {
4907
4907
  this._list.set(t, n);
@@ -5179,7 +5179,7 @@ function t7(e) {
5179
5179
  variant: "text",
5180
5180
  disabled: t <= n || o,
5181
5181
  onClick: () => m(-10),
5182
- children: /* @__PURE__ */ h(K3, {})
5182
+ children: /* @__PURE__ */ h(et, {})
5183
5183
  }
5184
5184
  ),
5185
5185
  /* @__PURE__ */ h(
@@ -5272,7 +5272,7 @@ var R5 = Object.getOwnPropertyDescriptor, V5 = (e, t, n, r) => {
5272
5272
  (s = e[i]) && (o = s(o) || o);
5273
5273
  return o;
5274
5274
  }, O5 = (e, t) => (n, r) => t(n, r, e);
5275
- const Pn = C1("univer.font-service"), At = [{
5275
+ const Pn = p1("univer.font-service"), At = [{
5276
5276
  value: "Arial",
5277
5277
  label: "fontFamily.arial",
5278
5278
  category: "sans-serif"
@@ -5327,7 +5327,7 @@ const Pn = C1("univer.font-service"), At = [{
5327
5327
  }];
5328
5328
  let T3 = class {
5329
5329
  constructor(e) {
5330
- P(this, "fonts$", new k1([...At]));
5330
+ F(this, "fonts$", new k1([...At]));
5331
5331
  this._configService = e;
5332
5332
  const t = this._configService.getConfig(ae), { customFontFamily: n = [] } = t != null ? t : {};
5333
5333
  n.length && n.forEach((r) => this.addFont({
@@ -5415,7 +5415,7 @@ const $5 = ({ id: e, value: t }) => {
5415
5415
  onClick: () => a(d.value),
5416
5416
  children: [
5417
5417
  s.t(d.label),
5418
- !r.isFontSupported(d.value) && /* @__PURE__ */ h(Y3, { title: s.t("fontFamily.not-supported"), children: /* @__PURE__ */ h(
5418
+ !r.isFontSupported(d.value) && /* @__PURE__ */ h(G3, { title: s.t("fontFamily.not-supported"), children: /* @__PURE__ */ h(
5419
5419
  m6,
5420
5420
  {
5421
5421
  className: "univer-text-gray-300 dark:univer-text-gray-700"
@@ -5664,16 +5664,16 @@ const P5 = "FOCUSING_UNIVER", F5 = [
5664
5664
  "sheet-bar-append-button",
5665
5665
  "render-canvas",
5666
5666
  "workbench-layout"
5667
- ], j1 = C1("ui.layout-service");
5668
- let Pe = class extends p1 {
5667
+ ], j1 = p1("ui.layout-service");
5668
+ let Pe = class extends g1 {
5669
5669
  constructor(t, n) {
5670
5670
  super();
5671
- P(this, "_rootContainerElement", null);
5672
- P(this, "_isFocused", !1);
5673
- P(this, "_focusHandlers", /* @__PURE__ */ new Map());
5671
+ F(this, "_rootContainerElement", null);
5672
+ F(this, "_isFocused", !1);
5673
+ F(this, "_focusHandlers", /* @__PURE__ */ new Map());
5674
5674
  // FIXME: this don't need to be plural
5675
- P(this, "_contentElements", []);
5676
- P(this, "_allContainers", []);
5675
+ F(this, "_contentElements", []);
5676
+ F(this, "_allContainers", []);
5677
5677
  this._contextService = t, this._univerInstanceService = n, this._initUniverFocusListener(), this._initEditorStatus();
5678
5678
  }
5679
5679
  get isFocused() {
@@ -5752,12 +5752,12 @@ var H1 = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.SELECTOR = 1]
5752
5752
  (s = e[i]) && (o = s(o) || o);
5753
5753
  return o;
5754
5754
  }, kt = (e, t) => (n, r) => t(n, r, e);
5755
- const Z1 = C1("univer.menu-manager-service");
5756
- let ke = class extends p1 {
5755
+ const Z1 = p1("univer.menu-manager-service");
5756
+ let ke = class extends g1 {
5757
5757
  constructor(t, n) {
5758
5758
  super();
5759
- P(this, "menuChanged$", new E1());
5760
- P(this, "_menu", {
5759
+ F(this, "menuChanged$", new D1());
5760
+ F(this, "_menu", {
5761
5761
  [Fe.RIBBON]: {
5762
5762
  [_1.START]: {
5763
5763
  order: 0,
@@ -6115,7 +6115,7 @@ function jn(e) {
6115
6115
  "univer-relative univer-pl-5": !(typeof s.label != "string" && !((y = s.label) != null && y.hoverable))
6116
6116
  }),
6117
6117
  children: [
6118
- typeof n < "u" && String(n) === String(s.value) && /* @__PURE__ */ h("span", { className: "univer-absolute univer-left-0 univer-inline-flex univer-items-center", children: /* @__PURE__ */ h(X3, { className: "univer-text-primary-600" }) }),
6118
+ typeof n < "u" && String(n) === String(s.value) && /* @__PURE__ */ h("span", { className: "univer-absolute univer-left-0 univer-inline-flex univer-items-center", children: /* @__PURE__ */ h(q3, { className: "univer-text-primary-600" }) }),
6119
6119
  /* @__PURE__ */ h(
6120
6120
  M1,
6121
6121
  {
@@ -6283,7 +6283,7 @@ function c7(e) {
6283
6283
  "univer-hidden univer-w-0": !v
6284
6284
  }),
6285
6285
  children: [
6286
- /* @__PURE__ */ h(Y3, { showIfEllipsis: !0, title: a, children: /* @__PURE__ */ h("span", { className: "univer-w-24 univer-truncate univer-text-right univer-text-xs", children: a }) }),
6286
+ /* @__PURE__ */ h(G3, { showIfEllipsis: !0, title: a, children: /* @__PURE__ */ h("span", { className: "univer-w-24 univer-truncate univer-text-right univer-text-xs", children: a }) }),
6287
6287
  /* @__PURE__ */ h("div", { className: "univer-h-1 univer-w-40 univer-overflow-hidden univer-rounded-lg univer-bg-gray-200", children: /* @__PURE__ */ h(
6288
6288
  "div",
6289
6289
  {
@@ -6301,7 +6301,7 @@ function c7(e) {
6301
6301
  type: "button",
6302
6302
  onClick: r,
6303
6303
  children: /* @__PURE__ */ h(
6304
- q3,
6304
+ J3,
6305
6305
  {
6306
6306
  className: "univer-size-3.5 dark:!univer-text-white"
6307
6307
  }
@@ -6312,13 +6312,13 @@ function c7(e) {
6312
6312
  }
6313
6313
  );
6314
6314
  }
6315
- const u7 = "UNI_DISABLE_CHANGING_FOCUS", et = C1("ui.message.service");
6315
+ const u7 = "UNI_DISABLE_CHANGING_FOCUS", tt = p1("ui.message.service");
6316
6316
  var W5 = Object.getOwnPropertyDescriptor, Y5 = (e, t, n, r) => {
6317
6317
  for (var o = r > 1 ? void 0 : r ? W5(t, n) : t, i = e.length - 1, s; i >= 0; i--)
6318
6318
  (s = e[i]) && (o = s(o) || o);
6319
6319
  return o;
6320
6320
  }, zt = (e, t) => (n, r) => t(n, r, e);
6321
- let oe = class extends p1 {
6321
+ let oe = class extends g1 {
6322
6322
  constructor(e, t) {
6323
6323
  super(), this._errorService = e, this._messageService = t, this.disposeWithMe(this._errorService.error$.subscribe((n) => {
6324
6324
  this._messageService.show({
@@ -6330,7 +6330,7 @@ let oe = class extends p1 {
6330
6330
  };
6331
6331
  oe = Y5([
6332
6332
  zt(0, m1(p2)),
6333
- zt(1, et)
6333
+ zt(1, tt)
6334
6334
  ], oe);
6335
6335
  function G5() {
6336
6336
  return {
@@ -6480,7 +6480,7 @@ var y1 = /* @__PURE__ */ ((e) => (e[e.SHIFT = 1024] = "SHIFT", e[e.ALT = 2048] =
6480
6480
  function K5(e, t, n) {
6481
6481
  return window.addEventListener(e, t, n), f1(() => window.removeEventListener(e, t, n));
6482
6482
  }
6483
- const tt = C1("ui.platform.service");
6483
+ const nt = p1("ui.platform.service");
6484
6484
  class Gn {
6485
6485
  get isMac() {
6486
6486
  return /Mac/.test(navigator.appVersion);
@@ -6497,16 +6497,16 @@ var eo = Object.getOwnPropertyDescriptor, to = (e, t, n, r) => {
6497
6497
  (s = e[i]) && (o = s(o) || o);
6498
6498
  return o;
6499
6499
  }, xe = (e, t) => (n, r) => t(n, r, e);
6500
- const Le = C1("ui.shortcut.service");
6501
- let je = class extends p1 {
6500
+ const Le = p1("ui.shortcut.service");
6501
+ let je = class extends g1 {
6502
6502
  constructor(t, n, r, o) {
6503
6503
  super();
6504
- P(this, "_shortCutMapping", /* @__PURE__ */ new Map());
6505
- P(this, "_commandIDMapping", /* @__PURE__ */ new Map());
6506
- P(this, "_shortcutChanged$", new E1());
6507
- P(this, "shortcutChanged$", this._shortcutChanged$.asObservable());
6508
- P(this, "_forceEscaped", !1);
6509
- P(this, "_forceDisabled", !1);
6504
+ F(this, "_shortCutMapping", /* @__PURE__ */ new Map());
6505
+ F(this, "_commandIDMapping", /* @__PURE__ */ new Map());
6506
+ F(this, "_shortcutChanged$", new D1());
6507
+ F(this, "shortcutChanged$", this._shortcutChanged$.asObservable());
6508
+ F(this, "_forceEscaped", !1);
6509
+ F(this, "_forceDisabled", !1);
6510
6510
  this._commandService = t, this._platformService = n, this._contextService = r, this._layoutService = o, this.disposeWithMe(
6511
6511
  K5("keydown", (i) => {
6512
6512
  this._resolveKeyboardEvent(i);
@@ -6585,7 +6585,7 @@ let je = class extends p1 {
6585
6585
  };
6586
6586
  je = to([
6587
6587
  xe(0, X1),
6588
- xe(1, tt),
6588
+ xe(1, nt),
6589
6589
  xe(2, pe),
6590
6590
  xe(3, C9(j1))
6591
6591
  ], je);
@@ -6631,7 +6631,7 @@ const oo = {
6631
6631
  binding: q1.Y | y1.CTRL_COMMAND,
6632
6632
  preconditions: qn
6633
6633
  };
6634
- let ie = class extends p1 {
6634
+ let ie = class extends g1 {
6635
6635
  constructor(e, t) {
6636
6636
  super(), this._shortcutService = e, this._commandService = t, this.initialize();
6637
6637
  }
@@ -6717,7 +6717,7 @@ const ho = {
6717
6717
  description: "shortcut.shortcut-panel",
6718
6718
  group: "10_global-shortcut"
6719
6719
  };
6720
- let se = class extends p1 {
6720
+ let se = class extends g1 {
6721
6721
  constructor(e, t, n, r, o) {
6722
6722
  super(), this._menuManagerService = r, this.disposeWithMe(t.register(E9, co)), this.disposeWithMe(o.registerCommand(i3)), this.disposeWithMe(n.registerShortcut(ho));
6723
6723
  }
@@ -6730,16 +6730,16 @@ se = fo([
6730
6730
  de(4, X1)
6731
6731
  ], se);
6732
6732
  var u1 = /* @__PURE__ */ ((e) => (e.GLOBAL = "global", e.HEADER = "header", e.HEADER_MENU = "header-menu", e.CONTENT = "content", e.FOOTER = "footer", e.LEFT_SIDEBAR = "left-sidebar", e.FLOATING = "floating", e.UNIT = "unit", e.CUSTOM_HEADER = "custom-header", e.CUSTOM_LEFT = "custom-left", e.CUSTOM_RIGHT = "custom-right", e.CUSTOM_FOOTER = "custom-footer", e.TOOLBAR = "toolbar", e))(u1 || {});
6733
- const N1 = C1("ui.parts.service");
6734
- class Jn extends p1 {
6733
+ const E1 = p1("ui.parts.service");
6734
+ class Jn extends g1 {
6735
6735
  constructor() {
6736
6736
  super(...arguments);
6737
- P(this, "_componentsByPart", /* @__PURE__ */ new Map());
6738
- P(this, "_componentRegistered$", new E1());
6739
- P(this, "componentRegistered$", this._componentRegistered$.asObservable());
6740
- P(this, "_uiVisible", /* @__PURE__ */ new Map());
6741
- P(this, "_uiVisibleChange$", new E1());
6742
- P(this, "uiVisibleChange$", this._uiVisibleChange$.asObservable());
6737
+ F(this, "_componentsByPart", /* @__PURE__ */ new Map());
6738
+ F(this, "_componentRegistered$", new D1());
6739
+ F(this, "componentRegistered$", this._componentRegistered$.asObservable());
6740
+ F(this, "_uiVisible", /* @__PURE__ */ new Map());
6741
+ F(this, "_uiVisibleChange$", new D1());
6742
+ F(this, "uiVisibleChange$", this._uiVisibleChange$.asObservable());
6743
6743
  }
6744
6744
  dispose() {
6745
6745
  super.dispose(), this._componentsByPart.clear(), this._uiVisible.clear(), this._componentRegistered$.complete(), this._uiVisibleChange$.complete();
@@ -6761,11 +6761,11 @@ class Jn extends p1 {
6761
6761
  return /* @__PURE__ */ new Set([...this._componentsByPart.get(n) || /* @__PURE__ */ new Set()]);
6762
6762
  }
6763
6763
  }
6764
- class nt {
6764
+ class rt {
6765
6765
  constructor() {
6766
- P(this, "_domLayerMap", /* @__PURE__ */ new Map());
6767
- P(this, "_domLayers$", new k1([]));
6768
- P(this, "domLayers$", this._domLayers$.asObservable());
6766
+ F(this, "_domLayerMap", /* @__PURE__ */ new Map());
6767
+ F(this, "_domLayers$", new k1([]));
6768
+ F(this, "domLayers$", this._domLayers$.asObservable());
6769
6769
  }
6770
6770
  get domLayers() {
6771
6771
  return Array.from(this._domLayerMap.entries());
@@ -6875,7 +6875,7 @@ const Co = M9((e) => {
6875
6875
  ) : null;
6876
6876
  }), Qn = ({ unitId: e }) => {
6877
6877
  var s;
6878
- const t = k(T1), n = k(nt), r = d1(n.domLayers$), o = d1(t.focused$), i = e || o;
6878
+ const t = k(T1), n = k(rt), r = d1(n.domLayers$), o = d1(t.focused$), i = e || o;
6879
6879
  return (s = r == null ? void 0 : r.filter((a) => a[1].unitId === i)) == null ? void 0 : s.map((a) => {
6880
6880
  var d;
6881
6881
  return /* @__PURE__ */ h(
@@ -6887,14 +6887,14 @@ const Co = M9((e) => {
6887
6887
  a[0]
6888
6888
  );
6889
6889
  });
6890
- }, rt = C1("ui.popup.service");
6891
- class Kn extends p1 {
6890
+ }, ot = p1("ui.popup.service");
6891
+ class Kn extends g1 {
6892
6892
  constructor() {
6893
6893
  super(...arguments);
6894
- P(this, "_popupMap", /* @__PURE__ */ new Map());
6895
- P(this, "_popups$", new k1([]));
6896
- P(this, "popups$", this._popups$.asObservable());
6897
- P(this, "_activePopupId", null);
6894
+ F(this, "_popupMap", /* @__PURE__ */ new Map());
6895
+ F(this, "_popups$", new k1([]));
6896
+ F(this, "popups$", this._popups$.asObservable());
6897
+ F(this, "_activePopupId", null);
6898
6898
  }
6899
6899
  get popups() {
6900
6900
  return Array.from(this._popupMap.entries());
@@ -6948,7 +6948,7 @@ function tr(e) {
6948
6948
  } : _ = L + r > o ? Math.max($ - r, d) < ee ? { top: Math.min(L, v) } : { top: Math.max($ - r, d) } : { top: Math.min(L, v) };
6949
6949
  return { ..._, ...R };
6950
6950
  }
6951
- function ot(e) {
6951
+ function it(e) {
6952
6952
  var X;
6953
6953
  const {
6954
6954
  mask: t,
@@ -7058,8 +7058,8 @@ function ot(e) {
7058
7058
  ] });
7059
7059
  return n ? document.getElementById(G) ? $9(o1, document.getElementById(G)) : null : o1;
7060
7060
  }
7061
- ot.calcPopupPosition = tr;
7062
- ot.useContext = () => r3(er);
7061
+ it.calcPopupPosition = tr;
7062
+ it.useContext = () => r3(er);
7063
7063
  const vo = ({ popup: e, children: t }) => {
7064
7064
  const [n, r] = Y(!1), o = Q(() => e.anchorRect$.pipe(
7065
7065
  y3(0, _3),
@@ -7089,7 +7089,7 @@ const vo = ({ popup: e, children: t }) => {
7089
7089
  });
7090
7090
  return () => u.unsubscribe();
7091
7091
  }, [d, v, o, i]), n && g === "destroy" ? null : /* @__PURE__ */ h(
7092
- ot,
7092
+ it,
7093
7093
  {
7094
7094
  ...e,
7095
7095
  hidden: n,
@@ -7115,7 +7115,7 @@ const vo = ({ popup: e, children: t }) => {
7115
7115
  );
7116
7116
  };
7117
7117
  function nr() {
7118
- const e = k(rt), t = k(S1);
7118
+ const e = k(ot), t = k(S1);
7119
7119
  return d1(e.popups$, void 0, !0).map((r) => {
7120
7120
  const [o, i] = r, s = t.get(i.componentKey);
7121
7121
  return /* @__PURE__ */ h(
@@ -7137,7 +7137,7 @@ function x1(e) {
7137
7137
  }
7138
7138
  function I1(e, t) {
7139
7139
  var a;
7140
- const n = (a = t == null ? void 0 : t.get(N1)) != null ? a : k(N1), r = Q(() => n.uiVisibleChange$.pipe(Et((d) => d.ui === e)), [e, n]), o = d1(r), i = t1(0), s = d1(
7140
+ const n = (a = t == null ? void 0 : t.get(E1)) != null ? a : k(E1), r = Q(() => n.uiVisibleChange$.pipe(Et((d) => d.ui === e)), [e, n]), o = d1(r), i = t1(0), s = d1(
7141
7141
  () => n.componentRegistered$.pipe(
7142
7142
  Et((d) => d === e),
7143
7143
  R2(200),
@@ -7193,10 +7193,10 @@ function go({
7193
7193
  const po = {
7194
7194
  [_1.START]: C6,
7195
7195
  [_1.INSERT]: b6,
7196
- [_1.FORMULAS]: J3,
7196
+ [_1.FORMULAS]: Q3,
7197
7197
  [_1.DATA]: Q9,
7198
7198
  [_1.VIEW]: o6,
7199
- [_1.OTHERS]: Q3
7199
+ [_1.OTHERS]: K3
7200
7200
  };
7201
7201
  function mo({
7202
7202
  ribbon: e,
@@ -7326,7 +7326,7 @@ function Lo(e) {
7326
7326
  return t && L.push(t.subscribe((y) => d(y))), n && L.push(n.subscribe((y) => m(y))), r && L.push(r.subscribe((y) => g(y))), o && L.push(o.subscribe((y) => s(y))), () => L.forEach((y) => y.unsubscribe());
7327
7327
  }, [r, t, n, o]), { disabled: a, value: i, activated: v, hidden: u };
7328
7328
  }
7329
- const it = I9({
7329
+ const st = I9({
7330
7330
  dropdownVisible: !1,
7331
7331
  setDropdownVisible: (e) => {
7332
7332
  }
@@ -7345,17 +7345,17 @@ const it = I9({
7345
7345
  return $2(t, () => ({
7346
7346
  el: o.current
7347
7347
  })), r.title ? /* @__PURE__ */ h(
7348
- Y3,
7348
+ G3,
7349
7349
  {
7350
7350
  visible: i,
7351
7351
  onVisibleChange: v,
7352
7352
  ...r,
7353
- children: /* @__PURE__ */ h("span", { ref: o, children: /* @__PURE__ */ h(it.Provider, { value: u, children: n }) })
7353
+ children: /* @__PURE__ */ h("span", { ref: o, children: /* @__PURE__ */ h(st.Provider, { value: u, children: n }) })
7354
7354
  }
7355
7355
  ) : /* @__PURE__ */ h("span", { ref: o, children: n });
7356
7356
  });
7357
7357
  function yo(e) {
7358
- const { children: t, overlay: n, disabled: r, align: o = "start" } = e, { dropdownVisible: i, setDropdownVisible: s } = r3(it);
7358
+ const { children: t, overlay: n, disabled: r, align: o = "start" } = e, { dropdownVisible: i, setDropdownVisible: s } = r3(st);
7359
7359
  function a(d) {
7360
7360
  s(d);
7361
7361
  }
@@ -7384,7 +7384,7 @@ function He({ icon: e, value: t, option: n, onOptionSelect: r }) {
7384
7384
  }),
7385
7385
  children: [
7386
7386
  i && String(t) === String(n.value) && /* @__PURE__ */ h(
7387
- X3,
7387
+ q3,
7388
7388
  {
7389
7389
  className: "univer-absolute univer-left-1 univer-top-0.5 univer-text-primary-600"
7390
7390
  }
@@ -7414,7 +7414,7 @@ function qt({
7414
7414
  onOptionSelect: s
7415
7415
  }) {
7416
7416
  var $;
7417
- const { dropdownVisible: a, setDropdownVisible: d } = r3(it), v = k(Z1), [g, u] = Y({}), m = Q(() => e ? v.getMenuByPositionKey(e) : [], [e]), L = Q(() => m.filter((R) => {
7417
+ const { dropdownVisible: a, setDropdownVisible: d } = r3(st), v = k(Z1), [g, u] = Y({}), m = Q(() => e ? v.getMenuByPositionKey(e) : [], [e]), L = Q(() => m.filter((R) => {
7418
7418
  var D;
7419
7419
  if (!R.children)
7420
7420
  return !g[R.key];
@@ -7589,13 +7589,13 @@ const Se = I((e, t) => {
7589
7589
  function G(X) {
7590
7590
  var e1;
7591
7591
  const W = e.selectionsCommandId, i1 = _ != null ? _ : R, a1 = (e1 = W != null ? W : _) != null ? e1 : R;
7592
- function b1(v1) {
7592
+ function b1(C1) {
7593
7593
  if (d) return;
7594
7594
  let R1 = a1;
7595
- v1.id && (R1 = v1.id), g(R1, { value: v1.value });
7595
+ C1.id && (R1 = C1.id), g(R1, { value: C1.value });
7596
7596
  }
7597
- function w1(v1) {
7598
- d || g(a1, { value: v1 });
7597
+ function w1(C1) {
7598
+ d || g(a1, { value: C1 });
7599
7599
  }
7600
7600
  function l1() {
7601
7601
  d || X === H1.BUTTON_SELECTOR && g(i1, { value: s });
@@ -7770,12 +7770,12 @@ function _o(e) {
7770
7770
  for (const l1 of S) {
7771
7771
  const e1 = { ...l1, children: [] };
7772
7772
  if ((X = l1.children) != null && X.length)
7773
- for (const v1 of l1.children) {
7774
- const R1 = { ...v1, children: [] };
7773
+ for (const C1 of l1.children) {
7774
+ const R1 = { ...C1, children: [] };
7775
7775
  let U1 = !0;
7776
- if ((W = v1.children) != null && W.length) {
7777
- for (const J1 of v1.children) {
7778
- const Q1 = `${l1.key}/${v1.key}/${J1.key}`;
7776
+ if ((W = C1.children) != null && W.length) {
7777
+ for (const J1 of C1.children) {
7778
+ const Q1 = `${l1.key}/${C1.key}/${J1.key}`;
7779
7779
  o1.includes(Q1) || (i1 = R1.children) == null || i1.push(J1);
7780
7780
  }
7781
7781
  (a1 = R1.children) != null && a1.every((J1) => {
@@ -7785,16 +7785,16 @@ function _o(e) {
7785
7785
  }
7786
7786
  U1 && ((b1 = e1.children) == null || b1.push(R1));
7787
7787
  }
7788
- (w1 = e1.children) != null && w1.length && e1.children.every((v1) => {
7788
+ (w1 = e1.children) != null && w1.length && e1.children.every((C1) => {
7789
7789
  var R1;
7790
- return (R1 = v1.children) == null ? void 0 : R1.length;
7790
+ return (R1 = C1.children) == null ? void 0 : R1.length;
7791
7791
  }) && U.push(e1);
7792
7792
  }
7793
7793
  if (t === "simple") {
7794
7794
  const l1 = [{ key: _1.START, children: [], order: 0 }];
7795
7795
  U.forEach((e1) => {
7796
- var v1;
7797
- (v1 = e1.children) == null || v1.forEach((R1) => {
7796
+ var C1;
7797
+ (C1 = e1.children) == null || C1.forEach((R1) => {
7798
7798
  var U1;
7799
7799
  (U1 = l1[0].children) == null || U1.push(R1);
7800
7800
  });
@@ -7834,8 +7834,8 @@ function _o(e) {
7834
7834
  const a1 = (((w1 = (b1 = m.find((l1) => l1.key === y)) == null ? void 0 : b1.children) != null ? w1 : []).length - 1) * 8;
7835
7835
  W += a1;
7836
7836
  for (const { el: l1, key: e1 } of o1) {
7837
- const { width: v1 } = l1.getBoundingClientRect();
7838
- W += v1 + 8, W > G && X.push(e1);
7837
+ const { width: C1 } = l1.getBoundingClientRect();
7838
+ W += C1 + 8, W > G && X.push(e1);
7839
7839
  }
7840
7840
  _(X), V(!1);
7841
7841
  });
@@ -7964,7 +7964,7 @@ function _o(e) {
7964
7964
  className: rr,
7965
7965
  "aria-label": s.t("ribbon.more"),
7966
7966
  "aria-haspopup": "true",
7967
- children: /* @__PURE__ */ h(Q3, {})
7967
+ children: /* @__PURE__ */ h(K3, {})
7968
7968
  }
7969
7969
  )
7970
7970
  }
@@ -7980,10 +7980,10 @@ function _o(e) {
7980
7980
  E
7981
7981
  ] });
7982
7982
  }
7983
- class s3 extends p1 {
7983
+ class s3 extends g1 {
7984
7984
  constructor() {
7985
7985
  super(...arguments);
7986
- P(this, "_styleSheetId", "univer-theme-css-variables");
7986
+ F(this, "_styleSheetId", "univer-theme-css-variables");
7987
7987
  }
7988
7988
  injectThemeToHead(n) {
7989
7989
  function r(a, d = "--univer") {
@@ -8008,12 +8008,12 @@ ${o}
8008
8008
  super.dispose();
8009
8009
  }
8010
8010
  }
8011
- const l3 = C1("ui.contextmenu.service");
8012
- class or extends p1 {
8011
+ const l3 = p1("ui.contextmenu.service");
8012
+ class or extends g1 {
8013
8013
  constructor() {
8014
8014
  super(...arguments);
8015
- P(this, "_currentHandler", null);
8016
- P(this, "disabled", !1);
8015
+ F(this, "_currentHandler", null);
8016
+ F(this, "disabled", !1);
8017
8017
  }
8018
8018
  get visible() {
8019
8019
  var n, r;
@@ -8077,9 +8077,9 @@ function Mo() {
8077
8077
  }
8078
8078
  ) }) });
8079
8079
  }
8080
- const st = C1("univer.global-zone-service");
8080
+ const lt = p1("univer.global-zone-service");
8081
8081
  function ir() {
8082
- const e = k(st), [t, n] = Y(!1), r = d1(e.componentKey$, e.componentKey), o = k(S1), i = Q(() => {
8082
+ const e = k(lt), [t, n] = Y(!1), r = d1(e.componentKey$, e.componentKey), o = k(S1), i = Q(() => {
8083
8083
  const s = o.get(r != null ? r : "");
8084
8084
  if (s)
8085
8085
  return s;
@@ -8164,7 +8164,7 @@ function sr() {
8164
8164
  {
8165
8165
  className: "univer-cursor-pointer univer-text-gray-500 dark:!univer-text-gray-300",
8166
8166
  onClick: i,
8167
- children: /* @__PURE__ */ h(q3, {})
8167
+ children: /* @__PURE__ */ h(J3, {})
8168
8168
  }
8169
8169
  )
8170
8170
  ]
@@ -8184,9 +8184,9 @@ function sr() {
8184
8184
  }
8185
8185
  );
8186
8186
  }
8187
- const lt = C1("univer.zen-zone-service");
8187
+ const at = p1("univer.zen-zone-service");
8188
8188
  function lr() {
8189
- const e = k(lt), [t, n] = Y(!1), [r, o] = Y(), i = d1(e.temporaryHidden$), s = k(S1);
8189
+ const e = k(at), [t, n] = Y(!1), [r, o] = Y(), i = d1(e.temporaryHidden$), s = k(S1);
8190
8190
  q(() => {
8191
8191
  const d = [
8192
8192
  e.visible$.subscribe((v) => {
@@ -8350,12 +8350,12 @@ function Ho() {
8350
8350
  return $9(/* @__PURE__ */ h(x1, { components: t }, "floating"), e);
8351
8351
  }
8352
8352
  const So = 3e3;
8353
- class ar extends p1 {
8353
+ class ar extends g1 {
8354
8354
  constructor(n, r, o, i, s) {
8355
8355
  super();
8356
- P(this, "_steadyTimeout");
8357
- P(this, "_renderTimeout");
8358
- P(this, "_currentRenderId", null);
8356
+ F(this, "_steadyTimeout");
8357
+ F(this, "_renderTimeout");
8358
+ F(this, "_currentRenderId", null);
8359
8359
  this._injector = n, this._instanceService = r, this._layoutService = o, this._lifecycleService = i, this._renderManagerService = s;
8360
8360
  }
8361
8361
  dispose() {
@@ -8435,7 +8435,7 @@ A3 = Vo([
8435
8435
  F1(4, j1),
8436
8436
  F1(5, T1),
8437
8437
  F1(6, Z1),
8438
- F1(7, N1),
8438
+ F1(7, E1),
8439
8439
  F1(8, m1(S1))
8440
8440
  ], A3);
8441
8441
  function Oo(e, t, n) {
@@ -8467,7 +8467,7 @@ function Jt(e) {
8467
8467
  const t = document.createElement("div");
8468
8468
  return t.id = e, t;
8469
8469
  }
8470
- const Ue = C1("univer.ui.ui-controller");
8470
+ const Ue = p1("univer.ui.ui-controller");
8471
8471
  function $o(e) {
8472
8472
  const { menuType: t, onOptionSelect: n } = e, r = k(Z1);
8473
8473
  if (!t)
@@ -8659,7 +8659,7 @@ B3 = Zo([
8659
8659
  te(3, V9),
8660
8660
  te(4, j1),
8661
8661
  te(5, T1),
8662
- te(6, N1)
8662
+ te(6, E1)
8663
8663
  ], B3);
8664
8664
  function Ao(e, t, n) {
8665
8665
  let r;
@@ -8690,17 +8690,17 @@ function Qt(e) {
8690
8690
  const t = document.createElement("div");
8691
8691
  return t.id = e, t;
8692
8692
  }
8693
- const a3 = C1("ui.notification.service");
8693
+ const a3 = p1("ui.notification.service");
8694
8694
  var Bo = Object.getOwnPropertyDescriptor, Po = (e, t, n, r) => {
8695
8695
  for (var o = r > 1 ? void 0 : r ? Bo(t, n) : t, i = e.length - 1, s; i >= 0; i--)
8696
8696
  (s = e[i]) && (o = s(o) || o);
8697
8697
  return o;
8698
8698
  }, Fo = (e, t) => (n, r) => t(n, r, e);
8699
- const cr = C1("univer.ui.before-close-service");
8699
+ const cr = p1("univer.ui.before-close-service");
8700
8700
  let ze = class {
8701
8701
  constructor(e) {
8702
- P(this, "_beforeUnloadCallbacks", []);
8703
- P(this, "_onCloseCallbacks", []);
8702
+ F(this, "_beforeUnloadCallbacks", []);
8703
+ F(this, "_onCloseCallbacks", []);
8704
8704
  this._notificationService = e, this._init();
8705
8705
  }
8706
8706
  registerBeforeClose(e) {
@@ -8749,10 +8749,10 @@ const Kt = "text/plain", e9 = "text/html", zo = "image/png", Wo = "image/jpeg",
8749
8749
  Wo,
8750
8750
  Go,
8751
8751
  zo
8752
- ]), ur = C1(
8752
+ ]), ur = p1(
8753
8753
  "univer.clipboard-interface-service"
8754
8754
  );
8755
- let We = class extends p1 {
8755
+ let We = class extends g1 {
8756
8756
  constructor(e, t, n) {
8757
8757
  super(), this._localeService = e, this._logService = t, this._notificationService = n;
8758
8758
  }
@@ -8853,24 +8853,6 @@ function t9(e) {
8853
8853
  throw new Error();
8854
8854
  return n.removeAllRanges(), n.addRange(t), n.toString();
8855
8855
  }
8856
- const at = C1("univer.confirm-service");
8857
- class C7 {
8858
- constructor() {
8859
- P(this, "confirmOptions$", new E1());
8860
- }
8861
- dispose() {
8862
- this.confirmOptions$.complete();
8863
- }
8864
- open(t) {
8865
- throw new Error("This is not implemented in the test service!");
8866
- }
8867
- confirm(t) {
8868
- return Promise.resolve(!0);
8869
- }
8870
- close(t) {
8871
- throw new Error("This is not implemented in the test service!");
8872
- }
8873
- }
8874
8856
  const Jo = (e) => {
8875
8857
  const { children: t, onClose: n, onConfirm: r } = e, [o] = Y({}), i = t ? E2(t, { hooks: o }) : null;
8876
8858
  return /* @__PURE__ */ h(
@@ -8904,7 +8886,7 @@ const Jo = (e) => {
8904
8886
  );
8905
8887
  };
8906
8888
  function Qo() {
8907
- const e = k(at), [t, n] = Y([]);
8889
+ const e = k(Y3), [t, n] = Y([]);
8908
8890
  q(() => {
8909
8891
  const o = e.confirmOptions$.subscribe((i) => {
8910
8892
  n(i);
@@ -8928,11 +8910,11 @@ var Ko = Object.getOwnPropertyDescriptor, ei = (e, t, n, r) => {
8928
8910
  (s = e[i]) && (o = s(o) || o);
8929
8911
  return o;
8930
8912
  }, n9 = (e, t) => (n, r) => t(n, r, e);
8931
- let Ye = class extends p1 {
8913
+ let Ye = class extends g1 {
8932
8914
  constructor(t, n) {
8933
8915
  super();
8934
- P(this, "_confirmOptions", []);
8935
- P(this, "confirmOptions$", new k1([]));
8916
+ F(this, "_confirmOptions", []);
8917
+ F(this, "confirmOptions$", new k1([]));
8936
8918
  this._injector = t, this._uiPartsService = n, this._initUIPart();
8937
8919
  }
8938
8920
  open(t) {
@@ -8973,9 +8955,9 @@ let Ye = class extends p1 {
8973
8955
  };
8974
8956
  Ye = ei([
8975
8957
  n9(0, m1(V1)),
8976
- n9(1, N1)
8958
+ n9(1, E1)
8977
8959
  ], Ye);
8978
- const ct = C1("univer.ui.dialog-service");
8960
+ const ct = p1("univer.ui.dialog-service");
8979
8961
  function ti() {
8980
8962
  const e = k(ct), [t, n] = Y([]);
8981
8963
  q(() => {
@@ -8999,11 +8981,11 @@ var ni = Object.getOwnPropertyDescriptor, ri = (e, t, n, r) => {
8999
8981
  (s = e[i]) && (o = s(o) || o);
9000
8982
  return o;
9001
8983
  }, r9 = (e, t) => (n, r) => t(n, r, e);
9002
- let Ge = class extends p1 {
8984
+ let Ge = class extends g1 {
9003
8985
  constructor(t, n) {
9004
8986
  super();
9005
- P(this, "_dialogOptions", []);
9006
- P(this, "_dialogOptions$", new E1());
8987
+ F(this, "_dialogOptions", []);
8988
+ F(this, "_dialogOptions$", new D1());
9007
8989
  this._injector = t, this._uiPartsService = n, this._initUIPart();
9008
8990
  }
9009
8991
  dispose() {
@@ -9044,9 +9026,9 @@ let Ge = class extends p1 {
9044
9026
  };
9045
9027
  Ge = ri([
9046
9028
  r9(0, m1(V1)),
9047
- r9(1, N1)
9029
+ r9(1, E1)
9048
9030
  ], Ge);
9049
- const ut = C1("univer.ui.gallery-service");
9031
+ const ut = p1("univer.ui.gallery-service");
9050
9032
  function oi() {
9051
9033
  const e = k(ut), t = d1(e.gallery$);
9052
9034
  return t ? /* @__PURE__ */ h(J2, { ...t }) : null;
@@ -9056,10 +9038,10 @@ var ii = Object.getOwnPropertyDescriptor, si = (e, t, n, r) => {
9056
9038
  (s = e[i]) && (o = s(o) || o);
9057
9039
  return o;
9058
9040
  }, o9 = (e, t) => (n, r) => t(n, r, e);
9059
- let Xe = class extends p1 {
9041
+ let Xe = class extends g1 {
9060
9042
  constructor(t, n) {
9061
9043
  super();
9062
- P(this, "gallery$", new E1());
9044
+ F(this, "gallery$", new D1());
9063
9045
  this._injector = t, this._uiPartsService = n, this._initUIPart();
9064
9046
  }
9065
9047
  dispose() {
@@ -9087,7 +9069,7 @@ let Xe = class extends p1 {
9087
9069
  };
9088
9070
  Xe = si([
9089
9071
  o9(0, m1(V1)),
9090
- o9(1, N1)
9072
+ o9(1, E1)
9091
9073
  ], Xe);
9092
9074
  var li = Object.getOwnPropertyDescriptor, ai = (e, t, n, r) => {
9093
9075
  for (var o = r > 1 ? void 0 : r ? li(t, n) : t, i = e.length - 1, s; i >= 0; i--)
@@ -9096,9 +9078,9 @@ var li = Object.getOwnPropertyDescriptor, ai = (e, t, n, r) => {
9096
9078
  }, ci = (e, t) => (n, r) => t(n, r, e);
9097
9079
  let qe = class {
9098
9080
  constructor(e) {
9099
- P(this, "visible$", new E1());
9100
- P(this, "componentKey$", new E1());
9101
- P(this, "_componentKey", "");
9081
+ F(this, "visible$", new D1());
9082
+ F(this, "componentKey$", new D1());
9083
+ F(this, "_componentKey", "");
9102
9084
  this._componentManager = e;
9103
9085
  }
9104
9086
  get componentKey() {
@@ -9119,7 +9101,7 @@ let qe = class {
9119
9101
  qe = ai([
9120
9102
  ci(0, m1(S1))
9121
9103
  ], qe);
9122
- class dr extends p1 {
9104
+ class dr extends g1 {
9123
9105
  openFile(t) {
9124
9106
  return new Promise((n) => {
9125
9107
  var o, i;
@@ -9135,7 +9117,7 @@ class dr extends p1 {
9135
9117
  r.download = n, r.href = window.URL.createObjectURL(t), r.click();
9136
9118
  }
9137
9119
  }
9138
- const fr = C1("univer-ui.local-file.service");
9120
+ const fr = p1("univer-ui.local-file.service");
9139
9121
  var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9140
9122
  function ui(e) {
9141
9123
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -9472,7 +9454,7 @@ function di() {
9472
9454
  }
9473
9455
  function U(l, f) {
9474
9456
  return new u(function(c, p) {
9475
- if (D[l.name] = D[l.name] || v1(), l.db)
9457
+ if (D[l.name] = D[l.name] || C1(), l.db)
9476
9458
  if (f)
9477
9459
  j(l), l.db.close();
9478
9460
  else
@@ -9581,7 +9563,7 @@ function di() {
9581
9563
  c(C);
9582
9564
  }
9583
9565
  }
9584
- function v1() {
9566
+ function C1() {
9585
9567
  return {
9586
9568
  // Running localForages sharing a database.
9587
9569
  forages: [],
@@ -9601,7 +9583,7 @@ function di() {
9601
9583
  for (var p in l)
9602
9584
  c[p] = l[p];
9603
9585
  var b = D[c.name];
9604
- b || (b = v1(), D[c.name] = b), b.forages.push(f), f._initReady || (f._initReady = f.ready, f.ready = w1);
9586
+ b || (b = C1(), D[c.name] = b), b.forages.push(f), f._initReady || (f._initReady = f.ready, f.ready = w1);
9605
9587
  var C = [];
9606
9588
  function H() {
9607
9589
  return u.resolve();
@@ -9617,8 +9599,8 @@ function di() {
9617
9599
  return c.db = Z, W(c, f._defaultConfig.version) ? X(c) : Z;
9618
9600
  }).then(function(Z) {
9619
9601
  c.db = b.db = Z, f._dbInfo = c;
9620
- for (var F = 0; F < T.length; F++) {
9621
- var J = T[F];
9602
+ for (var P = 0; P < T.length; P++) {
9603
+ var J = T[P];
9622
9604
  J !== f && (J._dbInfo.db = c.db, J._dbInfo.version = c.version);
9623
9605
  }
9624
9606
  });
@@ -9656,19 +9638,19 @@ function di() {
9656
9638
  try {
9657
9639
  var N = O.objectStore(c._dbInfo.storeName), T = N.openCursor(), Z = 1;
9658
9640
  T.onsuccess = function() {
9659
- var F = T.result;
9660
- if (F) {
9661
- var J = F.value;
9641
+ var P = T.result;
9642
+ if (P) {
9643
+ var J = P.value;
9662
9644
  b1(J) && (J = a1(J));
9663
- var r1 = l(J, F.key, Z++);
9664
- r1 !== void 0 ? b(r1) : F.continue();
9645
+ var r1 = l(J, P.key, Z++);
9646
+ r1 !== void 0 ? b(r1) : P.continue();
9665
9647
  } else
9666
9648
  b();
9667
9649
  }, T.onerror = function() {
9668
9650
  C(T.error);
9669
9651
  };
9670
- } catch (F) {
9671
- C(F);
9652
+ } catch (P) {
9653
+ C(P);
9672
9654
  }
9673
9655
  });
9674
9656
  }).catch(C);
@@ -9689,9 +9671,9 @@ function di() {
9689
9671
  if (T)
9690
9672
  return H(T);
9691
9673
  try {
9692
- var F = Z.objectStore(p._dbInfo.storeName);
9674
+ var P = Z.objectStore(p._dbInfo.storeName);
9693
9675
  N === null && (N = void 0);
9694
- var J = F.put(N, l);
9676
+ var J = P.put(N, l);
9695
9677
  Z.oncomplete = function() {
9696
9678
  N === void 0 && (N = null), C(N);
9697
9679
  }, Z.onabort = Z.onerror = function() {
@@ -9788,17 +9770,17 @@ function di() {
9788
9770
  try {
9789
9771
  var N = O.objectStore(c._dbInfo.storeName), T = !1, Z = N.openKeyCursor();
9790
9772
  Z.onsuccess = function() {
9791
- var F = Z.result;
9792
- if (!F) {
9773
+ var P = Z.result;
9774
+ if (!P) {
9793
9775
  b(null);
9794
9776
  return;
9795
9777
  }
9796
- l === 0 || T ? b(F.key) : (T = !0, F.advance(l));
9778
+ l === 0 || T ? b(P.key) : (T = !0, P.advance(l));
9797
9779
  }, Z.onerror = function() {
9798
9780
  C(Z.error);
9799
9781
  };
9800
- } catch (F) {
9801
- C(F);
9782
+ } catch (P) {
9783
+ C(P);
9802
9784
  }
9803
9785
  });
9804
9786
  }).catch(C);
@@ -9852,15 +9834,15 @@ function di() {
9852
9834
  j(l);
9853
9835
  var T = D[l.name], Z = T.forages;
9854
9836
  O.close();
9855
- for (var F = 0; F < Z.length; F++) {
9856
- var J = Z[F];
9837
+ for (var P = 0; P < Z.length; P++) {
9838
+ var J = Z[P];
9857
9839
  J._dbInfo.db = null, J._dbInfo.version = N;
9858
9840
  }
9859
- var r1 = new u(function(s1, g1) {
9841
+ var r1 = new u(function(s1, v1) {
9860
9842
  var h1 = d.open(l.name, N);
9861
9843
  h1.onerror = function(O1) {
9862
9844
  var ue = h1.result;
9863
- ue.close(), g1(O1);
9845
+ ue.close(), v1(O1);
9864
9846
  }, h1.onupgradeneeded = function() {
9865
9847
  var O1 = h1.result;
9866
9848
  O1.deleteObjectStore(l.storeName);
@@ -9871,8 +9853,8 @@ function di() {
9871
9853
  });
9872
9854
  return r1.then(function(s1) {
9873
9855
  T.db = s1;
9874
- for (var g1 = 0; g1 < Z.length; g1++) {
9875
- var h1 = Z[g1];
9856
+ for (var v1 = 0; v1 < Z.length; v1++) {
9857
+ var h1 = Z[v1];
9876
9858
  h1._dbInfo.db = s1, z(h1._dbInfo);
9877
9859
  }
9878
9860
  }).catch(function(s1) {
@@ -9885,26 +9867,26 @@ function di() {
9885
9867
  var N = D[l.name], T = N.forages;
9886
9868
  O.close();
9887
9869
  for (var Z = 0; Z < T.length; Z++) {
9888
- var F = T[Z];
9889
- F._dbInfo.db = null;
9870
+ var P = T[Z];
9871
+ P._dbInfo.db = null;
9890
9872
  }
9891
9873
  var J = new u(function(r1, s1) {
9892
- var g1 = d.deleteDatabase(l.name);
9893
- g1.onerror = function() {
9894
- var h1 = g1.result;
9895
- h1 && h1.close(), s1(g1.error);
9896
- }, g1.onblocked = function() {
9874
+ var v1 = d.deleteDatabase(l.name);
9875
+ v1.onerror = function() {
9876
+ var h1 = v1.result;
9877
+ h1 && h1.close(), s1(v1.error);
9878
+ }, v1.onblocked = function() {
9897
9879
  console.warn('dropInstance blocked for database "' + l.name + '" until all open connections are closed');
9898
- }, g1.onsuccess = function() {
9899
- var h1 = g1.result;
9880
+ }, v1.onsuccess = function() {
9881
+ var h1 = v1.result;
9900
9882
  h1 && h1.close(), r1(h1);
9901
9883
  };
9902
9884
  });
9903
9885
  return J.then(function(r1) {
9904
9886
  N.db = r1;
9905
9887
  for (var s1 = 0; s1 < T.length; s1++) {
9906
- var g1 = T[s1];
9907
- z(g1._dbInfo);
9888
+ var v1 = T[s1];
9889
+ z(v1._dbInfo);
9908
9890
  }
9909
9891
  }).catch(function(r1) {
9910
9892
  throw (G(l, r1) || u.resolve()).catch(function() {
@@ -10065,7 +10047,7 @@ function di() {
10065
10047
  var H = c._dbInfo;
10066
10048
  H.db.transaction(function(O) {
10067
10049
  B1(O, H, "SELECT * FROM " + H.storeName, [], function(N, T) {
10068
- for (var Z = T.rows, F = Z.length, J = 0; J < F; J++) {
10050
+ for (var Z = T.rows, P = Z.length, J = 0; J < P; J++) {
10069
10051
  var r1 = Z.item(J), s1 = r1.value;
10070
10052
  if (s1 && (s1 = H.serializer.deserialize(s1)), s1 = l(s1, r1.key, J + 1), s1 !== void 0) {
10071
10053
  b(s1);
@@ -10088,8 +10070,8 @@ function di() {
10088
10070
  b.ready().then(function() {
10089
10071
  f === void 0 && (f = null);
10090
10072
  var N = f, T = b._dbInfo;
10091
- T.serializer.serialize(f, function(Z, F) {
10092
- F ? O(F) : T.db.transaction(function(J) {
10073
+ T.serializer.serialize(f, function(Z, P) {
10074
+ P ? O(P) : T.db.transaction(function(J) {
10093
10075
  B1(J, T, "INSERT OR REPLACE INTO " + T.storeName + " (key, value) VALUES (?, ?)", [l, Z], function() {
10094
10076
  H(N);
10095
10077
  }, function(r1, s1) {
@@ -10226,16 +10208,16 @@ function di() {
10226
10208
  return new u(function(H, O) {
10227
10209
  C.db.transaction(function(N) {
10228
10210
  function T(r1) {
10229
- return new u(function(s1, g1) {
10211
+ return new u(function(s1, v1) {
10230
10212
  N.executeSql("DROP TABLE IF EXISTS " + r1, [], function() {
10231
10213
  s1();
10232
10214
  }, function(h1, O1) {
10233
- g1(O1);
10215
+ v1(O1);
10234
10216
  });
10235
10217
  });
10236
10218
  }
10237
- for (var Z = [], F = 0, J = C.storeNames.length; F < J; F++)
10238
- Z.push(T(C.storeNames[F]));
10219
+ for (var Z = [], P = 0, J = C.storeNames.length; P < J; P++)
10220
+ Z.push(T(C.storeNames[P]));
10239
10221
  u.all(Z).then(function() {
10240
10222
  H();
10241
10223
  }).catch(function(r1) {
@@ -10314,9 +10296,9 @@ function di() {
10314
10296
  for (var b = c._dbInfo, C = b.keyPrefix, H = C.length, O = localStorage.length, N = 1, T = 0; T < O; T++) {
10315
10297
  var Z = localStorage.key(T);
10316
10298
  if (Z.indexOf(C) === 0) {
10317
- var F = localStorage.getItem(Z);
10318
- if (F && (F = b.serializer.deserialize(F)), F = l(F, Z.substring(H), N++), F !== void 0)
10319
- return F;
10299
+ var P = localStorage.getItem(Z);
10300
+ if (P && (P = b.serializer.deserialize(P)), P = l(P, Z.substring(H), N++), P !== void 0)
10301
+ return P;
10320
10302
  }
10321
10303
  }
10322
10304
  });
@@ -10373,8 +10355,8 @@ function di() {
10373
10355
  else
10374
10356
  try {
10375
10357
  localStorage.setItem(N.keyPrefix + l, T), H(C);
10376
- } catch (F) {
10377
- (F.name === "QuotaExceededError" || F.name === "NS_ERROR_DOM_QUOTA_REACHED") && O(F), O(F);
10358
+ } catch (P) {
10359
+ (P.name === "QuotaExceededError" || P.name === "NS_ERROR_DOM_QUOTA_REACHED") && O(P), O(P);
10378
10360
  }
10379
10361
  });
10380
10362
  });
@@ -10481,14 +10463,14 @@ function di() {
10481
10463
  O(T);
10482
10464
  return;
10483
10465
  }
10484
- for (var Z = C3.concat("_initStorage"), F = 0, J = Z.length; F < J; F++) {
10485
- var r1 = Z[F], s1 = !e2(ye, r1);
10466
+ for (var Z = C3.concat("_initStorage"), P = 0, J = Z.length; P < J; P++) {
10467
+ var r1 = Z[P], s1 = !e2(ye, r1);
10486
10468
  if ((s1 || c[r1]) && typeof c[r1] != "function") {
10487
10469
  O(T);
10488
10470
  return;
10489
10471
  }
10490
10472
  }
10491
- var g1 = function() {
10473
+ var v1 = function() {
10492
10474
  for (var ue = function(l2) {
10493
10475
  return function() {
10494
10476
  var a2 = new Error("Method " + l2 + " is not implemented by the current driver"), Vt = u.reject(a2);
@@ -10499,7 +10481,7 @@ function di() {
10499
10481
  c[p3] || (c[p3] = ue(p3));
10500
10482
  }
10501
10483
  };
10502
- g1();
10484
+ v1();
10503
10485
  var h1 = function(ue) {
10504
10486
  ce[N] && console.info("Redefining LocalForage driver: " + N), ce[N] = c, Rt[N] = ue, H();
10505
10487
  };
@@ -10529,20 +10511,20 @@ function di() {
10529
10511
  function O() {
10530
10512
  C._config.driver = C.driver();
10531
10513
  }
10532
- function N(F) {
10533
- return C._extend(F), O(), C._ready = C._initStorage(C._config), C._ready;
10514
+ function N(P) {
10515
+ return C._extend(P), O(), C._ready = C._initStorage(C._config), C._ready;
10534
10516
  }
10535
- function T(F) {
10517
+ function T(P) {
10536
10518
  return function() {
10537
10519
  var J = 0;
10538
10520
  function r1() {
10539
- for (; J < F.length; ) {
10540
- var s1 = F[J];
10521
+ for (; J < P.length; ) {
10522
+ var s1 = P[J];
10541
10523
  return J++, C._dbInfo = null, C._ready = null, C.getDriver(s1).then(N).catch(r1);
10542
10524
  }
10543
10525
  O();
10544
- var g1 = new Error("No available storage method found.");
10545
- return C._driverSet = u.reject(g1), C._driverSet;
10526
+ var v1 = new Error("No available storage method found.");
10527
+ return C._driverSet = u.reject(v1), C._driverSet;
10546
10528
  }
10547
10529
  return r1();
10548
10530
  };
@@ -10551,14 +10533,14 @@ function di() {
10551
10533
  return u.resolve();
10552
10534
  }) : u.resolve();
10553
10535
  return this._driverSet = Z.then(function() {
10554
- var F = H[0];
10555
- return C._dbInfo = null, C._ready = null, C.getDriver(F).then(function(J) {
10536
+ var P = H[0];
10537
+ return C._dbInfo = null, C._ready = null, C.getDriver(P).then(function(J) {
10556
10538
  C._driver = J._driver, O(), C._wrapLibraryMethodsWithReady(), C._initDriver = T(H);
10557
10539
  });
10558
10540
  }).catch(function() {
10559
10541
  O();
10560
- var F = new Error("No available storage method found.");
10561
- return C._driverSet = u.reject(F), C._driverSet;
10542
+ var P = new Error("No available storage method found.");
10543
+ return C._driverSet = u.reject(P), C._driverSet;
10562
10544
  }), L(this._driverSet, p, b), this._driverSet;
10563
10545
  }, l.prototype.supports = function(c) {
10564
10546
  return !!Rt[c];
@@ -10612,7 +10594,7 @@ var hi = Object.getOwnPropertyDescriptor, Ci = (e, t, n, r) => {
10612
10594
  (s = e[i]) && (o = s(o) || o);
10613
10595
  return o;
10614
10596
  }, s9 = (e, t) => (n, r) => t(n, r, e);
10615
- let Je = class extends p1 {
10597
+ let Je = class extends g1 {
10616
10598
  constructor(e, t) {
10617
10599
  super(), this._injector = e, this._uiPartsService = t, this._initUIPart();
10618
10600
  }
@@ -10637,7 +10619,7 @@ let Je = class extends p1 {
10637
10619
  };
10638
10620
  Je = Ci([
10639
10621
  s9(0, m1(V1)),
10640
- s9(1, N1)
10622
+ s9(1, E1)
10641
10623
  ], Je);
10642
10624
  function vi() {
10643
10625
  const e = k(W3), t = d1(e.darkMode$);
@@ -10666,7 +10648,7 @@ var pi = Object.getOwnPropertyDescriptor, mi = (e, t, n, r) => {
10666
10648
  (s = e[i]) && (o = s(o) || o);
10667
10649
  return o;
10668
10650
  }, l9 = (e, t) => (n, r) => t(n, r, e);
10669
- let Qe = class extends p1 {
10651
+ let Qe = class extends g1 {
10670
10652
  constructor(e, t) {
10671
10653
  super(), this._injector = e, this._uiPartsService = t, this._initUIPart();
10672
10654
  }
@@ -10682,14 +10664,14 @@ let Qe = class extends p1 {
10682
10664
  };
10683
10665
  Qe = mi([
10684
10666
  l9(0, m1(V1)),
10685
- l9(1, N1)
10667
+ l9(1, E1)
10686
10668
  ], Qe);
10687
10669
  class Cr {
10688
10670
  constructor() {
10689
- P(this, "_sidebarOptions", {});
10690
- P(this, "sidebarOptions$", new E1());
10691
- P(this, "scrollEvent$", new E1());
10692
- P(this, "_container");
10671
+ F(this, "_sidebarOptions", {});
10672
+ F(this, "sidebarOptions$", new D1());
10673
+ F(this, "scrollEvent$", new D1());
10674
+ F(this, "_container");
10693
10675
  }
10694
10676
  get visible() {
10695
10677
  return this._sidebarOptions.visible || !1;
@@ -10726,11 +10708,11 @@ var bi = Object.getOwnPropertyDescriptor, Li = (e, t, n, r) => {
10726
10708
  }, wi = (e, t) => (n, r) => t(n, r, e);
10727
10709
  let Ke = class {
10728
10710
  constructor(e) {
10729
- P(this, "visible$", new k1(!1));
10730
- P(this, "componentKey$", new O2());
10731
- P(this, "_temporaryHidden$", new k1(!1));
10732
- P(this, "temporaryHidden$", this._temporaryHidden$.asObservable());
10733
- P(this, "_visible", !1);
10711
+ F(this, "visible$", new k1(!1));
10712
+ F(this, "componentKey$", new O2());
10713
+ F(this, "_temporaryHidden$", new k1(!1));
10714
+ F(this, "temporaryHidden$", this._temporaryHidden$.asObservable());
10715
+ F(this, "_visible", !1);
10734
10716
  this._componentManager = e;
10735
10717
  }
10736
10718
  get visible() {
@@ -10786,27 +10768,27 @@ let P3 = class extends p9 {
10786
10768
  [S1],
10787
10769
  [s3],
10788
10770
  [Ae],
10789
- [G3],
10790
- [N1, { useClass: Jn }],
10771
+ [X3],
10772
+ [E1, { useClass: Jn }],
10791
10773
  [j1, { useClass: Pe }],
10792
10774
  [Le, { useClass: je }],
10793
- [tt, { useClass: Gn }],
10775
+ [nt, { useClass: Gn }],
10794
10776
  [Z1, { useClass: ke }],
10795
10777
  [l3, { useClass: or }],
10796
10778
  [ur, { useClass: We, lazy: !0 }],
10797
10779
  [a3, { useClass: Qe, lazy: !0 }],
10798
10780
  [ut, { useClass: Xe, lazy: !0 }],
10799
10781
  [ct, { useClass: Ge, lazy: !0 }],
10800
- [at, { useClass: Ye, lazy: !0 }],
10782
+ [Y3, { useClass: Ye, lazy: !0 }],
10801
10783
  [be, { useClass: Cr, lazy: !0 }],
10802
- [lt, { useClass: Ke, lazy: !0 }],
10803
- [st, { useClass: qe, lazy: !0 }],
10804
- [et, { useClass: Je, lazy: !0 }],
10784
+ [at, { useClass: Ke, lazy: !0 }],
10785
+ [lt, { useClass: qe, lazy: !0 }],
10786
+ [tt, { useClass: Je, lazy: !0 }],
10805
10787
  [L9, { useClass: hr, lazy: !0 }],
10806
10788
  [cr, { useClass: ze }],
10807
10789
  [fr, { useClass: dr }],
10808
- [rt, { useClass: Kn }],
10809
- [nt],
10790
+ [ot, { useClass: Kn }],
10791
+ [rt],
10810
10792
  [
10811
10793
  Ue,
10812
10794
  {
@@ -10863,28 +10845,28 @@ let F3 = class extends p9 {
10863
10845
  [S1],
10864
10846
  [s3],
10865
10847
  [Ae],
10866
- [G3],
10867
- [N1, { useClass: Jn }],
10848
+ [X3],
10849
+ [E1, { useClass: Jn }],
10868
10850
  [j1, { useClass: Pe }],
10869
10851
  [Le, { useClass: je }],
10870
- [tt, { useClass: Gn }],
10852
+ [nt, { useClass: Gn }],
10871
10853
  [Z1, { useClass: ke }],
10872
10854
  [l3, { useClass: or }],
10873
10855
  [ur, { useClass: We, lazy: !0 }],
10874
10856
  [a3, { useClass: Qe, lazy: !0 }],
10875
10857
  [ut, { useClass: Xe, lazy: !0 }],
10876
10858
  [ct, { useClass: Ge, lazy: !0 }],
10877
- [at, { useClass: Ye, lazy: !0 }],
10859
+ [Y3, { useClass: Ye, lazy: !0 }],
10878
10860
  [be, { useClass: Cr, lazy: !0 }],
10879
- [lt, { useClass: Ke, lazy: !0 }],
10880
- [st, { useClass: qe, lazy: !0 }],
10881
- [et, { useClass: Je, lazy: !0 }],
10861
+ [at, { useClass: Ke, lazy: !0 }],
10862
+ [lt, { useClass: qe, lazy: !0 }],
10863
+ [tt, { useClass: Je, lazy: !0 }],
10882
10864
  [L9, { useClass: hr, lazy: !0 }],
10883
10865
  [cr, { useClass: ze }],
10884
10866
  [fr, { useClass: dr }],
10885
- [rt, { useClass: Kn }],
10867
+ [ot, { useClass: Kn }],
10886
10868
  [Pn, { useClass: T3 }],
10887
- [nt],
10869
+ [rt],
10888
10870
  [Ue, {
10889
10871
  useFactory: (e) => e.createInstance(A3, this._config),
10890
10872
  deps: [V1]
@@ -10915,7 +10897,7 @@ F3 = $i([
10915
10897
  S3(2, m1(V1)),
10916
10898
  S3(3, G1)
10917
10899
  ], F3);
10918
- class v7 {
10900
+ class C7 {
10919
10901
  show(t) {
10920
10902
  return f1(() => {
10921
10903
  });
@@ -10929,7 +10911,7 @@ class v7 {
10929
10911
  getContainer() {
10930
10912
  }
10931
10913
  }
10932
- const g7 = (e) => {
10914
+ const v7 = (e) => {
10933
10915
  const n = k(be).getContainer();
10934
10916
  q(() => {
10935
10917
  if (n)
@@ -11081,30 +11063,30 @@ function dt(e, t = "") {
11081
11063
  const L = u9(u, " ");
11082
11064
  for (const y in L)
11083
11065
  i[y] += ` ${L[y]}`;
11084
- o.bd ? (o.bd.b.s = D1(i.b), o.bd.t.s = D1(i.t), o.bd.l.s = D1(i.l), o.bd.r.s = D1(i.r)) : o.bd = {
11066
+ o.bd ? (o.bd.b.s = N1(i.b), o.bd.t.s = N1(i.t), o.bd.l.s = N1(i.l), o.bd.r.s = N1(i.r)) : o.bd = {
11085
11067
  b: {
11086
11068
  cl: {
11087
11069
  rgb: "#000"
11088
11070
  },
11089
- s: D1(i.b)
11071
+ s: N1(i.b)
11090
11072
  },
11091
11073
  t: {
11092
11074
  cl: {
11093
11075
  rgb: "#000"
11094
11076
  },
11095
- s: D1(i.t)
11077
+ s: N1(i.t)
11096
11078
  },
11097
11079
  l: {
11098
11080
  cl: {
11099
11081
  rgb: "#000"
11100
11082
  },
11101
- s: D1(i.l)
11083
+ s: N1(i.l)
11102
11084
  },
11103
11085
  r: {
11104
11086
  cl: {
11105
11087
  rgb: "#000"
11106
11088
  },
11107
- s: D1(i.r)
11089
+ s: N1(i.r)
11108
11090
  }
11109
11091
  };
11110
11092
  }
@@ -11113,12 +11095,12 @@ function dt(e, t = "") {
11113
11095
  const L = u.split(" "), y = `${L[0]} ${L[1]}`;
11114
11096
  L.splice(0, 2);
11115
11097
  const $ = L.join("");
11116
- if (D1(y) !== M2.NONE && $) {
11098
+ if (N1(y) !== M2.NONE && $) {
11117
11099
  const _ = {
11118
11100
  cl: {
11119
11101
  rgb: $
11120
11102
  },
11121
- s: D1(y)
11103
+ s: N1(y)
11122
11104
  };
11123
11105
  g === "border-bottom" ? o.bd.b = u === "none" ? null : _ : g === "border-top" ? o.bd.t = u === "none" ? null : _ : g === "border-left" ? o.bd.l = u === "none" ? null : _ : g === "border-right" ? o.bd.r = u === "none" ? null : _ : g === "border" && (o.bd = {
11124
11106
  r: u === "none" ? null : _,
@@ -11167,7 +11149,7 @@ function Zi(e) {
11167
11149
  return e.match(t).map((o) => o.replace(/\n/g, `\r
11168
11150
  `));
11169
11151
  }
11170
- function p7(e) {
11152
+ function g7(e) {
11171
11153
  const t = document.createElement("DIV"), n = [];
11172
11154
  t.innerHTML = e;
11173
11155
  const r = t.querySelectorAll("table col");
@@ -11191,7 +11173,7 @@ function e3(e, t) {
11191
11173
  let n;
11192
11174
  return e.includes("pt") ? n = n4(Number.parseFloat(e)) : e.includes("px") ? n = Number.parseFloat(e) : n = Number.parseFloat(e) * 72 / 96, n;
11193
11175
  }
11194
- function m7(e) {
11176
+ function p7(e) {
11195
11177
  const t = document.createElement("DIV"), n = [];
11196
11178
  t.innerHTML = e;
11197
11179
  const r = t.querySelectorAll("table tr");
@@ -11210,7 +11192,7 @@ function m7(e) {
11210
11192
  }
11211
11193
  return n;
11212
11194
  }
11213
- function b7(e) {
11195
+ function m7(e) {
11214
11196
  let t = [];
11215
11197
  const n = document.createElement("DIV");
11216
11198
  if (n.innerHTML = e, t = new Array(n.querySelectorAll("table tr").length), !t.length) return [];
@@ -11255,7 +11237,7 @@ function b7(e) {
11255
11237
  }), s++;
11256
11238
  }), t;
11257
11239
  }
11258
- function L7(e) {
11240
+ function b7(e) {
11259
11241
  const t = [], n = document.createElement("DIV");
11260
11242
  n.innerHTML = e;
11261
11243
  const o = e.replace(/\r/g, "").split(`
@@ -11270,7 +11252,7 @@ function L7(e) {
11270
11252
  } : t[s][a] = null;
11271
11253
  return t;
11272
11254
  }
11273
- function w7(e, t) {
11255
+ function L7(e, t) {
11274
11256
  e.length, e[0].length;
11275
11257
  let n = 0, r = 0;
11276
11258
  t && (n = t.startRow, r = t.startColumn);
@@ -11288,7 +11270,7 @@ function w7(e, t) {
11288
11270
  mergeData: o
11289
11271
  };
11290
11272
  }
11291
- function y7(e) {
11273
+ function w7(e) {
11292
11274
  var v;
11293
11275
  let t = [];
11294
11276
  const n = document.createElement("html");
@@ -11361,7 +11343,7 @@ function Pi(e) {
11361
11343
  const t = /font-family:\s*(?:"([^"]+)"|'([^']+)'|([^;]+))/i, n = e.match(t);
11362
11344
  return n ? (n[1] || n[2] || n[3]).trim() : null;
11363
11345
  }
11364
- const _7 = M9((e) => {
11346
+ const y7 = M9((e) => {
11365
11347
  var $, R;
11366
11348
  const { layer: t, id: n, position: r } = e, o = k(T1), i = t1(null), s = t1(null), a = t1(`transform: rotate(${r == null ? void 0 : r.rotate}deg) translate(${r == null ? void 0 : r.startX}px, ${r == null ? void 0 : r.startY}px)`), d = t1(($ = r == null ? void 0 : r.startY) != null ? $ : 0), v = t1((R = r == null ? void 0 : r.startX) != null ? R : 0), g = typeof t.componentKey == "string" ? k(S1).get(t.componentKey) : t.componentKey, u = Q(() => ({
11367
11349
  data: t.data,
@@ -11429,7 +11411,7 @@ export {
11429
11411
  u1 as BuiltInUIPart,
11430
11412
  H5 as COLOR_PICKER_COMPONENT,
11431
11413
  y5 as COMMON_LABEL_COMPONENT,
11432
- nt as CanvasFloatDomService,
11414
+ rt as CanvasFloatDomService,
11433
11415
  nr as CanvasPopup,
11434
11416
  Kn as CanvasPopupService,
11435
11417
  w5 as CommonLabel,
@@ -11480,39 +11462,38 @@ export {
11480
11462
  e9 as HTML_CLIPBOARD_MIME_TYPE,
11481
11463
  _5 as HeadingItem,
11482
11464
  cr as IBeforeCloseService,
11483
- rt as ICanvasPopupService,
11465
+ ot as ICanvasPopupService,
11484
11466
  ur as IClipboardInterfaceService,
11485
- at as IConfirmService,
11486
11467
  l3 as IContextMenuService,
11487
11468
  ct as IDialogService,
11488
11469
  Pn as IFontService,
11489
11470
  ut as IGalleryService,
11490
- st as IGlobalZoneService,
11471
+ lt as IGlobalZoneService,
11491
11472
  j1 as ILayoutService,
11492
11473
  Qi as ILeftSidebarService,
11493
11474
  fr as ILocalFileService,
11494
11475
  Z1 as IMenuManagerService,
11495
- et as IMessageService,
11476
+ tt as IMessageService,
11496
11477
  a3 as INotificationService,
11497
- tt as IPlatformService,
11478
+ nt as IPlatformService,
11498
11479
  Le as IShortcutService,
11499
11480
  be as ISidebarService,
11500
11481
  Ue as IUIController,
11501
- N1 as IUIPartsService,
11502
- lt as IZenZoneService,
11482
+ E1 as IUIPartsService,
11483
+ at as IZenZoneService,
11503
11484
  q1 as KeyCode,
11504
11485
  H1 as MenuItemType,
11505
11486
  Fe as MenuManagerPosition,
11506
11487
  ke as MenuManagerService,
11507
11488
  y1 as MetaKeys,
11508
11489
  No as MobileContextMenu,
11509
- v7 as MockMessageService,
11490
+ C7 as MockMessageService,
11510
11491
  Kt as PLAIN_TEXT_CLIPBOARD_MIME_TYPE,
11511
11492
  Yn as PasteCommand,
11512
11493
  Gn as PlatformService,
11513
- _7 as PrintFloatDomSingle,
11494
+ y7 as PrintFloatDomSingle,
11514
11495
  c7 as ProgressBar,
11515
- ot as RectPopup,
11496
+ it as RectPopup,
11516
11497
  ao as RedoShortcutItem,
11517
11498
  _o as Ribbon,
11518
11499
  fe as RibbonDataGroup,
@@ -11525,13 +11506,12 @@ export {
11525
11506
  ie as SharedController,
11526
11507
  d7 as SheetPasteShortKeyCommandName,
11527
11508
  se as ShortcutPanelController,
11528
- G3 as ShortcutPanelService,
11509
+ X3 as ShortcutPanelService,
11529
11510
  je as ShortcutService,
11530
11511
  sr as Sidebar,
11531
11512
  vo as SingleCanvasPopup,
11532
11513
  ar as SingleUnitUIController,
11533
11514
  t7 as Slider,
11534
- C7 as TestConfirmService,
11535
11515
  s3 as ThemeSwitcherService,
11536
11516
  i3 as ToggleShortcutPanelOperation,
11537
11517
  bo as ToolbarButton,
@@ -11549,14 +11529,14 @@ export {
11549
11529
  lr as ZenZone,
11550
11530
  e7 as getHeaderFooterMenuHiddenObservable,
11551
11531
  Ki as getMenuHiddenObservable,
11552
- y7 as handelExcelToJson,
11553
- b7 as handelTableToJson,
11532
+ w7 as handelExcelToJson,
11533
+ m7 as handelTableToJson,
11554
11534
  vr as handleDomToJson,
11555
- L7 as handlePlainToJson,
11535
+ b7 as handlePlainToJson,
11556
11536
  dt as handleStringToStyle,
11557
- p7 as handleTableColgroup,
11558
- w7 as handleTableMergeData,
11559
- m7 as handleTableRowGroup,
11537
+ g7 as handleTableColgroup,
11538
+ L7 as handleTableMergeData,
11539
+ p7 as handleTableRowGroup,
11560
11540
  h7 as imageMimeTypeSet,
11561
11541
  p5 as mergeMenuConfigs,
11562
11542
  Zi as splitSpanText,
@@ -11570,7 +11550,7 @@ export {
11570
11550
  re as useEvent,
11571
11551
  L5 as useObservableRef,
11572
11552
  I5 as useScrollYOverContainer,
11573
- g7 as useSidebarClick,
11553
+ v7 as useSidebarClick,
11574
11554
  Lo as useToolbarItemStatus,
11575
11555
  o7 as useUpdateEffect,
11576
11556
  l7 as useVirtualList