@univerjs/core 0.1.0-beta.0 → 0.1.0-beta.1

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
@@ -1,9 +1,9 @@
1
1
  var Cs = Object.defineProperty;
2
2
  var Ns = (t, e, s) => e in t ? Cs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
- var _ = (t, e, s) => (Ns(t, typeof e != "symbol" ? e + "" : e, s), s);
3
+ var d = (t, e, s) => (Ns(t, typeof e != "symbol" ? e + "" : e, s), s);
4
4
  import { createIdentifier as G, Inject as U, Injector as ot } from "@wendellhu/redi";
5
- import { Subject as M, BehaviorSubject as K, Observable as Ss, combineLatest as bs } from "rxjs";
6
- import { map as ws } from "rxjs/operators";
5
+ import { Subject as D, BehaviorSubject as K, Observable as bs, combineLatest as ws } from "rxjs";
6
+ import { map as Ss } from "rxjs/operators";
7
7
  function Ls() {
8
8
  vs();
9
9
  }
@@ -26,7 +26,7 @@ function vs() {
26
26
  }
27
27
  class Ye {
28
28
  constructor() {
29
- _(this, "_data", []);
29
+ d(this, "_data", []);
30
30
  }
31
31
  static create() {
32
32
  return new Ye();
@@ -44,7 +44,7 @@ class Ye {
44
44
  }
45
45
  class Ke {
46
46
  constructor() {
47
- _(this, "_data", /* @__PURE__ */ new Map());
47
+ d(this, "_data", /* @__PURE__ */ new Map());
48
48
  }
49
49
  static create() {
50
50
  return new Ke();
@@ -60,9 +60,9 @@ class Ke {
60
60
  }
61
61
  }
62
62
  var L = /* @__PURE__ */ ((t) => (t[t.Univer = 0] = "Univer", t[t.Doc = 1] = "Doc", t[t.Sheet = 2] = "Sheet", t[t.Slide = 3] = "Slide", t))(L || {});
63
- class Ds {
63
+ class Ms {
64
64
  constructor(e) {
65
- _(this, "_name");
65
+ d(this, "_name");
66
66
  this._name = e;
67
67
  }
68
68
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -80,10 +80,10 @@ class Ds {
80
80
  return this._name;
81
81
  }
82
82
  }
83
- _(Ds, "type", 0);
84
- class Ms {
83
+ d(Ms, "type", 0);
84
+ class Ds {
85
85
  constructor() {
86
- _(this, "_plugins", []);
86
+ d(this, "_plugins", []);
87
87
  }
88
88
  addPlugin(e) {
89
89
  this._plugins.push(e);
@@ -98,7 +98,7 @@ class Ms {
98
98
  }
99
99
  class Us {
100
100
  constructor() {
101
- _(this, "_pluginsRegisteredByBusiness", /* @__PURE__ */ new Map());
101
+ d(this, "_pluginsRegisteredByBusiness", /* @__PURE__ */ new Map());
102
102
  }
103
103
  registerPlugin(e, s) {
104
104
  const n = e.type;
@@ -115,13 +115,13 @@ function it(t, e) {
115
115
  const s = t.indexOf(e);
116
116
  return s > -1 ? (t.splice(s, 1), !0) : !1;
117
117
  }
118
- function to(t) {
118
+ function yi(t) {
119
119
  const e = /* @__PURE__ */ new Set(), s = [];
120
120
  for (const n of t)
121
121
  e.has(n) || (e.add(n), s.push(n));
122
122
  return s;
123
123
  }
124
- function Ts(t, e) {
124
+ function Ps(t, e) {
125
125
  for (let s = t.length - 1; s > -1; s--) {
126
126
  const n = t[s];
127
127
  if (e(n, s))
@@ -129,7 +129,7 @@ function Ts(t, e) {
129
129
  }
130
130
  return null;
131
131
  }
132
- async function Ps(t) {
132
+ async function xs(t) {
133
133
  for (const [e, s] of t.entries())
134
134
  try {
135
135
  if (!await s())
@@ -149,7 +149,7 @@ async function Ps(t) {
149
149
  index: -1
150
150
  };
151
151
  }
152
- function xs(t) {
152
+ function Ts(t) {
153
153
  for (const [e, s] of t.entries())
154
154
  try {
155
155
  if (!s())
@@ -169,7 +169,7 @@ function xs(t) {
169
169
  index: -1
170
170
  };
171
171
  }
172
- function we(t) {
172
+ function Se(t) {
173
173
  var e = typeof Symbol == "function" && Symbol.iterator, s = e && t[e], n = 0;
174
174
  if (s)
175
175
  return s.call(t);
@@ -207,7 +207,7 @@ function ve(t, e, s) {
207
207
  (i || !(n in e)) && (i || (i = Array.prototype.slice.call(e, 0, n)), i[n] = e[n]);
208
208
  return t.concat(i || Array.prototype.slice.call(e));
209
209
  }
210
- function _t(t) {
210
+ function dt(t) {
211
211
  return typeof t == "function";
212
212
  }
213
213
  function Fs(t) {
@@ -225,7 +225,7 @@ var kt = Fs(function(t) {
225
225
  `) : "", this.name = "UnsubscriptionError", this.errors = s;
226
226
  };
227
227
  });
228
- function De(t, e) {
228
+ function Me(t, e) {
229
229
  if (t) {
230
230
  var s = t.indexOf(e);
231
231
  0 <= s && t.splice(s, 1);
@@ -243,7 +243,7 @@ var Xe = function() {
243
243
  if (o)
244
244
  if (this._parentage = null, Array.isArray(o))
245
245
  try {
246
- for (var a = we(o), c = a.next(); !c.done; c = a.next()) {
246
+ for (var a = Se(o), c = a.next(); !c.done; c = a.next()) {
247
247
  var l = c.value;
248
248
  l.remove(this);
249
249
  }
@@ -260,7 +260,7 @@ var Xe = function() {
260
260
  else
261
261
  o.remove(this);
262
262
  var u = this.initialTeardown;
263
- if (_t(u))
263
+ if (dt(u))
264
264
  try {
265
265
  u();
266
266
  } catch (E) {
@@ -270,10 +270,10 @@ var Xe = function() {
270
270
  if (h) {
271
271
  this._finalizers = null;
272
272
  try {
273
- for (var f = we(h), d = f.next(); !d.done; d = f.next()) {
274
- var g = d.value;
273
+ for (var f = Se(h), _ = f.next(); !_.done; _ = f.next()) {
274
+ var g = _.value;
275
275
  try {
276
- Me(g);
276
+ De(g);
277
277
  } catch (E) {
278
278
  i = i ?? [], E instanceof kt ? i = ve(ve([], Le(i)), Le(E.errors)) : i.push(E);
279
279
  }
@@ -282,7 +282,7 @@ var Xe = function() {
282
282
  n = { error: E };
283
283
  } finally {
284
284
  try {
285
- d && !d.done && (r = f.return) && r.call(f);
285
+ _ && !_.done && (r = f.return) && r.call(f);
286
286
  } finally {
287
287
  if (n)
288
288
  throw n.error;
@@ -296,7 +296,7 @@ var Xe = function() {
296
296
  var s;
297
297
  if (e && e !== this)
298
298
  if (this.closed)
299
- Me(e);
299
+ De(e);
300
300
  else {
301
301
  if (e instanceof t) {
302
302
  if (e.closed || e._hasParent(this))
@@ -313,23 +313,23 @@ var Xe = function() {
313
313
  this._parentage = Array.isArray(s) ? (s.push(e), s) : s ? [s, e] : e;
314
314
  }, t.prototype._removeParent = function(e) {
315
315
  var s = this._parentage;
316
- s === e ? this._parentage = null : Array.isArray(s) && De(s, e);
316
+ s === e ? this._parentage = null : Array.isArray(s) && Me(s, e);
317
317
  }, t.prototype.remove = function(e) {
318
318
  var s = this._finalizers;
319
- s && De(s, e), e instanceof t && e._removeParent(this);
319
+ s && Me(s, e), e instanceof t && e._removeParent(this);
320
320
  }, t.EMPTY = function() {
321
321
  var e = new t();
322
322
  return e.closed = !0, e;
323
323
  }(), t;
324
324
  }();
325
325
  Xe.EMPTY;
326
- function Hs(t) {
327
- return t instanceof Xe || t && "closed" in t && _t(t.remove) && _t(t.add) && _t(t.unsubscribe);
326
+ function ps(t) {
327
+ return t instanceof Xe || t && "closed" in t && dt(t.remove) && dt(t.add) && dt(t.unsubscribe);
328
328
  }
329
- function Me(t) {
330
- _t(t) ? t() : t.unsubscribe();
329
+ function De(t) {
330
+ dt(t) ? t() : t.unsubscribe();
331
331
  }
332
- class ps {
332
+ class Hs {
333
333
  /**
334
334
  * Create a new EventState
335
335
  * @param skipNextObservers defines a flag which will instruct the observable to skip following observers when set to true
@@ -340,13 +340,13 @@ class ps {
340
340
  /**
341
341
  * An WorkBookObserver can set this property to true to prevent subsequent observers of being notified
342
342
  */
343
- _(this, "skipNextObservers");
343
+ d(this, "skipNextObservers");
344
344
  /**
345
345
  * This will be populated with the return value of the last function that was executed.
346
346
  * If it is the first function in the callback chain it will be the event data.
347
347
  */
348
- _(this, "lastReturnValue");
349
- _(this, "isStopPropagation", !1);
348
+ d(this, "lastReturnValue");
349
+ d(this, "isStopPropagation", !1);
350
350
  this.initialize(e);
351
351
  }
352
352
  /**
@@ -363,7 +363,7 @@ class ps {
363
363
  this.isStopPropagation = !0;
364
364
  }
365
365
  }
366
- function Bs(t) {
366
+ function $s(t) {
367
367
  return t instanceof fe;
368
368
  }
369
369
  class fe {
@@ -373,11 +373,11 @@ class fe {
373
373
  */
374
374
  constructor(e, s) {
375
375
  /** @hidden */
376
- _(this, "_willBeUnregistered", !1);
376
+ d(this, "_willBeUnregistered", !1);
377
377
  /**
378
378
  * Gets or sets a property defining that the observer as to be unregistered after the next notification
379
379
  */
380
- _(this, "unregisterOnNextCall", !1);
380
+ d(this, "unregisterOnNextCall", !1);
381
381
  this.callback = e, this.observable = s;
382
382
  }
383
383
  dispose() {
@@ -390,10 +390,10 @@ class ge {
390
390
  * @param onObserverAdded defines a callback to call when a new observer is added
391
391
  */
392
392
  constructor(e) {
393
- _(this, "_observers", new Array());
394
- _(this, "_eventState");
395
- _(this, "_onObserverAdded");
396
- this._eventState = new ps(), e && (this._onObserverAdded = e);
393
+ d(this, "_observers", new Array());
394
+ d(this, "_eventState");
395
+ d(this, "_onObserverAdded");
396
+ this._eventState = new Hs(), e && (this._onObserverAdded = e);
397
397
  }
398
398
  /**
399
399
  * Gets the list of observers
@@ -553,13 +553,13 @@ class ge {
553
553
  return s !== -1 ? (this._observers.splice(s, 1), !0) : !1;
554
554
  }
555
555
  }
556
- function w(t) {
556
+ function S(t) {
557
557
  let e = !1;
558
- return Hs(t) ? {
558
+ return ps(t) ? {
559
559
  dispose: () => {
560
560
  e || (e = !0, t.unsubscribe());
561
561
  }
562
- } : Bs(t) ? {
562
+ } : $s(t) ? {
563
563
  dispose: () => {
564
564
  e || (e = !0, t.dispose());
565
565
  }
@@ -569,14 +569,14 @@ function w(t) {
569
569
  }
570
570
  };
571
571
  }
572
- function eo(t) {
573
- return w(() => {
572
+ function to(t) {
573
+ return S(() => {
574
574
  t.unsubscribe();
575
575
  });
576
576
  }
577
- class Ws {
577
+ class Bs {
578
578
  constructor() {
579
- _(this, "_disposables", /* @__PURE__ */ new Set());
579
+ d(this, "_disposables", /* @__PURE__ */ new Set());
580
580
  }
581
581
  add(e) {
582
582
  return this._disposables.add(e), {
@@ -591,10 +591,10 @@ class Ws {
591
591
  });
592
592
  }
593
593
  }
594
- class T {
594
+ class P {
595
595
  constructor() {
596
- _(this, "_disposed", !1);
597
- _(this, "_collection", new Ws());
596
+ d(this, "_disposed", !1);
597
+ d(this, "_collection", new Bs());
598
598
  }
599
599
  disposeWithMe(e) {
600
600
  return this._collection.add(e);
@@ -603,22 +603,22 @@ class T {
603
603
  this._disposed || (this._disposed = !0, this._collection.dispose());
604
604
  }
605
605
  }
606
- class so extends T {
606
+ class eo extends P {
607
607
  constructor() {
608
608
  super(...arguments);
609
- _(this, "dispose$", new M());
609
+ d(this, "dispose$", new D());
610
610
  }
611
611
  dispose() {
612
612
  super.dispose(), this.dispose$.next(), this.dispose$.complete();
613
613
  }
614
614
  }
615
615
  const Et = G("univer.context-service");
616
- class $s extends T {
616
+ class Ws extends P {
617
617
  constructor() {
618
618
  super(...arguments);
619
- _(this, "_contextChanged$", new M());
620
- _(this, "contextChanged$", this._contextChanged$.asObservable());
621
- _(this, "_contextMap", /* @__PURE__ */ new Map());
619
+ d(this, "_contextChanged$", new D());
620
+ d(this, "contextChanged$", this._contextChanged$.asObservable());
621
+ d(this, "_contextMap", /* @__PURE__ */ new Map());
622
622
  }
623
623
  dispose() {
624
624
  super.dispose(), this._contextChanged$.complete();
@@ -642,10 +642,10 @@ class $s extends T {
642
642
  }
643
643
  var Gs = /* @__PURE__ */ ((t) => (t[t.SILENT = 0] = "SILENT", t[t.ERROR = 1] = "ERROR", t[t.WARN = 2] = "WARN", t[t.VERBOSE = 3] = "VERBOSE", t))(Gs || {});
644
644
  const ct = G("univer.log");
645
- class ks extends T {
645
+ class ks extends P {
646
646
  constructor() {
647
647
  super(...arguments);
648
- _(this, "_logLevel", 0);
648
+ d(this, "_logLevel", 0);
649
649
  }
650
650
  log(...s) {
651
651
  if (this._logLevel < 3 || !s.length)
@@ -668,16 +668,16 @@ var Vs = Object.defineProperty, js = Object.getOwnPropertyDescriptor, zs = (t, e
668
668
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
669
669
  return n && r && Vs(e, s, r), r;
670
670
  }, Ue = (t, e) => (s, n) => e(s, n, t), Ee = /* @__PURE__ */ ((t) => (t[t.COMMAND = 0] = "COMMAND", t[t.OPERATION = 1] = "OPERATION", t[t.MUTATION = 2] = "MUTATION", t))(Ee || {});
671
- const Wt = G("anywhere.command-service");
671
+ const Bt = G("anywhere.command-service");
672
672
  class Ys {
673
673
  constructor() {
674
674
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
675
- _(this, "_commands", /* @__PURE__ */ new Map());
675
+ d(this, "_commands", /* @__PURE__ */ new Map());
676
676
  }
677
677
  registerCommand(e) {
678
678
  if (this._commands.has(e.id))
679
679
  throw new Error(`Command ${e.id} has registered before!`);
680
- return this._commands.set(e.id, e), w(() => {
680
+ return this._commands.set(e.id, e), S(() => {
681
681
  var s;
682
682
  this._commands.delete(e.id), (s = e.onDispose) == null || s.call(e);
683
683
  });
@@ -688,12 +688,12 @@ class Ys {
688
688
  }
689
689
  let yt = class {
690
690
  constructor(t, e) {
691
- _(this, "_commandRegistry");
692
- _(this, "_beforeCommandExecutionListeners", []);
693
- _(this, "_commandExecutedListeners", []);
694
- _(this, "_multiCommandDisposables", /* @__PURE__ */ new Map());
695
- _(this, "_commandExecutingLevel", 0);
696
- _(this, "_commandExecutionStack", []);
691
+ d(this, "_commandRegistry");
692
+ d(this, "_beforeCommandExecutionListeners", []);
693
+ d(this, "_commandExecutedListeners", []);
694
+ d(this, "_multiCommandDisposables", /* @__PURE__ */ new Map());
695
+ d(this, "_commandExecutingLevel", 0);
696
+ d(this, "_commandExecutionStack", []);
697
697
  this._injector = t, this._log = e, this._commandRegistry = new Ys();
698
698
  }
699
699
  registerCommand(t) {
@@ -704,7 +704,7 @@ let yt = class {
704
704
  }
705
705
  beforeCommandExecuted(t) {
706
706
  if (this._beforeCommandExecutionListeners.indexOf(t) === -1)
707
- return this._beforeCommandExecutionListeners.push(t), w(() => {
707
+ return this._beforeCommandExecutionListeners.push(t), S(() => {
708
708
  const e = this._beforeCommandExecutionListeners.indexOf(t);
709
709
  this._beforeCommandExecutionListeners.splice(e, 1);
710
710
  });
@@ -712,7 +712,7 @@ let yt = class {
712
712
  }
713
713
  onCommandExecuted(t) {
714
714
  if (this._commandExecutedListeners.indexOf(t) === -1)
715
- return this._commandExecutedListeners.push(t), w(() => {
715
+ return this._commandExecutedListeners.push(t), S(() => {
716
716
  const e = this._commandExecutedListeners.indexOf(t);
717
717
  this._commandExecutedListeners.splice(e, 1);
718
718
  });
@@ -730,7 +730,7 @@ let yt = class {
730
730
  const a = await this._execute(r, e);
731
731
  return this._commandExecutedListeners.forEach((c) => c(i, s)), o.dispose(), a;
732
732
  }
733
- throw new Error(`[CommandService]: Command "${t}" is not registered.`);
733
+ throw new Error(`[CommandService]: command "${t}" is not registered.`);
734
734
  }
735
735
  syncExecuteCommand(t, e, s) {
736
736
  const n = this._commandRegistry.getCommand(t);
@@ -741,7 +741,7 @@ let yt = class {
741
741
  params: e
742
742
  };
743
743
  if (r.type === 2) {
744
- const c = Ts(
744
+ const c = Ps(
745
745
  this._commandExecutionStack,
746
746
  (l) => l.type === 0
747
747
  /* COMMAND */
@@ -753,10 +753,10 @@ let yt = class {
753
753
  const a = this._syncExecute(r, e);
754
754
  return this._commandExecutedListeners.forEach((c) => c(i, s)), o.dispose(), a;
755
755
  }
756
- throw new Error(`[CommandService]: Command "${t}" is not registered.`);
756
+ throw new Error(`[CommandService]: command "${t}" is not registered.`);
757
757
  }
758
758
  _pushCommandExecutionStack(t) {
759
- return this._commandExecutionStack.push(t), w(() => it(this._commandExecutionStack, t));
759
+ return this._commandExecutionStack.push(t), S(() => it(this._commandExecutionStack, t));
760
760
  }
761
761
  _registerCommand(t) {
762
762
  return this._commandRegistry.registerCommand(t);
@@ -772,7 +772,7 @@ let yt = class {
772
772
  s = e[0];
773
773
  }
774
774
  const n = s.registerImplementation(t);
775
- return w(() => {
775
+ return S(() => {
776
776
  var r;
777
777
  n.dispose(), s.hasImplementations() || (r = this._multiCommandDisposables.get(t.id)) == null || r.dispose();
778
778
  });
@@ -812,12 +812,12 @@ yt = zs([
812
812
  ], yt);
813
813
  class Ks {
814
814
  constructor(e) {
815
- _(this, "name");
816
- _(this, "multi", !0);
817
- _(this, "type", 0);
818
- _(this, "priority", 0);
819
- _(this, "_implementations", []);
820
- _(this, "handler", async (e, s) => {
815
+ d(this, "name");
816
+ d(this, "multi", !0);
817
+ d(this, "type", 0);
818
+ d(this, "priority", 0);
819
+ d(this, "_implementations", []);
820
+ d(this, "handler", async (e, s) => {
821
821
  if (!this._implementations.length)
822
822
  return !1;
823
823
  const n = e.get(ct), r = e.get(Et), i = e.get(ot);
@@ -832,7 +832,7 @@ class Ks {
832
832
  }
833
833
  registerImplementation(e) {
834
834
  const s = { command: e };
835
- return this._implementations.push(s), this._implementations.sort((n, r) => r.command.priority - n.command.priority), w(() => {
835
+ return this._implementations.push(s), this._implementations.sort((n, r) => r.command.priority - n.command.priority), S(() => {
836
836
  var r;
837
837
  const n = this._implementations.indexOf(s);
838
838
  this._implementations.splice(n, 1), (r = e.onDispose) == null || r.call(e);
@@ -844,17 +844,17 @@ class Ks {
844
844
  }
845
845
  function Qe(t, e, s) {
846
846
  const n = t.map((r) => () => e.syncExecuteCommand(r.id, r.params, s));
847
- return xs(n);
847
+ return Ts(n);
848
848
  }
849
- function no(t, e, s) {
849
+ function so(t, e, s) {
850
850
  const n = t.map((r) => () => e.executeCommand(r.id, r.params, s));
851
- return Ps(n);
851
+ return xs(n);
852
852
  }
853
853
  const Xs = G("univer.config-service");
854
854
  class Qs {
855
855
  constructor() {
856
856
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
857
- _(this, "_config", /* @__PURE__ */ new Map());
857
+ d(this, "_config", /* @__PURE__ */ new Map());
858
858
  }
859
859
  getConfig(e) {
860
860
  return this._config.get(e);
@@ -866,11 +866,11 @@ class Qs {
866
866
  this._config.delete(e);
867
867
  }
868
868
  }
869
- class Zs extends T {
869
+ class Zs extends P {
870
870
  constructor() {
871
871
  super(...arguments);
872
- _(this, "_error$", new M());
873
- _(this, "error$", this._error$.asObservable());
872
+ d(this, "_error$", new D());
873
+ d(this, "error$", this._error$.asObservable());
874
874
  }
875
875
  dispose() {
876
876
  this._error$.complete();
@@ -879,29 +879,29 @@ class Zs extends T {
879
879
  this._error$.next({ errorKey: s });
880
880
  }
881
881
  }
882
- const ro = "__default_document_sub_component_id20231101__";
882
+ const no = "__default_document_sub_component_id20231101__";
883
883
  class qs {
884
884
  constructor() {
885
- _(this, "_managerInfo", /* @__PURE__ */ new Map());
885
+ d(this, "_managerInfo", /* @__PURE__ */ new Map());
886
886
  /**
887
887
  * The deletion action is triggered and broadcasted within the core business plugin.
888
888
  * Upon receiving the deletion broadcast, the plugin executes the plugin command logic.
889
889
  */
890
- _(this, "_remove$", new M());
891
- _(this, "remove$", this._remove$.asObservable());
890
+ d(this, "_remove$", new D());
891
+ d(this, "remove$", this._remove$.asObservable());
892
892
  /**
893
893
  * Addition and updates are also triggered and broadcasted within the core business plugin.
894
894
  * Upon receiving the update broadcast, the plugin updates the location of its business components.
895
895
  */
896
- _(this, "_andOrUpdate$", new M());
897
- _(this, "andOrUpdate$", this._andOrUpdate$.asObservable());
896
+ d(this, "_andOrUpdate$", new D());
897
+ d(this, "andOrUpdate$", this._andOrUpdate$.asObservable());
898
898
  /**
899
899
  * The position, width, and height of the plugin's business components can be changed by the user through interface operations.
900
900
  * Here, it is necessary to notify the core business plugin to update the relevant location model.
901
901
  * The logic converges in the core business plugin.
902
902
  */
903
- _(this, "_pluginUpdate$", new M());
904
- _(this, "pluginUpdate$", this._pluginUpdate$.asObservable());
903
+ d(this, "_pluginUpdate$", new D());
904
+ d(this, "pluginUpdate$", this._pluginUpdate$.asObservable());
905
905
  }
906
906
  getFloatObject(e) {
907
907
  return this._getFloatingObject(e);
@@ -974,7 +974,7 @@ const Js = G(
974
974
  );
975
975
  class ys {
976
976
  constructor() {
977
- _(this, "cursor", 0);
977
+ d(this, "cursor", 0);
978
978
  }
979
979
  reset() {
980
980
  return this.cursor = 0, this;
@@ -1016,16 +1016,16 @@ function en(t, e) {
1016
1016
  }
1017
1017
  return i;
1018
1018
  }
1019
- function io(t, e) {
1019
+ function ro(t, e) {
1020
1020
  let s = t.length - 1;
1021
- return e < t[0] ? -1 : e > t[t.length - 1] ? 1 / 0 : (t.length < 40 || e <= t[20] || e >= t[s - 20] ? s = en(t, e) : s = tn(t, e), s);
1021
+ return e < 0 ? -1 : e < t[0] ? 0 : e > t[t.length - 1] ? 1 / 0 : (t.length < 40 || e <= t[20] || e >= t[s - 20] ? s = en(t, e) : s = tn(t, e), s);
1022
1022
  }
1023
- function oo(t) {
1023
+ function io(t) {
1024
1024
  const e = new Blob([t], { type: "text/javascript" });
1025
1025
  return window.URL.createObjectURL(e);
1026
1026
  }
1027
- var sn = /* @__PURE__ */ ((t) => (t[t.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", t[t.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", t))(sn || {}), N = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.THIN = 1] = "THIN", t[t.HAIR = 2] = "HAIR", t[t.DOTTED = 3] = "DOTTED", t[t.DASHED = 4] = "DASHED", t[t.DASH_DOT = 5] = "DASH_DOT", t[t.DASH_DOT_DOT = 6] = "DASH_DOT_DOT", t[t.DOUBLE = 7] = "DOUBLE", t[t.MEDIUM = 8] = "MEDIUM", t[t.MEDIUM_DASHED = 9] = "MEDIUM_DASHED", t[t.MEDIUM_DASH_DOT = 10] = "MEDIUM_DASH_DOT", t[t.MEDIUM_DASH_DOT_DOT = 11] = "MEDIUM_DASH_DOT_DOT", t[t.SLANT_DASH_DOT = 12] = "SLANT_DASH_DOT", t[t.THICK = 13] = "THICK", t))(N || {}), nn = /* @__PURE__ */ ((t) => (t.TOP = "top", t.BOTTOM = "bottom", t.LEFT = "left", t.RIGHT = "right", t.NONE = "none", t.ALL = "all", t.OUTSIDE = "outside", t.INSIDE = "inside", t.HORIZONTAL = "horizontal", t.VERTICAL = "vertical", t.TLBR = "tlbr", t.TLBC_TLMR = "tlbc_tlmr", t.TLBR_TLBC_TLMR = "tlbr_tlbc_tlmr", t.BLTR = "bl_tr", t.MLTR_BCTR = "mltr_bctr", t))(nn || {}), $ = /* @__PURE__ */ ((t) => (t[t.UNSUPPORTED = 0] = "UNSUPPORTED", t[t.RGB = 1] = "RGB", t[t.HEX = 2] = "HEX", t[t.THEME = 3] = "THEME", t))($ || {}), rn = /* @__PURE__ */ ((t) => (t[t.ON = 0] = "ON", t[t.OFF = 1] = "OFF", t))(rn || {}), on = /* @__PURE__ */ ((t) => (t[t.CONDITION_TYPE_UNSPECIFIED = 0] = "CONDITION_TYPE_UNSPECIFIED", t[t.NUMNUMBER_BETWEENR_GREATER = 1] = "NUMNUMBER_BETWEENR_GREATER", t[t.NUMBER_GREATER_THAN_EQ = 2] = "NUMBER_GREATER_THAN_EQ", t[t.NUMBER_LESS = 3] = "NUMBER_LESS", t[t.NUMBER_LESS_THAN_EQ = 4] = "NUMBER_LESS_THAN_EQ", t[t.NUMBER_EQ = 5] = "NUMBER_EQ", t[t.NUMBER_NOT_EQ = 6] = "NUMBER_NOT_EQ", t[t.NUMBER_BETWEEN = 7] = "NUMBER_BETWEEN", t[t.NUMBER_NOT_BETWEEN = 8] = "NUMBER_NOT_BETWEEN", t[t.TEXT_CONTAINS = 9] = "TEXT_CONTAINS", t[t.TEXT_NOT_CONTAINS = 10] = "TEXT_NOT_CONTAINS", t[t.TEXT_STARTS_WITH = 11] = "TEXT_STARTS_WITH", t[t.TEXT_ENDS_WITH = 12] = "TEXT_ENDS_WITH", t[t.TEXT_EQ = 13] = "TEXT_EQ", t[t.TEXT_IS_EMAIL = 14] = "TEXT_IS_EMAIL", t[t.TEXT_IS_URL = 15] = "TEXT_IS_URL", t[t.DATE_EQ = 16] = "DATE_EQ", t[t.DATE_BEFORE = 17] = "DATE_BEFORE", t[t.DATE_AFTER = 18] = "DATE_AFTER", t[t.DATE_ON_OR_BEFORE = 19] = "DATE_ON_OR_BEFORE", t[t.DATE_ON_OR_AFTER = 20] = "DATE_ON_OR_AFTER", t[t.DATE_BETWEEN = 21] = "DATE_BETWEEN", t[t.DATE_NOT_BETWEEN = 22] = "DATE_NOT_BETWEEN", t[t.DATE_IS_VALID = 23] = "DATE_IS_VALID", t[t.ONE_OF_RANGE = 24] = "ONE_OF_RANGE", t[t.ONE_OF_LIST = 25] = "ONE_OF_LIST", t[t.BLANK = 26] = "BLANK", t[t.NOT_BLANK = 27] = "NOT_BLANK", t[t.CUSTOM_FORMULA = 28] = "CUSTOM_FORMULA", t[t.BOOLEAN = 29] = "BOOLEAN", t[t.TEXT_NOT_EQ = 30] = "TEXT_NOT_EQ", t[t.DATE_NOT_EQ = 31] = "DATE_NOT_EQ", t))(on || {}), an = /* @__PURE__ */ ((t) => (t[t.PASTE_NORMAL = 0] = "PASTE_NORMAL", t[t.PASTE_NO_BORDERS = 1] = "PASTE_NO_BORDERS", t[t.PASTE_FORMAT = 2] = "PASTE_FORMAT", t[t.PASTE_FORMULA = 3] = "PASTE_FORMULA", t[t.PASTE_DATA_VALIDATION = 4] = "PASTE_DATA_VALIDATION", t[t.PASTE_VALUES = 5] = "PASTE_VALUES", t[t.PASTE_CONDITIONAL_FORMATTING = 6] = "PASTE_CONDITIONAL_FORMATTING", t[t.PASTE_COLUMN_WIDTHS = 7] = "PASTE_COLUMN_WIDTHS", t))(an || {}), ln = /* @__PURE__ */ ((t) => (t[t.DOCUMENT = 0] = "DOCUMENT", t[t.PROJECT = 1] = "PROJECT", t))(ln || {}), un = /* @__PURE__ */ ((t) => (t[t.COLUMNS = 0] = "COLUMNS", t[t.ROWS = 1] = "ROWS", t))(un || {}), cn = /* @__PURE__ */ ((t) => (t[t.UP = 0] = "UP", t[t.RIGHT = 1] = "RIGHT", t[t.DOWN = 2] = "DOWN", t[t.LEFT = 3] = "LEFT", t))(cn || {});
1028
- function ao(t) {
1027
+ var sn = /* @__PURE__ */ ((t) => (t[t.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", t[t.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", t))(sn || {}), N = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.THIN = 1] = "THIN", t[t.HAIR = 2] = "HAIR", t[t.DOTTED = 3] = "DOTTED", t[t.DASHED = 4] = "DASHED", t[t.DASH_DOT = 5] = "DASH_DOT", t[t.DASH_DOT_DOT = 6] = "DASH_DOT_DOT", t[t.DOUBLE = 7] = "DOUBLE", t[t.MEDIUM = 8] = "MEDIUM", t[t.MEDIUM_DASHED = 9] = "MEDIUM_DASHED", t[t.MEDIUM_DASH_DOT = 10] = "MEDIUM_DASH_DOT", t[t.MEDIUM_DASH_DOT_DOT = 11] = "MEDIUM_DASH_DOT_DOT", t[t.SLANT_DASH_DOT = 12] = "SLANT_DASH_DOT", t[t.THICK = 13] = "THICK", t))(N || {}), nn = /* @__PURE__ */ ((t) => (t.TOP = "top", t.BOTTOM = "bottom", t.LEFT = "left", t.RIGHT = "right", t.NONE = "none", t.ALL = "all", t.OUTSIDE = "outside", t.INSIDE = "inside", t.HORIZONTAL = "horizontal", t.VERTICAL = "vertical", t.TLBR = "tlbr", t.TLBC_TLMR = "tlbc_tlmr", t.TLBR_TLBC_TLMR = "tlbr_tlbc_tlmr", t.BLTR = "bl_tr", t.MLTR_BCTR = "mltr_bctr", t))(nn || {}), W = /* @__PURE__ */ ((t) => (t[t.UNSUPPORTED = 0] = "UNSUPPORTED", t[t.RGB = 1] = "RGB", t[t.HEX = 2] = "HEX", t[t.THEME = 3] = "THEME", t))(W || {}), rn = /* @__PURE__ */ ((t) => (t[t.ON = 0] = "ON", t[t.OFF = 1] = "OFF", t))(rn || {}), on = /* @__PURE__ */ ((t) => (t[t.CONDITION_TYPE_UNSPECIFIED = 0] = "CONDITION_TYPE_UNSPECIFIED", t[t.NUMNUMBER_BETWEENR_GREATER = 1] = "NUMNUMBER_BETWEENR_GREATER", t[t.NUMBER_GREATER_THAN_EQ = 2] = "NUMBER_GREATER_THAN_EQ", t[t.NUMBER_LESS = 3] = "NUMBER_LESS", t[t.NUMBER_LESS_THAN_EQ = 4] = "NUMBER_LESS_THAN_EQ", t[t.NUMBER_EQ = 5] = "NUMBER_EQ", t[t.NUMBER_NOT_EQ = 6] = "NUMBER_NOT_EQ", t[t.NUMBER_BETWEEN = 7] = "NUMBER_BETWEEN", t[t.NUMBER_NOT_BETWEEN = 8] = "NUMBER_NOT_BETWEEN", t[t.TEXT_CONTAINS = 9] = "TEXT_CONTAINS", t[t.TEXT_NOT_CONTAINS = 10] = "TEXT_NOT_CONTAINS", t[t.TEXT_STARTS_WITH = 11] = "TEXT_STARTS_WITH", t[t.TEXT_ENDS_WITH = 12] = "TEXT_ENDS_WITH", t[t.TEXT_EQ = 13] = "TEXT_EQ", t[t.TEXT_IS_EMAIL = 14] = "TEXT_IS_EMAIL", t[t.TEXT_IS_URL = 15] = "TEXT_IS_URL", t[t.DATE_EQ = 16] = "DATE_EQ", t[t.DATE_BEFORE = 17] = "DATE_BEFORE", t[t.DATE_AFTER = 18] = "DATE_AFTER", t[t.DATE_ON_OR_BEFORE = 19] = "DATE_ON_OR_BEFORE", t[t.DATE_ON_OR_AFTER = 20] = "DATE_ON_OR_AFTER", t[t.DATE_BETWEEN = 21] = "DATE_BETWEEN", t[t.DATE_NOT_BETWEEN = 22] = "DATE_NOT_BETWEEN", t[t.DATE_IS_VALID = 23] = "DATE_IS_VALID", t[t.ONE_OF_RANGE = 24] = "ONE_OF_RANGE", t[t.ONE_OF_LIST = 25] = "ONE_OF_LIST", t[t.BLANK = 26] = "BLANK", t[t.NOT_BLANK = 27] = "NOT_BLANK", t[t.CUSTOM_FORMULA = 28] = "CUSTOM_FORMULA", t[t.BOOLEAN = 29] = "BOOLEAN", t[t.TEXT_NOT_EQ = 30] = "TEXT_NOT_EQ", t[t.DATE_NOT_EQ = 31] = "DATE_NOT_EQ", t))(on || {}), an = /* @__PURE__ */ ((t) => (t[t.PASTE_NORMAL = 0] = "PASTE_NORMAL", t[t.PASTE_NO_BORDERS = 1] = "PASTE_NO_BORDERS", t[t.PASTE_FORMAT = 2] = "PASTE_FORMAT", t[t.PASTE_FORMULA = 3] = "PASTE_FORMULA", t[t.PASTE_DATA_VALIDATION = 4] = "PASTE_DATA_VALIDATION", t[t.PASTE_VALUES = 5] = "PASTE_VALUES", t[t.PASTE_CONDITIONAL_FORMATTING = 6] = "PASTE_CONDITIONAL_FORMATTING", t[t.PASTE_COLUMN_WIDTHS = 7] = "PASTE_COLUMN_WIDTHS", t))(an || {}), ln = /* @__PURE__ */ ((t) => (t[t.DOCUMENT = 0] = "DOCUMENT", t[t.PROJECT = 1] = "PROJECT", t))(ln || {}), un = /* @__PURE__ */ ((t) => (t[t.COLUMNS = 0] = "COLUMNS", t[t.ROWS = 1] = "ROWS", t))(un || {}), cn = /* @__PURE__ */ ((t) => (t[t.UP = 0] = "UP", t[t.RIGHT = 1] = "RIGHT", t[t.DOWN = 2] = "DOWN", t[t.LEFT = 3] = "LEFT", t))(cn || {});
1028
+ function oo(t) {
1029
1029
  switch (t) {
1030
1030
  case 3:
1031
1031
  return 1;
@@ -1037,7 +1037,7 @@ function ao(t) {
1037
1037
  return 0;
1038
1038
  }
1039
1039
  }
1040
- var hn = /* @__PURE__ */ ((t) => (t[t.NUMBER_FORMAT_TYPE_UNSPECIFIED = 0] = "NUMBER_FORMAT_TYPE_UNSPECIFIED", t[t.TEXT = 1] = "TEXT", t[t.NUMBER = 2] = "NUMBER", t[t.PERCENT = 3] = "PERCENT", t[t.CURRENCY = 4] = "CURRENCY", t[t.DATE = 5] = "DATE", t[t.TIME = 6] = "TIME", t[t.DATE_TIME = 7] = "DATE_TIME", t[t.SCIENTIFIC = 8] = "SCIENTIFIC", t))(hn || {}), _n = /* @__PURE__ */ ((t) => (t[t.INTERPOLATION_POINT_TYPE_UNSPECIFIED = 0] = "INTERPOLATION_POINT_TYPE_UNSPECIFIED", t[t.MIN = 1] = "MIN", t[t.MAX = 2] = "MAX", t[t.NUMBER = 3] = "NUMBER", t[t.PERCENT = 4] = "PERCENT", t[t.PERCENTILE = 5] = "PERCENTILE", t))(_n || {}), Re = /* @__PURE__ */ ((t) => (t.EN_US = "enUS", t.ZH_CN = "zhCN", t))(Re || {}), dn = /* @__PURE__ */ ((t) => (t[t.RANGE = 0] = "RANGE", t[t.SHEET = 1] = "SHEET", t))(dn || {}), fn = /* @__PURE__ */ ((t) => (t[t.RELATIVE_DATE_UNSPECIFIED = 0] = "RELATIVE_DATE_UNSPECIFIED", t[t.PAST_YEAR = 1] = "PAST_YEAR", t[t.PAST_MONTH = 2] = "PAST_MONTH", t[t.PAST_WEEK = 3] = "PAST_WEEK", t[t.YESTERDAY = 4] = "YESTERDAY", t[t.TODAY = 5] = "TODAY", t[t.TOMORROW = 6] = "TOMORROW", t))(fn || {}), gn = /* @__PURE__ */ ((t) => (t[t.TYPE_UNSPECIFIED = 0] = "TYPE_UNSPECIFIED", t[t.TEXT_BOX = 1] = "TEXT_BOX", t[t.RECTANGLE = 2] = "RECTANGLE", t[t.ROUND_RECTANGLE = 3] = "ROUND_RECTANGLE", t[t.ELLIPSE = 4] = "ELLIPSE", t[t.ARC = 5] = "ARC", t[t.BENT_ARROW = 6] = "BENT_ARROW", t[t.BENT_UP_ARROW = 7] = "BENT_UP_ARROW", t[t.BEVEL = 8] = "BEVEL", t[t.BLOCK_ARC = 9] = "BLOCK_ARC", t[t.BRACE_PAIR = 10] = "BRACE_PAIR", t[t.BRACKET_PAIR = 11] = "BRACKET_PAIR", t[t.CAN = 12] = "CAN", t[t.CHEVRON = 13] = "CHEVRON", t[t.CHORD = 14] = "CHORD", t[t.CLOUD = 15] = "CLOUD", t[t.CORNER = 16] = "CORNER", t[t.CUBE = 17] = "CUBE", t[t.CURVED_DOWN_ARROW = 18] = "CURVED_DOWN_ARROW", t[t.CURVED_LEFT_ARROW = 19] = "CURVED_LEFT_ARROW", t[t.CURVED_RIGHT_ARROW = 20] = "CURVED_RIGHT_ARROW", t[t.CURVED_UP_ARROW = 21] = "CURVED_UP_ARROW", t[t.DECAGON = 22] = "DECAGON", t[t.DIAGONAL_STRIPE = 23] = "DIAGONAL_STRIPE", t[t.DIAMOND = 24] = "DIAMOND", t[t.DODECAGON = 25] = "DODECAGON", t[t.DONUT = 26] = "DONUT", t[t.DOUBLE_WAVE = 27] = "DOUBLE_WAVE", t[t.DOWN_ARROW = 28] = "DOWN_ARROW", t[t.DOWN_ARROW_CALLOUT = 29] = "DOWN_ARROW_CALLOUT", t[t.FOLDED_CORNER = 30] = "FOLDED_CORNER", t[t.FRAME = 31] = "FRAME", t[t.HALF_FRAME = 32] = "HALF_FRAME", t[t.HEART = 33] = "HEART", t[t.HEPTAGON = 34] = "HEPTAGON", t[t.HEXAGON = 35] = "HEXAGON", t[t.HOME_PLATE = 36] = "HOME_PLATE", t[t.HORIZONTAL_SCROLL = 37] = "HORIZONTAL_SCROLL", t[t.IRREGULAR_SEAL_1 = 38] = "IRREGULAR_SEAL_1", t[t.IRREGULAR_SEAL_2 = 39] = "IRREGULAR_SEAL_2", t[t.LEFT_ARROW = 40] = "LEFT_ARROW", t[t.LEFT_ARROW_CALLOUT = 41] = "LEFT_ARROW_CALLOUT", t[t.LEFT_BRACE = 42] = "LEFT_BRACE", t[t.LEFT_BRACKET = 43] = "LEFT_BRACKET", t[t.LEFT_RIGHT_ARROW = 44] = "LEFT_RIGHT_ARROW", t[t.LEFT_RIGHT_ARROW_CALLOUT = 45] = "LEFT_RIGHT_ARROW_CALLOUT", t[t.LEFT_RIGHT_UP_ARROW = 46] = "LEFT_RIGHT_UP_ARROW", t[t.LEFT_UP_ARROW = 47] = "LEFT_UP_ARROW", t[t.LIGHTNING_BOLT = 48] = "LIGHTNING_BOLT", t[t.MATH_DIVIDE = 49] = "MATH_DIVIDE", t[t.MATH_EQUAL = 50] = "MATH_EQUAL", t[t.MATH_MINUS = 51] = "MATH_MINUS", t[t.MATH_MULTIPLY = 52] = "MATH_MULTIPLY", t[t.MATH_NOT_EQUAL = 53] = "MATH_NOT_EQUAL", t[t.MATH_PLUS = 54] = "MATH_PLUS", t[t.MOON = 55] = "MOON", t[t.NO_SMOKING = 56] = "NO_SMOKING", t[t.NOTCHED_RIGHT_ARROW = 57] = "NOTCHED_RIGHT_ARROW", t[t.OCTAGON = 58] = "OCTAGON", t[t.PARALLELOGRAM = 59] = "PARALLELOGRAM", t[t.PENTAGON = 60] = "PENTAGON", t[t.PIE = 61] = "PIE", t[t.PLAQUE = 62] = "PLAQUE", t[t.PLUS = 63] = "PLUS", t[t.QUAD_ARROW = 64] = "QUAD_ARROW", t[t.QUAD_ARROW_CALLOUT = 65] = "QUAD_ARROW_CALLOUT", t[t.RIBBON = 66] = "RIBBON", t[t.RIBBON_2 = 67] = "RIBBON_2", t[t.RIGHT_ARROW = 68] = "RIGHT_ARROW", t[t.RIGHT_ARROW_CALLOUT = 69] = "RIGHT_ARROW_CALLOUT", t[t.RIGHT_BRACE = 70] = "RIGHT_BRACE", t[t.RIGHT_BRACKET = 71] = "RIGHT_BRACKET", t[t.ROUND_1_RECTANGLE = 72] = "ROUND_1_RECTANGLE", t[t.ROUND_2_DIAGONAL_RECTANGLE = 73] = "ROUND_2_DIAGONAL_RECTANGLE", t[t.ROUND_2_SAME_RECTANGLE = 74] = "ROUND_2_SAME_RECTANGLE", t[t.RIGHT_TRIANGLE = 75] = "RIGHT_TRIANGLE", t[t.SMILEY_FACE = 76] = "SMILEY_FACE", t[t.SNIP_1_RECTANGLE = 77] = "SNIP_1_RECTANGLE", t[t.SNIP_2_DIAGONAL_RECTANGLE = 78] = "SNIP_2_DIAGONAL_RECTANGLE", t[t.SNIP_2_SAME_RECTANGLE = 79] = "SNIP_2_SAME_RECTANGLE", t[t.SNIP_ROUND_RECTANGLE = 80] = "SNIP_ROUND_RECTANGLE", t[t.STAR_10 = 81] = "STAR_10", t[t.STAR_12 = 82] = "STAR_12", t[t.STAR_16 = 83] = "STAR_16", t[t.STAR_24 = 84] = "STAR_24", t[t.STAR_32 = 85] = "STAR_32", t[t.STAR_4 = 86] = "STAR_4", t[t.STAR_5 = 87] = "STAR_5", t[t.STAR_6 = 88] = "STAR_6", t[t.STAR_7 = 89] = "STAR_7", t[t.STAR_8 = 90] = "STAR_8", t[t.STRIPED_RIGHT_ARROW = 91] = "STRIPED_RIGHT_ARROW", t[t.SUN = 92] = "SUN", t[t.TRAPEZOID = 93] = "TRAPEZOID", t[t.TRIANGLE = 94] = "TRIANGLE", t[t.UP_ARROW = 95] = "UP_ARROW", t[t.UP_ARROW_CALLOUT = 96] = "UP_ARROW_CALLOUT", t[t.UP_DOWN_ARROW = 97] = "UP_DOWN_ARROW", t[t.UTURN_ARROW = 98] = "UTURN_ARROW", t[t.VERTICAL_SCROLL = 99] = "VERTICAL_SCROLL", t[t.WAVE = 100] = "WAVE", t[t.WEDGE_ELLIPSE_CALLOUT = 101] = "WEDGE_ELLIPSE_CALLOUT", t[t.WEDGE_RECTANGLE_CALLOUT = 102] = "WEDGE_RECTANGLE_CALLOUT", t[t.WEDGE_ROUND_RECTANGLE_CALLOUT = 103] = "WEDGE_ROUND_RECTANGLE_CALLOUT", t[t.FLOW_CHART_ALTERNATE_PROCESS = 104] = "FLOW_CHART_ALTERNATE_PROCESS", t[t.FLOW_CHART_COLLATE = 105] = "FLOW_CHART_COLLATE", t[t.FLOW_CHART_CONNECTOR = 106] = "FLOW_CHART_CONNECTOR", t[t.FLOW_CHART_DECISION = 107] = "FLOW_CHART_DECISION", t[t.FLOW_CHART_DELAY = 108] = "FLOW_CHART_DELAY", t[t.FLOW_CHART_DISPLAY = 109] = "FLOW_CHART_DISPLAY", t[t.FLOW_CHART_DOCUMENT = 110] = "FLOW_CHART_DOCUMENT", t[t.FLOW_CHART_EXTRACT = 111] = "FLOW_CHART_EXTRACT", t[t.FLOW_CHART_INPUT_OUTPUT = 112] = "FLOW_CHART_INPUT_OUTPUT", t[t.FLOW_CHART_INTERNAL_STORAGE = 113] = "FLOW_CHART_INTERNAL_STORAGE", t[t.FLOW_CHART_MAGNETIC_DISK = 114] = "FLOW_CHART_MAGNETIC_DISK", t[t.FLOW_CHART_MAGNETIC_DRUM = 115] = "FLOW_CHART_MAGNETIC_DRUM", t[t.FLOW_CHART_MAGNETIC_TAPE = 116] = "FLOW_CHART_MAGNETIC_TAPE", t[t.FLOW_CHART_MANUAL_INPUT = 117] = "FLOW_CHART_MANUAL_INPUT", t[t.FLOW_CHART_MANUAL_OPERATION = 118] = "FLOW_CHART_MANUAL_OPERATION", t[t.FLOW_CHART_MERGE = 119] = "FLOW_CHART_MERGE", t[t.FLOW_CHART_MULTIDOCUMENT = 120] = "FLOW_CHART_MULTIDOCUMENT", t[t.FLOW_CHART_OFFLINE_STORAGE = 121] = "FLOW_CHART_OFFLINE_STORAGE", t[t.FLOW_CHART_OFFPAGE_CONNECTOR = 122] = "FLOW_CHART_OFFPAGE_CONNECTOR", t[t.FLOW_CHART_ONLINE_STORAGE = 123] = "FLOW_CHART_ONLINE_STORAGE", t[t.FLOW_CHART_OR = 124] = "FLOW_CHART_OR", t[t.FLOW_CHART_PREDEFINED_PROCESS = 125] = "FLOW_CHART_PREDEFINED_PROCESS", t[t.FLOW_CHART_PREPARATION = 126] = "FLOW_CHART_PREPARATION", t[t.FLOW_CHART_PROCESS = 127] = "FLOW_CHART_PROCESS", t[t.FLOW_CHART_PUNCHED_CARD = 128] = "FLOW_CHART_PUNCHED_CARD", t[t.FLOW_CHART_PUNCHED_TAPE = 129] = "FLOW_CHART_PUNCHED_TAPE", t[t.FLOW_CHART_SORT = 130] = "FLOW_CHART_SORT", t[t.FLOW_CHART_SUMMING_JUNCTION = 131] = "FLOW_CHART_SUMMING_JUNCTION", t[t.FLOW_CHART_TERMINATOR = 132] = "FLOW_CHART_TERMINATOR", t[t.ARROW_EAST = 133] = "ARROW_EAST", t[t.ARROW_NORTH_EAST = 134] = "ARROW_NORTH_EAST", t[t.ARROW_NORTH = 135] = "ARROW_NORTH", t[t.SPEECH = 136] = "SPEECH", t[t.STARBURST = 137] = "STARBURST", t[t.TEARDROP = 138] = "TEARDROP", t[t.ELLIPSE_RIBBON = 139] = "ELLIPSE_RIBBON", t[t.ELLIPSE_RIBBON_2 = 140] = "ELLIPSE_RIBBON_2", t[t.CLOUD_CALLOUT = 141] = "CLOUD_CALLOUT", t[t.CUSTOM = 142] = "CUSTOM", t))(gn || {}), Ze = /* @__PURE__ */ ((t) => (t[t.GRID = 0] = "GRID", t[t.KANBAN = 1] = "KANBAN", t[t.GANTT = 2] = "GANTT", t))(Ze || {}), xt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", t[t.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", t))(xt || {}), En = /* @__PURE__ */ ((t) => (t[t.DASH = 0] = "DASH", t[t.DASH_DOT_DOT_HEAVY = 1] = "DASH_DOT_DOT_HEAVY", t[t.DASH_DOT_HEAVY = 2] = "DASH_DOT_HEAVY", t[t.DASHED_HEAVY = 3] = "DASHED_HEAVY", t[t.DASH_LONG = 4] = "DASH_LONG", t[t.DASH_LONG_HEAVY = 5] = "DASH_LONG_HEAVY", t[t.DOT_DASH = 6] = "DOT_DASH", t[t.DOT_DOT_DASH = 7] = "DOT_DOT_DASH", t[t.DOTTED = 8] = "DOTTED", t[t.DOTTED_HEAVY = 9] = "DOTTED_HEAVY", t[t.DOUBLE = 10] = "DOUBLE", t[t.NONE = 11] = "NONE", t[t.SINGLE = 12] = "SINGLE", t[t.THICK = 13] = "THICK", t[t.WAVE = 14] = "WAVE", t[t.WAVY_DOUBLE = 15] = "WAVY_DOUBLE", t[t.WAVY_HEAVY = 16] = "WAVY_HEAVY", t[t.WORDS = 17] = "WORDS", t))(En || {}), ut = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT = 1] = "LEFT", t[t.CENTER = 2] = "CENTER", t[t.RIGHT = 3] = "RIGHT", t[t.JUSTIFIED = 4] = "JUSTIFIED", t))(ut || {}), dt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.TOP = 1] = "TOP", t[t.MIDDLE = 2] = "MIDDLE", t[t.BOTTOM = 3] = "BOTTOM", t))(dt || {}), ft = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.OVERFLOW = 1] = "OVERFLOW", t[t.CLIP = 2] = "CLIP", t[t.WRAP = 3] = "WRAP", t))(ft || {}), te = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ITALIC = 1] = "ITALIC", t))(te || {}), ee = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.BOLD = 1] = "BOLD", t))(ee || {}), se = /* @__PURE__ */ ((t) => (t[t.NORMAL = 1] = "NORMAL", t[t.SUBSCRIPT = 2] = "SUBSCRIPT", t[t.SUPERSCRIPT = 3] = "SUPERSCRIPT", t))(se || {}), I = /* @__PURE__ */ ((t) => (t[t.FALSE = 0] = "FALSE", t[t.TRUE = 1] = "TRUE", t))(I || {}), vt = /* @__PURE__ */ ((t) => (t[t.STRING = 1] = "STRING", t[t.NUMBER = 2] = "NUMBER", t[t.BOOLEAN = 3] = "BOOLEAN", t[t.FORCE_STRING = 4] = "FORCE_STRING", t))(vt || {}), F = /* @__PURE__ */ ((t) => (t[t.DARK1 = 0] = "DARK1", t[t.LIGHT1 = 1] = "LIGHT1", t[t.DARK2 = 2] = "DARK2", t[t.LIGHT2 = 3] = "LIGHT2", t[t.ACCENT1 = 4] = "ACCENT1", t[t.ACCENT2 = 5] = "ACCENT2", t[t.ACCENT3 = 6] = "ACCENT3", t[t.ACCENT4 = 7] = "ACCENT4", t[t.ACCENT5 = 8] = "ACCENT5", t[t.ACCENT6 = 9] = "ACCENT6", t[t.HYPERLINK = 10] = "HYPERLINK", t[t.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", t))(F || {}), me = /* @__PURE__ */ ((t) => (t.OFFICE = "Office", t.OFFICE_2007_2010 = "Office 2007-2010", t.GRAYSCALE = "Grayscale", t.BLUE_WARM = "Blue Warm", t.BLUE = "Blue", t.BLUE_II = "Blue II", t.BLUE_GREEN = "Blue Green", t.GREEN = "Green", t.GREEN_YELLOW = "Green Yellow", t.YELLOW = "Yellow", t.YELLOW_ORANGE = "Yellow Orange", t.ORANGE = "Orange", t.ORANGE_RED = "Orange Red", t.RED_ORANGE = "Red Orange", t.RED = "Red", t.RED_VIOLET = "Red Violet", t.VIOLET = "Violet", t.VIOLET_II = "Violet II", t.MEDIAN = "Median", t.PAPER = "Paper", t.MARQUEE = "Marquee", t.SLIPSTREAM = "Slipstream", t.Aspect = "Aspect", t))(me || {});
1040
+ var hn = /* @__PURE__ */ ((t) => (t[t.NUMBER_FORMAT_TYPE_UNSPECIFIED = 0] = "NUMBER_FORMAT_TYPE_UNSPECIFIED", t[t.TEXT = 1] = "TEXT", t[t.NUMBER = 2] = "NUMBER", t[t.PERCENT = 3] = "PERCENT", t[t.CURRENCY = 4] = "CURRENCY", t[t.DATE = 5] = "DATE", t[t.TIME = 6] = "TIME", t[t.DATE_TIME = 7] = "DATE_TIME", t[t.SCIENTIFIC = 8] = "SCIENTIFIC", t))(hn || {}), dn = /* @__PURE__ */ ((t) => (t[t.INTERPOLATION_POINT_TYPE_UNSPECIFIED = 0] = "INTERPOLATION_POINT_TYPE_UNSPECIFIED", t[t.MIN = 1] = "MIN", t[t.MAX = 2] = "MAX", t[t.NUMBER = 3] = "NUMBER", t[t.PERCENT = 4] = "PERCENT", t[t.PERCENTILE = 5] = "PERCENTILE", t))(dn || {}), Re = /* @__PURE__ */ ((t) => (t.EN_US = "enUS", t.ZH_CN = "zhCN", t))(Re || {}), _n = /* @__PURE__ */ ((t) => (t[t.RANGE = 0] = "RANGE", t[t.SHEET = 1] = "SHEET", t))(_n || {}), fn = /* @__PURE__ */ ((t) => (t[t.RELATIVE_DATE_UNSPECIFIED = 0] = "RELATIVE_DATE_UNSPECIFIED", t[t.PAST_YEAR = 1] = "PAST_YEAR", t[t.PAST_MONTH = 2] = "PAST_MONTH", t[t.PAST_WEEK = 3] = "PAST_WEEK", t[t.YESTERDAY = 4] = "YESTERDAY", t[t.TODAY = 5] = "TODAY", t[t.TOMORROW = 6] = "TOMORROW", t))(fn || {}), gn = /* @__PURE__ */ ((t) => (t[t.TYPE_UNSPECIFIED = 0] = "TYPE_UNSPECIFIED", t[t.TEXT_BOX = 1] = "TEXT_BOX", t[t.RECTANGLE = 2] = "RECTANGLE", t[t.ROUND_RECTANGLE = 3] = "ROUND_RECTANGLE", t[t.ELLIPSE = 4] = "ELLIPSE", t[t.ARC = 5] = "ARC", t[t.BENT_ARROW = 6] = "BENT_ARROW", t[t.BENT_UP_ARROW = 7] = "BENT_UP_ARROW", t[t.BEVEL = 8] = "BEVEL", t[t.BLOCK_ARC = 9] = "BLOCK_ARC", t[t.BRACE_PAIR = 10] = "BRACE_PAIR", t[t.BRACKET_PAIR = 11] = "BRACKET_PAIR", t[t.CAN = 12] = "CAN", t[t.CHEVRON = 13] = "CHEVRON", t[t.CHORD = 14] = "CHORD", t[t.CLOUD = 15] = "CLOUD", t[t.CORNER = 16] = "CORNER", t[t.CUBE = 17] = "CUBE", t[t.CURVED_DOWN_ARROW = 18] = "CURVED_DOWN_ARROW", t[t.CURVED_LEFT_ARROW = 19] = "CURVED_LEFT_ARROW", t[t.CURVED_RIGHT_ARROW = 20] = "CURVED_RIGHT_ARROW", t[t.CURVED_UP_ARROW = 21] = "CURVED_UP_ARROW", t[t.DECAGON = 22] = "DECAGON", t[t.DIAGONAL_STRIPE = 23] = "DIAGONAL_STRIPE", t[t.DIAMOND = 24] = "DIAMOND", t[t.DODECAGON = 25] = "DODECAGON", t[t.DONUT = 26] = "DONUT", t[t.DOUBLE_WAVE = 27] = "DOUBLE_WAVE", t[t.DOWN_ARROW = 28] = "DOWN_ARROW", t[t.DOWN_ARROW_CALLOUT = 29] = "DOWN_ARROW_CALLOUT", t[t.FOLDED_CORNER = 30] = "FOLDED_CORNER", t[t.FRAME = 31] = "FRAME", t[t.HALF_FRAME = 32] = "HALF_FRAME", t[t.HEART = 33] = "HEART", t[t.HEPTAGON = 34] = "HEPTAGON", t[t.HEXAGON = 35] = "HEXAGON", t[t.HOME_PLATE = 36] = "HOME_PLATE", t[t.HORIZONTAL_SCROLL = 37] = "HORIZONTAL_SCROLL", t[t.IRREGULAR_SEAL_1 = 38] = "IRREGULAR_SEAL_1", t[t.IRREGULAR_SEAL_2 = 39] = "IRREGULAR_SEAL_2", t[t.LEFT_ARROW = 40] = "LEFT_ARROW", t[t.LEFT_ARROW_CALLOUT = 41] = "LEFT_ARROW_CALLOUT", t[t.LEFT_BRACE = 42] = "LEFT_BRACE", t[t.LEFT_BRACKET = 43] = "LEFT_BRACKET", t[t.LEFT_RIGHT_ARROW = 44] = "LEFT_RIGHT_ARROW", t[t.LEFT_RIGHT_ARROW_CALLOUT = 45] = "LEFT_RIGHT_ARROW_CALLOUT", t[t.LEFT_RIGHT_UP_ARROW = 46] = "LEFT_RIGHT_UP_ARROW", t[t.LEFT_UP_ARROW = 47] = "LEFT_UP_ARROW", t[t.LIGHTNING_BOLT = 48] = "LIGHTNING_BOLT", t[t.MATH_DIVIDE = 49] = "MATH_DIVIDE", t[t.MATH_EQUAL = 50] = "MATH_EQUAL", t[t.MATH_MINUS = 51] = "MATH_MINUS", t[t.MATH_MULTIPLY = 52] = "MATH_MULTIPLY", t[t.MATH_NOT_EQUAL = 53] = "MATH_NOT_EQUAL", t[t.MATH_PLUS = 54] = "MATH_PLUS", t[t.MOON = 55] = "MOON", t[t.NO_SMOKING = 56] = "NO_SMOKING", t[t.NOTCHED_RIGHT_ARROW = 57] = "NOTCHED_RIGHT_ARROW", t[t.OCTAGON = 58] = "OCTAGON", t[t.PARALLELOGRAM = 59] = "PARALLELOGRAM", t[t.PENTAGON = 60] = "PENTAGON", t[t.PIE = 61] = "PIE", t[t.PLAQUE = 62] = "PLAQUE", t[t.PLUS = 63] = "PLUS", t[t.QUAD_ARROW = 64] = "QUAD_ARROW", t[t.QUAD_ARROW_CALLOUT = 65] = "QUAD_ARROW_CALLOUT", t[t.RIBBON = 66] = "RIBBON", t[t.RIBBON_2 = 67] = "RIBBON_2", t[t.RIGHT_ARROW = 68] = "RIGHT_ARROW", t[t.RIGHT_ARROW_CALLOUT = 69] = "RIGHT_ARROW_CALLOUT", t[t.RIGHT_BRACE = 70] = "RIGHT_BRACE", t[t.RIGHT_BRACKET = 71] = "RIGHT_BRACKET", t[t.ROUND_1_RECTANGLE = 72] = "ROUND_1_RECTANGLE", t[t.ROUND_2_DIAGONAL_RECTANGLE = 73] = "ROUND_2_DIAGONAL_RECTANGLE", t[t.ROUND_2_SAME_RECTANGLE = 74] = "ROUND_2_SAME_RECTANGLE", t[t.RIGHT_TRIANGLE = 75] = "RIGHT_TRIANGLE", t[t.SMILEY_FACE = 76] = "SMILEY_FACE", t[t.SNIP_1_RECTANGLE = 77] = "SNIP_1_RECTANGLE", t[t.SNIP_2_DIAGONAL_RECTANGLE = 78] = "SNIP_2_DIAGONAL_RECTANGLE", t[t.SNIP_2_SAME_RECTANGLE = 79] = "SNIP_2_SAME_RECTANGLE", t[t.SNIP_ROUND_RECTANGLE = 80] = "SNIP_ROUND_RECTANGLE", t[t.STAR_10 = 81] = "STAR_10", t[t.STAR_12 = 82] = "STAR_12", t[t.STAR_16 = 83] = "STAR_16", t[t.STAR_24 = 84] = "STAR_24", t[t.STAR_32 = 85] = "STAR_32", t[t.STAR_4 = 86] = "STAR_4", t[t.STAR_5 = 87] = "STAR_5", t[t.STAR_6 = 88] = "STAR_6", t[t.STAR_7 = 89] = "STAR_7", t[t.STAR_8 = 90] = "STAR_8", t[t.STRIPED_RIGHT_ARROW = 91] = "STRIPED_RIGHT_ARROW", t[t.SUN = 92] = "SUN", t[t.TRAPEZOID = 93] = "TRAPEZOID", t[t.TRIANGLE = 94] = "TRIANGLE", t[t.UP_ARROW = 95] = "UP_ARROW", t[t.UP_ARROW_CALLOUT = 96] = "UP_ARROW_CALLOUT", t[t.UP_DOWN_ARROW = 97] = "UP_DOWN_ARROW", t[t.UTURN_ARROW = 98] = "UTURN_ARROW", t[t.VERTICAL_SCROLL = 99] = "VERTICAL_SCROLL", t[t.WAVE = 100] = "WAVE", t[t.WEDGE_ELLIPSE_CALLOUT = 101] = "WEDGE_ELLIPSE_CALLOUT", t[t.WEDGE_RECTANGLE_CALLOUT = 102] = "WEDGE_RECTANGLE_CALLOUT", t[t.WEDGE_ROUND_RECTANGLE_CALLOUT = 103] = "WEDGE_ROUND_RECTANGLE_CALLOUT", t[t.FLOW_CHART_ALTERNATE_PROCESS = 104] = "FLOW_CHART_ALTERNATE_PROCESS", t[t.FLOW_CHART_COLLATE = 105] = "FLOW_CHART_COLLATE", t[t.FLOW_CHART_CONNECTOR = 106] = "FLOW_CHART_CONNECTOR", t[t.FLOW_CHART_DECISION = 107] = "FLOW_CHART_DECISION", t[t.FLOW_CHART_DELAY = 108] = "FLOW_CHART_DELAY", t[t.FLOW_CHART_DISPLAY = 109] = "FLOW_CHART_DISPLAY", t[t.FLOW_CHART_DOCUMENT = 110] = "FLOW_CHART_DOCUMENT", t[t.FLOW_CHART_EXTRACT = 111] = "FLOW_CHART_EXTRACT", t[t.FLOW_CHART_INPUT_OUTPUT = 112] = "FLOW_CHART_INPUT_OUTPUT", t[t.FLOW_CHART_INTERNAL_STORAGE = 113] = "FLOW_CHART_INTERNAL_STORAGE", t[t.FLOW_CHART_MAGNETIC_DISK = 114] = "FLOW_CHART_MAGNETIC_DISK", t[t.FLOW_CHART_MAGNETIC_DRUM = 115] = "FLOW_CHART_MAGNETIC_DRUM", t[t.FLOW_CHART_MAGNETIC_TAPE = 116] = "FLOW_CHART_MAGNETIC_TAPE", t[t.FLOW_CHART_MANUAL_INPUT = 117] = "FLOW_CHART_MANUAL_INPUT", t[t.FLOW_CHART_MANUAL_OPERATION = 118] = "FLOW_CHART_MANUAL_OPERATION", t[t.FLOW_CHART_MERGE = 119] = "FLOW_CHART_MERGE", t[t.FLOW_CHART_MULTIDOCUMENT = 120] = "FLOW_CHART_MULTIDOCUMENT", t[t.FLOW_CHART_OFFLINE_STORAGE = 121] = "FLOW_CHART_OFFLINE_STORAGE", t[t.FLOW_CHART_OFFPAGE_CONNECTOR = 122] = "FLOW_CHART_OFFPAGE_CONNECTOR", t[t.FLOW_CHART_ONLINE_STORAGE = 123] = "FLOW_CHART_ONLINE_STORAGE", t[t.FLOW_CHART_OR = 124] = "FLOW_CHART_OR", t[t.FLOW_CHART_PREDEFINED_PROCESS = 125] = "FLOW_CHART_PREDEFINED_PROCESS", t[t.FLOW_CHART_PREPARATION = 126] = "FLOW_CHART_PREPARATION", t[t.FLOW_CHART_PROCESS = 127] = "FLOW_CHART_PROCESS", t[t.FLOW_CHART_PUNCHED_CARD = 128] = "FLOW_CHART_PUNCHED_CARD", t[t.FLOW_CHART_PUNCHED_TAPE = 129] = "FLOW_CHART_PUNCHED_TAPE", t[t.FLOW_CHART_SORT = 130] = "FLOW_CHART_SORT", t[t.FLOW_CHART_SUMMING_JUNCTION = 131] = "FLOW_CHART_SUMMING_JUNCTION", t[t.FLOW_CHART_TERMINATOR = 132] = "FLOW_CHART_TERMINATOR", t[t.ARROW_EAST = 133] = "ARROW_EAST", t[t.ARROW_NORTH_EAST = 134] = "ARROW_NORTH_EAST", t[t.ARROW_NORTH = 135] = "ARROW_NORTH", t[t.SPEECH = 136] = "SPEECH", t[t.STARBURST = 137] = "STARBURST", t[t.TEARDROP = 138] = "TEARDROP", t[t.ELLIPSE_RIBBON = 139] = "ELLIPSE_RIBBON", t[t.ELLIPSE_RIBBON_2 = 140] = "ELLIPSE_RIBBON_2", t[t.CLOUD_CALLOUT = 141] = "CLOUD_CALLOUT", t[t.CUSTOM = 142] = "CUSTOM", t))(gn || {}), Ze = /* @__PURE__ */ ((t) => (t[t.GRID = 0] = "GRID", t[t.KANBAN = 1] = "KANBAN", t[t.GANTT = 2] = "GANTT", t))(Ze || {}), Tt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", t[t.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", t))(Tt || {}), En = /* @__PURE__ */ ((t) => (t[t.DASH = 0] = "DASH", t[t.DASH_DOT_DOT_HEAVY = 1] = "DASH_DOT_DOT_HEAVY", t[t.DASH_DOT_HEAVY = 2] = "DASH_DOT_HEAVY", t[t.DASHED_HEAVY = 3] = "DASHED_HEAVY", t[t.DASH_LONG = 4] = "DASH_LONG", t[t.DASH_LONG_HEAVY = 5] = "DASH_LONG_HEAVY", t[t.DOT_DASH = 6] = "DOT_DASH", t[t.DOT_DOT_DASH = 7] = "DOT_DOT_DASH", t[t.DOTTED = 8] = "DOTTED", t[t.DOTTED_HEAVY = 9] = "DOTTED_HEAVY", t[t.DOUBLE = 10] = "DOUBLE", t[t.NONE = 11] = "NONE", t[t.SINGLE = 12] = "SINGLE", t[t.THICK = 13] = "THICK", t[t.WAVE = 14] = "WAVE", t[t.WAVY_DOUBLE = 15] = "WAVY_DOUBLE", t[t.WAVY_HEAVY = 16] = "WAVY_HEAVY", t[t.WORDS = 17] = "WORDS", t))(En || {}), ut = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT = 1] = "LEFT", t[t.CENTER = 2] = "CENTER", t[t.RIGHT = 3] = "RIGHT", t[t.JUSTIFIED = 4] = "JUSTIFIED", t))(ut || {}), _t = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.TOP = 1] = "TOP", t[t.MIDDLE = 2] = "MIDDLE", t[t.BOTTOM = 3] = "BOTTOM", t))(_t || {}), ft = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.OVERFLOW = 1] = "OVERFLOW", t[t.CLIP = 2] = "CLIP", t[t.WRAP = 3] = "WRAP", t))(ft || {}), te = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ITALIC = 1] = "ITALIC", t))(te || {}), ee = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.BOLD = 1] = "BOLD", t))(ee || {}), se = /* @__PURE__ */ ((t) => (t[t.NORMAL = 1] = "NORMAL", t[t.SUBSCRIPT = 2] = "SUBSCRIPT", t[t.SUPERSCRIPT = 3] = "SUPERSCRIPT", t))(se || {}), I = /* @__PURE__ */ ((t) => (t[t.FALSE = 0] = "FALSE", t[t.TRUE = 1] = "TRUE", t))(I || {}), vt = /* @__PURE__ */ ((t) => (t[t.STRING = 1] = "STRING", t[t.NUMBER = 2] = "NUMBER", t[t.BOOLEAN = 3] = "BOOLEAN", t[t.FORCE_STRING = 4] = "FORCE_STRING", t))(vt || {}), F = /* @__PURE__ */ ((t) => (t[t.DARK1 = 0] = "DARK1", t[t.LIGHT1 = 1] = "LIGHT1", t[t.DARK2 = 2] = "DARK2", t[t.LIGHT2 = 3] = "LIGHT2", t[t.ACCENT1 = 4] = "ACCENT1", t[t.ACCENT2 = 5] = "ACCENT2", t[t.ACCENT3 = 6] = "ACCENT3", t[t.ACCENT4 = 7] = "ACCENT4", t[t.ACCENT5 = 8] = "ACCENT5", t[t.ACCENT6 = 9] = "ACCENT6", t[t.HYPERLINK = 10] = "HYPERLINK", t[t.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", t))(F || {}), me = /* @__PURE__ */ ((t) => (t.OFFICE = "Office", t.OFFICE_2007_2010 = "Office 2007-2010", t.GRAYSCALE = "Grayscale", t.BLUE_WARM = "Blue Warm", t.BLUE = "Blue", t.BLUE_II = "Blue II", t.BLUE_GREEN = "Blue Green", t.GREEN = "Green", t.GREEN_YELLOW = "Green Yellow", t.YELLOW = "Yellow", t.YELLOW_ORANGE = "Yellow Orange", t.ORANGE = "Orange", t.ORANGE_RED = "Orange Red", t.RED_ORANGE = "Red Orange", t.RED = "Red", t.RED_VIOLET = "Red Violet", t.VIOLET = "Violet", t.VIOLET_II = "Violet II", t.MEDIAN = "Median", t.PAPER = "Paper", t.MARQUEE = "Marquee", t.SLIPSTREAM = "Slipstream", t.Aspect = "Aspect", t))(me || {});
1041
1041
  const Rn = {
1042
1042
  [me.OFFICE]: {
1043
1043
  [F.ACCENT1]: "#4472C4",
@@ -1056,12 +1056,12 @@ const Rn = {
1056
1056
  };
1057
1057
  class Oe {
1058
1058
  constructor() {
1059
- _(this, "_themeValue", F.LIGHT1);
1060
- _(this, "_themeColors");
1061
- _(this, "_themeTint");
1062
- _(this, "_rgbValue", "");
1063
- _(this, "_colorType");
1064
- this._colorType = $.UNSUPPORTED, this._themeColors = me.OFFICE, this._themeTint = 0;
1059
+ d(this, "_themeValue", F.LIGHT1);
1060
+ d(this, "_themeColors");
1061
+ d(this, "_themeTint");
1062
+ d(this, "_rgbValue", "");
1063
+ d(this, "_colorType");
1064
+ this._colorType = W.UNSUPPORTED, this._themeColors = me.OFFICE, this._themeTint = 0;
1065
1065
  }
1066
1066
  asRgbColor() {
1067
1067
  return new ne(this._rgbValue, this);
@@ -1071,25 +1071,25 @@ class Oe {
1071
1071
  }
1072
1072
  build() {
1073
1073
  switch (this._colorType) {
1074
- case $.THEME:
1074
+ case W.THEME:
1075
1075
  return this.asThemeColor();
1076
- case $.RGB:
1076
+ case W.RGB:
1077
1077
  return this.asRgbColor();
1078
- case $.UNSUPPORTED:
1078
+ case W.UNSUPPORTED:
1079
1079
  throw Error("unsupported color type");
1080
1080
  }
1081
1081
  }
1082
1082
  setRgbColor(e) {
1083
- return this._colorType = $.RGB, this._rgbValue = e, this;
1083
+ return this._colorType = W.RGB, this._rgbValue = e, this;
1084
1084
  }
1085
1085
  setThemeColors(e) {
1086
- this._colorType = $.THEME, this._themeColors = e;
1086
+ this._colorType = W.THEME, this._themeColors = e;
1087
1087
  }
1088
1088
  setThemeTint(e) {
1089
- this._colorType = $.THEME, this._themeTint = e;
1089
+ this._colorType = W.THEME, this._themeTint = e;
1090
1090
  }
1091
1091
  setThemeColor(e) {
1092
- return this._colorType = $.THEME, this._themeValue = e, this;
1092
+ return this._colorType = W.THEME, this._themeValue = e, this;
1093
1093
  }
1094
1094
  getColorType() {
1095
1095
  return this._colorType;
@@ -1097,7 +1097,7 @@ class Oe {
1097
1097
  }
1098
1098
  class ht {
1099
1099
  constructor(e) {
1100
- _(this, "_builder");
1100
+ d(this, "_builder");
1101
1101
  this._builder = e;
1102
1102
  }
1103
1103
  static rgbColorToHexValue(e) {
@@ -1137,10 +1137,10 @@ class ht {
1137
1137
  }
1138
1138
  class mn {
1139
1139
  constructor(e) {
1140
- _(this, "_saturation", 0);
1141
- _(this, "_hue", 0);
1142
- _(this, "_lightness", 0);
1143
- _(this, "_alpha", 0);
1140
+ d(this, "_saturation", 0);
1141
+ d(this, "_hue", 0);
1142
+ d(this, "_lightness", 0);
1143
+ d(this, "_alpha", 0);
1144
1144
  const s = e.getRed() / 255, n = e.getGreen() / 255, r = e.getBlue() / 255, i = e.getAlpha() / 255, o = Math.min(s, Math.min(n, r)), a = Math.max(s, Math.max(n, r)), c = a - o;
1145
1145
  if (a === o) {
1146
1146
  this._hue = 0, this._saturation = 0, this._lightness = a;
@@ -1182,21 +1182,21 @@ class mn {
1182
1182
  this._lightness = e;
1183
1183
  }
1184
1184
  }
1185
- const B = class B extends ht {
1185
+ const $ = class $ extends ht {
1186
1186
  constructor(s, n) {
1187
1187
  super(n);
1188
- _(this, "_cssString");
1189
- _(this, "_red");
1190
- _(this, "_green");
1191
- _(this, "_blue");
1192
- _(this, "_alpha");
1193
- let r = s.match(B.RGBA_EXTRACT);
1188
+ d(this, "_cssString");
1189
+ d(this, "_red");
1190
+ d(this, "_green");
1191
+ d(this, "_blue");
1192
+ d(this, "_alpha");
1193
+ let r = s.match($.RGBA_EXTRACT);
1194
1194
  if (r) {
1195
1195
  const i = +r[1], o = +r[2], a = +r[3], c = +r[4];
1196
1196
  this._cssString = s, this._red = i, this._green = o, this._blue = a, this._alpha = c;
1197
1197
  return;
1198
1198
  }
1199
- if (r = s.match(B.RGB_EXTRACT), r) {
1199
+ if (r = s.match($.RGB_EXTRACT), r) {
1200
1200
  const i = +r[1], o = +r[2], a = +r[3];
1201
1201
  this._cssString = s, this._red = i, this._green = o, this._blue = a, this._alpha = 1;
1202
1202
  return;
@@ -1207,46 +1207,46 @@ const B = class B extends ht {
1207
1207
  return ht.rgbColorToHexValue(this);
1208
1208
  }
1209
1209
  getRed() {
1210
- let s = this._red + B.RGB_COLOR_AMT;
1210
+ let s = this._red + $.RGB_COLOR_AMT;
1211
1211
  return s > 255 ? s = 255 : s < 0 && (s = 0), s;
1212
1212
  }
1213
1213
  getGreen() {
1214
- let s = this._green + B.RGB_COLOR_AMT;
1214
+ let s = this._green + $.RGB_COLOR_AMT;
1215
1215
  return s > 255 ? s = 255 : s < 0 && (s = 0), s;
1216
1216
  }
1217
1217
  getBlue() {
1218
- let s = this._blue + B.RGB_COLOR_AMT;
1218
+ let s = this._blue + $.RGB_COLOR_AMT;
1219
1219
  return s > 255 ? s = 255 : s < 0 && (s = 0), s;
1220
1220
  }
1221
1221
  getAlpha() {
1222
1222
  return this._alpha;
1223
1223
  }
1224
1224
  getColorType() {
1225
- return $.RGB;
1225
+ return W.RGB;
1226
1226
  }
1227
1227
  clone() {
1228
- return new B(this._cssString, this._builder);
1228
+ return new $(this._cssString, this._builder);
1229
1229
  }
1230
1230
  asThemeColor() {
1231
1231
  throw new Error("rgb color not support to themeColor");
1232
1232
  }
1233
1233
  equals(s) {
1234
- return s instanceof B ? s._red === this._red && s._blue === this._blue && s._green === this._green && s._alpha === this._alpha : !1;
1234
+ return s instanceof $ ? s._red === this._red && s._blue === this._blue && s._green === this._green && s._alpha === this._alpha : !1;
1235
1235
  }
1236
1236
  getCssString() {
1237
1237
  return this._cssString;
1238
1238
  }
1239
1239
  };
1240
- _(B, "RGB_COLOR_AMT", 0), _(B, "RGBA_EXTRACT", new RegExp(
1240
+ d($, "RGB_COLOR_AMT", 0), d($, "RGBA_EXTRACT", new RegExp(
1241
1241
  "\\s*rgba\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d.\\d|\\d\\s*)\\)\\s*"
1242
- )), _(B, "RGB_EXTRACT", new RegExp("\\s*rgb\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*)\\)\\s*"));
1243
- let ne = B;
1242
+ )), d($, "RGB_EXTRACT", new RegExp("\\s*rgb\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*)\\)\\s*"));
1243
+ let ne = $;
1244
1244
  const tt = class tt extends ht {
1245
1245
  constructor(s, n, r, i) {
1246
1246
  super(i);
1247
- _(this, "_themeColorType");
1248
- _(this, "_themeTint");
1249
- _(this, "_themeColors");
1247
+ d(this, "_themeColorType");
1248
+ d(this, "_themeTint");
1249
+ d(this, "_themeColors");
1250
1250
  this._themeColorType = s, this._themeTint = n, this._themeColors = r;
1251
1251
  }
1252
1252
  lumValue(s, n) {
@@ -1280,15 +1280,15 @@ const tt = class tt extends ht {
1280
1280
  return s instanceof tt ? s._themeColorType === this._themeColorType : !1;
1281
1281
  }
1282
1282
  getColorType() {
1283
- return $.THEME;
1283
+ return W.THEME;
1284
1284
  }
1285
1285
  getThemeColorType() {
1286
1286
  return this._themeColorType;
1287
1287
  }
1288
1288
  };
1289
- _(tt, "_cacheThemeColor", /* @__PURE__ */ new Map());
1289
+ d(tt, "_cacheThemeColor", /* @__PURE__ */ new Map());
1290
1290
  let re = tt;
1291
- const lo = "rgb(", uo = "rgba(", Te = {
1291
+ const ao = "rgb(", lo = "rgba(", Pe = {
1292
1292
  aliceBlue: [240, 248, 255],
1293
1293
  antiqueWhite: [250, 235, 215],
1294
1294
  aqua: [0, 255, 255],
@@ -1441,9 +1441,9 @@ const lo = "rgb(", uo = "rgba(", Te = {
1441
1441
  };
1442
1442
  class k {
1443
1443
  constructor(e) {
1444
- _(this, "_color");
1445
- _(this, "_rgbColor");
1446
- _(this, "_isValid", !1);
1444
+ d(this, "_color");
1445
+ d(this, "_rgbColor");
1446
+ d(this, "_isValid", !1);
1447
1447
  if (e == null) {
1448
1448
  this._setNullColor();
1449
1449
  return;
@@ -1505,7 +1505,7 @@ class k {
1505
1505
  return Ln(this.toRgb());
1506
1506
  }
1507
1507
  toHsl() {
1508
- return wn(this.toRgb());
1508
+ return Sn(this.toRgb());
1509
1509
  }
1510
1510
  lighten(e = 10) {
1511
1511
  const s = this.toHsl();
@@ -1550,7 +1550,7 @@ class k {
1550
1550
  }
1551
1551
  }
1552
1552
  const Ct = (t) => t.length === 1 ? `0${t}` : t, Vt = (t) => (t /= 255, t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4), qe = (t) => {
1553
- if (Dn(t)) {
1553
+ if (Mn(t)) {
1554
1554
  if ("r" in t) {
1555
1555
  const n = {
1556
1556
  r: Math.round(t.r),
@@ -1575,8 +1575,8 @@ const Ct = (t) => t.length === 1 ? `0${t}` : t, Vt = (t) => (t /= 255, t <= 0.03
1575
1575
  return t.a !== void 0 && (s.a = t.a), s;
1576
1576
  }
1577
1577
  const e = t.trim();
1578
- if (Te[e]) {
1579
- const s = Te[e], n = {
1578
+ if (Pe[e]) {
1579
+ const s = Pe[e], n = {
1580
1580
  r: Math.round(s[0]),
1581
1581
  g: Math.round(s[1]),
1582
1582
  b: Math.round(s[2])
@@ -1645,8 +1645,8 @@ const Ct = (t) => t.length === 1 ? `0${t}` : t, Vt = (t) => (t /= 255, t <= 0.03
1645
1645
  }, Nn = (t) => {
1646
1646
  const e = qe(t);
1647
1647
  if (e != null)
1648
- return "r" in e ? e : "l" in e ? Sn(e) : bn(e);
1649
- }, jt = (t, e, s) => (s < 0 && (s += 1), s > 1 && (s -= 1), s < 1 / 6 ? t + (e - t) * 6 * s : s < 1 / 2 ? e : s < 2 / 3 ? t + (e - t) * (2 / 3 - s) * 6 : t), Sn = (t) => {
1648
+ return "r" in e ? e : "l" in e ? bn(e) : wn(e);
1649
+ }, jt = (t, e, s) => (s < 0 && (s += 1), s > 1 && (s -= 1), s < 1 / 6 ? t + (e - t) * 6 * s : s < 1 / 2 ? e : s < 2 / 3 ? t + (e - t) * (2 / 3 - s) * 6 : t), bn = (t) => {
1650
1650
  let { h: e, s, l: n } = t;
1651
1651
  e /= 360, s /= 100, n /= 100;
1652
1652
  let r = 0, i = 0, o = 0;
@@ -1662,16 +1662,16 @@ const Ct = (t) => t.length === 1 ? `0${t}` : t, Vt = (t) => (t /= 255, t <= 0.03
1662
1662
  b: Math.round(o * 255)
1663
1663
  };
1664
1664
  return t.a !== void 0 && (a.a = t.a), a;
1665
- }, bn = (t) => {
1665
+ }, wn = (t) => {
1666
1666
  let { h: e, s, v: n } = t;
1667
1667
  e = e / 360 * 6, s /= 100, n /= 100;
1668
- const r = Math.floor(e), i = e - r, o = n * (1 - s), a = n * (1 - i * s), c = n * (1 - (1 - i) * s), l = r % 6, u = [n, a, o, o, c, n][l], h = [c, n, n, a, o, o][l], f = [o, o, c, n, n, a][l], d = {
1668
+ const r = Math.floor(e), i = e - r, o = n * (1 - s), a = n * (1 - i * s), c = n * (1 - (1 - i) * s), l = r % 6, u = [n, a, o, o, c, n][l], h = [c, n, n, a, o, o][l], f = [o, o, c, n, n, a][l], _ = {
1669
1669
  r: u * 255,
1670
1670
  g: h * 255,
1671
1671
  b: f * 255
1672
1672
  };
1673
- return t.a !== void 0 && (d.a = t.a), d;
1674
- }, wn = (t) => {
1673
+ return t.a !== void 0 && (_.a = t.a), _;
1674
+ }, Sn = (t) => {
1675
1675
  let { r: e, g: s, b: n } = t;
1676
1676
  e /= 255, s /= 255, n /= 255;
1677
1677
  const r = Math.max(e, s, n), i = Math.min(e, s, n), o = (r + i) / 2;
@@ -1727,10 +1727,10 @@ const Ct = (t) => t.length === 1 ? `0${t}` : t, Vt = (t) => (t /= 255, t <= 0.03
1727
1727
  v: Math.round(a * 100)
1728
1728
  };
1729
1729
  return t.a !== void 0 && (u.a = t.a), u;
1730
- }, vn = (t) => t == null, Dn = (t) => !vn(t) && typeof t == "object";
1731
- var x = /* @__PURE__ */ ((t) => (t[t.COVER = 0] = "COVER", t[t.REPLACE = 1] = "REPLACE", t[t.INTERSECTION = 2] = "INTERSECTION", t))(x || {});
1732
- let Mn = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((e, s) => (s &= 63, s < 36 ? e += s.toString(36) : s < 62 ? e += (s - 26).toString(36).toUpperCase() : s > 62 ? e += "-" : e += "_", e), "");
1733
- const Un = /^-ms-/, Tn = /-([a-z])/g, J = [
1730
+ }, vn = (t) => t == null, Mn = (t) => !vn(t) && typeof t == "object";
1731
+ var T = /* @__PURE__ */ ((t) => (t[t.COVER = 0] = "COVER", t[t.REPLACE = 1] = "REPLACE", t[t.INTERSECTION = 2] = "INTERSECTION", t))(T || {});
1732
+ let Dn = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((e, s) => (s &= 63, s < 36 ? e += s.toString(36) : s < 62 ? e += (s - 26).toString(36).toUpperCase() : s > 62 ? e += "-" : e += "_", e), "");
1733
+ const Un = /^-ms-/, Pn = /-([a-z])/g, J = [
1734
1734
  "A",
1735
1735
  "B",
1736
1736
  "C",
@@ -1813,7 +1813,7 @@ class m {
1813
1813
  return o ? "FF" : s ? "Opera" : a ? "Safari" : c ? "Chrome" : i ? "Edge" : r ? "IE11" : "Unknown browser";
1814
1814
  }
1815
1815
  static generateRandomId(e = 21) {
1816
- return Mn(e);
1816
+ return Dn(e);
1817
1817
  }
1818
1818
  static getClassName(e) {
1819
1819
  return e.constructor.name;
@@ -2013,7 +2013,7 @@ class m {
2013
2013
  // Support: IE <=9 - 11, Edge 12 - 15
2014
2014
  // Microsoft forgot to hump their vendor prefix (#9572)
2015
2015
  static camelCase(e) {
2016
- return e.replace(Un, "ms-").replace(Tn, this.fCamelCase);
2016
+ return e.replace(Un, "ms-").replace(Pn, this.fCamelCase);
2017
2017
  }
2018
2018
  /**
2019
2019
  * remove all null from object
@@ -2132,11 +2132,11 @@ class m {
2132
2132
  return s >= n && r >= e;
2133
2133
  }
2134
2134
  }
2135
- function co(t) {
2135
+ function uo(t) {
2136
2136
  if (!t)
2137
2137
  return;
2138
2138
  const { actualRow: e, actualColumn: s, isMerged: n, isMergedMainCell: r, mergeInfo: i } = t;
2139
- let { startY: o, endY: a, startX: c, endX: l } = t, u = e, h = s, f = e, d = s;
2139
+ let { startY: o, endY: a, startX: c, endX: l } = t, u = e, h = s, f = e, _ = s;
2140
2140
  if (n && i) {
2141
2141
  const {
2142
2142
  startRow: g,
@@ -2144,24 +2144,24 @@ function co(t) {
2144
2144
  endRow: R,
2145
2145
  endColumn: O,
2146
2146
  startY: A,
2147
- endY: S,
2148
- startX: H,
2149
- endX: P
2147
+ endY: b,
2148
+ startX: p,
2149
+ endX: x
2150
2150
  } = i;
2151
- u = g, h = E, f = R, d = O, o = A, a = S, c = H, l = P;
2151
+ u = g, h = E, f = R, _ = O, o = A, a = b, c = p, l = x;
2152
2152
  }
2153
- return r && (o = i.startY, a = i.endY, c = i.startX, l = i.endX, f = i.endRow, d = i.endColumn), {
2153
+ return r && (o = i.startY, a = i.endY, c = i.startX, l = i.endX, f = i.endRow, _ = i.endColumn), {
2154
2154
  startRow: u,
2155
2155
  startColumn: h,
2156
2156
  endRow: f,
2157
- endColumn: d,
2157
+ endColumn: _,
2158
2158
  startY: o,
2159
2159
  endY: a,
2160
2160
  startX: c,
2161
2161
  endX: l
2162
2162
  };
2163
2163
  }
2164
- function ho(t) {
2164
+ function co(t) {
2165
2165
  if (!t)
2166
2166
  return;
2167
2167
  const {
@@ -2182,7 +2182,7 @@ function ho(t) {
2182
2182
  endColumn: f
2183
2183
  };
2184
2184
  }
2185
- function _o(t) {
2185
+ function ho(t) {
2186
2186
  var s;
2187
2187
  return !t || (((s = t == null ? void 0 : t.v) == null ? void 0 : s.toString()) || "").length === 0 && !t.p;
2188
2188
  }
@@ -2195,16 +2195,16 @@ function Y(t) {
2195
2195
  }
2196
2196
  return null;
2197
2197
  }
2198
- function fo(t) {
2198
+ function _o(t) {
2199
2199
  return m.isString(t) && t.substring(0, 1) === "=" && t.length > 1;
2200
2200
  }
2201
- function go(t) {
2201
+ function fo(t) {
2202
2202
  return m.isString(t) && t.indexOf("=") === -1 && t.length === 6;
2203
2203
  }
2204
- function Eo(t) {
2204
+ function go(t) {
2205
2205
  return "";
2206
2206
  }
2207
- function Ro(t, e = !1) {
2207
+ function Eo(t, e = !1) {
2208
2208
  var i;
2209
2209
  let s = "";
2210
2210
  const n = /* @__PURE__ */ new Map([
@@ -2265,8 +2265,8 @@ function Ro(t, e = !1) {
2265
2265
  [
2266
2266
  "bd",
2267
2267
  () => {
2268
- var o, a, c, l, u, h, f, d;
2269
- (o = t.bd) != null && o.b && (s += `border-bottom: ${Nt((a = t.bd) == null ? void 0 : a.b.s)} ${Y(t.bd.b.cl) ?? ""}; `), (c = t.bd) != null && c.t && (s += `border-top: ${Nt((l = t.bd) == null ? void 0 : l.t.s)} ${Y(t.bd.t.cl) ?? ""}; `), (u = t.bd) != null && u.r && (s += `border-right: ${Nt((h = t.bd) == null ? void 0 : h.r.s)} ${Y(t.bd.r.cl) ?? ""}; `), (f = t.bd) != null && f.l && (s += `border-left: ${Nt((d = t.bd) == null ? void 0 : d.l.s)} ${Y(t.bd.l.cl) ?? ""}; `);
2268
+ var o, a, c, l, u, h, f, _;
2269
+ (o = t.bd) != null && o.b && (s += `border-bottom: ${Nt((a = t.bd) == null ? void 0 : a.b.s)} ${Y(t.bd.b.cl) ?? ""}; `), (c = t.bd) != null && c.t && (s += `border-top: ${Nt((l = t.bd) == null ? void 0 : l.t.s)} ${Y(t.bd.t.cl) ?? ""}; `), (u = t.bd) != null && u.r && (s += `border-right: ${Nt((h = t.bd) == null ? void 0 : h.r.s)} ${Y(t.bd.r.cl) ?? ""}; `), (f = t.bd) != null && f.l && (s += `border-left: ${Nt((_ = t.bd) == null ? void 0 : _.l.s)} ${Y(t.bd.l.cl) ?? ""}; `);
2270
2270
  }
2271
2271
  ],
2272
2272
  [
@@ -2284,7 +2284,7 @@ function Ro(t, e = !1) {
2284
2284
  [
2285
2285
  "td",
2286
2286
  () => {
2287
- t.td === xt.LEFT_TO_RIGHT ? s += "direction: ltr; " : t.td === xt.RIGHT_TO_LEFT && (s += "direction: rtl; ");
2287
+ t.td === Tt.LEFT_TO_RIGHT ? s += "direction: ltr; " : t.td === Tt.RIGHT_TO_LEFT && (s += "direction: rtl; ");
2288
2288
  }
2289
2289
  ],
2290
2290
  [
@@ -2303,7 +2303,7 @@ function Ro(t, e = !1) {
2303
2303
  [
2304
2304
  "vt",
2305
2305
  () => {
2306
- t.vt === dt.BOTTOM ? s += "vertical-align: bottom; " : t.vt === dt.TOP ? s += "vertical-align: top; " : t.vt === dt.MIDDLE && (s += "vertical-align: middle; ");
2306
+ t.vt === _t.BOTTOM ? s += "vertical-align: bottom; " : t.vt === _t.TOP ? s += "vertical-align: top; " : t.vt === _t.MIDDLE && (s += "vertical-align: middle; ");
2307
2307
  }
2308
2308
  ],
2309
2309
  [
@@ -2315,8 +2315,8 @@ function Ro(t, e = !1) {
2315
2315
  [
2316
2316
  "pd",
2317
2317
  () => {
2318
- var u, h, f, d, g, E, R, O;
2319
- const o = `${(u = t.pd) == null ? void 0 : u.b}pt`, a = `${(h = t.pd) == null ? void 0 : h.t}pt`, c = `${(f = t.pd) == null ? void 0 : f.l}pt`, l = `${(d = t.pd) == null ? void 0 : d.r}pt`;
2318
+ var u, h, f, _, g, E, R, O;
2319
+ const o = `${(u = t.pd) == null ? void 0 : u.b}pt`, a = `${(h = t.pd) == null ? void 0 : h.t}pt`, c = `${(f = t.pd) == null ? void 0 : f.l}pt`, l = `${(_ = t.pd) == null ? void 0 : _.r}pt`;
2320
2320
  (g = t.pd) != null && g.b && (s += `padding-bottom: ${o}; `), (E = t.pd) != null && E.t && (s += `padding-top: ${a}; `), (R = t.pd) != null && R.l && (s += `padding-left: ${c}; `), (O = t.pd) != null && O.r && (s += `padding-right: ${l}; `);
2321
2321
  }
2322
2322
  ]
@@ -2329,7 +2329,7 @@ function Nt(t) {
2329
2329
  let e = "";
2330
2330
  return t === N.NONE ? e = "none" : t === N.THIN ? e = "0.5pt solid" : t === N.HAIR ? e = "0.5pt double" : t === N.DOTTED ? e = "0.5pt dotted" : t === N.DASHED || t === N.DASH_DOT ? e = "0.5pt dashed" : t === N.DASH_DOT_DOT ? e = "0.5pt dotted" : t === N.DOUBLE ? e = "0.5pt double" : t === N.MEDIUM ? e = "1pt solid" : t === N.MEDIUM_DASHED || t === N.MEDIUM_DASH_DOT ? e = "1pt dashed" : t === N.MEDIUM_DASH_DOT_DOT ? e = "1pt dotted" : t === N.SLANT_DASH_DOT ? e = "0.5pt dashed" : t === N.THICK && (e = "1.5pt solid"), e;
2331
2331
  }
2332
- function mo(t) {
2332
+ function Ro(t) {
2333
2333
  let e = 0;
2334
2334
  if (t = t.trim(), t === "none")
2335
2335
  e = N.NONE;
@@ -2361,14 +2361,14 @@ function zt(t, e) {
2361
2361
  }
2362
2362
  return s;
2363
2363
  }
2364
- function Oo(t) {
2364
+ function mo(t) {
2365
2365
  const { startRow: e, endRow: s, startColumn: n, endColumn: r } = t;
2366
2366
  return !(e < 0 || n < 0 || s < 0 || r < 0);
2367
2367
  }
2368
2368
  function Je(t, e) {
2369
2369
  return Object.prototype.toString.call(t) === Object.prototype.toString.call(e) ? Object.prototype.toString.call(t) === "[object Object]" || Object.prototype.toString.call(t) === "[object Array]" ? Object.keys(t).length !== Object.keys(e).length ? !1 : Object.keys(t).every((s) => Je(t[s], e[s])) : t === e : !1;
2370
2370
  }
2371
- function Pn(t, e) {
2371
+ function xn(t, e) {
2372
2372
  const s = t.ts || {}, n = e.ts || {};
2373
2373
  return t.sId !== e.sId ? !1 : Je(s, n);
2374
2374
  }
@@ -2380,29 +2380,29 @@ function ye(t, e, s, n) {
2380
2380
  let i = [];
2381
2381
  return t === s ? i = [n + 1 - r, e - r] : e === n ? i = [t, s - 1] : i = [t, e - r], i;
2382
2382
  }
2383
- function Ao(t) {
2383
+ function Oo(t) {
2384
2384
  if (t == null)
2385
2385
  return !1;
2386
2386
  const e = t.bullet;
2387
2387
  return (e == null ? void 0 : e.listId) != null;
2388
2388
  }
2389
- function Io(t) {
2389
+ function Ao(t) {
2390
2390
  if (t == null)
2391
2391
  return !1;
2392
2392
  const e = t.paragraphStyle;
2393
- return xn(e);
2393
+ return Tn(e);
2394
2394
  }
2395
- function xn(t) {
2395
+ function Tn(t) {
2396
2396
  return !(t == null || (t.indentStart == null || t.indentStart === 0) && t.hanging == null || t.hanging === 0);
2397
2397
  }
2398
2398
  function Fn(t, e, s) {
2399
2399
  return t.slice(0, e) + s + t.slice(e);
2400
2400
  }
2401
- function Hn(t, e, s) {
2401
+ function pn(t, e, s) {
2402
2402
  return e > s ? t : t.slice(0, e) + t.slice(s);
2403
2403
  }
2404
- var pn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2405
- function Bn(t) {
2404
+ var Hn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2405
+ function $n(t) {
2406
2406
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2407
2407
  }
2408
2408
  var ts = { exports: {} };
@@ -2416,7 +2416,7 @@ var ts = { exports: {} };
2416
2416
  (function(t) {
2417
2417
  (function(e, s) {
2418
2418
  t.exports ? t.exports = s() : e.numeral = s();
2419
- })(pn, function() {
2419
+ })(Hn, function() {
2420
2420
  var e, s, n = "2.0.6", r = {}, i = {}, o = {
2421
2421
  currentLocale: "en",
2422
2422
  zeroFormat: null,
@@ -2434,7 +2434,7 @@ var ts = { exports: {} };
2434
2434
  this._input = l, this._value = u;
2435
2435
  }
2436
2436
  return e = function(l) {
2437
- var u, h, f, d;
2437
+ var u, h, f, _;
2438
2438
  if (e.isNumeral(l))
2439
2439
  u = l.value();
2440
2440
  else if (l === 0 || typeof l > "u")
@@ -2448,7 +2448,7 @@ var ts = { exports: {} };
2448
2448
  u = null;
2449
2449
  else {
2450
2450
  for (h in r)
2451
- if (d = typeof r[h].regexps.unformat == "function" ? r[h].regexps.unformat() : r[h].regexps.unformat, d && l.match(d)) {
2451
+ if (_ = typeof r[h].regexps.unformat == "function" ? r[h].regexps.unformat() : r[h].regexps.unformat, _ && l.match(_)) {
2452
2452
  f = r[h].unformat;
2453
2453
  break;
2454
2454
  }
@@ -2462,9 +2462,9 @@ var ts = { exports: {} };
2462
2462
  }, e._ = s = {
2463
2463
  // formats numbers separators, decimals places, signs, abbreviations
2464
2464
  numberToFormat: function(l, u, h) {
2465
- var f = i[e.options.currentLocale], d = !1, g = !1, E = 0, R = "", O = 1e12, A = 1e9, S = 1e6, H = 1e3, P = "", at = !1, p, q, D, W, Gt, Se, z;
2466
- if (l = l || 0, q = Math.abs(l), e._.includes(u, "(") ? (d = !0, u = u.replace(/[\(|\)]/g, "")) : (e._.includes(u, "+") || e._.includes(u, "-")) && (Gt = e._.includes(u, "+") ? u.indexOf("+") : l < 0 ? u.indexOf("-") : -1, u = u.replace(/[\+|\-]/g, "")), e._.includes(u, "a") && (p = u.match(/a(k|m|b|t)?/), p = p ? p[1] : !1, e._.includes(u, " a") && (R = " "), u = u.replace(new RegExp(R + "a[kmbt]?"), ""), q >= O && !p || p === "t" ? (R += f.abbreviations.trillion, l = l / O) : q < O && q >= A && !p || p === "b" ? (R += f.abbreviations.billion, l = l / A) : q < A && q >= S && !p || p === "m" ? (R += f.abbreviations.million, l = l / S) : (q < S && q >= H && !p || p === "k") && (R += f.abbreviations.thousand, l = l / H)), e._.includes(u, "[.]") && (g = !0, u = u.replace("[.]", ".")), D = l.toString().split(".")[0], W = u.split(".")[1], Se = u.indexOf(","), E = (u.split(".")[0].split(",")[0].match(/0/g) || []).length, W ? (e._.includes(W, "[") ? (W = W.replace("]", ""), W = W.split("["), P = e._.toFixed(l, W[0].length + W[1].length, h, W[1].length)) : P = e._.toFixed(l, W.length, h), D = P.split(".")[0], e._.includes(P, ".") ? P = f.delimiters.decimal + P.split(".")[1] : P = "", g && Number(P.slice(1)) === 0 && (P = "")) : D = e._.toFixed(l, 0, h), R && !p && Number(D) >= 1e3 && R !== f.abbreviations.trillion)
2467
- switch (D = String(Number(D) / 1e3), R) {
2465
+ var f = i[e.options.currentLocale], _ = !1, g = !1, E = 0, R = "", O = 1e12, A = 1e9, b = 1e6, p = 1e3, x = "", at = !1, H, q, M, B, Gt, be, z;
2466
+ if (l = l || 0, q = Math.abs(l), e._.includes(u, "(") ? (_ = !0, u = u.replace(/[\(|\)]/g, "")) : (e._.includes(u, "+") || e._.includes(u, "-")) && (Gt = e._.includes(u, "+") ? u.indexOf("+") : l < 0 ? u.indexOf("-") : -1, u = u.replace(/[\+|\-]/g, "")), e._.includes(u, "a") && (H = u.match(/a(k|m|b|t)?/), H = H ? H[1] : !1, e._.includes(u, " a") && (R = " "), u = u.replace(new RegExp(R + "a[kmbt]?"), ""), q >= O && !H || H === "t" ? (R += f.abbreviations.trillion, l = l / O) : q < O && q >= A && !H || H === "b" ? (R += f.abbreviations.billion, l = l / A) : q < A && q >= b && !H || H === "m" ? (R += f.abbreviations.million, l = l / b) : (q < b && q >= p && !H || H === "k") && (R += f.abbreviations.thousand, l = l / p)), e._.includes(u, "[.]") && (g = !0, u = u.replace("[.]", ".")), M = l.toString().split(".")[0], B = u.split(".")[1], be = u.indexOf(","), E = (u.split(".")[0].split(",")[0].match(/0/g) || []).length, B ? (e._.includes(B, "[") ? (B = B.replace("]", ""), B = B.split("["), x = e._.toFixed(l, B[0].length + B[1].length, h, B[1].length)) : x = e._.toFixed(l, B.length, h), M = x.split(".")[0], e._.includes(x, ".") ? x = f.delimiters.decimal + x.split(".")[1] : x = "", g && Number(x.slice(1)) === 0 && (x = "")) : M = e._.toFixed(l, 0, h), R && !H && Number(M) >= 1e3 && R !== f.abbreviations.trillion)
2467
+ switch (M = String(Number(M) / 1e3), R) {
2468
2468
  case f.abbreviations.thousand:
2469
2469
  R = f.abbreviations.million;
2470
2470
  break;
@@ -2475,10 +2475,10 @@ var ts = { exports: {} };
2475
2475
  R = f.abbreviations.trillion;
2476
2476
  break;
2477
2477
  }
2478
- if (e._.includes(D, "-") && (D = D.slice(1), at = !0), D.length < E)
2479
- for (var be = E - D.length; be > 0; be--)
2480
- D = "0" + D;
2481
- return Se > -1 && (D = D.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + f.delimiters.thousands)), u.indexOf(".") === 0 && (D = ""), z = D + P + (R || ""), d ? z = (d && at ? "(" : "") + z + (d && at ? ")" : "") : Gt >= 0 ? z = Gt === 0 ? (at ? "-" : "+") + z : z + (at ? "-" : "+") : at && (z = "-" + z), z;
2478
+ if (e._.includes(M, "-") && (M = M.slice(1), at = !0), M.length < E)
2479
+ for (var we = E - M.length; we > 0; we--)
2480
+ M = "0" + M;
2481
+ return be > -1 && (M = M.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + f.delimiters.thousands)), u.indexOf(".") === 0 && (M = ""), z = M + x + (R || ""), _ ? z = (_ && at ? "(" : "") + z + (_ && at ? ")" : "") : Gt >= 0 ? z = Gt === 0 ? (at ? "-" : "+") + z : z + (at ? "-" : "+") : at && (z = "-" + z), z;
2482
2482
  },
2483
2483
  // unformats numbers separators, decimals places, signs, abbreviations
2484
2484
  stringToNumber: function(l) {
@@ -2487,16 +2487,16 @@ var ts = { exports: {} };
2487
2487
  million: 6,
2488
2488
  billion: 9,
2489
2489
  trillion: 12
2490
- }, d, g, E;
2490
+ }, _, g, E;
2491
2491
  if (a.zeroFormat && l === a.zeroFormat)
2492
2492
  g = 0;
2493
2493
  else if (a.nullFormat && l === a.nullFormat || !l.replace(/[^0-9]+/g, "").length)
2494
2494
  g = null;
2495
2495
  else {
2496
2496
  g = 1, u.delimiters.decimal !== "." && (l = l.replace(/\./g, "").replace(u.delimiters.decimal, "."));
2497
- for (d in f)
2498
- if (E = new RegExp("[^a-zA-Z]" + u.abbreviations[d] + "(?:\\)|(\\" + u.currency.symbol + ")?(?:\\))?)?$"), h.match(E)) {
2499
- g *= Math.pow(10, f[d]);
2497
+ for (_ in f)
2498
+ if (E = new RegExp("[^a-zA-Z]" + u.abbreviations[_] + "(?:\\)|(\\" + u.currency.symbol + ")?(?:\\))?)?$"), h.match(E)) {
2499
+ g *= Math.pow(10, f[_]);
2500
2500
  break;
2501
2501
  }
2502
2502
  g *= (l.split("-").length + Math.min(l.split("(").length - 1, l.split(")").length - 1)) % 2 ? 1 : -1, l = l.replace(/[^0-9\.]+/g, ""), g *= Number(l);
@@ -2517,18 +2517,18 @@ var ts = { exports: {} };
2517
2517
  throw new TypeError("Array.prototype.reduce called on null or undefined");
2518
2518
  if (typeof u != "function")
2519
2519
  throw new TypeError(u + " is not a function");
2520
- var h = Object(l), f = h.length >>> 0, d = 0, g;
2520
+ var h = Object(l), f = h.length >>> 0, _ = 0, g;
2521
2521
  if (arguments.length === 3)
2522
2522
  g = arguments[2];
2523
2523
  else {
2524
- for (; d < f && !(d in h); )
2525
- d++;
2526
- if (d >= f)
2524
+ for (; _ < f && !(_ in h); )
2525
+ _++;
2526
+ if (_ >= f)
2527
2527
  throw new TypeError("Reduce of empty array with no initial value");
2528
- g = h[d++];
2528
+ g = h[_++];
2529
2529
  }
2530
- for (; d < f; d++)
2531
- d in h && (g = u(g, h[d], d, h));
2530
+ for (; _ < f; _++)
2531
+ _ in h && (g = u(g, h[_], _, h));
2532
2532
  return g;
2533
2533
  },
2534
2534
  /**
@@ -2559,8 +2559,8 @@ var ts = { exports: {} };
2559
2559
  * problems for accounting- and finance-related software.
2560
2560
  */
2561
2561
  toFixed: function(l, u, h, f) {
2562
- var d = l.toString().split("."), g = u - (f || 0), E, R, O, A;
2563
- return d.length === 2 ? E = Math.min(Math.max(d[1].length, g), u) : E = g, O = Math.pow(10, E), A = (h(l + "e+" + E) / O).toFixed(E), f > u - E && (R = new RegExp("\\.?0{1," + (f - (u - E)) + "}$"), A = A.replace(R, "")), A;
2562
+ var _ = l.toString().split("."), g = u - (f || 0), E, R, O, A;
2563
+ return _.length === 2 ? E = Math.min(Math.max(_[1].length, g), u) : E = g, O = Math.pow(10, E), A = (h(l + "e+" + E) / O).toFixed(E), f > u - E && (R = new RegExp("\\.?0{1," + (f - (u - E)) + "}$"), A = A.replace(R, "")), A;
2564
2564
  }
2565
2565
  }, e.options = a, e.formats = r, e.locales = i, e.locale = function(l) {
2566
2566
  return l && (a.currentLocale = l.toLowerCase()), a.currentLocale;
@@ -2584,7 +2584,7 @@ var ts = { exports: {} };
2584
2584
  throw new TypeError(u + " " + l + " already registered.");
2585
2585
  return this[l + "s"][u] = h, h;
2586
2586
  }, e.validate = function(l, u) {
2587
- var h, f, d, g, E, R, O, A;
2587
+ var h, f, _, g, E, R, O, A;
2588
2588
  if (typeof l != "string" && (l += "", console.warn && console.warn("Numeral.js: Value is not string. It has been co-erced to: ", l)), l = l.trim(), l.match(/^\d+$/))
2589
2589
  return !0;
2590
2590
  if (l === "")
@@ -2594,21 +2594,21 @@ var ts = { exports: {} };
2594
2594
  } catch {
2595
2595
  O = e.localeData(e.locale());
2596
2596
  }
2597
- return d = O.currency.symbol, E = O.abbreviations, h = O.delimiters.decimal, O.delimiters.thousands === "." ? f = "\\." : f = O.delimiters.thousands, A = l.match(/^[^\d]+/), A !== null && (l = l.substr(1), A[0] !== d) || (A = l.match(/[^\d]+$/), A !== null && (l = l.slice(0, -1), A[0] !== E.thousand && A[0] !== E.million && A[0] !== E.billion && A[0] !== E.trillion)) ? !1 : (R = new RegExp(f + "{2}"), l.match(/[^\d.,]/g) ? !1 : (g = l.split(h), g.length > 2 ? !1 : g.length < 2 ? !!g[0].match(/^\d+.*\d$/) && !g[0].match(R) : g[0].length === 1 ? !!g[0].match(/^\d+$/) && !g[0].match(R) && !!g[1].match(/^\d+$/) : !!g[0].match(/^\d+.*\d$/) && !g[0].match(R) && !!g[1].match(/^\d+$/)));
2597
+ return _ = O.currency.symbol, E = O.abbreviations, h = O.delimiters.decimal, O.delimiters.thousands === "." ? f = "\\." : f = O.delimiters.thousands, A = l.match(/^[^\d]+/), A !== null && (l = l.substr(1), A[0] !== _) || (A = l.match(/[^\d]+$/), A !== null && (l = l.slice(0, -1), A[0] !== E.thousand && A[0] !== E.million && A[0] !== E.billion && A[0] !== E.trillion)) ? !1 : (R = new RegExp(f + "{2}"), l.match(/[^\d.,]/g) ? !1 : (g = l.split(h), g.length > 2 ? !1 : g.length < 2 ? !!g[0].match(/^\d+.*\d$/) && !g[0].match(R) : g[0].length === 1 ? !!g[0].match(/^\d+$/) && !g[0].match(R) && !!g[1].match(/^\d+$/) : !!g[0].match(/^\d+.*\d$/) && !g[0].match(R) && !!g[1].match(/^\d+$/)));
2598
2598
  }, e.fn = c.prototype = {
2599
2599
  clone: function() {
2600
2600
  return e(this);
2601
2601
  },
2602
2602
  format: function(l, u) {
2603
- var h = this._value, f = l || a.defaultFormat, d, g, E;
2603
+ var h = this._value, f = l || a.defaultFormat, _, g, E;
2604
2604
  if (u = u || Math.round, h === 0 && a.zeroFormat !== null)
2605
2605
  g = a.zeroFormat;
2606
2606
  else if (h === null && a.nullFormat !== null)
2607
2607
  g = a.nullFormat;
2608
2608
  else {
2609
- for (d in r)
2610
- if (f.match(r[d].regexps.format)) {
2611
- E = r[d].format;
2609
+ for (_ in r)
2610
+ if (f.match(r[_].regexps.format)) {
2611
+ E = r[_].format;
2612
2612
  break;
2613
2613
  }
2614
2614
  E = E || e._.numberToFormat, g = E(h, f, u);
@@ -2626,27 +2626,27 @@ var ts = { exports: {} };
2626
2626
  },
2627
2627
  add: function(l) {
2628
2628
  var u = s.correctionFactor.call(null, this._value, l);
2629
- function h(f, d, g, E) {
2630
- return f + Math.round(u * d);
2629
+ function h(f, _, g, E) {
2630
+ return f + Math.round(u * _);
2631
2631
  }
2632
2632
  return this._value = s.reduce([this._value, l], h, 0) / u, this;
2633
2633
  },
2634
2634
  subtract: function(l) {
2635
2635
  var u = s.correctionFactor.call(null, this._value, l);
2636
- function h(f, d, g, E) {
2637
- return f - Math.round(u * d);
2636
+ function h(f, _, g, E) {
2637
+ return f - Math.round(u * _);
2638
2638
  }
2639
2639
  return this._value = s.reduce([l], h, Math.round(this._value * u)) / u, this;
2640
2640
  },
2641
2641
  multiply: function(l) {
2642
- function u(h, f, d, g) {
2642
+ function u(h, f, _, g) {
2643
2643
  var E = s.correctionFactor(h, f);
2644
2644
  return Math.round(h * E) * Math.round(f * E) / Math.round(E * E);
2645
2645
  }
2646
2646
  return this._value = s.reduce([this._value, l], u, 1), this;
2647
2647
  },
2648
2648
  divide: function(l) {
2649
- function u(h, f, d, g) {
2649
+ function u(h, f, _, g) {
2650
2650
  var E = s.correctionFactor(h, f);
2651
2651
  return Math.round(h * E) / Math.round(f * E);
2652
2652
  }
@@ -2680,8 +2680,8 @@ var ts = { exports: {} };
2680
2680
  unformat: /(BPS)/
2681
2681
  },
2682
2682
  format: function(l, u, h) {
2683
- var f = e._.includes(u, " BPS") ? " " : "", d;
2684
- return l = l * 1e4, u = u.replace(/\s?BPS/, ""), d = e._.numberToFormat(l, u, h), e._.includes(d, ")") ? (d = d.split(""), d.splice(-1, 0, f + "BPS"), d = d.join("")) : d = d + f + "BPS", d;
2683
+ var f = e._.includes(u, " BPS") ? " " : "", _;
2684
+ return l = l * 1e4, u = u.replace(/\s?BPS/, ""), _ = e._.numberToFormat(l, u, h), e._.includes(_, ")") ? (_ = _.split(""), _.splice(-1, 0, f + "BPS"), _ = _.join("")) : _ = _ + f + "BPS", _;
2685
2685
  },
2686
2686
  unformat: function(l) {
2687
2687
  return +(e._.stringToNumber(l) * 1e-4).toFixed(15);
@@ -2694,32 +2694,32 @@ var ts = { exports: {} };
2694
2694
  }, u = {
2695
2695
  base: 1024,
2696
2696
  suffixes: ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"]
2697
- }, h = l.suffixes.concat(u.suffixes.filter(function(d) {
2698
- return l.suffixes.indexOf(d) < 0;
2697
+ }, h = l.suffixes.concat(u.suffixes.filter(function(_) {
2698
+ return l.suffixes.indexOf(_) < 0;
2699
2699
  })), f = h.join("|");
2700
2700
  f = "(" + f.replace("B", "B(?!PS)") + ")", e.register("format", "bytes", {
2701
2701
  regexps: {
2702
2702
  format: /([0\s]i?b)/,
2703
2703
  unformat: new RegExp(f)
2704
2704
  },
2705
- format: function(d, g, E) {
2706
- var R, O = e._.includes(g, "ib") ? u : l, A = e._.includes(g, " b") || e._.includes(g, " ib") ? " " : "", S, H, P;
2707
- for (g = g.replace(/\s?i?b/, ""), S = 0; S <= O.suffixes.length; S++)
2708
- if (H = Math.pow(O.base, S), P = Math.pow(O.base, S + 1), d === null || d === 0 || d >= H && d < P) {
2709
- A += O.suffixes[S], H > 0 && (d = d / H);
2705
+ format: function(_, g, E) {
2706
+ var R, O = e._.includes(g, "ib") ? u : l, A = e._.includes(g, " b") || e._.includes(g, " ib") ? " " : "", b, p, x;
2707
+ for (g = g.replace(/\s?i?b/, ""), b = 0; b <= O.suffixes.length; b++)
2708
+ if (p = Math.pow(O.base, b), x = Math.pow(O.base, b + 1), _ === null || _ === 0 || _ >= p && _ < x) {
2709
+ A += O.suffixes[b], p > 0 && (_ = _ / p);
2710
2710
  break;
2711
2711
  }
2712
- return R = e._.numberToFormat(d, g, E), R + A;
2712
+ return R = e._.numberToFormat(_, g, E), R + A;
2713
2713
  },
2714
- unformat: function(d) {
2715
- var g = e._.stringToNumber(d), E, R;
2714
+ unformat: function(_) {
2715
+ var g = e._.stringToNumber(_), E, R;
2716
2716
  if (g) {
2717
2717
  for (E = l.suffixes.length - 1; E >= 0; E--) {
2718
- if (e._.includes(d, l.suffixes[E])) {
2718
+ if (e._.includes(_, l.suffixes[E])) {
2719
2719
  R = Math.pow(l.base, E);
2720
2720
  break;
2721
2721
  }
2722
- if (e._.includes(d, u.suffixes[E])) {
2722
+ if (e._.includes(_, u.suffixes[E])) {
2723
2723
  R = Math.pow(u.base, E);
2724
2724
  break;
2725
2725
  }
@@ -2735,12 +2735,12 @@ var ts = { exports: {} };
2735
2735
  format: /(\$)/
2736
2736
  },
2737
2737
  format: function(l, u, h) {
2738
- var f = e.locales[e.options.currentLocale], d = {
2738
+ var f = e.locales[e.options.currentLocale], _ = {
2739
2739
  before: u.match(/^([\+|\-|\(|\s|\$]*)/)[0],
2740
2740
  after: u.match(/([\+|\-|\)|\s|\$]*)$/)[0]
2741
2741
  }, g, E, R;
2742
- for (u = u.replace(/\s?\$\s?/, ""), g = e._.numberToFormat(l, u, h), l >= 0 ? (d.before = d.before.replace(/[\-\(]/, ""), d.after = d.after.replace(/[\-\)]/, "")) : l < 0 && !e._.includes(d.before, "-") && !e._.includes(d.before, "(") && (d.before = "-" + d.before), R = 0; R < d.before.length; R++)
2743
- switch (E = d.before[R], E) {
2742
+ for (u = u.replace(/\s?\$\s?/, ""), g = e._.numberToFormat(l, u, h), l >= 0 ? (_.before = _.before.replace(/[\-\(]/, ""), _.after = _.after.replace(/[\-\)]/, "")) : l < 0 && !e._.includes(_.before, "-") && !e._.includes(_.before, "(") && (_.before = "-" + _.before), R = 0; R < _.before.length; R++)
2743
+ switch (E = _.before[R], E) {
2744
2744
  case "$":
2745
2745
  g = e._.insert(g, f.currency.symbol, R);
2746
2746
  break;
@@ -2748,13 +2748,13 @@ var ts = { exports: {} };
2748
2748
  g = e._.insert(g, " ", R + f.currency.symbol.length - 1);
2749
2749
  break;
2750
2750
  }
2751
- for (R = d.after.length - 1; R >= 0; R--)
2752
- switch (E = d.after[R], E) {
2751
+ for (R = _.after.length - 1; R >= 0; R--)
2752
+ switch (E = _.after[R], E) {
2753
2753
  case "$":
2754
- g = R === d.after.length - 1 ? g + f.currency.symbol : e._.insert(g, f.currency.symbol, -(d.after.length - (1 + R)));
2754
+ g = R === _.after.length - 1 ? g + f.currency.symbol : e._.insert(g, f.currency.symbol, -(_.after.length - (1 + R)));
2755
2755
  break;
2756
2756
  case " ":
2757
- g = R === d.after.length - 1 ? g + " " : e._.insert(g, " ", -(d.after.length - (1 + R) + f.currency.symbol.length - 1));
2757
+ g = R === _.after.length - 1 ? g + " " : e._.insert(g, " ", -(_.after.length - (1 + R) + f.currency.symbol.length - 1));
2758
2758
  break;
2759
2759
  }
2760
2760
  return g;
@@ -2767,17 +2767,17 @@ var ts = { exports: {} };
2767
2767
  unformat: /(e\+|e-)/
2768
2768
  },
2769
2769
  format: function(l, u, h) {
2770
- var f, d = typeof l == "number" && !e._.isNaN(l) ? l.toExponential() : "0e+0", g = d.split("e");
2770
+ var f, _ = typeof l == "number" && !e._.isNaN(l) ? l.toExponential() : "0e+0", g = _.split("e");
2771
2771
  return u = u.replace(/e[\+|\-]{1}0/, ""), f = e._.numberToFormat(Number(g[0]), u, h), f + "e" + g[1];
2772
2772
  },
2773
2773
  unformat: function(l) {
2774
2774
  var u = e._.includes(l, "e+") ? l.split("e+") : l.split("e-"), h = Number(u[0]), f = Number(u[1]);
2775
2775
  f = e._.includes(l, "e-") ? f *= -1 : f;
2776
- function d(g, E, R, O) {
2777
- var A = e._.correctionFactor(g, E), S = g * A * (E * A) / (A * A);
2778
- return S;
2776
+ function _(g, E, R, O) {
2777
+ var A = e._.correctionFactor(g, E), b = g * A * (E * A) / (A * A);
2778
+ return b;
2779
2779
  }
2780
- return e._.reduce([h, Math.pow(10, f)], d, 1);
2780
+ return e._.reduce([h, Math.pow(10, f)], _, 1);
2781
2781
  }
2782
2782
  });
2783
2783
  }(), function() {
@@ -2786,8 +2786,8 @@ var ts = { exports: {} };
2786
2786
  format: /(o)/
2787
2787
  },
2788
2788
  format: function(l, u, h) {
2789
- var f = e.locales[e.options.currentLocale], d, g = e._.includes(u, " o") ? " " : "";
2790
- return u = u.replace(/\s?o/, ""), g += f.ordinal(l), d = e._.numberToFormat(l, u, h), d + g;
2789
+ var f = e.locales[e.options.currentLocale], _, g = e._.includes(u, " o") ? " " : "";
2790
+ return u = u.replace(/\s?o/, ""), g += f.ordinal(l), _ = e._.numberToFormat(l, u, h), _ + g;
2791
2791
  }
2792
2792
  });
2793
2793
  }(), function() {
@@ -2797,8 +2797,8 @@ var ts = { exports: {} };
2797
2797
  unformat: /(%)/
2798
2798
  },
2799
2799
  format: function(l, u, h) {
2800
- var f = e._.includes(u, " %") ? " " : "", d;
2801
- return e.options.scalePercentBy100 && (l = l * 100), u = u.replace(/\s?\%/, ""), d = e._.numberToFormat(l, u, h), e._.includes(d, ")") ? (d = d.split(""), d.splice(-1, 0, f + "%"), d = d.join("")) : d = d + f + "%", d;
2800
+ var f = e._.includes(u, " %") ? " " : "", _;
2801
+ return e.options.scalePercentBy100 && (l = l * 100), u = u.replace(/\s?\%/, ""), _ = e._.numberToFormat(l, u, h), e._.includes(_, ")") ? (_ = _.split(""), _.splice(-1, 0, f + "%"), _ = _.join("")) : _ = _ + f + "%", _;
2802
2802
  },
2803
2803
  unformat: function(l) {
2804
2804
  var u = e._.stringToNumber(l);
@@ -2812,8 +2812,8 @@ var ts = { exports: {} };
2812
2812
  unformat: /(:)/
2813
2813
  },
2814
2814
  format: function(l, u, h) {
2815
- var f = Math.floor(l / 60 / 60), d = Math.floor((l - f * 60 * 60) / 60), g = Math.round(l - f * 60 * 60 - d * 60);
2816
- return f + ":" + (d < 10 ? "0" + d : d) + ":" + (g < 10 ? "0" + g : g);
2815
+ var f = Math.floor(l / 60 / 60), _ = Math.floor((l - f * 60 * 60) / 60), g = Math.round(l - f * 60 * 60 - _ * 60);
2816
+ return f + ":" + (_ < 10 ? "0" + _ : _) + ":" + (g < 10 ? "0" + g : g);
2817
2817
  },
2818
2818
  unformat: function(l) {
2819
2819
  var u = l.split(":"), h = 0;
@@ -2823,8 +2823,8 @@ var ts = { exports: {} };
2823
2823
  }(), e;
2824
2824
  });
2825
2825
  })(ts);
2826
- var Wn = ts.exports;
2827
- const nt = /* @__PURE__ */ Bn(Wn), Pe = {
2826
+ var Bn = ts.exports;
2827
+ const nt = /* @__PURE__ */ $n(Bn), xe = {
2828
2828
  v: "#VALUE!",
2829
2829
  // 错误的参数或运算符
2830
2830
  n: "#NAME?",
@@ -2842,10 +2842,10 @@ const nt = /* @__PURE__ */ Bn(Wn), Pe = {
2842
2842
  sp: "#SPILL!"
2843
2843
  // 数组范围有其它值
2844
2844
  };
2845
- function $n(t) {
2845
+ function Wn(t) {
2846
2846
  let e = !1;
2847
- for (const s in Pe)
2848
- if (t === Pe[s]) {
2847
+ for (const s in xe)
2848
+ if (t === xe[s]) {
2849
2849
  e = !0;
2850
2850
  break;
2851
2851
  }
@@ -2891,7 +2891,7 @@ function zn(t, e) {
2891
2891
  const n = Date.UTC(1899, 11, 31, 0, 0, 0);
2892
2892
  return e ? s -= 1461 * 24 * 60 * 60 * 1e3 : t >= jn && (s += 24 * 60 * 60 * 1e3), (s - n) / (24 * 60 * 60 * 1e3);
2893
2893
  }
2894
- function Co(t) {
2894
+ function Io(t) {
2895
2895
  let e = null, s = {}, n = t;
2896
2896
  if (t === null)
2897
2897
  return null;
@@ -2910,7 +2910,7 @@ function Co(t) {
2910
2910
  e = "TRUE", s = { fa: "General", t: "b" }, n = !0;
2911
2911
  else if (t.toString().toUpperCase() === "FALSE")
2912
2912
  e = "FALSE", s = { fa: "General", t: "b" }, n = !1;
2913
- else if ($n(t))
2913
+ else if (Wn(t))
2914
2914
  e = t.toString(), s = { fa: "General", t: "e" };
2915
2915
  else if (/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(t))
2916
2916
  e = t.toString(), s = { fa: "@", t: "s" };
@@ -2986,15 +2986,15 @@ function Co(t) {
2986
2986
  const y = {
2987
2987
  format(t, e) {
2988
2988
  }
2989
- }, No = (t, e) => {
2989
+ }, Co = (t, e) => {
2990
2990
  };
2991
- function So(t) {
2991
+ function No(t) {
2992
2992
  let e = 0;
2993
2993
  for (let s = 0; s < t.length; s++)
2994
2994
  e = t.charCodeAt(s) + (e << 6) + (e << 16) - e;
2995
2995
  return e >>> 0;
2996
2996
  }
2997
- class St {
2997
+ class bt {
2998
2998
  static hasLength(e, s) {
2999
2999
  return e.length === s;
3000
3000
  }
@@ -3014,7 +3014,7 @@ class St {
3014
3014
  const C = Symbol("newer"), v = Symbol("older");
3015
3015
  class Yn {
3016
3016
  constructor(e) {
3017
- _(this, "entry");
3017
+ d(this, "entry");
3018
3018
  this.entry = e;
3019
3019
  }
3020
3020
  [Symbol.iterator]() {
@@ -3027,7 +3027,7 @@ class Yn {
3027
3027
  }
3028
3028
  class Kn {
3029
3029
  constructor(e) {
3030
- _(this, "entry");
3030
+ d(this, "entry");
3031
3031
  this.entry = e;
3032
3032
  }
3033
3033
  [Symbol.iterator]() {
@@ -3040,7 +3040,7 @@ class Kn {
3040
3040
  }
3041
3041
  class Xn {
3042
3042
  constructor(e) {
3043
- _(this, "entry");
3043
+ d(this, "entry");
3044
3044
  this.entry = e;
3045
3045
  }
3046
3046
  [Symbol.iterator]() {
@@ -3051,13 +3051,13 @@ class Xn {
3051
3051
  return e ? (this.entry = e[C], { done: !1, value: [e.key, e.value] }) : { done: !0, value: void 0 };
3052
3052
  }
3053
3053
  }
3054
- var Xi, Qi;
3055
- class xe {
3054
+ var Ki, Xi;
3055
+ class Te {
3056
3056
  constructor(e, s) {
3057
- _(this, "key");
3058
- _(this, "value");
3059
- _(this, Xi);
3060
- _(this, Qi);
3057
+ d(this, "key");
3058
+ d(this, "value");
3059
+ d(this, Ki);
3060
+ d(this, Xi);
3061
3061
  this.key = e, this.value = s, this[C] = void 0, this[v] = void 0;
3062
3062
  }
3063
3063
  toJSON() {
@@ -3067,36 +3067,36 @@ class xe {
3067
3067
  };
3068
3068
  }
3069
3069
  }
3070
- Xi = C, Qi = v;
3070
+ Ki = C, Xi = v;
3071
3071
  class Qn {
3072
3072
  constructor(...e) {
3073
- _(this, "_keymap");
3074
- _(this, "size", 0);
3075
- _(this, "limit");
3076
- _(this, "oldest");
3077
- _(this, "newest");
3078
- _(this, "_onShiftListeners", []);
3079
- if (St.hasLength(e, 1)) {
3080
- if (St.isNumber(e[0])) {
3073
+ d(this, "_keymap");
3074
+ d(this, "size", 0);
3075
+ d(this, "limit");
3076
+ d(this, "oldest");
3077
+ d(this, "newest");
3078
+ d(this, "_onShiftListeners", []);
3079
+ if (bt.hasLength(e, 1)) {
3080
+ if (bt.isNumber(e[0])) {
3081
3081
  const s = e[0];
3082
3082
  this._initialize(s, void 0);
3083
3083
  return;
3084
3084
  }
3085
- if (St.isIterable(e[0])) {
3085
+ if (bt.isIterable(e[0])) {
3086
3086
  const s = e[0];
3087
3087
  this._initialize(0, s);
3088
3088
  return;
3089
3089
  }
3090
3090
  return;
3091
3091
  }
3092
- if (St.hasLength(e, 2)) {
3092
+ if (bt.hasLength(e, 2)) {
3093
3093
  const s = e[0], n = e[1];
3094
3094
  this._initialize(s, n);
3095
3095
  }
3096
3096
  }
3097
3097
  onShift(e) {
3098
3098
  if (this._onShiftListeners.indexOf(e) === -1)
3099
- return this._onShiftListeners.push(e), w(() => it(this._onShiftListeners, e));
3099
+ return this._onShiftListeners.push(e), S(() => it(this._onShiftListeners, e));
3100
3100
  throw new Error("[LRUMap]: the listener has been registered!");
3101
3101
  }
3102
3102
  _initialize(e, s) {
@@ -3110,7 +3110,7 @@ class Qn {
3110
3110
  this._keymap.clear();
3111
3111
  const r = e[Symbol.iterator]();
3112
3112
  for (let i = r.next(); !i.done; i = r.next()) {
3113
- const o = new xe(i.value[0], i.value[1]);
3113
+ const o = new Te(i.value[0], i.value[1]);
3114
3114
  if (this._keymap.set(o.key, o), s ? (s[C] = o, o[v] = s) : this.oldest = o, s = o, n-- === 0)
3115
3115
  throw new Error("overflow");
3116
3116
  }
@@ -3118,7 +3118,7 @@ class Qn {
3118
3118
  }
3119
3119
  set(e, s) {
3120
3120
  let n = this._keymap.get(e);
3121
- return n ? (n.value = s, this._markEntryAsUsed(n), this) : (this._keymap.set(e, n = new xe(e, s)), this.newest ? (this.newest[C] = n, n[v] = this.newest) : this.oldest = n, this.newest = n, ++this.size, this.size > this.limit && this.shift(), this);
3121
+ return n ? (n.value = s, this._markEntryAsUsed(n), this) : (this._keymap.set(e, n = new Te(e, s)), this.newest ? (this.newest[C] = n, n[v] = this.newest) : this.oldest = n, this.newest = n, ++this.size, this.size > this.limit && this.shift(), this);
3122
3122
  }
3123
3123
  shift() {
3124
3124
  const e = this.oldest;
@@ -3204,7 +3204,7 @@ function wo(t, e, s) {
3204
3204
  for (let u = n; u < l; u++)
3205
3205
  i[u] !== void 0 && (i[u - c] = i[u], delete i[u]);
3206
3206
  }
3207
- function Lo(t, e) {
3207
+ function So(t, e) {
3208
3208
  const s = t, n = Object.keys(s), r = n.length, i = e, o = Object.keys(i), a = o.length, c = {};
3209
3209
  let l = 0;
3210
3210
  for (let u = 0; u < r; u++, l++) {
@@ -3217,7 +3217,7 @@ function Lo(t, e) {
3217
3217
  }
3218
3218
  return c;
3219
3219
  }
3220
- function vo(t, e, s) {
3220
+ function Lo(t, e, s) {
3221
3221
  const n = s;
3222
3222
  if (j(s) > 0) {
3223
3223
  const i = {};
@@ -3260,7 +3260,7 @@ function qn(t, e, s, n) {
3260
3260
  }
3261
3261
  class X {
3262
3262
  constructor(e = {}) {
3263
- _(this, "_matrix");
3263
+ d(this, "_matrix");
3264
3264
  this._setOriginValue(e);
3265
3265
  }
3266
3266
  static MakeObjectMatrixSize(e) {
@@ -3528,10 +3528,10 @@ class X {
3528
3528
  var es = /* @__PURE__ */ ((t) => (t.INIT = "init", t.FETCHING = "fetching", t.DONE = "done", t))(es || {});
3529
3529
  class Jn {
3530
3530
  constructor() {
3531
- _(this, "status", "init");
3531
+ d(this, "status", "init");
3532
3532
  }
3533
3533
  }
3534
- const Do = (t) => t.some(
3534
+ const vo = (t) => t.some(
3535
3535
  (e) => e.status === "init"
3536
3536
  /* INIT */
3537
3537
  ) ? "init" : t.some(
@@ -3556,12 +3556,12 @@ const et = class et {
3556
3556
  return e.endRow === s.endRow && e.endColumn === s.endColumn && e.startRow === s.startRow && e.startColumn === s.startColumn && (e.rangeType === s.rangeType || e.rangeType === void 0 && s.rangeType === Q.NORMAL || s.rangeType === void 0 && e.rangeType === Q.NORMAL);
3557
3557
  }
3558
3558
  static intersects(e, s) {
3559
- const n = e.startRow, r = e.endRow, i = e.startColumn, o = e.endColumn, a = s.startRow, c = s.endRow, l = s.startColumn, u = s.endColumn, h = Math.abs(i + o - l - u), f = Math.abs(i - o) + Math.abs(l - u), d = Math.abs(n + r - a - c), g = Math.abs(n - r) + Math.abs(a - c);
3560
- return h <= f && d <= g;
3559
+ const n = e.startRow, r = e.endRow, i = e.startColumn, o = e.endColumn, a = s.startRow, c = s.endRow, l = s.startColumn, u = s.endColumn, h = Math.abs(i + o - l - u), f = Math.abs(i - o) + Math.abs(l - u), _ = Math.abs(n + r - a - c), g = Math.abs(n - r) + Math.abs(a - c);
3560
+ return h <= f && _ <= g;
3561
3561
  }
3562
3562
  static getIntersects(e, s) {
3563
3563
  const n = e.startRow, r = e.endRow, i = e.startColumn, o = e.endColumn, a = s.startRow, c = s.endRow, l = s.startColumn, u = s.endColumn;
3564
- let h, f, d, g;
3564
+ let h, f, _, g;
3565
3565
  if (a <= r)
3566
3566
  a >= n ? f = a : f = n;
3567
3567
  else
@@ -3575,14 +3575,14 @@ const et = class et {
3575
3575
  else
3576
3576
  return null;
3577
3577
  if (u >= i)
3578
- u >= o ? d = o : d = u;
3578
+ u >= o ? _ = o : _ = u;
3579
3579
  else
3580
3580
  return null;
3581
3581
  return {
3582
3582
  startRow: f,
3583
3583
  endRow: g,
3584
3584
  startColumn: h,
3585
- endColumn: d,
3585
+ endColumn: _,
3586
3586
  rangeType: Q.NORMAL
3587
3587
  // TODO: this may not be accurate
3588
3588
  };
@@ -3644,25 +3644,25 @@ const et = class et {
3644
3644
  }), n;
3645
3645
  }
3646
3646
  };
3647
- _(et, "getRelativeRange", (e, s) => ({
3647
+ d(et, "getRelativeRange", (e, s) => ({
3648
3648
  startRow: e.startRow - s.startRow,
3649
3649
  endRow: e.endRow - e.startRow,
3650
3650
  startColumn: e.startColumn - s.startColumn,
3651
3651
  endColumn: e.endColumn - e.startColumn
3652
- })), _(et, "getPositionRange", (e, s) => ({
3652
+ })), d(et, "getPositionRange", (e, s) => ({
3653
3653
  startRow: e.startRow + s.startRow,
3654
3654
  endRow: e.endRow + e.startRow + s.startRow,
3655
3655
  startColumn: e.startColumn + s.startColumn,
3656
3656
  endColumn: e.endColumn + e.startColumn + s.startColumn
3657
- })), _(et, "moveHorizontal", (e, s = 0, n = 0) => ({
3657
+ })), d(et, "moveHorizontal", (e, s = 0, n = 0) => ({
3658
3658
  ...e,
3659
3659
  startColumn: e.startColumn + s,
3660
3660
  endColumn: e.endColumn + s + n
3661
- })), _(et, "moveVertical", (e, s = 0, n = 0) => ({
3661
+ })), d(et, "moveVertical", (e, s = 0, n = 0) => ({
3662
3662
  ...e,
3663
3663
  startRow: e.startRow + s,
3664
3664
  endRow: e.endRow + s + n
3665
- })), _(et, "moveOffset", (e, s, n) => ({
3665
+ })), d(et, "moveOffset", (e, s, n) => ({
3666
3666
  ...e,
3667
3667
  startRow: e.startRow + n,
3668
3668
  endRow: e.endRow + n,
@@ -3670,11 +3670,11 @@ _(et, "getRelativeRange", (e, s) => ({
3670
3670
  endColumn: e.endColumn + s
3671
3671
  }));
3672
3672
  let gt = et;
3673
- class Uo {
3673
+ class Do {
3674
3674
  constructor(e, s) {
3675
- _(this, "_values", []);
3676
- _(this, "_keys", []);
3677
- _(this, "_keyMaps", /* @__PURE__ */ new Map());
3675
+ d(this, "_values", []);
3676
+ d(this, "_keys", []);
3677
+ d(this, "_keyMaps", /* @__PURE__ */ new Map());
3678
3678
  this._values = e, this._keys = s, e.forEach((n) => {
3679
3679
  this._initKeyMap(n);
3680
3680
  });
@@ -3730,7 +3730,7 @@ class Uo {
3730
3730
  this._values = [], this._keys = [], this._keyMaps.clear();
3731
3731
  }
3732
3732
  }
3733
- function He(t, e, s, n) {
3733
+ function pe(t, e, s, n) {
3734
3734
  return {
3735
3735
  forEach(r) {
3736
3736
  for (let i = t; i <= e; i++)
@@ -3739,7 +3739,7 @@ function He(t, e, s, n) {
3739
3739
  }
3740
3740
  };
3741
3741
  }
3742
- function To(t) {
3742
+ function Uo(t) {
3743
3743
  if (t == null || t.length === 0)
3744
3744
  return NaN;
3745
3745
  const e = t.toLowerCase().split(""), s = e.length, n = (o) => o.charCodeAt(0) - 96;
@@ -3748,12 +3748,12 @@ function To(t) {
3748
3748
  i = n(e[o]), r += i * 26 ** (s - o - 1);
3749
3749
  return r === 0 ? NaN : r - 1;
3750
3750
  }
3751
- const Ht = 65, ss = 90, yn = 97;
3751
+ const pt = 65, ss = 90, yn = 97;
3752
3752
  function Po(t) {
3753
- const e = ss - Ht + 1;
3753
+ const e = ss - pt + 1;
3754
3754
  let s = "";
3755
3755
  for (; t >= 0; )
3756
- s = String.fromCharCode(t % e + Ht) + s, t = Math.floor(t / e) - 1;
3756
+ s = String.fromCharCode(t % e + pt) + s, t = Math.floor(t / e) - 1;
3757
3757
  return s;
3758
3758
  }
3759
3759
  function tr(t, e) {
@@ -3763,16 +3763,16 @@ function tr(t, e) {
3763
3763
  return s;
3764
3764
  }
3765
3765
  function xo(t, e = !1) {
3766
- const s = ss - Ht + 1;
3766
+ const s = ss - pt + 1;
3767
3767
  let n = yn;
3768
- e && (n = Ht);
3768
+ e && (n = pt);
3769
3769
  const r = String.fromCharCode(t % s + n), i = Math.floor(t / s) + 1;
3770
3770
  return tr(r, i);
3771
3771
  }
3772
- function Fo(t, e) {
3772
+ function To(t, e) {
3773
3773
  return t.zIndex > e.zIndex ? 1 : t.zIndex === e.zIndex ? 0 : -1;
3774
3774
  }
3775
- function Ho(t, e) {
3775
+ function Fo(t, e) {
3776
3776
  return t.zIndex > e.zIndex ? -1 : t.zIndex === e.zIndex ? 0 : 1;
3777
3777
  }
3778
3778
  function At(t = "index", e = 1) {
@@ -3791,7 +3791,7 @@ function rs(t) {
3791
3791
  continue;
3792
3792
  }
3793
3793
  const i = e.pop();
3794
- Pn(s, i) && m.hasIntersectionBetweenTwoRanges(i.st, i.ed, s.st, s.ed) ? e.push({
3794
+ xn(s, i) && m.hasIntersectionBetweenTwoRanges(i.st, i.ed, s.st, s.ed) ? e.push({
3795
3795
  ...s,
3796
3796
  st: i.st,
3797
3797
  ed: r
@@ -3820,23 +3820,23 @@ function is(t, e, s, n) {
3820
3820
  u.st += s, u.ed += s, i.push(u);
3821
3821
  else {
3822
3822
  a = !0, u.ed += s;
3823
- const d = [];
3823
+ const _ = [];
3824
3824
  if (c.length) {
3825
3825
  const g = {
3826
3826
  ...u,
3827
3827
  st: h,
3828
3828
  ed: c[0].st
3829
3829
  };
3830
- d.push(g), d.push(...c);
3830
+ _.push(g), _.push(...c);
3831
3831
  const E = c[c.length - 1], R = {
3832
3832
  ...u,
3833
3833
  st: E.ed,
3834
3834
  ed: f + s
3835
3835
  };
3836
- d.push(R);
3836
+ _.push(R);
3837
3837
  } else
3838
- d.push(u);
3839
- i.push(...d);
3838
+ _.push(u);
3839
+ i.push(..._);
3840
3840
  }
3841
3841
  else
3842
3842
  u.st += s, u.ed += s, a || (a = !0, i.push(...c)), i.push(u);
@@ -3850,20 +3850,20 @@ function Ae(t, e, s, n) {
3850
3850
  const { paragraphs: i, dataStream: o } = e, a = [];
3851
3851
  let c = -1;
3852
3852
  for (let u = 0, h = r.length; u < h; u++) {
3853
- const f = r[u], { startIndex: d } = f;
3854
- d >= n && (f.startIndex += s), c === -1 && d >= n && (c = u), a.push(f.startIndex);
3853
+ const f = r[u], { startIndex: _ } = f;
3854
+ _ >= n && (f.startIndex += s), c === -1 && _ >= n && (c = u), a.push(f.startIndex);
3855
3855
  }
3856
3856
  let l = -1;
3857
3857
  if (i) {
3858
3858
  for (let u = 0, h = i.length; u < h; u++) {
3859
3859
  const f = i[u];
3860
3860
  f.startIndex += n;
3861
- const d = f.startIndex;
3862
- l = a.indexOf(d);
3861
+ const _ = f.startIndex;
3862
+ l = a.indexOf(_);
3863
3863
  }
3864
3864
  if (o === ns.PARAGRAPH && i.length === 1) {
3865
- const u = r[c], h = i[0], f = u.paragraphStyle, d = u.bullet;
3866
- u.paragraphStyle = h.paragraphStyle, u.bullet = h.bullet, h.paragraphStyle = f, h.bullet = d;
3865
+ const u = r[c], h = i[0], f = u.paragraphStyle, _ = u.bullet;
3866
+ u.paragraphStyle = h.paragraphStyle, u.bullet = h.bullet, h.paragraphStyle = f, h.bullet = _;
3867
3867
  }
3868
3868
  l !== -1 && r.splice(l, 1), r.push(...i), r.sort(At("startIndex"));
3869
3869
  }
@@ -4043,8 +4043,8 @@ function hs(t, e, s) {
4043
4043
  });
4044
4044
  continue;
4045
4045
  } else if (h <= r && f >= i) {
4046
- const d = ye(h, f, r, i);
4047
- u.startIndex = d[0], u.endIndex = d[1];
4046
+ const _ = ye(h, f, r, i);
4047
+ u.startIndex = _[0], u.endIndex = _[1];
4048
4048
  } else
4049
4049
  i < h && (u.startIndex -= e, u.endIndex -= e);
4050
4050
  a.push(u);
@@ -4053,7 +4053,7 @@ function hs(t, e, s) {
4053
4053
  }
4054
4054
  return o;
4055
4055
  }
4056
- function _s(t, e, s) {
4056
+ function ds(t, e, s) {
4057
4057
  const { customRanges: n } = t, r = s, i = s + e - 1, o = [];
4058
4058
  if (n) {
4059
4059
  const a = [];
@@ -4067,8 +4067,8 @@ function _s(t, e, s) {
4067
4067
  });
4068
4068
  continue;
4069
4069
  } else if (h <= r && f >= i) {
4070
- const d = ye(h, f, r, i);
4071
- u.startIndex = d[0], u.endIndex = d[1];
4070
+ const _ = ye(h, f, r, i);
4071
+ u.startIndex = _[0], u.endIndex = _[1];
4072
4072
  } else
4073
4073
  i < h && (u.startIndex -= e, u.endIndex -= e);
4074
4074
  a.push(u);
@@ -4078,9 +4078,9 @@ function _s(t, e, s) {
4078
4078
  return o;
4079
4079
  }
4080
4080
  function rr(t, e, s) {
4081
- const { dataStream: n } = t, r = s, i = s + e, o = as(t, e, s), a = ls(t, e, s), c = us(t, e, s), l = cs(t, e, s), u = hs(t, e, s), h = _s(t, e, s);
4081
+ const { dataStream: n } = t, r = s, i = s + e, o = as(t, e, s), a = ls(t, e, s), c = us(t, e, s), l = cs(t, e, s), u = hs(t, e, s), h = ds(t, e, s);
4082
4082
  let f = "";
4083
- return n && (t.dataStream = Hn(n, r, i), f = n.slice(r, i)), {
4083
+ return n && (t.dataStream = pn(n, r, i), f = n.slice(r, i)), {
4084
4084
  dataStream: f,
4085
4085
  textRuns: o,
4086
4086
  paragraphs: a,
@@ -4093,7 +4093,7 @@ function rr(t, e, s) {
4093
4093
  function ir(t, e, s, n) {
4094
4094
  t.dataStream = Fn(t.dataStream, n, e.dataStream), is(t, e, s, n), Ae(t, e, s, n), sr(t, e, s, n), os(t, e, s, n), Ie(t, e, s, n), nr(t, e, s, n);
4095
4095
  }
4096
- var or = /* @__PURE__ */ ((t) => (t[t.character = 0] = "character", t[t.paragraph = 1] = "paragraph", t[t.table = 2] = "table", t[t.numbering = 3] = "numbering", t))(or || {}), ar = /* @__PURE__ */ ((t) => (t[t.TAB = 0] = "TAB", t[t.SPACE = 1] = "SPACE", t[t.NOTHING = 2] = "NOTHING", t))(ar || {}), Dt = /* @__PURE__ */ ((t) => (t[t.GLYPH_TYPE_UNSPECIFIED = 0] = "GLYPH_TYPE_UNSPECIFIED", t[t.NONE = 1] = "NONE", t[t.DECIMAL = 2] = "DECIMAL", t[t.ZERO_DECIMAL = 3] = "ZERO_DECIMAL", t[t.UPPER_ALPHA = 4] = "UPPER_ALPHA", t[t.ALPHA = 5] = "ALPHA", t[t.UPPER_ROMAN = 6] = "UPPER_ROMAN", t[t.ROMAN = 7] = "ROMAN", t))(Dt || {}), rt = /* @__PURE__ */ ((t) => (t[t.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", t[t.START = 1] = "START", t[t.CENTER = 2] = "CENTER", t[t.END = 3] = "END", t))(rt || {}), lr = /* @__PURE__ */ ((t) => (t[t.HYPERLINK = 0] = "HYPERLINK", t[t.FIELD = 1] = "FIELD", t[t.SDT = 2] = "SDT", t[t.BOOKMARK = 3] = "BOOKMARK", t[t.COMMENT = 4] = "COMMENT", t[t.CUSTOM = 5] = "CUSTOM", t))(lr || {}), ur = /* @__PURE__ */ ((t) => (t[t.DRAWING = 0] = "DRAWING", t[t.CUSTOM = 1] = "CUSTOM", t))(ur || {}), cr = /* @__PURE__ */ ((t) => (t[t.DEFAULT = 0] = "DEFAULT", t[t.LINES = 1] = "LINES", t[t.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", t[t.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", t))(cr || {}), hr = /* @__PURE__ */ ((t) => (t[t.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", t[t.CONTINUOUS = 1] = "CONTINUOUS", t[t.NEXT_PAGE = 2] = "NEXT_PAGE", t[t.EVEN_PAGE = 3] = "EVEN_PAGE", t[t.ODD_PAGE = 4] = "ODD_PAGE", t))(hr || {}), _r = /* @__PURE__ */ ((t) => (t[t.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", t[t.NONE = 1] = "NONE", t[t.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", t))(_r || {}), dr = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.TBRL = 1] = "TBRL", t[t.LRTBV = 2] = "LRTBV", t))(dr || {}), fr = /* @__PURE__ */ ((t) => (t[t.TEXT_RUN = 0] = "TEXT_RUN", t[t.AUTO_TEXT = 1] = "AUTO_TEXT", t[t.PAGE_BREAK = 2] = "PAGE_BREAK", t[t.COLUMN_BREAK = 3] = "COLUMN_BREAK", t[t.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", t[t.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", t[t.EQUATION = 6] = "EQUATION", t[t.DRAWING = 7] = "DRAWING", t[t.PERSON = 8] = "PERSON", t[t.RICH_LINK = 9] = "RICH_LINK", t))(fr || {}), gr = /* @__PURE__ */ ((t) => (t[t.BOTH_SIDES = 0] = "BOTH_SIDES", t[t.LEFT = 1] = "LEFT", t[t.RIGHT = 2] = "RIGHT", t[t.LARGEST = 3] = "LARGEST", t))(gr || {}), Er = /* @__PURE__ */ ((t) => (t[t.INLINE = 0] = "INLINE", t[t.WRAP_NONE = 1] = "WRAP_NONE", t[t.WRAP_POLYGON = 2] = "WRAP_POLYGON", t[t.WRAP_SQUARE = 3] = "WRAP_SQUARE", t[t.WRAP_THROUGH = 4] = "WRAP_THROUGH", t[t.WRAP_TIGHT = 5] = "WRAP_TIGHT", t[t.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", t))(Er || {}), Rr = /* @__PURE__ */ ((t) => (t[t.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", t[t.NORMAL_TEXT = 1] = "NORMAL_TEXT", t[t.TITLE = 2] = "TITLE", t[t.SUBTITLE = 3] = "SUBTITLE", t[t.HEADING_1 = 4] = "HEADING_1", t[t.HEADING_2 = 5] = "HEADING_2", t[t.HEADING_3 = 6] = "HEADING_3", t[t.HEADING_4 = 7] = "HEADING_4", t[t.HEADING_5 = 8] = "HEADING_5", t[t.HEADING_6 = 9] = "HEADING_6", t))(Rr || {}), mr = /* @__PURE__ */ ((t) => (t[t.AUTO = 0] = "AUTO", t[t.AT_LEAST = 1] = "AT_LEAST", t[t.EXACT = 2] = "EXACT", t))(mr || {}), Or = /* @__PURE__ */ ((t) => (t[t.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", t[t.SOLID = 1] = "SOLID", t[t.DOT = 2] = "DOT", t[t.DASH = 3] = "DASH", t))(Or || {}), Ar = /* @__PURE__ */ ((t) => (t[t.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", t[t.START = 1] = "START", t[t.CENTER = 2] = "CENTER", t[t.END = 3] = "END", t))(Ar || {}), Ir = /* @__PURE__ */ ((t) => (t.EVENLY_DISTRIBUTED = "0", t.FIXED_WIDTH = "1", t))(Ir || {}), Cr = /* @__PURE__ */ ((t) => (t[t.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", t[t.CONTENT_ALIGNMENT_UNSUPPORTED = 1] = "CONTENT_ALIGNMENT_UNSUPPORTED", t[t.TOP = 2] = "TOP", t[t.MIDDLE = 3] = "MIDDLE", t[t.BOTTOM = 4] = "BOTTOM", t))(Cr || {}), Nr = /* @__PURE__ */ ((t) => (t.NORMAL = "normal", t.BOLD = "bold", t.ITALIC = "italic", t))(Nr || {}), Sr = /* @__PURE__ */ ((t) => (t[t.CHARACTER = 0] = "CHARACTER", t[t.COLUMN = 1] = "COLUMN", t[t.INSIDE_MARGIN = 2] = "INSIDE_MARGIN", t[t.LEFT_MARGIN = 3] = "LEFT_MARGIN", t[t.MARGIN = 4] = "MARGIN", t[t.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", t[t.PAGE = 6] = "PAGE", t[t.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", t))(Sr || {}), br = /* @__PURE__ */ ((t) => (t[t.BOTTOM_MARGIN = 0] = "BOTTOM_MARGIN", t[t.INSIDE_MARGIN = 1] = "INSIDE_MARGIN", t[t.LINE = 2] = "LINE", t[t.MARGIN = 3] = "MARGIN", t[t.OUTSIDE_MARGIN = 4] = "OUTSIDE_MARGIN", t[t.PAGE = 5] = "PAGE", t[t.PARAGRAPH = 6] = "PARAGRAPH", t[t.TOP_MARGIN = 7] = "TOP_MARGIN", t))(br || {}), wr = /* @__PURE__ */ ((t) => (t[t.POINT = 0] = "POINT", t[t.LINE = 1] = "LINE", t[t.CHARACTER = 2] = "CHARACTER", t))(wr || {}), Lr = /* @__PURE__ */ ((t) => (t[t.CENTER = 0] = "CENTER", t[t.INSIDE = 1] = "INSIDE", t[t.LEFT = 2] = "LEFT", t[t.OUTSIDE = 3] = "OUTSIDE", t[t.RIGHT = 4] = "RIGHT", t))(Lr || {}), vr = /* @__PURE__ */ ((t) => (t[t.BOTTOM = 0] = "BOTTOM", t[t.CENTER = 1] = "CENTER", t[t.INSIDE = 2] = "INSIDE", t[t.OUTSIDE = 3] = "OUTSIDE", t[t.TOP = 4] = "TOP", t))(vr || {}), Dr = /* @__PURE__ */ ((t) => (t[t.compressPunctuation = 0] = "compressPunctuation", t[t.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", t[t.doNotCompress = 2] = "doNotCompress", t))(Dr || {}), Mr = /* @__PURE__ */ ((t) => (t[t.PORTRAIT = 0] = "PORTRAIT", t[t.LANDSCAPE = 1] = "LANDSCAPE", t))(Mr || {}), ie = /* @__PURE__ */ ((t) => (t.BULLET_LIST = "BULLET_LIST", t.ORDER_LIST = "ORDER_LIST", t))(ie || {});
4096
+ var or = /* @__PURE__ */ ((t) => (t[t.character = 0] = "character", t[t.paragraph = 1] = "paragraph", t[t.table = 2] = "table", t[t.numbering = 3] = "numbering", t))(or || {}), ar = /* @__PURE__ */ ((t) => (t[t.TAB = 0] = "TAB", t[t.SPACE = 1] = "SPACE", t[t.NOTHING = 2] = "NOTHING", t))(ar || {}), Mt = /* @__PURE__ */ ((t) => (t[t.GLYPH_TYPE_UNSPECIFIED = 0] = "GLYPH_TYPE_UNSPECIFIED", t[t.NONE = 1] = "NONE", t[t.DECIMAL = 2] = "DECIMAL", t[t.ZERO_DECIMAL = 3] = "ZERO_DECIMAL", t[t.UPPER_ALPHA = 4] = "UPPER_ALPHA", t[t.ALPHA = 5] = "ALPHA", t[t.UPPER_ROMAN = 6] = "UPPER_ROMAN", t[t.ROMAN = 7] = "ROMAN", t))(Mt || {}), rt = /* @__PURE__ */ ((t) => (t[t.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", t[t.START = 1] = "START", t[t.CENTER = 2] = "CENTER", t[t.END = 3] = "END", t))(rt || {}), lr = /* @__PURE__ */ ((t) => (t[t.HYPERLINK = 0] = "HYPERLINK", t[t.FIELD = 1] = "FIELD", t[t.SDT = 2] = "SDT", t[t.BOOKMARK = 3] = "BOOKMARK", t[t.COMMENT = 4] = "COMMENT", t[t.CUSTOM = 5] = "CUSTOM", t))(lr || {}), ur = /* @__PURE__ */ ((t) => (t[t.DRAWING = 0] = "DRAWING", t[t.CUSTOM = 1] = "CUSTOM", t))(ur || {}), cr = /* @__PURE__ */ ((t) => (t[t.DEFAULT = 0] = "DEFAULT", t[t.LINES = 1] = "LINES", t[t.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", t[t.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", t))(cr || {}), hr = /* @__PURE__ */ ((t) => (t[t.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", t[t.CONTINUOUS = 1] = "CONTINUOUS", t[t.NEXT_PAGE = 2] = "NEXT_PAGE", t[t.EVEN_PAGE = 3] = "EVEN_PAGE", t[t.ODD_PAGE = 4] = "ODD_PAGE", t))(hr || {}), dr = /* @__PURE__ */ ((t) => (t[t.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", t[t.NONE = 1] = "NONE", t[t.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", t))(dr || {}), _r = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.TBRL = 1] = "TBRL", t[t.LRTBV = 2] = "LRTBV", t))(_r || {}), fr = /* @__PURE__ */ ((t) => (t[t.TEXT_RUN = 0] = "TEXT_RUN", t[t.AUTO_TEXT = 1] = "AUTO_TEXT", t[t.PAGE_BREAK = 2] = "PAGE_BREAK", t[t.COLUMN_BREAK = 3] = "COLUMN_BREAK", t[t.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", t[t.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", t[t.EQUATION = 6] = "EQUATION", t[t.DRAWING = 7] = "DRAWING", t[t.PERSON = 8] = "PERSON", t[t.RICH_LINK = 9] = "RICH_LINK", t))(fr || {}), gr = /* @__PURE__ */ ((t) => (t[t.BOTH_SIDES = 0] = "BOTH_SIDES", t[t.LEFT = 1] = "LEFT", t[t.RIGHT = 2] = "RIGHT", t[t.LARGEST = 3] = "LARGEST", t))(gr || {}), Er = /* @__PURE__ */ ((t) => (t[t.INLINE = 0] = "INLINE", t[t.WRAP_NONE = 1] = "WRAP_NONE", t[t.WRAP_POLYGON = 2] = "WRAP_POLYGON", t[t.WRAP_SQUARE = 3] = "WRAP_SQUARE", t[t.WRAP_THROUGH = 4] = "WRAP_THROUGH", t[t.WRAP_TIGHT = 5] = "WRAP_TIGHT", t[t.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", t))(Er || {}), Rr = /* @__PURE__ */ ((t) => (t[t.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", t[t.NORMAL_TEXT = 1] = "NORMAL_TEXT", t[t.TITLE = 2] = "TITLE", t[t.SUBTITLE = 3] = "SUBTITLE", t[t.HEADING_1 = 4] = "HEADING_1", t[t.HEADING_2 = 5] = "HEADING_2", t[t.HEADING_3 = 6] = "HEADING_3", t[t.HEADING_4 = 7] = "HEADING_4", t[t.HEADING_5 = 8] = "HEADING_5", t[t.HEADING_6 = 9] = "HEADING_6", t))(Rr || {}), mr = /* @__PURE__ */ ((t) => (t[t.AUTO = 0] = "AUTO", t[t.AT_LEAST = 1] = "AT_LEAST", t[t.EXACT = 2] = "EXACT", t))(mr || {}), Or = /* @__PURE__ */ ((t) => (t[t.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", t[t.SOLID = 1] = "SOLID", t[t.DOT = 2] = "DOT", t[t.DASH = 3] = "DASH", t))(Or || {}), Ar = /* @__PURE__ */ ((t) => (t[t.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", t[t.START = 1] = "START", t[t.CENTER = 2] = "CENTER", t[t.END = 3] = "END", t))(Ar || {}), Ir = /* @__PURE__ */ ((t) => (t.EVENLY_DISTRIBUTED = "0", t.FIXED_WIDTH = "1", t))(Ir || {}), Cr = /* @__PURE__ */ ((t) => (t[t.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", t[t.CONTENT_ALIGNMENT_UNSUPPORTED = 1] = "CONTENT_ALIGNMENT_UNSUPPORTED", t[t.TOP = 2] = "TOP", t[t.MIDDLE = 3] = "MIDDLE", t[t.BOTTOM = 4] = "BOTTOM", t))(Cr || {}), Nr = /* @__PURE__ */ ((t) => (t.NORMAL = "normal", t.BOLD = "bold", t.ITALIC = "italic", t))(Nr || {}), br = /* @__PURE__ */ ((t) => (t[t.CHARACTER = 0] = "CHARACTER", t[t.COLUMN = 1] = "COLUMN", t[t.INSIDE_MARGIN = 2] = "INSIDE_MARGIN", t[t.LEFT_MARGIN = 3] = "LEFT_MARGIN", t[t.MARGIN = 4] = "MARGIN", t[t.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", t[t.PAGE = 6] = "PAGE", t[t.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", t))(br || {}), wr = /* @__PURE__ */ ((t) => (t[t.BOTTOM_MARGIN = 0] = "BOTTOM_MARGIN", t[t.INSIDE_MARGIN = 1] = "INSIDE_MARGIN", t[t.LINE = 2] = "LINE", t[t.MARGIN = 3] = "MARGIN", t[t.OUTSIDE_MARGIN = 4] = "OUTSIDE_MARGIN", t[t.PAGE = 5] = "PAGE", t[t.PARAGRAPH = 6] = "PARAGRAPH", t[t.TOP_MARGIN = 7] = "TOP_MARGIN", t))(wr || {}), Sr = /* @__PURE__ */ ((t) => (t[t.POINT = 0] = "POINT", t[t.LINE = 1] = "LINE", t[t.CHARACTER = 2] = "CHARACTER", t))(Sr || {}), Lr = /* @__PURE__ */ ((t) => (t[t.CENTER = 0] = "CENTER", t[t.INSIDE = 1] = "INSIDE", t[t.LEFT = 2] = "LEFT", t[t.OUTSIDE = 3] = "OUTSIDE", t[t.RIGHT = 4] = "RIGHT", t))(Lr || {}), vr = /* @__PURE__ */ ((t) => (t[t.BOTTOM = 0] = "BOTTOM", t[t.CENTER = 1] = "CENTER", t[t.INSIDE = 2] = "INSIDE", t[t.OUTSIDE = 3] = "OUTSIDE", t[t.TOP = 4] = "TOP", t))(vr || {}), Mr = /* @__PURE__ */ ((t) => (t[t.compressPunctuation = 0] = "compressPunctuation", t[t.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", t[t.doNotCompress = 2] = "doNotCompress", t))(Mr || {}), Dr = /* @__PURE__ */ ((t) => (t[t.PORTRAIT = 0] = "PORTRAIT", t[t.LANDSCAPE = 1] = "LANDSCAPE", t))(Dr || {}), ie = /* @__PURE__ */ ((t) => (t.BULLET_LIST = "BULLET_LIST", t.ORDER_LIST = "ORDER_LIST", t))(ie || {});
4097
4097
  const po = {
4098
4098
  BULLET_LIST: {
4099
4099
  listType: "BULLET_LIST",
@@ -4143,7 +4143,7 @@ const po = {
4143
4143
  fs: 12
4144
4144
  },
4145
4145
  startNumber: 0,
4146
- glyphType: Dt.DECIMAL,
4146
+ glyphType: Mt.DECIMAL,
4147
4147
  hanging: 21,
4148
4148
  indentStart: 21
4149
4149
  },
@@ -4154,7 +4154,7 @@ const po = {
4154
4154
  fs: 12
4155
4155
  },
4156
4156
  startNumber: 0,
4157
- glyphType: Dt.DECIMAL,
4157
+ glyphType: Mt.DECIMAL,
4158
4158
  hanging: 21,
4159
4159
  indentStart: 42
4160
4160
  },
@@ -4165,7 +4165,7 @@ const po = {
4165
4165
  fs: 12
4166
4166
  },
4167
4167
  startNumber: 0,
4168
- glyphType: Dt.DECIMAL,
4168
+ glyphType: Mt.DECIMAL,
4169
4169
  hanging: 21,
4170
4170
  indentStart: 63
4171
4171
  }
@@ -4173,7 +4173,7 @@ const po = {
4173
4173
  }
4174
4174
  };
4175
4175
  function Ur(t, e, s, n, r) {
4176
- const i = Tr(t, e, s, n, r), o = xr(t, e, s, n, r), a = Fr(t, e, s, n, r), c = Hr(t, e, s, n, r), l = pr(t, e, s, n, r), u = Br(t, e, s, n, r);
4176
+ const i = Pr(t, e, s, n, r), o = Tr(t, e, s, n, r), a = Fr(t, e, s, n, r), c = pr(t, e, s, n, r), l = Hr(t, e, s, n, r), u = $r(t, e, s, n, r);
4177
4177
  return {
4178
4178
  dataStream: "",
4179
4179
  textRuns: i,
@@ -4184,18 +4184,18 @@ function Ur(t, e, s, n, r) {
4184
4184
  customRanges: u
4185
4185
  };
4186
4186
  }
4187
- function Tr(t, e, s, n, r) {
4187
+ function Pr(t, e, s, n, r) {
4188
4188
  const { textRuns: i } = t, { textRuns: o } = e;
4189
4189
  if (i == null || o == null)
4190
4190
  return;
4191
4191
  const a = as(t, s, n);
4192
- if (r !== x.REPLACE) {
4193
- const c = Pr(o, a, r);
4192
+ if (r !== T.REPLACE) {
4193
+ const c = xr(o, a, r);
4194
4194
  e.textRuns = c;
4195
4195
  }
4196
4196
  return is(t, e, s, n), a;
4197
4197
  }
4198
- function Pr(t, e, s) {
4198
+ function xr(t, e, s) {
4199
4199
  if (e.length === 0)
4200
4200
  return t;
4201
4201
  t = m.deepClone(t), e = m.deepClone(e);
@@ -4205,35 +4205,35 @@ function Pr(t, e, s) {
4205
4205
  return c ? (n.push(c), c = null, !0) : !1;
4206
4206
  }
4207
4207
  for (; o < r && a < i; ) {
4208
- const { st: d, ed: g, ts: E } = t[o], { st: R, ed: O, ts: A, sId: S } = e[a];
4209
- let H;
4210
- s === x.COVER ? H = { ...A, ...E } : H = { ...E, ...A }, g < R ? (l() || n.push(t[o]), o++) : O < d ? (l() || n.push(e[a]), a++) : (n.push({
4211
- st: Math.min(d, R),
4212
- ed: Math.max(d, R),
4213
- ts: d < R ? { ...E } : { ...A },
4214
- sId: d < R ? void 0 : S
4208
+ const { st: _, ed: g, ts: E } = t[o], { st: R, ed: O, ts: A, sId: b } = e[a];
4209
+ let p;
4210
+ s === T.COVER ? p = { ...A, ...E } : p = { ...E, ...A }, g < R ? (l() || n.push(t[o]), o++) : O < _ ? (l() || n.push(e[a]), a++) : (n.push({
4211
+ st: Math.min(_, R),
4212
+ ed: Math.max(_, R),
4213
+ ts: _ < R ? { ...E } : { ...A },
4214
+ sId: _ < R ? void 0 : b
4215
4215
  }), n.push({
4216
- st: Math.max(d, R),
4216
+ st: Math.max(_, R),
4217
4217
  ed: Math.min(g, O),
4218
- ts: H,
4219
- sId: S
4218
+ ts: p,
4219
+ sId: b
4220
4220
  }), g < O ? (o++, e[a].st = g) : (a++, t[o].st = O), c = {
4221
4221
  st: Math.min(g, O),
4222
4222
  ed: Math.max(g, O),
4223
4223
  ts: g < O ? { ...A } : { ...E },
4224
- sId: g < O ? S : void 0
4224
+ sId: g < O ? b : void 0
4225
4225
  });
4226
4226
  }
4227
4227
  l();
4228
4228
  const u = n[n.length - 1], h = t[r - 1], f = e[i - 1];
4229
4229
  return u.ed !== Math.max(h.ed, f.ed) && (h.ed > f.ed ? n.push(h) : n.push(f)), rs(n);
4230
4230
  }
4231
- function xr(t, e, s, n, r) {
4231
+ function Tr(t, e, s, n, r) {
4232
4232
  const { paragraphs: i } = t, { paragraphs: o } = e;
4233
4233
  if (i == null || o == null)
4234
4234
  return;
4235
4235
  const a = ls(t, s, n);
4236
- if (r !== x.REPLACE) {
4236
+ if (r !== T.REPLACE) {
4237
4237
  const c = [];
4238
4238
  for (const l of o) {
4239
4239
  const {
@@ -4241,22 +4241,22 @@ function xr(t, e, s, n, r) {
4241
4241
  paragraphStyle: h,
4242
4242
  bullet: f
4243
4243
  } = l;
4244
- let d = [];
4244
+ let _ = [];
4245
4245
  for (const g of a) {
4246
4246
  const {
4247
4247
  startIndex: E,
4248
4248
  paragraphStyle: R,
4249
4249
  bullet: O
4250
4250
  } = g;
4251
- let A, S;
4252
- if (r === x.COVER ? (A = { ...R, ...h }, S = {
4251
+ let A, b;
4252
+ if (r === T.COVER ? (A = { ...R, ...h }, b = {
4253
4253
  listId: "",
4254
4254
  listType: ie.BULLET_LIST,
4255
4255
  nestingLevel: 0,
4256
4256
  textStyle: {},
4257
4257
  ...O,
4258
4258
  ...f
4259
- }) : (A = { ...h, ...R }, S = {
4259
+ }) : (A = { ...h, ...R }, b = {
4260
4260
  listId: "",
4261
4261
  listType: ie.BULLET_LIST,
4262
4262
  nestingLevel: 0,
@@ -4264,15 +4264,15 @@ function xr(t, e, s, n, r) {
4264
4264
  ...f,
4265
4265
  ...O
4266
4266
  }), u === E) {
4267
- d.push({
4267
+ _.push({
4268
4268
  startIndex: u,
4269
4269
  paragraphStyle: A,
4270
- bullet: S
4270
+ bullet: b
4271
4271
  });
4272
4272
  break;
4273
4273
  }
4274
4274
  }
4275
- c.push(...d), d = [];
4275
+ c.push(..._), _ = [];
4276
4276
  }
4277
4277
  e.paragraphs = c;
4278
4278
  }
@@ -4283,15 +4283,15 @@ function Fr(t, e, s, n, r) {
4283
4283
  if (i == null || o == null)
4284
4284
  return;
4285
4285
  const a = us(t, s, n);
4286
- if (r !== x.REPLACE) {
4286
+ if (r !== T.REPLACE) {
4287
4287
  const c = [];
4288
4288
  for (const l of o) {
4289
4289
  const { startIndex: u } = l;
4290
4290
  let h = [];
4291
4291
  for (const f of a) {
4292
- const { startIndex: d } = f;
4293
- if (u === d) {
4294
- r === x.COVER ? h.push({
4292
+ const { startIndex: _ } = f;
4293
+ if (u === _) {
4294
+ r === T.COVER ? h.push({
4295
4295
  ...f,
4296
4296
  ...l
4297
4297
  }) : h.push({
@@ -4307,20 +4307,20 @@ function Fr(t, e, s, n, r) {
4307
4307
  }
4308
4308
  return Ae(t, e, s, n), a;
4309
4309
  }
4310
- function Hr(t, e, s, n, r) {
4310
+ function pr(t, e, s, n, r) {
4311
4311
  const { customBlocks: i } = t, { customBlocks: o } = e;
4312
4312
  if (i == null || o == null)
4313
4313
  return;
4314
4314
  const a = cs(t, s, n);
4315
- if (r !== x.REPLACE) {
4315
+ if (r !== T.REPLACE) {
4316
4316
  const c = [];
4317
4317
  for (const l of o) {
4318
4318
  const { startIndex: u } = l;
4319
4319
  let h = [];
4320
4320
  for (const f of a) {
4321
- const { startIndex: d } = f;
4322
- if (u === d) {
4323
- r === x.COVER ? h.push({
4321
+ const { startIndex: _ } = f;
4322
+ if (u === _) {
4323
+ r === T.COVER ? h.push({
4324
4324
  ...f,
4325
4325
  ...l
4326
4326
  }) : h.push({
@@ -4336,25 +4336,25 @@ function Hr(t, e, s, n, r) {
4336
4336
  }
4337
4337
  return os(t, e, s, n), a;
4338
4338
  }
4339
- function pr(t, e, s, n, r) {
4339
+ function Hr(t, e, s, n, r) {
4340
4340
  const { tables: i } = t, { tables: o } = e;
4341
4341
  if (i == null || o == null)
4342
4342
  return;
4343
4343
  const a = hs(t, s, n);
4344
- if (r !== x.REPLACE) {
4344
+ if (r !== T.REPLACE) {
4345
4345
  const c = [];
4346
4346
  for (const l of o) {
4347
4347
  const { startIndex: u, endIndex: h } = l;
4348
4348
  let f = [];
4349
- for (const d of a) {
4350
- const { startIndex: g, endIndex: E } = d;
4349
+ for (const _ of a) {
4350
+ const { startIndex: g, endIndex: E } = _;
4351
4351
  if (g >= u && E <= h) {
4352
- r === x.COVER ? f.push({
4353
- ...d,
4352
+ r === T.COVER ? f.push({
4353
+ ..._,
4354
4354
  ...l
4355
4355
  }) : f.push({
4356
4356
  ...l,
4357
- ...d
4357
+ ..._
4358
4358
  });
4359
4359
  break;
4360
4360
  }
@@ -4365,25 +4365,25 @@ function pr(t, e, s, n, r) {
4365
4365
  }
4366
4366
  return Ie(t, e, s, n), a;
4367
4367
  }
4368
- function Br(t, e, s, n, r) {
4368
+ function $r(t, e, s, n, r) {
4369
4369
  const { customRanges: i } = t, { tables: o } = e;
4370
4370
  if (i == null || o == null)
4371
4371
  return;
4372
- const a = _s(t, s, n);
4373
- if (r !== x.REPLACE) {
4372
+ const a = ds(t, s, n);
4373
+ if (r !== T.REPLACE) {
4374
4374
  const c = [];
4375
4375
  for (const l of o) {
4376
4376
  const { startIndex: u, endIndex: h } = l;
4377
4377
  let f = [];
4378
- for (const d of a) {
4379
- const { startIndex: g, endIndex: E } = d;
4378
+ for (const _ of a) {
4379
+ const { startIndex: g, endIndex: E } = _;
4380
4380
  if (g >= u && E <= h) {
4381
- r === x.COVER ? f.push({
4382
- ...d,
4381
+ r === T.COVER ? f.push({
4382
+ ..._,
4383
4383
  ...l
4384
4384
  }) : f.push({
4385
4385
  ...l,
4386
- ...d
4386
+ ..._
4387
4387
  });
4388
4388
  break;
4389
4389
  }
@@ -4394,14 +4394,14 @@ function Br(t, e, s, n, r) {
4394
4394
  }
4395
4395
  return Ie(t, e, s, n), a;
4396
4396
  }
4397
- const ds = {
4397
+ const _s = {
4398
4398
  id: "default_doc",
4399
4399
  documentStyle: {}
4400
4400
  };
4401
- class Wr {
4401
+ class Br {
4402
4402
  constructor(e) {
4403
- _(this, "snapshot");
4404
- this.snapshot = { ...ds, ...e };
4403
+ d(this, "snapshot");
4404
+ this.snapshot = { ..._s, ...e };
4405
4405
  }
4406
4406
  get drawings() {
4407
4407
  return this.snapshot.drawings;
@@ -4475,12 +4475,12 @@ class Wr {
4475
4475
  } : this.snapshot.settings.zoomRatio = 1;
4476
4476
  }
4477
4477
  }
4478
- class Rt extends Wr {
4478
+ class Rt extends Br {
4479
4479
  constructor(s) {
4480
4480
  super(s);
4481
- _(this, "_unitId");
4482
- _(this, "headerModelMap", /* @__PURE__ */ new Map());
4483
- _(this, "footerModelMap", /* @__PURE__ */ new Map());
4481
+ d(this, "_unitId");
4482
+ d(this, "headerModelMap", /* @__PURE__ */ new Map());
4483
+ d(this, "footerModelMap", /* @__PURE__ */ new Map());
4484
4484
  const n = 6;
4485
4485
  this._unitId = this.snapshot.id ?? m.generateRandomId(n), this._initializeHeaderFooterModel();
4486
4486
  }
@@ -4504,7 +4504,7 @@ class Rt extends Wr {
4504
4504
  reset(s) {
4505
4505
  if (s.id && s.id !== this._unitId)
4506
4506
  throw new Error("Cannot reset a document model with a different unit id!");
4507
- this.snapshot = { ...ds, ...s }, this._initializeHeaderFooterModel();
4507
+ this.snapshot = { ..._s, ...s }, this._initializeHeaderFooterModel();
4508
4508
  }
4509
4509
  getSelfOrHeaderFooterModel(s) {
4510
4510
  if (s != null) {
@@ -4528,7 +4528,7 @@ class Rt extends Wr {
4528
4528
  n.push({
4529
4529
  ...i,
4530
4530
  t: "r",
4531
- coverType: x.REPLACE,
4531
+ coverType: T.REPLACE,
4532
4532
  body: u
4533
4533
  });
4534
4534
  } else
@@ -4556,7 +4556,7 @@ class Rt extends Wr {
4556
4556
  throw new Error(`Unknown mutation type for mutation: ${i}.`);
4557
4557
  }), n;
4558
4558
  }
4559
- _updateApply(s, n, r, i = x.COVER, o) {
4559
+ _updateApply(s, n, r, i = T.COVER, o) {
4560
4560
  if (s == null)
4561
4561
  throw new Error("updateBody is none");
4562
4562
  const a = this.snapshot, c = zt(a, o);
@@ -4595,8 +4595,7 @@ class Rt extends Wr {
4595
4595
  super.updateDocumentId(s), this._unitId = s;
4596
4596
  }
4597
4597
  }
4598
- var $r = /* @__PURE__ */ ((t) => (t.INSERT_ROW_DATA_ACTION = "InsertRowDataAction", t.REMOVE_ROW_DATA_ACTION = "RemoveRowDataAction", t.INSERT_ROW_ACTION = "InsertRowAction", t.REMOVE_ROW_ACTION = "RemoveRowAction", t.SET_RANGE_STYLE_ACTION = "SetRangeStyleAction", t.SET_SELECTION_ACTION = "SetSelectionActivateAction", t.SET_RANGE_DATA_ACTION = "SetRangeDataAction", t.SET_RANGE_FORMATTED_VALUE_ACTION = "SetRangeFormattedValueAction", t.SET_RANGE_NOTE_ACTION = "SetRangeNoteAction", t.DELETE_RANGE_ACTION = "DeleteRangeAction", t.INSERT_SHEET_ACTION = "InsertSheetAction", t.REMOVE_SHEET_ACTION = "RemoveSheetAction", t.CLEAR_RANGE_ACTION = "ClearRangeAction", t.INSERT_RANGE_ACTION = "InsertRangeAction", t.SET_TAB_COLOR_ACTION = "SetTabColorAction", t.HIDE_SHEET_ACTION = "SetWorkSheetHideAction", t.SET_WORKSHEET_ACTIVATE_ACTION = "SetWorkSheetActivateAction", t.INSERT_COLUMN_ACTION = "InsertColumnAction", t.INSERT_COLUMN_DATA_ACTION = "InsertColumnDataAction", t.REMOVE_COLUMN_ACTION = "RemoveColumnAction", t.REMOVE_COLUMN_DATA_ACTION = "RemoveColumnDataAction", t.SET_HIDE_ROW_ACTION = "SetRowHideAction", t.SET_HIDE_COLUMN_ACTION = "SetColumnHideAction", t.SET_SHOW_ROW_ACTION = "SetRowShowAction", t.SET_SHOW_COLUMN_ACTION = "SetColumnShowAction", t.ADD_MERGE_ACTION = "AddMergeAction", t.REMOVE_MERGE_ACTION = "RemoveMergeAction", t.SET_WORKSHEET_NAME_ACTION = "SetWorkSheetNameAction", t.SET_WORKSHEET_STATUS_ACTION = "SetWorkSheetStatusAction", t.SET_BORDER_ACTION = "SetBorderAction", t.SET_COLUMN_WIDTH_ACTION = "SetColumnWidthAction", t.SET_ROW_HEIGHT_ACTION = "SetRowHeightAction", t.SET_HIDDEN_GRIDLINES_ACTION = "SetHiddenGridlinesAction", t.SET_RIGHT_TO_LEFT_ACTION = "SetRightToLeftAction", t.DELETE_BANDING_ACTION = "DeleteBandingAction", t.SET_BANDING_ACTION = "SetBandingAction", t.ADD_BANDING_ACTION = "AddBandingAction", t.DELETE_NAMED_RANGE_ACTION = "DeleteNamedRangeAction", t.SET_NAMED_RANGE_ACTION = "SetNamedRangeAction", t.ADD_NAMED_RANGE_ACTION = "AddNamedRangeAction", t.SET_SHEET_ORDER_ACTION = "SetSheetOrderAction", t.SET_ZOOM_RATIO_ACTION = "SetZoomRatioAction", t.SET_FROZEN_COLUMNS_ACTION = "SetFrozenColumnsAction", t.SET_FROZEN_ROWS_ACTION = "SetFrozenRowsAction", t))($r || {});
4599
- const bt = {
4598
+ const wt = {
4600
4599
  sheetId: "",
4601
4600
  range: {
4602
4601
  startRow: -1,
@@ -4604,20 +4603,20 @@ const bt = {
4604
4603
  startColumn: -1,
4605
4604
  endColumn: -1
4606
4605
  }
4607
- }, Bo = {
4606
+ }, Ho = {
4608
4607
  startRow: -1,
4609
4608
  startColumn: -1,
4610
4609
  endRow: -1,
4611
4610
  endColumn: -1
4612
- }, Wo = {
4611
+ }, $o = {
4613
4612
  startRow: 0,
4614
4613
  startColumn: 0,
4615
4614
  endRow: 0,
4616
4615
  endColumn: 0
4617
- }, $o = {
4616
+ }, Bo = {
4618
4617
  row: 0,
4619
4618
  column: 0
4620
- }, Gr = {
4619
+ }, Wr = {
4621
4620
  id: "",
4622
4621
  sheetOrder: [],
4623
4622
  name: "",
@@ -4626,14 +4625,14 @@ const bt = {
4626
4625
  styles: {},
4627
4626
  sheets: {},
4628
4627
  resources: []
4629
- }, kr = 1e3, Vr = 20, jr = 19, zr = 73, Yr = 46, Kr = 20, oe = {
4628
+ }, Gr = 1e3, kr = 20, Vr = 19, jr = 73, zr = 46, Yr = 20, oe = {
4630
4629
  type: Ze.GRID,
4631
4630
  name: "Sheet1",
4632
4631
  id: "sheet-01",
4633
4632
  tabColor: "",
4634
4633
  hidden: I.FALSE,
4635
- rowCount: kr,
4636
- columnCount: Vr,
4634
+ rowCount: Gr,
4635
+ columnCount: kr,
4637
4636
  zoomRatio: 1,
4638
4637
  freeze: {
4639
4638
  xSplit: 0,
@@ -4643,8 +4642,8 @@ const bt = {
4643
4642
  },
4644
4643
  scrollTop: 0,
4645
4644
  scrollLeft: 0,
4646
- defaultColumnWidth: zr,
4647
- defaultRowHeight: jr,
4645
+ defaultColumnWidth: jr,
4646
+ defaultRowHeight: Vr,
4648
4647
  mergeData: [],
4649
4648
  hideRow: [],
4650
4649
  hideColumn: [],
@@ -4654,11 +4653,11 @@ const bt = {
4654
4653
  status: I.FALSE,
4655
4654
  showGridlines: I.TRUE,
4656
4655
  rowHeader: {
4657
- width: Yr,
4656
+ width: zr,
4658
4657
  hidden: I.FALSE
4659
4658
  },
4660
4659
  columnHeader: {
4661
- height: Kr,
4660
+ height: Yr,
4662
4661
  hidden: I.FALSE
4663
4662
  },
4664
4663
  selections: ["A1"],
@@ -4717,7 +4716,7 @@ const bt = {
4717
4716
  /** *
4718
4717
  * textDirection
4719
4718
  */
4720
- td: xt.UNSPECIFIED,
4719
+ td: Tt.UNSPECIFIED,
4721
4720
  /**
4722
4721
  * color
4723
4722
  */
@@ -4737,7 +4736,7 @@ const bt = {
4737
4736
  /**
4738
4737
  * verticalAlignment
4739
4738
  */
4740
- vt: dt.UNSPECIFIED,
4739
+ vt: _t.UNSPECIFIED,
4741
4740
  /**
4742
4741
  * wrapStrategy
4743
4742
  */
@@ -4751,7 +4750,7 @@ const bt = {
4751
4750
  b: 0,
4752
4751
  l: 0
4753
4752
  }
4754
- }, Xr = {
4753
+ }, Kr = {
4755
4754
  id: "default_slide",
4756
4755
  title: "defaultSlide",
4757
4756
  pageSize: {
@@ -4759,11 +4758,11 @@ const bt = {
4759
4758
  height: 300
4760
4759
  }
4761
4760
  };
4762
- var Qr = /* @__PURE__ */ ((t) => (t.ARRAY_CONVERTOR = "ARRAY_CONVERTOR", t.MATRIX_CONVERTOR = "MATRIX_CONVERTOR", t))(Qr || {});
4763
- class Zr {
4761
+ var Xr = /* @__PURE__ */ ((t) => (t.ARRAY_CONVERTOR = "ARRAY_CONVERTOR", t.MATRIX_CONVERTOR = "MATRIX_CONVERTOR", t))(Xr || {});
4762
+ class Qr {
4764
4763
  constructor(e = {}) {
4765
- _(this, "_styles");
4766
- _(this, "_cacheMap", new Qn(1e5));
4764
+ d(this, "_styles");
4765
+ d(this, "_cacheMap", new Qn(1e5));
4767
4766
  this._styles = e, this._generateCacheMap();
4768
4767
  }
4769
4768
  each(e) {
@@ -4815,10 +4814,10 @@ class Zr {
4815
4814
  return null;
4816
4815
  }
4817
4816
  }
4818
- function Go(t) {
4817
+ function Wo(t) {
4819
4818
  return t && (t.s !== void 0 || t.p !== void 0 || t.v !== void 0) || t.f !== void 0 || t.si !== void 0;
4820
4819
  }
4821
- function ko(t) {
4820
+ function Go(t) {
4822
4821
  if (t.t !== void 0)
4823
4822
  return t.t;
4824
4823
  if (typeof t.v == "string")
@@ -4828,16 +4827,16 @@ function ko(t) {
4828
4827
  if (typeof t.v == "boolean")
4829
4828
  return vt.BOOLEAN;
4830
4829
  }
4831
- function Vo(t) {
4830
+ function ko(t) {
4832
4831
  if (t == null)
4833
4832
  return !0;
4834
4833
  const { v: e, f: s, si: n, p: r, s: i } = t;
4835
4834
  return !(!(e == null || typeof e == "string" && e.length === 0) || s != null && s.length > 0 || n != null && n.length > 0 || r != null);
4836
4835
  }
4837
- var fs = /* @__PURE__ */ ((t) => (t[t.SLIDE = 0] = "SLIDE", t[t.MASTER = 1] = "MASTER", t[t.LAYOUT = 2] = "LAYOUT", t[t.HANDOUT_MASTER = 3] = "HANDOUT_MASTER", t[t.NOTES_MASTER = 4] = "NOTES_MASTER", t))(fs || {}), qr = /* @__PURE__ */ ((t) => (t[t.SHAPE = 0] = "SHAPE", t[t.IMAGE = 1] = "IMAGE", t[t.TEXT = 2] = "TEXT", t[t.SPREADSHEET = 3] = "SPREADSHEET", t[t.DOCUMENT = 4] = "DOCUMENT", t[t.SLIDE = 5] = "SLIDE", t))(qr || {}), Jr = /* @__PURE__ */ ((t) => (t[t.RELATIVE_SLIDE_LINK_UNSPECIFIED = 0] = "RELATIVE_SLIDE_LINK_UNSPECIFIED", t[t.NEXT_SLIDE = 1] = "NEXT_SLIDE", t[t.PREVIOUS_SLIDE = 2] = "PREVIOUS_SLIDE", t[t.FIRST_SLIDE = 3] = "FIRST_SLIDE", t[t.LAST_SLIDE = 4] = "LAST_SLIDE", t))(Jr || {});
4838
- class yr {
4836
+ var fs = /* @__PURE__ */ ((t) => (t[t.SLIDE = 0] = "SLIDE", t[t.MASTER = 1] = "MASTER", t[t.LAYOUT = 2] = "LAYOUT", t[t.HANDOUT_MASTER = 3] = "HANDOUT_MASTER", t[t.NOTES_MASTER = 4] = "NOTES_MASTER", t))(fs || {}), Zr = /* @__PURE__ */ ((t) => (t[t.SHAPE = 0] = "SHAPE", t[t.IMAGE = 1] = "IMAGE", t[t.TEXT = 2] = "TEXT", t[t.SPREADSHEET = 3] = "SPREADSHEET", t[t.DOCUMENT = 4] = "DOCUMENT", t[t.SLIDE = 5] = "SLIDE", t))(Zr || {}), qr = /* @__PURE__ */ ((t) => (t[t.RELATIVE_SLIDE_LINK_UNSPECIFIED = 0] = "RELATIVE_SLIDE_LINK_UNSPECIFIED", t[t.NEXT_SLIDE = 1] = "NEXT_SLIDE", t[t.PREVIOUS_SLIDE = 2] = "PREVIOUS_SLIDE", t[t.FIRST_SLIDE = 3] = "FIRST_SLIDE", t[t.LAST_SLIDE = 4] = "LAST_SLIDE", t))(qr || {});
4837
+ class Jr {
4839
4838
  constructor(e, s) {
4840
- _(this, "_columnData", {});
4839
+ d(this, "_columnData", {});
4841
4840
  this._config = e, this._columnData = s;
4842
4841
  }
4843
4842
  /**
@@ -4927,7 +4926,7 @@ class yr {
4927
4926
  return this._columnData[e] = i, i;
4928
4927
  }
4929
4928
  }
4930
- function wt(t, e) {
4929
+ function St(t, e) {
4931
4930
  for (const s of e) {
4932
4931
  const { ts: n = {} } = s;
4933
4932
  if (n[t] == null)
@@ -4953,8 +4952,8 @@ function wt(t, e) {
4953
4952
  }
4954
4953
  class mt {
4955
4954
  constructor(e, s, n) {
4956
- _(this, "_range");
4957
- _(this, "_worksheet");
4955
+ d(this, "_range");
4956
+ d(this, "_worksheet");
4958
4957
  this._deps = n, this._range = s, this._worksheet = e;
4959
4958
  }
4960
4959
  static foreach(e, s) {
@@ -5153,7 +5152,7 @@ class mt {
5153
5152
  getUnderline() {
5154
5153
  var s, n;
5155
5154
  const { p: e } = this.getValue() ?? {};
5156
- return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ? wt("ul", (n = e.body) == null ? void 0 : n.textRuns) === I.TRUE ? {
5155
+ return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ? St("ul", (n = e.body) == null ? void 0 : n.textRuns) === I.TRUE ? {
5157
5156
  s: I.TRUE
5158
5157
  } : {
5159
5158
  s: I.FALSE
@@ -5177,7 +5176,7 @@ class mt {
5177
5176
  getStrikeThrough() {
5178
5177
  var s, n;
5179
5178
  const { p: e } = this.getValue() ?? {};
5180
- return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ? wt("st", (n = e.body) == null ? void 0 : n.textRuns) === I.TRUE ? {
5179
+ return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ? St("st", (n = e.body) == null ? void 0 : n.textRuns) === I.TRUE ? {
5181
5180
  s: I.TRUE
5182
5181
  } : {
5183
5182
  s: I.FALSE
@@ -5216,7 +5215,7 @@ class mt {
5216
5215
  getFontStyle() {
5217
5216
  var s, n;
5218
5217
  const { p: e } = this.getValue() ?? {};
5219
- return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ? wt("it", (n = e.body) == null ? void 0 : n.textRuns) === I.TRUE ? te.ITALIC : te.NORMAL : this.getFontStyles()[0][0];
5218
+ return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ? St("it", (n = e.body) == null ? void 0 : n.textRuns) === I.TRUE ? te.ITALIC : te.NORMAL : this.getFontStyles()[0][0];
5220
5219
  }
5221
5220
  /**
5222
5221
  * Returns the font styles of the cells in the range.
@@ -5233,7 +5232,7 @@ class mt {
5233
5232
  getFontWeight() {
5234
5233
  var s, n;
5235
5234
  const { p: e } = this.getValue() ?? {};
5236
- return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ? wt("bl", (n = e.body) == null ? void 0 : n.textRuns) === I.TRUE ? ee.BOLD : ee.NORMAL : this.getFontWeights()[0][0];
5235
+ return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ? St("bl", (n = e.body) == null ? void 0 : n.textRuns) === I.TRUE ? ee.BOLD : ee.NORMAL : this.getFontWeights()[0][0];
5237
5236
  }
5238
5237
  /**
5239
5238
  * Returns the font weights of the cells in the range.
@@ -5424,9 +5423,9 @@ class mt {
5424
5423
  );
5425
5424
  }
5426
5425
  }
5427
- class ti {
5426
+ class yr {
5428
5427
  constructor(e, s) {
5429
- _(this, "_rowData");
5428
+ d(this, "_rowData");
5430
5429
  this._config = e, this._rowData = s;
5431
5430
  }
5432
5431
  /**
@@ -5504,13 +5503,13 @@ class ti {
5504
5503
  return j(this._rowData);
5505
5504
  }
5506
5505
  }
5507
- class ei extends T {
5506
+ class ti extends P {
5508
5507
  constructor() {
5509
5508
  super(...arguments);
5510
- _(this, "_cellContentInterceptors", []);
5511
- _(this, "_rowFilteredInterceptors", []);
5512
- _(this, "_rowVisibleInterceptors", []);
5513
- _(this, "_colVisibleInterceptors", []);
5509
+ d(this, "_cellContentInterceptors", []);
5510
+ d(this, "_rowFilteredInterceptors", []);
5511
+ d(this, "_rowVisibleInterceptors", []);
5512
+ d(this, "_colVisibleInterceptors", []);
5514
5513
  }
5515
5514
  dispose() {
5516
5515
  super.dispose(), this._cellContentInterceptors.length = 0, this._rowFilteredInterceptors.length = 0, this._rowVisibleInterceptors.length = 0, this._colVisibleInterceptors.length = 0;
@@ -5526,33 +5525,33 @@ class ei extends T {
5526
5525
  registerCellContentInterceptor(s) {
5527
5526
  if (this._cellContentInterceptors.includes(s))
5528
5527
  throw new Error("[SheetViewModel]: Interceptor already registered.");
5529
- return this._cellContentInterceptors.push(s), w(() => it(this._cellContentInterceptors, s));
5528
+ return this._cellContentInterceptors.push(s), S(() => it(this._cellContentInterceptors, s));
5530
5529
  }
5531
5530
  registerRowFilteredInterceptor(s) {
5532
5531
  if (this._rowFilteredInterceptors.includes(s))
5533
5532
  throw new Error("[SheetViewModel]: Interceptor already registered.");
5534
- return this._rowFilteredInterceptors.push(s), w(() => it(this._rowFilteredInterceptors, s));
5533
+ return this._rowFilteredInterceptors.push(s), S(() => it(this._rowFilteredInterceptors, s));
5535
5534
  }
5536
5535
  registerRowVisibleInterceptor(s) {
5537
5536
  if (this._rowVisibleInterceptors.includes(s))
5538
5537
  throw new Error("[SheetViewModel]: Interceptor already registered.");
5539
- return this._rowVisibleInterceptors.push(s), w(() => it(this._rowVisibleInterceptors, s));
5538
+ return this._rowVisibleInterceptors.push(s), S(() => it(this._rowVisibleInterceptors, s));
5540
5539
  }
5541
5540
  registerColVisibleInterceptor(s) {
5542
5541
  if (this._colVisibleInterceptors.includes(s))
5543
5542
  throw new Error("[SheetViewModel]: Interceptor already registered.");
5544
- return this._colVisibleInterceptors.push(s), w(() => it(this._colVisibleInterceptors, s));
5543
+ return this._colVisibleInterceptors.push(s), S(() => it(this._colVisibleInterceptors, s));
5545
5544
  }
5546
5545
  }
5547
- class pt {
5546
+ class Ht {
5548
5547
  constructor(e, s) {
5549
- _(this, "_initialized");
5550
- _(this, "_sheetId");
5551
- _(this, "_snapshot");
5552
- _(this, "_cellData");
5553
- _(this, "_rowManager");
5554
- _(this, "_columnManager");
5555
- _(this, "_viewModel");
5548
+ d(this, "_initialized");
5549
+ d(this, "_sheetId");
5550
+ d(this, "_snapshot");
5551
+ d(this, "_cellData");
5552
+ d(this, "_rowManager");
5553
+ d(this, "_columnManager");
5554
+ d(this, "_viewModel");
5556
5555
  this._styles = s;
5557
5556
  const n = {
5558
5557
  ...oe,
@@ -5577,7 +5576,7 @@ class pt {
5577
5576
  };
5578
5577
  this._snapshot = n;
5579
5578
  const { columnData: r, rowData: i, cellData: o } = this._snapshot;
5580
- this._sheetId = this._snapshot.id ?? m.generateRandomId(6), this._initialized = !1, this._cellData = new X(o), this._rowManager = new ti(this._snapshot, i), this._columnManager = new yr(this._snapshot, r), this._viewModel = new ei();
5579
+ this._sheetId = this._snapshot.id ?? m.generateRandomId(6), this._initialized = !1, this._cellData = new X(o), this._rowManager = new yr(this._snapshot, i), this._columnManager = new Jr(this._snapshot, r), this._viewModel = new ti();
5581
5580
  }
5582
5581
  /**
5583
5582
  * @internal
@@ -5631,7 +5630,7 @@ class pt {
5631
5630
  */
5632
5631
  clone() {
5633
5632
  const { _snapshot: e } = this, s = m.deepClone(e);
5634
- return new pt(s, this._styles);
5633
+ return new Ht(s, this._styles);
5635
5634
  }
5636
5635
  getMergeData() {
5637
5636
  return this._snapshot.mergeData;
@@ -5676,17 +5675,17 @@ class pt {
5676
5675
  const i = this.getCellMatrix(), o = this._snapshot.mergeData.filter(
5677
5676
  (c) => gt.intersects({ startRow: e, startColumn: s, endRow: n, endColumn: r }, c)
5678
5677
  ), a = new X();
5679
- return He(e, n, s, r).forEach((c, l) => {
5678
+ return pe(e, n, s, r).forEach((c, l) => {
5680
5679
  const u = i.getValue(c, l);
5681
5680
  u && a.setValue(c, l, u);
5682
5681
  }), o.forEach((c) => {
5683
5682
  const { startColumn: l, startRow: u, endColumn: h, endRow: f } = c;
5684
- He(u, f, l, h).forEach((d, g) => {
5685
- d === u && g === l && a.setValue(d, g, {
5686
- ...i.getValue(d, g),
5683
+ pe(u, f, l, h).forEach((_, g) => {
5684
+ _ === u && g === l && a.setValue(_, g, {
5685
+ ...i.getValue(_, g),
5687
5686
  rowSpan: f - u + 1,
5688
5687
  colSpan: h - l + 1
5689
- }), (d !== u || g !== l) && a.realDeleteValue(d, g);
5688
+ }), (_ !== u || g !== l) && a.realDeleteValue(_, g);
5690
5689
  });
5691
5690
  }), a;
5692
5691
  }
@@ -5867,50 +5866,50 @@ class pt {
5867
5866
  return e && (e.v !== void 0 || e.f !== void 0 || e.p !== void 0);
5868
5867
  }
5869
5868
  }
5870
- var si = Object.defineProperty, ni = Object.getOwnPropertyDescriptor, ri = (t, e, s, n) => {
5871
- for (var r = n > 1 ? void 0 : n ? ni(e, s) : e, i = t.length - 1, o; i >= 0; i--)
5869
+ var ei = Object.defineProperty, si = Object.getOwnPropertyDescriptor, ni = (t, e, s, n) => {
5870
+ for (var r = n > 1 ? void 0 : n ? si(e, s) : e, i = t.length - 1, o; i >= 0; i--)
5872
5871
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
5873
- return n && r && si(e, s, r), r;
5874
- }, ii = (t, e) => (s, n) => e(s, n, t);
5875
- function jo(t, e) {
5872
+ return n && r && ei(e, s, r), r;
5873
+ }, ri = (t, e) => (s, n) => e(s, n, t);
5874
+ function Vo(t, e) {
5876
5875
  return `${t.getUnitId()}|${e.getSheetId()}`;
5877
5876
  }
5878
- let Bt = class extends T {
5877
+ let $t = class extends P {
5879
5878
  constructor(e = {}, s) {
5880
5879
  super();
5881
- _(this, "_sheetCreated$", new M());
5882
- _(this, "sheetCreated$", this._sheetCreated$.asObservable());
5883
- _(this, "_sheetDisposed$", new M());
5884
- _(this, "sheetDisposed$", this._sheetDisposed$.asObservable());
5885
- _(this, "_activeSheet$", new K(null));
5886
- _(this, "activeSheet$", this._activeSheet$.asObservable());
5880
+ d(this, "_sheetCreated$", new D());
5881
+ d(this, "sheetCreated$", this._sheetCreated$.asObservable());
5882
+ d(this, "_sheetDisposed$", new D());
5883
+ d(this, "sheetDisposed$", this._sheetDisposed$.asObservable());
5884
+ d(this, "_activeSheet$", new K(null));
5885
+ d(this, "activeSheet$", this._activeSheet$.asObservable());
5887
5886
  /**
5888
5887
  * sheets list
5889
5888
  * @private
5890
5889
  */
5891
- _(this, "_worksheets");
5890
+ d(this, "_worksheets");
5892
5891
  /**
5893
5892
  * Common style
5894
5893
  * @private
5895
5894
  */
5896
- _(this, "_styles");
5895
+ d(this, "_styles");
5897
5896
  /**
5898
5897
  * number format
5899
5898
  * @private
5900
5899
  */
5901
5900
  // private _formatManage: FormatManager;
5902
- _(this, "_snapshot");
5903
- _(this, "_unitId");
5904
- _(this, "_count");
5905
- this._log = s, this._snapshot = m.commonExtend(Gr, e);
5901
+ d(this, "_snapshot");
5902
+ d(this, "_unitId");
5903
+ d(this, "_count");
5904
+ this._log = s, this._snapshot = m.commonExtend(Wr, e);
5906
5905
  const { styles: n } = this._snapshot;
5907
- (this._snapshot.id == null || this._snapshot.id.length === 0) && (this._snapshot.id = m.generateRandomId(6)), this._unitId = this._snapshot.id, this._styles = new Zr(n), this._count = 1, this._worksheets = /* @__PURE__ */ new Map(), this._getDefaultWorkSheet();
5906
+ (this._snapshot.id == null || this._snapshot.id.length === 0) && (this._snapshot.id = m.generateRandomId(6)), this._unitId = this._snapshot.id, this._styles = new Qr(n), this._count = 1, this._worksheets = /* @__PURE__ */ new Map(), this._getDefaultWorkSheet();
5908
5907
  }
5909
5908
  dispose() {
5910
5909
  super.dispose(), this._sheetCreated$.complete(), this._sheetDisposed$.complete(), this._activeSheet$.complete();
5911
5910
  }
5912
5911
  save() {
5913
- return this._snapshot;
5912
+ return m.deepClone(this._snapshot);
5914
5913
  }
5915
5914
  static isIRangeType(e) {
5916
5915
  return typeof e == "string" || "startRow" in e || "row" in e;
@@ -5941,7 +5940,7 @@ let Bt = class extends T {
5941
5940
  if (r[e])
5942
5941
  return !1;
5943
5942
  r[e] = n, i.splice(s, 0, e);
5944
- const o = new pt(n, this._styles);
5943
+ const o = new Ht(n, this._styles);
5945
5944
  return this._worksheets.set(e, o), this._sheetCreated$.next(o), !0;
5946
5945
  }
5947
5946
  getParentRenderUnitId() {
@@ -6070,7 +6069,7 @@ let Bt = class extends T {
6070
6069
  }
6071
6070
  };
6072
6071
  }
6073
- return typeof e != "string" && "startRow" in e ? { sheetId: "", range: e } : bt;
6072
+ return typeof e != "string" && "startRow" in e ? { sheetId: "", range: e } : wt;
6074
6073
  }
6075
6074
  load(e) {
6076
6075
  this._snapshot = e;
@@ -6091,7 +6090,7 @@ let Bt = class extends T {
6091
6090
  * @returns
6092
6091
  */
6093
6092
  _getCellRange(e) {
6094
- var l, u, h, f, d;
6093
+ var l, u, h, f, _;
6095
6094
  let s = "", n = "";
6096
6095
  if (e.indexOf("!") > -1) {
6097
6096
  const g = e.split("!");
@@ -6108,12 +6107,12 @@ let Bt = class extends T {
6108
6107
  startColumn: E,
6109
6108
  endColumn: E
6110
6109
  }
6111
- } : bt;
6110
+ } : wt;
6112
6111
  }
6113
6112
  n = n.split(":");
6114
6113
  const r = [0, 0], i = [0, 0], o = ((l = this.getSheetBySheetName(s)) == null ? void 0 : l.getMaxRows()) || ((u = this.getActiveSheet()) == null ? void 0 : u.getMaxRows()), a = ((h = this.getSheetBySheetName(s)) == null ? void 0 : h.getMaxColumns()) || ((f = this.getActiveSheet()) == null ? void 0 : f.getMaxColumns());
6115
- return r[0] = parseInt(n[0].replace(/[^0-9]/g, ""), 10) - 1, r[1] = parseInt(n[1].replace(/[^0-9]/g, ""), 10) - 1, Number.isNaN(r[0]) && (r[0] = 0), Number.isNaN(r[1]) && (r[1] = o), r[0] > r[1] || (i[0] = m.ABCatNum(n[0].replace(/[^A-Za-z]/g, "")), i[1] = m.ABCatNum(n[1].replace(/[^A-Za-z]/g, "")), Number.isNaN(i[0]) && (i[0] = 0), Number.isNaN(i[1]) && (i[1] = a), i[0] > i[1]) ? bt : {
6116
- sheetId: ((d = this.getSheetBySheetName(s)) == null ? void 0 : d.getSheetId()) || "",
6114
+ return r[0] = parseInt(n[0].replace(/[^0-9]/g, ""), 10) - 1, r[1] = parseInt(n[1].replace(/[^0-9]/g, ""), 10) - 1, Number.isNaN(r[0]) && (r[0] = 0), Number.isNaN(r[1]) && (r[1] = o), r[0] > r[1] || (i[0] = m.ABCatNum(n[0].replace(/[^A-Za-z]/g, "")), i[1] = m.ABCatNum(n[1].replace(/[^A-Za-z]/g, "")), Number.isNaN(i[0]) && (i[0] = 0), Number.isNaN(i[1]) && (i[1] = a), i[0] > i[1]) ? wt : {
6115
+ sheetId: ((_ = this.getSheetBySheetName(s)) == null ? void 0 : _.getSheetId()) || "",
6117
6116
  range: {
6118
6117
  startRow: r[0],
6119
6118
  endRow: r[1],
@@ -6134,19 +6133,19 @@ let Bt = class extends T {
6134
6133
  for (const i in n) {
6135
6134
  const o = n[i], { name: a } = o;
6136
6135
  o.name = this.uniqueSheetName(a), o.name !== a && this._log.warn(`The worksheet name ${a} is duplicated, we change it to ${o.name}`);
6137
- const c = new pt(o, this._styles);
6136
+ const c = new Ht(o, this._styles);
6138
6137
  s.set(i, c), r.includes(i) || r.push(i);
6139
6138
  }
6140
6139
  }
6141
6140
  };
6142
- Bt = ri([
6143
- ii(1, ct)
6144
- ], Bt);
6141
+ $t = ni([
6142
+ ri(1, ct)
6143
+ ], $t);
6145
6144
  class gs {
6146
6145
  constructor(e) {
6147
- _(this, "_snapshot");
6148
- _(this, "_unitId");
6149
- this._snapshot = { ...Xr, ...e }, this._unitId = this._snapshot.id ?? m.generateRandomId(6);
6146
+ d(this, "_snapshot");
6147
+ d(this, "_unitId");
6148
+ this._snapshot = { ...Kr, ...e }, this._unitId = this._snapshot.id ?? m.generateRandomId(6);
6150
6149
  }
6151
6150
  getSnapshot() {
6152
6151
  return this._snapshot;
@@ -6191,40 +6190,40 @@ class gs {
6191
6190
  };
6192
6191
  }
6193
6192
  }
6194
- const ae = "FOCUSING_SHEET", pe = "FOCUSING_DOC", Be = "FOCUSING_SLIDE", zo = "FOCUSING_EDITOR_BUT_HIDDEN", oi = "FOCUSING_EDITOR", Yo = "FOCUSING_EDITOR_INPUT_FORMULA", ai = "FOCUSING_FORMULA_EDITOR";
6195
- var li = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, ci = (t, e, s, n) => {
6196
- for (var r = n > 1 ? void 0 : n ? ui(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6193
+ const ae = "FOCUSING_SHEET", He = "FOCUSING_DOC", $e = "FOCUSING_SLIDE", jo = "FOCUSING_EDITOR_BUT_HIDDEN", ii = "FOCUSING_EDITOR", zo = "FOCUSING_EDITOR_INPUT_FORMULA", oi = "FOCUSING_FORMULA_EDITOR";
6194
+ var ai = Object.defineProperty, li = Object.getOwnPropertyDescriptor, ui = (t, e, s, n) => {
6195
+ for (var r = n > 1 ? void 0 : n ? li(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6197
6196
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6198
- return n && r && li(e, s, r), r;
6199
- }, hi = (t, e) => (s, n) => e(s, n, t), _i = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.DOC = 1] = "DOC", t[t.SHEET = 2] = "SHEET", t[t.SLIDE = 3] = "SLIDE", t))(_i || {});
6197
+ return n && r && ai(e, s, r), r;
6198
+ }, ci = (t, e) => (s, n) => e(s, n, t), hi = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.DOC = 1] = "DOC", t[t.SHEET = 2] = "SHEET", t[t.SLIDE = 3] = "SLIDE", t))(hi || {});
6200
6199
  const Ot = G("univer.current");
6201
- let le = class extends T {
6200
+ let le = class extends P {
6202
6201
  constructor(e, s) {
6203
6202
  super();
6204
- _(this, "_focused", null);
6205
- _(this, "_focused$", new K(null));
6206
- _(this, "focused$", this._focused$.asObservable());
6207
- _(this, "_currentSheet$", new K(null));
6208
- _(this, "currentSheet$", this._currentSheet$.asObservable());
6209
- _(this, "_currentDoc$", new K(null));
6210
- _(this, "currentDoc$", this._currentDoc$.asObservable());
6211
- _(this, "_currentSlide$", new K(null));
6212
- _(this, "currentSlide$", this._currentSlide$.asObservable());
6213
- _(this, "_sheetAdded$", new M());
6214
- _(this, "sheetAdded$", this._sheetAdded$.asObservable());
6215
- _(this, "_docAdded$", new M());
6216
- _(this, "docAdded$", this._docAdded$.asObservable());
6217
- _(this, "_slideAdded$", new M());
6218
- _(this, "slideAdded$", this._slideAdded$.asObservable());
6219
- _(this, "_sheetDisposed$", new M());
6220
- _(this, "sheetDisposed$", this._sheetDisposed$.asObservable());
6221
- _(this, "_docDisposed$", new M());
6222
- _(this, "docDisposed$", this._docDisposed$.asObservable());
6223
- _(this, "_slideDisposed$", new M());
6224
- _(this, "slideDisposed$", this._slideDisposed$.asObservable());
6225
- _(this, "_sheets", []);
6226
- _(this, "_docs", []);
6227
- _(this, "_slides", []);
6203
+ d(this, "_focused", null);
6204
+ d(this, "_focused$", new K(null));
6205
+ d(this, "focused$", this._focused$.asObservable());
6206
+ d(this, "_currentSheet$", new K(null));
6207
+ d(this, "currentSheet$", this._currentSheet$.asObservable());
6208
+ d(this, "_currentDoc$", new K(null));
6209
+ d(this, "currentDoc$", this._currentDoc$.asObservable());
6210
+ d(this, "_currentSlide$", new K(null));
6211
+ d(this, "currentSlide$", this._currentSlide$.asObservable());
6212
+ d(this, "_sheetAdded$", new D());
6213
+ d(this, "sheetAdded$", this._sheetAdded$.asObservable());
6214
+ d(this, "_docAdded$", new D());
6215
+ d(this, "docAdded$", this._docAdded$.asObservable());
6216
+ d(this, "_slideAdded$", new D());
6217
+ d(this, "slideAdded$", this._slideAdded$.asObservable());
6218
+ d(this, "_sheetDisposed$", new D());
6219
+ d(this, "sheetDisposed$", this._sheetDisposed$.asObservable());
6220
+ d(this, "_docDisposed$", new D());
6221
+ d(this, "docDisposed$", this._docDisposed$.asObservable());
6222
+ d(this, "_slideDisposed$", new D());
6223
+ d(this, "slideDisposed$", this._slideDisposed$.asObservable());
6224
+ d(this, "_sheets", []);
6225
+ d(this, "_docs", []);
6226
+ d(this, "_slides", []);
6228
6227
  this._handler = e, this._contextService = s;
6229
6228
  }
6230
6229
  dispose() {
@@ -6302,7 +6301,7 @@ let le = class extends T {
6302
6301
  return e;
6303
6302
  }
6304
6303
  focusUniverInstance(e) {
6305
- e && (this._focused = this.getUniverSheetInstance(e) || this.getUniverDocInstance(e) || this.getUniverSlideInstance(e) || null), this._focused$.next(e), [pe, ae, Be].forEach((s) => this._contextService.setContextValue(s, !1)), this._focused instanceof Bt ? this._contextService.setContextValue(ae, !0) : this._focused instanceof Rt ? this._contextService.setContextValue(pe, !0) : this._focused instanceof gs && this._contextService.setContextValue(Be, !0);
6304
+ e && (this._focused = this.getUniverSheetInstance(e) || this.getUniverDocInstance(e) || this.getUniverSlideInstance(e) || null), this._focused$.next(e), [He, ae, $e].forEach((s) => this._contextService.setContextValue(s, !1)), this._focused instanceof $t ? this._contextService.setContextValue(ae, !0) : this._focused instanceof Rt ? this._contextService.setContextValue(He, !0) : this._focused instanceof gs && this._contextService.setContextValue($e, !0);
6306
6305
  }
6307
6306
  getFocusedUniverInstance() {
6308
6307
  return this._focused;
@@ -6335,37 +6334,37 @@ let le = class extends T {
6335
6334
  return !1;
6336
6335
  }
6337
6336
  };
6338
- le = ci([
6339
- hi(1, Et)
6337
+ le = ui([
6338
+ ci(1, Et)
6340
6339
  ], le);
6341
- var b = /* @__PURE__ */ ((t) => (t[t.Starting = 0] = "Starting", t[t.Ready = 1] = "Ready", t[t.Rendered = 2] = "Rendered", t[t.Steady = 3] = "Steady", t))(b || {});
6342
- const We = {
6340
+ var w = /* @__PURE__ */ ((t) => (t[t.Starting = 0] = "Starting", t[t.Ready = 1] = "Ready", t[t.Rendered = 2] = "Rendered", t[t.Steady = 3] = "Steady", t))(w || {});
6341
+ const Be = {
6343
6342
  0: "Starting",
6344
6343
  1: "Ready",
6345
6344
  2: "Rendered",
6346
6345
  3: "Steady"
6347
- }, Mt = /* @__PURE__ */ new Map();
6346
+ }, Dt = /* @__PURE__ */ new Map();
6348
6347
  function Es(t, e) {
6349
6348
  return function(r) {
6350
6349
  Rs(t, e);
6351
6350
  };
6352
6351
  }
6353
6352
  function Rs(t, e) {
6354
- Mt.has(t) || Mt.set(t, []), Mt.get(t).push(e);
6353
+ Dt.has(t) || Dt.set(t, []), Dt.get(t).push(e);
6355
6354
  }
6356
- var di = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, ms = (t, e, s, n) => {
6357
- for (var r = n > 1 ? void 0 : n ? fi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6355
+ var di = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, ms = (t, e, s, n) => {
6356
+ for (var r = n > 1 ? void 0 : n ? _i(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6358
6357
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6359
6358
  return n && r && di(e, s, r), r;
6360
6359
  }, ue = (t, e) => (s, n) => e(s, n, t);
6361
- let V = class extends T {
6360
+ let V = class extends P {
6362
6361
  constructor(e) {
6363
6362
  super();
6364
- _(this, "_lifecycle$", new K(b.Starting));
6365
- _(this, "lifecycle$", this._lifecycle$.asObservable());
6363
+ d(this, "_lifecycle$", new K(w.Starting));
6364
+ d(this, "lifecycle$", this._lifecycle$.asObservable());
6366
6365
  this._logService = e, this._logService.log(
6367
6366
  "[LifecycleService]",
6368
- `lifecycle progressed to "${We[b.Starting]}".`
6367
+ `lifecycle progressed to "${Be[w.Starting]}".`
6369
6368
  );
6370
6369
  }
6371
6370
  get stage() {
@@ -6374,30 +6373,30 @@ let V = class extends T {
6374
6373
  set stage(e) {
6375
6374
  if (e < this.stage)
6376
6375
  throw new Error("[LifecycleService]: lifecycle stage cannot go backward!");
6377
- e !== this.stage && (this._logService.log("[LifecycleService]", `lifecycle progressed to "${We[e]}".`), this._lifecycle$.next(e));
6376
+ e !== this.stage && (this._logService.log("[LifecycleService]", `lifecycle progressed to "${Be[e]}".`), this._lifecycle$.next(e));
6378
6377
  }
6379
6378
  subscribeWithPrevious() {
6380
- return new Ss((e) => (this.stage === b.Starting || (this.stage === b.Ready ? e.next(b.Starting) : this.stage === b.Rendered ? (e.next(b.Starting), e.next(b.Ready)) : (e.next(b.Starting), e.next(b.Ready), e.next(b.Rendered))), this._lifecycle$.subscribe(e)));
6379
+ return new bs((e) => (this.stage === w.Starting || (this.stage === w.Ready ? e.next(w.Starting) : this.stage === w.Rendered ? (e.next(w.Starting), e.next(w.Ready)) : (e.next(w.Starting), e.next(w.Ready), e.next(w.Rendered))), this._lifecycle$.subscribe(e)));
6381
6380
  }
6382
6381
  };
6383
6382
  V = ms([
6384
6383
  ue(0, ct)
6385
6384
  ], V);
6386
- let st = class extends T {
6385
+ let st = class extends P {
6387
6386
  constructor(e, s) {
6388
6387
  super();
6389
- _(this, "_started", !1);
6388
+ d(this, "_started", !1);
6390
6389
  this._lifecycleService = e, this._injector = s;
6391
6390
  }
6392
6391
  start() {
6393
6392
  this._started || (this._started = !0, this.disposeWithMe(
6394
- w(
6393
+ S(
6395
6394
  this._lifecycleService.subscribeWithPrevious().subscribe((e) => this.initModulesOnStage(e))
6396
6395
  )
6397
6396
  ));
6398
6397
  }
6399
6398
  initModulesOnStage(e) {
6400
- const s = Mt.get(e);
6399
+ const s = Dt.get(e);
6401
6400
  s == null || s.forEach((n) => {
6402
6401
  this._injector.has(n) && this._injector.get(n);
6403
6402
  });
@@ -6407,7 +6406,7 @@ st = ms([
6407
6406
  ue(0, U(V)),
6408
6407
  ue(1, U(ot))
6409
6408
  ], st);
6410
- function gi(t, e) {
6409
+ function fi(t, e) {
6411
6410
  if (t)
6412
6411
  try {
6413
6412
  return t[e] ? t[e] : e.split(".").reduce((s, n) => s[n], t);
@@ -6415,18 +6414,18 @@ function gi(t, e) {
6415
6414
  return console.warn("Key %s not found", e), e;
6416
6415
  }
6417
6416
  }
6418
- class Lt extends T {
6417
+ class Lt extends P {
6419
6418
  constructor() {
6420
6419
  super();
6421
- _(this, "currentLocale", Re.ZH_CN);
6422
- _(this, "locales", null);
6423
- _(this, "localeChanged$", new M());
6424
- _(this, "t", (s) => {
6420
+ d(this, "currentLocale", Re.ZH_CN);
6421
+ d(this, "locales", null);
6422
+ d(this, "localeChanged$", new D());
6423
+ d(this, "t", (s) => {
6425
6424
  if (!this.locales)
6426
6425
  throw new Error("Locale not initialized");
6427
- return gi(this.locales[this.currentLocale], s) ?? s;
6426
+ return fi(this.locales[this.currentLocale], s) ?? s;
6428
6427
  });
6429
- this.disposeWithMe(w(() => this.localeChanged$.complete()));
6428
+ this.disposeWithMe(S(() => this.localeChanged$.complete()));
6430
6429
  }
6431
6430
  /**
6432
6431
  * Load more locales after init
@@ -6449,30 +6448,30 @@ class Lt extends T {
6449
6448
  return this.currentLocale;
6450
6449
  }
6451
6450
  }
6452
- const Os = G("resource-manager-service"), Ei = G("ResourcePersistenceService");
6453
- Rs(b.Ready, Ei);
6454
- var Ri = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, Oi = (t, e, s, n) => {
6455
- for (var r = n > 1 ? void 0 : n ? mi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6451
+ const Os = G("resource-manager-service"), gi = G("ResourcePersistenceService");
6452
+ Rs(w.Ready, gi);
6453
+ var Ei = Object.defineProperty, Ri = Object.getOwnPropertyDescriptor, mi = (t, e, s, n) => {
6454
+ for (var r = n > 1 ? void 0 : n ? Ri(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6456
6455
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6457
- return n && r && Ri(e, s, r), r;
6458
- }, $e = (t, e) => (s, n) => e(s, n, t);
6456
+ return n && r && Ei(e, s, r), r;
6457
+ }, We = (t, e) => (s, n) => e(s, n, t);
6459
6458
  const As = G("univer.permission-service"), Ge = "PERMISSION";
6460
- let Ut = class extends T {
6459
+ let Ut = class extends P {
6461
6460
  constructor(e, s) {
6462
6461
  super();
6463
- _(this, "_permissionPointMap", /* @__PURE__ */ new Map());
6464
- _(this, "deletePermissionPoint", (e, s) => {
6462
+ d(this, "_permissionPointMap", /* @__PURE__ */ new Map());
6463
+ d(this, "deletePermissionPoint", (e, s) => {
6465
6464
  const n = this._permissionPointMap.get(e);
6466
6465
  if (n) {
6467
6466
  const r = n.get(s);
6468
6467
  r && (r.complete(), this._permissionPointMap.delete(s));
6469
6468
  }
6470
6469
  });
6471
- _(this, "addPermissionPoint", (e, s) => {
6470
+ d(this, "addPermissionPoint", (e, s) => {
6472
6471
  const n = this._permissionPointMap.get(e) || /* @__PURE__ */ new Map();
6473
6472
  return n.has(s.id) ? !1 : (n.set(s.id, new K(s)), this._permissionPointMap.set(e, n), !0);
6474
6473
  });
6475
- _(this, "updatePermissionPoint", (e, s, n) => {
6474
+ d(this, "updatePermissionPoint", (e, s, n) => {
6476
6475
  const r = this._permissionPointMap.get(e);
6477
6476
  if (!r)
6478
6477
  return;
@@ -6482,7 +6481,7 @@ let Ut = class extends T {
6482
6481
  o.value = n, o.status = es.DONE, i.next(o);
6483
6482
  }
6484
6483
  });
6485
- _(this, "getPermissionPoint", (e, s) => {
6484
+ d(this, "getPermissionPoint", (e, s) => {
6486
6485
  const n = this._permissionPointMap.get(e);
6487
6486
  if (!n)
6488
6487
  return;
@@ -6494,7 +6493,7 @@ let Ut = class extends T {
6494
6493
  }
6495
6494
  _init() {
6496
6495
  this.disposeWithMe(
6497
- w(
6496
+ S(
6498
6497
  this._univerInstanceService.sheetAdded$.subscribe((e) => {
6499
6498
  this._resourceManagerService.registerPluginResource(e.getUnitId(), Ge, {
6500
6499
  onChange: (s, n) => {
@@ -6508,7 +6507,7 @@ let Ut = class extends T {
6508
6507
  })
6509
6508
  )
6510
6509
  ), this.disposeWithMe(
6511
- w(
6510
+ S(
6512
6511
  this._univerInstanceService.sheetDisposed$.subscribe((e) => {
6513
6512
  this._resourceManagerService.disposePluginResource(e.getUnitId(), Ge);
6514
6513
  })
@@ -6533,9 +6532,9 @@ let Ut = class extends T {
6533
6532
  throw new Error(`${i} permissionPoint is not exist`);
6534
6533
  return o.asObservable();
6535
6534
  });
6536
- return bs(r).pipe(
6535
+ return ws(r).pipe(
6537
6536
  // Check that all permissions exist
6538
- ws((i) => (i.every((o) => this._permissionPointMap.get(o.id)), i))
6537
+ Ss((i) => (i.every((o) => this._permissionPointMap.get(o.id)), i))
6539
6538
  );
6540
6539
  }
6541
6540
  composePermission(e, s) {
@@ -6548,27 +6547,27 @@ let Ut = class extends T {
6548
6547
  });
6549
6548
  }
6550
6549
  };
6551
- Ut = Oi([
6552
- Es(b.Starting, Ut),
6553
- $e(0, U(Os)),
6554
- $e(1, U(Ot))
6550
+ Ut = mi([
6551
+ Es(w.Starting, Ut),
6552
+ We(0, U(Os)),
6553
+ We(1, U(Ot))
6555
6554
  ], Ut);
6556
- const Ai = "univer.editable";
6555
+ const Oi = "univer.editable";
6557
6556
  class Kt extends Jn {
6558
6557
  constructor(s) {
6559
6558
  super();
6560
- _(this, "id", Ai);
6561
- _(this, "value", !0);
6562
- _(this, "unitID");
6559
+ d(this, "id", Oi);
6560
+ d(this, "value", !0);
6561
+ d(this, "unitID");
6563
6562
  this.unitID = s;
6564
6563
  }
6565
6564
  }
6566
- var Ii = Object.defineProperty, Ci = Object.getOwnPropertyDescriptor, Ni = (t, e, s, n) => {
6567
- for (var r = n > 1 ? void 0 : n ? Ci(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6565
+ var Ai = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, Ci = (t, e, s, n) => {
6566
+ for (var r = n > 1 ? void 0 : n ? Ii(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6568
6567
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6569
- return n && r && Ii(e, s, r), r;
6568
+ return n && r && Ai(e, s, r), r;
6570
6569
  }, ke = (t, e) => (s, n) => e(s, n, t);
6571
- let Tt = class extends T {
6570
+ let Pt = class extends P {
6572
6571
  constructor(t, e) {
6573
6572
  super(), this._permissionService = t, this._univerInstanceService = e, this._init();
6574
6573
  }
@@ -6589,17 +6588,17 @@ let Tt = class extends T {
6589
6588
  this._permissionService.updatePermissionPoint(t, s.id, e);
6590
6589
  }
6591
6590
  };
6592
- Tt = Ni([
6593
- Es(b.Starting, Tt),
6591
+ Pt = Ci([
6592
+ Es(w.Starting, Pt),
6594
6593
  ke(0, U(As)),
6595
6594
  ke(1, U(Ot))
6596
- ], Tt);
6597
- class Si extends T {
6595
+ ], Pt);
6596
+ class Ni extends P {
6598
6597
  constructor() {
6599
6598
  super(...arguments);
6600
- _(this, "_resourceMap", /* @__PURE__ */ new Map());
6601
- _(this, "_register$", new M());
6602
- _(this, "register$", this._register$.asObservable());
6599
+ d(this, "_resourceMap", /* @__PURE__ */ new Map());
6600
+ d(this, "_register$", new D());
6601
+ d(this, "register$", this._register$.asObservable());
6603
6602
  }
6604
6603
  getAllResource(s) {
6605
6604
  const n = this._resourceMap.get(s);
@@ -6624,7 +6623,7 @@ class Si extends T {
6624
6623
  const i = this._resourceMap.get(s) || /* @__PURE__ */ new Map();
6625
6624
  if (i.has(n))
6626
6625
  throw new Error("the pluginName is registered");
6627
- return i.set(n, r), this._resourceMap.set(s, i), this._register$.next({ unitID: s, resourceName: n, hook: r }), w(() => i.delete(n));
6626
+ return i.set(n, r), this._resourceMap.set(s, i), this._register$.next({ unitID: s, resourceName: n, hook: r }), S(() => i.delete(n));
6628
6627
  }
6629
6628
  disposePluginResource(s, n) {
6630
6629
  const r = this._resourceMap.get(s);
@@ -6634,13 +6633,13 @@ class Si extends T {
6634
6633
  this._register$.complete(), this._resourceMap.clear();
6635
6634
  }
6636
6635
  }
6637
- class Ve extends T {
6636
+ class Ve extends P {
6638
6637
  constructor() {
6639
6638
  super();
6640
- _(this, "_currentTheme");
6641
- _(this, "_currentTheme$", new K({}));
6642
- _(this, "currentTheme$", this._currentTheme$.asObservable());
6643
- this.disposeWithMe(w(() => this._currentTheme$.complete()));
6639
+ d(this, "_currentTheme");
6640
+ d(this, "_currentTheme$", new K({}));
6641
+ d(this, "currentTheme$", this._currentTheme$.asObservable());
6642
+ this.disposeWithMe(S(() => this._currentTheme$.complete()));
6644
6643
  }
6645
6644
  getCurrentTheme() {
6646
6645
  if (!this._currentTheme)
@@ -6651,22 +6650,22 @@ class Ve extends T {
6651
6650
  this._currentTheme = s, this._currentTheme$.next(s);
6652
6651
  }
6653
6652
  }
6654
- const bi = "__defaultDocumentNormalEditorSpecialUnitId_20231006__", wi = "__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__", Ko = `\r
6653
+ const bi = "__defaultDocumentNormalEditorSpecialUnitId_20231006__", wi = "__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__", Yo = `\r
6655
6654
  `;
6656
- var Li = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, Di = (t, e, s, n) => {
6657
- for (var r = n > 1 ? void 0 : n ? vi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6655
+ var Si = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, vi = (t, e, s, n) => {
6656
+ for (var r = n > 1 ? void 0 : n ? Li(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6658
6657
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6659
- return n && r && Li(e, s, r), r;
6658
+ return n && r && Si(e, s, r), r;
6660
6659
  }, Xt = (t, e) => (s, n) => e(s, n, t);
6661
6660
  const Ce = G("univer.undo-redo.service"), Mi = 20;
6662
- let ce = class extends T {
6661
+ let ce = class extends P {
6663
6662
  constructor(e, s, n) {
6664
6663
  super();
6665
- _(this, "undoRedoStatus$");
6666
- _(this, "_undoRedoStatus$", new K({ undos: 0, redos: 0 }));
6667
- _(this, "_undoStacks", /* @__PURE__ */ new Map());
6668
- _(this, "_redoStacks", /* @__PURE__ */ new Map());
6669
- this._univerInstanceService = e, this._commandService = s, this._contextService = n, this.undoRedoStatus$ = this._undoRedoStatus$.asObservable(), this.disposeWithMe(this._commandService.registerCommand(Ui)), this.disposeWithMe(this._commandService.registerCommand(Ti)), this.disposeWithMe(w(() => this._undoRedoStatus$.complete())), this.disposeWithMe(w(this._univerInstanceService.focused$.subscribe(() => this._updateStatus())));
6664
+ d(this, "undoRedoStatus$");
6665
+ d(this, "_undoRedoStatus$", new K({ undos: 0, redos: 0 }));
6666
+ d(this, "_undoStacks", /* @__PURE__ */ new Map());
6667
+ d(this, "_redoStacks", /* @__PURE__ */ new Map());
6668
+ this._univerInstanceService = e, this._commandService = s, this._contextService = n, this.undoRedoStatus$ = this._undoRedoStatus$.asObservable(), this.disposeWithMe(this._commandService.registerCommand(Di)), this.disposeWithMe(this._commandService.registerCommand(Ui)), this.disposeWithMe(S(() => this._undoRedoStatus$.complete())), this.disposeWithMe(S(this._univerInstanceService.focused$.subscribe(() => this._updateStatus())));
6670
6669
  }
6671
6670
  pushUndoRedo(e) {
6672
6671
  const { unitID: s } = e, n = this._getRedoStack(s, !0), r = this._getUndoStack(s, !0);
@@ -6725,13 +6724,13 @@ let ce = class extends T {
6725
6724
  _getFocusedUniverInstanceId() {
6726
6725
  var i, o;
6727
6726
  let e = "";
6728
- const s = this._contextService.getContextValue(ae), n = this._contextService.getContextValue(ai), r = this._contextService.getContextValue(oi);
6727
+ const s = this._contextService.getContextValue(ae), n = this._contextService.getContextValue(oi), r = this._contextService.getContextValue(ii);
6729
6728
  return s ? n ? e = wi : r ? e = bi : e = ((i = this._univerInstanceService.getFocusedUniverInstance()) == null ? void 0 : i.getUnitId()) ?? "" : e = ((o = this._univerInstanceService.getFocusedUniverInstance()) == null ? void 0 : o.getUnitId()) ?? "", e;
6730
6729
  }
6731
6730
  };
6732
- ce = Di([
6731
+ ce = vi([
6733
6732
  Xt(0, Ot),
6734
- Xt(1, Wt),
6733
+ Xt(1, Bt),
6735
6734
  Xt(2, Et)
6736
6735
  ], ce);
6737
6736
  class Is {
@@ -6741,42 +6740,42 @@ class Is {
6741
6740
  return !1;
6742
6741
  }
6743
6742
  }
6744
- const Ui = new class extends Is {
6743
+ const Di = new class extends Is {
6745
6744
  constructor() {
6746
6745
  super(...arguments);
6747
- _(this, "type", Ee.COMMAND);
6748
- _(this, "id", "univer.command.undo");
6746
+ d(this, "type", Ee.COMMAND);
6747
+ d(this, "id", "univer.command.undo");
6749
6748
  }
6750
6749
  async handler(e) {
6751
6750
  const s = e.get(Ce), n = s.pitchTopUndoElement();
6752
6751
  if (!n)
6753
6752
  return !1;
6754
- const r = e.get(Wt);
6753
+ const r = e.get(Bt);
6755
6754
  return (n.undo ? await n.undo(n.undoMutations) : Qe(n.undoMutations, r)) ? (s.popUndoToRedo(), !0) : !1;
6756
6755
  }
6757
- }(), Ti = new class extends Is {
6756
+ }(), Ui = new class extends Is {
6758
6757
  constructor() {
6759
6758
  super(...arguments);
6760
- _(this, "type", Ee.COMMAND);
6761
- _(this, "id", "univer.command.redo");
6759
+ d(this, "type", Ee.COMMAND);
6760
+ d(this, "id", "univer.command.redo");
6762
6761
  }
6763
6762
  async handler(e) {
6764
6763
  const s = e.get(Ce), n = s.pitchTopRedoElement();
6765
6764
  if (!n)
6766
6765
  return !1;
6767
- const r = e.get(Wt);
6766
+ const r = e.get(Bt);
6768
6767
  return (n.redo ? await n.redo(n.redoMutations) : Qe(n.redoMutations, r)) ? (s.popRedoToUndo(), !0) : !1;
6769
6768
  }
6770
6769
  }();
6771
- class $t extends T {
6770
+ class Wt extends P {
6772
6771
  constructor() {
6773
6772
  super(...arguments);
6774
- _(this, "_started", !1);
6773
+ d(this, "_started", !1);
6775
6774
  }
6776
6775
  addPlugins(s) {
6777
6776
  if (this._started) {
6778
6777
  const n = s.map(([r, i]) => this._initPlugin(r, i));
6779
- this._pluginsRunLifecycle(n, b.Starting), setTimeout(() => this._takePluginsThroughLifecycle(n));
6778
+ this._pluginsRunLifecycle(n, w.Starting), setTimeout(() => this._takePluginsThroughLifecycle(n));
6780
6779
  } else {
6781
6780
  const n = s.map(([r, i]) => this._initPlugin(r, i));
6782
6781
  this._takePluginsThroughLifecycle(n), this._started = !0;
@@ -6784,9 +6783,9 @@ class $t extends T {
6784
6783
  }
6785
6784
  _takePluginsThroughLifecycle(s, n = !1) {
6786
6785
  this.disposeWithMe(
6787
- w(
6786
+ S(
6788
6787
  this._lifecycleService.subscribeWithPrevious().subscribe((r) => {
6789
- n && r === b.Starting || this._pluginsRunLifecycle(s, r);
6788
+ n && r === w.Starting || this._pluginsRunLifecycle(s, r);
6790
6789
  })
6791
6790
  )
6792
6791
  );
@@ -6794,16 +6793,16 @@ class $t extends T {
6794
6793
  _pluginsRunLifecycle(s, n) {
6795
6794
  s.forEach((r) => {
6796
6795
  switch (n) {
6797
- case b.Starting:
6796
+ case w.Starting:
6798
6797
  r.onStarting(this._injector);
6799
6798
  break;
6800
- case b.Ready:
6799
+ case w.Ready:
6801
6800
  r.onReady();
6802
6801
  break;
6803
- case b.Rendered:
6802
+ case w.Rendered:
6804
6803
  r.onRendered();
6805
6804
  break;
6806
- case b.Steady:
6805
+ case w.Steady:
6807
6806
  r.onSteady();
6808
6807
  break;
6809
6808
  }
@@ -6813,12 +6812,12 @@ class $t extends T {
6813
6812
  return this._injector.createInstance(s, n);
6814
6813
  }
6815
6814
  }
6816
- var Pi = Object.defineProperty, xi = Object.getOwnPropertyDescriptor, Fi = (t, e, s, n) => {
6815
+ var Pi = Object.defineProperty, xi = Object.getOwnPropertyDescriptor, Ti = (t, e, s, n) => {
6817
6816
  for (var r = n > 1 ? void 0 : n ? xi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6818
6817
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6819
6818
  return n && r && Pi(e, s, r), r;
6820
6819
  }, Qt = (t, e) => (s, n) => e(s, n, t);
6821
- let he = class extends $t {
6820
+ let he = class extends Wt {
6822
6821
  constructor(t, e, s) {
6823
6822
  super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
6824
6823
  }
@@ -6826,35 +6825,35 @@ let he = class extends $t {
6826
6825
  return this._injector.createInstance(Rt, t);
6827
6826
  }
6828
6827
  };
6829
- he = Fi([
6828
+ he = Ti([
6830
6829
  Qt(0, U(ot)),
6831
6830
  Qt(1, U(V)),
6832
6831
  Qt(2, U(st))
6833
6832
  ], he);
6834
- var Hi = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, Bi = (t, e, s, n) => {
6833
+ var Fi = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, Hi = (t, e, s, n) => {
6835
6834
  for (var r = n > 1 ? void 0 : n ? pi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6836
6835
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6837
- return n && r && Hi(e, s, r), r;
6836
+ return n && r && Fi(e, s, r), r;
6838
6837
  }, Zt = (t, e) => (s, n) => e(s, n, t);
6839
- let _e = class extends $t {
6838
+ let de = class extends Wt {
6840
6839
  constructor(t, e, s) {
6841
6840
  super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
6842
6841
  }
6843
6842
  createSheet(t) {
6844
- return this._injector.createInstance(Bt, t);
6843
+ return this._injector.createInstance($t, t);
6845
6844
  }
6846
6845
  };
6847
- _e = Bi([
6846
+ de = Hi([
6848
6847
  Zt(0, U(ot)),
6849
6848
  Zt(1, U(V)),
6850
6849
  Zt(2, U(st))
6851
- ], _e);
6852
- var Wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, Gi = (t, e, s, n) => {
6853
- for (var r = n > 1 ? void 0 : n ? $i(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6850
+ ], de);
6851
+ var $i = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, Wi = (t, e, s, n) => {
6852
+ for (var r = n > 1 ? void 0 : n ? Bi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6854
6853
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6855
- return n && r && Wi(e, s, r), r;
6854
+ return n && r && $i(e, s, r), r;
6856
6855
  }, qt = (t, e) => (s, n) => e(s, n, t);
6857
- let de = class extends $t {
6856
+ let _e = class extends Wt {
6858
6857
  constructor(t, e, s) {
6859
6858
  super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
6860
6859
  }
@@ -6862,22 +6861,22 @@ let de = class extends $t {
6862
6861
  return this._injector.createInstance(gs, t);
6863
6862
  }
6864
6863
  };
6865
- de = Gi([
6864
+ _e = Wi([
6866
6865
  qt(0, U(ot)),
6867
6866
  qt(1, U(V)),
6868
6867
  qt(2, U(st))
6869
- ], de);
6870
- const ki = 200;
6871
- class Xo extends $t {
6868
+ ], _e);
6869
+ const Gi = 200;
6870
+ class Ko extends Wt {
6872
6871
  constructor(s = {}) {
6873
6872
  super();
6874
- _(this, "_injector");
6875
- _(this, "_univerPluginStore", new Ms());
6876
- _(this, "_univerPluginRegistry", new Us());
6877
- _(this, "_univerSheet", null);
6878
- _(this, "_univerDoc", null);
6879
- _(this, "_univerSlide", null);
6880
- _(this, "_initLazyPluginsTimer");
6873
+ d(this, "_injector");
6874
+ d(this, "_univerPluginStore", new Ds());
6875
+ d(this, "_univerPluginRegistry", new Us());
6876
+ d(this, "_univerSheet", null);
6877
+ d(this, "_univerDoc", null);
6878
+ d(this, "_univerSlide", null);
6879
+ d(this, "_initLazyPluginsTimer");
6881
6880
  this._injector = this._initDependencies();
6882
6881
  const { theme: n, locale: r, locales: i, logLevel: o } = s;
6883
6882
  n && this._injector.get(Ve).setTheme(n), i && this._injector.get(Lt).load(i), r && this._injector.get(Lt).setLocale(r), o && this._injector.get(ct).setLogLevel(o);
@@ -6912,7 +6911,7 @@ class Xo extends $t {
6912
6911
  r();
6913
6912
  else {
6914
6913
  this._tryProgressToStart();
6915
- const i = this._univerSheet = this._injector.createInstance(_e), o = this._univerPluginRegistry.getRegisterPlugins(L.Sheet).map((a) => [a.plugin, a.options]);
6914
+ const i = this._univerSheet = this._injector.createInstance(de), o = this._univerPluginRegistry.getRegisterPlugins(L.Sheet).map((a) => [a.plugin, a.options]);
6916
6915
  this._univerPluginRegistry.clearPluginsOfType(L.Sheet), i.addPlugins(o), r(), this._tryProgressToReady();
6917
6916
  }
6918
6917
  return n;
@@ -6940,7 +6939,7 @@ class Xo extends $t {
6940
6939
  r();
6941
6940
  else {
6942
6941
  this._tryProgressToStart();
6943
- const i = this._univerSlide = this._injector.createInstance(de), o = this._univerPluginRegistry.getRegisterPlugins(L.Slide).map((a) => [a.plugin, a.options]);
6942
+ const i = this._univerSlide = this._injector.createInstance(_e), o = this._univerPluginRegistry.getRegisterPlugins(L.Slide).map((a) => [a.plugin, a.options]);
6944
6943
  this._univerPluginRegistry.clearPluginsOfType(L.Slide), i.addPlugins(o), r(), this._tryProgressToReady();
6945
6944
  }
6946
6945
  return n;
@@ -6967,14 +6966,14 @@ class Xo extends $t {
6967
6966
  [V],
6968
6967
  [st],
6969
6968
  [As, { useClass: Ut }],
6970
- [Tt],
6969
+ [Pt],
6971
6970
  [ct, { useClass: ks, lazy: !0 }],
6972
- [Wt, { useClass: yt, lazy: !0 }],
6971
+ [Bt, { useClass: yt, lazy: !0 }],
6973
6972
  [Ce, { useClass: ce, lazy: !0 }],
6974
6973
  [Xs, { useClass: Qs }],
6975
- [Et, { useClass: $s }],
6974
+ [Et, { useClass: Ws }],
6976
6975
  [Js, { useClass: qs, lazy: !0 }],
6977
- [Os, { useClass: Si, lazy: !0 }]
6976
+ [Os, { useClass: Ni, lazy: !0 }]
6978
6977
  ]);
6979
6978
  }
6980
6979
  /**
@@ -6984,7 +6983,7 @@ class Xo extends $t {
6984
6983
  this._started || (this._injector.get(st).start(), this._started = !0);
6985
6984
  }
6986
6985
  _tryProgressToReady() {
6987
- this._injector.get(V).stage < b.Ready && (this._injector.get(V).stage = b.Ready, this._univerPluginStore.forEachPlugin((n) => n.onReady()));
6986
+ this._injector.get(V).stage < w.Ready && (this._injector.get(V).stage = w.Ready, this._univerPluginStore.forEachPlugin((n) => n.onReady()));
6988
6987
  }
6989
6988
  // #region register plugins
6990
6989
  /** Register a plugin into univer. */
@@ -7005,7 +7004,7 @@ class Xo extends $t {
7005
7004
  _scheduleInitPluginAfterStarted() {
7006
7005
  this._initLazyPluginsTimer === void 0 && (this._initLazyPluginsTimer = setTimeout(
7007
7006
  () => this._flushLazyPlugins(),
7008
- ki
7007
+ Gi
7009
7008
  ));
7010
7009
  }
7011
7010
  _flushLazyPlugins() {
@@ -7048,7 +7047,7 @@ class Xo extends $t {
7048
7047
  }
7049
7048
  // #endregion
7050
7049
  }
7051
- function Qo(t) {
7050
+ function Xo(t) {
7052
7051
  const e = new MessageChannel();
7053
7052
  let s = !1;
7054
7053
  return e.port1.onmessage = () => {
@@ -7057,7 +7056,7 @@ function Qo(t) {
7057
7056
  s = !0;
7058
7057
  };
7059
7058
  }
7060
- class Zo extends ge {
7059
+ class Qo extends ge {
7061
7060
  /**
7062
7061
  * Create a new WorkBookObserver with the specified callback
7063
7062
  * @param callback the callback that will be executed for that WorkBookObserver
@@ -7076,7 +7075,7 @@ class Zo extends ge {
7076
7075
  makeObserverBottomPriority() {
7077
7076
  }
7078
7077
  }
7079
- const qo = G("ILocalStorageService"), Jo = (t) => `sheet_interceptor_${t}`, Vi = (t) => (
7078
+ const Zo = G("ILocalStorageService"), qo = (t) => `sheet_interceptor_${t}`, ki = (t) => (
7080
7079
  // eslint-disable-next-line func-names
7081
7080
  function(e, s) {
7082
7081
  let n = -1;
@@ -7088,15 +7087,15 @@ const qo = G("ILocalStorageService"), Jo = (t) => `sheet_interceptor_${t}`, Vi =
7088
7087
  return r(0, e);
7089
7088
  }
7090
7089
  );
7091
- class yo {
7090
+ class Jo {
7092
7091
  constructor(e) {
7093
- _(this, "_interceptorsByName", /* @__PURE__ */ new Map());
7094
- _(this, "_interceptorPoints");
7092
+ d(this, "_interceptorsByName", /* @__PURE__ */ new Map());
7093
+ d(this, "_interceptorPoints");
7095
7094
  this._interceptorPoints = e;
7096
7095
  }
7097
7096
  fetchThroughInterceptors(e) {
7098
7097
  const s = e, n = this._interceptorsByName.get(s);
7099
- return Vi(n || []);
7098
+ return ki(n || []);
7100
7099
  }
7101
7100
  intercept(e, s) {
7102
7101
  const n = e;
@@ -7111,19 +7110,19 @@ class yo {
7111
7110
  return this._interceptorPoints;
7112
7111
  }
7113
7112
  }
7114
- const je = `'?\\[((?![\\/?:"<>|*\\\\]).)*\\]`, ji = /[^0-9]/g, zi = /[^A-Za-z]/g;
7115
- function Pt(t) {
7113
+ const je = `'?\\[((?![\\/?:"<>|*\\\\]).)*\\]`, Vi = /[^0-9]/g, ji = /[^A-Za-z]/g;
7114
+ function xt(t) {
7116
7115
  const e = t[0] === "$", n = t.substring(1).indexOf("$") > -1;
7117
7116
  return e && n ? Z.ALL : e ? Z.COLUMN : n ? Z.ROW : Z.NONE;
7118
7117
  }
7119
- function ta(t) {
7118
+ function yo(t) {
7120
7119
  const e = t.split("!");
7121
7120
  e.length > 1 && (t = e[e.length - 1]);
7122
7121
  const s = t.split(":");
7123
7122
  return s.length > 1 ? {
7124
- startAbsoluteRefType: Pt(s[0]),
7125
- endAbsoluteRefType: Pt(s[1])
7126
- } : { startAbsoluteRefType: Pt(s[0]) };
7123
+ startAbsoluteRefType: xt(s[0]),
7124
+ endAbsoluteRefType: xt(s[1])
7125
+ } : { startAbsoluteRefType: xt(s[0]) };
7127
7126
  }
7128
7127
  function ze(t = Z.NONE) {
7129
7128
  let e = "", s = "";
@@ -7136,25 +7135,25 @@ function Ne(t) {
7136
7135
  const { startColumn: e, startRow: s, endColumn: n, endRow: r, startAbsoluteRefType: i, endAbsoluteRefType: o } = t, a = ze(i), c = ze(o), l = `${a.columnAbsoluteString}${m.chatAtABC(e)}${a.rowAbsoluteString}${s + 1}`, u = `${c.columnAbsoluteString}${m.chatAtABC(n)}${c.rowAbsoluteString}${r + 1}`;
7137
7136
  return l === u ? l : `${l}:${u}`;
7138
7137
  }
7139
- function Yi(t, e) {
7138
+ function zi(t, e) {
7140
7139
  return `${t}!${Ne(e)}`;
7141
7140
  }
7142
- function Ki(t, e, s) {
7141
+ function Yi(t, e, s) {
7143
7142
  return `[${t}]${e}!${Ne(s)}`;
7144
7143
  }
7145
- function ea(t) {
7144
+ function ta(t) {
7146
7145
  const { unitId: e, sheetName: s, range: n } = t;
7147
- return e != null && e.length > 0 && s != null && s.length > 0 ? Ki(e, s, n) : s != null && s.length > 0 ? Yi(s, n) : Ne(n);
7146
+ return e != null && e.length > 0 && s != null && s.length > 0 ? Yi(e, s, n) : s != null && s.length > 0 ? zi(s, n) : Ne(n);
7148
7147
  }
7149
7148
  function Jt(t) {
7150
- const e = parseInt(t.replace(ji, "")) - 1, s = m.ABCatNum(t.replace(zi, "")), n = Pt(t);
7149
+ const e = parseInt(t.replace(Vi, "")) - 1, s = m.ABCatNum(t.replace(ji, "")), n = xt(t);
7151
7150
  return {
7152
7151
  row: e,
7153
7152
  column: s,
7154
7153
  absoluteRefType: n
7155
7154
  };
7156
7155
  }
7157
- function sa(t) {
7156
+ function ea(t) {
7158
7157
  const e = new RegExp(je).exec(t);
7159
7158
  let s = "";
7160
7159
  e != null && (s = e[0], t = t.replace(new RegExp(je, "g"), ""));
@@ -7177,14 +7176,14 @@ function sa(t) {
7177
7176
  }
7178
7177
  };
7179
7178
  }
7180
- const a = i.substring(0, o), c = i.substring(o + 1), l = Jt(a), u = Jt(c), h = l.row, f = l.column, d = u.row, g = u.column;
7179
+ const a = i.substring(0, o), c = i.substring(o + 1), l = Jt(a), u = Jt(c), h = l.row, f = l.column, _ = u.row, g = u.column;
7181
7180
  return {
7182
7181
  unitId: s,
7183
7182
  sheetName: r,
7184
7183
  range: {
7185
7184
  startRow: h,
7186
7185
  startColumn: f,
7187
- endRow: d,
7186
+ endRow: _,
7188
7187
  endColumn: g,
7189
7188
  startAbsoluteRefType: l.absoluteRefType,
7190
7189
  endAbsoluteRefType: u.absoluteRefType
@@ -7193,8 +7192,7 @@ function sa(t) {
7193
7192
  }
7194
7193
  Ls();
7195
7194
  export {
7196
- To as ABCToNumber,
7197
- $r as ACTION_NAMES,
7195
+ Uo as ABCToNumber,
7198
7196
  Z as AbsoluteRefType,
7199
7197
  Lr as AlignTypeH,
7200
7198
  vr as AlignTypeV,
@@ -7205,38 +7203,38 @@ export {
7205
7203
  N as BorderStyleTypes,
7206
7204
  nn as BorderType,
7207
7205
  rt as BulletAlignment,
7208
- Te as COLORS,
7206
+ Pe as COLORS,
7209
7207
  vt as CellValueType,
7210
7208
  ht as Color,
7211
7209
  Oe as ColorBuilder,
7212
7210
  k as ColorKit,
7213
- $ as ColorType,
7214
- _r as ColumnSeparatorType,
7211
+ W as ColorType,
7212
+ dr as ColumnSeparatorType,
7215
7213
  yt as CommandService,
7216
7214
  Ee as CommandType,
7217
7215
  rn as CommonHideTypes,
7218
7216
  on as ConditionType,
7219
7217
  Cr as ContentAlignment,
7220
- $s as ContextService,
7218
+ Ws as ContextService,
7221
7219
  an as CopyPasteType,
7222
7220
  lr as CustomRangeType,
7223
- $o as DEFAULT_CELL,
7224
- ds as DEFAULT_DOC,
7225
- ro as DEFAULT_DOCUMENT_SUB_COMPONENT_ID,
7226
- Ko as DEFAULT_EMPTY_DOCUMENT_VALUE,
7227
- Bo as DEFAULT_RANGE,
7228
- bt as DEFAULT_RANGE_ARRAY,
7229
- Wo as DEFAULT_SELECTION,
7230
- Xr as DEFAULT_SLIDE,
7221
+ Bo as DEFAULT_CELL,
7222
+ _s as DEFAULT_DOC,
7223
+ no as DEFAULT_DOCUMENT_SUB_COMPONENT_ID,
7224
+ Yo as DEFAULT_EMPTY_DOCUMENT_VALUE,
7225
+ Ho as DEFAULT_RANGE,
7226
+ wt as DEFAULT_RANGE_ARRAY,
7227
+ $o as DEFAULT_SELECTION,
7228
+ Kr as DEFAULT_SLIDE,
7231
7229
  Yt as DEFAULT_STYLES,
7232
- Gr as DEFAULT_WORKBOOK,
7230
+ Wr as DEFAULT_WORKBOOK,
7233
7231
  oe as DEFAULT_WORKSHEET,
7234
- Vr as DEFAULT_WORKSHEET_COLUMN_COUNT,
7235
- Kr as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT,
7236
- zr as DEFAULT_WORKSHEET_COLUMN_WIDTH,
7237
- kr as DEFAULT_WORKSHEET_ROW_COUNT,
7238
- jr as DEFAULT_WORKSHEET_ROW_HEIGHT,
7239
- Yr as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH,
7232
+ kr as DEFAULT_WORKSHEET_COLUMN_COUNT,
7233
+ Yr as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT,
7234
+ jr as DEFAULT_WORKSHEET_COLUMN_WIDTH,
7235
+ Gr as DEFAULT_WORKSHEET_ROW_COUNT,
7236
+ Vr as DEFAULT_WORKSHEET_ROW_HEIGHT,
7237
+ zr as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH,
7240
7238
  wi as DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
7241
7239
  bi as DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
7242
7240
  Or as DashStyleType,
@@ -7246,193 +7244,193 @@ export {
7246
7244
  ln as DeveloperMetadataVisibility,
7247
7245
  un as Dimension,
7248
7246
  cn as Direction,
7249
- T as Disposable,
7250
- Ws as DisposableCollection,
7247
+ P as Disposable,
7248
+ Bs as DisposableCollection,
7251
7249
  or as DocStyleType,
7252
7250
  Rt as DocumentDataModel,
7253
- Qr as EXTENSION_NAMES,
7254
- xe as Entry,
7251
+ Xr as EXTENSION_NAMES,
7252
+ Te as Entry,
7255
7253
  Xn as EntryIterator,
7256
7254
  Zs as ErrorService,
7257
- ps as EventState,
7258
- pe as FOCUSING_DOC,
7259
- oi as FOCUSING_EDITOR,
7260
- zo as FOCUSING_EDITOR_BUT_HIDDEN,
7261
- Yo as FOCUSING_EDITOR_INPUT_FORMULA,
7262
- ai as FOCUSING_FORMULA_EDITOR,
7255
+ Hs as EventState,
7256
+ He as FOCUSING_DOC,
7257
+ ii as FOCUSING_EDITOR,
7258
+ jo as FOCUSING_EDITOR_BUT_HIDDEN,
7259
+ zo as FOCUSING_EDITOR_INPUT_FORMULA,
7260
+ oi as FOCUSING_FORMULA_EDITOR,
7263
7261
  ae as FOCUSING_SHEET,
7264
- Be as FOCUSING_SLIDE,
7262
+ $e as FOCUSING_SLIDE,
7265
7263
  qs as FloatingObjectManagerService,
7266
7264
  ar as FollowNumberWithType,
7267
7265
  te as FontItalic,
7268
7266
  Nr as FontStyleType,
7269
7267
  ee as FontWeight,
7270
7268
  hn as FormatType,
7271
- Dt as GlyphType,
7269
+ Mt as GlyphType,
7272
7270
  cr as GridType,
7273
7271
  mn as HLSColor,
7274
7272
  ut as HorizontalAlign,
7275
- Wt as ICommandService,
7273
+ Bt as ICommandService,
7276
7274
  Xs as IConfigService,
7277
7275
  Et as IContextService,
7278
7276
  Js as IFloatingObjectManagerService,
7279
- qo as ILocalStorageService,
7277
+ Zo as ILocalStorageService,
7280
7278
  ct as ILogService,
7281
7279
  As as IPermissionService,
7282
7280
  Os as IResourceManagerService,
7283
- Ei as ISnapshotPersistenceService,
7281
+ gi as ISnapshotPersistenceService,
7284
7282
  Ce as IUndoRedoService,
7285
7283
  Ot as IUniverInstanceService,
7286
- yo as InterceptorManager,
7287
- _n as InterpolationPointType,
7284
+ Jo as InterceptorManager,
7285
+ dn as InterpolationPointType,
7288
7286
  Yn as KeyIterator,
7289
- St as LRUHelper,
7287
+ bt as LRUHelper,
7290
7288
  Qn as LRUMap,
7291
7289
  V as LifecycleService,
7292
- b as LifecycleStages,
7290
+ w as LifecycleStages,
7293
7291
  ce as LocalUndoRedoService,
7294
7292
  Lt as LocaleService,
7295
7293
  Re as LocaleType,
7296
7294
  Gs as LogLevel,
7297
7295
  ys as MemoryCursor,
7298
7296
  Rr as NamedStyleType,
7299
- wr as NumberUnitType,
7297
+ Sr as NumberUnitType,
7300
7298
  X as ObjectMatrix,
7301
- Sr as ObjectRelativeFromH,
7302
- br as ObjectRelativeFromV,
7299
+ br as ObjectRelativeFromH,
7300
+ wr as ObjectRelativeFromV,
7303
7301
  ge as Observable,
7304
- Zo as ObservableHooks,
7302
+ Qo as ObservableHooks,
7305
7303
  fe as Observer,
7306
7304
  Es as OnLifecycle,
7307
7305
  po as PRESET_LIST_TYPE,
7308
- qr as PageElementType,
7309
- Mr as PageOrientType,
7306
+ Zr as PageElementType,
7307
+ Dr as PageOrientType,
7310
7308
  fs as PageType,
7311
7309
  fr as ParagraphElementType,
7312
7310
  Jn as PermissionPoint,
7313
7311
  Ut as PermissionService,
7314
7312
  es as PermissionStatus,
7315
- Ds as Plugin,
7313
+ Ms as Plugin,
7316
7314
  L as PluginType,
7317
7315
  Er as PositionedObjectLayoutType,
7318
7316
  ie as PresetListType,
7319
- dn as ProtectionType,
7317
+ _n as ProtectionType,
7320
7318
  Q as RANGE_TYPE,
7321
- uo as RGBA_PAREN,
7322
- lo as RGB_PAREN,
7319
+ lo as RGBA_PAREN,
7320
+ ao as RGB_PAREN,
7323
7321
  mt as Range,
7324
7322
  gt as Rectangle,
7325
- Ti as RedoCommand,
7326
- Uo as RefAlias,
7323
+ Ui as RedoCommand,
7324
+ Do as RefAlias,
7327
7325
  Ye as Registry,
7328
7326
  Ke as RegistryAsMap,
7329
7327
  fn as RelativeDate,
7330
- Jr as RelativeSlideLink,
7331
- Si as ResourceManagerService,
7328
+ qr as RelativeSlideLink,
7329
+ Ni as ResourceManagerService,
7332
7330
  ne as RgbColor,
7333
- so as RxDisposable,
7331
+ eo as RxDisposable,
7334
7332
  hr as SectionType,
7335
7333
  gn as ShapeType,
7336
7334
  Ze as SheetTypes,
7337
- ei as SheetViewModel,
7335
+ ti as SheetViewModel,
7338
7336
  gs as Slide,
7339
7337
  mr as SpacingRule,
7340
- Zr as Styles,
7338
+ Qr as Styles,
7341
7339
  Rn as THEME_COLORS,
7342
7340
  Ar as TabStopAlignment,
7343
7341
  En as TextDecoration,
7344
- xt as TextDirection,
7345
- dr as TextDirectionType,
7342
+ Tt as TextDirection,
7343
+ _r as TextDirectionType,
7346
7344
  re as ThemeColor,
7347
7345
  F as ThemeColorType,
7348
7346
  me as ThemeColors,
7349
7347
  Ve as ThemeService,
7350
7348
  m as Tools,
7351
- Ui as UndoCommand,
7352
- Xo as Univer,
7349
+ Di as UndoCommand,
7350
+ Ko as Univer,
7353
7351
  he as UniverDoc,
7354
7352
  Kt as UniverEditablePermission,
7355
- Ai as UniverEditablePermissionPoint,
7356
- _i as UniverInstanceType,
7357
- Tt as UniverPermissionService,
7358
- _e as UniverSheet,
7359
- de as UniverSlide,
7360
- x as UpdateDocsAttributeType,
7353
+ Oi as UniverEditablePermissionPoint,
7354
+ hi as UniverInstanceType,
7355
+ Pt as UniverPermissionService,
7356
+ de as UniverSheet,
7357
+ _e as UniverSlide,
7358
+ T as UpdateDocsAttributeType,
7361
7359
  Kn as ValueIterator,
7362
- dt as VerticalAlign,
7360
+ _t as VerticalAlign,
7363
7361
  Ir as WidthType,
7364
- Bt as Workbook,
7365
- pt as Worksheet,
7362
+ $t as Workbook,
7363
+ Ht as Worksheet,
7366
7364
  ft as WrapStrategy,
7367
7365
  gr as WrapTextType,
7368
7366
  tn as binarySearchArray,
7369
- Dr as characterSpacingControlType,
7370
- Ao as checkParagraphHasBullet,
7371
- Io as checkParagraphHasIndent,
7372
- xn as checkParagraphHasIndentByStyle,
7373
- oo as codeToBlob,
7374
- Vi as composeInterceptors,
7375
- Lo as concatMatrixArray,
7376
- Jo as createInterceptorKey,
7377
- He as createRowColIter,
7367
+ Mr as characterSpacingControlType,
7368
+ Oo as checkParagraphHasBullet,
7369
+ Ao as checkParagraphHasIndent,
7370
+ Tn as checkParagraphHasIndentByStyle,
7371
+ io as codeToBlob,
7372
+ ki as composeInterceptors,
7373
+ So as concatMatrixArray,
7374
+ qo as createInterceptorKey,
7375
+ pe as createRowColIter,
7378
7376
  zn as datenum_local,
7379
- to as dedupe,
7377
+ yi as dedupe,
7380
7378
  Je as deepCompare,
7381
- Hn as deleteContent,
7382
- sa as deserializeRangeWithSheet,
7383
- Pe as error,
7384
- eo as fromObservable,
7385
- Co as generate,
7386
- ta as getAbsoluteRefTypeWitString,
7387
- Pt as getAbsoluteRefTypeWithSingleString,
7379
+ pn as deleteContent,
7380
+ ea as deserializeRangeWithSheet,
7381
+ xe as error,
7382
+ to as fromObservable,
7383
+ Io as generate,
7384
+ yo as getAbsoluteRefTypeWitString,
7385
+ xt as getAbsoluteRefTypeWithSingleString,
7388
7386
  j as getArrayLength,
7389
- mo as getBorderStyleType,
7390
- ko as getCellValueType,
7387
+ Ro as getBorderStyleType,
7388
+ Go as getCellValueType,
7391
7389
  Y as getColorStyle,
7392
7390
  zt as getDocsUpdateBody,
7393
- ao as getReverseDirection,
7394
- Do as getTypeFromPermissionItemList,
7395
- jo as getWorksheetUID,
7396
- Eo as handleJsonToDom,
7397
- Ro as handleStyleToString,
7398
- So as hashAlgorithm,
7391
+ oo as getReverseDirection,
7392
+ vo as getTypeFromPermissionItemList,
7393
+ Vo as getWorksheetUID,
7394
+ go as handleJsonToDom,
7395
+ Eo as handleStyleToString,
7396
+ No as hashAlgorithm,
7399
7397
  ye as horizontalLineSegmentsSubtraction,
7400
7398
  bo as insertMatrixArray,
7401
7399
  Fn as insertTextToContent,
7402
- _o as isEmptyCell,
7403
- go as isFormulaId,
7404
- fo as isFormulaString,
7405
- Go as isICellData,
7406
- Vo as isNullCell,
7407
- Bs as isObserver,
7400
+ ho as isEmptyCell,
7401
+ fo as isFormulaId,
7402
+ _o as isFormulaString,
7403
+ Wo as isICellData,
7404
+ ko as isNullCell,
7405
+ $s as isObserver,
7408
7406
  lt as isRealNum,
7409
- Pn as isSameStyleTextRun,
7410
- Oo as isValidRange,
7411
- ho as makeCellRangeToRangeData,
7412
- co as makeCellToSelection,
7407
+ xn as isSameStyleTextRun,
7408
+ mo as isValidRange,
7409
+ co as makeCellRangeToRangeData,
7410
+ uo as makeCellToSelection,
7413
7411
  Fe as moveMatrixArray,
7414
7412
  Po as numberToABC,
7415
7413
  xo as numberToListABC,
7416
7414
  en as orderSearchArray,
7417
7415
  it as remove,
7418
7416
  tr as repeatStringNumTimes,
7419
- Qo as requestImmediateMacroTask,
7417
+ Xo as requestImmediateMacroTask,
7420
7418
  Rs as runOnLifecycle,
7421
- io as searchArray,
7419
+ ro as searchArray,
7422
7420
  Mo as selectionToArray,
7423
- xs as sequence,
7424
- Ps as sequenceAsync,
7421
+ Ts as sequence,
7422
+ xs as sequenceAsync,
7425
7423
  Qe as sequenceExecute,
7426
- no as sequenceExecuteAsync,
7424
+ so as sequenceExecuteAsync,
7427
7425
  Ne as serializeRange,
7428
- ea as serializeRangeToRefString,
7429
- Yi as serializeRangeWithSheet,
7430
- Ki as serializeRangeWithSpreadsheet,
7431
- vo as sliceMatrixArray,
7432
- Fo as sortRules,
7433
- Ho as sortRulesByDesc,
7426
+ ta as serializeRangeToRefString,
7427
+ zi as serializeRangeWithSheet,
7428
+ Yi as serializeRangeWithSpreadsheet,
7429
+ Lo as sliceMatrixArray,
7430
+ To as sortRules,
7431
+ Fo as sortRulesByDesc,
7434
7432
  At as sortRulesFactory,
7435
7433
  wo as spliceArray,
7436
- w as toDisposable,
7437
- No as update
7434
+ S as toDisposable,
7435
+ Co as update
7438
7436
  };