@univerjs/core 0.2.7 → 0.2.8

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.
Files changed (97) hide show
  1. package/lib/cjs/index.js +7 -7
  2. package/lib/es/index.js +850 -41
  3. package/lib/types/common/equal.d.ts +0 -1
  4. package/lib/types/common/interceptor.d.ts +0 -1
  5. package/lib/types/common/unit.d.ts +0 -1
  6. package/lib/types/docs/data-model/document-data-model.d.ts +0 -1
  7. package/lib/types/docs/data-model/empty-snapshot.d.ts +0 -1
  8. package/lib/types/docs/data-model/json-x/json-x.d.ts +0 -1
  9. package/lib/types/docs/data-model/preset-list-type.d.ts +0 -1
  10. package/lib/types/docs/data-model/replacement.d.ts +0 -1
  11. package/lib/types/docs/data-model/text-x/action-iterator.d.ts +0 -1
  12. package/lib/types/docs/data-model/text-x/action-types.d.ts +0 -1
  13. package/lib/types/docs/data-model/text-x/apply-utils/common.d.ts +0 -1
  14. package/lib/types/docs/data-model/text-x/apply-utils/delete-apply.d.ts +0 -1
  15. package/lib/types/docs/data-model/text-x/apply-utils/insert-apply.d.ts +0 -1
  16. package/lib/types/docs/data-model/text-x/apply-utils/update-apply.d.ts +0 -1
  17. package/lib/types/docs/data-model/text-x/apply.d.ts +0 -1
  18. package/lib/types/docs/data-model/text-x/text-x.d.ts +0 -1
  19. package/lib/types/docs/data-model/text-x/transform-utils.d.ts +0 -1
  20. package/lib/types/docs/data-model/text-x/utils.d.ts +0 -1
  21. package/lib/types/observer/observable.d.ts +0 -1
  22. package/lib/types/services/__tests__/index.d.ts +0 -1
  23. package/lib/types/services/authz-io/authz-io-local.service.d.ts +2 -3
  24. package/lib/types/services/authz-io/type.d.ts +0 -1
  25. package/lib/types/services/command/command.service.d.ts +0 -1
  26. package/lib/types/services/config/config.service.d.ts +0 -1
  27. package/lib/types/services/context/context.service.d.ts +0 -1
  28. package/lib/types/services/error/error.service.d.ts +0 -1
  29. package/lib/types/services/instance/instance.service.d.ts +0 -1
  30. package/lib/types/services/lifecycle/lifecycle.d.ts +0 -1
  31. package/lib/types/services/lifecycle/lifecycle.service.d.ts +0 -1
  32. package/lib/types/services/locale/locale.service.d.ts +0 -1
  33. package/lib/types/services/log/log.service.d.ts +0 -1
  34. package/lib/types/services/permission/permission.service.d.ts +0 -1
  35. package/lib/types/services/permission/type.d.ts +0 -1
  36. package/lib/types/services/plugin/plugin-override.d.ts +0 -1
  37. package/lib/types/services/plugin/plugin.d.ts +0 -1
  38. package/lib/types/services/plugin/plugin.service.d.ts +0 -1
  39. package/lib/types/services/resource-loader/resource-loader.service.d.ts +0 -1
  40. package/lib/types/services/resource-loader/type.d.ts +0 -1
  41. package/lib/types/services/resource-manager/resource-manager.service.d.ts +0 -1
  42. package/lib/types/services/resource-manager/type.d.ts +0 -1
  43. package/lib/types/services/snapshot/__tests__/snapshot-mock.d.ts +0 -1
  44. package/lib/types/services/snapshot/snapshot-server.service.d.ts +0 -1
  45. package/lib/types/services/snapshot/snapshot-transform.d.ts +0 -1
  46. package/lib/types/services/snapshot/snapshot-utils.d.ts +0 -1
  47. package/lib/types/services/theme/theme.service.d.ts +0 -1
  48. package/lib/types/services/undoredo/undoredo.service.d.ts +0 -1
  49. package/lib/types/services/user-manager/const.d.ts +0 -1
  50. package/lib/types/shared/after-init-apply.d.ts +0 -1
  51. package/lib/types/shared/check-if-move.d.ts +0 -1
  52. package/lib/types/shared/clipboard.d.ts +0 -1
  53. package/lib/types/shared/color/color.d.ts +0 -1
  54. package/lib/types/shared/common.d.ts +0 -1
  55. package/lib/types/shared/compare.d.ts +0 -1
  56. package/lib/types/shared/doc-tool.d.ts +0 -1
  57. package/lib/types/shared/index.d.ts +1 -0
  58. package/lib/types/shared/lifecycle.d.ts +0 -1
  59. package/lib/types/shared/lru/lru-map.d.ts +0 -1
  60. package/lib/types/shared/numfmt.d.ts +2 -0
  61. package/lib/types/shared/object-matrix-query.d.ts +0 -1
  62. package/lib/types/shared/object-matrix.d.ts +6 -1
  63. package/lib/types/shared/range.d.ts +0 -1
  64. package/lib/types/shared/rectangle.d.ts +0 -1
  65. package/lib/types/shared/rxjs.d.ts +0 -1
  66. package/lib/types/shared/tools.d.ts +0 -1
  67. package/lib/types/sheets/__tests__/create-core-test-bed.d.ts +0 -1
  68. package/lib/types/sheets/column-manager.d.ts +0 -1
  69. package/lib/types/sheets/empty-snapshot.d.ts +0 -1
  70. package/lib/types/sheets/range.d.ts +0 -1
  71. package/lib/types/sheets/row-manager.d.ts +0 -1
  72. package/lib/types/sheets/sheet-snapshot-utils.d.ts +0 -1
  73. package/lib/types/sheets/styles.d.ts +0 -1
  74. package/lib/types/sheets/view-model.d.ts +0 -1
  75. package/lib/types/sheets/workbook.d.ts +0 -1
  76. package/lib/types/sheets/worksheet.d.ts +0 -1
  77. package/lib/types/slides/slide-model.d.ts +0 -1
  78. package/lib/types/types/const/const.d.ts +1 -1
  79. package/lib/types/types/interfaces/i-cell-custom-render.d.ts +0 -1
  80. package/lib/types/types/interfaces/i-cell-data.d.ts +0 -1
  81. package/lib/types/types/interfaces/i-cell-validation-data.d.ts +0 -1
  82. package/lib/types/types/interfaces/i-column-data.d.ts +0 -1
  83. package/lib/types/types/interfaces/i-data-validation.d.ts +0 -1
  84. package/lib/types/types/interfaces/i-document-data-interceptor.d.ts +0 -1
  85. package/lib/types/types/interfaces/i-document-data.d.ts +0 -1
  86. package/lib/types/types/interfaces/i-placeholder.d.ts +0 -1
  87. package/lib/types/types/interfaces/i-row-data.d.ts +0 -1
  88. package/lib/types/types/interfaces/i-selection-data.d.ts +0 -1
  89. package/lib/types/types/interfaces/i-shape-properties.d.ts +0 -1
  90. package/lib/types/types/interfaces/i-slide-data.d.ts +0 -1
  91. package/lib/types/types/interfaces/i-style-data.d.ts +0 -1
  92. package/lib/types/types/interfaces/i-univer-data.d.ts +0 -1
  93. package/lib/types/types/interfaces/i-workbook-data.d.ts +0 -1
  94. package/lib/types/types/interfaces/i-worksheet-data.d.ts +0 -1
  95. package/lib/types/univer.d.ts +0 -1
  96. package/lib/umd/index.js +7 -7
  97. package/package.json +7 -6
package/lib/es/index.js CHANGED
@@ -3343,6 +3343,21 @@ const _ObjectMatrix = class _ObjectMatrix {
3343
3343
  });
3344
3344
  }), objectMatrix.getData();
3345
3345
  }
3346
+ /**
3347
+ * the function can only be used in all the row and column are positive integer
3348
+ * @description the positive integer in V8 Object is stored in a fast memory space and it is sorted when we get the keys
3349
+ * @returns {IRange} the start and end scope of the matrix
3350
+ */
3351
+ getStartEndScope() {
3352
+ let startRow = 1 / 0, endRow = -1 / 0, startColumn = 1 / 0, endColumn = -1 / 0;
3353
+ const rows = Object.keys(this._matrix);
3354
+ rows.length > 0 && (startRow = +rows[0], endRow = +rows[rows.length - 1]);
3355
+ for (const row of rows) {
3356
+ const columns = Object.keys(this._matrix[row]);
3357
+ columns.length > 0 && (startColumn = Math.min(startColumn, +columns[0]), endColumn = Math.max(endColumn, +columns[columns.length - 1]));
3358
+ }
3359
+ return { startRow, endRow, startColumn, endColumn };
3360
+ }
3346
3361
  getDataRange() {
3347
3362
  let startRow = 0, startColumn = 0, endColumn = 0, endRow = -1, initRow = !1, initColumn = !1;
3348
3363
  return this.forEach((rowIndex, row) => {
@@ -3741,7 +3756,765 @@ function covertTextRunToHtml(dataStream, textRun) {
3741
3756
  return it === BooleanNumber.TRUE && (html = `<i>${html}</i>`), va === BaselineOffset.SUPERSCRIPT ? html = `<sup>${html}</sup>` : va === BaselineOffset.SUBSCRIPT && (html = `<sub>${html}</sub>`), (ul == null ? void 0 : ul.s) === BooleanNumber.TRUE && (html = `<u>${html}</u>`), (st == null ? void 0 : st.s) === BooleanNumber.TRUE && (html = `<s>${html}</s>`), bl === BooleanNumber.TRUE && (html = `<strong>${html}</strong>`), ff && style.push(`font-family: ${ff}`), cl && style.push(`color: ${cl.rgb}`), fs && style.push(`font-size: ${fs}pt`), ol && style.push("text-decoration: overline"), bg && style.push(`background: ${bg.rgb}`), style.length ? `<span style="${style.join("; ")};">${html}</span>` : html;
3742
3757
  }
3743
3758
  __name(covertTextRunToHtml, "covertTextRunToHtml");
3744
- const DEFAULT_RANGE_ARRAY = {
3759
+ var numfmt$1 = { exports: {} };
3760
+ (function(module, exports) {
3761
+ (function(e, t) {
3762
+ module.exports = t();
3763
+ })(typeof self < "u" ? self : commonjsGlobal, function() {
3764
+ return function() {
3765
+ var e = { d: /* @__PURE__ */ __name(function(t2, n2) {
3766
+ for (var a2 in n2) e.o(n2, a2) && !e.o(t2, a2) && Object.defineProperty(t2, a2, { enumerable: !0, get: n2[a2] });
3767
+ }, "d"), o: /* @__PURE__ */ __name(function(e2, t2) {
3768
+ return Object.prototype.hasOwnProperty.call(e2, t2);
3769
+ }, "o") }, t = {};
3770
+ e.d(t, { default: /* @__PURE__ */ __name(function() {
3771
+ return pe;
3772
+ }, "default") });
3773
+ var n = { 1078: "af", 1052: "sq", 1118: "am", 5121: "ar_DZ", 15361: "ar_BH", 3073: "ar_EG", 2049: "ar_IQ", 11265: "ar_JO", 13313: "ar_KW", 12289: "ar_LB", 4097: "ar_LY", 6145: "ar_MA", 8193: "ar_OM", 16385: "ar_QA", 1025: "ar_SA", 10241: "ar_SY", 7169: "ar_TN", 14337: "ar_AE", 9217: "ar_YE", 1067: "hy", 1101: "as", 2092: "az_AZ", 1068: "az_AZ", 1069: "eu", 1059: "be", 2117: "bn", 1093: "bn_IN", 5146: "bs", 1026: "bg", 1109: "my", 1027: "ca", 2052: "zh_CN", 3076: "zh_HK", 5124: "zh_MO", 4100: "zh_SG", 1028: "zh_TW", 1050: "hr", 1029: "cs", 1030: "da", 1125: "dv", 2067: "nl_BE", 1043: "nl_NL", 1126: "bin", 3081: "en_AU", 10249: "en_BZ", 4105: "en_CA", 9225: "en_CB", 2057: "en_GB", 16393: "en_IN", 6153: "en_IE", 8201: "en_JM", 5129: "en_NZ", 13321: "en_PH", 7177: "en_ZA", 11273: "en_TT", 1033: "en_US", 12297: "en_ZW", 1061: "et", 1071: "mk", 1080: "fo", 1065: "fa", 1124: "fil", 1035: "fi", 2060: "fr_BE", 11276: "fr_CM", 3084: "fr_CA", 9228: "fr_CG", 12300: "fr_CI", 1036: "fr_FR", 5132: "fr_LU", 13324: "fr_ML", 6156: "fr_MC", 14348: "fr_MA", 10252: "fr_SN", 4108: "fr_CH", 7180: "fr", 1122: "fy_NL", 2108: "gd_IE", 1084: "gd", 1110: "gl", 1079: "ka", 3079: "de_AT", 1031: "de_DE", 5127: "de_LI", 4103: "de_LU", 2055: "de_CH", 1032: "el", 1140: "gn", 1095: "gu", 1279: "en", 1037: "he", 1081: "hi", 1038: "hu", 1039: "is", 1136: "ig_NG", 1057: "id", 1040: "it_IT", 2064: "it_CH", 1041: "ja", 1099: "kn", 1120: "ks", 1087: "kk", 1107: "km", 1111: "kok", 1042: "ko", 1088: "ky", 1108: "lo", 1142: "la", 1062: "lv", 1063: "lt", 2110: "ms_BN", 1086: "ms_MY", 1100: "ml", 1082: "mt", 1112: "mni", 1153: "mi", 1102: "mr", 1104: "mn", 2128: "mn", 1121: "ne", 1044: "no_NO", 2068: "no_NO", 1096: "or", 1045: "pl", 1046: "pt_BR", 2070: "pt_PT", 1094: "pa", 1047: "rm", 2072: "ro_MO", 1048: "ro_RO", 1049: "ru", 2073: "ru_MO", 1083: "se", 1103: "sa", 3098: "sr_SP", 2074: "sr_SP", 1072: "st", 1074: "tn", 1113: "sd", 1115: "si", 1051: "sk", 1060: "sl", 1143: "so", 1070: "sb", 11274: "es_AR", 16394: "es_BO", 13322: "es_CL", 9226: "es_CO", 5130: "es_CR", 7178: "es_DO", 12298: "es_EC", 17418: "es_SV", 4106: "es_GT", 18442: "es_HN", 2058: "es_MX", 19466: "es_NI", 6154: "es_PA", 15370: "es_PY", 10250: "es_PE", 20490: "es_PR", 1034: "es_ES", 14346: "es_UY", 8202: "es_VE", 1089: "sw", 2077: "sv_FI", 1053: "sv_SE", 1114: "syc", 1064: "tg", 1097: "ta", 1092: "tt", 1098: "te", 1054: "th", 1105: "bo", 1073: "ts", 1055: "tr", 1090: "tk", 1058: "uk", 1056: "ur", 2115: "uz_UZ", 1091: "uz_UZ", 1075: "ve", 1066: "vi", 1106: "cy", 1076: "xh", 1085: "yi", 1077: "zu" };
3774
+ const a = /^([a-z\d]+)(?:[_-]([a-z\d]+))?(?:\.([a-z\d]+))?(?:@([a-z\d]+))?$/i, r = {}, i = { group: " ", decimal: ".", positive: "+", negative: "-", percent: "%", exponent: "E", nan: "NaN", infinity: "∞", ampm: ["AM", "PM"], mmmm6: ["Muharram", "Safar", "Rabiʻ I", "Rabiʻ II", "Jumada I", "Jumada II", "Rajab", "Shaʻban", "Ramadan", "Shawwal", "Dhuʻl-Qiʻdah", "Dhuʻl-Hijjah"], mmm6: ["Muh.", "Saf.", "Rab. I", "Rab. II", "Jum. I", "Jum. II", "Raj.", "Sha.", "Ram.", "Shaw.", "Dhuʻl-Q.", "Dhuʻl-H."], mmmm: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], mmm: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], dddd: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], ddd: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] };
3775
+ function s(e2) {
3776
+ const t2 = a.exec(e2);
3777
+ if (!t2) throw new SyntaxError("Malformed locale: ".concat(e2));
3778
+ return { lang: t2[1] + (t2[2] ? "_" + t2[2] : ""), language: t2[1], territory: t2[2] || "", codeset: t2[3] || "", modifier: t2[4] || "" };
3779
+ }
3780
+ __name(s, "s");
3781
+ function o(e2) {
3782
+ if (typeof e2 == "number") return n[65535 & e2] || null;
3783
+ const t2 = parseInt(e2, 16);
3784
+ return isFinite(t2) && n[65535 & t2] ? n[65535 & t2] || null : a.test(e2) ? e2 : null;
3785
+ }
3786
+ __name(o, "o");
3787
+ function l2(e2) {
3788
+ const t2 = o(e2);
3789
+ let n2 = null;
3790
+ if (t2) {
3791
+ const e3 = s(t2);
3792
+ n2 = r[e3.lang] || r[e3.language] || null;
3793
+ }
3794
+ return n2;
3795
+ }
3796
+ __name(l2, "l");
3797
+ function d(e2) {
3798
+ return Object.assign({}, i, e2);
3799
+ }
3800
+ __name(d, "d");
3801
+ function m(e2, t2) {
3802
+ const n2 = typeof t2 == "object" ? t2 : s(t2);
3803
+ return r[n2.lang] = d(e2), n2.language === n2.lang || r[n2.language] || (r[n2.language] = d(e2)), r[n2.lang];
3804
+ }
3805
+ __name(m, "m");
3806
+ const u = d({ group: "," });
3807
+ function c(e2, t2) {
3808
+ if (typeof e2 != "number") return e2;
3809
+ if (e2 < 0) return -c(-e2, t2);
3810
+ if (t2) {
3811
+ const n2 = 10 ** (t2 || 0) || 1;
3812
+ return c(e2 * n2, 0) / n2;
3813
+ }
3814
+ return Math.round(e2);
3815
+ }
3816
+ __name(c, "c"), u.isDefault = !0, m({ group: ",", ampm: ["上午", "下午"], mmmm: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], mmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], dddd: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], ddd: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"] }, "zh_CN"), m({ group: ",", nan: "非數值", ampm: ["上午", "下午"], mmmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], mmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], dddd: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], ddd: ["週日", "週一", "週二", "週三", "週四", "週五", "週六"] }, "zh_TW"), m({ group: ",", ampm: ["午前", "午後"], mmmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], mmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], dddd: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], ddd: ["日", "月", "火", "水", "木", "金", "土"] }, "ja"), m({ group: ",", ampm: ["오전", "오후"], mmmm: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"], mmm: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"], dddd: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"], ddd: ["일", "월", "화", "수", "목", "금", "토"] }, "ko"), m({ group: ",", ampm: ["ก่อนเที่ยง", "หลังเที่ยง"], mmmm: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"], mmm: ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."], dddd: ["วันอาทิตย์", "วันจันทร์", "วันอังคาร", "วันพุธ", "วันพฤหัสบดี", "วันศุกร์", "วันเสาร์"], ddd: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."] }, "th"), m({ decimal: ",", ampm: ["dop.", "odp."], mmmm: ["ledna", "února", "března", "dubna", "května", "června", "července", "srpna", "září", "října", "listopadu", "prosince"], mmm: ["led", "úno", "bře", "dub", "kvě", "čvn", "čvc", "srp", "zář", "říj", "lis", "pro"], dddd: ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], ddd: ["ne", "po", "út", "st", "čt", "pá", "so"] }, "cs"), m({ group: ".", decimal: ",", mmmm: ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december"], mmm: ["jan.", "feb.", "mar.", "apr.", "maj", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "dec."], dddd: ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], ddd: ["søn.", "man.", "tir.", "ons.", "tor.", "fre.", "lør."] }, "da"), m({ group: ".", decimal: ",", ampm: ["a.m.", "p.m."], mmmm: ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"], mmm: ["jan.", "feb.", "mrt.", "apr.", "mei", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "dec."], dddd: ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], ddd: ["zo", "ma", "di", "wo", "do", "vr", "za"] }, "nl"), m({ group: "," }, "en"), m({ decimal: ",", nan: "epäluku", ampm: ["ap.", "ip."], mmmm: ["tammikuuta", "helmikuuta", "maaliskuuta", "huhtikuuta", "toukokuuta", "kesäkuuta", "heinäkuuta", "elokuuta", "syyskuuta", "lokakuuta", "marraskuuta", "joulukuuta"], mmm: ["tammik.", "helmik.", "maalisk.", "huhtik.", "toukok.", "kesäk.", "heinäk.", "elok.", "syysk.", "lokak.", "marrask.", "jouluk."], dddd: ["sunnuntaina", "maanantaina", "tiistaina", "keskiviikkona", "torstaina", "perjantaina", "lauantaina"], ddd: ["su", "ma", "ti", "ke", "to", "pe", "la"] }, "fi"), m({ group: " ", decimal: ",", mmmm: ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"], mmm: ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc."], dddd: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], ddd: ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."] }, "fr"), m({ group: ".", decimal: ",", mmmm: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"], mmm: ["Jan.", "Feb.", "März", "Apr.", "Mai", "Juni", "Juli", "Aug.", "Sept.", "Okt.", "Nov.", "Dez."], dddd: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], ddd: ["So.", "Mo.", "Di.", "Mi.", "Do.", "Fr.", "Sa."] }, "de"), m({ group: ".", decimal: ",", ampm: ["π.μ.", "μ.μ."], mmmm: ["Ιανουαρίου", "Φεβρουαρίου", "Μαρτίου", "Απριλίου", "Μαΐου", "Ιουνίου", "Ιουλίου", "Αυγούστου", "Σεπτεμβρίου", "Οκτωβρίου", "Νοεμβρίου", "Δεκεμβρίου"], mmm: ["Ιαν", "Φεβ", "Μαρ", "Απρ", "Μαΐ", "Ιουν", "Ιουλ", "Αυγ", "Σεπ", "Οκτ", "Νοε", "Δεκ"], dddd: ["Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο"], ddd: ["Κυρ", "Δευ", "Τρί", "Τετ", "Πέμ", "Παρ", "Σάβ"] }, "el"), m({ decimal: ",", ampm: ["de.", "du."], mmmm: ["január", "február", "március", "április", "május", "június", "július", "augusztus", "szeptember", "október", "november", "december"], mmm: ["jan.", "febr.", "márc.", "ápr.", "máj.", "jún.", "júl.", "aug.", "szept.", "okt.", "nov.", "dec."], dddd: ["vasárnap", "hétfő", "kedd", "szerda", "csütörtök", "péntek", "szombat"], ddd: ["V", "H", "K", "Sze", "Cs", "P", "Szo"] }, "hu"), m({ group: ".", decimal: ",", ampm: ["f.h.", "e.h."], mmmm: ["janúar", "febrúar", "mars", "apríl", "maí", "júní", "júlí", "ágúst", "september", "október", "nóvember", "desember"], mmm: ["jan.", "feb.", "mar.", "apr.", "maí", "jún.", "júl.", "ágú.", "sep.", "okt.", "nóv.", "des."], dddd: ["sunnudagur", "mánudagur", "þriðjudagur", "miðvikudagur", "fimmtudagur", "föstudagur", "laugardagur"], ddd: ["sun.", "mán.", "þri.", "mið.", "fim.", "fös.", "lau."] }, "is"), m({ group: ".", decimal: ",", mmmm: ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"], mmm: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Agu", "Sep", "Okt", "Nov", "Des"], dddd: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"], ddd: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"] }, "id"), m({ group: ".", decimal: ",", mmmm: ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre"], mmm: ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic"], dddd: ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], ddd: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"] }, "it"), m({ decimal: ",", ampm: ["a.m.", "p.m."], mmmm: ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember"], mmm: ["jan.", "feb.", "mar.", "apr.", "mai", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "des."], dddd: ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], ddd: ["søn.", "man.", "tir.", "ons.", "tor.", "fre.", "lør."] }, "nb"), m({ decimal: ",", mmmm: ["stycznia", "lutego", "marca", "kwietnia", "maja", "czerwca", "lipca", "sierpnia", "września", "października", "listopada", "grudnia"], mmm: ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru"], dddd: ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], ddd: ["niedz.", "pon.", "wt.", "śr.", "czw.", "pt.", "sob."] }, "pl"), m({ group: ".", decimal: ",", mmmm: ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro"], mmm: ["jan.", "fev.", "mar.", "abr.", "mai.", "jun.", "jul.", "ago.", "set.", "out.", "nov.", "dez."], dddd: ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], ddd: ["dom.", "seg.", "ter.", "qua.", "qui.", "sex.", "sáb."] }, "pt"), m({ decimal: ",", nan: "не число", mmmm: ["января", "февраля", "марта", "апреля", "мая", "июня", "июля", "августа", "сентября", "октября", "ноября", "декабря"], mmm: ["янв.", "февр.", "мар.", "апр.", "мая", "июн.", "июл.", "авг.", "сент.", "окт.", "нояб.", "дек."], dddd: ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], ddd: ["вс", "пн", "вт", "ср", "чт", "пт", "сб"] }, "ru"), m({ decimal: ",", mmmm: ["januára", "februára", "marca", "apríla", "mája", "júna", "júla", "augusta", "septembra", "októbra", "novembra", "decembra"], mmm: ["jan", "feb", "mar", "apr", "máj", "jún", "júl", "aug", "sep", "okt", "nov", "dec"], dddd: ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], ddd: ["ne", "po", "ut", "st", "št", "pi", "so"] }, "sk"), m({ group: ".", decimal: ",", ampm: ["a. m.", "p. m."], mmmm: ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"], mmm: ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sept.", "oct.", "nov.", "dic."], dddd: ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], ddd: ["dom.", "lun.", "mar.", "mié.", "jue.", "vie.", "sáb."] }, "es"), m({ decimal: ",", ampm: ["fm", "em"], mmmm: ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december"], mmm: ["jan.", "feb.", "mars", "apr.", "maj", "juni", "juli", "aug.", "sep.", "okt.", "nov.", "dec."], dddd: ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], ddd: ["sön", "mån", "tis", "ons", "tors", "fre", "lör"] }, "sv"), m({ group: ".", decimal: ",", ampm: ["ÖÖ", "ÖS"], mmmm: ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"], mmm: ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"], dddd: ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], ddd: ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cmt"] }, "tr");
3817
+ function p(e2, t2, n2) {
3818
+ const a2 = e2 < 0 ? -1 : 1, r2 = 10 ** (t2 || 2), i2 = 10 ** (n2 || 2);
3819
+ let s2, o2, l3 = Math.abs(e2), d2 = 0, m2 = 0, u2 = 0, c2 = 1;
3820
+ if ((e2 = l3) % 1 == 0) o2 = [e2 * a2, 1];
3821
+ else if (e2 < 1e-19) o2 = [a2, 1e19];
3822
+ else if (e2 > 1e19) o2 = [1e19 * a2, 1];
3823
+ else {
3824
+ do
3825
+ if (l3 = 1 / (l3 - Math.floor(l3)), s2 = c2, c2 = c2 * Math.floor(l3) + d2, d2 = s2, m2 = u2, u2 = Math.floor(e2 * c2 + 0.5), u2 >= r2 || c2 >= i2) return [a2 * m2, d2];
3826
+ while (Math.abs(e2 - u2 / c2) >= 1e-10 && l3 !== Math.floor(l3));
3827
+ o2 = [a2 * u2, c2];
3828
+ }
3829
+ return o2;
3830
+ }
3831
+ __name(p, "p");
3832
+ const f = { overflow: "######", dateErrorThrows: !1, dateErrorNumber: !0, dateSpanLarge: !0, leap1900: !0, nbsp: !0, throws: !0, invalid: "######", locale: "", ignoreTimezone: !1 }, g = Object.assign({}, f);
3833
+ function h(e2) {
3834
+ if (e2 === null && (e2 = f), e2) {
3835
+ for (const t2 in e2) if (t2 in f) {
3836
+ const n2 = e2[t2];
3837
+ g[t2] = n2 == null ? f[t2] : n2;
3838
+ }
3839
+ }
3840
+ return { ...g };
3841
+ }
3842
+ __name(h, "h");
3843
+ const y = { "#": "", 0: "0", "?": " " }, _ = { "@": "text", "-": "minus", "+": "plus" }, b = ["#000", "#FFF", "#F00", "#0F0", "#00F", "#FF0", "#F0F", "#0FF", "#000", "#FFF", "#F00", "#0F0", "#00F", "#FF0", "#F0F", "#0FF", "#800", "#080", "#008", "#880", "#808", "#088", "#CCC", "#888", "#99F", "#936", "#FFC", "#CFF", "#606", "#F88", "#06C", "#CCF", "#008", "#F0F", "#FF0", "#0FF", "#808", "#800", "#088", "#00F", "#0CF", "#CFF", "#CFC", "#FF9", "#9CF", "#F9C", "#C9F", "#FC9", "#36F", "#3CC", "#9C0", "#FC0"], j = ["¤", "$", "£", "¥", "֏", "؋", "৳", "฿", "៛", "₡", "₦", "₩", "₪", "₫", "€", "₭", "₮", "₱", "₲", "₴", "₸", "₹", "₺", "₼", "₽", "₾", "₿"], v = new RegExp("[" + j.join("") + "]");
3844
+ function M2(e2, t2, n2) {
3845
+ return t2[n2 + "_max"] = e2.length, t2[n2 + "_min"] = e2.replace(/#/g, "").length, t2;
3846
+ }
3847
+ __name(M2, "M");
3848
+ const k = {};
3849
+ function x(e2) {
3850
+ if (!(e2 in k)) {
3851
+ const t2 = [], n2 = e2.replace(/^[#,]+/, "").replace(/[1-9]\d*/g, (e3) => "?".repeat(e3.length));
3852
+ for (let e3 = 0; e3 < n2.length; e3++) {
3853
+ const a2 = n2.charAt(e3);
3854
+ t2[e3] = a2 in y ? y[a2] : a2;
3855
+ }
3856
+ k[e2] = t2.join("");
3857
+ }
3858
+ return k[e2];
3859
+ }
3860
+ __name(x, "x");
3861
+ function F(e2, t2) {
3862
+ typeof e2 == "string" && (e2 = { type: "string", value: e2 = e2.replace(/ /g, y["?"]) }), t2.push(e2);
3863
+ }
3864
+ __name(F, "F");
3865
+ function z(e2) {
3866
+ const t2 = [], n2 = { scale: 1, percent: !1, text: !1, date: 0, date_eval: !1, date_system: 1, sec_decimals: 0, general: !1, clock: 24, int_pattern: [], frac_pattern: [], man_pattern: [], den_pattern: [], num_pattern: [], tokens: t2 };
3867
+ let a2 = e2 + "", r2 = "int", i2 = !1, s2 = null;
3868
+ const l3 = [];
3869
+ let d2, m2, u2 = !1;
3870
+ for (; a2 && !i2; ) {
3871
+ if (d2 = /^General/i.exec(a2)) n2.general = !0, F({ type: "general" }, t2);
3872
+ else if (r2 === "int" && (d2 = /^[#?0]+(?:,[#?0]+)*/.exec(a2)) || r2 === "den" && (d2 = /^[#?\d]+/.exec(a2)) || (d2 = /^[#?0]+/.exec(a2))) n2[r2 + "_pattern"].push(d2[0]), s2 = { type: r2, num: d2[0] }, F(s2, t2);
3873
+ else if ((d2 = /^\//.exec(a2)) && n2[r2 + "_pattern"].length) {
3874
+ if (!s2) throw new SyntaxError("Missing a numerator in pattern ".concat(e2));
3875
+ n2.fractions = !0, n2.num_pattern.push(n2[r2 + "_pattern"].pop()), s2.type = "num", r2 = "den", F({ type: "div" }, t2);
3876
+ } else if (d2 = /^,+/.exec(a2)) {
3877
+ const e3 = a2.charAt(1) in y;
3878
+ m2.slice(-1) in y && (d2[0].length > 1 || !e3) ? n2.scale = 1e-3 ** d2[0].length : n2.dec_fractions || F(d2[0], t2);
3879
+ } else {
3880
+ if (d2 = /^;/.exec(a2)) {
3881
+ i2 = !0;
3882
+ break;
3883
+ }
3884
+ if (d2 = /^[@+-]/.exec(a2)) d2[0] === "@" && (n2.text = !0), F({ type: _[d2[0]] }, t2);
3885
+ else if (d2 = /^(?:\[(h+|m+|s+)\])/i.exec(a2)) {
3886
+ const e3 = d2[1].toLowerCase(), a3 = e3[0], r3 = { type: "", size: 0, date: 1, raw: d2[0], pad: e3.length };
3887
+ a3 === "h" ? (r3.size = 16, r3.type = "hour-elap") : a3 === "m" ? (r3.size = 32, r3.type = "min-elap") : (r3.size = 64, r3.type = "sec-elap"), n2.date = n2.date | r3.size, l3.push(r3), F(r3, t2);
3888
+ } else if (d2 = /^(?:B2)/i.exec(a2)) u2 || (n2.date_system = 6);
3889
+ else if (d2 = /^(?:B1)/i.exec(a2)) u2 || (n2.date_system = 1);
3890
+ else if (d2 = /^(?:([hHmMsSyYbBdDegG])\1*)/.exec(a2)) {
3891
+ const e3 = { type: "", size: 0, date: 1, raw: d2[0] }, a3 = d2[0].toLowerCase(), r3 = a3[0];
3892
+ if (a3 === "y" || a3 === "yy") e3.size = 2, e3.type = "year-short";
3893
+ else if (r3 === "y" || r3 === "e") e3.size = 2, e3.type = "year";
3894
+ else if (a3 === "b" || a3 === "bb") e3.size = 2, e3.type = "b-year-short";
3895
+ else if (r3 === "b") e3.size = 2, e3.type = "b-year";
3896
+ else if (a3 === "d" || a3 === "dd") e3.size = 8, e3.type = "day", e3.pad = /dd/.test(a3);
3897
+ else if (a3 === "ddd") e3.size = 8, e3.type = "weekday-short";
3898
+ else if (r3 === "d") e3.size = 8, e3.type = "weekday";
3899
+ else if (r3 === "h") e3.size = 16, e3.type = "hour", e3.pad = /hh/i.test(a3);
3900
+ else if (r3 === "m") {
3901
+ a3.length === 3 ? (e3.size = 4, e3.type = "monthname-short") : a3.length === 5 ? (e3.size = 4, e3.type = "monthname-single") : a3.length >= 4 && (e3.size = 4, e3.type = "monthname");
3902
+ const t3 = l3[l3.length - 1];
3903
+ !e3.type && t3 && !t3.used && 80 & t3.size && (t3.used = !0, e3.size = 32, e3.type = "min", e3.pad = /mm/.test(a3)), e3.type || (e3.size = 4, e3.type = "month", e3.pad = /mm/.test(a3), e3.indeterminate = !0);
3904
+ } else if (r3 === "s") {
3905
+ e3.size = 64, e3.type = "sec", e3.pad = /ss/.test(a3);
3906
+ const t3 = l3[l3.length - 1];
3907
+ t3 && 32 & t3.size ? e3.used = !0 : t3 && t3.indeterminate && (delete t3.indeterminate, t3.size = 32, t3.type = "min", e3.used = !0);
3908
+ }
3909
+ n2.date = n2.date | e3.size, n2.date_eval = !0, l3.push(e3), F(e3, t2);
3910
+ } else if (d2 = /^(?:AM\/PM|am\/pm|A\/P)/.exec(a2)) n2.clock = 12, n2.date = 16 | n2.date, n2.date_eval = !0, F({ type: "am", short: d2[0] === "A/P" }, t2);
3911
+ else if (n2.date && (d2 = /^\.0{1,3}/i.exec(a2))) {
3912
+ const e3 = d2[0].length - 1, a3 = [64, 128, 256, 512][e3];
3913
+ n2.date = n2.date | a3, n2.date_eval = !0, n2.sec_decimals = Math.max(n2.sec_decimals, e3), F({ type: "subsec", size: a3, decimals: e3, date: 1, raw: d2[0] }, t2);
3914
+ } else if ((d2 = /^\\(.)/.exec(a2)) || (d2 = /^"([^"]*?)"/.exec(a2))) F(d2[1], t2);
3915
+ else if (d2 = /^\[(<[=>]?|>=?|=)\s*(-?[.\d]+)\]/.exec(a2)) n2.condition = [d2[1], parseFloat(d2[2], 10)];
3916
+ else if (d2 = /^\[\$([^\]]+)\]/.exec(a2)) {
3917
+ const e3 = d2[1].split("-"), a3 = e3.length < 2 ? "" : e3[e3.length - 1], r3 = e3[0];
3918
+ r3 && F(r3, t2);
3919
+ const i3 = o(a3);
3920
+ i3 && (n2.locale = i3);
3921
+ const s3 = parseInt(a3, 16);
3922
+ isFinite(s3) && 16711680 & s3 && (s3 >> 16 & 255) === 6 && (n2.date_system = 6), u2 = !0;
3923
+ } else if (d2 = /^\[(black|blue|cyan|green|magenta|red|white|yellow|color\s*(\d+))\]/i.exec(a2)) n2.color = d2[2] ? b[parseInt(d2[2], 10)] || "#000" : d2[1].toLowerCase();
3924
+ else if (!(d2 = /^\[(DBNum1|ENG|HIJ|JPN|TWN)\]/i.exec(a2))) {
3925
+ if (d2 = /^%/.exec(a2)) n2.scale = 100, n2.percent = !0, F("%", t2);
3926
+ else if (d2 = /^_(\\.|.)/.exec(a2)) F(" ", t2);
3927
+ else if (d2 = /^\./.exec(a2)) F({ type: "point", value: d2[0] }, t2), n2.dec_fractions = !0, r2 = "frac";
3928
+ else if (d2 = /^[Ee]([+-]?|(?=[0#?]))/.exec(a2)) n2.exponential = !0, n2.exp_plus = d2[1] === "+", r2 = "man", F({ type: "exp", plus: d2[1] === "+" }, t2);
3929
+ else if (!(d2 = /^\*(\\.|.)/.exec(a2))) {
3930
+ if (d2 = /^[BENn[]/.exec(a2)) throw new SyntaxError("Unexpected char ".concat(a2.charAt(0), " in pattern ").concat(e2));
3931
+ a2[0] === "(" && (n2.parens = !0), d2 = [a2[0]], F(d2[0], t2);
3932
+ }
3933
+ }
3934
+ }
3935
+ m2 = d2[0], a2 = a2.slice(d2 ? d2[0].length : 1);
3936
+ }
3937
+ if (n2.pattern = e2.slice(0, e2.length - a2.length), /^((?:\[[^\]]+\])+)(;|$)/.test(n2.pattern) && !/^\[(?:h+|m+|s+)\]/.test(n2.pattern) && F({ type: "text" }, t2), n2.fractions && n2.dec_fractions || n2.fractions && n2.exponential) throw new SyntaxError("Invalid pattern: ".concat(n2.pattern));
3938
+ const c2 = n2.int_pattern.join("");
3939
+ if (n2.grouping = c2.indexOf(",") >= 0, n2.grouping) {
3940
+ const e3 = c2.split(","), t3 = e3.length;
3941
+ t3 === 2 ? (n2.group_pri = e3[1].length, n2.group_sec = n2.group_pri) : t3 > 2 && (n2.group_pri = e3[t3 - 1].length, n2.group_sec = e3[t3 - 2].length);
3942
+ } else n2.group_pri = 0, n2.group_sec = 0;
3943
+ M2(c2.replace(/[,]/g, ""), n2, "int"), M2(n2.frac_pattern.join(""), n2, "frac"), M2(n2.man_pattern.join(""), n2, "man");
3944
+ let p2 = n2.num_pattern.join(""), f2 = n2.den_pattern.join("");
3945
+ const g2 = /\?/.test(f2) || /\?/.test(p2);
3946
+ return f2 = f2.replace(/\d/g, g2 ? "?" : "#"), g2 && (f2 = f2.replace(/#$/g, "?")), M2(p2, n2, "num"), M2(f2, n2, "den"), g2 && (p2 = p2.replace(/#$/g, "?")), n2.int_padding = x(n2.int_pattern.join("")), n2.man_padding = x(n2.man_pattern.join("")), n2.num_padding = x(p2), n2.den_padding = x(f2), n2.den_pattern.length && (n2.denominator = parseInt(n2.den_pattern.join("").replace(/\D/g, ""), 10)), n2.integer = !!n2.int_pattern.join("").length, n2.fractions && t2.forEach((e3, n3) => {
3947
+ const a3 = t2[n3 + 1];
3948
+ e3.type === "string" && a3 && (a3.type === "num" ? e3.rule = "num+int" : a3.type === "div" ? e3.rule = "num" : a3.type === "den" && (e3.rule = "den"));
3949
+ }), n2;
3950
+ }
3951
+ __name(z, "z");
3952
+ const w = /* @__PURE__ */ __name((e2) => {
3953
+ const t2 = e2.condition;
3954
+ t2 && t2[1] < 0 && (t2[0] === "<" || t2[0] === "<=" || t2[0] === "=") || e2.tokens.unshift({ type: "minus", volatile: !0 });
3955
+ }, "w");
3956
+ function D(e2) {
3957
+ const t2 = [];
3958
+ let n2, a2 = !1, r2 = null, i2 = e2, s2 = 0, l3 = !1, d2 = 0, m2 = 0;
3959
+ do {
3960
+ if (l3 = z(i2), (l3.date || l3.general) && (l3.int_pattern.length || l3.frac_pattern.length || l3.scale !== 1 || l3.text)) throw new Error("Illegal format");
3961
+ if (l3.condition && (m2++, a2 = !0), l3.text) {
3962
+ if (r2) throw new Error("Unexpected partition");
3963
+ r2 = l3;
3964
+ }
3965
+ l3.locale && (n2 = o(l3.locale)), t2.push(l3), s2 = i2.charAt(l3.pattern.length) === ";" ? 1 : 0, i2 = i2.slice(l3.pattern.length + s2), d2++;
3966
+ } while (s2 && d2 < 4 && m2 < 3);
3967
+ if (s2) throw new Error("Unexpected partition");
3968
+ if (m2 > 2) throw new Error("Unexpected condition");
3969
+ const u2 = t2[3];
3970
+ if (u2 && (u2.int_pattern.length || u2.frac_pattern.length || u2.date)) throw new Error("Unexpected partition");
3971
+ if (a2) {
3972
+ const e3 = t2.length;
3973
+ if (e3 === 1 && (t2[1] = z("General"), t2[1].generated = !0), e3 < 3) {
3974
+ const e4 = t2[0], n3 = t2[1];
3975
+ if (w(e4), n3.condition) w(n3);
3976
+ else {
3977
+ const t3 = e4.condition;
3978
+ (t3[0] === "=" || t3[1] >= 0 && (t3[0] === ">" || t3[0] === ">=")) && n3.tokens.unshift({ type: "minus", volatile: !0 });
3979
+ }
3980
+ } else t2.forEach(w);
3981
+ } else {
3982
+ if (t2.length < 4 && r2) for (let e3 = 0, n3 = t2.length; e3 < n3; e3++) t2[e3] === r2 && t2.splice(e3, 1);
3983
+ if (t2.length < 1 && r2 && (t2[0] = z("General"), t2[0].generated = !0), t2.length < 2) {
3984
+ const e3 = z(t2[0].pattern);
3985
+ e3.tokens.unshift({ type: "minus", volatile: !0 }), e3.generated = !0, t2.push(e3);
3986
+ }
3987
+ if (t2.length < 3) {
3988
+ const e3 = z(t2[0].pattern);
3989
+ e3.generated = !0, t2.push(e3);
3990
+ }
3991
+ if (t2.length < 4) if (r2) t2.push(r2);
3992
+ else {
3993
+ const e3 = z("@");
3994
+ e3.generated = !0, t2.push(e3);
3995
+ }
3996
+ t2[0].condition = [">", 0], t2[1].condition = ["<", 0], t2[2].condition = null;
3997
+ }
3998
+ return { pattern: e2, partitions: t2, locale: n2 };
3999
+ }
4000
+ __name(D, "D");
4001
+ const S = Math.floor;
4002
+ function C(e2) {
4003
+ if ((!(arguments.length > 1 && arguments[1] !== void 0) || arguments[1]) && e2 >= 0) {
4004
+ if (e2 === 0) return [1900, 1, 0];
4005
+ if (e2 === 60) return [1900, 2, 29];
4006
+ if (e2 < 60) return [1900, e2 < 32 ? 1 : 2, (e2 - 1) % 31 + 1];
4007
+ }
4008
+ let n2 = e2 + 68569 + 2415019;
4009
+ const a2 = S(4 * n2 / 146097);
4010
+ n2 -= S((146097 * a2 + 3) / 4);
4011
+ const r2 = S(4e3 * (n2 + 1) / 1461001);
4012
+ n2 = n2 - S(1461 * r2 / 4) + 31;
4013
+ const i2 = S(80 * n2 / 2447), s2 = n2 - S(2447 * i2 / 80);
4014
+ n2 = S(i2 / 11);
4015
+ const o2 = i2 + 2 - 12 * n2;
4016
+ return [0 | 100 * (a2 - 49) + r2 + n2, 0 | o2, 0 | s2];
4017
+ }
4018
+ __name(C, "C");
4019
+ function E(e2) {
4020
+ return C(e2 + 1462);
4021
+ }
4022
+ __name(E, "E");
4023
+ function A(e2) {
4024
+ if (e2 === 60) throw new Error("#VALUE!");
4025
+ if (e2 <= 1) return [1317, 8, 29];
4026
+ if (e2 < 60) return [1317, e2 < 32 ? 9 : 10, 1 + (e2 - 2) % 30];
4027
+ const t2 = 10631 / 30, n2 = 0.1335;
4028
+ let a2 = e2 + 466935;
4029
+ const r2 = S(a2 / 10631);
4030
+ a2 -= 10631 * r2;
4031
+ const i2 = S((a2 - n2) / t2);
4032
+ a2 -= S(i2 * t2 + n2);
4033
+ const s2 = S((a2 + 28.5001) / 29.5);
4034
+ return s2 === 13 ? [30 * r2 + i2, 12, 30] : [30 * r2 + i2, s2, a2 - S(29.5001 * s2 - 29)];
4035
+ }
4036
+ __name(A, "A");
4037
+ function Y(e2) {
4038
+ let t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n2 = !(arguments.length > 2 && arguments[2] !== void 0) || arguments[2];
4039
+ const a2 = S(e2);
4040
+ return t2 === 6 ? A(a2) : t2 === -1 ? E(a2) : C(a2, n2);
4041
+ }
4042
+ __name(Y, "Y");
4043
+ const T = Math.floor, N2 = 86400;
4044
+ function P(e2, t2) {
4045
+ let n2 = null;
4046
+ if (Array.isArray(e2)) {
4047
+ const [t3, a2, r2, i2, s2, o2] = e2;
4048
+ n2 = Date.UTC(t3, a2 == null ? 0 : a2 - 1, r2 != null ? r2 : 1, i2 || 0, s2 || 0, o2 || 0);
4049
+ } else if (e2 instanceof Date && (n2 = 1 * e2, !t2 || !t2.ignoreTimezone)) {
4050
+ const t3 = /* @__PURE__ */ new Date();
4051
+ t3.setUTCFullYear(e2.getFullYear(), e2.getMonth(), e2.getDate()), t3.setUTCHours(e2.getHours(), e2.getMinutes(), e2.getSeconds(), e2.getMilliseconds()), n2 = 1 * t3;
4052
+ }
4053
+ if (n2 != null && isFinite(n2)) {
4054
+ const e3 = n2 / 864e5;
4055
+ return e3 - (e3 <= -25509 ? -25568 : -25569);
4056
+ }
4057
+ return e2;
4058
+ }
4059
+ __name(P, "P");
4060
+ function I2(e2, t2) {
4061
+ let n2 = 0 | e2;
4062
+ const a2 = N2 * (e2 - n2);
4063
+ let r2 = T(a2);
4064
+ a2 - r2 > 0.9999 && (r2 += 1, r2 === N2 && (r2 = 0, n2 += 1));
4065
+ const i2 = r2 < 0 ? N2 + r2 : r2, [s2, o2, l3] = Y(e2, 0, t2 && t2.leap1900), d2 = T(i2 / 60 / 60) % 60, m2 = T(i2 / 60) % 60, u2 = T(i2) % 60;
4066
+ if (t2 && t2.nativeDate) {
4067
+ const e3 = /* @__PURE__ */ new Date(0);
4068
+ return e3.setUTCFullYear(s2, o2 - 1, l3), e3.setUTCHours(d2, m2, u2), e3;
4069
+ }
4070
+ return [s2, o2, l3, d2, m2, u2];
4071
+ }
4072
+ __name(I2, "I");
4073
+ function O(e2) {
4074
+ return !!(e2[0] && e2[0].percent || e2[1] && e2[1].percent || e2[2] && e2[2].percent || e2[3] && e2[3].percent);
4075
+ }
4076
+ __name(O, "O");
4077
+ function J(e2) {
4078
+ return !!(e2[0] && e2[0].date || e2[1] && e2[1].date || e2[2] && e2[2].date || e2[3] && e2[3].date);
4079
+ }
4080
+ __name(J, "J");
4081
+ function L2(e2) {
4082
+ const [t2, n2, a2, r2] = e2;
4083
+ return !(t2 && !t2.generated || n2 && !n2.generated || a2 && !a2.generated || !r2 || !r2.text || r2.generated);
4084
+ }
4085
+ __name(L2, "L");
4086
+ const U = { text: 15, datetime: 10.8, date: 10.8, time: 10.8, percent: 10.6, currency: 10.4, grouped: 10.2, scientific: 6, number: 4, fraction: 2, general: 0, error: 0 }, R = [["DMY", 1], ["DM", 2], ["MY", 3], ["MDY", 4], ["MD", 5], ["hmsa", 6], ["hma", 7], ["hms", 8], ["hm", 9]], G = { total: 1, sign: 0, period: 0, int: 1, frac: 0 }, H2 = /* @__PURE__ */ __name((e2, t2) => e2.replace(/\./, t2.decimal), "H");
4087
+ function B(e2, t2, n2, a2) {
4088
+ const r2 = 0 | n2;
4089
+ if (typeof n2 == "string") e2.push(n2);
4090
+ else if (n2 === r2) e2.push(Math.abs(r2));
4091
+ else {
4092
+ const t3 = Math.abs(n2);
4093
+ let r3 = t3 ? Math.floor(Math.log10(t3)) : 0, i2 = r3 < 0 ? t3 * 10 ** -r3 : t3 / 10 ** r3;
4094
+ i2 === 10 && (i2 = 1, r3++);
4095
+ const s2 = function(e3) {
4096
+ let t4 = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
4097
+ const n3 = Math.abs(e3);
4098
+ if (!n3) return G;
4099
+ const a3 = t4 && e3 < 0 ? 1 : 0, r4 = Math.floor(n3), i3 = Math.floor(Math.log10(n3) + 1);
4100
+ let s3 = 0, o3 = 0;
4101
+ if (r4 !== n3) {
4102
+ s3 = 1;
4103
+ const e4 = String(c(i3 < 0 ? n3 * 10 ** -i3 : n3 / 10 ** i3, 15));
4104
+ let t5 = e4.length, a4 = !0, r5 = 0;
4105
+ for (; r5 <= e4.length; ) {
4106
+ if (e4[r5] === ".") {
4107
+ t5--;
4108
+ break;
4109
+ }
4110
+ e4[r5] === "0" && a4 ? t5-- : a4 = !1, r5++;
4111
+ }
4112
+ o3 = t5 - i3, o3 < 0 && (o3 = 0, s3 = 0);
4113
+ }
4114
+ return { total: a3 + Math.max(i3, 1) + s3 + o3, digits: Math.max(i3, 0) + o3, sign: a3, period: s3, int: Math.max(i3, 1), frac: o3 };
4115
+ }(t3), o2 = /* @__PURE__ */ __name(() => {
4116
+ const t4 = Math.abs(r3);
4117
+ let n3;
4118
+ n3 = i2 === 1 ? i2 : c(i2, 5), e2.push(H2(n3 + "", a2), a2.exponent, r3 < 0 ? a2.negative : a2.positive, t4 < 10 ? "0" : "", t4);
4119
+ }, "o");
4120
+ if (r3 >= -4 && r3 <= -1) {
4121
+ const n3 = t3.toPrecision(10 + r3).replace(/\.?0+$/, "");
4122
+ e2.push(H2(n3, a2));
4123
+ } else if (r3 === 10) {
4124
+ const n3 = t3.toFixed(10).slice(0, 12).replace(/\.$/, "");
4125
+ e2.push(H2(n3, a2));
4126
+ } else if (Math.abs(r3) <= 9) if (s2.total <= 11) {
4127
+ const n3 = c(t3, 9).toFixed(s2.frac);
4128
+ e2.push(H2(n3, a2));
4129
+ } else r3 === 9 ? e2.push(Math.floor(t3)) : r3 >= 0 && r3 < 9 ? e2.push(c(t3, 9 - r3)) : o2();
4130
+ else s2.total >= 12 ? o2() : Math.floor(t3) === t3 ? e2.push(Math.floor(t3)) : e2.push(H2(c(t3, 9).toFixed(s2.frac), a2));
4131
+ }
4132
+ return e2;
4133
+ }
4134
+ __name(B, "B");
4135
+ const $ = 86400, W = { int: "integer", frac: "fraction", man: "mantissa", num: "numerator", den: "denominator" }, Z = /* @__PURE__ */ __name(function(e2) {
4136
+ let t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
4137
+ const n2 = Math.floor(Math.log10(e2));
4138
+ return t2 > 1 ? Math.floor(n2 / t2) * t2 : n2;
4139
+ }, "Z");
4140
+ function K(e2, t2, n2, a2) {
4141
+ let r2 = "", i2 = "", s2 = "", o2 = "", l3 = "", d2 = 0, m2 = 0 | e2, f2 = 0, g2 = 0, h2 = 1, _2 = 0, b2 = 0, j2 = 0, v2 = 0, M3 = 0, k2 = 0;
4142
+ const x2 = a2 || u;
4143
+ if (!t2.text && isFinite(t2.scale) && t2.scale !== 1 && (e2 = function(e3) {
4144
+ if (e3 === 0) return e3;
4145
+ const t3 = Math.ceil(Math.log10(e3 < 0 ? -e3 : e3)), n3 = 10 ** (16 - Math.floor(t3));
4146
+ return Math.round(e3 * n3) / n3;
4147
+ }(e2 * t2.scale)), t2.exponential) {
4148
+ let n3 = Math.abs(e2);
4149
+ if (n3) {
4150
+ const e3 = 10 ** -Z(n3, t2.int_max), a3 = c(n3 * e3, t2.frac_max) / e3;
4151
+ d2 = Z(a3, t2.int_max);
4152
+ }
4153
+ n3 /= 10 ** d2, e2 = e2 < 0 ? -n3 : n3, r2 += Math.abs(d2);
4154
+ }
4155
+ if (t2.integer) {
4156
+ const n3 = Math.abs(c(e2, t2.fractions ? 1 : t2.frac_max));
4157
+ l3 += n3 < 1 ? "" : Math.floor(n3);
4158
+ }
4159
+ if (t2.grouping) {
4160
+ let e3 = "", n3 = l3.length;
4161
+ for (n3 > t2.group_pri && (n3 -= t2.group_pri, e3 = x2.group + l3.slice(n3, n3 + t2.group_pri) + e3); n3 > t2.group_sec; ) n3 -= t2.group_sec, e3 = x2.group + l3.slice(n3, n3 + t2.group_sec) + e3;
4162
+ l3 = n3 ? l3.slice(0, n3) + e3 : e3;
4163
+ }
4164
+ t2.dec_fractions && (o2 = String(c(e2, t2.frac_max)).split(".")[1] || "");
4165
+ let F2 = !1;
4166
+ if (t2.fractions) {
4167
+ const n3 = Math.abs(t2.integer ? e2 % 1 : e2);
4168
+ if (n3) if (F2 = !0, isFinite(t2.denominator)) s2 += t2.denominator, i2 += c(n3 * t2.denominator), i2 === "0" && (i2 = "", s2 = "", F2 = !1, l3 || (l3 = "0"));
4169
+ else {
4170
+ const e3 = p(n3, t2.integer ? t2.num_max : 1 / 0, t2.den_max);
4171
+ i2 += e3[0], s2 += e3[1], t2.integer && i2 === "0" && (l3 || (l3 = "0"), i2 = "", s2 = "", F2 = !1);
4172
+ }
4173
+ }
4174
+ if (t2.date) {
4175
+ m2 = Math.trunc(e2);
4176
+ const a3 = $ * (e2 - m2);
4177
+ if (f2 = Math.floor(a3), k2 = a3 - f2, Math.abs(k2) < 1e-6 ? k2 = 0 : k2 > 0.9999 && (k2 = 0, f2 += 1, f2 === $ && (f2 = 0, m2 += 1)), k2) {
4178
+ const e3 = 512 & t2.date || 256 & t2.date || 128 & t2.date;
4179
+ (e3 === 512 && k2 > 0.9995 || e3 === 256 && k2 > 0.995 || e3 === 128 && k2 > 0.95 || !e3 && k2 >= 0.5) && (f2++, k2 = 0);
4180
+ }
4181
+ if (m2 || t2.date_system) {
4182
+ const a4 = Y(e2, t2.date_system, n2.leap1900);
4183
+ g2 = a4[0], h2 = a4[1], _2 = a4[2];
4184
+ }
4185
+ if (f2) {
4186
+ const e3 = f2 < 0 ? $ + f2 : f2;
4187
+ M3 = Math.floor(e3) % 60, v2 = Math.floor(e3 / 60) % 60, j2 = Math.floor(e3 / 60 / 60) % 60;
4188
+ }
4189
+ if (b2 = (6 + m2) % 7, t2.date_eval && (z2 = e2, w2 = m2 + f2 / $, n2.dateSpanLarge ? z2 < -694324 || w2 >= 35830291 : z2 < 0 || w2 >= 2958466)) {
4190
+ if (n2.dateErrorThrows) throw new Error("Date out of bounds");
4191
+ return n2.dateErrorNumber ? B(e2 < 0 ? [x2.negative] : [], 0, e2, x2).join("") : n2.overflow;
4192
+ }
4193
+ }
4194
+ var z2, w2;
4195
+ if (t2.int_padding && (l3 = t2.int_padding.length === 1 ? l3 || t2.int_padding : t2.int_padding.substring(0, t2.int_padding.length - l3.length) + l3), t2.num_padding && (i2 = t2.num_padding.length === 1 ? i2 || t2.num_padding : t2.num_padding.substring(0, t2.num_padding.length - i2.length) + i2), t2.den_padding && (s2 = t2.den_padding.length === 1 ? s2 || t2.den_padding : s2 + t2.den_padding.slice(s2.length)), t2.man_padding) {
4196
+ const e3 = t2.exp_plus ? "+" : "";
4197
+ r2 = t2.man_padding.length === 1 ? (d2 < 0 ? "-" : e3) + (r2 || t2.man_padding) : (d2 < 0 ? "-" : e3) + t2.man_padding.slice(0, t2.man_padding.length - r2.length) + r2;
4198
+ }
4199
+ const D2 = [];
4200
+ let S2 = 0;
4201
+ const C2 = { int: 0, frac: 0, man: 0, num: 0, den: 0 };
4202
+ for (let d3 = 0, u2 = t2.tokens.length; d3 < u2; d3++) {
4203
+ const u3 = t2.tokens[d3], c2 = u3.num ? u3.num.length : 0;
4204
+ if (u3.type === "string") u3.rule ? u3.rule === "num" ? F2 ? D2.push(u3.value) : (t2.num_min > 0 || t2.den_min > 0) && D2.push(u3.value.replace(/./g, y["?"])) : u3.rule === "num+int" ? F2 && l3 ? D2.push(u3.value) : t2.den_min > 0 && (l3 || t2.num_min) && D2.push(u3.value.replace(/./g, y["?"])) : u3.rule === "den" && (F2 ? D2.push(u3.value) : (t2.den_min > 0 || t2.den_min > 0) && D2.push(u3.value.replace(/./g, y["?"]))) : D2.push(u3.value);
4205
+ else if (u3.type === "error") D2.push(n2.invalid);
4206
+ else if (u3.type === "point") D2.push(t2.date ? u3.value : x2.decimal);
4207
+ else if (u3.type === "general") B(D2, 0, e2, x2);
4208
+ else if (u3.type === "exp") D2.push(x2.exponent);
4209
+ else if (u3.type === "minus") u3.volatile && t2.date || u3.volatile && (e2 >= 0 || typeof e2 != "number") || (u3.volatile && !t2.fractions && (t2.integer || t2.dec_fractions) ? (e2 < 0 && l3 && l3 !== "0" || o2) && D2.push(x2.negative) : D2.push(x2.negative));
4210
+ else if (u3.type === "plus") D2.push(x2.positive);
4211
+ else if (u3.type === "text") D2.push(e2);
4212
+ else if (u3.type === "div") F2 ? D2.push("/") : t2.num_min > 0 || t2.den_min > 0 ? D2.push(y["?"]) : D2.push(y["#"]);
4213
+ else if (u3.type === "int") if (t2.int_pattern.length === 1) D2.push(l3);
4214
+ else {
4215
+ const e3 = S2 ? t2.int_pattern.join("").length - C2.int : 1 / 0, n3 = S2 === t2.int_pattern.length - 1 ? 0 : t2.int_pattern.join("").length - (C2.int + u3.num.length);
4216
+ D2.push(l3.substring(l3.length - e3, l3.length - n3)), S2++, C2.int += u3.num.length;
4217
+ }
4218
+ else if (u3.type === "frac") {
4219
+ const e3 = C2.frac;
4220
+ for (let t3 = 0; t3 < c2; t3++) D2.push(o2[t3 + e3] || y[u3.num[t3]]);
4221
+ C2.frac += c2;
4222
+ } else if (u3.type in W) t2[u3.type + "_pattern"].length === 1 ? (u3.type === "int" && D2.push(l3), u3.type === "frac" && D2.push(o2), u3.type === "man" && D2.push(r2), u3.type === "num" && D2.push(i2), u3.type === "den" && D2.push(s2)) : (D2.push(W[u3.type].slice(C2[u3.type], C2[u3.type] + c2)), C2[u3.type] += c2);
4223
+ else if (u3.type === "year") g2 < 0 && D2.push(x2.negative), D2.push(String(Math.abs(g2)).padStart(4, "0"));
4224
+ else if (u3.type === "year-short") {
4225
+ const e3 = g2 % 100;
4226
+ D2.push(e3 < 10 ? "0" : "", e3);
4227
+ } else if (u3.type === "month") D2.push(u3.pad && h2 < 10 ? "0" : "", h2);
4228
+ else if (u3.type === "monthname-single") t2.date_system === 6 ? D2.push(x2.mmmm6[h2 - 1].charAt(0)) : D2.push(x2.mmmm[h2 - 1].charAt(0));
4229
+ else if (u3.type === "monthname-short") t2.date_system === 6 ? D2.push(x2.mmm6[h2 - 1]) : D2.push(x2.mmm[h2 - 1]);
4230
+ else if (u3.type === "monthname") t2.date_system === 6 ? D2.push(x2.mmmm6[h2 - 1]) : D2.push(x2.mmmm[h2 - 1]);
4231
+ else if (u3.type === "weekday-short") D2.push(x2.ddd[b2]);
4232
+ else if (u3.type === "weekday") D2.push(x2.dddd[b2]);
4233
+ else if (u3.type === "day") D2.push(u3.pad && _2 < 10 ? "0" : "", _2);
4234
+ else if (u3.type === "hour") {
4235
+ const e3 = j2 % t2.clock || (t2.clock < 24 ? t2.clock : 0);
4236
+ D2.push(u3.pad && e3 < 10 ? "0" : "", e3);
4237
+ } else if (u3.type === "min") D2.push(u3.pad && v2 < 10 ? "0" : "", v2);
4238
+ else if (u3.type === "sec") D2.push(u3.pad && M3 < 10 ? "0" : "", M3);
4239
+ else if (u3.type === "subsec") {
4240
+ D2.push(x2.decimal);
4241
+ const e3 = k2.toFixed(t2.sec_decimals);
4242
+ D2.push(e3.slice(2, 2 + u3.decimals));
4243
+ } else if (u3.type === "am") {
4244
+ const e3 = j2 < 12 ? 0 : 1;
4245
+ u3.short && !a2 ? D2.push("AP"[e3]) : D2.push(x2.ampm[e3]);
4246
+ } else if (u3.type === "hour-elap") {
4247
+ e2 < 0 && D2.push(x2.negative);
4248
+ const t3 = 24 * m2 + Math.floor(Math.abs(f2) / 3600);
4249
+ D2.push(String(Math.abs(t3)).padStart(u3.pad, "0"));
4250
+ } else if (u3.type === "min-elap") {
4251
+ e2 < 0 && D2.push(x2.negative);
4252
+ const t3 = 1440 * m2 + Math.floor(Math.abs(f2) / 60);
4253
+ D2.push(String(Math.abs(t3)).padStart(u3.pad, "0"));
4254
+ } else if (u3.type === "sec-elap") {
4255
+ e2 < 0 && D2.push(x2.negative);
4256
+ const t3 = m2 * $ + Math.abs(f2);
4257
+ D2.push(String(Math.abs(t3)).padStart(u3.pad, "0"));
4258
+ } else if (u3.type === "b-year") D2.push(g2 + 543);
4259
+ else if (u3.type === "b-year-short") {
4260
+ const e3 = (g2 + 543) % 100;
4261
+ D2.push(e3 < 10 ? "0" : "", e3);
4262
+ }
4263
+ }
4264
+ return n2.nbsp ? D2.join("") : D2.join("").replace(/\u00a0/g, " ");
4265
+ }
4266
+ __name(K, "K");
4267
+ function q(e2, t2) {
4268
+ for (let n2 = 0; n2 < 3; n2++) {
4269
+ const a2 = t2[n2];
4270
+ if (a2) {
4271
+ let t3;
4272
+ if (a2.condition) {
4273
+ const n3 = a2.condition[0], r2 = a2.condition[1];
4274
+ n3 === "=" ? t3 = e2 === r2 : n3 === ">" ? t3 = e2 > r2 : n3 === "<" ? t3 = e2 < r2 : n3 === ">=" ? t3 = e2 >= r2 : n3 === "<=" ? t3 = e2 <= r2 : n3 === "<>" && (t3 = e2 !== r2);
4275
+ } else t3 = !0;
4276
+ if (t3) return a2;
4277
+ }
4278
+ }
4279
+ }
4280
+ __name(q, "q");
4281
+ const V = z("@"), Q = "black", X = {};
4282
+ function ee(e2, t2) {
4283
+ if (e2) {
4284
+ const n2 = e2[0];
4285
+ t2[n2] = t2[n2] || {}, ee(e2.slice(1), t2[n2]);
4286
+ } else t2.$ = !0;
4287
+ }
4288
+ __name(ee, "ee"), ["d-F-y", "d-F-Y", "d-M-y", "d-M-Y", "F-d-y", "F-d-Y", "F-j-y", "F-j-Y", "j-F-y", "j-F-Y", "j-M-y", "j-M-Y", "M-d-y", "M-d-Y", "M-j-y", "M-j-Y", "m-d-y", "m-d-Y", "m-j-y", "m-j-Y", "n-d-y", "n-d-Y", "n-j-y", "n-j-Y", "y-F-d", "y-F-j", "y-M-d", "y-M-j", "Y-F-d", "Y-F-j", "Y-M-d", "Y-m-d", "Y-M-j", "Y-m-j", "Y-n-d", "Y-n-j", "j-F", "j-M", "d-F", "d-M", "n-d", "n-j", "n-Y", "m-d", "m-j", "m-Y", "M-Y", "M-y", "F-y", "F-Y", "Y-M", "Y-n", "Y-m", "Y-F", "Y-M"].forEach((e2) => {
4289
+ ee(e2, X), ee(e2 + " x", X), ee(e2 + " l", X), ee(e2 + " l x", X), ee("l " + e2, X), ee("l " + e2 + " x", X), ee(e2 + " D", X), ee(e2 + " D x", X), ee("D " + e2, X), ee("D " + e2 + " x", X);
4290
+ });
4291
+ const te = { jan: 1, feb: 2, mar: 3, apr: 4, may: 5, jun: 6, jul: 7, aug: 8, sep: 9, oct: 10, nov: 11, dec: 12 }, ne = { january: 1, february: 2, march: 3, april: 4, june: 6, july: 7, august: 8, september: 9, october: 10, november: 11, december: 12 }, ae = { sunday: "l", monday: "l", tuesday: "l", wednesday: "l", thursday: "l", friday: "l", saturday: "l", sun: "D", mon: "D", tue: "D", wed: "D", thu: "D", fri: "D", sat: "D" }, re = (/* @__PURE__ */ new Date()).getUTCFullYear();
4292
+ function ie(e2) {
4293
+ const t2 = new RegExp("^([\\s+%" + j.join("") + "(-]*)(((?:(?:\\d[\\d,]*)(?:\\.\\d*)?|(?:\\.\\d+)))([eE][+-]?\\d+)?)([\\s%" + j.join("") + ")]*)$").exec(e2);
4294
+ if (t2) {
4295
+ const [, e3, n2, a2, r2, i2] = t2;
4296
+ let s2 = 1, o2 = "", l3 = !1, d2 = !1, m2 = !1, u2 = !1, c2 = !1, p2 = null, f2 = !1, g2 = parseFloat(n2.replace(/,/g, ""));
4297
+ if (!isFinite(g2)) return null;
4298
+ for (let t3 = 0; t3 < e3.length; t3++) {
4299
+ const n3 = e3[t3];
4300
+ if (n3 === "-") {
4301
+ if (l3 || d2) return null;
4302
+ l3 = !0, s2 = -1;
4303
+ } else if (v.test(n3)) {
4304
+ if (c2) return null;
4305
+ c2 = !0, p2 = n3;
4306
+ } else if (n3 === "(") {
4307
+ if (d2 || l3) return null;
4308
+ d2 = !0, s2 = -1;
4309
+ } else if (n3 === "%") {
4310
+ if (u2) return null;
4311
+ u2 = !0;
4312
+ }
4313
+ }
4314
+ for (let e4 = 0; e4 < i2.length; e4++) {
4315
+ const t3 = i2[e4];
4316
+ if (v.test(t3)) {
4317
+ if (c2) return null;
4318
+ c2 = !0, p2 = t3, f2 = !0;
4319
+ } else if (t3 === ")") {
4320
+ if (m2 || !d2) return null;
4321
+ m2 = !0;
4322
+ } else if (t3 === "%") {
4323
+ if (u2) return null;
4324
+ u2 = !0;
4325
+ }
4326
+ }
4327
+ if (r2) {
4328
+ if (u2 || c2) return null;
4329
+ o2 = "0.00E+00";
4330
+ } else if (u2) {
4331
+ if (c2) return null;
4332
+ o2 = a2.includes(".") ? "0.00%" : "0%", g2 *= 0.01;
4333
+ } else if (c2) {
4334
+ const e4 = a2.includes(".") ? "#,##0.00" : "#,##0";
4335
+ o2 = f2 ? e4 + p2 : p2 + e4;
4336
+ } else a2.includes(",") && (o2 = a2.includes(".") ? "#,##0.00" : "#,##0");
4337
+ const h2 = { v: g2 * s2 };
4338
+ return o2 && (h2.z = o2), h2;
4339
+ }
4340
+ }
4341
+ __name(ie, "ie");
4342
+ const se = /* @__PURE__ */ __name((e2, t2, n2) => {
4343
+ const a2 = n2.path || "", r2 = Object.keys(t2);
4344
+ for (let i2 = 0; i2 < r2.length; i2++) {
4345
+ let s2;
4346
+ const o2 = r2[i2];
4347
+ if (t2[o2]) {
4348
+ if (o2 === "$" || o2 === "€") e2 || (s2 = n2);
4349
+ else if (o2 === "-") {
4350
+ const r3 = /^(\s*([./-]|,\s)\s*|\s+)/.exec(e2);
4351
+ if (r3) {
4352
+ const i3 = r3[1] === "-" || r3[1] === "/" || r3[1] === "." ? r3[1] : " ";
4353
+ if (!n2.sep || n2.sep === i3) {
4354
+ const l3 = r3[0].replace(/\s+/g, " ");
4355
+ s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, sep: i3, path: a2 + l3 });
4356
+ }
4357
+ }
4358
+ } else if (o2 === " ") {
4359
+ const r3 = /^[,.]?\s+/.exec(e2);
4360
+ if (r3) {
4361
+ const i3 = r3[0].replace(/\s+/g, " ");
4362
+ s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, path: a2 + i3 });
4363
+ }
4364
+ } else if (o2 === "j" || o2 === "d") {
4365
+ const r3 = /^(0?[1-9]|1\d|2\d|3[01])\b/.exec(e2);
4366
+ r3 && (s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, day: r3[0], path: a2 + o2 }));
4367
+ } else if (o2 === "n" || o2 === "m") {
4368
+ const r3 = /^(0?[1-9]|1[012])\b/.exec(e2);
4369
+ r3 && (s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, month: +r3[0], _mon: r3[0], path: a2 + o2 }));
4370
+ } else if (o2 === "F" || o2 === "M") {
4371
+ const r3 = /^([a-z]{3,9})\b/i.exec(e2), i3 = r3 && (o2 === "F" ? ne : te)[r3[0].toLowerCase()];
4372
+ i3 && (s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, month: i3, _mon: r3[0], path: a2 + o2 }));
4373
+ } else if (o2 === "l" || o2 === "D") {
4374
+ const r3 = /^([a-z]{3,9})\b/i.exec(e2);
4375
+ (r3 && ae[r3[0].toLowerCase()]) === o2 && (s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, path: a2 + o2 }));
4376
+ } else if (o2 === "y") {
4377
+ const r3 = /^\d\d\b/.exec(e2);
4378
+ if (r3) {
4379
+ const i3 = +r3[0] >= 30 ? +r3[0] + 1900 : +r3[0] + 2e3;
4380
+ s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, year: i3, path: a2 + o2 });
4381
+ }
4382
+ } else if (o2 === "Y") {
4383
+ const r3 = /^\d\d\d\d\b/.exec(e2);
4384
+ r3 && (s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, year: +r3[0], path: a2 + o2 }));
4385
+ } else {
4386
+ if (o2 !== "x") throw new Error('Unknown date token "'.concat(o2, '"'));
4387
+ {
4388
+ const r3 = le(e2);
4389
+ r3 && (s2 = se("", t2[o2], { ...n2, time: r3.v, tf: r3.z, path: a2 + o2 }));
4390
+ }
4391
+ }
4392
+ if (s2) return s2;
4393
+ }
4394
+ }
4395
+ }, "se");
4396
+ function oe(e2, t2) {
4397
+ const n2 = se(e2.trim(), X, { path: "" });
4398
+ if (n2) {
4399
+ var a2;
4400
+ if (n2.sep === "." && n2.path.length === 3) return null;
4401
+ const e3 = +((a2 = n2.year) !== null && a2 !== void 0 ? a2 : re);
4402
+ if (n2.day || (n2.day = 1), !function(e4, t3, n3) {
4403
+ if (n3 < 1 || t3 < 1 || t3 > 12) return !1;
4404
+ if (t3 === 2) {
4405
+ if (n3 > (e4 % 4 == 0 && e4 % 100 != 0 || e4 % 400 == 0 || e4 === 1900 ? 29 : 28)) return !1;
4406
+ } else if ((t3 === 4 || t3 === 6 || t3 === 9 || t3 === 11) && n3 > 30 || (t3 === 1 || t3 === 3 || t3 === 5 || t3 === 7 || t3 === 8 || t3 === 10 || t3 === 12) && n3 > 31) return !1;
4407
+ return !0;
4408
+ }(e3, n2.month, n2.day)) return null;
4409
+ let r2 = -1 / 0;
4410
+ if (e3 < 1900) return null;
4411
+ e3 <= 1900 && n2.month <= 2 ? r2 = 25568 : e3 < 1e4 && (r2 = 25569);
4412
+ const i2 = Date.UTC(e3, n2.month - 1, n2.day) / 864e5 + r2 + (n2.time || 0);
4413
+ if (i2 >= 0 && i2 <= 2958465) {
4414
+ const e4 = n2._mon[0] === "0" || n2.day[0] === "0" || n2._mon.length === 2 && n2.day.length === 2, a3 = n2.path.replace(/[jdlDnmMFyYx-]/g, (t3) => t3 === "j" || t3 === "d" ? e4 ? "dd" : "d" : t3 === "D" ? "ddd" : t3 === "l" ? "dddd" : t3 === "n" || t3 === "m" ? e4 ? "mm" : "m" : t3 === "M" ? "mmm" : t3 === "F" ? "mmmm" : t3 === "y" ? "yy" : t3 === "x" ? n2.tf || "" : t3 === "Y" ? "yyyy" : t3);
4415
+ return t2 && t2.nativeDate ? { v: I2(i2, t2), z: a3 } : { v: i2, z: a3 };
4416
+ }
4417
+ }
4418
+ return null;
4419
+ }
4420
+ __name(oe, "oe");
4421
+ function le(e2) {
4422
+ const t2 = /^\s*([10]?\d|2[0-4])(?::([0-5]\d|\d))?(?::([0-5]\d|\d))?(\.\d{1,10})?(?:\s*([AP])M?)?\s*$/i.exec(e2);
4423
+ if (t2) {
4424
+ const [, e3, n2, a2, r2, i2] = t2;
4425
+ if (r2 && !a2 || !i2 && !n2 && !a2) return null;
4426
+ let s2 = 1 * (e3 || 0);
4427
+ if (i2) {
4428
+ if (s2 >= 13) return null;
4429
+ i2[0] !== "p" && i2[0] !== "P" || (s2 += 12);
4430
+ }
4431
+ return { v: (60 * s2 * 60 + 60 * (1 * (n2 || 0)) + 1 * (a2 || 0) + 1 * (r2 || 0)) / 86400, z: (e3.length === 2 ? "hh" : "h") + ":mm" + (a2 ? ":ss" : "") + (i2 ? " AM/PM" : "") };
4432
+ }
4433
+ return null;
4434
+ }
4435
+ __name(le, "le");
4436
+ function de(e2) {
4437
+ return /^\s*true\s*$/i.test(e2) ? { v: !0 } : /^\s*false\s*$/i.test(e2) ? { v: !1 } : null;
4438
+ }
4439
+ __name(de, "de");
4440
+ const me = {};
4441
+ function ue(e2, t2) {
4442
+ const { pattern: n2, partitions: a2, locale: r2 } = e2, i2 = /* @__PURE__ */ __name((e3) => {
4443
+ const n3 = Object.assign({}, h(), t2, e3);
4444
+ return r2 && (n3.locale = r2), n3;
4445
+ }, "i"), s2 = /* @__PURE__ */ __name((e3, t3) => {
4446
+ const n3 = i2(t3);
4447
+ return function(e4, t4, n4) {
4448
+ const a3 = l2(n4.locale), r3 = t4[3] ? t4[3] : V;
4449
+ if (typeof e4 == "boolean" && (e4 = e4 ? "TRUE" : "FALSE"), e4 == null) return "";
4450
+ if (typeof e4 != "number") return K(e4, r3, n4, a3);
4451
+ if (!isFinite(e4)) {
4452
+ const t5 = a3 || u;
4453
+ return isNaN(e4) ? t5.nan : (e4 < 0 ? t5.negative : "") + t5.infinity;
4454
+ }
4455
+ const i3 = q(e4, t4);
4456
+ return i3 ? K(e4, i3, n4, a3) : n4.overflow;
4457
+ }(P(e3, n3), a2, n3);
4458
+ }, "s");
4459
+ s2.color = (e3, t3) => function(e4, t4) {
4460
+ if (typeof e4 != "number" || !isFinite(e4)) return (t4[3] ? t4[3].color : V.color) || Q;
4461
+ const n3 = q(e4, t4);
4462
+ return n3 && n3.color || Q;
4463
+ }(P(e3, i2(t3)), a2);
4464
+ const o2 = function(e3) {
4465
+ var t3;
4466
+ let n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
4467
+ const [a3, r3] = e3, i3 = a3.frac_max, s3 = { type: "general", isDate: J(e3), isText: L2(e3), isPercent: O(e3), maxDecimals: a3.general ? 9 : i3, scale: (t3 = a3.scale) !== null && t3 !== void 0 ? t3 : 1, color: 0, parentheses: 0, grouped: a3.grouping ? 1 : 0, _partitions: e3 }, o3 = !s3.isDate && !s3.isText && !a3.error && a3.tokens.some((e4) => e4.type === "string" && (n3 ? e4.value === n3 : v.test(e4.value)));
4468
+ let l3 = "G", d2 = i3 >= 0 ? Math.min(15, i3) : "", m2 = "", u2 = "";
4469
+ if (r3 && r3.color && (u2 = "-", s3.color = 1), a3.parens && (m2 = "()", s3.parentheses = 1), o3) l3 = "C", s3.type = "currency";
4470
+ else if (a3.error) s3.type = "error", s3.maxDecimals = 0;
4471
+ else if (s3.isDate) {
4472
+ let e4 = 0, t4 = 0, n4 = "";
4473
+ a3.tokens.forEach((a4) => {
4474
+ const r5 = a4.type;
4475
+ /^(b-)?year/.test(r5) ? (n4 += "Y", t4++) : r5.startsWith("month") ? (n4 += "M", t4++) : /^(week)?day/.test(r5) ? (n4 += "D", t4++) : r5 !== "hour" && r5 !== "min" && r5 !== "sec" && r5 !== "am" || (n4 += r5[0], e4++);
4476
+ }), s3.type = "date", t4 && e4 ? s3.type = "datetime" : !t4 && e4 && (s3.type = "time");
4477
+ const r4 = R.find((e5) => n4.startsWith(e5[0]));
4478
+ l3 = r4 ? "D" : "G", d2 = r4 ? r4[1] : "";
4479
+ } else s3.isText ? (l3 = "G", s3.type = "text", d2 = "", s3.maxDecimals = 0) : a3.general ? (l3 = "G", s3.type = "general", d2 = "") : a3.fractions ? (l3 = "G", s3.type = "fraction", d2 = "") : a3.exponential ? (l3 = "S", s3.type = "scientific") : s3.isPercent ? (l3 = "P", s3.type = "percent") : a3.grouping ? (l3 = ",", s3.type = "grouped") : (a3.int_max || i3) && (l3 = "F", s3.type = "number");
4480
+ return s3.code = l3 + d2 + u2 + m2, s3.level = U[s3.type], Object.freeze(s3);
4481
+ }(a2, (t2 || {}).currency) || new SyntaxError();
4482
+ return s2.info = o2, s2.dateInfo = function(e3) {
4483
+ const [t3] = e3;
4484
+ return { year: !!(2 & t3.date), month: !!(4 & t3.date), day: !!(8 & t3.date), hours: !!(16 & t3.date), minutes: !!(32 & t3.date), seconds: !!(64 & t3.date), clockType: t3.clock === 12 ? 12 : 24 };
4485
+ }(a2), s2.isPercent = () => !!o2.isPercent, s2.isDate = () => !!o2.isDate, s2.isText = () => !!o2.isText, s2.pattern = n2, e2.error && (s2.error = e2.error), s2.options = i2, s2.locale = r2 || t2 && t2.locale || "", Object.freeze(s2);
4486
+ }
4487
+ __name(ue, "ue");
4488
+ function ce(e2, t2) {
4489
+ e2 || (e2 = "General");
4490
+ let n2 = null;
4491
+ return me[e2] ? n2 = me[e2] : (n2 = Object.assign({}, h(), t2).throws ? D(e2) : function(e3) {
4492
+ try {
4493
+ return D(e3);
4494
+ } catch (t3) {
4495
+ const n3 = { tokens: [{ type: "error" }], error: t3.message };
4496
+ return { pattern: e3, partitions: [n3, n3, n3, n3], error: t3.message, locale: null };
4497
+ }
4498
+ }(e2), n2.error || (me[e2] = n2)), ue(n2, t2);
4499
+ }
4500
+ __name(ce, "ce"), ce.isDate = (e2) => ce(e2, { throws: !1 }).isDate(), ce.isPercent = (e2) => ce(e2, { throws: !1 }).isPercent(), ce.isText = (e2) => ce(e2, { throws: !1 }).isText(), ce.getInfo = (e2, t2) => ce(e2, { ...t2, throws: !1 }).info, ce.getDateInfo = (e2, t2) => ce(e2, { ...t2, throws: !1 }).dateInfo, ce.dateToSerial = P, ce.dateFromSerial = I2, ce.options = h, ce.dec2frac = p, ce.round = c, ce.codeToLocale = n, ce.parseLocale = s, ce.getLocale = l2, ce.addLocale = (e2, t2) => {
4501
+ const n2 = s(t2);
4502
+ return delete me[n2.lang], delete me[n2.language], m(e2, n2);
4503
+ }, ce.format = function(e2, t2, n2) {
4504
+ let a2 = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
4505
+ const r2 = n2 && typeof n2 == "object" ? n2 : { locale: n2, throws: !a2 };
4506
+ return ce(e2, r2)(P(t2, r2), r2);
4507
+ }, ce.is_date = ce.isDate, ce.parseNumber = ie, ce.parseDate = oe, ce.parseTime = le, ce.parseBool = de, ce.parseValue = function(e2, t2) {
4508
+ var n2, a2, r2;
4509
+ return (n2 = (a2 = (r2 = ie(e2)) !== null && r2 !== void 0 ? r2 : oe(e2, t2)) !== null && a2 !== void 0 ? a2 : le(e2)) !== null && n2 !== void 0 ? n2 : de(e2);
4510
+ };
4511
+ var pe = ce;
4512
+ return t = t.default;
4513
+ }();
4514
+ });
4515
+ })(numfmt$1);
4516
+ var numfmtExports = numfmt$1.exports, numfmt = numfmtExports;
4517
+ const index$2 = /* @__PURE__ */ getDefaultExportFromCjs(numfmt), DEFAULT_RANGE_ARRAY = {
3745
4518
  sheetId: "",
3746
4519
  range: {
3747
4520
  startRow: -1,
@@ -3848,7 +4621,8 @@ const DEFAULT_RANGE_ARRAY = {
3848
4621
  r: 0,
3849
4622
  b: 0,
3850
4623
  l: 0
3851
- }
4624
+ },
4625
+ n: null
3852
4626
  }, DEFAULT_SLIDE = {
3853
4627
  id: "default_slide",
3854
4628
  title: "defaultSlide",
@@ -5029,7 +5803,10 @@ var IdleValue = (
5029
5803
  var accessor = {
5030
5804
  get: /* @__PURE__ */ __name(function(id, quantityOrLookup, lookUp) {
5031
5805
  return _this._get(id, quantityOrLookup, lookUp);
5032
- }, "get")
5806
+ }, "get"),
5807
+ has: /* @__PURE__ */ __name(function(id) {
5808
+ return _this.has(id);
5809
+ }, "has")
5033
5810
  };
5034
5811
  return cb.apply(void 0, __spreadArray$1([accessor], args, !1));
5035
5812
  }, Injector2.prototype.has = function(id) {
@@ -5082,7 +5859,7 @@ var IdleValue = (
5082
5859
  return this.resolvedDependencyCollection.add(id, thing), thing;
5083
5860
  }, Injector2.prototype._resolveClass = function(id, item, shouldCache) {
5084
5861
  var _this = this;
5085
- shouldCache === void 0 && (shouldCache = !0), item.useClass;
5862
+ shouldCache === void 0 && (shouldCache = !0);
5086
5863
  var thing;
5087
5864
  if (item.lazy) {
5088
5865
  var idle_1 = new IdleValue(function() {
@@ -5796,7 +6573,7 @@ function H(E) {
5796
6573
  return !!(E && E.code && E.code !== N.OK && E.code !== "OK");
5797
6574
  }
5798
6575
  __name(H, "H");
5799
- var I = /* @__PURE__ */ ((E) => (E[E.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", E[E.UNIVER_DOC = 1] = "UNIVER_DOC", E[E.UNIVER_SHEET = 2] = "UNIVER_SHEET", E[E.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(I || {}), L = /* @__PURE__ */ ((E) => (E[E.SomeCollaborator = 0] = "SomeCollaborator", E[E.AllCollaborator = 1] = "AllCollaborator", E[E.OneSelf = 2] = "OneSelf", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(L || {}), M = /* @__PURE__ */ ((E) => (E[E.Reader = 0] = "Reader", E[E.Editor = 1] = "Editor", E[E.Owner = 2] = "Owner", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(M || {}), l = /* @__PURE__ */ ((E) => (E[E.Unkonwn = 0] = "Unkonwn", E[E.Workbook = 1] = "Workbook", E[E.Worksheet = 2] = "Worksheet", E[E.SelectRange = 3] = "SelectRange", E[E.Document = 4] = "Document", E[E.Slide = 5] = "Slide", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(l || {});
6576
+ var I = /* @__PURE__ */ ((E) => (E[E.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", E[E.UNIVER_DOC = 1] = "UNIVER_DOC", E[E.UNIVER_SHEET = 2] = "UNIVER_SHEET", E[E.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", E[E.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(I || {}), L = /* @__PURE__ */ ((E) => (E[E.SomeCollaborator = 0] = "SomeCollaborator", E[E.AllCollaborator = 1] = "AllCollaborator", E[E.OneSelf = 2] = "OneSelf", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(L || {}), M = /* @__PURE__ */ ((E) => (E[E.Reader = 0] = "Reader", E[E.Editor = 1] = "Editor", E[E.Owner = 2] = "Owner", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(M || {}), l = /* @__PURE__ */ ((E) => (E[E.Unkonwn = 0] = "Unkonwn", E[E.Workbook = 1] = "Workbook", E[E.Worksheet = 2] = "Worksheet", E[E.SelectRange = 3] = "SelectRange", E[E.Document = 4] = "Document", E[E.Slide = 5] = "Slide", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(l || {});
5800
6577
  const _UnitModel = class _UnitModel extends Disposable {
5801
6578
  };
5802
6579
  __name(_UnitModel, "UnitModel");
@@ -6520,7 +7297,7 @@ function coverTextRuns(updateDataTextRuns, removeTextRuns, coverType) {
6520
7297
  }
6521
7298
  pushPendingAndReturnStatus();
6522
7299
  const tempTopTextRun = newUpdateTextRuns[newUpdateTextRuns.length - 1], updateLastTextRun = updateDataTextRuns[updateLength - 1], removeLastTextRun = removeTextRuns[removeLength - 1];
6523
- return tempTopTextRun.ed !== Math.max(updateLastTextRun.ed, removeLastTextRun.ed) && (updateLastTextRun.ed > removeLastTextRun.ed ? newUpdateTextRuns.push(updateLastTextRun) : newUpdateTextRuns.push(removeLastTextRun)), normalizeTextRuns(newUpdateTextRuns);
7300
+ return tempTopTextRun && tempTopTextRun.ed !== Math.max(updateLastTextRun.ed, removeLastTextRun.ed) && (updateLastTextRun.ed > removeLastTextRun.ed ? newUpdateTextRuns.push(updateLastTextRun) : newUpdateTextRuns.push(removeLastTextRun)), normalizeTextRuns(newUpdateTextRuns);
6524
7301
  }
6525
7302
  __name(coverTextRuns, "coverTextRuns");
6526
7303
  function updateParagraphs(body, updateBody, textLength, currentIndex, coverType) {
@@ -9913,7 +10690,7 @@ function extractPureTextFromCell(cell) {
9913
10690
  return typeof rawValue == "string" ? cell.t === CellValueType.BOOLEAN ? rawValue.toUpperCase() : rawValue.replace(/[\r\n]/g, "") : typeof rawValue == "number" ? cell.t === CellValueType.BOOLEAN ? rawValue ? "TRUE" : "FALSE" : rawValue.toString() : typeof rawValue == "boolean" ? rawValue ? "TRUE" : "FALSE" : "";
9914
10691
  }
9915
10692
  __name(extractPureTextFromCell, "extractPureTextFromCell");
9916
- const version = "0.2.7";
10693
+ const version = "0.2.8";
9917
10694
  function getEmptySnapshot(unitID = "", locale = LocaleType.ZH_CN, name = "") {
9918
10695
  return {
9919
10696
  id: unitID,
@@ -10608,7 +11385,7 @@ const _PermissionService = class _PermissionService extends Disposable {
10608
11385
  if (!permissionPoint)
10609
11386
  return;
10610
11387
  const subject = permissionPoint.getValue();
10611
- subject.value = value, subject.status = PermissionStatus.DONE, permissionPoint.next({ ...subject }), this._permissionPointUpdate$.next(subject);
11388
+ subject.value = value, subject.status = PermissionStatus.DONE, permissionPoint.next(subject), this._permissionPointUpdate$.next(subject);
10612
11389
  }
10613
11390
  clearPermissionMap() {
10614
11391
  this._permissionPointMap.clear();
@@ -11331,39 +12108,13 @@ let AuthzIoLocalService = (_a12 = class {
11331
12108
  }
11332
12109
  return id;
11333
12110
  }
11334
- async allowed(config) {
11335
- var _a13;
11336
- if (this._permissionMap.has(config.objectID)) {
11337
- const rule = this._permissionMap.get(config.objectID);
11338
- if (rule && rule.objectType === l.Worksheet)
11339
- return (_a13 = rule == null ? void 0 : rule.strategies) == null ? void 0 : _a13.map((s) => ({
11340
- action: s.action,
11341
- allowed: s.role === M.Editor
11342
- }));
11343
- }
11344
- return config.actions.map((a) => ({
11345
- action: a,
11346
- allowed: this._getRole(M.Owner) || this._getRole(M.Editor)
11347
- }));
12111
+ async allowed(_config) {
12112
+ return Promise.resolve([]);
11348
12113
  }
11349
- async batchAllowed(config) {
11350
- const user = this._userManagerService.getCurrentUser(), defaultValue = config.map((item) => ({
11351
- unitID: item.unitID,
11352
- objectID: item.objectID,
11353
- actions: item.actions.map((action) => ({
11354
- action,
11355
- allowed: !1
11356
- }))
11357
- }));
11358
- return user && (isDevRole(user.userID, M.Owner) || isDevRole(user.userID, M.Editor)) ? config.map((item) => ({
11359
- unitID: item.unitID,
11360
- objectID: item.objectID,
11361
- actions: item.actions.map((action) => ({
11362
- action,
11363
- allowed: !0
11364
- }))
11365
- })) : defaultValue;
12114
+ async batchAllowed(_config) {
12115
+ return Promise.resolve([]);
11366
12116
  }
12117
+ // eslint-disable-next-line max-lines-per-function
11367
12118
  async list(config) {
11368
12119
  const result = [];
11369
12120
  return config.objectIDs.forEach((objectID) => {
@@ -11376,10 +12127,67 @@ let AuthzIoLocalService = (_a12 = class {
11376
12127
  name: rule.name,
11377
12128
  shareOn: !1,
11378
12129
  shareRole: M.Owner,
11379
- // TODO: @gggpound
11380
12130
  shareScope: -1,
11381
12131
  creator: createDefaultUser(M.Owner),
11382
- strategies: [],
12132
+ // mock data
12133
+ strategies: [
12134
+ {
12135
+ action: 6,
12136
+ role: 1
12137
+ },
12138
+ {
12139
+ action: 16,
12140
+ role: 1
12141
+ },
12142
+ {
12143
+ action: 17,
12144
+ role: 1
12145
+ },
12146
+ {
12147
+ action: 18,
12148
+ role: 1
12149
+ },
12150
+ {
12151
+ action: 19,
12152
+ role: 1
12153
+ },
12154
+ {
12155
+ action: 33,
12156
+ role: 1
12157
+ },
12158
+ {
12159
+ action: 34,
12160
+ role: 1
12161
+ },
12162
+ {
12163
+ action: 35,
12164
+ role: 1
12165
+ },
12166
+ {
12167
+ action: 36,
12168
+ role: 1
12169
+ },
12170
+ {
12171
+ action: 37,
12172
+ role: 1
12173
+ },
12174
+ {
12175
+ action: 38,
12176
+ role: 1
12177
+ },
12178
+ {
12179
+ action: 39,
12180
+ role: 1
12181
+ },
12182
+ {
12183
+ action: 40,
12184
+ role: 1
12185
+ },
12186
+ {
12187
+ action: 41,
12188
+ role: 1
12189
+ }
12190
+ ],
11383
12191
  actions: config.actions.map((a) => ({ action: a, allowed: this._getRole(M.Owner) || this._getRole(M.Editor) }))
11384
12192
  };
11385
12193
  result.push(item);
@@ -12496,6 +13304,7 @@ export {
12496
13304
  normalizeTextRuns,
12497
13305
  numberToABC,
12498
13306
  numberToListABC,
13307
+ index$2 as numfmt,
12499
13308
  orderSearchArray,
12500
13309
  queryObjectMatrix,
12501
13310
  remove,