superrfjs
Version:
12 lines • 365 kB
JavaScript
/*!
*
* SpreadJS Library 17.0.7
*
* Copyright(c) MESCIUS inc. All rights reserved.
*
* Licensed under the SpreadJS Commercial License.
* us.sales@mescius.com
* https://developer.mescius.com/spreadjs
*
*/
!function (t) { "object" == typeof module && "object" == typeof module.exports ? module.exports = t(require("@mescius/spread-sheets")) : "function" == typeof define && define.amd ? define(["@mescius/spread-sheets"], t) : "object" == typeof exports ? exports.Spread = t(require("@mescius/spread-sheets")) : t(GC) }(function (r) { function i(t) { var n, n, n = o[t]; return void 0 !== n || (n = o[t] = { exports: {} }, e[t].call(n.exports, n, n.exports, i)), n.exports } var e, o, t; e = { "./dist/plugins/report/base/sheet-tab-base.js": function (t, n) { "use strict"; var i; function r() { } Object.defineProperty(n, "__esModule", { value: !0 }), n.SheetTabBase = void 0, r.prototype.name = function (t) { var n = this.Mf; return n.name.apply(n, arguments), n.name() }, r.prototype.getParent = function () { return this.Mf && this.Mf.getParent() }, r.prototype.visible = function (t) { var n = this.Mf; return n.visible.apply(n, arguments) }, r.prototype.R2e = function () { return this.Mf.options.sheetTabColor }, r.prototype.hg = function (t) { this.Mf.hg(t) }, r.prototype.L0 = function (t, n) { var i; this.Mf.L0(t, n), t && (this.E3(), this.UMi) && this.UMi.detach() }, r.prototype.Zg = function (t) { this.Mf.Zg(t) }, r.prototype.pM = function (t) { this.Mf.pM(t) }, r.prototype.b2 = function (t, n) { return this.Mf && this.Mf.b2(t, n) }, r.prototype.ow = function () { this.Mf.ow() }, r.prototype.aw = function () { this.Mf.aw() }, r.prototype.tw = function () { this.Mf.tw() }, r.prototype.Wb = function (t, n) { this.Mf.Wb(t, n) }, r.prototype.Kb = function (t) { this.Mf.Kb(t) }, r.prototype.Fb = function (t, n) { this.Mf.Fb(t, n) }, r.prototype.onHorizontalDockScroll = function (t, n) { this.Mf.onHorizontalDockScroll(t, n) }, r.prototype.Gb = function (t) { this.Mf.Gb(t) }, r.prototype.WC = function (t, n, i) { this.Mf.WC(t, n, i) }, r.prototype.$C = function (t) { this.Mf.$C(t) }, r.prototype.QC = function (t, n, i) { this.Mf.QC(t, n, i) }, r.prototype.Cg = function () { this.Mf.Cg() }, r.prototype.suspendPaint = function () { this.Mf.suspendPaint() }, r.prototype.resumePaint = function () { var t = this.Mf.getDataSource(); this.Mf.resumePaint() }, r.prototype.isPaintSuspended = function () { return this.Mf.isPaintSuspended() }, r.prototype.v3 = function (t) { var n, i, r, e, n = this.rM; if (n) for (i = 0, r = n; i < r.length; i++)e = r[i], t.bind(e.type, e.data, e.fn) }, r.prototype.bind = function (t, n, i) { this.rM || (this.rM = []), this.Mf.bind(t, n, i), this.rM.push({ type: t, data: n, fn: i }) }, r.prototype.unbind = function (n, i) { this.Mf.unbind(n, i), this.rM && (this.rM = this.rM.filter(function (t) { return t.type !== n && t.fn !== i })) }, r.prototype.unbindAll = function () { this.rM = [], this.Mf.unbindAll() }, r.prototype.D3 = function (t, n, i) { this.rM || (this.rM = []), this.Mf.D3(t, n, i), this.rM.push({ type: t, data: n, fn: i }) }, r.prototype._3 = function (n, i) { this.Mf._3(n, i), this.rM && (this.rM = this.rM.filter(function (t) { return t.type !== n && t.fn !== i })) }, r.prototype.E3 = function () { this.rM = [], this.Mf.E3() }, r.prototype.parameter = function (t) { return 0 !== arguments.length && (this.ghe = t), this.ghe }, r.prototype.suspendEvent = function () { this.Mf.suspendEvent() }, r.prototype.resumeEvent = function () { this.Mf.resumeEvent() }, r.prototype.isEventSuspended = function () { return this.Mf.isEventSuspended() }, r.prototype.bC = function () { this.Mf.bC() }, r.prototype.ki = function (t, n, i) { this.Mf.ki(t, n, i) }, r.prototype.isEditing = function () { return this.Mf.isEditing() }, r.prototype.ol = function (t, n, i, r) { return this.Mf.ol(t, n, i, r) }, r.prototype.currentTheme = function (t) { var n = this.Mf; return n.currentTheme.apply(n, arguments) }, r.prototype.FM = function () { this.Mf.FM() }, r.prototype.uw = function () { return this.Mf.uw() }, r.prototype.ot = function () { return this.Mf.ot() }, r.prototype.hitTest = function (t, n, i, r) { return this.Mf.hitTest(t, n, i, r) }, r.prototype.toJSON = function (t) { }, r.prototype.fromJSON = function (t, n, i, r, e) { }, n.SheetTabBase = r }, "./dist/plugins/report/calc-model/calc-model.js": function (t, n, i) { "use strict"; var h, r, a, e, o, u; function s(t, n, i, r) { this.hCi = !1; var e = this; e.vCi = n, e.dCi = i, e.POt = r, e.pCi(n, t), e.c5() } Object.defineProperty(n, "__esModule", { value: !0 }), n.CalcModel = void 0, h = i("CalcEngine"), r = i("./dist/plugins/report/helpers/smart-cache.js"), a = i("./dist/plugins/report/utils/utils.js"), e = i("./dist/plugins/report/calc-model/helpers/hierarchical-cell-indexing-helper.js"), o = i("SheetsCalc"), s.prototype.pCi = function (t, n) { var i = this, r; i.POt.setReportContext(t, i, new e.HierarchicalCellIndexingHelper(i, t, n)) }, s.prototype.wCi = function () { return this.POt.hierarchicalCellIndexingHelper }, s.prototype.gCi = function () { this.c5(), this.hCi = !0 }, s.prototype.MCi = function () { this.hCi = !1 }, s.prototype.jCi = function (t) { var n, t, n = this, t = (0, o.formulaToExpression)(n.POt.Mf.reportSheet.templateSheet, t); return this.ICi(n.POt.Mf.reportSheet, t), (0, o.expressionToFormula)(n.POt.Mf, t) }, s.prototype.ICi = function (t, n) { var i, r, e; if (8 === n.type) this.xbe(t, n); else { if (n.arguments) for (i = 0, r = n.arguments; i < r.length; i++)e = r[i], this.ICi(t, e); n.value && this.ICi(t, n.value), n.value2 && this.ICi(t, n.value2) } }, s.prototype.xbe = function (t, n) { var i, r, e, o, t, i = t.parameter(); if (i) { for (o in e = n.value + "", i) i.hasOwnProperty(o) && o.toUpperCase() === e.toUpperCase() && (r = i[o]); void 0 !== r && ("string" == (t = typeof r) ? n.type = 3 : "boolean" == t ? n.type = 4 : "number" == t ? n.type = 2 : r instanceof Date && (r = r.toString(), n.type = 3), n.value = r) } }, s.prototype.CCi = function (t) { var n, i, r, e, o, u, s, c, f, n = this, i = (0, a.bCi)(t); if (!(0, a.ht)(i)) { if (i = n.jCi(i), r = t.row, e = t.col, n.mCi.get(r, e) || n.yCi.get(r, e)) return n.NCi.get(r, e); if ((u = n.DCi)[r]) { if (u[r][e]) return h.Errors.Value } else u[r] = []; return i.startsWith("{") && i.endsWith("}") ? o = t.value : (u[r][e] = !0, s = n.dCi, f = (c = n.POt).getBaseRowCol(), c.setContext({ row: r, col: e }), o = s.evaluate(c, i, 0, 0), u[r][e] = !1, this.POt.hierarchicalCellIndexingHelper.resetOffsetContent(), c.setContext(f)), n.NCi.set(r, e, o), n.yCi.set(r, e, !0), t.group.defaultFormula && (t.group.defaultFormula = void 0, t.group.value = o, t.value = o), o } }, s.prototype.OCi = function (t, n, i) { var r, e, o, r = this, e = r.dCi, o = r.POt; return o.setContext({ row: t, col: n }), i = r.jCi(i), e.evaluate(o, i, 0, 0) }, s.prototype.Sl = function (t, n) { return this.NCi.get(t, n) }, s.prototype.ACi = function (t, n, i) { this.mCi.set(t, n, !0), this.NCi.set(t, n, i), this.POt.hierarchicalCellIndexingHelper.resetRankCache(), this.reCalcCellsFrom(t, n) }, s.prototype.TCi = function (t, n, i) { var r, e, o; this.hCi && (e = (r = this).ECi, o = { row: n, col: i }, t.forEach(function (t) { var n = t.row, t = t.col; (0, a.ht)(e[n]) && (e[n] = []), (0, a.ht)(e[n][t]) ? e[n][t] = [o] : e[n][t].push(o) })) }, s.prototype.SCi = function (t, i) { var r; this.hCi && (r = this.ECi, t.forEach(function (t) { var n = t.row, t = t.col; (0, a.ht)(r[n]) && (r[n] = []), (0, a.ht)(r[n][t]) ? r[n][t] = [i] : r[n][t].push(i) })) }, s.prototype.eG = function () { var t = this; t.NCi = a.KEYWORD_UNDEFINED, t.dCi = a.KEYWORD_UNDEFINED, t.POt.destroy(), t.POt = a.KEYWORD_UNDEFINED, t.yCi = a.KEYWORD_UNDEFINED, t.ECi = a.KEYWORD_UNDEFINED, t.mCi = a.KEYWORD_UNDEFINED, t.DCi = a.KEYWORD_UNDEFINED }, s.prototype.c5 = function () { var t = this; t.NCi = new r.SmartCache, t.yCi = new r.SmartCache, t.mCi = new r.SmartCache, t.POt.hierarchicalCellIndexingHelper.reset(), t.ECi = [], t.DCi = [] }, s.prototype.fillCellsDependsOnCurrentCell = function (t, n, i, r) { var e, o, u, s, e = this, o = e.ECi, u = o[t] && o[t][n]; (r = r || {})[t + "-" + n] = !0, u && (s = function (t) { var n = t.row, t = t.col; (0, a.ht)(o[n]) || (0, a.ht)(o[n][t]) || r[n + "-" + t] ? i.push({ row: n, col: t }) : e.fillCellsDependsOnCurrentCell(n, t, i, r) }, u.forEach(function (t) { Array.isArray(t) ? t.forEach(function (t) { s(t) }) : s(t) })) }, s.prototype.reCalcCellsFrom = function (t, n) { var i, r, i = this, r = []; i.yCi.reset(), i.fillCellsDependsOnCurrentCell(t, n, r), r.forEach(function (t) { var t = i.vCi.getCell(t.row, t.col); i.CCi(t) }) }, n.CalcModel = s }, "./dist/plugins/report/calc-model/calc-source.js": function (t, n, i) { "use strict"; var r, A, D, u, i, O, e, o, s; function c(t, n, i) { var n = s.call(this, t, n, i) || this; return n.Mf = t, n } function b(t, n, i) { var r, e, o, u; if (t.arguments && t.arguments.some(function (t) { return t === n || 8 === t.type && i.getCustomName(t.value) === n }) || t.value === n || t.value2 === n) return t.functionName; if (t.arguments) for (r = 0, e = t.arguments; r < e.length; r++)if (u = b(o = e[r], n, i)) return u; return t.value && (u = b(t.value, n, i)) || t.value2 && (u = b(t.value2, n, i)) ? u : void 0 } r = this && this.__extends || (o = function (t, n) { return (o = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? function (t, n) { t.__proto__ = n } : function (t, n) { for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]) }))(t, n) }, function (t, n) { if ("function" != typeof n && null !== n) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null"); function i() { this.constructor = t } o(t, n), t.prototype = null === n ? Object.create(n) : (i.prototype = n.prototype, new i) }), Object.defineProperty(n, "__esModule", { value: !0 }), n.ReportCalcSource = void 0, A = i("CalcEngine"), D = i("./dist/plugins/report/utils/utils.js"), u = i("Core"), i = i("SheetsCalc"), O = ["ROW", "ROWS", "COLUMN", "COLUMNS", "INDEX", "OFFSET", "SUMIF", "SUMIFS", "SCATTERSPARKLINE", "BOXPLOTSPARKLINE", "MONTHSPARKLINE", "YEARSPARKLINE", "HISTOGRAMSPARKLINE", "RANGEBLOCKSPARKLINE", "R.INDEX", "R.RANK", "R.R", "R.A", "R.V", "R.PROPORTION", "R.CUMULATIVE", "R.YOY", "R.MOM"], s = i.SheetSource, r(c, s), c.prototype.setReportContext = function (t, n, i) { this._Ci = t, this.xCi = n, this.hierarchicalCellIndexingHelper = i }, c.prototype.getResolver = function () { return this.resolvers }, c.prototype.evaluateReference = function (t, n, i) { var r, e, o, u, r, s, c, f, h, a, l, v, d, p, w, M, I, e, p, i, g, C, N, E, j, T, r = this, e = r.DJ, o = r._Ci, u = r.xCi, r = isNaN(n.row) ? 0 : n.row, s = isNaN(n.column) ? 0 : n.column, l = t.getRange && t.getRange(r, s), f = (0 === r && 0 === s || !t.rowRelative && !t.columnRelative ? (c = l.row, l) : (c = (v = o.getCell(r, s)).cellNode.templateCell.row, v.cellNode.templateCell)).col, h = l.rowCount, a = l.colCount, d = t.source || n.source, p = n.WK, M = e ? (w = e.row, e.col) : (w = n.row, n.column); if (p && t instanceof A.ReferenceExpression && -1 < O.indexOf(b(p, t, n.source) || p.functionName)) { if (i || n.arrayFormulaMode) return e = void 0, t.endSource && (e = n.getSheetRangeReference({ source: t.source, endSource: t.endSource, row: l.row, col: l.col, rowCount: l.rowCount, colCount: l.colCount })), (e = n.getReference(d, l)) instanceof A.CalcReference && (I = o.getCells(e.getRow(), e.getColumn(), w, M), this.TCi(I)), e; if (1 < h || 1 < a) { if (p = r >= l.row && r < l.row + h, i = s >= l.col && s < l.col + a, p && i) c = r, f = s; else { if (!p && !i) return A.Errors.Value; if (p && 1 === a) c = r; else { if (!i || 1 !== h) return A.Errors.Value; f = s } } n.WK && n.WK.ensureSingle && (t.$9t = !0) } else if (-1 === l.row && -1 === h) { if (1 !== a) return A.Errors.Value; c = r } else if (-1 === l.col && -1 === a) { if (1 !== h) return A.Errors.Value; f = s } return c === w && f === M ? null : ((I = o.getCells(c, f, w, M)) && I.length && this.TCi(I), d.getValue(c, f)) } if (l) { for (g = [], C = 0; C < h; C++)for (N = 0; N < a; N++)if (I = o.getCells(c + C, f + N, w, M)) for (this.TCi(I), E = 0, j = I; E < j.length; E++)v = j[E], T = (0, D.bCi)(v) ? u.CCi(v) : v.value, Array.isArray(T) ? T.forEach(function (t) { g.push(t) }) : g.push(T); return new A.TwoDimensionalCalcArray([g]) } return A.Errors.Reference }, c.prototype.getSheet = function () { return this.Mf }, c.prototype.getBaseRowCol = function () { var t = this.DJ; if (t) return { row: t.row, col: t.col } }, c.prototype.getValue = function (t, n) { var i, r, i, i = this._Ci, r = this.xCi, i = i.getCell(t, n); if (i) return (0, D.bCi)(i) ? r.CCi(i) : i.value }, c.prototype.getCustomFunction = function (t) { return this.Mf ? this.Mf.Jbt(t) : null }, c.prototype.op = function () { return this.getCalcService() }, c.prototype.setContext = function (t) { this.DJ = t }, c.prototype.destroy = function () { this.xCi = D.KEYWORD_UNDEFINED, this.DJ = D.KEYWORD_UNDEFINED, this.resolvers = D.KEYWORD_UNDEFINED, this._Ci = D.KEYWORD_UNDEFINED }, c.prototype.TCi = function (t) { var n, i, r, e, o, i; this.DJ && (r = (i = (n = this).DJ).row, e = i.col, o = i.formula, i = i.triggerUpdatePrecedents, n.xCi.TCi(t, r, e), i) && u.Worksheet.et(n.getSheet(), "updatePrecedents", { row: r, col: e, cells: t, formula: o }) }, n.ReportCalcSource = c }, "./dist/plugins/report/calc-model/helpers/hierarchical-cell-indexing-helper.js": function (t, n, i) { "use strict"; var S, m, i, y, a, r, i; function R() { return S.Functions.CALC_PRECISION || 14 } function e(t, n, i) { this.zCi = {}, this._Ci = n, this.LCi = i, this.xCi = t, this.PCi = {}, this.ntr = {} } Object.defineProperty(n, "__esModule", { value: !0 }), n.HierarchicalCellIndexingHelper = void 0, S = i("CalcEngine"), m = i("./dist/plugins/report/utils/utils.js"), i = i("Common"), y = i.Common.st.E8, (i = a = a || {})[i.noJuxtaposition = 0] = "noJuxtaposition", i[i.nonSkippingNumber = 1] = "nonSkippingNumber", i[i.skipNumber = 2] = "skipNumber", e.prototype.getYearOverYear = function (t, n, i, r) { for (var e, o, u, s, c, n, f, h, a, l, v, d, p, w, M, a, f, I, g, C, N, E, j, e, T, A, D, O, b, a, f, s, I, e = this, o = e._Ci, u = e.xCi, s = e.ntr, c = n.getRow(), n = n.getColumn(), f = e.LCi.reportSheet.getTemplate(), h = o.getCells(c, n, t.row, t.col)[0], a = i || r, l = o.getCells(a.getRow(), a.getColumn(), h.row, h.col)[0], v = e.BCi({ row: c, col: n }, { row: i.getRow(), col: i.getColumn() }, r && { row: r.getRow(), col: r.getColumn() }, { row: h.row, col: h.col }), d = -1, w = 0, M = v.length; w < M; w++)if ((p = v[w]).row === h.row && p.col === h.col) { d = w; break } if (d < 0) return S.Errors.Reference; for (a = l.cellNode.templateCell, f = f.GCi(a.row, a.col), s[I = this.itr(t, { row: c, col: n }, i && { row: i.getRow(), col: i.getColumn() }, r && { row: r.getRow(), col: r.getColumn() })] || (s[I] = e.BCi({ row: a.row, col: a.col }, f.upParent, f.leftParent, { row: l.row, col: l.col })), C = -1, E = 0, j = (g = s[I]).length; E < j; E++) { if ((N = g[E]).row === l.row && N.col === l.col) { N = g[E - 1], C = E - 1; break } if (N.row > l.row && N.col > l.col) break } if (C < 0) return 0; if (e = o.getCells(c, n, N.row, N.col), i && r) { for (T = [], A = o.getCells(r.getRow(), r.getColumn(), h.row, h.col)[0], D = 0, O = e; D < O.length; D++)b = O[D], (0, m.kCi)(b.group, A.group) && T.push(b); e = T } return (a = e[d]) && (u.TCi([a], t.row, t.col), void 0 !== a.value && u.hCi || (a.value = (0, m.bCi)(a) ? u.CCi(a) : a.value || null)), f = +h.value, s = a && +a.value, isNaN(f) && (f = 0), isNaN(s) && (s = 0), I = "number" == typeof (I = (0, m.calculationValue)(f, s, 1)) ? y(I, R()) : I }, e.prototype.getMonthOverMonth = function (t, n, i, r) { var e, o, u, s, c, n, f, o, h, a, l, v, d, e, c, n, e = this, o = e._Ci, u = e.xCi, s = e.ntr, c = n.getRow(), n = n.getColumn(), f = o.getCells(c, n, t.row, t.col)[0], o = this.itr(t, { row: c, col: n }, i && { row: i.getRow(), col: i.getColumn() }, r && { row: r.getRow(), col: r.getColumn() }); for (s[o] || (s[o] = e.BCi({ row: c, col: n }, i && { row: i.getRow(), col: i.getColumn() }, r && { row: r.getRow(), col: r.getColumn() }, { row: f.row, col: f.col })), l = -1, v = 0, d = (h = s[o]).length; v < d; v++) { if ((a = h[v]).row === f.row && a.col === f.col) { l = v - 1; break } if (a.row > f.row && a.col > f.col) break } return (a = (0, m.ht)(l) ? null : h[l]) && (u.TCi([a], t.row, t.col), void 0 !== a.value && u.hCi || (a.value = (0, m.bCi)(a) ? u.CCi(a) : a.value || null)), e = +f.value, c = a && +a.value, isNaN(e) && (e = 0), isNaN(c) && (c = 0), l < 0 ? 0 : "number" == typeof (n = (0, m.calculationValue)(e, c, 1)) ? y(n, R()) : n }, e.prototype.itr = function (t, n, i, r) { var e, o, n, i, i, e, o = this._Ci, n = "".concat(n.row, "_").concat(n.col, "_"); return i && (n = (i = o.getCells(i.row, i.col, t.row, t.col)[0]) ? "".concat(n).concat(i.row, "_").concat(i.col, "_") : n), n = r ? (i = o.getCells(r.row, r.col, t.row, t.col)[0]) ? "".concat(n).concat(i.row, "_").concat(i.col, "_") : n : n }, e.prototype.getCumulative = function (t, n, i, r) { var e, o, u, s, c, n, f, o, h, a, l, v, d, p, w, M, e = this, o = e._Ci, u = e.xCi, s = e.ntr, c = n.getRow(), n = n.getColumn(), f = o.getCells(c, n, t.row, t.col)[0], o = this.itr(t, { row: c, col: n }, i && { row: i.getRow(), col: i.getColumn() }, r && { row: r.getRow(), col: r.getColumn() }); for (s[o] || (s[o] = e.BCi({ row: c, col: n }, i && { row: i.getRow(), col: i.getColumn() }, r && { row: r.getRow(), col: r.getColumn() }, t)), l = -1, d = [], w = p = v = 0, M = (h = s[o]).length; w < M; w++) { if ((a = h[w]).row === f.row && a.col === f.col) { l = w - 1; break } if (a.row > f.row && a.col > f.col) break; void 0 !== a.value && u.hCi || (a.value = (0, m.bCi)(a) ? u.CCi(a) : a.value || null), p = +a.value, isNaN(p) && (p = 0), d.push(a), v += p } return (a = (0, m.ht)(l) ? null : h[l]) && u.TCi(d, t.row, t.col), p = +f.value, isNaN(p) && (p = 0), (0, m.calculationValue)(p, a && v, 0) }, e.prototype.getProportion = function (t, n, i, r) { var e, o, u, s, c, n, o, f, t, c, h, a, l, e = this, o = e._Ci, u = e.xCi, s = e.ntr, c = n.getRow(), n = n.getColumn(), o = o.getCells(c, n, t.row, t.col)[0], f = o && +o.value; for (isNaN(f) && (f = 0), s[t = this.itr(t, { row: c, col: n }, i && { row: i.getRow(), col: i.getColumn() }, r && { row: r.getRow(), col: r.getColumn() })] || (s[t] = e.BCi({ row: c, col: n }, i && { row: i.getRow(), col: i.getColumn() }, r && { row: r.getRow(), col: r.getColumn() }, { row: o.row, col: o.col })), h = 0, a = c = s[t]; h < a.length; h++)void 0 === (l = a[h]).value && (l.value = (0, m.bCi)(l) ? u.CCi(l) : l.value || null); return e.RCi(f, c) }, e.prototype.BCi = function (t, n, i, r) { var e, o, u, s, c, f, h, a, l, s, n, e, o = this._Ci, u = []; if (n && i) { for (s = o.getCells(n.row, n.col, r.row, r.col)[0], c = o.getCells(i.row, i.col, r.row, r.col)[0], h = 0, a = f = o.getCells(t.row, t.col, s.row, s.col); h < a.length; h++)l = a[h], (0, m.kCi)(l.group, c.group) && u.push(l); (0, m.FOi)(u, "V" === s.cellNode.templateCell.expansionDirection) } else n || i ? (n = o.getCells((s = n || i).row, s.col, r.row, r.col)[0], u = o.getCells(t.row, t.col, n.row, n.col), (0, m.FOi)(u, "V" === n.cellNode.templateCell.expansionDirection)) : (u = o.getCells(t.row, t.col), (0, m.FOi)(u, !0)); return u }, e.prototype.getIndex = function (t, n, i) { var r, e, o, u, s, o, c, f, h, r = this, e = this, o = e._Ci, u = e.xCi, s = o.getCells(n.getRow(), n.getColumn(), t.row, t.col)[0], o = i ? { row: i.getRow(), col: i.getColumn() } : null; return u.TCi([s], t.row, t.col), void 0 !== s.value && u.hCi || (s.value = (0, m.bCi)(s) ? u.CCi(s) : s.value || null), c = o ? "-".concat(o.row, "-").concat(o.col) : "", void 0 === (f = this.zCi["".concat(s.row, "-").concat(s.col, "-").concat(c)]) && (h = e.ZCi(t, { row: n.getRow(), col: n.getColumn() }, o)).forEach(function (t, n) { r.zCi["".concat(t.row, "-").concat(t.col, "-").concat(c)] = n + 1, t === s && (f = n + 1) }), f }, e.prototype.getRank = function (t, n, i, r, e) { var o, u, s, c, i, n, i, f, h, h, h, f, n, h; return void 0 === e && (e = 1), s = (u = (o = this)._Ci).getCells(n.getRow(), n.getColumn(), t.row, t.col)[0], c = o.VCi(t, n, i), i = i instanceof S.CalcReference ? { row: i.getRow(), col: i.getColumn() } : i, i = (n = o.ZCi(t, { row: n.getRow(), col: n.getColumn() }, i)).length, (f = o.PCi[c]) ? (h = o._Ci.getCell(t.row, t.col).cellNode.templateCell, h = "".concat(c, "_").concat(h.row, "_").concat(h.col), o.PCi[h] || (o.PCi[h] = f, o.UCi(n, t))) : (h = [].concat(n), o.HCi(c, h, t), o.UCi(h, t)), (0, m.ht)(s.value) ? null : (f = o.PCi[c]) && f[s.row] && f[s.row][s.col] ? (n = f[s.row][s.col], h = r ? i - n.index + 1 : n.index, e === a.noJuxtaposition ? h -= r ? n.afterEmptyCellCount : n.beforeEmptyCellCount : e === a.skipNumber ? h -= r ? n.currentAfterEmptyCellCount : n.currentBeforeEmptyCellCount : r || (h = h + n.currentAfterEmptyCellCount - n.sameValueCount + n.currentAfterEmptyCellCount), h) : void 0 }, e.prototype.coordinateExecute = function (t, n, i, r) { var e, o, u, s, c, f, h, i, r, h, i, a, l, v, d, p, w, M, I, g, s, C, N, E, j, T, h, i, a, e = this, o = e._Ci, u = e.WCi, s = e.LCi.reportSheet.getTemplate(), c = e.xCi, f = e._Ci; if (e.resetOffsetContent(), i || r) return (h = o.getCells(n.getRow(), n.getColumn(), t.row, t.col)[0]) ? (i = e.BCi({ row: n.getRow(), col: n.getColumn() }, i && { row: i.getRow(), col: i.getColumn() }, r && { row: r.getRow(), col: r.getColumn() }, { row: h.row, col: h.col }), e.QCi(i, t)) : S.Errors.Null; if (!u || !u.length) return e.QCi(o.getCells(n.getRow(), n.getColumn()), t); for (r = u[0].parent, h = o.getCells(r.row, r.col, t.row, t.col)[0], (i = s.GCi(h.cellNode.templateCell.row, h.cellNode.templateCell.col)).leftParent && i.upParent ? a = (v = "H" === h.cellNode.templateCell.expansionDirection) ? i.upParent : i.leftParent : (i.leftParent || i.upParent) && (a = i.leftParent || i.upParent), a && (l = o.getCells(a.row, a.col, t.row, t.col)[0]), d = [], p = [], w = 0, M = u.length; w < M && (I = u[w], !l || e.FCi(I.parent, { row: l.cellNode.templateCell.row, col: l.cellNode.templateCell.col }) || (d.push(l), l = null), l = e.getCell(t, l, I)); w++); if (0 < d.length && l) { for (d.push(l), s = d[0], C = d[1], E = 0, j = N = f.getCells(n.getRow(), n.getColumn(), s.row, s.col); E < j.length; E++)T = j[E], (0, m.kCi)(T.group, C.group) && p.push(T); g = e.YCi(p, { row: n.getRow(), col: n.getColumn() }, d, t) } else l && (h = o.getCell(t.row, t.col), i = e.FCi({ row: h.cellNode.templateCell.row, col: h.cellNode.templateCell.col }, r), g = e.getCell(t, l, { parent: { row: n.getRow(), col: n.getColumn() }, offset: 0, isAbsolute: !1 }, !i)); return g ? g instanceof Array ? e.QCi(g, t) : (c.TCi([g], t.row, t.col), void 0 !== (a = e.LCi.getValue(g.row, g.col)) && c.hCi ? a : (0, m.bCi)(g) ? c.CCi(g) : g.value || null) : null }, e.prototype.getCell = function (t, n, i, r) { var e, o, u, s, i, c, f, h, e, a, l, v, e = this, o = e._Ci, u = i.parent, s = i.isAbsolute, i = i.offset, c = n ? { row: n.cellNode.templateCell.row, col: n.cellNode.templateCell.col } : null, f = e.ZCi(t, u, c), h = o.getCells(u.row, u.col, t.row, t.col)[0], e = o.getCells(u.row, u.col, n && n.row, n && n.col); if (!h || r) return e; for (a = void 0, l = 0, v = f.length; l < v; l++)if (f[l] === h) { a = l; break } if (s) { if (!i) return null; a = 0 < i ? i - 1 : e.length + i } else a += i; return e[a] }, e.prototype.QCi = function (t, n) { for (var i, r, e, o, u, s, i = this.xCi, r = [], o = 0, u = t; o < u.length; o++)s = u[o], void 0 !== (e = this.LCi.getValue(s.row, s.col)) && i.hCi || (e = (0, m.bCi)(s) ? i.CCi(s) : s.value || null), Array.isArray(e) ? e.forEach(function (t) { r.push(t) }) : r.push(e); return i.TCi(t, n.row, n.col), new S.TwoDimensionalCalcArray([r]) }, e.prototype.YCi = function (t, n, i, r) { var e, o, u, s, i, e, r, c, f, h, e = this, o = e._Ci, u = o.getCell(r.row, r.col), s = i[0], i = i[1]; if (!e.FCi({ row: u.cellNode.templateCell.row, col: u.cellNode.templateCell.col }, s) && !e.FCi({ row: u.cellNode.templateCell.row, col: u.cellNode.templateCell.col }, i)) return t; for (e = o.getCells(n.row, n.col, r.row, r.col)[0], r = o.getCells(s.cellNode.templateCell.row, s.cellNode.templateCell.col, e.row, e.col)[0], c = o.getCells(i.cellNode.templateCell.row, i.cellNode.templateCell.col, e.row, e.col)[0], f = o.getCells(n.row, n.col, r.row, r.col), h = 0; h < f.length; h++)if ((0, m.kCi)(u.group, c.group)) return t[h] }, e.prototype.FCi = function (t, n) { var i, r, e, i = this, r, e = i.LCi.reportSheet.getTemplate().GCi(t.row, t.col); return e.leftParent ? e.leftParent.row === n.row && e.leftParent.col === n.col || i.FCi(t, e.leftParent) : !!e.upParent && (e.upParent.row === n.row && e.upParent.col === n.col || i.FCi(t, e.upParent)) }, e.prototype.coordinateOffset = function (t, n, i) { var r, e, r = this; r.WCi = r.WCi || [], (e = r.WCi).push({ parent: { row: t.getRow(), col: t.getColumn() }, offset: n, isAbsolute: i }) }, e.prototype.reset = function () { this.JCi(), this.resetRankCache(), this.resetOffsetContent(), this.ntr = {} }, e.prototype.resetRankCache = function () { this.PCi = {} }, e.prototype.resetOffsetContent = function () { this.WCi = void 0 }, e.prototype.JCi = function () { this.zCi = {} }, e.prototype.HCi = function (t, n, i) { for (var r, e, o, u, s, c, f, h, a, l, v, d, p, w, M, r = this, e = r.PCi, o = r.xCi, u = e[t] = [], c = 0, f = n; c < f.length; c++)h = f[c], o.TCi([h], i.row, i.col), h.value = (0, m.bCi)(h) ? o.CCi(h) : h.value || null; for ((n = n.filter(function (t) { return !(0, m.ht)(t.value) })).sort(function (t, n) { return t.value > n.value ? 1 : -1 }), l = n.length, p = d = v = a = 0; v < l; v++)u[(s = n[v]).row] || (u[s.row] = []), v && s.value === n[v - 1].value ? (d++, p++, a++) : p = a = 0, u[s.row][s.col] = { index: v + 1, sameValueCount: a, beforeEmptyCellCount: d, currentBeforeEmptyCellCount: p }; for (v = l - 1, M = w = 0; -1 < v; v--)s = n[v], v < l - 1 && s.value === n[v + 1].value ? (w++, M++, a++) : M = a = 0, u[s.row][s.col].afterEmptyCellCount = w, u[s.row][s.col].currentAfterEmptyCellCount = M, u[s.row][s.col].sameValueCount += a }, e.prototype.UCi = function (t, n) { var i, n, n, i = this, n = i._Ci.getCell(n.row, n.col), n = i._Ci.getCells(n.cellNode.templateCell.row, n.cellNode.templateCell.col).map(function (t) { return { row: t.row, col: t.col } }); i.xCi.SCi(t, n) }, e.prototype.VCi = function (t, n, i) { var r, e, t, o, e, r, e = this._Ci, t = e.getCells(n.getRow(), n.getColumn(), t.row, t.col)[0], o = ""; return i instanceof S.CalcReference && (e = e.getCells(i.getRow(), i.getColumn(), t.row, t.col)[0], o = m.CONNECTOR + e.row + m.CONNECTOR + e.col), n.getRow() + m.CONNECTOR + n.getColumn() + o }, e.prototype.ZCi = function (t, n, i) { var r, e, o, u, i, r, e = this._Ci, o = e.getCells(n.row, n.col, t.row, t.col)[0], u = []; return u = i ? (i = e.getCells(i.row, i.col, t.row, t.col)[0], e.getCells(o.cellNode.templateCell.row, o.cellNode.templateCell.col, i.row, i.col)) : e.getCells(n.row, n.col) }, e.prototype.RCi = function (t, n) { for (var i, r, e, o, u, n, i = 0, e = 0, o = n; e < o.length; e++)r = +(u = o[e]).value, isNaN(r) && (i += 0), i += r; return n = "number" == typeof (n = (0, m.calculationValue)(t, i, 1)) ? y(n, R()) : n }, n.HierarchicalCellIndexingHelper = e }, "./dist/plugins/report/calc-model/supported-functions.js": function (t, n) { "use strict"; Object.defineProperty(n, "__esModule", { value: !0 }), n.reportSupportFunctionNames = void 0, n.reportSupportFunctionNames = ["SUM", "EOMONTH", "ISBLANK", "NORMINV", "COUNT", "ISOWEEKNUM", "ISERR", "PEARSON", "AVERAGE", "NETWORKDAYS", "ISERROR", "PERCENTILE.EXC", "CHAR", "NETWORKDAYS.INTL", "ISEVEN", "PERCENTILE.INC", "DATE", "TIMEVALUE", "ISFORMULA", "PERCENTRANK.EXC", "MAX", "WEEKNUM", "ISLOGICAL", "PERCENTRANK.INC", "MIN", "WORKDAY", "ISNA", "PERMUT", "TIME", "WORKDAY.INTL", "ISNONTEXT", "PERMUTATIONA", "ABS", "YEARFRAC", "ISNUMBER", "PHI", "CEILING", "BESSELI", "ISODD", "POISSON.DIST", "COMBIN", "BESSELJ", "ISTEXT", "PROB", "EVEN", "BESSELK", "N", "QUARTILE.EXC", "EXP", "BESSELY", "NA", "QUARTILE.INC", "FACT", "BIN2DEC", "SHEET", "RANK.AVG", "FLOOR", "BIN2HEX", "SHEETS", "RANK.EQ", "INT", "BIN2OCT", "FALSE", "RSQ", "LN", "BITAND", "IFERROR", "SKEW", "LOG", "BITLSHIFT", "IFNA", "SKEW.P", "LOG10", "BITOR", "IFS", "SLOPE", "MOD", "BITRSHIFT", "NOT", "SMALL", "PI", "BITXOR", "TRUE", "STANDARDIZE", "POWER", "COMPLEX", "XOR", "STDEV.P", "PRODUCT", "CONVERT", "ADDRESS", "STDEV.S", "RAND", "DEC2BIN", "COLUMN", "STDEVA", "RANDBETWEEN", "DEC2HEX", "COLUMNS", "STDEVPA", "ROUND", "DEC2OCT", "FORMULATEXT", "STEYX", "ROUNDDOWN", "DELTA", "HYPERLINK", "T.DIST", "ROUNDUP", "ERF", "ROWS", "T.DIST.2T", "SIGN", "ERF.PRECISE", "ACOT", "T.DIST.RT", "ODD", "ERFC", "ACOTH", "T.INV", "SQRT", "ERFC.PRECISE", "ARABIC", "T.INV.2T", "SUMSQ", "GESTEP", "BASE", "T.TEST", "TRUNC", "HEX2BIN", "CEILING.MATH", "TRIMMEAN", "SIN", "HEX2DEC", "CEILING.PRECISE", "VAR.P", "COS", "HEX2OCT", "COMBINA", "VAR.S", "TAN", "IMABS", "COT", "VARA", "SINH", "IMAGINARY", "COTH", "VARPA", "COSH", "IMARGUMENT", "CSC", "WEIBULL.DIST", "TANH", "IMCONJUGATE", "CSCH", "Z.TEST", "ASIN", "IMCOS", "DECIMAL", "ASC", "ACOS", "IMCOSH", "FACTDOUBLE", "BAHTTEXT", "ATAN", "IMCOT", "FLOOR.MATH", "CLEAN", "ATAN2", "IMCSC", "FLOOR.PRECISE", "CONCAT", "ASINH", "IMCSCH", "GCD", "DBCS", "ACOSH", "IMDIV", "ISO.CEILING", "DOLLAR", "ATANH", "IMEXP", "LCM", "FINDB", "DEGREES", "IMLN", "MROUND", "FIXED", "RADIANS", "IMLOG10", "MULTINOMIAL", "JIS", "CODE", "IMLOG2", "QUOTIENT", "LEFTB", "CONCATENATE", "IMPOWER", "ROMAN", "LENB", "EXACT", "IMPRODUCT", "SEC", "MIDB", "FIND", "IMREAL", "SECH", "REPLACEB", "LEFT", "IMSEC", "SERIESSUM", "REPT", "LEN", "IMSECH", "SQRTPI", "RIGHTB", "LOWER", "IMSIN", "SUMIF", "SEARCH", "MID", "IMSINH", "SUMIFS", "SEARCHB", "PROPER", "IMSQRT", "SUMPRODUCT", "T", "REPLACE", "IMSUB", "SUMX2MY2", "TEXT", "RIGHT", "IMSUM", "SUMX2PY2", "TEXTJOIN", "SUBSTITUTE", "IMTAN", "SUMXMY2", "UNICHAR", "TRIM", "OCT2BIN", "AVEDEV", "UNICODE", "UPPER", "OCT2DEC", "AVERAGEA", "ENCODEURL", "DATEDIF", "OCT2HEX", "AVERAGEIF", "WEBSERVICE", "DAY", "ACCRINT", "AVERAGEIFS", "EURO", "DAYS360", "ACCRINTM", "BETA.DIST", "EUROCONVERT", "HOUR", "AMORDEGRC", "BETA.INV", "ISOMITTED", "MINUTE", "AMORLINC", "BINOM.DIST", "LAMBDA", "MONTH", "COUPDAYBS", "BINOM.DIST.RANGE", "OBJECT", "NOW", "COUPDAYS", "BINOM.INV", "PROPERTY", "SECOND", "COUPDAYSNC", "CHISQ.DIST", "REFRESH", "TODAY", "COUPNCD", "CHISQ.DIST.RT", "REDUCE", "WEEKDAY", "COUPNUM", "CHISQ.INV", "SCAN", "YEAR", "COUPPCD", "CHISQ.INV.RT", "CHITEST", "AND", "CUMIPMT", "CHISQ.TEST", "MEDIAN", "IF", "CUMPRINC", "CONFIDENCE.NORM", "RANGEBLOCKSPARKLINE", "OR", "DB", "CONFIDENCE.T", "RANK", "SWITCH", "DDB", "COUNTA", "HBARSPARKLINE", "ROW", "DISC", "COUNTBLANK", "VBARSPARKLINE", "VALUE", "DOLLARDE", "COUNTIF", "VARISPARKLINE", "CORREL", "DOLLARFR", "COUNTIFS", "PIESPARKLINE", "BETADIST", "DURATION", "COVARIANCE.P", "AREASPARKLINE", "BETAINV", "EFFECT", "COVARIANCE.S", "SCATTERSPARKLINE", "BINOMDIST", "FV", "DEVSQ", "LINESPARKLINE", "CHIDIST", "FVSCHEDULE", "EXPON.DIST", "COLUMNSPARKLINE", "CONFIDENCE", "INTRATE", "F.DIST", "WINLOSSSPARKLINE", "COVAR", "IPMT", "F.DIST.RT", "BULLETSPARKLINE", "CRITBINOM", "IRR", "F.INV", "SPREADSPARKLINE", "EXPONDIST", "ISPMT", "F.INV.RT", "STACKEDSPARKLINE", "FDIST", "MDURATION", "F.TEST", "BOXPLOTSPARKLINE", "FTEST", "MIRR", "FINV", "CASCADESPARKLINE", "GAMMADIST", "NOMINAL", "FISHER", "PARETOSPARKLINE", "GAMMAINV", "NPER", "FISHERINV", "MONTHSPARKLINE", "HYPGEOMDIST", "NPV", "FORECAST", "YEARSPARKLINE", "MODE", "ODDFPRICE", "GAMMA", "GAUGEKPISPARKLINE", "NEGBINOMDIST", "ODDFYIELD", "GAMMA.DIST", "HISTOGRAMSPARKLINE", "NORM.INV", "ODDLPRICE", "GAMMA.INV", "STDEV", "NORMDIST", "ODDLYIELD", "GAMMALN", "BC_QRCODE", "NORMSDIST", "PDURATION", "GAMMALN.PRECISE", "BC_EAN13", "NORMSINV", "PMT", "GAUSS", "BC_EAN8", "PERCENTILE", "PPMT", "GEOMEAN", "BC_CODABAR", "PERCENTRANK", "PRICE", "GROWTH", "BC_CODE39", "POISSON", "PRICEDISC", "HARMEAN", "BC_CODE93", "QUARTILE", "PRICEMAT", "HYPGEOM.DIST", "BC_CODE128", "STDEVP", "PV", "INTERCEPT", "BC_GS1_128", "TDIST", "RATE", "KURT", "BC_CODE49", "TINV", "RECEIVED", "LARGE", "BC_PDF417", "TTEST", "RRI", "LOGNORM.DIST", "BC_DATAMATRIX", "VAR", "SLN", "LOGNORM.INV", "LET", "VARP", "SYD", "MAXA", "IMAGE", "WEIBULL", "TBILLEQ", "MAXIFS", "TEXTBEFORE", "ZTEST", "TBILLPRICE", "MINA", "TEXTAFTER", "CHIINV", "TBILLYIELD", "MINIFS", "TEXTSPLIT", "CHIDIST", "VDB", "MODE.MULT", "GC.REGEXEXTRACT", "LOGINV", "XIRR", "MODE.SNGL", "GC.REGEXMATCH", "LOGNORMDIST", "XNPV", "NEGBINOM.DIST", "GC.REGEXREPLACE", "DATEPART", "YIELD", "NORM.DIST", "SJS.UUID", "DATEVALUE", "YIELDDISC", "NORM.S.DIST", "SJS.ENDWITH", "DAYS", "YIELDMAT", "NORM.S.INV", "SJS.STARTWITH", "EDATE", "ERROR.TYPE", "SJS.REGEXEXTRACT", "SJS.REGEXMATCH", "SJS.REGEXREPLACE", "R.R", "R.A", "R.V", "R.INDEX", "R.RANK", "R.CURRENTPAGE", "R.PAGESCOUNT", "R.PROPORTION", "R.CUMULATIVE", "R.MOM", "R.YOY"] }, "./dist/plugins/report/commands/add-record.js": function (t, n, i) { "use strict"; var r, e, u, s, i, o, c, f, h; function a(t, n) { return h.call(this, t, n) || this } function l(t) { var n = "reportSheetAddRecord"; e.Commands[n] = { canUndo: !1, execute: function (t, n, i) { return o(t, c, n, i) } }, t.register(n, e.Commands[n]) } r = this && this.__extends || (f = function (t, n) { return (f = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? function (t, n) { t.__proto__ = n } : function (t, n) { for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]) }))(t, n) }, function (t, n) { if ("function" != typeof n && null !== n) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null"); function i() { this.constructor = t } f(t, n), t.prototype = null === n ? Object.create(n) : (i.prototype = n.prototype, new i) }), Object.defineProperty(n, "__esModule", { value: !0 }), n.registerAddRecordCommand = void 0, e = i("Core"), u = i("./dist/plugins/report/events/index.js"), s = i("./dist/plugins/report/worksheet/report-worksheet.js"), i = e.Commands.ActionBase, o = e.Commands.zA, r(a, h = i), a.prototype.execute = function () { var t, n, i, r, n, e, o; this.Mf && this.Mf instanceof s.ReportWorksheet && this.tT && (t = this.Mf, n = this.tT, i = n.activeRow, r = n.activeCol, n = (0, u.KCi)(i, r, function () { t.reportSheet.addRecordAt(i, r) }), e = n.name, o = n.event, setTimeout(function () { t.ki(e, o), o.canceled || o.addRecordSingleUseAction() })) }, c = a, n.registerAddRecordCommand = l }, "./dist/plugins/report/commands/delete-record.js": function (t, n, i) { "use strict"; var r, e, u, s, i, o, c, f, h; function a(t, n) { return h.call(this, t, n) || this } function l(t) { var n = "reportSheetDeleteRecord"; e.Commands[n] = { canUndo: !1, execute: function (t, n, i) { return o(t, c, n, i) } }, t.register(n, e.Commands[n]) } r = this && this.__extends || (f = function (t, n) { return (f = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? function (t, n) { t.__proto__ = n } : function (t, n) { for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]) }))(t, n) }, function (t, n) { if ("function" != typeof n && null !== n) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null"); function i() { this.constructor = t } f(t, n), t.prototype = null === n ? Object.create(n) : (i.prototype = n.prototype, new i) }), Object.defineProperty(n, "__esModule", { value: !0 }), n.registerDeleteRecordCommand = void 0, e = i("Core"), u = i("./dist/plugins/report/events/index.js"), s = i("./dist/plugins/report/worksheet/report-worksheet.js"), i = e.Commands.ActionBase, o = e.Commands.zA, r(a, h = i), a.prototype.execute = function () { var t, n, i, r, n, e, o; this.Mf && this.Mf instanceof s.ReportWorksheet && this.tT && (t = this.Mf, n = this.tT, i = n.activeRow, r = n.activeCol, n = (0, u.XCi)(i, r, function () { t.reportSheet.deleteRecordAt(i, r) }), e = n.name, o = n.event, setTimeout(function () { t.ki(e, o), o.canceled || o.deleteRecordSingleUseAction() })) }, c = a, n.registerDeleteRecordCommand = l }, "./dist/plugins/report/commands/index.js": function (t, n, i) { "use strict"; var r, e, o, u, s, c; function f(t) { (0, r.registerAddRecordCommand)(t), (0, e.registerDeleteRecordCommand)(t), (0, s.registerResetRecordCommand)(t), (0, c.registerSubmitCommand)(t), (0, u.registerCollapseCommand)(t), (0, o.registerRegenerateReportCommand)(t) } Object.defineProperty(n, "__esModule", { value: !0 }), n.registerCommands = void 0, r = i("./dist/plugins/report/commands/add-record.js"), e = i("./dist/plugins/report/commands/delete-record.js"), o = i("./dist/plugins/report/commands/regenerate-report.js"), u = i("./dist/plugins/report/commands/report-collapse.js"), s = i("./dist/plugins/report/commands/reset-current-cell.js"), c = i("./dist/plugins/report/commands/submit.js"), n.registerCommands = f }, "./dist/plugins/report/commands/regenerate-report.js": function (t, n, i) { "use strict"; var r, e, o, i, u, s, c, f; function h(t, n) { return f.call(this, t, n) || this } function a(t) { var n = "reportSheetRegenerateReport"; e.Commands[n] = { canUndo: !1, execute: function (t, n, i) { return u(t, s, n, i) } }, t.register(n, e.Commands[n]) } r = this && this.__extends || (c = function (t, n) { return (c = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? function (t, n) { t.__proto__ = n } : function (t, n) { for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]) }))(t, n) }, function (t, n) { if ("function" != typeof n && null !== n) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null"); function i() { this.constructor = t } c(t, n), t.prototype = null === n ? Object.create(n) : (i.prototype = n.prototype, new i) }), Object.defineProperty(n, "__esModule", { value: !0 }), n.registerRegenerateReportCommand = void 0, e = i("Core"), o = i("./dist/plugins/report/worksheet/report-worksheet.js"), i = e.Commands.ActionBase, u = e.Commands.zA, r(h, f = i), h.prototype.execute = function () { var t; this.Mf && this.Mf instanceof o.ReportWorksheet && this.tT && this.Mf.reportSheet.regenerateReport() }, s = h, n.registerRegenerateReportCommand = a }, "./dist/plugins/report/commands/report-collapse.js": function (t, n, i) { "use strict"; var r, e, i, o, u, s, c; function f(t, n) { return c.call(this, t, n) || this } function h(t) { var n = "ReportCollapseButtonToggle"; e.Commands[n] = { canUndo: !1, execute: function (t, n, i) { return o(t, u, n, i) } }, t.register(n, e.Commands[n]) } r = this && this.__extends || (s = function (t, n) { return (s = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? function (t, n) { t.__proto__ = n } : function (t, n) { for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]) }))(t, n) }, function (t, n) { if ("function" != typeof n && null !== n) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null"); function i() { this.constructor = t } s(t, n), t.prototype = null === n ? Object.create(n) : (i.prototype = n.prototype, new i) }), Object.defineProperty(n, "__esModule", { value: !0 }), n.registerCollapseCommand = void 0, e = i("Core"), i = e.Commands.ActionBase, o = e.Commands.zA, r(f, c = i), f.prototype.execute = function () { var t, n, i, t, r, n, t = this, n = t.tT, i = !1; return t.canExecute() && (t = t.Mf, r = n.row, n = n.col, t.$Ci(r, n)), i = !0 }, u = f, n.registerCollapseCommand = h }, "./dist/plugins/report/commands/reset-current-cell.js": function (t, n, i) { "use strict"; var r, e, o, u, i, s, c, f, h; function a(t, n) { return h.call(this, t, n) || this } function l(t) { var n = "reportSheetResetCellValue"; e.Commands[n] = { canUndo: !1, execute: function (t, n, i) { return s(t, c, n, i) } }, t.register(n, e.Commands[n]) } r = this && this.__extends || (f = function (t, n) { return (f = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? function (t, n) { t.__proto__ = n } : function (t, n) { for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]) }))(t, n) }, function (t, n) { if ("function" != typeof n && null !== n) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null"); function i() { this.constructor = t } f(t, n), t.prototype = null === n ? Object.create(n) : (i.prototype = n.prototype, new i) }), Object.defineProperty(n, "__esModule", { value: !0 }), n.registerResetRecordCommand = void 0, e = i("Core"), o = i("./dist/plugins/report/events/index.js"), u = i("./dist/plugins/report/worksheet/report-worksheet.js"), i = e.Commands.ActionBase, s = e.Commands.zA, r(a, h = i), a.prototype.execute = function () { var f, t, n, i, r; this.Mf && this.Mf instanceof u.ReportWorksheet && this.tT && (f = this.Mf, t = this.tT.selections, n = (0, o.qCi)(t, function () { Array.isArray(t) && (f.reportSheet.suspendPaint(), t.forEach(function (t) { for (var n, i, r, e, o, u, s, c, n = t.row, i = t.col, r, e, o = n + t.rowCount - 1, u = i + t.colCount - 1, s = n; s <= o; s++)for (c = i; c <= u; c++)f.reportSheet.resetCellValue(s, c) }), f.reportSheet.resumePaint()) }), i = n.name, r = n.event, setTimeout(function () { f.ki(i, r), r.canceled || r.resetCellValueSingleUseAction() })) }, c = a, n.registerResetRecordCommand = l }, "./dist/plugins/report/commands/submit.js": function (t, n, i) { "use strict"; var r, e, o, i, u, s, c, f; function h(t, n) { return f.call(this, t, n) || this } function a(t) { var n = "reportSheetSubmit"; e.Commands[n] = { canUndo: !1, execute: function (t, n, i) { return u(t, s, n, i) } }, t.register(n, e.Commands[n]) } r = this && this.__extends || (c = function (t, n) { return (c = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? function (t, n) { t.__proto__ = n } : function (t, n) { for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]) }))(t, n) }, function (t, n) { if ("function" != typeof n && null !== n) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null"); function i() { this.constructor = t } c(t, n), t.prototype = null === n ? Object.create(n) : (i.prototype = n.prototype, new i) }), Object.defineProperty(n, "__esModule", { value: !0 }), n.registerSubmitCommand = void 0, e = i("Core"), o = i("./dist/plugins/report/worksheet/report-worksheet.js"), i = e.Commands.ActionBase, u = e.Commands.zA, r(h, f = i), h.prototype.execute = function () { var t; this.Mf && this.Mf instanceof o.ReportWorksheet && this.tT && this.Mf.reportSheet.submit() }, s = h, n.registerSubmitCommand = a }, "./dist/plugins/report/convertors/report-json-convertor.js": function (t, n, i) { "use strict"; var h, l, c, r, v, e; function o(t) { this.oOi = !1, this.cOi = t, this.workSheetConvertor = new r.WorkSheetConvertor(t) } Object.defineProperty(n, "__esModule", { value: !0 }), n.ReportJSONConvertor = void 0, h = i("Core"), l = i("./dist/plugins/report/print/print-sheet.js"), c = i("./dist/plugins/report/utils/utils.js"), r = i("./dist/plugins/report/convertors/worksheet-convertor.js"), v = i("Print"), o.prototype.Np = function (t) { var n, i, r, e, o, u, s, c, f, h, u, s, n, a, u, n = this, i = n.cOi, r = n.workSheetConvertor, e = {}, o = i.options.dirtyStyle, u = (t = t || {}).gp, s = "PaginatedPreview" === i.renderMode(), c = "Preview" === i.renderMode(), f = t.convertReportSheetToWorksheet; if (u) { if (s) { if (i.options.printAllPages) return this.oOi ? (this.fOi ? this.hOi() : this.fOi = n.aOi(t, i.name()), this.fOi) : n.aOi(t, i.name()); u = i.templateSheet.printInfo(), s = new v.PrintInfo, n = i.Mf.Pie, s.fromJSON(u.toJSON()), s.fitPagesTall(1), s.fitPagesWide(1), s.sheet(i.Mf), i.Mf.Pie = s, h = i.Mf.toJSON(t), i.Mf.Pie = n } if (c) return (u = (a = r.lOi(t)).printInfo()) && (u.showRowHeader(1), u.showColumnHeader(1)), new l.PrintSheet(a).toJSON(t) } return h = f ? (c ? a = r.lOi(t) : i.Mf).toJSON(t) : h || i.templateSheet.toJSON(t), e.template = h, e.reportName = t.newWorkSheetName || i.name(), e.name = t.newWorkSheetName || i.name(), e.sheetType = i._gi, e.renderMode = i.options.renderMode, e.printAllPages = i.options.printAllPages, o && (e.dirtyStyle = o.toJSON()), e.parameter = i.ghe, e.parameterUI = i.vOi, e }, o.prototype.wh = function (t, n, i) { var r, e, o, u, s, c, f, r, r = this, e = r.cOi, o = r.workSheetConvertor, s = e.options.dirtyStyle, c = n.styleManager; return i && i.gp && "PaginatedPreview" === e.renderMode() && e.options.printAllPages ? r.aOi(i, e.name()) : (i && (i.gp || i.fileType === h.OpenSaveFileType.excel) ? ((u = ("Design" !== e.options.renderMode && "Preview" === e.options.renderMode ? f = o.lOi(i) : e.Mf).wh(t, n, i)).lossless || (u.lossless = {}), u.lossless.reportLossless = {}) : (e.templateSheet !== e.Mf && e.templateSheet.b2(e.b2(), !1), (u = e.templateSheet.wh(t, n, i)).lossless || (u.lossless = {}), u.lossless.reportLossless = { reportName: e.name() }), u.lossless.sheetType = e._gi, (r = u.lossless.reportLossless).renderMode = e.options.renderMode, r.printAllPages = e.options.printAllPages, s && (r.dirtyStyle = c.getStyleIndex(s, 3, e.name())), r.parameter = e.ghe, r.parameterUI = e.vOi, u) }, o.prototype.Zme = function (t, n, i, r, e) { var o, u = this.cOi, s; u.options.renderMode = t.renderMode, u.dOi(t.template, null, (null == r ? void 0 : r.gp) || (null == r ? void 0 : r.sb)), t.dirtyStyle && (s = new h.Style).fromJSON(t.dirtyStyle, i && i.noSchema, null), (0, c.ht)(t.reportName) || (u.name(t.reportName), u.templateSheet.name(t.reportName)), u.options.dirtyStyle = s, u.options.printAllPages = t.printAllPages, u.ghe = t.parameter, u.vOi = t.parameterUI, (0, c.pOi)(u.templateSheet), "Design" !== u.renderMode() && (r && (r.gp || r.sb) ? u.regenerateReport() : u.fetchAllTablesAsync().then(function () { u.getParent() && u.regenerateReport() })) }, o.prototype.yh = function (t, n, i) { var r, e, o, u, t, s, r, e = this.cOi, o = t.lossless && t.lossless.reportLossless; o && (u = h.util.o1(t, "sheetViews&sheetView"), e.options.renderMode = o.renderMode, e.dOi(t, { sjsCommonInfo: n, openOptions: i }), e.b2(!(!u || "1" !== u.tabSelected)), t = n.styleManager, (0, c.ht)(o.reportName) || (e.name(o.reportName), e.templateSheet.name(o.reportName)), e.options.dirtyStyle = t.getStyle(o.dirtyStyle), e.options.printAllPages = o.printAllPages, e.ghe = o.parameter, e.vOi = o.parameterUI, s = h.Util.wo(i, e.getParent().v2)) && e.fetchAllTablesAsync().then(function () { e.getParent() && e.regenerateReport() }) }, o.prototype.hOi = function () { for (var t, n, i, r, e, o, u, s, c, t, n = this.cOi, i = this.fOi, r = n.printInfo(), e = r.pageRange(), o = 0, u = i; o < u.length; o++)(c = (s = u[o]).sheet.printInfo).pageRange = e, c.pageHeaderFooter = r.pageHeaderFooter() }, o.prototype.wOi = function (t) { return this.oOi = !!t, t || (this.fOi = void 0), this.oOi }, o.prototype.aOi = function (i, r) { var e = this.cOi; return e.reportWorksheet.paginationHelper.Gf().gOi().filter(function (t, n) { return 0 === e.printPageIndexArray.length || -1 !== e.printPageIndexArray.indexOf(n) }).map(function (t, n) { return new l.PrintSheet(t, r, n, e.E0i).toJSON(i) }) }, n.ReportJSONConvertor = o }, "./dist/plugins/report/convertors/worksheet-convertor.js": function (t, n, i) { "use strict"; var o, r; function e(t) { this.MOi = t } Object.defineProperty(n, "__esModule", { value: !0 }), n.WorkSheetConvertor = void 0, o = i("Core"), e.prototype.lOi = function (t) { var n, i, r, e, n, i, r = this.MOi.Mf, e = new o.Worksheet; return e.parent = r.parent, r.parent.suspendPaint(), e.suspendPaint(), e.suspendEvent(), e.suspendDirty(), e.fromJSON(r.toJSON(t)), e.resumeDirty(), e.resumeEvent(), e.resumePaint(), r.parent.resumePaint(), e }, n.WorkSheetConvertor = e }, "./dist/plugins/report/data-model/helpers/cell-collapse-helper.js": function (t, n, i) { "use strict"; var C, r, N, e; function o(t) { var n = this; n._Ci = t, n.jOi = new r.SmartCache, n.IOi = {}, n.COi = {} } Object.defineProperty(n, "__esModule", { value: !0 }), n.CellCollapseHelper = void 0, C = i("./dist/plugins/report/utils/utils.js"), r = i("./dist/plugins/report/helpers/smart-cache.js"), N = i("Core"), o.prototype.bOi = function (t, n, i) { var r, e, o, u, s, u, r = this, e = r.jOi, o = i.cellNode, u = o.templateCell, s = u.expansionDirection; u.showCollapseButton && "No" !== s && o.children && 0 < o.children.length && i.row === t && i.col === n && (u = r.mOi(i), "H" === s ? (void 0 === u || u >= i.col + i.colCount || u < i.col) && (u = i.col) : (void 0 === u || u >= i.row + i.rowCount || u < i.row) && (u = i.row), e.set(t, n, { index: u, type: "E" })) }, o.prototype.$Ci = function (t, n) { var i, r, r, i = this, r = i.jOi; r && ((r = r.get(t, n)) && "E" === r.type ? (r.type = "C", i.yOi(t, n, 1)) : r && "C" === r.type && (r.type = "E", i.yOi(t, n, -1))) }, o.prototype.NOi = function (t, n) { return !!(n ? this.IOi : this.COi)[t] }, o.prototype.DOi = function (t, n) { var t = this.jOi.get(t, n); return t && t.type }, o.prototype.yOi = function (t, n, i) { var r, e, o, u, s, u, c, f, h, a, c, s, r = this, e = r.IOi, o = r.COi, u = r._Ci, s = r.jOi, u = u.getCell(t, n); u && (f = (c = r.getCellChildRange(u.group)).row, h = c.col, a = c.rowCount, c = c.colCount, s = s.get(t, n).index, "H" === u.cellNode.templateCell.expansionDirection ? r.OOi(o, s, h, c, i) : r.OOi(e, s, f, a, i)) }, o.prototype.OOi = function (t, n, i, r, e) { var o; if (0 < t[n]) for (o = 0; o < r; o++)if (!t[i + o]) { n = i + o; break } for (o = 0; o < r; o++)this.AOi(t, i + o), i + o !== n && (t[i + o] += e, t[i + o] < 0) && (t[i + o] = 0) }, o.prototype.getCellChildRange = function (t)