@sheetxl/io-xlsx 0.8.0-beta.21 → 0.8.0-beta.22
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/browser/esm/{DPz0IeW70Nh4n8Wz.mjs → 2Tu0hkxKQVlv9Cra.mjs} +4 -4
- package/browser/esm/{B_Jfq-O7tght6ixL.mjs → B-gFy6wqDX1nS1H6.mjs} +733 -732
- package/browser/esm/{cG4z0eDMlE49HJvD.mjs → BksP77A3tWZz2uFZ.mjs} +4 -4
- package/browser/esm/{BoTT_U96McOdkuId.mjs → CSeKlqJLKPdaHQnM.mjs} +2 -2
- package/browser/esm/{D_5T8KKyirVCR3RO.mjs → Cx9ap9QP6pCr4onD.mjs} +2 -2
- package/browser/esm/{CGQXv_OxqwXL3F8q.mjs → DEQzaCJ7RX2QoCut.mjs} +1 -1
- package/browser/esm/{f-Z5vnvNnzj-0ujR.mjs → DKFJjTTJkuTmxyrC.mjs} +2 -2
- package/browser/esm/{D74i1p_CJmHw8HKb.mjs → Dm3PlbhnXRlbfwcc.mjs} +2 -2
- package/browser/esm/{CROAqUhKnVtkbBSm.mjs → TlUpdMxCXP6T7d5o.mjs} +1 -1
- package/browser/esm/{BCQs67LTVZ1xG82R.mjs → fw-xerhhOIbrtjj8.mjs} +2 -2
- package/browser/esm/{CNAv3IL7hhyvzLaF.mjs → hYm31nxQHahoYW47.mjs} +281 -275
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{CT1rO7_YWIvsG9hs.mjs → -4emwUa_cqmg0qom.mjs} +310 -309
- package/node/esm/{CoNllGglhnzJ6EJ4.mjs → B1_JjHLkB9GQt41F.mjs} +1 -1
- package/node/esm/{ZNTwnevSmMslvfiW.mjs → BaRyFsg1YMFUyXd4.mjs} +4 -4
- package/node/esm/{C0q_ulF7hl9zoVQ8.mjs → C1VsUbGfwY9-dlaU.mjs} +1 -1
- package/node/esm/{TN8KqnRPY-7Ln4Ez.mjs → C6HiyeKhrpNGFeb3.mjs} +2 -2
- package/node/esm/{CqhoZ8-FRZjS3p-D.mjs → CeRdSa9ObgI_mmCT.mjs} +324 -318
- package/node/esm/{CUPNuRm5G47rulaW.mjs → Dd0rxpiUIxg4BeeC.mjs} +2 -2
- package/node/esm/index.mjs +4 -4
- package/node/esm/{Bl5eH7YPk64NxkkI.mjs → yNj0KH21rJk2rfm7.mjs} +2 -2
- package/package.json +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.22
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { $n as t, $t as e, Ar as n, At as o, Bt as s, C as a, Cn as i, Cr as l, D as c, Dn as d, Dr as m, Dt as p, Er as f, Et as h, Fn as u, Ft as g, G as x, Gn as y, Gt as v, H as w, Hn as S, In as b, Ir as C, J as k, Jn as T, Jt as I, K as R, Kt as F, Mn as E, Mr as M, Mt as P, Nr as A, O as D, On as L, Or as _, Ot as N, Pr as $, Pt as B, Q as O, Qt as V, S as W, Sr as z, U as j, Un as X, Vt as H, W as U, X as q, Xt as J, Y as K, Yt as Y, Z, Zt as Q, _n as tt, _r as et, _t as nt, a as ot, an as rt, at as st, b as at, bn as it, c as lt, cn as ct, cr as dt, d as mt, dr as pt, dt as ft, en as ht, et as ut, fr as gt, ft as xt, g as yt, gn as vt, gr as wt, gt as St, h as bt, hn as Ct, hr as kt, ht as Tt, i as It, ir as Rt, jr as Ft, kn as Et, kr as Mt, kt as Pt, l as At, ln as Dt, lr as Lt, lt as _t, m as Nt, mr as $t, mt as Bt, nr as Ot, o as Vt, on as Wt, or as zt, pn as jt, pr as Xt, pt as Ht, q as Ut, qn as Gt, qt, r as Jt, rr as Kt, rt as Yt, s as Zt, sn as Qt, st as te, tt as ee, u as ne, un as oe, ur as re, ut as se, vn as ae, vr as ie, w as le, wn as ce, wr as de, x as me, xn as pe, xr as fe, y as he, yt as ue, zn as ge, zt as xe } from "./
|
|
7
|
+
import { $n as t, $t as e, Ar as n, At as o, Bt as s, C as a, Cn as i, Cr as l, D as c, Dn as d, Dr as m, Dt as p, Er as f, Et as h, Fn as u, Ft as g, G as x, Gn as y, Gt as v, H as w, Hn as S, In as b, Ir as C, J as k, Jn as T, Jt as I, K as R, Kt as F, Mn as E, Mr as M, Mt as P, Nr as A, O as D, On as L, Or as _, Ot as N, Pr as $, Pt as B, Q as O, Qt as V, S as W, Sr as z, U as j, Un as X, Vt as H, W as U, X as q, Xt as J, Y as K, Yt as Y, Z, Zt as Q, _n as tt, _r as et, _t as nt, a as ot, an as rt, at as st, b as at, bn as it, c as lt, cn as ct, cr as dt, d as mt, dr as pt, dt as ft, en as ht, et as ut, fr as gt, ft as xt, g as yt, gn as vt, gr as wt, gt as St, h as bt, hn as Ct, hr as kt, ht as Tt, i as It, ir as Rt, jr as Ft, kn as Et, kr as Mt, kt as Pt, l as At, ln as Dt, lr as Lt, lt as _t, m as Nt, mr as $t, mt as Bt, nr as Ot, o as Vt, on as Wt, or as zt, pn as jt, pr as Xt, pt as Ht, q as Ut, qn as Gt, qt, r as Jt, rr as Kt, rt as Yt, s as Zt, sn as Qt, st as te, tt as ee, u as ne, un as oe, ur as re, ut as se, vn as ae, vr as ie, w as le, wn as ce, wr as de, x as me, xn as pe, xr as fe, y as he, yt as ue, zn as ge, zt as xe } from "./C1VsUbGfwY9-dlaU.mjs";
|
|
8
8
|
import { EXCEL_FORMAT_KEYS as ye } from "./index.mjs";
|
|
9
|
-
import { a as ve, c as we, i as Se, l as be, n as Ce, t as ke } from "./
|
|
9
|
+
import { a as ve, c as we, i as Se, l as be, n as Ce, t as ke } from "./C6HiyeKhrpNGFeb3.mjs";
|
|
10
10
|
import { BufferUtils as Te, OverlappingRange as Ie, RangeAxis as Re } from "@sheetxl/utils";
|
|
11
11
|
import { AddressUtils as Fe, BufferUtils as Ee, Color as Me, CommonUtils as Pe, CoordUtils as Ae, FormulaError as De, FormulaText as Le, Hyperlink as _e, IBorders as Ne, ICellStyle as $e, IColor as Be, ICondition as Oe, IConditionalFormat as Ve, ICustomProperty as We, IEffect as ze, IFill as je, IFont as Xe, IFontCollection as He, IRange as Ue, IShape as Ge, ISheet as qe, IStroke as Je, ITextFrame as Ke, IWorkbookView as Ye, IWorksheetView as Ze, LicenseManager as Qe, NumberFormat as tn, Resource as en, RichArray as nn, RichRecord as on, RichText as rn, Scalar as sn, ScalarType as an, ShapeStyleUtils as ln, pivotCellFormatsOf as cn } from "@sheetxl/sdk";
|
|
12
12
|
import { BlobWriter as dn, TextReader as mn, TextWriter as pn, Uint8ArrayReader as fn, Uint8ArrayWriter as hn, ZipReader as un, ZipWriter as gn } from "@zip.js/zip.js";
|
|
@@ -3126,19 +3126,23 @@ var Ca = /* @__PURE__ */ new Set([
|
|
|
3126
3126
|
function ka(t) {
|
|
3127
3127
|
return (t.icon?.length ?? 0) > 0 || void 0 !== t.iconSet && !Ca.has(t.iconSet);
|
|
3128
3128
|
}
|
|
3129
|
-
function Ta(t
|
|
3129
|
+
function Ta(t) {
|
|
3130
|
+
return [t.minPoint ?? { type: Ve.ColorStopType.Min }, t.maxPoint ?? { type: Ve.ColorStopType.Max }];
|
|
3131
|
+
}
|
|
3132
|
+
var Ia = "#638EC6";
|
|
3133
|
+
function Ra(t, e, n, o, r, s, a, i, l) {
|
|
3130
3134
|
const c = o.scale;
|
|
3131
3135
|
o.ext && t.warn("Conditional format extension payload is not written to xlsx; it will be lost.");
|
|
3132
3136
|
const d = {
|
|
3133
3137
|
type: r.type,
|
|
3134
3138
|
dxfId: o.style && Object.keys(o.style).length > 0 ? i.add(o.style) : void 0,
|
|
3135
3139
|
priority: a,
|
|
3136
|
-
stopIfTrue:
|
|
3137
|
-
aboveAverage:
|
|
3138
|
-
equalAverage:
|
|
3140
|
+
stopIfTrue: Ma(o.stopIfTrue),
|
|
3141
|
+
aboveAverage: Ma(r.aboveAverage),
|
|
3142
|
+
equalAverage: Ma(r.equalAverage),
|
|
3139
3143
|
stdDev: r.stdDev,
|
|
3140
|
-
bottom:
|
|
3141
|
-
percent:
|
|
3144
|
+
bottom: Ma(r.bottom),
|
|
3145
|
+
percent: Ma(r.percent),
|
|
3142
3146
|
rank: r.rank,
|
|
3143
3147
|
operator: r.operator,
|
|
3144
3148
|
text: r.text,
|
|
@@ -3146,13 +3150,7 @@ function Ta(t, e, n, o, r, s, a, i, l) {
|
|
|
3146
3150
|
};
|
|
3147
3151
|
let m;
|
|
3148
3152
|
c?.type === Ve.ScaleType.DataBar && function(t) {
|
|
3149
|
-
|
|
3150
|
-
const e = t.stops, n = e ? e.length : 0;
|
|
3151
|
-
for (let t = 0; t < n; t++) {
|
|
3152
|
-
const n = e[t].type;
|
|
3153
|
-
if (n === Ve.ColorStopType.AutoMin || n === Ve.ColorStopType.AutoMax) return !0;
|
|
3154
|
-
}
|
|
3155
|
-
return !1;
|
|
3153
|
+
return !!(t.solidFill || t.borderColor || t.negativeFillColor || t.negativeBorderColor || t.axisColor || t.axisPosition || t.direction) || t.minPoint?.type === Ve.ColorStopType.AutoMin || t.maxPoint?.type === Ve.ColorStopType.AutoMax;
|
|
3156
3154
|
}(c) && (m = fe(Pe.uuidV4), l.push({
|
|
3157
3155
|
guid: m,
|
|
3158
3156
|
sqref: s,
|
|
@@ -3170,20 +3168,19 @@ function Ta(t, e, n, o, r, s, a, i, l) {
|
|
|
3170
3168
|
for (let o = 0; o < t.length; o++) No(e, n, t[o].color, "color");
|
|
3171
3169
|
e.end("colorScale");
|
|
3172
3170
|
} else if (c?.type === Ve.ScaleType.DataBar) {
|
|
3173
|
-
const t = c.stops ?? [];
|
|
3174
3171
|
e.start("dataBar", {
|
|
3175
3172
|
minLength: c.minLength ?? 0,
|
|
3176
3173
|
maxLength: c.maxLength ?? 100,
|
|
3177
|
-
showValue:
|
|
3174
|
+
showValue: Ma(c.showValue)
|
|
3178
3175
|
});
|
|
3179
|
-
|
|
3180
|
-
|
|
3176
|
+
const [t, o] = Ta(c);
|
|
3177
|
+
Sa(e, t), Sa(e, o), No(e, n, c.color ?? Ia, "color"), e.end("dataBar");
|
|
3181
3178
|
} else if (c?.type === Ve.ScaleType.IconSet) {
|
|
3182
3179
|
const t = c.stops ?? [];
|
|
3183
3180
|
e.start("iconSet", {
|
|
3184
3181
|
iconSet: c.iconSet,
|
|
3185
|
-
reverse:
|
|
3186
|
-
showValue:
|
|
3182
|
+
reverse: Ma(c.reverse),
|
|
3183
|
+
showValue: Ma(c.showValue)
|
|
3187
3184
|
});
|
|
3188
3185
|
for (let n = 0; n < t.length; n++) Sa(e, t[n]);
|
|
3189
3186
|
e.end("iconSet");
|
|
@@ -3194,7 +3191,7 @@ function Ta(t, e, n, o, r, s, a, i, l) {
|
|
|
3194
3191
|
}), e.start("x14:id"), e.text(m), e.end("x14:id"), e.end("ext"), e.end("extLst")), e.end("cfRule");
|
|
3195
3192
|
} else e.empty("cfRule", d);
|
|
3196
3193
|
}
|
|
3197
|
-
function
|
|
3194
|
+
function Fa(t) {
|
|
3198
3195
|
let e = Number.MAX_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER;
|
|
3199
3196
|
const o = t.split(" ");
|
|
3200
3197
|
for (let t = 0; t < o.length; t++) {
|
|
@@ -3207,7 +3204,7 @@ function Ia(t) {
|
|
|
3207
3204
|
colIndex: n
|
|
3208
3205
|
});
|
|
3209
3206
|
}
|
|
3210
|
-
function
|
|
3207
|
+
function Ea(t) {
|
|
3211
3208
|
if ("string" == typeof t) return t.split(",").join(" ");
|
|
3212
3209
|
if (Array.isArray(t)) {
|
|
3213
3210
|
const e = [];
|
|
@@ -3219,10 +3216,10 @@ function Ra(t) {
|
|
|
3219
3216
|
}
|
|
3220
3217
|
return Fe.rangeToString(t);
|
|
3221
3218
|
}
|
|
3222
|
-
function
|
|
3219
|
+
function Ma(t) {
|
|
3223
3220
|
if (void 0 !== t) return t ? "1" : "0";
|
|
3224
3221
|
}
|
|
3225
|
-
function
|
|
3222
|
+
function Pa(t) {
|
|
3226
3223
|
if ("string" != typeof t) return !1;
|
|
3227
3224
|
let e = !1;
|
|
3228
3225
|
for (let n = 0; n < t.length; n++) {
|
|
@@ -3232,12 +3229,12 @@ function Ea(t) {
|
|
|
3232
3229
|
}
|
|
3233
3230
|
return !1;
|
|
3234
3231
|
}
|
|
3235
|
-
function
|
|
3232
|
+
function Aa(t) {
|
|
3236
3233
|
const e = t.formulas, n = e ? e.length : 0;
|
|
3237
|
-
for (let t = 0; t < n; t++) if (
|
|
3234
|
+
for (let t = 0; t < n; t++) if (Pa(e[t])) return !0;
|
|
3238
3235
|
return !1;
|
|
3239
3236
|
}
|
|
3240
|
-
function
|
|
3237
|
+
function Da(t) {
|
|
3241
3238
|
let e = Number.MAX_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER;
|
|
3242
3239
|
const o = t.split(" ");
|
|
3243
3240
|
for (let t = 0; t < o.length; t++) {
|
|
@@ -3250,7 +3247,7 @@ function Pa(t) {
|
|
|
3250
3247
|
colIndex: n
|
|
3251
3248
|
};
|
|
3252
3249
|
}
|
|
3253
|
-
function
|
|
3250
|
+
function La(t, e, n) {
|
|
3254
3251
|
if ("string" != typeof t || !t || !e || !n) return t;
|
|
3255
3252
|
try {
|
|
3256
3253
|
const o = n.parse(t, e);
|
|
@@ -3259,30 +3256,41 @@ function Aa(t, e, n) {
|
|
|
3259
3256
|
return t;
|
|
3260
3257
|
}
|
|
3261
3258
|
}
|
|
3262
|
-
function
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
const
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3259
|
+
function _a(t, e, n) {
|
|
3260
|
+
if (!t || !n) return t;
|
|
3261
|
+
const o = (t) => {
|
|
3262
|
+
const o = t?.value;
|
|
3263
|
+
if ("string" != typeof o) return t;
|
|
3264
|
+
const r = La(o, e, n);
|
|
3265
|
+
return r === o ? t : {
|
|
3266
|
+
...t,
|
|
3267
|
+
value: r
|
|
3268
|
+
};
|
|
3269
|
+
};
|
|
3270
|
+
if (t.type === Ve.ScaleType.DataBar) {
|
|
3271
|
+
const e = o(t.minPoint), n = o(t.maxPoint);
|
|
3272
|
+
if (e === t.minPoint && n === t.maxPoint) return t;
|
|
3273
|
+
const r = { ...t };
|
|
3274
|
+
return e && (r.minPoint = e), n && (r.maxPoint = n), r;
|
|
3275
|
+
}
|
|
3276
|
+
const r = t.stops;
|
|
3277
|
+
if (!r) return t;
|
|
3278
|
+
let s;
|
|
3279
|
+
for (let t = 0; t < r.length; t++) {
|
|
3280
|
+
const e = o(r[t]);
|
|
3281
|
+
e !== r[t] && (s || (s = [...r]), s[t] = e);
|
|
3274
3282
|
}
|
|
3275
|
-
return
|
|
3283
|
+
return s ? {
|
|
3276
3284
|
...t,
|
|
3277
|
-
stops:
|
|
3285
|
+
stops: s
|
|
3278
3286
|
} : t;
|
|
3279
3287
|
}
|
|
3280
|
-
function
|
|
3288
|
+
function Na(t) {
|
|
3281
3289
|
const e = t.getDataValidations().getSettings(), n = {};
|
|
3282
3290
|
return e.disablePrompts && (n.disablePrompts = "1"), void 0 !== e.windowX && (n.xWindow = e.windowX), void 0 !== e.windowY && (n.yWindow = e.windowY), n;
|
|
3283
3291
|
}
|
|
3284
|
-
var
|
|
3285
|
-
function
|
|
3292
|
+
var $a = "application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings";
|
|
3293
|
+
function Ba(t, e, n) {
|
|
3286
3294
|
if (!n || 0 === n.length) return;
|
|
3287
3295
|
const o = n.filter((t) => !t.automatic).length;
|
|
3288
3296
|
t.start(e, {
|
|
@@ -3295,12 +3303,12 @@ function Na(t, e, n) {
|
|
|
3295
3303
|
}
|
|
3296
3304
|
t.end(e);
|
|
3297
3305
|
}
|
|
3298
|
-
function
|
|
3306
|
+
function Oa(t, e, n, o) {
|
|
3299
3307
|
if (!o?.xml) return;
|
|
3300
3308
|
const r = t.addPart("legacyDrawing", o);
|
|
3301
3309
|
e.empty(n, { "r:id": r.relId });
|
|
3302
3310
|
}
|
|
3303
|
-
var
|
|
3311
|
+
var Va = (t, e, n, o) => {
|
|
3304
3312
|
const r = (e, n) => {
|
|
3305
3313
|
const o = t.getRangeAtBounds({
|
|
3306
3314
|
x: e,
|
|
@@ -3347,13 +3355,13 @@ var Ba = (t, e, n, o) => {
|
|
|
3347
3355
|
bounds: s,
|
|
3348
3356
|
anchor: [...r(s.x, s.y), ...r(s.x + s.width, s.y + s.height)]
|
|
3349
3357
|
};
|
|
3350
|
-
},
|
|
3358
|
+
}, Wa = (t, e) => {
|
|
3351
3359
|
if (!e) return t;
|
|
3352
3360
|
const n = t?.xml ?? null;
|
|
3353
3361
|
let o = le(n ?? "");
|
|
3354
3362
|
const r = [], s = e.comments;
|
|
3355
3363
|
for (let t = 0; t < s.length; t++) {
|
|
3356
|
-
const { comment: n, row: a, col: i } = s[t], l = n.isNote() ? n.toJSON() : null, { bounds: d, anchor: m } =
|
|
3364
|
+
const { comment: n, row: a, col: i } = s[t], l = n.isNote() ? n.toJSON() : null, { bounds: d, anchor: m } = Va(e.sheet, n, a, i), p = l?.box, f = p?.fill || p?.stroke ? D(p.xml ?? W, {
|
|
3357
3365
|
fill: p.fill,
|
|
3358
3366
|
stroke: p.stroke
|
|
3359
3367
|
}, (t) => e.sheet.getStyles().parseColor(t)) : p?.xml;
|
|
@@ -3373,8 +3381,8 @@ var Ba = (t, e, n, o) => {
|
|
|
3373
3381
|
...t,
|
|
3374
3382
|
xml: i
|
|
3375
3383
|
} : { xml: i } : t;
|
|
3376
|
-
},
|
|
3377
|
-
var
|
|
3384
|
+
}, za = _t + 1;
|
|
3385
|
+
var ja = (t, e) => {
|
|
3378
3386
|
if (0 === e.length) return;
|
|
3379
3387
|
let n = le(t.legacyDrawing?.xml ?? "");
|
|
3380
3388
|
const o = e.length;
|
|
@@ -3387,7 +3395,7 @@ var Wa = (t, e) => {
|
|
|
3387
3395
|
const o = e[t].jsonMovable.content, s = o.json ?? (o.json = {});
|
|
3388
3396
|
("number" != typeof s.shapeId || r.has(s.shapeId)) && (s.shapeId = ++n), r.add(s.shapeId);
|
|
3389
3397
|
}
|
|
3390
|
-
},
|
|
3398
|
+
}, Xa = (t, e, n) => {
|
|
3391
3399
|
if (0 === n.length) return e;
|
|
3392
3400
|
const o = (e, n) => t.getRange({
|
|
3393
3401
|
rowStart: n,
|
|
@@ -3427,16 +3435,16 @@ var Wa = (t, e) => {
|
|
|
3427
3435
|
...e,
|
|
3428
3436
|
xml: l
|
|
3429
3437
|
} : { xml: l } : e;
|
|
3430
|
-
},
|
|
3438
|
+
}, Ha = (t, e, n) => {
|
|
3431
3439
|
t.start(e), t.start("xdr:col"), t.text(n.c ?? 0), t.end("xdr:col"), t.start("xdr:colOff"), t.text(fr(n.x)), t.end("xdr:colOff"), t.start("xdr:row"), t.text(n.r ?? 0), t.end("xdr:row"), t.start("xdr:rowOff"), t.text(fr(n.y)), t.end("xdr:rowOff"), t.end(e);
|
|
3432
3440
|
};
|
|
3433
|
-
var
|
|
3441
|
+
var Ua = {
|
|
3434
3442
|
r: void 0,
|
|
3435
3443
|
s: void 0,
|
|
3436
3444
|
t: void 0,
|
|
3437
3445
|
cm: void 0,
|
|
3438
3446
|
vm: void 0
|
|
3439
|
-
},
|
|
3447
|
+
}, Ga = {
|
|
3440
3448
|
r: void 0,
|
|
3441
3449
|
s: void 0,
|
|
3442
3450
|
customFormat: void 0,
|
|
@@ -3448,30 +3456,30 @@ var Xa = {
|
|
|
3448
3456
|
collapsed: void 0,
|
|
3449
3457
|
thickTop: void 0,
|
|
3450
3458
|
thickBot: void 0
|
|
3451
|
-
},
|
|
3459
|
+
}, qa = {
|
|
3452
3460
|
t: void 0,
|
|
3453
3461
|
aca: void 0,
|
|
3454
3462
|
ref: void 0,
|
|
3455
3463
|
ca: void 0,
|
|
3456
3464
|
si: void 0
|
|
3457
|
-
},
|
|
3465
|
+
}, Ja = {
|
|
3458
3466
|
t: "shared",
|
|
3459
3467
|
aca: void 0,
|
|
3460
3468
|
ref: void 0,
|
|
3461
3469
|
ca: void 0,
|
|
3462
3470
|
si: void 0
|
|
3463
|
-
},
|
|
3471
|
+
}, Ka = {
|
|
3464
3472
|
t: "array",
|
|
3465
3473
|
aca: void 0,
|
|
3466
3474
|
ref: void 0,
|
|
3467
3475
|
ca: void 0,
|
|
3468
3476
|
si: void 0
|
|
3469
3477
|
};
|
|
3470
|
-
function
|
|
3478
|
+
function Ya(t, e) {
|
|
3471
3479
|
const n = $.test(e) ? A : void 0;
|
|
3472
3480
|
t.start("t", n), t.text(C(e)), t.end("t");
|
|
3473
3481
|
}
|
|
3474
|
-
var
|
|
3482
|
+
var Za = (t) => String(Math.round(1e3 * t)), Qa = (t) => void 0 === t ? void 0 : t ? "1" : "0", ti = /* @__PURE__ */ new Set([
|
|
3475
3483
|
"text",
|
|
3476
3484
|
"runs",
|
|
3477
3485
|
"paragraphs",
|
|
@@ -3505,33 +3513,33 @@ var Ka = (t) => String(Math.round(1e3 * t)), Ya = (t) => void 0 === t ? void 0 :
|
|
|
3505
3513
|
"effects",
|
|
3506
3514
|
"fill",
|
|
3507
3515
|
"stroke"
|
|
3508
|
-
]),
|
|
3516
|
+
]), ei = {
|
|
3509
3517
|
latin: "lt",
|
|
3510
3518
|
ea: "ea",
|
|
3511
3519
|
cs: "cs",
|
|
3512
3520
|
sym: "lt",
|
|
3513
3521
|
buFont: "lt"
|
|
3514
|
-
},
|
|
3522
|
+
}, ni = (t, e, n) => {
|
|
3515
3523
|
if (!n) return;
|
|
3516
|
-
const o = void 0 !== n.scheme && n.scheme !== Xe.Scheme.None ? `+${n.scheme === Xe.Scheme.Major ? "mj" : "mn"}-${
|
|
3524
|
+
const o = void 0 !== n.scheme && n.scheme !== Xe.Scheme.None ? `+${n.scheme === Xe.Scheme.Major ? "mj" : "mn"}-${ei[e]}` : n.family;
|
|
3517
3525
|
void 0 !== o && t.empty(e, {
|
|
3518
3526
|
typeface: o,
|
|
3519
3527
|
panose: n.panose,
|
|
3520
3528
|
pitchFamily: n.pitch,
|
|
3521
3529
|
charset: K(n.charset)
|
|
3522
3530
|
});
|
|
3523
|
-
},
|
|
3531
|
+
}, oi = (t, e, n, o, r = Pe.EmptyObject) => {
|
|
3524
3532
|
const s = t.getXMLWriter(), a = ((t, e, n = Pe.EmptyArray) => {
|
|
3525
3533
|
if (!e) return { ...n };
|
|
3526
3534
|
const o = { ...n };
|
|
3527
|
-
for (const t of Object.keys(e))
|
|
3535
|
+
for (const t of Object.keys(e)) ti.has(t) || void 0 === e[t] || (o[t] = e[t]);
|
|
3528
3536
|
const { size: r, kern: s, weight: a, style: i, b: l, i: c, spc: d, baseline: m } = e, p = e;
|
|
3529
|
-
return void 0 !== p.language && (o.lang = p.language), void 0 !== p.alternateLanguage && (o.altLang = p.alternateLanguage), void 0 !== r && (o.sz = "" + ur(r)), void 0 !== l && (o.b = l ? "1" : "0"), void 0 !== a && (o.b = a > 500 ? "1" : "0"), void 0 !== c && (o.i = c ? "1" : "0"), void 0 !== i && (o.i = "italic" === i ? "1" : "0"), void 0 !== e.italic && (o.i = e.italic ? "1" : "0"), void 0 !== p.underline && (o.u = k.write(p.underline)), void 0 !== p.strike && (o.strike = R.write(p.strike)), void 0 !== s && (o.kern = "" + ur(s)), void 0 !== p.kerning && (o.kern = "" + ur(p.kerning)), void 0 !== d && (o.spc = "" + ur(d)), void 0 !== p.letterSpacing && (o.spc = "" + ur(p.letterSpacing)), void 0 !== m && (o.baseline =
|
|
3537
|
+
return void 0 !== p.language && (o.lang = p.language), void 0 !== p.alternateLanguage && (o.altLang = p.alternateLanguage), void 0 !== r && (o.sz = "" + ur(r)), void 0 !== l && (o.b = l ? "1" : "0"), void 0 !== a && (o.b = a > 500 ? "1" : "0"), void 0 !== c && (o.i = c ? "1" : "0"), void 0 !== i && (o.i = "italic" === i ? "1" : "0"), void 0 !== e.italic && (o.i = e.italic ? "1" : "0"), void 0 !== p.underline && (o.u = k.write(p.underline)), void 0 !== p.strike && (o.strike = R.write(p.strike)), void 0 !== s && (o.kern = "" + ur(s)), void 0 !== p.kerning && (o.kern = "" + ur(p.kerning)), void 0 !== d && (o.spc = "" + ur(d)), void 0 !== p.letterSpacing && (o.spc = "" + ur(p.letterSpacing)), void 0 !== m && (o.baseline = Za(m)), void 0 !== p.capitals && (o.cap = p.capitals), void 0 !== p.normalizeHeight && (o.normalizeH = Qa(p.normalizeHeight)), o;
|
|
3530
3538
|
})(0, o ?? {}, r);
|
|
3531
|
-
o?.outline || o?.color || o?.effects?.length || o?.highlight || o?.font || o?.eastAsianFont || o?.complexScriptFont || o?.symbolFont || o?.hyperlink ? (s.start(n, a), o.outline && Jo(t, s, o.outline, e), o.color && qo(t, s, o.color, e), o.effects?.length && Zo(t, s, e.getTheme(), o.effects), o.highlight && (s.start("highlight"), Lo(s, e.getTheme(), o.highlight), s.end("highlight")),
|
|
3532
|
-
},
|
|
3533
|
-
n && (t.start(e), "percent" in n ? t.empty("spcPct", { val:
|
|
3534
|
-
},
|
|
3539
|
+
o?.outline || o?.color || o?.effects?.length || o?.highlight || o?.font || o?.eastAsianFont || o?.complexScriptFont || o?.symbolFont || o?.hyperlink ? (s.start(n, a), o.outline && Jo(t, s, o.outline, e), o.color && qo(t, s, o.color, e), o.effects?.length && Zo(t, s, e.getTheme(), o.effects), o.highlight && (s.start("highlight"), Lo(s, e.getTheme(), o.highlight), s.end("highlight")), ni(s, "latin", o.font), ni(s, "ea", o.eastAsianFont), ni(s, "cs", o.complexScriptFont), ni(s, "sym", o.symbolFont), Go(t, s, "hlinkClick", o.hyperlink), s.end(n)) : s.empty(n, a);
|
|
3540
|
+
}, ri = (t, e, n) => {
|
|
3541
|
+
n && (t.start(e), "percent" in n ? t.empty("spcPct", { val: Za(n.percent) }) : t.empty("spcPts", { val: String(Math.round(100 * n.points)) }), t.end(e));
|
|
3542
|
+
}, si = (t, e, n, o) => {
|
|
3535
3543
|
const r = t.getXMLWriter(), s = {
|
|
3536
3544
|
marL: void 0 === o.marginLeft ? void 0 : String(fr(o.marginLeft)),
|
|
3537
3545
|
marR: void 0 === o.marginRight ? void 0 : String(fr(o.marginRight)),
|
|
@@ -3539,14 +3547,14 @@ var Ka = (t) => String(Math.round(1e3 * t)), Ya = (t) => void 0 === t ? void 0 :
|
|
|
3539
3547
|
indent: void 0 === o.indent ? void 0 : String(fr(o.indent)),
|
|
3540
3548
|
algn: x.write(o.align),
|
|
3541
3549
|
defTabSz: void 0 === o.defaultTabSize ? void 0 : String(fr(o.defaultTabSize)),
|
|
3542
|
-
rtl:
|
|
3543
|
-
eaLnBrk:
|
|
3550
|
+
rtl: Qa(o.rightToLeft),
|
|
3551
|
+
eaLnBrk: Qa(o.eastAsianLineBreak),
|
|
3544
3552
|
fontAlgn: j.write(o.fontAlign),
|
|
3545
|
-
latinLnBrk:
|
|
3546
|
-
hangingPunct:
|
|
3553
|
+
latinLnBrk: Qa(o.latinLineBreak),
|
|
3554
|
+
hangingPunct: Qa(o.hangingPunctuation)
|
|
3547
3555
|
}, a = o.bullet;
|
|
3548
3556
|
if (o.lineSpacing || o.spaceBefore || o.spaceAfter || a || o.tabs || o.defaultRun) {
|
|
3549
|
-
if (r.start(n, s),
|
|
3557
|
+
if (r.start(n, s), ri(r, "lnSpc", o.lineSpacing), ri(r, "spcBef", o.spaceBefore), ri(r, "spcAft", o.spaceAfter), a) switch (a.colorFollowsText ? r.empty("buClrTx") : a.color && (r.start("buClr"), Lo(r, e.getTheme(), a.color), r.end("buClr")), a.sizeFollowsText ? r.empty("buSzTx") : a.size && ("percent" in a.size ? r.empty("buSzPct", { val: Za(a.size.percent) }) : r.empty("buSzPts", { val: String(Math.round(100 * a.size.points)) })), a.fontFollowsText ? r.empty("buFontTx") : ni(r, "buFont", a.font), a.type) {
|
|
3550
3558
|
case "none":
|
|
3551
3559
|
r.empty("buNone");
|
|
3552
3560
|
break;
|
|
@@ -3566,14 +3574,14 @@ var Ka = (t) => String(Math.round(1e3 * t)), Ya = (t) => void 0 === t ? void 0 :
|
|
|
3566
3574
|
});
|
|
3567
3575
|
r.end("tabLst");
|
|
3568
3576
|
}
|
|
3569
|
-
o.defaultRun &&
|
|
3577
|
+
o.defaultRun && oi(t, e, "defRPr", o.defaultRun), r.end(n);
|
|
3570
3578
|
} else r.empty(n, s);
|
|
3571
|
-
},
|
|
3579
|
+
}, ai = (t) => t === Ke.Overflow.Visible ? void 0 : U.write(t), ii = (t, e) => {
|
|
3572
3580
|
const n = e.body ?? {}, o = n.insets, r = {
|
|
3573
3581
|
rot: void 0 === e.rotation ? void 0 : String(Math.round(6e4 * e.rotation)),
|
|
3574
|
-
spcFirstLastPara:
|
|
3575
|
-
vertOverflow:
|
|
3576
|
-
horzOverflow:
|
|
3582
|
+
spcFirstLastPara: Qa(n.spaceFirstLastParagraph),
|
|
3583
|
+
vertOverflow: ai(n.verticalOverflow ?? ln.TEXT_DEFAULTS.verticalOverflow),
|
|
3584
|
+
horzOverflow: ai(n.horizontalOverflow ?? ln.TEXT_DEFAULTS.horizontalOverflow),
|
|
3577
3585
|
vert: q.write(n.vertical),
|
|
3578
3586
|
wrap: n.wrap,
|
|
3579
3587
|
lIns: void 0 === o?.left ? void 0 : String(fr(o.left)),
|
|
@@ -3582,13 +3590,13 @@ var Ka = (t) => String(Math.round(1e3 * t)), Ya = (t) => void 0 === t ? void 0 :
|
|
|
3582
3590
|
bIns: void 0 === o?.bottom ? void 0 : String(fr(o.bottom)),
|
|
3583
3591
|
numCol: void 0 === n.columns ? void 0 : String(n.columns),
|
|
3584
3592
|
spcCol: void 0 === n.columnSpacing ? void 0 : String(fr(n.columnSpacing)),
|
|
3585
|
-
rtlCol:
|
|
3586
|
-
fromWordArt:
|
|
3593
|
+
rtlCol: Qa(n.rightToLeftColumns),
|
|
3594
|
+
fromWordArt: Qa(n.fromWordArt),
|
|
3587
3595
|
anchor: w.write(n.anchor),
|
|
3588
|
-
anchorCtr:
|
|
3589
|
-
forceAA:
|
|
3590
|
-
upright:
|
|
3591
|
-
compatLnSpc:
|
|
3596
|
+
anchorCtr: Qa(n.anchorCenter),
|
|
3597
|
+
forceAA: Qa(n.forceAntiAlias),
|
|
3598
|
+
upright: Qa(n.upright),
|
|
3599
|
+
compatLnSpc: Qa(n.compatibleLineSpacing)
|
|
3592
3600
|
};
|
|
3593
3601
|
if (n.warp || n.autoFit || n.extLst) {
|
|
3594
3602
|
if (t.start("bodyPr", r), n.warp) {
|
|
@@ -3612,25 +3620,25 @@ var Ka = (t) => String(Math.round(1e3 * t)), Ya = (t) => void 0 === t ? void 0 :
|
|
|
3612
3620
|
t.empty("spAutoFit");
|
|
3613
3621
|
break;
|
|
3614
3622
|
case Ke.Autofit.Normal: t.empty("normAutofit", {
|
|
3615
|
-
fontScale: void 0 === n.fontScale ? void 0 :
|
|
3616
|
-
lnSpcReduction: void 0 === n.lineSpacingReduction ? void 0 :
|
|
3623
|
+
fontScale: void 0 === n.fontScale ? void 0 : Za(n.fontScale),
|
|
3624
|
+
lnSpcReduction: void 0 === n.lineSpacingReduction ? void 0 : Za(n.lineSpacingReduction)
|
|
3617
3625
|
});
|
|
3618
3626
|
}
|
|
3619
3627
|
n.extLst && t.raw(n.extLst), t.end("bodyPr");
|
|
3620
3628
|
} else t.empty("bodyPr", r);
|
|
3621
|
-
},
|
|
3629
|
+
}, li = (t, e, n) => {
|
|
3622
3630
|
const o = t.getXMLWriter();
|
|
3623
|
-
n && (n.default || n.levels?.some((t) => t)) ? (o.start("lstStyle"), n.default &&
|
|
3624
|
-
n &&
|
|
3631
|
+
n && (n.default || n.levels?.some((t) => t)) ? (o.start("lstStyle"), n.default && si(t, e, "defPPr", n.default), n.levels?.forEach((n, o) => {
|
|
3632
|
+
n && si(t, e, `lvl${o + 1}pPr`, n);
|
|
3625
3633
|
}), o.end("lstStyle")) : o.empty("lstStyle");
|
|
3626
|
-
},
|
|
3634
|
+
}, ci = (t, e, n, o) => {
|
|
3627
3635
|
const r = t.getXMLWriter();
|
|
3628
3636
|
r.pushDefaultNamespace("a"), r.start("p");
|
|
3629
3637
|
const { runs: s, endRun: a, ...i } = o, l = void 0 !== ln.inheritedTextSize(n, o) ? (t) => t : (t) => void 0 === t.size ? {
|
|
3630
3638
|
...t,
|
|
3631
3639
|
size: ln.TEXT_DEFAULTS.size
|
|
3632
3640
|
} : t;
|
|
3633
|
-
((t) => !!t && Object.keys(t).some((e) => "runs" !== e && "endRun" !== e && void 0 !== t[e]))(i) &&
|
|
3641
|
+
((t) => !!t && Object.keys(t).some((e) => "runs" !== e && "endRun" !== e && void 0 !== t[e]))(i) && si(t, e, "pPr", i);
|
|
3634
3642
|
for (const n of s ?? []) {
|
|
3635
3643
|
if ("\n" === n?.text) {
|
|
3636
3644
|
r.empty("br");
|
|
@@ -3640,22 +3648,22 @@ var Ka = (t) => String(Math.round(1e3 * t)), Ya = (t) => void 0 === t ? void 0 :
|
|
|
3640
3648
|
r.start(i, s ? {
|
|
3641
3649
|
id: s.id,
|
|
3642
3650
|
type: s.type
|
|
3643
|
-
} : {}),
|
|
3651
|
+
} : {}), oi(t, e, "rPr", l(a)), r.start("t"), r.text(o ?? ""), r.end("t"), r.end(i);
|
|
3644
3652
|
}
|
|
3645
|
-
!a && s?.length ||
|
|
3646
|
-
},
|
|
3653
|
+
!a && s?.length || oi(t, e, "endParaRPr", l(a ?? {})), r.end("p"), r.popDefaultNamespace();
|
|
3654
|
+
}, di = (t, e, n) => {
|
|
3647
3655
|
if (!n) return;
|
|
3648
3656
|
const o = t.getXMLWriter(), r = ((t) => "string" == typeof t ? { paragraphs: [{ runs: [{ text: t }] }] } : Array.isArray(t?.paragraphs) ? t : { paragraphs: [t] })(n);
|
|
3649
|
-
o.start("txBody"), o.pushDefaultNamespace("a"),
|
|
3657
|
+
o.start("txBody"), o.pushDefaultNamespace("a"), ii(o, r), li(t, e, r.listStyle);
|
|
3650
3658
|
const s = 0 === r.paragraphs.length ? [{ runs: [] }] : r.paragraphs;
|
|
3651
|
-
for (const n of s)
|
|
3659
|
+
for (const n of s) ci(t, e, r, n);
|
|
3652
3660
|
o.popDefaultNamespace(), o.end("txBody");
|
|
3653
|
-
},
|
|
3661
|
+
}, mi = (t, e, n) => {
|
|
3654
3662
|
const o = t.getXMLWriter();
|
|
3655
3663
|
if (!n) return o.empty("bodyPr"), void o.empty("lstStyle");
|
|
3656
|
-
|
|
3664
|
+
ii(o, n), li(t, e, n.listStyle);
|
|
3657
3665
|
};
|
|
3658
|
-
function
|
|
3666
|
+
function pi(t, e, n, o) {
|
|
3659
3667
|
t.start(o);
|
|
3660
3668
|
const r = { typeface: e.latin || n };
|
|
3661
3669
|
e.panose && (r.panose = e.panose), t.empty("latin", r), t.empty("ea", { typeface: e.eastAsian ?? "" }), t.empty("cs", { typeface: e.complexScript ?? "" });
|
|
@@ -3666,12 +3674,12 @@ function di(t, e, n, o) {
|
|
|
3666
3674
|
});
|
|
3667
3675
|
t.end(o);
|
|
3668
3676
|
}
|
|
3669
|
-
var
|
|
3677
|
+
var fi = [
|
|
3670
3678
|
["shape", "spDef"],
|
|
3671
3679
|
["line", "lnDef"],
|
|
3672
3680
|
["text", "txDef"]
|
|
3673
3681
|
];
|
|
3674
|
-
var
|
|
3682
|
+
var hi = { checkbox: "Checkbox" }, ui = [
|
|
3675
3683
|
["dc:title", "title"],
|
|
3676
3684
|
["dc:subject", "subject"],
|
|
3677
3685
|
["dc:creator", "author"],
|
|
@@ -3692,9 +3700,9 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
3692
3700
|
["cp:category", "category"],
|
|
3693
3701
|
["cp:contentStatus", "contentStatus"],
|
|
3694
3702
|
["cp:revision", "revisionNumber"]
|
|
3695
|
-
],
|
|
3703
|
+
], gi = (t) => t.toISOString().split(".")[0] + "Z", xi = (t, e, n, o) => {
|
|
3696
3704
|
e.start(n), e.text(o), e.end(n);
|
|
3697
|
-
},
|
|
3705
|
+
}, yi = (t, e, n) => {
|
|
3698
3706
|
const o = [
|
|
3699
3707
|
{
|
|
3700
3708
|
heading: "Worksheets",
|
|
@@ -3741,13 +3749,13 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
3741
3749
|
});
|
|
3742
3750
|
for (const t of a) for (const n of t.names) e.start("vt:lpstr"), e.text(n), e.end("vt:lpstr");
|
|
3743
3751
|
e.end("vt:vector"), e.end("TitlesOfParts");
|
|
3744
|
-
},
|
|
3752
|
+
}, vi = {
|
|
3745
3753
|
[We.Type.String]: "vt:lpwstr",
|
|
3746
3754
|
[We.Type.Number]: "vt:i4",
|
|
3747
3755
|
[We.Type.Float]: "vt:r8",
|
|
3748
3756
|
[We.Type.Boolean]: "vt:bool",
|
|
3749
3757
|
[We.Type.Date]: "vt:filetime"
|
|
3750
|
-
},
|
|
3758
|
+
}, wi = (t) => t.split(".")[0] + "Z", Si = {
|
|
3751
3759
|
minSupportedVersion: "120000",
|
|
3752
3760
|
copy: "1",
|
|
3753
3761
|
pasteAll: "1",
|
|
@@ -3759,42 +3767,42 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
3759
3767
|
clearComments: "1",
|
|
3760
3768
|
assign: "1",
|
|
3761
3769
|
coerce: "1"
|
|
3762
|
-
},
|
|
3770
|
+
}, bi = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2", Ci = (t, e) => {
|
|
3763
3771
|
for (const [n, o] of e) t.start("v", n ? { t: n } : void 0), t.text(o), t.end("v");
|
|
3764
|
-
},
|
|
3772
|
+
}, ki = (t) => void 0 === t || "_" === t ? void 0 : t, Ti = (t, e) => {
|
|
3765
3773
|
const n = e.indexOf(" ");
|
|
3766
3774
|
n < 0 || t.empty("gd", {
|
|
3767
3775
|
name: e.slice(0, n),
|
|
3768
3776
|
fmla: e.slice(n + 1).trim()
|
|
3769
3777
|
});
|
|
3770
|
-
},
|
|
3778
|
+
}, Ii = (t, e, n) => {
|
|
3771
3779
|
t.empty("pos", {
|
|
3772
3780
|
x: e,
|
|
3773
3781
|
y: n
|
|
3774
3782
|
});
|
|
3775
|
-
},
|
|
3783
|
+
}, Ri = (t, e) => {
|
|
3776
3784
|
const n = e.split(" ");
|
|
3777
3785
|
"xy" === n[0] ? (t.start("ahXY", {
|
|
3778
|
-
gdRefX:
|
|
3779
|
-
minX:
|
|
3780
|
-
maxX:
|
|
3781
|
-
gdRefY:
|
|
3782
|
-
minY:
|
|
3783
|
-
maxY:
|
|
3784
|
-
}),
|
|
3785
|
-
gdRefR:
|
|
3786
|
-
minR:
|
|
3787
|
-
maxR:
|
|
3788
|
-
gdRefAng:
|
|
3789
|
-
minAng:
|
|
3790
|
-
maxAng:
|
|
3791
|
-
}),
|
|
3792
|
-
},
|
|
3786
|
+
gdRefX: ki(n[1]),
|
|
3787
|
+
minX: ki(n[5]),
|
|
3788
|
+
maxX: ki(n[6]),
|
|
3789
|
+
gdRefY: ki(n[2]),
|
|
3790
|
+
minY: ki(n[7]),
|
|
3791
|
+
maxY: ki(n[8])
|
|
3792
|
+
}), Ii(t, n[3], n[4]), t.end("ahXY")) : "polar" === n[0] && (t.start("ahPolar", {
|
|
3793
|
+
gdRefR: ki(n[1]),
|
|
3794
|
+
minR: ki(n[5]),
|
|
3795
|
+
maxR: ki(n[6]),
|
|
3796
|
+
gdRefAng: ki(n[2]),
|
|
3797
|
+
minAng: ki(n[7]),
|
|
3798
|
+
maxAng: ki(n[8])
|
|
3799
|
+
}), Ii(t, n[3], n[4]), t.end("ahPolar"));
|
|
3800
|
+
}, Fi = {
|
|
3793
3801
|
M: ["moveTo", 1],
|
|
3794
3802
|
L: ["lnTo", 1],
|
|
3795
3803
|
Q: ["quadBezTo", 2],
|
|
3796
3804
|
C: ["cubicBezTo", 3]
|
|
3797
|
-
},
|
|
3805
|
+
}, Ei = (t, e) => {
|
|
3798
3806
|
t.start("path", {
|
|
3799
3807
|
w: e.w,
|
|
3800
3808
|
h: e.h,
|
|
@@ -3813,7 +3821,7 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
3813
3821
|
swAng: n[o + 3]
|
|
3814
3822
|
}), o += 4;
|
|
3815
3823
|
else {
|
|
3816
|
-
const r =
|
|
3824
|
+
const r = Fi[e];
|
|
3817
3825
|
if (!r) break;
|
|
3818
3826
|
t.start(r[0]);
|
|
3819
3827
|
for (let e = 0; e < r[1]; e++, o += 2) t.empty("pt", {
|
|
@@ -3824,32 +3832,32 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
3824
3832
|
}
|
|
3825
3833
|
}
|
|
3826
3834
|
t.end("path");
|
|
3827
|
-
},
|
|
3835
|
+
}, Mi = {
|
|
3828
3836
|
type: "http://schemas.microsoft.com/office/2011/relationships/chartStyle",
|
|
3829
3837
|
contentType: "application/vnd.ms-office.chartstyle+xml",
|
|
3830
3838
|
name: "style1.xml",
|
|
3831
3839
|
xml: "<cs:chartStyle xmlns:cs=\"http://schemas.microsoft.com/office/drawing/2012/chartStyle\" xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" id=\"395\"><cs:axisTitle><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:axisTitle><cs:categoryAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:categoryAxis><cs:chartArea mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"bg1\"/></a:solidFill><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"1000\"/></cs:chartArea><cs:dataLabel><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:dataLabel><cs:dataLabelCallout><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill><a:ln><a:solidFill><a:schemeClr val=\"dk1\"><a:lumMod val=\"25000\"/><a:lumOff val=\"75000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr><cs:defRPr sz=\"900\"/><cs:bodyPr rot=\"0\" spcFirstLastPara=\"1\" vertOverflow=\"clip\" horzOverflow=\"clip\" vert=\"horz\" wrap=\"square\" lIns=\"36576\" tIns=\"18288\" rIns=\"36576\" bIns=\"18288\" anchor=\"ctr\" anchorCtr=\"1\"><a:spAutoFit/></cs:bodyPr></cs:dataLabelCallout><cs:dataPoint><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill></cs:spPr></cs:dataPoint><cs:dataPoint3D><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill></cs:spPr></cs:dataPoint3D><cs:dataPointLine><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"28575\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointLine><cs:dataPointMarker><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></cs:spPr></cs:dataPointMarker><cs:dataPointMarkerLayout symbol=\"circle\" size=\"5\"/><cs:dataPointWireframe><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"28575\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointWireframe><cs:dataTable><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:dataTable><cs:downBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"dk1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr></cs:downBar><cs:dropLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"35000\"/><a:lumOff val=\"65000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:dropLine><cs:errorBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:errorBar><cs:floor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:floor><cs:gridlineMajor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:gridlineMajor><cs:gridlineMinor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:gridlineMinor><cs:hiLoLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"75000\"/><a:lumOff val=\"25000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:hiLoLine><cs:leaderLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"35000\"/><a:lumOff val=\"65000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:leaderLine><cs:legend><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:legend><cs:plotArea mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:plotArea><cs:plotArea3D mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:plotArea3D><cs:seriesAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:seriesAxis><cs:seriesLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\"><a:solidFill><a:srgbClr val=\"D9D9D9\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:seriesLine><cs:title><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"1400\"/></cs:title><cs:trendline><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"19050\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:prstDash val=\"sysDash\"/></a:ln></cs:spPr></cs:trendline><cs:trendlineLabel><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:trendlineLabel><cs:upBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr></cs:upBar><cs:valueAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:valueAxis><cs:wall><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:wall></cs:chartStyle>"
|
|
3832
|
-
},
|
|
3840
|
+
}, Pi = {
|
|
3833
3841
|
type: "http://schemas.microsoft.com/office/2011/relationships/chartColorStyle",
|
|
3834
3842
|
contentType: "application/vnd.ms-office.chartcolorstyle+xml",
|
|
3835
3843
|
name: "colors1.xml",
|
|
3836
3844
|
xml: "<cs:colorStyle xmlns:cs=\"http://schemas.microsoft.com/office/drawing/2012/chartStyle\" xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" meth=\"cycle\" id=\"10\"><a:schemeClr val=\"accent1\"/><a:schemeClr val=\"accent2\"/><a:schemeClr val=\"accent3\"/><a:schemeClr val=\"accent4\"/><a:schemeClr val=\"accent5\"/><a:schemeClr val=\"accent6\"/><cs:variation/><cs:variation><a:lumMod val=\"60000\"/></cs:variation><cs:variation><a:lumMod val=\"80000\"/><a:lumOff val=\"20000\"/></cs:variation><cs:variation><a:lumMod val=\"80000\"/></cs:variation><cs:variation><a:lumMod val=\"60000\"/><a:lumOff val=\"40000\"/></cs:variation><cs:variation><a:lumMod val=\"50000\"/></cs:variation><cs:variation><a:lumMod val=\"70000\"/><a:lumOff val=\"30000\"/></cs:variation><cs:variation><a:lumMod val=\"70000\"/></cs:variation><cs:variation><a:lumMod val=\"50000\"/><a:lumOff val=\"50000\"/></cs:variation></cs:colorStyle>"
|
|
3837
|
-
},
|
|
3845
|
+
}, Ai = (t, e) => {
|
|
3838
3846
|
const n = {};
|
|
3839
3847
|
e.unlocked && (n.fLocksWithSheet = "0"), e.noPrint && (n.fPrintsWithSheet = "0"), t.empty("clientData", n);
|
|
3840
|
-
},
|
|
3848
|
+
}, Di = (t) => (t.content?.json)?.members ?? [], Li = (t) => ({
|
|
3841
3849
|
x: t.anchor?.tl?.x ?? 0,
|
|
3842
3850
|
y: t.anchor?.tl?.y ?? 0,
|
|
3843
3851
|
width: t.anchor?.br?.x ?? 0,
|
|
3844
3852
|
height: t.anchor?.br?.y ?? 0
|
|
3845
|
-
}),
|
|
3853
|
+
}), _i = async (t, e) => {
|
|
3846
3854
|
const n = e.content;
|
|
3847
3855
|
if ("shape" !== n?.type && "picture" !== n?.type || await ar(t, n.json), "group" === n?.type) {
|
|
3848
3856
|
await ar(t, n.json);
|
|
3849
|
-
for (const n of
|
|
3857
|
+
for (const n of Di(e)) await _i(t, n);
|
|
3850
3858
|
}
|
|
3851
|
-
},
|
|
3852
|
-
const a = await rr(t, s), i = o.content?.json, l = i?.image ?? {}, c = l.extLst ?? (a.external ? void 0 :
|
|
3859
|
+
}, Ni = async (t, e, n, o, r, s) => {
|
|
3860
|
+
const a = await rr(t, s), i = o.content?.json, l = i?.image ?? {}, c = l.extLst ?? (a.external ? void 0 : $i), d = {
|
|
3853
3861
|
...l,
|
|
3854
3862
|
type: je.Type.Image,
|
|
3855
3863
|
extLst: c,
|
|
@@ -3859,8 +3867,8 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
3859
3867
|
const p = {};
|
|
3860
3868
|
void 0 !== l.dpi && (p.dpi = String(l.dpi)), void 0 !== l.isRotatedWithShape && (p.rotWithShape = l.isRotatedWithShape ? "1" : "0");
|
|
3861
3869
|
const f = t.getXMLWriter();
|
|
3862
|
-
f.start("pic", m), f.start("nvPicPr"),
|
|
3863
|
-
},
|
|
3870
|
+
f.start("pic", m), f.start("nvPicPr"), Qi(t, f, n, o, e), f.start("cNvPicPr", i?.noRelativeResize ? { preferRelativeResize: "0" } : {}), f.empty("a:picLocks", ol(o)), f.end("cNvPicPr"), f.end("nvPicPr"), f.start("blipFill", p), f.pushDefaultNamespace("a"), dr(f, d, a), f.popDefaultNamespace(), f.end("blipFill"), Yi(t, e, n, o, r), f.end("pic");
|
|
3871
|
+
}, $i = "<a:extLst><a:ext uri=\"{28A0092B-C50C-407E-A947-70E740481C1C}\"><a14:useLocalDpi xmlns:a14=\"http://schemas.microsoft.com/office/drawing/2010/main\" val=\"0\"/></a:ext></a:extLst>", Bi = async (t, e, n, o, r) => {
|
|
3864
3872
|
const s = o.content?.json, a = s?.model, i = s?.part, l = () => r ?? n?.getBounds() ?? {
|
|
3865
3873
|
x: 0,
|
|
3866
3874
|
y: 0,
|
|
@@ -3875,16 +3883,16 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
3875
3883
|
});
|
|
3876
3884
|
if (n.leftOut.length > 0) {
|
|
3877
3885
|
const r = o.content?.name ?? "";
|
|
3878
|
-
if (n.leftOut.length === d.length) return t.warn(`The chart '${r}' is of a type an xlsx file cannot hold (${n.leftOut.join(", ")}); it is saved as a placeholder.`, void 0, "xlsx.chart.unplaced"),
|
|
3886
|
+
if (n.leftOut.length === d.length) return t.warn(`The chart '${r}' is of a type an xlsx file cannot hold (${n.leftOut.join(", ")}); it is saved as a placeholder.`, void 0, "xlsx.chart.unplaced"), Ki(t, e, o, l());
|
|
3879
3887
|
t.warn(`The chart '${r}' combines types one xlsx chart cannot hold together; it is saved without its ${n.leftOut.join(", ")} series.`, void 0, "xlsx.chart.leftOut");
|
|
3880
3888
|
}
|
|
3881
3889
|
m = n.family, p = n.xml;
|
|
3882
3890
|
} else {
|
|
3883
|
-
if (!i?.xml || !c) return
|
|
3891
|
+
if (!i?.xml || !c) return Ki(t, e, o, l());
|
|
3884
3892
|
m = c, p = i.xml;
|
|
3885
3893
|
}
|
|
3886
3894
|
const f = ke[m], h = [...i?.parts ?? []];
|
|
3887
|
-
if ("chartEx" === m) for (const t of [
|
|
3895
|
+
if ("chartEx" === m) for (const t of [Mi, Pi]) h.some((e) => e.type === t.type) || h.push({
|
|
3888
3896
|
id: "",
|
|
3889
3897
|
...t
|
|
3890
3898
|
});
|
|
@@ -3896,9 +3904,9 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
3896
3904
|
xml: p,
|
|
3897
3905
|
parts: h
|
|
3898
3906
|
}, t, f.path);
|
|
3899
|
-
if (!u?.relId) return
|
|
3907
|
+
if (!u?.relId) return Ki(t, e, o, l());
|
|
3900
3908
|
const g = t.getXMLWriter();
|
|
3901
|
-
if ("chart" === m) return void
|
|
3909
|
+
if ("chart" === m) return void Oi(t, e, n, o, m, u.relId, r);
|
|
3902
3910
|
const x = ((t) => {
|
|
3903
3911
|
const e = new Set(t.map((t) => t.type));
|
|
3904
3912
|
return e.has("regionMap") ? {
|
|
@@ -3912,18 +3920,18 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
3912
3920
|
uri: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"
|
|
3913
3921
|
};
|
|
3914
3922
|
})(d);
|
|
3915
|
-
g.start("mc:AlternateContent", { "xmlns:mc":
|
|
3923
|
+
g.start("mc:AlternateContent", { "xmlns:mc": Xi }), g.start("mc:Choice", {
|
|
3916
3924
|
[`xmlns:${x.prefix}`]: x.uri,
|
|
3917
3925
|
Requires: x.prefix
|
|
3918
|
-
}),
|
|
3919
|
-
},
|
|
3926
|
+
}), Oi(t, e, n, o, m, u.relId, r), g.end("mc:Choice"), g.start("mc:Fallback"), qi(g, l(), "This chart isn't available in your version of Excel.\n\nEditing this shape or saving this workbook into a different file format will permanently break the chart."), g.end("mc:Fallback"), g.end("mc:AlternateContent");
|
|
3927
|
+
}, Oi = (t, e, n, o, r, s, a) => {
|
|
3920
3928
|
const i = t.getXMLWriter(), l = a ?? {
|
|
3921
3929
|
x: 0,
|
|
3922
3930
|
y: 0,
|
|
3923
3931
|
width: 0,
|
|
3924
3932
|
height: 0
|
|
3925
3933
|
}, c = "chartEx" === r ? "cx" : "c", d = ke[r].graphicUri;
|
|
3926
|
-
i.start("graphicFrame", { macro: "" }), i.start("nvGraphicFramePr"),
|
|
3934
|
+
i.start("graphicFrame", { macro: "" }), i.start("nvGraphicFramePr"), Qi(t, i, n, o, e), o.lockAspect ? (i.start("cNvGraphicFramePr"), i.empty("a:graphicFrameLocks", { noChangeAspect: "1" }), i.end("cNvGraphicFramePr")) : i.empty("cNvGraphicFramePr"), i.end("nvGraphicFramePr"), i.start("xfrm"), i.empty("a:off", {
|
|
3927
3935
|
x: fr(l.x),
|
|
3928
3936
|
y: fr(l.y)
|
|
3929
3937
|
}), i.empty("a:ext", {
|
|
@@ -3934,30 +3942,30 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
3934
3942
|
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
3935
3943
|
"r:id": s
|
|
3936
3944
|
}), i.end("a:graphicData"), i.end("a:graphic"), i.end("graphicFrame");
|
|
3937
|
-
},
|
|
3945
|
+
}, Vi = async (t, e, n, o, r) => {
|
|
3938
3946
|
const s = t.getXMLWriter(), a = o.content?.json, i = e.getStyles();
|
|
3939
|
-
s.start("grpSp"), s.start("nvGrpSpPr"),
|
|
3940
|
-
const l =
|
|
3941
|
-
l ? (s.start("cNvGrpSpPr"), s.empty("a:grpSpLocks", l), s.end("cNvGrpSpPr")) : s.empty("cNvGrpSpPr"), s.end("nvGrpSpPr"), s.start("grpSpPr"), s.pushDefaultNamespace("a"),
|
|
3942
|
-
for (const n of
|
|
3947
|
+
s.start("grpSp"), s.start("nvGrpSpPr"), Qi(t, s, n, o, e);
|
|
3948
|
+
const l = el(o);
|
|
3949
|
+
l ? (s.start("cNvGrpSpPr"), s.empty("a:grpSpLocks", l), s.end("cNvGrpSpPr")) : s.empty("cNvGrpSpPr"), s.end("nvGrpSpPr"), s.start("grpSpPr"), s.pushDefaultNamespace("a"), rl(s, r, o, a?.childBounds ?? r), Yo(t, i, a), a?.scene3d && s.raw(a.scene3d), a?.extLst?.properties && s.raw(a.extLst.properties), s.popDefaultNamespace(), s.end("grpSpPr");
|
|
3950
|
+
for (const n of Di(o)) await Wi(t, e, n, Li(n));
|
|
3943
3951
|
s.end("grpSp");
|
|
3944
|
-
},
|
|
3952
|
+
}, Wi = async (t, e, n, o) => {
|
|
3945
3953
|
switch (n.content?.type) {
|
|
3946
3954
|
case "picture": {
|
|
3947
3955
|
const r = sr(t, n.content.json?.resId);
|
|
3948
|
-
return r ?
|
|
3956
|
+
return r ? Ni(t, e, null, n, o, r) : void t.warn(`The picture '${n.content.name ?? ""}' in a group names no image in the workbook; the group is saved without it.`, void 0, "xlsx.drawing.group.picture");
|
|
3949
3957
|
}
|
|
3950
|
-
case "chart": return
|
|
3951
|
-
case "shape": return
|
|
3952
|
-
case "group": return
|
|
3953
|
-
default: return yt(n.content?.type) ? void
|
|
3958
|
+
case "chart": return Bi(t, e, null, n, o);
|
|
3959
|
+
case "shape": return zi(t, e, null, n, o);
|
|
3960
|
+
case "group": return Vi(t, e, null, n, o);
|
|
3961
|
+
default: return yt(n.content?.type) ? void al(t.getXMLWriter(), n, o) : Ki(t, e, n, o);
|
|
3954
3962
|
}
|
|
3955
|
-
},
|
|
3963
|
+
}, zi = async (t, e, n, o, r) => {
|
|
3956
3964
|
const s = t.getXMLWriter(), a = {}, i = o.content?.json, l = i?.type ?? Ge.Type.Shape, c = e.getStyles();
|
|
3957
|
-
l === Ge.Type.Connector ? (void 0 !== i?.macro && (a.macro = i.macro), void 0 !== i?.published && (a.fPublished = i.published ? "1" : "0"), s.start("cxnSp", a), s.start("nvCxnSpPr"),
|
|
3958
|
-
},
|
|
3965
|
+
l === Ge.Type.Connector ? (void 0 !== i?.macro && (a.macro = i.macro), void 0 !== i?.published && (a.fPublished = i.published ? "1" : "0"), s.start("cxnSp", a), s.start("nvCxnSpPr"), Qi(t, s, n, o, e), nl(t, s, n, o, e), s.end("nvCxnSpPr"), Yi(t, e, n, o, r), Zi(t, e, n, o), di(t, c, i?.text), s.end("cxnSp")) : (void 0 !== i?.macro && (a.macro = i.macro), void 0 !== i?.textLink && (a.textlink = i.textLink), void 0 !== i?.locksText && (a.fLocksText = i.locksText ? "1" : "0"), void 0 !== i?.published && (a.fPublished = i.published ? "1" : "0"), s.start("sp", a), s.start("nvSpPr"), Qi(t, s, n, o, e), nl(t, s, n, o, e), s.end("nvSpPr"), Yi(t, e, n, o, r), Zi(t, e, n, o), di(t, c, i?.text), s.end("sp"));
|
|
3966
|
+
}, ji = async (t, e, n, o) => Ki(t, e, o, n.getBounds()), Xi = "http://schemas.openxmlformats.org/markup-compatibility/2006", Hi = "http://schemas.microsoft.com/office/drawing/2010/slicer", Ui = "http://schemas.microsoft.com/office/drawing/2012/timeslicer", Gi = async (t, e, n, o) => {
|
|
3959
3967
|
const r = t.getXMLWriter(), s = o.content?.name ?? "", a = Ps(n.getContent()), i = void 0 !== a?.timeline, l = i ? {
|
|
3960
|
-
"xmlns:tsle":
|
|
3968
|
+
"xmlns:tsle": Ui,
|
|
3961
3969
|
Requires: "tsle"
|
|
3962
3970
|
} : a ? {
|
|
3963
3971
|
"xmlns:a14": "http://schemas.microsoft.com/office/drawing/2010/main",
|
|
@@ -3966,20 +3974,20 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
3966
3974
|
"xmlns:sle15": "http://schemas.microsoft.com/office/drawing/2012/slicer",
|
|
3967
3975
|
Requires: "sle15"
|
|
3968
3976
|
}, c = i ? "Timeline: Works in Excel 2013 or higher. Do not move or resize." : a ? "This shape represents a slicer. Slicers are supported in Excel 2010 or later.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2003 or earlier, the slicer cannot be used." : "This shape represents a table slicer. Table slicers are not supported in this version of Excel.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2007 or earlier, the slicer can't be used.";
|
|
3969
|
-
r.start("mc:AlternateContent", { "xmlns:mc":
|
|
3977
|
+
r.start("mc:AlternateContent", { "xmlns:mc": Xi }), r.start("mc:Choice", l), r.start("graphicFrame", { macro: "" }), r.start("nvGraphicFramePr"), Qi(t, r, n, o, e), r.empty("cNvGraphicFramePr"), r.end("nvGraphicFramePr"), r.start("xfrm"), r.empty("a:off", {
|
|
3970
3978
|
x: "0",
|
|
3971
3979
|
y: "0"
|
|
3972
3980
|
}), r.empty("a:ext", {
|
|
3973
3981
|
cx: "0",
|
|
3974
3982
|
cy: "0"
|
|
3975
|
-
}), r.end("xfrm"), r.start("a:graphic"), i ? (r.start("a:graphicData", { uri:
|
|
3976
|
-
"xmlns:tsle":
|
|
3983
|
+
}), r.end("xfrm"), r.start("a:graphic"), i ? (r.start("a:graphicData", { uri: Ui }), r.empty("tsle:timeslicer", {
|
|
3984
|
+
"xmlns:tsle": Ui,
|
|
3977
3985
|
name: s
|
|
3978
|
-
}), r.end("a:graphicData")) : (r.start("a:graphicData", { uri:
|
|
3979
|
-
"xmlns:sle":
|
|
3986
|
+
}), r.end("a:graphicData")) : (r.start("a:graphicData", { uri: Hi }), r.empty("sle:slicer", {
|
|
3987
|
+
"xmlns:sle": Hi,
|
|
3980
3988
|
name: s
|
|
3981
|
-
}), r.end("a:graphicData")), r.end("a:graphic"), r.end("graphicFrame"), r.end("mc:Choice"), r.start("mc:Fallback"),
|
|
3982
|
-
},
|
|
3989
|
+
}), r.end("a:graphicData")), r.end("a:graphic"), r.end("graphicFrame"), r.end("mc:Choice"), r.start("mc:Fallback"), qi(r, n.getBounds(), c), r.end("mc:Fallback"), r.end("mc:AlternateContent");
|
|
3990
|
+
}, qi = (t, e, n) => {
|
|
3983
3991
|
t.start("sp", {
|
|
3984
3992
|
macro: "",
|
|
3985
3993
|
textlink: ""
|
|
@@ -3999,8 +4007,8 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
3999
4007
|
lang: "en-US",
|
|
4000
4008
|
sz: "1100"
|
|
4001
4009
|
}), t.start("a:t"), t.text(n), t.end("a:t"), t.end("a:r"), t.end("a:p"), t.end("txBody"), t.end("sp");
|
|
4002
|
-
},
|
|
4003
|
-
|
|
4010
|
+
}, Ji = async (t, e, n, o) => Ki(t, e, o, n.getBounds()), Ki = async (t, e, n, o) => {
|
|
4011
|
+
zi(t, e, null, {
|
|
4004
4012
|
...n,
|
|
4005
4013
|
content: {
|
|
4006
4014
|
type: "shape",
|
|
@@ -4019,19 +4027,19 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
4019
4027
|
}
|
|
4020
4028
|
}
|
|
4021
4029
|
}, o);
|
|
4022
|
-
},
|
|
4030
|
+
}, Yi = (t, e, n, o, r) => {
|
|
4023
4031
|
const s = t.getXMLWriter(), a = o.content?.json, i = a?.geometry, l = e.getStyles();
|
|
4024
|
-
if (s.start("spPr"), s.pushDefaultNamespace("a"),
|
|
4032
|
+
if (s.start("spPr"), s.pushDefaultNamespace("a"), rl(s, r, o), "object" == typeof i && i) ((t, e) => {
|
|
4025
4033
|
t.start("custGeom"), t.start("avLst");
|
|
4026
|
-
for (const n of e.av ?? [])
|
|
4034
|
+
for (const n of e.av ?? []) Ti(t, n);
|
|
4027
4035
|
t.end("avLst"), t.start("gdLst");
|
|
4028
|
-
for (const n of e.gd ?? [])
|
|
4036
|
+
for (const n of e.gd ?? []) Ti(t, n);
|
|
4029
4037
|
t.end("gdLst"), t.start("ahLst");
|
|
4030
|
-
for (const n of e.ah ?? [])
|
|
4038
|
+
for (const n of e.ah ?? []) Ri(t, n);
|
|
4031
4039
|
t.end("ahLst"), t.start("cxnLst");
|
|
4032
4040
|
for (const n of Array.isArray(e.cxn) ? e.cxn : []) {
|
|
4033
4041
|
const e = n.split(" ");
|
|
4034
|
-
t.start("cxn", { ang: e[0] }),
|
|
4042
|
+
t.start("cxn", { ang: e[0] }), Ii(t, e[1], e[2]), t.end("cxn");
|
|
4035
4043
|
}
|
|
4036
4044
|
if (t.end("cxnLst"), e.rect) {
|
|
4037
4045
|
const n = e.rect.split(" ");
|
|
@@ -4043,7 +4051,7 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
4043
4051
|
});
|
|
4044
4052
|
}
|
|
4045
4053
|
t.start("pathLst");
|
|
4046
|
-
for (const n of e.paths)
|
|
4054
|
+
for (const n of e.paths) Ei(t, n);
|
|
4047
4055
|
t.end("pathLst"), t.end("custGeom");
|
|
4048
4056
|
})(s, i);
|
|
4049
4057
|
else {
|
|
@@ -4061,15 +4069,15 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
4061
4069
|
s.end("prstGeom");
|
|
4062
4070
|
}
|
|
4063
4071
|
Yo(t, l, a), a?.scene3d && s.raw(a.scene3d), a?.shape3d && s.raw(a.shape3d), a?.extLst?.properties && s.raw(a.extLst.properties), s.popDefaultNamespace(), s.end("spPr");
|
|
4064
|
-
},
|
|
4072
|
+
}, Zi = (t, e, n, o) => {
|
|
4065
4073
|
const r = t.getXMLWriter(), s = o.content?.json?.style;
|
|
4066
4074
|
if (null === s) return;
|
|
4067
4075
|
const a = e.getStyles().getTheme(), i = ln.defaultStyleRefs(o.content?.json), l = (t, e) => {
|
|
4068
4076
|
e && (r.start(t, { idx: String(e.index) }), e.color && Lo(r, a, e.color), r.end(t));
|
|
4069
4077
|
};
|
|
4070
4078
|
r.start("style"), r.pushDefaultNamespace("a"), l("lnRef", s?.stroke ?? i.stroke), l("fillRef", s?.fill ?? i.fill), l("effectRef", s?.effect ?? i.effect), l("fontRef", s?.font ?? i.font), r.popDefaultNamespace(), r.end("style");
|
|
4071
|
-
},
|
|
4072
|
-
let s =
|
|
4079
|
+
}, Qi = (t, e, n, o, r) => {
|
|
4080
|
+
let s = tl(t, r).assigned.get(o);
|
|
4073
4081
|
if (void 0 === s) {
|
|
4074
4082
|
const e = t.getSharedStates();
|
|
4075
4083
|
let n = e.get("uniqueIdCounter");
|
|
@@ -4080,7 +4088,7 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
4080
4088
|
name: o.content?.name
|
|
4081
4089
|
};
|
|
4082
4090
|
o.content?.description && (i.descr = o.content.description), o.hidden && (i.hidden = "1"), a?.title && (i.title = a.title), e.start("cNvPr", i), Go(t, e, "a:hlinkClick", a?.hyperlink), Go(t, e, "a:hlinkHover", a?.hoverHyperlink), a?.extLst?.nonVisual && e.raw(a.extLst.nonVisual), e.end("cNvPr");
|
|
4083
|
-
},
|
|
4091
|
+
}, tl = (t, e) => {
|
|
4084
4092
|
const n = t.getSharedStates();
|
|
4085
4093
|
let o = n.get("drawingIds");
|
|
4086
4094
|
o || (o = /* @__PURE__ */ new Map(), n.set("drawingIds", o));
|
|
@@ -4089,18 +4097,18 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
4089
4097
|
assigned: /* @__PURE__ */ new Map(),
|
|
4090
4098
|
bySource: /* @__PURE__ */ new Map()
|
|
4091
4099
|
}, o.set(e, r)), r;
|
|
4092
|
-
},
|
|
4100
|
+
}, el = (t) => {
|
|
4093
4101
|
const e = { ...(t.content?.json)?.locks };
|
|
4094
4102
|
void 0 !== t.lockAspect && void 0 === e.noChangeAspect && (e.noChangeAspect = t.lockAspect);
|
|
4095
4103
|
const n = {};
|
|
4096
4104
|
for (const t of Object.keys(e)) e[t] && (n[t] = "1");
|
|
4097
4105
|
return Object.keys(n).length > 0 ? n : null;
|
|
4098
|
-
},
|
|
4099
|
-
const s = o.content?.json, a =
|
|
4106
|
+
}, nl = (t, e, n, o, r) => {
|
|
4107
|
+
const s = o.content?.json, a = el(o);
|
|
4100
4108
|
if (s?.type === Ge.Type.Connector) {
|
|
4101
4109
|
const n = s.connectorEnds;
|
|
4102
4110
|
if (!a && !n) return void e.empty("cNvCxnSpPr");
|
|
4103
|
-
const o =
|
|
4111
|
+
const o = tl(t, r);
|
|
4104
4112
|
e.start("cNvCxnSpPr"), a && e.empty("a:cxnSpLocks", a), n?.start && e.empty("a:stCxn", {
|
|
4105
4113
|
id: String(o.bySource.get(n.start.id) ?? n.start.id),
|
|
4106
4114
|
idx: String(n.start.index)
|
|
@@ -4112,13 +4120,13 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
4112
4120
|
}
|
|
4113
4121
|
const i = { txBox: s?.textBox ? "1" : void 0 };
|
|
4114
4122
|
a ? (e.start("cNvSpPr", i), e.empty("a:spLocks", a), e.end("cNvSpPr")) : e.empty("cNvSpPr", i);
|
|
4115
|
-
},
|
|
4123
|
+
}, ol = (t) => {
|
|
4116
4124
|
const e = { ...(t.content?.json)?.locks };
|
|
4117
4125
|
void 0 !== t.lockAspect ? e.noChangeAspect = t.lockAspect : e.noChangeAspect ??= !0;
|
|
4118
4126
|
const n = {};
|
|
4119
4127
|
for (const t of Object.keys(e)) e[t] && (n[t] = "1");
|
|
4120
4128
|
return n;
|
|
4121
|
-
},
|
|
4129
|
+
}, rl = (t, e, n, o) => {
|
|
4122
4130
|
const r = {}, s = n.rotation;
|
|
4123
4131
|
void 0 !== s && 0 !== s && (r.rot = "" + hr(s)), n.flipH && (r.flipH = "1"), n.flipV && (r.flipV = "1"), t.start("xfrm", r), t.empty("off", {
|
|
4124
4132
|
x: fr(e.x),
|
|
@@ -4133,13 +4141,13 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
4133
4141
|
cx: fr(o.width),
|
|
4134
4142
|
cy: fr(o.height)
|
|
4135
4143
|
})), t.end("xfrm");
|
|
4136
|
-
},
|
|
4144
|
+
}, sl = (t, e, n) => {
|
|
4137
4145
|
t.start(e), t.start("col"), t.text(n.c ?? 0), t.end("col"), t.start("colOff"), t.text(fr(n.x)), t.end("colOff"), t.start("row"), t.text(n.r ?? 0), t.end("row"), t.start("rowOff"), t.text(fr(n.y)), t.end("rowOff"), t.end(e);
|
|
4138
|
-
},
|
|
4146
|
+
}, al = (t, e, n) => {
|
|
4139
4147
|
const o = e.content.json;
|
|
4140
4148
|
if (t.start("mc:AlternateContent", ne), t.start("mc:Choice", mt), n) return t.raw(bt(e.content.type, o, e.content?.name, n)), t.end("mc:Choice"), t.empty("mc:Fallback"), void t.end("mc:AlternateContent");
|
|
4141
|
-
t.start("twoCellAnchor", { editAs: e.anchorType || "twoCell" }),
|
|
4142
|
-
},
|
|
4149
|
+
t.start("twoCellAnchor", { editAs: e.anchorType || "twoCell" }), sl(t, "from", e.anchor.tl), sl(t, "to", e.anchor.br), t.raw(bt(e.content.type, o, e.content?.name)), t.empty("clientData", { fPrintsWithSheet: "0" }), t.end("twoCellAnchor"), t.end("mc:Choice"), t.empty("mc:Fallback"), t.end("mc:AlternateContent");
|
|
4150
|
+
}, il = async (t, e, n) => {
|
|
4143
4151
|
const o = await n.getExternalURI();
|
|
4144
4152
|
if (o) return void t.addExternal(er, o);
|
|
4145
4153
|
const r = t.getSharedStates();
|
|
@@ -4157,16 +4165,16 @@ var pi = { checkbox: "Checkbox" }, fi = [
|
|
|
4157
4165
|
const i = t.addBinary(a.bytes, a.type.mime, er, `../media/image${a.index}.${a.type.ext}`, !0, e);
|
|
4158
4166
|
i.relId !== e && t.log(`Legacy drawing image '${e}' was written as '${i.relId}'; the markup will not find it.`);
|
|
4159
4167
|
};
|
|
4160
|
-
function
|
|
4168
|
+
function ll(t) {
|
|
4161
4169
|
return t.toISOString().substring(0, 22);
|
|
4162
4170
|
}
|
|
4163
|
-
function
|
|
4171
|
+
function cl(t, e, n, o, r, s, a, i, l) {
|
|
4164
4172
|
const c = {
|
|
4165
4173
|
ref: e,
|
|
4166
|
-
dT:
|
|
4167
|
-
personId: o ?
|
|
4168
|
-
id:
|
|
4169
|
-
parentId: a ?
|
|
4174
|
+
dT: ll(r ?? /* @__PURE__ */ new Date()),
|
|
4175
|
+
personId: o ? dl(o) : void 0,
|
|
4176
|
+
id: dl(n),
|
|
4177
|
+
parentId: a ? dl(a) : void 0,
|
|
4170
4178
|
done: i ? "1" : void 0
|
|
4171
4179
|
};
|
|
4172
4180
|
if (t.start("threadedComment", c), t.start("text", $.test(s) || /[\n\r]/.test(s) ? A : void 0), t.text(s), t.end("text"), l && l.length > 0) {
|
|
@@ -4174,8 +4182,8 @@ function il(t, e, n, o, r, s, a, i, l) {
|
|
|
4174
4182
|
for (let e = 0; e < l.length; e++) {
|
|
4175
4183
|
const n = l[e];
|
|
4176
4184
|
t.empty("mention", {
|
|
4177
|
-
mentionpersonId:
|
|
4178
|
-
mentionId:
|
|
4185
|
+
mentionpersonId: dl(n.personId),
|
|
4186
|
+
mentionId: dl(n.id),
|
|
4179
4187
|
startIndex: n.startIndex ?? 0,
|
|
4180
4188
|
length: n.length ?? 0
|
|
4181
4189
|
});
|
|
@@ -4184,17 +4192,17 @@ function il(t, e, n, o, r, s, a, i, l) {
|
|
|
4184
4192
|
}
|
|
4185
4193
|
t.end("threadedComment");
|
|
4186
4194
|
}
|
|
4187
|
-
function
|
|
4195
|
+
function dl(t) {
|
|
4188
4196
|
return `{${t.replace(/^\{|\}$/g, "").toUpperCase()}}`;
|
|
4189
4197
|
}
|
|
4190
|
-
var
|
|
4198
|
+
var ml = {
|
|
4191
4199
|
rowIndex: 0,
|
|
4192
4200
|
colIndex: 0
|
|
4193
4201
|
};
|
|
4194
|
-
function
|
|
4202
|
+
function pl(t, e, n, o) {
|
|
4195
4203
|
if (null == o) return;
|
|
4196
|
-
|
|
4197
|
-
const r = Fe.cellToString(
|
|
4204
|
+
ml.rowIndex = e, ml.colIndex = n;
|
|
4205
|
+
const r = Fe.cellToString(ml);
|
|
4198
4206
|
let s, a;
|
|
4199
4207
|
switch (typeof o) {
|
|
4200
4208
|
case "number":
|
|
@@ -4217,7 +4225,7 @@ function dl(t, e, n, o) {
|
|
|
4217
4225
|
t: s
|
|
4218
4226
|
} : { r }), t.start("v"), t.text(a), t.end("v"), t.end("cell");
|
|
4219
4227
|
}
|
|
4220
|
-
var
|
|
4228
|
+
var fl = [
|
|
4221
4229
|
new class extends Tn {
|
|
4222
4230
|
constructor() {
|
|
4223
4231
|
super({
|
|
@@ -4640,7 +4648,7 @@ var ml = [
|
|
|
4640
4648
|
}
|
|
4641
4649
|
async emit(t, e) {
|
|
4642
4650
|
const n = e.getXMLWriter(), o = t.model, r = t.json, a = he(o, r);
|
|
4643
|
-
|
|
4651
|
+
ja(r, a), n.decl(), n.start("worksheet", {
|
|
4644
4652
|
xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
|
|
4645
4653
|
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
4646
4654
|
"xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
|
|
@@ -4876,7 +4884,7 @@ var ml = [
|
|
|
4876
4884
|
const t = n.buttons?.length ? Vt(n) : null;
|
|
4877
4885
|
if (t) for (const o of n.buttons) {
|
|
4878
4886
|
const n = Fe.fastStringToRange(o);
|
|
4879
|
-
for (let o = n.rowStart; o <= n.rowEnd; o++) for (let r = n.colStart; r <= n.colEnd; r++) (e ??= /* @__PURE__ */ new Set()).add((t.rowStart + o) *
|
|
4887
|
+
for (let o = n.rowStart; o <= n.rowEnd; o++) for (let r = n.colStart; r <= n.colEnd; r++) (e ??= /* @__PURE__ */ new Set()).add((t.rowStart + o) * za + t.colStart + r);
|
|
4880
4888
|
}
|
|
4881
4889
|
}
|
|
4882
4890
|
return e;
|
|
@@ -4913,7 +4921,7 @@ var ml = [
|
|
|
4913
4921
|
})(w, v, S, n.getEntireRange().getRowEnd() + 1) : w, T = k ? k.length : 0, I = ua(k), R = null !== I ? I - 1 : k?.[T - 1]?.max ?? -1, F = o.cols ? Fe.refsToRuns(o.cols, !0) : null, E = F ? F.length : 0, M = F?.[E - 1]?.max ?? -1;
|
|
4914
4922
|
if (x || T > 0) {
|
|
4915
4923
|
const l = .75, x = o.defaultRowSize ?? n.getRowHeaders().getMetrics().getDefaultSize() * l, v = n.getStyles().getNormal().getBestFit().height * l, w = ha(n.getOutline(), Ue.Axis.Row), S = (t, e) => {
|
|
4916
|
-
const n =
|
|
4924
|
+
const n = Ga;
|
|
4917
4925
|
if (n.r = "" + (t + 1), n.s = void 0, n.customFormat = void 0, n.hidden = void 0, n.ht = void 0, n.customHeight = void 0, n.outlineLevel = void 0, n.collapsed = void 0, n.thickTop = void 0, n.thickBot = void 0, !e) return n;
|
|
4918
4926
|
const o = e.value;
|
|
4919
4927
|
void 0 !== o.s && (n.s = "" + (a ? a.getXf(o.s, !0, !1) : o.s), n.customFormat = "1"), o.h && (n.hidden = "1");
|
|
@@ -5101,9 +5109,9 @@ var ml = [
|
|
|
5101
5109
|
J > 0 && (v = o.getInjectedReference(2) ?? !1);
|
|
5102
5110
|
let w = null;
|
|
5103
5111
|
Y > 0 && (w = o.getInjectedReference(3) ?? null);
|
|
5104
|
-
const S = "error" === w?.kind, b = "fixed" === w?.kind, k =
|
|
5112
|
+
const S = "error" === w?.kind, b = "fixed" === w?.kind, k = Ua;
|
|
5105
5113
|
k.r = o.getAddress(), k.s = void 0, k.t = void 0, k.cm = void 0, k.vm = void 0;
|
|
5106
|
-
const T = null !== f && f.has(s *
|
|
5114
|
+
const T = null !== f && f.has(s * za + i), I = null !== h ? function(t, e, n) {
|
|
5107
5115
|
for (const { table: o, coords: r, formats: s } of t) {
|
|
5108
5116
|
if (e < r.rowStart || e > r.rowEnd || n < r.colStart || n > r.colEnd) continue;
|
|
5109
5117
|
const t = o.getStyleAt(e, n), a = t.getAlignment(), i = "left" === a.getHorizontal() ? a.getIndent() : null, l = t.getNumberFormat(), c = l && "General" !== l ? l : null, d = s?.formatAt(e - r.rowStart, n - r.colStart).user ?? null;
|
|
@@ -5180,10 +5188,10 @@ var ml = [
|
|
|
5180
5188
|
let o, r = null;
|
|
5181
5189
|
const a = y.sharedId;
|
|
5182
5190
|
if (a) {
|
|
5183
|
-
o =
|
|
5191
|
+
o = Ja;
|
|
5184
5192
|
const t = y.coords;
|
|
5185
5193
|
t.colStart === i && t.rowStart === s ? (o.ref = y.ref, o.si = a, r = y.formula) : (o.ref = void 0, o.si = a);
|
|
5186
|
-
} else X ? (o =
|
|
5194
|
+
} else X ? (o = Ka, o.aca = S ? "1" : void 0, o.ref = S ? k.r : w?.ref ?? k.r, r = n) : (o = qa, r = n);
|
|
5187
5195
|
o.ca = v || S || y.isExcelVolatile ? "1" : void 0, r ? (e.start("f", o), e.text(r), e.end("f")) : e.empty("f", o);
|
|
5188
5196
|
} else R && e.empty("f", v ? {
|
|
5189
5197
|
...R,
|
|
@@ -5250,7 +5258,7 @@ var ml = [
|
|
|
5250
5258
|
const n = r[e];
|
|
5251
5259
|
let o, s;
|
|
5252
5260
|
Array.isArray(n) ? (o = n[0], s = n[1]) : (o = n.r, s = n.v);
|
|
5253
|
-
const i =
|
|
5261
|
+
const i = Ea(o);
|
|
5254
5262
|
if (!i || !s) {
|
|
5255
5263
|
t.log("Skipping protectedRange with no range.");
|
|
5256
5264
|
continue;
|
|
@@ -5296,26 +5304,26 @@ var ml = [
|
|
|
5296
5304
|
const o = a[n];
|
|
5297
5305
|
let r, i;
|
|
5298
5306
|
Array.isArray(o) ? (r = o[0], i = o[1]) : (r = o.r, i = o.v);
|
|
5299
|
-
const l =
|
|
5307
|
+
const l = Ea(r);
|
|
5300
5308
|
if (!l || !i) {
|
|
5301
5309
|
t.log("Skipping conditionalFormatting with no range.");
|
|
5302
5310
|
continue;
|
|
5303
5311
|
}
|
|
5304
|
-
const u =
|
|
5312
|
+
const u = Da(l), g = _a(i.scale, u, m);
|
|
5305
5313
|
g !== i.scale && (i = {
|
|
5306
5314
|
...i,
|
|
5307
5315
|
scale: g
|
|
5308
5316
|
});
|
|
5309
|
-
const x = g ? { type: g.type } : te(i.condition,
|
|
5310
|
-
x ? (x.formulas && (x.formulas = x.formulas.map((t) =>
|
|
5317
|
+
const x = g ? { type: g.type } : te(i.condition, Fa(l), (e, n) => t.warn(e, void 0, n));
|
|
5318
|
+
x ? (x.formulas && (x.formulas = x.formulas.map((t) => La(t, u, m))), g?.type === Ve.ScaleType.IconSet && ka(g) ? (f++, h(i), s.push({
|
|
5311
5319
|
guid: fe(Pe.uuidV4),
|
|
5312
5320
|
sqref: l,
|
|
5313
5321
|
priority: f,
|
|
5314
5322
|
scale: g
|
|
5315
|
-
})) : g || !
|
|
5323
|
+
})) : g || !Aa(x) ? (l !== p && (null !== p && e.end("conditionalFormatting"), e.start("conditionalFormatting", {
|
|
5316
5324
|
sqref: l,
|
|
5317
5325
|
pivot: "number" == typeof i.pivotKey ? "1" : void 0
|
|
5318
|
-
}), p = l), f++, h(i),
|
|
5326
|
+
}), p = l), f++, h(i), Ra(t, e, d, i, x, l, f, c, s)) : (f++, h(i), s.push({
|
|
5319
5327
|
guid: fe(Pe.uuidV4),
|
|
5320
5328
|
sqref: l,
|
|
5321
5329
|
priority: f,
|
|
@@ -5334,19 +5342,19 @@ var ml = [
|
|
|
5334
5342
|
const n = a[e];
|
|
5335
5343
|
let o, i;
|
|
5336
5344
|
Array.isArray(n) ? (o = n[0], i = n[1]) : (o = n.r, i = n.v);
|
|
5337
|
-
const c =
|
|
5345
|
+
const c = Ea(o);
|
|
5338
5346
|
if (!c || !i) {
|
|
5339
5347
|
t.log("Skipping dataValidation with no range.");
|
|
5340
5348
|
continue;
|
|
5341
5349
|
}
|
|
5342
5350
|
i.ext && t.warn("DataValidation extension payload is not written to xlsx; it will be lost.");
|
|
5343
|
-
const d = (e, n) => t.warn(e, void 0, n), m = st(i.condition, d), { type: p, operator: f } = m ?? {}, h =
|
|
5351
|
+
const d = (e, n) => t.warn(e, void 0, n), m = st(i.condition, d), { type: p, operator: f } = m ?? {}, h = Da(c), u = La(m?.formula1, h, s), g = La(m?.formula2, h, s), x = {
|
|
5344
5352
|
type: p,
|
|
5345
5353
|
operator: f,
|
|
5346
|
-
allowBlank:
|
|
5354
|
+
allowBlank: Ma(i.condition?.includeBlanks ?? !1),
|
|
5347
5355
|
showDropDown: i.hideDropdown ? "1" : void 0,
|
|
5348
|
-
showInputMessage:
|
|
5349
|
-
showErrorMessage:
|
|
5356
|
+
showInputMessage: Ma(i.showPromptMessage),
|
|
5357
|
+
showErrorMessage: Ma(i.showAlertMessage),
|
|
5350
5358
|
errorStyle: i.alertStyle ?? "stop",
|
|
5351
5359
|
errorTitle: Yt(i.alertTitle, "errorTitle", d),
|
|
5352
5360
|
error: Yt(i.alert, "error", d),
|
|
@@ -5354,7 +5362,7 @@ var ml = [
|
|
|
5354
5362
|
prompt: Yt(i.prompt, "prompt", d),
|
|
5355
5363
|
imeMode: i.imeMode
|
|
5356
5364
|
};
|
|
5357
|
-
|
|
5365
|
+
Pa(u) || Pa(g) ? r.push({
|
|
5358
5366
|
attrs: x,
|
|
5359
5367
|
formula1: u,
|
|
5360
5368
|
formula2: g,
|
|
@@ -5367,7 +5375,7 @@ var ml = [
|
|
|
5367
5375
|
}
|
|
5368
5376
|
if (0 === l.length) return r;
|
|
5369
5377
|
e.start("dataValidations", {
|
|
5370
|
-
...
|
|
5378
|
+
...Na(n),
|
|
5371
5379
|
count: l.length
|
|
5372
5380
|
});
|
|
5373
5381
|
for (let t = 0; t < l.length; t++) {
|
|
@@ -5424,7 +5432,7 @@ var ml = [
|
|
|
5424
5432
|
if (c) {
|
|
5425
5433
|
const e = await Ao({
|
|
5426
5434
|
...c,
|
|
5427
|
-
contentType: c.contentType ||
|
|
5435
|
+
contentType: c.contentType || $a
|
|
5428
5436
|
}, t, "../printerSettings/printerSettings{n}.bin");
|
|
5429
5437
|
e?.relId && (s["r:id"] = e.relId);
|
|
5430
5438
|
}
|
|
@@ -5444,14 +5452,14 @@ var ml = [
|
|
|
5444
5452
|
e.end("headerFooter");
|
|
5445
5453
|
}
|
|
5446
5454
|
}
|
|
5447
|
-
|
|
5455
|
+
Ba(e, "rowBreaks", n.rowBreaks), Ba(e, "colBreaks", n.columnBreaks);
|
|
5448
5456
|
}(e, n, r.pageLayout), function(t, e) {
|
|
5449
5457
|
if (!e?.length) return;
|
|
5450
5458
|
const n = /* @__PURE__ */ new Map();
|
|
5451
5459
|
for (const t of e) {
|
|
5452
5460
|
const e = Array.isArray(t) ? t[0] : t.r, o = Array.isArray(t) ? t[1] : t.v, r = v.filter((t) => o?.includes(t));
|
|
5453
5461
|
if (0 === r.length) continue;
|
|
5454
|
-
const s = "string" == typeof e ? e :
|
|
5462
|
+
const s = "string" == typeof e ? e : Ea(e);
|
|
5455
5463
|
if (!s) continue;
|
|
5456
5464
|
const a = r.join(",");
|
|
5457
5465
|
let i = n.get(a);
|
|
@@ -5509,7 +5517,7 @@ var ml = [
|
|
|
5509
5517
|
comments: n
|
|
5510
5518
|
});
|
|
5511
5519
|
}(o);
|
|
5512
|
-
|
|
5520
|
+
Oa(e, n, "legacyDrawing", Wa(Xa(o, r.legacyDrawing ?? null, a), h)), Oa(e, n, "legacyDrawingHF", r.legacyDrawingHF ?? null), await async function(t, e, n) {
|
|
5513
5521
|
const o = n.getPicture();
|
|
5514
5522
|
if (!o) return;
|
|
5515
5523
|
const r = o.getResource(), s = await r.getExternalURI();
|
|
@@ -5572,7 +5580,7 @@ var ml = [
|
|
|
5572
5580
|
e.start("controlPr", Nt(r)), e.start("anchor", {
|
|
5573
5581
|
moveWithCells: "absolute" === i ? void 0 : "1",
|
|
5574
5582
|
sizeWithCells: "twoCell" === i ? "1" : void 0
|
|
5575
|
-
}),
|
|
5583
|
+
}), Ha(e, "from", n.anchor.tl), Ha(e, "to", n.anchor.br), e.end("anchor"), r.xml && e.raw(r.xml), e.end("controlPr"), e.end("control"), e.end("mc:Choice"), e.end("mc:AlternateContent");
|
|
5576
5584
|
}
|
|
5577
5585
|
e.end("controls"), e.end("mc:Choice"), e.end("mc:AlternateContent");
|
|
5578
5586
|
}(e, n, a), function(t, e, n, o) {
|
|
@@ -5610,17 +5618,15 @@ var ml = [
|
|
|
5610
5618
|
}), e.start("x14:dataBar", {
|
|
5611
5619
|
minLength: i.minLength ?? 0,
|
|
5612
5620
|
maxLength: i.maxLength ?? 100,
|
|
5613
|
-
gradient: i.
|
|
5621
|
+
gradient: i.solidFill ? "0" : void 0,
|
|
5614
5622
|
border: i.borderColor ? "1" : void 0,
|
|
5615
5623
|
direction: i.direction,
|
|
5616
5624
|
negativeBarColorSameAsPositive: i.negativeFillColor ? "0" : "1",
|
|
5617
5625
|
negativeBarBorderColorSameAsPositive: i.negativeBorderColor ? "0" : void 0,
|
|
5618
5626
|
axisPosition: i.axisPosition
|
|
5619
5627
|
});
|
|
5620
|
-
const t = i
|
|
5621
|
-
|
|
5622
|
-
else for (let n = 0; n < t.length; n++) ba(e, t[n]);
|
|
5623
|
-
i.borderColor && No(e, c, i.borderColor, "x14:borderColor"), i.negativeFillColor && No(e, c, i.negativeFillColor, "x14:negativeFillColor"), i.negativeBorderColor && No(e, c, i.negativeBorderColor, "x14:negativeBorderColor"), i.axisColor && No(e, c, i.axisColor, "x14:axisColor"), e.end("x14:dataBar"), e.end("x14:cfRule");
|
|
5628
|
+
const [t, n] = Ta(i);
|
|
5629
|
+
ba(e, t), ba(e, n), i.borderColor && No(e, c, i.borderColor, "x14:borderColor"), i.negativeFillColor && No(e, c, i.negativeFillColor, "x14:negativeFillColor"), i.negativeBorderColor && No(e, c, i.negativeBorderColor, "x14:negativeBorderColor"), i.axisColor && No(e, c, i.axisColor, "x14:axisColor"), e.end("x14:dataBar"), e.end("x14:cfRule");
|
|
5624
5630
|
} else {
|
|
5625
5631
|
e.start("x14:cfRule", {
|
|
5626
5632
|
type: "iconSet",
|
|
@@ -5628,8 +5634,8 @@ var ml = [
|
|
|
5628
5634
|
id: r
|
|
5629
5635
|
}), e.start("x14:iconSet", {
|
|
5630
5636
|
iconSet: i.iconSet,
|
|
5631
|
-
reverse:
|
|
5632
|
-
showValue:
|
|
5637
|
+
reverse: Ma(i.reverse),
|
|
5638
|
+
showValue: Ma(i.showValue),
|
|
5633
5639
|
custom: (i.icon?.length ?? 0) > 0 ? "1" : void 0
|
|
5634
5640
|
});
|
|
5635
5641
|
const t = i.stops ?? [];
|
|
@@ -5645,12 +5651,12 @@ var ml = [
|
|
|
5645
5651
|
e.start("x14:cfRule", {
|
|
5646
5652
|
type: d.type,
|
|
5647
5653
|
priority: a,
|
|
5648
|
-
stopIfTrue:
|
|
5649
|
-
aboveAverage:
|
|
5650
|
-
equalAverage:
|
|
5654
|
+
stopIfTrue: Ma(p),
|
|
5655
|
+
aboveAverage: Ma(d.aboveAverage),
|
|
5656
|
+
equalAverage: Ma(d.equalAverage),
|
|
5651
5657
|
stdDev: d.stdDev,
|
|
5652
|
-
bottom:
|
|
5653
|
-
percent:
|
|
5658
|
+
bottom: Ma(d.bottom),
|
|
5659
|
+
percent: Ma(d.percent),
|
|
5654
5660
|
rank: d.rank,
|
|
5655
5661
|
operator: d.operator,
|
|
5656
5662
|
text: d.text,
|
|
@@ -5671,7 +5677,7 @@ var ml = [
|
|
|
5671
5677
|
"xmlns:x14": wt
|
|
5672
5678
|
}), e.start("x14:dataValidations", {
|
|
5673
5679
|
"xmlns:xm": ie,
|
|
5674
|
-
...
|
|
5680
|
+
...Na(n),
|
|
5675
5681
|
count: r.length
|
|
5676
5682
|
});
|
|
5677
5683
|
for (let t = 0; t < r.length; t++) {
|
|
@@ -5810,9 +5816,9 @@ var ml = [
|
|
|
5810
5816
|
const t = e.getRuns();
|
|
5811
5817
|
for (let e = 0; e < t.length; e++) {
|
|
5812
5818
|
const o = t[e];
|
|
5813
|
-
n.start("r"), o.font && a && ia(n, o.font, a),
|
|
5819
|
+
n.start("r"), o.font && a && ia(n, o.font, a), Ya(n, o.text), n.end("r");
|
|
5814
5820
|
}
|
|
5815
|
-
} else
|
|
5821
|
+
} else Ya(n, e);
|
|
5816
5822
|
n.end("si");
|
|
5817
5823
|
}
|
|
5818
5824
|
n.end("sst"), n.close();
|
|
@@ -5843,7 +5849,7 @@ var ml = [
|
|
|
5843
5849
|
e.end(o);
|
|
5844
5850
|
}(0, n, o, "clrScheme"), function(t, e, n, o) {
|
|
5845
5851
|
if (!n) return;
|
|
5846
|
-
e.start(o, { name: n.getName() || "Office" }),
|
|
5852
|
+
e.start(o, { name: n.getName() || "Office" }), pi(e, n.getMajor() ?? {}, "Calibri Light", "majorFont"), pi(e, n.getMinor() ?? {}, "Calibri", "minorFont"), e.end(o);
|
|
5847
5853
|
}(0, n, o.getFontScheme(), "fontScheme"), function(t, e, n, o, r) {
|
|
5848
5854
|
if (r?.formatSchemeXml) return void e.raw(r.formatSchemeXml);
|
|
5849
5855
|
(function(t, e, n, o, r) {
|
|
@@ -5860,13 +5866,13 @@ var ml = [
|
|
|
5860
5866
|
})(t, e, n, o, o.getFormatScheme());
|
|
5861
5867
|
}(e, n, "fmtScheme", o, r), n.end("themeElements"), function(t, e, n) {
|
|
5862
5868
|
const o = n.getObjectDefaults();
|
|
5863
|
-
if (!
|
|
5869
|
+
if (!fi.some(([t]) => o[t])) return void e.empty("objectDefaults");
|
|
5864
5870
|
const r = { getTheme: () => n };
|
|
5865
5871
|
e.start("objectDefaults");
|
|
5866
|
-
for (const [s, a] of
|
|
5872
|
+
for (const [s, a] of fi) {
|
|
5867
5873
|
const i = o[s];
|
|
5868
5874
|
if (!i) continue;
|
|
5869
|
-
e.start(a), e.start("spPr"), Yo(t, r, i), e.end("spPr"),
|
|
5875
|
+
e.start(a), e.start("spPr"), Yo(t, r, i), e.end("spPr"), mi(t, r, i.text);
|
|
5870
5876
|
const l = i.style;
|
|
5871
5877
|
if (l) {
|
|
5872
5878
|
const t = (t, o) => {
|
|
@@ -6173,7 +6179,7 @@ var ml = [
|
|
|
6173
6179
|
let s = 0;
|
|
6174
6180
|
for (let t = 0; t < o.length; t++) {
|
|
6175
6181
|
const e = s++;
|
|
6176
|
-
n.empty("bag", { type:
|
|
6182
|
+
n.empty("bag", { type: hi[o[t].type] ?? o[t].type });
|
|
6177
6183
|
const a = s++;
|
|
6178
6184
|
n.start("bag", { type: "XFControls" }), n.start("bagId", { k: "CellControl" }), n.text(String(e)), n.end("bagId"), n.end("bag"), r.push(s++), n.start("bag", { type: "XFComplement" }), n.start("bagId", { k: "XFControls" }), n.text(String(a)), n.end("bagId"), n.end("bag");
|
|
6179
6185
|
}
|
|
@@ -6203,14 +6209,14 @@ var ml = [
|
|
|
6203
6209
|
"xmlns:dcmitype": "http://purl.org/dc/dcmitype/",
|
|
6204
6210
|
"xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance"
|
|
6205
6211
|
});
|
|
6206
|
-
const o =
|
|
6212
|
+
const o = gi(/* @__PURE__ */ new Date()), r = {
|
|
6207
6213
|
author: "SheetXL",
|
|
6208
6214
|
lastAuthor: "SheetXL",
|
|
6209
6215
|
creationDate: o,
|
|
6210
6216
|
...t.model.getProperties().toJSON(),
|
|
6211
6217
|
lastModifiedDate: o
|
|
6212
6218
|
};
|
|
6213
|
-
for (const [t, e, o] of
|
|
6219
|
+
for (const [t, e, o] of ui) {
|
|
6214
6220
|
const s = r[e];
|
|
6215
6221
|
null != s && "" !== s && (n.start(t, o ? { "xsi:type": "dcterms:W3CDTF" } : void 0), n.text(String(s)), n.end(t));
|
|
6216
6222
|
}
|
|
@@ -6231,11 +6237,11 @@ var ml = [
|
|
|
6231
6237
|
n.setValidationDisabled(!0), n.decl(), n.start("Properties", {
|
|
6232
6238
|
xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
|
|
6233
6239
|
"xmlns:vt": "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
|
|
6234
|
-
}),
|
|
6240
|
+
}), xi(e, n, "Application", "SheetXL"), xi(e, n, "DocSecurity", "0"), xi(e, n, "ScaleCrop", "false"), yi(e, n, o);
|
|
6235
6241
|
const i = a.getManager();
|
|
6236
|
-
i &&
|
|
6242
|
+
i && xi(e, n, "Manager", i);
|
|
6237
6243
|
const l = a.getCompany();
|
|
6238
|
-
l &&
|
|
6244
|
+
l && xi(e, n, "Company", l), xi(e, n, "LinksUpToDate", "false"), xi(e, n, "SharedDoc", "false"), xi(e, n, "HyperlinksChanged", "false"), xi(e, n, "AppVersion", s), n.end("Properties"), n.close();
|
|
6239
6245
|
}
|
|
6240
6246
|
}(),
|
|
6241
6247
|
new class extends Tn {
|
|
@@ -6261,8 +6267,8 @@ var ml = [
|
|
|
6261
6267
|
name: e
|
|
6262
6268
|
};
|
|
6263
6269
|
a && (i.linkTarget = a), n.start("property", i);
|
|
6264
|
-
const l =
|
|
6265
|
-
n.start(l), n.text(r === We.Type.Date ?
|
|
6270
|
+
const l = vi[r];
|
|
6271
|
+
n.start(l), n.text(r === We.Type.Date ? wi(s) : String(s)), n.end(l), n.end("property");
|
|
6266
6272
|
}
|
|
6267
6273
|
n.end("Properties"), n.close();
|
|
6268
6274
|
}
|
|
@@ -6283,11 +6289,11 @@ var ml = [
|
|
|
6283
6289
|
const m = { xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main" };
|
|
6284
6290
|
if (o && (m["xmlns:xda"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"), r && (m["xmlns:xlrd"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata"), n.decl(), n.start("metadata", m), n.start("metadataTypes", { count: d }), o && n.empty("metadataType", {
|
|
6285
6291
|
name: "XLDAPR",
|
|
6286
|
-
...
|
|
6292
|
+
...Si,
|
|
6287
6293
|
cellMeta: "1"
|
|
6288
6294
|
}), r && n.empty("metadataType", {
|
|
6289
6295
|
name: "XLRICHVALUE",
|
|
6290
|
-
...
|
|
6296
|
+
...Si
|
|
6291
6297
|
}), n.end("metadataTypes"), o) {
|
|
6292
6298
|
n.start("futureMetadata", {
|
|
6293
6299
|
name: "XLDAPR",
|
|
@@ -6503,13 +6509,13 @@ var ml = [
|
|
|
6503
6509
|
async emit(t, e) {
|
|
6504
6510
|
const n = e.getXMLWriter(), o = t.getArrays();
|
|
6505
6511
|
n.decl(), n.start("arrayData", {
|
|
6506
|
-
xmlns:
|
|
6512
|
+
xmlns: bi,
|
|
6507
6513
|
count: o.length
|
|
6508
6514
|
});
|
|
6509
6515
|
for (const t of o) n.start("a", {
|
|
6510
6516
|
r: t.rows,
|
|
6511
6517
|
c: t.columns > 1 ? t.columns : void 0
|
|
6512
|
-
}),
|
|
6518
|
+
}), Ci(n, t.items), n.end("a");
|
|
6513
6519
|
n.end("arrayData"), n.close();
|
|
6514
6520
|
}
|
|
6515
6521
|
}(),
|
|
@@ -6525,7 +6531,7 @@ var ml = [
|
|
|
6525
6531
|
async emit(t, e) {
|
|
6526
6532
|
const n = e.getXMLWriter(), { structures: o } = t.getBags();
|
|
6527
6533
|
n.decl(), n.start("spbStructures", {
|
|
6528
|
-
xmlns:
|
|
6534
|
+
xmlns: bi,
|
|
6529
6535
|
count: o.length
|
|
6530
6536
|
});
|
|
6531
6537
|
for (const t of o) {
|
|
@@ -6550,9 +6556,9 @@ var ml = [
|
|
|
6550
6556
|
}
|
|
6551
6557
|
async emit(t, e) {
|
|
6552
6558
|
const n = e.getXMLWriter(), { bags: o, arrays: r } = t.getBags();
|
|
6553
|
-
if (n.decl(), n.start("supportingPropertyBags", { xmlns:
|
|
6559
|
+
if (n.decl(), n.start("supportingPropertyBags", { xmlns: bi }), r.length > 0) {
|
|
6554
6560
|
n.start("spbArrays", { count: r.length });
|
|
6555
|
-
for (const t of r) n.start("a", { count: t.length }),
|
|
6561
|
+
for (const t of r) n.start("a", { count: t.length }), Ci(n, t), n.end("a");
|
|
6556
6562
|
n.end("spbArrays");
|
|
6557
6563
|
}
|
|
6558
6564
|
n.start("spbData", { count: o.length });
|
|
@@ -6576,7 +6582,7 @@ var ml = [
|
|
|
6576
6582
|
async emit(t, e) {
|
|
6577
6583
|
const n = e.getXMLWriter(), o = t.getRichStyles();
|
|
6578
6584
|
n.decl(), n.start("richStyleSheet", {
|
|
6579
|
-
xmlns:
|
|
6585
|
+
xmlns: bi,
|
|
6580
6586
|
"xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
|
|
6581
6587
|
"mc:Ignorable": "x",
|
|
6582
6588
|
"xmlns:x": "http://schemas.openxmlformats.org/spreadsheetml/2006/main"
|
|
@@ -6627,7 +6633,7 @@ var ml = [
|
|
|
6627
6633
|
let i = 0;
|
|
6628
6634
|
const l = (t) => {
|
|
6629
6635
|
const e = t.content, n = yt(e?.type) ? e.json?.shapeId : e?.json?.sourceId;
|
|
6630
|
-
if ("number" == typeof n && n > i && (i = n), "group" === e?.type) for (const e of
|
|
6636
|
+
if ("number" == typeof n && n > i && (i = n), "group" === e?.type) for (const e of Di(t)) l(e);
|
|
6631
6637
|
};
|
|
6632
6638
|
for (let t = 0; t < a; t++) l(s[t]);
|
|
6633
6639
|
const c = /* @__PURE__ */ new Map(), d = e.getSharedStates();
|
|
@@ -6643,11 +6649,11 @@ var ml = [
|
|
|
6643
6649
|
} else t.add(n);
|
|
6644
6650
|
}
|
|
6645
6651
|
}
|
|
6646
|
-
const p =
|
|
6652
|
+
const p = tl(e, o), f = () => {
|
|
6647
6653
|
const t = (m.get(o) ?? 1) + 1;
|
|
6648
6654
|
return m.set(o, t), t;
|
|
6649
6655
|
}, h = (t) => {
|
|
6650
|
-
for (const e of
|
|
6656
|
+
for (const e of Di(t)) {
|
|
6651
6657
|
const t = e.content?.json?.sourceId, n = "number" == typeof t && !p.bySource.has(t), o = n ? t : f();
|
|
6652
6658
|
p.assigned.set(e, o), n && p.bySource.set(t, o), "group" === e.content?.type && h(e);
|
|
6653
6659
|
}
|
|
@@ -6657,40 +6663,40 @@ var ml = [
|
|
|
6657
6663
|
let o = c.get(e) ?? ("number" == typeof n ? n : void 0);
|
|
6658
6664
|
void 0 === o && (o = f()), p.assigned.set(e, o), "number" != typeof n || p.bySource.has(n) || p.bySource.set(n, o), "group" === e.content?.type && h(e);
|
|
6659
6665
|
}
|
|
6660
|
-
for (let t = 0; t < a; t++) await
|
|
6666
|
+
for (let t = 0; t < a; t++) await _i(e, s[t]);
|
|
6661
6667
|
for (let t = 0; t < a; t++) {
|
|
6662
6668
|
const a = s[t], i = r[t], l = a.content?.type;
|
|
6663
|
-
if (yt(l))
|
|
6669
|
+
if (yt(l)) al(n, a);
|
|
6664
6670
|
else {
|
|
6665
6671
|
if ("slicer" === l) {
|
|
6666
6672
|
const t = i.getContent();
|
|
6667
6673
|
if (!t.getTable?.() && !Ps(t)) continue;
|
|
6668
6674
|
}
|
|
6669
|
-
switch (n.start("twoCellAnchor", { editAs: a.anchorType || "twoCell" }),
|
|
6675
|
+
switch (n.start("twoCellAnchor", { editAs: a.anchorType || "twoCell" }), sl(n, "from", a.anchor.tl), sl(n, "to", a.anchor.br), l) {
|
|
6670
6676
|
case "picture":
|
|
6671
|
-
await
|
|
6677
|
+
await Ni(e, o, i, a, i.getBounds(), i.getContent().getResource());
|
|
6672
6678
|
break;
|
|
6673
6679
|
case "chart":
|
|
6674
|
-
await
|
|
6680
|
+
await Bi(e, o, i, a);
|
|
6675
6681
|
break;
|
|
6676
6682
|
case "shape":
|
|
6677
|
-
await
|
|
6683
|
+
await zi(e, o, i, a, i.getBounds());
|
|
6678
6684
|
break;
|
|
6679
6685
|
case "group":
|
|
6680
|
-
await
|
|
6686
|
+
await Vi(e, o, i, a, i.getBounds());
|
|
6681
6687
|
break;
|
|
6682
6688
|
case "smartArt":
|
|
6683
|
-
await
|
|
6689
|
+
await ji(e, o, i, a);
|
|
6684
6690
|
break;
|
|
6685
6691
|
case "slicer":
|
|
6686
|
-
await
|
|
6692
|
+
await Gi(e, o, i, a);
|
|
6687
6693
|
break;
|
|
6688
6694
|
case "graphicFrame":
|
|
6689
|
-
await
|
|
6695
|
+
await Ji(e, o, i, a);
|
|
6690
6696
|
break;
|
|
6691
|
-
default: await
|
|
6697
|
+
default: await Ki(e, o, a, i.getBounds());
|
|
6692
6698
|
}
|
|
6693
|
-
|
|
6699
|
+
Ai(n, a), n.end("twoCellAnchor");
|
|
6694
6700
|
}
|
|
6695
6701
|
}
|
|
6696
6702
|
n.end("wsDr"), n.close();
|
|
@@ -6712,7 +6718,7 @@ var ml = [
|
|
|
6712
6718
|
for (let r = 0; r < o; r++) {
|
|
6713
6719
|
const o = n[r], s = t?.get(o.resId);
|
|
6714
6720
|
if (s) try {
|
|
6715
|
-
await
|
|
6721
|
+
await il(e, o.id, s);
|
|
6716
6722
|
} catch (t) {
|
|
6717
6723
|
e.log(`Unable to write legacy drawing image '${o.id}'`, t);
|
|
6718
6724
|
}
|
|
@@ -6835,11 +6841,11 @@ var ml = [
|
|
|
6835
6841
|
for (let t = 0; t < o.length; t++) {
|
|
6836
6842
|
const { comment: e, ref: r } = o[t];
|
|
6837
6843
|
if (e.isNote()) continue;
|
|
6838
|
-
|
|
6844
|
+
cl(n, r, e.getId(), e.getAuthor()?.getId(), e.getCreationDate(), e.getContent(), null, e.isResolved(), e.toJSON()?.mentions);
|
|
6839
6845
|
const s = e.getReplies();
|
|
6840
6846
|
for (let t = 0; t < s.length; t++) {
|
|
6841
6847
|
const o = s[t];
|
|
6842
|
-
|
|
6848
|
+
cl(n, r, o.getId(), o.getAuthor()?.getId(), o.getCreationDate(), o.getContent(), e.getId(), !1, o.toJSON().mentions);
|
|
6843
6849
|
}
|
|
6844
6850
|
}
|
|
6845
6851
|
n.end("ThreadedComments"), n.close();
|
|
@@ -6865,7 +6871,7 @@ var ml = [
|
|
|
6865
6871
|
const e = o[t];
|
|
6866
6872
|
n.empty("person", {
|
|
6867
6873
|
displayName: e.getDisplayName(),
|
|
6868
|
-
id:
|
|
6874
|
+
id: dl(e.getId()),
|
|
6869
6875
|
userId: e.getUserId() ?? e.getDisplayName(),
|
|
6870
6876
|
providerId: e.getProviderId() ?? "None"
|
|
6871
6877
|
});
|
|
@@ -7094,7 +7100,7 @@ var ml = [
|
|
|
7094
7100
|
const r = o.length;
|
|
7095
7101
|
for (let e = 0; e < r; e++) {
|
|
7096
7102
|
const [r, s] = o[e], a = s.length;
|
|
7097
|
-
for (let e = 0; e < a; e++)
|
|
7103
|
+
for (let e = 0; e < a; e++) pl(t, n, r + e, s.at(e));
|
|
7098
7104
|
}
|
|
7099
7105
|
t.end("row");
|
|
7100
7106
|
}
|
|
@@ -7105,39 +7111,39 @@ var ml = [
|
|
|
7105
7111
|
}(n, t), n.end("externalBook"), n.end("externalLink"), n.close();
|
|
7106
7112
|
}
|
|
7107
7113
|
}()
|
|
7108
|
-
],
|
|
7114
|
+
], hl = "SheetXL Evaluation", ul = "xl/worksheets/sheetSheetXLEvaluation.xml", gl = "rIdSheetXLEvaluation", xl = [
|
|
7109
7115
|
"This workbook was exported from an unlicensed evaluation of SheetXL.",
|
|
7110
7116
|
"Your own sheets follow this one, unchanged.",
|
|
7111
7117
|
"To license SheetXL, visit https://www.sheetxl.com"
|
|
7112
|
-
],
|
|
7118
|
+
], yl = (t) => {
|
|
7113
7119
|
const e = [...t.matchAll(/<sheet\b[^>]*\bsheetId="(\d+)"/g)].map((t) => parseInt(t[1], 10)), n = new Set([...t.matchAll(/<sheet\b[^>]*\bname="([^"]*)"/g)].map((t) => t[1].toLowerCase()));
|
|
7114
|
-
let o =
|
|
7115
|
-
for (let t = 2; n.has(o.toLowerCase()); t++) o = `${
|
|
7116
|
-
const r = `<sheet name="${o}" sheetId="${Math.max(0, ...e) + 1}" r:id="${
|
|
7120
|
+
let o = hl;
|
|
7121
|
+
for (let t = 2; n.has(o.toLowerCase()); t++) o = `${hl} (${t})`;
|
|
7122
|
+
const r = `<sheet name="${o}" sheetId="${Math.max(0, ...e) + 1}" r:id="${gl}"/>`;
|
|
7117
7123
|
return t.replace(/<sheets>/, `<sheets>${r}`).replace(/\blocalSheetId="(\d+)"/g, (t, e) => `localSheetId="${parseInt(e, 10) + 1}"`).replace(/<workbookView\b([^>]*?)(\/?)>/, (t, e, n) => {
|
|
7118
7124
|
const o = /\bactiveTab="(\d+)"/.exec(e);
|
|
7119
7125
|
return `<workbookView${(o ? e.replace(/\bactiveTab="\d+"/, `activeTab="${parseInt(o[1], 10) + 1}"`) : `${e} activeTab="1"`).replace(/\s*\bfirstTab="\d+"/, "")}${n}>`;
|
|
7120
7126
|
});
|
|
7121
|
-
},
|
|
7127
|
+
}, vl = async (t) => {
|
|
7122
7128
|
const e = new un(new fn(t)), n = new hn(), o = new gn(n, { lastModDate: new Date(1899, 11, 29, 19, 0, 0) });
|
|
7123
7129
|
try {
|
|
7124
7130
|
for (const t of await e.getEntries()) {
|
|
7125
7131
|
if (t.directory || !("getData" in t)) continue;
|
|
7126
7132
|
const e = t.filename;
|
|
7127
|
-
if ("xl/workbook.xml" === e) await o.add(e, new fn(new TextEncoder().encode(
|
|
7133
|
+
if ("xl/workbook.xml" === e) await o.add(e, new fn(new TextEncoder().encode(yl(await t.getData(new pn())))));
|
|
7128
7134
|
else if ("xl/_rels/workbook.xml.rels" === e) {
|
|
7129
|
-
const n = await t.getData(new pn()), r = `<Relationship Id="${
|
|
7135
|
+
const n = await t.getData(new pn()), r = `<Relationship Id="${gl}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="${ul.slice(3)}"/>`;
|
|
7130
7136
|
await o.add(e, new fn(new TextEncoder().encode(n.replace("</Relationships>", `${r}</Relationships>`))));
|
|
7131
7137
|
} else if ("[Content_Types].xml" === e) {
|
|
7132
|
-
const n = await t.getData(new pn()), r = `<Override PartName="/${
|
|
7138
|
+
const n = await t.getData(new pn()), r = `<Override PartName="/${ul}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`;
|
|
7133
7139
|
await o.add(e, new fn(new TextEncoder().encode(n.replace("</Types>", `${r}</Types>`))));
|
|
7134
7140
|
} else await o.add(e, new fn(await t.getData(new hn())));
|
|
7135
7141
|
}
|
|
7136
|
-
return await o.add(
|
|
7142
|
+
return await o.add(ul, new fn(new TextEncoder().encode(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><sheetViews><sheetView workbookViewId="0"/></sheetViews><cols><col min="1" max="1" width="80" customWidth="1"/></cols><sheetData>${xl.map((t, e) => `<row r="${e + 1}"><c r="A${e + 1}" t="inlineStr"><is><t>${t}</t></is></c></row>`).join("")}</sheetData></worksheet>`))), await o.close(), await n.getData();
|
|
7137
7143
|
} finally {
|
|
7138
7144
|
await e.close();
|
|
7139
7145
|
}
|
|
7140
|
-
},
|
|
7146
|
+
}, wl = (t) => {
|
|
7141
7147
|
const e = t.getPart("xl/_rels/workbook.xml.rels");
|
|
7142
7148
|
if (!e) return null;
|
|
7143
7149
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -7151,24 +7157,24 @@ var ml = [
|
|
|
7151
7157
|
});
|
|
7152
7158
|
}
|
|
7153
7159
|
return n;
|
|
7154
|
-
},
|
|
7160
|
+
}, Sl = (t) => {
|
|
7155
7161
|
const e = t.getPart("xl/workbook.xml");
|
|
7156
7162
|
return e ? new TextDecoder("utf-8").decode(e.data) : null;
|
|
7157
|
-
},
|
|
7163
|
+
}, bl = (t) => {
|
|
7158
7164
|
const e = [], n = /<(\/?)ext(?=[\s/>])[^>]*?(\/?)>/g;
|
|
7159
7165
|
let o = 0, r = 0;
|
|
7160
7166
|
for (let s = n.exec(t); s; s = n.exec(t)) s[1] ? (o--, 0 === o && e.push(t.slice(r, s.index + s[0].length))) : s[2] ? 0 === o && e.push(s[0]) : (0 === o && (r = s.index), o++);
|
|
7161
7167
|
return e;
|
|
7162
|
-
},
|
|
7163
|
-
const e =
|
|
7168
|
+
}, Cl = (t) => {
|
|
7169
|
+
const e = kl.get(t);
|
|
7164
7170
|
if (void 0 !== e) return e;
|
|
7165
7171
|
const n = t.getPart("xl/workbook.xml"), o = n ? new TextDecoder("utf-8").decode(n.data) : null;
|
|
7166
|
-
return
|
|
7167
|
-
},
|
|
7172
|
+
return kl.set(t, o), o;
|
|
7173
|
+
}, kl = /* @__PURE__ */ new WeakMap(), Tl = async (t, e) => {
|
|
7168
7174
|
await Le.load();
|
|
7169
7175
|
const n = new to();
|
|
7170
|
-
for (const t of
|
|
7171
|
-
const o =
|
|
7176
|
+
for (const t of fl) n.register(t);
|
|
7177
|
+
const o = Il, r = In.createUint8Array({
|
|
7172
7178
|
lastModDate: new Date(1899, 11, 29, 19, 0, 0),
|
|
7173
7179
|
level: o
|
|
7174
7180
|
}), s = ye.includes(e?.format) ? E(t) : null, a = /* @__PURE__ */ new Map(), i = s ? ((t) => {
|
|
@@ -7182,19 +7188,19 @@ var ml = [
|
|
|
7182
7188
|
})(s) : null;
|
|
7183
7189
|
i && (e?.macroEnabled || delete i.codeName, a.set(Os, i));
|
|
7184
7190
|
const l = s ? ((t) => {
|
|
7185
|
-
const e =
|
|
7191
|
+
const e = Cl(t)?.match(/<calcPr\b[^>]*?\bcalcId="([^"]*)"/);
|
|
7186
7192
|
return e ? e[1] : null;
|
|
7187
7193
|
})(s) : null;
|
|
7188
7194
|
null !== l && a.set("calcId", l);
|
|
7189
7195
|
const c = s ? ((t) => {
|
|
7190
|
-
const e =
|
|
7196
|
+
const e = Cl(t);
|
|
7191
7197
|
if (!e) return null;
|
|
7192
7198
|
const n = e.lastIndexOf("<extLst>");
|
|
7193
7199
|
if (-1 === n) return null;
|
|
7194
7200
|
const o = e.indexOf("</extLst>", n);
|
|
7195
7201
|
if (-1 === o || !/^<\/extLst>\s*<\/workbook>/.test(e.slice(o))) return null;
|
|
7196
|
-
const r = e.slice(n + 8, o), s =
|
|
7197
|
-
for (const t of
|
|
7202
|
+
const r = e.slice(n + 8, o), s = wl(t), a = [];
|
|
7203
|
+
for (const t of bl(r)) {
|
|
7198
7204
|
const e = /^<ext\b[^>]*?\buri="([^"]*)"/.exec(t)?.[1] ?? "", n = [];
|
|
7199
7205
|
for (const e of t.matchAll(/\sr:id="([^"]*)"/g)) {
|
|
7200
7206
|
if (n.some((t) => t.id === e[1])) continue;
|
|
@@ -7216,13 +7222,13 @@ var ml = [
|
|
|
7216
7222
|
})(s) : null;
|
|
7217
7223
|
null !== c && a.set("workbookExts", c);
|
|
7218
7224
|
const d = s ? ((t) => {
|
|
7219
|
-
const e =
|
|
7225
|
+
const e = Sl(t);
|
|
7220
7226
|
if (!e) return null;
|
|
7221
7227
|
const n = /<externalReferences\b[^>]*>([\s\S]*?)<\/externalReferences>/.exec(e);
|
|
7222
7228
|
if (!n) return null;
|
|
7223
7229
|
const o = [...n[1].matchAll(/<externalReference\b[^>]*\sr:id="([^"]*)"/g)].map((t) => t[1]);
|
|
7224
7230
|
if (0 === o.length) return null;
|
|
7225
|
-
const r =
|
|
7231
|
+
const r = wl(t);
|
|
7226
7232
|
return r ? o.map((t) => {
|
|
7227
7233
|
const e = r.get(t);
|
|
7228
7234
|
return e && !e.external ? e.target : null;
|
|
@@ -7230,7 +7236,7 @@ var ml = [
|
|
|
7230
7236
|
})(s) : null;
|
|
7231
7237
|
d && a.set(Xs, d);
|
|
7232
7238
|
const m = s ? ((t) => {
|
|
7233
|
-
const e =
|
|
7239
|
+
const e = Sl(t), n = e ? wl(t) : null;
|
|
7234
7240
|
if (!e || !n) return null;
|
|
7235
7241
|
const o = /* @__PURE__ */ new Map();
|
|
7236
7242
|
for (const t of e.matchAll(/<sheet\b([^>]*)\/?>/g)) {
|
|
@@ -7259,7 +7265,7 @@ var ml = [
|
|
|
7259
7265
|
});
|
|
7260
7266
|
f.addPart("workbook", t, "/xl/workbook.xml"), await f.waitEmit(), f.addPart("propsCore", { model: t }), f.addPart("propsApp", { model: t }), t.getProperties().getCustom().length > 0 && f.addPart("propsCustom", { model: t });
|
|
7261
7267
|
let h = await f.build();
|
|
7262
|
-
await Qe.isWatermarked() && (h = await
|
|
7268
|
+
await Qe.isWatermarked() && (h = await vl(h));
|
|
7263
7269
|
const u = e?.progress?.onWarning;
|
|
7264
7270
|
if (p.length && u) {
|
|
7265
7271
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -7269,5 +7275,5 @@ var ml = [
|
|
|
7269
7275
|
}
|
|
7270
7276
|
}
|
|
7271
7277
|
return 0 === h.byteOffset && h.byteLength === h.buffer.byteLength ? h.buffer : h.slice().buffer;
|
|
7272
|
-
},
|
|
7273
|
-
export {
|
|
7278
|
+
}, Il = 1;
|
|
7279
|
+
export { Tl as writeXLSX };
|