@univerjs/core 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -3,7 +3,7 @@ var pc = (e, t, n) => t in e ? _c(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var p = (e, t, n) => pc(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { createIdentifier as dt, Inject as Nt, Injector as Yn } from "@wendellhu/redi";
5
5
  export * from "@wendellhu/redi";
6
- import { Subscription as Ec, Subject as ot, Observable as br, filter as Rr, ReplaySubject as Cc, take as Rc, tap as na, debounceTime as Ic, map as Zi, BehaviorSubject as tt, merge as xl, timer as wc, distinctUntilChanged as Sc, firstValueFrom as Oc, skip as Ll, of as Mr, combineLatest as vc } from "rxjs";
6
+ import { Subscription as Ec, Subject as ot, Observable as br, filter as Rr, ReplaySubject as Cc, take as Rc, tap as na, debounceTime as Ic, map as Zi, BehaviorSubject as tt, merge as xl, timer as wc, distinctUntilChanged as Oc, firstValueFrom as Sc, skip as Ll, of as Mr, combineLatest as vc } from "rxjs";
7
7
  import { filter as bc, debounceTime as Ac, first as yc, map as Nc } from "rxjs/operators";
8
8
  import { defaultTheme as xr } from "@univerjs/themes";
9
9
  function Tc(e, t) {
@@ -71,7 +71,7 @@ function Lc() {
71
71
  function Dc() {
72
72
  Mc(), xc(), Lc();
73
73
  }
74
- function Os(e, t) {
74
+ function Ss(e, t) {
75
75
  const n = e.indexOf(t);
76
76
  return n > -1 ? (e.splice(n, 1), !0) : !1;
77
77
  }
@@ -327,7 +327,7 @@ class JC {
327
327
  return ((a = o.priority) != null ? a : 0) - ((l = i.priority) != null ? l : 0);
328
328
  })
329
329
  // from large to small
330
- ), () => Os(this._interceptorsByName.get(r), n);
330
+ ), () => Ss(this._interceptorsByName.get(r), n);
331
331
  }
332
332
  getInterceptPoints() {
333
333
  return this._interceptorPoints;
@@ -382,7 +382,7 @@ class QC {
382
382
  return ((a = o.priority) != null ? a : 0) - ((l = i.priority) != null ? l : 0);
383
383
  })
384
384
  // from large to small
385
- ), () => Os(this._asyncInterceptorsByName.get(r), n);
385
+ ), () => Ss(this._asyncInterceptorsByName.get(r), n);
386
386
  }
387
387
  getInterceptPoints() {
388
388
  return this._asyncInterceptorPoints;
@@ -545,18 +545,18 @@ function ca(e) {
545
545
  function Bl(e) {
546
546
  return e;
547
547
  }
548
- var Rh = "[object AsyncFunction]", Ih = "[object Function]", wh = "[object GeneratorFunction]", Sh = "[object Proxy]";
548
+ var Rh = "[object AsyncFunction]", Ih = "[object Function]", wh = "[object GeneratorFunction]", Oh = "[object Proxy]";
549
549
  function Qi(e) {
550
550
  if (!Ct(e))
551
551
  return !1;
552
552
  var t = yr(e);
553
- return t == Ih || t == wh || t == Rh || t == Sh;
553
+ return t == Ih || t == wh || t == Rh || t == Oh;
554
554
  }
555
555
  var Gs = Cn["__core-js_shared__"], ha = (function() {
556
556
  var e = /[^.]+$/.exec(Gs && Gs.keys && Gs.keys.IE_PROTO || "");
557
557
  return e ? "Symbol(src)_1." + e : "";
558
558
  })();
559
- function Oh(e) {
559
+ function Sh(e) {
560
560
  return !!ha && ha in e;
561
561
  }
562
562
  var vh = Function.prototype, bh = vh.toString;
@@ -577,7 +577,7 @@ var yh = /[\\^$.*+?()[\]{}|]/g, Nh = /^\[object .+?Constructor\]$/, Th = Functio
577
577
  "^" + xh.call(Lh).replace(yh, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
578
578
  );
579
579
  function Uh(e) {
580
- if (!Ct(e) || Oh(e))
580
+ if (!Ct(e) || Sh(e))
581
581
  return !1;
582
582
  var t = Qi(e) ? Dh : Nh;
583
583
  return t.test(Ah(e));
@@ -741,9 +741,9 @@ var Vl = Object.prototype, id = Vl.hasOwnProperty, od = Vl.propertyIsEnumerable,
741
741
  function ad() {
742
742
  return !1;
743
743
  }
744
- var Gl = typeof exports == "object" && exports && !exports.nodeType && exports, ga = Gl && typeof module == "object" && module && !module.nodeType && module, ld = ga && ga.exports === Gl, _a = ld ? Cn.Buffer : void 0, ud = _a ? _a.isBuffer : void 0, Kl = ud || ad, cd = "[object Arguments]", hd = "[object Array]", dd = "[object Boolean]", fd = "[object Date]", md = "[object Error]", gd = "[object Function]", _d = "[object Map]", pd = "[object Number]", Ed = "[object Object]", Cd = "[object RegExp]", Rd = "[object Set]", Id = "[object String]", wd = "[object WeakMap]", Sd = "[object ArrayBuffer]", Od = "[object DataView]", vd = "[object Float32Array]", bd = "[object Float64Array]", Ad = "[object Int8Array]", yd = "[object Int16Array]", Nd = "[object Int32Array]", Td = "[object Uint8Array]", Md = "[object Uint8ClampedArray]", xd = "[object Uint16Array]", Ld = "[object Uint32Array]", Ue = {};
744
+ var Gl = typeof exports == "object" && exports && !exports.nodeType && exports, ga = Gl && typeof module == "object" && module && !module.nodeType && module, ld = ga && ga.exports === Gl, _a = ld ? Cn.Buffer : void 0, ud = _a ? _a.isBuffer : void 0, Kl = ud || ad, cd = "[object Arguments]", hd = "[object Array]", dd = "[object Boolean]", fd = "[object Date]", md = "[object Error]", gd = "[object Function]", _d = "[object Map]", pd = "[object Number]", Ed = "[object Object]", Cd = "[object RegExp]", Rd = "[object Set]", Id = "[object String]", wd = "[object WeakMap]", Od = "[object ArrayBuffer]", Sd = "[object DataView]", vd = "[object Float32Array]", bd = "[object Float64Array]", Ad = "[object Int8Array]", yd = "[object Int16Array]", Nd = "[object Int32Array]", Td = "[object Uint8Array]", Md = "[object Uint8ClampedArray]", xd = "[object Uint16Array]", Ld = "[object Uint32Array]", Ue = {};
745
745
  Ue[vd] = Ue[bd] = Ue[Ad] = Ue[yd] = Ue[Nd] = Ue[Td] = Ue[Md] = Ue[xd] = Ue[Ld] = !0;
746
- Ue[cd] = Ue[hd] = Ue[Sd] = Ue[dd] = Ue[Od] = Ue[fd] = Ue[md] = Ue[gd] = Ue[_d] = Ue[pd] = Ue[Ed] = Ue[Cd] = Ue[Rd] = Ue[Id] = Ue[wd] = !1;
746
+ Ue[cd] = Ue[hd] = Ue[Od] = Ue[dd] = Ue[Sd] = Ue[fd] = Ue[md] = Ue[gd] = Ue[_d] = Ue[pd] = Ue[Ed] = Ue[Cd] = Ue[Rd] = Ue[Id] = Ue[wd] = !1;
747
747
  function Dd(e) {
748
748
  return zn(e) && Wl(e.length) && !!Ue[yr(e)];
749
749
  }
@@ -948,11 +948,11 @@ var Rf = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
948
948
  t.push(s ? i.replace(If, "$1") : r || n);
949
949
  }), t;
950
950
  });
951
- function Sf(e) {
951
+ function Of(e) {
952
952
  return e == null ? "" : Hl(e);
953
953
  }
954
954
  function Ql(e, t) {
955
- return Hn(e) ? e : zd(e, t) ? [e] : wf(Sf(e));
955
+ return Hn(e) ? e : zd(e, t) ? [e] : wf(Of(e));
956
956
  }
957
957
  function eu(e) {
958
958
  if (typeof e == "string" || vs(e))
@@ -960,14 +960,14 @@ function eu(e) {
960
960
  var t = e + "";
961
961
  return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
962
962
  }
963
- function Of(e, t) {
963
+ function Sf(e, t) {
964
964
  t = Ql(t, e);
965
965
  for (var n = 0, r = t.length; e != null && n < r; )
966
966
  e = e[eu(t[n++])];
967
967
  return n && n == r ? e : void 0;
968
968
  }
969
969
  function vf(e, t, n) {
970
- var r = e == null ? void 0 : Of(e, t);
970
+ var r = e == null ? void 0 : Sf(e, t);
971
971
  return r === void 0 ? n : r;
972
972
  }
973
973
  var tu = Fd(Object.getPrototypeOf, Object), bf = "[object Object]", Af = Function.prototype, yf = Object.prototype, nu = Af.toString, Nf = yf.hasOwnProperty, Tf = nu.call(Object);
@@ -2048,7 +2048,7 @@ function gR(e) {
2048
2048
  return 0;
2049
2049
  }
2050
2050
  }
2051
- var Rm = /* @__PURE__ */ ((e) => (e[e.INTERPOLATION_POINT_TYPE_UNSPECIFIED = 0] = "INTERPOLATION_POINT_TYPE_UNSPECIFIED", e[e.MIN = 1] = "MIN", e[e.MAX = 2] = "MAX", e[e.NUMBER = 3] = "NUMBER", e[e.PERCENT = 4] = "PERCENT", e[e.PERCENTILE = 5] = "PERCENTILE", e))(Rm || {}), Ns = /* @__PURE__ */ ((e) => (e.EN_US = "enUS", e.FR_FR = "frFR", e.ZH_CN = "zhCN", e.RU_RU = "ruRU", e.ZH_TW = "zhTW", e.VI_VN = "viVN", e.FA_IR = "faIR", e.JA_JP = "jaJP", e.KO_KR = "koKR", e.ES_ES = "esES", e.CA_ES = "caES", e))(Ns || {}), Ii = /* @__PURE__ */ ((e) => (e[e.PERSON = 0] = "PERSON", e[e.FILE = 1] = "FILE", e[e.DATE = 2] = "DATE", e[e.LOCATION = 3] = "LOCATION", e[e.EVENT = 4] = "EVENT", e))(Ii || {}), Im = /* @__PURE__ */ ((e) => (e[e.RANGE = 0] = "RANGE", e[e.SHEET = 1] = "SHEET", e))(Im || {}), wm = /* @__PURE__ */ ((e) => (e.Line = "line", e.LineInv = "lineInv", e.Triangle = "triangle", e.RtTriangle = "rtTriangle", e.Rect = "rect", e.Diamond = "diamond", e.Parallelogram = "parallelogram", e.Trapezoid = "trapezoid", e.NonIsocelesTrapezoid = "nonIsocelesTrapezoid", e.Pentagon = "pentagon", e.Hexagon = "hexagon", e.Heptagon = "heptagon", e.Octagon = "octagon", e.Decagon = "decagon", e.Dodecagon = "dodecagon", e.Star4 = "star4", e.Star5 = "star5", e.Star6 = "star6", e.Star7 = "star7", e.Star8 = "star8", e.Star10 = "star10", e.Star12 = "star12", e.Star16 = "star16", e.Star24 = "star24", e.Star32 = "star32", e.RoundRect = "roundRect", e.Round1Rect = "round1Rect", e.Round2SameRect = "round2SameRect", e.Round2DiagRect = "round2DiagRect", e.Ellipse = "ellipse", e))(wm || {}), Sm = /* @__PURE__ */ ((e) => (e.RightArrow = "rightArrow", e.LeftArrow = "leftArrow", e.UpArrow = "upArrow", e.DownArrow = "downArrow", e.LeftRightArrow = "leftRightArrow", e.UpDownArrow = "upDownArrow", e.QuadArrow = "quadArrow", e.LeftRightUpArrow = "leftRightUpArrow", e.BentArrow = "bentArrow", e.UturnArrow = "uturnArrow", e.CircularArrow = "circularArrow", e.NotchedRightArrow = "notchedRightArrow", e.HomePlate = "homePlate", e.Chevron = "chevron", e.LeftCircularArrow = "leftCircularArrow", e.LeftRightCircularArrow = "leftRightCircularArrow", e))(Sm || {}), Om = /* @__PURE__ */ ((e) => (e.Plaque = "plaque", e.Can = "can", e.Cube = "cube", e.Bevel = "bevel", e.Donut = "donut", e.NoSmoking = "noSmoking", e.BlockArc = "blockArc", e.FoldedCorner = "foldedCorner", e))(Om || {}), vm = /* @__PURE__ */ ((e) => (e.SmileyFace = "smileyFace", e.Heart = "heart", e.LightningBolt = "lightningBolt", e.Sun = "sun", e.Moon = "moon", e.Cloud = "cloud", e.Arc = "arc", e.Backpack = "backpack", e.Frame = "frame", e.HalfFrame = "halfFrame", e.Corner = "corner", e.Chord = "chord", e.Pie = "pie", e.Teardrop = "teardrop", e.WedgeRectCallout = "wedgeRectCallout", e.WedgeRRectCallout = "wedgeRRectCallout", e.WedgeEllipseCallout = "wedgeEllipseCallout", e.CloudCallout = "cloudCallout", e.BorderCallout1 = "borderCallout1", e.BorderCallout2 = "borderCallout2", e.BorderCallout3 = "borderCallout3", e.AccentCallout1 = "accentCallout1", e.AccentCallout2 = "accentCallout2", e.AccentCallout3 = "accentCallout3", e.Callout1 = "callout1", e.Callout2 = "callout2", e.Callout3 = "callout3", e.ActionButtonBackPrevious = "actionButtonBackPrevious", e.ActionButtonEnd = "actionButtonEnd", e.ActionButtonForwardNext = "actionButtonForwardNext", e.ActionButtonHelp = "actionButtonHelp", e.ActionButtonHome = "actionButtonHome", e.ActionButtonInformation = "actionButtonInformation", e.ActionButtonMovie = "actionButtonMovie", e.ActionButtonReturn = "actionButtonReturn", e.ActionButtonSound = "actionButtonSound", e))(vm || {}), bm = /* @__PURE__ */ ((e) => (e[e.RELATIVE_DATE_UNSPECIFIED = 0] = "RELATIVE_DATE_UNSPECIFIED", e[e.PAST_YEAR = 1] = "PAST_YEAR", e[e.PAST_MONTH = 2] = "PAST_MONTH", e[e.PAST_WEEK = 3] = "PAST_WEEK", e[e.YESTERDAY = 4] = "YESTERDAY", e[e.TODAY = 5] = "TODAY", e[e.TOMORROW = 6] = "TOMORROW", e))(bm || {}), Am = /* @__PURE__ */ ((e) => (e[e.GRID = 0] = "GRID", e[e.KANBAN = 1] = "KANBAN", e[e.GANTT = 2] = "GANTT", e))(Am || {}), ms = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", e[e.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", e))(ms || {}), ym = /* @__PURE__ */ ((e) => (e[e.DASH = 0] = "DASH", e[e.DASH_DOT_DOT_HEAVY = 1] = "DASH_DOT_DOT_HEAVY", e[e.DASH_DOT_HEAVY = 2] = "DASH_DOT_HEAVY", e[e.DASHED_HEAVY = 3] = "DASHED_HEAVY", e[e.DASH_LONG = 4] = "DASH_LONG", e[e.DASH_LONG_HEAVY = 5] = "DASH_LONG_HEAVY", e[e.DOT_DASH = 6] = "DOT_DASH", e[e.DOT_DOT_DASH = 7] = "DOT_DOT_DASH", e[e.DOTTED = 8] = "DOTTED", e[e.DOTTED_HEAVY = 9] = "DOTTED_HEAVY", e[e.DOUBLE = 10] = "DOUBLE", e[e.NONE = 11] = "NONE", e[e.SINGLE = 12] = "SINGLE", e[e.THICK = 13] = "THICK", e[e.WAVE = 14] = "WAVE", e[e.WAVY_DOUBLE = 15] = "WAVY_DOUBLE", e[e.WAVY_HEAVY = 16] = "WAVY_HEAVY", e[e.WORDS = 17] = "WORDS", e))(ym || {}), Ut = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.LEFT = 1] = "LEFT", e[e.CENTER = 2] = "CENTER", e[e.RIGHT = 3] = "RIGHT", e[e.JUSTIFIED = 4] = "JUSTIFIED", e[e.BOTH = 5] = "BOTH", e[e.DISTRIBUTED = 6] = "DISTRIBUTED", e))(Ut || {}), Ln = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.TOP = 1] = "TOP", e[e.MIDDLE = 2] = "MIDDLE", e[e.BOTTOM = 3] = "BOTTOM", e))(Ln || {}), Bn = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.OVERFLOW = 1] = "OVERFLOW", e[e.CLIP = 2] = "CLIP", e[e.WRAP = 3] = "WRAP", e))(Bn || {}), wi = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.ITALIC = 1] = "ITALIC", e))(wi || {}), Si = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.BOLD = 1] = "BOLD", e))(Si || {}), Jt = /* @__PURE__ */ ((e) => (e[e.NORMAL = 1] = "NORMAL", e[e.SUBSCRIPT = 2] = "SUBSCRIPT", e[e.SUPERSCRIPT = 3] = "SUPERSCRIPT", e))(Jt || {}), ie = /* @__PURE__ */ ((e) => (e[e.FALSE = 0] = "FALSE", e[e.TRUE = 1] = "TRUE", e))(ie || {}), fn = /* @__PURE__ */ ((e) => (e[e.STRING = 1] = "STRING", e[e.NUMBER = 2] = "NUMBER", e[e.BOOLEAN = 3] = "BOOLEAN", e[e.FORCE_STRING = 4] = "FORCE_STRING", e))(fn || {}), st = /* @__PURE__ */ ((e) => (e[e.DARK1 = 0] = "DARK1", e[e.LIGHT1 = 1] = "LIGHT1", e[e.DARK2 = 2] = "DARK2", e[e.LIGHT2 = 3] = "LIGHT2", e[e.ACCENT1 = 4] = "ACCENT1", e[e.ACCENT2 = 5] = "ACCENT2", e[e.ACCENT3 = 6] = "ACCENT3", e[e.ACCENT4 = 7] = "ACCENT4", e[e.ACCENT5 = 8] = "ACCENT5", e[e.ACCENT6 = 9] = "ACCENT6", e[e.HYPERLINK = 10] = "HYPERLINK", e[e.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", e))(st || {}), co = /* @__PURE__ */ ((e) => (e.OFFICE = "Office", e.OFFICE_2007_2010 = "Office 2007-2010", e.GRAYSCALE = "Grayscale", e.BLUE_WARM = "Blue Warm", e.BLUE = "Blue", e.BLUE_II = "Blue II", e.BLUE_GREEN = "Blue Green", e.GREEN = "Green", e.GREEN_YELLOW = "Green Yellow", e.YELLOW = "Yellow", e.YELLOW_ORANGE = "Yellow Orange", e.ORANGE = "Orange", e.ORANGE_RED = "Orange Red", e.RED_ORANGE = "Red Orange", e.RED = "Red", e.RED_VIOLET = "Red Violet", e.VIOLET = "Violet", e.VIOLET_II = "Violet II", e.MEDIAN = "Median", e.PAPER = "Paper", e.MARQUEE = "Marquee", e.SLIPSTREAM = "Slipstream", e.Aspect = "Aspect", e))(co || {}), Nm = /* @__PURE__ */ ((e) => (e[e.character = 0] = "character", e[e.paragraph = 1] = "paragraph", e[e.table = 2] = "table", e[e.numbering = 3] = "numbering", e))(Nm || {}), Tm = /* @__PURE__ */ ((e) => (e[e.TAB = 0] = "TAB", e[e.SPACE = 1] = "SPACE", e[e.NOTHING = 2] = "NOTHING", e))(Tm || {}), me = /* @__PURE__ */ ((e) => (e[e.BULLET = 0] = "BULLET", e[e.NONE = 1] = "NONE", e[e.DECIMAL = 2] = "DECIMAL", e[e.DECIMAL_ZERO = 3] = "DECIMAL_ZERO", e[e.UPPER_LETTER = 4] = "UPPER_LETTER", e[e.LOWER_LETTER = 5] = "LOWER_LETTER", e[e.UPPER_ROMAN = 6] = "UPPER_ROMAN", e[e.LOWER_ROMAN = 7] = "LOWER_ROMAN", e[e.ORDINAL = 8] = "ORDINAL", e[e.CARDINAL_TEXT = 9] = "CARDINAL_TEXT", e[e.ORDINAL_TEXT = 10] = "ORDINAL_TEXT", e[e.HEX = 11] = "HEX", e[e.CHICAGO = 12] = "CHICAGO", e[e.IDEOGRAPH_DIGITAL = 13] = "IDEOGRAPH_DIGITAL", e[e.JAPANESE_COUNTING = 14] = "JAPANESE_COUNTING", e[e.AIUEO = 15] = "AIUEO", e[e.IROHA = 16] = "IROHA", e[e.DECIMAL_FULL_WIDTH = 17] = "DECIMAL_FULL_WIDTH", e[e.DECIMAL_HALF_WIDTH = 18] = "DECIMAL_HALF_WIDTH", e[e.JAPANESE_LEGAL = 19] = "JAPANESE_LEGAL", e[e.JAPANESE_DIGITAL_TEN_THOUSAND = 20] = "JAPANESE_DIGITAL_TEN_THOUSAND", e[e.DECIMAL_ENCLOSED_CIRCLE = 21] = "DECIMAL_ENCLOSED_CIRCLE", e[e.DECIMAL_FULL_WIDTH2 = 22] = "DECIMAL_FULL_WIDTH2", e[e.AIUEO_FULL_WIDTH = 23] = "AIUEO_FULL_WIDTH", e[e.IROHA_FULL_WIDTH = 24] = "IROHA_FULL_WIDTH", e[e.GANADA = 25] = "GANADA", e[e.CHOSUNG = 26] = "CHOSUNG", e[e.DECIMAL_ENCLOSED_FULLSTOP = 27] = "DECIMAL_ENCLOSED_FULLSTOP", e[e.DECIMAL_ENCLOSED_PAREN = 28] = "DECIMAL_ENCLOSED_PAREN", e[e.DECIMAL_ENCLOSED_CIRCLE_CHINESE = 29] = "DECIMAL_ENCLOSED_CIRCLE_CHINESE", e[e.IDEOGRAPH_ENCLOSED_CIRCLE = 30] = "IDEOGRAPH_ENCLOSED_CIRCLE", e[e.IDEOGRAPH_TRADITIONAL = 31] = "IDEOGRAPH_TRADITIONAL", e[e.IDEOGRAPH_ZODIAC = 32] = "IDEOGRAPH_ZODIAC", e[e.IDEOGRAPH_ZODIAC_TRADITIONAL = 33] = "IDEOGRAPH_ZODIAC_TRADITIONAL", e[e.TAIWANESE_COUNTING = 34] = "TAIWANESE_COUNTING", e[e.IDEOGRAPH_LEGAL_TRADITIONAL = 35] = "IDEOGRAPH_LEGAL_TRADITIONAL", e[e.TAIWANESE_COUNTING_THOUSAND = 36] = "TAIWANESE_COUNTING_THOUSAND", e[e.TAIWANESE_DIGITAL = 37] = "TAIWANESE_DIGITAL", e[e.CHINESE_COUNTING = 38] = "CHINESE_COUNTING", e[e.CHINESE_LEGAL_SIMPLIFIED = 39] = "CHINESE_LEGAL_SIMPLIFIED", e[e.CHINESE_COUNTING_THOUSAND = 40] = "CHINESE_COUNTING_THOUSAND", e[e.KOREAN_DIGITAL = 41] = "KOREAN_DIGITAL", e[e.KOREAN_COUNTING = 42] = "KOREAN_COUNTING", e[e.KOREAN_LEGAL = 43] = "KOREAN_LEGAL", e[e.KOREAN_DIGITAL2 = 44] = "KOREAN_DIGITAL2", e[e.VIETNAMESE_COUNTING = 45] = "VIETNAMESE_COUNTING", e[e.RUSSIAN_LOWER = 46] = "RUSSIAN_LOWER", e[e.RUSSIAN_UPPER = 47] = "RUSSIAN_UPPER", e[e.NUMBER_IN_DASH = 48] = "NUMBER_IN_DASH", e[e.HEBREW1 = 49] = "HEBREW1", e[e.HEBREW2 = 50] = "HEBREW2", e[e.ARABIC_ALPHA = 51] = "ARABIC_ALPHA", e[e.ARABIC_ABJAD = 52] = "ARABIC_ABJAD", e[e.HINDI_VOWELS = 53] = "HINDI_VOWELS", e[e.HINDI_CONSONANTS = 54] = "HINDI_CONSONANTS", e[e.HINDI_NUMBERS = 55] = "HINDI_NUMBERS", e[e.HINDI_COUNTING = 56] = "HINDI_COUNTING", e[e.THAI_LETTERS = 57] = "THAI_LETTERS", e[e.THAI_NUMBERS = 58] = "THAI_NUMBERS", e[e.THAI_COUNTING = 59] = "THAI_COUNTING", e[e.CUSTOM = 60] = "CUSTOM", e))(me || {}), Ts = /* @__PURE__ */ ((e) => (e[e.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", e[e.START = 1] = "START", e[e.CENTER = 2] = "CENTER", e[e.END = 3] = "END", e[e.BOTH = 4] = "BOTH", e))(Ts || {}), pn = /* @__PURE__ */ ((e) => (e[e.HYPERLINK = 0] = "HYPERLINK", e[e.FIELD = 1] = "FIELD", e[e.SDT = 2] = "SDT", e[e.BOOKMARK = 3] = "BOOKMARK", e[e.COMMENT = 4] = "COMMENT", e[e.CUSTOM = 5] = "CUSTOM", e[e.MENTION = 6] = "MENTION", e[e.UNI_FORMULA = 7] = "UNI_FORMULA", e[e.DELTED = 9999] = "DELTED", e))(pn || {}), Dn = /* @__PURE__ */ ((e) => (e[e.COMMENT = 0] = "COMMENT", e[e.DELETED = 9999] = "DELETED", e))(Dn || {}), Mm = /* @__PURE__ */ ((e) => (e[e.DRAWING = 0] = "DRAWING", e[e.CUSTOM = 1] = "CUSTOM", e))(Mm || {}), uu = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.TRADITIONAL = 1] = "TRADITIONAL", e[e.MODERN = 2] = "MODERN", e))(uu || {}), xm = /* @__PURE__ */ ((e) => (e[e.DEFAULT = 0] = "DEFAULT", e[e.LINES = 1] = "LINES", e[e.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", e[e.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", e))(xm || {}), Lm = /* @__PURE__ */ ((e) => (e[e.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", e[e.CONTINUOUS = 1] = "CONTINUOUS", e[e.NEXT_PAGE = 2] = "NEXT_PAGE", e[e.EVEN_PAGE = 3] = "EVEN_PAGE", e[e.ODD_PAGE = 4] = "ODD_PAGE", e))(Lm || {}), Dm = /* @__PURE__ */ ((e) => (e[e.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", e[e.NONE = 1] = "NONE", e[e.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", e))(Dm || {}), Um = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.TBRL = 1] = "TBRL", e[e.LRTBV = 2] = "LRTBV", e))(Um || {}), km = /* @__PURE__ */ ((e) => (e[e.TEXT_RUN = 0] = "TEXT_RUN", e[e.AUTO_TEXT = 1] = "AUTO_TEXT", e[e.PAGE_BREAK = 2] = "PAGE_BREAK", e[e.COLUMN_BREAK = 3] = "COLUMN_BREAK", e[e.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", e[e.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", e[e.EQUATION = 6] = "EQUATION", e[e.DRAWING = 7] = "DRAWING", e[e.PERSON = 8] = "PERSON", e[e.RICH_LINK = 9] = "RICH_LINK", e))(km || {}), Pm = /* @__PURE__ */ ((e) => (e[e.BOTH_SIDES = 0] = "BOTH_SIDES", e[e.LEFT = 1] = "LEFT", e[e.RIGHT = 2] = "RIGHT", e[e.LARGEST = 3] = "LARGEST", e))(Pm || {}), Fm = /* @__PURE__ */ ((e) => (e[e.INLINE = 0] = "INLINE", e[e.WRAP_NONE = 1] = "WRAP_NONE", e[e.WRAP_POLYGON = 2] = "WRAP_POLYGON", e[e.WRAP_SQUARE = 3] = "WRAP_SQUARE", e[e.WRAP_THROUGH = 4] = "WRAP_THROUGH", e[e.WRAP_TIGHT = 5] = "WRAP_TIGHT", e[e.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", e))(Fm || {}), qe = /* @__PURE__ */ ((e) => (e[e.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", e[e.NORMAL_TEXT = 1] = "NORMAL_TEXT", e[e.TITLE = 2] = "TITLE", e[e.SUBTITLE = 3] = "SUBTITLE", e[e.HEADING_1 = 4] = "HEADING_1", e[e.HEADING_2 = 5] = "HEADING_2", e[e.HEADING_3 = 6] = "HEADING_3", e[e.HEADING_4 = 7] = "HEADING_4", e[e.HEADING_5 = 8] = "HEADING_5", e))(qe || {}), $m = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))($m || {}), Hm = /* @__PURE__ */ ((e) => (e[e.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", e[e.SOLID = 1] = "SOLID", e[e.DOT = 2] = "DOT", e[e.DASH = 3] = "DASH", e))(Hm || {}), Bm = /* @__PURE__ */ ((e) => (e[e.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", e[e.START = 1] = "START", e[e.CENTER = 2] = "CENTER", e[e.END = 3] = "END", e))(Bm || {}), jm = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.SPECIFIED = 1] = "SPECIFIED", e))(jm || {}), Wm = /* @__PURE__ */ ((e) => (e[e.START = 0] = "START", e[e.CENTER = 1] = "CENTER", e[e.END = 2] = "END", e))(Wm || {}), Ym = /* @__PURE__ */ ((e) => (e[e.AUTO_FIT = 0] = "AUTO_FIT", e[e.FIXED = 1] = "FIXED", e))(Ym || {}), zm = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.WRAP = 1] = "WRAP", e))(zm || {}), Vm = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))(Vm || {}), Gm = /* @__PURE__ */ ((e) => (e[e.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", e[e.BOTH = 1] = "BOTH", e[e.TOP = 2] = "TOP", e[e.CENTER = 3] = "CENTER", e[e.BOTTOM = 4] = "BOTTOM", e))(Gm || {}), ir = /* @__PURE__ */ ((e) => (e.NORMAL = "normal", e.BOLD = "bold", e.ITALIC = "italic", e))(ir || {}), Km = /* @__PURE__ */ ((e) => (e[e.PAGE = 0] = "PAGE", e[e.COLUMN = 1] = "COLUMN", e[e.CHARACTER = 2] = "CHARACTER", e[e.MARGIN = 3] = "MARGIN", e[e.INSIDE_MARGIN = 4] = "INSIDE_MARGIN", e[e.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", e[e.LEFT_MARGIN = 6] = "LEFT_MARGIN", e[e.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", e))(Km || {}), Xm = /* @__PURE__ */ ((e) => (e[e.PAGE = 0] = "PAGE", e[e.PARAGRAPH = 1] = "PARAGRAPH", e[e.LINE = 2] = "LINE", e[e.MARGIN = 3] = "MARGIN", e[e.TOP_MARGIN = 4] = "TOP_MARGIN", e[e.BOTTOM_MARGIN = 5] = "BOTTOM_MARGIN", e[e.INSIDE_MARGIN = 6] = "INSIDE_MARGIN", e[e.OUTSIDE_MARGIN = 7] = "OUTSIDE_MARGIN", e))(Xm || {}), qm = /* @__PURE__ */ ((e) => (e[e.POINT = 0] = "POINT", e[e.LINE = 1] = "LINE", e[e.CHARACTER = 2] = "CHARACTER", e[e.PIXEL = 3] = "PIXEL", e[e.PERCENT = 4] = "PERCENT", e))(qm || {}), Jm = /* @__PURE__ */ ((e) => (e[e.CENTER = 0] = "CENTER", e[e.INSIDE = 1] = "INSIDE", e[e.LEFT = 2] = "LEFT", e[e.OUTSIDE = 3] = "OUTSIDE", e[e.RIGHT = 4] = "RIGHT", e[e.BOTH = 5] = "BOTH", e[e.DISTRIBUTE = 6] = "DISTRIBUTE", e))(Jm || {}), Zm = /* @__PURE__ */ ((e) => (e[e.BOTTOM = 0] = "BOTTOM", e[e.CENTER = 1] = "CENTER", e[e.INSIDE = 2] = "INSIDE", e[e.OUTSIDE = 3] = "OUTSIDE", e[e.TOP = 4] = "TOP", e))(Zm || {}), Qm = /* @__PURE__ */ ((e) => (e[e.compressPunctuation = 0] = "compressPunctuation", e[e.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", e[e.doNotCompress = 2] = "doNotCompress", e))(Qm || {}), eg = /* @__PURE__ */ ((e) => (e[e.PORTRAIT = 0] = "PORTRAIT", e[e.LANDSCAPE = 1] = "LANDSCAPE", e))(eg || {}), _t = /* @__PURE__ */ ((e) => (e.Letter = "Letter", e.Tabloid = "Tabloid", e.Legal = "Legal", e.Statement = "Statement", e.Executive = "Executive", e.Folio = "Folio", e.A3 = "A3", e.A4 = "A4", e.A5 = "A5", e.B4 = "B4", e.B5 = "B5", e))(_t || {});
2051
+ var Rm = /* @__PURE__ */ ((e) => (e[e.INTERPOLATION_POINT_TYPE_UNSPECIFIED = 0] = "INTERPOLATION_POINT_TYPE_UNSPECIFIED", e[e.MIN = 1] = "MIN", e[e.MAX = 2] = "MAX", e[e.NUMBER = 3] = "NUMBER", e[e.PERCENT = 4] = "PERCENT", e[e.PERCENTILE = 5] = "PERCENTILE", e))(Rm || {}), Ns = /* @__PURE__ */ ((e) => (e.EN_US = "enUS", e.FR_FR = "frFR", e.ZH_CN = "zhCN", e.RU_RU = "ruRU", e.ZH_TW = "zhTW", e.VI_VN = "viVN", e.FA_IR = "faIR", e.JA_JP = "jaJP", e.KO_KR = "koKR", e.ES_ES = "esES", e.CA_ES = "caES", e))(Ns || {}), Ii = /* @__PURE__ */ ((e) => (e[e.PERSON = 0] = "PERSON", e[e.FILE = 1] = "FILE", e[e.DATE = 2] = "DATE", e[e.LOCATION = 3] = "LOCATION", e[e.EVENT = 4] = "EVENT", e))(Ii || {}), Im = /* @__PURE__ */ ((e) => (e[e.RANGE = 0] = "RANGE", e[e.SHEET = 1] = "SHEET", e))(Im || {}), wm = /* @__PURE__ */ ((e) => (e.Line = "line", e.LineInv = "lineInv", e.Triangle = "triangle", e.RtTriangle = "rtTriangle", e.Rect = "rect", e.Diamond = "diamond", e.Parallelogram = "parallelogram", e.Trapezoid = "trapezoid", e.NonIsocelesTrapezoid = "nonIsocelesTrapezoid", e.Pentagon = "pentagon", e.Hexagon = "hexagon", e.Heptagon = "heptagon", e.Octagon = "octagon", e.Decagon = "decagon", e.Dodecagon = "dodecagon", e.Star4 = "star4", e.Star5 = "star5", e.Star6 = "star6", e.Star7 = "star7", e.Star8 = "star8", e.Star10 = "star10", e.Star12 = "star12", e.Star16 = "star16", e.Star24 = "star24", e.Star32 = "star32", e.RoundRect = "roundRect", e.Round1Rect = "round1Rect", e.Round2SameRect = "round2SameRect", e.Round2DiagRect = "round2DiagRect", e.Ellipse = "ellipse", e))(wm || {}), Om = /* @__PURE__ */ ((e) => (e.RightArrow = "rightArrow", e.LeftArrow = "leftArrow", e.UpArrow = "upArrow", e.DownArrow = "downArrow", e.LeftRightArrow = "leftRightArrow", e.UpDownArrow = "upDownArrow", e.QuadArrow = "quadArrow", e.LeftRightUpArrow = "leftRightUpArrow", e.BentArrow = "bentArrow", e.UturnArrow = "uturnArrow", e.CircularArrow = "circularArrow", e.NotchedRightArrow = "notchedRightArrow", e.HomePlate = "homePlate", e.Chevron = "chevron", e.LeftCircularArrow = "leftCircularArrow", e.LeftRightCircularArrow = "leftRightCircularArrow", e))(Om || {}), Sm = /* @__PURE__ */ ((e) => (e.Plaque = "plaque", e.Can = "can", e.Cube = "cube", e.Bevel = "bevel", e.Donut = "donut", e.NoSmoking = "noSmoking", e.BlockArc = "blockArc", e.FoldedCorner = "foldedCorner", e))(Sm || {}), vm = /* @__PURE__ */ ((e) => (e.SmileyFace = "smileyFace", e.Heart = "heart", e.LightningBolt = "lightningBolt", e.Sun = "sun", e.Moon = "moon", e.Cloud = "cloud", e.Arc = "arc", e.Backpack = "backpack", e.Frame = "frame", e.HalfFrame = "halfFrame", e.Corner = "corner", e.Chord = "chord", e.Pie = "pie", e.Teardrop = "teardrop", e.WedgeRectCallout = "wedgeRectCallout", e.WedgeRRectCallout = "wedgeRRectCallout", e.WedgeEllipseCallout = "wedgeEllipseCallout", e.CloudCallout = "cloudCallout", e.BorderCallout1 = "borderCallout1", e.BorderCallout2 = "borderCallout2", e.BorderCallout3 = "borderCallout3", e.AccentCallout1 = "accentCallout1", e.AccentCallout2 = "accentCallout2", e.AccentCallout3 = "accentCallout3", e.Callout1 = "callout1", e.Callout2 = "callout2", e.Callout3 = "callout3", e.ActionButtonBackPrevious = "actionButtonBackPrevious", e.ActionButtonEnd = "actionButtonEnd", e.ActionButtonForwardNext = "actionButtonForwardNext", e.ActionButtonHelp = "actionButtonHelp", e.ActionButtonHome = "actionButtonHome", e.ActionButtonInformation = "actionButtonInformation", e.ActionButtonMovie = "actionButtonMovie", e.ActionButtonReturn = "actionButtonReturn", e.ActionButtonSound = "actionButtonSound", e))(vm || {}), bm = /* @__PURE__ */ ((e) => (e[e.RELATIVE_DATE_UNSPECIFIED = 0] = "RELATIVE_DATE_UNSPECIFIED", e[e.PAST_YEAR = 1] = "PAST_YEAR", e[e.PAST_MONTH = 2] = "PAST_MONTH", e[e.PAST_WEEK = 3] = "PAST_WEEK", e[e.YESTERDAY = 4] = "YESTERDAY", e[e.TODAY = 5] = "TODAY", e[e.TOMORROW = 6] = "TOMORROW", e))(bm || {}), Am = /* @__PURE__ */ ((e) => (e[e.GRID = 0] = "GRID", e[e.KANBAN = 1] = "KANBAN", e[e.GANTT = 2] = "GANTT", e))(Am || {}), ms = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", e[e.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", e))(ms || {}), ym = /* @__PURE__ */ ((e) => (e[e.DASH = 0] = "DASH", e[e.DASH_DOT_DOT_HEAVY = 1] = "DASH_DOT_DOT_HEAVY", e[e.DASH_DOT_HEAVY = 2] = "DASH_DOT_HEAVY", e[e.DASHED_HEAVY = 3] = "DASHED_HEAVY", e[e.DASH_LONG = 4] = "DASH_LONG", e[e.DASH_LONG_HEAVY = 5] = "DASH_LONG_HEAVY", e[e.DOT_DASH = 6] = "DOT_DASH", e[e.DOT_DOT_DASH = 7] = "DOT_DOT_DASH", e[e.DOTTED = 8] = "DOTTED", e[e.DOTTED_HEAVY = 9] = "DOTTED_HEAVY", e[e.DOUBLE = 10] = "DOUBLE", e[e.NONE = 11] = "NONE", e[e.SINGLE = 12] = "SINGLE", e[e.THICK = 13] = "THICK", e[e.WAVE = 14] = "WAVE", e[e.WAVY_DOUBLE = 15] = "WAVY_DOUBLE", e[e.WAVY_HEAVY = 16] = "WAVY_HEAVY", e[e.WORDS = 17] = "WORDS", e))(ym || {}), Ut = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.LEFT = 1] = "LEFT", e[e.CENTER = 2] = "CENTER", e[e.RIGHT = 3] = "RIGHT", e[e.JUSTIFIED = 4] = "JUSTIFIED", e[e.BOTH = 5] = "BOTH", e[e.DISTRIBUTED = 6] = "DISTRIBUTED", e))(Ut || {}), Ln = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.TOP = 1] = "TOP", e[e.MIDDLE = 2] = "MIDDLE", e[e.BOTTOM = 3] = "BOTTOM", e))(Ln || {}), Bn = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.OVERFLOW = 1] = "OVERFLOW", e[e.CLIP = 2] = "CLIP", e[e.WRAP = 3] = "WRAP", e))(Bn || {}), wi = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.ITALIC = 1] = "ITALIC", e))(wi || {}), Oi = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.BOLD = 1] = "BOLD", e))(Oi || {}), Jt = /* @__PURE__ */ ((e) => (e[e.NORMAL = 1] = "NORMAL", e[e.SUBSCRIPT = 2] = "SUBSCRIPT", e[e.SUPERSCRIPT = 3] = "SUPERSCRIPT", e))(Jt || {}), ie = /* @__PURE__ */ ((e) => (e[e.FALSE = 0] = "FALSE", e[e.TRUE = 1] = "TRUE", e))(ie || {}), fn = /* @__PURE__ */ ((e) => (e[e.STRING = 1] = "STRING", e[e.NUMBER = 2] = "NUMBER", e[e.BOOLEAN = 3] = "BOOLEAN", e[e.FORCE_STRING = 4] = "FORCE_STRING", e))(fn || {}), st = /* @__PURE__ */ ((e) => (e[e.DARK1 = 0] = "DARK1", e[e.LIGHT1 = 1] = "LIGHT1", e[e.DARK2 = 2] = "DARK2", e[e.LIGHT2 = 3] = "LIGHT2", e[e.ACCENT1 = 4] = "ACCENT1", e[e.ACCENT2 = 5] = "ACCENT2", e[e.ACCENT3 = 6] = "ACCENT3", e[e.ACCENT4 = 7] = "ACCENT4", e[e.ACCENT5 = 8] = "ACCENT5", e[e.ACCENT6 = 9] = "ACCENT6", e[e.HYPERLINK = 10] = "HYPERLINK", e[e.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", e))(st || {}), co = /* @__PURE__ */ ((e) => (e.OFFICE = "Office", e.OFFICE_2007_2010 = "Office 2007-2010", e.GRAYSCALE = "Grayscale", e.BLUE_WARM = "Blue Warm", e.BLUE = "Blue", e.BLUE_II = "Blue II", e.BLUE_GREEN = "Blue Green", e.GREEN = "Green", e.GREEN_YELLOW = "Green Yellow", e.YELLOW = "Yellow", e.YELLOW_ORANGE = "Yellow Orange", e.ORANGE = "Orange", e.ORANGE_RED = "Orange Red", e.RED_ORANGE = "Red Orange", e.RED = "Red", e.RED_VIOLET = "Red Violet", e.VIOLET = "Violet", e.VIOLET_II = "Violet II", e.MEDIAN = "Median", e.PAPER = "Paper", e.MARQUEE = "Marquee", e.SLIPSTREAM = "Slipstream", e.Aspect = "Aspect", e))(co || {}), Nm = /* @__PURE__ */ ((e) => (e[e.character = 0] = "character", e[e.paragraph = 1] = "paragraph", e[e.table = 2] = "table", e[e.numbering = 3] = "numbering", e))(Nm || {}), Tm = /* @__PURE__ */ ((e) => (e[e.TAB = 0] = "TAB", e[e.SPACE = 1] = "SPACE", e[e.NOTHING = 2] = "NOTHING", e))(Tm || {}), me = /* @__PURE__ */ ((e) => (e[e.BULLET = 0] = "BULLET", e[e.NONE = 1] = "NONE", e[e.DECIMAL = 2] = "DECIMAL", e[e.DECIMAL_ZERO = 3] = "DECIMAL_ZERO", e[e.UPPER_LETTER = 4] = "UPPER_LETTER", e[e.LOWER_LETTER = 5] = "LOWER_LETTER", e[e.UPPER_ROMAN = 6] = "UPPER_ROMAN", e[e.LOWER_ROMAN = 7] = "LOWER_ROMAN", e[e.ORDINAL = 8] = "ORDINAL", e[e.CARDINAL_TEXT = 9] = "CARDINAL_TEXT", e[e.ORDINAL_TEXT = 10] = "ORDINAL_TEXT", e[e.HEX = 11] = "HEX", e[e.CHICAGO = 12] = "CHICAGO", e[e.IDEOGRAPH_DIGITAL = 13] = "IDEOGRAPH_DIGITAL", e[e.JAPANESE_COUNTING = 14] = "JAPANESE_COUNTING", e[e.AIUEO = 15] = "AIUEO", e[e.IROHA = 16] = "IROHA", e[e.DECIMAL_FULL_WIDTH = 17] = "DECIMAL_FULL_WIDTH", e[e.DECIMAL_HALF_WIDTH = 18] = "DECIMAL_HALF_WIDTH", e[e.JAPANESE_LEGAL = 19] = "JAPANESE_LEGAL", e[e.JAPANESE_DIGITAL_TEN_THOUSAND = 20] = "JAPANESE_DIGITAL_TEN_THOUSAND", e[e.DECIMAL_ENCLOSED_CIRCLE = 21] = "DECIMAL_ENCLOSED_CIRCLE", e[e.DECIMAL_FULL_WIDTH2 = 22] = "DECIMAL_FULL_WIDTH2", e[e.AIUEO_FULL_WIDTH = 23] = "AIUEO_FULL_WIDTH", e[e.IROHA_FULL_WIDTH = 24] = "IROHA_FULL_WIDTH", e[e.GANADA = 25] = "GANADA", e[e.CHOSUNG = 26] = "CHOSUNG", e[e.DECIMAL_ENCLOSED_FULLSTOP = 27] = "DECIMAL_ENCLOSED_FULLSTOP", e[e.DECIMAL_ENCLOSED_PAREN = 28] = "DECIMAL_ENCLOSED_PAREN", e[e.DECIMAL_ENCLOSED_CIRCLE_CHINESE = 29] = "DECIMAL_ENCLOSED_CIRCLE_CHINESE", e[e.IDEOGRAPH_ENCLOSED_CIRCLE = 30] = "IDEOGRAPH_ENCLOSED_CIRCLE", e[e.IDEOGRAPH_TRADITIONAL = 31] = "IDEOGRAPH_TRADITIONAL", e[e.IDEOGRAPH_ZODIAC = 32] = "IDEOGRAPH_ZODIAC", e[e.IDEOGRAPH_ZODIAC_TRADITIONAL = 33] = "IDEOGRAPH_ZODIAC_TRADITIONAL", e[e.TAIWANESE_COUNTING = 34] = "TAIWANESE_COUNTING", e[e.IDEOGRAPH_LEGAL_TRADITIONAL = 35] = "IDEOGRAPH_LEGAL_TRADITIONAL", e[e.TAIWANESE_COUNTING_THOUSAND = 36] = "TAIWANESE_COUNTING_THOUSAND", e[e.TAIWANESE_DIGITAL = 37] = "TAIWANESE_DIGITAL", e[e.CHINESE_COUNTING = 38] = "CHINESE_COUNTING", e[e.CHINESE_LEGAL_SIMPLIFIED = 39] = "CHINESE_LEGAL_SIMPLIFIED", e[e.CHINESE_COUNTING_THOUSAND = 40] = "CHINESE_COUNTING_THOUSAND", e[e.KOREAN_DIGITAL = 41] = "KOREAN_DIGITAL", e[e.KOREAN_COUNTING = 42] = "KOREAN_COUNTING", e[e.KOREAN_LEGAL = 43] = "KOREAN_LEGAL", e[e.KOREAN_DIGITAL2 = 44] = "KOREAN_DIGITAL2", e[e.VIETNAMESE_COUNTING = 45] = "VIETNAMESE_COUNTING", e[e.RUSSIAN_LOWER = 46] = "RUSSIAN_LOWER", e[e.RUSSIAN_UPPER = 47] = "RUSSIAN_UPPER", e[e.NUMBER_IN_DASH = 48] = "NUMBER_IN_DASH", e[e.HEBREW1 = 49] = "HEBREW1", e[e.HEBREW2 = 50] = "HEBREW2", e[e.ARABIC_ALPHA = 51] = "ARABIC_ALPHA", e[e.ARABIC_ABJAD = 52] = "ARABIC_ABJAD", e[e.HINDI_VOWELS = 53] = "HINDI_VOWELS", e[e.HINDI_CONSONANTS = 54] = "HINDI_CONSONANTS", e[e.HINDI_NUMBERS = 55] = "HINDI_NUMBERS", e[e.HINDI_COUNTING = 56] = "HINDI_COUNTING", e[e.THAI_LETTERS = 57] = "THAI_LETTERS", e[e.THAI_NUMBERS = 58] = "THAI_NUMBERS", e[e.THAI_COUNTING = 59] = "THAI_COUNTING", e[e.CUSTOM = 60] = "CUSTOM", e))(me || {}), Ts = /* @__PURE__ */ ((e) => (e[e.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", e[e.START = 1] = "START", e[e.CENTER = 2] = "CENTER", e[e.END = 3] = "END", e[e.BOTH = 4] = "BOTH", e))(Ts || {}), pn = /* @__PURE__ */ ((e) => (e[e.HYPERLINK = 0] = "HYPERLINK", e[e.FIELD = 1] = "FIELD", e[e.SDT = 2] = "SDT", e[e.BOOKMARK = 3] = "BOOKMARK", e[e.COMMENT = 4] = "COMMENT", e[e.CUSTOM = 5] = "CUSTOM", e[e.MENTION = 6] = "MENTION", e[e.UNI_FORMULA = 7] = "UNI_FORMULA", e[e.DELTED = 9999] = "DELTED", e))(pn || {}), Dn = /* @__PURE__ */ ((e) => (e[e.COMMENT = 0] = "COMMENT", e[e.DELETED = 9999] = "DELETED", e))(Dn || {}), Mm = /* @__PURE__ */ ((e) => (e[e.DRAWING = 0] = "DRAWING", e[e.CUSTOM = 1] = "CUSTOM", e))(Mm || {}), uu = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.TRADITIONAL = 1] = "TRADITIONAL", e[e.MODERN = 2] = "MODERN", e))(uu || {}), xm = /* @__PURE__ */ ((e) => (e[e.DEFAULT = 0] = "DEFAULT", e[e.LINES = 1] = "LINES", e[e.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", e[e.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", e))(xm || {}), Lm = /* @__PURE__ */ ((e) => (e[e.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", e[e.CONTINUOUS = 1] = "CONTINUOUS", e[e.NEXT_PAGE = 2] = "NEXT_PAGE", e[e.EVEN_PAGE = 3] = "EVEN_PAGE", e[e.ODD_PAGE = 4] = "ODD_PAGE", e))(Lm || {}), Dm = /* @__PURE__ */ ((e) => (e[e.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", e[e.NONE = 1] = "NONE", e[e.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", e))(Dm || {}), Um = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.TBRL = 1] = "TBRL", e[e.LRTBV = 2] = "LRTBV", e))(Um || {}), km = /* @__PURE__ */ ((e) => (e[e.TEXT_RUN = 0] = "TEXT_RUN", e[e.AUTO_TEXT = 1] = "AUTO_TEXT", e[e.PAGE_BREAK = 2] = "PAGE_BREAK", e[e.COLUMN_BREAK = 3] = "COLUMN_BREAK", e[e.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", e[e.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", e[e.EQUATION = 6] = "EQUATION", e[e.DRAWING = 7] = "DRAWING", e[e.PERSON = 8] = "PERSON", e[e.RICH_LINK = 9] = "RICH_LINK", e))(km || {}), Pm = /* @__PURE__ */ ((e) => (e[e.BOTH_SIDES = 0] = "BOTH_SIDES", e[e.LEFT = 1] = "LEFT", e[e.RIGHT = 2] = "RIGHT", e[e.LARGEST = 3] = "LARGEST", e))(Pm || {}), Fm = /* @__PURE__ */ ((e) => (e[e.INLINE = 0] = "INLINE", e[e.WRAP_NONE = 1] = "WRAP_NONE", e[e.WRAP_POLYGON = 2] = "WRAP_POLYGON", e[e.WRAP_SQUARE = 3] = "WRAP_SQUARE", e[e.WRAP_THROUGH = 4] = "WRAP_THROUGH", e[e.WRAP_TIGHT = 5] = "WRAP_TIGHT", e[e.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", e))(Fm || {}), qe = /* @__PURE__ */ ((e) => (e[e.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", e[e.NORMAL_TEXT = 1] = "NORMAL_TEXT", e[e.TITLE = 2] = "TITLE", e[e.SUBTITLE = 3] = "SUBTITLE", e[e.HEADING_1 = 4] = "HEADING_1", e[e.HEADING_2 = 5] = "HEADING_2", e[e.HEADING_3 = 6] = "HEADING_3", e[e.HEADING_4 = 7] = "HEADING_4", e[e.HEADING_5 = 8] = "HEADING_5", e))(qe || {}), $m = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))($m || {}), Hm = /* @__PURE__ */ ((e) => (e[e.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", e[e.SOLID = 1] = "SOLID", e[e.DOT = 2] = "DOT", e[e.DASH = 3] = "DASH", e))(Hm || {}), Bm = /* @__PURE__ */ ((e) => (e[e.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", e[e.START = 1] = "START", e[e.CENTER = 2] = "CENTER", e[e.END = 3] = "END", e))(Bm || {}), jm = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.SPECIFIED = 1] = "SPECIFIED", e))(jm || {}), Wm = /* @__PURE__ */ ((e) => (e[e.START = 0] = "START", e[e.CENTER = 1] = "CENTER", e[e.END = 2] = "END", e))(Wm || {}), Ym = /* @__PURE__ */ ((e) => (e[e.AUTO_FIT = 0] = "AUTO_FIT", e[e.FIXED = 1] = "FIXED", e))(Ym || {}), zm = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.WRAP = 1] = "WRAP", e))(zm || {}), Vm = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))(Vm || {}), Gm = /* @__PURE__ */ ((e) => (e[e.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", e[e.BOTH = 1] = "BOTH", e[e.TOP = 2] = "TOP", e[e.CENTER = 3] = "CENTER", e[e.BOTTOM = 4] = "BOTTOM", e))(Gm || {}), ir = /* @__PURE__ */ ((e) => (e.NORMAL = "normal", e.BOLD = "bold", e.ITALIC = "italic", e))(ir || {}), Km = /* @__PURE__ */ ((e) => (e[e.PAGE = 0] = "PAGE", e[e.COLUMN = 1] = "COLUMN", e[e.CHARACTER = 2] = "CHARACTER", e[e.MARGIN = 3] = "MARGIN", e[e.INSIDE_MARGIN = 4] = "INSIDE_MARGIN", e[e.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", e[e.LEFT_MARGIN = 6] = "LEFT_MARGIN", e[e.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", e))(Km || {}), Xm = /* @__PURE__ */ ((e) => (e[e.PAGE = 0] = "PAGE", e[e.PARAGRAPH = 1] = "PARAGRAPH", e[e.LINE = 2] = "LINE", e[e.MARGIN = 3] = "MARGIN", e[e.TOP_MARGIN = 4] = "TOP_MARGIN", e[e.BOTTOM_MARGIN = 5] = "BOTTOM_MARGIN", e[e.INSIDE_MARGIN = 6] = "INSIDE_MARGIN", e[e.OUTSIDE_MARGIN = 7] = "OUTSIDE_MARGIN", e))(Xm || {}), qm = /* @__PURE__ */ ((e) => (e[e.POINT = 0] = "POINT", e[e.LINE = 1] = "LINE", e[e.CHARACTER = 2] = "CHARACTER", e[e.PIXEL = 3] = "PIXEL", e[e.PERCENT = 4] = "PERCENT", e))(qm || {}), Jm = /* @__PURE__ */ ((e) => (e[e.CENTER = 0] = "CENTER", e[e.INSIDE = 1] = "INSIDE", e[e.LEFT = 2] = "LEFT", e[e.OUTSIDE = 3] = "OUTSIDE", e[e.RIGHT = 4] = "RIGHT", e[e.BOTH = 5] = "BOTH", e[e.DISTRIBUTE = 6] = "DISTRIBUTE", e))(Jm || {}), Zm = /* @__PURE__ */ ((e) => (e[e.BOTTOM = 0] = "BOTTOM", e[e.CENTER = 1] = "CENTER", e[e.INSIDE = 2] = "INSIDE", e[e.OUTSIDE = 3] = "OUTSIDE", e[e.TOP = 4] = "TOP", e))(Zm || {}), Qm = /* @__PURE__ */ ((e) => (e[e.compressPunctuation = 0] = "compressPunctuation", e[e.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", e[e.doNotCompress = 2] = "doNotCompress", e))(Qm || {}), eg = /* @__PURE__ */ ((e) => (e[e.PORTRAIT = 0] = "PORTRAIT", e[e.LANDSCAPE = 1] = "LANDSCAPE", e))(eg || {}), _t = /* @__PURE__ */ ((e) => (e.Letter = "Letter", e.Tabloid = "Tabloid", e.Legal = "Legal", e.Statement = "Statement", e.Executive = "Executive", e.Folio = "Folio", e.A3 = "A3", e.A4 = "A4", e.A5 = "A5", e.B4 = "B4", e.B5 = "B5", e))(_t || {});
2052
2052
  const _R = [
2053
2053
  "A3",
2054
2054
  "A4",
@@ -2160,10 +2160,10 @@ function og() {
2160
2160
  }
2161
2161
  return Dr.default = n, Dr;
2162
2162
  }
2163
- var Ur = {}, Sa;
2163
+ var Ur = {}, Oa;
2164
2164
  function ag() {
2165
- if (Sa) return Ur;
2166
- Sa = 1, Object.defineProperty(Ur, "__esModule", { value: !0 });
2165
+ if (Oa) return Ur;
2166
+ Oa = 1, Object.defineProperty(Ur, "__esModule", { value: !0 });
2167
2167
  function e(t) {
2168
2168
  if (t === null)
2169
2169
  return null;
@@ -2179,9 +2179,9 @@ function ag() {
2179
2179
  }
2180
2180
  return Ur.default = e, Ur;
2181
2181
  }
2182
- var qs = {}, Oa;
2182
+ var qs = {}, Sa;
2183
2183
  function hu() {
2184
- return Oa || (Oa = 1, (function(e) {
2184
+ return Sa || (Sa = 1, (function(e) {
2185
2185
  Object.defineProperty(e, "__esModule", { value: !0 }), e.eachChildOf = e.advancer = e.readCursor = e.writeCursor = e.WriteCursor = e.ReadCursor = e.isValidPathItem = void 0;
2186
2186
  function t(c, h) {
2187
2187
  if (!c)
@@ -2437,7 +2437,7 @@ function ho() {
2437
2437
  }), ln;
2438
2438
  }
2439
2439
  var Zs = {}, Aa;
2440
- function Oi() {
2440
+ function Si() {
2441
2441
  return Aa || (Aa = 1, (function(e) {
2442
2442
  Object.defineProperty(e, "__esModule", { value: !0 }), e.uniSlice = e.dlen = e.eachOp = void 0;
2443
2443
  const t = ho(), n = (w) => {
@@ -2517,19 +2517,19 @@ function Oi() {
2517
2517
  if (C === w.length)
2518
2518
  return $ === -1 ? null : $;
2519
2519
  const D = w[C];
2520
- let S;
2520
+ let O;
2521
2521
  if (typeof D == "number")
2522
- return $ === -1 || D - v <= $ ? (S = D - v, ++C, v = 0, S) : (v += $, $);
2522
+ return $ === -1 || D - v <= $ ? (O = D - v, ++C, v = 0, O) : (v += $, $);
2523
2523
  if (typeof D == "string") {
2524
2524
  if ($ === -1 || m === "i" || t.strPosToUni(D.slice(v)) <= $)
2525
- return S = D.slice(v), ++C, v = 0, S;
2525
+ return O = D.slice(v), ++C, v = 0, O;
2526
2526
  {
2527
2527
  const T = v + t.uniToStrPos(D.slice(v), $);
2528
- return S = D.slice(v, T), v = T, S;
2528
+ return O = D.slice(v, T), v = T, O;
2529
2529
  }
2530
2530
  } else {
2531
2531
  if ($ === -1 || m === "d" || e.dlen(D.d) - v <= $)
2532
- return S = { d: u(D.d, v) }, ++C, v = 0, S;
2532
+ return O = { d: u(D.d, v) }, ++C, v = 0, O;
2533
2533
  {
2534
2534
  let T = u(D.d, v, v + $);
2535
2535
  return v += $, { d: T };
@@ -2542,28 +2542,28 @@ function Oi() {
2542
2542
  throw Error("side (" + v + ") must be 'left' or 'right'");
2543
2543
  n(w), n(C);
2544
2544
  const y = [], F = a(y), { take: $, peek: m } = c(w);
2545
- for (let S = 0; S < C.length; S++) {
2546
- const T = C[S];
2547
- let A, O;
2545
+ for (let O = 0; O < C.length; O++) {
2546
+ const T = C[O];
2547
+ let A, S;
2548
2548
  switch (typeof T) {
2549
2549
  case "number":
2550
2550
  for (A = T; A > 0; )
2551
- O = $(A, "i"), F(O), typeof O != "string" && (A -= l(O));
2551
+ S = $(A, "i"), F(S), typeof S != "string" && (A -= l(S));
2552
2552
  break;
2553
2553
  case "string":
2554
2554
  v === "left" && typeof m() == "string" && F($(-1)), F(t.strPosToUni(T));
2555
2555
  break;
2556
2556
  case "object":
2557
2557
  for (A = e.dlen(T.d); A > 0; )
2558
- switch (O = $(A, "i"), typeof O) {
2558
+ switch (S = $(A, "i"), typeof S) {
2559
2559
  case "number":
2560
- A -= O;
2560
+ A -= S;
2561
2561
  break;
2562
2562
  case "string":
2563
- F(O);
2563
+ F(S);
2564
2564
  break;
2565
2565
  case "object":
2566
- A -= e.dlen(O.d);
2566
+ A -= e.dlen(S.d);
2567
2567
  }
2568
2568
  break;
2569
2569
  }
@@ -2578,20 +2578,20 @@ function Oi() {
2578
2578
  const v = [], y = a(v), { take: F } = c(w);
2579
2579
  for (let m = 0; m < C.length; m++) {
2580
2580
  const D = C[m];
2581
- let S, T;
2581
+ let O, T;
2582
2582
  switch (typeof D) {
2583
2583
  case "number":
2584
- for (S = D; S > 0; )
2585
- T = F(S, "d"), y(T), typeof T != "object" && (S -= l(T));
2584
+ for (O = D; O > 0; )
2585
+ T = F(O, "d"), y(T), typeof T != "object" && (O -= l(T));
2586
2586
  break;
2587
2587
  case "string":
2588
2588
  y(D);
2589
2589
  break;
2590
2590
  case "object":
2591
- S = e.dlen(D.d);
2591
+ O = e.dlen(D.d);
2592
2592
  let A = 0;
2593
- for (; A < S; )
2594
- switch (T = F(S - A, "d"), typeof T) {
2593
+ for (; A < O; )
2594
+ switch (T = F(O - A, "d"), typeof T) {
2595
2595
  case "number":
2596
2596
  y({ d: u(D.d, A, A + T) }), A += T;
2597
2597
  break;
@@ -2718,7 +2718,7 @@ var kr = {}, ya;
2718
2718
  function lg() {
2719
2719
  if (ya) return kr;
2720
2720
  ya = 1, Object.defineProperty(kr, "__esModule", { value: !0 });
2721
- const e = Oi(), t = ho();
2721
+ const e = Si(), t = ho();
2722
2722
  function n(r, s) {
2723
2723
  return {
2724
2724
  // Returns the text content of the document
@@ -2780,7 +2780,7 @@ function ug() {
2780
2780
  return d && d.__esModule ? d : { default: d };
2781
2781
  };
2782
2782
  Object.defineProperty(e, "__esModule", { value: !0 }), e.type = e.remove = e.insert = void 0;
2783
- const i = ho(), o = r(Oi()), a = s(lg()), l = {
2783
+ const i = ho(), o = r(Si()), a = s(lg()), l = {
2784
2784
  create(d) {
2785
2785
  return d;
2786
2786
  },
@@ -2812,7 +2812,7 @@ function ug() {
2812
2812
  slice: o.uniSlice
2813
2813
  }, u = o.default(l), c = Object.assign(Object.assign({}, u), { api: a.default });
2814
2814
  e.type = c, e.insert = (d, f) => f.length === 0 ? [] : d === 0 ? [f] : [d, f], e.remove = (d, f) => o.dlen(f) === 0 ? [] : d === 0 ? [{ d: f }] : [d, { d: f }];
2815
- var h = Oi();
2815
+ var h = Si();
2816
2816
  Object.defineProperty(e, "makeType", { enumerable: !0, get: function() {
2817
2817
  return h.default;
2818
2818
  } });
@@ -2847,10 +2847,10 @@ function cg() {
2847
2847
  normalize: $,
2848
2848
  apply: m,
2849
2849
  transformPosition: D,
2850
- compose: S,
2850
+ compose: O,
2851
2851
  tryTransform: x,
2852
2852
  transform: q,
2853
- makeInvertible: O,
2853
+ makeInvertible: S,
2854
2854
  invert: T,
2855
2855
  invertWithDoc: N,
2856
2856
  RM_UNEXPECTED_CONTENT: i.ConflictType.RM_UNEXPECTED_CONTENT,
@@ -3043,7 +3043,7 @@ function cg() {
3043
3043
  U === z && ee();
3044
3044
  }) : ee(), I;
3045
3045
  }
3046
- function S(I, L) {
3046
+ function O(I, L) {
3047
3047
  if (F(I), F(L), I == null) return L;
3048
3048
  if (L == null) return I;
3049
3049
  let Y = 0;
@@ -3090,11 +3090,11 @@ function cg() {
3090
3090
  C(Qe, ue, ze), de.add(ve);
3091
3091
  } else ue ? C(Qe, ue, w(Fe)) : re && (C(Qe, re, w(ve)), de.add(ve));
3092
3092
  const he = typeof ae == "object" && ae != null;
3093
- let Oe = !1, Se = 0, be = 0, Ye = 0, Be = 0, $e = 0;
3093
+ let Se = !1, Oe = 0, be = 0, Ye = 0, Be = 0, $e = 0;
3094
3094
  const Je = s.advancer(Re, (se, Ce) => h(Ce) ? Be - se - 1 : se - Be, (se, Ce) => {
3095
3095
  h(Ce) && Be++;
3096
- }), Ie = s.advancer(ce, (se, Ce) => c(Ce) ? Se - se - 1 : se - Se, (se, Ce) => {
3097
- c(Ce) && Se++;
3096
+ }), Ie = s.advancer(ce, (se, Ce) => c(Ce) ? Oe - se - 1 : se - Oe, (se, Ce) => {
3097
+ c(Ce) && Oe++;
3098
3098
  });
3099
3099
  if (s.eachChildOf(Me, Ae, (se, Ce, ze) => {
3100
3100
  let nt, Bt, sn = se, wt = se, Xn = se;
@@ -3102,14 +3102,14 @@ function cg() {
3102
3102
  let Ke = se + Ye;
3103
3103
  Bt = Je(Ke), wt = Ke + Be;
3104
3104
  let He = se + be;
3105
- nt = Ie(He), h(a(Bt)) && (nt = null), sn = He + Se, Xn = se + $e, o(sn >= 0, "p1PickKey is negative"), o(wt >= 0, "p2DropKey is negative");
3106
- const St = h(a(Ce)), jt = c(a(ze));
3107
- (St || jt && !Ht) && $e--, St && be--, jt && Ye--;
3105
+ nt = Ie(He), h(a(Bt)) && (nt = null), sn = He + Oe, Xn = se + $e, o(sn >= 0, "p1PickKey is negative"), o(wt >= 0, "p2DropKey is negative");
3106
+ const Ot = h(a(Ce)), jt = c(a(ze));
3107
+ (Ot || jt && !Ht) && $e--, Ot && be--, jt && Ye--;
3108
3108
  } else nt = Ie(se), Bt = Je(se);
3109
3109
  Ge.descend(sn), Qe.descend(wt);
3110
3110
  const Rn = he && !h(a(Ce)) ? ae[Xn] : void 0, Tt = K(nt, Ce, ze, Bt, Rn, Ht, Qe, Ge);
3111
3111
  var Mt, fe, De;
3112
- he && !Ht ? Rn !== Tt && (Oe || (ae = Array.isArray(ae) ? ae.slice() : Object.assign({}, ae), Oe = !0), Mt = ae, De = Tt, typeof (fe = Xn) == "number" ? (o(Array.isArray(Mt)), o(fe < Mt.length)) : (o(!Array.isArray(Mt)), o(Mt[fe] !== void 0)), De === void 0 ? typeof fe == "number" ? Mt.splice(fe, 1) : delete Mt[fe] : Mt[fe] = De) : o(Tt === void 0), Qe.ascend(), Ge.ascend();
3112
+ he && !Ht ? Rn !== Tt && (Se || (ae = Array.isArray(ae) ? ae.slice() : Object.assign({}, ae), Se = !0), Mt = ae, De = Tt, typeof (fe = Xn) == "number" ? (o(Array.isArray(Mt)), o(fe < Mt.length)) : (o(!Array.isArray(Mt)), o(Mt[fe] !== void 0)), De === void 0 ? typeof fe == "number" ? Mt.splice(fe, 1) : delete Mt[fe] : Mt[fe] = De) : o(Tt === void 0), Qe.ascend(), Ge.ascend();
3113
3113
  }), Ie.end(), Je.end(), Ee != null) Ee.i = ae;
3114
3114
  else if (!$t && !It && at == null) return ae;
3115
3115
  })(z, z.clone(), B, B.clone(), void 0, !1, j, _e), j.reset(), j.mergeTree(_e.get()), j.reset(), j.get(), Q.map((K) => K.get()), ee.map((K) => K.get()), z.traverse(j, (K, ce) => {
@@ -3187,7 +3187,7 @@ function cg() {
3187
3187
  }))), Y.get();
3188
3188
  }
3189
3189
  const A = (I, L) => I.some((Y) => typeof Y == "object" && (Array.isArray(Y) ? A(Y, L) : L(Y)));
3190
- function O(I, L) {
3190
+ function S(I, L) {
3191
3191
  if (I == null || !A(I, (U) => {
3192
3192
  var G;
3193
3193
  return U.r !== void 0 || ((G = W(U)) === null || G === void 0 ? void 0 : G.makeInvertible) != null;
@@ -3237,7 +3237,7 @@ function cg() {
3237
3237
  })(Y.clone(), Y, z, L, !1)), z.get();
3238
3238
  }
3239
3239
  function N(I, L) {
3240
- return T(O(I, L));
3240
+ return T(S(I, L));
3241
3241
  }
3242
3242
  const M = (I) => {
3243
3243
  if (I == null) return null;
@@ -3264,30 +3264,30 @@ function cg() {
3264
3264
  const re = a(Ee);
3265
3265
  re && (re.r !== void 0 ? ue = Ee.clone() : re.p != null && (ue = null, X[re.p] = ae.clone()));
3266
3266
  const he = ae.getComponent();
3267
- let Oe;
3268
- he && (Oe = he.p) != null && (G[Oe] = Ee ? Ee.clone() : null, ee[Oe] = ae.clone(), ue && (K[Oe] = !0, _e[Oe] = ue), re && re.p != null && (Re[Oe] = re.p));
3269
- const Se = s.advancer(Ee);
3270
- for (const be of ae) ve(ae, Se(be), ue);
3271
- Se.end();
3267
+ let Se;
3268
+ he && (Se = he.p) != null && (G[Se] = Ee ? Ee.clone() : null, ee[Se] = ae.clone(), ue && (K[Se] = !0, _e[Se] = ue), re && re.p != null && (Re[Se] = re.p));
3269
+ const Oe = s.advancer(Ee);
3270
+ for (const be of ae) ve(ae, Oe(be), ue);
3271
+ Oe.end();
3272
3272
  })(Ge, Qe, null), (function ve(ae, Ee, ue, re, he) {
3273
- const Oe = ue.getComponent();
3274
- let Se, be = !1;
3275
- Oe && ((Se = Oe.d) != null ? (U[Se] = ue.clone(), re != null && (Pe[re] == null && (Pe[re] = []), Pe[re].push(Se)), K[Se], ae = G[Se] || null, Ee = ee[Se] || null, K[Se] ? (he && (ce[Se] = !0), he = _e[Se] || null) : !he || z !== 1 && Re[Se] != null || B == null && (B = {
3273
+ const Se = ue.getComponent();
3274
+ let Oe, be = !1;
3275
+ Se && ((Oe = Se.d) != null ? (U[Oe] = ue.clone(), re != null && (Pe[re] == null && (Pe[re] = []), Pe[re].push(Oe)), K[Oe], ae = G[Oe] || null, Ee = ee[Oe] || null, K[Oe] ? (he && (ce[Oe] = !0), he = _e[Oe] || null) : !he || z !== 1 && Re[Oe] != null || B == null && (B = {
3276
3276
  type: i.ConflictType.RM_UNEXPECTED_CONTENT,
3277
3277
  op1: e.removeOp(he.getPath()),
3278
3278
  op2: e.moveOp(Ee.getPath(), ue.getPath())
3279
- }), be = !0) : Oe.i !== void 0 && (ae = Ee = null, be = !0, he && B == null && (B = {
3279
+ }), be = !0) : Se.i !== void 0 && (ae = Ee = null, be = !0, he && B == null && (B = {
3280
3280
  type: i.ConflictType.RM_UNEXPECTED_CONTENT,
3281
3281
  op1: e.removeOp(he.getPath()),
3282
- op2: e.insertOp(ue.getPath(), Oe.i)
3282
+ op2: e.insertOp(ue.getPath(), Se.i)
3283
3283
  })));
3284
3284
  const Ye = a(ae);
3285
3285
  Ye && (Ye.r !== void 0 ? he = ae.clone() : Ye.p != null && (Ye.p, re = Ye.p, he = null));
3286
- const Be = W(Oe);
3286
+ const Be = W(Se);
3287
3287
  Be && he && B == null && (B = {
3288
3288
  type: i.ConflictType.RM_UNEXPECTED_CONTENT,
3289
3289
  op1: e.removeOp(he.getPath()),
3290
- op2: e.editOp(ue.getPath(), Be, w(Oe), !0)
3290
+ op2: e.editOp(ue.getPath(), Be, w(Se), !0)
3291
3291
  });
3292
3292
  let $e = 0, Je = 0;
3293
3293
  const Ie = s.advancer(Ee, (Ce, ze) => c(ze) ? $e - Ce - 1 : Ce - $e, (Ce, ze) => {
@@ -3309,16 +3309,16 @@ function cg() {
3309
3309
  const ft = [];
3310
3310
  let It = null;
3311
3311
  (function ve(ae, Ee, ue, re, he) {
3312
- let Oe = !1;
3313
- const Se = a(Ee);
3314
- if (c(Se)) {
3315
- const Ie = Se.p;
3316
- Ie != null ? (ue = U[Ie], re = Me[Ie] = s.writeCursor(), Oe = !0, he = null) : (ue = null, he = Ee.clone());
3312
+ let Se = !1;
3313
+ const Oe = a(Ee);
3314
+ if (c(Oe)) {
3315
+ const Ie = Oe.p;
3316
+ Ie != null ? (ue = U[Ie], re = Me[Ie] = s.writeCursor(), Se = !0, he = null) : (ue = null, he = Ee.clone());
3317
3317
  } else h(a(ue)) && (ue = null);
3318
3318
  const be = ae.getComponent();
3319
3319
  if (be) {
3320
3320
  const Ie = be.p;
3321
- Ie != null ? (he && (de[Ie] = he), ft[Ie] = he || z === 1 && Oe ? null : re.getComponent(), j[Ie] = ae.clone(), ue && (ne[Ie] = ue.clone())) : be.r !== void 0 && (he || re.write("r", !0), (he || Oe) && (It == null && (It = /* @__PURE__ */ new Set()), It.add(be)));
3321
+ Ie != null ? (he && (de[Ie] = he), ft[Ie] = he || z === 1 && Se ? null : re.getComponent(), j[Ie] = ae.clone(), ue && (ne[Ie] = ue.clone())) : be.r !== void 0 && (he || re.write("r", !0), (he || Se) && (It == null && (It = /* @__PURE__ */ new Set()), It.add(be)));
3322
3322
  }
3323
3323
  let Ye = 0, Be = 0;
3324
3324
  const $e = s.advancer(Ee, void 0, (Ie, se) => {
@@ -3336,46 +3336,46 @@ function cg() {
3336
3336
  $e.end(), Je.end();
3337
3337
  })(Qe, Ge, Ge.clone(), Fe, null), Fe.reset();
3338
3338
  let rn = [];
3339
- if ((function ve(ae, Ee, ue, re, he, Oe) {
3339
+ if ((function ve(ae, Ee, ue, re, he, Se) {
3340
3340
  o(Ee);
3341
- const Se = Ee.getComponent();
3341
+ const Oe = Ee.getComponent();
3342
3342
  let be = a(re), Ye = !1;
3343
3343
  const Be = (fe, De, Ke) => fe ? e.moveOp(fe.getPath(), De.getPath()) : e.insertOp(De.getPath(), Ke.i);
3344
- if (h(Se)) {
3345
- const fe = Se.d;
3344
+ if (h(Oe)) {
3345
+ const fe = Oe.d;
3346
3346
  fe != null && (Q[fe] = Ee.clone());
3347
3347
  const De = fe != null ? ft[fe] : null;
3348
3348
  let Ke = !1;
3349
- if (Se.i !== void 0 || fe != null && De) {
3349
+ if (Oe.i !== void 0 || fe != null && De) {
3350
3350
  let He;
3351
- be && (be.i !== void 0 || (He = be.d) != null && !K[He]) && (Ke = He != null ? fe != null && fe === Re[He] : n.default(be.i, Se.i), Ke || He != null && z !== 1 && Re[He] != null || B == null && (B = {
3351
+ be && (be.i !== void 0 || (He = be.d) != null && !K[He]) && (Ke = He != null ? fe != null && fe === Re[He] : n.default(be.i, Oe.i), Ke || He != null && z !== 1 && Re[He] != null || B == null && (B = {
3352
3352
  type: i.ConflictType.DROP_COLLISION,
3353
- op1: Be(fe != null ? j[fe] : null, Ee, Se),
3353
+ op1: Be(fe != null ? j[fe] : null, Ee, Oe),
3354
3354
  op2: Be(He != null ? ee[He] : null, re, be)
3355
- })), Ke || (Oe ? B == null && (B = {
3355
+ })), Ke || (Se ? B == null && (B = {
3356
3356
  type: i.ConflictType.RM_UNEXPECTED_CONTENT,
3357
- op1: Be(fe != null ? j[fe] : null, Ee, Se),
3358
- op2: e.removeOp(Oe.getPath())
3359
- }) : (fe != null ? (rn[$t] = fe, he.write("d", De.p = $t++)) : he.write("i", r.default(Se.i)), Ye = !0));
3357
+ op1: Be(fe != null ? j[fe] : null, Ee, Oe),
3358
+ op2: e.removeOp(Se.getPath())
3359
+ }) : (fe != null ? (rn[$t] = fe, he.write("d", De.p = $t++)) : he.write("i", r.default(Oe.i)), Ye = !0));
3360
3360
  } else if (fe != null && !De) {
3361
3361
  const He = de[fe];
3362
- He && (Oe = He.clone());
3362
+ He && (Se = He.clone());
3363
3363
  }
3364
- fe != null ? (ae = j[fe], ue = X[fe], re = ne[fe]) : Se.i !== void 0 && (ae = ue = null, Ke || (re = null));
3364
+ fe != null ? (ae = j[fe], ue = X[fe], re = ne[fe]) : Oe.i !== void 0 && (ae = ue = null, Ke || (re = null));
3365
3365
  } else c(a(ae)) && (ae = ue = re = null);
3366
3366
  const $e = a(ae), Je = a(ue);
3367
3367
  if (c(Je)) {
3368
3368
  const fe = Je.p;
3369
- Je.r !== void 0 && (!$e || $e.r === void 0) || K[fe] ? (re = null, Oe = ue.clone()) : fe != null && (re = U[fe], z !== 1 && Re[fe] != null || ((he = Ae[fe]) || (he = Ae[fe] = s.writeCursor()), he.reset(), Oe = null));
3370
- } else !h(Se) && h(be) && (re = null);
3369
+ Je.r !== void 0 && (!$e || $e.r === void 0) || K[fe] ? (re = null, Se = ue.clone()) : fe != null && (re = U[fe], z !== 1 && Re[fe] != null || ((he = Ae[fe]) || (he = Ae[fe] = s.writeCursor()), he.reset(), Se = null));
3370
+ } else !h(Oe) && h(be) && (re = null);
3371
3371
  be = re != null ? re.getComponent() : null;
3372
- const Ie = W(Se);
3372
+ const Ie = W(Oe);
3373
3373
  if (Ie) {
3374
- const fe = w(Se);
3375
- if (Oe) B == null && (B = {
3374
+ const fe = w(Oe);
3375
+ if (Se) B == null && (B = {
3376
3376
  type: i.ConflictType.RM_UNEXPECTED_CONTENT,
3377
3377
  op1: e.editOp(Ee.getPath(), Ie, fe, !0),
3378
- op2: e.removeOp(Oe.getPath())
3378
+ op2: e.removeOp(Se.getPath())
3379
3379
  });
3380
3380
  else {
3381
3381
  const De = W(be);
@@ -3400,28 +3400,28 @@ function cg() {
3400
3400
  let Gt;
3401
3401
  for (; wt && typeof (Gt = ae.getKey()) == "number"; ) {
3402
3402
  Gt += se;
3403
- const Ot = ae.getComponent(), In = c(Ot);
3403
+ const St = ae.getComponent(), In = c(St);
3404
3404
  if (Gt > He || Gt === He && (!In || z === 0 && Ke)) break;
3405
3405
  if (In) {
3406
3406
  se--;
3407
- const on = Ot.p;
3408
- Re.includes(on), Ot.d, a(Ae[Ot.d]), c(a(Ae[Ot.d])), (Ot.r === void 0 || It && It.has(Ot)) && (on == null || !ft[on] || z !== 1 && Re.includes(on)) || Bt--;
3407
+ const on = St.p;
3408
+ Re.includes(on), St.d, a(Ae[St.d]), c(a(Ae[St.d])), (St.r === void 0 || It && It.has(St)) && (on == null || !ft[on] || z !== 1 && Re.includes(on)) || Bt--;
3409
3409
  }
3410
3410
  wt = ae.nextSibling();
3411
3411
  }
3412
3412
  De = wt && Gt === He ? ae : null;
3413
3413
  }
3414
- const St = He - se;
3415
- let jt = Rn(St);
3416
- const js = St - ze;
3414
+ const Ot = He - se;
3415
+ let jt = Rn(Ot);
3416
+ const js = Ot - ze;
3417
3417
  let Tr = null;
3418
3418
  {
3419
- let Gt, Ot;
3419
+ let Gt, St;
3420
3420
  for (; Tt && typeof (Gt = re.getKey()) == "number"; ) {
3421
- Ot = Gt - nt;
3421
+ St = Gt - nt;
3422
3422
  const In = re.getComponent(), on = h(In);
3423
- if (Ot > js) break;
3424
- if (Ot === js) {
3423
+ if (St > js) break;
3424
+ if (St === js) {
3425
3425
  if (!on) {
3426
3426
  Tr = re;
3427
3427
  break;
@@ -3443,15 +3443,15 @@ function cg() {
3443
3443
  }
3444
3444
  }
3445
3445
  const ta = js + nt + Bt + sn;
3446
- o(ta >= 0, "trying to descend to a negative index"), he.descend(ta), Ke && (De = jt = Tr = null, Ce++), ve(De, Ee, jt, Tr, he, Oe) && sn++, he.ascend();
3446
+ o(ta >= 0, "trying to descend to a negative index"), he.descend(ta), Ke && (De = jt = Tr = null, Ce++), ve(De, Ee, jt, Tr, he, Se) && sn++, he.ascend();
3447
3447
  } else {
3448
3448
  let De;
3449
3449
  for (; wt && (De = ae.getKey(), typeof De != "string" || !(De > fe || De === fe)); ) wt = ae.nextSibling();
3450
3450
  const Ke = wt && De === fe ? ae : null, He = Rn(fe);
3451
- let St;
3452
- for (; Tt && (St = re.getKey(), typeof St != "string" || !(St > fe || St === fe)); ) Tt = re.nextSibling();
3453
- const jt = Tt && St === fe ? re : null;
3454
- he.descend(fe), ve(Ke, Ee, He, jt, he, Oe), he.ascend();
3451
+ let Ot;
3452
+ for (; Tt && (Ot = re.getKey(), typeof Ot != "string" || !(Ot > fe || Ot === fe)); ) Tt = re.nextSibling();
3453
+ const jt = Tt && Ot === fe ? re : null;
3454
+ he.descend(fe), ve(Ke, Ee, He, jt, he, Se), he.ascend();
3455
3455
  }
3456
3456
  return Rn.end(), Xn && ae.ascend(), Mt && re.ascend(), Ye;
3457
3457
  })(Qe, Qe.clone(), Ge, Ge.clone(), Fe, null), B) return {
@@ -3474,7 +3474,7 @@ function cg() {
3474
3474
  ae && mt(s.readCursor(ae.get()), null, (Ee, ue) => {
3475
3475
  at[Ee] = ue.clone();
3476
3476
  });
3477
- }), (function ae(Ee, ue, re, he, Oe, Se) {
3477
+ }), (function ae(Ee, ue, re, he, Se, Oe) {
3478
3478
  const be = a(ue);
3479
3479
  if (be && c(be)) if (be.p != null) {
3480
3480
  const se = be.p;
@@ -3507,18 +3507,18 @@ function cg() {
3507
3507
  if (Fe.get(), Ht.length) {
3508
3508
  const ae = Ht.map((ue) => ue ? ue.get() : null), Ee = s.readCursor(M(Fe.get()));
3509
3509
  if (mt(Ee, Fe, (ue, re, he) => {
3510
- const Oe = ae[ue];
3511
- Oe && (he.mergeTree(Oe), ae[ue] = null);
3510
+ const Se = ae[ue];
3511
+ Se && (he.mergeTree(Se), ae[ue] = null);
3512
3512
  }), ae.find((ue) => ue)) {
3513
3513
  const ue = s.writeCursor(), re = s.writeCursor();
3514
- let he = 0, Oe = 0;
3515
- ae.forEach((Se) => {
3516
- Se != null && mt(s.readCursor(Se), null, (be) => {
3514
+ let he = 0, Se = 0;
3515
+ ae.forEach((Oe) => {
3516
+ Oe != null && mt(s.readCursor(Oe), null, (be) => {
3517
3517
  const Ye = rn[be];
3518
3518
  ue.writeMove(j[Ye].getPath(), Q[Ye].getPath(), he++);
3519
3519
  const Be = Pe[Ye];
3520
3520
  Be && Be.forEach(($e) => {
3521
- K[$e] || z !== 1 && Re[$e] != null || re.writeMove(ee[$e].getPath(), U[$e].getPath(), Oe++);
3521
+ K[$e] || z !== 1 && Re[$e] != null || re.writeMove(ee[$e].getPath(), U[$e].getPath(), Se++);
3522
3522
  });
3523
3523
  });
3524
3524
  }), B = {
@@ -3571,12 +3571,12 @@ function cg() {
3571
3571
  let B = null;
3572
3572
  for (; ; ) {
3573
3573
  const j = x(L, Y, z);
3574
- if (j.ok) return S(B, j.result);
3574
+ if (j.ok) return O(B, j.result);
3575
3575
  {
3576
3576
  const { conflict: Q } = j;
3577
3577
  I(Q) || k(Q);
3578
3578
  const [ee, U] = oe(Q, z);
3579
- L = S($(L), ee), Y = S($(Y), U), B = S(B, U);
3579
+ L = O($(L), ee), Y = O($(Y), U), B = O(B, U);
3580
3580
  }
3581
3581
  }
3582
3582
  }
@@ -3809,7 +3809,7 @@ let vi = class extends Ve {
3809
3809
  }
3810
3810
  }
3811
3811
  _pushCommandExecutionStack(t) {
3812
- return this._commandExecutionStack.push(t), We(() => Os(this._commandExecutionStack, t));
3812
+ return this._commandExecutionStack.push(t), We(() => Ss(this._commandExecutionStack, t));
3813
3813
  }
3814
3814
  _registerMultiCommand(t) {
3815
3815
  const n = this._commandRegistry.getCommand(t.id);
@@ -3949,7 +3949,7 @@ const wR = (e) => new Promise((t) => {
3949
3949
  t();
3950
3950
  });
3951
3951
  });
3952
- function Sg(e, t) {
3952
+ function Og(e, t) {
3953
3953
  let n = 0, r = e.length - 1;
3954
3954
  if (t < e[0]) return 0;
3955
3955
  if (t >= e[e.length - 1]) return e.length - 1;
@@ -3972,7 +3972,7 @@ function Sg(e, t) {
3972
3972
  }
3973
3973
  return -1;
3974
3974
  }
3975
- function SR(e, t) {
3975
+ function OR(e, t) {
3976
3976
  let n = 0, r = e.length - 1;
3977
3977
  for (; n <= r; ) {
3978
3978
  const s = Math.floor((r + n) / 2);
@@ -3987,7 +3987,7 @@ function SR(e, t) {
3987
3987
  }
3988
3988
  return -1;
3989
3989
  }
3990
- function Og(e, t) {
3990
+ function Sg(e, t) {
3991
3991
  let n = 0, r = e.length;
3992
3992
  for (; n < r; ) {
3993
3993
  const s = Math.floor((n + r) / 2);
@@ -3999,13 +3999,13 @@ function Pr(e, t, n = !1) {
3999
3999
  let r = e.length - 1;
4000
4000
  if (t < 0 || t < e[0])
4001
4001
  return 0;
4002
- if (e.length < 40 || t <= e[20] || t >= e[r - 20] ? r = Sg(e, t) : r = Og(e, t), n) {
4002
+ if (e.length < 40 || t <= e[20] || t >= e[r - 20] ? r = Og(e, t) : r = Sg(e, t), n) {
4003
4003
  const s = e[r];
4004
4004
  return e.indexOf(s);
4005
4005
  }
4006
4006
  return r;
4007
4007
  }
4008
- function OR(e) {
4008
+ function SR(e) {
4009
4009
  const t = new Blob([e], { type: "text/javascript" });
4010
4010
  return window.URL.createObjectURL(t);
4011
4011
  }
@@ -5132,23 +5132,30 @@ class ht {
5132
5132
  };
5133
5133
  }
5134
5134
  getRealRange() {
5135
- const t = Object.keys(this._matrix), n = t.length > 0 ? Number(t[0]) : 0, r = t.length > 0 ? Number(t[t.length - 1]) : 0;
5136
- let s = 0, i = 0;
5137
- for (const o of t) {
5138
- const a = this.getRow(Number(o));
5139
- if (a) {
5140
- const l = Object.keys(a);
5141
- if (l.length > 0) {
5142
- const u = Number(l[0]), c = Number(l[l.length - 1]);
5143
- (s === 0 || u < s) && (s = u), c > i && (i = c);
5135
+ const t = Object.keys(this._matrix), n = t.length, r = n > 0 ? Number(t[0]) : 0, s = n > 0 ? Number(t[n - 1]) : 0;
5136
+ let i = -1 / 0, o = 0;
5137
+ for (const a of t) {
5138
+ const l = this.getRow(Number(a));
5139
+ if (l) {
5140
+ const u = Object.keys(l);
5141
+ if (u.length > 0) {
5142
+ const c = Number(u[0]), h = Number(u[u.length - 1]);
5143
+ (i === -1 / 0 || c < i) && (i = c), h > o && (o = h);
5144
5144
  }
5145
5145
  }
5146
5146
  }
5147
5147
  return {
5148
- startRow: n,
5149
- endRow: r,
5150
- startColumn: s,
5151
- endColumn: i
5148
+ startRow: r,
5149
+ endRow: s,
5150
+ startColumn: i,
5151
+ endColumn: o
5152
+ };
5153
+ }
5154
+ getRealRowRange() {
5155
+ const t = Object.keys(this._matrix), n = t.length, r = n > 0 ? Number(t[0]) : 0, s = n > 0 ? Number(t[n - 1]) : 0;
5156
+ return {
5157
+ startRow: r,
5158
+ endRow: s
5152
5159
  };
5153
5160
  }
5154
5161
  toNativeArray() {
@@ -5557,18 +5564,18 @@ function qg() {
5557
5564
  e.exports = r();
5558
5565
  })(Xg, (function() {
5559
5566
  var n = 1e3, r = 6e4, s = 36e5, i = "millisecond", o = "second", a = "minute", l = "hour", u = "day", c = "week", h = "month", d = "quarter", f = "year", g = "date", _ = "Invalid Date", R = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, H = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
5560
- var A = ["th", "st", "nd", "rd"], O = T % 100;
5561
- return "[" + T + (A[(O - 20) % 10] || A[O] || A[0]) + "]";
5562
- } }, P = function(T, A, O) {
5567
+ var A = ["th", "st", "nd", "rd"], S = T % 100;
5568
+ return "[" + T + (A[(S - 20) % 10] || A[S] || A[0]) + "]";
5569
+ } }, P = function(T, A, S) {
5563
5570
  var N = String(T);
5564
- return !N || N.length >= A ? T : "" + Array(A + 1 - N.length).join(O) + T;
5571
+ return !N || N.length >= A ? T : "" + Array(A + 1 - N.length).join(S) + T;
5565
5572
  }, W = { s: P, z: function(T) {
5566
- var A = -T.utcOffset(), O = Math.abs(A), N = Math.floor(O / 60), M = O % 60;
5573
+ var A = -T.utcOffset(), S = Math.abs(A), N = Math.floor(S / 60), M = S % 60;
5567
5574
  return (A <= 0 ? "+" : "-") + P(N, 2, "0") + ":" + P(M, 2, "0");
5568
- }, m: function T(A, O) {
5569
- if (A.date() < O.date()) return -T(O, A);
5570
- var N = 12 * (O.year() - A.year()) + (O.month() - A.month()), M = A.clone().add(N, h), x = O - M < 0, k = A.clone().add(N + (x ? -1 : 1), h);
5571
- return +(-(N + (O - M) / (x ? M - k : k - M)) || 0);
5575
+ }, m: function T(A, S) {
5576
+ if (A.date() < S.date()) return -T(S, A);
5577
+ var N = 12 * (S.year() - A.year()) + (S.month() - A.month()), M = A.clone().add(N, h), x = S - M < 0, k = A.clone().add(N + (x ? -1 : 1), h);
5578
+ return +(-(N + (S - M) / (x ? M - k : k - M)) || 0);
5572
5579
  }, a: function(T) {
5573
5580
  return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
5574
5581
  }, p: function(T) {
@@ -5579,12 +5586,12 @@ function qg() {
5579
5586
  C[w] = H;
5580
5587
  var v = "$isDayjsObject", y = function(T) {
5581
5588
  return T instanceof D || !(!T || !T[v]);
5582
- }, F = function T(A, O, N) {
5589
+ }, F = function T(A, S, N) {
5583
5590
  var M;
5584
5591
  if (!A) return w;
5585
5592
  if (typeof A == "string") {
5586
5593
  var x = A.toLowerCase();
5587
- C[x] && (M = x), O && (C[x] = O, M = x);
5594
+ C[x] && (M = x), S && (C[x] = S, M = x);
5588
5595
  var k = A.split("-");
5589
5596
  if (!M && k.length > 1) return T(k[0]);
5590
5597
  } else {
@@ -5594,18 +5601,18 @@ function qg() {
5594
5601
  return !N && M && (w = M), M || !N && w;
5595
5602
  }, $ = function(T, A) {
5596
5603
  if (y(T)) return T.clone();
5597
- var O = typeof A == "object" ? A : {};
5598
- return O.date = T, O.args = arguments, new D(O);
5604
+ var S = typeof A == "object" ? A : {};
5605
+ return S.date = T, S.args = arguments, new D(S);
5599
5606
  }, m = W;
5600
5607
  m.l = F, m.i = y, m.w = function(T, A) {
5601
5608
  return $(T, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
5602
5609
  };
5603
5610
  var D = (function() {
5604
- function T(O) {
5605
- this.$L = F(O.locale, null, !0), this.parse(O), this.$x = this.$x || O.x || {}, this[v] = !0;
5611
+ function T(S) {
5612
+ this.$L = F(S.locale, null, !0), this.parse(S), this.$x = this.$x || S.x || {}, this[v] = !0;
5606
5613
  }
5607
5614
  var A = T.prototype;
5608
- return A.parse = function(O) {
5615
+ return A.parse = function(S) {
5609
5616
  this.$d = (function(N) {
5610
5617
  var M = N.date, x = N.utc;
5611
5618
  if (M === null) return /* @__PURE__ */ new Date(NaN);
@@ -5619,29 +5626,29 @@ function qg() {
5619
5626
  }
5620
5627
  }
5621
5628
  return new Date(M);
5622
- })(O), this.init();
5629
+ })(S), this.init();
5623
5630
  }, A.init = function() {
5624
- var O = this.$d;
5625
- this.$y = O.getFullYear(), this.$M = O.getMonth(), this.$D = O.getDate(), this.$W = O.getDay(), this.$H = O.getHours(), this.$m = O.getMinutes(), this.$s = O.getSeconds(), this.$ms = O.getMilliseconds();
5631
+ var S = this.$d;
5632
+ this.$y = S.getFullYear(), this.$M = S.getMonth(), this.$D = S.getDate(), this.$W = S.getDay(), this.$H = S.getHours(), this.$m = S.getMinutes(), this.$s = S.getSeconds(), this.$ms = S.getMilliseconds();
5626
5633
  }, A.$utils = function() {
5627
5634
  return m;
5628
5635
  }, A.isValid = function() {
5629
5636
  return this.$d.toString() !== _;
5630
- }, A.isSame = function(O, N) {
5631
- var M = $(O);
5637
+ }, A.isSame = function(S, N) {
5638
+ var M = $(S);
5632
5639
  return this.startOf(N) <= M && M <= this.endOf(N);
5633
- }, A.isAfter = function(O, N) {
5634
- return $(O) < this.startOf(N);
5635
- }, A.isBefore = function(O, N) {
5636
- return this.endOf(N) < $(O);
5637
- }, A.$g = function(O, N, M) {
5638
- return m.u(O) ? this[N] : this.set(M, O);
5640
+ }, A.isAfter = function(S, N) {
5641
+ return $(S) < this.startOf(N);
5642
+ }, A.isBefore = function(S, N) {
5643
+ return this.endOf(N) < $(S);
5644
+ }, A.$g = function(S, N, M) {
5645
+ return m.u(S) ? this[N] : this.set(M, S);
5639
5646
  }, A.unix = function() {
5640
5647
  return Math.floor(this.valueOf() / 1e3);
5641
5648
  }, A.valueOf = function() {
5642
5649
  return this.$d.getTime();
5643
- }, A.startOf = function(O, N) {
5644
- var M = this, x = !!m.u(N) || N, k = m.p(O), q = function(B, j) {
5650
+ }, A.startOf = function(S, N) {
5651
+ var M = this, x = !!m.u(N) || N, k = m.p(S), q = function(B, j) {
5645
5652
  var Q = m.w(M.$u ? Date.UTC(M.$y, j, B) : new Date(M.$y, j, B), M);
5646
5653
  return x ? Q : Q.endOf(u);
5647
5654
  }, V = function(B, j) {
@@ -5667,38 +5674,38 @@ function qg() {
5667
5674
  default:
5668
5675
  return this.clone();
5669
5676
  }
5670
- }, A.endOf = function(O) {
5671
- return this.startOf(O, !1);
5672
- }, A.$set = function(O, N) {
5673
- var M, x = m.p(O), k = "set" + (this.$u ? "UTC" : ""), q = (M = {}, M[u] = k + "Date", M[g] = k + "Date", M[h] = k + "Month", M[f] = k + "FullYear", M[l] = k + "Hours", M[a] = k + "Minutes", M[o] = k + "Seconds", M[i] = k + "Milliseconds", M)[x], V = x === u ? this.$D + (N - this.$W) : N;
5677
+ }, A.endOf = function(S) {
5678
+ return this.startOf(S, !1);
5679
+ }, A.$set = function(S, N) {
5680
+ var M, x = m.p(S), k = "set" + (this.$u ? "UTC" : ""), q = (M = {}, M[u] = k + "Date", M[g] = k + "Date", M[h] = k + "Month", M[f] = k + "FullYear", M[l] = k + "Hours", M[a] = k + "Minutes", M[o] = k + "Seconds", M[i] = k + "Milliseconds", M)[x], V = x === u ? this.$D + (N - this.$W) : N;
5674
5681
  if (x === h || x === f) {
5675
5682
  var oe = this.clone().set(g, 1);
5676
5683
  oe.$d[q](V), oe.init(), this.$d = oe.set(g, Math.min(this.$D, oe.daysInMonth())).$d;
5677
5684
  } else q && this.$d[q](V);
5678
5685
  return this.init(), this;
5679
- }, A.set = function(O, N) {
5680
- return this.clone().$set(O, N);
5681
- }, A.get = function(O) {
5682
- return this[m.p(O)]();
5683
- }, A.add = function(O, N) {
5686
+ }, A.set = function(S, N) {
5687
+ return this.clone().$set(S, N);
5688
+ }, A.get = function(S) {
5689
+ return this[m.p(S)]();
5690
+ }, A.add = function(S, N) {
5684
5691
  var M, x = this;
5685
- O = Number(O);
5692
+ S = Number(S);
5686
5693
  var k = m.p(N), q = function(le) {
5687
5694
  var I = $(x);
5688
- return m.w(I.date(I.date() + Math.round(le * O)), x);
5695
+ return m.w(I.date(I.date() + Math.round(le * S)), x);
5689
5696
  };
5690
- if (k === h) return this.set(h, this.$M + O);
5691
- if (k === f) return this.set(f, this.$y + O);
5697
+ if (k === h) return this.set(h, this.$M + S);
5698
+ if (k === f) return this.set(f, this.$y + S);
5692
5699
  if (k === u) return q(1);
5693
5700
  if (k === c) return q(7);
5694
- var V = (M = {}, M[a] = r, M[l] = s, M[o] = n, M)[k] || 1, oe = this.$d.getTime() + O * V;
5701
+ var V = (M = {}, M[a] = r, M[l] = s, M[o] = n, M)[k] || 1, oe = this.$d.getTime() + S * V;
5695
5702
  return m.w(oe, this);
5696
- }, A.subtract = function(O, N) {
5697
- return this.add(-1 * O, N);
5698
- }, A.format = function(O) {
5703
+ }, A.subtract = function(S, N) {
5704
+ return this.add(-1 * S, N);
5705
+ }, A.format = function(S) {
5699
5706
  var N = this, M = this.$locale();
5700
5707
  if (!this.isValid()) return M.invalidDate || _;
5701
- var x = O || "YYYY-MM-DDTHH:mm:ssZ", k = m.z(this), q = this.$H, V = this.$m, oe = this.$M, le = M.weekdays, I = M.months, L = M.meridiem, Y = function(j, Q, ee, U) {
5708
+ var x = S || "YYYY-MM-DDTHH:mm:ssZ", k = m.z(this), q = this.$H, V = this.$m, oe = this.$M, le = M.weekdays, I = M.months, L = M.meridiem, Y = function(j, Q, ee, U) {
5702
5709
  return j && (j[Q] || j(N, x)) || ee[Q].slice(0, U);
5703
5710
  }, z = function(j) {
5704
5711
  return m.s(q % 12 || 12, j, "0");
@@ -5763,8 +5770,8 @@ function qg() {
5763
5770
  }));
5764
5771
  }, A.utcOffset = function() {
5765
5772
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5766
- }, A.diff = function(O, N, M) {
5767
- var x, k = this, q = m.p(N), V = $(O), oe = (V.utcOffset() - this.utcOffset()) * r, le = this - V, I = function() {
5773
+ }, A.diff = function(S, N, M) {
5774
+ var x, k = this, q = m.p(N), V = $(S), oe = (V.utcOffset() - this.utcOffset()) * r, le = this - V, I = function() {
5768
5775
  return m.m(k, V);
5769
5776
  };
5770
5777
  switch (q) {
@@ -5800,9 +5807,9 @@ function qg() {
5800
5807
  return this.endOf(h).$D;
5801
5808
  }, A.$locale = function() {
5802
5809
  return C[this.$L];
5803
- }, A.locale = function(O, N) {
5804
- if (!O) return this.$L;
5805
- var M = this.clone(), x = F(O, N, !0);
5810
+ }, A.locale = function(S, N) {
5811
+ if (!S) return this.$L;
5812
+ var M = this.clone(), x = F(S, N, !0);
5806
5813
  return x && (M.$L = x), M;
5807
5814
  }, A.clone = function() {
5808
5815
  return m.w(this.$d, this);
@@ -5815,9 +5822,9 @@ function qg() {
5815
5822
  }, A.toString = function() {
5816
5823
  return this.$d.toUTCString();
5817
5824
  }, T;
5818
- })(), S = D.prototype;
5819
- return $.prototype = S, [["$ms", i], ["$s", o], ["$m", a], ["$H", l], ["$W", u], ["$M", h], ["$y", f], ["$D", g]].forEach((function(T) {
5820
- S[T[1]] = function(A) {
5825
+ })(), O = D.prototype;
5826
+ return $.prototype = O, [["$ms", i], ["$s", o], ["$m", a], ["$H", l], ["$W", u], ["$M", h], ["$y", f], ["$D", g]].forEach((function(T) {
5827
+ O[T[1]] = function(A) {
5821
5828
  return this.$g(A, T[0], T[1]);
5822
5829
  };
5823
5830
  })), $.extend = function(T, A) {
@@ -5944,21 +5951,21 @@ function r_() {
5944
5951
  var b, H;
5945
5952
  b = R, H = l && l.formats;
5946
5953
  for (var P = (R = b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function($, m, D) {
5947
- var S = D && D.toUpperCase();
5948
- return m || H[D] || n[D] || H[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(T, A, O) {
5949
- return A || O.slice(1);
5954
+ var O = D && D.toUpperCase();
5955
+ return m || H[D] || n[D] || H[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(T, A, S) {
5956
+ return A || S.slice(1);
5950
5957
  }));
5951
5958
  }))).match(r), W = P.length, w = 0; w < W; w += 1) {
5952
5959
  var C = P[w], v = g[C], y = v && v[0], F = v && v[1];
5953
5960
  P[w] = F ? { regex: y, parser: F } : C.replace(/^\[|\]$/g, "");
5954
5961
  }
5955
5962
  return function($) {
5956
- for (var m = {}, D = 0, S = 0; D < W; D += 1) {
5963
+ for (var m = {}, D = 0, O = 0; D < W; D += 1) {
5957
5964
  var T = P[D];
5958
- if (typeof T == "string") S += T.length;
5965
+ if (typeof T == "string") O += T.length;
5959
5966
  else {
5960
- var A = T.regex, O = T.parser, N = $.slice(S), M = A.exec(N)[0];
5961
- O.call(m, M), $ = $.replace(M, "");
5967
+ var A = T.regex, S = T.parser, N = $.slice(O), M = A.exec(N)[0];
5968
+ S.call(m, M), $ = $.replace(M, "");
5962
5969
  }
5963
5970
  }
5964
5971
  return (function(x) {
@@ -5978,8 +5985,8 @@ function r_() {
5978
5985
  this.$u = v;
5979
5986
  var F = y[1];
5980
5987
  if (typeof F == "string") {
5981
- var $ = y[2] === !0, m = y[3] === !0, D = $ || m, S = y[2];
5982
- m && (S = y[2]), l = this.$locale(), !$ && S && (l = H.Ls[S]), this.$d = (function(N, M, x, k) {
5988
+ var $ = y[2] === !0, m = y[3] === !0, D = $ || m, O = y[2];
5989
+ m && (O = y[2]), l = this.$locale(), !$ && O && (l = H.Ls[O]), this.$d = (function(N, M, x, k) {
5983
5990
  try {
5984
5991
  if (["x", "X"].indexOf(M) > -1) return new Date((M === "X" ? 1e3 : 1) * N);
5985
5992
  var q = _(M)(N), V = q.year, oe = q.month, le = q.day, I = q.hours, L = q.minutes, Y = q.seconds, z = q.milliseconds, B = q.zone, j = q.week, Q = /* @__PURE__ */ new Date(), ee = le || (V || oe ? 1 : Q.getDate()), U = V || Q.getFullYear(), G = 0;
@@ -5989,12 +5996,12 @@ function r_() {
5989
5996
  } catch {
5990
5997
  return /* @__PURE__ */ new Date("");
5991
5998
  }
5992
- })(C, F, v, H), this.init(), S && S !== !0 && (this.$L = this.locale(S).$L), D && C != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
5999
+ })(C, F, v, H), this.init(), O && O !== !0 && (this.$L = this.locale(O).$L), D && C != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
5993
6000
  } else if (F instanceof Array) for (var T = F.length, A = 1; A <= T; A += 1) {
5994
6001
  y[1] = F[A - 1];
5995
- var O = H.apply(this, y);
5996
- if (O.isValid()) {
5997
- this.$d = O.$d, this.$L = O.$L, this.init();
6002
+ var S = H.apply(this, y);
6003
+ if (S.isValid()) {
6004
+ this.$d = S.$d, this.$L = S.$L, this.init();
5998
6005
  break;
5999
6006
  }
6000
6007
  A === T && (this.$d = /* @__PURE__ */ new Date(""));
@@ -6209,7 +6216,7 @@ function C_() {
6209
6216
  var R_ = C_();
6210
6217
  const I_ = /* @__PURE__ */ Rt(R_);
6211
6218
  var as = { exports: {} }, w_ = as.exports, Ga;
6212
- function S_() {
6219
+ function O_() {
6213
6220
  return Ga || (Ga = 1, (function(e, t) {
6214
6221
  (function(n, r) {
6215
6222
  e.exports = r();
@@ -6233,8 +6240,8 @@ function S_() {
6233
6240
  }));
6234
6241
  })(as)), as.exports;
6235
6242
  }
6236
- var O_ = S_();
6237
- const v_ = /* @__PURE__ */ Rt(O_);
6243
+ var S_ = O_();
6244
+ const v_ = /* @__PURE__ */ Rt(S_);
6238
6245
  var ls = { exports: {} }, b_ = ls.exports, Ka;
6239
6246
  function A_() {
6240
6247
  return Ka || (Ka = 1, (function(e, t) {
@@ -6400,7 +6407,7 @@ class gs {
6400
6407
  }
6401
6408
  onShift(t) {
6402
6409
  if (this._onShiftListeners.indexOf(t) === -1)
6403
- return this._onShiftListeners.push(t), We(() => Os(this._onShiftListeners, t));
6410
+ return this._onShiftListeners.push(t), We(() => Ss(this._onShiftListeners, t));
6404
6411
  throw new Error("[LRUMap]: the listener has been registered!");
6405
6412
  }
6406
6413
  _initialize(t, n) {
@@ -6498,7 +6505,7 @@ class Br {
6498
6505
  return this.getValueType(t) === "[object Number]";
6499
6506
  }
6500
6507
  }
6501
- const ar = 2, lr = 2 ** 2, us = 2 ** 3, ur = 2 ** 4, cr = 2 ** 5, hr = 2 ** 6, yi = 2 ** 7, Ni = 2 ** 8, Ti = 2 ** 9, k_ = 0, P_ = 2958466, F_ = -694324, $_ = 35830291, H_ = -1, qa = 1, Un = 6, _o = "general", po = "hash", kn = "zero", Eo = "qmark", Co = "slash", wr = "group", _s = "scale", Ro = "comma", Io = "break", Ls = "text", wo = "plus", So = "minus", ps = "point", Oo = "space", vo = "percent", Ds = "digit", bo = "calendar", Sr = "error", Ao = "datetime", yo = "duration", No = "condition", To = "dbnum", Mo = "natnum", xo = "locale", Lo = "color", gu = "modifier", Do = "ampm", Uo = "escaped", ko = "string", Po = "skip", Fo = "exp", $o = "fill", Ho = "paren", Us = "char", B_ = [
6508
+ const ar = 2, lr = 2 ** 2, us = 2 ** 3, ur = 2 ** 4, cr = 2 ** 5, hr = 2 ** 6, yi = 2 ** 7, Ni = 2 ** 8, Ti = 2 ** 9, k_ = 0, P_ = 2958466, F_ = -694324, $_ = 35830291, H_ = -1, qa = 1, Un = 6, _o = "general", po = "hash", kn = "zero", Eo = "qmark", Co = "slash", wr = "group", _s = "scale", Ro = "comma", Io = "break", Ls = "text", wo = "plus", Oo = "minus", ps = "point", So = "space", vo = "percent", Ds = "digit", bo = "calendar", Or = "error", Ao = "datetime", yo = "duration", No = "condition", To = "dbnum", Mo = "natnum", xo = "locale", Lo = "color", gu = "modifier", Do = "ampm", Uo = "escaped", ko = "string", Po = "skip", Fo = "exp", $o = "fill", Ho = "paren", Us = "char", B_ = [
6502
6509
  "#000",
6503
6510
  "#FFF",
6504
6511
  "#F00",
@@ -7535,7 +7542,7 @@ function wu(e, t = 2, n = 2) {
7535
7542
  return d;
7536
7543
  }
7537
7544
  const ut = Math.floor;
7538
- function Su(e, t = !0) {
7545
+ function Ou(e, t = !0) {
7539
7546
  if (t && e >= 0) {
7540
7547
  if (e === 0)
7541
7548
  return [1900, 1, 0];
@@ -7555,7 +7562,7 @@ function Su(e, t = !0) {
7555
7562
  return [100 * (r - 49) + s + n | 0, a | 0, o | 0];
7556
7563
  }
7557
7564
  function z_(e) {
7558
- return Su(e + 1462);
7565
+ return Ou(e + 1462);
7559
7566
  }
7560
7567
  function V_(e) {
7561
7568
  if (e === 60)
@@ -7573,9 +7580,9 @@ function V_(e) {
7573
7580
  const o = ut((r + 28.5001) / 29.5);
7574
7581
  return o === 13 ? [30 * s + i, 12, 30] : [30 * s + i, o, r - ut(29.5001 * o - 29)];
7575
7582
  }
7576
- function Ou(e, t = 0, n = !0) {
7583
+ function Su(e, t = 0, n = !0) {
7577
7584
  const r = ut(e);
7578
- return t === Un ? V_(r) : t === H_ ? z_(r) : Su(r, n);
7585
+ return t === Un ? V_(r) : t === H_ ? z_(r) : Ou(r, n);
7579
7586
  }
7580
7587
  const jr = Math.floor, ri = 86400;
7581
7588
  function Vo(e, t) {
@@ -7607,7 +7614,7 @@ function G_(e, t) {
7607
7614
  const r = ri * (e - n);
7608
7615
  let s = jr(r);
7609
7616
  r - s > 0.9999 && (s += 1, s === ri && (s = 0, n += 1));
7610
- const i = s < 0 ? ri + s : s, [o, a, l] = Ou(e, 0, t && t.leap1900), u = jr(i / 60 / 60) % 60, c = jr(i / 60) % 60, h = jr(i) % 60;
7617
+ const i = s < 0 ? ri + s : s, [o, a, l] = Su(e, 0, t && t.leap1900), u = jr(i / 60 / 60) % 60, c = jr(i / 60) % 60, h = jr(i) % 60;
7611
7618
  return [o, a, l, u, c, h];
7612
7619
  }
7613
7620
  const K_ = [
@@ -7993,7 +8000,7 @@ function dr(e) {
7993
8000
  const i = [];
7994
8001
  let o, a = !1, l = -1, u = !1, c = "", h = !1;
7995
8002
  for (; ++l < e.length && !u; ) {
7996
- const C = e[l], v = C.type || Sr;
8003
+ const C = e[l], v = C.type || Or;
7997
8004
  if (c += C.raw, v === _o)
7998
8005
  n.general = !0, je(C, t);
7999
8006
  else if (el(C, r)) {
@@ -8017,14 +8024,14 @@ function dr(e) {
8017
8024
  else if (v === wr) {
8018
8025
  if (r === "int" && (n.grouping = !0), r === "den")
8019
8026
  throw new SyntaxError("Cannot group denominator digits");
8020
- } else if (v === Oo)
8027
+ } else if (v === So)
8021
8028
  je(C, t);
8022
8029
  else if (v === Io) {
8023
8030
  u = !0;
8024
8031
  break;
8025
8032
  } else if (v === Ls)
8026
8033
  n.text = !0, je(C, t);
8027
- else if (v === wo || v === So)
8034
+ else if (v === wo || v === Oo)
8028
8035
  je(C, t);
8029
8036
  else if (v === yo) {
8030
8037
  const y = C.value.toLowerCase(), F = y[0], $ = { type: "", size: 0, date: 1, pad: y.length };
@@ -8102,7 +8109,7 @@ function dr(e) {
8102
8109
  je(C, t);
8103
8110
  else if (v === $o)
8104
8111
  je(C, t);
8105
- else if (!(v === To || v === Mo)) throw v === Sr ? new SyntaxError(`Illegal character: ${c}`) : new SyntaxError(`Unknown token ${v} in ${c}`);
8112
+ else if (!(v === To || v === Mo)) throw v === Or ? new SyntaxError(`Illegal character: ${c}`) : new SyntaxError(`Unknown token ${v} in ${c}`);
8106
8113
  o = C;
8107
8114
  }
8108
8115
  if (n.tokensUsed = l, n.pattern = c, /^((?:\[[^\]]+\])+)(;|$)/.test(n.pattern) && !/^\[(?:h+|m+|s+)\]/.test(n.pattern) && je({ type: "text" }, t), n.fractions && n.dec_fractions || n.grouping && !n.int_pattern.length || n.fractions && n.exponential || n.fractions && n.den_pattern.length * n.num_pattern.length === 0 || h && !n.fractions && !n.date || n.exponential && (n.int_pattern.length || n.frac_pattern.length) * n.man_pattern.length === 0)
@@ -8222,7 +8229,7 @@ function cn(e, t = !1) {
8222
8229
  }
8223
8230
  const Zn = 86400, ip = (e, t, n) => n ? e < F_ || t >= $_ : e < k_ || t >= P_;
8224
8231
  function rl(e, t, n, r) {
8225
- var A, O;
8232
+ var A, S;
8226
8233
  let s = "", i = "", o = "", a = "", l = "", u = "", c = 0, h = 0;
8227
8234
  if (typeof e == "bigint") {
8228
8235
  if (e <= Number.MAX_SAFE_INTEGER && e >= Number.MIN_SAFE_INTEGER)
@@ -8242,7 +8249,7 @@ function rl(e, t, n, r) {
8242
8249
  const N = Math.abs(Et(e, t.fractions ? 1 : t.frac_max));
8243
8250
  u += N < 1 ? "" : Math.floor(N);
8244
8251
  }
8245
- const C = (A = n.grouping[0]) != null ? A : 3, v = (O = n.grouping[1]) != null ? O : C;
8252
+ const C = (A = n.grouping[0]) != null ? A : 3, v = (S = n.grouping[1]) != null ? S : C;
8246
8253
  t.dec_fractions && (l = String(Et(e, t.frac_max)).split(".")[1] || "");
8247
8254
  const y = !t.error && (t.num_p.includes("0") || t.den_p.includes("0"));
8248
8255
  let F = y;
@@ -8267,7 +8274,7 @@ function rl(e, t, n, r) {
8267
8274
  (M === Ti && W > 0.9995 || M === Ni && W > 0.995 || M === yi && W > 0.95 || !M && W >= 0.5) && (d++, W = 0);
8268
8275
  }
8269
8276
  if (h || t.date_system) {
8270
- const M = Ou(e, t.date_system, n.leap1900);
8277
+ const M = Su(e, t.date_system, n.leap1900);
8271
8278
  f = M[0], g = M[1], _ = M[2];
8272
8279
  }
8273
8280
  if (d) {
@@ -8293,7 +8300,7 @@ function rl(e, t, n, r) {
8293
8300
  m.push(N[V + k] || cn(x[V], n.nbsp));
8294
8301
  return q;
8295
8302
  };
8296
- let S = !1;
8303
+ let O = !1;
8297
8304
  const T = { int: 0, frac: 0, man: 0, num: 0, den: 0 };
8298
8305
  for (let N = 0, M = t.tokens.length; N < M; N++) {
8299
8306
  const x = t.tokens[N], k = x.type, q = x.num ? x.num.length : 0;
@@ -8352,7 +8359,7 @@ function rl(e, t, n, r) {
8352
8359
  let le = a[oe + V];
8353
8360
  if (!le) {
8354
8361
  const I = x.num[oe];
8355
- "123456789".includes(I) || S && I === "0" ? (S = !0, le = n.nbsp ? " " : " ") : !S && oe === q - 1 && I === "0" && !a ? le = "1" : le = cn(I, n.nbsp);
8362
+ "123456789".includes(I) || O && I === "0" ? (O = !0, le = n.nbsp ? " " : " ") : !O && oe === q - 1 && I === "0" && !a ? le = "1" : le = cn(I, n.nbsp);
8356
8363
  }
8357
8364
  m.push(le);
8358
8365
  }
@@ -8537,13 +8544,13 @@ const fp = [
8537
8544
  [Io, /^;/, 0],
8538
8545
  [Ls, /^@/, 0],
8539
8546
  [wo, /^\+/, 0],
8540
- [So, /^-/, 0],
8547
+ [Oo, /^-/, 0],
8541
8548
  [ps, /^\./, 0],
8542
- [Oo, /^ /, 0],
8549
+ [So, /^ /, 0],
8543
8550
  [vo, /^%/, 0],
8544
8551
  [Ds, /^[1-9]/, 0],
8545
8552
  [bo, /^(?:B[12])/i, 0],
8546
- [Sr, /^B$/, 0],
8553
+ [Or, /^B$/, 0],
8547
8554
  // pattern must not end in a "B"
8548
8555
  [Ao, /^(?:[hH]+|[mM]+|[sS]+|[yY]+|[bB]+|[dD]+|[gG]+|[aA]{3,}|e+)/, 0],
8549
8556
  [yo, /^(?:\[(h+|m+|s+)\])/i, 1],
@@ -8562,7 +8569,7 @@ const fp = [
8562
8569
  [Fo, /^[Ee]([+-])/, 1],
8563
8570
  [$o, /^\*(\\.|.)/, 1],
8564
8571
  [Ho, /^[()]/, 0],
8565
- [Sr, /^[EÈÉÊËèéêëĒēĔĕĖėĘęĚěȄȅȆȇȨȩNnÑñŃńŅņŇňǸǹ["*/\\_]/, 0],
8572
+ [Or, /^[EÈÉÊËèéêëĒēĔĕĖėĘęĚěȄȅȆȇȨȩNnÑñŃńŅņŇňǸǹ["*/\\_]/, 0],
8566
8573
  [Us, /^./, 0]
8567
8574
  ], mp = 63, gp = 35, _p = 48, pp = 57, ai = (e) => {
8568
8575
  const t = (e || "\0").charCodeAt(0);
@@ -8727,14 +8734,14 @@ function wp(e) {
8727
8734
  const t = nn(e, !1);
8728
8735
  return Du(t.partitions);
8729
8736
  }
8730
- function Sp(e) {
8737
+ function Op(e) {
8731
8738
  try {
8732
8739
  return nn(e, !0), !0;
8733
8740
  } catch {
8734
8741
  return !1;
8735
8742
  }
8736
8743
  }
8737
- function Op(e, t = {}) {
8744
+ function Sp(e, t = {}) {
8738
8745
  const n = nn(e, !1);
8739
8746
  return n.info || (n.info = hp(n.partitions, t == null ? void 0 : t.currency)), n.info;
8740
8747
  }
@@ -8754,7 +8761,7 @@ const An = Object.freeze({
8754
8761
  DBNUM: To,
8755
8762
  DIGIT: Ds,
8756
8763
  DURATION: yo,
8757
- ERROR: Sr,
8764
+ ERROR: Or,
8758
8765
  ESCAPED: Uo,
8759
8766
  EXP: Fo,
8760
8767
  FILL: $o,
@@ -8762,7 +8769,7 @@ const An = Object.freeze({
8762
8769
  GROUP: wr,
8763
8770
  HASH: po,
8764
8771
  LOCALE: xo,
8765
- MINUS: So,
8772
+ MINUS: Oo,
8766
8773
  MODIFIER: gu,
8767
8774
  NATNUM: Mo,
8768
8775
  PAREN: Ho,
@@ -8773,7 +8780,7 @@ const An = Object.freeze({
8773
8780
  SCALE: _s,
8774
8781
  SKIP: Po,
8775
8782
  SLASH: Co,
8776
- SPACE: Oo,
8783
+ SPACE: So,
8777
8784
  STRING: ko,
8778
8785
  TEXT: Ls,
8779
8786
  ZERO: kn
@@ -8786,12 +8793,12 @@ const An = Object.freeze({
8786
8793
  format: Uu,
8787
8794
  formatColor: Cp,
8788
8795
  getFormatDateInfo: vp,
8789
- getFormatInfo: Op,
8796
+ getFormatInfo: Sp,
8790
8797
  getLocale: Kn,
8791
8798
  isDateFormat: Rp,
8792
8799
  isPercentFormat: Ip,
8793
8800
  isTextFormat: wp,
8794
- isValidFormat: Sp,
8801
+ isValidFormat: Op,
8795
8802
  parseBool: yu,
8796
8803
  parseDate: Ko,
8797
8804
  parseLocale: Bo,
@@ -9414,7 +9421,7 @@ const Cr = class Cr {
9414
9421
  getFontWeight() {
9415
9422
  var n, r;
9416
9423
  const { p: t } = (n = this.getValue()) != null ? n : {};
9417
- return t && Array.isArray((r = t.body) == null ? void 0 : r.textRuns) && t.body.textRuns.length > 0 ? Yr("bl", t.body) === ie.TRUE ? Si.BOLD : Si.NORMAL : this._getFontWeights()[0][0];
9424
+ return t && Array.isArray((r = t.body) == null ? void 0 : r.textRuns) && t.body.textRuns.length > 0 ? Yr("bl", t.body) === ie.TRUE ? Oi.BOLD : Oi.NORMAL : this._getFontWeights()[0][0];
9418
9425
  }
9419
9426
  /**
9420
9427
  * Returns the font weights of the cells in the range.
@@ -9623,7 +9630,7 @@ p(Cr, "transformRange", (t, n) => {
9623
9630
  endRow: Math.min(t.endRow, s)
9624
9631
  };
9625
9632
  });
9626
- let Or = Cr;
9633
+ let Sr = Cr;
9627
9634
  function ku(e, t, n = 0, r = e.length - 1, s = Lp) {
9628
9635
  for (; r > n; ) {
9629
9636
  if (r - n > 600) {
@@ -9750,7 +9757,7 @@ class Di {
9750
9757
  const i = r - n + 1;
9751
9758
  let o = this._maxEntries, a;
9752
9759
  if (i <= o)
9753
- return a = yn(t.slice(n, r + 1)), Sn(a, this.toBBox), a;
9760
+ return a = yn(t.slice(n, r + 1)), On(a, this.toBBox), a;
9754
9761
  s || (s = Math.ceil(Math.log(i) / Math.log(o)), o = Math.ceil(i / Math.pow(o, s - 1))), a = yn([]), a.leaf = !1, a.height = s;
9755
9762
  const l = Math.ceil(i / o), u = l * Math.ceil(Math.sqrt(o));
9756
9763
  ol(t, n, r, u, this.compareMinX);
@@ -9762,7 +9769,7 @@ class Di {
9762
9769
  a.children.push(this._build(t, d, f, s - 1));
9763
9770
  }
9764
9771
  }
9765
- return Sn(a, this.toBBox), a;
9772
+ return On(a, this.toBBox), a;
9766
9773
  }
9767
9774
  _chooseSubtree(t, n, r, s) {
9768
9775
  for (; s.push(n), !(n.leaf || s.length - 1 === r); ) {
@@ -9786,10 +9793,10 @@ class Di {
9786
9793
  const r = t[n], s = r.children.length, i = this._minEntries;
9787
9794
  this._chooseSplitAxis(r, i, s);
9788
9795
  const o = this._chooseSplitIndex(r, i, s), a = yn(r.children.splice(o, r.children.length - o));
9789
- a.height = r.height, a.leaf = r.leaf, Sn(r, this.toBBox), Sn(a, this.toBBox), n ? t[n - 1].children.push(a) : this._splitRoot(r, a);
9796
+ a.height = r.height, a.leaf = r.leaf, On(r, this.toBBox), On(a, this.toBBox), n ? t[n - 1].children.push(a) : this._splitRoot(r, a);
9790
9797
  }
9791
9798
  _splitRoot(t, n) {
9792
- this.data = yn([t, n]), this.data.height = t.height + 1, this.data.leaf = !1, Sn(this.data, this.toBBox);
9799
+ this.data = yn([t, n]), this.data.height = t.height + 1, this.data.leaf = !1, On(this.data, this.toBBox);
9793
9800
  }
9794
9801
  _chooseSplitIndex(t, n, r) {
9795
9802
  let s, i = 1 / 0, o = 1 / 0;
@@ -9825,7 +9832,7 @@ class Di {
9825
9832
  }
9826
9833
  _condense(t) {
9827
9834
  for (let n = t.length - 1, r; n >= 0; n--)
9828
- t[n].children.length === 0 ? n > 0 ? (r = t[n - 1].children, r.splice(r.indexOf(t[n]), 1)) : this.clear() : Sn(t[n], this.toBBox);
9835
+ t[n].children.length === 0 ? n > 0 ? (r = t[n - 1].children, r.splice(r.indexOf(t[n]), 1)) : this.clear() : On(t[n], this.toBBox);
9829
9836
  }
9830
9837
  }
9831
9838
  function Dp(e, t, n) {
@@ -9834,7 +9841,7 @@ function Dp(e, t, n) {
9834
9841
  if (n(e, t[r])) return r;
9835
9842
  return -1;
9836
9843
  }
9837
- function Sn(e, t) {
9844
+ function On(e, t) {
9838
9845
  fr(e, 0, e.children.length, t, e);
9839
9846
  }
9840
9847
  function fr(e, t, n, r, s) {
@@ -10561,7 +10568,7 @@ function Vp(e) {
10561
10568
  return r;
10562
10569
  }
10563
10570
  function Gp(e, t) {
10564
- Or.foreach(t, (n, r) => {
10571
+ Sr.foreach(t, (n, r) => {
10565
10572
  e[n][r] = void 0;
10566
10573
  });
10567
10574
  }
@@ -11078,7 +11085,7 @@ const Gr = {
11078
11085
  "A.": { glyphType: me.UPPER_LETTER },
11079
11086
  "i.": { glyphFormat: "%1.", glyphType: me.LOWER_ROMAN },
11080
11087
  "I.": { glyphFormat: "%1.", glyphType: me.UPPER_LETTER }
11081
- }, On = (e) => [
11088
+ }, Sn = (e) => [
11082
11089
  ...e,
11083
11090
  ...e,
11084
11091
  ...e
@@ -11121,27 +11128,27 @@ const Gr = {
11121
11128
  })), $s = {
11122
11129
  BULLET_LIST: {
11123
11130
  listType: "BULLET_LIST",
11124
- nestingLevel: On(["●", "○", "■"])
11131
+ nestingLevel: Sn(["●", "○", "■"])
11125
11132
  },
11126
11133
  BULLET_LIST_1: {
11127
11134
  listType: "BULLET_LIST",
11128
- nestingLevel: On(["❖", "➢", "■"])
11135
+ nestingLevel: Sn(["❖", "➢", "■"])
11129
11136
  },
11130
11137
  BULLET_LIST_2: {
11131
11138
  listType: "BULLET_LIST",
11132
- nestingLevel: On(["✔", "●", "◆"])
11139
+ nestingLevel: Sn(["✔", "●", "◆"])
11133
11140
  },
11134
11141
  BULLET_LIST_3: {
11135
11142
  listType: "BULLET_LIST",
11136
- nestingLevel: On(["■", "◆", "○"])
11143
+ nestingLevel: Sn(["■", "◆", "○"])
11137
11144
  },
11138
11145
  BULLET_LIST_4: {
11139
11146
  listType: "BULLET_LIST",
11140
- nestingLevel: On(["✧", "○", "■"])
11147
+ nestingLevel: Sn(["✧", "○", "■"])
11141
11148
  },
11142
11149
  BULLET_LIST_5: {
11143
11150
  listType: "BULLET_LIST",
11144
- nestingLevel: On(["➢", "○", "◆"])
11151
+ nestingLevel: Sn(["➢", "○", "◆"])
11145
11152
  },
11146
11153
  ORDER_LIST: {
11147
11154
  listType: "ORDER_LIST",
@@ -11262,7 +11269,7 @@ const Gr = {
11262
11269
  ])
11263
11270
  };
11264
11271
  Object.assign($s, t0);
11265
- const S1 = {
11272
+ const O1 = {
11266
11273
  "1.": "ORDER_LIST",
11267
11274
  "a)": "ORDER_LIST_QUICK_2",
11268
11275
  "a.": "ORDER_LIST_QUICK_3",
@@ -11589,7 +11596,7 @@ function h0(e, t, n) {
11589
11596
  startIndex: i.startIndex - t
11590
11597
  }));
11591
11598
  }
11592
- function O1(e, t, n) {
11599
+ function S1(e, t, n) {
11593
11600
  const { sectionBreaks: r = [] } = e, s = [];
11594
11601
  for (const i of r) {
11595
11602
  const { startIndex: o } = i;
@@ -11815,10 +11822,10 @@ function I0(e, t, n, r, s = pe.COVER) {
11815
11822
  function w0(e, t, n) {
11816
11823
  return t <= 0 ? { dataStream: "" } : C0(e, t, n);
11817
11824
  }
11818
- function S0(e, t, n, r) {
11825
+ function O0(e, t, n, r) {
11819
11826
  n !== 0 && R0(e, t, n, r);
11820
11827
  }
11821
- function O0(e, t) {
11828
+ function S0(e, t) {
11822
11829
  const n = new Gn();
11823
11830
  return n.reset(), t.forEach((r) => {
11824
11831
  const s = Z.deepClone(r);
@@ -11830,7 +11837,7 @@ function O0(e, t) {
11830
11837
  }
11831
11838
  case J.INSERT: {
11832
11839
  const { body: i, len: o } = s;
11833
- S0(e, i, o, n.cursor), n.moveCursor(o);
11840
+ O0(e, i, o, n.cursor), n.moveCursor(o);
11834
11841
  break;
11835
11842
  }
11836
11843
  case J.DELETE: {
@@ -12060,7 +12067,7 @@ const Mn = class Mn {
12060
12067
  p(this, "_actions", []);
12061
12068
  }
12062
12069
  static apply(t, n) {
12063
- return O0(t, n);
12070
+ return S0(t, n);
12064
12071
  }
12065
12072
  // eslint-disable-next-line complexity
12066
12073
  static compose(t, n) {
@@ -12693,13 +12700,13 @@ function H0() {
12693
12700
  if (_l) return hi;
12694
12701
  _l = 1;
12695
12702
  var e = -1, t = 1, n = 0;
12696
- function r(m, D, S, T, A) {
12703
+ function r(m, D, O, T, A) {
12697
12704
  if (m === D)
12698
12705
  return m ? [[n, m]] : [];
12699
- if (S != null) {
12700
- var O = F(m, D, S);
12701
- if (O)
12702
- return O;
12706
+ if (O != null) {
12707
+ var S = F(m, D, O);
12708
+ if (S)
12709
+ return S;
12703
12710
  }
12704
12711
  var N = a(m, D), M = m.substring(0, N);
12705
12712
  m = m.substring(N), D = D.substring(N), N = u(m, D);
@@ -12709,18 +12716,18 @@ function H0() {
12709
12716
  return M && k.unshift([n, M]), x && k.push([n, x]), H(k, A), T && h(k), k;
12710
12717
  }
12711
12718
  function s(m, D) {
12712
- var S;
12719
+ var O;
12713
12720
  if (!m)
12714
12721
  return [[t, D]];
12715
12722
  if (!D)
12716
12723
  return [[e, m]];
12717
- var T = m.length > D.length ? m : D, A = m.length > D.length ? D : m, O = T.indexOf(A);
12718
- if (O !== -1)
12719
- return S = [
12720
- [t, T.substring(0, O)],
12724
+ var T = m.length > D.length ? m : D, A = m.length > D.length ? D : m, S = T.indexOf(A);
12725
+ if (S !== -1)
12726
+ return O = [
12727
+ [t, T.substring(0, S)],
12721
12728
  [n, A],
12722
- [t, T.substring(O + A.length)]
12723
- ], m.length > D.length && (S[0][0] = S[2][0] = e), S;
12729
+ [t, T.substring(S + A.length)]
12730
+ ], m.length > D.length && (O[0][0] = O[2][0] = e), O;
12724
12731
  if (A.length === 1)
12725
12732
  return [
12726
12733
  [e, m],
@@ -12734,42 +12741,42 @@ function H0() {
12734
12741
  return i(m, D);
12735
12742
  }
12736
12743
  function i(m, D) {
12737
- for (var S = m.length, T = D.length, A = Math.ceil((S + T) / 2), O = A, N = 2 * A, M = new Array(N), x = new Array(N), k = 0; k < N; k++)
12744
+ for (var O = m.length, T = D.length, A = Math.ceil((O + T) / 2), S = A, N = 2 * A, M = new Array(N), x = new Array(N), k = 0; k < N; k++)
12738
12745
  M[k] = -1, x[k] = -1;
12739
- M[O + 1] = 0, x[O + 1] = 0;
12740
- for (var q = S - T, V = q % 2 !== 0, oe = 0, le = 0, I = 0, L = 0, Y = 0; Y < A; Y++) {
12746
+ M[S + 1] = 0, x[S + 1] = 0;
12747
+ for (var q = O - T, V = q % 2 !== 0, oe = 0, le = 0, I = 0, L = 0, Y = 0; Y < A; Y++) {
12741
12748
  for (var z = -Y + oe; z <= Y - le; z += 2) {
12742
- var B = O + z, j;
12749
+ var B = S + z, j;
12743
12750
  z === -Y || z !== Y && M[B - 1] < M[B + 1] ? j = M[B + 1] : j = M[B - 1] + 1;
12744
- for (var Q = j - z; j < S && Q < T && m.charAt(j) === D.charAt(Q); )
12751
+ for (var Q = j - z; j < O && Q < T && m.charAt(j) === D.charAt(Q); )
12745
12752
  j++, Q++;
12746
- if (M[B] = j, j > S)
12753
+ if (M[B] = j, j > O)
12747
12754
  le += 2;
12748
12755
  else if (Q > T)
12749
12756
  oe += 2;
12750
12757
  else if (V) {
12751
- var ee = O + q - z;
12758
+ var ee = S + q - z;
12752
12759
  if (ee >= 0 && ee < N && x[ee] !== -1) {
12753
- var U = S - x[ee];
12760
+ var U = O - x[ee];
12754
12761
  if (j >= U)
12755
12762
  return o(m, D, j, Q);
12756
12763
  }
12757
12764
  }
12758
12765
  }
12759
12766
  for (var G = -Y + I; G <= Y - L; G += 2) {
12760
- var ee = O + G, U;
12767
+ var ee = S + G, U;
12761
12768
  G === -Y || G !== Y && x[ee - 1] < x[ee + 1] ? U = x[ee + 1] : U = x[ee - 1] + 1;
12762
- for (var X = U - G; U < S && X < T && m.charAt(S - U - 1) === D.charAt(T - X - 1); )
12769
+ for (var X = U - G; U < O && X < T && m.charAt(O - U - 1) === D.charAt(T - X - 1); )
12763
12770
  U++, X++;
12764
- if (x[ee] = U, U > S)
12771
+ if (x[ee] = U, U > O)
12765
12772
  L += 2;
12766
12773
  else if (X > T)
12767
12774
  I += 2;
12768
12775
  else if (!V) {
12769
- var B = O + q - G;
12776
+ var B = S + q - G;
12770
12777
  if (B >= 0 && B < N && M[B] !== -1) {
12771
- var j = M[B], Q = O + j - B;
12772
- if (U = S - U, j >= U)
12778
+ var j = M[B], Q = S + j - B;
12779
+ if (U = O - U, j >= U)
12773
12780
  return o(m, D, j, Q);
12774
12781
  }
12775
12782
  }
@@ -12780,42 +12787,42 @@ function H0() {
12780
12787
  [t, D]
12781
12788
  ];
12782
12789
  }
12783
- function o(m, D, S, T) {
12784
- var A = m.substring(0, S), O = D.substring(0, T), N = m.substring(S), M = D.substring(T), x = r(A, O), k = r(N, M);
12790
+ function o(m, D, O, T) {
12791
+ var A = m.substring(0, O), S = D.substring(0, T), N = m.substring(O), M = D.substring(T), x = r(A, S), k = r(N, M);
12785
12792
  return x.concat(k);
12786
12793
  }
12787
12794
  function a(m, D) {
12788
12795
  if (!m || !D || m.charAt(0) !== D.charAt(0))
12789
12796
  return 0;
12790
- for (var S = 0, T = Math.min(m.length, D.length), A = T, O = 0; S < A; )
12791
- m.substring(O, A) == D.substring(O, A) ? (S = A, O = S) : T = A, A = Math.floor((T - S) / 2 + S);
12797
+ for (var O = 0, T = Math.min(m.length, D.length), A = T, S = 0; O < A; )
12798
+ m.substring(S, A) == D.substring(S, A) ? (O = A, S = O) : T = A, A = Math.floor((T - O) / 2 + O);
12792
12799
  return P(m.charCodeAt(A - 1)) && A--, A;
12793
12800
  }
12794
12801
  function l(m, D) {
12795
- var S = m.length, T = D.length;
12796
- if (S == 0 || T == 0)
12802
+ var O = m.length, T = D.length;
12803
+ if (O == 0 || T == 0)
12797
12804
  return 0;
12798
- S > T ? m = m.substring(S - T) : S < T && (D = D.substring(0, S));
12799
- var A = Math.min(S, T);
12805
+ O > T ? m = m.substring(O - T) : O < T && (D = D.substring(0, O));
12806
+ var A = Math.min(O, T);
12800
12807
  if (m == D)
12801
12808
  return A;
12802
- for (var O = 0, N = 1; ; ) {
12809
+ for (var S = 0, N = 1; ; ) {
12803
12810
  var M = m.substring(A - N), x = D.indexOf(M);
12804
12811
  if (x == -1)
12805
- return O;
12806
- N += x, (x == 0 || m.substring(A - N) == D.substring(0, N)) && (O = N, N++);
12812
+ return S;
12813
+ N += x, (x == 0 || m.substring(A - N) == D.substring(0, N)) && (S = N, N++);
12807
12814
  }
12808
12815
  }
12809
12816
  function u(m, D) {
12810
12817
  if (!m || !D || m.slice(-1) !== D.slice(-1))
12811
12818
  return 0;
12812
- for (var S = 0, T = Math.min(m.length, D.length), A = T, O = 0; S < A; )
12813
- m.substring(m.length - A, m.length - O) == D.substring(D.length - A, D.length - O) ? (S = A, O = S) : T = A, A = Math.floor((T - S) / 2 + S);
12819
+ for (var O = 0, T = Math.min(m.length, D.length), A = T, S = 0; O < A; )
12820
+ m.substring(m.length - A, m.length - S) == D.substring(D.length - A, D.length - S) ? (O = A, S = O) : T = A, A = Math.floor((T - O) / 2 + O);
12814
12821
  return W(m.charCodeAt(m.length - A)) && A--, A;
12815
12822
  }
12816
12823
  function c(m, D) {
12817
- var S = m.length > D.length ? m : D, T = m.length > D.length ? D : m;
12818
- if (S.length < 4 || T.length * 2 < S.length)
12824
+ var O = m.length > D.length ? m : D, T = m.length > D.length ? D : m;
12825
+ if (O.length < 4 || T.length * 2 < O.length)
12819
12826
  return null;
12820
12827
  function A(le, I, L) {
12821
12828
  for (var Y = le.substring(L, L + Math.floor(le.length / 4)), z = -1, B = "", j, Q, ee, U; (z = I.indexOf(Y, z + 1)) !== -1; ) {
@@ -12836,47 +12843,47 @@ function H0() {
12836
12843
  B
12837
12844
  ] : null;
12838
12845
  }
12839
- var O = A(
12840
- S,
12846
+ var S = A(
12847
+ O,
12841
12848
  T,
12842
- Math.ceil(S.length / 4)
12849
+ Math.ceil(O.length / 4)
12843
12850
  ), N = A(
12844
- S,
12851
+ O,
12845
12852
  T,
12846
- Math.ceil(S.length / 2)
12853
+ Math.ceil(O.length / 2)
12847
12854
  ), M;
12848
- if (!O && !N)
12855
+ if (!S && !N)
12849
12856
  return null;
12850
- N ? O ? M = O[4].length > N[4].length ? O : N : M = N : M = O;
12857
+ N ? S ? M = S[4].length > N[4].length ? S : N : M = N : M = S;
12851
12858
  var x, k, q, V;
12852
12859
  m.length > D.length ? (x = M[0], k = M[1], q = M[2], V = M[3]) : (q = M[0], V = M[1], x = M[2], k = M[3]);
12853
12860
  var oe = M[4];
12854
12861
  return [x, k, q, V, oe];
12855
12862
  }
12856
12863
  function h(m) {
12857
- for (var D = !1, S = [], T = 0, A = null, O = 0, N = 0, M = 0, x = 0, k = 0; O < m.length; )
12858
- m[O][0] == n ? (S[T++] = O, N = x, M = k, x = 0, k = 0, A = m[O][1]) : (m[O][0] == t ? x += m[O][1].length : k += m[O][1].length, A && A.length <= Math.max(N, M) && A.length <= Math.max(x, k) && (m.splice(S[T - 1], 0, [
12864
+ for (var D = !1, O = [], T = 0, A = null, S = 0, N = 0, M = 0, x = 0, k = 0; S < m.length; )
12865
+ m[S][0] == n ? (O[T++] = S, N = x, M = k, x = 0, k = 0, A = m[S][1]) : (m[S][0] == t ? x += m[S][1].length : k += m[S][1].length, A && A.length <= Math.max(N, M) && A.length <= Math.max(x, k) && (m.splice(O[T - 1], 0, [
12859
12866
  e,
12860
12867
  A
12861
- ]), m[S[T - 1] + 1][0] = t, T--, T--, O = T > 0 ? S[T - 1] : -1, N = 0, M = 0, x = 0, k = 0, A = null, D = !0)), O++;
12862
- for (D && H(m), b(m), O = 1; O < m.length; ) {
12863
- if (m[O - 1][0] == e && m[O][0] == t) {
12864
- var q = m[O - 1][1], V = m[O][1], oe = l(q, V), le = l(V, q);
12865
- oe >= le ? (oe >= q.length / 2 || oe >= V.length / 2) && (m.splice(O, 0, [
12868
+ ]), m[O[T - 1] + 1][0] = t, T--, T--, S = T > 0 ? O[T - 1] : -1, N = 0, M = 0, x = 0, k = 0, A = null, D = !0)), S++;
12869
+ for (D && H(m), b(m), S = 1; S < m.length; ) {
12870
+ if (m[S - 1][0] == e && m[S][0] == t) {
12871
+ var q = m[S - 1][1], V = m[S][1], oe = l(q, V), le = l(V, q);
12872
+ oe >= le ? (oe >= q.length / 2 || oe >= V.length / 2) && (m.splice(S, 0, [
12866
12873
  n,
12867
12874
  V.substring(0, oe)
12868
- ]), m[O - 1][1] = q.substring(
12875
+ ]), m[S - 1][1] = q.substring(
12869
12876
  0,
12870
12877
  q.length - oe
12871
- ), m[O + 1][1] = V.substring(oe), O++) : (le >= q.length / 2 || le >= V.length / 2) && (m.splice(O, 0, [
12878
+ ), m[S + 1][1] = V.substring(oe), S++) : (le >= q.length / 2 || le >= V.length / 2) && (m.splice(S, 0, [
12872
12879
  n,
12873
12880
  q.substring(0, le)
12874
- ]), m[O - 1][0] = t, m[O - 1][1] = V.substring(
12881
+ ]), m[S - 1][0] = t, m[S - 1][1] = V.substring(
12875
12882
  0,
12876
12883
  V.length - le
12877
- ), m[O + 1][0] = e, m[O + 1][1] = q.substring(le), O++), O++;
12884
+ ), m[S + 1][0] = e, m[S + 1][1] = q.substring(le), S++), S++;
12878
12885
  }
12879
- O++;
12886
+ S++;
12880
12887
  }
12881
12888
  }
12882
12889
  var d = /[^a-zA-Z0-9]/, f = /\s/, g = /[\r\n]/, _ = /\n\r?\n$/, R = /^\r?\n\r?\n/;
@@ -12887,95 +12894,95 @@ function H0() {
12887
12894
  var L = le.charAt(le.length - 1), Y = I.charAt(0), z = L.match(d), B = Y.match(d), j = z && L.match(f), Q = B && Y.match(f), ee = j && L.match(g), U = Q && Y.match(g), G = ee && le.match(_), X = U && I.match(R);
12888
12895
  return G || X ? 5 : ee || U ? 4 : z && !j && Q ? 3 : j || Q ? 2 : z || B ? 1 : 0;
12889
12896
  }
12890
- for (var S = 1; S < m.length - 1; ) {
12891
- if (m[S - 1][0] == n && m[S + 1][0] == n) {
12892
- var T = m[S - 1][1], A = m[S][1], O = m[S + 1][1], N = u(T, A);
12897
+ for (var O = 1; O < m.length - 1; ) {
12898
+ if (m[O - 1][0] == n && m[O + 1][0] == n) {
12899
+ var T = m[O - 1][1], A = m[O][1], S = m[O + 1][1], N = u(T, A);
12893
12900
  if (N) {
12894
12901
  var M = A.substring(A.length - N);
12895
- T = T.substring(0, T.length - N), A = M + A.substring(0, A.length - N), O = M + O;
12902
+ T = T.substring(0, T.length - N), A = M + A.substring(0, A.length - N), S = M + S;
12896
12903
  }
12897
- for (var x = T, k = A, q = O, V = D(T, A) + D(A, O); A.charAt(0) === O.charAt(0); ) {
12898
- T += A.charAt(0), A = A.substring(1) + O.charAt(0), O = O.substring(1);
12899
- var oe = D(T, A) + D(A, O);
12900
- oe >= V && (V = oe, x = T, k = A, q = O);
12904
+ for (var x = T, k = A, q = S, V = D(T, A) + D(A, S); A.charAt(0) === S.charAt(0); ) {
12905
+ T += A.charAt(0), A = A.substring(1) + S.charAt(0), S = S.substring(1);
12906
+ var oe = D(T, A) + D(A, S);
12907
+ oe >= V && (V = oe, x = T, k = A, q = S);
12901
12908
  }
12902
- m[S - 1][1] != x && (x ? m[S - 1][1] = x : (m.splice(S - 1, 1), S--), m[S][1] = k, q ? m[S + 1][1] = q : (m.splice(S + 1, 1), S--));
12909
+ m[O - 1][1] != x && (x ? m[O - 1][1] = x : (m.splice(O - 1, 1), O--), m[O][1] = k, q ? m[O + 1][1] = q : (m.splice(O + 1, 1), O--));
12903
12910
  }
12904
- S++;
12911
+ O++;
12905
12912
  }
12906
12913
  }
12907
12914
  function H(m, D) {
12908
12915
  m.push([n, ""]);
12909
- for (var S = 0, T = 0, A = 0, O = "", N = "", M; S < m.length; ) {
12910
- if (S < m.length - 1 && !m[S][1]) {
12911
- m.splice(S, 1);
12916
+ for (var O = 0, T = 0, A = 0, S = "", N = "", M; O < m.length; ) {
12917
+ if (O < m.length - 1 && !m[O][1]) {
12918
+ m.splice(O, 1);
12912
12919
  continue;
12913
12920
  }
12914
- switch (m[S][0]) {
12921
+ switch (m[O][0]) {
12915
12922
  case t:
12916
- A++, N += m[S][1], S++;
12923
+ A++, N += m[O][1], O++;
12917
12924
  break;
12918
12925
  case e:
12919
- T++, O += m[S][1], S++;
12926
+ T++, S += m[O][1], O++;
12920
12927
  break;
12921
12928
  case n:
12922
- var x = S - A - T - 1;
12929
+ var x = O - A - T - 1;
12923
12930
  if (D) {
12924
12931
  if (x >= 0 && C(m[x][1])) {
12925
12932
  var k = m[x][1].slice(-1);
12926
12933
  if (m[x][1] = m[x][1].slice(
12927
12934
  0,
12928
12935
  -1
12929
- ), O = k + O, N = k + N, !m[x][1]) {
12930
- m.splice(x, 1), S--;
12936
+ ), S = k + S, N = k + N, !m[x][1]) {
12937
+ m.splice(x, 1), O--;
12931
12938
  var q = x - 1;
12932
- m[q] && m[q][0] === t && (A++, N = m[q][1] + N, q--), m[q] && m[q][0] === e && (T++, O = m[q][1] + O, q--), x = q;
12939
+ m[q] && m[q][0] === t && (A++, N = m[q][1] + N, q--), m[q] && m[q][0] === e && (T++, S = m[q][1] + S, q--), x = q;
12933
12940
  }
12934
12941
  }
12935
- if (w(m[S][1])) {
12936
- var k = m[S][1].charAt(0);
12937
- m[S][1] = m[S][1].slice(1), O += k, N += k;
12942
+ if (w(m[O][1])) {
12943
+ var k = m[O][1].charAt(0);
12944
+ m[O][1] = m[O][1].slice(1), S += k, N += k;
12938
12945
  }
12939
12946
  }
12940
- if (S < m.length - 1 && !m[S][1]) {
12941
- m.splice(S, 1);
12947
+ if (O < m.length - 1 && !m[O][1]) {
12948
+ m.splice(O, 1);
12942
12949
  break;
12943
12950
  }
12944
- if (O.length > 0 || N.length > 0) {
12945
- O.length > 0 && N.length > 0 && (M = a(N, O), M !== 0 && (x >= 0 ? m[x][1] += N.substring(
12951
+ if (S.length > 0 || N.length > 0) {
12952
+ S.length > 0 && N.length > 0 && (M = a(N, S), M !== 0 && (x >= 0 ? m[x][1] += N.substring(
12946
12953
  0,
12947
12954
  M
12948
12955
  ) : (m.splice(0, 0, [
12949
12956
  n,
12950
12957
  N.substring(0, M)
12951
- ]), S++), N = N.substring(M), O = O.substring(M)), M = u(N, O), M !== 0 && (m[S][1] = N.substring(N.length - M) + m[S][1], N = N.substring(
12958
+ ]), O++), N = N.substring(M), S = S.substring(M)), M = u(N, S), M !== 0 && (m[O][1] = N.substring(N.length - M) + m[O][1], N = N.substring(
12952
12959
  0,
12953
12960
  N.length - M
12954
- ), O = O.substring(
12961
+ ), S = S.substring(
12955
12962
  0,
12956
- O.length - M
12963
+ S.length - M
12957
12964
  )));
12958
12965
  var V = A + T;
12959
- O.length === 0 && N.length === 0 ? (m.splice(S - V, V), S = S - V) : O.length === 0 ? (m.splice(S - V, V, [t, N]), S = S - V + 1) : N.length === 0 ? (m.splice(S - V, V, [e, O]), S = S - V + 1) : (m.splice(
12960
- S - V,
12966
+ S.length === 0 && N.length === 0 ? (m.splice(O - V, V), O = O - V) : S.length === 0 ? (m.splice(O - V, V, [t, N]), O = O - V + 1) : N.length === 0 ? (m.splice(O - V, V, [e, S]), O = O - V + 1) : (m.splice(
12967
+ O - V,
12961
12968
  V,
12962
- [e, O],
12969
+ [e, S],
12963
12970
  [t, N]
12964
- ), S = S - V + 2);
12971
+ ), O = O - V + 2);
12965
12972
  }
12966
- S !== 0 && m[S - 1][0] === n ? (m[S - 1][1] += m[S][1], m.splice(S, 1)) : S++, A = 0, T = 0, O = "", N = "";
12973
+ O !== 0 && m[O - 1][0] === n ? (m[O - 1][1] += m[O][1], m.splice(O, 1)) : O++, A = 0, T = 0, S = "", N = "";
12967
12974
  break;
12968
12975
  }
12969
12976
  }
12970
12977
  m[m.length - 1][1] === "" && m.pop();
12971
12978
  var oe = !1;
12972
- for (S = 1; S < m.length - 1; )
12973
- m[S - 1][0] === n && m[S + 1][0] === n && (m[S][1].substring(
12974
- m[S][1].length - m[S - 1][1].length
12975
- ) === m[S - 1][1] ? (m[S][1] = m[S - 1][1] + m[S][1].substring(
12979
+ for (O = 1; O < m.length - 1; )
12980
+ m[O - 1][0] === n && m[O + 1][0] === n && (m[O][1].substring(
12981
+ m[O][1].length - m[O - 1][1].length
12982
+ ) === m[O - 1][1] ? (m[O][1] = m[O - 1][1] + m[O][1].substring(
12976
12983
  0,
12977
- m[S][1].length - m[S - 1][1].length
12978
- ), m[S + 1][1] = m[S - 1][1] + m[S + 1][1], m.splice(S - 1, 1), oe = !0) : m[S][1].substring(0, m[S + 1][1].length) == m[S + 1][1] && (m[S - 1][1] += m[S + 1][1], m[S][1] = m[S][1].substring(m[S + 1][1].length) + m[S + 1][1], m.splice(S + 1, 1), oe = !0)), S++;
12984
+ m[O][1].length - m[O - 1][1].length
12985
+ ), m[O + 1][1] = m[O - 1][1] + m[O + 1][1], m.splice(O - 1, 1), oe = !0) : m[O][1].substring(0, m[O + 1][1].length) == m[O + 1][1] && (m[O - 1][1] += m[O + 1][1], m[O][1] = m[O][1].substring(m[O + 1][1].length) + m[O + 1][1], m.splice(O + 1, 1), oe = !0)), O++;
12979
12986
  oe && H(m, D);
12980
12987
  }
12981
12988
  function P(m) {
@@ -12991,24 +12998,24 @@ function H0() {
12991
12998
  return P(m.charCodeAt(m.length - 1));
12992
12999
  }
12993
13000
  function v(m) {
12994
- for (var D = [], S = 0; S < m.length; S++)
12995
- m[S][1].length > 0 && D.push(m[S]);
13001
+ for (var D = [], O = 0; O < m.length; O++)
13002
+ m[O][1].length > 0 && D.push(m[O]);
12996
13003
  return D;
12997
13004
  }
12998
- function y(m, D, S, T) {
13005
+ function y(m, D, O, T) {
12999
13006
  return C(m) || w(T) ? null : v([
13000
13007
  [n, m],
13001
13008
  [e, D],
13002
- [t, S],
13009
+ [t, O],
13003
13010
  [n, T]
13004
13011
  ]);
13005
13012
  }
13006
- function F(m, D, S) {
13007
- var T = typeof S == "number" ? { index: S, length: 0 } : S.oldRange, A = typeof S == "number" ? null : S.newRange, O = m.length, N = D.length;
13013
+ function F(m, D, O) {
13014
+ var T = typeof O == "number" ? { index: O, length: 0 } : O.oldRange, A = typeof O == "number" ? null : O.newRange, S = m.length, N = D.length;
13008
13015
  if (T.length === 0 && (A === null || A.length === 0)) {
13009
13016
  var M = T.index, x = m.slice(0, M), k = m.slice(M), q = A ? A.index : null;
13010
13017
  e: {
13011
- var V = M + N - O;
13018
+ var V = M + N - S;
13012
13019
  if (q !== null && q !== V || V < 0 || V > N)
13013
13020
  break e;
13014
13021
  var oe = D.slice(0, V), le = D.slice(V);
@@ -13026,7 +13033,7 @@ function H0() {
13026
13033
  var j = M, oe = D.slice(0, j), le = D.slice(j);
13027
13034
  if (oe !== x)
13028
13035
  break e;
13029
- var Q = Math.min(O - j, N - j), ee = k.slice(k.length - Q), U = le.slice(le.length - Q);
13036
+ var Q = Math.min(S - j, N - j), ee = k.slice(k.length - Q), U = le.slice(le.length - Q);
13030
13037
  if (ee !== U)
13031
13038
  break e;
13032
13039
  var z = k.slice(0, k.length - Q), B = le.slice(0, le.length - Q);
@@ -13041,13 +13048,13 @@ function H0() {
13041
13048
  var Y = D.slice(0, I), U = D.slice(N - Q);
13042
13049
  if (L !== Y || ee !== U)
13043
13050
  break e;
13044
- var z = m.slice(I, O - Q), B = D.slice(I, N - Q);
13051
+ var z = m.slice(I, S - Q), B = D.slice(I, N - Q);
13045
13052
  return y(L, z, B, ee);
13046
13053
  }
13047
13054
  return null;
13048
13055
  }
13049
- function $(m, D, S, T) {
13050
- return r(m, D, S, T, !0);
13056
+ function $(m, D, O, T) {
13057
+ return r(m, D, O, T, !0);
13051
13058
  }
13052
13059
  return $.INSERT = t, $.DELETE = e, $.EQUAL = n, hi = $, hi;
13053
13060
  }
@@ -13092,8 +13099,8 @@ function W0(e) {
13092
13099
  if (!h || !o)
13093
13100
  return !1;
13094
13101
  const { startOffset: d, endOffset: f } = h, g = (P = o.customRanges) != null ? P : [], _ = (C, v, y) => {
13095
- var S, T, A, O;
13096
- const F = tc(C, v, g, r), $ = Math.min((T = (S = F[0]) == null ? void 0 : S.startIndex) != null ? T : 1 / 0, C), m = Math.max((O = (A = F[F.length - 1]) == null ? void 0 : A.endIndex) != null ? O : -1 / 0, v), D = {
13102
+ var O, T, A, S;
13103
+ const F = tc(C, v, g, r), $ = Math.min((T = (O = F[0]) == null ? void 0 : O.startIndex) != null ? T : 1 / 0, C), m = Math.max((S = (A = F[F.length - 1]) == null ? void 0 : A.endIndex) != null ? S : -1 / 0, v), D = {
13097
13104
  rangeId: y ? `${n}$${y}` : n,
13098
13105
  rangeType: r,
13099
13106
  startIndex: 0,
@@ -15679,7 +15686,7 @@ class _E extends Ve {
15679
15686
  }
15680
15687
  }
15681
15688
  var oc = /* @__PURE__ */ ((e) => (e.URL = "URL", e.UUID = "UUID", e.BASE64 = "BASE64", e))(oc || {}), pE = /* @__PURE__ */ ((e) => (e.SUCCUSS = "0", e.ERROR_EXCEED_SIZE = "1", e.ERROR_IMAGE_TYPE = "2", e.ERROR_UPLOAD_COUNT_LIMIT = "3", e.ERROR_IMAGE = "4", e))(pE || {});
15682
- const El = dt("core.image-io.service"), EE = "0.12.0", CE = {
15689
+ const El = dt("core.image-io.service"), EE = "0.12.1", CE = {
15683
15690
  version: EE
15684
15691
  };
15685
15692
  function RE(e = "", t = Ns.ZH_CN, n = "") {
@@ -15833,7 +15840,7 @@ function Zr(e, t, n = {}) {
15833
15840
  };
15834
15841
  return new Pt(R);
15835
15842
  }
15836
- function SE(e) {
15843
+ function OE(e) {
15837
15844
  if (!e) return {};
15838
15845
  const {
15839
15846
  tr: t,
@@ -15858,7 +15865,7 @@ function Rl(e) {
15858
15865
  const { ff: t, fs: n, it: r, bl: s, ul: i, st: o, ol: a, cl: l, bg: u } = e, c = {};
15859
15866
  return t && (c.ff = t), n && (c.fs = n), r && (c.it = r), s && (c.bl = s), i && (c.ul = i), o && (c.st = o), a && (c.ol = a), l && (c.cl = l), u && (c.bg = u), c;
15860
15867
  }
15861
- function OE(e, t, n) {
15868
+ function SE(e, t, n) {
15862
15869
  var i;
15863
15870
  const r = e.getBody();
15864
15871
  if ((i = r.customRanges) != null && i.some((o) => o.rangeType === pn.HYPERLINK))
@@ -16906,9 +16913,9 @@ class Is {
16906
16913
  }), l;
16907
16914
  }
16908
16915
  getRange(t, n, r, s) {
16909
- return typeof t == "object" ? new Or(this, t, {
16916
+ return typeof t == "object" ? new Sr(this, t, {
16910
16917
  getStyles: () => this._styles
16911
- }) : new Or(
16918
+ }) : new Sr(
16912
16919
  this,
16913
16920
  {
16914
16921
  startRow: t,
@@ -17086,14 +17093,17 @@ class Is {
17086
17093
  * @returns the position of the last row that has content.
17087
17094
  */
17088
17095
  getLastRowWithContent() {
17089
- return this._cellData.getLength() - 1;
17096
+ return this._cellData.getRealRowRange().endRow;
17090
17097
  }
17091
17098
  /**
17092
17099
  * Returns the position of the last column that has content.
17093
17100
  * @returns the position of the last column that has content.
17094
17101
  */
17095
17102
  getLastColumnWithContent() {
17096
- return this._cellData.getRange().endColumn;
17103
+ return this.getDataRealRange().endColumn;
17104
+ }
17105
+ getDataRealRange() {
17106
+ return this._cellData.getRealRange();
17097
17107
  }
17098
17108
  getDataRangeScope() {
17099
17109
  return this._cellData.getStartEndScope();
@@ -17211,7 +17221,7 @@ class Is {
17211
17221
  ...r
17212
17222
  };
17213
17223
  let a, l = "document";
17214
- const u = SE(n), c = o ? rt.tr : u.textRotation || rt.tr;
17224
+ const u = OE(n), c = o ? rt.tr : u.textRotation || rt.tr;
17215
17225
  let h = u.horizontalAlign || rt.ht;
17216
17226
  const d = u.verticalAlign || rt.vt, f = u.wrapStrategy || rt.tb, g = u.paddingData || Wi;
17217
17227
  if (t.f && i)
@@ -17241,7 +17251,7 @@ class Is {
17241
17251
  cellValueType: t.t
17242
17252
  });
17243
17253
  }
17244
- return a && t.linkUrl && t.linkId && OE(a, t.linkUrl, t.linkId), {
17254
+ return a && t.linkUrl && t.linkId && SE(a, t.linkUrl, t.linkId), {
17245
17255
  documentModel: a,
17246
17256
  fontString: l,
17247
17257
  textRotation: c,
@@ -17707,7 +17717,7 @@ var YE = Object.getOwnPropertyDescriptor, zE = (e, t, n, r) => {
17707
17717
  for (var s = r > 1 ? void 0 : r ? YE(t, n) : t, i = e.length - 1, o; i >= 0; i--)
17708
17718
  (o = e[i]) && (s = o(s) || s);
17709
17719
  return s;
17710
- }, Sl = (e, t) => (n, r) => t(n, r, e);
17720
+ }, Ol = (e, t) => (n, r) => t(n, r, e);
17711
17721
  const vr = dt("univer.current");
17712
17722
  let Yi = class extends Ve {
17713
17723
  constructor(t, n) {
@@ -17746,7 +17756,7 @@ let Yi = class extends Ve {
17746
17756
  return this.currentUnits$.pipe(Zi((n) => {
17747
17757
  var r;
17748
17758
  return (r = n.get(t)) != null ? r : null;
17749
- }), Sc());
17759
+ }), Oc());
17750
17760
  }
17751
17761
  getCurrentUnitForType(t) {
17752
17762
  return this._currentUnits.get(t);
@@ -17845,8 +17855,8 @@ let Yi = class extends Ve {
17845
17855
  }
17846
17856
  };
17847
17857
  Yi = zE([
17848
- Sl(0, Nt(Yn)),
17849
- Sl(1, Nr)
17858
+ Ol(0, Nt(Yn)),
17859
+ Ol(1, Nr)
17850
17860
  ], Yi);
17851
17861
  var ke = /* @__PURE__ */ ((e) => (e[e.Starting = 0] = "Starting", e[e.Ready = 1] = "Ready", e[e.Rendered = 2] = "Rendered", e[e.Steady = 3] = "Steady", e))(ke || {});
17852
17862
  const uc = {
@@ -17894,7 +17904,7 @@ let Wn = class extends Ve {
17894
17904
  * @returns A promise that resolves when the specified stage is reached.
17895
17905
  */
17896
17906
  onStage(t) {
17897
- return Oc(this.lifecycle$.pipe(
17907
+ return Sc(this.lifecycle$.pipe(
17898
17908
  Rr((n) => n >= t),
17899
17909
  La((n) => n === t),
17900
17910
  Zi(() => {
@@ -18140,7 +18150,7 @@ var rC = Object.getOwnPropertyDescriptor, sC = (e, t, n, r) => {
18140
18150
  return s;
18141
18151
  }, di = (e, t) => (n, r) => t(n, r, e);
18142
18152
  const iC = 4, dc = Symbol("DependentOn");
18143
- class Ol extends Ve {
18153
+ class Sl extends Ve {
18144
18154
  onStarting() {
18145
18155
  }
18146
18156
  onReady() {
@@ -18156,7 +18166,7 @@ class Ol extends Ve {
18156
18166
  return this.constructor.pluginName;
18157
18167
  }
18158
18168
  }
18159
- p(Ol, "pluginName"), p(Ol, "type", we.UNIVER_UNKNOWN);
18169
+ p(Sl, "pluginName"), p(Sl, "type", we.UNIVER_UNKNOWN);
18160
18170
  class oC {
18161
18171
  constructor() {
18162
18172
  p(this, "_plugins", []);
@@ -18177,7 +18187,7 @@ function q1(...e) {
18177
18187
  t[dc] = e;
18178
18188
  };
18179
18189
  }
18180
- let Ss = class {
18190
+ let Os = class {
18181
18191
  constructor(e, t, n) {
18182
18192
  p(this, "_pluginRegistry", /* @__PURE__ */ new Map());
18183
18193
  p(this, "_pluginStore", new oC());
@@ -18290,11 +18300,11 @@ let Ss = class {
18290
18300
  return this._pluginStore.addPlugin(n), this._loadedPlugins.add(e.pluginName), this._logService.debug("[PluginService]", `Plugin "${n.getPluginName()}" loaded.`), n;
18291
18301
  }
18292
18302
  };
18293
- Ss = sC([
18303
+ Os = sC([
18294
18304
  di(0, Nt(Yn)),
18295
18305
  di(1, Nt(Wn)),
18296
18306
  di(2, yt)
18297
- ], Ss);
18307
+ ], Os);
18298
18308
  const vl = dt("resource-loader-service");
18299
18309
  var aC = Object.getOwnPropertyDescriptor, lC = (e, t, n, r) => {
18300
18310
  for (var s = r > 1 ? void 0 : r ? aC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
@@ -19365,7 +19375,7 @@ let yl = class extends qi {
19365
19375
  getRowIndexByOffsetY(t, n, r, s) {
19366
19376
  var a;
19367
19377
  const { rowHeightAccumulation: i } = this;
19368
- t = OC(
19378
+ t = SC(
19369
19379
  t,
19370
19380
  n,
19371
19381
  r,
@@ -19387,7 +19397,7 @@ let yl = class extends qi {
19387
19397
  */
19388
19398
  getColumnIndexByOffsetX(t, n, r, s) {
19389
19399
  var l;
19390
- const i = SC(
19400
+ const i = OC(
19391
19401
  t,
19392
19402
  n,
19393
19403
  r,
@@ -19661,11 +19671,11 @@ function rr(e, t, n, r, s) {
19661
19671
  mergeInfo: _
19662
19672
  };
19663
19673
  }
19664
- function SC(e, t, n, r) {
19674
+ function OC(e, t, n, r) {
19665
19675
  const { x: s } = n;
19666
19676
  return e / t + s - r;
19667
19677
  }
19668
- function OC(e, t, n, r) {
19678
+ function SC(e, t, n, r) {
19669
19679
  const { y: s } = n;
19670
19680
  return e = e / t + s - r, e;
19671
19681
  }
@@ -19761,7 +19771,7 @@ class sI {
19761
19771
  return this._injector.get(vr);
19762
19772
  }
19763
19773
  get _pluginService() {
19764
- return this._injector.get(Ss);
19774
+ return this._injector.get(Os);
19765
19775
  }
19766
19776
  /**
19767
19777
  * @ignore
@@ -19849,7 +19859,7 @@ function LC(e, t) {
19849
19859
  [Fn],
19850
19860
  [Gi],
19851
19861
  [Wn],
19852
- [Ss],
19862
+ [Os],
19853
19863
  [Rs],
19854
19864
  // abstract services
19855
19865
  [vr, { useClass: Yi }],
@@ -19878,7 +19888,7 @@ export {
19878
19888
  Jm as AlignTypeH,
19879
19889
  Zm as AlignTypeV,
19880
19890
  tg as ArrangeTypeEnum,
19881
- Sm as ArrowsAndMarkersShapes,
19891
+ Om as ArrowsAndMarkersShapes,
19882
19892
  QC as AsyncInterceptorManager,
19883
19893
  YC as AsyncLock,
19884
19894
  ji as AuthzIoLocalService,
@@ -19980,7 +19990,7 @@ export {
19980
19990
  Tm as FollowNumberWithType,
19981
19991
  wi as FontItalic,
19982
19992
  ir as FontStyleType,
19983
- Si as FontWeight,
19993
+ Oi as FontWeight,
19984
19994
  xm as GridType,
19985
19995
  Ag as HLSColor,
19986
19996
  Ut as HorizontalAlign,
@@ -20028,7 +20038,7 @@ export {
20028
20038
  ht as ObjectMatrix,
20029
20039
  Km as ObjectRelativeFromH,
20030
20040
  Xm as ObjectRelativeFromV,
20031
- Om as OtherShapes,
20041
+ Sm as OtherShapes,
20032
20042
  m1 as PAGE_SIZE,
20033
20043
  _R as PAPER_TYPES,
20034
20044
  $s as PRESET_LIST_TYPE,
@@ -20042,13 +20052,13 @@ export {
20042
20052
  Bs as ParagraphStyleValue,
20043
20053
  tC as PermissionService,
20044
20054
  hc as PermissionStatus,
20045
- Ol as Plugin,
20046
- Ss as PluginService,
20055
+ Sl as Plugin,
20056
+ Os as PluginService,
20047
20057
  Fm as PositionedObjectLayoutType,
20048
20058
  zt as PresetListType,
20049
20059
  Im as ProtectionType,
20050
20060
  e0 as QuickListType,
20051
- S1 as QuickListTypeMap,
20061
+ O1 as QuickListTypeMap,
20052
20062
  Bg as RANGE_DIRECTION,
20053
20063
  ge as RANGE_TYPE,
20054
20064
  Di as RBush,
@@ -20057,7 +20067,7 @@ export {
20057
20067
  AR as RGB_PAREN,
20058
20068
  vg as ROTATE_BUFFER_VALUE,
20059
20069
  Q1 as RTree,
20060
- Or as Range,
20070
+ Sr as Range,
20061
20071
  En as Rectangle,
20062
20072
  _C as RedoCommand,
20063
20073
  fC as RedoCommandId,
@@ -20116,12 +20126,12 @@ export {
20116
20126
  Is as Worksheet,
20117
20127
  Bn as WrapStrategy,
20118
20128
  Pm as WrapTextType,
20119
- OE as addLinkToDocumentModel,
20129
+ SE as addLinkToDocumentModel,
20120
20130
  wR as afterInitApply,
20121
20131
  RR as afterTime,
20122
20132
  eI as awaitTime,
20123
- Og as binSearchFirstGreaterThanTarget,
20124
- SR as binarySearchArray,
20133
+ Sg as binSearchFirstGreaterThanTarget,
20134
+ OR as binarySearchArray,
20125
20135
  CR as bufferDebounceTime,
20126
20136
  VR as cellToRange,
20127
20137
  Qm as characterSpacingControlType,
@@ -20130,7 +20140,7 @@ export {
20130
20140
  XR as checkParagraphHasBullet,
20131
20141
  qR as checkParagraphHasIndent,
20132
20142
  T_ as checkParagraphHasIndentByStyle,
20133
- OR as codeToBlob,
20143
+ SR as codeToBlob,
20134
20144
  fl as composeBody,
20135
20145
  Gc as composeInterceptors,
20136
20146
  Lr as composeStyles,
@@ -20182,11 +20192,11 @@ export {
20182
20192
  h0 as getParagraphsSlice,
20183
20193
  qo as getPlainText,
20184
20194
  gR as getReverseDirection,
20185
- O1 as getSectionBreakSlice,
20195
+ S1 as getSectionBreakSlice,
20186
20196
  c0 as getTableSlice,
20187
20197
  Pi as getTextRunSlice,
20188
- SC as getTransformOffsetX,
20189
- OC as getTransformOffsetY,
20198
+ OC as getTransformOffsetX,
20199
+ SC as getTransformOffsetY,
20190
20200
  K1 as getWorksheetUID,
20191
20201
  jC as groupBy,
20192
20202
  jR as handleStyleToString,
@@ -20241,13 +20251,13 @@ export {
20241
20251
  e1 as numfmt,
20242
20252
  _1 as queryObjectMatrix,
20243
20253
  GC as registerDependencies,
20244
- Os as remove,
20254
+ Ss as remove,
20245
20255
  Xp as repeatStringNumTimes,
20246
20256
  A1 as replaceInDocumentBody,
20247
20257
  lR as requestImmediateMacroTask,
20248
20258
  BC as rotate,
20249
20259
  Pr as searchArray,
20250
- Sg as searchInOrderedArray,
20260
+ Og as searchInOrderedArray,
20251
20261
  LR as selectionToArray,
20252
20262
  em as sequence,
20253
20263
  Qf as sequenceAsync,