@univerjs/core 0.1.0-beta.5 → 0.1.2

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,8 +1,8 @@
1
1
  var cs = Object.defineProperty;
2
2
  var hs = (t, e, s) => e in t ? cs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
3
  var h = (t, e, s) => (hs(t, typeof e != "symbol" ? e + "" : e, s), s);
4
- import { createIdentifier as F, Inject as D, Injector as J } from "@wendellhu/redi";
5
- import { Subject as v, Observable as De, filter as _s, BehaviorSubject as k, combineLatest as ds } from "rxjs";
4
+ import { createIdentifier as F, Inject as D, Injector as q } from "@wendellhu/redi";
5
+ import { Subject as v, Observable as Me, filter as _s, BehaviorSubject as k, combineLatest as ds } from "rxjs";
6
6
  import { map as fs } from "rxjs/operators";
7
7
  function gs() {
8
8
  Es();
@@ -24,12 +24,12 @@ function Es() {
24
24
  clearTimeout(s);
25
25
  });
26
26
  }
27
- class Me {
27
+ class Ue {
28
28
  constructor() {
29
29
  h(this, "_data", []);
30
30
  }
31
31
  static create() {
32
- return new Me();
32
+ return new Ue();
33
33
  }
34
34
  add(e) {
35
35
  this._data.indexOf(e) > -1 || this._data.push(e);
@@ -42,12 +42,12 @@ class Me {
42
42
  return this._data;
43
43
  }
44
44
  }
45
- class Ue {
45
+ class Te {
46
46
  constructor() {
47
47
  h(this, "_data", /* @__PURE__ */ new Map());
48
48
  }
49
49
  static create() {
50
- return new Ue();
50
+ return new Te();
51
51
  }
52
52
  add(e, s) {
53
53
  this._data.has(e) || this._data.set(e, s);
@@ -110,7 +110,7 @@ class Os {
110
110
  this._pluginsRegisteredByBusiness.delete(e);
111
111
  }
112
112
  }
113
- function q(t, e) {
113
+ function J(t, e) {
114
114
  const s = t.indexOf(e);
115
115
  return s > -1 ? (t.splice(s, 1), !0) : !1;
116
116
  }
@@ -180,7 +180,7 @@ function ae(t) {
180
180
  };
181
181
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
182
182
  }
183
- function le(t, e) {
183
+ function ce(t, e) {
184
184
  var s = typeof Symbol == "function" && t[Symbol.iterator];
185
185
  if (!s)
186
186
  return t;
@@ -200,13 +200,13 @@ function le(t, e) {
200
200
  }
201
201
  return i;
202
202
  }
203
- function ce(t, e, s) {
203
+ function he(t, e, s) {
204
204
  if (s || arguments.length === 2)
205
205
  for (var n = 0, r = e.length, i; n < r; n++)
206
206
  (i || !(n in e)) && (i || (i = Array.prototype.slice.call(e, 0, n)), i[n] = e[n]);
207
207
  return t.concat(i || Array.prototype.slice.call(e));
208
208
  }
209
- function st(t) {
209
+ function nt(t) {
210
210
  return typeof t == "function";
211
211
  }
212
212
  function Ns(t) {
@@ -224,13 +224,13 @@ var Dt = Ns(function(t) {
224
224
  `) : "", this.name = "UnsubscriptionError", this.errors = s;
225
225
  };
226
226
  });
227
- function he(t, e) {
227
+ function _e(t, e) {
228
228
  if (t) {
229
229
  var s = t.indexOf(e);
230
230
  0 <= s && t.splice(s, 1);
231
231
  }
232
232
  }
233
- var Te = function() {
233
+ var Pe = function() {
234
234
  function t(e) {
235
235
  this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
236
236
  }
@@ -242,15 +242,15 @@ var Te = function() {
242
242
  if (o)
243
243
  if (this._parentage = null, Array.isArray(o))
244
244
  try {
245
- for (var u = ae(o), a = u.next(); !a.done; a = u.next()) {
246
- var c = a.value;
245
+ for (var u = ae(o), l = u.next(); !l.done; l = u.next()) {
246
+ var c = l.value;
247
247
  c.remove(this);
248
248
  }
249
249
  } catch (R) {
250
250
  e = { error: R };
251
251
  } finally {
252
252
  try {
253
- a && !a.done && (s = u.return) && s.call(u);
253
+ l && !l.done && (s = u.return) && s.call(u);
254
254
  } finally {
255
255
  if (e)
256
256
  throw e.error;
@@ -258,10 +258,10 @@ var Te = function() {
258
258
  }
259
259
  else
260
260
  o.remove(this);
261
- var l = this.initialTeardown;
262
- if (st(l))
261
+ var a = this.initialTeardown;
262
+ if (nt(a))
263
263
  try {
264
- l();
264
+ a();
265
265
  } catch (R) {
266
266
  i = R instanceof Dt ? R.errors : [R];
267
267
  }
@@ -272,9 +272,9 @@ var Te = function() {
272
272
  for (var d = ae(_), f = d.next(); !f.done; f = d.next()) {
273
273
  var g = f.value;
274
274
  try {
275
- _e(g);
275
+ de(g);
276
276
  } catch (R) {
277
- i = i != null ? i : [], R instanceof Dt ? i = ce(ce([], le(i)), le(R.errors)) : i.push(R);
277
+ i = i != null ? i : [], R instanceof Dt ? i = he(he([], ce(i)), ce(R.errors)) : i.push(R);
278
278
  }
279
279
  }
280
280
  } catch (R) {
@@ -295,7 +295,7 @@ var Te = function() {
295
295
  var s;
296
296
  if (e && e !== this)
297
297
  if (this.closed)
298
- _e(e);
298
+ de(e);
299
299
  else {
300
300
  if (e instanceof t) {
301
301
  if (e.closed || e._hasParent(this))
@@ -312,21 +312,21 @@ var Te = function() {
312
312
  this._parentage = Array.isArray(s) ? (s.push(e), s) : s ? [s, e] : e;
313
313
  }, t.prototype._removeParent = function(e) {
314
314
  var s = this._parentage;
315
- s === e ? this._parentage = null : Array.isArray(s) && he(s, e);
315
+ s === e ? this._parentage = null : Array.isArray(s) && _e(s, e);
316
316
  }, t.prototype.remove = function(e) {
317
317
  var s = this._finalizers;
318
- s && he(s, e), e instanceof t && e._removeParent(this);
318
+ s && _e(s, e), e instanceof t && e._removeParent(this);
319
319
  }, t.EMPTY = function() {
320
320
  var e = new t();
321
321
  return e.closed = !0, e;
322
322
  }(), t;
323
323
  }();
324
- Te.EMPTY;
325
- function Pe(t) {
326
- return t instanceof Te || t && "closed" in t && st(t.remove) && st(t.add) && st(t.unsubscribe);
324
+ Pe.EMPTY;
325
+ function xe(t) {
326
+ return t instanceof Pe || t && "closed" in t && nt(t.remove) && nt(t.add) && nt(t.unsubscribe);
327
327
  }
328
- function _e(t) {
329
- st(t) ? t() : t.unsubscribe();
328
+ function de(t) {
329
+ nt(t) ? t() : t.unsubscribe();
330
330
  }
331
331
  class Ss {
332
332
  /**
@@ -554,7 +554,7 @@ class te {
554
554
  }
555
555
  function N(t) {
556
556
  let e = !1;
557
- return Pe(t) ? {
557
+ return xe(t) ? {
558
558
  dispose: () => {
559
559
  e || (e = !0, t.unsubscribe());
560
560
  }
@@ -573,7 +573,7 @@ function Hi(t) {
573
573
  t.unsubscribe();
574
574
  });
575
575
  }
576
- class xe {
576
+ class He {
577
577
  constructor() {
578
578
  h(this, "_disposables", /* @__PURE__ */ new Set());
579
579
  }
@@ -593,10 +593,10 @@ class xe {
593
593
  class U {
594
594
  constructor() {
595
595
  h(this, "_disposed", !1);
596
- h(this, "_collection", new xe());
596
+ h(this, "_collection", new He());
597
597
  }
598
598
  disposeWithMe(e) {
599
- const s = Pe(e) ? N(e) : e;
599
+ const s = xe(e) ? N(e) : e;
600
600
  return this._collection.add(s);
601
601
  }
602
602
  dispose() {
@@ -612,7 +612,7 @@ class Fi extends U {
612
612
  super.dispose(), this.dispose$.next(), this.dispose$.complete();
613
613
  }
614
614
  }
615
- const ot = F("univer.context-service");
615
+ const ut = F("univer.context-service");
616
616
  class Ls extends U {
617
617
  constructor() {
618
618
  super(...arguments);
@@ -631,7 +631,7 @@ class Ls extends U {
631
631
  this._contextMap.set(s, n), this._contextChanged$.next({ [s]: n });
632
632
  }
633
633
  subscribeContextValue$(s) {
634
- return new De((n) => {
634
+ return new Me((n) => {
635
635
  const r = this._contextChanged$.pipe(_s((i) => typeof i[s] < "u")).subscribe((i) => n.next(i[s]));
636
636
  return this._contextMap.has(s) && n.next(this._contextMap.get(s)), () => r.unsubscribe();
637
637
  });
@@ -668,7 +668,7 @@ var Ds = Object.defineProperty, Ms = Object.getOwnPropertyDescriptor, Us = (t, e
668
668
  for (var r = n > 1 ? void 0 : n ? Ms(e, s) : e, i = t.length - 1, o; i >= 0; i--)
669
669
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
670
670
  return n && r && Ds(e, s, r), r;
671
- }, de = (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
+ }, fe = (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 || {});
672
672
  const bt = F("anywhere.command-service");
673
673
  class Ts {
674
674
  constructor() {
@@ -686,7 +686,7 @@ class Ts {
686
686
  return this._commands.has(e) ? [this._commands.get(e)] : null;
687
687
  }
688
688
  }
689
- let pt = class {
689
+ let Bt = class {
690
690
  constructor(t, e) {
691
691
  h(this, "_commandRegistry");
692
692
  h(this, "_beforeCommandExecutionListeners", []);
@@ -726,9 +726,9 @@ let pt = class {
726
726
  type: r.type,
727
727
  params: e
728
728
  }, o = this._pushCommandExecutionStack(i);
729
- this._beforeCommandExecutionListeners.forEach((a) => a(i, s));
729
+ this._beforeCommandExecutionListeners.forEach((l) => l(i, s));
730
730
  const u = await this._execute(r, e);
731
- return this._commandExecutedListeners.forEach((a) => a(i, s)), o.dispose(), u;
731
+ return this._commandExecutedListeners.forEach((l) => l(i, s)), o.dispose(), u;
732
732
  }
733
733
  throw new Error(`[CommandService]: command "${t}" is not registered.`);
734
734
  }
@@ -744,20 +744,20 @@ let pt = class {
744
744
  if (i.type === 2) {
745
745
  const c = As(
746
746
  this._commandExecutionStack,
747
- (l) => l.type === 0
747
+ (a) => a.type === 0
748
748
  /* COMMAND */
749
749
  );
750
750
  c && (o.params = (r = o.params) != null ? r : {}, o.params.trigger = c.id);
751
751
  }
752
752
  const u = this._pushCommandExecutionStack(o);
753
753
  this._beforeCommandExecutionListeners.forEach((c) => c(o, s));
754
- const a = this._syncExecute(i, e);
755
- return this._commandExecutedListeners.forEach((c) => c(o, s)), u.dispose(), a;
754
+ const l = this._syncExecute(i, e);
755
+ return this._commandExecutedListeners.forEach((c) => c(o, s)), u.dispose(), l;
756
756
  }
757
757
  throw new Error(`[CommandService]: command "${t}" is not registered.`);
758
758
  }
759
759
  _pushCommandExecutionStack(t) {
760
- return this._commandExecutionStack.push(t), N(() => q(this._commandExecutionStack, t));
760
+ return this._commandExecutionStack.push(t), N(() => J(this._commandExecutionStack, t));
761
761
  }
762
762
  _registerCommand(t) {
763
763
  return this._commandRegistry.registerCommand(t);
@@ -770,7 +770,7 @@ let pt = class {
770
770
  throw new Error("Command has registered as a single command.");
771
771
  s = e[0];
772
772
  } else {
773
- const r = new xe();
773
+ const r = new He();
774
774
  s = new Ps(t.id), r.add(this._commandRegistry.registerCommand(s)), r.add(
775
775
  N(() => {
776
776
  this._multiCommandDisposables.delete(t.id);
@@ -812,10 +812,10 @@ let pt = class {
812
812
  return s;
813
813
  }
814
814
  };
815
- pt = Us([
816
- de(0, D(J)),
817
- de(1, y)
818
- ], pt);
815
+ Bt = Us([
816
+ fe(0, D(q)),
817
+ fe(1, y)
818
+ ], Bt);
819
819
  class Ps {
820
820
  constructor(e) {
821
821
  h(this, "name");
@@ -826,7 +826,7 @@ class Ps {
826
826
  h(this, "handler", async (e, s) => {
827
827
  if (!this._implementations.length)
828
828
  return !1;
829
- const n = e.get(y), r = e.get(ot), i = e.get(J);
829
+ const n = e.get(y), r = e.get(ut), i = e.get(q);
830
830
  for (const o of this._implementations) {
831
831
  const u = o.command.preconditions;
832
832
  if ((!u || u && u(r)) && (n.debug("[MultiCommand]", `executing implementation "${o.command.name}".`), await i.invoke(o.command.handler, s)))
@@ -848,7 +848,7 @@ class Ps {
848
848
  return this._implementations.length > 0;
849
849
  }
850
850
  }
851
- function He(t, e, s) {
851
+ function Fe(t, e, s) {
852
852
  const n = t.map((r) => () => e.syncExecuteCommand(r.id, r.params, s));
853
853
  return Cs(n);
854
854
  }
@@ -888,8 +888,8 @@ class Ws extends U {
888
888
  this._error$.next({ errorKey: s });
889
889
  }
890
890
  }
891
- const Bi = "__default_document_sub_component_id20231101__";
892
- class Bs {
891
+ const pi = "__default_document_sub_component_id20231101__";
892
+ class ps {
893
893
  constructor() {
894
894
  h(this, "_managerInfo", /* @__PURE__ */ new Map());
895
895
  /**
@@ -978,7 +978,7 @@ class Bs {
978
978
  return n == null ? [] : (s == null || s.delete(e.floatingObjectId), [{ ...e, floatingObject: n }]);
979
979
  }
980
980
  }
981
- const ps = F(
981
+ const Bs = F(
982
982
  "univer.floating-object.service"
983
983
  );
984
984
  class Gs {
@@ -1025,7 +1025,7 @@ function ks(t, e) {
1025
1025
  }
1026
1026
  return i;
1027
1027
  }
1028
- function pi(t, e) {
1028
+ function Bi(t, e) {
1029
1029
  let s = t.length - 1;
1030
1030
  return e < 0 ? -1 : e < t[0] ? 0 : e > t[t.length - 1] ? Number.POSITIVE_INFINITY : (t.length < 40 || e <= t[20] || e >= t[s - 20] ? s = ks(t, e) : s = $s(t, e), s);
1031
1031
  }
@@ -1033,7 +1033,7 @@ function Gi(t) {
1033
1033
  const e = new Blob([t], { type: "text/javascript" });
1034
1034
  return window.URL.createObjectURL(e);
1035
1035
  }
1036
- var Vs = /* @__PURE__ */ ((t) => (t[t.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", t[t.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", t))(Vs || {}), I = /* @__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))(I || {}), js = /* @__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))(js || {}), H = /* @__PURE__ */ ((t) => (t[t.UNSUPPORTED = 0] = "UNSUPPORTED", t[t.RGB = 1] = "RGB", t[t.HEX = 2] = "HEX", t[t.THEME = 3] = "THEME", t))(H || {}), Ys = /* @__PURE__ */ ((t) => (t[t.ON = 0] = "ON", t[t.OFF = 1] = "OFF", t))(Ys || {}), Ks = /* @__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))(Ks || {}), zs = /* @__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))(zs || {}), Xs = /* @__PURE__ */ ((t) => (t[t.DOCUMENT = 0] = "DOCUMENT", t[t.PROJECT = 1] = "PROJECT", t))(Xs || {}), Qs = /* @__PURE__ */ ((t) => (t[t.COLUMNS = 0] = "COLUMNS", t[t.ROWS = 1] = "ROWS", t))(Qs || {}), qs = /* @__PURE__ */ ((t) => (t[t.UP = 0] = "UP", t[t.RIGHT = 1] = "RIGHT", t[t.DOWN = 2] = "DOWN", t[t.LEFT = 3] = "LEFT", t))(qs || {});
1036
+ var Vs = /* @__PURE__ */ ((t) => (t[t.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", t[t.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", t))(Vs || {}), I = /* @__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))(I || {}), js = /* @__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))(js || {}), H = /* @__PURE__ */ ((t) => (t[t.UNSUPPORTED = 0] = "UNSUPPORTED", t[t.RGB = 1] = "RGB", t[t.HEX = 2] = "HEX", t[t.THEME = 3] = "THEME", t))(H || {}), Ys = /* @__PURE__ */ ((t) => (t[t.ON = 0] = "ON", t[t.OFF = 1] = "OFF", t))(Ys || {}), Ks = /* @__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))(Ks || {}), zs = /* @__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))(zs || {}), Xs = /* @__PURE__ */ ((t) => (t[t.DOCUMENT = 0] = "DOCUMENT", t[t.PROJECT = 1] = "PROJECT", t))(Xs || {}), Qs = /* @__PURE__ */ ((t) => (t[t.COLUMNS = 0] = "COLUMNS", t[t.ROWS = 1] = "ROWS", t))(Qs || {}), Js = /* @__PURE__ */ ((t) => (t[t.UP = 0] = "UP", t[t.RIGHT = 1] = "RIGHT", t[t.DOWN = 2] = "DOWN", t[t.LEFT = 3] = "LEFT", t))(Js || {});
1037
1037
  function $i(t) {
1038
1038
  switch (t) {
1039
1039
  case 3:
@@ -1046,7 +1046,7 @@ function $i(t) {
1046
1046
  return 0;
1047
1047
  }
1048
1048
  }
1049
- var Js = /* @__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))(Js || {}), Zs = /* @__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))(Zs || {}), se = /* @__PURE__ */ ((t) => (t.EN_US = "enUS", t.ZH_CN = "zhCN", t))(se || {}), ys = /* @__PURE__ */ ((t) => (t[t.RANGE = 0] = "RANGE", t[t.SHEET = 1] = "SHEET", t))(ys || {}), tn = /* @__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))(tn || {}), en = /* @__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))(en || {}), sn = /* @__PURE__ */ ((t) => (t[t.GRID = 0] = "GRID", t[t.KANBAN = 1] = "KANBAN", t[t.GANTT = 2] = "GANTT", t))(sn || {}), Nt = /* @__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))(Nt || {}), nn = /* @__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))(nn || {}), Z = /* @__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))(Z || {}), nt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.TOP = 1] = "TOP", t[t.MIDDLE = 2] = "MIDDLE", t[t.BOTTOM = 3] = "BOTTOM", t))(nt || {}), rt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.OVERFLOW = 1] = "OVERFLOW", t[t.CLIP = 2] = "CLIP", t[t.WRAP = 3] = "WRAP", t))(rt || {}), Gt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ITALIC = 1] = "ITALIC", t))(Gt || {}), $t = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.BOLD = 1] = "BOLD", t))($t || {}), kt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 1] = "NORMAL", t[t.SUBSCRIPT = 2] = "SUBSCRIPT", t[t.SUPERSCRIPT = 3] = "SUPERSCRIPT", t))(kt || {}), O = /* @__PURE__ */ ((t) => (t[t.FALSE = 0] = "FALSE", t[t.TRUE = 1] = "TRUE", t))(O || {}), mt = /* @__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))(mt || {}), T = /* @__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))(T || {}), ne = /* @__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))(ne || {});
1049
+ var qs = /* @__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))(qs || {}), Zs = /* @__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))(Zs || {}), se = /* @__PURE__ */ ((t) => (t.EN_US = "enUS", t.ZH_CN = "zhCN", t))(se || {}), ys = /* @__PURE__ */ ((t) => (t[t.RANGE = 0] = "RANGE", t[t.SHEET = 1] = "SHEET", t))(ys || {}), tn = /* @__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))(tn || {}), en = /* @__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))(en || {}), sn = /* @__PURE__ */ ((t) => (t[t.GRID = 0] = "GRID", t[t.KANBAN = 1] = "KANBAN", t[t.GANTT = 2] = "GANTT", t))(sn || {}), Nt = /* @__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))(Nt || {}), nn = /* @__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))(nn || {}), Z = /* @__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))(Z || {}), rt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.TOP = 1] = "TOP", t[t.MIDDLE = 2] = "MIDDLE", t[t.BOTTOM = 3] = "BOTTOM", t))(rt || {}), it = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.OVERFLOW = 1] = "OVERFLOW", t[t.CLIP = 2] = "CLIP", t[t.WRAP = 3] = "WRAP", t))(it || {}), Gt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ITALIC = 1] = "ITALIC", t))(Gt || {}), $t = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.BOLD = 1] = "BOLD", t))($t || {}), kt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 1] = "NORMAL", t[t.SUBSCRIPT = 2] = "SUBSCRIPT", t[t.SUPERSCRIPT = 3] = "SUPERSCRIPT", t))(kt || {}), O = /* @__PURE__ */ ((t) => (t[t.FALSE = 0] = "FALSE", t[t.TRUE = 1] = "TRUE", t))(O || {}), mt = /* @__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))(mt || {}), T = /* @__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))(T || {}), ne = /* @__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))(ne || {});
1050
1050
  const rn = {
1051
1051
  [ne.OFFICE]: {
1052
1052
  [T.ACCENT1]: "#4472C4",
@@ -1119,7 +1119,7 @@ class tt {
1119
1119
  }
1120
1120
  static hexToRgbString(e) {
1121
1121
  const s = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
1122
- e = e.replace(s, (i, o, u, a) => o + o + u + u + a + a);
1122
+ e = e.replace(s, (i, o, u, l) => o + o + u + u + l + l);
1123
1123
  const n = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
1124
1124
  let r = null;
1125
1125
  if (n) {
@@ -1150,12 +1150,12 @@ class on {
1150
1150
  h(this, "_hue", 0);
1151
1151
  h(this, "_lightness", 0);
1152
1152
  h(this, "_alpha", 0);
1153
- 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)), u = Math.max(s, Math.max(n, r)), a = u - o;
1153
+ 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)), u = Math.max(s, Math.max(n, r)), l = u - o;
1154
1154
  if (u === o) {
1155
1155
  this._hue = 0, this._saturation = 0, this._lightness = u;
1156
1156
  return;
1157
1157
  }
1158
- this._lightness = (o + u) / 2, this._lightness < 0.5 ? this._saturation = a / (u + o) : this._saturation = a / (2 - u - o), s === u && (this._hue = (n - r) / a), n === u && (this._hue = 2 + (r - s) / a), r === u && (this._hue = 4 + (s - n) / a), this._hue *= 60, this._hue < 0 && (this._hue += 360), this._alpha = i;
1158
+ this._lightness = (o + u) / 2, this._lightness < 0.5 ? this._saturation = l / (u + o) : this._saturation = l / (2 - u - o), s === u && (this._hue = (n - r) / l), n === u && (this._hue = 2 + (r - s) / l), r === u && (this._hue = 4 + (s - n) / l), this._hue *= 60, this._hue < 0 && (this._hue += 360), this._alpha = i;
1159
1159
  }
1160
1160
  asRgbColor() {
1161
1161
  const e = new re();
@@ -1165,7 +1165,7 @@ class on {
1165
1165
  ), e.asRgbColor();
1166
1166
  let s;
1167
1167
  this._lightness < 0.5 ? s = this._lightness * (1 + this._saturation) : s = this._lightness + this._saturation - this._lightness * this._saturation;
1168
- const n = 2 * this._lightness - s, r = this._hue / 360, i = r + 1 / 3, o = this.setColor(s, n, i), u = this.setColor(s, n, r), a = r - 1 / 3, c = this.setColor(s, n, a);
1168
+ const n = 2 * this._lightness - s, r = this._hue / 360, i = r + 1 / 3, o = this.setColor(s, n, i), u = this.setColor(s, n, r), l = r - 1 / 3, c = this.setColor(s, n, l);
1169
1169
  return e.setRgbColor(
1170
1170
  `rgba(${Math.round(o * 255)},${Math.round(u * 255)},${Math.round(c * 255)},${this._alpha * 255})`
1171
1171
  ), e.asRgbColor();
@@ -1201,8 +1201,8 @@ const x = class x extends tt {
1201
1201
  h(this, "_alpha");
1202
1202
  let r = s.match(x.RGBA_EXTRACT);
1203
1203
  if (r) {
1204
- const i = +r[1], o = +r[2], u = +r[3], a = +r[4];
1205
- this._cssString = s, this._red = i, this._green = o, this._blue = u, this._alpha = a;
1204
+ const i = +r[1], o = +r[2], u = +r[3], l = +r[4];
1205
+ this._cssString = s, this._red = i, this._green = o, this._blue = u, this._alpha = l;
1206
1206
  return;
1207
1207
  }
1208
1208
  if (r = s.match(x.RGB_EXTRACT), r) {
@@ -1297,7 +1297,7 @@ const K = class K extends tt {
1297
1297
  };
1298
1298
  h(K, "_cacheThemeColor", /* @__PURE__ */ new Map());
1299
1299
  let jt = K;
1300
- const ki = "rgb(", Vi = "rgba(", fe = {
1300
+ const ki = "rgb(", Vi = "rgba(", ge = {
1301
1301
  aliceBlue: [240, 248, 255],
1302
1302
  antiqueWhite: [250, 235, 215],
1303
1303
  aqua: [0, 255, 255],
@@ -1448,7 +1448,7 @@ const ki = "rgb(", Vi = "rgba(", fe = {
1448
1448
  yellow: [255, 255, 0],
1449
1449
  yellowGreen: [154, 205, 5]
1450
1450
  };
1451
- class B {
1451
+ class p {
1452
1452
  constructor(e) {
1453
1453
  h(this, "_color");
1454
1454
  h(this, "_rgbColor");
@@ -1457,11 +1457,11 @@ class B {
1457
1457
  this._setNullColor();
1458
1458
  return;
1459
1459
  }
1460
- if (e instanceof B) {
1460
+ if (e instanceof p) {
1461
1461
  this._color = { ...e._color }, this._rgbColor = { ...e._rgbColor };
1462
1462
  return;
1463
1463
  }
1464
- const s = Fe(e);
1464
+ const s = We(e);
1465
1465
  if (s == null) {
1466
1466
  this._setNullColor();
1467
1467
  return;
@@ -1475,18 +1475,18 @@ class B {
1475
1475
  this._rgbColor = n, this._isValid = !0;
1476
1476
  }
1477
1477
  static mix(e, s, n) {
1478
- var c, l;
1478
+ var c, a;
1479
1479
  n = Math.min(1, Math.max(0, n));
1480
- const r = new B(e).toRgb(), i = new B(s).toRgb(), o = (c = r.a) != null ? c : 1, u = (l = i.a) != null ? l : 1, a = {
1480
+ const r = new p(e).toRgb(), i = new p(s).toRgb(), o = (c = r.a) != null ? c : 1, u = (a = i.a) != null ? a : 1, l = {
1481
1481
  r: (i.r - r.r) * n + r.r,
1482
1482
  g: (i.g - r.g) * n + r.g,
1483
1483
  b: (i.b - r.b) * n + r.b,
1484
1484
  a: (u - o) * n + o
1485
1485
  };
1486
- return new B(a);
1486
+ return new p(l);
1487
1487
  }
1488
1488
  static getContrastRatio(e, s) {
1489
- const n = new B(e).getLuminance(), r = new B(s).getLuminance();
1489
+ const n = new p(e).getLuminance(), r = new p(s).getLuminance();
1490
1490
  return (Math.max(n, r) + 0.05) / (Math.min(n, r) + 0.05);
1491
1491
  }
1492
1492
  get isValid() {
@@ -1519,14 +1519,14 @@ class B {
1519
1519
  }
1520
1520
  lighten(e = 10) {
1521
1521
  const s = this.toHsl();
1522
- return s.l += e, s.l = Math.min(Math.max(s.l, 0), 100), new B(s);
1522
+ return s.l += e, s.l = Math.min(Math.max(s.l, 0), 100), new p(s);
1523
1523
  }
1524
1524
  darken(e = 10) {
1525
1525
  const s = this.toHsl();
1526
- return s.l -= e, s.l = Math.min(Math.max(s.l, 0), 100), new B(s);
1526
+ return s.l -= e, s.l = Math.min(Math.max(s.l, 0), 100), new p(s);
1527
1527
  }
1528
1528
  setAlpha(e) {
1529
- return new B({ ...this._rgbColor, a: e });
1529
+ return new p({ ...this._rgbColor, a: e });
1530
1530
  }
1531
1531
  getLuminance() {
1532
1532
  let { r: e, g: s, b: n } = this.toRgb();
@@ -1560,7 +1560,7 @@ class B {
1560
1560
  };
1561
1561
  }
1562
1562
  }
1563
- const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4), Fe = (t) => {
1563
+ const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4), We = (t) => {
1564
1564
  if (Rn(t)) {
1565
1565
  if ("r" in t) {
1566
1566
  const n = {
@@ -1586,8 +1586,8 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03
1586
1586
  return t.a !== void 0 && (s.a = t.a), s;
1587
1587
  }
1588
1588
  const e = t.trim();
1589
- if (fe[e]) {
1590
- const s = fe[e], n = {
1589
+ if (ge[e]) {
1590
+ const s = ge[e], n = {
1591
1591
  r: Math.round(s[0]),
1592
1592
  g: Math.round(s[1]),
1593
1593
  b: Math.round(s[2])
@@ -1597,9 +1597,9 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03
1597
1597
  if (e.startsWith("#"))
1598
1598
  return un(e);
1599
1599
  if (e.startsWith("rgb"))
1600
- return an(e);
1601
- if (e.startsWith("hsl"))
1602
1600
  return ln(e);
1601
+ if (e.startsWith("hsl"))
1602
+ return an(e);
1603
1603
  if (e.startsWith("hsv"))
1604
1604
  return cn(e);
1605
1605
  }, un = (t) => {
@@ -1614,7 +1614,7 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03
1614
1614
  b: Number.parseInt(n[2], 16)
1615
1615
  };
1616
1616
  return n.length > 3 && (r.a = Number.parseInt(n[3], 16) / 255), r;
1617
- }, an = (t) => {
1617
+ }, ln = (t) => {
1618
1618
  const e = t.indexOf("(");
1619
1619
  if (e === -1)
1620
1620
  throw new Error(`The color '${t}' is illegal rgb color`);
@@ -1627,7 +1627,7 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03
1627
1627
  b: Number.parseInt(s[2], 10)
1628
1628
  };
1629
1629
  return s.length > 3 && (n.a = Number.parseFloat(s[3])), n;
1630
- }, ln = (t) => {
1630
+ }, an = (t) => {
1631
1631
  const e = t.indexOf("(");
1632
1632
  if (e === -1)
1633
1633
  throw new Error(`The color '${t}' is illegal hsl color`);
@@ -1654,7 +1654,7 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03
1654
1654
  };
1655
1655
  return s.length > 3 && (n.a = Number.parseFloat(s[3])), n;
1656
1656
  }, hn = (t) => {
1657
- const e = Fe(t);
1657
+ const e = We(t);
1658
1658
  if (e != null)
1659
1659
  return "r" in e ? e : "l" in e ? _n(e) : dn(e);
1660
1660
  }, Ut = (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), _n = (t) => {
@@ -1664,8 +1664,8 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03
1664
1664
  if (s === 0)
1665
1665
  r = i = o = n;
1666
1666
  else {
1667
- const a = n < 0.5 ? n * (1 + s) : n + s - n * s, c = 2 * n - a;
1668
- r = Ut(c, a, e + 1 / 3), i = Ut(c, a, e), o = Ut(c, a, e - 1 / 3);
1667
+ const l = n < 0.5 ? n * (1 + s) : n + s - n * s, c = 2 * n - l;
1668
+ r = Ut(c, l, e + 1 / 3), i = Ut(c, l, e), o = Ut(c, l, e - 1 / 3);
1669
1669
  }
1670
1670
  const u = {
1671
1671
  r: Math.round(r * 255),
@@ -1676,8 +1676,8 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03
1676
1676
  }, dn = (t) => {
1677
1677
  let { h: e, s, v: n } = t;
1678
1678
  e = e / 360 * 6, s /= 100, n /= 100;
1679
- const r = Math.floor(e), i = e - r, o = n * (1 - s), u = n * (1 - i * s), a = n * (1 - (1 - i) * s), c = r % 6, l = [n, u, o, o, a, n][c], _ = [a, n, n, u, o, o][c], d = [o, o, a, n, n, u][c], f = {
1680
- r: l * 255,
1679
+ const r = Math.floor(e), i = e - r, o = n * (1 - s), u = n * (1 - i * s), l = n * (1 - (1 - i) * s), c = r % 6, a = [n, u, o, o, l, n][c], _ = [l, n, n, u, o, o][c], d = [o, o, l, n, n, u][c], f = {
1680
+ r: a * 255,
1681
1681
  g: _ * 255,
1682
1682
  b: d * 255
1683
1683
  };
@@ -1686,27 +1686,27 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03
1686
1686
  let { r: e, g: s, b: n } = t;
1687
1687
  e /= 255, s /= 255, n /= 255;
1688
1688
  const r = Math.max(e, s, n), i = Math.min(e, s, n), o = (r + i) / 2;
1689
- let u, a;
1689
+ let u, l;
1690
1690
  if (r === i)
1691
- u = a = 0;
1691
+ u = l = 0;
1692
1692
  else {
1693
- const l = r - i;
1694
- switch (a = o > 0.5 ? l / (2 - r - i) : l / (r + i), r) {
1693
+ const a = r - i;
1694
+ switch (l = o > 0.5 ? a / (2 - r - i) : a / (r + i), r) {
1695
1695
  case e:
1696
- u = (s - n) / l + (s < n ? 6 : 0);
1696
+ u = (s - n) / a + (s < n ? 6 : 0);
1697
1697
  break;
1698
1698
  case s:
1699
- u = (n - e) / l + 2;
1699
+ u = (n - e) / a + 2;
1700
1700
  break;
1701
1701
  default:
1702
- u = (e - s) / l + 4;
1702
+ u = (e - s) / a + 4;
1703
1703
  break;
1704
1704
  }
1705
1705
  u /= 6;
1706
1706
  }
1707
1707
  const c = {
1708
1708
  h: Math.round(u * 360),
1709
- s: Math.round(a * 100),
1709
+ s: Math.round(l * 100),
1710
1710
  l: Math.round(o * 100)
1711
1711
  };
1712
1712
  return t.a !== void 0 && (c.a = t.a), c;
@@ -1715,29 +1715,29 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03
1715
1715
  e /= 255, s /= 255, n /= 255;
1716
1716
  const r = Math.max(e, s, n), i = Math.min(e, s, n);
1717
1717
  let o;
1718
- const u = r, a = r - i, c = r === 0 ? 0 : a / r;
1718
+ const u = r, l = r - i, c = r === 0 ? 0 : l / r;
1719
1719
  if (r === i)
1720
1720
  o = 0;
1721
1721
  else {
1722
1722
  switch (r) {
1723
1723
  case e:
1724
- o = (s - n) / a + (s < n ? 6 : 0);
1724
+ o = (s - n) / l + (s < n ? 6 : 0);
1725
1725
  break;
1726
1726
  case s:
1727
- o = (n - e) / a + 2;
1727
+ o = (n - e) / l + 2;
1728
1728
  break;
1729
1729
  default:
1730
- o = (e - s) / a + 4;
1730
+ o = (e - s) / l + 4;
1731
1731
  break;
1732
1732
  }
1733
1733
  o /= 6;
1734
1734
  }
1735
- const l = {
1735
+ const a = {
1736
1736
  h: Math.round(o * 360),
1737
1737
  s: Math.round(c * 100),
1738
1738
  v: Math.round(u * 100)
1739
1739
  };
1740
- return t.a !== void 0 && (l.a = t.a), l;
1740
+ return t.a !== void 0 && (a.a = t.a), a;
1741
1741
  }, En = (t) => t == null, Rn = (t) => !En(t) && typeof t == "object";
1742
1742
  var M = /* @__PURE__ */ ((t) => (t[t.COVER = 0] = "COVER", t[t.REPLACE = 1] = "REPLACE", t[t.INTERSECTION = 2] = "INTERSECTION", t))(M || {});
1743
1743
  const mn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
@@ -1821,13 +1821,13 @@ class E {
1821
1821
  return "Unknown system";
1822
1822
  }
1823
1823
  static getBrowserType() {
1824
- const e = navigator.userAgent, s = e.indexOf("Opera") > -1, n = e.indexOf("compatible") > -1 && e.indexOf("MSIE") > -1 && !s, r = e.indexOf("Trident") > -1 && e.indexOf("rv:11.0") > -1, i = e.indexOf("Edge") > -1, o = e.indexOf("Firefox") > -1, u = e.indexOf("Safari") > -1 && e.indexOf("Chrome") === -1, a = e.indexOf("Chrome") > -1 && e.indexOf("Safari") > -1;
1824
+ const e = navigator.userAgent, s = e.indexOf("Opera") > -1, n = e.indexOf("compatible") > -1 && e.indexOf("MSIE") > -1 && !s, r = e.indexOf("Trident") > -1 && e.indexOf("rv:11.0") > -1, i = e.indexOf("Edge") > -1, o = e.indexOf("Firefox") > -1, u = e.indexOf("Safari") > -1 && e.indexOf("Chrome") === -1, l = e.indexOf("Chrome") > -1 && e.indexOf("Safari") > -1;
1825
1825
  if (n) {
1826
1826
  new RegExp("MSIE (\\d+\\.\\d+);").test(e);
1827
- const l = Number.parseFloat(RegExp.$1);
1828
- return l === 7 ? "IE7" : l === 8 ? "IE8" : l === 9 ? "IE9" : l === 10 ? "IE10" : "0";
1827
+ const a = Number.parseFloat(RegExp.$1);
1828
+ return a === 7 ? "IE7" : a === 8 ? "IE8" : a === 9 ? "IE9" : a === 10 ? "IE10" : "0";
1829
1829
  }
1830
- return o ? "FF" : s ? "Opera" : u ? "Safari" : a ? "Chrome" : i ? "Edge" : r ? "IE11" : "Unknown browser";
1830
+ return o ? "FF" : s ? "Opera" : u ? "Safari" : l ? "Chrome" : i ? "Edge" : r ? "IE11" : "Unknown browser";
1831
1831
  }
1832
1832
  static generateRandomId(e = 21) {
1833
1833
  return On(e);
@@ -1838,53 +1838,53 @@ class E {
1838
1838
  static deepMerge(e, ...s) {
1839
1839
  s.forEach((o) => o && i(o));
1840
1840
  function n(o, u) {
1841
- o.forEach((a, c) => {
1842
- var l, _;
1843
- if (E.isArray(a)) {
1844
- const d = (l = u[c]) != null ? l : [];
1845
- u[c] = d, n(a, d);
1841
+ o.forEach((l, c) => {
1842
+ var a, _;
1843
+ if (E.isArray(l)) {
1844
+ const d = (a = u[c]) != null ? a : [];
1845
+ u[c] = d, n(l, d);
1846
1846
  return;
1847
1847
  }
1848
- if (E.isObject(a)) {
1848
+ if (E.isObject(l)) {
1849
1849
  const d = (_ = u[c]) != null ? _ : {};
1850
- u[c] = d, r(a, d);
1850
+ u[c] = d, r(l, d);
1851
1851
  return;
1852
1852
  }
1853
- u[c] = a;
1853
+ u[c] = l;
1854
1854
  });
1855
1855
  }
1856
1856
  function r(o, u) {
1857
- Object.keys(o).forEach((a) => {
1858
- var l, _;
1859
- const c = o[a];
1857
+ Object.keys(o).forEach((l) => {
1858
+ var a, _;
1859
+ const c = o[l];
1860
1860
  if (E.isObject(c)) {
1861
- const d = (l = u[a]) != null ? l : {};
1862
- u[a] = d, r(c, d);
1861
+ const d = (a = u[l]) != null ? a : {};
1862
+ u[l] = d, r(c, d);
1863
1863
  return;
1864
1864
  }
1865
1865
  if (E.isArray(c)) {
1866
- const d = (_ = u[a]) != null ? _ : [];
1867
- u[a] = d, n(c, d);
1866
+ const d = (_ = u[l]) != null ? _ : [];
1867
+ u[l] = d, n(c, d);
1868
1868
  return;
1869
1869
  }
1870
- u[a] = c;
1870
+ u[l] = c;
1871
1871
  });
1872
1872
  }
1873
1873
  function i(o) {
1874
1874
  Object.keys(o).forEach((u) => {
1875
- var c, l;
1876
- const a = o[u];
1877
- if (E.isArray(a)) {
1875
+ var c, a;
1876
+ const l = o[u];
1877
+ if (E.isArray(l)) {
1878
1878
  const _ = (c = e[u]) != null ? c : [];
1879
- e[u] = _, n(a, _);
1879
+ e[u] = _, n(l, _);
1880
1880
  return;
1881
1881
  }
1882
- if (E.isObject(a)) {
1883
- const _ = (l = e[u]) != null ? l : {};
1884
- e[u] = _, r(a, _);
1882
+ if (E.isObject(l)) {
1883
+ const _ = (a = e[u]) != null ? a : {};
1884
+ e[u] = _, r(l, _);
1885
1885
  return;
1886
1886
  }
1887
- e[u] = a;
1887
+ e[u] = l;
1888
1888
  });
1889
1889
  }
1890
1890
  return e;
@@ -1894,27 +1894,27 @@ class E {
1894
1894
  }
1895
1895
  static diffValue(e, s) {
1896
1896
  function n(o, u) {
1897
- const a = E.getValueType(o), c = E.getValueType(u);
1898
- return a !== c ? !1 : E.isArray(o) ? r(o, u) : E.isObject(o) ? i(o, u) : E.isDate(o) ? o.getTime() === u.getTime() : E.isRegExp(o) ? o.toString() === u.toString() : o === u;
1897
+ const l = E.getValueType(o), c = E.getValueType(u);
1898
+ return l !== c ? !1 : E.isArray(o) ? r(o, u) : E.isObject(o) ? i(o, u) : E.isDate(o) ? o.getTime() === u.getTime() : E.isRegExp(o) ? o.toString() === u.toString() : o === u;
1899
1899
  }
1900
1900
  function r(o, u) {
1901
1901
  if (e.length !== s.length)
1902
1902
  return !1;
1903
- for (let a = 0, c = o.length; a < c; a++) {
1904
- const l = o[a], _ = u[a];
1905
- if (!n(l, _))
1903
+ for (let l = 0, c = o.length; l < c; l++) {
1904
+ const a = o[l], _ = u[l];
1905
+ if (!n(a, _))
1906
1906
  return !1;
1907
1907
  }
1908
1908
  return !0;
1909
1909
  }
1910
1910
  function i(o, u) {
1911
- const a = Object.keys(o), c = Object.keys(u);
1912
- if (a.length !== c.length)
1911
+ const l = Object.keys(o), c = Object.keys(u);
1912
+ if (l.length !== c.length)
1913
1913
  return !1;
1914
- for (const l of a) {
1915
- if (!c.includes(l))
1914
+ for (const a of l) {
1915
+ if (!c.includes(a))
1916
1916
  return !1;
1917
- const _ = o[l], d = u[l];
1917
+ const _ = o[a], d = u[a];
1918
1918
  if (!n(_, d))
1919
1919
  return !1;
1920
1920
  }
@@ -2156,7 +2156,7 @@ function ji(t) {
2156
2156
  if (!t)
2157
2157
  return;
2158
2158
  const { actualRow: e, actualColumn: s, isMerged: n, isMergedMainCell: r, mergeInfo: i } = t;
2159
- let { startY: o, endY: u, startX: a, endX: c } = t, l = e, _ = s, d = e, f = s;
2159
+ let { startY: o, endY: u, startX: l, endX: c } = t, a = e, _ = s, d = e, f = s;
2160
2160
  if (n && i) {
2161
2161
  const {
2162
2162
  startRow: g,
@@ -2165,19 +2165,19 @@ function ji(t) {
2165
2165
  endColumn: S,
2166
2166
  startY: W,
2167
2167
  endY: G,
2168
- startX: et,
2169
- endX: ls
2168
+ startX: st,
2169
+ endX: as
2170
2170
  } = i;
2171
- l = g, _ = R, d = w, f = S, o = W, u = G, a = et, c = ls;
2171
+ a = g, _ = R, d = w, f = S, o = W, u = G, l = st, c = as;
2172
2172
  }
2173
- return r && (o = i.startY, u = i.endY, a = i.startX, c = i.endX, d = i.endRow, f = i.endColumn), {
2174
- startRow: l,
2173
+ return r && (o = i.startY, u = i.endY, l = i.startX, c = i.endX, d = i.endRow, f = i.endColumn), {
2174
+ startRow: a,
2175
2175
  startColumn: _,
2176
2176
  endRow: d,
2177
2177
  endColumn: f,
2178
2178
  startY: o,
2179
2179
  endY: u,
2180
- startX: a,
2180
+ startX: l,
2181
2181
  endX: c
2182
2182
  };
2183
2183
  }
@@ -2192,12 +2192,12 @@ function Yi(t) {
2192
2192
  startRow: i,
2193
2193
  startColumn: o,
2194
2194
  endRow: u,
2195
- endColumn: a
2195
+ endColumn: l
2196
2196
  } = t;
2197
- let c = e, l = s, _ = e, d = s;
2198
- return (n || r) && (c = i, l = o, _ = u, d = a), {
2197
+ let c = e, a = s, _ = e, d = s;
2198
+ return (n || r) && (c = i, a = o, _ = u, d = l), {
2199
2199
  startRow: c,
2200
- startColumn: l,
2200
+ startColumn: a,
2201
2201
  endRow: _,
2202
2202
  endColumn: d
2203
2203
  };
@@ -2224,7 +2224,7 @@ function Xi(t) {
2224
2224
  function Qi(t) {
2225
2225
  return "";
2226
2226
  }
2227
- function qi(t, e = !1) {
2227
+ function Ji(t, e = !1) {
2228
2228
  var i;
2229
2229
  let s = "";
2230
2230
  const n = /* @__PURE__ */ new Map([
@@ -2285,8 +2285,8 @@ function qi(t, e = !1) {
2285
2285
  [
2286
2286
  "bd",
2287
2287
  () => {
2288
- var o, u, a, c, l, _, d, f, g, R, w, S;
2289
- (o = t.bd) != null && o.b && (s += `border-bottom: ${dt((u = t.bd) == null ? void 0 : u.b.s)} ${(a = $(t.bd.b.cl)) != null ? a : ""}; `), (c = t.bd) != null && c.t && (s += `border-top: ${dt((l = t.bd) == null ? void 0 : l.t.s)} ${(_ = $(t.bd.t.cl)) != null ? _ : ""}; `), (d = t.bd) != null && d.r && (s += `border-right: ${dt((f = t.bd) == null ? void 0 : f.r.s)} ${(g = $(t.bd.r.cl)) != null ? g : ""}; `), (R = t.bd) != null && R.l && (s += `border-left: ${dt((w = t.bd) == null ? void 0 : w.l.s)} ${(S = $(t.bd.l.cl)) != null ? S : ""}; `);
2288
+ var o, u, l, c, a, _, d, f, g, R, w, S;
2289
+ (o = t.bd) != null && o.b && (s += `border-bottom: ${dt((u = t.bd) == null ? void 0 : u.b.s)} ${(l = $(t.bd.b.cl)) != null ? l : ""}; `), (c = t.bd) != null && c.t && (s += `border-top: ${dt((a = t.bd) == null ? void 0 : a.t.s)} ${(_ = $(t.bd.t.cl)) != null ? _ : ""}; `), (d = t.bd) != null && d.r && (s += `border-right: ${dt((f = t.bd) == null ? void 0 : f.r.s)} ${(g = $(t.bd.r.cl)) != null ? g : ""}; `), (R = t.bd) != null && R.l && (s += `border-left: ${dt((w = t.bd) == null ? void 0 : w.l.s)} ${(S = $(t.bd.l.cl)) != null ? S : ""}; `);
2290
2290
  }
2291
2291
  ],
2292
2292
  [
@@ -2310,8 +2310,8 @@ function qi(t, e = !1) {
2310
2310
  [
2311
2311
  "tr",
2312
2312
  () => {
2313
- var o, u, a;
2314
- t.tr && (s += `data-rotate: (${(o = t.tr) == null ? void 0 : o.a}deg${(u = t.tr) != null && u.v ? ` ,${(a = t.tr) == null ? void 0 : a.v}` : ""});`);
2313
+ var o, u, l;
2314
+ t.tr && (s += `data-rotate: (${(o = t.tr) == null ? void 0 : o.a}deg${(u = t.tr) != null && u.v ? ` ,${(l = t.tr) == null ? void 0 : l.v}` : ""});`);
2315
2315
  }
2316
2316
  ],
2317
2317
  [
@@ -2323,21 +2323,21 @@ function qi(t, e = !1) {
2323
2323
  [
2324
2324
  "vt",
2325
2325
  () => {
2326
- t.vt === nt.BOTTOM ? s += "vertical-align: bottom; " : t.vt === nt.TOP ? s += "vertical-align: top; " : t.vt === nt.MIDDLE && (s += "vertical-align: middle; ");
2326
+ t.vt === rt.BOTTOM ? s += "vertical-align: bottom; " : t.vt === rt.TOP ? s += "vertical-align: top; " : t.vt === rt.MIDDLE && (s += "vertical-align: middle; ");
2327
2327
  }
2328
2328
  ],
2329
2329
  [
2330
2330
  "tb",
2331
2331
  () => {
2332
- t.tb === rt.CLIP ? s += "text-overflow: clip; " : t.tb === rt.OVERFLOW ? s += "text-break: overflow; " : t.tb === rt.WRAP && (s += "word-wrap: break-word;");
2332
+ t.tb === it.CLIP ? s += "text-overflow: clip; " : t.tb === it.OVERFLOW ? s += "text-break: overflow; " : t.tb === it.WRAP && (s += "word-wrap: break-word;");
2333
2333
  }
2334
2334
  ],
2335
2335
  [
2336
2336
  "pd",
2337
2337
  () => {
2338
- var l, _, d, f, g, R, w, S;
2339
- const o = `${(l = t.pd) == null ? void 0 : l.b}pt`, u = `${(_ = t.pd) == null ? void 0 : _.t}pt`, a = `${(d = t.pd) == null ? void 0 : d.l}pt`, c = `${(f = t.pd) == null ? void 0 : f.r}pt`;
2340
- (g = t.pd) != null && g.b && (s += `padding-bottom: ${o}; `), (R = t.pd) != null && R.t && (s += `padding-top: ${u}; `), (w = t.pd) != null && w.l && (s += `padding-left: ${a}; `), (S = t.pd) != null && S.r && (s += `padding-right: ${c}; `);
2338
+ var a, _, d, f, g, R, w, S;
2339
+ const o = `${(a = t.pd) == null ? void 0 : a.b}pt`, u = `${(_ = t.pd) == null ? void 0 : _.t}pt`, l = `${(d = t.pd) == null ? void 0 : d.l}pt`, c = `${(f = t.pd) == null ? void 0 : f.r}pt`;
2340
+ (g = t.pd) != null && g.b && (s += `padding-bottom: ${o}; `), (R = t.pd) != null && R.t && (s += `padding-top: ${u}; `), (w = t.pd) != null && w.l && (s += `padding-left: ${l}; `), (S = t.pd) != null && S.r && (s += `padding-right: ${c}; `);
2341
2341
  }
2342
2342
  ]
2343
2343
  ]), r = ["bd", "tr", "tb"];
@@ -2349,7 +2349,7 @@ function dt(t) {
2349
2349
  let e = "";
2350
2350
  return t === I.NONE ? e = "none" : t === I.THIN ? e = "0.5pt solid" : t === I.HAIR ? e = "0.5pt double" : t === I.DOTTED ? e = "0.5pt dotted" : t === I.DASHED || t === I.DASH_DOT ? e = "0.5pt dashed" : t === I.DASH_DOT_DOT ? e = "0.5pt dotted" : t === I.DOUBLE ? e = "0.5pt double" : t === I.MEDIUM ? e = "1pt solid" : t === I.MEDIUM_DASHED || t === I.MEDIUM_DASH_DOT ? e = "1pt dashed" : t === I.MEDIUM_DASH_DOT_DOT ? e = "1pt dotted" : t === I.SLANT_DASH_DOT ? e = "0.5pt dashed" : t === I.THICK && (e = "1.5pt solid"), e;
2351
2351
  }
2352
- function Ji(t) {
2352
+ function qi(t) {
2353
2353
  let e = 0;
2354
2354
  if (t = t.trim(), t === "none")
2355
2355
  e = I.NONE;
@@ -2385,12 +2385,12 @@ function Zi(t) {
2385
2385
  const { startRow: e, endRow: s, startColumn: n, endColumn: r } = t;
2386
2386
  return !(e < 0 || n < 0 || s < 0 || r < 0);
2387
2387
  }
2388
- function We(t, e) {
2389
- 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) => We(t[s], e[s])) : t === e : !1;
2388
+ function pe(t, e) {
2389
+ 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) => pe(t[s], e[s])) : t === e : !1;
2390
2390
  }
2391
2391
  function Cn(t, e) {
2392
2392
  const s = t.ts || {}, n = e.ts || {};
2393
- return t.sId !== e.sId ? !1 : We(s, n);
2393
+ return t.sId !== e.sId ? !1 : pe(s, n);
2394
2394
  }
2395
2395
  function Be(t, e, s, n) {
2396
2396
  if (t > e && ([t, e] = [e, t]), s > n && ([s, n] = [n, s]), e < s || n < t)
@@ -2488,7 +2488,7 @@ class vn {
2488
2488
  }
2489
2489
  }
2490
2490
  var vi, Di;
2491
- class ge {
2491
+ class Ee {
2492
2492
  constructor(e, s) {
2493
2493
  h(this, "key");
2494
2494
  h(this, "value");
@@ -2532,7 +2532,7 @@ class Dn {
2532
2532
  }
2533
2533
  onShift(e) {
2534
2534
  if (this._onShiftListeners.indexOf(e) === -1)
2535
- return this._onShiftListeners.push(e), N(() => q(this._onShiftListeners, e));
2535
+ return this._onShiftListeners.push(e), N(() => J(this._onShiftListeners, e));
2536
2536
  throw new Error("[LRUMap]: the listener has been registered!");
2537
2537
  }
2538
2538
  _initialize(e, s) {
@@ -2546,7 +2546,7 @@ class Dn {
2546
2546
  this._keymap.clear();
2547
2547
  const r = e[Symbol.iterator]();
2548
2548
  for (let i = r.next(); !i.done; i = r.next()) {
2549
- const o = new ge(i.value[0], i.value[1]);
2549
+ const o = new Ee(i.value[0], i.value[1]);
2550
2550
  if (this._keymap.set(o.key, o), s ? (s[A] = o, o[b] = s) : this.oldest = o, s = o, n-- === 0)
2551
2551
  throw new Error("overflow");
2552
2552
  }
@@ -2554,7 +2554,7 @@ class Dn {
2554
2554
  }
2555
2555
  set(e, s) {
2556
2556
  let n = this._keymap.get(e);
2557
- return n ? (n.value = s, this._markEntryAsUsed(n), this) : (this._keymap.set(e, n = new ge(e, s)), this.newest ? (this.newest[A] = n, n[b] = this.newest) : this.oldest = n, this.newest = n, ++this.size, this.size > this.limit && this.shift(), this);
2557
+ return n ? (n.value = s, this._markEntryAsUsed(n), this) : (this._keymap.set(e, n = new Ee(e, s)), this.newest ? (this.newest[A] = n, n[b] = this.newest) : this.oldest = n, this.newest = n, ++this.size, this.size > this.limit && this.shift(), this);
2558
2558
  }
2559
2559
  shift() {
2560
2560
  const e = this.oldest;
@@ -2622,44 +2622,44 @@ function j(t) {
2622
2622
  }
2623
2623
  return e + 1;
2624
2624
  }
2625
- function Ee(t, e, s) {
2625
+ function Re(t, e, s) {
2626
2626
  const n = j(s), r = s;
2627
2627
  for (let i = n - 1; i >= t; i--)
2628
2628
  r[i + 1] = r[i];
2629
2629
  r[t] = e;
2630
2630
  }
2631
- function Re(t, e, s, n) {
2631
+ function me(t, e, s, n) {
2632
2632
  const r = t + e, i = j(s), o = s;
2633
2633
  let u = 0;
2634
- const a = {};
2634
+ const l = {};
2635
2635
  for (let d = t; d < r; d++) {
2636
2636
  const f = o[d];
2637
- f !== void 0 && (delete o[d], a[u] = f, u++);
2637
+ f !== void 0 && (delete o[d], l[u] = f, u++);
2638
2638
  }
2639
- const c = n ? j(n) : 0, l = t - r + c, _ = i;
2640
- if (l > 0)
2639
+ const c = n ? j(n) : 0, a = t - r + c, _ = i;
2640
+ if (a > 0)
2641
2641
  for (let d = _ - 1; d >= r; d--)
2642
- o[d] !== void 0 && (o[d + l] = o[d], delete o[d]);
2643
- else if (l < 0)
2642
+ o[d] !== void 0 && (o[d + a] = o[d], delete o[d]);
2643
+ else if (a < 0)
2644
2644
  for (let d = r; d < _; d++)
2645
- o[d] !== void 0 && (o[d + l] = o[d], delete o[d]);
2645
+ o[d] !== void 0 && (o[d + a] = o[d], delete o[d]);
2646
2646
  if (n)
2647
2647
  for (let d = 0; d < c; d++)
2648
2648
  o[t + d] = n[d];
2649
- return a;
2649
+ return l;
2650
2650
  }
2651
2651
  function no(t, e) {
2652
- const s = t, n = Object.keys(s), r = n.length, i = e, o = Object.keys(i), u = o.length, a = {};
2652
+ const s = t, n = Object.keys(s), r = n.length, i = e, o = Object.keys(i), u = o.length, l = {};
2653
2653
  let c = 0;
2654
- for (let l = 0; l < r; l++, c++) {
2655
- const _ = n[l];
2656
- a[c] = s[_];
2654
+ for (let a = 0; a < r; a++, c++) {
2655
+ const _ = n[a];
2656
+ l[c] = s[_];
2657
2657
  }
2658
- for (let l = 0; l < u; l++, c++) {
2659
- const _ = o[l];
2660
- a[c] = i[_];
2658
+ for (let a = 0; a < u; a++, c++) {
2659
+ const _ = o[a];
2660
+ l[c] = i[_];
2661
2661
  }
2662
- return a;
2662
+ return l;
2663
2663
  }
2664
2664
  function ro(t, e, s) {
2665
2665
  const n = s;
@@ -2672,7 +2672,7 @@ function ro(t, e, s) {
2672
2672
  }
2673
2673
  return {};
2674
2674
  }
2675
- function me(t, e, s, n) {
2675
+ function Oe(t, e, s, n) {
2676
2676
  const r = t > s;
2677
2677
  if (!r && t + e > s)
2678
2678
  throw new Error("Invalid move operation");
@@ -2730,7 +2730,7 @@ class V {
2730
2730
  const i = Number(r), o = s[i];
2731
2731
  if (e(
2732
2732
  i,
2733
- Object.keys(o).map((a) => Number(a))
2733
+ Object.keys(o).map((l) => Number(l))
2734
2734
  ) === !1)
2735
2735
  return this;
2736
2736
  }
@@ -2743,9 +2743,9 @@ class V {
2743
2743
  if (!o)
2744
2744
  continue;
2745
2745
  const u = Object.keys(o);
2746
- for (const a of u) {
2747
- const c = Number(a), l = o[Number(a)];
2748
- if (e(i, c, l) === !1)
2746
+ for (const l of u) {
2747
+ const c = Number(l), a = o[Number(l)];
2748
+ if (e(i, c, a) === !1)
2749
2749
  return this;
2750
2750
  }
2751
2751
  }
@@ -2806,29 +2806,29 @@ class V {
2806
2806
  this._matrix[e] = s;
2807
2807
  }
2808
2808
  moveRows(e, s, n) {
2809
- me(e, s, n, this._matrix);
2809
+ Oe(e, s, n, this._matrix);
2810
2810
  }
2811
2811
  moveColumns(e, s, n) {
2812
2812
  this.forEach((r, i) => {
2813
- me(e, s, n, i);
2813
+ Oe(e, s, n, i);
2814
2814
  });
2815
2815
  }
2816
2816
  insertRows(e, s) {
2817
2817
  for (let n = e; n < e + s; n++)
2818
- Ee(n, {}, this._matrix);
2818
+ Re(n, {}, this._matrix);
2819
2819
  }
2820
2820
  insertColumns(e, s) {
2821
2821
  for (let n = e; n < e + s; n++)
2822
2822
  this.forEach((r, i) => {
2823
- Ee(n, void 0, i);
2823
+ Re(n, void 0, i);
2824
2824
  });
2825
2825
  }
2826
2826
  removeRows(e, s) {
2827
- Re(e, s, this._matrix);
2827
+ me(e, s, this._matrix);
2828
2828
  }
2829
2829
  removeColumns(e, s) {
2830
2830
  this.forEach((n, r) => {
2831
- Re(e, s, r);
2831
+ me(e, s, r);
2832
2832
  });
2833
2833
  }
2834
2834
  /**
@@ -2845,13 +2845,13 @@ class V {
2845
2845
  const i = new V();
2846
2846
  let o = 0;
2847
2847
  for (let u = e; u <= s; u++) {
2848
- const a = {};
2848
+ const l = {};
2849
2849
  let c = 0;
2850
- for (let l = n; l <= r; l++) {
2851
- const _ = this.getValue(u, l);
2852
- a[c] = _, c++;
2850
+ for (let a = n; a <= r; a++) {
2851
+ const _ = this.getValue(u, a);
2852
+ l[c] = _, c++;
2853
2853
  }
2854
- i.setRow(o, a), o++;
2854
+ i.setRow(o, l), o++;
2855
2855
  }
2856
2856
  return i;
2857
2857
  }
@@ -2870,8 +2870,8 @@ class V {
2870
2870
  const i = new V();
2871
2871
  for (let o = e; o <= s; o++)
2872
2872
  for (let u = n; u <= r; u++) {
2873
- const a = this.getValue(o, u);
2874
- a && i.setValue(o, u, E.deepClone(a));
2873
+ const l = this.getValue(o, u);
2874
+ l && i.setValue(o, u, E.deepClone(l));
2875
2875
  }
2876
2876
  return i;
2877
2877
  }
@@ -2888,8 +2888,8 @@ class V {
2888
2888
  for (let o = 0; o < i; o++) {
2889
2889
  const u = this.getRow(o);
2890
2890
  if (u) {
2891
- const a = j(u) - 1;
2892
- r = a > r ? a : r;
2891
+ const l = j(u) - 1;
2892
+ r = l > r ? l : r;
2893
2893
  }
2894
2894
  }
2895
2895
  return {
@@ -2934,21 +2934,21 @@ class V {
2934
2934
  let e = 0, s = 0, n = !1, r = !1;
2935
2935
  const i = new V();
2936
2936
  return this.forEach((o, u) => {
2937
- n || (n = !0, e = o), Object.keys(u).forEach((a) => {
2938
- const c = Number(a);
2937
+ n || (n = !0, e = o), Object.keys(u).forEach((l) => {
2938
+ const c = Number(l);
2939
2939
  r ? c < s && (s = c) : (r = !0, s = c);
2940
- const l = this.getValue(o, c);
2941
- i.setValue(o - e, c - s, l);
2940
+ const a = this.getValue(o, c);
2941
+ i.setValue(o - e, c - s, a);
2942
2942
  });
2943
2943
  }), i.getData();
2944
2944
  }
2945
2945
  getDataRange() {
2946
2946
  let e = 0, s = 0, n = 0, r = -1, i = !1, o = !1;
2947
- return this.forEach((u, a) => {
2947
+ return this.forEach((u, l) => {
2948
2948
  i || (i = !0, e = u);
2949
- const c = j(a) - 1;
2950
- c > n && (n = c), Object.keys(a).forEach((l) => {
2951
- const _ = Number(l);
2949
+ const c = j(l) - 1;
2950
+ c > n && (n = c), Object.keys(l).forEach((a) => {
2951
+ const _ = Number(a);
2952
2952
  o ? _ < s && (s = _) : (o = !0, s = _);
2953
2953
  }), u > r && (r = u);
2954
2954
  }), {
@@ -2988,7 +2988,7 @@ class V {
2988
2988
  this._matrix = e;
2989
2989
  }
2990
2990
  }
2991
- var pe = /* @__PURE__ */ ((t) => (t.INIT = "init", t.FETCHING = "fetching", t.DONE = "done", t))(pe || {});
2991
+ var Ge = /* @__PURE__ */ ((t) => (t.INIT = "init", t.FETCHING = "fetching", t.DONE = "done", t))(Ge || {});
2992
2992
  class Tn {
2993
2993
  constructor() {
2994
2994
  h(this, "status", "init");
@@ -3024,26 +3024,26 @@ const z = class z {
3024
3024
  return e == null || s == null ? !1 : 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 === P.NORMAL || s.rangeType === void 0 && e.rangeType === P.NORMAL);
3025
3025
  }
3026
3026
  static intersects(e, s) {
3027
- const n = e.startRow, r = e.endRow, i = e.startColumn, o = e.endColumn, u = s.startRow, a = s.endRow, c = s.startColumn, l = s.endColumn, _ = Math.abs(i + o - c - l), d = Math.abs(i - o) + Math.abs(c - l), f = Math.abs(n + r - u - a), g = Math.abs(n - r) + Math.abs(u - a);
3027
+ const n = e.startRow, r = e.endRow, i = e.startColumn, o = e.endColumn, u = s.startRow, l = s.endRow, c = s.startColumn, a = s.endColumn, _ = Math.abs(i + o - c - a), d = Math.abs(i - o) + Math.abs(c - a), f = Math.abs(n + r - u - l), g = Math.abs(n - r) + Math.abs(u - l);
3028
3028
  return _ <= d && f <= g;
3029
3029
  }
3030
3030
  static getIntersects(e, s) {
3031
- const n = e.startRow, r = e.endRow, i = e.startColumn, o = e.endColumn, u = s.startRow, a = s.endRow, c = s.startColumn, l = s.endColumn;
3031
+ const n = e.startRow, r = e.endRow, i = e.startColumn, o = e.endColumn, u = s.startRow, l = s.endRow, c = s.startColumn, a = s.endColumn;
3032
3032
  let _, d, f, g;
3033
3033
  if (u <= r)
3034
3034
  u >= n ? d = u : d = n;
3035
3035
  else
3036
3036
  return null;
3037
- if (a >= n)
3038
- a >= r ? g = r : g = a;
3037
+ if (l >= n)
3038
+ l >= r ? g = r : g = l;
3039
3039
  else
3040
3040
  return null;
3041
3041
  if (c <= o)
3042
3042
  c > i ? _ = c : _ = i;
3043
3043
  else
3044
3044
  return null;
3045
- if (l >= i)
3046
- l >= o ? f = o : f = l;
3045
+ if (a >= i)
3046
+ a >= o ? f = o : f = a;
3047
3047
  else
3048
3048
  return null;
3049
3049
  return {
@@ -3137,7 +3137,7 @@ h(z, "getRelativeRange", (e, s) => ({
3137
3137
  startColumn: e.startColumn + s,
3138
3138
  endColumn: e.endColumn + s
3139
3139
  }));
3140
- let it = z;
3140
+ let ot = z;
3141
3141
  class uo {
3142
3142
  constructor(e, s) {
3143
3143
  h(this, "_values", []);
@@ -3198,7 +3198,7 @@ class uo {
3198
3198
  this._values = [], this._keys = [], this._keyMaps.clear();
3199
3199
  }
3200
3200
  }
3201
- function Oe(t, e, s, n) {
3201
+ function Ae(t, e, s, n) {
3202
3202
  return {
3203
3203
  forEach(r) {
3204
3204
  for (let i = t; i <= e; i++)
@@ -3207,7 +3207,7 @@ function Oe(t, e, s, n) {
3207
3207
  }
3208
3208
  };
3209
3209
  }
3210
- function ao(t) {
3210
+ function lo(t) {
3211
3211
  if (t == null || t.length === 0)
3212
3212
  return Number.NaN;
3213
3213
  const e = t.toLowerCase().split(""), s = e.length, n = (o) => o.charCodeAt(0) - 96;
@@ -3216,9 +3216,9 @@ function ao(t) {
3216
3216
  i = n(e[o]), r += i * 26 ** (s - o - 1);
3217
3217
  return r === 0 ? Number.NaN : r - 1;
3218
3218
  }
3219
- const St = 65, Ge = 90, xn = 97;
3220
- function lo(t) {
3221
- const e = Ge - St + 1;
3219
+ const St = 65, $e = 90, xn = 97;
3220
+ function ao(t) {
3221
+ const e = $e - St + 1;
3222
3222
  let s = "";
3223
3223
  for (; t >= 0; )
3224
3224
  s = String.fromCharCode(t % e + St) + s, t = Math.floor(t / e) - 1;
@@ -3231,7 +3231,7 @@ function Hn(t, e) {
3231
3231
  return s;
3232
3232
  }
3233
3233
  function co(t, e = !1) {
3234
- const s = Ge - St + 1;
3234
+ const s = $e - St + 1;
3235
3235
  let n = xn;
3236
3236
  e && (n = St);
3237
3237
  const r = String.fromCharCode(t % s + n), i = Math.floor(t / s) + 1;
@@ -3246,9 +3246,18 @@ function _o(t, e) {
3246
3246
  function ct(t = "index", e = 1) {
3247
3247
  return (s, n) => s[t] > n[t] ? e : s[t] === n[t] ? 0 : -e;
3248
3248
  }
3249
- var Fn = /* @__PURE__ */ ((t) => (t[t.PARAGRAPH = 0] = "PARAGRAPH", t[t.SECTION_BREAK = 1] = "SECTION_BREAK", t[t.TABLE = 2] = "TABLE", t[t.TABLE_ROW = 3] = "TABLE_ROW", t[t.TABLE_CELL = 4] = "TABLE_CELL", t))(Fn || {}), $e = /* @__PURE__ */ ((t) => (t.PARAGRAPH = "\r", t.SECTION_BREAK = `
3250
- `, t.TABLE_START = "", t.TABLE_ROW_START = "\x1B", t.TABLE_CELL_START = "", t.TABLE_CELL_END = "", t.TABLE_ROW_END = "", t.TABLE_END = "", t.CUSTOM_RANGE_START = "", t.CUSTOM_RANGE_END = "", t.COLUMN_BREAK = "\v", t.PAGE_BREAK = "\f", t.DOCS_END = "\0", t.TAB = " ", t.CUSTOM_BLOCK = "\b", t.LETTER = "", t.SPACE = " ", t))($e || {});
3251
- function ke(t) {
3249
+ function fo(t, e) {
3250
+ let s;
3251
+ return function(...n) {
3252
+ const r = this, i = function() {
3253
+ s = null, t.apply(r, n);
3254
+ };
3255
+ clearTimeout(s), s = setTimeout(i, e);
3256
+ };
3257
+ }
3258
+ var Fn = /* @__PURE__ */ ((t) => (t[t.PARAGRAPH = 0] = "PARAGRAPH", t[t.SECTION_BREAK = 1] = "SECTION_BREAK", t[t.TABLE = 2] = "TABLE", t[t.TABLE_ROW = 3] = "TABLE_ROW", t[t.TABLE_CELL = 4] = "TABLE_CELL", t))(Fn || {}), ke = /* @__PURE__ */ ((t) => (t.PARAGRAPH = "\r", t.SECTION_BREAK = `
3259
+ `, t.TABLE_START = "", t.TABLE_ROW_START = "\x1B", t.TABLE_CELL_START = "", t.TABLE_CELL_END = "", t.TABLE_ROW_END = "", t.TABLE_END = "", t.CUSTOM_RANGE_START = "", t.CUSTOM_RANGE_END = "", t.COLUMN_BREAK = "\v", t.PAGE_BREAK = "\f", t.DOCS_END = "\0", t.TAB = " ", t.CUSTOM_BLOCK = "\b", t.LETTER = "", t.SPACE = " ", t))(ke || {});
3260
+ function Ve(t) {
3252
3261
  const e = [];
3253
3262
  for (const s of t) {
3254
3263
  const { st: n, ed: r, ts: i } = s;
@@ -3267,21 +3276,21 @@ function ke(t) {
3267
3276
  }
3268
3277
  return e;
3269
3278
  }
3270
- function Ve(t, e, s, n) {
3279
+ function je(t, e, s, n) {
3271
3280
  var c;
3272
3281
  const { textRuns: r } = t;
3273
3282
  if (r == null)
3274
3283
  return;
3275
3284
  const i = [], o = r.length;
3276
3285
  let u = !1;
3277
- const a = (c = e.textRuns) != null ? c : [];
3278
- if (a.length)
3279
- for (let l = 0, _ = a.length; l < _; l++) {
3280
- const d = a[l];
3286
+ const l = (c = e.textRuns) != null ? c : [];
3287
+ if (l.length)
3288
+ for (let a = 0, _ = l.length; a < _; a++) {
3289
+ const d = l[a];
3281
3290
  d.st += n, d.ed += n;
3282
3291
  }
3283
- for (let l = 0; l < o; l++) {
3284
- const _ = r[l], { st: d, ed: f } = _;
3292
+ for (let a = 0; a < o; a++) {
3293
+ const _ = r[a], { st: d, ed: f } = _;
3285
3294
  if (f < n)
3286
3295
  i.push(_);
3287
3296
  else if (n >= d && n <= f)
@@ -3290,14 +3299,14 @@ function Ve(t, e, s, n) {
3290
3299
  else {
3291
3300
  u = !0, _.ed += s;
3292
3301
  const g = [];
3293
- if (a.length) {
3302
+ if (l.length) {
3294
3303
  const R = {
3295
3304
  ..._,
3296
3305
  st: d,
3297
- ed: a[0].st
3306
+ ed: l[0].st
3298
3307
  };
3299
- g.push(R), g.push(...a);
3300
- const w = a[a.length - 1], S = {
3308
+ g.push(R), g.push(...l);
3309
+ const w = l[l.length - 1], S = {
3301
3310
  ..._,
3302
3311
  st: w.ed,
3303
3312
  ed: f + s
@@ -3308,31 +3317,31 @@ function Ve(t, e, s, n) {
3308
3317
  i.push(...g);
3309
3318
  }
3310
3319
  else
3311
- _.st += s, _.ed += s, u || (u = !0, i.push(...a)), i.push(_);
3320
+ _.st += s, _.ed += s, u || (u = !0, i.push(...l)), i.push(_);
3312
3321
  }
3313
- u || (u = !0, i.push(...a)), t.textRuns = ke(i);
3322
+ u || (u = !0, i.push(...l)), t.textRuns = Ve(i);
3314
3323
  }
3315
3324
  function ie(t, e, s, n) {
3316
3325
  const { paragraphs: r } = t;
3317
3326
  if (r == null)
3318
3327
  return;
3319
3328
  const { paragraphs: i, dataStream: o } = e, u = [];
3320
- let a = -1;
3321
- for (let l = 0, _ = r.length; l < _; l++) {
3322
- const d = r[l], { startIndex: f } = d;
3323
- f >= n && (d.startIndex += s), a === -1 && f >= n && (a = l), u.push(d.startIndex);
3329
+ let l = -1;
3330
+ for (let a = 0, _ = r.length; a < _; a++) {
3331
+ const d = r[a], { startIndex: f } = d;
3332
+ f >= n && (d.startIndex += s), l === -1 && f >= n && (l = a), u.push(d.startIndex);
3324
3333
  }
3325
3334
  let c = -1;
3326
3335
  if (i) {
3327
- for (let l = 0, _ = i.length; l < _; l++) {
3328
- const d = i[l];
3336
+ for (let a = 0, _ = i.length; a < _; a++) {
3337
+ const d = i[a];
3329
3338
  d.startIndex += n;
3330
3339
  const f = d.startIndex;
3331
3340
  c = u.indexOf(f);
3332
3341
  }
3333
- if (o === $e.PARAGRAPH && i.length === 1) {
3334
- const l = r[a], _ = i[0], d = l.paragraphStyle, f = l.bullet;
3335
- l.paragraphStyle = _.paragraphStyle, l.bullet = _.bullet, _.paragraphStyle = d, _.bullet = f;
3342
+ if (o === ke.PARAGRAPH && i.length === 1) {
3343
+ const a = r[l], _ = i[0], d = a.paragraphStyle, f = a.bullet;
3344
+ a.paragraphStyle = _.paragraphStyle, a.bullet = _.bullet, _.paragraphStyle = d, _.bullet = f;
3336
3345
  }
3337
3346
  c !== -1 && r.splice(c, 1), r.push(...i), r.sort(ct("startIndex"));
3338
3347
  }
@@ -3342,31 +3351,31 @@ function Wn(t, e, s, n) {
3342
3351
  if (r == null)
3343
3352
  return;
3344
3353
  for (let o = 0, u = r.length; o < u; o++) {
3345
- const a = r[o], { startIndex: c } = a;
3346
- c >= n && (a.startIndex += s);
3354
+ const l = r[o], { startIndex: c } = l;
3355
+ c >= n && (l.startIndex += s);
3347
3356
  }
3348
3357
  const i = e.sectionBreaks;
3349
3358
  if (i) {
3350
3359
  for (let o = 0, u = i.length; o < u; o++) {
3351
- const a = i[o];
3352
- a.startIndex += n;
3360
+ const l = i[o];
3361
+ l.startIndex += n;
3353
3362
  }
3354
3363
  r.push(...i), r.sort(ct("startIndex"));
3355
3364
  }
3356
3365
  }
3357
- function je(t, e, s, n) {
3366
+ function Ye(t, e, s, n) {
3358
3367
  const { customBlocks: r } = t;
3359
3368
  if (r == null)
3360
3369
  return;
3361
3370
  for (let o = 0, u = r.length; o < u; o++) {
3362
- const a = r[o], { startIndex: c } = a;
3363
- c >= n && (a.startIndex += s);
3371
+ const l = r[o], { startIndex: c } = l;
3372
+ c >= n && (l.startIndex += s);
3364
3373
  }
3365
3374
  const i = e.customBlocks;
3366
3375
  if (i) {
3367
3376
  for (let o = 0, u = i.length; o < u; o++) {
3368
- const a = i[o];
3369
- a.startIndex += n;
3377
+ const l = i[o];
3378
+ l.startIndex += n;
3370
3379
  }
3371
3380
  r.push(...i), r.sort(ct("startIndex"));
3372
3381
  }
@@ -3376,147 +3385,147 @@ function oe(t, e, s, n) {
3376
3385
  if (r == null)
3377
3386
  return;
3378
3387
  for (let o = 0, u = r.length; o < u; o++) {
3379
- const a = r[o], { startIndex: c, endIndex: l } = a;
3380
- c > n ? (a.startIndex += s, a.endIndex += s) : l >= n - 1 && (a.endIndex += s);
3388
+ const l = r[o], { startIndex: c, endIndex: a } = l;
3389
+ c > n ? (l.startIndex += s, l.endIndex += s) : a >= n - 1 && (l.endIndex += s);
3381
3390
  }
3382
3391
  const i = e.tables;
3383
3392
  if (i) {
3384
3393
  for (let o = 0, u = i.length; o < u; o++) {
3385
- const a = i[o];
3386
- a.startIndex += n, a.endIndex += n;
3394
+ const l = i[o];
3395
+ l.startIndex += n, l.endIndex += n;
3387
3396
  }
3388
3397
  r.push(...i), r.sort(ct("startIndex"));
3389
3398
  }
3390
3399
  }
3391
- function Bn(t, e, s, n) {
3400
+ function pn(t, e, s, n) {
3392
3401
  const { customRanges: r } = t;
3393
3402
  if (r == null)
3394
3403
  return;
3395
3404
  for (let o = 0, u = r.length; o < u; o++) {
3396
- const a = r[o], { startIndex: c, endIndex: l } = a;
3397
- c > n ? (a.startIndex += s, a.endIndex += s) : l >= n - 1 && (a.endIndex += s);
3405
+ const l = r[o], { startIndex: c, endIndex: a } = l;
3406
+ c > n ? (l.startIndex += s, l.endIndex += s) : a >= n - 1 && (l.endIndex += s);
3398
3407
  }
3399
3408
  const i = e.customRanges;
3400
3409
  if (i) {
3401
3410
  for (let o = 0, u = i.length; o < u; o++) {
3402
- const a = i[o];
3403
- a.startIndex += n, a.endIndex += n;
3411
+ const l = i[o];
3412
+ l.startIndex += n, l.endIndex += n;
3404
3413
  }
3405
3414
  r.push(...i), r.sort(ct("startIndex"));
3406
3415
  }
3407
3416
  }
3408
- function Ye(t, e, s) {
3417
+ function Ke(t, e, s) {
3409
3418
  const { textRuns: n } = t, r = s, i = s + e, o = [];
3410
3419
  if (n) {
3411
3420
  const u = [];
3412
- for (let a = 0, c = n.length; a < c; a++) {
3413
- const l = n[a], { st: _, ed: d } = l;
3421
+ for (let l = 0, c = n.length; l < c; l++) {
3422
+ const a = n[l], { st: _, ed: d } = a;
3414
3423
  if (r <= _ && i >= d) {
3415
3424
  o.push({
3416
- ...l,
3425
+ ...a,
3417
3426
  st: _ - r,
3418
3427
  ed: d - r
3419
3428
  });
3420
3429
  continue;
3421
3430
  } else
3422
3431
  _ <= r && d >= i ? (o.push({
3423
- ...l,
3432
+ ...a,
3424
3433
  st: r - r,
3425
3434
  ed: i - r
3426
- }), l.ed -= e) : r >= _ && r < d ? (o.push({
3427
- ...l,
3435
+ }), a.ed -= e) : r >= _ && r < d ? (o.push({
3436
+ ...a,
3428
3437
  st: r - r,
3429
3438
  ed: d - r
3430
- }), l.ed = r) : i > _ && i <= d ? (o.push({
3431
- ...l,
3439
+ }), a.ed = r) : i > _ && i <= d ? (o.push({
3440
+ ...a,
3432
3441
  st: _ - r,
3433
3442
  ed: i - r
3434
- }), l.st = i - e, l.ed -= e) : _ >= i && (l.st -= e, l.ed -= e);
3435
- u.push(l);
3443
+ }), a.st = i - e, a.ed -= e) : _ >= i && (a.st -= e, a.ed -= e);
3444
+ u.push(a);
3436
3445
  }
3437
3446
  t.textRuns = u;
3438
3447
  }
3439
3448
  return o;
3440
3449
  }
3441
- function Ke(t, e, s) {
3450
+ function ze(t, e, s) {
3442
3451
  const { paragraphs: n } = t, r = s, i = s + e, o = [];
3443
3452
  if (n) {
3444
3453
  const u = [];
3445
- for (let a = 0, c = n.length; a < c; a++) {
3446
- const l = n[a], { startIndex: _ } = l;
3454
+ for (let l = 0, c = n.length; l < c; l++) {
3455
+ const a = n[l], { startIndex: _ } = a;
3447
3456
  if (_ >= r && _ < i) {
3448
3457
  o.push({
3449
- ...l,
3458
+ ...a,
3450
3459
  startIndex: _ - s
3451
3460
  });
3452
3461
  continue;
3453
3462
  } else
3454
- _ >= i && (l.startIndex -= e);
3455
- u.push(l);
3463
+ _ >= i && (a.startIndex -= e);
3464
+ u.push(a);
3456
3465
  }
3457
3466
  t.paragraphs = u;
3458
3467
  }
3459
3468
  return o;
3460
3469
  }
3461
- function ze(t, e, s) {
3470
+ function Xe(t, e, s) {
3462
3471
  const { sectionBreaks: n } = t, r = s, i = s + e - 1, o = [];
3463
3472
  if (n) {
3464
3473
  const u = [];
3465
- for (let a = 0, c = n.length; a < c; a++) {
3466
- const l = n[a], { startIndex: _ } = l;
3474
+ for (let l = 0, c = n.length; l < c; l++) {
3475
+ const a = n[l], { startIndex: _ } = a;
3467
3476
  if (_ >= r && _ <= i) {
3468
3477
  o.push({
3469
- ...l,
3478
+ ...a,
3470
3479
  startIndex: _ - s
3471
3480
  });
3472
3481
  continue;
3473
3482
  } else
3474
- _ > i && (l.startIndex -= e);
3475
- u.push(l);
3483
+ _ > i && (a.startIndex -= e);
3484
+ u.push(a);
3476
3485
  }
3477
3486
  t.sectionBreaks = u;
3478
3487
  }
3479
3488
  return o;
3480
3489
  }
3481
- function Xe(t, e, s) {
3490
+ function Qe(t, e, s) {
3482
3491
  const { customBlocks: n } = t, r = s, i = s + e - 1, o = [];
3483
3492
  if (n) {
3484
3493
  const u = [];
3485
- for (let a = 0, c = n.length; a < c; a++) {
3486
- const l = n[a], { startIndex: _ } = l;
3494
+ for (let l = 0, c = n.length; l < c; l++) {
3495
+ const a = n[l], { startIndex: _ } = a;
3487
3496
  if (_ >= r && _ <= i) {
3488
3497
  o.push({
3489
- ...l,
3498
+ ...a,
3490
3499
  startIndex: _ - s
3491
3500
  });
3492
3501
  continue;
3493
3502
  } else
3494
- _ > i && (l.startIndex -= e);
3495
- u.push(l);
3503
+ _ > i && (a.startIndex -= e);
3504
+ u.push(a);
3496
3505
  }
3497
3506
  t.customBlocks = u;
3498
3507
  }
3499
3508
  return o;
3500
3509
  }
3501
- function Qe(t, e, s) {
3510
+ function Je(t, e, s) {
3502
3511
  const { tables: n } = t, r = s, i = s + e - 1, o = [];
3503
3512
  if (n) {
3504
3513
  const u = [];
3505
- for (let a = 0, c = n.length; a < c; a++) {
3506
- const l = n[a], { startIndex: _, endIndex: d } = l;
3514
+ for (let l = 0, c = n.length; l < c; l++) {
3515
+ const a = n[l], { startIndex: _, endIndex: d } = a;
3507
3516
  if (r <= _ && i >= d) {
3508
3517
  o.push({
3509
- ...l,
3518
+ ...a,
3510
3519
  startIndex: _ - s,
3511
3520
  endIndex: d - s
3512
3521
  });
3513
3522
  continue;
3514
3523
  } else if (_ <= r && d >= i) {
3515
3524
  const f = Be(_, d, r, i);
3516
- l.startIndex = f[0], l.endIndex = f[1];
3525
+ a.startIndex = f[0], a.endIndex = f[1];
3517
3526
  } else
3518
- i < _ && (l.startIndex -= e, l.endIndex -= e);
3519
- u.push(l);
3527
+ i < _ && (a.startIndex -= e, a.endIndex -= e);
3528
+ u.push(a);
3520
3529
  }
3521
3530
  t.tables = u;
3522
3531
  }
@@ -3526,44 +3535,44 @@ function qe(t, e, s) {
3526
3535
  const { customRanges: n } = t, r = s, i = s + e - 1, o = [];
3527
3536
  if (n) {
3528
3537
  const u = [];
3529
- for (let a = 0, c = n.length; a < c; a++) {
3530
- const l = n[a], { startIndex: _, endIndex: d } = l;
3538
+ for (let l = 0, c = n.length; l < c; l++) {
3539
+ const a = n[l], { startIndex: _, endIndex: d } = a;
3531
3540
  if (r <= _ && i >= d) {
3532
3541
  o.push({
3533
- ...l,
3542
+ ...a,
3534
3543
  startIndex: _ - s,
3535
3544
  endIndex: d - s
3536
3545
  });
3537
3546
  continue;
3538
3547
  } else if (_ <= r && d >= i) {
3539
3548
  const f = Be(_, d, r, i);
3540
- l.startIndex = f[0], l.endIndex = f[1];
3549
+ a.startIndex = f[0], a.endIndex = f[1];
3541
3550
  } else
3542
- i < _ && (l.startIndex -= e, l.endIndex -= e);
3543
- u.push(l);
3551
+ i < _ && (a.startIndex -= e, a.endIndex -= e);
3552
+ u.push(a);
3544
3553
  }
3545
3554
  t.customRanges = u;
3546
3555
  }
3547
3556
  return o;
3548
3557
  }
3549
- function pn(t, e, s) {
3550
- const { dataStream: n } = t, r = s, i = s + e, o = Ye(t, e, s), u = Ke(t, e, s), a = ze(t, e, s), c = Xe(t, e, s), l = Qe(t, e, s), _ = qe(t, e, s);
3558
+ function Bn(t, e, s) {
3559
+ const { dataStream: n } = t, r = s, i = s + e, o = Ke(t, e, s), u = ze(t, e, s), l = Xe(t, e, s), c = Qe(t, e, s), a = Je(t, e, s), _ = qe(t, e, s);
3551
3560
  let d = "";
3552
3561
  return n && (t.dataStream = wn(n, r, i), d = n.slice(r, i)), {
3553
3562
  dataStream: d,
3554
3563
  textRuns: o,
3555
3564
  paragraphs: u,
3556
- sectionBreaks: a,
3565
+ sectionBreaks: l,
3557
3566
  customBlocks: c,
3558
- tables: l,
3567
+ tables: a,
3559
3568
  customRanges: _
3560
3569
  };
3561
3570
  }
3562
3571
  function Gn(t, e, s, n) {
3563
- t.dataStream = Sn(t.dataStream, n, e.dataStream), Ve(t, e, s, n), ie(t, e, s, n), Wn(t, e, s, n), je(t, e, s, n), oe(t, e, s, n), Bn(t, e, s, n);
3572
+ t.dataStream = Sn(t.dataStream, n, e.dataStream), je(t, e, s, n), ie(t, e, s, n), Wn(t, e, s, n), Ye(t, e, s, n), oe(t, e, s, n), pn(t, e, s, n);
3564
3573
  }
3565
- var $n = /* @__PURE__ */ ((t) => (t[t.character = 0] = "character", t[t.paragraph = 1] = "paragraph", t[t.table = 2] = "table", t[t.numbering = 3] = "numbering", t))($n || {}), kn = /* @__PURE__ */ ((t) => (t[t.TAB = 0] = "TAB", t[t.SPACE = 1] = "SPACE", t[t.NOTHING = 2] = "NOTHING", t))(kn || {}), Ot = /* @__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))(Ot || {}), Q = /* @__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))(Q || {}), Vn = /* @__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))(Vn || {}), jn = /* @__PURE__ */ ((t) => (t[t.DRAWING = 0] = "DRAWING", t[t.CUSTOM = 1] = "CUSTOM", t))(jn || {}), Yn = /* @__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))(Yn || {}), Kn = /* @__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))(Kn || {}), zn = /* @__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))(zn || {}), Xn = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.TBRL = 1] = "TBRL", t[t.LRTBV = 2] = "LRTBV", t))(Xn || {}), Qn = /* @__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))(Qn || {}), qn = /* @__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))(qn || {}), Jn = /* @__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))(Jn || {}), Zn = /* @__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))(Zn || {}), yn = /* @__PURE__ */ ((t) => (t[t.AUTO = 0] = "AUTO", t[t.AT_LEAST = 1] = "AT_LEAST", t[t.EXACT = 2] = "EXACT", t))(yn || {}), tr = /* @__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))(tr || {}), er = /* @__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))(er || {}), sr = /* @__PURE__ */ ((t) => (t.EVENLY_DISTRIBUTED = "0", t.FIXED_WIDTH = "1", t))(sr || {}), nr = /* @__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))(nr || {}), rr = /* @__PURE__ */ ((t) => (t.NORMAL = "normal", t.BOLD = "bold", t.ITALIC = "italic", t))(rr || {}), ir = /* @__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))(ir || {}), or = /* @__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))(or || {}), ur = /* @__PURE__ */ ((t) => (t[t.POINT = 0] = "POINT", t[t.LINE = 1] = "LINE", t[t.CHARACTER = 2] = "CHARACTER", t))(ur || {}), ar = /* @__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))(ar || {}), lr = /* @__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))(lr || {}), cr = /* @__PURE__ */ ((t) => (t[t.compressPunctuation = 0] = "compressPunctuation", t[t.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", t[t.doNotCompress = 2] = "doNotCompress", t))(cr || {}), hr = /* @__PURE__ */ ((t) => (t[t.PORTRAIT = 0] = "PORTRAIT", t[t.LANDSCAPE = 1] = "LANDSCAPE", t))(hr || {}), Yt = /* @__PURE__ */ ((t) => (t.BULLET_LIST = "BULLET_LIST", t.ORDER_LIST = "ORDER_LIST", t))(Yt || {});
3566
- const fo = {
3574
+ var $n = /* @__PURE__ */ ((t) => (t[t.character = 0] = "character", t[t.paragraph = 1] = "paragraph", t[t.table = 2] = "table", t[t.numbering = 3] = "numbering", t))($n || {}), kn = /* @__PURE__ */ ((t) => (t[t.TAB = 0] = "TAB", t[t.SPACE = 1] = "SPACE", t[t.NOTHING = 2] = "NOTHING", t))(kn || {}), Ot = /* @__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))(Ot || {}), Q = /* @__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))(Q || {}), Vn = /* @__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))(Vn || {}), jn = /* @__PURE__ */ ((t) => (t[t.DRAWING = 0] = "DRAWING", t[t.CUSTOM = 1] = "CUSTOM", t))(jn || {}), Yn = /* @__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))(Yn || {}), Kn = /* @__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))(Kn || {}), zn = /* @__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))(zn || {}), Xn = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.TBRL = 1] = "TBRL", t[t.LRTBV = 2] = "LRTBV", t))(Xn || {}), Qn = /* @__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))(Qn || {}), Jn = /* @__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))(Jn || {}), qn = /* @__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))(qn || {}), Zn = /* @__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))(Zn || {}), yn = /* @__PURE__ */ ((t) => (t[t.AUTO = 0] = "AUTO", t[t.AT_LEAST = 1] = "AT_LEAST", t[t.EXACT = 2] = "EXACT", t))(yn || {}), tr = /* @__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))(tr || {}), er = /* @__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))(er || {}), sr = /* @__PURE__ */ ((t) => (t.EVENLY_DISTRIBUTED = "0", t.FIXED_WIDTH = "1", t))(sr || {}), nr = /* @__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))(nr || {}), rr = /* @__PURE__ */ ((t) => (t.NORMAL = "normal", t.BOLD = "bold", t.ITALIC = "italic", t))(rr || {}), ir = /* @__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))(ir || {}), or = /* @__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))(or || {}), ur = /* @__PURE__ */ ((t) => (t[t.POINT = 0] = "POINT", t[t.LINE = 1] = "LINE", t[t.CHARACTER = 2] = "CHARACTER", t))(ur || {}), 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 || {}), ar = /* @__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))(ar || {}), cr = /* @__PURE__ */ ((t) => (t[t.compressPunctuation = 0] = "compressPunctuation", t[t.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", t[t.doNotCompress = 2] = "doNotCompress", t))(cr || {}), hr = /* @__PURE__ */ ((t) => (t[t.PORTRAIT = 0] = "PORTRAIT", t[t.LANDSCAPE = 1] = "LANDSCAPE", t))(hr || {}), Yt = /* @__PURE__ */ ((t) => (t.BULLET_LIST = "BULLET_LIST", t.ORDER_LIST = "ORDER_LIST", t))(Yt || {});
3575
+ const go = {
3567
3576
  BULLET_LIST: {
3568
3577
  listType: "BULLET_LIST",
3569
3578
  nestingLevel: [
@@ -3642,41 +3651,41 @@ const fo = {
3642
3651
  }
3643
3652
  };
3644
3653
  function _r(t, e, s, n, r) {
3645
- const i = dr(t, e, s, n, r), o = fr(t, e, s, n, r), u = gr(t, e, s, n, r), a = Er(t, e, s, n, r), c = Rr(t, e, s, n, r), l = mr(t, e, s, n, r);
3654
+ const i = dr(t, e, s, n, r), o = fr(t, e, s, n, r), u = gr(t, e, s, n, r), l = Er(t, e, s, n, r), c = Rr(t, e, s, n, r), a = mr(t, e, s, n, r);
3646
3655
  return {
3647
3656
  dataStream: "",
3648
3657
  textRuns: i,
3649
3658
  paragraphs: o,
3650
3659
  sectionBreaks: u,
3651
- customBlocks: a,
3660
+ customBlocks: l,
3652
3661
  tables: c,
3653
- customRanges: l
3662
+ customRanges: a
3654
3663
  };
3655
3664
  }
3656
3665
  function dr(t, e, s, n, r) {
3657
3666
  const { textRuns: i } = t, { textRuns: o } = e;
3658
3667
  if (i == null || o == null)
3659
3668
  return;
3660
- const u = Ye(t, s, n);
3669
+ const u = Ke(t, s, n);
3661
3670
  if (r !== M.REPLACE) {
3662
- const a = Je(o, u, r);
3663
- e.textRuns = a;
3671
+ const l = Ze(o, u, r);
3672
+ e.textRuns = l;
3664
3673
  }
3665
- return Ve(t, e, s, n), u;
3674
+ return je(t, e, s, n), u;
3666
3675
  }
3667
- function Je(t, e, s) {
3676
+ function Ze(t, e, s) {
3668
3677
  if (e.length === 0)
3669
3678
  return t;
3670
3679
  t = E.deepClone(t), e = E.deepClone(e);
3671
3680
  const n = [], r = t.length, i = e.length;
3672
- let o = 0, u = 0, a = null;
3681
+ let o = 0, u = 0, l = null;
3673
3682
  function c() {
3674
- return a ? (n.push(a), a = null, !0) : !1;
3683
+ return l ? (n.push(l), l = null, !0) : !1;
3675
3684
  }
3676
3685
  for (; o < r && u < i; ) {
3677
3686
  const { st: f, ed: g, ts: R } = t[o], { st: w, ed: S, ts: W, sId: G } = e[u];
3678
- let et;
3679
- s === M.COVER ? et = { ...W, ...R } : et = { ...R, ...W }, g < w ? (c() || n.push(t[o]), o++) : S < f ? (c() || n.push(e[u]), u++) : (n.push({
3687
+ let st;
3688
+ s === M.COVER ? st = { ...W, ...R } : st = { ...R, ...W }, g < w ? (c() || n.push(t[o]), o++) : S < f ? (c() || n.push(e[u]), u++) : (n.push({
3680
3689
  st: Math.min(f, w),
3681
3690
  ed: Math.max(f, w),
3682
3691
  ts: f < w ? { ...R } : { ...W },
@@ -3684,9 +3693,9 @@ function Je(t, e, s) {
3684
3693
  }), n.push({
3685
3694
  st: Math.max(f, w),
3686
3695
  ed: Math.min(g, S),
3687
- ts: et,
3696
+ ts: st,
3688
3697
  sId: G
3689
- }), g < S ? (o++, e[u].st = g) : (u++, t[o].st = S), a = {
3698
+ }), g < S ? (o++, e[u].st = g) : (u++, t[o].st = S), l = {
3690
3699
  st: Math.min(g, S),
3691
3700
  ed: Math.max(g, S),
3692
3701
  ts: g < S ? { ...W } : { ...R },
@@ -3694,19 +3703,19 @@ function Je(t, e, s) {
3694
3703
  });
3695
3704
  }
3696
3705
  c();
3697
- const l = n[n.length - 1], _ = t[r - 1], d = e[i - 1];
3698
- return l.ed !== Math.max(_.ed, d.ed) && (_.ed > d.ed ? n.push(_) : n.push(d)), ke(n);
3706
+ const a = n[n.length - 1], _ = t[r - 1], d = e[i - 1];
3707
+ return a.ed !== Math.max(_.ed, d.ed) && (_.ed > d.ed ? n.push(_) : n.push(d)), Ve(n);
3699
3708
  }
3700
3709
  function fr(t, e, s, n, r) {
3701
3710
  const { paragraphs: i } = t, { paragraphs: o } = e;
3702
3711
  if (i == null || o == null)
3703
3712
  return;
3704
- const u = Ke(t, s, n);
3713
+ const u = ze(t, s, n);
3705
3714
  if (r !== M.REPLACE) {
3706
- const a = [];
3715
+ const l = [];
3707
3716
  for (const c of o) {
3708
3717
  const {
3709
- startIndex: l,
3718
+ startIndex: a,
3710
3719
  paragraphStyle: _,
3711
3720
  bullet: d
3712
3721
  } = c;
@@ -3732,18 +3741,18 @@ function fr(t, e, s, n, r) {
3732
3741
  textStyle: {},
3733
3742
  ...d,
3734
3743
  ...S
3735
- }), l === R) {
3744
+ }), a === R) {
3736
3745
  f.push({
3737
- startIndex: l,
3746
+ startIndex: a,
3738
3747
  paragraphStyle: W,
3739
3748
  bullet: G
3740
3749
  });
3741
3750
  break;
3742
3751
  }
3743
3752
  }
3744
- a.push(...f), f = [];
3753
+ l.push(...f), f = [];
3745
3754
  }
3746
- e.paragraphs = a;
3755
+ e.paragraphs = l;
3747
3756
  }
3748
3757
  return ie(t, e, s, n), u;
3749
3758
  }
@@ -3751,15 +3760,15 @@ function gr(t, e, s, n, r) {
3751
3760
  const { sectionBreaks: i } = t, { sectionBreaks: o } = e;
3752
3761
  if (i == null || o == null)
3753
3762
  return;
3754
- const u = ze(t, s, n);
3763
+ const u = Xe(t, s, n);
3755
3764
  if (r !== M.REPLACE) {
3756
- const a = [];
3765
+ const l = [];
3757
3766
  for (const c of o) {
3758
- const { startIndex: l } = c;
3767
+ const { startIndex: a } = c;
3759
3768
  let _ = [];
3760
3769
  for (const d of u) {
3761
3770
  const { startIndex: f } = d;
3762
- if (l === f) {
3771
+ if (a === f) {
3763
3772
  r === M.COVER ? _.push({
3764
3773
  ...d,
3765
3774
  ...c
@@ -3770,9 +3779,9 @@ function gr(t, e, s, n, r) {
3770
3779
  break;
3771
3780
  }
3772
3781
  }
3773
- a.push(..._), _ = [];
3782
+ l.push(..._), _ = [];
3774
3783
  }
3775
- e.sectionBreaks = a;
3784
+ e.sectionBreaks = l;
3776
3785
  }
3777
3786
  return ie(t, e, s, n), u;
3778
3787
  }
@@ -3780,15 +3789,15 @@ function Er(t, e, s, n, r) {
3780
3789
  const { customBlocks: i } = t, { customBlocks: o } = e;
3781
3790
  if (i == null || o == null)
3782
3791
  return;
3783
- const u = Xe(t, s, n);
3792
+ const u = Qe(t, s, n);
3784
3793
  if (r !== M.REPLACE) {
3785
- const a = [];
3794
+ const l = [];
3786
3795
  for (const c of o) {
3787
- const { startIndex: l } = c;
3796
+ const { startIndex: a } = c;
3788
3797
  let _ = [];
3789
3798
  for (const d of u) {
3790
3799
  const { startIndex: f } = d;
3791
- if (l === f) {
3800
+ if (a === f) {
3792
3801
  r === M.COVER ? _.push({
3793
3802
  ...d,
3794
3803
  ...c
@@ -3799,25 +3808,25 @@ function Er(t, e, s, n, r) {
3799
3808
  break;
3800
3809
  }
3801
3810
  }
3802
- a.push(..._), _ = [];
3811
+ l.push(..._), _ = [];
3803
3812
  }
3804
- e.customBlocks = a;
3813
+ e.customBlocks = l;
3805
3814
  }
3806
- return je(t, e, s, n), u;
3815
+ return Ye(t, e, s, n), u;
3807
3816
  }
3808
3817
  function Rr(t, e, s, n, r) {
3809
3818
  const { tables: i } = t, { tables: o } = e;
3810
3819
  if (i == null || o == null)
3811
3820
  return;
3812
- const u = Qe(t, s, n);
3821
+ const u = Je(t, s, n);
3813
3822
  if (r !== M.REPLACE) {
3814
- const a = [];
3823
+ const l = [];
3815
3824
  for (const c of o) {
3816
- const { startIndex: l, endIndex: _ } = c;
3825
+ const { startIndex: a, endIndex: _ } = c;
3817
3826
  let d = [];
3818
3827
  for (const f of u) {
3819
3828
  const { startIndex: g, endIndex: R } = f;
3820
- if (g >= l && R <= _) {
3829
+ if (g >= a && R <= _) {
3821
3830
  r === M.COVER ? d.push({
3822
3831
  ...f,
3823
3832
  ...c
@@ -3828,9 +3837,9 @@ function Rr(t, e, s, n, r) {
3828
3837
  break;
3829
3838
  }
3830
3839
  }
3831
- a.push(...d), d = [];
3840
+ l.push(...d), d = [];
3832
3841
  }
3833
- e.tables = a;
3842
+ e.tables = l;
3834
3843
  }
3835
3844
  return oe(t, e, s, n), u;
3836
3845
  }
@@ -3840,13 +3849,13 @@ function mr(t, e, s, n, r) {
3840
3849
  return;
3841
3850
  const u = qe(t, s, n);
3842
3851
  if (r !== M.REPLACE) {
3843
- const a = [];
3852
+ const l = [];
3844
3853
  for (const c of o) {
3845
- const { startIndex: l, endIndex: _ } = c;
3854
+ const { startIndex: a, endIndex: _ } = c;
3846
3855
  let d = [];
3847
3856
  for (const f of u) {
3848
3857
  const { startIndex: g, endIndex: R } = f;
3849
- if (g >= l && R <= _) {
3858
+ if (g >= a && R <= _) {
3850
3859
  r === M.COVER ? d.push({
3851
3860
  ...f,
3852
3861
  ...c
@@ -3857,61 +3866,61 @@ function mr(t, e, s, n, r) {
3857
3866
  break;
3858
3867
  }
3859
3868
  }
3860
- a.push(...d), d = [];
3869
+ l.push(...d), d = [];
3861
3870
  }
3862
- e.customRanges = a;
3871
+ e.customRanges = l;
3863
3872
  }
3864
3873
  return oe(t, e, s, n), u;
3865
3874
  }
3866
3875
  var m = /* @__PURE__ */ ((t) => (t.RETAIN = "r", t.INSERT = "i", t.DELETE = "d", t))(m || {});
3867
- function Ze(t, e, s) {
3876
+ function ye(t, e, s) {
3868
3877
  const { dataStream: n, textRuns: r = [], paragraphs: i = [] } = t, o = {
3869
3878
  dataStream: n.slice(e, s)
3870
3879
  }, u = [];
3871
3880
  for (const c of r) {
3872
- const l = E.deepClone(c), { st: _, ed: d } = l;
3881
+ const a = E.deepClone(c), { st: _, ed: d } = a;
3873
3882
  E.hasIntersectionBetweenTwoRanges(_, d, e, s) && (e >= _ && e <= d ? u.push({
3874
- ...l,
3883
+ ...a,
3875
3884
  st: e,
3876
3885
  ed: Math.min(s, d)
3877
3886
  }) : s >= _ && s <= d ? u.push({
3878
- ...l,
3887
+ ...a,
3879
3888
  st: Math.max(e, _),
3880
3889
  ed: s
3881
- }) : u.push(l));
3890
+ }) : u.push(a));
3882
3891
  }
3883
3892
  u.length && (o.textRuns = u.map((c) => {
3884
- const { st: l, ed: _ } = c;
3893
+ const { st: a, ed: _ } = c;
3885
3894
  return {
3886
3895
  ...c,
3887
- st: l - e,
3896
+ st: a - e,
3888
3897
  ed: _ - e
3889
3898
  };
3890
3899
  }));
3891
- const a = [];
3900
+ const l = [];
3892
3901
  for (const c of i) {
3893
- const { startIndex: l } = c;
3894
- l >= e && l <= s && a.push(E.deepClone(c));
3902
+ const { startIndex: a } = c;
3903
+ a >= e && a <= s && l.push(E.deepClone(c));
3895
3904
  }
3896
- return a.length && (o.paragraphs = a.map((c) => ({
3905
+ return l.length && (o.paragraphs = l.map((c) => ({
3897
3906
  ...c,
3898
3907
  startIndex: c.startIndex - e
3899
3908
  }))), o;
3900
3909
  }
3901
- function Ae(t, e, s = M.COVER) {
3910
+ function Ie(t, e, s = M.COVER) {
3902
3911
  if (e.dataStream !== "")
3903
3912
  throw new Error("Cannot compose other body with non-empty dataStream");
3904
3913
  const n = {
3905
3914
  dataStream: t.dataStream
3906
- }, { textRuns: r = [], paragraphs: i = [] } = t, { textRuns: o = [], paragraphs: u = [] } = e, a = Je(o, r, s);
3907
- a.length && (n.textRuns = a);
3915
+ }, { textRuns: r = [], paragraphs: i = [] } = t, { textRuns: o = [], paragraphs: u = [] } = e, l = Ze(o, r, s);
3916
+ l.length && (n.textRuns = l);
3908
3917
  const c = [];
3909
- let l = 0, _ = 0;
3910
- for (; l < i.length && _ < u.length; ) {
3911
- const d = i[l], f = u[_], { startIndex: g } = d, { startIndex: R } = f;
3912
- g === R ? (c.push(E.deepMerge(d, f)), l++, _++) : g < R ? (c.push(E.deepClone(d)), l++) : (c.push(E.deepClone(f)), _++);
3918
+ let a = 0, _ = 0;
3919
+ for (; a < i.length && _ < u.length; ) {
3920
+ const d = i[a], f = u[_], { startIndex: g } = d, { startIndex: R } = f;
3921
+ g === R ? (c.push(E.deepMerge(d, f)), a++, _++) : g < R ? (c.push(E.deepClone(d)), a++) : (c.push(E.deepClone(f)), _++);
3913
3922
  }
3914
- return l < i.length && c.push(...i.slice(l)), _ < u.length && c.push(...u.slice(_)), c.length && (n.paragraphs = c), n;
3923
+ return a < i.length && c.push(...i.slice(a)), _ < u.length && c.push(...u.slice(_)), c.length && (n.paragraphs = c), n;
3915
3924
  }
3916
3925
  function Or(t) {
3917
3926
  const { body: e } = t;
@@ -3920,14 +3929,14 @@ function Or(t) {
3920
3929
  const { textRuns: s = [], paragraphs: n = [] } = e;
3921
3930
  return s.length === 0 && n.length === 0;
3922
3931
  }
3923
- const ye = {
3932
+ const ts = {
3924
3933
  id: "default_doc",
3925
3934
  documentStyle: {}
3926
3935
  };
3927
3936
  class Ar {
3928
3937
  constructor(e) {
3929
3938
  h(this, "snapshot");
3930
- this.snapshot = { ...ye, ...e };
3939
+ this.snapshot = { ...ts, ...e };
3931
3940
  }
3932
3941
  get drawings() {
3933
3942
  return this.snapshot.drawings;
@@ -3973,6 +3982,12 @@ class Ar {
3973
3982
  ...e
3974
3983
  };
3975
3984
  }
3985
+ updateDocumentStyle(e) {
3986
+ this.snapshot.documentStyle == null ? this.snapshot.documentStyle = e : this.snapshot.documentStyle = {
3987
+ ...this.snapshot.documentStyle,
3988
+ ...e
3989
+ };
3990
+ }
3976
3991
  updateDocumentDataMargin(e) {
3977
3992
  const { t: s, l: n, b: r, r: i } = e, { documentStyle: o } = this.snapshot;
3978
3993
  s != null && (o.marginTop = s), n != null && (o.marginLeft = n), r != null && (o.marginBottom = r), i != null && (o.marginRight = i);
@@ -3989,10 +4004,10 @@ class Ar {
3989
4004
  e !== void 0 && (n.pageSize.width = e), s !== void 0 && (n.pageSize.height = s);
3990
4005
  }
3991
4006
  updateDrawing(e, s) {
3992
- const { drawings: n } = this, { width: r, height: i, left: o, top: u } = s, a = n == null ? void 0 : n[e];
3993
- if (!a)
4007
+ const { drawings: n } = this, { width: r, height: i, left: o, top: u } = s, l = n == null ? void 0 : n[e];
4008
+ if (!l)
3994
4009
  return;
3995
- const c = a.objectTransform;
4010
+ const c = l.objectTransform;
3996
4011
  c.size.width = r, c.size.height = i, c.positionH.posOffset = o, c.positionV.posOffset = u;
3997
4012
  }
3998
4013
  setZoomRatio(e = 1) {
@@ -4001,7 +4016,7 @@ class Ar {
4001
4016
  } : this.snapshot.settings.zoomRatio = 1;
4002
4017
  }
4003
4018
  }
4004
- class ut extends Ar {
4019
+ class et extends Ar {
4005
4020
  constructor(s) {
4006
4021
  var r;
4007
4022
  super(s);
@@ -4032,7 +4047,7 @@ class ut extends Ar {
4032
4047
  reset(s) {
4033
4048
  if (s.id && s.id !== this._unitId)
4034
4049
  throw new Error("Cannot reset a document model with a different unit id!");
4035
- this.snapshot = { ...ye, ...s }, this._initializeHeaderFooterModel();
4050
+ this.snapshot = { ...ts, ...s }, this._initializeHeaderFooterModel();
4036
4051
  }
4037
4052
  getSelfOrHeaderFooterModel(s) {
4038
4053
  if (s != null) {
@@ -4050,35 +4065,35 @@ class ut extends Ar {
4050
4065
  const n = [], r = new Gs();
4051
4066
  return r.reset(), s.forEach((i) => {
4052
4067
  if (i = E.deepClone(i), i.t === m.RETAIN) {
4053
- const { coverType: o, body: u, len: a, segmentId: c } = i;
4068
+ const { coverType: o, body: u, len: l, segmentId: c } = i;
4054
4069
  if (u != null) {
4055
- const l = this._updateApply(u, a, r.cursor, o, c);
4070
+ const a = this._updateApply(u, l, r.cursor, o, c);
4056
4071
  n.push({
4057
4072
  ...i,
4058
4073
  t: m.RETAIN,
4059
4074
  coverType: M.REPLACE,
4060
- body: l
4075
+ body: a
4061
4076
  });
4062
4077
  } else
4063
4078
  n.push({
4064
4079
  ...i,
4065
4080
  t: m.RETAIN
4066
4081
  });
4067
- r.moveCursor(a);
4082
+ r.moveCursor(l);
4068
4083
  } else if (i.t === m.INSERT) {
4069
- const { body: o, len: u, segmentId: a, line: c } = i;
4070
- this._insertApply(o, u, r.cursor, a), r.moveCursor(u), n.push({
4084
+ const { body: o, len: u, segmentId: l, line: c } = i;
4085
+ this._insertApply(o, u, r.cursor, l), r.moveCursor(u), n.push({
4071
4086
  t: m.DELETE,
4072
4087
  len: u,
4073
4088
  line: c,
4074
- segmentId: a
4089
+ segmentId: l
4075
4090
  });
4076
4091
  } else if (i.t === m.DELETE) {
4077
- const { len: o, segmentId: u } = i, a = this._deleteApply(o, r.cursor, u);
4092
+ const { len: o, segmentId: u } = i, l = this._deleteApply(o, r.cursor, u);
4078
4093
  n.push({
4079
4094
  ...i,
4080
4095
  t: m.INSERT,
4081
- body: a
4096
+ body: l
4082
4097
  });
4083
4098
  } else
4084
4099
  throw new Error(`Unknown action type for action: ${i}.`);
@@ -4087,21 +4102,21 @@ class ut extends Ar {
4087
4102
  sliceBody(s, n) {
4088
4103
  const r = this.getBody();
4089
4104
  if (r != null)
4090
- return Ze(r, s, n);
4105
+ return ye(r, s, n);
4091
4106
  }
4092
4107
  _updateApply(s, n, r, i = M.COVER, o) {
4093
4108
  if (s == null)
4094
4109
  throw new Error("updateBody is none");
4095
- const u = this.snapshot, a = Tt(u, o);
4096
- if (a == null)
4110
+ const u = this.snapshot, l = Tt(u, o);
4111
+ if (l == null)
4097
4112
  throw new Error("no body has changed");
4098
- return _r(a, s, n, r, i);
4113
+ return _r(l, s, n, r, i);
4099
4114
  }
4100
4115
  _deleteApply(s, n, r) {
4101
4116
  const i = this.snapshot, o = Tt(i, r);
4102
4117
  if (o == null)
4103
4118
  throw new Error("no body has changed");
4104
- return s <= 0 ? { dataStream: "" } : pn(o, s, n);
4119
+ return s <= 0 ? { dataStream: "" } : Bn(o, s, n);
4105
4120
  }
4106
4121
  _insertApply(s, n, r, i) {
4107
4122
  const o = this.snapshot, u = Tt(o, i);
@@ -4116,19 +4131,19 @@ class ut extends Ar {
4116
4131
  if (s)
4117
4132
  for (const r in s) {
4118
4133
  const i = s[r];
4119
- this.headerModelMap.set(r, new ut(i));
4134
+ this.headerModelMap.set(r, new et(i));
4120
4135
  }
4121
4136
  if (n)
4122
4137
  for (const r in n) {
4123
4138
  const i = n[r];
4124
- this.footerModelMap.set(r, new ut(i));
4139
+ this.footerModelMap.set(r, new et(i));
4125
4140
  }
4126
4141
  }
4127
4142
  updateDocumentId(s) {
4128
4143
  super.updateDocumentId(s), this._unitId = s;
4129
4144
  }
4130
4145
  }
4131
- const Ir = "0.1.0-beta.5", gt = {
4146
+ const Ir = "0.1.2", gt = {
4132
4147
  sheetId: "",
4133
4148
  range: {
4134
4149
  startRow: -1,
@@ -4136,17 +4151,17 @@ const Ir = "0.1.0-beta.5", gt = {
4136
4151
  startColumn: -1,
4137
4152
  endColumn: -1
4138
4153
  }
4139
- }, go = {
4154
+ }, Eo = {
4140
4155
  startRow: -1,
4141
4156
  startColumn: -1,
4142
4157
  endRow: -1,
4143
4158
  endColumn: -1
4144
- }, Eo = {
4159
+ }, Ro = {
4145
4160
  startRow: 0,
4146
4161
  startColumn: 0,
4147
4162
  endRow: 0,
4148
4163
  endColumn: 0
4149
- }, Ro = {
4164
+ }, mo = {
4150
4165
  row: 0,
4151
4166
  column: 0
4152
4167
  }, Cr = {
@@ -4231,11 +4246,11 @@ const Ir = "0.1.0-beta.5", gt = {
4231
4246
  /**
4232
4247
  * verticalAlignment
4233
4248
  */
4234
- vt: nt.UNSPECIFIED,
4249
+ vt: rt.UNSPECIFIED,
4235
4250
  /**
4236
4251
  * wrapStrategy
4237
4252
  */
4238
- tb: rt.UNSPECIFIED,
4253
+ tb: it.UNSPECIFIED,
4239
4254
  /**
4240
4255
  * padding
4241
4256
  */
@@ -4309,10 +4324,10 @@ class wr {
4309
4324
  return null;
4310
4325
  }
4311
4326
  }
4312
- function mo(t) {
4327
+ function Oo(t) {
4313
4328
  return t && (t.s !== void 0 || t.p !== void 0 || t.v !== void 0 || t.t !== void 0 || t.f !== void 0 || t.si !== void 0);
4314
4329
  }
4315
- function Oo(t) {
4330
+ function Ao(t) {
4316
4331
  if (t.t !== void 0)
4317
4332
  return t.t;
4318
4333
  if (typeof t.v == "string")
@@ -4322,16 +4337,16 @@ function Oo(t) {
4322
4337
  if (typeof t.v == "boolean")
4323
4338
  return mt.BOOLEAN;
4324
4339
  }
4325
- function Ao(t) {
4340
+ function Io(t) {
4326
4341
  if (t == null)
4327
4342
  return !0;
4328
4343
  const { v: e, f: s, si: n, p: r, s: i } = t;
4329
4344
  return !(!(e == null || typeof e == "string" && e.length === 0) || s != null && s.length > 0 || n != null && n.length > 0 || r != null);
4330
4345
  }
4331
- function Io(t) {
4346
+ function Co(t) {
4332
4347
  return t != null && (typeof t == "string" || typeof t == "number" || typeof t == "boolean");
4333
4348
  }
4334
- var ts = /* @__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))(ts || {}), Lr = /* @__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))(Lr || {}), br = /* @__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))(br || {});
4349
+ var es = /* @__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))(es || {}), Lr = /* @__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))(Lr || {}), br = /* @__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))(br || {});
4335
4350
  class vr {
4336
4351
  constructor(e, s) {
4337
4352
  h(this, "_columnData", {});
@@ -4458,33 +4473,34 @@ class vr {
4458
4473
  }
4459
4474
  }
4460
4475
  function Et(t, e) {
4461
- const { textRuns: s = [], paragraphs: n = [], sectionBreaks: r = [] } = e;
4462
- let i = 0;
4463
- for (const o of s) {
4464
- const { ts: u = {}, st: a, ed: c } = o;
4465
- if (u[t] == null)
4476
+ const { textRuns: s = [] } = e;
4477
+ let n = 0;
4478
+ for (const i of s) {
4479
+ const { ts: o = {}, st: u, ed: l } = i;
4480
+ if (o[t] == null)
4466
4481
  return O.FALSE;
4467
4482
  switch (t) {
4468
4483
  case "bl":
4469
4484
  case "it": {
4470
- if (u[t] === O.FALSE)
4485
+ if (o[t] === O.FALSE)
4471
4486
  return O.FALSE;
4472
4487
  break;
4473
4488
  }
4474
4489
  case "ul":
4475
4490
  case "st": {
4476
- if (u[t].s === O.FALSE)
4491
+ if (o[t].s === O.FALSE)
4477
4492
  return O.FALSE;
4478
4493
  break;
4479
4494
  }
4480
4495
  default:
4481
4496
  throw new Error(`unknown style key: ${t} in IStyleBase`);
4482
4497
  }
4483
- i += c - a;
4498
+ n += l - u;
4484
4499
  }
4485
- return e.dataStream.length - n.length - r.length === i ? O.TRUE : O.FALSE;
4500
+ return e.dataStream.indexOf(`\r
4501
+ `) === n ? O.TRUE : O.FALSE;
4486
4502
  }
4487
- class at {
4503
+ class lt {
4488
4504
  constructor(e, s, n) {
4489
4505
  h(this, "_range");
4490
4506
  h(this, "_worksheet");
@@ -4493,8 +4509,8 @@ class at {
4493
4509
  static foreach(e, s) {
4494
4510
  const { startRow: n, startColumn: r, endRow: i, endColumn: o } = e;
4495
4511
  for (let u = n; u <= i; u++)
4496
- for (let a = r; a <= o; a++)
4497
- s(u, a);
4512
+ for (let l = r; l <= o; l++)
4513
+ s(u, l);
4498
4514
  }
4499
4515
  /**
4500
4516
  * get current range data
@@ -4529,8 +4545,8 @@ class at {
4529
4545
  const { startRow: e, endRow: s, startColumn: n, endColumn: r } = this._range, i = [];
4530
4546
  for (let o = e; o <= s; o++) {
4531
4547
  const u = [];
4532
- for (let a = n; a <= r; a++)
4533
- u.push(this.getMatrix().getValue(o, a) || null);
4548
+ for (let l = n; l <= r; l++)
4549
+ u.push(this.getMatrix().getValue(o, l) || null);
4534
4550
  i.push(u);
4535
4551
  }
4536
4552
  return i;
@@ -4543,8 +4559,8 @@ class at {
4543
4559
  getMatrix() {
4544
4560
  const { startRow: e, endRow: s, startColumn: n, endColumn: r } = this._range, i = this._worksheet.getCellMatrix(), o = new V();
4545
4561
  for (let u = e; u <= s; u++)
4546
- for (let a = n; a <= r; a++)
4547
- o.setValue(u, a, i.getValue(u, a) || null);
4562
+ for (let l = n; l <= r; l++)
4563
+ o.setValue(u, l, i.getValue(u, l) || null);
4548
4564
  return o;
4549
4565
  }
4550
4566
  /**
@@ -4555,8 +4571,8 @@ class at {
4555
4571
  getMatrixObject() {
4556
4572
  const { startRow: e, endRow: s, startColumn: n, endColumn: r } = this._range, i = this._worksheet.getCellMatrix(), o = new V();
4557
4573
  for (let u = e; u <= s; u++)
4558
- for (let a = n; a <= r; a++)
4559
- o.setValue(u - e, a - n, i.getValue(u, a) || {});
4574
+ for (let l = n; l <= r; l++)
4575
+ o.setValue(u - e, l - n, i.getValue(u, l) || {});
4560
4576
  return o;
4561
4577
  }
4562
4578
  /**
@@ -4606,7 +4622,7 @@ class at {
4606
4622
  startColumn: i + s,
4607
4623
  endColumn: i + s
4608
4624
  };
4609
- return new at(this._worksheet, u, this._deps);
4625
+ return new lt(this._worksheet, u, this._deps);
4610
4626
  }
4611
4627
  /**
4612
4628
  * Returns the starting column position for this range
@@ -4632,13 +4648,13 @@ class at {
4632
4648
  var u;
4633
4649
  const { startRow: s, endRow: n, startColumn: r, endColumn: i } = this._range, o = this._worksheet.getCellMatrix().getFragment(s, n, r, i).getData();
4634
4650
  if (e.isIncludeStyle) {
4635
- const a = this._deps.getStyles();
4651
+ const l = this._deps.getStyles();
4636
4652
  for (let c = 0; c <= n - s; c++)
4637
- for (let l = 0; l <= i - r; l++) {
4638
- if (o == null || ((u = o == null ? void 0 : o[c]) == null ? void 0 : u[l]) == null)
4653
+ for (let a = 0; a <= i - r; a++) {
4654
+ if (o == null || ((u = o == null ? void 0 : o[c]) == null ? void 0 : u[a]) == null)
4639
4655
  continue;
4640
- const _ = o[c][l].s;
4641
- _ && (o[c][l].s = a.get(_));
4656
+ const _ = o[c][a].s;
4657
+ _ && (o[c][a].s = l.get(_));
4642
4658
  }
4643
4659
  }
4644
4660
  return o;
@@ -4749,12 +4765,12 @@ class at {
4749
4765
  getFontStyle() {
4750
4766
  var s, n;
4751
4767
  const { p: e } = (s = this.getValue()) != null ? s : {};
4752
- return e && Array.isArray((n = e.body) == null ? void 0 : n.textRuns) && e.body.textRuns.length > 0 ? Et("it", e.body) === O.TRUE ? Gt.ITALIC : Gt.NORMAL : this.getFontStyles()[0][0];
4768
+ return e && Array.isArray((n = e.body) == null ? void 0 : n.textRuns) && e.body.textRuns.length > 0 ? Et("it", e.body) === O.TRUE ? Gt.ITALIC : Gt.NORMAL : this._getFontStyles()[0][0];
4753
4769
  }
4754
4770
  /**
4755
4771
  * Returns the font styles of the cells in the range.
4756
4772
  */
4757
- getFontStyles() {
4773
+ _getFontStyles() {
4758
4774
  return this._getStyles("it");
4759
4775
  }
4760
4776
  /**
@@ -4940,7 +4956,7 @@ class at {
4940
4956
  return this.getWrapStrategies()[0][0];
4941
4957
  }
4942
4958
  forEach(e) {
4943
- at.foreach(this._range, e);
4959
+ lt.foreach(this._range, e);
4944
4960
  }
4945
4961
  /**
4946
4962
  *
@@ -4985,8 +5001,8 @@ class Dr {
4985
5001
  const u = n[o + e] || {
4986
5002
  hd: O.FALSE,
4987
5003
  h: r.defaultRowHeight
4988
- }, { ia: a, ah: c, h: l = r.defaultRowHeight } = u;
4989
- i += (a == null || a === O.TRUE) && typeof c == "number" ? c : l;
5004
+ }, { ia: l, ah: c, h: a = r.defaultRowHeight } = u;
5005
+ i += (l == null || l === O.TRUE) && typeof c == "number" ? c : a;
4990
5006
  }
4991
5007
  return i;
4992
5008
  }
@@ -5064,7 +5080,7 @@ class Dr {
5064
5080
  return j(this._rowData);
5065
5081
  }
5066
5082
  }
5067
- const Co = "DEFAULT_WORKSHEET_ROW_COUNT", Mr = 1e3, No = "DEFAULT_WORKSHEET_COLUMN_COUNT", Ur = 20, So = "DEFAULT_WORKSHEET_ROW_HEIGHT", Tr = 19, wo = "DEFAULT_WORKSHEET_COLUMN_WIDTH", Pr = 73, Lo = "DEFAULT_WORKSHEET_ROW_TITLE_WIDTH", xr = 46, bo = "DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT", Hr = 20;
5083
+ const No = "DEFAULT_WORKSHEET_ROW_COUNT", Mr = 1e3, So = "DEFAULT_WORKSHEET_COLUMN_COUNT", Ur = 20, wo = "DEFAULT_WORKSHEET_ROW_HEIGHT", Tr = 19, Lo = "DEFAULT_WORKSHEET_COLUMN_WIDTH", Pr = 73, bo = "DEFAULT_WORKSHEET_ROW_TITLE_WIDTH", xr = 46, vo = "DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT", Hr = 20;
5068
5084
  function Fr(t) {
5069
5085
  const e = {
5070
5086
  name: "Sheet1",
@@ -5127,22 +5143,22 @@ class Wr extends U {
5127
5143
  registerCellContentInterceptor(s) {
5128
5144
  if (this._cellContentInterceptors.includes(s))
5129
5145
  throw new Error("[SheetViewModel]: Interceptor already registered.");
5130
- return this._cellContentInterceptors.push(s), N(() => q(this._cellContentInterceptors, s));
5146
+ return this._cellContentInterceptors.push(s), N(() => J(this._cellContentInterceptors, s));
5131
5147
  }
5132
5148
  registerRowFilteredInterceptor(s) {
5133
5149
  if (this._rowFilteredInterceptors.includes(s))
5134
5150
  throw new Error("[SheetViewModel]: Interceptor already registered.");
5135
- return this._rowFilteredInterceptors.push(s), N(() => q(this._rowFilteredInterceptors, s));
5151
+ return this._rowFilteredInterceptors.push(s), N(() => J(this._rowFilteredInterceptors, s));
5136
5152
  }
5137
5153
  registerRowVisibleInterceptor(s) {
5138
5154
  if (this._rowVisibleInterceptors.includes(s))
5139
5155
  throw new Error("[SheetViewModel]: Interceptor already registered.");
5140
- return this._rowVisibleInterceptors.push(s), N(() => q(this._rowVisibleInterceptors, s));
5156
+ return this._rowVisibleInterceptors.push(s), N(() => J(this._rowVisibleInterceptors, s));
5141
5157
  }
5142
5158
  registerColVisibleInterceptor(s) {
5143
5159
  if (this._colVisibleInterceptors.includes(s))
5144
5160
  throw new Error("[SheetViewModel]: Interceptor already registered.");
5145
- return this._colVisibleInterceptors.push(s), N(() => q(this._colVisibleInterceptors, s));
5161
+ return this._colVisibleInterceptors.push(s), N(() => J(this._colVisibleInterceptors, s));
5146
5162
  }
5147
5163
  }
5148
5164
  class wt {
@@ -5182,15 +5198,15 @@ class wt {
5182
5198
  */
5183
5199
  getCellMatrixPrintRange() {
5184
5200
  const e = this.getCellMatrix(), s = this.getMergeData();
5185
- let n = -1, r = -1, i = -1, o = -1, u = !1, a = !1;
5186
- return e.forEach((c, l) => {
5187
- Object.keys(l).forEach((_) => {
5201
+ let n = -1, r = -1, i = -1, o = -1, u = !1, l = !1;
5202
+ return e.forEach((c, a) => {
5203
+ Object.keys(a).forEach((_) => {
5188
5204
  const d = +_, f = e.getValue(c, d), g = f != null && f.s ? this._styles.get(f.s) : null, R = (g == null ? void 0 : g.bd) && (g.bd.b || g.bd.l || g.bd.r || g.bd.t || g.bd.bc_tr || g.bd.bl_tr || g.bd.ml_tr || g.bd.tl_bc || g.bd.tl_br || g.bd.tl_mr);
5189
- (f && (f.v || f.p) || g != null && g.bg || R) && (u ? n = Math.min(n, c) : (n = c, u = !0), r = Math.max(r, c), a ? i = Math.min(i, d) : (a = !0, i = d), o = Math.max(o, d));
5205
+ (f && (f.v || f.p) || g != null && g.bg || R) && (u ? n = Math.min(n, c) : (n = c, u = !0), r = Math.max(r, c), l ? i = Math.min(i, d) : (l = !0, i = d), o = Math.max(o, d));
5190
5206
  });
5191
5207
  }), s.forEach((c) => {
5192
- u ? n = Math.min(n, c.startRow) : (n = c.startRow, u = !0), r = Math.max(r, c.endRow), a ? i = Math.min(i, c.startColumn) : (i = c.startColumn, u = !0), o = Math.max(o, c.endColumn);
5193
- }), !u || !a ? null : {
5208
+ u ? n = Math.min(n, c.startRow) : (n = c.startRow, u = !0), r = Math.max(r, c.endRow), l ? i = Math.min(i, c.startColumn) : (i = c.startColumn, u = !0), o = Math.max(o, c.endColumn);
5209
+ }), !u || !l ? null : {
5194
5210
  startColumn: i,
5195
5211
  startRow: n,
5196
5212
  endColumn: o,
@@ -5247,7 +5263,7 @@ class wt {
5247
5263
  const n = this._snapshot.mergeData, r = [];
5248
5264
  for (let i = 0; i < n.length; i++) {
5249
5265
  const o = n[i];
5250
- it.intersects(
5266
+ ot.intersects(
5251
5267
  {
5252
5268
  startRow: e,
5253
5269
  startColumn: s,
@@ -5263,7 +5279,7 @@ class wt {
5263
5279
  const n = this._snapshot.mergeData;
5264
5280
  for (let r = 0; r < n.length; r++) {
5265
5281
  const i = n[r];
5266
- if (it.intersects(
5282
+ if (ot.intersects(
5267
5283
  {
5268
5284
  startRow: e,
5269
5285
  startColumn: s,
@@ -5291,26 +5307,26 @@ class wt {
5291
5307
  // PERF: we could not skip indexes with merged cells, because we have already known the merged cells' range
5292
5308
  getMatrixWithMergedCells(e, s, n, r) {
5293
5309
  const i = this.getCellMatrix(), o = this._snapshot.mergeData.filter(
5294
- (a) => it.intersects({ startRow: e, startColumn: s, endRow: n, endColumn: r }, a)
5310
+ (l) => ot.intersects({ startRow: e, startColumn: s, endRow: n, endColumn: r }, l)
5295
5311
  ), u = new V();
5296
- return Oe(e, n, s, r).forEach((a, c) => {
5297
- const l = i.getValue(a, c);
5298
- l && u.setValue(a, c, l);
5299
- }), o.forEach((a) => {
5300
- const { startColumn: c, startRow: l, endColumn: _, endRow: d } = a;
5301
- Oe(l, d, c, _).forEach((f, g) => {
5302
- f === l && g === c && u.setValue(f, g, {
5312
+ return Ae(e, n, s, r).forEach((l, c) => {
5313
+ const a = i.getValue(l, c);
5314
+ a && u.setValue(l, c, a);
5315
+ }), o.forEach((l) => {
5316
+ const { startColumn: c, startRow: a, endColumn: _, endRow: d } = l;
5317
+ Ae(a, d, c, _).forEach((f, g) => {
5318
+ f === a && g === c && u.setValue(f, g, {
5303
5319
  ...i.getValue(f, g),
5304
- rowSpan: d - l + 1,
5320
+ rowSpan: d - a + 1,
5305
5321
  colSpan: _ - c + 1
5306
- }), (f !== l || g !== c) && u.realDeleteValue(f, g);
5322
+ }), (f !== a || g !== c) && u.realDeleteValue(f, g);
5307
5323
  });
5308
5324
  }), u;
5309
5325
  }
5310
5326
  getRange(e, s, n, r) {
5311
- return typeof e == "object" ? new at(this, e, {
5327
+ return typeof e == "object" ? new lt(this, e, {
5312
5328
  getStyles: () => this._styles
5313
- }) : new at(
5329
+ }) : new lt(
5314
5330
  this,
5315
5331
  {
5316
5332
  startRow: e,
@@ -5467,14 +5483,67 @@ class wt {
5467
5483
  return e && (e.v !== void 0 || e.f !== void 0 || e.p !== void 0);
5468
5484
  }
5469
5485
  // #region iterators
5486
+ // NOTE: performance intensive. Should keep an eye on methods in this region.
5487
+ /**
5488
+ * Iterate a range row by row.
5489
+ *
5490
+ * Performance intensive.
5491
+ */
5492
+ iterateByRow(e) {
5493
+ const { startRow: s, startColumn: n, endRow: r, endColumn: i } = e, o = this;
5494
+ let u = s, l = n;
5495
+ return {
5496
+ next() {
5497
+ for (; ; ) {
5498
+ if (l > i && (u += 1, l = n), u > r)
5499
+ return { done: !0, value: void 0 };
5500
+ const c = o.getCell(u, l), a = o.getMergedCell(u, l);
5501
+ if (a && (!c || u !== a.startRow || l !== a.startColumn))
5502
+ l = a.endColumn + 1;
5503
+ else if (!c)
5504
+ l += 1;
5505
+ else {
5506
+ const _ = { row: u, col: l, value: c };
5507
+ return a && (_.colSpan = a.endColumn - a.startColumn + 1, _.rowSpan = a.endRow - a.startRow + 1), l += 1, { done: !1, value: _ };
5508
+ }
5509
+ }
5510
+ }
5511
+ };
5512
+ }
5513
+ /**
5514
+ * Iterate a range column by column. This is pretty similar to `iterateByRow` but with different order.
5515
+ *
5516
+ * Performance intensive.
5517
+ */
5518
+ iterateByColumn(e) {
5519
+ const { startRow: s, startColumn: n, endRow: r, endColumn: i } = e, o = this;
5520
+ let u = s, l = n;
5521
+ return {
5522
+ next() {
5523
+ for (; ; ) {
5524
+ if (u > r && (l += 1, u = s), l > i)
5525
+ return { done: !0, value: void 0 };
5526
+ const c = o.getCell(u, l), a = o.getMergedCell(u, l);
5527
+ if (a && (!c || u !== a.startRow || l !== a.startColumn))
5528
+ u = a.endRow + 1;
5529
+ else if (!c)
5530
+ u += 1;
5531
+ else {
5532
+ const _ = { row: u, col: l, value: c };
5533
+ return a && (_.colSpan = a.endColumn - a.startColumn + 1, _.rowSpan = a.endRow - a.startRow + 1), u += 1, { done: !1, value: _ };
5534
+ }
5535
+ }
5536
+ }
5537
+ };
5538
+ }
5470
5539
  // #endregion
5471
5540
  }
5472
- var Br = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, Gr = (t, e, s, n) => {
5473
- for (var r = n > 1 ? void 0 : n ? pr(e, s) : e, i = t.length - 1, o; i >= 0; i--)
5541
+ var pr = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, Gr = (t, e, s, n) => {
5542
+ for (var r = n > 1 ? void 0 : n ? Br(e, s) : e, i = t.length - 1, o; i >= 0; i--)
5474
5543
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
5475
- return n && r && Br(e, s, r), r;
5544
+ return n && r && pr(e, s, r), r;
5476
5545
  }, $r = (t, e) => (s, n) => e(s, n, t);
5477
- function vo(t, e) {
5546
+ function Do(t, e) {
5478
5547
  return `${t.getUnitId()}|${e.getSheetId()}`;
5479
5548
  }
5480
5549
  let Lt = class extends U {
@@ -5732,7 +5801,7 @@ let Lt = class extends U {
5732
5801
  * @returns
5733
5802
  */
5734
5803
  _getCellRange(e) {
5735
- var c, l, _, d, f;
5804
+ var c, a, _, d, f;
5736
5805
  let s = "", n = "";
5737
5806
  if (e.indexOf("!") > -1) {
5738
5807
  const g = e.split("!");
@@ -5752,7 +5821,7 @@ let Lt = class extends U {
5752
5821
  } : gt;
5753
5822
  }
5754
5823
  n = n.split(":");
5755
- const r = [0, 0], i = [0, 0], o = ((c = this.getSheetBySheetName(s)) == null ? void 0 : c.getMaxRows()) || ((l = this.getActiveSheet()) == null ? void 0 : l.getMaxRows()), u = ((_ = this.getSheetBySheetName(s)) == null ? void 0 : _.getMaxColumns()) || ((d = this.getActiveSheet()) == null ? void 0 : d.getMaxColumns());
5824
+ const r = [0, 0], i = [0, 0], o = ((c = this.getSheetBySheetName(s)) == null ? void 0 : c.getMaxRows()) || ((a = this.getActiveSheet()) == null ? void 0 : a.getMaxRows()), u = ((_ = this.getSheetBySheetName(s)) == null ? void 0 : _.getMaxColumns()) || ((d = this.getActiveSheet()) == null ? void 0 : d.getMaxColumns());
5756
5825
  return r[0] = Number.parseInt(n[0].replace(/[^0-9]/g, ""), 10) - 1, r[1] = Number.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] = E.ABCatNum(n[0].replace(/[^A-Za-z]/g, "")), i[1] = E.ABCatNum(n[1].replace(/[^A-Za-z]/g, "")), Number.isNaN(i[0]) && (i[0] = 0), Number.isNaN(i[1]) && (i[1] = u), i[0] > i[1]) ? gt : {
5757
5826
  sheetId: ((f = this.getSheetBySheetName(s)) == null ? void 0 : f.getSheetId()) || "",
5758
5827
  range: {
@@ -5776,15 +5845,15 @@ let Lt = class extends U {
5776
5845
  for (const i in n) {
5777
5846
  const o = n[i], { name: u } = o;
5778
5847
  o.name = this.uniqueSheetName(u), o.name !== u && this._logService.error(`The worksheet name ${u} is duplicated, we change it to ${o.name}`);
5779
- const a = new wt(o, this._styles);
5780
- s.set(i, a), r.includes(i) || r.push(i);
5848
+ const l = new wt(o, this._styles);
5849
+ s.set(i, l), r.includes(i) || r.push(i);
5781
5850
  }
5782
5851
  }
5783
5852
  };
5784
5853
  Lt = Gr([
5785
5854
  $r(1, y)
5786
5855
  ], Lt);
5787
- class es {
5856
+ class ss {
5788
5857
  constructor(e) {
5789
5858
  h(this, "_snapshot");
5790
5859
  h(this, "_unitId");
@@ -5823,7 +5892,7 @@ class es {
5823
5892
  addPage() {
5824
5893
  return {
5825
5894
  id: "cover_1",
5826
- pageType: ts.SLIDE,
5895
+ pageType: es.SLIDE,
5827
5896
  zIndex: 1,
5828
5897
  title: "cover",
5829
5898
  description: "this is first page, cover",
@@ -5834,13 +5903,13 @@ class es {
5834
5903
  };
5835
5904
  }
5836
5905
  }
5837
- const Kt = "FOCUSING_SHEET", Ie = "FOCUSING_DOC", Ce = "FOCUSING_SLIDE", Do = "FOCUSING_EDITOR_BUT_HIDDEN", kr = "EDITOR_ACTIVATED", Mo = "FOCUSING_EDITOR_INPUT_FORMULA", Vr = "FOCUSING_FORMULA_EDITOR", Uo = "FOCUSING_UNIVER_EDITOR";
5906
+ const Kt = "FOCUSING_SHEET", Ce = "FOCUSING_DOC", Ne = "FOCUSING_SLIDE", Mo = "FOCUSING_EDITOR_BUT_HIDDEN", kr = "EDITOR_ACTIVATED", Uo = "FOCUSING_EDITOR_INPUT_FORMULA", Vr = "FOCUSING_FORMULA_EDITOR", To = "FOCUSING_UNIVER_EDITOR", Po = "FOCUSING_UNIVER_EDITOR_SINGLE_MODE";
5838
5907
  var jr = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, Kr = (t, e, s, n) => {
5839
5908
  for (var r = n > 1 ? void 0 : n ? Yr(e, s) : e, i = t.length - 1, o; i >= 0; i--)
5840
5909
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
5841
5910
  return n && r && jr(e, s, r), r;
5842
5911
  }, zr = (t, e) => (s, n) => e(s, n, t), Xr = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.DOC = 1] = "DOC", t[t.SHEET = 2] = "SHEET", t[t.SLIDE = 3] = "SLIDE", t))(Xr || {});
5843
- const lt = F("univer.current");
5912
+ const at = F("univer.current");
5844
5913
  let zt = class extends U {
5845
5914
  constructor(e, s) {
5846
5915
  super();
@@ -5945,7 +6014,7 @@ let zt = class extends U {
5945
6014
  return e;
5946
6015
  }
5947
6016
  focusUniverInstance(e) {
5948
- e && (this._focused = this.getUniverSheetInstance(e) || this.getUniverDocInstance(e) || this.getUniverSlideInstance(e) || null), this._focused$.next(e), [Ie, Kt, Ce].forEach((s) => this._contextService.setContextValue(s, !1)), this._focused instanceof Lt ? this._contextService.setContextValue(Kt, !0) : this._focused instanceof ut ? this._contextService.setContextValue(Ie, !0) : this._focused instanceof es && this._contextService.setContextValue(Ce, !0);
6017
+ e && (this._focused = this.getUniverSheetInstance(e) || this.getUniverDocInstance(e) || this.getUniverSlideInstance(e) || null), this._focused$.next(e), [Ce, Kt, Ne].forEach((s) => this._contextService.setContextValue(s, !1)), this._focused instanceof Lt ? this._contextService.setContextValue(Kt, !0) : this._focused instanceof et ? this._contextService.setContextValue(Ce, !0) : this._focused instanceof ss && this._contextService.setContextValue(Ne, !0);
5949
6018
  }
5950
6019
  getFocusedUniverInstance() {
5951
6020
  return this._focused;
@@ -5979,7 +6048,7 @@ let zt = class extends U {
5979
6048
  }
5980
6049
  };
5981
6050
  zt = Kr([
5982
- zr(1, ot)
6051
+ zr(1, ut)
5983
6052
  ], zt);
5984
6053
  var C = /* @__PURE__ */ ((t) => (t[t.Starting = 0] = "Starting", t[t.Ready = 1] = "Ready", t[t.Rendered = 2] = "Rendered", t[t.Steady = 3] = "Steady", t))(C || {});
5985
6054
  const Qr = {
@@ -5988,20 +6057,20 @@ const Qr = {
5988
6057
  2: "Rendered",
5989
6058
  3: "Steady"
5990
6059
  }, At = /* @__PURE__ */ new Map();
5991
- function ss(t, e) {
6060
+ function ns(t, e) {
5992
6061
  return function(r) {
5993
- ns(t, e);
6062
+ rs(t, e);
5994
6063
  };
5995
6064
  }
5996
- function ns(t, e) {
6065
+ function rs(t, e) {
5997
6066
  At.has(t) || At.set(t, []), At.get(t).push(e);
5998
6067
  }
5999
- var qr = Object.defineProperty, Jr = Object.getOwnPropertyDescriptor, rs = (t, e, s, n) => {
6000
- for (var r = n > 1 ? void 0 : n ? Jr(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6068
+ var Jr = Object.defineProperty, qr = Object.getOwnPropertyDescriptor, is = (t, e, s, n) => {
6069
+ for (var r = n > 1 ? void 0 : n ? qr(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6001
6070
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6002
- return n && r && qr(e, s, r), r;
6071
+ return n && r && Jr(e, s, r), r;
6003
6072
  }, Xt = (t, e) => (s, n) => e(s, n, t);
6004
- let p = class extends U {
6073
+ let B = class extends U {
6005
6074
  constructor(e) {
6006
6075
  super();
6007
6076
  h(this, "_lifecycle$", new k(C.Starting));
@@ -6025,15 +6094,15 @@ let p = class extends U {
6025
6094
  * @returns
6026
6095
  */
6027
6096
  subscribeWithPrevious() {
6028
- return new De((e) => (this.stage === C.Starting || (this.stage === C.Ready ? e.next(C.Starting) : this.stage === C.Rendered ? (e.next(C.Starting), e.next(C.Ready)) : (e.next(C.Starting), e.next(C.Ready), e.next(C.Rendered))), this._lifecycle$.subscribe(e)));
6097
+ return new Me((e) => (this.stage === C.Starting || (this.stage === C.Ready ? e.next(C.Starting) : this.stage === C.Rendered ? (e.next(C.Starting), e.next(C.Ready)) : (e.next(C.Starting), e.next(C.Ready), e.next(C.Rendered))), this._lifecycle$.subscribe(e)));
6029
6098
  }
6030
6099
  _reportProgress(e) {
6031
6100
  this._logService.debug("[LifecycleService]", `lifecycle progressed to "${Qr[e]}".`);
6032
6101
  }
6033
6102
  };
6034
- p = rs([
6103
+ B = is([
6035
6104
  Xt(0, y)
6036
- ], p);
6105
+ ], B);
6037
6106
  let X = class extends U {
6038
6107
  constructor(e, s) {
6039
6108
  super();
@@ -6054,9 +6123,9 @@ let X = class extends U {
6054
6123
  });
6055
6124
  }
6056
6125
  };
6057
- X = rs([
6058
- Xt(0, D(p)),
6059
- Xt(1, D(J))
6126
+ X = is([
6127
+ Xt(0, D(B)),
6128
+ Xt(1, D(q))
6060
6129
  ], X);
6061
6130
  class Rt extends U {
6062
6131
  constructor() {
@@ -6090,19 +6159,19 @@ class Rt extends U {
6090
6159
  h(this, "t", (s, ...n) => {
6091
6160
  if (!this._locales)
6092
6161
  throw new Error("Locale not initialized");
6093
- function r(u, a) {
6094
- const c = a.shift();
6162
+ function r(u, l) {
6163
+ const c = l.shift();
6095
6164
  if (c && u && c in u) {
6096
- const l = u[c];
6097
- return a.length > 0 && (typeof l == "object" || Array.isArray(l)) ? r(l, a) : l;
6165
+ const a = u[c];
6166
+ return l.length > 0 && (typeof a == "object" || Array.isArray(a)) ? r(a, l) : a;
6098
6167
  }
6099
6168
  return null;
6100
6169
  }
6101
6170
  const i = s.split("."), o = r(this._locales[this._currentLocale], i);
6102
6171
  if (typeof o == "string") {
6103
6172
  let u = o;
6104
- return n.forEach((a, c) => {
6105
- u = u.replace(`{${c}}`, a);
6173
+ return n.forEach((l, c) => {
6174
+ u = u.replace(`{${c}}`, l);
6106
6175
  }), u;
6107
6176
  } else
6108
6177
  return s;
@@ -6127,14 +6196,14 @@ class Rt extends U {
6127
6196
  return (s = this._locales) == null ? void 0 : s[this._currentLocale];
6128
6197
  }
6129
6198
  }
6130
- const is = F("resource-manager-service"), Zr = F("ResourcePersistenceService");
6131
- ns(C.Ready, Zr);
6199
+ const os = F("resource-manager-service"), Zr = F("ResourcePersistenceService");
6200
+ rs(C.Ready, Zr);
6132
6201
  var yr = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, ei = (t, e, s, n) => {
6133
6202
  for (var r = n > 1 ? void 0 : n ? ti(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6134
6203
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6135
6204
  return n && r && yr(e, s, r), r;
6136
- }, Ne = (t, e) => (s, n) => e(s, n, t);
6137
- const os = F("univer.permission-service"), Se = "PERMISSION";
6205
+ }, Se = (t, e) => (s, n) => e(s, n, t);
6206
+ const us = F("univer.permission-service"), we = "PERMISSION";
6138
6207
  let It = class extends U {
6139
6208
  constructor(e, s) {
6140
6209
  super();
@@ -6157,7 +6226,7 @@ let It = class extends U {
6157
6226
  const i = r.get(s);
6158
6227
  if (i) {
6159
6228
  const o = i.getValue();
6160
- o.value = n, o.status = pe.DONE, i.next(o);
6229
+ o.value = n, o.status = Ge.DONE, i.next(o);
6161
6230
  }
6162
6231
  });
6163
6232
  h(this, "getPermissionPoint", (e, s) => {
@@ -6174,7 +6243,7 @@ let It = class extends U {
6174
6243
  this.disposeWithMe(
6175
6244
  N(
6176
6245
  this._univerInstanceService.sheetAdded$.subscribe((e) => {
6177
- this._resourceManagerService.registerPluginResource(e.getUnitId(), Se, {
6246
+ this._resourceManagerService.registerPluginResource(e.getUnitId(), we, {
6178
6247
  onChange: (s, n) => {
6179
6248
  n.forEach((r) => {
6180
6249
  this.getPermissionPoint(s, r.id) ? this.updatePermissionPoint(s, r.id, r.value) : this.addPermissionPoint(s, r);
@@ -6188,7 +6257,7 @@ let It = class extends U {
6188
6257
  ), this.disposeWithMe(
6189
6258
  N(
6190
6259
  this._univerInstanceService.sheetDisposed$.subscribe((e) => {
6191
- this._resourceManagerService.disposePluginResource(e.getUnitId(), Se);
6260
+ this._resourceManagerService.disposePluginResource(e.getUnitId(), we);
6192
6261
  })
6193
6262
  )
6194
6263
  );
@@ -6227,9 +6296,9 @@ let It = class extends U {
6227
6296
  }
6228
6297
  };
6229
6298
  It = ei([
6230
- ss(C.Starting, It),
6231
- Ne(0, D(is)),
6232
- Ne(1, D(lt))
6299
+ ns(C.Starting, It),
6300
+ Se(0, D(os)),
6301
+ Se(1, D(at))
6233
6302
  ], It);
6234
6303
  const si = "univer.editable";
6235
6304
  class xt extends Tn {
@@ -6245,7 +6314,7 @@ var ni = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, ii = (t, e
6245
6314
  for (var r = n > 1 ? void 0 : n ? ri(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6246
6315
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6247
6316
  return n && r && ni(e, s, r), r;
6248
- }, we = (t, e) => (s, n) => e(s, n, t);
6317
+ }, Le = (t, e) => (s, n) => e(s, n, t);
6249
6318
  let Ct = class extends U {
6250
6319
  constructor(t, e) {
6251
6320
  super(), this._permissionService = t, this._univerInstanceService = e, this._init();
@@ -6268,9 +6337,9 @@ let Ct = class extends U {
6268
6337
  }
6269
6338
  };
6270
6339
  Ct = ii([
6271
- ss(C.Starting, Ct),
6272
- we(0, D(os)),
6273
- we(1, D(lt))
6340
+ ns(C.Starting, Ct),
6341
+ Le(0, D(us)),
6342
+ Le(1, D(at))
6274
6343
  ], Ct);
6275
6344
  class oi extends U {
6276
6345
  constructor() {
@@ -6312,7 +6381,7 @@ class oi extends U {
6312
6381
  this._register$.complete(), this._resourceMap.clear();
6313
6382
  }
6314
6383
  }
6315
- class Le extends U {
6384
+ class be extends U {
6316
6385
  constructor() {
6317
6386
  super();
6318
6387
  h(this, "_currentTheme");
@@ -6329,22 +6398,22 @@ class Le extends U {
6329
6398
  this._currentTheme = s, this._currentTheme$.next(s);
6330
6399
  }
6331
6400
  }
6332
- const ui = "__defaultDocumentNormalEditorSpecialUnitId_20231006__", ai = "__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__", To = `\r
6401
+ const ui = "__defaultDocumentNormalEditorSpecialUnitId_20231006__", li = "__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__", xo = `\r
6333
6402
  `;
6334
- var li = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, hi = (t, e, s, n) => {
6403
+ var ai = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, hi = (t, e, s, n) => {
6335
6404
  for (var r = n > 1 ? void 0 : n ? ci(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6336
6405
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6337
- return n && r && li(e, s, r), r;
6406
+ return n && r && ai(e, s, r), r;
6338
6407
  }, Ht = (t, e) => (s, n) => e(s, n, t);
6339
6408
  const ue = F("univer.undo-redo.service"), _i = 20;
6340
- class us {
6409
+ class ls {
6341
6410
  dispose() {
6342
6411
  }
6343
6412
  async dispatchToHandlers() {
6344
6413
  return !1;
6345
6414
  }
6346
6415
  }
6347
- const di = "univer.command.redo", fi = "univer.command.undo", gi = new class extends us {
6416
+ const di = "univer.command.redo", fi = "univer.command.undo", gi = new class extends ls {
6348
6417
  constructor() {
6349
6418
  super(...arguments);
6350
6419
  h(this, "type", ee.COMMAND);
@@ -6355,9 +6424,9 @@ const di = "univer.command.redo", fi = "univer.command.undo", gi = new class ext
6355
6424
  if (!n)
6356
6425
  return !1;
6357
6426
  const r = e.get(bt);
6358
- return (n.undo ? await n.undo(n.undoMutations) : He(n.undoMutations, r)) ? (s.popUndoToRedo(), !0) : !1;
6427
+ return (n.undo ? await n.undo(n.undoMutations) : Fe(n.undoMutations, r)) ? (s.popUndoToRedo(), !0) : !1;
6359
6428
  }
6360
- }(), Ei = new class extends us {
6429
+ }(), Ei = new class extends ls {
6361
6430
  constructor() {
6362
6431
  super(...arguments);
6363
6432
  h(this, "type", ee.COMMAND);
@@ -6368,7 +6437,7 @@ const di = "univer.command.redo", fi = "univer.command.undo", gi = new class ext
6368
6437
  if (!n)
6369
6438
  return !1;
6370
6439
  const r = e.get(bt);
6371
- return (n.redo ? await n.redo(n.redoMutations) : He(n.redoMutations, r)) ? (s.popRedoToUndo(), !0) : !1;
6440
+ return (n.redo ? await n.redo(n.redoMutations) : Fe(n.redoMutations, r)) ? (s.popRedoToUndo(), !0) : !1;
6372
6441
  }
6373
6442
  }();
6374
6443
  let Qt = class extends U {
@@ -6435,16 +6504,16 @@ let Qt = class extends U {
6435
6504
  return this._getRedoStack(e, !0);
6436
6505
  }
6437
6506
  _getFocusedUniverInstanceId() {
6438
- var i, o, u, a;
6507
+ var i, o, u, l;
6439
6508
  let e = "";
6440
6509
  const s = this._contextService.getContextValue(Kt), n = this._contextService.getContextValue(Vr), r = this._contextService.getContextValue(kr);
6441
- return s ? n ? e = ai : r ? e = ui : e = (o = (i = this._univerInstanceService.getFocusedUniverInstance()) == null ? void 0 : i.getUnitId()) != null ? o : "" : e = (a = (u = this._univerInstanceService.getFocusedUniverInstance()) == null ? void 0 : u.getUnitId()) != null ? a : "", e;
6510
+ return s ? n ? e = li : r ? e = ui : e = (o = (i = this._univerInstanceService.getFocusedUniverInstance()) == null ? void 0 : i.getUnitId()) != null ? o : "" : e = (l = (u = this._univerInstanceService.getFocusedUniverInstance()) == null ? void 0 : u.getUnitId()) != null ? l : "", e;
6442
6511
  }
6443
6512
  };
6444
6513
  Qt = hi([
6445
- Ht(0, lt),
6514
+ Ht(0, at),
6446
6515
  Ht(1, bt),
6447
- Ht(2, ot)
6516
+ Ht(2, ut)
6448
6517
  ], Qt);
6449
6518
  class vt extends U {
6450
6519
  constructor() {
@@ -6496,25 +6565,25 @@ var Ri = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, Oi = (t, e
6496
6565
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6497
6566
  return n && r && Ri(e, s, r), r;
6498
6567
  }, Ft = (t, e) => (s, n) => e(s, n, t);
6499
- let qt = class extends vt {
6568
+ let Jt = class extends vt {
6500
6569
  constructor(t, e, s) {
6501
6570
  super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
6502
6571
  }
6503
6572
  createDoc(t) {
6504
- return this._injector.createInstance(ut, t);
6573
+ return this._injector.createInstance(et, t);
6505
6574
  }
6506
6575
  };
6507
- qt = Oi([
6508
- Ft(0, D(J)),
6509
- Ft(1, D(p)),
6576
+ Jt = Oi([
6577
+ Ft(0, D(q)),
6578
+ Ft(1, D(B)),
6510
6579
  Ft(2, D(X))
6511
- ], qt);
6580
+ ], Jt);
6512
6581
  var Ai = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, Ci = (t, e, s, n) => {
6513
6582
  for (var r = n > 1 ? void 0 : n ? Ii(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6514
6583
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6515
6584
  return n && r && Ai(e, s, r), r;
6516
6585
  }, Wt = (t, e) => (s, n) => e(s, n, t);
6517
- let Jt = class extends vt {
6586
+ let qt = class extends vt {
6518
6587
  constructor(t, e, s) {
6519
6588
  super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
6520
6589
  }
@@ -6522,31 +6591,31 @@ let Jt = class extends vt {
6522
6591
  return this._injector.createInstance(Lt, t);
6523
6592
  }
6524
6593
  };
6525
- Jt = Ci([
6526
- Wt(0, D(J)),
6527
- Wt(1, D(p)),
6594
+ qt = Ci([
6595
+ Wt(0, D(q)),
6596
+ Wt(1, D(B)),
6528
6597
  Wt(2, D(X))
6529
- ], Jt);
6598
+ ], qt);
6530
6599
  var Ni = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, wi = (t, e, s, n) => {
6531
6600
  for (var r = n > 1 ? void 0 : n ? Si(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6532
6601
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6533
6602
  return n && r && Ni(e, s, r), r;
6534
- }, Bt = (t, e) => (s, n) => e(s, n, t);
6603
+ }, pt = (t, e) => (s, n) => e(s, n, t);
6535
6604
  let Zt = class extends vt {
6536
6605
  constructor(t, e, s) {
6537
6606
  super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
6538
6607
  }
6539
6608
  createSlide(t) {
6540
- return this._injector.createInstance(es, t);
6609
+ return this._injector.createInstance(ss, t);
6541
6610
  }
6542
6611
  };
6543
6612
  Zt = wi([
6544
- Bt(0, D(J)),
6545
- Bt(1, D(p)),
6546
- Bt(2, D(X))
6613
+ pt(0, D(q)),
6614
+ pt(1, D(B)),
6615
+ pt(2, D(X))
6547
6616
  ], Zt);
6548
6617
  const Li = 200;
6549
- class Po extends vt {
6618
+ class Ho extends vt {
6550
6619
  constructor(s = {}) {
6551
6620
  super();
6552
6621
  h(this, "_injector");
@@ -6558,13 +6627,13 @@ class Po extends vt {
6558
6627
  h(this, "_initLazyPluginsTimer");
6559
6628
  this._injector = this._initDependencies();
6560
6629
  const { theme: n, locale: r, locales: i, logLevel: o } = s;
6561
- n && this._injector.get(Le).setTheme(n), i && this._injector.get(Rt).load(i), r && this._injector.get(Rt).setLocale(r), o && this._injector.get(y).setLogLevel(o);
6630
+ n && this._injector.get(be).setTheme(n), i && this._injector.get(Rt).load(i), r && this._injector.get(Rt).setLocale(r), o && this._injector.get(y).setLogLevel(o);
6562
6631
  }
6563
6632
  get _univerInstanceService() {
6564
- return this._injector.get(lt);
6633
+ return this._injector.get(at);
6565
6634
  }
6566
6635
  get _lifecycleService() {
6567
- return this._injector.get(p);
6636
+ return this._injector.get(B);
6568
6637
  }
6569
6638
  get _lifecycleInitializerService() {
6570
6639
  return this._injector.get(X);
@@ -6590,7 +6659,7 @@ class Po extends vt {
6590
6659
  r();
6591
6660
  else {
6592
6661
  this._tryProgressToStart();
6593
- const i = this._univerSheet = this._injector.createInstance(Jt), o = this._univerPluginRegistry.getRegisterPlugins(L.Sheet).map((u) => [u.plugin, u.options]);
6662
+ const i = this._univerSheet = this._injector.createInstance(qt), o = this._univerPluginRegistry.getRegisterPlugins(L.Sheet).map((u) => [u.plugin, u.options]);
6594
6663
  this._univerPluginRegistry.clearPluginsOfType(L.Sheet), i.addPlugins(o), r(), this._tryProgressToReady();
6595
6664
  }
6596
6665
  return n;
@@ -6604,7 +6673,7 @@ class Po extends vt {
6604
6673
  r();
6605
6674
  else {
6606
6675
  this._tryProgressToStart();
6607
- const i = this._univerDoc = this._injector.createInstance(qt), o = this._univerPluginRegistry.getRegisterPlugins(L.Doc).map((u) => [u.plugin, u.options]);
6676
+ const i = this._univerDoc = this._injector.createInstance(Jt), o = this._univerPluginRegistry.getRegisterPlugins(L.Doc).map((u) => [u.plugin, u.options]);
6608
6677
  this._univerPluginRegistry.clearPluginsOfType(L.Doc), i.addPlugins(o), r(), this._tryProgressToReady();
6609
6678
  }
6610
6679
  return n;
@@ -6624,9 +6693,9 @@ class Po extends vt {
6624
6693
  return n;
6625
6694
  }
6626
6695
  _initDependencies() {
6627
- return new J([
6696
+ return new q([
6628
6697
  [
6629
- lt,
6698
+ at,
6630
6699
  {
6631
6700
  useFactory: (s) => new zt(
6632
6701
  {
@@ -6636,23 +6705,23 @@ class Po extends vt {
6636
6705
  },
6637
6706
  s
6638
6707
  ),
6639
- deps: [ot]
6708
+ deps: [ut]
6640
6709
  }
6641
6710
  ],
6642
6711
  [Ws],
6643
6712
  [Rt],
6644
- [Le],
6645
- [p],
6713
+ [be],
6714
+ [B],
6646
6715
  [X],
6647
- [os, { useClass: It }],
6716
+ [us, { useClass: It }],
6648
6717
  [Ct],
6649
6718
  [y, { useClass: vs, lazy: !0 }],
6650
- [bt, { useClass: pt, lazy: !0 }],
6719
+ [bt, { useClass: Bt, lazy: !0 }],
6651
6720
  [ue, { useClass: Qt, lazy: !0 }],
6652
6721
  [Hs, { useClass: Fs }],
6653
- [ot, { useClass: Ls }],
6654
- [ps, { useClass: Bs, lazy: !0 }],
6655
- [is, { useClass: oi, lazy: !0 }]
6722
+ [ut, { useClass: Ls }],
6723
+ [Bs, { useClass: ps, lazy: !0 }],
6724
+ [os, { useClass: oi, lazy: !0 }]
6656
6725
  ]);
6657
6726
  }
6658
6727
  /**
@@ -6662,7 +6731,7 @@ class Po extends vt {
6662
6731
  this._started || (this._injector.get(X).start(), this._started = !0);
6663
6732
  }
6664
6733
  _tryProgressToReady() {
6665
- this._injector.get(p).stage < C.Ready && (this._injector.get(p).stage = C.Ready, this._univerPluginStore.forEachPlugin((n) => n.onReady()));
6734
+ this._injector.get(B).stage < C.Ready && (this._injector.get(B).stage = C.Ready, this._univerPluginStore.forEachPlugin((n) => n.onReady()));
6666
6735
  }
6667
6736
  // #region register plugins
6668
6737
  /** Register a plugin into univer. */
@@ -6726,7 +6795,7 @@ class Po extends vt {
6726
6795
  }
6727
6796
  // #endregion
6728
6797
  }
6729
- function xo(t, e = 16) {
6798
+ function Fo(t, e = 16) {
6730
6799
  let s = 0, n = null;
6731
6800
  return function(...i) {
6732
6801
  const o = Date.now();
@@ -6735,7 +6804,7 @@ function xo(t, e = 16) {
6735
6804
  }, e)) : (s = o, t.apply(this, i));
6736
6805
  };
6737
6806
  }
6738
- function Ho(t) {
6807
+ function Wo(t) {
6739
6808
  const e = new MessageChannel();
6740
6809
  let s = !1;
6741
6810
  return e.port1.onmessage = () => {
@@ -6744,7 +6813,7 @@ function Ho(t) {
6744
6813
  s = !0;
6745
6814
  };
6746
6815
  }
6747
- class be {
6816
+ class ve {
6748
6817
  constructor(e) {
6749
6818
  h(this, "_index", 0);
6750
6819
  h(this, "_offset", 0);
@@ -6764,7 +6833,7 @@ class be {
6764
6833
  }) : E.deepClone({
6765
6834
  ...s,
6766
6835
  len: e,
6767
- body: Ze(s.body, n, n + e)
6836
+ body: ye(s.body, n, n + e)
6768
6837
  });
6769
6838
  } else
6770
6839
  return {
@@ -6794,33 +6863,33 @@ class be {
6794
6863
  return [];
6795
6864
  }
6796
6865
  }
6797
- function ve(t) {
6866
+ function De(t) {
6798
6867
  return Object.keys(t).length === 1;
6799
6868
  }
6800
- class as {
6869
+ class le {
6801
6870
  constructor() {
6802
6871
  h(this, "_actions", []);
6803
6872
  }
6804
6873
  static compose(e, s) {
6805
- const n = new be(e), r = new be(s), i = new as();
6874
+ const n = new ve(e), r = new ve(s), i = new le();
6806
6875
  for (; n.hasNext() || r.hasNext(); )
6807
6876
  if (r.peekType() === m.INSERT)
6808
6877
  i.push(r.next());
6809
6878
  else if (n.peekType() === m.DELETE)
6810
6879
  i.push(n.next());
6811
6880
  else {
6812
- const o = Math.min(n.peekLength(), r.peekLength()), u = n.next(o), a = r.next(o);
6813
- u.t === m.INSERT && a.t === m.RETAIN ? a.body == null ? i.push(u) : i.push({
6881
+ const o = Math.min(n.peekLength(), r.peekLength()), u = n.next(o), l = r.next(o);
6882
+ u.t === m.INSERT && l.t === m.RETAIN ? l.body == null ? i.push(u) : i.push({
6814
6883
  ...u,
6815
- body: Ae(u.body, a.body, a.coverType)
6816
- }) : u.t === m.RETAIN && a.t === m.RETAIN ? u.body == null && a.body == null ? i.push(u.len !== Number.POSITIVE_INFINITY ? u : a) : u.body && a.body ? i.push({
6884
+ body: Ie(u.body, l.body, l.coverType)
6885
+ }) : u.t === m.RETAIN && l.t === m.RETAIN ? u.body == null && l.body == null ? i.push(u.len !== Number.POSITIVE_INFINITY ? u : l) : u.body && l.body ? i.push({
6817
6886
  ...u,
6818
- body: Ae(u.body, a.body, a.coverType)
6819
- }) : i.push(u.body ? u : a) : u.t === m.RETAIN && a.t === m.DELETE ? i.push(a) : u.t === m.INSERT && (a.t, m.DELETE);
6887
+ body: Ie(u.body, l.body, l.coverType)
6888
+ }) : i.push(u.body ? u : l) : u.t === m.RETAIN && l.t === m.DELETE ? i.push(l) : u.t === m.INSERT && (l.t, m.DELETE);
6820
6889
  }
6821
6890
  return i.trimEndUselessRetainAction(), i.serialize();
6822
6891
  }
6823
- insert(e, s, n) {
6892
+ insert(e, s, n = "") {
6824
6893
  const r = {
6825
6894
  t: m.INSERT,
6826
6895
  body: s,
@@ -6831,7 +6900,7 @@ class as {
6831
6900
  };
6832
6901
  return this.push(r), this;
6833
6902
  }
6834
- retain(e, s, n, r) {
6903
+ retain(e, s = "", n, r) {
6835
6904
  const i = {
6836
6905
  t: m.RETAIN,
6837
6906
  len: e,
@@ -6839,7 +6908,7 @@ class as {
6839
6908
  };
6840
6909
  return n != null && (i.body = n), r != null && (i.coverType = r), this.push(i), this;
6841
6910
  }
6842
- delete(e, s) {
6911
+ delete(e, s = "") {
6843
6912
  const n = {
6844
6913
  t: m.DELETE,
6845
6914
  len: e,
@@ -6869,7 +6938,7 @@ class as {
6869
6938
  return this._actions.unshift(r), this;
6870
6939
  if (n.t === m.RETAIN && r.t === m.RETAIN && n.body == null && r.body == null)
6871
6940
  return n.len += r.len, this;
6872
- if (n.t === m.INSERT && ve(n.body) && r.t === m.INSERT && ve(r.body))
6941
+ if (n.t === m.INSERT && De(n.body) && r.t === m.INSERT && De(r.body))
6873
6942
  return n.len += r.len, n.body.dataStream += r.body.dataStream, this;
6874
6943
  }
6875
6944
  return s === this._actions.length ? this._actions.push(r) : this._actions.splice(s, 0, r), this;
@@ -6881,7 +6950,35 @@ class as {
6881
6950
  return this;
6882
6951
  }
6883
6952
  }
6884
- class Fo extends te {
6953
+ function po(t, e, s) {
6954
+ if (e === "")
6955
+ return t;
6956
+ const n = {
6957
+ id: "mock-id",
6958
+ body: t,
6959
+ documentStyle: {}
6960
+ }, r = new et(n), i = e.length;
6961
+ let o;
6962
+ for (; (o = r.getBody().dataStream.indexOf(e)) >= 0; ) {
6963
+ const l = new le();
6964
+ if (o > 0 && l.retain(o), s.length > 0) {
6965
+ const a = r.sliceBody(o, o + i), _ = {
6966
+ dataStream: s
6967
+ };
6968
+ Array.isArray(a == null ? void 0 : a.textRuns) && a.textRuns.length && (_.textRuns = [{
6969
+ ...a.textRuns[0],
6970
+ st: 0,
6971
+ ed: s.length
6972
+ }]), l.insert(s.length, _);
6973
+ }
6974
+ l.delete(i);
6975
+ const c = l.serialize();
6976
+ r.apply(c);
6977
+ }
6978
+ const u = r.getBody();
6979
+ return r.dispose(), u;
6980
+ }
6981
+ class Bo extends te {
6885
6982
  /**
6886
6983
  * Create a new WorkBookObserver with the specified callback
6887
6984
  * @param callback the callback that will be executed for that WorkBookObserver
@@ -6900,7 +6997,7 @@ class Fo extends te {
6900
6997
  makeObserverBottomPriority() {
6901
6998
  }
6902
6999
  }
6903
- const Wo = F("ILocalStorageService"), Bo = (t) => `sheet_interceptor_${t}`, bi = (t) => function(e, s) {
7000
+ const Go = F("ILocalStorageService"), $o = (t) => `sheet_interceptor_${t}`, bi = (t) => function(e, s) {
6904
7001
  let n = -1;
6905
7002
  function r(i, o) {
6906
7003
  if (i <= n)
@@ -6909,7 +7006,7 @@ const Wo = F("ILocalStorageService"), Bo = (t) => `sheet_interceptor_${t}`, bi =
6909
7006
  }
6910
7007
  return r(0, e);
6911
7008
  };
6912
- class po {
7009
+ class ko {
6913
7010
  constructor(e) {
6914
7011
  h(this, "_interceptorsByName", /* @__PURE__ */ new Map());
6915
7012
  h(this, "_interceptorPoints");
@@ -6926,11 +7023,11 @@ class po {
6926
7023
  return r.push(s), this._interceptorsByName.set(
6927
7024
  n,
6928
7025
  r.sort((i, o) => {
6929
- var u, a;
6930
- return ((u = o.priority) != null ? u : 0) - ((a = i.priority) != null ? a : 0);
7026
+ var u, l;
7027
+ return ((u = o.priority) != null ? u : 0) - ((l = i.priority) != null ? l : 0);
6931
7028
  })
6932
7029
  // from large to small
6933
- ), () => q(this._interceptorsByName.get(n), s);
7030
+ ), () => J(this._interceptorsByName.get(n), s);
6934
7031
  }
6935
7032
  getInterceptPoints() {
6936
7033
  return this._interceptorPoints;
@@ -6938,11 +7035,11 @@ class po {
6938
7035
  }
6939
7036
  gs();
6940
7037
  export {
6941
- ao as ABCToNumber,
7038
+ lo as ABCToNumber,
6942
7039
  Pn as AbsoluteRefType,
6943
- be as ActionIterator,
6944
- ar as AlignTypeH,
6945
- lr as AlignTypeV,
7040
+ ve as ActionIterator,
7041
+ lr as AlignTypeH,
7042
+ ar as AlignTypeV,
6946
7043
  Vs as AutoFillSeries,
6947
7044
  kt as BaselineOffset,
6948
7045
  jn as BlockType,
@@ -6950,96 +7047,99 @@ export {
6950
7047
  I as BorderStyleTypes,
6951
7048
  js as BorderType,
6952
7049
  Q as BulletAlignment,
6953
- fe as COLORS,
7050
+ ge as COLORS,
6954
7051
  mt as CellValueType,
6955
7052
  tt as Color,
6956
7053
  re as ColorBuilder,
6957
- B as ColorKit,
7054
+ p as ColorKit,
6958
7055
  H as ColorType,
6959
7056
  zn as ColumnSeparatorType,
6960
- pt as CommandService,
7057
+ Bt as CommandService,
6961
7058
  ee as CommandType,
6962
7059
  Ys as CommonHideTypes,
6963
7060
  Ks as ConditionType,
7061
+ Fs as ConfigService,
6964
7062
  nr as ContentAlignment,
6965
7063
  Ls as ContextService,
6966
7064
  zs as CopyPasteType,
6967
7065
  Vn as CustomRangeType,
6968
- Ro as DEFAULT_CELL,
6969
- ye as DEFAULT_DOC,
6970
- Bi as DEFAULT_DOCUMENT_SUB_COMPONENT_ID,
6971
- To as DEFAULT_EMPTY_DOCUMENT_VALUE,
6972
- go as DEFAULT_RANGE,
7066
+ mo as DEFAULT_CELL,
7067
+ ts as DEFAULT_DOC,
7068
+ pi as DEFAULT_DOCUMENT_SUB_COMPONENT_ID,
7069
+ xo as DEFAULT_EMPTY_DOCUMENT_VALUE,
7070
+ Eo as DEFAULT_RANGE,
6973
7071
  gt as DEFAULT_RANGE_ARRAY,
6974
- Eo as DEFAULT_SELECTION,
7072
+ Ro as DEFAULT_SELECTION,
6975
7073
  Nr as DEFAULT_SLIDE,
6976
7074
  Pt as DEFAULT_STYLES,
6977
7075
  Cr as DEFAULT_WORKBOOK,
6978
7076
  Ur as DEFAULT_WORKSHEET_COLUMN_COUNT,
6979
- No as DEFAULT_WORKSHEET_COLUMN_COUNT_KEY,
7077
+ So as DEFAULT_WORKSHEET_COLUMN_COUNT_KEY,
6980
7078
  Hr as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT,
6981
- bo as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY,
7079
+ vo as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY,
6982
7080
  Pr as DEFAULT_WORKSHEET_COLUMN_WIDTH,
6983
- wo as DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY,
7081
+ Lo as DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY,
6984
7082
  Mr as DEFAULT_WORKSHEET_ROW_COUNT,
6985
- Co as DEFAULT_WORKSHEET_ROW_COUNT_KEY,
7083
+ No as DEFAULT_WORKSHEET_ROW_COUNT_KEY,
6986
7084
  Tr as DEFAULT_WORKSHEET_ROW_HEIGHT,
6987
- So as DEFAULT_WORKSHEET_ROW_HEIGHT_KEY,
7085
+ wo as DEFAULT_WORKSHEET_ROW_HEIGHT_KEY,
6988
7086
  xr as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH,
6989
- Lo as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY,
6990
- ai as DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
7087
+ bo as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY,
7088
+ li as DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
6991
7089
  ui as DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
6992
7090
  tr as DashStyleType,
6993
7091
  Fn as DataStreamTreeNodeType,
6994
- $e as DataStreamTreeTokenType,
7092
+ ke as DataStreamTreeTokenType,
6995
7093
  vs as DesktopLogService,
6996
7094
  Xs as DeveloperMetadataVisibility,
6997
7095
  Qs as Dimension,
6998
- qs as Direction,
7096
+ Js as Direction,
6999
7097
  U as Disposable,
7000
- xe as DisposableCollection,
7098
+ He as DisposableCollection,
7001
7099
  $n as DocStyleType,
7002
- ut as DocumentDataModel,
7100
+ et as DocumentDataModel,
7003
7101
  kr as EDITOR_ACTIVATED,
7004
7102
  Sr as EXTENSION_NAMES,
7005
- ge as Entry,
7103
+ Ee as Entry,
7006
7104
  vn as EntryIterator,
7007
7105
  Ws as ErrorService,
7008
7106
  Ss as EventState,
7009
- Ie as FOCUSING_DOC,
7010
- Do as FOCUSING_EDITOR_BUT_HIDDEN,
7011
- Mo as FOCUSING_EDITOR_INPUT_FORMULA,
7107
+ Ce as FOCUSING_DOC,
7108
+ Mo as FOCUSING_EDITOR_BUT_HIDDEN,
7109
+ Uo as FOCUSING_EDITOR_INPUT_FORMULA,
7012
7110
  Vr as FOCUSING_FORMULA_EDITOR,
7013
7111
  Kt as FOCUSING_SHEET,
7014
- Ce as FOCUSING_SLIDE,
7015
- Uo as FOCUSING_UNIVER_EDITOR,
7016
- Bs as FloatingObjectManagerService,
7112
+ Ne as FOCUSING_SLIDE,
7113
+ To as FOCUSING_UNIVER_EDITOR,
7114
+ Po as FOCUSING_UNIVER_EDITOR_SINGLE_MODE,
7115
+ ps as FloatingObjectManagerService,
7017
7116
  kn as FollowNumberWithType,
7018
7117
  Gt as FontItalic,
7019
7118
  rr as FontStyleType,
7020
7119
  $t as FontWeight,
7021
- Js as FormatType,
7120
+ qs as FormatType,
7022
7121
  Ot as GlyphType,
7023
7122
  Yn as GridType,
7024
7123
  on as HLSColor,
7025
7124
  Z as HorizontalAlign,
7026
7125
  bt as ICommandService,
7027
7126
  Hs as IConfigService,
7028
- ot as IContextService,
7029
- ps as IFloatingObjectManagerService,
7030
- Wo as ILocalStorageService,
7127
+ ut as IContextService,
7128
+ Bs as IFloatingObjectManagerService,
7129
+ Go as ILocalStorageService,
7031
7130
  y as ILogService,
7032
- os as IPermissionService,
7033
- is as IResourceManagerService,
7131
+ us as IPermissionService,
7132
+ os as IResourceManagerService,
7034
7133
  Zr as ISnapshotPersistenceService,
7035
7134
  ue as IUndoRedoService,
7036
- lt as IUniverInstanceService,
7037
- po as InterceptorManager,
7135
+ at as IUniverInstanceService,
7136
+ ko as InterceptorManager,
7038
7137
  Zs as InterpolationPointType,
7039
7138
  Ln as KeyIterator,
7040
7139
  ft as LRUHelper,
7041
7140
  Dn as LRUMap,
7042
- p as LifecycleService,
7141
+ X as LifecycleInitializerService,
7142
+ B as LifecycleService,
7043
7143
  C as LifecycleStages,
7044
7144
  Qt as LocalUndoRedoService,
7045
7145
  Rt as LocaleService,
@@ -7053,32 +7153,32 @@ export {
7053
7153
  ir as ObjectRelativeFromH,
7054
7154
  or as ObjectRelativeFromV,
7055
7155
  te as Observable,
7056
- Fo as ObservableHooks,
7156
+ Bo as ObservableHooks,
7057
7157
  yt as Observer,
7058
- ss as OnLifecycle,
7059
- fo as PRESET_LIST_TYPE,
7158
+ ns as OnLifecycle,
7159
+ go as PRESET_LIST_TYPE,
7060
7160
  Lr as PageElementType,
7061
7161
  hr as PageOrientType,
7062
- ts as PageType,
7162
+ es as PageType,
7063
7163
  Qn as ParagraphElementType,
7064
7164
  Tn as PermissionPoint,
7065
7165
  It as PermissionService,
7066
- pe as PermissionStatus,
7166
+ Ge as PermissionStatus,
7067
7167
  Rs as Plugin,
7068
7168
  L as PluginType,
7069
- Jn as PositionedObjectLayoutType,
7169
+ qn as PositionedObjectLayoutType,
7070
7170
  Yt as PresetListType,
7071
7171
  ys as ProtectionType,
7072
7172
  P as RANGE_TYPE,
7073
7173
  Vi as RGBA_PAREN,
7074
7174
  ki as RGB_PAREN,
7075
- at as Range,
7076
- it as Rectangle,
7175
+ lt as Range,
7176
+ ot as Rectangle,
7077
7177
  Ei as RedoCommand,
7078
7178
  di as RedoCommandId,
7079
7179
  uo as RefAlias,
7080
- Me as Registry,
7081
- Ue as RegistryAsMap,
7180
+ Ue as Registry,
7181
+ Te as RegistryAsMap,
7082
7182
  tn as RelativeDate,
7083
7183
  br as RelativeSlideLink,
7084
7184
  oi as ResourceManagerService,
@@ -7088,7 +7188,7 @@ export {
7088
7188
  en as ShapeType,
7089
7189
  sn as SheetTypes,
7090
7190
  Wr as SheetViewModel,
7091
- es as Slide,
7191
+ ss as Slide,
7092
7192
  yn as SpacingRule,
7093
7193
  wr as Styles,
7094
7194
  rn as THEME_COLORS,
@@ -7096,67 +7196,69 @@ export {
7096
7196
  nn as TextDecoration,
7097
7197
  Nt as TextDirection,
7098
7198
  Xn as TextDirectionType,
7099
- as as TextX,
7199
+ le as TextX,
7100
7200
  m as TextXActionType,
7101
7201
  jt as ThemeColor,
7102
7202
  T as ThemeColorType,
7103
7203
  ne as ThemeColors,
7104
- Le as ThemeService,
7204
+ be as ThemeService,
7105
7205
  E as Tools,
7106
7206
  gi as UndoCommand,
7107
7207
  fi as UndoCommandId,
7108
- Po as Univer,
7109
- qt as UniverDoc,
7208
+ Ho as Univer,
7209
+ Jt as UniverDoc,
7110
7210
  xt as UniverEditablePermission,
7111
7211
  si as UniverEditablePermissionPoint,
7212
+ zt as UniverInstanceService,
7112
7213
  Xr as UniverInstanceType,
7113
7214
  Ct as UniverPermissionService,
7114
- Jt as UniverSheet,
7215
+ qt as UniverSheet,
7115
7216
  Zt as UniverSlide,
7116
7217
  M as UpdateDocsAttributeType,
7117
7218
  bn as ValueIterator,
7118
- nt as VerticalAlign,
7219
+ rt as VerticalAlign,
7119
7220
  sr as WidthType,
7120
7221
  Lt as Workbook,
7121
7222
  wt as Worksheet,
7122
- rt as WrapStrategy,
7123
- qn as WrapTextType,
7223
+ it as WrapStrategy,
7224
+ Jn as WrapTextType,
7124
7225
  $s as binarySearchArray,
7125
7226
  cr as characterSpacingControlType,
7126
7227
  yi as checkParagraphHasBullet,
7127
7228
  to as checkParagraphHasIndent,
7128
7229
  Nn as checkParagraphHasIndentByStyle,
7129
7230
  Gi as codeToBlob,
7130
- Ae as composeBody,
7231
+ Ie as composeBody,
7131
7232
  bi as composeInterceptors,
7132
7233
  no as concatMatrixArray,
7133
- Bo as createInterceptorKey,
7134
- Oe as createRowColIter,
7234
+ $o as createInterceptorKey,
7235
+ Ae as createRowColIter,
7236
+ fo as debounce,
7135
7237
  xi as dedupe,
7136
- We as deepCompare,
7238
+ pe as deepCompare,
7137
7239
  wn as deleteContent,
7138
7240
  Hi as fromObservable,
7139
7241
  j as getArrayLength,
7140
- Ze as getBodySlice,
7141
- Ji as getBorderStyleType,
7142
- Oo as getCellValueType,
7242
+ ye as getBodySlice,
7243
+ qi as getBorderStyleType,
7244
+ Ao as getCellValueType,
7143
7245
  $ as getColorStyle,
7144
7246
  Tt as getDocsUpdateBody,
7145
7247
  $i as getReverseDirection,
7146
7248
  io as getTypeFromPermissionItemList,
7147
- vo as getWorksheetUID,
7249
+ Do as getWorksheetUID,
7148
7250
  Qi as handleJsonToDom,
7149
- qi as handleStyleToString,
7251
+ Ji as handleStyleToString,
7150
7252
  so as hashAlgorithm,
7151
7253
  Be as horizontalLineSegmentsSubtraction,
7152
- Ee as insertMatrixArray,
7254
+ Re as insertMatrixArray,
7153
7255
  Sn as insertTextToContent,
7154
- Io as isCellV,
7256
+ Co as isCellV,
7155
7257
  Ki as isEmptyCell,
7156
7258
  Xi as isFormulaId,
7157
7259
  zi as isFormulaString,
7158
- mo as isICellData,
7159
- Ao as isNullCell,
7260
+ Oo as isICellData,
7261
+ Io as isNullCell,
7160
7262
  ws as isObserver,
7161
7263
  eo as isRealNum,
7162
7264
  Cn as isSameStyleTextRun,
@@ -7164,26 +7266,27 @@ export {
7164
7266
  Yi as makeCellRangeToRangeData,
7165
7267
  ji as makeCellToSelection,
7166
7268
  Fr as mergeWorksheetSnapshotWithDefault,
7167
- me as moveMatrixArray,
7168
- ke as normalizeTextRuns,
7169
- lo as numberToABC,
7269
+ Oe as moveMatrixArray,
7270
+ Ve as normalizeTextRuns,
7271
+ ao as numberToABC,
7170
7272
  co as numberToListABC,
7171
7273
  ks as orderSearchArray,
7172
- q as remove,
7274
+ J as remove,
7173
7275
  Hn as repeatStringNumTimes,
7174
- Ho as requestImmediateMacroTask,
7175
- ns as runOnLifecycle,
7176
- pi as searchArray,
7276
+ po as replaceInDocumentBody,
7277
+ Wo as requestImmediateMacroTask,
7278
+ rs as runOnLifecycle,
7279
+ Bi as searchArray,
7177
7280
  oo as selectionToArray,
7178
7281
  Cs as sequence,
7179
7282
  Is as sequenceAsync,
7180
- He as sequenceExecute,
7283
+ Fe as sequenceExecute,
7181
7284
  Wi as sequenceExecuteAsync,
7182
7285
  ro as sliceMatrixArray,
7183
7286
  ho as sortRules,
7184
7287
  _o as sortRulesByDesc,
7185
7288
  ct as sortRulesFactory,
7186
- Re as spliceArray,
7187
- xo as throttle,
7289
+ me as spliceArray,
7290
+ Fo as throttle,
7188
7291
  N as toDisposable
7189
7292
  };