From 892710d60c525ff4996a211dc411735efcc83003 Mon Sep 17 00:00:00 2001 From: Marius-Daniel Munteanu Date: Mon, 11 Oct 2021 14:18:35 +0200 Subject: [PATCH 1/7] Support for multi-level category axis - modified chart*.xml to support multiple cat axes - modified table*.xml, worksheets/sheet*.xml and sharedStrings.xml inside .xlsx to support multiple cat axes - changed chart.data.labels to be a two-dimensional array by default - added new options prop, catAxisMultiLevelLabels --- src/core-interfaces.ts | 3 +- src/gen-charts.ts | 133 ++++++++++++++++++++++++++--------------- src/gen-objects.ts | 10 ++++ 3 files changed, 98 insertions(+), 48 deletions(-) diff --git a/src/core-interfaces.ts b/src/core-interfaces.ts index 3b06d3f23..ead77b02d 100644 --- a/src/core-interfaces.ts +++ b/src/core-interfaces.ts @@ -1035,7 +1035,7 @@ export interface OptsDataLabelPosition { export type ChartAxisTickMark = 'none' | 'inside' | 'outside' | 'cross' export interface OptsChartData { index?: number - labels?: string[] + labels?: string[][] name?: string sizes?: number[] values?: number[] @@ -1127,6 +1127,7 @@ export interface IChartPropsAxisCat { catAxisMinorTimeUnit?: string catAxisMinorUnit?: string catAxisMinVal?: number + catAxisMultiLevelLabels?: boolean catAxisOrientation?: 'minMax' catAxisTitle?: string catAxisTitleColor?: string diff --git a/src/gen-charts.ts b/src/gen-charts.ts index 22b715d24..bfc43f6cb 100644 --- a/src/gen-charts.ts +++ b/src/gen-charts.ts @@ -146,13 +146,18 @@ export function createExcelWorksheet(chartObject: ISlideRelChart, zip: JSZip): P strSharedStrings += '' } else { + // series names + all labels of one series + number of label groups (data.labels.length) of one series (i.e. how many times the blank string is used) + const count = data.length + data[0].labels.length * data[0].labels[0].length + data[0].labels.length + // series names + labels of one series + blank string (same for all label groups) + const uniqueCount = data.length + data[0].labels.length * data[0].labels[0].length + 1 + strSharedStrings += '' - // B: Add 'blank' for A1 + // B: Add 'blank' for A1, B1, ..., of every label group inside data[n].labels strSharedStrings += '' } @@ -173,8 +178,10 @@ export function createExcelWorksheet(chartObject: ISlideRelChart, zip: JSZip): P // D: Add `labels`/Categories if (chartObject.opts._type !== CHART_TYPE.BUBBLE && chartObject.opts._type !== CHART_TYPE.SCATTER) { - data[0].labels.forEach(label => { - strSharedStrings += '' + encodeXmlEntities(label) + '' + data[0].labels.forEach(labelsGroup => { + labelsGroup.forEach(label => { + strSharedStrings += '' + encodeXmlEntities(label) + '' + }) }) } @@ -204,13 +211,15 @@ export function createExcelWorksheet(chartObject: ISlideRelChart, zip: JSZip): P } else { strTableXml += '' - strTableXml += '' - strTableXml += '' + strTableXml += '' + data[0].labels.forEach((_labelsGroup, idx) => { + strTableXml += '' + }) data.forEach((obj, idx) => { - strTableXml += '' + strTableXml += '' }) } strTableXml += '' @@ -229,7 +238,7 @@ export function createExcelWorksheet(chartObject: ISlideRelChart, zip: JSZip): P } else if (chartObject.opts._type === CHART_TYPE.SCATTER) { strSheetXml += '' } else { - strSheetXml += '' + strSheetXml += '' } strSheetXml += '' @@ -352,26 +361,32 @@ export function createExcelWorksheet(chartObject: ISlideRelChart, zip: JSZip): P -|-------|-----|-----|-----| */ - // A: Create header row first (NOTE: Start at index=1 as headers cols start with 'B') - strSheetXml += '' - strSheetXml += '0' + // A: Create header row first + strSheetXml += '' + data[0].labels.forEach((_labelsGroup, idx) => { + strSheetXml += '' + strSheetXml += '0' + strSheetXml += '' + }) for (let idx = 1; idx <= data.length; idx++) { // FIXME: Max cols is 52 - strSheetXml += '' // NOTE: use `t="s"` for label cols! + strSheetXml += '' // NOTE: use `t="s"` for label cols! strSheetXml += '' + idx + '' strSheetXml += '' } strSheetXml += '' // B: Add data row(s) for each category - data[0].labels.forEach((_cat, idx) => { - // Leading col is reserved for the label, so hard-code it, then loop over col values - strSheetXml += '' - strSheetXml += '' - strSheetXml += '' + (data.length + idx + 1) + '' - strSheetXml += '' + data[0].labels[0].forEach((_cat, idx) => { + strSheetXml += `` + for (let idx2 = data[0].labels.length - 1; idx2 >= 0; idx2--) { + strSheetXml += '' + strSheetXml += '' + (data.length + idx + (idx2 * (data[0].labels[0].length)) + 1) + '' + strSheetXml += '' + } + for (let idy = 0; idy < data.length; idy++) { - strSheetXml += '' + strSheetXml += '' strSheetXml += '' + (data[idy].values[idx] || '') + '' strSheetXml += '' } @@ -670,7 +685,7 @@ function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChar strXml += '' // 2: "Series" block for every data row - /* EX: + /* EX1: data: [ { name: 'Region 1', @@ -684,6 +699,26 @@ function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChar } ] */ + /* EX2: + data: [ + { + name: 'Region 1', + labels: [ + ['April', 'May', 'June', 'April', 'May', 'June'], + ['2020', '', '', '2021', '', ''] + ], + values: [17, 26, 53, 96, 40, 33] + }, + { + name: 'Region 2', + labels: [ + ['April', 'May', 'June', 'April', 'May', 'June'], + ['2020', '', '', '2021', '', ''] + ], + values: [55, 43, 70, 58, 78, 63] + } + ] + */ let colorIndex = -1 // Maintain the color index by region data.forEach(obj => { colorIndex++ @@ -693,7 +728,7 @@ function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChar strXml += ' ' strXml += ' ' strXml += ' ' - strXml += ' Sheet1!$' + getExcelColName(idx + 1) + '$1' + strXml += ' Sheet1!$' + getExcelColName(idx + obj.labels.length) + '$1' strXml += ' ' + encodeXmlEntities(obj.name) + '' strXml += ' ' strXml += ' ' @@ -832,25 +867,29 @@ function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChar if (opts.catLabelFormatCode) { // Use 'numRef' as catLabelFormatCode implies that we are expecting numbers here strXml += ' ' - strXml += ' Sheet1!$A$2:$A$' + (obj.labels.length + 1) + '' + strXml += ' Sheet1!$A$2:$A$' + (obj.labels[0].length + 1) + '' strXml += ' ' strXml += ' ' + (opts.catLabelFormatCode || 'General') + '' - strXml += ' ' - obj.labels.forEach((label, idx) => { + strXml += ' ' + obj.labels[0].forEach((label, idx) => { strXml += '' + encodeXmlEntities(label) + '' }) strXml += ' ' strXml += ' ' } else { - strXml += ' ' - strXml += ' Sheet1!$A$2:$A$' + (obj.labels.length + 1) + '' - strXml += ' ' - strXml += ' ' - obj.labels.forEach((label, idx) => { - strXml += '' + encodeXmlEntities(label) + '' + strXml += ' ' + strXml += ' Sheet1!$A$2:$' + getExcelColName(obj.labels.length - 1) + '$' + (obj.labels[0].length + 1) + '' + strXml += ' ' + strXml += ' ' + obj.labels.forEach(labelsGroup => { + strXml += ' ' + labelsGroup.forEach((label, idx) => { + strXml += '' + encodeXmlEntities(label) + '' + }) + strXml += ' ' }) - strXml += ' ' - strXml += ' ' + strXml += ' ' + strXml += ' ' } strXml += '' } @@ -859,10 +898,10 @@ function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChar { strXml += '' strXml += ' ' - strXml += ' Sheet1!$' + getExcelColName(idx + 1) + '$2:$' + getExcelColName(idx + 1) + '$' + (obj.labels.length + 1) + '' + strXml += ' Sheet1!$' + getExcelColName(idx + obj.labels.length) + '$2:$' + getExcelColName(idx + obj.labels.length) + '$' + (obj.labels[0].length + 1) + '' strXml += ' ' strXml += ' ' + (opts.valLabelFormatCode || opts.dataTableFormatCode || 'General') + '' - strXml += ' ' + strXml += ' ' obj.values.forEach((value, idx) => { strXml += '' + (value || value === 0 ? value : '') + '' }) @@ -1008,9 +1047,9 @@ function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChar // Option: scatter data point labels if (opts.showLabel) { let chartUuid = getUuid('-xxxx-xxxx-xxxx-xxxxxxxxxxxx') - if (obj.labels && (opts.dataLabelFormatScatter === 'custom' || opts.dataLabelFormatScatter === 'customXY')) { + if (obj.labels[0] && (opts.dataLabelFormatScatter === 'custom' || opts.dataLabelFormatScatter === 'customXY')) { strXml += '' - obj.labels.forEach((label, idx) => { + obj.labels[0].forEach((label, idx) => { if (opts.dataLabelFormatScatter === 'custom' || opts.dataLabelFormatScatter === 'customXY') { strXml += ' ' strXml += ' ' @@ -1425,7 +1464,7 @@ function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChar //strXml += '' // 2: "Data Point" block for every data row - obj.labels.forEach((_label, idx) => { + obj.labels[0].forEach((_label, idx) => { strXml += '' strXml += ` ` strXml += ' ' @@ -1445,7 +1484,7 @@ function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChar // 3: "Data Label" block for every data Label strXml += '' - obj.labels.forEach((_label, idx) => { + obj.labels[0].forEach((_label, idx) => { strXml += '' strXml += ` ` strXml += ` ` @@ -1492,10 +1531,10 @@ function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChar // 2: "Categories" strXml += '' strXml += ' ' - strXml += ' Sheet1!$A$2:$A$' + (obj.labels.length + 1) + '' + strXml += ' Sheet1!$A$2:$A$' + (obj.labels[0].length + 1) + '' strXml += ' ' - strXml += ' ' - obj.labels.forEach((label, idx) => { + strXml += ' ' + obj.labels[0].forEach((label, idx) => { strXml += '' + encodeXmlEntities(label) + '' }) strXml += ' ' @@ -1505,9 +1544,9 @@ function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChar // 3: Create vals strXml += ' ' strXml += ' ' - strXml += ' Sheet1!$B$2:$B$' + (obj.labels.length + 1) + '' + strXml += ' Sheet1!$B$2:$B$' + (obj.labels[0].length + 1) + '' strXml += ' ' - strXml += ' ' + strXml += ' ' obj.values.forEach((value, idx) => { strXml += '' + (value || value === 0 ? value : '') + '' }) @@ -1609,7 +1648,7 @@ function makeCatAxis(opts: IChartOptsLib, axisId: string, valAxisId: string): st strXml += ' ' strXml += ' ' strXml += ' ' - strXml += ' ' + strXml += ' ' if (opts.catAxisLabelFrequency) strXml += ' ' // Issue#149: PPT will auto-adjust these as needed after calcing the date bounds, so we only include them when specified by user diff --git a/src/gen-objects.ts b/src/gen-objects.ts index 8b7378f82..c4ec4df7a 100644 --- a/src/gen-objects.ts +++ b/src/gen-objects.ts @@ -166,6 +166,11 @@ export function addChartDefinition(target: PresSlide, type: CHART_NAME | IChartM } tmpData.forEach((item, i) => { item.index = i + + // Converts the 'labels' array from string[] to string[][] (or the respective primitive type), if needed + if (item.labels !== undefined && !Array.isArray(item.labels[0])) { + item.labels = [item.labels as string[]] + } }) options = tmpOpt && typeof tmpOpt === 'object' ? tmpOpt : {} @@ -314,6 +319,11 @@ export function addChartDefinition(target: PresSlide, type: CHART_NAME | IChartM options.valAxisMajorUnit = typeof options.valAxisMajorUnit === 'number' ? options.valAxisMajorUnit : null options.valAxisCrossesAt = options.valAxisCrossesAt || 'autoZero' + if (options._type === CHART_TYPE.AREA || options._type === CHART_TYPE.BAR || options._type === CHART_TYPE.BAR3D || options._type === CHART_TYPE.LINE) + options.catAxisMultiLevelLabels = !!options.catAxisMultiLevelLabels + else + delete options.catAxisMultiLevelLabels + // STEP 4: Set props resultObject._type = 'chart' resultObject.options = options From ec46c33763ba11841110ea50a802be0b1175ed37 Mon Sep 17 00:00:00 2001 From: Marius-Daniel Munteanu Date: Mon, 11 Oct 2021 14:44:58 +0200 Subject: [PATCH 2/7] Minor code changes --- src/gen-charts.ts | 7 ++++--- src/gen-objects.ts | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/gen-charts.ts b/src/gen-charts.ts index bfc43f6cb..7cccd4098 100644 --- a/src/gen-charts.ts +++ b/src/gen-charts.ts @@ -378,7 +378,8 @@ export function createExcelWorksheet(chartObject: ISlideRelChart, zip: JSZip): P // B: Add data row(s) for each category data[0].labels[0].forEach((_cat, idx) => { - strSheetXml += `` + strSheetXml += '' + // Leading cols are reserved for the label groups for (let idx2 = data[0].labels.length - 1; idx2 >= 0; idx2--) { strSheetXml += '' strSheetXml += '' + (data.length + idx + (idx2 * (data[0].labels[0].length)) + 1) + '' @@ -689,12 +690,12 @@ function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChar data: [ { name: 'Region 1', - labels: ['April', 'May', 'June', 'July'], + labels: [['April', 'May', 'June', 'July']], values: [17, 26, 53, 96] }, { name: 'Region 2', - labels: ['April', 'May', 'June', 'July'], + labels: [['April', 'May', 'June', 'July']], values: [55, 43, 70, 58] } ] diff --git a/src/gen-objects.ts b/src/gen-objects.ts index c4ec4df7a..37357c53f 100644 --- a/src/gen-objects.ts +++ b/src/gen-objects.ts @@ -319,10 +319,11 @@ export function addChartDefinition(target: PresSlide, type: CHART_NAME | IChartM options.valAxisMajorUnit = typeof options.valAxisMajorUnit === 'number' ? options.valAxisMajorUnit : null options.valAxisCrossesAt = options.valAxisCrossesAt || 'autoZero' - if (options._type === CHART_TYPE.AREA || options._type === CHART_TYPE.BAR || options._type === CHART_TYPE.BAR3D || options._type === CHART_TYPE.LINE) + if (options._type === CHART_TYPE.AREA || options._type === CHART_TYPE.BAR || options._type === CHART_TYPE.BAR3D || options._type === CHART_TYPE.LINE) { options.catAxisMultiLevelLabels = !!options.catAxisMultiLevelLabels - else + } else { delete options.catAxisMultiLevelLabels + } // STEP 4: Set props resultObject._type = 'chart' From dbc37e24dba0c7caeb4352efb2bde6d5bc596602 Mon Sep 17 00:00:00 2001 From: Marius-Daniel Munteanu Date: Mon, 11 Oct 2021 15:10:10 +0200 Subject: [PATCH 3/7] Fixed some offsets --- src/gen-charts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gen-charts.ts b/src/gen-charts.ts index 7cccd4098..f9df1efc1 100644 --- a/src/gen-charts.ts +++ b/src/gen-charts.ts @@ -370,7 +370,7 @@ export function createExcelWorksheet(chartObject: ISlideRelChart, zip: JSZip): P }) for (let idx = 1; idx <= data.length; idx++) { // FIXME: Max cols is 52 - strSheetXml += '' // NOTE: use `t="s"` for label cols! + strSheetXml += '' // NOTE: use `t="s"` for label cols! strSheetXml += '' + idx + '' strSheetXml += '' } @@ -381,7 +381,7 @@ export function createExcelWorksheet(chartObject: ISlideRelChart, zip: JSZip): P strSheetXml += '' // Leading cols are reserved for the label groups for (let idx2 = data[0].labels.length - 1; idx2 >= 0; idx2--) { - strSheetXml += '' + strSheetXml += '' strSheetXml += '' + (data.length + idx + (idx2 * (data[0].labels[0].length)) + 1) + '' strSheetXml += '' } From b98a0f8184381ad855c6fff20f51329096e8a49c Mon Sep 17 00:00:00 2001 From: Marius-Daniel Munteanu Date: Mon, 11 Oct 2021 16:05:41 +0200 Subject: [PATCH 4/7] Fixed some type hints --- src/core-interfaces.ts | 8 ++++++-- src/gen-charts.ts | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/core-interfaces.ts b/src/core-interfaces.ts index ead77b02d..c447e18f5 100644 --- a/src/core-interfaces.ts +++ b/src/core-interfaces.ts @@ -1035,7 +1035,7 @@ export interface OptsDataLabelPosition { export type ChartAxisTickMark = 'none' | 'inside' | 'outside' | 'cross' export interface OptsChartData { index?: number - labels?: string[][] + labels?: (string | string[])[] name?: string sizes?: number[] values?: number[] @@ -1044,6 +1044,10 @@ export interface OptsChartData { */ //color?: string // TODO: WIP: (Pull #727) } +// Used internally, probably shouldn't be used by end users +export interface IOptsChartData extends OptsChartData { + labels?: string[][] +} export interface OptsChartGridLine { /** * Gridline color (hex) @@ -1335,7 +1339,7 @@ export interface IChartOptsLib extends IChartOpts { export interface ISlideRelChart extends OptsChartData { type: CHART_NAME | IChartMulti[] opts: IChartOptsLib - data: OptsChartData[] + data: IOptsChartData[] // internal below rId: number Target: string diff --git a/src/gen-charts.ts b/src/gen-charts.ts index f9df1efc1..fd80aa1d7 100644 --- a/src/gen-charts.ts +++ b/src/gen-charts.ts @@ -19,7 +19,7 @@ import { LETTERS, ONEPT, } from './core-enums' -import { IChartOptsLib, ISlideRelChart, ShadowProps, OptsChartData, IChartPropsTitle, OptsChartGridLine } from './core-interfaces' +import { IChartOptsLib, ISlideRelChart, ShadowProps, IChartPropsTitle, OptsChartGridLine, IOptsChartData } from './core-interfaces' import { createColorElement, genXmlColorSelection, convertRotationDegrees, encodeXmlEntities, getMix, getUuid, valToPts } from './gen-utils' import JSZip from 'jszip' @@ -657,7 +657,7 @@ export function makeXmlCharts(rel: ISlideRelChart): string { * @example '' * @return {string} XML */ -function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChartOptsLib, valAxisId: string, catAxisId: string, isMultiTypeChart: boolean): string { +function makeChartType(chartType: CHART_NAME, data: IOptsChartData[], opts: IChartOptsLib, valAxisId: string, catAxisId: string, isMultiTypeChart: boolean): string { // NOTE: "Chart Range" (as shown in "select Chart Area dialog") is calculated. // ....: Ensure each X/Y Axis/Col has same row height (esp. applicable to XY Scatter where X can often be larger than Y's) let strXml: string = '' From 6dd08df854d83c7066490f4b7d6352378a73e387 Mon Sep 17 00:00:00 2001 From: Marius-Daniel Munteanu Date: Thu, 14 Oct 2021 14:23:44 +0200 Subject: [PATCH 5/7] Updated dist and type hints --- dist/pptxgen.bundle.js | 4 +- dist/pptxgen.bundle.js.map | 2 +- dist/pptxgen.cjs.js | 148 ++++++++++++++++++++++++------------- dist/pptxgen.es.js | 148 ++++++++++++++++++++++++------------- dist/pptxgen.min.js | 4 +- dist/pptxgen.min.js.map | 2 +- src/core-interfaces.ts | 2 +- types/index.d.ts | 2 +- 8 files changed, 204 insertions(+), 108 deletions(-) diff --git a/dist/pptxgen.bundle.js b/dist/pptxgen.bundle.js index 0759b87ba..ac3e921fa 100644 --- a/dist/pptxgen.bundle.js +++ b/dist/pptxgen.bundle.js @@ -1,3 +1,3 @@ -/* PptxGenJS 3.9.0-beta @ 2021-10-01T03:13:35.875Z */ -!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JSZip=t()}(function(){return function o(i,s,l){function c(e,t){if(!s[e]){if(!i[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(u)return u(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var a=s[e]={exports:{}};i[e][0].call(a.exports,function(t){return c(i[e][1][t]||t)},a,a.exports,o,i,s,l)}return s[e].exports}for(var u="function"==typeof require&&require,t=0;t>2,o=(3&e)<<4|r>>4,i=1>6:64,s=2>4,r=(15&a)<<4|(o=h.indexOf(t.charAt(s++)))>>2,n=(3&o)<<6|(i=h.indexOf(t.charAt(s++))),c[l++]=e,64!==o&&(c[l++]=r),64!==i&&(c[l++]=n);return c}},{"./support":30,"./utils":32}],2:[function(t,e,r){"use strict";var n=t("./external"),a=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),i=t("./stream/DataLengthProbe");function s(t,e,r,n,a){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=a}s.prototype={getContentWorker:function(){var t=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),e=this;return t.on("end",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),t},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,r){return t.pipe(new o).pipe(new i("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new i("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,r){"use strict";var n=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(t){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,r){"use strict";var n=t("./utils"),i=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==n.getTypeOf(t)?function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e[o])];return-1^t}(0|e,t,t.length):function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e.charCodeAt(o))];return-1^t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){"use strict";var n;n="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:n}},{lie:37}],7:[function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,a=t("pako"),o=t("./utils"),i=t("./stream/GenericWorker"),s=n?"uint8array":"array";function l(t,e){i.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic="\b\0",o.inherits(l,i),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){i.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(t){return new l("Deflate",t)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,r){"use strict";function T(t,e){var r,n="";for(r=0;r>>=8;return n}function a(t,e,r,n,a,o){var i,s,l=t.file,c=t.compression,u=o!==R.utf8encode,p=k.transformTo("string",o(l.name)),f=k.transformTo("string",R.utf8encode(l.name)),d=l.comment,h=k.transformTo("string",o(d)),m=k.transformTo("string",R.utf8encode(d)),g=f.length!==l.name.length,v=m.length!==d.length,A="",y="",b="",x=l.dir,w=l.date,_={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(_.crc32=t.crc32,_.compressedSize=t.compressedSize,_.uncompressedSize=t.uncompressedSize);var C=0;e&&(C|=8),u||!g&&!v||(C|=2048);var P,S=0,L=0;x&&(S|=16),"UNIX"===a?(L=798,S|=((P=l.unixPermissions)||(P=x?16893:33204),(65535&P)<<16)):(L=20,S|=63&(l.dosPermissions||0)),i=w.getUTCHours(),i<<=6,i|=w.getUTCMinutes(),i<<=5,i|=w.getUTCSeconds()/2,s=w.getUTCFullYear()-1980,s<<=4,s|=w.getUTCMonth()+1,s<<=5,s|=w.getUTCDate(),g&&(A+="up"+T((y=T(1,1)+T(F(p),4)+f).length,2)+y),v&&(A+="uc"+T((b=T(1,1)+T(F(h),4)+m).length,2)+b);var E="";return E+="\n\0",E+=T(C,2),E+=c.magic,E+=T(i,2),E+=T(s,2),E+=T(_.crc32,4),E+=T(_.compressedSize,4),E+=T(_.uncompressedSize,4),E+=T(p.length,2),E+=T(A.length,2),{fileRecord:I.LOCAL_FILE_HEADER+E+p+A,dirRecord:I.CENTRAL_FILE_HEADER+T(L,2)+E+T(h.length,2)+"\0\0\0\0"+T(S,4)+T(n,4)+p+A+h}}var k=t("../utils"),o=t("../stream/GenericWorker"),R=t("../utf8"),F=t("../crc32"),I=t("../signature");function n(t,e,r,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}k.inherits(n,o),n.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},n.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=a(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(t){this.accumulate=!1;var e,r=this.streamFiles&&!t.file.dir,n=a(t,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),r)this.push({data:(e=t,I.DATA_DESCRIPTOR+T(e.crc32,4)+T(e.compressedSize,4)+T(e.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return n.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=a},{"../utils":32}],19:[function(t,e,r){"use strict";var n=t("./Uint8ArrayReader");function a(t){n.call(this,t)}t("../utils").inherits(a,n),a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,r){"use strict";var n=t("./DataReader");function a(t){n.call(this,t)}t("../utils").inherits(a,n),a.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},a.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},a.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{"../utils":32,"./DataReader":18}],21:[function(t,e,r){"use strict";var n=t("./ArrayReader");function a(t){n.call(this,t)}t("../utils").inherits(a,n),a.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,r){"use strict";var n=t("../utils"),a=t("../support"),o=t("./ArrayReader"),i=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),"string"!==e||a.uint8array?"nodebuffer"===e?new s(t):a.uint8array?new l(n.transformTo("uint8array",t)):new o(n.transformTo("array",t)):new i(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,r){"use strict";var n=t("./GenericWorker"),a=t("../utils");function o(t){n.call(this,"ConvertWorker to "+t),this.destType=t}a.inherits(o,n),o.prototype.processChunk=function(t){this.push({data:a.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,r){"use strict";var n=t("./GenericWorker"),a=t("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,n),o.prototype.processChunk=function(t){this.streamInfo.crc32=a(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,r){"use strict";var n=t("../utils"),a=t("./GenericWorker");function o(t){a.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(o,a),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}a.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,r){"use strict";var n=t("../utils"),a=t("./GenericWorker");function o(t){a.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}n.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,r){"use strict";function n(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r "+t:t}},e.exports=n},{}],29:[function(t,e,r){"use strict";var c=t("../utils"),a=t("./ConvertWorker"),o=t("./GenericWorker"),u=t("../base64"),n=t("../support"),i=t("../external"),s=null;if(n.nodestream)try{s=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function l(t,e,r){var n=e;switch(e){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=e,this._mimeType=r,c.checkSupport(n),this._worker=t.pipe(new a(n)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}l.prototype={accumulate:function(t){return s=this,l=t,new i.Promise(function(e,r){var n=[],a=s._internalType,o=s._outputType,i=s._mimeType;s.on("data",function(t,e){n.push(t),l&&l(e)}).on("error",function(t){n=[],r(t)}).on("end",function(){try{var t=function(t,e,r){switch(t){case"blob":return c.newBlob(c.transformTo("arraybuffer",e),r);case"base64":return u.encode(e);default:return c.transformTo(t,e)}}(o,function(t,e){var r,n=0,a=null,o=0;for(r=0;r>>6:(r<65536?e[o++]=224|r>>>12:(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63),e[o++]=128|r>>>6&63),e[o++]=128|63&r);return e}(t)},o.utf8decode=function(t){return l.nodebuffer?s.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,r,n,a,o=t.length,i=new Array(2*o);for(e=r=0;e>10&1023,i[r++]=56320|1023&n)}return i.length!==r&&(i.subarray?i=i.subarray(0,r):i.length=r),s.applyFromCharCode(i)}(t=s.transformTo(l.uint8array?"uint8array":"array",t))},s.inherits(i,n),i.prototype.processChunk=function(t){var e=s.transformTo(l.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var r=e;(e=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),e.set(r,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var n=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+c[t[r]]>e?r:e}(e),a=e;n!==e.length&&(l.uint8array?(a=e.subarray(0,n),this.leftOver=e.subarray(n,e.length)):(a=e.slice(0,n),this.leftOver=e.slice(n,e.length))),this.push({data:o.utf8decode(a),meta:t.meta})},i.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=i,s.inherits(u,n),u.prototype.processChunk=function(t){this.push({data:o.utf8encode(t.data),meta:t.meta})},o.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,s){"use strict";var l=t("./support"),c=t("./base64"),r=t("./nodejsUtils"),n=t("set-immediate-shim"),u=t("./external");function a(t){return t}function p(t,e){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(t){var e,r,n,a=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4>>6:(r<65536?e[o++]=224|r>>>12:(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63),e[o++]=128|r>>>6&63),e[o++]=128|63&r);return e},r.buf2binstring=function(t){return u(t,t.length)},r.binstring2buf=function(t){for(var e=new l.Buf8(t.length),r=0,n=e.length;r>10&1023,s[n++]=56320|1023&a)}return u(s,n)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+c[t[r]]>e?r:e}},{"./common":41}],43:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){for(var a=65535&t|0,o=t>>>16&65535|0,i=0;0!==r;){for(r-=i=2e3>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,n){var a=s,o=n+r;t^=-1;for(var i=n;i>>8^a[255&(t^e[i])];return-1^t}},{}],46:[function(t,e,r){"use strict";var l,f=t("../utils/common"),c=t("./trees"),d=t("./adler32"),h=t("./crc32"),n=t("./messages"),u=0,p=0,m=-2,a=2,g=8,o=286,i=30,s=19,v=2*o+1,A=15,y=3,b=258,x=b+y+1,w=42,_=113;function C(t,e){return t.msg=n[e],e}function P(t){return(t<<1)-(4t.avail_out&&(r=t.avail_out),0!==r&&(f.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function E(t,e){c._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,L(t.strm)}function T(t,e){t.pending_buf[t.pending++]=e}function k(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function R(t,e){var r,n,a=t.max_chain_length,o=t.strstart,i=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-x?t.strstart-(t.w_size-x):0,c=t.window,u=t.w_mask,p=t.prev,f=t.strstart+b,d=c[o+i-1],h=c[o+i];t.prev_length>=t.good_match&&(a>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+i]===h&&c[r+i-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&ol&&0!=--a);return i<=t.lookahead?i:t.lookahead}function F(t){var e,r,n,a,o,i,s,l,c,u,p=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-x)){for(f.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;n=t.head[--e],t.head[e]=p<=n?n-p:0,--r;);for(e=r=p;n=t.prev[--e],t.prev[e]=p<=n?n-p:0,--r;);a+=p}if(0===t.strm.avail_in)break;if(i=t.strm,s=t.window,l=t.strstart+t.lookahead,u=void 0,(c=a)<(u=i.avail_in)&&(u=c),r=0===u?0:(i.avail_in-=u,f.arraySet(s,i.input,i.next_in,u,l),1===i.state.wrap?i.adler=d(i.adler,s,u,l):2===i.state.wrap&&(i.adler=h(i.adler,s,u,l)),i.next_in+=u,i.total_in+=u,u),t.lookahead+=r,t.lookahead+t.insert>=y)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<=y&&(t.ins_h=(t.ins_h<=y)if(n=c._tr_tally(t,t.strstart-t.match_start,t.match_length-y),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=y){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=y&&(t.ins_h=(t.ins_h<=y&&t.match_length<=t.prev_length){for(a=t.strstart+t.lookahead-y,n=c._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-y),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=a&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(F(t),0===t.lookahead&&e===u)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,E(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-x&&(E(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(E(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(E(t,!1),t.strm.avail_out),1)}),new B(4,4,8,4,I),new B(4,5,16,8,I),new B(4,6,32,32,I),new B(4,4,16,16,O),new B(8,16,32,32,O),new B(8,16,128,128,O),new B(8,32,128,256,O),new B(32,128,258,1024,O),new B(32,258,258,4096,O)],r.deflateInit=function(t,e){return z(t,e,g,15,8,0)},r.deflateInit2=z,r.deflateReset=M,r.deflateResetKeep=D,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,p):m},r.deflate=function(t,e){var r,n,a,o;if(!t||!t.state||5>8&255),T(n,n.gzhead.time>>16&255),T(n,n.gzhead.time>>24&255),T(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),T(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(T(n,255&n.gzhead.extra.length),T(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=h(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(T(n,0),T(n,0),T(n,0),T(n,0),T(n,0),T(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),T(n,3),n.status=_);else{var i=g+(n.w_bits-8<<4)<<8;i|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(i|=32),i+=31-i%31,n.status=_,k(n,i),0!==n.strstart&&(k(n,t.adler>>>16),k(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),L(t),a=n.pending,n.pending!==n.pending_buf_size));)T(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),L(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexa&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),L(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexa&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&L(t),n.pending+2<=n.pending_buf_size&&(T(n,255&t.adler),T(n,t.adler>>8&255),t.adler=0,n.status=_)):n.status=_),0!==n.pending){if(L(t),0===t.avail_out)return n.last_flush=-1,p}else if(0===t.avail_in&&P(e)<=P(r)&&4!==e)return C(t,-5);if(666===n.status&&0!==t.avail_in)return C(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==u&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(F(t),0===t.lookahead)){if(e===u)return 1;break}if(t.match_length=0,r=c._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(E(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(E(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(E(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,a,o,i=t.window;;){if(t.lookahead<=b){if(F(t),t.lookahead<=b&&e===u)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=y&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=y?(r=c._tr_tally(t,1,t.match_length-y),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=c._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(E(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(E(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(E(t,!1),0===t.strm.avail_out)?1:2}(n,e):l[n.level].func(n,e);if(3!==s&&4!==s||(n.status=666),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),p;if(2===s&&(1===e?c._tr_align(n):5!==e&&(c._tr_stored_block(n,0,0,!1),3===e&&(S(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),L(t),0===t.avail_out))return n.last_flush=-1,p}return 4!==e?p:n.wrap<=0?1:(2===n.wrap?(T(n,255&t.adler),T(n,t.adler>>8&255),T(n,t.adler>>16&255),T(n,t.adler>>24&255),T(n,255&t.total_in),T(n,t.total_in>>8&255),T(n,t.total_in>>16&255),T(n,t.total_in>>24&255)):(k(n,t.adler>>>16),k(n,65535&t.adler)),L(t),0=r.w_size&&(0===o&&(S(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new f.Buf8(r.w_size),f.arraySet(c,e,u-r.w_size,r.w_size,0),e=c,u=r.w_size),i=t.avail_in,s=t.next_in,l=t.input,t.avail_in=u,t.next_in=0,t.input=e,F(r);r.lookahead>=y;){for(n=r.strstart,a=r.lookahead-(y-1);r.ins_h=(r.ins_h<>>=b=y>>>24,h-=b,0==(b=y>>>16&255))S[o++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=m[(65535&y)+(d&(1<>>=b,h-=b),h<15&&(d+=P[n++]<>>=b=y>>>24,h-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=g[(65535&y)+(d&(1<>>=b,h-=b,(b=o-i)>3,d&=(1<<(h-=x<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function o(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new T.Buf16(320),this.work=new T.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function i(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=M,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new T.Buf32(n),e.distcode=e.distdyn=new T.Buf32(a),e.sane=1,e.back=-1,N):D}function s(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,i(t)):D}function l(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=o.wsize?(T.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(n<(a=o.wsize-o.wnext)&&(a=n),T.arraySet(o.window,e,r-n,a,o.wnext),(n-=a)?(T.arraySet(o.window,e,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,r.check=R(r.check,L,2,0),u=c=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&c)){t.msg="unknown compression method",r.mode=30;break}if(u-=4,w=8+(15&(c>>>=4)),0===r.wbits)r.wbits=w;else if(w>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=R(r.check,L,2,0)),u=c=0,r.mode=3;case 3:for(;u<32;){if(0===s)break t;s--,c+=n[o++]<>>8&255,L[2]=c>>>16&255,L[3]=c>>>24&255,r.check=R(r.check,L,4,0)),u=c=0,r.mode=4;case 4:for(;u<16;){if(0===s)break t;s--,c+=n[o++]<>8),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=R(r.check,L,2,0)),u=c=0,r.mode=5;case 5:if(1024&r.flags){for(;u<16;){if(0===s)break t;s--,c+=n[o++]<>>8&255,r.check=R(r.check,L,2,0)),u=c=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(s<(d=r.length)&&(d=s),d&&(r.head&&(w=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),T.arraySet(r.head.extra,n,o,d,w)),512&r.flags&&(r.check=R(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;for(d=0;w=n[o+d++],r.head&&w&&r.length<65536&&(r.head.name+=String.fromCharCode(w)),w&&d>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;u<32;){if(0===s)break t;s--,c+=n[o++]<>>=7&u,u-=7&u,r.mode=27;break}for(;u<3;){if(0===s)break t;s--,c+=n[o++]<>>=1)){case 0:r.mode=14;break;case 1:if(U(r),r.mode=20,6!==e)break;c>>>=2,u-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}c>>>=2,u-=2;break;case 14:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break t;s--,c+=n[o++]<>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&c,u=c=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(s>>=5,u-=5,r.ndist=1+(31&c),c>>>=5,u-=5,r.ncode=4+(15&c),c>>>=4,u-=4,286>>=3,u-=3}for(;r.have<19;)r.lens[E[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},_=I(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,A=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>>=g,u-=g,r.lens[r.have++]=A;else{if(16===A){for(P=g+2;u>>=g,u-=g,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}w=r.lens[r.have-1],d=3+(3&c),c>>>=2,u-=2}else if(17===A){for(P=g+3;u>>=g)),c>>>=3,u-=3}else{for(P=g+7;u>>=g)),c>>>=7,u-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=w}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,C={bits:r.lenbits},_=I(O,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},_=I(B,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,_){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=s&&258<=l){t.next_out=i,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=u,F(t,f),i=t.next_out,a=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,u=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;v=(S=r.lencode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>y)])>>>16&255,A=65535&S,!(y+(g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>>=y,u-=y,r.back+=y}if(c>>>=g,u-=g,r.back+=g,r.length=A,0===v){r.mode=26;break}if(32&v){r.back=-1,r.mode=12;break}if(64&v){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&v,r.mode=22;case 22:if(r.extra){for(P=r.extra;u>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;v=(S=r.distcode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>y)])>>>16&255,A=65535&S,!(y+(g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>>=y,u-=y,r.back+=y}if(c>>>=g,u-=g,r.back+=g,64&v){t.msg="invalid distance code",r.mode=30;break}r.offset=A,r.extra=15&v,r.mode=24;case 24:if(r.extra){for(P=r.extra;u>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===l)break t;if(d=f-l,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}h=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=a,h=i-r.offset,d=r.length;for(ld?(m=F[I+i[y]],E[T+i[y]]):(m=96,0),l=1<>C)+(c-=l)]=h<<24|m<<16|g|0,0!==c;);for(l=1<>=1;if(0!==l?(L&=l-1,L+=l):L=0,y++,0==--k[A]){if(A===x)break;A=e[r+i[y]]}if(w>>7)]}function _(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function C(t,e,r){t.bi_valid>a-r?(t.bi_buf|=e<>a-t.bi_valid,t.bi_valid+=r-a):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function L(t,e,r){var n,a,o=new Array(g+1),i=0;for(n=1;n<=g;n++)o[n]=i=i+r[n-1]<<1;for(a=0;a<=e;a++){var s=t[2*a+1];0!==s&&(t[2*a]=S(o[s]++,s))}}function E(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function T(t){8>1;1<=r;r--)R(t,o,r);for(a=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*a]=o[2*r]+o[2*n],t.depth[a]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=a,t.heap[1]=a++,R(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,a,o,i,s,l=e.dyn_tree,c=e.max_code,u=e.stat_desc.static_tree,p=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,h=e.stat_desc.max_length,m=0;for(o=0;o<=g;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)h<(o=l[2*l[2*(n=t.heap[r])+1]+1]+1)&&(o=h,m++),l[2*n+1]=o,c>=7;n<30;n++)for(b[n]=a<<7,t=0;t<1<>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),i=function(t){var e;for(O(t,t.dyn_ltree,t.l_desc.max_code),O(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=a&&(a=o)):a=o=r+5,r+4<=a&&-1!==e?D(t,e,r,n):4===t.strategy||o===a?(C(t,2+(n?1:0),3),F(t,p,f)):(C(t,4+(n?1:0),3),function(t,e,r,n){var a;for(C(t,e-257,5),C(t,r-1,5),C(t,n-4,4),a=0;a>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(h[r]+256+1)]++,t.dyn_dtree[2*w(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){var e;C(t,2,3),P(t,256,p),16===(e=t).bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":41}],53:[function(t,e,r){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){"use strict";e.exports="function"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)})}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}),function o(i,s,l){function c(e,t){if(!s[e]){if(!i[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(u)return u(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var a=s[e]={exports:{}};i[e][0].call(a.exports,function(t){return c(i[e][1][t]||t)},a,a.exports,o,i,s,l)}return s[e].exports}for(var u="function"==typeof require&&require,t=0;ti;)o.call(t,n=a[i++])&&e.push(n);return e}},{104:104,107:107,108:108}],62:[function(t,e,r){var m=t(70),g=t(52),v=t(72),A=t(118),y=t(54),b="prototype",x=function(t,e,r){var n,a,o,i,s=t&x.F,l=t&x.G,c=t&x.S,u=t&x.P,p=t&x.B,f=l?m:c?m[e]||(m[e]={}):(m[e]||{})[b],d=l?g:g[e]||(g[e]={}),h=d[b]||(d[b]={});for(n in l&&(r=e),r)o=((a=!s&&f&&void 0!==f[n])?f:r)[n],i=p&&a?y(o,m):u&&"function"==typeof o?y(Function.call,o):o,f&&A(f,n,o,t&x.U),d[n]!=o&&v(d,n,i),u&&h[n]!=o&&(h[n]=o)};m.core=g,x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128,e.exports=x},{118:118,52:52,54:54,70:70,72:72}],63:[function(t,e,r){var n=t(152)("match");e.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[n]=!1,!"/./"[e](r)}catch(t){}}return!0}},{152:152}],64:[function(t,e,r){arguments[4][23][0].apply(r,arguments)},{23:23}],65:[function(t,e,r){"use strict";t(248);var u=t(118),p=t(72),f=t(64),d=t(57),h=t(152),m=t(120),g=h("species"),v=!f(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}),A=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(r,t,e){var n=h(r),o=!f(function(){var t={};return t[n]=function(){return 7},7!=""[r](t)}),a=o?!f(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},"split"===r&&(e.constructor={},e.constructor[g]=function(){return e}),e[n](""),!t}):void 0;if(!o||!a||"replace"===r&&!v||"split"===r&&!A){var i=/./[n],s=e(d,n,""[r],function(t,e,r,n,a){return e.exec===m?o&&!a?{done:!0,value:i.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),l=s[0],c=s[1];u(String.prototype,r,l),p(RegExp.prototype,n,2==t?function(t,e){return c.call(t,this,e)}:function(t){return c.call(t,this)})}}},{118:118,120:120,152:152,248:248,57:57,64:64,72:72}],66:[function(t,e,r){"use strict";var n=t(38);e.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},{38:38}],67:[function(t,e,r){"use strict";var h=t(79),m=t(81),g=t(141),v=t(54),A=t(152)("isConcatSpreadable");e.exports=function t(e,r,n,a,o,i,s,l){for(var c,u,p=o,f=0,d=!!s&&v(s,l,3);fdocument.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u[c][s[r]];return u()};t.exports=Object.create||function(t,e){var r;return null!==t?(a[c]=o(t),r=new a,a[c]=null,r[l]=t):r=u(),void 0===e?r:i(r,e)}},{100:100,125:125,38:38,59:59,60:60,73:73}],99:[function(t,e,r){arguments[4][29][0].apply(r,arguments)},{143:143,29:29,38:38,58:58,74:74}],100:[function(t,e,r){var i=t(99),s=t(38),l=t(107);e.exports=t(58)?Object.defineProperties:function(t,e){s(t);for(var r,n=l(e),a=n.length,o=0;oa;)i(n,r=e[a++])&&(~l(o,r)||o.push(r));return o}},{125:125,140:140,41:41,71:71}],107:[function(t,e,r){var n=t(106),a=t(60);e.exports=Object.keys||function(t){return n(t,a)}},{106:106,60:60}],108:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],109:[function(t,e,r){var a=t(62),o=t(52),i=t(64);e.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],n={};n[t]=e(r),a(a.S+a.F*i(function(){r(1)}),"Object",n)}},{52:52,62:62,64:64}],110:[function(t,e,r){var l=t(58),c=t(107),u=t(140),p=t(108).f;e.exports=function(s){return function(t){for(var e,r=u(t),n=c(r),a=n.length,o=0,i=[];o>>0||(i.test(r)?16:10))}:n},{134:134,135:135,70:70}],114:[function(t,e,r){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],115:[function(t,e,r){var n=t(38),a=t(81),o=t(96);e.exports=function(t,e){if(n(t),a(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},{38:38,81:81,96:96}],116:[function(t,e,r){arguments[4][30][0].apply(r,arguments)},{30:30}],117:[function(t,e,r){var a=t(118);e.exports=function(t,e,r){for(var n in e)a(t,n,e[n],r);return t}},{118:118}],118:[function(t,e,r){var o=t(70),i=t(72),s=t(71),l=t(147)("src"),n=t(69),a="toString",c=(""+n).split(a);t(52).inspectSource=function(t){return n.call(t)},(e.exports=function(t,e,r,n){var a="function"==typeof r;a&&(s(r,"name")||i(r,"name",e)),t[e]!==r&&(a&&(s(r,l)||i(r,l,t[e]?""+t[e]:c.join(String(e)))),t===o?t[e]=r:n?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,a,function(){return"function"==typeof this&&this[l]||n.call(this)})},{147:147,52:52,69:69,70:70,71:71,72:72}],119:[function(t,e,r){"use strict";var a=t(47),o=RegExp.prototype.exec;e.exports=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==a(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},{47:47}],120:[function(t,e,r){"use strict";var n,a,i=t(66),s=RegExp.prototype.exec,l=String.prototype.replace,o=s,c="lastIndex",u=(n=/a/,a=/b*/g,s.call(n,"a"),s.call(a,"a"),0!==n[c]||0!==a[c]),p=void 0!==/()??/.exec("")[1];(u||p)&&(o=function(t){var e,r,n,a,o=this;return p&&(r=new RegExp("^"+o.source+"$(?!\\s)",i.call(o))),u&&(e=o[c]),n=s.call(o,t),u&&n&&(o[c]=o.global?n.index+n[0].length:e),p&&n&&1"+a+""}var a=t(62),o=t(64),i=t(57),s=/"/g;e.exports=function(e,t){var r={};r[e]=t(n),a(a.P+a.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||3l&&(c=c.slice(0,l)),n?c+a:a+c}},{133:133,141:141,57:57}],133:[function(t,e,r){"use strict";var a=t(139),o=t(57);e.exports=function(t){var e=String(o(this)),r="",n=a(t);if(n<0||n==1/0)throw RangeError("Count can't be negative");for(;0>>=1)&&(e+=e))1&n&&(r+=e);return r}},{139:139,57:57}],134:[function(t,e,r){function n(t,e,r){var n={},a=s(function(){return!!l[t]()||"​…"!="​…"[t]()}),o=n[t]=a?e(p):l[t];r&&(n[r]=o),i(i.P+i.F*a,"String",n)}var i=t(62),a=t(57),s=t(64),l=t(135),o="["+l+"]",c=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),p=n.trim=function(t,e){return t=String(a(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(u,"")),t};e.exports=n},{135:135,57:57,62:62,64:64}],135:[function(t,e,r){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],136:[function(t,e,r){function n(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}}function a(t){n.call(t.data)}var o,i,s,l=t(54),c=t(76),u=t(73),p=t(59),f=t(70),d=f.process,h=f.setImmediate,m=f.clearImmediate,g=f.MessageChannel,v=f.Dispatch,A=0,y={},b="onreadystatechange";h&&m||(h=function(t){for(var e=[],r=1;r>1,u=23===e?T(2,-24)-T(2,-77):0,p=0,f=t<0||0===t&&1/t<0?1:0;for((t=E(t))!=t||t===S?(a=t!=t?1:0,n=l):(n=k(R(t)/F),t*(o=T(2,-n))<1&&(n--,o*=2),2<=(t+=1<=n+c?u/o:u*T(2,1-c))*o&&(n++,o/=2),l<=n+c?(a=0,n=l):1<=n+c?(a=(t*o-1)*T(2,e),n+=c):(a=t*T(2,c-1)*T(2,e),n=0));8<=e;i[p++]=255&a,a/=256,e-=8);for(n=n<>1,s=a-7,l=r-1,c=t[l--],u=127&c;for(c>>=7;0>=-s,s+=e;0>8&255]}function G(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function H(t){return M(t,52,8)}function V(t){return M(t,23,4)}function Q(t,e,r){m(t[b],e,{get:function(){return this[r]}})}function Y(t,e,r,n){var a=d(+r);if(a+e>t[N])throw P(x);var o=t[B]._b,i=a+t[D],s=o.slice(i,i+e);return n?s:s.reverse()}function q(t,e,r,n,a,o){var i=d(+r);if(i+e>t[N])throw P(x);for(var s=t[B]._b,l=i+t[D],c=n(+a),u=0;uJ;)(Z=K[J++])in w||s(w,Z,L[Z]);o||(X.constructor=w)}var $=new _(new w(2)),tt=_[b].setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||l(_[b],{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else w=function(t){u(this,w,A);var e=d(t);this._b=g.call(new Array(e),0),this[N]=e},_=function(t,e,r){u(this,_,y),u(t,w,y);var n=t[N],a=p(e);if(a<0||n>24},getUint8:function(t){return Y(this,1,t)[0]},getInt16:function(t,e){var r=Y(this,2,t,e);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t,e){var r=Y(this,2,t,e);return r[1]<<8|r[0]},getInt32:function(t,e){return U(Y(this,4,t,e))},getUint32:function(t,e){return U(Y(this,4,t,e))>>>0},getFloat32:function(t,e){return z(Y(this,4,t,e),23,4)},getFloat64:function(t,e){return z(Y(this,8,t,e),52,8)},setInt8:function(t,e){q(this,1,t,j,e)},setUint8:function(t,e){q(this,1,t,j,e)},setInt16:function(t,e,r){q(this,2,t,W,e,r)},setUint16:function(t,e,r){q(this,2,t,W,e,r)},setInt32:function(t,e,r){q(this,4,t,G,e,r)},setUint32:function(t,e,r){q(this,4,t,G,e,r)},setFloat32:function(t,e,r){q(this,4,t,V,e,r)},setFloat64:function(t,e,r){q(this,8,t,H,e,r)}});v(w,A),v(_,y),s(_[b],i.VIEW,!0),r[A]=w,r[y]=_},{103:103,117:117,124:124,138:138,139:139,141:141,146:146,37:37,40:40,58:58,64:64,70:70,72:72,89:89,99:99}],146:[function(t,e,r){for(var n,a=t(70),o=t(72),i=t(147),s=i("typed_array"),l=i("view"),c=!(!a.ArrayBuffer||!a.DataView),u=c,p=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");p<9;)(n=a[f[p++]])?(o(n.prototype,s,!0),o(n.prototype,l,!0)):u=!1;e.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},{147:147,70:70,72:72}],147:[function(t,e,r){var n=0,a=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+a).toString(36))}},{}],148:[function(t,e,r){var n=t(70).navigator;e.exports=n&&n.userAgent||""},{70:70}],149:[function(t,e,r){var n=t(81);e.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},{81:81}],150:[function(t,e,r){var n=t(70),a=t(52),o=t(89),i=t(151),s=t(99).f;e.exports=function(t){var e=a.Symbol||(a.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},{151:151,52:52,70:70,89:89,99:99}],151:[function(t,e,r){r.f=t(152)},{152:152}],152:[function(t,e,r){var n=t(126)("wks"),a=t(147),o=t(70).Symbol,i="function"==typeof o;(e.exports=function(t){return n[t]||(n[t]=i&&o[t]||(i?o:a)("Symbol."+t))}).store=n},{126:126,147:147,70:70}],153:[function(t,e,r){var n=t(47),a=t(152)("iterator"),o=t(88);e.exports=t(52).getIteratorMethod=function(t){if(null!=t)return t[a]||t["@@iterator"]||o[n(t)]}},{152:152,47:47,52:52,88:88}],154:[function(t,e,r){var n=t(62);n(n.P,"Array",{copyWithin:t(39)}),t(35)("copyWithin")},{35:35,39:39,62:62}],155:[function(t,e,r){"use strict";var n=t(62),a=t(42)(4);n(n.P+n.F*!t(128)([].every,!0),"Array",{every:function(t,e){return a(this,t,e)}})},{128:128,42:42,62:62}],156:[function(t,e,r){var n=t(62);n(n.P,"Array",{fill:t(40)}),t(35)("fill")},{35:35,40:40,62:62}],157:[function(t,e,r){"use strict";var n=t(62),a=t(42)(2);n(n.P+n.F*!t(128)([].filter,!0),"Array",{filter:function(t,e){return a(this,t,e)}})},{128:128,42:42,62:62}],158:[function(t,e,r){"use strict";var n=t(62),a=t(42)(6),o="findIndex",i=!0;o in[]&&Array(1)[o](function(){i=!1}),n(n.P+n.F*i,"Array",{findIndex:function(t,e){return a(this,t,1=t.length?(this._t=void 0,a(1)):a(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},{140:140,35:35,85:85,87:87,88:88}],165:[function(t,e,r){"use strict";var n=t(62),a=t(140),o=[].join;n(n.P+n.F*(t(77)!=Object||!t(128)(o)),"Array",{join:function(t){return o.call(a(this),void 0===t?",":t)}})},{128:128,140:140,62:62,77:77}],166:[function(t,e,r){"use strict";var n=t(62),o=t(140),i=t(139),s=t(141),l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(c||!t(128)(l)),"Array",{lastIndexOf:function(t,e){if(c)return l.apply(this,arguments)||0;var r=o(this),n=s(r.length),a=n-1;for(1>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{62:62}],189:[function(t,e,r){var n=t(62),a=Math.exp;n(n.S,"Math",{cosh:function(t){return(a(t=+t)+a(-t))/2}})},{62:62}],190:[function(t,e,r){var n=t(62),a=t(90);n(n.S+n.F*(a!=Math.expm1),"Math",{expm1:a})},{62:62,90:90}],191:[function(t,e,r){var n=t(62);n(n.S,"Math",{fround:t(91)})},{62:62,91:91}],192:[function(t,e,r){var n=t(62),l=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var r,n,a=0,o=0,i=arguments.length,s=0;o>>16)*o+a*(65535&n>>>16)<<16>>>0)}})},{62:62,64:64}],194:[function(t,e,r){var n=t(62);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},{62:62}],195:[function(t,e,r){var n=t(62);n(n.S,"Math",{log1p:t(92)})},{62:62,92:92}],196:[function(t,e,r){var n=t(62);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},{62:62}],197:[function(t,e,r){var n=t(62);n(n.S,"Math",{sign:t(93)})},{62:62,93:93}],198:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S+n.F*t(64)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(a(t)-a(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},{62:62,64:64,90:90}],199:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S,"Math",{tanh:function(t){var e=a(t=+t),r=a(-t);return e==1/0?1:r==1/0?-1:(e-r)/(o(t)+o(-t))}})},{62:62,90:90}],200:[function(t,e,r){var n=t(62);n(n.S,"Math",{trunc:function(t){return(0w;w++)o(g,b=x[w])&&!o(m,b)&&f(m,b,p(g,b));(m.prototype=v).constructor=m,t(118)(a,h,m)}},{101:101,103:103,118:118,134:134,143:143,48:48,58:58,64:64,70:70,71:71,75:75,98:98,99:99}],202:[function(t,e,r){var n=t(62);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},{62:62}],203:[function(t,e,r){var n=t(62),a=t(70).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&a(t)}})},{62:62,70:70}],204:[function(t,e,r){var n=t(62);n(n.S,"Number",{isInteger:t(80)})},{62:62,80:80}],205:[function(t,e,r){var n=t(62);n(n.S,"Number",{isNaN:function(t){return t!=t}})},{62:62}],206:[function(t,e,r){var n=t(62),a=t(80),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return a(t)&&o(t)<=9007199254740991}})},{62:62,80:80}],207:[function(t,e,r){var n=t(62);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{62:62}],208:[function(t,e,r){var n=t(62);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{62:62}],209:[function(t,e,r){var n=t(62),a=t(112);n(n.S+n.F*(Number.parseFloat!=a),"Number",{parseFloat:a})},{112:112,62:62}],210:[function(t,e,r){var n=t(62),a=t(113);n(n.S+n.F*(Number.parseInt!=a),"Number",{parseInt:a})},{113:113,62:62}],211:[function(t,e,r){"use strict";function c(t,e){for(var r=-1,n=e;++r<6;)n+=t*i[r],i[r]=n%1e7,n=o(n/1e7)}function u(t){for(var e=6,r=0;0<=--e;)r+=i[e],i[e]=o(r/t),r=r%t*1e7}function p(){for(var t=6,e="";0<=--t;)if(""!==e||0===t||0!==i[t]){var r=String(i[t]);e=""===e?r:e+h.call("0",7-r.length)+r}return e}var n=t(62),f=t(139),d=t(34),h=t(133),a=1..toFixed,o=Math.floor,i=[0,0,0,0,0,0],m="Number.toFixed: incorrect invocation!",g=function(t,e,r){return 0===e?r:e%2==1?g(t,e-1,r*t):g(t*t,e/2,r)};n(n.P+n.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!t(64)(function(){a.call({})})),"Number",{toFixed:function(t){var e,r,n,a,o=d(this,m),i=f(t),s="",l="0";if(i<0||20t;)e(n[t++]);u._c=[],u._n=!1,r&&!u._h&&N(u)})}}function o(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),a(e,!0))}var i,s,l,c,u=r(89),f=r(70),d=r(54),h=r(47),m=r(62),g=r(81),v=r(33),A=r(37),y=r(68),b=r(127),x=r(136).set,w=r(95)(),_=r(96),C=r(114),P=r(148),S=r(115),L="Promise",E=f.TypeError,T=f.process,k=T&&T.versions,R=k&&k.v8||"",F=f[L],I="process"==h(T),O=s=_.f,B=!!function(){try{var t=F.resolve(1),e=(t.constructor={})[r(152)("species")]=function(t){t(n,n)};return(I||"function"==typeof PromiseRejectionEvent)&&t.then(n)instanceof e&&0!==R.indexOf("6.6")&&-1===P.indexOf("Chrome/66")}catch(t){}}(),N=function(o){x.call(f,function(){var t,e,r,n=o._v,a=D(o);if(a&&(t=C(function(){I?T.emit("unhandledRejection",n,o):(e=f.onunhandledrejection)?e({promise:o,reason:n}):(r=f.console)&&r.error&&r.error("Unhandled promise rejection",n)}),o._h=I||D(o)?2:1),o._a=void 0,a&&t.e)throw t.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},M=function(e){x.call(f,function(){var t;I?T.emit("rejectionHandled",e):(t=f.onrejectionhandled)&&t({promise:e,reason:e._v})})},z=function(t){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E("Promise can't be resolved itself");(r=p(t))?w(function(){var e={_w:n,_d:!1};try{r.call(t,d(z,e,1),d(o,e,1))}catch(t){o.call(e,t)}}):(n._v=t,n._s=1,a(n,!1))}catch(t){o.call({_w:n,_d:!1},t)}}};B||(F=function(t){A(this,F,L,"_h"),v(t),i.call(this);try{t(d(z,this,1),d(o,this,1))}catch(t){o.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(117)(F.prototype,{then:function(t,e){var r=O(b(this,F));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=I?T.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&a(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),l=function(){var t=new i;this.promise=t,this.resolve=d(z,t,1),this.reject=d(o,t,1)},_.f=O=function(t){return t===F||t===c?new l(t):s(t)}),m(m.G+m.W+m.F*!B,{Promise:F}),r(124)(F,L),r(123)(L),c=r(52)[L],m(m.S+m.F*!B,L,{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),m(m.S+m.F*(u||!B),L,{resolve:function(t){return S(u&&this===c?F:this,t)}}),m(m.S+m.F*!(B&&r(86)(function(t){F.all(t).catch(n)})),L,{all:function(t){var i=this,e=O(i),s=e.resolve,l=e.reject,r=C(function(){var n=[],a=0,o=1;y(t,!1,function(t){var e=a++,r=!1;n.push(void 0),o++,i.resolve(t).then(function(t){r||(r=!0,n[e]=t,--o||s(n))},l)}),--o||s(n)});return r.e&&l(r.v),e.promise},race:function(t){var e=this,r=O(e),n=r.reject,a=C(function(){y(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return a.e&&n(a.v),r.promise}})},{114:114,115:115,117:117,123:123,124:124,127:127,136:136,148:148,152:152,33:33,37:37,47:47,52:52,54:54,62:62,68:68,70:70,81:81,86:86,89:89,95:95,96:96}],233:[function(t,e,r){var n=t(62),o=t(33),i=t(38),s=(t(70).Reflect||{}).apply,l=Function.apply;n(n.S+n.F*!t(64)(function(){s(function(){})}),"Reflect",{apply:function(t,e,r){var n=o(t),a=i(r);return s?s(n,e,a):l.call(n,e,a)}})},{33:33,38:38,62:62,64:64,70:70}],234:[function(t,e,r){var n=t(62),l=t(98),c=t(33),u=t(38),p=t(81),a=t(64),f=t(46),d=(t(70).Reflect||{}).construct,h=a(function(){function t(){}return!(d(function(){},[],t)instanceof t)}),m=!a(function(){d(function(){})});n(n.S+n.F*(h||m),"Reflect",{construct:function(t,e,r){c(t),u(e);var n=arguments.length<3?t:c(r);if(m&&!h)return d(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var a=[null];return a.push.apply(a,e),new(f.apply(t,a))}var o=n.prototype,i=l(p(o)?o:Object.prototype),s=Function.apply.call(t,i,e);return p(s)?s:i}})},{33:33,38:38,46:46,62:62,64:64,70:70,81:81,98:98}],235:[function(t,e,r){var n=t(99),a=t(62),o=t(38),i=t(143);a(a.S+a.F*t(64)(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,r){o(t),e=i(e,!0),o(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},{143:143,38:38,62:62,64:64,99:99}],236:[function(t,e,r){var n=t(62),a=t(101).f,o=t(38);n(n.S,"Reflect",{deleteProperty:function(t,e){var r=a(o(t),e);return!(r&&!r.configurable)&&delete t[e]}})},{101:101,38:38,62:62}],237:[function(t,e,r){"use strict";function n(t){this._t=o(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)}var a=t(62),o=t(38);t(84)(n,"Object",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),a(a.S,"Reflect",{enumerate:function(t){return new n(t)}})},{38:38,62:62,84:84}],238:[function(t,e,r){var n=t(101),a=t(62),o=t(38);a(a.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},{101:101,38:38,62:62}],239:[function(t,e,r){var n=t(62),a=t(105),o=t(38);n(n.S,"Reflect",{getPrototypeOf:function(t){return a(o(t))}})},{105:105,38:38,62:62}],240:[function(t,e,r){var s=t(101),l=t(105),c=t(71),n=t(62),u=t(81),p=t(38);n(n.S,"Reflect",{get:function t(e,r,n){var a,o,i=arguments.length<3?e:n;return p(e)===i?e[r]:(a=s.f(e,r))?c(a,"value")?a.value:void 0!==a.get?a.get.call(i):void 0:u(o=l(e))?t(o,r,i):void 0}})},{101:101,105:105,38:38,62:62,71:71,81:81}],241:[function(t,e,r){var n=t(62);n(n.S,"Reflect",{has:function(t,e){return e in t}})},{62:62}],242:[function(t,e,r){var n=t(62),a=t(38),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return a(t),!o||o(t)}})},{38:38,62:62}],243:[function(t,e,r){var n=t(62);n(n.S,"Reflect",{ownKeys:t(111)})},{111:111,62:62}],244:[function(t,e,r){var n=t(62),a=t(38),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){a(t);try{return o&&o(t),!0}catch(t){return!1}}})},{38:38,62:62}],245:[function(t,e,r){var n=t(62),a=t(122);a&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){a.check(t,e);try{return a.set(t,e),!0}catch(t){return!1}}})},{122:122,62:62}],246:[function(t,e,r){var c=t(99),u=t(101),p=t(105),f=t(71),n=t(62),d=t(116),h=t(38),m=t(81);n(n.S,"Reflect",{set:function t(e,r,n,a){var o,i,s=arguments.length<4?e:a,l=u.f(h(e),r);if(!l){if(m(i=p(e)))return t(i,r,n,s);l=d(0)}if(f(l,"value")){if(!1===l.writable||!m(s))return!1;if(o=u.f(s,r)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,c.f(s,r,o)}else c.f(s,r,d(0,n));return!0}return void 0!==l.set&&(l.set.call(s,n),!0)}})},{101:101,105:105,116:116,38:38,62:62,71:71,81:81,99:99}],247:[function(t,e,r){var n=t(70),o=t(75),a=t(99).f,i=t(103).f,s=t(82),l=t(66),c=n.RegExp,u=c,p=c.prototype,f=/a/g,d=/a/g,h=new c(f)!==f;if(t(58)&&(!h||t(64)(function(){return d[t(152)("match")]=!1,c(f)!=f||c(d)==d||"/a/i"!=c(f,"i")}))){function m(e){e in c||a(c,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})}c=function(t,e){var r=this instanceof c,n=s(t),a=void 0===e;return!r&&n&&t.constructor===c&&a?t:o(h?new u(n&&!a?t.source:t,e):u((n=t instanceof c)?t.source:t,n&&a?l.call(t):e),r?this:p,c)};for(var g=i(u),v=0;g.length>v;)m(g[v++]);(p.constructor=c).prototype=p,t(118)(n,"RegExp",c)}t(123)("RegExp")},{103:103,118:118,123:123,152:152,58:58,64:64,66:66,70:70,75:75,82:82,99:99}],248:[function(t,e,r){"use strict";var n=t(120);t(62)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},{120:120,62:62}],249:[function(t,e,r){t(58)&&"g"!=/./g.flags&&t(99).f(RegExp.prototype,"flags",{configurable:!0,get:t(66)})},{58:58,66:66,99:99}],250:[function(t,e,r){"use strict";var p=t(38),f=t(141),d=t(36),h=t(119);t(65)("match",1,function(n,a,c,u){return[function(t){var e=n(this),r=null==t?void 0:t[a];return void 0!==r?r.call(t,e):new RegExp(t)[a](String(e))},function(t){var e=u(c,t,this);if(e.done)return e.value;var r=p(t),n=String(this);if(!r.global)return h(r,n);for(var a,o=r.unicode,i=[],s=r.lastIndex=0;null!==(a=h(r,n));){var l=String(a[0]);""===(i[s]=l)&&(r.lastIndex=d(n,f(r.lastIndex),o)),s++}return 0===s?null:i}]})},{119:119,141:141,36:36,38:38,65:65}],251:[function(t,e,r){"use strict";var C=t(38),n=t(142),P=t(141),S=t(139),L=t(36),E=t(119),T=Math.max,k=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;t(65)("replace",2,function(a,o,x,w){return[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):x.call(String(r),t,e)},function(t,e){var r=w(x,t,this,e);if(r.done)return r.value;var n=C(t),a=String(this),o="function"==typeof e;o||(e=String(e));var i=n.global;if(i){var s=n.unicode;n.lastIndex=0}for(var l=[];;){var c=E(n,a);if(null===c)break;if(l.push(c),!i)break;""===String(c[0])&&(n.lastIndex=L(a,P(n.lastIndex),s))}for(var u,p="",f=0,d=0;d>>0,u=new RegExp(t.source,s+"g");(n=f.call(u,r))&&!(l<(a=u[m])&&(i.push(r.slice(l,n.index)),1=c));)u[m]===n.index&&u[m]++;return l===r[h]?!o&&u.test("")||i.push(""):i.push(r.slice(l)),i[h]>c?i.slice(0,c):i}:"0"[i](void 0,0)[h]?function(t,e){return void 0===t&&0===e?[]:g.call(this,t,e)}:g,[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):A.call(String(r),t,e)},function(t,e){var r=v(A,t,this,e,A!==g);if(r.done)return r.value;var n=y(t),a=String(this),o=b(n,RegExp),i=n.unicode,s=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(S?"y":"g"),l=new o(S?n:"^(?:"+n.source+")",s),c=void 0===e?P:e>>>0;if(0==c)return[];if(0===a.length)return null===_(l,a)?[a]:[];for(var u=0,p=0,f=[];p>10),e%1024+56320))}return r.join("")}})},{137:137,62:62}],266:[function(t,e,r){"use strict";var n=t(62),a=t(130);n(n.P+n.F*t(63)("includes"),"String",{includes:function(t,e){return!!~a(this,t,"includes").indexOf(t,1=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{129:129,85:85}],269:[function(t,e,r){"use strict";t(131)("link",function(e){return function(t){return e(this,"a","href",t)}})},{131:131}],270:[function(t,e,r){var n=t(62),i=t(140),s=t(141);n(n.S,"String",{raw:function(t){for(var e=i(t.raw),r=s(e.length),n=arguments.length,a=[],o=0;oa;)u(Y,e=r[a++])||e==G||e==h||n.push(e);return n}function l(t){for(var e,r=t===Z,n=M(r?q:L(t)),a=[],o=0;n.length>o;)!u(Y,e=n[o++])||r&&!u(Z,e)||a.push(Y[e]);return a}var c=t(70),u=t(71),p=t(58),f=t(62),d=t(118),h=t(94).KEY,m=t(64),g=t(126),v=t(124),A=t(147),y=t(152),b=t(151),x=t(150),w=t(61),_=t(79),C=t(38),P=t(81),S=t(142),L=t(140),E=t(143),T=t(116),k=t(98),R=t(102),F=t(101),I=t(104),O=t(99),B=t(107),N=F.f,D=O.f,M=R.f,z=c.Symbol,U=c.JSON,j=U&&U.stringify,W="prototype",G=y("_hidden"),H=y("toPrimitive"),V={}.propertyIsEnumerable,Q=g("symbol-registry"),Y=g("symbols"),q=g("op-symbols"),Z=Object[W],X="function"==typeof z&&!!I.f,K=c.QObject,J=!K||!K[W]||!K[W].findChild,$=p&&m(function(){return 7!=k(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=N(Z,e);n&&delete Z[e],D(t,e,r),n&&t!==Z&&D(Z,e,n)}:D,tt=X&&"symbol"==typeof z.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof z},et=function(t,e,r){return t===Z&&et(q,e,r),C(t),e=E(e,!0),C(r),u(Y,e)?(r.enumerable?(u(t,G)&&t[G][e]&&(t[G][e]=!1),r=k(r,{enumerable:T(0,!1)})):(u(t,G)||D(t,G,T(1,{})),t[G][e]=!0),$(t,e,r)):D(t,e,r)};X||(d((z=function(t){if(this instanceof z)throw TypeError("Symbol is not a constructor!");var e=A(0nt;)y(rt[nt++]);for(var at=B(y.store),ot=0;at.length>ot;)x(at[ot++]);f(f.S+f.F*!X,"Symbol",{for:function(t){return u(Q,t+="")?Q[t]:Q[t]=z(t)},keyFor:function(t){if(!tt(t))throw TypeError(t+" is not a symbol!");for(var e in Q)if(Q[e]===t)return e},useSetter:function(){J=!0},useSimple:function(){J=!1}}),f(f.S+f.F*!X,"Object",{create:function(t,e){return void 0===e?k(t):a(k(t),e)},defineProperty:et,defineProperties:a,getOwnPropertyDescriptor:i,getOwnPropertyNames:s,getOwnPropertySymbols:l});var it=m(function(){I.f(1)});f(f.S+f.F*it,"Object",{getOwnPropertySymbols:function(t){return I.f(S(t))}}),U&&f(f.S+f.F*(!X||m(function(){var t=z();return"[null]"!=j([t])||"{}"!=j({a:t})||"{}"!=j(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],a=1;as;)void 0!==(r=a(n,e=o[s++]))&&p(i,e,r);return i}})},{101:101,111:111,140:140,53:53,62:62}],296:[function(t,e,r){var n=t(62),a=t(110)(!1);n(n.S,"Object",{values:function(t){return a(t)}})},{110:110,62:62}],297:[function(t,e,r){"use strict";var n=t(62),a=t(52),o=t(70),i=t(127),s=t(115);n(n.P+n.R,"Promise",{finally:function(e){var r=i(this,a.Promise||o.Promise),t="function"==typeof e;return this.then(t?function(t){return s(r,e()).then(function(){return t})}:e,t?function(t){return s(r,e()).then(function(){throw t})}:e)}})},{115:115,127:127,52:52,62:62,70:70}],298:[function(t,e,r){"use strict";var n=t(62),a=t(132),o=t(148),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*i,"String",{padEnd:function(t,e){return a(this,t,1/g,">").replace(/"/g,""").replace(/'/g,"'")}function vt(t){return"number"==typeof t&&100"+e+"":""}function _t(t){var e="solid",r="",n="",a="";if(t)switch("string"==typeof t?r=t:(t.type&&(e=t.type),t.color&&(r=t.color),t.alpha&&(n+=''),t.transparency&&(n+='')),e){case"solid":a+=""+wt(r,n)+"";break;default:a+=""}return a}function Ct(t){return t._rels.length+t._relsChart.length+t._relsMedia.length+1}function Pt(t,c,n,e){void 0===t&&(t=[]),void 0===c&&(c={});var r,u=P,p=1*B,f=0,a=0,d=[],o=dt(c.x,"X",n),h=dt(c.y,"Y",n),i=dt(c.w,"X",n),m=dt(c.h,"Y",n),s=i;if(c.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- TABLE PROPS --------------------------------------------------------|"),console.log("| presLayout.width ................................ = "+(n.width/B).toFixed(1)),console.log("| presLayout.height ............................... = "+(n.height/B).toFixed(1)),console.log("| tableProps.x .................................... = "+("number"==typeof c.x?(c.x/B).toFixed(1):c.x)),console.log("| tableProps.y .................................... = "+("number"==typeof c.y?(c.y/B).toFixed(1):c.y)),console.log("| tableProps.w .................................... = "+("number"==typeof c.w?(c.w/B).toFixed(1):c.w)),console.log("| tableProps.h .................................... = "+("number"==typeof c.h?(c.h/B).toFixed(1):c.h)),console.log("| tableProps.slideMargin .......................... = "+(c.slideMargin||"")),console.log("| tableProps.margin ............................... = "+c.margin),console.log("| tableProps.colW ................................. = "+c.colW),console.log("| tableProps.autoPageSlideStartY .................. = "+c.autoPageSlideStartY),console.log("| tableProps.autoPageCharWeight ................... = "+c.autoPageCharWeight),console.log("|-- CALCULATIONS -------------------------------------------------------|"),console.log("| tablePropX ...................................... = "+o/B),console.log("| tablePropY ...................................... = "+h/B),console.log("| tablePropW ...................................... = "+i/B),console.log("| tablePropH ...................................... = "+m/B),console.log("| tableCalcW ...................................... = "+s/B)),c.slideMargin||0===c.slideMargin||(c.slideMargin=P[0]),e&&void 0!==e._margin?Array.isArray(e._margin)?u=e._margin:isNaN(Number(e._margin))||(u=[Number(e._margin),Number(e._margin),Number(e._margin),Number(e._margin)]):!c.slideMargin&&0!==c.slideMargin||(Array.isArray(c.slideMargin)?u=c.slideMargin:isNaN(c.slideMargin)||(u=[c.slideMargin,c.slideMargin,c.slideMargin,c.slideMargin])),c.verbose&&console.log("| arrInchMargins .................................. = ["+u.join(", ")+"]"),(t[0]||[]).forEach(function(t){var e=(t=t||{_type:at.tablecell}).options||null;a+=Number(e&&e.colspan?e.colspan:1)}),c.verbose&&console.log("| numCols ......................................... = "+a),!i&&c.colW&&(s=Array.isArray(c.colW)?c.colW.reduce(function(t,e){return t+e})*B:c.colW*a||0,c.verbose&&console.log("| tableCalcW ...................................... = "+s/B)),r=s||vt((o?o/B:u[1])+u[3]),c.verbose&&console.log("| emuSlideTabW .................................... = "+(r/B).toFixed(1)),!c.colW||!Array.isArray(c.colW))if(c.colW&&!isNaN(Number(c.colW))){var l=[];(t[0]||[]).forEach(function(){return l.push(c.colW)}),c.colW=[],l.forEach(function(t){Array.isArray(c.colW)&&c.colW.push(t)})}else{c.colW=[];for(var g=0;ge?e=At(t.options.margin[0]):c.margin&&c.margin[0]&&At(c.margin[0])>e&&(e=At(c.margin[0])),t.options.margin&&t.options.margin[2]&&At(t.options.margin[2])>r?r=At(t.options.margin[2]):c.margin&&c.margin[2]&&At(c.margin[2])>r&&(r=At(c.margin[2]))):(t.options.margin&&t.options.margin[0]&&vt(t.options.margin[0])>e?e=vt(t.options.margin[0]):c.margin&&c.margin[0]&&vt(c.margin[0])>e&&(e=vt(c.margin[0])),t.options.margin&&t.options.margin[2]&&vt(t.options.margin[2])>r?r=vt(t.options.margin[2]):c.margin&&c.margin[2]&&vt(c.margin[2])>r&&(r=vt(c.margin[2])))});var t=0;if(0===d.length&&(t=h||vt(u[0])),0 "+JSON.stringify(c)),s.push(c),c=[])),0a&&(o.push(e),e=[],r=""),e.push(t),r+=t.text.toString()}),0=a[l]._lines.length&&(l=e)}),a.forEach(function(n,a){n._lines.forEach(function(t,e){if(f+n._lineHeight>p){c.verbose&&(console.log("\n|-----------------------------------------------------------------------|"),console.log("|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => "+(f/B).toFixed(2)+" + "+(n._lineHeight/B).toFixed(2)+" > "+p/B),console.log("|-----------------------------------------------------------------------|\n\n")),0r&&(r=t._lineHeight)}),v.rows.push(e),f+=r})}var r=s[a];Array.isArray(r.text)&&(r.text=r.text.concat(t)),a===l&&(f+=n._lineHeight),s.forEach(function(t,e){e'},contain:function(t,e){var r=t.h/t.w,n=r'},crop:function(t,e){var r=e.x,n=t.w-(e.x+e.w),a=e.y,o=t.h-(e.y+e.h);return''}};function Lt(R){var F=R._name?'':"",I=1;return R._bkgdImgRid?F+='':R.background&&R.background.color?F+=""+_t(R.background)+"":!R.bkgd&&R._name&&R._name===n&&(F+=''),F+="",F+='',F+='',F+='',R._slideObjects.forEach(function(n,t){var e,r,a=0,o=0,i=dt("75%","X",R._presLayout),s=0,l="";switch(void 0!==R._slideLayout&&void 0!==R._slideLayout._slideObjects&&n.options&&n.options.placeholder&&(r=R._slideLayout._slideObjects.filter(function(t){return t.options.placeholder===n.options.placeholder})[0]),n.options=n.options||{},void 0!==n.options.x&&(a=dt(n.options.x,"X",R._presLayout)),void 0!==n.options.y&&(o=dt(n.options.y,"Y",R._presLayout)),void 0!==n.options.w&&(i=dt(n.options.w,"X",R._presLayout)),void 0!==n.options.h&&(s=dt(n.options.h,"Y",R._presLayout)),r&&(!r.options.x&&0!==r.options.x||(a=dt(r.options.x,"X",R._presLayout)),!r.options.y&&0!==r.options.y||(o=dt(r.options.y,"Y",R._presLayout)),!r.options.w&&0!==r.options.w||(i=dt(r.options.w,"X",R._presLayout)),!r.options.h&&0!==r.options.h||(s=dt(r.options.h,"Y",R._presLayout))),n.options.flipH&&(l+=' flipH="1"'),n.options.flipV&&(l+=' flipV="1"'),n.options.rotate&&(l+=' rot="'+yt(n.options.rotate)+'"'),n._type){case at.table:var c,u=n.arrTabRows,f=n.options,p=0,d=0;u[0].forEach(function(t){c=t.options||null,p+=c&&c.colspan?Number(c.colspan):1});var h='';if(h+=' ',h+='',h+='',Array.isArray(f.colW)){h+="";for(var m=0;m'}h+=""}else{d=f.colW?f.colW:B,n.options.w&&!f.colW&&(d=Math.round(("number"==typeof n.options.w?n.options.w:1)/p)),h+="";for(var v=0;v';h+=""}u.forEach(function(o){for(var i,s,l,t=function(t){var e=o[t],r=null===(i=e.options)||void 0===i?void 0:i.colspan,n=null===(s=e.options)||void 0===s?void 0:s.rowspan;if(r&&1',t.forEach(function(t){var e,r,n=t,a={rowSpan:1<(null===(e=n.options)||void 0===e?void 0:e.rowspan)?n.options.rowspan:void 0,gridSpan:1<(null===(r=n.options)||void 0===r?void 0:r.colspan)?n.options.colspan:void 0,vMerge:n._vmerge?1:void 0,hMerge:n._hmerge?1:void 0},o=Object.keys(a).map(function(t){return[t,a[t]]}).filter(function(t){return t[0],!!t[1]}).map(function(t){return t[0]+'="'+t[1]+'"'}).join(" ");if(o=o&&" "+o,n._hmerge||n._vmerge)h+="";else{var i=n.options||{};n.options=i,["align","bold","border","color","fill","fontFace","fontSize","margin","underline","valign"].forEach(function(t){f[t]&&!i[t]&&0!==i[t]&&(i[t]=f[t])});var s=i.valign?' anchor="'+i.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b")+'"':"",l=n._optImp&&n._optImp.fill&&n._optImp.fill.color?n._optImp.fill.color:n._optImp&&n._optImp.fill&&"string"==typeof n._optImp.fill?n._optImp.fill:"",c=(l=l||i.fill&&i.fill.color?i.fill.color:i.fill&&"string"==typeof i.fill?i.fill:"")?""+wt(l)+"":"",u=0===i.margin||i.margin?i.margin:N;Array.isArray(u)||"number"!=typeof u||(u=[u,u,u,u]);var p="";p=1<=u[0]?' marL="'+At(u[3])+'" marR="'+At(u[1])+'" marT="'+At(u[0])+'" marB="'+At(u[2])+'"':' marL="'+vt(u[3])+'" marR="'+vt(u[1])+'" marT="'+vt(u[0])+'" marB="'+vt(u[2])+'"',h+=""+Rt(n)+"",i.border&&Array.isArray(i.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach(function(t){"none"!==i.border[t.idx].type?(h+="',h+=""+wt(i.border[t.idx].color)+"",h+='',h+=""):h+=""}),h+=c,h+=" ",h+=" "}}),h+=""}),h+=" ",h+=" ",h+=" ",F+=h+="",I++;break;case at.text:case at.placeholder:var A=n.options.shapeName?gt(n.options.shapeName):"Object"+(t+1);if(n.options.line||0!==s||(s=.3*B),n.options._bodyProp||(n.options._bodyProp={}),n.options.margin&&Array.isArray(n.options.margin)?(n.options._bodyProp.lIns=At(n.options.margin[0]||0),n.options._bodyProp.rIns=At(n.options.margin[1]||0),n.options._bodyProp.bIns=At(n.options.margin[2]||0),n.options._bodyProp.tIns=At(n.options.margin[3]||0)):"number"==typeof n.options.margin&&(n.options._bodyProp.lIns=At(n.options.margin),n.options._bodyProp.rIns=At(n.options.margin),n.options._bodyProp.bIns=At(n.options.margin),n.options._bodyProp.tIns=At(n.options.margin)),F+="",F+='',n.options.hyperlink&&n.options.hyperlink.url&&(F+=''),n.options.hyperlink&&n.options.hyperlink.slide&&(F+=''),F+="",F+="':"/>"),F+=""+("placeholder"===n._type?Ft(n):Ft(r))+"",F+="",F+="",F+='',F+='',"custGeom"===n.shape)F+="",F+="",F+="",F+="",F+="",F+="",F+='',F+="",F+='',null===(e=n.options.points)||void 0===e||e.map(function(t,e){if("curve"in t)switch(t.curve.type){case"arc":F+='';break;case"cubic":F+='\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t';break;case"quadratic":F+='\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t'}else"close"in t?F+="":t.moveTo||0===e?F+='':F+=''}),F+="",F+="",F+="";else{if(F+='',n.options.rectRadius)F+='';else if(n.options.angleRange){for(var y=0;y<2;y++){var b=n.options.angleRange[y];F+=''}n.options.arcThicknessRatio&&(F+='')}F+=""}F+=n.options.fill?_t(n.options.fill):"",n.options.line&&(F+=n.options.line.width?'':"",n.options.line.color&&(F+=_t(n.options.line)),n.options.line.dashType&&(F+=''),n.options.line.beginArrowType&&(F+=''),n.options.line.endArrowType&&(F+=''),F+=""),n.options.shadow&&(n.options.shadow.type=n.options.shadow.type||"outer",n.options.shadow.blur=At(n.options.shadow.blur||8),n.options.shadow.offset=At(n.options.shadow.offset||4),n.options.shadow.angle=Math.round(6e4*(n.options.shadow.angle||270)),n.options.shadow.opacity=Math.round(1e5*(n.options.shadow.opacity||.75)),n.options.shadow.color=n.options.shadow.color||D.color,F+="",F+="',F+='',F+='',F+="",F+=""),F+="",F+=Rt(n),F+="";break;case at.image:var x=n.options,w=x.sizing,_=x.rounding,C=i,P=s;if(F+="",F+=" ",F+='',n.hyperlink&&n.hyperlink.url&&(F+=''),n.hyperlink&&n.hyperlink.slide&&(F+=''),F+=" ",F+=' ',F+=" "+Ft(r)+"",F+=" ",F+="",(R._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0]&&"svg"===(R._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0].extn?(F+='',F+=" ",F+=' ',F+=' ',F+=" ",F+=" ",F+=""):F+='',w&&w.type){var S=w.w?dt(w.w,"X",R._presLayout):i,L=w.h?dt(w.h,"Y",R._presLayout):s,E=dt(w.x||0,"X",R._presLayout),T=dt(w.y||0,"Y",R._presLayout);F+=St[w.type]({w:C,h:P},{w:S,h:L,x:E,y:T}),C=S,P=L}else F+=" ";F+="",F+="",F+=" ",F+=' ',F+=' ',F+=" ",F+=' ',F+="",F+="";break;case at.media:"online"===n.mtype?(F+="",F+=" ",F+=' ',F+=" ",F+=" ",F+=' ',F+=" ",F+=" ",F+=' '):(F+="",F+=" ",F+=' ',F+=' ',F+=" ",F+=' ',F+=" ",F+=' ',F+=' ',F+=" ",F+=" ",F+=" ",F+=" ",F+=' '),F+=" ",F+=" ",F+=' ',F+=' ',F+=" ",F+=' ',F+=" ",F+="";break;case at.chart:var k=n.options;F+="",F+=" ",F+=' ',F+=" ",F+=" "+Ft(r)+"",F+=" ",F+=' ',F+=' ',F+=' ',F+=' ',F+=" ",F+=" ",F+="";break;default:F+=""}}),R._slideNumberProps&&(R._slideNumberProps.align||(R._slideNumberProps.align="left"),F+=' ',F+="",F+="',R._slideNumberProps.color&&(F+=_t(R._slideNumberProps.color)),R._slideNumberProps.fontFace&&(F+=''),F+=""),F+="",F+='',R._slideNumberProps.align.startsWith("l")?F+='':R._slideNumberProps.align.startsWith("c")?F+='':R._slideNumberProps.align.startsWith("r")?F+='':F+='',F+='',F+=""),F+="",F+=""}function Et(t,e){var r=0,n=''+c+'';return t._rels.forEach(function(t){r=Math.max(r,t.rId),-1':n+='':-1')}),(t._relsChart||[]).forEach(function(t){r=Math.max(r,t.rId),n+=''}),(t._relsMedia||[]).forEach(function(t){r=Math.max(r,t.rId),-1':-1':n+='':-1':n+='':-1':n+='')}),e.forEach(function(t,e){n+=''}),n+=""}function Tt(t,e){var r="",n="",a="",o="",i=e?"a:lvl1pPr":"a:pPr",s=At(u),l="<"+i+(t.options.rtlMode?' rtl="1" ':"");if(t.options.align)switch(t.options.align){case"left":l+=' algn="l"';break;case"right":l+=' algn="r"';break;case"center":l+=' algn="ctr"';break;case"justify":l+=' algn="just"';break;default:l+=""}if(t.options.lineSpacing?n='':t.options.lineSpacingMultiple&&(n=''),t.options.indentLevel&&!isNaN(Number(t.options.indentLevel))&&0'),t.options.paraSpaceAfter&&!isNaN(Number(t.options.paraSpaceAfter))&&0'),"object"==typeof t.options.bullet)if(t&&t.options&&t.options.bullet&&t.options.bullet.indent&&(s=At(t.options.bullet.indent)),t.options.bullet.type)"number"===t.options.bullet.type.toString().toLowerCase()&&(l+=' marL="'+(t.options.indentLevel&&0');else if(t.options.bullet.characterCode){var c="&#x"+t.options.bullet.characterCode+";";!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.characterCode)&&(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),c=lt.DEFAULT),l+=' marL="'+(t.options.indentLevel&&0'}else if(t.options.bullet.code){c="&#x"+t.options.bullet.code+";";!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.code)&&(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),c=lt.DEFAULT),l+=' marL="'+(t.options.indentLevel&&0'}else l+=' marL="'+(t.options.indentLevel&&0';else!0===t.options.bullet?(l+=' marL="'+(t.options.indentLevel&&0'):!1===t.options.bullet&&(l+=' indent="0" marL="0"',r="");t.options.tabStops&&Array.isArray(t.options.tabStops)&&(o=""+t.options.tabStops.map(function(t){return''}).join("")+"");return l+=">"+n+a+r+o,e&&(l+=kt(t.options,!0)),l+=""}function kt(t,e){var r,n="",a=e?"a:defRPr":"a:rPr";if(n+="<"+a+' lang="'+(t.lang?t.lang:"en-US")+'"'+(t.lang?' altLang="en-US"':""),n+=t.fontSize?' sz="'+Math.round(t.fontSize)+'00"':"",n+=t.hasOwnProperty("bold")?' b="'+(t.bold?1:0)+'"':"",n+=t.hasOwnProperty("italic")?' i="'+(t.italic?1:0)+'"':"",n+=t.hasOwnProperty("strike")?' strike="'+("string"==typeof t.strike?t.strike:"sngStrike")+'"':"","object"==typeof t.underline&&(null===(r=t.underline)||void 0===r?void 0:r.style)?n+=' u="'+t.underline.style+'"':"string"==typeof t.underline?n+=' u="'+t.underline+'"':t.hyperlink&&(n+=' u="sng"'),t.baseline?n+=' baseline="'+Math.round(50*t.baseline)+'"':t.subscript?n+=' baseline="-40000"':t.superscript&&(n+=' baseline="30000"'),n+=t.charSpacing?' spc="'+Math.round(100*t.charSpacing)+'" kern="0"':"",n+=' dirty="0">',(t.color||t.fontFace||t.outline||"object"==typeof t.underline&&t.underline.color)&&(t.outline&&"object"==typeof t.outline&&(n+=''+_t(t.outline.color||"FFFFFF")+""),t.color&&(n+=_t(t.color)),t.highlight&&(n+=""+wt(t.highlight)+""),"object"==typeof t.underline&&t.underline.color&&(n+=""+_t(t.underline.color)+""),t.glow&&(n+=""+function(t,e){var r="",n=mt(e,t);return r+='',r+=wt(n.color,''),r+=""}(t.glow,S)+""),t.fontFace&&(n+='')),t.hyperlink){if("object"!=typeof t.hyperlink)throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");if(!t.hyperlink.url&&!t.hyperlink.slide)throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'");t.hyperlink.url?n+='":"/>"):t.hyperlink.slide&&(n+='":"/>")),t.color&&(n+="\t",n+='\t\t',n+='\t\t\t',n+="\t\t",n+="\t",n+="")}return n+=""}function Rt(n){var a=n.options||{},t=[],r=[];if(a&&n._type!==at.tablecell&&(void 0===n.text||null===n.text))return"";var o=n._type===at.tablecell?"":"";o+=function(t){var e="":"resize"===t.options.fit&&(e+="")),t.options.shrinkText&&(e+=""),e+=!1!==t.options._bodyProp.autoFit?"":""):e+=' wrap="square" rtlCol="0">',e+="",t._type===at.tablecell?"":e}(n),0===a.h&&a.line&&a.align?o+='':"placeholder"===n._type?o+=""+Tt(n,!0)+"":o+="","string"==typeof n.text||"number"==typeof n.text?t.push({text:n.text.toString(),options:a||{}}):n.text&&!Array.isArray(n.text)&&"object"==typeof n.text&&-1";var r=""),n.options.align=n.options.align||a.align,n.options.lineSpacing=n.options.lineSpacing||a.lineSpacing,n.options.lineSpacingMultiple=n.options.lineSpacingMultiple||a.lineSpacingMultiple,n.options.indentLevel=n.options.indentLevel||a.indentLevel,n.options.paraSpaceBefore=n.options.paraSpaceBefore||a.paraSpaceBefore,n.options.paraSpaceAfter=n.options.paraSpaceAfter||a.paraSpaceAfter,r=Tt(n,!1),o+=r,Object.entries(a).forEach(function(t){var e=t[0],r=t[1];n.options.hyperlink&&"color"===e||"bullet"===e||n.options[e]||(n.options[e]=r)}),o+=function(t){return t.text?""+kt(t.options,!1)+""+gt(t.text)+"":""}(n),(!n.text&&a.fontSize||n.options.fontSize)&&(e=!0,a.fontSize=a.fontSize||n.options.fontSize)}),n._type===at.tablecell&&(a.fontSize||a.fontFace)?a.fontFace?(o+='',o+='',o+='',o+='',o+=""):o+='':o+=e?'':'',o+=""}),o+=n._type===at.tablecell?"":""}function Ft(t){if(!t)return"";var e=t.options&&t.options._placeholderIdx?t.options._placeholderIdx:"",r=t.options&&t.options._placeholderType?t.options._placeholderType:"";return""}function It(t){return''+c+''+gt(function(t){var e="";return t._slideObjects.forEach(function(t){t._type===at.notes&&(e+=t.text&&t.text[0]?t.text[0].text:"")}),e.replace(/\r*\n/g,c)}(t))+''+t._slideNum+''}function Ot(t){t&&"object"==typeof t&&("outer"!==t.type&&"inner"!==t.type&&"none"!==t.type&&(console.warn("Warning: shadow.type options are `outer`, `inner` or `none`."),t.type="outer"),t.angle&&((isNaN(Number(t.angle))||t.angle<0||359 \n'),t.file("_rels/.rels",'\n'),t.file("docProps/app.xml",'Microsoft Excel0falseWorksheets1Sheet1\n'),t.file("docProps/core.xml",'PptxGenJSEly, Brent'+(new Date).toISOString()+''+(new Date).toISOString()+"\n"),t.file("xl/_rels/workbook.xml.rels",'\n'),t.file("xl/styles.xml",'\n'),t.file("xl/theme/theme1.xml",''),t.file("xl/workbook.xml",'\n'),t.file("xl/worksheets/_rels/sheet1.xml.rels",'\n');var n='';u.opts._type===J.BUBBLE?n+='':u.opts._type===J.SCATTER?n+='':(n+='',n+=''),u.opts._type===J.BUBBLE?f.forEach(function(t,e){0===e?n+="X-Axis":(n+=""+gt(t.name||" ")+"",n+=""+gt("Size "+e)+"")}):f.forEach(function(t){n+=""+gt((t.name||" ").replace("X-Axis","X-Values"))+""}),u.opts._type!==J.BUBBLE&&u.opts._type!==J.SCATTER&&f[0].labels.forEach(function(t){n+=""+gt(t)+""}),n+="\n",t.file("xl/sharedStrings.xml",n);var o='';u.opts._type===J.BUBBLE||(u.opts._type===J.SCATTER?(o+='
',o+='',f.forEach(function(t,e){o+=''})):(o+='
',o+='',o+='',f.forEach(function(t,e){o+=''}))),o+="",o+='',o+="
",t.file("xl/tables/table1.xml",o);var i='';if(i+='',u.opts._type===J.BUBBLE?i+='':u.opts._type===J.SCATTER?i+='':i+='',i+='',i+='',u.opts._type===J.BUBBLE){i+="",i+='',i+="",i+="",i+='',i+='0';for(var s=1;s',i+=""+s+"",i+="";i+="",f[0].values.forEach(function(t,e){i+='',i+=''+t+"";for(var r=1,n=1;n',i+=""+(f[n].values[e]||"")+"",i+="",i+='',i+=""+(f[n].sizes[e]||"")+"",i+="",r++;i+=""})}else if(u.opts._type===J.SCATTER){i+="",i+='',i+="",i+="",i+='',i+='0';for(var l=1;l',i+=""+l+"",i+="";i+="",f[0].values.forEach(function(t,e){i+='',i+=''+t+"";for(var r=1;r',i+=""+(f[r].values[e]||0===f[r].values[e]?f[r].values[e]:"")+"",i+="";i+=""})}else{i+="",i+='',i+="",i+="",i+='',i+='0';for(var c=1;c<=f.length;c++)i+='',i+=""+c+"",i+="";i+="",f[0].labels.forEach(function(t,e){i+='',i+='',i+=""+(f.length+e+1)+"",i+="";for(var r=0;r',i+=""+(f[r].values[e]||"")+"",i+="";i+=""})}i+="",i+='',i+="\n",t.file("xl/worksheets/sheet1.xml",i),t.generateAsync({type:"base64"}).then(function(t){p.file("ppt/embeddings/Microsoft_Excel_Worksheet"+u.globalId+".xlsx",t,{base64:!0}),p.file("ppt/charts/_rels/"+u.fileName+".rels",''),p.file("ppt/charts/"+u.fileName,function(a){var o='',i=!1;o+='',o+='',o+="",a.opts.showTitle?(o+=qt({title:a.opts.title||"Chart Title",color:a.opts.titleColor,fontFace:a.opts.titleFontFace,fontSize:a.opts.titleFontSize||w,titleAlign:a.opts.titleAlign,titleBold:a.opts.titleBold,titlePos:a.opts.titlePos,titleRotate:a.opts.titleRotate}),o+=''):o+='';a.opts._type===J.BAR3D&&(o+="",o+=' ',o+=' ',o+=' ',o+=' ',o+="");o+="",a.opts.layout?(o+="",o+=" ",o+=' ',o+=' ',o+=' ',o+=' ',o+=' ',o+=' ',o+=' ',o+=" ",o+=""):o+="";Array.isArray(a.opts._type)?a.opts._type.forEach(function(t){var e=mt(a.opts,t.options),r=e.secondaryValAxis?E:L,n=e.secondaryCatAxis?k:T;i=i||e.secondaryValAxis,o+=Vt(t.type,t.data,e,r,n)}):o+=Vt(a.opts._type,a.data,a.opts,L,T);if(a.opts._type!==J.PIE&&a.opts._type!==J.DOUGHNUT){if(a.opts.valAxes&&1',n+=' ',n+=' ',n+=' ',n+="none"!==e.serGridLine.style?Kt(e.serGridLine):"",e.showSerAxisTitle&&(n+=qt({color:e.serAxisTitleColor,fontFace:e.serAxisTitleFontFace,fontSize:e.serAxisTitleFontSize,titleRotate:e.serAxisTitleRotate,title:e.serAxisTitle||"Axis Title"}));n+=' ',n+=' ',n+=' ',n+=' ',n+=" ",n+=' ',n+=!1===e.serAxisLineShow?"":""+wt(e.serAxisLineColor||g.color)+"",n+=' ',n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+wt(e.serAxisLabelColor||v)+"",n+=' ',n+=" ",n+=" ",n+=' ',n+=" ",n+=" ",n+=' ',n+=' ',e.serAxisLabelFrequency&&(n+=' ');e.serLabelFormatCode&&(["serAxisBaseTimeUnit","serAxisMajorTimeUnit","serAxisMinorTimeUnit"].forEach(function(t){!e[t]||"string"==typeof e[t]&&-1!==["days","months","years"].indexOf(t.toLowerCase())||(console.warn("`"+t+"` must be one of: 'days','months','years' !"),e[t]=null)}),e.serAxisBaseTimeUnit&&(n+=' '),e.serAxisMajorTimeUnit&&(n+=' '),e.serAxisMinorTimeUnit&&(n+=' '),e.serAxisMajorUnit&&(n+=' '),e.serAxisMinorUnit&&(n+=' '));return n+=""}(a.opts,R,L)))}a.opts.showDataTable&&(o+="",o+=' ',o+=' ',o+=' ',o+=' ',o+=" ",o+=" ",o+=' ',o+=" ",o+=" ",o+=" ",o+='\t ',o+="\t ",o+="\t ",o+='\t\t',o+=' ',o+='\t\t\t',o+='\t\t\t',o+='\t\t\t',o+='\t\t\t',o+="\t\t ",o+="\t\t",o+='\t\t',o+="\t ",o+="\t",o+="");o+=" ",o+=a.opts.fill?_t(a.opts.fill):"",o+=a.opts.border?''+_t(a.opts.border.color)+"":"",o+=" ",o+=" ",o+="",a.opts.showLegend&&(o+="",o+='',o+='',(a.opts.legendFontFace||a.opts.legendFontSize||a.opts.legendColor)&&(o+="",o+=" ",o+=" ",o+=" ",o+=" ",o+=a.opts.legendFontSize?'':"",a.opts.legendColor&&(o+=_t(a.opts.legendColor)),a.opts.legendFontFace&&(o+=''),a.opts.legendFontFace&&(o+=''),o+=" ",o+=" ",o+=' ',o+=" ",o+=""),o+="");o+=' ',o+=' ',a.opts._type===J.SCATTER&&(o+='');return o+="",o+="",o+=" ",o+=' ',o+=" ",o+="",o+='',o+=""}(u)),e(null)}).catch(function(t){r(t)})})}function Vt(n,a,o,t,e){var i="";switch(n){case J.AREA:case J.BAR:case J.BAR3D:case J.LINE:case J.RADAR:i+="",n===J.AREA&&"stacked"===o.barGrouping&&(i+=''),n!==J.BAR&&n!==J.BAR3D||(i+='',i+=''),n===J.RADAR&&(i+=''),i+='';var s=-1;a.forEach(function(t){s++;var e=t.index;i+="",i+=' ',i+=' ',i+=" ",i+=" ",i+=" Sheet1!$"+Zt(e+1)+"$1",i+=' '+gt(t.name)+"",i+=" ",i+=" ",i+=' ';var r=o.chartColors?o.chartColors[s%o.chartColors.length]:null;i+=" ","transparent"===r?i+="":o.chartColorsOpacity?i+=""+wt(r,'')+"":i+=""+wt(r)+"",n===J.LINE?0===o.lineSize?i+="":(i+=''+wt(r)+"",i+=''):o.dataBorder&&(i+=''+wt(o.dataBorder.color)+''),i+=Xt(o.shadow,C),i+=" ",n!==J.RADAR&&(i+=" ",i+=' ',o.dataLabelBkgrdColors&&(i+=" ",i+=" "+wt(r)+"",i+=" "),i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',i+=" "+wt(o.dataLabelColor||v)+"",i+=' ',i+=" ",i+=" ",i+=" ",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=" "),n!==J.LINE&&n!==J.RADAR||(i+="",i+=' ',o.lineDataSymbolSize&&(i+=' '),i+=" ",i+=" "+wt(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e])+"",i+=' '+wt(o.lineDataSymbolLineColor||r)+'',i+=" ",i+=" ",i+=""),(n===J.BAR||n===J.BAR3D)&&1===a.length&&o.chartColors!==I&&1",i+=' ',i+=' ',i+=' ',i+=" ",0===o.lineSize?i+="":n===J.BAR?(i+="",i+=' ',i+=""):(i+="",i+=" ",i+=' ',i+=" ",i+=""),i+=Xt(o.shadow,C),i+=" ",i+=" "}),i+="",o.catLabelFormatCode?(i+=" ",i+=" Sheet1!$A$2:$A$"+(t.labels.length+1)+"",i+=" ",i+=" "+(o.catLabelFormatCode||"General")+"",i+=' ',t.labels.forEach(function(t,e){i+=''+gt(t)+""}),i+=" ",i+=" "):(i+=" ",i+=" Sheet1!$A$2:$A$"+(t.labels.length+1)+"",i+=" ",i+='\t ',t.labels.forEach(function(t,e){i+=''+gt(t)+""}),i+=" ",i+=" "),i+="",i+="",i+=" ",i+=" Sheet1!$"+Zt(e+1)+"$2:$"+Zt(e+1)+"$"+(t.labels.length+1)+"",i+=" ",i+=" "+(o.valLabelFormatCode||o.dataTableFormatCode||"General")+"",i+=' ',t.values.forEach(function(t,e){i+=''+(t||0===t?t:"")+""}),i+=" ",i+=" ",i+="",n===J.LINE&&(i+=''),i+=""}),i+=" ",i+=' ',i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',i+=" "+wt(o.dataLabelColor||v)+"",i+=' ',i+=" ",i+=" ",i+=" ",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=" ",n===J.BAR?(i+=' ',i+=' '):n===J.BAR3D?(i+=' ',i+=' ',i+=' '):n===J.LINE&&(i+=' '),i+=' ',i+=' ',i+=' ',i+="";break;case J.SCATTER:i+="",i+='',i+='',s=-1,a.filter(function(t,e){return 0",i+=' ',i+=' ',i+=" ",i+=" ",i+=" Sheet1!$"+F[t+1]+"$1",i+=' '+r.name+"",i+=" ",i+=" ",i+=" ";var e=o.chartColors[s%o.chartColors.length];if("transparent"===e?i+="":o.chartColorsOpacity?i+=""+wt(e,'')+"":i+=""+wt(e)+"",0===o.lineSize?i+="":(i+=''+wt(e)+"",i+=''),i+=Xt(o.shadow,C),i+=" ",i+="",i+=' ',o.lineDataSymbolSize&&(i+=' '),i+=" ",i+=" "+wt(o.chartColors[t+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):t])+"",i+=' '+wt(o.lineDataSymbolLineColor||o.chartColors[s%o.chartColors.length])+'',i+=" ",i+=" ",i+="",o.showLabel){var n=ht("-xxxx-xxxx-xxxx-xxxxxxxxxxxx");!r.labels||"custom"!==o.dataLabelFormatScatter&&"customXY"!==o.dataLabelFormatScatter||(i+="",r.labels.forEach(function(t,e){"custom"!==o.dataLabelFormatScatter&&"customXY"!==o.dataLabelFormatScatter||(i+=" ",i+=' ',i+=" ",i+=" ",i+="\t\t\t",i+="\t\t\t\t",i+="\t\t\t",i+=" \t",i+=" \t",i+="\t\t\t\t",i+="\t\t\t\t\t",i+="\t\t\t\t",i+=" \t",i+=' \t\t',i+=" \t\t"+gt(t)+"",i+=" \t","customXY"!==o.dataLabelFormatScatter||/^ *$/.test(t)||(i+=" \t",i+=' \t\t',i+=" \t\t (",i+=" \t",i+=' \t',i+=' \t\t',i+=" \t\t",i+=" \t\t\t",i+=" \t\t",i+=" \t\t["+gt(r.name)+"",i+=" \t",i+=" \t",i+=' \t\t',i+=" \t\t, ",i+=" \t",i+=' \t',i+=' \t\t',i+=" \t\t",i+=" \t\t\t",i+=" \t\t",i+=" \t\t["+gt(r.name)+"]",i+=" \t",i+=" \t",i+=' \t\t',i+=" \t\t)",i+=" \t",i+=' \t'),i+=" \t",i+=" ",i+=" ",i+=" ",i+=" \t",i+=" \t",i+=" \t\t",i+=" \t",i+=" \t",i+=" ",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+='\t ',i+=" ",i+=' ',i+=' ',i+='\t\t\t',i+=" ",i+="\t\t",i+="")}),i+=""),"XY"===o.dataLabelFormatScatter&&(i+="",i+="\t",i+="\t\t",i+="\t\t",i+="\t\t\t",i+="\t\t",i+="\t \t",i+="\t",i+="\t",i+="\t\t",i+="\t\t\t",i+="\t\t",i+="\t\t",i+="\t\t",i+="\t \t",i+=" \t\t",i+="\t \t",i+='\t \t',i+="\t\t",i+="\t",o.dataLabelPosition&&(i+=' '),i+='\t',i+=' ',i+=' ',i+='\t',i+='\t',i+='\t',i+="\t",i+='\t\t',i+='\t\t\t',i+="\t\t",i+="\t",i+="")}1===a.length&&o.chartColors!==I&&r.values.forEach(function(t,e){var r=t<0?o.invertedColors||o.chartColors||I:o.chartColors||[];i+=" ",i+=' ',i+=' ',i+=' ',i+=" ",0===o.lineSize?i+="":(i+="",i+=' ',i+=""),i+=Xt(o.shadow,C),i+=" ",i+=" "}),i+="",i+=" ",i+=" Sheet1!$A$2:$A$"+(a[0].values.length+1)+"",i+=" ",i+=" General",i+=' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:"")+""}),i+=" ",i+=" ",i+="",i+="",i+=" ",i+=" Sheet1!$"+Zt(t+1)+"$2:$"+Zt(t+1)+"$"+(a[0].values.length+1)+"",i+=" ",i+=" General",i+=' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:"")+""}),i+=" ",i+=" ",i+="",i+='',i+=""}),i+=" ",i+=' ',i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',i+=" "+wt(o.dataLabelColor||v)+"",i+=' ',i+=" ",i+=" ",i+=" ",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=" ",i+=' ',i+=' ',i+="";break;case J.BUBBLE:i+="",i+='',s=-1;var l=1;a.filter(function(t,e){return 0",i+=' ',i+=' ',i+=" ",i+=" ",i+=" Sheet1!$"+F[l]+"$1",i+=' '+r.name+"",i+=" ",i+=" ",i+="";var e=o.chartColors[s%o.chartColors.length];"transparent"===e?i+="":o.chartColorsOpacity?i+=""+wt(e,'')+"":i+=""+wt(e)+"",0===o.lineSize?i+="":o.dataBorder?i+=''+wt(o.dataBorder.color)+'':(i+=''+wt(e)+"",i+=''),i+=Xt(o.shadow,C),i+="",i+="",i+=" ",i+=" Sheet1!$A$2:$A$"+(a[0].values.length+1)+"",i+=" ",i+=" General",i+=' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:"")+""}),i+=" ",i+=" ",i+="",i+="",i+=" ",i+=" Sheet1!$"+Zt(l)+"$2:$"+Zt(l)+"$"+(a[0].values.length+1)+"",l++,i+=" ",i+=" General",i+=' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:"")+""}),i+=" ",i+=" ",i+="",i+=" ",i+=" ",i+=" Sheet1!$"+Zt(l)+"$2:$"+Zt(t+2)+"$"+(r.sizes.length+1)+"",l++,i+=" ",i+=" General",i+='\t ',r.sizes.forEach(function(t,e){i+=''+(t||"")+""}),i+=" ",i+=" ",i+=" ",i+=' ',i+=""}),i+=" ",i+=' ',i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',i+=" "+wt(o.dataLabelColor||v)+"",i+=' ',i+=" ",i+=" ",i+=" ",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=" ",i+=' ',i+=' ',i+="";break;case J.DOUGHNUT:case J.PIE:var r=a[0];i+="",i+=' ',i+="",i+=' ',i+=' ',i+=" ",i+=" ",i+=" Sheet1!$B$1",i+=" ",i+=' ',i+=' '+gt(r.name)+"",i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',i+=' ',o.dataNoEffects?i+="":i+=Xt(o.shadow,C),i+=" ",r.labels.forEach(function(t,e){i+="",i+=' ',i+=' ',i+=" ",i+=""+wt(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e])+"",o.dataBorder&&(i+=''+wt(o.dataBorder.color)+''),i+=Xt(o.shadow,C),i+=" ",i+=""}),i+="",r.labels.forEach(function(t,e){i+="",i+=' ',i+=' ',i+=" ",i+=" ",i+=" ",i+=' ',i+=" "+wt(o.dataLabelColor||v)+"",i+=' ',i+=" ",i+=" ",i+=" ",n===J.PIE&&o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=" "}),i+=' ',i+="\t",i+="\t ",i+="\t ",i+="\t ",i+="\t\t",i+='\t\t ',i+='\t\t\t',i+="\t\t ",i+="\t\t",i+="\t ",i+="\t",i+=n===J.PIE?'':"",i+='\t',i+='\t',i+='\t',i+='\t',i+='\t',i+='\t',i+=' ',i+="",i+="",i+=" ",i+=" Sheet1!$A$2:$A$"+(r.labels.length+1)+"",i+=" ",i+='\t ',r.labels.forEach(function(t,e){i+=''+gt(t)+""}),i+=" ",i+=" ",i+="",i+=" ",i+=" ",i+=" Sheet1!$B$2:$B$"+(r.labels.length+1)+"",i+=" ",i+='\t ',r.values.forEach(function(t,e){i+=''+(t||0===t?t:"")+""}),i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',n===J.DOUGHNUT&&(i+=' '),i+="";break;default:i+=""}return i}function Qt(e,t,r){var n="";return e._type===J.SCATTER||e._type===J.BUBBLE?n+="":n+="",n+=' ',n+=" ",n+='',!e.catAxisMaxVal&&0!==e.catAxisMaxVal||(n+=''),!e.catAxisMinVal&&0!==e.catAxisMinVal||(n+=''),n+="",n+=' ',n+=' ',n+="none"!==e.catGridLine.style?Kt(e.catGridLine):"",e.showCatAxisTitle&&(n+=qt({color:e.catAxisTitleColor,fontFace:e.catAxisTitleFontFace,fontSize:e.catAxisTitleFontSize,titleRotate:e.catAxisTitleRotate,title:e.catAxisTitle||"Axis Title"})),e._type===J.SCATTER||e._type===J.BUBBLE?n+=' ':n+=' ',e._type===J.SCATTER?(n+=' ',n+=' ',n+=' '):(n+=' ',n+=' ',n+=' '),n+=" ",n+=' ',n+=!1===e.catAxisLineShow?"":""+wt(e.catAxisLineColor||g.color)+"",n+=' ',n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+wt(e.catAxisLabelColor||v)+"",n+=' ',n+=" ",n+=" ",n+=' ',n+=" ",n+=" ",n+=' ',n+=" ',n+=' ',n+=' ',n+=' ',e.catAxisLabelFrequency&&(n+=' '),!e.catLabelFormatCode&&e._type!==J.SCATTER&&e._type!==J.BUBBLE||(e.catLabelFormatCode&&(["catAxisBaseTimeUnit","catAxisMajorTimeUnit","catAxisMinorTimeUnit"].forEach(function(t){!e[t]||"string"==typeof e[t]&&-1!==["days","months","years"].indexOf(e[t].toLowerCase())||(console.warn("`"+t+"` must be one of: 'days','months','years' !"),e[t]=null)}),e.catAxisBaseTimeUnit&&(n+=''),e.catAxisMajorTimeUnit&&(n+=''),e.catAxisMinorTimeUnit&&(n+='')),e.catAxisMajorUnit&&(n+=''),e.catAxisMinorUnit&&(n+='')),e._type===J.SCATTER||e._type===J.BUBBLE?n+="":n+="",n}function Yt(t,e){var r=e===L?"col"===t.barDir?"l":"b":"col"!==t.barDir?"r":"t",n="",a="r"==r||"t"==r?"max":"autoZero",o=e===L?T:k;return n+="",n+=' ',n+=" ",t.valAxisLogScaleBase&&(n+=' '),n+=' ',!t.valAxisMaxVal&&0!==t.valAxisMaxVal||(n+=''),!t.valAxisMinVal&&0!==t.valAxisMinVal||(n+=''),n+=" ",n+=' ',n+=' ',"none"!==t.valGridLine.style&&(n+=Kt(t.valGridLine)),t.showValAxisTitle&&(n+=qt({color:t.valAxisTitleColor,fontFace:t.valAxisTitleFontFace,fontSize:t.valAxisTitleFontSize,titleRotate:t.valAxisTitleRotate,title:t.valAxisTitle||"Axis Title"})),n+="',t._type===J.SCATTER?(n+=' ',n+=' ',n+=' '):(n+=' ',n+=' ',n+=' '),n+=" ",n+=' ',n+=!1===t.valAxisLineShow?"":""+wt(t.valAxisLineColor||g.color)+"",n+=' ',n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+wt(t.valAxisLabelColor||v)+"",n+=' ',n+=" ",n+=" ",n+=' ',n+=" ",n+=" ",n+=' ',n+=' ',n+=' ',t.valAxisMajorUnit&&(n+=' '),t.valAxisDisplayUnit&&(n+=''+(t.valAxisDisplayUnitLabel?"":"")+""),n+=""}function qt(t){var e="left"===t.titleAlign||"right"===t.titleAlign?'':"",r=t.titleRotate?'':"",n=t.fontSize?'sz="'+Math.round(100*t.fontSize)+'"':"",a=!0===t.titleBold?1:0,o=t.titlePos&&t.titlePos.x&&t.titlePos.y?'':"";return"\n\t \n\t \n\t "+r+"\n\t \n\t \n\t "+e+"\n\t \n\t '+wt(t.color||v)+'\n\t \n\t \n\t \n\t \n\t \n\t '+wt(t.color||v)+'\n\t \n\t \n\t '+(gt(t.title)||"")+"\n\t \n\t \n\t \n\t \n\t "+o+'\n\t \n\t'}function Zt(t){var e="";return t<=26?e=F[t]:(e+=F[Math.floor(t/F.length)-1],e+=F[t%F.length]),e}function Xt(t,e){if(!t)return"";if("object"!=typeof t)return console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),"";var r="",n=mt(e,t),a=n.type||"outer",o=At(n.blur),i=At(n.offset),s=Math.round(6e4*n.angle),l=n.color,c=Math.round(1e5*n.opacity);return r+="',r+='',r+='',r+="",r+=""}function Kt(t){var e="";return e+=" ",e+=' ',e+=' ',e+=' ',e+=" ",e+=" ",e+=""}function Jt(t){var o="undefined"!=typeof require&&"undefined"==typeof window?require("fs"):null,i="undefined"!=typeof require&&"undefined"==typeof window?require("https"):null,e=[];return t._relsMedia.filter(function(t){return"online"!==t.type&&!t.data&&(!t.path||t.path&&-1===t.path.indexOf("preencoded"))}).forEach(function(a){e.push(new Promise(function(r,n){if(o&&0!==a.path.indexOf("http"))try{var t=o.readFileSync(a.path);a.data=Buffer.from(t).toString("base64"),r("done")}catch(t){a.data=pt,n('ERROR: Unable to read media: "'+a.path+'"\n'+t.toString())}else if(o&&i&&0===a.path.indexOf("http"))i.get(a.path,function(t){var e="";t.setEncoding("binary"),t.on("data",function(t){return e+=t}),t.on("end",function(){a.data=Buffer.from(e,"binary").toString("base64"),r("done")}),t.on("error",function(t){a.data=pt,n("ERROR! Unable to load image (https.get): "+a.path)})});else{var e=new XMLHttpRequest;e.onload=function(){var t=new FileReader;t.onloadend=function(){a.data=t.result,a.isSvgPng?$t(a).then(function(){r("done")}).catch(function(t){n(t)}):r("done")},t.readAsDataURL(e.response)},e.onerror=function(t){a.data=pt,n("ERROR! Unable to load image (xhr.onerror): "+a.path)},e.open("GET",a.path),e.responseType="blob",e.send()}}))}),t._relsMedia.filter(function(t){return t.isSvgPng&&t.data}).forEach(function(t){o?(t.data=pt,e.push(Promise.resolve().then(function(){return"done"}))):e.push($t(t))}),e}function $t(a){return new Promise(function(r,e){var n=new Image;n.onload=function(){n.width+n.height===0&&n.onerror("h/w=0");var t=document.createElement("CANVAS"),e=t.getContext("2d");t.width=n.width,t.height=n.height,e.drawImage(n,0,0);try{a.data=t.toDataURL(a.type),r("done")}catch(t){n.onerror(t)}t=null},n.onerror=function(t){a.data=pt,e("ERROR! Unable to load image (image.onerror): "+a.path)},n.src="string"==typeof a.data?a.data:pt})}function te(){var a=this;this._version="3.9.0-beta-20210930-2159",this._alignH=Q,this._alignV=q,this._chartType=U,this._outputType=z,this._schemeColor=H,this._shapeType=W,this._charts=J,this._colors=tt,this._shapes=X,this.addNewSlide=function(t){var e=0')})}),n+='',n+='',n+='',n+='',t.forEach(function(t,e){n+='',n+='',t._relsChart.forEach(function(t){n+=' '})}),n+='',n+='',n+='',n+='',e.forEach(function(t,e){n+='',(t._relsChart||[]).forEach(function(t){n+=' '})}),t.forEach(function(t,e){n+=' '}),r._relsChart.forEach(function(t){n+=' '}),r._relsMedia.forEach(function(t){"image"!==t.type&&"online"!==t.type&&"chart"!==t.type&&"m4v"!==t.extn&&-1===n.indexOf(t.type)&&(n+=' ')}),n+=' ',n+=' ',n+=""}(a.slides,a.slideLayouts,a.masterSlide)),n.file("_rels/.rels",''+c+'\n\t\t\n\t\t\n\t\t\n\t\t'),n.file("docProps/app.xml",function(t,e){return''+c+'\n\t0\n\t0\n\tMicrosoft Office PowerPoint\n\tOn-screen Show (16:9)\n\t0\n\t'+t.length+"\n\t"+t.length+'\n\t0\n\t0\n\tfalse\n\t\n\t\t\n\t\t\tFonts Used\n\t\t\t2\n\t\t\tTheme\n\t\t\t1\n\t\t\tSlide Titles\n\t\t\t'+t.length+'\n\t\t\n\t\n\t\n\t\t\n\t\t\tArial\n\t\t\tCalibri\n\t\t\tOffice Theme\n\t\t\t'+t.map(function(t,e){return"Slide "+(e+1)+"\n"}).join("")+"\n\t\t\n\t\n\t"+e+"\n\tfalse\n\tfalse\n\tfalse\n\t16.0000\n\t"}(a.slides,a.company)),n.file("docProps/core.xml",function(t,e,r,n){return'\n\t\n\t\t'+gt(t)+"\n\t\t"+gt(e)+"\n\t\t"+gt(r)+"\n\t\t"+gt(r)+"\n\t\t"+n+'\n\t\t'+(new Date).toISOString().replace(/\.\d\d\dZ/,"Z")+'\n\t\t'+(new Date).toISOString().replace(/\.\d\d\dZ/,"Z")+"\n\t"}(a.title,a.subject,a.author,a.revision)),n.file("ppt/_rels/presentation.xml.rels",function(t){var e=1,r=''+c;r+='',r+='';for(var n=1;n<=t.length;n++)r+='';return r+=''}(a.slides)),n.file("ppt/theme/theme1.xml",''+c+''),n.file("ppt/presentation.xml",function(t){var e=''+c+'';e+='',e+="",t.slides.forEach(function(t){return e+=''}),e+="",e+='',e+='',e+='',e+="";for(var r=1;r<10;r++)e+="";return e+="",t.sections&&0',e+='',t.sections.forEach(function(t){e+='',t._slides.forEach(function(t){return e+=''}),e+=""}),e+="",e+='',e+=""),e+=""}(a)),n.file("ppt/presProps.xml",''+c+''),n.file("ppt/tableStyles.xml",''+c+''),n.file("ppt/viewProps.xml",''+c+''),a.slideLayouts.forEach(function(t,e){n.file("ppt/slideLayouts/slideLayout"+(e+1)+".xml",function(t){return'\n\t\t\n\t\t'+Lt(t)+"\n\t\t"}(t)),n.file("ppt/slideLayouts/_rels/slideLayout"+(e+1)+".xml.rels",function(t,e){return Et(e[t-1],[{target:"../slideMasters/slideMaster1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"}])}(e+1,a.slideLayouts))}),a.slides.forEach(function(t,e){n.file("ppt/slides/slide"+(e+1)+".xml",function(t){return''+c+'"+Lt(t)+""}(t)),n.file("ppt/slides/_rels/slide"+(e+1)+".xml.rels",function(t,e,r){return Et(t[r-1],[{target:"../slideLayouts/slideLayout"+function(t,e,r){for(var n=0;n\n\t\t\n\t\t\t\n\t\t\t\n\t\t'}(e+1))}),n.file("ppt/slideMasters/slideMaster1.xml",function(r,t){var e=t.map(function(t,e){return''}),n=''+c;return n+='',n+=Lt(r),n+='',n+=""+e.join("")+"",n+='',n+=' ',n+=""}(a.masterSlide,a.slideLayouts)),n.file("ppt/slideMasters/_rels/slideMaster1.xml.rels",function(t,e){var r=e.map(function(t,e){return{target:"../slideLayouts/slideLayout"+(e+1)+".xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"}});return r.push({target:"../theme/theme1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),Et(t,r)}(a.masterSlide,a.slideLayouts)),n.file("ppt/notesMasters/notesMaster1.xml",''+c+'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›'),n.file("ppt/notesMasters/_rels/notesMaster1.xml.rels",''+c+'\n\t\t\n\t\t'),a.slideLayouts.forEach(function(t){a.createChartMediaRels(t,n,e)}),a.slides.forEach(function(t){a.createChartMediaRels(t,n,e)}),a.createChartMediaRels(a.masterSlide,n,e),Promise.all(e).then(function(){return"STREAM"===t.outputType?n.generateAsync({type:"nodebuffer",compression:t.compression?"DEFLATE":"STORE"}):t.outputType?n.generateAsync({type:t.outputType}):n.generateAsync({type:"blob",compression:t.compression?"DEFLATE":"STORE"})})})},this.LAYOUTS={LAYOUT_4x3:{name:"screen4x3",width:9144e3,height:6858e3},LAYOUT_16x9:{name:"screen16x9",width:9144e3,height:5143500},LAYOUT_16x10:{name:"screen16x10",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:"custom",width:12192e3,height:6858e3}},this._author="PptxGenJS",this._company="PptxGenJS",this._revision="1",this._subject="PptxGenJS Presentation",this._title="PptxGenJS Presentation",this._presLayout={name:this.LAYOUTS[p].name,_sizeW:this.LAYOUTS[p].width,_sizeH:this.LAYOUTS[p].height,width:this.LAYOUTS[p].width,height:this.LAYOUTS[p].height},this._rtlMode=!1,this._slideLayouts=[{_margin:P,_name:n,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(te.prototype,"layout",{get:function(){return this._layout},set:function(t){var e=this.LAYOUTS[t];if(!e)throw new Error("UNKNOWN-LAYOUT");this._layout=t,this._presLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"author",{get:function(){return this._author},set:function(t){this._author=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"company",{get:function(){return this._company},set:function(t){this._company=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"revision",{get:function(){return this._revision},set:function(t){this._revision=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"subject",{get:function(){return this._subject},set:function(t){this._subject=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"title",{get:function(){return this._title},set:function(t){this._title=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"rtlMode",{get:function(){return this._rtlMode},set:function(t){this._rtlMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"masterSlide",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"slides",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"sections",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"slideLayouts",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"AlignH",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"AlignV",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"ChartType",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"OutputType",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"presLayout",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"SchemeColor",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"ShapeType",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"charts",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"colors",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"shapes",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),te.prototype.stream=function(t){var e=!("object"!=typeof t||!t.hasOwnProperty("compression"))&&t.compression;return this.exportPresentation({compression:e,outputType:"STREAM"})},te.prototype.write=function(t){var e="object"==typeof t&&t.hasOwnProperty("outputType")?t.outputType:t||null,r=!("object"!=typeof t||!t.hasOwnProperty("compression"))&&t.compression;return this.exportPresentation({compression:r,outputType:e})},te.prototype.writeFile=function(t){var e=this,n="undefined"!=typeof require&&"undefined"==typeof window?require("fs"):null;"string"==typeof t&&console.log("Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)");var r="object"==typeof t&&t.hasOwnProperty("fileName")?t.fileName:"string"==typeof t?t:"",a=!("object"!=typeof t||!t.hasOwnProperty("compression"))&&t.compression,o=r?r.toString().toLowerCase().endsWith(".pptx")?r:r+".pptx":"Presentation.pptx";return this.exportPresentation({compression:a,outputType:n?"nodebuffer":null}).then(function(t){return n?new Promise(function(e,r){n.writeFile(o,t,function(t){t?r(t):e(o)})}):e.writeFileToBrowser(o,t)})},te.prototype.addSection=function(t){t?t.title||console.warn("addSection requires a title"):console.warn("addSection requires an argument");var e={_type:"user",_slides:[],title:t.title};t.order?this.sections.splice(t.order,0,e):this._sections.push(e)},te.prototype.addSlide=function(e){var r="string"==typeof e?e:e&&e.masterName?e.masterName:"",t={_name:this.LAYOUTS[p].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(r){var n=this.slideLayouts.filter(function(t){return t._name===r})[0];n&&(t=n)}var a=new Wt({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:t});if(this._slides.push(a),e&&e.sectionTitle){var o=this.sections.filter(function(t){return t.title===e.sectionTitle})[0];o?o._slides.push(a):console.warn('addSlide: unable to find section with title: "'+e.sectionTitle+'"')}else if(this.sections&&0 opts.y = "+a.y),r.addTable(t.rows,{x:a.x||p[3],y:a.y,w:Number(s)/B,colW:c,autoPage:!1}),a.addImage&&r.addImage({path:a.addImage.url,x:a.addImage.x,y:a.addImage.y,w:a.addImage.w,h:a.addImage.h}),a.addShape&&r.addShape(a.addShape.shape,a.addShape.options||{}),a.addTable&&r.addTable(a.addTable.rows,a.addTable.options||{}),a.addText&&r.addText(a.addText.text,a.addText.options||{})})}(this,t,e,e&&e.masterSlideName?this.slideLayouts.filter(function(t){return t._name===e.masterSlideName})[0]:null)},te}(); +/* PptxGenJS 3.9.0-beta @ 2021-10-14T12:21:16.803Z */ +!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JSZip=t()}(function(){return function o(i,s,l){function c(e,t){if(!s[e]){if(!i[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(u)return u(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var a=s[e]={exports:{}};i[e][0].call(a.exports,function(t){return c(i[e][1][t]||t)},a,a.exports,o,i,s,l)}return s[e].exports}for(var u="function"==typeof require&&require,t=0;t>2,o=(3&e)<<4|r>>4,i=1>6:64,s=2>4,r=(15&a)<<4|(o=h.indexOf(t.charAt(s++)))>>2,n=(3&o)<<6|(i=h.indexOf(t.charAt(s++))),c[l++]=e,64!==o&&(c[l++]=r),64!==i&&(c[l++]=n);return c}},{"./support":30,"./utils":32}],2:[function(t,e,r){"use strict";var n=t("./external"),a=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),i=t("./stream/DataLengthProbe");function s(t,e,r,n,a){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=a}s.prototype={getContentWorker:function(){var t=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),e=this;return t.on("end",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),t},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,r){return t.pipe(new o).pipe(new i("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new i("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,r){"use strict";var n=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(t){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,r){"use strict";var n=t("./utils"),i=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==n.getTypeOf(t)?function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e[o])];return-1^t}(0|e,t,t.length):function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e.charCodeAt(o))];return-1^t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){"use strict";var n;n="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:n}},{lie:37}],7:[function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,a=t("pako"),o=t("./utils"),i=t("./stream/GenericWorker"),s=n?"uint8array":"array";function l(t,e){i.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic="\b\0",o.inherits(l,i),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){i.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(t){return new l("Deflate",t)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,r){"use strict";function T(t,e){var r,n="";for(r=0;r>>=8;return n}function a(t,e,r,n,a,o){var i,s,l=t.file,c=t.compression,u=o!==R.utf8encode,p=k.transformTo("string",o(l.name)),f=k.transformTo("string",R.utf8encode(l.name)),d=l.comment,h=k.transformTo("string",o(d)),m=k.transformTo("string",R.utf8encode(d)),g=f.length!==l.name.length,v=m.length!==d.length,A="",y="",b="",x=l.dir,w=l.date,_={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(_.crc32=t.crc32,_.compressedSize=t.compressedSize,_.uncompressedSize=t.uncompressedSize);var C=0;e&&(C|=8),u||!g&&!v||(C|=2048);var P,S=0,L=0;x&&(S|=16),"UNIX"===a?(L=798,S|=((P=l.unixPermissions)||(P=x?16893:33204),(65535&P)<<16)):(L=20,S|=63&(l.dosPermissions||0)),i=w.getUTCHours(),i<<=6,i|=w.getUTCMinutes(),i<<=5,i|=w.getUTCSeconds()/2,s=w.getUTCFullYear()-1980,s<<=4,s|=w.getUTCMonth()+1,s<<=5,s|=w.getUTCDate(),g&&(A+="up"+T((y=T(1,1)+T(F(p),4)+f).length,2)+y),v&&(A+="uc"+T((b=T(1,1)+T(F(h),4)+m).length,2)+b);var E="";return E+="\n\0",E+=T(C,2),E+=c.magic,E+=T(i,2),E+=T(s,2),E+=T(_.crc32,4),E+=T(_.compressedSize,4),E+=T(_.uncompressedSize,4),E+=T(p.length,2),E+=T(A.length,2),{fileRecord:I.LOCAL_FILE_HEADER+E+p+A,dirRecord:I.CENTRAL_FILE_HEADER+T(L,2)+E+T(h.length,2)+"\0\0\0\0"+T(S,4)+T(n,4)+p+A+h}}var k=t("../utils"),o=t("../stream/GenericWorker"),R=t("../utf8"),F=t("../crc32"),I=t("../signature");function n(t,e,r,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}k.inherits(n,o),n.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},n.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=a(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(t){this.accumulate=!1;var e,r=this.streamFiles&&!t.file.dir,n=a(t,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),r)this.push({data:(e=t,I.DATA_DESCRIPTOR+T(e.crc32,4)+T(e.compressedSize,4)+T(e.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return n.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=a},{"../utils":32}],19:[function(t,e,r){"use strict";var n=t("./Uint8ArrayReader");function a(t){n.call(this,t)}t("../utils").inherits(a,n),a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,r){"use strict";var n=t("./DataReader");function a(t){n.call(this,t)}t("../utils").inherits(a,n),a.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},a.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},a.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{"../utils":32,"./DataReader":18}],21:[function(t,e,r){"use strict";var n=t("./ArrayReader");function a(t){n.call(this,t)}t("../utils").inherits(a,n),a.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,r){"use strict";var n=t("../utils"),a=t("../support"),o=t("./ArrayReader"),i=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),"string"!==e||a.uint8array?"nodebuffer"===e?new s(t):a.uint8array?new l(n.transformTo("uint8array",t)):new o(n.transformTo("array",t)):new i(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,r){"use strict";var n=t("./GenericWorker"),a=t("../utils");function o(t){n.call(this,"ConvertWorker to "+t),this.destType=t}a.inherits(o,n),o.prototype.processChunk=function(t){this.push({data:a.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,r){"use strict";var n=t("./GenericWorker"),a=t("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,n),o.prototype.processChunk=function(t){this.streamInfo.crc32=a(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,r){"use strict";var n=t("../utils"),a=t("./GenericWorker");function o(t){a.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(o,a),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}a.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,r){"use strict";var n=t("../utils"),a=t("./GenericWorker");function o(t){a.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}n.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,r){"use strict";function n(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r "+t:t}},e.exports=n},{}],29:[function(t,e,r){"use strict";var c=t("../utils"),a=t("./ConvertWorker"),o=t("./GenericWorker"),u=t("../base64"),n=t("../support"),i=t("../external"),s=null;if(n.nodestream)try{s=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function l(t,e,r){var n=e;switch(e){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=e,this._mimeType=r,c.checkSupport(n),this._worker=t.pipe(new a(n)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}l.prototype={accumulate:function(t){return s=this,l=t,new i.Promise(function(e,r){var n=[],a=s._internalType,o=s._outputType,i=s._mimeType;s.on("data",function(t,e){n.push(t),l&&l(e)}).on("error",function(t){n=[],r(t)}).on("end",function(){try{var t=function(t,e,r){switch(t){case"blob":return c.newBlob(c.transformTo("arraybuffer",e),r);case"base64":return u.encode(e);default:return c.transformTo(t,e)}}(o,function(t,e){var r,n=0,a=null,o=0;for(r=0;r>>6:(r<65536?e[o++]=224|r>>>12:(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63),e[o++]=128|r>>>6&63),e[o++]=128|63&r);return e}(t)},o.utf8decode=function(t){return l.nodebuffer?s.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,r,n,a,o=t.length,i=new Array(2*o);for(e=r=0;e>10&1023,i[r++]=56320|1023&n)}return i.length!==r&&(i.subarray?i=i.subarray(0,r):i.length=r),s.applyFromCharCode(i)}(t=s.transformTo(l.uint8array?"uint8array":"array",t))},s.inherits(i,n),i.prototype.processChunk=function(t){var e=s.transformTo(l.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var r=e;(e=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),e.set(r,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var n=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+c[t[r]]>e?r:e}(e),a=e;n!==e.length&&(l.uint8array?(a=e.subarray(0,n),this.leftOver=e.subarray(n,e.length)):(a=e.slice(0,n),this.leftOver=e.slice(n,e.length))),this.push({data:o.utf8decode(a),meta:t.meta})},i.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=i,s.inherits(u,n),u.prototype.processChunk=function(t){this.push({data:o.utf8encode(t.data),meta:t.meta})},o.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,s){"use strict";var l=t("./support"),c=t("./base64"),r=t("./nodejsUtils"),n=t("set-immediate-shim"),u=t("./external");function a(t){return t}function p(t,e){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(t){var e,r,n,a=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4>>6:(r<65536?e[o++]=224|r>>>12:(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63),e[o++]=128|r>>>6&63),e[o++]=128|63&r);return e},r.buf2binstring=function(t){return u(t,t.length)},r.binstring2buf=function(t){for(var e=new l.Buf8(t.length),r=0,n=e.length;r>10&1023,s[n++]=56320|1023&a)}return u(s,n)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+c[t[r]]>e?r:e}},{"./common":41}],43:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){for(var a=65535&t|0,o=t>>>16&65535|0,i=0;0!==r;){for(r-=i=2e3>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,n){var a=s,o=n+r;t^=-1;for(var i=n;i>>8^a[255&(t^e[i])];return-1^t}},{}],46:[function(t,e,r){"use strict";var l,f=t("../utils/common"),c=t("./trees"),d=t("./adler32"),h=t("./crc32"),n=t("./messages"),u=0,p=0,m=-2,a=2,g=8,o=286,i=30,s=19,v=2*o+1,A=15,y=3,b=258,x=b+y+1,w=42,_=113;function C(t,e){return t.msg=n[e],e}function P(t){return(t<<1)-(4t.avail_out&&(r=t.avail_out),0!==r&&(f.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function E(t,e){c._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,L(t.strm)}function T(t,e){t.pending_buf[t.pending++]=e}function k(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function R(t,e){var r,n,a=t.max_chain_length,o=t.strstart,i=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-x?t.strstart-(t.w_size-x):0,c=t.window,u=t.w_mask,p=t.prev,f=t.strstart+b,d=c[o+i-1],h=c[o+i];t.prev_length>=t.good_match&&(a>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+i]===h&&c[r+i-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&ol&&0!=--a);return i<=t.lookahead?i:t.lookahead}function F(t){var e,r,n,a,o,i,s,l,c,u,p=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-x)){for(f.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;n=t.head[--e],t.head[e]=p<=n?n-p:0,--r;);for(e=r=p;n=t.prev[--e],t.prev[e]=p<=n?n-p:0,--r;);a+=p}if(0===t.strm.avail_in)break;if(i=t.strm,s=t.window,l=t.strstart+t.lookahead,u=void 0,(c=a)<(u=i.avail_in)&&(u=c),r=0===u?0:(i.avail_in-=u,f.arraySet(s,i.input,i.next_in,u,l),1===i.state.wrap?i.adler=d(i.adler,s,u,l):2===i.state.wrap&&(i.adler=h(i.adler,s,u,l)),i.next_in+=u,i.total_in+=u,u),t.lookahead+=r,t.lookahead+t.insert>=y)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<=y&&(t.ins_h=(t.ins_h<=y)if(n=c._tr_tally(t,t.strstart-t.match_start,t.match_length-y),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=y){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=y&&(t.ins_h=(t.ins_h<=y&&t.match_length<=t.prev_length){for(a=t.strstart+t.lookahead-y,n=c._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-y),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=a&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(F(t),0===t.lookahead&&e===u)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,E(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-x&&(E(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(E(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(E(t,!1),t.strm.avail_out),1)}),new B(4,4,8,4,I),new B(4,5,16,8,I),new B(4,6,32,32,I),new B(4,4,16,16,O),new B(8,16,32,32,O),new B(8,16,128,128,O),new B(8,32,128,256,O),new B(32,128,258,1024,O),new B(32,258,258,4096,O)],r.deflateInit=function(t,e){return z(t,e,g,15,8,0)},r.deflateInit2=z,r.deflateReset=M,r.deflateResetKeep=D,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,p):m},r.deflate=function(t,e){var r,n,a,o;if(!t||!t.state||5>8&255),T(n,n.gzhead.time>>16&255),T(n,n.gzhead.time>>24&255),T(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),T(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(T(n,255&n.gzhead.extra.length),T(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=h(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(T(n,0),T(n,0),T(n,0),T(n,0),T(n,0),T(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),T(n,3),n.status=_);else{var i=g+(n.w_bits-8<<4)<<8;i|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(i|=32),i+=31-i%31,n.status=_,k(n,i),0!==n.strstart&&(k(n,t.adler>>>16),k(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),L(t),a=n.pending,n.pending!==n.pending_buf_size));)T(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),L(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexa&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),L(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexa&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&L(t),n.pending+2<=n.pending_buf_size&&(T(n,255&t.adler),T(n,t.adler>>8&255),t.adler=0,n.status=_)):n.status=_),0!==n.pending){if(L(t),0===t.avail_out)return n.last_flush=-1,p}else if(0===t.avail_in&&P(e)<=P(r)&&4!==e)return C(t,-5);if(666===n.status&&0!==t.avail_in)return C(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==u&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(F(t),0===t.lookahead)){if(e===u)return 1;break}if(t.match_length=0,r=c._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(E(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(E(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(E(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,a,o,i=t.window;;){if(t.lookahead<=b){if(F(t),t.lookahead<=b&&e===u)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=y&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=y?(r=c._tr_tally(t,1,t.match_length-y),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=c._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(E(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(E(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(E(t,!1),0===t.strm.avail_out)?1:2}(n,e):l[n.level].func(n,e);if(3!==s&&4!==s||(n.status=666),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),p;if(2===s&&(1===e?c._tr_align(n):5!==e&&(c._tr_stored_block(n,0,0,!1),3===e&&(S(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),L(t),0===t.avail_out))return n.last_flush=-1,p}return 4!==e?p:n.wrap<=0?1:(2===n.wrap?(T(n,255&t.adler),T(n,t.adler>>8&255),T(n,t.adler>>16&255),T(n,t.adler>>24&255),T(n,255&t.total_in),T(n,t.total_in>>8&255),T(n,t.total_in>>16&255),T(n,t.total_in>>24&255)):(k(n,t.adler>>>16),k(n,65535&t.adler)),L(t),0=r.w_size&&(0===o&&(S(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new f.Buf8(r.w_size),f.arraySet(c,e,u-r.w_size,r.w_size,0),e=c,u=r.w_size),i=t.avail_in,s=t.next_in,l=t.input,t.avail_in=u,t.next_in=0,t.input=e,F(r);r.lookahead>=y;){for(n=r.strstart,a=r.lookahead-(y-1);r.ins_h=(r.ins_h<>>=b=y>>>24,h-=b,0==(b=y>>>16&255))S[o++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=m[(65535&y)+(d&(1<>>=b,h-=b),h<15&&(d+=P[n++]<>>=b=y>>>24,h-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=g[(65535&y)+(d&(1<>>=b,h-=b,(b=o-i)>3,d&=(1<<(h-=x<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function o(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new T.Buf16(320),this.work=new T.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function i(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=M,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new T.Buf32(n),e.distcode=e.distdyn=new T.Buf32(a),e.sane=1,e.back=-1,N):D}function s(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,i(t)):D}function l(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=o.wsize?(T.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(n<(a=o.wsize-o.wnext)&&(a=n),T.arraySet(o.window,e,r-n,a,o.wnext),(n-=a)?(T.arraySet(o.window,e,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,r.check=R(r.check,L,2,0),u=c=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&c)){t.msg="unknown compression method",r.mode=30;break}if(u-=4,w=8+(15&(c>>>=4)),0===r.wbits)r.wbits=w;else if(w>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=R(r.check,L,2,0)),u=c=0,r.mode=3;case 3:for(;u<32;){if(0===s)break t;s--,c+=n[o++]<>>8&255,L[2]=c>>>16&255,L[3]=c>>>24&255,r.check=R(r.check,L,4,0)),u=c=0,r.mode=4;case 4:for(;u<16;){if(0===s)break t;s--,c+=n[o++]<>8),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=R(r.check,L,2,0)),u=c=0,r.mode=5;case 5:if(1024&r.flags){for(;u<16;){if(0===s)break t;s--,c+=n[o++]<>>8&255,r.check=R(r.check,L,2,0)),u=c=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(s<(d=r.length)&&(d=s),d&&(r.head&&(w=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),T.arraySet(r.head.extra,n,o,d,w)),512&r.flags&&(r.check=R(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;for(d=0;w=n[o+d++],r.head&&w&&r.length<65536&&(r.head.name+=String.fromCharCode(w)),w&&d>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;u<32;){if(0===s)break t;s--,c+=n[o++]<>>=7&u,u-=7&u,r.mode=27;break}for(;u<3;){if(0===s)break t;s--,c+=n[o++]<>>=1)){case 0:r.mode=14;break;case 1:if(U(r),r.mode=20,6!==e)break;c>>>=2,u-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}c>>>=2,u-=2;break;case 14:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break t;s--,c+=n[o++]<>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&c,u=c=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(s>>=5,u-=5,r.ndist=1+(31&c),c>>>=5,u-=5,r.ncode=4+(15&c),c>>>=4,u-=4,286>>=3,u-=3}for(;r.have<19;)r.lens[E[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},_=I(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,A=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>>=g,u-=g,r.lens[r.have++]=A;else{if(16===A){for(P=g+2;u>>=g,u-=g,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}w=r.lens[r.have-1],d=3+(3&c),c>>>=2,u-=2}else if(17===A){for(P=g+3;u>>=g)),c>>>=3,u-=3}else{for(P=g+7;u>>=g)),c>>>=7,u-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=w}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,C={bits:r.lenbits},_=I(O,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},_=I(B,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,_){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=s&&258<=l){t.next_out=i,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=u,F(t,f),i=t.next_out,a=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,u=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;v=(S=r.lencode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>y)])>>>16&255,A=65535&S,!(y+(g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>>=y,u-=y,r.back+=y}if(c>>>=g,u-=g,r.back+=g,r.length=A,0===v){r.mode=26;break}if(32&v){r.back=-1,r.mode=12;break}if(64&v){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&v,r.mode=22;case 22:if(r.extra){for(P=r.extra;u>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;v=(S=r.distcode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>y)])>>>16&255,A=65535&S,!(y+(g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>>=y,u-=y,r.back+=y}if(c>>>=g,u-=g,r.back+=g,64&v){t.msg="invalid distance code",r.mode=30;break}r.offset=A,r.extra=15&v,r.mode=24;case 24:if(r.extra){for(P=r.extra;u>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===l)break t;if(d=f-l,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}h=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=a,h=i-r.offset,d=r.length;for(ld?(m=F[I+i[y]],E[T+i[y]]):(m=96,0),l=1<>C)+(c-=l)]=h<<24|m<<16|g|0,0!==c;);for(l=1<>=1;if(0!==l?(L&=l-1,L+=l):L=0,y++,0==--k[A]){if(A===x)break;A=e[r+i[y]]}if(w>>7)]}function _(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function C(t,e,r){t.bi_valid>a-r?(t.bi_buf|=e<>a-t.bi_valid,t.bi_valid+=r-a):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function L(t,e,r){var n,a,o=new Array(g+1),i=0;for(n=1;n<=g;n++)o[n]=i=i+r[n-1]<<1;for(a=0;a<=e;a++){var s=t[2*a+1];0!==s&&(t[2*a]=S(o[s]++,s))}}function E(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function T(t){8>1;1<=r;r--)R(t,o,r);for(a=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*a]=o[2*r]+o[2*n],t.depth[a]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=a,t.heap[1]=a++,R(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,a,o,i,s,l=e.dyn_tree,c=e.max_code,u=e.stat_desc.static_tree,p=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,h=e.stat_desc.max_length,m=0;for(o=0;o<=g;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)h<(o=l[2*l[2*(n=t.heap[r])+1]+1]+1)&&(o=h,m++),l[2*n+1]=o,c>=7;n<30;n++)for(b[n]=a<<7,t=0;t<1<>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),i=function(t){var e;for(O(t,t.dyn_ltree,t.l_desc.max_code),O(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=a&&(a=o)):a=o=r+5,r+4<=a&&-1!==e?D(t,e,r,n):4===t.strategy||o===a?(C(t,2+(n?1:0),3),F(t,p,f)):(C(t,4+(n?1:0),3),function(t,e,r,n){var a;for(C(t,e-257,5),C(t,r-1,5),C(t,n-4,4),a=0;a>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(h[r]+256+1)]++,t.dyn_dtree[2*w(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){var e;C(t,2,3),P(t,256,p),16===(e=t).bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":41}],53:[function(t,e,r){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){"use strict";e.exports="function"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)})}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}),function o(i,s,l){function c(e,t){if(!s[e]){if(!i[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(u)return u(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var a=s[e]={exports:{}};i[e][0].call(a.exports,function(t){return c(i[e][1][t]||t)},a,a.exports,o,i,s,l)}return s[e].exports}for(var u="function"==typeof require&&require,t=0;ti;)o.call(t,n=a[i++])&&e.push(n);return e}},{104:104,107:107,108:108}],62:[function(t,e,r){var m=t(70),g=t(52),v=t(72),A=t(118),y=t(54),b="prototype",x=function(t,e,r){var n,a,o,i,s=t&x.F,l=t&x.G,c=t&x.S,u=t&x.P,p=t&x.B,f=l?m:c?m[e]||(m[e]={}):(m[e]||{})[b],d=l?g:g[e]||(g[e]={}),h=d[b]||(d[b]={});for(n in l&&(r=e),r)o=((a=!s&&f&&void 0!==f[n])?f:r)[n],i=p&&a?y(o,m):u&&"function"==typeof o?y(Function.call,o):o,f&&A(f,n,o,t&x.U),d[n]!=o&&v(d,n,i),u&&h[n]!=o&&(h[n]=o)};m.core=g,x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128,e.exports=x},{118:118,52:52,54:54,70:70,72:72}],63:[function(t,e,r){var n=t(152)("match");e.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[n]=!1,!"/./"[e](r)}catch(t){}}return!0}},{152:152}],64:[function(t,e,r){arguments[4][23][0].apply(r,arguments)},{23:23}],65:[function(t,e,r){"use strict";t(248);var u=t(118),p=t(72),f=t(64),d=t(57),h=t(152),m=t(120),g=h("species"),v=!f(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}),A=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(r,t,e){var n=h(r),o=!f(function(){var t={};return t[n]=function(){return 7},7!=""[r](t)}),a=o?!f(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},"split"===r&&(e.constructor={},e.constructor[g]=function(){return e}),e[n](""),!t}):void 0;if(!o||!a||"replace"===r&&!v||"split"===r&&!A){var i=/./[n],s=e(d,n,""[r],function(t,e,r,n,a){return e.exec===m?o&&!a?{done:!0,value:i.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),l=s[0],c=s[1];u(String.prototype,r,l),p(RegExp.prototype,n,2==t?function(t,e){return c.call(t,this,e)}:function(t){return c.call(t,this)})}}},{118:118,120:120,152:152,248:248,57:57,64:64,72:72}],66:[function(t,e,r){"use strict";var n=t(38);e.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},{38:38}],67:[function(t,e,r){"use strict";var h=t(79),m=t(81),g=t(141),v=t(54),A=t(152)("isConcatSpreadable");e.exports=function t(e,r,n,a,o,i,s,l){for(var c,u,p=o,f=0,d=!!s&&v(s,l,3);fdocument.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u[c][s[r]];return u()};t.exports=Object.create||function(t,e){var r;return null!==t?(a[c]=o(t),r=new a,a[c]=null,r[l]=t):r=u(),void 0===e?r:i(r,e)}},{100:100,125:125,38:38,59:59,60:60,73:73}],99:[function(t,e,r){arguments[4][29][0].apply(r,arguments)},{143:143,29:29,38:38,58:58,74:74}],100:[function(t,e,r){var i=t(99),s=t(38),l=t(107);e.exports=t(58)?Object.defineProperties:function(t,e){s(t);for(var r,n=l(e),a=n.length,o=0;oa;)i(n,r=e[a++])&&(~l(o,r)||o.push(r));return o}},{125:125,140:140,41:41,71:71}],107:[function(t,e,r){var n=t(106),a=t(60);e.exports=Object.keys||function(t){return n(t,a)}},{106:106,60:60}],108:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],109:[function(t,e,r){var a=t(62),o=t(52),i=t(64);e.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],n={};n[t]=e(r),a(a.S+a.F*i(function(){r(1)}),"Object",n)}},{52:52,62:62,64:64}],110:[function(t,e,r){var l=t(58),c=t(107),u=t(140),p=t(108).f;e.exports=function(s){return function(t){for(var e,r=u(t),n=c(r),a=n.length,o=0,i=[];o>>0||(i.test(r)?16:10))}:n},{134:134,135:135,70:70}],114:[function(t,e,r){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],115:[function(t,e,r){var n=t(38),a=t(81),o=t(96);e.exports=function(t,e){if(n(t),a(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},{38:38,81:81,96:96}],116:[function(t,e,r){arguments[4][30][0].apply(r,arguments)},{30:30}],117:[function(t,e,r){var a=t(118);e.exports=function(t,e,r){for(var n in e)a(t,n,e[n],r);return t}},{118:118}],118:[function(t,e,r){var o=t(70),i=t(72),s=t(71),l=t(147)("src"),n=t(69),a="toString",c=(""+n).split(a);t(52).inspectSource=function(t){return n.call(t)},(e.exports=function(t,e,r,n){var a="function"==typeof r;a&&(s(r,"name")||i(r,"name",e)),t[e]!==r&&(a&&(s(r,l)||i(r,l,t[e]?""+t[e]:c.join(String(e)))),t===o?t[e]=r:n?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,a,function(){return"function"==typeof this&&this[l]||n.call(this)})},{147:147,52:52,69:69,70:70,71:71,72:72}],119:[function(t,e,r){"use strict";var a=t(47),o=RegExp.prototype.exec;e.exports=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==a(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},{47:47}],120:[function(t,e,r){"use strict";var n,a,i=t(66),s=RegExp.prototype.exec,l=String.prototype.replace,o=s,c="lastIndex",u=(n=/a/,a=/b*/g,s.call(n,"a"),s.call(a,"a"),0!==n[c]||0!==a[c]),p=void 0!==/()??/.exec("")[1];(u||p)&&(o=function(t){var e,r,n,a,o=this;return p&&(r=new RegExp("^"+o.source+"$(?!\\s)",i.call(o))),u&&(e=o[c]),n=s.call(o,t),u&&n&&(o[c]=o.global?n.index+n[0].length:e),p&&n&&1"+a+""}var a=t(62),o=t(64),i=t(57),s=/"/g;e.exports=function(e,t){var r={};r[e]=t(n),a(a.P+a.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||3l&&(c=c.slice(0,l)),n?c+a:a+c}},{133:133,141:141,57:57}],133:[function(t,e,r){"use strict";var a=t(139),o=t(57);e.exports=function(t){var e=String(o(this)),r="",n=a(t);if(n<0||n==1/0)throw RangeError("Count can't be negative");for(;0>>=1)&&(e+=e))1&n&&(r+=e);return r}},{139:139,57:57}],134:[function(t,e,r){function n(t,e,r){var n={},a=s(function(){return!!l[t]()||"​…"!="​…"[t]()}),o=n[t]=a?e(p):l[t];r&&(n[r]=o),i(i.P+i.F*a,"String",n)}var i=t(62),a=t(57),s=t(64),l=t(135),o="["+l+"]",c=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),p=n.trim=function(t,e){return t=String(a(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(u,"")),t};e.exports=n},{135:135,57:57,62:62,64:64}],135:[function(t,e,r){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],136:[function(t,e,r){function n(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}}function a(t){n.call(t.data)}var o,i,s,l=t(54),c=t(76),u=t(73),p=t(59),f=t(70),d=f.process,h=f.setImmediate,m=f.clearImmediate,g=f.MessageChannel,v=f.Dispatch,A=0,y={},b="onreadystatechange";h&&m||(h=function(t){for(var e=[],r=1;r>1,u=23===e?T(2,-24)-T(2,-77):0,p=0,f=t<0||0===t&&1/t<0?1:0;for((t=E(t))!=t||t===S?(a=t!=t?1:0,n=l):(n=k(R(t)/F),t*(o=T(2,-n))<1&&(n--,o*=2),2<=(t+=1<=n+c?u/o:u*T(2,1-c))*o&&(n++,o/=2),l<=n+c?(a=0,n=l):1<=n+c?(a=(t*o-1)*T(2,e),n+=c):(a=t*T(2,c-1)*T(2,e),n=0));8<=e;i[p++]=255&a,a/=256,e-=8);for(n=n<>1,s=a-7,l=r-1,c=t[l--],u=127&c;for(c>>=7;0>=-s,s+=e;0>8&255]}function G(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function H(t){return M(t,52,8)}function V(t){return M(t,23,4)}function Q(t,e,r){m(t[b],e,{get:function(){return this[r]}})}function Y(t,e,r,n){var a=d(+r);if(a+e>t[N])throw P(x);var o=t[B]._b,i=a+t[D],s=o.slice(i,i+e);return n?s:s.reverse()}function q(t,e,r,n,a,o){var i=d(+r);if(i+e>t[N])throw P(x);for(var s=t[B]._b,l=i+t[D],c=n(+a),u=0;uJ;)(Z=K[J++])in w||s(w,Z,L[Z]);o||(X.constructor=w)}var $=new _(new w(2)),tt=_[b].setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||l(_[b],{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else w=function(t){u(this,w,A);var e=d(t);this._b=g.call(new Array(e),0),this[N]=e},_=function(t,e,r){u(this,_,y),u(t,w,y);var n=t[N],a=p(e);if(a<0||n>24},getUint8:function(t){return Y(this,1,t)[0]},getInt16:function(t,e){var r=Y(this,2,t,e);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t,e){var r=Y(this,2,t,e);return r[1]<<8|r[0]},getInt32:function(t,e){return U(Y(this,4,t,e))},getUint32:function(t,e){return U(Y(this,4,t,e))>>>0},getFloat32:function(t,e){return z(Y(this,4,t,e),23,4)},getFloat64:function(t,e){return z(Y(this,8,t,e),52,8)},setInt8:function(t,e){q(this,1,t,j,e)},setUint8:function(t,e){q(this,1,t,j,e)},setInt16:function(t,e,r){q(this,2,t,W,e,r)},setUint16:function(t,e,r){q(this,2,t,W,e,r)},setInt32:function(t,e,r){q(this,4,t,G,e,r)},setUint32:function(t,e,r){q(this,4,t,G,e,r)},setFloat32:function(t,e,r){q(this,4,t,V,e,r)},setFloat64:function(t,e,r){q(this,8,t,H,e,r)}});v(w,A),v(_,y),s(_[b],i.VIEW,!0),r[A]=w,r[y]=_},{103:103,117:117,124:124,138:138,139:139,141:141,146:146,37:37,40:40,58:58,64:64,70:70,72:72,89:89,99:99}],146:[function(t,e,r){for(var n,a=t(70),o=t(72),i=t(147),s=i("typed_array"),l=i("view"),c=!(!a.ArrayBuffer||!a.DataView),u=c,p=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");p<9;)(n=a[f[p++]])?(o(n.prototype,s,!0),o(n.prototype,l,!0)):u=!1;e.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},{147:147,70:70,72:72}],147:[function(t,e,r){var n=0,a=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+a).toString(36))}},{}],148:[function(t,e,r){var n=t(70).navigator;e.exports=n&&n.userAgent||""},{70:70}],149:[function(t,e,r){var n=t(81);e.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},{81:81}],150:[function(t,e,r){var n=t(70),a=t(52),o=t(89),i=t(151),s=t(99).f;e.exports=function(t){var e=a.Symbol||(a.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},{151:151,52:52,70:70,89:89,99:99}],151:[function(t,e,r){r.f=t(152)},{152:152}],152:[function(t,e,r){var n=t(126)("wks"),a=t(147),o=t(70).Symbol,i="function"==typeof o;(e.exports=function(t){return n[t]||(n[t]=i&&o[t]||(i?o:a)("Symbol."+t))}).store=n},{126:126,147:147,70:70}],153:[function(t,e,r){var n=t(47),a=t(152)("iterator"),o=t(88);e.exports=t(52).getIteratorMethod=function(t){if(null!=t)return t[a]||t["@@iterator"]||o[n(t)]}},{152:152,47:47,52:52,88:88}],154:[function(t,e,r){var n=t(62);n(n.P,"Array",{copyWithin:t(39)}),t(35)("copyWithin")},{35:35,39:39,62:62}],155:[function(t,e,r){"use strict";var n=t(62),a=t(42)(4);n(n.P+n.F*!t(128)([].every,!0),"Array",{every:function(t,e){return a(this,t,e)}})},{128:128,42:42,62:62}],156:[function(t,e,r){var n=t(62);n(n.P,"Array",{fill:t(40)}),t(35)("fill")},{35:35,40:40,62:62}],157:[function(t,e,r){"use strict";var n=t(62),a=t(42)(2);n(n.P+n.F*!t(128)([].filter,!0),"Array",{filter:function(t,e){return a(this,t,e)}})},{128:128,42:42,62:62}],158:[function(t,e,r){"use strict";var n=t(62),a=t(42)(6),o="findIndex",i=!0;o in[]&&Array(1)[o](function(){i=!1}),n(n.P+n.F*i,"Array",{findIndex:function(t,e){return a(this,t,1=t.length?(this._t=void 0,a(1)):a(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},{140:140,35:35,85:85,87:87,88:88}],165:[function(t,e,r){"use strict";var n=t(62),a=t(140),o=[].join;n(n.P+n.F*(t(77)!=Object||!t(128)(o)),"Array",{join:function(t){return o.call(a(this),void 0===t?",":t)}})},{128:128,140:140,62:62,77:77}],166:[function(t,e,r){"use strict";var n=t(62),o=t(140),i=t(139),s=t(141),l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(c||!t(128)(l)),"Array",{lastIndexOf:function(t,e){if(c)return l.apply(this,arguments)||0;var r=o(this),n=s(r.length),a=n-1;for(1>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{62:62}],189:[function(t,e,r){var n=t(62),a=Math.exp;n(n.S,"Math",{cosh:function(t){return(a(t=+t)+a(-t))/2}})},{62:62}],190:[function(t,e,r){var n=t(62),a=t(90);n(n.S+n.F*(a!=Math.expm1),"Math",{expm1:a})},{62:62,90:90}],191:[function(t,e,r){var n=t(62);n(n.S,"Math",{fround:t(91)})},{62:62,91:91}],192:[function(t,e,r){var n=t(62),l=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var r,n,a=0,o=0,i=arguments.length,s=0;o>>16)*o+a*(65535&n>>>16)<<16>>>0)}})},{62:62,64:64}],194:[function(t,e,r){var n=t(62);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},{62:62}],195:[function(t,e,r){var n=t(62);n(n.S,"Math",{log1p:t(92)})},{62:62,92:92}],196:[function(t,e,r){var n=t(62);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},{62:62}],197:[function(t,e,r){var n=t(62);n(n.S,"Math",{sign:t(93)})},{62:62,93:93}],198:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S+n.F*t(64)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(a(t)-a(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},{62:62,64:64,90:90}],199:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S,"Math",{tanh:function(t){var e=a(t=+t),r=a(-t);return e==1/0?1:r==1/0?-1:(e-r)/(o(t)+o(-t))}})},{62:62,90:90}],200:[function(t,e,r){var n=t(62);n(n.S,"Math",{trunc:function(t){return(0w;w++)o(g,b=x[w])&&!o(m,b)&&f(m,b,p(g,b));(m.prototype=v).constructor=m,t(118)(a,h,m)}},{101:101,103:103,118:118,134:134,143:143,48:48,58:58,64:64,70:70,71:71,75:75,98:98,99:99}],202:[function(t,e,r){var n=t(62);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},{62:62}],203:[function(t,e,r){var n=t(62),a=t(70).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&a(t)}})},{62:62,70:70}],204:[function(t,e,r){var n=t(62);n(n.S,"Number",{isInteger:t(80)})},{62:62,80:80}],205:[function(t,e,r){var n=t(62);n(n.S,"Number",{isNaN:function(t){return t!=t}})},{62:62}],206:[function(t,e,r){var n=t(62),a=t(80),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return a(t)&&o(t)<=9007199254740991}})},{62:62,80:80}],207:[function(t,e,r){var n=t(62);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{62:62}],208:[function(t,e,r){var n=t(62);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{62:62}],209:[function(t,e,r){var n=t(62),a=t(112);n(n.S+n.F*(Number.parseFloat!=a),"Number",{parseFloat:a})},{112:112,62:62}],210:[function(t,e,r){var n=t(62),a=t(113);n(n.S+n.F*(Number.parseInt!=a),"Number",{parseInt:a})},{113:113,62:62}],211:[function(t,e,r){"use strict";function c(t,e){for(var r=-1,n=e;++r<6;)n+=t*i[r],i[r]=n%1e7,n=o(n/1e7)}function u(t){for(var e=6,r=0;0<=--e;)r+=i[e],i[e]=o(r/t),r=r%t*1e7}function p(){for(var t=6,e="";0<=--t;)if(""!==e||0===t||0!==i[t]){var r=String(i[t]);e=""===e?r:e+h.call("0",7-r.length)+r}return e}var n=t(62),f=t(139),d=t(34),h=t(133),a=1..toFixed,o=Math.floor,i=[0,0,0,0,0,0],m="Number.toFixed: incorrect invocation!",g=function(t,e,r){return 0===e?r:e%2==1?g(t,e-1,r*t):g(t*t,e/2,r)};n(n.P+n.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!t(64)(function(){a.call({})})),"Number",{toFixed:function(t){var e,r,n,a,o=d(this,m),i=f(t),s="",l="0";if(i<0||20t;)e(n[t++]);u._c=[],u._n=!1,r&&!u._h&&N(u)})}}function o(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),a(e,!0))}var i,s,l,c,u=r(89),f=r(70),d=r(54),h=r(47),m=r(62),g=r(81),v=r(33),A=r(37),y=r(68),b=r(127),x=r(136).set,w=r(95)(),_=r(96),C=r(114),P=r(148),S=r(115),L="Promise",E=f.TypeError,T=f.process,k=T&&T.versions,R=k&&k.v8||"",F=f[L],I="process"==h(T),O=s=_.f,B=!!function(){try{var t=F.resolve(1),e=(t.constructor={})[r(152)("species")]=function(t){t(n,n)};return(I||"function"==typeof PromiseRejectionEvent)&&t.then(n)instanceof e&&0!==R.indexOf("6.6")&&-1===P.indexOf("Chrome/66")}catch(t){}}(),N=function(o){x.call(f,function(){var t,e,r,n=o._v,a=D(o);if(a&&(t=C(function(){I?T.emit("unhandledRejection",n,o):(e=f.onunhandledrejection)?e({promise:o,reason:n}):(r=f.console)&&r.error&&r.error("Unhandled promise rejection",n)}),o._h=I||D(o)?2:1),o._a=void 0,a&&t.e)throw t.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},M=function(e){x.call(f,function(){var t;I?T.emit("rejectionHandled",e):(t=f.onrejectionhandled)&&t({promise:e,reason:e._v})})},z=function(t){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E("Promise can't be resolved itself");(r=p(t))?w(function(){var e={_w:n,_d:!1};try{r.call(t,d(z,e,1),d(o,e,1))}catch(t){o.call(e,t)}}):(n._v=t,n._s=1,a(n,!1))}catch(t){o.call({_w:n,_d:!1},t)}}};B||(F=function(t){A(this,F,L,"_h"),v(t),i.call(this);try{t(d(z,this,1),d(o,this,1))}catch(t){o.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(117)(F.prototype,{then:function(t,e){var r=O(b(this,F));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=I?T.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&a(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),l=function(){var t=new i;this.promise=t,this.resolve=d(z,t,1),this.reject=d(o,t,1)},_.f=O=function(t){return t===F||t===c?new l(t):s(t)}),m(m.G+m.W+m.F*!B,{Promise:F}),r(124)(F,L),r(123)(L),c=r(52)[L],m(m.S+m.F*!B,L,{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),m(m.S+m.F*(u||!B),L,{resolve:function(t){return S(u&&this===c?F:this,t)}}),m(m.S+m.F*!(B&&r(86)(function(t){F.all(t).catch(n)})),L,{all:function(t){var i=this,e=O(i),s=e.resolve,l=e.reject,r=C(function(){var n=[],a=0,o=1;y(t,!1,function(t){var e=a++,r=!1;n.push(void 0),o++,i.resolve(t).then(function(t){r||(r=!0,n[e]=t,--o||s(n))},l)}),--o||s(n)});return r.e&&l(r.v),e.promise},race:function(t){var e=this,r=O(e),n=r.reject,a=C(function(){y(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return a.e&&n(a.v),r.promise}})},{114:114,115:115,117:117,123:123,124:124,127:127,136:136,148:148,152:152,33:33,37:37,47:47,52:52,54:54,62:62,68:68,70:70,81:81,86:86,89:89,95:95,96:96}],233:[function(t,e,r){var n=t(62),o=t(33),i=t(38),s=(t(70).Reflect||{}).apply,l=Function.apply;n(n.S+n.F*!t(64)(function(){s(function(){})}),"Reflect",{apply:function(t,e,r){var n=o(t),a=i(r);return s?s(n,e,a):l.call(n,e,a)}})},{33:33,38:38,62:62,64:64,70:70}],234:[function(t,e,r){var n=t(62),l=t(98),c=t(33),u=t(38),p=t(81),a=t(64),f=t(46),d=(t(70).Reflect||{}).construct,h=a(function(){function t(){}return!(d(function(){},[],t)instanceof t)}),m=!a(function(){d(function(){})});n(n.S+n.F*(h||m),"Reflect",{construct:function(t,e,r){c(t),u(e);var n=arguments.length<3?t:c(r);if(m&&!h)return d(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var a=[null];return a.push.apply(a,e),new(f.apply(t,a))}var o=n.prototype,i=l(p(o)?o:Object.prototype),s=Function.apply.call(t,i,e);return p(s)?s:i}})},{33:33,38:38,46:46,62:62,64:64,70:70,81:81,98:98}],235:[function(t,e,r){var n=t(99),a=t(62),o=t(38),i=t(143);a(a.S+a.F*t(64)(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,r){o(t),e=i(e,!0),o(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},{143:143,38:38,62:62,64:64,99:99}],236:[function(t,e,r){var n=t(62),a=t(101).f,o=t(38);n(n.S,"Reflect",{deleteProperty:function(t,e){var r=a(o(t),e);return!(r&&!r.configurable)&&delete t[e]}})},{101:101,38:38,62:62}],237:[function(t,e,r){"use strict";function n(t){this._t=o(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)}var a=t(62),o=t(38);t(84)(n,"Object",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),a(a.S,"Reflect",{enumerate:function(t){return new n(t)}})},{38:38,62:62,84:84}],238:[function(t,e,r){var n=t(101),a=t(62),o=t(38);a(a.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},{101:101,38:38,62:62}],239:[function(t,e,r){var n=t(62),a=t(105),o=t(38);n(n.S,"Reflect",{getPrototypeOf:function(t){return a(o(t))}})},{105:105,38:38,62:62}],240:[function(t,e,r){var s=t(101),l=t(105),c=t(71),n=t(62),u=t(81),p=t(38);n(n.S,"Reflect",{get:function t(e,r,n){var a,o,i=arguments.length<3?e:n;return p(e)===i?e[r]:(a=s.f(e,r))?c(a,"value")?a.value:void 0!==a.get?a.get.call(i):void 0:u(o=l(e))?t(o,r,i):void 0}})},{101:101,105:105,38:38,62:62,71:71,81:81}],241:[function(t,e,r){var n=t(62);n(n.S,"Reflect",{has:function(t,e){return e in t}})},{62:62}],242:[function(t,e,r){var n=t(62),a=t(38),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return a(t),!o||o(t)}})},{38:38,62:62}],243:[function(t,e,r){var n=t(62);n(n.S,"Reflect",{ownKeys:t(111)})},{111:111,62:62}],244:[function(t,e,r){var n=t(62),a=t(38),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){a(t);try{return o&&o(t),!0}catch(t){return!1}}})},{38:38,62:62}],245:[function(t,e,r){var n=t(62),a=t(122);a&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){a.check(t,e);try{return a.set(t,e),!0}catch(t){return!1}}})},{122:122,62:62}],246:[function(t,e,r){var c=t(99),u=t(101),p=t(105),f=t(71),n=t(62),d=t(116),h=t(38),m=t(81);n(n.S,"Reflect",{set:function t(e,r,n,a){var o,i,s=arguments.length<4?e:a,l=u.f(h(e),r);if(!l){if(m(i=p(e)))return t(i,r,n,s);l=d(0)}if(f(l,"value")){if(!1===l.writable||!m(s))return!1;if(o=u.f(s,r)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,c.f(s,r,o)}else c.f(s,r,d(0,n));return!0}return void 0!==l.set&&(l.set.call(s,n),!0)}})},{101:101,105:105,116:116,38:38,62:62,71:71,81:81,99:99}],247:[function(t,e,r){var n=t(70),o=t(75),a=t(99).f,i=t(103).f,s=t(82),l=t(66),c=n.RegExp,u=c,p=c.prototype,f=/a/g,d=/a/g,h=new c(f)!==f;if(t(58)&&(!h||t(64)(function(){return d[t(152)("match")]=!1,c(f)!=f||c(d)==d||"/a/i"!=c(f,"i")}))){function m(e){e in c||a(c,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})}c=function(t,e){var r=this instanceof c,n=s(t),a=void 0===e;return!r&&n&&t.constructor===c&&a?t:o(h?new u(n&&!a?t.source:t,e):u((n=t instanceof c)?t.source:t,n&&a?l.call(t):e),r?this:p,c)};for(var g=i(u),v=0;g.length>v;)m(g[v++]);(p.constructor=c).prototype=p,t(118)(n,"RegExp",c)}t(123)("RegExp")},{103:103,118:118,123:123,152:152,58:58,64:64,66:66,70:70,75:75,82:82,99:99}],248:[function(t,e,r){"use strict";var n=t(120);t(62)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},{120:120,62:62}],249:[function(t,e,r){t(58)&&"g"!=/./g.flags&&t(99).f(RegExp.prototype,"flags",{configurable:!0,get:t(66)})},{58:58,66:66,99:99}],250:[function(t,e,r){"use strict";var p=t(38),f=t(141),d=t(36),h=t(119);t(65)("match",1,function(n,a,c,u){return[function(t){var e=n(this),r=null==t?void 0:t[a];return void 0!==r?r.call(t,e):new RegExp(t)[a](String(e))},function(t){var e=u(c,t,this);if(e.done)return e.value;var r=p(t),n=String(this);if(!r.global)return h(r,n);for(var a,o=r.unicode,i=[],s=r.lastIndex=0;null!==(a=h(r,n));){var l=String(a[0]);""===(i[s]=l)&&(r.lastIndex=d(n,f(r.lastIndex),o)),s++}return 0===s?null:i}]})},{119:119,141:141,36:36,38:38,65:65}],251:[function(t,e,r){"use strict";var C=t(38),n=t(142),P=t(141),S=t(139),L=t(36),E=t(119),T=Math.max,k=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;t(65)("replace",2,function(a,o,x,w){return[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):x.call(String(r),t,e)},function(t,e){var r=w(x,t,this,e);if(r.done)return r.value;var n=C(t),a=String(this),o="function"==typeof e;o||(e=String(e));var i=n.global;if(i){var s=n.unicode;n.lastIndex=0}for(var l=[];;){var c=E(n,a);if(null===c)break;if(l.push(c),!i)break;""===String(c[0])&&(n.lastIndex=L(a,P(n.lastIndex),s))}for(var u,p="",f=0,d=0;d>>0,u=new RegExp(t.source,s+"g");(n=f.call(u,r))&&!(l<(a=u[m])&&(i.push(r.slice(l,n.index)),1=c));)u[m]===n.index&&u[m]++;return l===r[h]?!o&&u.test("")||i.push(""):i.push(r.slice(l)),i[h]>c?i.slice(0,c):i}:"0"[i](void 0,0)[h]?function(t,e){return void 0===t&&0===e?[]:g.call(this,t,e)}:g,[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):A.call(String(r),t,e)},function(t,e){var r=v(A,t,this,e,A!==g);if(r.done)return r.value;var n=y(t),a=String(this),o=b(n,RegExp),i=n.unicode,s=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(S?"y":"g"),l=new o(S?n:"^(?:"+n.source+")",s),c=void 0===e?P:e>>>0;if(0==c)return[];if(0===a.length)return null===_(l,a)?[a]:[];for(var u=0,p=0,f=[];p>10),e%1024+56320))}return r.join("")}})},{137:137,62:62}],266:[function(t,e,r){"use strict";var n=t(62),a=t(130);n(n.P+n.F*t(63)("includes"),"String",{includes:function(t,e){return!!~a(this,t,"includes").indexOf(t,1=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{129:129,85:85}],269:[function(t,e,r){"use strict";t(131)("link",function(e){return function(t){return e(this,"a","href",t)}})},{131:131}],270:[function(t,e,r){var n=t(62),i=t(140),s=t(141);n(n.S,"String",{raw:function(t){for(var e=i(t.raw),r=s(e.length),n=arguments.length,a=[],o=0;oa;)u(Y,e=r[a++])||e==G||e==h||n.push(e);return n}function l(t){for(var e,r=t===Z,n=M(r?q:L(t)),a=[],o=0;n.length>o;)!u(Y,e=n[o++])||r&&!u(Z,e)||a.push(Y[e]);return a}var c=t(70),u=t(71),p=t(58),f=t(62),d=t(118),h=t(94).KEY,m=t(64),g=t(126),v=t(124),A=t(147),y=t(152),b=t(151),x=t(150),w=t(61),_=t(79),C=t(38),P=t(81),S=t(142),L=t(140),E=t(143),T=t(116),k=t(98),R=t(102),F=t(101),I=t(104),O=t(99),B=t(107),N=F.f,D=O.f,M=R.f,z=c.Symbol,U=c.JSON,j=U&&U.stringify,W="prototype",G=y("_hidden"),H=y("toPrimitive"),V={}.propertyIsEnumerable,Q=g("symbol-registry"),Y=g("symbols"),q=g("op-symbols"),Z=Object[W],X="function"==typeof z&&!!I.f,K=c.QObject,J=!K||!K[W]||!K[W].findChild,$=p&&m(function(){return 7!=k(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=N(Z,e);n&&delete Z[e],D(t,e,r),n&&t!==Z&&D(Z,e,n)}:D,tt=X&&"symbol"==typeof z.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof z},et=function(t,e,r){return t===Z&&et(q,e,r),C(t),e=E(e,!0),C(r),u(Y,e)?(r.enumerable?(u(t,G)&&t[G][e]&&(t[G][e]=!1),r=k(r,{enumerable:T(0,!1)})):(u(t,G)||D(t,G,T(1,{})),t[G][e]=!0),$(t,e,r)):D(t,e,r)};X||(d((z=function(t){if(this instanceof z)throw TypeError("Symbol is not a constructor!");var e=A(0nt;)y(rt[nt++]);for(var at=B(y.store),ot=0;at.length>ot;)x(at[ot++]);f(f.S+f.F*!X,"Symbol",{for:function(t){return u(Q,t+="")?Q[t]:Q[t]=z(t)},keyFor:function(t){if(!tt(t))throw TypeError(t+" is not a symbol!");for(var e in Q)if(Q[e]===t)return e},useSetter:function(){J=!0},useSimple:function(){J=!1}}),f(f.S+f.F*!X,"Object",{create:function(t,e){return void 0===e?k(t):a(k(t),e)},defineProperty:et,defineProperties:a,getOwnPropertyDescriptor:i,getOwnPropertyNames:s,getOwnPropertySymbols:l});var it=m(function(){I.f(1)});f(f.S+f.F*it,"Object",{getOwnPropertySymbols:function(t){return I.f(S(t))}}),U&&f(f.S+f.F*(!X||m(function(){var t=z();return"[null]"!=j([t])||"{}"!=j({a:t})||"{}"!=j(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],a=1;as;)void 0!==(r=a(n,e=o[s++]))&&p(i,e,r);return i}})},{101:101,111:111,140:140,53:53,62:62}],296:[function(t,e,r){var n=t(62),a=t(110)(!1);n(n.S,"Object",{values:function(t){return a(t)}})},{110:110,62:62}],297:[function(t,e,r){"use strict";var n=t(62),a=t(52),o=t(70),i=t(127),s=t(115);n(n.P+n.R,"Promise",{finally:function(e){var r=i(this,a.Promise||o.Promise),t="function"==typeof e;return this.then(t?function(t){return s(r,e()).then(function(){return t})}:e,t?function(t){return s(r,e()).then(function(){throw t})}:e)}})},{115:115,127:127,52:52,62:62,70:70}],298:[function(t,e,r){"use strict";var n=t(62),a=t(132),o=t(148),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*i,"String",{padEnd:function(t,e){return a(this,t,1/g,">").replace(/"/g,""").replace(/'/g,"'")}function vt(t){return"number"==typeof t&&100"+e+"":""}function _t(t){var e="solid",r="",n="",a="";if(t)switch("string"==typeof t?r=t:(t.type&&(e=t.type),t.color&&(r=t.color),t.alpha&&(n+=''),t.transparency&&(n+='')),e){case"solid":a+=""+wt(r,n)+"";break;default:a+=""}return a}function Ct(t){return t._rels.length+t._relsChart.length+t._relsMedia.length+1}function Pt(t,c,n,e){void 0===t&&(t=[]),void 0===c&&(c={});var r,u=P,p=1*B,f=0,a=0,d=[],o=dt(c.x,"X",n),h=dt(c.y,"Y",n),i=dt(c.w,"X",n),m=dt(c.h,"Y",n),s=i;if(c.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- TABLE PROPS --------------------------------------------------------|"),console.log("| presLayout.width ................................ = "+(n.width/B).toFixed(1)),console.log("| presLayout.height ............................... = "+(n.height/B).toFixed(1)),console.log("| tableProps.x .................................... = "+("number"==typeof c.x?(c.x/B).toFixed(1):c.x)),console.log("| tableProps.y .................................... = "+("number"==typeof c.y?(c.y/B).toFixed(1):c.y)),console.log("| tableProps.w .................................... = "+("number"==typeof c.w?(c.w/B).toFixed(1):c.w)),console.log("| tableProps.h .................................... = "+("number"==typeof c.h?(c.h/B).toFixed(1):c.h)),console.log("| tableProps.slideMargin .......................... = "+(c.slideMargin||"")),console.log("| tableProps.margin ............................... = "+c.margin),console.log("| tableProps.colW ................................. = "+c.colW),console.log("| tableProps.autoPageSlideStartY .................. = "+c.autoPageSlideStartY),console.log("| tableProps.autoPageCharWeight ................... = "+c.autoPageCharWeight),console.log("|-- CALCULATIONS -------------------------------------------------------|"),console.log("| tablePropX ...................................... = "+o/B),console.log("| tablePropY ...................................... = "+h/B),console.log("| tablePropW ...................................... = "+i/B),console.log("| tablePropH ...................................... = "+m/B),console.log("| tableCalcW ...................................... = "+s/B)),c.slideMargin||0===c.slideMargin||(c.slideMargin=P[0]),e&&void 0!==e._margin?Array.isArray(e._margin)?u=e._margin:isNaN(Number(e._margin))||(u=[Number(e._margin),Number(e._margin),Number(e._margin),Number(e._margin)]):!c.slideMargin&&0!==c.slideMargin||(Array.isArray(c.slideMargin)?u=c.slideMargin:isNaN(c.slideMargin)||(u=[c.slideMargin,c.slideMargin,c.slideMargin,c.slideMargin])),c.verbose&&console.log("| arrInchMargins .................................. = ["+u.join(", ")+"]"),(t[0]||[]).forEach(function(t){var e=(t=t||{_type:at.tablecell}).options||null;a+=Number(e&&e.colspan?e.colspan:1)}),c.verbose&&console.log("| numCols ......................................... = "+a),!i&&c.colW&&(s=Array.isArray(c.colW)?c.colW.reduce(function(t,e){return t+e})*B:c.colW*a||0,c.verbose&&console.log("| tableCalcW ...................................... = "+s/B)),r=s||vt((o?o/B:u[1])+u[3]),c.verbose&&console.log("| emuSlideTabW .................................... = "+(r/B).toFixed(1)),!c.colW||!Array.isArray(c.colW))if(c.colW&&!isNaN(Number(c.colW))){var l=[];(t[0]||[]).forEach(function(){return l.push(c.colW)}),c.colW=[],l.forEach(function(t){Array.isArray(c.colW)&&c.colW.push(t)})}else{c.colW=[];for(var g=0;ge?e=At(t.options.margin[0]):c.margin&&c.margin[0]&&At(c.margin[0])>e&&(e=At(c.margin[0])),t.options.margin&&t.options.margin[2]&&At(t.options.margin[2])>r?r=At(t.options.margin[2]):c.margin&&c.margin[2]&&At(c.margin[2])>r&&(r=At(c.margin[2]))):(t.options.margin&&t.options.margin[0]&&vt(t.options.margin[0])>e?e=vt(t.options.margin[0]):c.margin&&c.margin[0]&&vt(c.margin[0])>e&&(e=vt(c.margin[0])),t.options.margin&&t.options.margin[2]&&vt(t.options.margin[2])>r?r=vt(t.options.margin[2]):c.margin&&c.margin[2]&&vt(c.margin[2])>r&&(r=vt(c.margin[2])))});var t=0;if(0===d.length&&(t=h||vt(u[0])),0 "+JSON.stringify(c)),s.push(c),c=[])),0a&&(o.push(e),e=[],r=""),e.push(t),r+=t.text.toString()}),0=a[l]._lines.length&&(l=e)}),a.forEach(function(n,a){n._lines.forEach(function(t,e){if(f+n._lineHeight>p){c.verbose&&(console.log("\n|-----------------------------------------------------------------------|"),console.log("|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => "+(f/B).toFixed(2)+" + "+(n._lineHeight/B).toFixed(2)+" > "+p/B),console.log("|-----------------------------------------------------------------------|\n\n")),0r&&(r=t._lineHeight)}),v.rows.push(e),f+=r})}var r=s[a];Array.isArray(r.text)&&(r.text=r.text.concat(t)),a===l&&(f+=n._lineHeight),s.forEach(function(t,e){e'},contain:function(t,e){var r=t.h/t.w,n=r'},crop:function(t,e){var r=e.x,n=t.w-(e.x+e.w),a=e.y,o=t.h-(e.y+e.h);return''}};function Lt(R){var F=R._name?'':"",I=1;return R._bkgdImgRid?F+='':R.background&&R.background.color?F+=""+_t(R.background)+"":!R.bkgd&&R._name&&R._name===n&&(F+=''),F+="",F+='',F+='',F+='',R._slideObjects.forEach(function(n,t){var e,r,a=0,o=0,i=dt("75%","X",R._presLayout),s=0,l="";switch(void 0!==R._slideLayout&&void 0!==R._slideLayout._slideObjects&&n.options&&n.options.placeholder&&(r=R._slideLayout._slideObjects.filter(function(t){return t.options.placeholder===n.options.placeholder})[0]),n.options=n.options||{},void 0!==n.options.x&&(a=dt(n.options.x,"X",R._presLayout)),void 0!==n.options.y&&(o=dt(n.options.y,"Y",R._presLayout)),void 0!==n.options.w&&(i=dt(n.options.w,"X",R._presLayout)),void 0!==n.options.h&&(s=dt(n.options.h,"Y",R._presLayout)),r&&(!r.options.x&&0!==r.options.x||(a=dt(r.options.x,"X",R._presLayout)),!r.options.y&&0!==r.options.y||(o=dt(r.options.y,"Y",R._presLayout)),!r.options.w&&0!==r.options.w||(i=dt(r.options.w,"X",R._presLayout)),!r.options.h&&0!==r.options.h||(s=dt(r.options.h,"Y",R._presLayout))),n.options.flipH&&(l+=' flipH="1"'),n.options.flipV&&(l+=' flipV="1"'),n.options.rotate&&(l+=' rot="'+yt(n.options.rotate)+'"'),n._type){case at.table:var c,u=n.arrTabRows,f=n.options,p=0,d=0;u[0].forEach(function(t){c=t.options||null,p+=c&&c.colspan?Number(c.colspan):1});var h='';if(h+=' ',h+='',h+='',Array.isArray(f.colW)){h+="";for(var m=0;m'}h+=""}else{d=f.colW?f.colW:B,n.options.w&&!f.colW&&(d=Math.round(("number"==typeof n.options.w?n.options.w:1)/p)),h+="";for(var v=0;v';h+=""}u.forEach(function(o){for(var i,s,l,t=function(t){var e=o[t],r=null===(i=e.options)||void 0===i?void 0:i.colspan,n=null===(s=e.options)||void 0===s?void 0:s.rowspan;if(r&&1',t.forEach(function(t){var e,r,n=t,a={rowSpan:1<(null===(e=n.options)||void 0===e?void 0:e.rowspan)?n.options.rowspan:void 0,gridSpan:1<(null===(r=n.options)||void 0===r?void 0:r.colspan)?n.options.colspan:void 0,vMerge:n._vmerge?1:void 0,hMerge:n._hmerge?1:void 0},o=Object.keys(a).map(function(t){return[t,a[t]]}).filter(function(t){return t[0],!!t[1]}).map(function(t){return t[0]+'="'+t[1]+'"'}).join(" ");if(o=o&&" "+o,n._hmerge||n._vmerge)h+="";else{var i=n.options||{};n.options=i,["align","bold","border","color","fill","fontFace","fontSize","margin","underline","valign"].forEach(function(t){f[t]&&!i[t]&&0!==i[t]&&(i[t]=f[t])});var s=i.valign?' anchor="'+i.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b")+'"':"",l=n._optImp&&n._optImp.fill&&n._optImp.fill.color?n._optImp.fill.color:n._optImp&&n._optImp.fill&&"string"==typeof n._optImp.fill?n._optImp.fill:"",c=(l=l||i.fill&&i.fill.color?i.fill.color:i.fill&&"string"==typeof i.fill?i.fill:"")?""+wt(l)+"":"",u=0===i.margin||i.margin?i.margin:N;Array.isArray(u)||"number"!=typeof u||(u=[u,u,u,u]);var p="";p=1<=u[0]?' marL="'+At(u[3])+'" marR="'+At(u[1])+'" marT="'+At(u[0])+'" marB="'+At(u[2])+'"':' marL="'+vt(u[3])+'" marR="'+vt(u[1])+'" marT="'+vt(u[0])+'" marB="'+vt(u[2])+'"',h+=""+Rt(n)+"",i.border&&Array.isArray(i.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach(function(t){"none"!==i.border[t.idx].type?(h+="',h+=""+wt(i.border[t.idx].color)+"",h+='',h+=""):h+=""}),h+=c,h+=" ",h+=" "}}),h+=""}),h+=" ",h+=" ",h+=" ",F+=h+="",I++;break;case at.text:case at.placeholder:var A=n.options.shapeName?gt(n.options.shapeName):"Object"+(t+1);if(n.options.line||0!==s||(s=.3*B),n.options._bodyProp||(n.options._bodyProp={}),n.options.margin&&Array.isArray(n.options.margin)?(n.options._bodyProp.lIns=At(n.options.margin[0]||0),n.options._bodyProp.rIns=At(n.options.margin[1]||0),n.options._bodyProp.bIns=At(n.options.margin[2]||0),n.options._bodyProp.tIns=At(n.options.margin[3]||0)):"number"==typeof n.options.margin&&(n.options._bodyProp.lIns=At(n.options.margin),n.options._bodyProp.rIns=At(n.options.margin),n.options._bodyProp.bIns=At(n.options.margin),n.options._bodyProp.tIns=At(n.options.margin)),F+="",F+='',n.options.hyperlink&&n.options.hyperlink.url&&(F+=''),n.options.hyperlink&&n.options.hyperlink.slide&&(F+=''),F+="",F+="':"/>"),F+=""+("placeholder"===n._type?Ft(n):Ft(r))+"",F+="",F+="",F+='',F+='',"custGeom"===n.shape)F+="",F+="",F+="",F+="",F+="",F+="",F+='',F+="",F+='',null===(e=n.options.points)||void 0===e||e.map(function(t,e){if("curve"in t)switch(t.curve.type){case"arc":F+='';break;case"cubic":F+='\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t';break;case"quadratic":F+='\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t'}else"close"in t?F+="":t.moveTo||0===e?F+='':F+=''}),F+="",F+="",F+="";else{if(F+='',n.options.rectRadius)F+='';else if(n.options.angleRange){for(var y=0;y<2;y++){var b=n.options.angleRange[y];F+=''}n.options.arcThicknessRatio&&(F+='')}F+=""}F+=n.options.fill?_t(n.options.fill):"",n.options.line&&(F+=n.options.line.width?'':"",n.options.line.color&&(F+=_t(n.options.line)),n.options.line.dashType&&(F+=''),n.options.line.beginArrowType&&(F+=''),n.options.line.endArrowType&&(F+=''),F+=""),n.options.shadow&&(n.options.shadow.type=n.options.shadow.type||"outer",n.options.shadow.blur=At(n.options.shadow.blur||8),n.options.shadow.offset=At(n.options.shadow.offset||4),n.options.shadow.angle=Math.round(6e4*(n.options.shadow.angle||270)),n.options.shadow.opacity=Math.round(1e5*(n.options.shadow.opacity||.75)),n.options.shadow.color=n.options.shadow.color||D.color,F+="",F+="',F+='',F+='',F+="",F+=""),F+="",F+=Rt(n),F+="";break;case at.image:var x=n.options,w=x.sizing,_=x.rounding,C=i,P=s;if(F+="",F+=" ",F+='',n.hyperlink&&n.hyperlink.url&&(F+=''),n.hyperlink&&n.hyperlink.slide&&(F+=''),F+=" ",F+=' ',F+=" "+Ft(r)+"",F+=" ",F+="",(R._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0]&&"svg"===(R._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0].extn?(F+='',F+=" ",F+=' ',F+=' ',F+=" ",F+=" ",F+=""):F+='',w&&w.type){var S=w.w?dt(w.w,"X",R._presLayout):i,L=w.h?dt(w.h,"Y",R._presLayout):s,E=dt(w.x||0,"X",R._presLayout),T=dt(w.y||0,"Y",R._presLayout);F+=St[w.type]({w:C,h:P},{w:S,h:L,x:E,y:T}),C=S,P=L}else F+=" ";F+="",F+="",F+=" ",F+=' ',F+=' ',F+=" ",F+=' ',F+="",F+="";break;case at.media:"online"===n.mtype?(F+="",F+=" ",F+=' ',F+=" ",F+=" ",F+=' ',F+=" ",F+=" ",F+=' '):(F+="",F+=" ",F+=' ',F+=' ',F+=" ",F+=' ',F+=" ",F+=' ',F+=' ',F+=" ",F+=" ",F+=" ",F+=" ",F+=' '),F+=" ",F+=" ",F+=' ',F+=' ',F+=" ",F+=' ',F+=" ",F+="";break;case at.chart:var k=n.options;F+="",F+=" ",F+=' ',F+=" ",F+=" "+Ft(r)+"",F+=" ",F+=' ',F+=' ',F+=' ',F+=' ',F+=" ",F+=" ",F+="";break;default:F+=""}}),R._slideNumberProps&&(R._slideNumberProps.align||(R._slideNumberProps.align="left"),F+=' ',F+="",F+="',R._slideNumberProps.color&&(F+=_t(R._slideNumberProps.color)),R._slideNumberProps.fontFace&&(F+=''),F+=""),F+="",F+='',R._slideNumberProps.align.startsWith("l")?F+='':R._slideNumberProps.align.startsWith("c")?F+='':R._slideNumberProps.align.startsWith("r")?F+='':F+='',F+='',F+=""),F+="",F+=""}function Et(t,e){var r=0,n=''+c+'';return t._rels.forEach(function(t){r=Math.max(r,t.rId),-1':n+='':-1')}),(t._relsChart||[]).forEach(function(t){r=Math.max(r,t.rId),n+=''}),(t._relsMedia||[]).forEach(function(t){r=Math.max(r,t.rId),-1':-1':n+='':-1':n+='':-1':n+='')}),e.forEach(function(t,e){n+=''}),n+=""}function Tt(t,e){var r="",n="",a="",o="",i=e?"a:lvl1pPr":"a:pPr",s=At(u),l="<"+i+(t.options.rtlMode?' rtl="1" ':"");if(t.options.align)switch(t.options.align){case"left":l+=' algn="l"';break;case"right":l+=' algn="r"';break;case"center":l+=' algn="ctr"';break;case"justify":l+=' algn="just"';break;default:l+=""}if(t.options.lineSpacing?n='':t.options.lineSpacingMultiple&&(n=''),t.options.indentLevel&&!isNaN(Number(t.options.indentLevel))&&0'),t.options.paraSpaceAfter&&!isNaN(Number(t.options.paraSpaceAfter))&&0'),"object"==typeof t.options.bullet)if(t&&t.options&&t.options.bullet&&t.options.bullet.indent&&(s=At(t.options.bullet.indent)),t.options.bullet.type)"number"===t.options.bullet.type.toString().toLowerCase()&&(l+=' marL="'+(t.options.indentLevel&&0');else if(t.options.bullet.characterCode){var c="&#x"+t.options.bullet.characterCode+";";!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.characterCode)&&(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),c=lt.DEFAULT),l+=' marL="'+(t.options.indentLevel&&0'}else if(t.options.bullet.code){c="&#x"+t.options.bullet.code+";";!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.code)&&(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),c=lt.DEFAULT),l+=' marL="'+(t.options.indentLevel&&0'}else l+=' marL="'+(t.options.indentLevel&&0';else!0===t.options.bullet?(l+=' marL="'+(t.options.indentLevel&&0'):!1===t.options.bullet&&(l+=' indent="0" marL="0"',r="");t.options.tabStops&&Array.isArray(t.options.tabStops)&&(o=""+t.options.tabStops.map(function(t){return''}).join("")+"");return l+=">"+n+a+r+o,e&&(l+=kt(t.options,!0)),l+=""}function kt(t,e){var r,n="",a=e?"a:defRPr":"a:rPr";if(n+="<"+a+' lang="'+(t.lang?t.lang:"en-US")+'"'+(t.lang?' altLang="en-US"':""),n+=t.fontSize?' sz="'+Math.round(t.fontSize)+'00"':"",n+=t.hasOwnProperty("bold")?' b="'+(t.bold?1:0)+'"':"",n+=t.hasOwnProperty("italic")?' i="'+(t.italic?1:0)+'"':"",n+=t.hasOwnProperty("strike")?' strike="'+("string"==typeof t.strike?t.strike:"sngStrike")+'"':"","object"==typeof t.underline&&(null===(r=t.underline)||void 0===r?void 0:r.style)?n+=' u="'+t.underline.style+'"':"string"==typeof t.underline?n+=' u="'+t.underline+'"':t.hyperlink&&(n+=' u="sng"'),t.baseline?n+=' baseline="'+Math.round(50*t.baseline)+'"':t.subscript?n+=' baseline="-40000"':t.superscript&&(n+=' baseline="30000"'),n+=t.charSpacing?' spc="'+Math.round(100*t.charSpacing)+'" kern="0"':"",n+=' dirty="0">',(t.color||t.fontFace||t.outline||"object"==typeof t.underline&&t.underline.color)&&(t.outline&&"object"==typeof t.outline&&(n+=''+_t(t.outline.color||"FFFFFF")+""),t.color&&(n+=_t(t.color)),t.highlight&&(n+=""+wt(t.highlight)+""),"object"==typeof t.underline&&t.underline.color&&(n+=""+_t(t.underline.color)+""),t.glow&&(n+=""+function(t,e){var r="",n=mt(e,t);return r+='',r+=wt(n.color,''),r+=""}(t.glow,S)+""),t.fontFace&&(n+='')),t.hyperlink){if("object"!=typeof t.hyperlink)throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");if(!t.hyperlink.url&&!t.hyperlink.slide)throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'");t.hyperlink.url?n+='":"/>"):t.hyperlink.slide&&(n+='":"/>")),t.color&&(n+="\t",n+='\t\t',n+='\t\t\t',n+="\t\t",n+="\t",n+="")}return n+=""}function Rt(n){var a=n.options||{},t=[],r=[];if(a&&n._type!==at.tablecell&&(void 0===n.text||null===n.text))return"";var o=n._type===at.tablecell?"":"";o+=function(t){var e="":"resize"===t.options.fit&&(e+="")),t.options.shrinkText&&(e+=""),e+=!1!==t.options._bodyProp.autoFit?"":""):e+=' wrap="square" rtlCol="0">',e+="",t._type===at.tablecell?"":e}(n),0===a.h&&a.line&&a.align?o+='':"placeholder"===n._type?o+=""+Tt(n,!0)+"":o+="","string"==typeof n.text||"number"==typeof n.text?t.push({text:n.text.toString(),options:a||{}}):n.text&&!Array.isArray(n.text)&&"object"==typeof n.text&&-1";var r=""),n.options.align=n.options.align||a.align,n.options.lineSpacing=n.options.lineSpacing||a.lineSpacing,n.options.lineSpacingMultiple=n.options.lineSpacingMultiple||a.lineSpacingMultiple,n.options.indentLevel=n.options.indentLevel||a.indentLevel,n.options.paraSpaceBefore=n.options.paraSpaceBefore||a.paraSpaceBefore,n.options.paraSpaceAfter=n.options.paraSpaceAfter||a.paraSpaceAfter,r=Tt(n,!1),o+=r,Object.entries(a).forEach(function(t){var e=t[0],r=t[1];n.options.hyperlink&&"color"===e||"bullet"===e||n.options[e]||(n.options[e]=r)}),o+=function(t){return t.text?""+kt(t.options,!1)+""+gt(t.text)+"":""}(n),(!n.text&&a.fontSize||n.options.fontSize)&&(e=!0,a.fontSize=a.fontSize||n.options.fontSize)}),n._type===at.tablecell&&(a.fontSize||a.fontFace)?a.fontFace?(o+='',o+='',o+='',o+='',o+=""):o+='':o+=e?'':'',o+=""}),o+=n._type===at.tablecell?"":""}function Ft(t){if(!t)return"";var e=t.options&&t.options._placeholderIdx?t.options._placeholderIdx:"",r=t.options&&t.options._placeholderType?t.options._placeholderType:"";return""}function It(t){return''+c+''+gt(function(t){var e="";return t._slideObjects.forEach(function(t){t._type===at.notes&&(e+=t.text&&t.text[0]?t.text[0].text:"")}),e.replace(/\r*\n/g,c)}(t))+''+t._slideNum+''}function Ot(t){t&&"object"==typeof t&&("outer"!==t.type&&"inner"!==t.type&&"none"!==t.type&&(console.warn("Warning: shadow.type options are `outer`, `inner` or `none`."),t.type="outer"),t.angle&&((isNaN(Number(t.angle))||t.angle<0||359 \n'),t.file("_rels/.rels",'\n'),t.file("docProps/app.xml",'Microsoft Excel0falseWorksheets1Sheet1\n'),t.file("docProps/core.xml",'PptxGenJSEly, Brent'+(new Date).toISOString()+''+(new Date).toISOString()+"\n"),t.file("xl/_rels/workbook.xml.rels",'\n'),t.file("xl/styles.xml",'\n'),t.file("xl/theme/theme1.xml",''),t.file("xl/workbook.xml",'\n'),t.file("xl/worksheets/_rels/sheet1.xml.rels",'\n');var n='';if(f.opts._type===J.BUBBLE)n+='';else if(f.opts._type===J.SCATTER)n+='';else{var o=h.length+h[0].labels.length*h[0].labels[0].length+h[0].labels.length,i=h.length+h[0].labels.length*h[0].labels[0].length+1;n+='',n+=''}f.opts._type===J.BUBBLE?h.forEach(function(t,e){0===e?n+="X-Axis":(n+=""+gt(t.name||" ")+"",n+=""+gt("Size "+e)+"")}):h.forEach(function(t){n+=""+gt((t.name||" ").replace("X-Axis","X-Values"))+""}),f.opts._type!==J.BUBBLE&&f.opts._type!==J.SCATTER&&h[0].labels.forEach(function(t){t.forEach(function(t){n+=""+gt(t)+""})}),n+="\n",t.file("xl/sharedStrings.xml",n);var s='';f.opts._type===J.BUBBLE||(f.opts._type===J.SCATTER?(s+='',s+='',h.forEach(function(t,e){s+=''})):(s+='
',s+='',h[0].labels.forEach(function(t,e){s+=''}),h.forEach(function(t,e){s+=''}))),s+="",s+='',s+="
",t.file("xl/tables/table1.xml",s);var l='';if(l+='',f.opts._type===J.BUBBLE?l+='':f.opts._type===J.SCATTER?l+='':l+='',l+='',l+='',f.opts._type===J.BUBBLE){l+="",l+='',l+="",l+="",l+='',l+='0';for(var c=1;c',l+=""+c+"",l+="";l+="",h[0].values.forEach(function(t,e){l+='',l+=''+t+"";for(var r=1,n=1;n',l+=""+(h[n].values[e]||"")+"",l+="",l+='',l+=""+(h[n].sizes[e]||"")+"",l+="",r++;l+=""})}else if(f.opts._type===J.SCATTER){l+="",l+='',l+="",l+="",l+='',l+='0';for(var u=1;u',l+=""+u+"",l+="";l+="",h[0].values.forEach(function(t,e){l+='',l+=''+t+"";for(var r=1;r',l+=""+(h[r].values[e]||0===h[r].values[e]?h[r].values[e]:"")+"",l+="";l+=""})}else{l+="",l+='',l+="",l+="",l+='',h[0].labels.forEach(function(t,e){l+='',l+="0",l+=""});for(var p=1;p<=h.length;p++)l+='',l+=""+p+"",l+="";l+="",h[0].labels[0].forEach(function(t,e){l+='';for(var r=h[0].labels.length-1;0<=r;r--)l+='',l+=""+(h.length+e+r*h[0].labels[0].length+1)+"",l+="";for(var n=0;n',l+=""+(h[n].values[e]||"")+"",l+="";l+=""})}l+="",l+='',l+="\n",t.file("xl/worksheets/sheet1.xml",l),t.generateAsync({type:"base64"}).then(function(t){d.file("ppt/embeddings/Microsoft_Excel_Worksheet"+f.globalId+".xlsx",t,{base64:!0}),d.file("ppt/charts/_rels/"+f.fileName+".rels",''),d.file("ppt/charts/"+f.fileName,function(a){var o='',i=!1;o+='',o+='',o+="",a.opts.showTitle?(o+=qt({title:a.opts.title||"Chart Title",color:a.opts.titleColor,fontFace:a.opts.titleFontFace,fontSize:a.opts.titleFontSize||w,titleAlign:a.opts.titleAlign,titleBold:a.opts.titleBold,titlePos:a.opts.titlePos,titleRotate:a.opts.titleRotate}),o+=''):o+='';a.opts._type===J.BAR3D&&(o+="",o+=' ',o+=' ',o+=' ',o+=' ',o+="");o+="",a.opts.layout?(o+="",o+=" ",o+=' ',o+=' ',o+=' ',o+=' ',o+=' ',o+=' ',o+=' ',o+=" ",o+=""):o+="";Array.isArray(a.opts._type)?a.opts._type.forEach(function(t){var e=mt(a.opts,t.options),r=e.secondaryValAxis?E:L,n=e.secondaryCatAxis?k:T;i=i||e.secondaryValAxis,o+=Vt(t.type,t.data,e,r,n)}):o+=Vt(a.opts._type,a.data,a.opts,L,T);if(a.opts._type!==J.PIE&&a.opts._type!==J.DOUGHNUT){if(a.opts.valAxes&&1',n+=' ',n+=' ',n+=' ',n+="none"!==e.serGridLine.style?Kt(e.serGridLine):"",e.showSerAxisTitle&&(n+=qt({color:e.serAxisTitleColor,fontFace:e.serAxisTitleFontFace,fontSize:e.serAxisTitleFontSize,titleRotate:e.serAxisTitleRotate,title:e.serAxisTitle||"Axis Title"}));n+=' ',n+=' ',n+=' ',n+=' ',n+=" ",n+=' ',n+=!1===e.serAxisLineShow?"":""+wt(e.serAxisLineColor||g.color)+"",n+=' ',n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+wt(e.serAxisLabelColor||v)+"",n+=' ',n+=" ",n+=" ",n+=' ',n+=" ",n+=" ",n+=' ',n+=' ',e.serAxisLabelFrequency&&(n+=' ');e.serLabelFormatCode&&(["serAxisBaseTimeUnit","serAxisMajorTimeUnit","serAxisMinorTimeUnit"].forEach(function(t){!e[t]||"string"==typeof e[t]&&-1!==["days","months","years"].indexOf(t.toLowerCase())||(console.warn("`"+t+"` must be one of: 'days','months','years' !"),e[t]=null)}),e.serAxisBaseTimeUnit&&(n+=' '),e.serAxisMajorTimeUnit&&(n+=' '),e.serAxisMinorTimeUnit&&(n+=' '),e.serAxisMajorUnit&&(n+=' '),e.serAxisMinorUnit&&(n+=' '));return n+=""}(a.opts,R,L)))}a.opts.showDataTable&&(o+="",o+=' ',o+=' ',o+=' ',o+=' ',o+=" ",o+=" ",o+=' ',o+=" ",o+=" ",o+=" ",o+='\t ',o+="\t ",o+="\t ",o+='\t\t',o+=' ',o+='\t\t\t',o+='\t\t\t',o+='\t\t\t',o+='\t\t\t',o+="\t\t ",o+="\t\t",o+='\t\t',o+="\t ",o+="\t",o+="");o+=" ",o+=a.opts.fill?_t(a.opts.fill):"",o+=a.opts.border?''+_t(a.opts.border.color)+"":"",o+=" ",o+=" ",o+="",a.opts.showLegend&&(o+="",o+='',o+='',(a.opts.legendFontFace||a.opts.legendFontSize||a.opts.legendColor)&&(o+="",o+=" ",o+=" ",o+=" ",o+=" ",o+=a.opts.legendFontSize?'':"",a.opts.legendColor&&(o+=_t(a.opts.legendColor)),a.opts.legendFontFace&&(o+=''),a.opts.legendFontFace&&(o+=''),o+=" ",o+=" ",o+=' ',o+=" ",o+=""),o+="");o+=' ',o+=' ',a.opts._type===J.SCATTER&&(o+='');return o+="",o+="",o+=" ",o+=' ',o+=" ",o+="",o+='',o+=""}(f)),e(null)}).catch(function(t){r(t)})})}function Vt(n,a,o,t,e){var i="";switch(n){case J.AREA:case J.BAR:case J.BAR3D:case J.LINE:case J.RADAR:i+="",n===J.AREA&&"stacked"===o.barGrouping&&(i+=''),n!==J.BAR&&n!==J.BAR3D||(i+='',i+=''),n===J.RADAR&&(i+=''),i+='';var s=-1;a.forEach(function(t){s++;var e=t.index;i+="",i+=' ',i+=' ',i+=" ",i+=" ",i+=" Sheet1!$"+Zt(e+t.labels.length)+"$1",i+=' '+gt(t.name)+"",i+=" ",i+=" ",i+=' ';var r=o.chartColors?o.chartColors[s%o.chartColors.length]:null;i+=" ","transparent"===r?i+="":o.chartColorsOpacity?i+=""+wt(r,'')+"":i+=""+wt(r)+"",n===J.LINE?0===o.lineSize?i+="":(i+=''+wt(r)+"",i+=''):o.dataBorder&&(i+=''+wt(o.dataBorder.color)+''),i+=Xt(o.shadow,C),i+=" ",n!==J.RADAR&&(i+=" ",i+=' ',o.dataLabelBkgrdColors&&(i+=" ",i+=" "+wt(r)+"",i+=" "),i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',i+=" "+wt(o.dataLabelColor||v)+"",i+=' ',i+=" ",i+=" ",i+=" ",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=" "),n!==J.LINE&&n!==J.RADAR||(i+="",i+=' ',o.lineDataSymbolSize&&(i+=' '),i+=" ",i+=" "+wt(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e])+"",i+=' '+wt(o.lineDataSymbolLineColor||r)+'',i+=" ",i+=" ",i+=""),(n===J.BAR||n===J.BAR3D)&&1===a.length&&o.chartColors!==I&&1",i+=' ',i+=' ',i+=' ',i+=" ",0===o.lineSize?i+="":n===J.BAR?(i+="",i+=' ',i+=""):(i+="",i+=" ",i+=' ',i+=" ",i+=""),i+=Xt(o.shadow,C),i+=" ",i+=" "}),i+="",o.catLabelFormatCode?(i+=" ",i+=" Sheet1!$A$2:$A$"+(t.labels[0].length+1)+"",i+=" ",i+=" "+(o.catLabelFormatCode||"General")+"",i+=' ',t.labels[0].forEach(function(t,e){i+=''+gt(t)+""}),i+=" ",i+=" "):(i+=" ",i+=" Sheet1!$A$2:$"+Zt(t.labels.length-1)+"$"+(t.labels[0].length+1)+"",i+=" ",i+='\t ',t.labels.forEach(function(t){i+=" ",t.forEach(function(t,e){i+=''+gt(t)+""}),i+=" "}),i+=" ",i+=" "),i+="",i+="",i+=" ",i+=" Sheet1!$"+Zt(e+t.labels.length)+"$2:$"+Zt(e+t.labels.length)+"$"+(t.labels[0].length+1)+"",i+=" ",i+=" "+(o.valLabelFormatCode||o.dataTableFormatCode||"General")+"",i+=' ',t.values.forEach(function(t,e){i+=''+(t||0===t?t:"")+""}),i+=" ",i+=" ",i+="",n===J.LINE&&(i+=''),i+=""}),i+=" ",i+=' ',i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',i+=" "+wt(o.dataLabelColor||v)+"",i+=' ',i+=" ",i+=" ",i+=" ",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=" ",n===J.BAR?(i+=' ',i+=' '):n===J.BAR3D?(i+=' ',i+=' ',i+=' '):n===J.LINE&&(i+=' '),i+=' ',i+=' ',i+=' ',i+="";break;case J.SCATTER:i+="",i+='',i+='',s=-1,a.filter(function(t,e){return 0",i+=' ',i+=' ',i+=" ",i+=" ",i+=" Sheet1!$"+F[t+1]+"$1",i+=' '+r.name+"",i+=" ",i+=" ",i+=" ";var e=o.chartColors[s%o.chartColors.length];if("transparent"===e?i+="":o.chartColorsOpacity?i+=""+wt(e,'')+"":i+=""+wt(e)+"",0===o.lineSize?i+="":(i+=''+wt(e)+"",i+=''),i+=Xt(o.shadow,C),i+=" ",i+="",i+=' ',o.lineDataSymbolSize&&(i+=' '),i+=" ",i+=" "+wt(o.chartColors[t+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):t])+"",i+=' '+wt(o.lineDataSymbolLineColor||o.chartColors[s%o.chartColors.length])+'',i+=" ",i+=" ",i+="",o.showLabel){var n=ht("-xxxx-xxxx-xxxx-xxxxxxxxxxxx");!r.labels[0]||"custom"!==o.dataLabelFormatScatter&&"customXY"!==o.dataLabelFormatScatter||(i+="",r.labels[0].forEach(function(t,e){"custom"!==o.dataLabelFormatScatter&&"customXY"!==o.dataLabelFormatScatter||(i+=" ",i+=' ',i+=" ",i+=" ",i+="\t\t\t",i+="\t\t\t\t",i+="\t\t\t",i+=" \t",i+=" \t",i+="\t\t\t\t",i+="\t\t\t\t\t",i+="\t\t\t\t",i+=" \t",i+=' \t\t',i+=" \t\t"+gt(t)+"",i+=" \t","customXY"!==o.dataLabelFormatScatter||/^ *$/.test(t)||(i+=" \t",i+=' \t\t',i+=" \t\t (",i+=" \t",i+=' \t',i+=' \t\t',i+=" \t\t",i+=" \t\t\t",i+=" \t\t",i+=" \t\t["+gt(r.name)+"",i+=" \t",i+=" \t",i+=' \t\t',i+=" \t\t, ",i+=" \t",i+=' \t',i+=' \t\t',i+=" \t\t",i+=" \t\t\t",i+=" \t\t",i+=" \t\t["+gt(r.name)+"]",i+=" \t",i+=" \t",i+=' \t\t',i+=" \t\t)",i+=" \t",i+=' \t'),i+=" \t",i+=" ",i+=" ",i+=" ",i+=" \t",i+=" \t",i+=" \t\t",i+=" \t",i+=" \t",i+=" ",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+='\t ',i+=" ",i+=' ',i+=' ',i+='\t\t\t',i+=" ",i+="\t\t",i+="")}),i+=""),"XY"===o.dataLabelFormatScatter&&(i+="",i+="\t",i+="\t\t",i+="\t\t",i+="\t\t\t",i+="\t\t",i+="\t \t",i+="\t",i+="\t",i+="\t\t",i+="\t\t\t",i+="\t\t",i+="\t\t",i+="\t\t",i+="\t \t",i+=" \t\t",i+="\t \t",i+='\t \t',i+="\t\t",i+="\t",o.dataLabelPosition&&(i+=' '),i+='\t',i+=' ',i+=' ',i+='\t',i+='\t',i+='\t',i+="\t",i+='\t\t',i+='\t\t\t',i+="\t\t",i+="\t",i+="")}1===a.length&&o.chartColors!==I&&r.values.forEach(function(t,e){var r=t<0?o.invertedColors||o.chartColors||I:o.chartColors||[];i+=" ",i+=' ',i+=' ',i+=' ',i+=" ",0===o.lineSize?i+="":(i+="",i+=' ',i+=""),i+=Xt(o.shadow,C),i+=" ",i+=" "}),i+="",i+=" ",i+=" Sheet1!$A$2:$A$"+(a[0].values.length+1)+"",i+=" ",i+=" General",i+=' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:"")+""}),i+=" ",i+=" ",i+="",i+="",i+=" ",i+=" Sheet1!$"+Zt(t+1)+"$2:$"+Zt(t+1)+"$"+(a[0].values.length+1)+"",i+=" ",i+=" General",i+=' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:"")+""}),i+=" ",i+=" ",i+="",i+='',i+=""}),i+=" ",i+=' ',i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',i+=" "+wt(o.dataLabelColor||v)+"",i+=' ',i+=" ",i+=" ",i+=" ",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=" ",i+=' ',i+=' ',i+="";break;case J.BUBBLE:i+="",i+='',s=-1;var l=1;a.filter(function(t,e){return 0",i+=' ',i+=' ',i+=" ",i+=" ",i+=" Sheet1!$"+F[l]+"$1",i+=' '+r.name+"",i+=" ",i+=" ",i+="";var e=o.chartColors[s%o.chartColors.length];"transparent"===e?i+="":o.chartColorsOpacity?i+=""+wt(e,'')+"":i+=""+wt(e)+"",0===o.lineSize?i+="":o.dataBorder?i+=''+wt(o.dataBorder.color)+'':(i+=''+wt(e)+"",i+=''),i+=Xt(o.shadow,C),i+="",i+="",i+=" ",i+=" Sheet1!$A$2:$A$"+(a[0].values.length+1)+"",i+=" ",i+=" General",i+=' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:"")+""}),i+=" ",i+=" ",i+="",i+="",i+=" ",i+=" Sheet1!$"+Zt(l)+"$2:$"+Zt(l)+"$"+(a[0].values.length+1)+"",l++,i+=" ",i+=" General",i+=' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:"")+""}),i+=" ",i+=" ",i+="",i+=" ",i+=" ",i+=" Sheet1!$"+Zt(l)+"$2:$"+Zt(t+2)+"$"+(r.sizes.length+1)+"",l++,i+=" ",i+=" General",i+='\t ',r.sizes.forEach(function(t,e){i+=''+(t||"")+""}),i+=" ",i+=" ",i+=" ",i+=' ',i+=""}),i+=" ",i+=' ',i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',i+=" "+wt(o.dataLabelColor||v)+"",i+=' ',i+=" ",i+=" ",i+=" ",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=" ",i+=' ',i+=' ',i+="";break;case J.DOUGHNUT:case J.PIE:var r=a[0];i+="",i+=' ',i+="",i+=' ',i+=' ',i+=" ",i+=" ",i+=" Sheet1!$B$1",i+=" ",i+=' ',i+=' '+gt(r.name)+"",i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',i+=' ',o.dataNoEffects?i+="":i+=Xt(o.shadow,C),i+=" ",r.labels[0].forEach(function(t,e){i+="",i+=' ',i+=' ',i+=" ",i+=""+wt(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e])+"",o.dataBorder&&(i+=''+wt(o.dataBorder.color)+''),i+=Xt(o.shadow,C),i+=" ",i+=""}),i+="",r.labels[0].forEach(function(t,e){i+="",i+=' ',i+=' ',i+=" ",i+=" ",i+=" ",i+=' ',i+=" "+wt(o.dataLabelColor||v)+"",i+=' ',i+=" ",i+=" ",i+=" ",n===J.PIE&&o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=" "}),i+=' ',i+="\t",i+="\t ",i+="\t ",i+="\t ",i+="\t\t",i+='\t\t ',i+='\t\t\t',i+="\t\t ",i+="\t\t",i+="\t ",i+="\t",i+=n===J.PIE?'':"",i+='\t',i+='\t',i+='\t',i+='\t',i+='\t',i+='\t',i+=' ',i+="",i+="",i+=" ",i+=" Sheet1!$A$2:$A$"+(r.labels[0].length+1)+"",i+=" ",i+='\t ',r.labels[0].forEach(function(t,e){i+=''+gt(t)+""}),i+=" ",i+=" ",i+="",i+=" ",i+=" ",i+=" Sheet1!$B$2:$B$"+(r.labels[0].length+1)+"",i+=" ",i+='\t ',r.values.forEach(function(t,e){i+=''+(t||0===t?t:"")+""}),i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',n===J.DOUGHNUT&&(i+=' '),i+="";break;default:i+=""}return i}function Qt(e,t,r){var n="";return e._type===J.SCATTER||e._type===J.BUBBLE?n+="":n+="",n+=' ',n+=" ",n+='',!e.catAxisMaxVal&&0!==e.catAxisMaxVal||(n+=''),!e.catAxisMinVal&&0!==e.catAxisMinVal||(n+=''),n+="",n+=' ',n+=' ',n+="none"!==e.catGridLine.style?Kt(e.catGridLine):"",e.showCatAxisTitle&&(n+=qt({color:e.catAxisTitleColor,fontFace:e.catAxisTitleFontFace,fontSize:e.catAxisTitleFontSize,titleRotate:e.catAxisTitleRotate,title:e.catAxisTitle||"Axis Title"})),e._type===J.SCATTER||e._type===J.BUBBLE?n+=' ':n+=' ',e._type===J.SCATTER?(n+=' ',n+=' ',n+=' '):(n+=' ',n+=' ',n+=' '),n+=" ",n+=' ',n+=!1===e.catAxisLineShow?"":""+wt(e.catAxisLineColor||g.color)+"",n+=' ',n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+wt(e.catAxisLabelColor||v)+"",n+=' ',n+=" ",n+=" ",n+=' ',n+=" ",n+=" ",n+=' ',n+=" ',n+=' ',n+=' ',n+=' ',e.catAxisLabelFrequency&&(n+=' '),!e.catLabelFormatCode&&e._type!==J.SCATTER&&e._type!==J.BUBBLE||(e.catLabelFormatCode&&(["catAxisBaseTimeUnit","catAxisMajorTimeUnit","catAxisMinorTimeUnit"].forEach(function(t){!e[t]||"string"==typeof e[t]&&-1!==["days","months","years"].indexOf(e[t].toLowerCase())||(console.warn("`"+t+"` must be one of: 'days','months','years' !"),e[t]=null)}),e.catAxisBaseTimeUnit&&(n+=''),e.catAxisMajorTimeUnit&&(n+=''),e.catAxisMinorTimeUnit&&(n+='')),e.catAxisMajorUnit&&(n+=''),e.catAxisMinorUnit&&(n+='')),e._type===J.SCATTER||e._type===J.BUBBLE?n+="":n+="",n}function Yt(t,e){var r=e===L?"col"===t.barDir?"l":"b":"col"!==t.barDir?"r":"t",n="",a="r"==r||"t"==r?"max":"autoZero",o=e===L?T:k;return n+="",n+=' ',n+=" ",t.valAxisLogScaleBase&&(n+=' '),n+=' ',!t.valAxisMaxVal&&0!==t.valAxisMaxVal||(n+=''),!t.valAxisMinVal&&0!==t.valAxisMinVal||(n+=''),n+=" ",n+=' ',n+=' ',"none"!==t.valGridLine.style&&(n+=Kt(t.valGridLine)),t.showValAxisTitle&&(n+=qt({color:t.valAxisTitleColor,fontFace:t.valAxisTitleFontFace,fontSize:t.valAxisTitleFontSize,titleRotate:t.valAxisTitleRotate,title:t.valAxisTitle||"Axis Title"})),n+="',t._type===J.SCATTER?(n+=' ',n+=' ',n+=' '):(n+=' ',n+=' ',n+=' '),n+=" ",n+=' ',n+=!1===t.valAxisLineShow?"":""+wt(t.valAxisLineColor||g.color)+"",n+=' ',n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+wt(t.valAxisLabelColor||v)+"",n+=' ',n+=" ",n+=" ",n+=' ',n+=" ",n+=" ",n+=' ',n+=' ',n+=' ',t.valAxisMajorUnit&&(n+=' '),t.valAxisDisplayUnit&&(n+=''+(t.valAxisDisplayUnitLabel?"":"")+""),n+=""}function qt(t){var e="left"===t.titleAlign||"right"===t.titleAlign?'':"",r=t.titleRotate?'':"",n=t.fontSize?'sz="'+Math.round(100*t.fontSize)+'"':"",a=!0===t.titleBold?1:0,o=t.titlePos&&t.titlePos.x&&t.titlePos.y?'':"";return"\n\t \n\t \n\t "+r+"\n\t \n\t \n\t "+e+"\n\t \n\t '+wt(t.color||v)+'\n\t \n\t \n\t \n\t \n\t \n\t '+wt(t.color||v)+'\n\t \n\t \n\t '+(gt(t.title)||"")+"\n\t \n\t \n\t \n\t \n\t "+o+'\n\t \n\t'}function Zt(t){var e="";return t<=26?e=F[t]:(e+=F[Math.floor(t/F.length)-1],e+=F[t%F.length]),e}function Xt(t,e){if(!t)return"";if("object"!=typeof t)return console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),"";var r="",n=mt(e,t),a=n.type||"outer",o=At(n.blur),i=At(n.offset),s=Math.round(6e4*n.angle),l=n.color,c=Math.round(1e5*n.opacity);return r+="',r+='',r+='',r+="",r+=""}function Kt(t){var e="";return e+=" ",e+=' ',e+=' ',e+=' ',e+=" ",e+=" ",e+=""}function Jt(t){var o="undefined"!=typeof require&&"undefined"==typeof window?require("fs"):null,i="undefined"!=typeof require&&"undefined"==typeof window?require("https"):null,e=[];return t._relsMedia.filter(function(t){return"online"!==t.type&&!t.data&&(!t.path||t.path&&-1===t.path.indexOf("preencoded"))}).forEach(function(a){e.push(new Promise(function(r,n){if(o&&0!==a.path.indexOf("http"))try{var t=o.readFileSync(a.path);a.data=Buffer.from(t).toString("base64"),r("done")}catch(t){a.data=pt,n('ERROR: Unable to read media: "'+a.path+'"\n'+t.toString())}else if(o&&i&&0===a.path.indexOf("http"))i.get(a.path,function(t){var e="";t.setEncoding("binary"),t.on("data",function(t){return e+=t}),t.on("end",function(){a.data=Buffer.from(e,"binary").toString("base64"),r("done")}),t.on("error",function(t){a.data=pt,n("ERROR! Unable to load image (https.get): "+a.path)})});else{var e=new XMLHttpRequest;e.onload=function(){var t=new FileReader;t.onloadend=function(){a.data=t.result,a.isSvgPng?$t(a).then(function(){r("done")}).catch(function(t){n(t)}):r("done")},t.readAsDataURL(e.response)},e.onerror=function(t){a.data=pt,n("ERROR! Unable to load image (xhr.onerror): "+a.path)},e.open("GET",a.path),e.responseType="blob",e.send()}}))}),t._relsMedia.filter(function(t){return t.isSvgPng&&t.data}).forEach(function(t){o?(t.data=pt,e.push(Promise.resolve().then(function(){return"done"}))):e.push($t(t))}),e}function $t(a){return new Promise(function(r,e){var n=new Image;n.onload=function(){n.width+n.height===0&&n.onerror("h/w=0");var t=document.createElement("CANVAS"),e=t.getContext("2d");t.width=n.width,t.height=n.height,e.drawImage(n,0,0);try{a.data=t.toDataURL(a.type),r("done")}catch(t){n.onerror(t)}t=null},n.onerror=function(t){a.data=pt,e("ERROR! Unable to load image (image.onerror): "+a.path)},n.src="string"==typeof a.data?a.data:pt})}function te(){var a=this;this._version="3.9.0-beta-20210930-2159",this._alignH=Q,this._alignV=q,this._chartType=U,this._outputType=z,this._schemeColor=H,this._shapeType=W,this._charts=J,this._colors=tt,this._shapes=X,this.addNewSlide=function(t){var e=0')})}),n+='',n+='',n+='',n+='',t.forEach(function(t,e){n+='',n+='',t._relsChart.forEach(function(t){n+=' '})}),n+='',n+='',n+='',n+='',e.forEach(function(t,e){n+='',(t._relsChart||[]).forEach(function(t){n+=' '})}),t.forEach(function(t,e){n+=' '}),r._relsChart.forEach(function(t){n+=' '}),r._relsMedia.forEach(function(t){"image"!==t.type&&"online"!==t.type&&"chart"!==t.type&&"m4v"!==t.extn&&-1===n.indexOf(t.type)&&(n+=' ')}),n+=' ',n+=' ',n+=""}(a.slides,a.slideLayouts,a.masterSlide)),n.file("_rels/.rels",''+c+'\n\t\t\n\t\t\n\t\t\n\t\t'),n.file("docProps/app.xml",function(t,e){return''+c+'\n\t0\n\t0\n\tMicrosoft Office PowerPoint\n\tOn-screen Show (16:9)\n\t0\n\t'+t.length+"\n\t"+t.length+'\n\t0\n\t0\n\tfalse\n\t\n\t\t\n\t\t\tFonts Used\n\t\t\t2\n\t\t\tTheme\n\t\t\t1\n\t\t\tSlide Titles\n\t\t\t'+t.length+'\n\t\t\n\t\n\t\n\t\t\n\t\t\tArial\n\t\t\tCalibri\n\t\t\tOffice Theme\n\t\t\t'+t.map(function(t,e){return"Slide "+(e+1)+"\n"}).join("")+"\n\t\t\n\t\n\t"+e+"\n\tfalse\n\tfalse\n\tfalse\n\t16.0000\n\t"}(a.slides,a.company)),n.file("docProps/core.xml",function(t,e,r,n){return'\n\t\n\t\t'+gt(t)+"\n\t\t"+gt(e)+"\n\t\t"+gt(r)+"\n\t\t"+gt(r)+"\n\t\t"+n+'\n\t\t'+(new Date).toISOString().replace(/\.\d\d\dZ/,"Z")+'\n\t\t'+(new Date).toISOString().replace(/\.\d\d\dZ/,"Z")+"\n\t"}(a.title,a.subject,a.author,a.revision)),n.file("ppt/_rels/presentation.xml.rels",function(t){var e=1,r=''+c;r+='',r+='';for(var n=1;n<=t.length;n++)r+='';return r+=''}(a.slides)),n.file("ppt/theme/theme1.xml",''+c+''),n.file("ppt/presentation.xml",function(t){var e=''+c+'';e+='',e+="",t.slides.forEach(function(t){return e+=''}),e+="",e+='',e+='',e+='',e+="";for(var r=1;r<10;r++)e+="";return e+="",t.sections&&0',e+='',t.sections.forEach(function(t){e+='',t._slides.forEach(function(t){return e+=''}),e+=""}),e+="",e+='',e+=""),e+=""}(a)),n.file("ppt/presProps.xml",''+c+''),n.file("ppt/tableStyles.xml",''+c+''),n.file("ppt/viewProps.xml",''+c+''),a.slideLayouts.forEach(function(t,e){n.file("ppt/slideLayouts/slideLayout"+(e+1)+".xml",function(t){return'\n\t\t\n\t\t'+Lt(t)+"\n\t\t"}(t)),n.file("ppt/slideLayouts/_rels/slideLayout"+(e+1)+".xml.rels",function(t,e){return Et(e[t-1],[{target:"../slideMasters/slideMaster1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"}])}(e+1,a.slideLayouts))}),a.slides.forEach(function(t,e){n.file("ppt/slides/slide"+(e+1)+".xml",function(t){return''+c+'"+Lt(t)+""}(t)),n.file("ppt/slides/_rels/slide"+(e+1)+".xml.rels",function(t,e,r){return Et(t[r-1],[{target:"../slideLayouts/slideLayout"+function(t,e,r){for(var n=0;n\n\t\t\n\t\t\t\n\t\t\t\n\t\t'}(e+1))}),n.file("ppt/slideMasters/slideMaster1.xml",function(r,t){var e=t.map(function(t,e){return''}),n=''+c;return n+='',n+=Lt(r),n+='',n+=""+e.join("")+"",n+='',n+=' ',n+=""}(a.masterSlide,a.slideLayouts)),n.file("ppt/slideMasters/_rels/slideMaster1.xml.rels",function(t,e){var r=e.map(function(t,e){return{target:"../slideLayouts/slideLayout"+(e+1)+".xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"}});return r.push({target:"../theme/theme1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),Et(t,r)}(a.masterSlide,a.slideLayouts)),n.file("ppt/notesMasters/notesMaster1.xml",''+c+'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›'),n.file("ppt/notesMasters/_rels/notesMaster1.xml.rels",''+c+'\n\t\t\n\t\t'),a.slideLayouts.forEach(function(t){a.createChartMediaRels(t,n,e)}),a.slides.forEach(function(t){a.createChartMediaRels(t,n,e)}),a.createChartMediaRels(a.masterSlide,n,e),Promise.all(e).then(function(){return"STREAM"===t.outputType?n.generateAsync({type:"nodebuffer",compression:t.compression?"DEFLATE":"STORE"}):t.outputType?n.generateAsync({type:t.outputType}):n.generateAsync({type:"blob",compression:t.compression?"DEFLATE":"STORE"})})})},this.LAYOUTS={LAYOUT_4x3:{name:"screen4x3",width:9144e3,height:6858e3},LAYOUT_16x9:{name:"screen16x9",width:9144e3,height:5143500},LAYOUT_16x10:{name:"screen16x10",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:"custom",width:12192e3,height:6858e3}},this._author="PptxGenJS",this._company="PptxGenJS",this._revision="1",this._subject="PptxGenJS Presentation",this._title="PptxGenJS Presentation",this._presLayout={name:this.LAYOUTS[p].name,_sizeW:this.LAYOUTS[p].width,_sizeH:this.LAYOUTS[p].height,width:this.LAYOUTS[p].width,height:this.LAYOUTS[p].height},this._rtlMode=!1,this._slideLayouts=[{_margin:P,_name:n,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(te.prototype,"layout",{get:function(){return this._layout},set:function(t){var e=this.LAYOUTS[t];if(!e)throw new Error("UNKNOWN-LAYOUT");this._layout=t,this._presLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"author",{get:function(){return this._author},set:function(t){this._author=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"company",{get:function(){return this._company},set:function(t){this._company=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"revision",{get:function(){return this._revision},set:function(t){this._revision=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"subject",{get:function(){return this._subject},set:function(t){this._subject=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"title",{get:function(){return this._title},set:function(t){this._title=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"rtlMode",{get:function(){return this._rtlMode},set:function(t){this._rtlMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"masterSlide",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"slides",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"sections",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"slideLayouts",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"AlignH",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"AlignV",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"ChartType",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"OutputType",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"presLayout",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"SchemeColor",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"ShapeType",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"charts",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"colors",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"shapes",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),te.prototype.stream=function(t){var e=!("object"!=typeof t||!t.hasOwnProperty("compression"))&&t.compression;return this.exportPresentation({compression:e,outputType:"STREAM"})},te.prototype.write=function(t){var e="object"==typeof t&&t.hasOwnProperty("outputType")?t.outputType:t||null,r=!("object"!=typeof t||!t.hasOwnProperty("compression"))&&t.compression;return this.exportPresentation({compression:r,outputType:e})},te.prototype.writeFile=function(t){var e=this,n="undefined"!=typeof require&&"undefined"==typeof window?require("fs"):null;"string"==typeof t&&console.log("Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)");var r="object"==typeof t&&t.hasOwnProperty("fileName")?t.fileName:"string"==typeof t?t:"",a=!("object"!=typeof t||!t.hasOwnProperty("compression"))&&t.compression,o=r?r.toString().toLowerCase().endsWith(".pptx")?r:r+".pptx":"Presentation.pptx";return this.exportPresentation({compression:a,outputType:n?"nodebuffer":null}).then(function(t){return n?new Promise(function(e,r){n.writeFile(o,t,function(t){t?r(t):e(o)})}):e.writeFileToBrowser(o,t)})},te.prototype.addSection=function(t){t?t.title||console.warn("addSection requires a title"):console.warn("addSection requires an argument");var e={_type:"user",_slides:[],title:t.title};t.order?this.sections.splice(t.order,0,e):this._sections.push(e)},te.prototype.addSlide=function(e){var r="string"==typeof e?e:e&&e.masterName?e.masterName:"",t={_name:this.LAYOUTS[p].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(r){var n=this.slideLayouts.filter(function(t){return t._name===r})[0];n&&(t=n)}var a=new Wt({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:t});if(this._slides.push(a),e&&e.sectionTitle){var o=this.sections.filter(function(t){return t.title===e.sectionTitle})[0];o?o._slides.push(a):console.warn('addSlide: unable to find section with title: "'+e.sectionTitle+'"')}else if(this.sections&&0 opts.y = "+a.y),r.addTable(t.rows,{x:a.x||p[3],y:a.y,w:Number(s)/B,colW:c,autoPage:!1}),a.addImage&&r.addImage({path:a.addImage.url,x:a.addImage.x,y:a.addImage.y,w:a.addImage.w,h:a.addImage.h}),a.addShape&&r.addShape(a.addShape.shape,a.addShape.options||{}),a.addTable&&r.addTable(a.addTable.rows,a.addTable.options||{}),a.addText&&r.addText(a.addText.text,a.addText.options||{})})}(this,t,e,e&&e.masterSlideName?this.slideLayouts.filter(function(t){return t._name===e.masterSlideName})[0]:null)},te}(); //# sourceMappingURL=pptxgen.bundle.js.map diff --git a/dist/pptxgen.bundle.js.map b/dist/pptxgen.bundle.js.map index b3959ff88..963427ca6 100644 --- a/dist/pptxgen.bundle.js.map +++ b/dist/pptxgen.bundle.js.map @@ -1 +1 @@ -{"version":3,"names":[],"mappings":"","sources":["pptxgen.bundle.js"],"sourcesContent":["/* PptxGenJS 3.9.0-beta @ 2021-10-01T03:13:35.875Z */\n!function(t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).JSZip=t()}(function(){return function o(i,s,l){function c(e,t){if(!s[e]){if(!i[e]){var r=\"function\"==typeof require&&require;if(!t&&r)return r(e,!0);if(u)return u(e,!0);var n=new Error(\"Cannot find module '\"+e+\"'\");throw n.code=\"MODULE_NOT_FOUND\",n}var a=s[e]={exports:{}};i[e][0].call(a.exports,function(t){return c(i[e][1][t]||t)},a,a.exports,o,i,s,l)}return s[e].exports}for(var u=\"function\"==typeof require&&require,t=0;t>2,o=(3&e)<<4|r>>4,i=1>6:64,s=2>4,r=(15&a)<<4|(o=h.indexOf(t.charAt(s++)))>>2,n=(3&o)<<6|(i=h.indexOf(t.charAt(s++))),c[l++]=e,64!==o&&(c[l++]=r),64!==i&&(c[l++]=n);return c}},{\"./support\":30,\"./utils\":32}],2:[function(t,e,r){\"use strict\";var n=t(\"./external\"),a=t(\"./stream/DataWorker\"),o=t(\"./stream/Crc32Probe\"),i=t(\"./stream/DataLengthProbe\");function s(t,e,r,n,a){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=a}s.prototype={getContentWorker:function(){var t=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i(\"data_length\")),e=this;return t.on(\"end\",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error(\"Bug : uncompressed data size mismatch\")}),t},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo(\"compressedSize\",this.compressedSize).withStreamInfo(\"uncompressedSize\",this.uncompressedSize).withStreamInfo(\"crc32\",this.crc32).withStreamInfo(\"compression\",this.compression)}},s.createWorkerFrom=function(t,e,r){return t.pipe(new o).pipe(new i(\"uncompressedSize\")).pipe(e.compressWorker(r)).pipe(new i(\"compressedSize\")).withStreamInfo(\"compression\",e)},e.exports=s},{\"./external\":6,\"./stream/Crc32Probe\":25,\"./stream/DataLengthProbe\":26,\"./stream/DataWorker\":27}],3:[function(t,e,r){\"use strict\";var n=t(\"./stream/GenericWorker\");r.STORE={magic:\"\\0\\0\",compressWorker:function(t){return new n(\"STORE compression\")},uncompressWorker:function(){return new n(\"STORE decompression\")}},r.DEFLATE=t(\"./flate\")},{\"./flate\":7,\"./stream/GenericWorker\":28}],4:[function(t,e,r){\"use strict\";var n=t(\"./utils\"),i=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?\"string\"!==n.getTypeOf(t)?function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e[o])];return-1^t}(0|e,t,t.length):function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e.charCodeAt(o))];return-1^t}(0|e,t,t.length):0}},{\"./utils\":32}],5:[function(t,e,r){\"use strict\";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){\"use strict\";var n;n=\"undefined\"!=typeof Promise?Promise:t(\"lie\"),e.exports={Promise:n}},{lie:37}],7:[function(t,e,r){\"use strict\";var n=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Uint32Array,a=t(\"pako\"),o=t(\"./utils\"),i=t(\"./stream/GenericWorker\"),s=n?\"uint8array\":\"array\";function l(t,e){i.call(this,\"FlateWorker/\"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic=\"\\b\\0\",o.inherits(l,i),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){i.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(t){return new l(\"Deflate\",t)},r.uncompressWorker=function(){return new l(\"Inflate\",{})}},{\"./stream/GenericWorker\":28,\"./utils\":32,pako:38}],8:[function(t,e,r){\"use strict\";function T(t,e){var r,n=\"\";for(r=0;r>>=8;return n}function a(t,e,r,n,a,o){var i,s,l=t.file,c=t.compression,u=o!==R.utf8encode,p=k.transformTo(\"string\",o(l.name)),f=k.transformTo(\"string\",R.utf8encode(l.name)),d=l.comment,h=k.transformTo(\"string\",o(d)),m=k.transformTo(\"string\",R.utf8encode(d)),g=f.length!==l.name.length,v=m.length!==d.length,A=\"\",y=\"\",b=\"\",x=l.dir,w=l.date,_={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(_.crc32=t.crc32,_.compressedSize=t.compressedSize,_.uncompressedSize=t.uncompressedSize);var C=0;e&&(C|=8),u||!g&&!v||(C|=2048);var P,S=0,L=0;x&&(S|=16),\"UNIX\"===a?(L=798,S|=((P=l.unixPermissions)||(P=x?16893:33204),(65535&P)<<16)):(L=20,S|=63&(l.dosPermissions||0)),i=w.getUTCHours(),i<<=6,i|=w.getUTCMinutes(),i<<=5,i|=w.getUTCSeconds()/2,s=w.getUTCFullYear()-1980,s<<=4,s|=w.getUTCMonth()+1,s<<=5,s|=w.getUTCDate(),g&&(A+=\"up\"+T((y=T(1,1)+T(F(p),4)+f).length,2)+y),v&&(A+=\"uc\"+T((b=T(1,1)+T(F(h),4)+m).length,2)+b);var E=\"\";return E+=\"\\n\\0\",E+=T(C,2),E+=c.magic,E+=T(i,2),E+=T(s,2),E+=T(_.crc32,4),E+=T(_.compressedSize,4),E+=T(_.uncompressedSize,4),E+=T(p.length,2),E+=T(A.length,2),{fileRecord:I.LOCAL_FILE_HEADER+E+p+A,dirRecord:I.CENTRAL_FILE_HEADER+T(L,2)+E+T(h.length,2)+\"\\0\\0\\0\\0\"+T(S,4)+T(n,4)+p+A+h}}var k=t(\"../utils\"),o=t(\"../stream/GenericWorker\"),R=t(\"../utf8\"),F=t(\"../crc32\"),I=t(\"../signature\");function n(t,e,r,n){o.call(this,\"ZipFileWorker\"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}k.inherits(n,o),n.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},n.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=a(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(t){this.accumulate=!1;var e,r=this.streamFiles&&!t.file.dir,n=a(t,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),r)this.push({data:(e=t,I.DATA_DESCRIPTOR+T(e.crc32,4)+T(e.compressedSize,4)+T(e.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return n.transformTo(\"string\",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=a},{\"../utils\":32}],19:[function(t,e,r){\"use strict\";var n=t(\"./Uint8ArrayReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./Uint8ArrayReader\":21}],20:[function(t,e,r){\"use strict\";var n=t(\"./DataReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},a.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},a.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./DataReader\":18}],21:[function(t,e,r){\"use strict\";var n=t(\"./ArrayReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./ArrayReader\":17}],22:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"../support\"),o=t(\"./ArrayReader\"),i=t(\"./StringReader\"),s=t(\"./NodeBufferReader\"),l=t(\"./Uint8ArrayReader\");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),\"string\"!==e||a.uint8array?\"nodebuffer\"===e?new s(t):a.uint8array?new l(n.transformTo(\"uint8array\",t)):new o(n.transformTo(\"array\",t)):new i(t)}},{\"../support\":30,\"../utils\":32,\"./ArrayReader\":17,\"./NodeBufferReader\":19,\"./StringReader\":20,\"./Uint8ArrayReader\":21}],23:[function(t,e,r){\"use strict\";r.LOCAL_FILE_HEADER=\"PK\u0003\u0004\",r.CENTRAL_FILE_HEADER=\"PK\u0001\u0002\",r.CENTRAL_DIRECTORY_END=\"PK\u0005\u0006\",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR=\"PK\u0006\u0007\",r.ZIP64_CENTRAL_DIRECTORY_END=\"PK\u0006\u0006\",r.DATA_DESCRIPTOR=\"PK\u0007\\b\"},{}],24:[function(t,e,r){\"use strict\";var n=t(\"./GenericWorker\"),a=t(\"../utils\");function o(t){n.call(this,\"ConvertWorker to \"+t),this.destType=t}a.inherits(o,n),o.prototype.processChunk=function(t){this.push({data:a.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],25:[function(t,e,r){\"use strict\";var n=t(\"./GenericWorker\"),a=t(\"../crc32\");function o(){n.call(this,\"Crc32Probe\"),this.withStreamInfo(\"crc32\",0)}t(\"../utils\").inherits(o,n),o.prototype.processChunk=function(t){this.streamInfo.crc32=a(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{\"../crc32\":4,\"../utils\":32,\"./GenericWorker\":28}],26:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"./GenericWorker\");function o(t){a.call(this,\"DataLengthProbe for \"+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(o,a),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}a.prototype.processChunk.call(this,t)},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],27:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"./GenericWorker\");function o(t){a.call(this,\"DataWorker\");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=\"\",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}n.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case\"string\":t=this.data.substring(this.index,e);break;case\"uint8array\":t=this.data.subarray(this.index,e);break;case\"array\":case\"nodebuffer\":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],28:[function(t,e,r){\"use strict\";function n(t){this.name=t||\"default\",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit(\"data\",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(\"end\"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit(\"error\",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit(\"error\",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r \"+t:t}},e.exports=n},{}],29:[function(t,e,r){\"use strict\";var c=t(\"../utils\"),a=t(\"./ConvertWorker\"),o=t(\"./GenericWorker\"),u=t(\"../base64\"),n=t(\"../support\"),i=t(\"../external\"),s=null;if(n.nodestream)try{s=t(\"../nodejs/NodejsStreamOutputAdapter\")}catch(t){}function l(t,e,r){var n=e;switch(e){case\"blob\":case\"arraybuffer\":n=\"uint8array\";break;case\"base64\":n=\"string\"}try{this._internalType=n,this._outputType=e,this._mimeType=r,c.checkSupport(n),this._worker=t.pipe(new a(n)),t.lock()}catch(t){this._worker=new o(\"error\"),this._worker.error(t)}}l.prototype={accumulate:function(t){return s=this,l=t,new i.Promise(function(e,r){var n=[],a=s._internalType,o=s._outputType,i=s._mimeType;s.on(\"data\",function(t,e){n.push(t),l&&l(e)}).on(\"error\",function(t){n=[],r(t)}).on(\"end\",function(){try{var t=function(t,e,r){switch(t){case\"blob\":return c.newBlob(c.transformTo(\"arraybuffer\",e),r);case\"base64\":return u.encode(e);default:return c.transformTo(t,e)}}(o,function(t,e){var r,n=0,a=null,o=0;for(r=0;r>>6:(r<65536?e[o++]=224|r>>>12:(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63),e[o++]=128|r>>>6&63),e[o++]=128|63&r);return e}(t)},o.utf8decode=function(t){return l.nodebuffer?s.transformTo(\"nodebuffer\",t).toString(\"utf-8\"):function(t){var e,r,n,a,o=t.length,i=new Array(2*o);for(e=r=0;e>10&1023,i[r++]=56320|1023&n)}return i.length!==r&&(i.subarray?i=i.subarray(0,r):i.length=r),s.applyFromCharCode(i)}(t=s.transformTo(l.uint8array?\"uint8array\":\"array\",t))},s.inherits(i,n),i.prototype.processChunk=function(t){var e=s.transformTo(l.uint8array?\"uint8array\":\"array\",t.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var r=e;(e=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),e.set(r,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var n=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+c[t[r]]>e?r:e}(e),a=e;n!==e.length&&(l.uint8array?(a=e.subarray(0,n),this.leftOver=e.subarray(n,e.length)):(a=e.slice(0,n),this.leftOver=e.slice(n,e.length))),this.push({data:o.utf8decode(a),meta:t.meta})},i.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=i,s.inherits(u,n),u.prototype.processChunk=function(t){this.push({data:o.utf8encode(t.data),meta:t.meta})},o.Utf8EncodeWorker=u},{\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./support\":30,\"./utils\":32}],32:[function(t,e,s){\"use strict\";var l=t(\"./support\"),c=t(\"./base64\"),r=t(\"./nodejsUtils\"),n=t(\"set-immediate-shim\"),u=t(\"./external\");function a(t){return t}function p(t,e){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||\"/\"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(t){var e,r,n,a=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4>>6:(r<65536?e[o++]=224|r>>>12:(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63),e[o++]=128|r>>>6&63),e[o++]=128|63&r);return e},r.buf2binstring=function(t){return u(t,t.length)},r.binstring2buf=function(t){for(var e=new l.Buf8(t.length),r=0,n=e.length;r>10&1023,s[n++]=56320|1023&a)}return u(s,n)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+c[t[r]]>e?r:e}},{\"./common\":41}],43:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){for(var a=65535&t|0,o=t>>>16&65535|0,i=0;0!==r;){for(r-=i=2e3>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,n){var a=s,o=n+r;t^=-1;for(var i=n;i>>8^a[255&(t^e[i])];return-1^t}},{}],46:[function(t,e,r){\"use strict\";var l,f=t(\"../utils/common\"),c=t(\"./trees\"),d=t(\"./adler32\"),h=t(\"./crc32\"),n=t(\"./messages\"),u=0,p=0,m=-2,a=2,g=8,o=286,i=30,s=19,v=2*o+1,A=15,y=3,b=258,x=b+y+1,w=42,_=113;function C(t,e){return t.msg=n[e],e}function P(t){return(t<<1)-(4t.avail_out&&(r=t.avail_out),0!==r&&(f.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function E(t,e){c._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,L(t.strm)}function T(t,e){t.pending_buf[t.pending++]=e}function k(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function R(t,e){var r,n,a=t.max_chain_length,o=t.strstart,i=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-x?t.strstart-(t.w_size-x):0,c=t.window,u=t.w_mask,p=t.prev,f=t.strstart+b,d=c[o+i-1],h=c[o+i];t.prev_length>=t.good_match&&(a>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+i]===h&&c[r+i-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&ol&&0!=--a);return i<=t.lookahead?i:t.lookahead}function F(t){var e,r,n,a,o,i,s,l,c,u,p=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-x)){for(f.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;n=t.head[--e],t.head[e]=p<=n?n-p:0,--r;);for(e=r=p;n=t.prev[--e],t.prev[e]=p<=n?n-p:0,--r;);a+=p}if(0===t.strm.avail_in)break;if(i=t.strm,s=t.window,l=t.strstart+t.lookahead,u=void 0,(c=a)<(u=i.avail_in)&&(u=c),r=0===u?0:(i.avail_in-=u,f.arraySet(s,i.input,i.next_in,u,l),1===i.state.wrap?i.adler=d(i.adler,s,u,l):2===i.state.wrap&&(i.adler=h(i.adler,s,u,l)),i.next_in+=u,i.total_in+=u,u),t.lookahead+=r,t.lookahead+t.insert>=y)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<=y&&(t.ins_h=(t.ins_h<=y)if(n=c._tr_tally(t,t.strstart-t.match_start,t.match_length-y),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=y){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=y&&(t.ins_h=(t.ins_h<=y&&t.match_length<=t.prev_length){for(a=t.strstart+t.lookahead-y,n=c._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-y),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=a&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(F(t),0===t.lookahead&&e===u)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,E(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-x&&(E(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(E(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(E(t,!1),t.strm.avail_out),1)}),new B(4,4,8,4,I),new B(4,5,16,8,I),new B(4,6,32,32,I),new B(4,4,16,16,O),new B(8,16,32,32,O),new B(8,16,128,128,O),new B(8,32,128,256,O),new B(32,128,258,1024,O),new B(32,258,258,4096,O)],r.deflateInit=function(t,e){return z(t,e,g,15,8,0)},r.deflateInit2=z,r.deflateReset=M,r.deflateResetKeep=D,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,p):m},r.deflate=function(t,e){var r,n,a,o;if(!t||!t.state||5>8&255),T(n,n.gzhead.time>>16&255),T(n,n.gzhead.time>>24&255),T(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),T(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(T(n,255&n.gzhead.extra.length),T(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=h(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(T(n,0),T(n,0),T(n,0),T(n,0),T(n,0),T(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),T(n,3),n.status=_);else{var i=g+(n.w_bits-8<<4)<<8;i|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(i|=32),i+=31-i%31,n.status=_,k(n,i),0!==n.strstart&&(k(n,t.adler>>>16),k(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),L(t),a=n.pending,n.pending!==n.pending_buf_size));)T(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),L(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexa&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),L(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexa&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&L(t),n.pending+2<=n.pending_buf_size&&(T(n,255&t.adler),T(n,t.adler>>8&255),t.adler=0,n.status=_)):n.status=_),0!==n.pending){if(L(t),0===t.avail_out)return n.last_flush=-1,p}else if(0===t.avail_in&&P(e)<=P(r)&&4!==e)return C(t,-5);if(666===n.status&&0!==t.avail_in)return C(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==u&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(F(t),0===t.lookahead)){if(e===u)return 1;break}if(t.match_length=0,r=c._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(E(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(E(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(E(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,a,o,i=t.window;;){if(t.lookahead<=b){if(F(t),t.lookahead<=b&&e===u)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=y&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=y?(r=c._tr_tally(t,1,t.match_length-y),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=c._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(E(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(E(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(E(t,!1),0===t.strm.avail_out)?1:2}(n,e):l[n.level].func(n,e);if(3!==s&&4!==s||(n.status=666),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),p;if(2===s&&(1===e?c._tr_align(n):5!==e&&(c._tr_stored_block(n,0,0,!1),3===e&&(S(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),L(t),0===t.avail_out))return n.last_flush=-1,p}return 4!==e?p:n.wrap<=0?1:(2===n.wrap?(T(n,255&t.adler),T(n,t.adler>>8&255),T(n,t.adler>>16&255),T(n,t.adler>>24&255),T(n,255&t.total_in),T(n,t.total_in>>8&255),T(n,t.total_in>>16&255),T(n,t.total_in>>24&255)):(k(n,t.adler>>>16),k(n,65535&t.adler)),L(t),0=r.w_size&&(0===o&&(S(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new f.Buf8(r.w_size),f.arraySet(c,e,u-r.w_size,r.w_size,0),e=c,u=r.w_size),i=t.avail_in,s=t.next_in,l=t.input,t.avail_in=u,t.next_in=0,t.input=e,F(r);r.lookahead>=y;){for(n=r.strstart,a=r.lookahead-(y-1);r.ins_h=(r.ins_h<>>=b=y>>>24,h-=b,0==(b=y>>>16&255))S[o++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=m[(65535&y)+(d&(1<>>=b,h-=b),h<15&&(d+=P[n++]<>>=b=y>>>24,h-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=g[(65535&y)+(d&(1<>>=b,h-=b,(b=o-i)>3,d&=(1<<(h-=x<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function o(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new T.Buf16(320),this.work=new T.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function i(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=M,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new T.Buf32(n),e.distcode=e.distdyn=new T.Buf32(a),e.sane=1,e.back=-1,N):D}function s(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,i(t)):D}function l(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=o.wsize?(T.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(n<(a=o.wsize-o.wnext)&&(a=n),T.arraySet(o.window,e,r-n,a,o.wnext),(n-=a)?(T.arraySet(o.window,e,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,r.check=R(r.check,L,2,0),u=c=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg=\"incorrect header check\",r.mode=30;break}if(8!=(15&c)){t.msg=\"unknown compression method\",r.mode=30;break}if(u-=4,w=8+(15&(c>>>=4)),0===r.wbits)r.wbits=w;else if(w>r.wbits){t.msg=\"invalid window size\",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=R(r.check,L,2,0)),u=c=0,r.mode=3;case 3:for(;u<32;){if(0===s)break t;s--,c+=n[o++]<>>8&255,L[2]=c>>>16&255,L[3]=c>>>24&255,r.check=R(r.check,L,4,0)),u=c=0,r.mode=4;case 4:for(;u<16;){if(0===s)break t;s--,c+=n[o++]<>8),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=R(r.check,L,2,0)),u=c=0,r.mode=5;case 5:if(1024&r.flags){for(;u<16;){if(0===s)break t;s--,c+=n[o++]<>>8&255,r.check=R(r.check,L,2,0)),u=c=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(s<(d=r.length)&&(d=s),d&&(r.head&&(w=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),T.arraySet(r.head.extra,n,o,d,w)),512&r.flags&&(r.check=R(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;for(d=0;w=n[o+d++],r.head&&w&&r.length<65536&&(r.head.name+=String.fromCharCode(w)),w&&d>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;u<32;){if(0===s)break t;s--,c+=n[o++]<>>=7&u,u-=7&u,r.mode=27;break}for(;u<3;){if(0===s)break t;s--,c+=n[o++]<>>=1)){case 0:r.mode=14;break;case 1:if(U(r),r.mode=20,6!==e)break;c>>>=2,u-=2;break t;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=30}c>>>=2,u-=2;break;case 14:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break t;s--,c+=n[o++]<>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=30;break}if(r.length=65535&c,u=c=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(s>>=5,u-=5,r.ndist=1+(31&c),c>>>=5,u-=5,r.ncode=4+(15&c),c>>>=4,u-=4,286>>=3,u-=3}for(;r.have<19;)r.lens[E[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},_=I(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg=\"invalid code lengths set\",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,A=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>>=g,u-=g,r.lens[r.have++]=A;else{if(16===A){for(P=g+2;u>>=g,u-=g,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=30;break}w=r.lens[r.have-1],d=3+(3&c),c>>>=2,u-=2}else if(17===A){for(P=g+3;u>>=g)),c>>>=3,u-=3}else{for(P=g+7;u>>=g)),c>>>=7,u-=7}if(r.have+d>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=30;break}for(;d--;)r.lens[r.have++]=w}}if(30===r.mode)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=30;break}if(r.lenbits=9,C={bits:r.lenbits},_=I(O,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg=\"invalid literal/lengths set\",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},_=I(B,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,_){t.msg=\"invalid distances set\",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=s&&258<=l){t.next_out=i,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=u,F(t,f),i=t.next_out,a=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,u=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;v=(S=r.lencode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>y)])>>>16&255,A=65535&S,!(y+(g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>>=y,u-=y,r.back+=y}if(c>>>=g,u-=g,r.back+=g,r.length=A,0===v){r.mode=26;break}if(32&v){r.back=-1,r.mode=12;break}if(64&v){t.msg=\"invalid literal/length code\",r.mode=30;break}r.extra=15&v,r.mode=22;case 22:if(r.extra){for(P=r.extra;u>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;v=(S=r.distcode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>y)])>>>16&255,A=65535&S,!(y+(g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>>=y,u-=y,r.back+=y}if(c>>>=g,u-=g,r.back+=g,64&v){t.msg=\"invalid distance code\",r.mode=30;break}r.offset=A,r.extra=15&v,r.mode=24;case 24:if(r.extra){for(P=r.extra;u>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=30;break}r.mode=25;case 25:if(0===l)break t;if(d=f-l,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break}h=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=a,h=i-r.offset,d=r.length;for(ld?(m=F[I+i[y]],E[T+i[y]]):(m=96,0),l=1<>C)+(c-=l)]=h<<24|m<<16|g|0,0!==c;);for(l=1<>=1;if(0!==l?(L&=l-1,L+=l):L=0,y++,0==--k[A]){if(A===x)break;A=e[r+i[y]]}if(w>>7)]}function _(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function C(t,e,r){t.bi_valid>a-r?(t.bi_buf|=e<>a-t.bi_valid,t.bi_valid+=r-a):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function L(t,e,r){var n,a,o=new Array(g+1),i=0;for(n=1;n<=g;n++)o[n]=i=i+r[n-1]<<1;for(a=0;a<=e;a++){var s=t[2*a+1];0!==s&&(t[2*a]=S(o[s]++,s))}}function E(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function T(t){8>1;1<=r;r--)R(t,o,r);for(a=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*a]=o[2*r]+o[2*n],t.depth[a]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=a,t.heap[1]=a++,R(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,a,o,i,s,l=e.dyn_tree,c=e.max_code,u=e.stat_desc.static_tree,p=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,h=e.stat_desc.max_length,m=0;for(o=0;o<=g;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)h<(o=l[2*l[2*(n=t.heap[r])+1]+1]+1)&&(o=h,m++),l[2*n+1]=o,c>=7;n<30;n++)for(b[n]=a<<7,t=0;t<1<>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),i=function(t){var e;for(O(t,t.dyn_ltree,t.l_desc.max_code),O(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=a&&(a=o)):a=o=r+5,r+4<=a&&-1!==e?D(t,e,r,n):4===t.strategy||o===a?(C(t,2+(n?1:0),3),F(t,p,f)):(C(t,4+(n?1:0),3),function(t,e,r,n){var a;for(C(t,e-257,5),C(t,r-1,5),C(t,n-4,4),a=0;a>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(h[r]+256+1)]++,t.dyn_dtree[2*w(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){var e;C(t,2,3),P(t,256,p),16===(e=t).bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{\"../utils/common\":41}],53:[function(t,e,r){\"use strict\";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){\"use strict\";e.exports=\"function\"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)})}).call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)}),function o(i,s,l){function c(e,t){if(!s[e]){if(!i[e]){var r=\"function\"==typeof require&&require;if(!t&&r)return r(e,!0);if(u)return u(e,!0);var n=new Error(\"Cannot find module '\"+e+\"'\");throw n.code=\"MODULE_NOT_FOUND\",n}var a=s[e]={exports:{}};i[e][0].call(a.exports,function(t){return c(i[e][1][t]||t)},a,a.exports,o,i,s,l)}return s[e].exports}for(var u=\"function\"==typeof require&&require,t=0;ti;)o.call(t,n=a[i++])&&e.push(n);return e}},{104:104,107:107,108:108}],62:[function(t,e,r){var m=t(70),g=t(52),v=t(72),A=t(118),y=t(54),b=\"prototype\",x=function(t,e,r){var n,a,o,i,s=t&x.F,l=t&x.G,c=t&x.S,u=t&x.P,p=t&x.B,f=l?m:c?m[e]||(m[e]={}):(m[e]||{})[b],d=l?g:g[e]||(g[e]={}),h=d[b]||(d[b]={});for(n in l&&(r=e),r)o=((a=!s&&f&&void 0!==f[n])?f:r)[n],i=p&&a?y(o,m):u&&\"function\"==typeof o?y(Function.call,o):o,f&&A(f,n,o,t&x.U),d[n]!=o&&v(d,n,i),u&&h[n]!=o&&(h[n]=o)};m.core=g,x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128,e.exports=x},{118:118,52:52,54:54,70:70,72:72}],63:[function(t,e,r){var n=t(152)(\"match\");e.exports=function(e){var r=/./;try{\"/./\"[e](r)}catch(t){try{return r[n]=!1,!\"/./\"[e](r)}catch(t){}}return!0}},{152:152}],64:[function(t,e,r){arguments[4][23][0].apply(r,arguments)},{23:23}],65:[function(t,e,r){\"use strict\";t(248);var u=t(118),p=t(72),f=t(64),d=t(57),h=t(152),m=t(120),g=h(\"species\"),v=!f(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:\"7\"},t},\"7\"!==\"\".replace(t,\"$
\")}),A=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r=\"ab\".split(t);return 2===r.length&&\"a\"===r[0]&&\"b\"===r[1]}();e.exports=function(r,t,e){var n=h(r),o=!f(function(){var t={};return t[n]=function(){return 7},7!=\"\"[r](t)}),a=o?!f(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},\"split\"===r&&(e.constructor={},e.constructor[g]=function(){return e}),e[n](\"\"),!t}):void 0;if(!o||!a||\"replace\"===r&&!v||\"split\"===r&&!A){var i=/./[n],s=e(d,n,\"\"[r],function(t,e,r,n,a){return e.exec===m?o&&!a?{done:!0,value:i.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),l=s[0],c=s[1];u(String.prototype,r,l),p(RegExp.prototype,n,2==t?function(t,e){return c.call(t,this,e)}:function(t){return c.call(t,this)})}}},{118:118,120:120,152:152,248:248,57:57,64:64,72:72}],66:[function(t,e,r){\"use strict\";var n=t(38);e.exports=function(){var t=n(this),e=\"\";return t.global&&(e+=\"g\"),t.ignoreCase&&(e+=\"i\"),t.multiline&&(e+=\"m\"),t.unicode&&(e+=\"u\"),t.sticky&&(e+=\"y\"),e}},{38:38}],67:[function(t,e,r){\"use strict\";var h=t(79),m=t(81),g=t(141),v=t(54),A=t(152)(\"isConcatSpreadable\");e.exports=function t(e,r,n,a,o,i,s,l){for(var c,u,p=o,f=0,d=!!s&&v(s,l,3);fdocument.F=Object<\\/script>\"),t.close(),u=t.F;r--;)delete u[c][s[r]];return u()};t.exports=Object.create||function(t,e){var r;return null!==t?(a[c]=o(t),r=new a,a[c]=null,r[l]=t):r=u(),void 0===e?r:i(r,e)}},{100:100,125:125,38:38,59:59,60:60,73:73}],99:[function(t,e,r){arguments[4][29][0].apply(r,arguments)},{143:143,29:29,38:38,58:58,74:74}],100:[function(t,e,r){var i=t(99),s=t(38),l=t(107);e.exports=t(58)?Object.defineProperties:function(t,e){s(t);for(var r,n=l(e),a=n.length,o=0;oa;)i(n,r=e[a++])&&(~l(o,r)||o.push(r));return o}},{125:125,140:140,41:41,71:71}],107:[function(t,e,r){var n=t(106),a=t(60);e.exports=Object.keys||function(t){return n(t,a)}},{106:106,60:60}],108:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],109:[function(t,e,r){var a=t(62),o=t(52),i=t(64);e.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],n={};n[t]=e(r),a(a.S+a.F*i(function(){r(1)}),\"Object\",n)}},{52:52,62:62,64:64}],110:[function(t,e,r){var l=t(58),c=t(107),u=t(140),p=t(108).f;e.exports=function(s){return function(t){for(var e,r=u(t),n=c(r),a=n.length,o=0,i=[];o>>0||(i.test(r)?16:10))}:n},{134:134,135:135,70:70}],114:[function(t,e,r){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],115:[function(t,e,r){var n=t(38),a=t(81),o=t(96);e.exports=function(t,e){if(n(t),a(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},{38:38,81:81,96:96}],116:[function(t,e,r){arguments[4][30][0].apply(r,arguments)},{30:30}],117:[function(t,e,r){var a=t(118);e.exports=function(t,e,r){for(var n in e)a(t,n,e[n],r);return t}},{118:118}],118:[function(t,e,r){var o=t(70),i=t(72),s=t(71),l=t(147)(\"src\"),n=t(69),a=\"toString\",c=(\"\"+n).split(a);t(52).inspectSource=function(t){return n.call(t)},(e.exports=function(t,e,r,n){var a=\"function\"==typeof r;a&&(s(r,\"name\")||i(r,\"name\",e)),t[e]!==r&&(a&&(s(r,l)||i(r,l,t[e]?\"\"+t[e]:c.join(String(e)))),t===o?t[e]=r:n?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,a,function(){return\"function\"==typeof this&&this[l]||n.call(this)})},{147:147,52:52,69:69,70:70,71:71,72:72}],119:[function(t,e,r){\"use strict\";var a=t(47),o=RegExp.prototype.exec;e.exports=function(t,e){var r=t.exec;if(\"function\"==typeof r){var n=r.call(t,e);if(\"object\"!=typeof n)throw new TypeError(\"RegExp exec method returned something other than an Object or null\");return n}if(\"RegExp\"!==a(t))throw new TypeError(\"RegExp#exec called on incompatible receiver\");return o.call(t,e)}},{47:47}],120:[function(t,e,r){\"use strict\";var n,a,i=t(66),s=RegExp.prototype.exec,l=String.prototype.replace,o=s,c=\"lastIndex\",u=(n=/a/,a=/b*/g,s.call(n,\"a\"),s.call(a,\"a\"),0!==n[c]||0!==a[c]),p=void 0!==/()??/.exec(\"\")[1];(u||p)&&(o=function(t){var e,r,n,a,o=this;return p&&(r=new RegExp(\"^\"+o.source+\"$(?!\\\\s)\",i.call(o))),u&&(e=o[c]),n=s.call(o,t),u&&n&&(o[c]=o.global?n.index+n[0].length:e),p&&n&&1\"+a+\"\"}var a=t(62),o=t(64),i=t(57),s=/\"/g;e.exports=function(e,t){var r={};r[e]=t(n),a(a.P+a.F*o(function(){var t=\"\"[e]('\"');return t!==t.toLowerCase()||3l&&(c=c.slice(0,l)),n?c+a:a+c}},{133:133,141:141,57:57}],133:[function(t,e,r){\"use strict\";var a=t(139),o=t(57);e.exports=function(t){var e=String(o(this)),r=\"\",n=a(t);if(n<0||n==1/0)throw RangeError(\"Count can't be negative\");for(;0>>=1)&&(e+=e))1&n&&(r+=e);return r}},{139:139,57:57}],134:[function(t,e,r){function n(t,e,r){var n={},a=s(function(){return!!l[t]()||\"​…\"!=\"​…\"[t]()}),o=n[t]=a?e(p):l[t];r&&(n[r]=o),i(i.P+i.F*a,\"String\",n)}var i=t(62),a=t(57),s=t(64),l=t(135),o=\"[\"+l+\"]\",c=RegExp(\"^\"+o+o+\"*\"),u=RegExp(o+o+\"*$\"),p=n.trim=function(t,e){return t=String(a(t)),1&e&&(t=t.replace(c,\"\")),2&e&&(t=t.replace(u,\"\")),t};e.exports=n},{135:135,57:57,62:62,64:64}],135:[function(t,e,r){e.exports=\"\\t\\n\\v\\f\\r   ᠎              \\u2028\\u2029\\ufeff\"},{}],136:[function(t,e,r){function n(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}}function a(t){n.call(t.data)}var o,i,s,l=t(54),c=t(76),u=t(73),p=t(59),f=t(70),d=f.process,h=f.setImmediate,m=f.clearImmediate,g=f.MessageChannel,v=f.Dispatch,A=0,y={},b=\"onreadystatechange\";h&&m||(h=function(t){for(var e=[],r=1;r>1,u=23===e?T(2,-24)-T(2,-77):0,p=0,f=t<0||0===t&&1/t<0?1:0;for((t=E(t))!=t||t===S?(a=t!=t?1:0,n=l):(n=k(R(t)/F),t*(o=T(2,-n))<1&&(n--,o*=2),2<=(t+=1<=n+c?u/o:u*T(2,1-c))*o&&(n++,o/=2),l<=n+c?(a=0,n=l):1<=n+c?(a=(t*o-1)*T(2,e),n+=c):(a=t*T(2,c-1)*T(2,e),n=0));8<=e;i[p++]=255&a,a/=256,e-=8);for(n=n<>1,s=a-7,l=r-1,c=t[l--],u=127&c;for(c>>=7;0>=-s,s+=e;0>8&255]}function G(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function H(t){return M(t,52,8)}function V(t){return M(t,23,4)}function Q(t,e,r){m(t[b],e,{get:function(){return this[r]}})}function Y(t,e,r,n){var a=d(+r);if(a+e>t[N])throw P(x);var o=t[B]._b,i=a+t[D],s=o.slice(i,i+e);return n?s:s.reverse()}function q(t,e,r,n,a,o){var i=d(+r);if(i+e>t[N])throw P(x);for(var s=t[B]._b,l=i+t[D],c=n(+a),u=0;uJ;)(Z=K[J++])in w||s(w,Z,L[Z]);o||(X.constructor=w)}var $=new _(new w(2)),tt=_[b].setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||l(_[b],{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else w=function(t){u(this,w,A);var e=d(t);this._b=g.call(new Array(e),0),this[N]=e},_=function(t,e,r){u(this,_,y),u(t,w,y);var n=t[N],a=p(e);if(a<0||n>24},getUint8:function(t){return Y(this,1,t)[0]},getInt16:function(t,e){var r=Y(this,2,t,e);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t,e){var r=Y(this,2,t,e);return r[1]<<8|r[0]},getInt32:function(t,e){return U(Y(this,4,t,e))},getUint32:function(t,e){return U(Y(this,4,t,e))>>>0},getFloat32:function(t,e){return z(Y(this,4,t,e),23,4)},getFloat64:function(t,e){return z(Y(this,8,t,e),52,8)},setInt8:function(t,e){q(this,1,t,j,e)},setUint8:function(t,e){q(this,1,t,j,e)},setInt16:function(t,e,r){q(this,2,t,W,e,r)},setUint16:function(t,e,r){q(this,2,t,W,e,r)},setInt32:function(t,e,r){q(this,4,t,G,e,r)},setUint32:function(t,e,r){q(this,4,t,G,e,r)},setFloat32:function(t,e,r){q(this,4,t,V,e,r)},setFloat64:function(t,e,r){q(this,8,t,H,e,r)}});v(w,A),v(_,y),s(_[b],i.VIEW,!0),r[A]=w,r[y]=_},{103:103,117:117,124:124,138:138,139:139,141:141,146:146,37:37,40:40,58:58,64:64,70:70,72:72,89:89,99:99}],146:[function(t,e,r){for(var n,a=t(70),o=t(72),i=t(147),s=i(\"typed_array\"),l=i(\"view\"),c=!(!a.ArrayBuffer||!a.DataView),u=c,p=0,f=\"Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array\".split(\",\");p<9;)(n=a[f[p++]])?(o(n.prototype,s,!0),o(n.prototype,l,!0)):u=!1;e.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},{147:147,70:70,72:72}],147:[function(t,e,r){var n=0,a=Math.random();e.exports=function(t){return\"Symbol(\".concat(void 0===t?\"\":t,\")_\",(++n+a).toString(36))}},{}],148:[function(t,e,r){var n=t(70).navigator;e.exports=n&&n.userAgent||\"\"},{70:70}],149:[function(t,e,r){var n=t(81);e.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError(\"Incompatible receiver, \"+e+\" required!\");return t}},{81:81}],150:[function(t,e,r){var n=t(70),a=t(52),o=t(89),i=t(151),s=t(99).f;e.exports=function(t){var e=a.Symbol||(a.Symbol=o?{}:n.Symbol||{});\"_\"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},{151:151,52:52,70:70,89:89,99:99}],151:[function(t,e,r){r.f=t(152)},{152:152}],152:[function(t,e,r){var n=t(126)(\"wks\"),a=t(147),o=t(70).Symbol,i=\"function\"==typeof o;(e.exports=function(t){return n[t]||(n[t]=i&&o[t]||(i?o:a)(\"Symbol.\"+t))}).store=n},{126:126,147:147,70:70}],153:[function(t,e,r){var n=t(47),a=t(152)(\"iterator\"),o=t(88);e.exports=t(52).getIteratorMethod=function(t){if(null!=t)return t[a]||t[\"@@iterator\"]||o[n(t)]}},{152:152,47:47,52:52,88:88}],154:[function(t,e,r){var n=t(62);n(n.P,\"Array\",{copyWithin:t(39)}),t(35)(\"copyWithin\")},{35:35,39:39,62:62}],155:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(4);n(n.P+n.F*!t(128)([].every,!0),\"Array\",{every:function(t,e){return a(this,t,e)}})},{128:128,42:42,62:62}],156:[function(t,e,r){var n=t(62);n(n.P,\"Array\",{fill:t(40)}),t(35)(\"fill\")},{35:35,40:40,62:62}],157:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(2);n(n.P+n.F*!t(128)([].filter,!0),\"Array\",{filter:function(t,e){return a(this,t,e)}})},{128:128,42:42,62:62}],158:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(6),o=\"findIndex\",i=!0;o in[]&&Array(1)[o](function(){i=!1}),n(n.P+n.F*i,\"Array\",{findIndex:function(t,e){return a(this,t,1=t.length?(this._t=void 0,a(1)):a(0,\"keys\"==e?r:\"values\"==e?t[r]:[r,t[r]])},\"values\"),o.Arguments=o.Array,n(\"keys\"),n(\"values\"),n(\"entries\")},{140:140,35:35,85:85,87:87,88:88}],165:[function(t,e,r){\"use strict\";var n=t(62),a=t(140),o=[].join;n(n.P+n.F*(t(77)!=Object||!t(128)(o)),\"Array\",{join:function(t){return o.call(a(this),void 0===t?\",\":t)}})},{128:128,140:140,62:62,77:77}],166:[function(t,e,r){\"use strict\";var n=t(62),o=t(140),i=t(139),s=t(141),l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(c||!t(128)(l)),\"Array\",{lastIndexOf:function(t,e){if(c)return l.apply(this,arguments)||0;var r=o(this),n=s(r.length),a=n-1;for(1>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{62:62}],189:[function(t,e,r){var n=t(62),a=Math.exp;n(n.S,\"Math\",{cosh:function(t){return(a(t=+t)+a(-t))/2}})},{62:62}],190:[function(t,e,r){var n=t(62),a=t(90);n(n.S+n.F*(a!=Math.expm1),\"Math\",{expm1:a})},{62:62,90:90}],191:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{fround:t(91)})},{62:62,91:91}],192:[function(t,e,r){var n=t(62),l=Math.abs;n(n.S,\"Math\",{hypot:function(t,e){for(var r,n,a=0,o=0,i=arguments.length,s=0;o>>16)*o+a*(65535&n>>>16)<<16>>>0)}})},{62:62,64:64}],194:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{log10:function(t){return Math.log(t)*Math.LOG10E}})},{62:62}],195:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{log1p:t(92)})},{62:62,92:92}],196:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{log2:function(t){return Math.log(t)/Math.LN2}})},{62:62}],197:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{sign:t(93)})},{62:62,93:93}],198:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S+n.F*t(64)(function(){return-2e-17!=!Math.sinh(-2e-17)}),\"Math\",{sinh:function(t){return Math.abs(t=+t)<1?(a(t)-a(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},{62:62,64:64,90:90}],199:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S,\"Math\",{tanh:function(t){var e=a(t=+t),r=a(-t);return e==1/0?1:r==1/0?-1:(e-r)/(o(t)+o(-t))}})},{62:62,90:90}],200:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{trunc:function(t){return(0w;w++)o(g,b=x[w])&&!o(m,b)&&f(m,b,p(g,b));(m.prototype=v).constructor=m,t(118)(a,h,m)}},{101:101,103:103,118:118,134:134,143:143,48:48,58:58,64:64,70:70,71:71,75:75,98:98,99:99}],202:[function(t,e,r){var n=t(62);n(n.S,\"Number\",{EPSILON:Math.pow(2,-52)})},{62:62}],203:[function(t,e,r){var n=t(62),a=t(70).isFinite;n(n.S,\"Number\",{isFinite:function(t){return\"number\"==typeof t&&a(t)}})},{62:62,70:70}],204:[function(t,e,r){var n=t(62);n(n.S,\"Number\",{isInteger:t(80)})},{62:62,80:80}],205:[function(t,e,r){var n=t(62);n(n.S,\"Number\",{isNaN:function(t){return t!=t}})},{62:62}],206:[function(t,e,r){var n=t(62),a=t(80),o=Math.abs;n(n.S,\"Number\",{isSafeInteger:function(t){return a(t)&&o(t)<=9007199254740991}})},{62:62,80:80}],207:[function(t,e,r){var n=t(62);n(n.S,\"Number\",{MAX_SAFE_INTEGER:9007199254740991})},{62:62}],208:[function(t,e,r){var n=t(62);n(n.S,\"Number\",{MIN_SAFE_INTEGER:-9007199254740991})},{62:62}],209:[function(t,e,r){var n=t(62),a=t(112);n(n.S+n.F*(Number.parseFloat!=a),\"Number\",{parseFloat:a})},{112:112,62:62}],210:[function(t,e,r){var n=t(62),a=t(113);n(n.S+n.F*(Number.parseInt!=a),\"Number\",{parseInt:a})},{113:113,62:62}],211:[function(t,e,r){\"use strict\";function c(t,e){for(var r=-1,n=e;++r<6;)n+=t*i[r],i[r]=n%1e7,n=o(n/1e7)}function u(t){for(var e=6,r=0;0<=--e;)r+=i[e],i[e]=o(r/t),r=r%t*1e7}function p(){for(var t=6,e=\"\";0<=--t;)if(\"\"!==e||0===t||0!==i[t]){var r=String(i[t]);e=\"\"===e?r:e+h.call(\"0\",7-r.length)+r}return e}var n=t(62),f=t(139),d=t(34),h=t(133),a=1..toFixed,o=Math.floor,i=[0,0,0,0,0,0],m=\"Number.toFixed: incorrect invocation!\",g=function(t,e,r){return 0===e?r:e%2==1?g(t,e-1,r*t):g(t*t,e/2,r)};n(n.P+n.F*(!!a&&(\"0.000\"!==8e-5.toFixed(3)||\"1\"!==.9.toFixed(0)||\"1.25\"!==1.255.toFixed(2)||\"1000000000000000128\"!==(0xde0b6b3a7640080).toFixed(0))||!t(64)(function(){a.call({})})),\"Number\",{toFixed:function(t){var e,r,n,a,o=d(this,m),i=f(t),s=\"\",l=\"0\";if(i<0||20t;)e(n[t++]);u._c=[],u._n=!1,r&&!u._h&&N(u)})}}function o(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),a(e,!0))}var i,s,l,c,u=r(89),f=r(70),d=r(54),h=r(47),m=r(62),g=r(81),v=r(33),A=r(37),y=r(68),b=r(127),x=r(136).set,w=r(95)(),_=r(96),C=r(114),P=r(148),S=r(115),L=\"Promise\",E=f.TypeError,T=f.process,k=T&&T.versions,R=k&&k.v8||\"\",F=f[L],I=\"process\"==h(T),O=s=_.f,B=!!function(){try{var t=F.resolve(1),e=(t.constructor={})[r(152)(\"species\")]=function(t){t(n,n)};return(I||\"function\"==typeof PromiseRejectionEvent)&&t.then(n)instanceof e&&0!==R.indexOf(\"6.6\")&&-1===P.indexOf(\"Chrome/66\")}catch(t){}}(),N=function(o){x.call(f,function(){var t,e,r,n=o._v,a=D(o);if(a&&(t=C(function(){I?T.emit(\"unhandledRejection\",n,o):(e=f.onunhandledrejection)?e({promise:o,reason:n}):(r=f.console)&&r.error&&r.error(\"Unhandled promise rejection\",n)}),o._h=I||D(o)?2:1),o._a=void 0,a&&t.e)throw t.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},M=function(e){x.call(f,function(){var t;I?T.emit(\"rejectionHandled\",e):(t=f.onrejectionhandled)&&t({promise:e,reason:e._v})})},z=function(t){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E(\"Promise can't be resolved itself\");(r=p(t))?w(function(){var e={_w:n,_d:!1};try{r.call(t,d(z,e,1),d(o,e,1))}catch(t){o.call(e,t)}}):(n._v=t,n._s=1,a(n,!1))}catch(t){o.call({_w:n,_d:!1},t)}}};B||(F=function(t){A(this,F,L,\"_h\"),v(t),i.call(this);try{t(d(z,this,1),d(o,this,1))}catch(t){o.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(117)(F.prototype,{then:function(t,e){var r=O(b(this,F));return r.ok=\"function\"!=typeof t||t,r.fail=\"function\"==typeof e&&e,r.domain=I?T.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&a(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),l=function(){var t=new i;this.promise=t,this.resolve=d(z,t,1),this.reject=d(o,t,1)},_.f=O=function(t){return t===F||t===c?new l(t):s(t)}),m(m.G+m.W+m.F*!B,{Promise:F}),r(124)(F,L),r(123)(L),c=r(52)[L],m(m.S+m.F*!B,L,{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),m(m.S+m.F*(u||!B),L,{resolve:function(t){return S(u&&this===c?F:this,t)}}),m(m.S+m.F*!(B&&r(86)(function(t){F.all(t).catch(n)})),L,{all:function(t){var i=this,e=O(i),s=e.resolve,l=e.reject,r=C(function(){var n=[],a=0,o=1;y(t,!1,function(t){var e=a++,r=!1;n.push(void 0),o++,i.resolve(t).then(function(t){r||(r=!0,n[e]=t,--o||s(n))},l)}),--o||s(n)});return r.e&&l(r.v),e.promise},race:function(t){var e=this,r=O(e),n=r.reject,a=C(function(){y(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return a.e&&n(a.v),r.promise}})},{114:114,115:115,117:117,123:123,124:124,127:127,136:136,148:148,152:152,33:33,37:37,47:47,52:52,54:54,62:62,68:68,70:70,81:81,86:86,89:89,95:95,96:96}],233:[function(t,e,r){var n=t(62),o=t(33),i=t(38),s=(t(70).Reflect||{}).apply,l=Function.apply;n(n.S+n.F*!t(64)(function(){s(function(){})}),\"Reflect\",{apply:function(t,e,r){var n=o(t),a=i(r);return s?s(n,e,a):l.call(n,e,a)}})},{33:33,38:38,62:62,64:64,70:70}],234:[function(t,e,r){var n=t(62),l=t(98),c=t(33),u=t(38),p=t(81),a=t(64),f=t(46),d=(t(70).Reflect||{}).construct,h=a(function(){function t(){}return!(d(function(){},[],t)instanceof t)}),m=!a(function(){d(function(){})});n(n.S+n.F*(h||m),\"Reflect\",{construct:function(t,e,r){c(t),u(e);var n=arguments.length<3?t:c(r);if(m&&!h)return d(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var a=[null];return a.push.apply(a,e),new(f.apply(t,a))}var o=n.prototype,i=l(p(o)?o:Object.prototype),s=Function.apply.call(t,i,e);return p(s)?s:i}})},{33:33,38:38,46:46,62:62,64:64,70:70,81:81,98:98}],235:[function(t,e,r){var n=t(99),a=t(62),o=t(38),i=t(143);a(a.S+a.F*t(64)(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),\"Reflect\",{defineProperty:function(t,e,r){o(t),e=i(e,!0),o(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},{143:143,38:38,62:62,64:64,99:99}],236:[function(t,e,r){var n=t(62),a=t(101).f,o=t(38);n(n.S,\"Reflect\",{deleteProperty:function(t,e){var r=a(o(t),e);return!(r&&!r.configurable)&&delete t[e]}})},{101:101,38:38,62:62}],237:[function(t,e,r){\"use strict\";function n(t){this._t=o(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)}var a=t(62),o=t(38);t(84)(n,\"Object\",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),a(a.S,\"Reflect\",{enumerate:function(t){return new n(t)}})},{38:38,62:62,84:84}],238:[function(t,e,r){var n=t(101),a=t(62),o=t(38);a(a.S,\"Reflect\",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},{101:101,38:38,62:62}],239:[function(t,e,r){var n=t(62),a=t(105),o=t(38);n(n.S,\"Reflect\",{getPrototypeOf:function(t){return a(o(t))}})},{105:105,38:38,62:62}],240:[function(t,e,r){var s=t(101),l=t(105),c=t(71),n=t(62),u=t(81),p=t(38);n(n.S,\"Reflect\",{get:function t(e,r,n){var a,o,i=arguments.length<3?e:n;return p(e)===i?e[r]:(a=s.f(e,r))?c(a,\"value\")?a.value:void 0!==a.get?a.get.call(i):void 0:u(o=l(e))?t(o,r,i):void 0}})},{101:101,105:105,38:38,62:62,71:71,81:81}],241:[function(t,e,r){var n=t(62);n(n.S,\"Reflect\",{has:function(t,e){return e in t}})},{62:62}],242:[function(t,e,r){var n=t(62),a=t(38),o=Object.isExtensible;n(n.S,\"Reflect\",{isExtensible:function(t){return a(t),!o||o(t)}})},{38:38,62:62}],243:[function(t,e,r){var n=t(62);n(n.S,\"Reflect\",{ownKeys:t(111)})},{111:111,62:62}],244:[function(t,e,r){var n=t(62),a=t(38),o=Object.preventExtensions;n(n.S,\"Reflect\",{preventExtensions:function(t){a(t);try{return o&&o(t),!0}catch(t){return!1}}})},{38:38,62:62}],245:[function(t,e,r){var n=t(62),a=t(122);a&&n(n.S,\"Reflect\",{setPrototypeOf:function(t,e){a.check(t,e);try{return a.set(t,e),!0}catch(t){return!1}}})},{122:122,62:62}],246:[function(t,e,r){var c=t(99),u=t(101),p=t(105),f=t(71),n=t(62),d=t(116),h=t(38),m=t(81);n(n.S,\"Reflect\",{set:function t(e,r,n,a){var o,i,s=arguments.length<4?e:a,l=u.f(h(e),r);if(!l){if(m(i=p(e)))return t(i,r,n,s);l=d(0)}if(f(l,\"value\")){if(!1===l.writable||!m(s))return!1;if(o=u.f(s,r)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,c.f(s,r,o)}else c.f(s,r,d(0,n));return!0}return void 0!==l.set&&(l.set.call(s,n),!0)}})},{101:101,105:105,116:116,38:38,62:62,71:71,81:81,99:99}],247:[function(t,e,r){var n=t(70),o=t(75),a=t(99).f,i=t(103).f,s=t(82),l=t(66),c=n.RegExp,u=c,p=c.prototype,f=/a/g,d=/a/g,h=new c(f)!==f;if(t(58)&&(!h||t(64)(function(){return d[t(152)(\"match\")]=!1,c(f)!=f||c(d)==d||\"/a/i\"!=c(f,\"i\")}))){function m(e){e in c||a(c,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})}c=function(t,e){var r=this instanceof c,n=s(t),a=void 0===e;return!r&&n&&t.constructor===c&&a?t:o(h?new u(n&&!a?t.source:t,e):u((n=t instanceof c)?t.source:t,n&&a?l.call(t):e),r?this:p,c)};for(var g=i(u),v=0;g.length>v;)m(g[v++]);(p.constructor=c).prototype=p,t(118)(n,\"RegExp\",c)}t(123)(\"RegExp\")},{103:103,118:118,123:123,152:152,58:58,64:64,66:66,70:70,75:75,82:82,99:99}],248:[function(t,e,r){\"use strict\";var n=t(120);t(62)({target:\"RegExp\",proto:!0,forced:n!==/./.exec},{exec:n})},{120:120,62:62}],249:[function(t,e,r){t(58)&&\"g\"!=/./g.flags&&t(99).f(RegExp.prototype,\"flags\",{configurable:!0,get:t(66)})},{58:58,66:66,99:99}],250:[function(t,e,r){\"use strict\";var p=t(38),f=t(141),d=t(36),h=t(119);t(65)(\"match\",1,function(n,a,c,u){return[function(t){var e=n(this),r=null==t?void 0:t[a];return void 0!==r?r.call(t,e):new RegExp(t)[a](String(e))},function(t){var e=u(c,t,this);if(e.done)return e.value;var r=p(t),n=String(this);if(!r.global)return h(r,n);for(var a,o=r.unicode,i=[],s=r.lastIndex=0;null!==(a=h(r,n));){var l=String(a[0]);\"\"===(i[s]=l)&&(r.lastIndex=d(n,f(r.lastIndex),o)),s++}return 0===s?null:i}]})},{119:119,141:141,36:36,38:38,65:65}],251:[function(t,e,r){\"use strict\";var C=t(38),n=t(142),P=t(141),S=t(139),L=t(36),E=t(119),T=Math.max,k=Math.min,f=Math.floor,d=/\\$([$&`']|\\d\\d?|<[^>]*>)/g,h=/\\$([$&`']|\\d\\d?)/g;t(65)(\"replace\",2,function(a,o,x,w){return[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):x.call(String(r),t,e)},function(t,e){var r=w(x,t,this,e);if(r.done)return r.value;var n=C(t),a=String(this),o=\"function\"==typeof e;o||(e=String(e));var i=n.global;if(i){var s=n.unicode;n.lastIndex=0}for(var l=[];;){var c=E(n,a);if(null===c)break;if(l.push(c),!i)break;\"\"===String(c[0])&&(n.lastIndex=L(a,P(n.lastIndex),s))}for(var u,p=\"\",f=0,d=0;d>>0,u=new RegExp(t.source,s+\"g\");(n=f.call(u,r))&&!(l<(a=u[m])&&(i.push(r.slice(l,n.index)),1=c));)u[m]===n.index&&u[m]++;return l===r[h]?!o&&u.test(\"\")||i.push(\"\"):i.push(r.slice(l)),i[h]>c?i.slice(0,c):i}:\"0\"[i](void 0,0)[h]?function(t,e){return void 0===t&&0===e?[]:g.call(this,t,e)}:g,[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):A.call(String(r),t,e)},function(t,e){var r=v(A,t,this,e,A!==g);if(r.done)return r.value;var n=y(t),a=String(this),o=b(n,RegExp),i=n.unicode,s=(n.ignoreCase?\"i\":\"\")+(n.multiline?\"m\":\"\")+(n.unicode?\"u\":\"\")+(S?\"y\":\"g\"),l=new o(S?n:\"^(?:\"+n.source+\")\",s),c=void 0===e?P:e>>>0;if(0==c)return[];if(0===a.length)return null===_(l,a)?[a]:[];for(var u=0,p=0,f=[];p>10),e%1024+56320))}return r.join(\"\")}})},{137:137,62:62}],266:[function(t,e,r){\"use strict\";var n=t(62),a=t(130);n(n.P+n.F*t(63)(\"includes\"),\"String\",{includes:function(t,e){return!!~a(this,t,\"includes\").indexOf(t,1=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{129:129,85:85}],269:[function(t,e,r){\"use strict\";t(131)(\"link\",function(e){return function(t){return e(this,\"a\",\"href\",t)}})},{131:131}],270:[function(t,e,r){var n=t(62),i=t(140),s=t(141);n(n.S,\"String\",{raw:function(t){for(var e=i(t.raw),r=s(e.length),n=arguments.length,a=[],o=0;oa;)u(Y,e=r[a++])||e==G||e==h||n.push(e);return n}function l(t){for(var e,r=t===Z,n=M(r?q:L(t)),a=[],o=0;n.length>o;)!u(Y,e=n[o++])||r&&!u(Z,e)||a.push(Y[e]);return a}var c=t(70),u=t(71),p=t(58),f=t(62),d=t(118),h=t(94).KEY,m=t(64),g=t(126),v=t(124),A=t(147),y=t(152),b=t(151),x=t(150),w=t(61),_=t(79),C=t(38),P=t(81),S=t(142),L=t(140),E=t(143),T=t(116),k=t(98),R=t(102),F=t(101),I=t(104),O=t(99),B=t(107),N=F.f,D=O.f,M=R.f,z=c.Symbol,U=c.JSON,j=U&&U.stringify,W=\"prototype\",G=y(\"_hidden\"),H=y(\"toPrimitive\"),V={}.propertyIsEnumerable,Q=g(\"symbol-registry\"),Y=g(\"symbols\"),q=g(\"op-symbols\"),Z=Object[W],X=\"function\"==typeof z&&!!I.f,K=c.QObject,J=!K||!K[W]||!K[W].findChild,$=p&&m(function(){return 7!=k(D({},\"a\",{get:function(){return D(this,\"a\",{value:7}).a}})).a})?function(t,e,r){var n=N(Z,e);n&&delete Z[e],D(t,e,r),n&&t!==Z&&D(Z,e,n)}:D,tt=X&&\"symbol\"==typeof z.iterator?function(t){return\"symbol\"==typeof t}:function(t){return t instanceof z},et=function(t,e,r){return t===Z&&et(q,e,r),C(t),e=E(e,!0),C(r),u(Y,e)?(r.enumerable?(u(t,G)&&t[G][e]&&(t[G][e]=!1),r=k(r,{enumerable:T(0,!1)})):(u(t,G)||D(t,G,T(1,{})),t[G][e]=!0),$(t,e,r)):D(t,e,r)};X||(d((z=function(t){if(this instanceof z)throw TypeError(\"Symbol is not a constructor!\");var e=A(0nt;)y(rt[nt++]);for(var at=B(y.store),ot=0;at.length>ot;)x(at[ot++]);f(f.S+f.F*!X,\"Symbol\",{for:function(t){return u(Q,t+=\"\")?Q[t]:Q[t]=z(t)},keyFor:function(t){if(!tt(t))throw TypeError(t+\" is not a symbol!\");for(var e in Q)if(Q[e]===t)return e},useSetter:function(){J=!0},useSimple:function(){J=!1}}),f(f.S+f.F*!X,\"Object\",{create:function(t,e){return void 0===e?k(t):a(k(t),e)},defineProperty:et,defineProperties:a,getOwnPropertyDescriptor:i,getOwnPropertyNames:s,getOwnPropertySymbols:l});var it=m(function(){I.f(1)});f(f.S+f.F*it,\"Object\",{getOwnPropertySymbols:function(t){return I.f(S(t))}}),U&&f(f.S+f.F*(!X||m(function(){var t=z();return\"[null]\"!=j([t])||\"{}\"!=j({a:t})||\"{}\"!=j(Object(t))})),\"JSON\",{stringify:function(t){for(var e,r,n=[t],a=1;as;)void 0!==(r=a(n,e=o[s++]))&&p(i,e,r);return i}})},{101:101,111:111,140:140,53:53,62:62}],296:[function(t,e,r){var n=t(62),a=t(110)(!1);n(n.S,\"Object\",{values:function(t){return a(t)}})},{110:110,62:62}],297:[function(t,e,r){\"use strict\";var n=t(62),a=t(52),o=t(70),i=t(127),s=t(115);n(n.P+n.R,\"Promise\",{finally:function(e){var r=i(this,a.Promise||o.Promise),t=\"function\"==typeof e;return this.then(t?function(t){return s(r,e()).then(function(){return t})}:e,t?function(t){return s(r,e()).then(function(){throw t})}:e)}})},{115:115,127:127,52:52,62:62,70:70}],298:[function(t,e,r){\"use strict\";var n=t(62),a=t(132),o=t(148),i=/Version\\/10\\.\\d+(\\.\\d+)?( Mobile\\/\\w+)? Safari\\//.test(o);n(n.P+n.F*i,\"String\",{padEnd:function(t,e){return a(this,t,1/g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\")}function vt(t){return\"number\"==typeof t&&100\"+e+\"\":\"\"}function _t(t){var e=\"solid\",r=\"\",n=\"\",a=\"\";if(t)switch(\"string\"==typeof t?r=t:(t.type&&(e=t.type),t.color&&(r=t.color),t.alpha&&(n+=''),t.transparency&&(n+='')),e){case\"solid\":a+=\"\"+wt(r,n)+\"\";break;default:a+=\"\"}return a}function Ct(t){return t._rels.length+t._relsChart.length+t._relsMedia.length+1}function Pt(t,c,n,e){void 0===t&&(t=[]),void 0===c&&(c={});var r,u=P,p=1*B,f=0,a=0,d=[],o=dt(c.x,\"X\",n),h=dt(c.y,\"Y\",n),i=dt(c.w,\"X\",n),m=dt(c.h,\"Y\",n),s=i;if(c.verbose&&(console.log(\"[[VERBOSE MODE]]\"),console.log(\"|-- TABLE PROPS --------------------------------------------------------|\"),console.log(\"| presLayout.width ................................ = \"+(n.width/B).toFixed(1)),console.log(\"| presLayout.height ............................... = \"+(n.height/B).toFixed(1)),console.log(\"| tableProps.x .................................... = \"+(\"number\"==typeof c.x?(c.x/B).toFixed(1):c.x)),console.log(\"| tableProps.y .................................... = \"+(\"number\"==typeof c.y?(c.y/B).toFixed(1):c.y)),console.log(\"| tableProps.w .................................... = \"+(\"number\"==typeof c.w?(c.w/B).toFixed(1):c.w)),console.log(\"| tableProps.h .................................... = \"+(\"number\"==typeof c.h?(c.h/B).toFixed(1):c.h)),console.log(\"| tableProps.slideMargin .......................... = \"+(c.slideMargin||\"\")),console.log(\"| tableProps.margin ............................... = \"+c.margin),console.log(\"| tableProps.colW ................................. = \"+c.colW),console.log(\"| tableProps.autoPageSlideStartY .................. = \"+c.autoPageSlideStartY),console.log(\"| tableProps.autoPageCharWeight ................... = \"+c.autoPageCharWeight),console.log(\"|-- CALCULATIONS -------------------------------------------------------|\"),console.log(\"| tablePropX ...................................... = \"+o/B),console.log(\"| tablePropY ...................................... = \"+h/B),console.log(\"| tablePropW ...................................... = \"+i/B),console.log(\"| tablePropH ...................................... = \"+m/B),console.log(\"| tableCalcW ...................................... = \"+s/B)),c.slideMargin||0===c.slideMargin||(c.slideMargin=P[0]),e&&void 0!==e._margin?Array.isArray(e._margin)?u=e._margin:isNaN(Number(e._margin))||(u=[Number(e._margin),Number(e._margin),Number(e._margin),Number(e._margin)]):!c.slideMargin&&0!==c.slideMargin||(Array.isArray(c.slideMargin)?u=c.slideMargin:isNaN(c.slideMargin)||(u=[c.slideMargin,c.slideMargin,c.slideMargin,c.slideMargin])),c.verbose&&console.log(\"| arrInchMargins .................................. = [\"+u.join(\", \")+\"]\"),(t[0]||[]).forEach(function(t){var e=(t=t||{_type:at.tablecell}).options||null;a+=Number(e&&e.colspan?e.colspan:1)}),c.verbose&&console.log(\"| numCols ......................................... = \"+a),!i&&c.colW&&(s=Array.isArray(c.colW)?c.colW.reduce(function(t,e){return t+e})*B:c.colW*a||0,c.verbose&&console.log(\"| tableCalcW ...................................... = \"+s/B)),r=s||vt((o?o/B:u[1])+u[3]),c.verbose&&console.log(\"| emuSlideTabW .................................... = \"+(r/B).toFixed(1)),!c.colW||!Array.isArray(c.colW))if(c.colW&&!isNaN(Number(c.colW))){var l=[];(t[0]||[]).forEach(function(){return l.push(c.colW)}),c.colW=[],l.forEach(function(t){Array.isArray(c.colW)&&c.colW.push(t)})}else{c.colW=[];for(var g=0;ge?e=At(t.options.margin[0]):c.margin&&c.margin[0]&&At(c.margin[0])>e&&(e=At(c.margin[0])),t.options.margin&&t.options.margin[2]&&At(t.options.margin[2])>r?r=At(t.options.margin[2]):c.margin&&c.margin[2]&&At(c.margin[2])>r&&(r=At(c.margin[2]))):(t.options.margin&&t.options.margin[0]&&vt(t.options.margin[0])>e?e=vt(t.options.margin[0]):c.margin&&c.margin[0]&&vt(c.margin[0])>e&&(e=vt(c.margin[0])),t.options.margin&&t.options.margin[2]&&vt(t.options.margin[2])>r?r=vt(t.options.margin[2]):c.margin&&c.margin[2]&&vt(c.margin[2])>r&&(r=vt(c.margin[2])))});var t=0;if(0===d.length&&(t=h||vt(u[0])),0 \"+JSON.stringify(c)),s.push(c),c=[])),0a&&(o.push(e),e=[],r=\"\"),e.push(t),r+=t.text.toString()}),0=a[l]._lines.length&&(l=e)}),a.forEach(function(n,a){n._lines.forEach(function(t,e){if(f+n._lineHeight>p){c.verbose&&(console.log(\"\\n|-----------------------------------------------------------------------|\"),console.log(\"|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => \"+(f/B).toFixed(2)+\" + \"+(n._lineHeight/B).toFixed(2)+\" > \"+p/B),console.log(\"|-----------------------------------------------------------------------|\\n\\n\")),0r&&(r=t._lineHeight)}),v.rows.push(e),f+=r})}var r=s[a];Array.isArray(r.text)&&(r.text=r.text.concat(t)),a===l&&(f+=n._lineHeight),s.forEach(function(t,e){e'},contain:function(t,e){var r=t.h/t.w,n=r'},crop:function(t,e){var r=e.x,n=t.w-(e.x+e.w),a=e.y,o=t.h-(e.y+e.h);return''}};function Lt(R){var F=R._name?'':\"\",I=1;return R._bkgdImgRid?F+='':R.background&&R.background.color?F+=\"\"+_t(R.background)+\"\":!R.bkgd&&R._name&&R._name===n&&(F+=''),F+=\"\",F+='',F+='',F+='',R._slideObjects.forEach(function(n,t){var e,r,a=0,o=0,i=dt(\"75%\",\"X\",R._presLayout),s=0,l=\"\";switch(void 0!==R._slideLayout&&void 0!==R._slideLayout._slideObjects&&n.options&&n.options.placeholder&&(r=R._slideLayout._slideObjects.filter(function(t){return t.options.placeholder===n.options.placeholder})[0]),n.options=n.options||{},void 0!==n.options.x&&(a=dt(n.options.x,\"X\",R._presLayout)),void 0!==n.options.y&&(o=dt(n.options.y,\"Y\",R._presLayout)),void 0!==n.options.w&&(i=dt(n.options.w,\"X\",R._presLayout)),void 0!==n.options.h&&(s=dt(n.options.h,\"Y\",R._presLayout)),r&&(!r.options.x&&0!==r.options.x||(a=dt(r.options.x,\"X\",R._presLayout)),!r.options.y&&0!==r.options.y||(o=dt(r.options.y,\"Y\",R._presLayout)),!r.options.w&&0!==r.options.w||(i=dt(r.options.w,\"X\",R._presLayout)),!r.options.h&&0!==r.options.h||(s=dt(r.options.h,\"Y\",R._presLayout))),n.options.flipH&&(l+=' flipH=\"1\"'),n.options.flipV&&(l+=' flipV=\"1\"'),n.options.rotate&&(l+=' rot=\"'+yt(n.options.rotate)+'\"'),n._type){case at.table:var c,u=n.arrTabRows,f=n.options,p=0,d=0;u[0].forEach(function(t){c=t.options||null,p+=c&&c.colspan?Number(c.colspan):1});var h='';if(h+=' ',h+='',h+='',Array.isArray(f.colW)){h+=\"\";for(var m=0;m'}h+=\"\"}else{d=f.colW?f.colW:B,n.options.w&&!f.colW&&(d=Math.round((\"number\"==typeof n.options.w?n.options.w:1)/p)),h+=\"\";for(var v=0;v';h+=\"\"}u.forEach(function(o){for(var i,s,l,t=function(t){var e=o[t],r=null===(i=e.options)||void 0===i?void 0:i.colspan,n=null===(s=e.options)||void 0===s?void 0:s.rowspan;if(r&&1',t.forEach(function(t){var e,r,n=t,a={rowSpan:1<(null===(e=n.options)||void 0===e?void 0:e.rowspan)?n.options.rowspan:void 0,gridSpan:1<(null===(r=n.options)||void 0===r?void 0:r.colspan)?n.options.colspan:void 0,vMerge:n._vmerge?1:void 0,hMerge:n._hmerge?1:void 0},o=Object.keys(a).map(function(t){return[t,a[t]]}).filter(function(t){return t[0],!!t[1]}).map(function(t){return t[0]+'=\"'+t[1]+'\"'}).join(\" \");if(o=o&&\" \"+o,n._hmerge||n._vmerge)h+=\"\";else{var i=n.options||{};n.options=i,[\"align\",\"bold\",\"border\",\"color\",\"fill\",\"fontFace\",\"fontSize\",\"margin\",\"underline\",\"valign\"].forEach(function(t){f[t]&&!i[t]&&0!==i[t]&&(i[t]=f[t])});var s=i.valign?' anchor=\"'+i.valign.replace(/^c$/i,\"ctr\").replace(/^m$/i,\"ctr\").replace(\"center\",\"ctr\").replace(\"middle\",\"ctr\").replace(\"top\",\"t\").replace(\"btm\",\"b\").replace(\"bottom\",\"b\")+'\"':\"\",l=n._optImp&&n._optImp.fill&&n._optImp.fill.color?n._optImp.fill.color:n._optImp&&n._optImp.fill&&\"string\"==typeof n._optImp.fill?n._optImp.fill:\"\",c=(l=l||i.fill&&i.fill.color?i.fill.color:i.fill&&\"string\"==typeof i.fill?i.fill:\"\")?\"\"+wt(l)+\"\":\"\",u=0===i.margin||i.margin?i.margin:N;Array.isArray(u)||\"number\"!=typeof u||(u=[u,u,u,u]);var p=\"\";p=1<=u[0]?' marL=\"'+At(u[3])+'\" marR=\"'+At(u[1])+'\" marT=\"'+At(u[0])+'\" marB=\"'+At(u[2])+'\"':' marL=\"'+vt(u[3])+'\" marR=\"'+vt(u[1])+'\" marT=\"'+vt(u[0])+'\" marB=\"'+vt(u[2])+'\"',h+=\"\"+Rt(n)+\"\",i.border&&Array.isArray(i.border)&&[{idx:3,name:\"lnL\"},{idx:1,name:\"lnR\"},{idx:0,name:\"lnT\"},{idx:2,name:\"lnB\"}].forEach(function(t){\"none\"!==i.border[t.idx].type?(h+=\"',h+=\"\"+wt(i.border[t.idx].color)+\"\",h+='',h+=\"\"):h+=\"\"}),h+=c,h+=\" \",h+=\" \"}}),h+=\"\"}),h+=\" \",h+=\" \",h+=\" \",F+=h+=\"\",I++;break;case at.text:case at.placeholder:var A=n.options.shapeName?gt(n.options.shapeName):\"Object\"+(t+1);if(n.options.line||0!==s||(s=.3*B),n.options._bodyProp||(n.options._bodyProp={}),n.options.margin&&Array.isArray(n.options.margin)?(n.options._bodyProp.lIns=At(n.options.margin[0]||0),n.options._bodyProp.rIns=At(n.options.margin[1]||0),n.options._bodyProp.bIns=At(n.options.margin[2]||0),n.options._bodyProp.tIns=At(n.options.margin[3]||0)):\"number\"==typeof n.options.margin&&(n.options._bodyProp.lIns=At(n.options.margin),n.options._bodyProp.rIns=At(n.options.margin),n.options._bodyProp.bIns=At(n.options.margin),n.options._bodyProp.tIns=At(n.options.margin)),F+=\"\",F+='',n.options.hyperlink&&n.options.hyperlink.url&&(F+=''),n.options.hyperlink&&n.options.hyperlink.slide&&(F+=''),F+=\"\",F+=\"':\"/>\"),F+=\"\"+(\"placeholder\"===n._type?Ft(n):Ft(r))+\"\",F+=\"\",F+=\"\",F+='',F+='',\"custGeom\"===n.shape)F+=\"\",F+=\"\",F+=\"\",F+=\"\",F+=\"\",F+=\"\",F+='',F+=\"\",F+='',null===(e=n.options.points)||void 0===e||e.map(function(t,e){if(\"curve\"in t)switch(t.curve.type){case\"arc\":F+='';break;case\"cubic\":F+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t';break;case\"quadratic\":F+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'}else\"close\"in t?F+=\"\":t.moveTo||0===e?F+='':F+=''}),F+=\"\",F+=\"\",F+=\"\";else{if(F+='',n.options.rectRadius)F+='';else if(n.options.angleRange){for(var y=0;y<2;y++){var b=n.options.angleRange[y];F+=''}n.options.arcThicknessRatio&&(F+='')}F+=\"\"}F+=n.options.fill?_t(n.options.fill):\"\",n.options.line&&(F+=n.options.line.width?'':\"\",n.options.line.color&&(F+=_t(n.options.line)),n.options.line.dashType&&(F+=''),n.options.line.beginArrowType&&(F+=''),n.options.line.endArrowType&&(F+=''),F+=\"\"),n.options.shadow&&(n.options.shadow.type=n.options.shadow.type||\"outer\",n.options.shadow.blur=At(n.options.shadow.blur||8),n.options.shadow.offset=At(n.options.shadow.offset||4),n.options.shadow.angle=Math.round(6e4*(n.options.shadow.angle||270)),n.options.shadow.opacity=Math.round(1e5*(n.options.shadow.opacity||.75)),n.options.shadow.color=n.options.shadow.color||D.color,F+=\"\",F+=\"',F+='',F+='',F+=\"\",F+=\"\"),F+=\"\",F+=Rt(n),F+=\"\";break;case at.image:var x=n.options,w=x.sizing,_=x.rounding,C=i,P=s;if(F+=\"\",F+=\" \",F+='',n.hyperlink&&n.hyperlink.url&&(F+=''),n.hyperlink&&n.hyperlink.slide&&(F+=''),F+=\" \",F+=' ',F+=\" \"+Ft(r)+\"\",F+=\" \",F+=\"\",(R._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0]&&\"svg\"===(R._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0].extn?(F+='',F+=\" \",F+=' ',F+=' ',F+=\" \",F+=\" \",F+=\"\"):F+='',w&&w.type){var S=w.w?dt(w.w,\"X\",R._presLayout):i,L=w.h?dt(w.h,\"Y\",R._presLayout):s,E=dt(w.x||0,\"X\",R._presLayout),T=dt(w.y||0,\"Y\",R._presLayout);F+=St[w.type]({w:C,h:P},{w:S,h:L,x:E,y:T}),C=S,P=L}else F+=\" \";F+=\"\",F+=\"\",F+=\" \",F+=' ',F+=' ',F+=\" \",F+=' ',F+=\"\",F+=\"\";break;case at.media:\"online\"===n.mtype?(F+=\"\",F+=\" \",F+=' ',F+=\" \",F+=\" \",F+=' ',F+=\" \",F+=\" \",F+=' '):(F+=\"\",F+=\" \",F+=' ',F+=' ',F+=\" \",F+=' ',F+=\" \",F+=' ',F+=' ',F+=\" \",F+=\" \",F+=\" \",F+=\" \",F+=' '),F+=\" \",F+=\" \",F+=' ',F+=' ',F+=\" \",F+=' ',F+=\" \",F+=\"\";break;case at.chart:var k=n.options;F+=\"\",F+=\" \",F+=' ',F+=\" \",F+=\" \"+Ft(r)+\"\",F+=\" \",F+=' ',F+=' ',F+=' ',F+=' ',F+=\" \",F+=\" \",F+=\"\";break;default:F+=\"\"}}),R._slideNumberProps&&(R._slideNumberProps.align||(R._slideNumberProps.align=\"left\"),F+=' ',F+=\"\",F+=\"\",F+=\" \",(R._slideNumberProps.fontFace||R._slideNumberProps.fontSize||R._slideNumberProps.color)&&(F+='',R._slideNumberProps.color&&(F+=_t(R._slideNumberProps.color)),R._slideNumberProps.fontFace&&(F+=''),F+=\"\"),F+=\"\",F+='',R._slideNumberProps.align.startsWith(\"l\")?F+='':R._slideNumberProps.align.startsWith(\"c\")?F+='':R._slideNumberProps.align.startsWith(\"r\")?F+='':F+='',F+='',F+=\"\"),F+=\"\",F+=\"\"}function Et(t,e){var r=0,n=''+c+'';return t._rels.forEach(function(t){r=Math.max(r,t.rId),-1':n+='':-1')}),(t._relsChart||[]).forEach(function(t){r=Math.max(r,t.rId),n+=''}),(t._relsMedia||[]).forEach(function(t){r=Math.max(r,t.rId),-1':-1':n+='':-1':n+='':-1':n+='')}),e.forEach(function(t,e){n+=''}),n+=\"\"}function Tt(t,e){var r=\"\",n=\"\",a=\"\",o=\"\",i=e?\"a:lvl1pPr\":\"a:pPr\",s=At(u),l=\"<\"+i+(t.options.rtlMode?' rtl=\"1\" ':\"\");if(t.options.align)switch(t.options.align){case\"left\":l+=' algn=\"l\"';break;case\"right\":l+=' algn=\"r\"';break;case\"center\":l+=' algn=\"ctr\"';break;case\"justify\":l+=' algn=\"just\"';break;default:l+=\"\"}if(t.options.lineSpacing?n='':t.options.lineSpacingMultiple&&(n=''),t.options.indentLevel&&!isNaN(Number(t.options.indentLevel))&&0'),t.options.paraSpaceAfter&&!isNaN(Number(t.options.paraSpaceAfter))&&0'),\"object\"==typeof t.options.bullet)if(t&&t.options&&t.options.bullet&&t.options.bullet.indent&&(s=At(t.options.bullet.indent)),t.options.bullet.type)\"number\"===t.options.bullet.type.toString().toLowerCase()&&(l+=' marL=\"'+(t.options.indentLevel&&0');else if(t.options.bullet.characterCode){var c=\"&#x\"+t.options.bullet.characterCode+\";\";!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.characterCode)&&(console.warn(\"Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!\"),c=lt.DEFAULT),l+=' marL=\"'+(t.options.indentLevel&&0'}else if(t.options.bullet.code){c=\"&#x\"+t.options.bullet.code+\";\";!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.code)&&(console.warn(\"Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!\"),c=lt.DEFAULT),l+=' marL=\"'+(t.options.indentLevel&&0'}else l+=' marL=\"'+(t.options.indentLevel&&0';else!0===t.options.bullet?(l+=' marL=\"'+(t.options.indentLevel&&0'):!1===t.options.bullet&&(l+=' indent=\"0\" marL=\"0\"',r=\"\");t.options.tabStops&&Array.isArray(t.options.tabStops)&&(o=\"\"+t.options.tabStops.map(function(t){return''}).join(\"\")+\"\");return l+=\">\"+n+a+r+o,e&&(l+=kt(t.options,!0)),l+=\"\"}function kt(t,e){var r,n=\"\",a=e?\"a:defRPr\":\"a:rPr\";if(n+=\"<\"+a+' lang=\"'+(t.lang?t.lang:\"en-US\")+'\"'+(t.lang?' altLang=\"en-US\"':\"\"),n+=t.fontSize?' sz=\"'+Math.round(t.fontSize)+'00\"':\"\",n+=t.hasOwnProperty(\"bold\")?' b=\"'+(t.bold?1:0)+'\"':\"\",n+=t.hasOwnProperty(\"italic\")?' i=\"'+(t.italic?1:0)+'\"':\"\",n+=t.hasOwnProperty(\"strike\")?' strike=\"'+(\"string\"==typeof t.strike?t.strike:\"sngStrike\")+'\"':\"\",\"object\"==typeof t.underline&&(null===(r=t.underline)||void 0===r?void 0:r.style)?n+=' u=\"'+t.underline.style+'\"':\"string\"==typeof t.underline?n+=' u=\"'+t.underline+'\"':t.hyperlink&&(n+=' u=\"sng\"'),t.baseline?n+=' baseline=\"'+Math.round(50*t.baseline)+'\"':t.subscript?n+=' baseline=\"-40000\"':t.superscript&&(n+=' baseline=\"30000\"'),n+=t.charSpacing?' spc=\"'+Math.round(100*t.charSpacing)+'\" kern=\"0\"':\"\",n+=' dirty=\"0\">',(t.color||t.fontFace||t.outline||\"object\"==typeof t.underline&&t.underline.color)&&(t.outline&&\"object\"==typeof t.outline&&(n+=''+_t(t.outline.color||\"FFFFFF\")+\"\"),t.color&&(n+=_t(t.color)),t.highlight&&(n+=\"\"+wt(t.highlight)+\"\"),\"object\"==typeof t.underline&&t.underline.color&&(n+=\"\"+_t(t.underline.color)+\"\"),t.glow&&(n+=\"\"+function(t,e){var r=\"\",n=mt(e,t);return r+='',r+=wt(n.color,''),r+=\"\"}(t.glow,S)+\"\"),t.fontFace&&(n+='')),t.hyperlink){if(\"object\"!=typeof t.hyperlink)throw new Error(\"ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` \");if(!t.hyperlink.url&&!t.hyperlink.slide)throw new Error(\"ERROR: 'hyperlink requires either `url` or `slide`'\");t.hyperlink.url?n+='\":\"/>\"):t.hyperlink.slide&&(n+='\":\"/>\")),t.color&&(n+=\"\\t\",n+='\\t\\t',n+='\\t\\t\\t',n+=\"\\t\\t\",n+=\"\\t\",n+=\"\")}return n+=\"\"}function Rt(n){var a=n.options||{},t=[],r=[];if(a&&n._type!==at.tablecell&&(void 0===n.text||null===n.text))return\"\";var o=n._type===at.tablecell?\"\":\"\";o+=function(t){var e=\"\",t.options.fit&&(\"none\"===t.options.fit?e+=\"\":\"shrink\"===t.options.fit?e+=\"\":\"resize\"===t.options.fit&&(e+=\"\")),t.options.shrinkText&&(e+=\"\"),e+=!1!==t.options._bodyProp.autoFit?\"\":\"\"):e+=' wrap=\"square\" rtlCol=\"0\">',e+=\"\",t._type===at.tablecell?\"\":e}(n),0===a.h&&a.line&&a.align?o+='':\"placeholder\"===n._type?o+=\"\"+Tt(n,!0)+\"\":o+=\"\",\"string\"==typeof n.text||\"number\"==typeof n.text?t.push({text:n.text.toString(),options:a||{}}):n.text&&!Array.isArray(n.text)&&\"object\"==typeof n.text&&-1\";var r=\"\"),n.options.align=n.options.align||a.align,n.options.lineSpacing=n.options.lineSpacing||a.lineSpacing,n.options.lineSpacingMultiple=n.options.lineSpacingMultiple||a.lineSpacingMultiple,n.options.indentLevel=n.options.indentLevel||a.indentLevel,n.options.paraSpaceBefore=n.options.paraSpaceBefore||a.paraSpaceBefore,n.options.paraSpaceAfter=n.options.paraSpaceAfter||a.paraSpaceAfter,r=Tt(n,!1),o+=r,Object.entries(a).forEach(function(t){var e=t[0],r=t[1];n.options.hyperlink&&\"color\"===e||\"bullet\"===e||n.options[e]||(n.options[e]=r)}),o+=function(t){return t.text?\"\"+kt(t.options,!1)+\"\"+gt(t.text)+\"\":\"\"}(n),(!n.text&&a.fontSize||n.options.fontSize)&&(e=!0,a.fontSize=a.fontSize||n.options.fontSize)}),n._type===at.tablecell&&(a.fontSize||a.fontFace)?a.fontFace?(o+='',o+='',o+='',o+='',o+=\"\"):o+='':o+=e?'':'',o+=\"\"}),o+=n._type===at.tablecell?\"\":\"\"}function Ft(t){if(!t)return\"\";var e=t.options&&t.options._placeholderIdx?t.options._placeholderIdx:\"\",r=t.options&&t.options._placeholderType?t.options._placeholderType:\"\";return\"\"}function It(t){return''+c+''+gt(function(t){var e=\"\";return t._slideObjects.forEach(function(t){t._type===at.notes&&(e+=t.text&&t.text[0]?t.text[0].text:\"\")}),e.replace(/\\r*\\n/g,c)}(t))+''+t._slideNum+''}function Ot(t){t&&\"object\"==typeof t&&(\"outer\"!==t.type&&\"inner\"!==t.type&&\"none\"!==t.type&&(console.warn(\"Warning: shadow.type options are `outer`, `inner` or `none`.\"),t.type=\"outer\"),t.angle&&((isNaN(Number(t.angle))||t.angle<0||359 \\n'),t.file(\"_rels/.rels\",'\\n'),t.file(\"docProps/app.xml\",'Microsoft Excel0falseWorksheets1Sheet1\\n'),t.file(\"docProps/core.xml\",'PptxGenJSEly, Brent'+(new Date).toISOString()+''+(new Date).toISOString()+\"\\n\"),t.file(\"xl/_rels/workbook.xml.rels\",'\\n'),t.file(\"xl/styles.xml\",'\\n'),t.file(\"xl/theme/theme1.xml\",''),t.file(\"xl/workbook.xml\",'\\n'),t.file(\"xl/worksheets/_rels/sheet1.xml.rels\",'\\n');var n='';u.opts._type===J.BUBBLE?n+='':u.opts._type===J.SCATTER?n+='':(n+='',n+=''),u.opts._type===J.BUBBLE?f.forEach(function(t,e){0===e?n+=\"X-Axis\":(n+=\"\"+gt(t.name||\" \")+\"\",n+=\"\"+gt(\"Size \"+e)+\"\")}):f.forEach(function(t){n+=\"\"+gt((t.name||\" \").replace(\"X-Axis\",\"X-Values\"))+\"\"}),u.opts._type!==J.BUBBLE&&u.opts._type!==J.SCATTER&&f[0].labels.forEach(function(t){n+=\"\"+gt(t)+\"\"}),n+=\"\\n\",t.file(\"xl/sharedStrings.xml\",n);var o='';u.opts._type===J.BUBBLE||(u.opts._type===J.SCATTER?(o+='',o+='',f.forEach(function(t,e){o+=''})):(o+='
',o+='',o+='',f.forEach(function(t,e){o+=''}))),o+=\"\",o+='',o+=\"
\",t.file(\"xl/tables/table1.xml\",o);var i='';if(i+='',u.opts._type===J.BUBBLE?i+='':u.opts._type===J.SCATTER?i+='':i+='',i+='',i+='',u.opts._type===J.BUBBLE){i+=\"\",i+='',i+=\"\",i+=\"\",i+='',i+='0';for(var s=1;s',i+=\"\"+s+\"\",i+=\"\";i+=\"\",f[0].values.forEach(function(t,e){i+='',i+=''+t+\"\";for(var r=1,n=1;n',i+=\"\"+(f[n].values[e]||\"\")+\"\",i+=\"\",i+='',i+=\"\"+(f[n].sizes[e]||\"\")+\"\",i+=\"\",r++;i+=\"\"})}else if(u.opts._type===J.SCATTER){i+=\"\",i+='',i+=\"\",i+=\"\",i+='',i+='0';for(var l=1;l',i+=\"\"+l+\"\",i+=\"\";i+=\"\",f[0].values.forEach(function(t,e){i+='',i+=''+t+\"\";for(var r=1;r',i+=\"\"+(f[r].values[e]||0===f[r].values[e]?f[r].values[e]:\"\")+\"\",i+=\"\";i+=\"\"})}else{i+=\"\",i+='',i+=\"\",i+=\"\",i+='',i+='0';for(var c=1;c<=f.length;c++)i+='',i+=\"\"+c+\"\",i+=\"\";i+=\"\",f[0].labels.forEach(function(t,e){i+='',i+='',i+=\"\"+(f.length+e+1)+\"\",i+=\"\";for(var r=0;r',i+=\"\"+(f[r].values[e]||\"\")+\"\",i+=\"\";i+=\"\"})}i+=\"\",i+='',i+=\"\\n\",t.file(\"xl/worksheets/sheet1.xml\",i),t.generateAsync({type:\"base64\"}).then(function(t){p.file(\"ppt/embeddings/Microsoft_Excel_Worksheet\"+u.globalId+\".xlsx\",t,{base64:!0}),p.file(\"ppt/charts/_rels/\"+u.fileName+\".rels\",''),p.file(\"ppt/charts/\"+u.fileName,function(a){var o='',i=!1;o+='',o+='',o+=\"\",a.opts.showTitle?(o+=qt({title:a.opts.title||\"Chart Title\",color:a.opts.titleColor,fontFace:a.opts.titleFontFace,fontSize:a.opts.titleFontSize||w,titleAlign:a.opts.titleAlign,titleBold:a.opts.titleBold,titlePos:a.opts.titlePos,titleRotate:a.opts.titleRotate}),o+=''):o+='';a.opts._type===J.BAR3D&&(o+=\"\",o+=' ',o+=' ',o+=' ',o+=' ',o+=\"\");o+=\"\",a.opts.layout?(o+=\"\",o+=\" \",o+=' ',o+=' ',o+=' ',o+=' ',o+=' ',o+=' ',o+=' ',o+=\" \",o+=\"\"):o+=\"\";Array.isArray(a.opts._type)?a.opts._type.forEach(function(t){var e=mt(a.opts,t.options),r=e.secondaryValAxis?E:L,n=e.secondaryCatAxis?k:T;i=i||e.secondaryValAxis,o+=Vt(t.type,t.data,e,r,n)}):o+=Vt(a.opts._type,a.data,a.opts,L,T);if(a.opts._type!==J.PIE&&a.opts._type!==J.DOUGHNUT){if(a.opts.valAxes&&1\",n+=' ',n+=' ',n+=' ',n+=' ',n+=\"none\"!==e.serGridLine.style?Kt(e.serGridLine):\"\",e.showSerAxisTitle&&(n+=qt({color:e.serAxisTitleColor,fontFace:e.serAxisTitleFontFace,fontSize:e.serAxisTitleFontSize,titleRotate:e.serAxisTitleRotate,title:e.serAxisTitle||\"Axis Title\"}));n+=' ',n+=' ',n+=' ',n+=' ',n+=\" \",n+=' ',n+=!1===e.serAxisLineShow?\"\":\"\"+wt(e.serAxisLineColor||g.color)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+wt(e.serAxisLabelColor||v)+\"\",n+=' ',n+=\" \",n+=\" \",n+=' ',n+=\" \",n+=\" \",n+=' ',n+=' ',e.serAxisLabelFrequency&&(n+=' ');e.serLabelFormatCode&&([\"serAxisBaseTimeUnit\",\"serAxisMajorTimeUnit\",\"serAxisMinorTimeUnit\"].forEach(function(t){!e[t]||\"string\"==typeof e[t]&&-1!==[\"days\",\"months\",\"years\"].indexOf(t.toLowerCase())||(console.warn(\"`\"+t+\"` must be one of: 'days','months','years' !\"),e[t]=null)}),e.serAxisBaseTimeUnit&&(n+=' '),e.serAxisMajorTimeUnit&&(n+=' '),e.serAxisMinorTimeUnit&&(n+=' '),e.serAxisMajorUnit&&(n+=' '),e.serAxisMinorUnit&&(n+=' '));return n+=\"\"}(a.opts,R,L)))}a.opts.showDataTable&&(o+=\"\",o+=' ',o+=' ',o+=' ',o+=' ',o+=\" \",o+=\" \",o+=' ',o+=\" \",o+=\" \",o+=\" \",o+='\\t ',o+=\"\\t \",o+=\"\\t \",o+='\\t\\t',o+=' ',o+='\\t\\t\\t',o+='\\t\\t\\t',o+='\\t\\t\\t',o+='\\t\\t\\t',o+=\"\\t\\t \",o+=\"\\t\\t\",o+='\\t\\t',o+=\"\\t \",o+=\"\\t\",o+=\"\");o+=\" \",o+=a.opts.fill?_t(a.opts.fill):\"\",o+=a.opts.border?''+_t(a.opts.border.color)+\"\":\"\",o+=\" \",o+=\" \",o+=\"\",a.opts.showLegend&&(o+=\"\",o+='',o+='',(a.opts.legendFontFace||a.opts.legendFontSize||a.opts.legendColor)&&(o+=\"\",o+=\" \",o+=\" \",o+=\" \",o+=\" \",o+=a.opts.legendFontSize?'':\"\",a.opts.legendColor&&(o+=_t(a.opts.legendColor)),a.opts.legendFontFace&&(o+=''),a.opts.legendFontFace&&(o+=''),o+=\" \",o+=\" \",o+=' ',o+=\" \",o+=\"\"),o+=\"\");o+=' ',o+=' ',a.opts._type===J.SCATTER&&(o+='');return o+=\"\",o+=\"\",o+=\" \",o+=' ',o+=\" \",o+=\"\",o+='',o+=\"\"}(u)),e(null)}).catch(function(t){r(t)})})}function Vt(n,a,o,t,e){var i=\"\";switch(n){case J.AREA:case J.BAR:case J.BAR3D:case J.LINE:case J.RADAR:i+=\"\",n===J.AREA&&\"stacked\"===o.barGrouping&&(i+=''),n!==J.BAR&&n!==J.BAR3D||(i+='',i+=''),n===J.RADAR&&(i+=''),i+='';var s=-1;a.forEach(function(t){s++;var e=t.index;i+=\"\",i+=' ',i+=' ',i+=\" \",i+=\" \",i+=\" Sheet1!$\"+Zt(e+1)+\"$1\",i+=' '+gt(t.name)+\"\",i+=\" \",i+=\" \",i+=' ';var r=o.chartColors?o.chartColors[s%o.chartColors.length]:null;i+=\" \",\"transparent\"===r?i+=\"\":o.chartColorsOpacity?i+=\"\"+wt(r,'')+\"\":i+=\"\"+wt(r)+\"\",n===J.LINE?0===o.lineSize?i+=\"\":(i+=''+wt(r)+\"\",i+=''):o.dataBorder&&(i+=''+wt(o.dataBorder.color)+''),i+=Xt(o.shadow,C),i+=\" \",n!==J.RADAR&&(i+=\" \",i+=' ',o.dataLabelBkgrdColors&&(i+=\" \",i+=\" \"+wt(r)+\"\",i+=\" \"),i+=\" \",i+=\" \",i+=\" \",i+=\" \",i+=' ',i+=\" \"+wt(o.dataLabelColor||v)+\"\",i+=' ',i+=\" \",i+=\" \",i+=\" \",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=\" \"),n!==J.LINE&&n!==J.RADAR||(i+=\"\",i+=' ',o.lineDataSymbolSize&&(i+=' '),i+=\" \",i+=\" \"+wt(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e])+\"\",i+=' '+wt(o.lineDataSymbolLineColor||r)+'',i+=\" \",i+=\" \",i+=\"\"),(n===J.BAR||n===J.BAR3D)&&1===a.length&&o.chartColors!==I&&1\",i+=' ',i+=' ',i+=' ',i+=\" \",0===o.lineSize?i+=\"\":n===J.BAR?(i+=\"\",i+=' ',i+=\"\"):(i+=\"\",i+=\" \",i+=' ',i+=\" \",i+=\"\"),i+=Xt(o.shadow,C),i+=\" \",i+=\" \"}),i+=\"\",o.catLabelFormatCode?(i+=\" \",i+=\" Sheet1!$A$2:$A$\"+(t.labels.length+1)+\"\",i+=\" \",i+=\" \"+(o.catLabelFormatCode||\"General\")+\"\",i+=' ',t.labels.forEach(function(t,e){i+=''+gt(t)+\"\"}),i+=\" \",i+=\" \"):(i+=\" \",i+=\" Sheet1!$A$2:$A$\"+(t.labels.length+1)+\"\",i+=\" \",i+='\\t ',t.labels.forEach(function(t,e){i+=''+gt(t)+\"\"}),i+=\" \",i+=\" \"),i+=\"\",i+=\"\",i+=\" \",i+=\" Sheet1!$\"+Zt(e+1)+\"$2:$\"+Zt(e+1)+\"$\"+(t.labels.length+1)+\"\",i+=\" \",i+=\" \"+(o.valLabelFormatCode||o.dataTableFormatCode||\"General\")+\"\",i+=' ',t.values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i+=\" \",i+=\" \",i+=\"\",n===J.LINE&&(i+=''),i+=\"\"}),i+=\" \",i+=' ',i+=\" \",i+=\" \",i+=\" \",i+=\" \",i+=' ',i+=\" \"+wt(o.dataLabelColor||v)+\"\",i+=' ',i+=\" \",i+=\" \",i+=\" \",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=\" \",n===J.BAR?(i+=' ',i+=' '):n===J.BAR3D?(i+=' ',i+=' ',i+=' '):n===J.LINE&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=\"\";break;case J.SCATTER:i+=\"\",i+='',i+='',s=-1,a.filter(function(t,e){return 0\",i+=' ',i+=' ',i+=\" \",i+=\" \",i+=\" Sheet1!$\"+F[t+1]+\"$1\",i+=' '+r.name+\"\",i+=\" \",i+=\" \",i+=\" \";var e=o.chartColors[s%o.chartColors.length];if(\"transparent\"===e?i+=\"\":o.chartColorsOpacity?i+=\"\"+wt(e,'')+\"\":i+=\"\"+wt(e)+\"\",0===o.lineSize?i+=\"\":(i+=''+wt(e)+\"\",i+=''),i+=Xt(o.shadow,C),i+=\" \",i+=\"\",i+=' ',o.lineDataSymbolSize&&(i+=' '),i+=\" \",i+=\" \"+wt(o.chartColors[t+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):t])+\"\",i+=' '+wt(o.lineDataSymbolLineColor||o.chartColors[s%o.chartColors.length])+'',i+=\" \",i+=\" \",i+=\"\",o.showLabel){var n=ht(\"-xxxx-xxxx-xxxx-xxxxxxxxxxxx\");!r.labels||\"custom\"!==o.dataLabelFormatScatter&&\"customXY\"!==o.dataLabelFormatScatter||(i+=\"\",r.labels.forEach(function(t,e){\"custom\"!==o.dataLabelFormatScatter&&\"customXY\"!==o.dataLabelFormatScatter||(i+=\" \",i+=' ',i+=\" \",i+=\" \",i+=\"\\t\\t\\t\",i+=\"\\t\\t\\t\\t\",i+=\"\\t\\t\\t\",i+=\" \\t\",i+=\" \\t\",i+=\"\\t\\t\\t\\t\",i+=\"\\t\\t\\t\\t\\t\",i+=\"\\t\\t\\t\\t\",i+=\" \\t\",i+=' \\t\\t',i+=\" \\t\\t\"+gt(t)+\"\",i+=\" \\t\",\"customXY\"!==o.dataLabelFormatScatter||/^ *$/.test(t)||(i+=\" \\t\",i+=' \\t\\t',i+=\" \\t\\t (\",i+=\" \\t\",i+=' \\t',i+=' \\t\\t',i+=\" \\t\\t\",i+=\" \\t\\t\\t\",i+=\" \\t\\t\",i+=\" \\t\\t[\"+gt(r.name)+\"\",i+=\" \\t\",i+=\" \\t\",i+=' \\t\\t',i+=\" \\t\\t, \",i+=\" \\t\",i+=' \\t',i+=' \\t\\t',i+=\" \\t\\t\",i+=\" \\t\\t\\t\",i+=\" \\t\\t\",i+=\" \\t\\t[\"+gt(r.name)+\"]\",i+=\" \\t\",i+=\" \\t\",i+=' \\t\\t',i+=\" \\t\\t)\",i+=\" \\t\",i+=' \\t'),i+=\" \\t\",i+=\" \",i+=\" \",i+=\" \",i+=\" \\t\",i+=\" \\t\",i+=\" \\t\\t\",i+=\" \\t\",i+=\" \\t\",i+=\" \",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+='\\t ',i+=\" \",i+=' ',i+=' ',i+='\\t\\t\\t',i+=\" \",i+=\"\\t\\t\",i+=\"\")}),i+=\"\"),\"XY\"===o.dataLabelFormatScatter&&(i+=\"\",i+=\"\\t\",i+=\"\\t\\t\",i+=\"\\t\\t\",i+=\"\\t\\t\\t\",i+=\"\\t\\t\",i+=\"\\t \\t\",i+=\"\\t\",i+=\"\\t\",i+=\"\\t\\t\",i+=\"\\t\\t\\t\",i+=\"\\t\\t\",i+=\"\\t\\t\",i+=\"\\t\\t\",i+=\"\\t \\t\",i+=\" \\t\\t\",i+=\"\\t \\t\",i+='\\t \\t',i+=\"\\t\\t\",i+=\"\\t\",o.dataLabelPosition&&(i+=' '),i+='\\t',i+=' ',i+=' ',i+='\\t',i+='\\t',i+='\\t',i+=\"\\t\",i+='\\t\\t',i+='\\t\\t\\t',i+=\"\\t\\t\",i+=\"\\t\",i+=\"\")}1===a.length&&o.chartColors!==I&&r.values.forEach(function(t,e){var r=t<0?o.invertedColors||o.chartColors||I:o.chartColors||[];i+=\" \",i+=' ',i+=' ',i+=' ',i+=\" \",0===o.lineSize?i+=\"\":(i+=\"\",i+=' ',i+=\"\"),i+=Xt(o.shadow,C),i+=\" \",i+=\" \"}),i+=\"\",i+=\" \",i+=\" Sheet1!$A$2:$A$\"+(a[0].values.length+1)+\"\",i+=\" \",i+=\" General\",i+=' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i+=\" \",i+=\" \",i+=\"\",i+=\"\",i+=\" \",i+=\" Sheet1!$\"+Zt(t+1)+\"$2:$\"+Zt(t+1)+\"$\"+(a[0].values.length+1)+\"\",i+=\" \",i+=\" General\",i+=' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:\"\")+\"\"}),i+=\" \",i+=\" \",i+=\"\",i+='',i+=\"\"}),i+=\" \",i+=' ',i+=\" \",i+=\" \",i+=\" \",i+=\" \",i+=' ',i+=\" \"+wt(o.dataLabelColor||v)+\"\",i+=' ',i+=\" \",i+=\" \",i+=\" \",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=\" \",i+=' ',i+=' ',i+=\"\";break;case J.BUBBLE:i+=\"\",i+='',s=-1;var l=1;a.filter(function(t,e){return 0\",i+=' ',i+=' ',i+=\" \",i+=\" \",i+=\" Sheet1!$\"+F[l]+\"$1\",i+=' '+r.name+\"\",i+=\" \",i+=\" \",i+=\"\";var e=o.chartColors[s%o.chartColors.length];\"transparent\"===e?i+=\"\":o.chartColorsOpacity?i+=\"\"+wt(e,'')+\"\":i+=\"\"+wt(e)+\"\",0===o.lineSize?i+=\"\":o.dataBorder?i+=''+wt(o.dataBorder.color)+'':(i+=''+wt(e)+\"\",i+=''),i+=Xt(o.shadow,C),i+=\"\",i+=\"\",i+=\" \",i+=\" Sheet1!$A$2:$A$\"+(a[0].values.length+1)+\"\",i+=\" \",i+=\" General\",i+=' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i+=\" \",i+=\" \",i+=\"\",i+=\"\",i+=\" \",i+=\" Sheet1!$\"+Zt(l)+\"$2:$\"+Zt(l)+\"$\"+(a[0].values.length+1)+\"\",l++,i+=\" \",i+=\" General\",i+=' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:\"\")+\"\"}),i+=\" \",i+=\" \",i+=\"\",i+=\" \",i+=\" \",i+=\" Sheet1!$\"+Zt(l)+\"$2:$\"+Zt(t+2)+\"$\"+(r.sizes.length+1)+\"\",l++,i+=\" \",i+=\" General\",i+='\\t ',r.sizes.forEach(function(t,e){i+=''+(t||\"\")+\"\"}),i+=\" \",i+=\" \",i+=\" \",i+=' ',i+=\"\"}),i+=\" \",i+=' ',i+=\" \",i+=\" \",i+=\" \",i+=\" \",i+=' ',i+=\" \"+wt(o.dataLabelColor||v)+\"\",i+=' ',i+=\" \",i+=\" \",i+=\" \",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=\" \",i+=' ',i+=' ',i+=\"\";break;case J.DOUGHNUT:case J.PIE:var r=a[0];i+=\"\",i+=' ',i+=\"\",i+=' ',i+=' ',i+=\" \",i+=\" \",i+=\" Sheet1!$B$1\",i+=\" \",i+=' ',i+=' '+gt(r.name)+\"\",i+=\" \",i+=\" \",i+=\" \",i+=\" \",i+=' ',i+=' ',o.dataNoEffects?i+=\"\":i+=Xt(o.shadow,C),i+=\" \",r.labels.forEach(function(t,e){i+=\"\",i+=' ',i+=' ',i+=\" \",i+=\"\"+wt(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e])+\"\",o.dataBorder&&(i+=''+wt(o.dataBorder.color)+''),i+=Xt(o.shadow,C),i+=\" \",i+=\"\"}),i+=\"\",r.labels.forEach(function(t,e){i+=\"\",i+=' ',i+=' ',i+=\" \",i+=\" \",i+=\" \",i+=' ',i+=\" \"+wt(o.dataLabelColor||v)+\"\",i+=' ',i+=\" \",i+=\" \",i+=\" \",n===J.PIE&&o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=\" \"}),i+=' ',i+=\"\\t\",i+=\"\\t \",i+=\"\\t \",i+=\"\\t \",i+=\"\\t\\t\",i+='\\t\\t ',i+='\\t\\t\\t',i+=\"\\t\\t \",i+=\"\\t\\t\",i+=\"\\t \",i+=\"\\t\",i+=n===J.PIE?'':\"\",i+='\\t',i+='\\t',i+='\\t',i+='\\t',i+='\\t',i+='\\t',i+=' ',i+=\"\",i+=\"\",i+=\" \",i+=\" Sheet1!$A$2:$A$\"+(r.labels.length+1)+\"\",i+=\" \",i+='\\t ',r.labels.forEach(function(t,e){i+=''+gt(t)+\"\"}),i+=\" \",i+=\" \",i+=\"\",i+=\" \",i+=\" \",i+=\" Sheet1!$B$2:$B$\"+(r.labels.length+1)+\"\",i+=\" \",i+='\\t ',r.values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i+=\" \",i+=\" \",i+=\" \",i+=\" \",i+=' ',n===J.DOUGHNUT&&(i+=' '),i+=\"\";break;default:i+=\"\"}return i}function Qt(e,t,r){var n=\"\";return e._type===J.SCATTER||e._type===J.BUBBLE?n+=\"\":n+=\"\",n+=' ',n+=\" \",n+='',!e.catAxisMaxVal&&0!==e.catAxisMaxVal||(n+=''),!e.catAxisMinVal&&0!==e.catAxisMinVal||(n+=''),n+=\"\",n+=' ',n+=' ',n+=\"none\"!==e.catGridLine.style?Kt(e.catGridLine):\"\",e.showCatAxisTitle&&(n+=qt({color:e.catAxisTitleColor,fontFace:e.catAxisTitleFontFace,fontSize:e.catAxisTitleFontSize,titleRotate:e.catAxisTitleRotate,title:e.catAxisTitle||\"Axis Title\"})),e._type===J.SCATTER||e._type===J.BUBBLE?n+=' ':n+=' ',e._type===J.SCATTER?(n+=' ',n+=' ',n+=' '):(n+=' ',n+=' ',n+=' '),n+=\" \",n+=' ',n+=!1===e.catAxisLineShow?\"\":\"\"+wt(e.catAxisLineColor||g.color)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+wt(e.catAxisLabelColor||v)+\"\",n+=' ',n+=\" \",n+=\" \",n+=' ',n+=\" \",n+=\" \",n+=' ',n+=\" ',n+=' ',n+=' ',n+=' ',e.catAxisLabelFrequency&&(n+=' '),!e.catLabelFormatCode&&e._type!==J.SCATTER&&e._type!==J.BUBBLE||(e.catLabelFormatCode&&([\"catAxisBaseTimeUnit\",\"catAxisMajorTimeUnit\",\"catAxisMinorTimeUnit\"].forEach(function(t){!e[t]||\"string\"==typeof e[t]&&-1!==[\"days\",\"months\",\"years\"].indexOf(e[t].toLowerCase())||(console.warn(\"`\"+t+\"` must be one of: 'days','months','years' !\"),e[t]=null)}),e.catAxisBaseTimeUnit&&(n+=''),e.catAxisMajorTimeUnit&&(n+=''),e.catAxisMinorTimeUnit&&(n+='')),e.catAxisMajorUnit&&(n+=''),e.catAxisMinorUnit&&(n+='')),e._type===J.SCATTER||e._type===J.BUBBLE?n+=\"\":n+=\"\",n}function Yt(t,e){var r=e===L?\"col\"===t.barDir?\"l\":\"b\":\"col\"!==t.barDir?\"r\":\"t\",n=\"\",a=\"r\"==r||\"t\"==r?\"max\":\"autoZero\",o=e===L?T:k;return n+=\"\",n+=' ',n+=\" \",t.valAxisLogScaleBase&&(n+=' '),n+=' ',!t.valAxisMaxVal&&0!==t.valAxisMaxVal||(n+=''),!t.valAxisMinVal&&0!==t.valAxisMinVal||(n+=''),n+=\" \",n+=' ',n+=' ',\"none\"!==t.valGridLine.style&&(n+=Kt(t.valGridLine)),t.showValAxisTitle&&(n+=qt({color:t.valAxisTitleColor,fontFace:t.valAxisTitleFontFace,fontSize:t.valAxisTitleFontSize,titleRotate:t.valAxisTitleRotate,title:t.valAxisTitle||\"Axis Title\"})),n+=\"',t._type===J.SCATTER?(n+=' ',n+=' ',n+=' '):(n+=' ',n+=' ',n+=' '),n+=\" \",n+=' ',n+=!1===t.valAxisLineShow?\"\":\"\"+wt(t.valAxisLineColor||g.color)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+wt(t.valAxisLabelColor||v)+\"\",n+=' ',n+=\" \",n+=\" \",n+=' ',n+=\" \",n+=\" \",n+=' ',n+=' ',n+=' ',t.valAxisMajorUnit&&(n+=' '),t.valAxisDisplayUnit&&(n+=''+(t.valAxisDisplayUnitLabel?\"\":\"\")+\"\"),n+=\"\"}function qt(t){var e=\"left\"===t.titleAlign||\"right\"===t.titleAlign?'':\"\",r=t.titleRotate?'':\"\",n=t.fontSize?'sz=\"'+Math.round(100*t.fontSize)+'\"':\"\",a=!0===t.titleBold?1:0,o=t.titlePos&&t.titlePos.x&&t.titlePos.y?'':\"\";return\"\\n\\t \\n\\t \\n\\t \"+r+\"\\n\\t \\n\\t \\n\\t \"+e+\"\\n\\t \\n\\t '+wt(t.color||v)+'\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \\n\\t '+wt(t.color||v)+'\\n\\t \\n\\t \\n\\t '+(gt(t.title)||\"\")+\"\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \"+o+'\\n\\t \\n\\t'}function Zt(t){var e=\"\";return t<=26?e=F[t]:(e+=F[Math.floor(t/F.length)-1],e+=F[t%F.length]),e}function Xt(t,e){if(!t)return\"\";if(\"object\"!=typeof t)return console.warn(\"`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`\"),\"\";var r=\"\",n=mt(e,t),a=n.type||\"outer\",o=At(n.blur),i=At(n.offset),s=Math.round(6e4*n.angle),l=n.color,c=Math.round(1e5*n.opacity);return r+=\"',r+='',r+='',r+=\"\",r+=\"\"}function Kt(t){var e=\"\";return e+=\" \",e+=' ',e+=' ',e+=' ',e+=\" \",e+=\" \",e+=\"\"}function Jt(t){var o=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null,i=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"https\"):null,e=[];return t._relsMedia.filter(function(t){return\"online\"!==t.type&&!t.data&&(!t.path||t.path&&-1===t.path.indexOf(\"preencoded\"))}).forEach(function(a){e.push(new Promise(function(r,n){if(o&&0!==a.path.indexOf(\"http\"))try{var t=o.readFileSync(a.path);a.data=Buffer.from(t).toString(\"base64\"),r(\"done\")}catch(t){a.data=pt,n('ERROR: Unable to read media: \"'+a.path+'\"\\n'+t.toString())}else if(o&&i&&0===a.path.indexOf(\"http\"))i.get(a.path,function(t){var e=\"\";t.setEncoding(\"binary\"),t.on(\"data\",function(t){return e+=t}),t.on(\"end\",function(){a.data=Buffer.from(e,\"binary\").toString(\"base64\"),r(\"done\")}),t.on(\"error\",function(t){a.data=pt,n(\"ERROR! Unable to load image (https.get): \"+a.path)})});else{var e=new XMLHttpRequest;e.onload=function(){var t=new FileReader;t.onloadend=function(){a.data=t.result,a.isSvgPng?$t(a).then(function(){r(\"done\")}).catch(function(t){n(t)}):r(\"done\")},t.readAsDataURL(e.response)},e.onerror=function(t){a.data=pt,n(\"ERROR! Unable to load image (xhr.onerror): \"+a.path)},e.open(\"GET\",a.path),e.responseType=\"blob\",e.send()}}))}),t._relsMedia.filter(function(t){return t.isSvgPng&&t.data}).forEach(function(t){o?(t.data=pt,e.push(Promise.resolve().then(function(){return\"done\"}))):e.push($t(t))}),e}function $t(a){return new Promise(function(r,e){var n=new Image;n.onload=function(){n.width+n.height===0&&n.onerror(\"h/w=0\");var t=document.createElement(\"CANVAS\"),e=t.getContext(\"2d\");t.width=n.width,t.height=n.height,e.drawImage(n,0,0);try{a.data=t.toDataURL(a.type),r(\"done\")}catch(t){n.onerror(t)}t=null},n.onerror=function(t){a.data=pt,e(\"ERROR! Unable to load image (image.onerror): \"+a.path)},n.src=\"string\"==typeof a.data?a.data:pt})}function te(){var a=this;this._version=\"3.9.0-beta-20210930-2159\",this._alignH=Q,this._alignV=q,this._chartType=U,this._outputType=z,this._schemeColor=H,this._shapeType=W,this._charts=J,this._colors=tt,this._shapes=X,this.addNewSlide=function(t){var e=0')})}),n+='',n+='',n+='',n+='',t.forEach(function(t,e){n+='',n+='',t._relsChart.forEach(function(t){n+=' '})}),n+='',n+='',n+='',n+='',e.forEach(function(t,e){n+='',(t._relsChart||[]).forEach(function(t){n+=' '})}),t.forEach(function(t,e){n+=' '}),r._relsChart.forEach(function(t){n+=' '}),r._relsMedia.forEach(function(t){\"image\"!==t.type&&\"online\"!==t.type&&\"chart\"!==t.type&&\"m4v\"!==t.extn&&-1===n.indexOf(t.type)&&(n+=' ')}),n+=' ',n+=' ',n+=\"\"}(a.slides,a.slideLayouts,a.masterSlide)),n.file(\"_rels/.rels\",''+c+'\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t'),n.file(\"docProps/app.xml\",function(t,e){return''+c+'\\n\\t0\\n\\t0\\n\\tMicrosoft Office PowerPoint\\n\\tOn-screen Show (16:9)\\n\\t0\\n\\t'+t.length+\"\\n\\t\"+t.length+'\\n\\t0\\n\\t0\\n\\tfalse\\n\\t\\n\\t\\t\\n\\t\\t\\tFonts Used\\n\\t\\t\\t2\\n\\t\\t\\tTheme\\n\\t\\t\\t1\\n\\t\\t\\tSlide Titles\\n\\t\\t\\t'+t.length+'\\n\\t\\t\\n\\t\\n\\t\\n\\t\\t\\n\\t\\t\\tArial\\n\\t\\t\\tCalibri\\n\\t\\t\\tOffice Theme\\n\\t\\t\\t'+t.map(function(t,e){return\"Slide \"+(e+1)+\"\\n\"}).join(\"\")+\"\\n\\t\\t\\n\\t\\n\\t\"+e+\"\\n\\tfalse\\n\\tfalse\\n\\tfalse\\n\\t16.0000\\n\\t\"}(a.slides,a.company)),n.file(\"docProps/core.xml\",function(t,e,r,n){return'\\n\\t\\n\\t\\t'+gt(t)+\"\\n\\t\\t\"+gt(e)+\"\\n\\t\\t\"+gt(r)+\"\\n\\t\\t\"+gt(r)+\"\\n\\t\\t\"+n+'\\n\\t\\t'+(new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\")+'\\n\\t\\t'+(new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\")+\"\\n\\t\"}(a.title,a.subject,a.author,a.revision)),n.file(\"ppt/_rels/presentation.xml.rels\",function(t){var e=1,r=''+c;r+='',r+='';for(var n=1;n<=t.length;n++)r+='';return r+=''}(a.slides)),n.file(\"ppt/theme/theme1.xml\",''+c+''),n.file(\"ppt/presentation.xml\",function(t){var e=''+c+'';e+='',e+=\"\",t.slides.forEach(function(t){return e+=''}),e+=\"\",e+='',e+='',e+='',e+=\"\";for(var r=1;r<10;r++)e+=\"\";return e+=\"\",t.sections&&0',e+='',t.sections.forEach(function(t){e+='',t._slides.forEach(function(t){return e+=''}),e+=\"\"}),e+=\"\",e+='',e+=\"\"),e+=\"\"}(a)),n.file(\"ppt/presProps.xml\",''+c+''),n.file(\"ppt/tableStyles.xml\",''+c+''),n.file(\"ppt/viewProps.xml\",''+c+''),a.slideLayouts.forEach(function(t,e){n.file(\"ppt/slideLayouts/slideLayout\"+(e+1)+\".xml\",function(t){return'\\n\\t\\t\\n\\t\\t'+Lt(t)+\"\\n\\t\\t\"}(t)),n.file(\"ppt/slideLayouts/_rels/slideLayout\"+(e+1)+\".xml.rels\",function(t,e){return Et(e[t-1],[{target:\"../slideMasters/slideMaster1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster\"}])}(e+1,a.slideLayouts))}),a.slides.forEach(function(t,e){n.file(\"ppt/slides/slide\"+(e+1)+\".xml\",function(t){return''+c+'\"+Lt(t)+\"\"}(t)),n.file(\"ppt/slides/_rels/slide\"+(e+1)+\".xml.rels\",function(t,e,r){return Et(t[r-1],[{target:\"../slideLayouts/slideLayout\"+function(t,e,r){for(var n=0;n\\n\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t'}(e+1))}),n.file(\"ppt/slideMasters/slideMaster1.xml\",function(r,t){var e=t.map(function(t,e){return''}),n=''+c;return n+='',n+=Lt(r),n+='',n+=\"\"+e.join(\"\")+\"\",n+='',n+=' ',n+=\"\"}(a.masterSlide,a.slideLayouts)),n.file(\"ppt/slideMasters/_rels/slideMaster1.xml.rels\",function(t,e){var r=e.map(function(t,e){return{target:\"../slideLayouts/slideLayout\"+(e+1)+\".xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout\"}});return r.push({target:\"../theme/theme1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\"}),Et(t,r)}(a.masterSlide,a.slideLayouts)),n.file(\"ppt/notesMasters/notesMaster1.xml\",''+c+'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›'),n.file(\"ppt/notesMasters/_rels/notesMaster1.xml.rels\",''+c+'\\n\\t\\t\\n\\t\\t'),a.slideLayouts.forEach(function(t){a.createChartMediaRels(t,n,e)}),a.slides.forEach(function(t){a.createChartMediaRels(t,n,e)}),a.createChartMediaRels(a.masterSlide,n,e),Promise.all(e).then(function(){return\"STREAM\"===t.outputType?n.generateAsync({type:\"nodebuffer\",compression:t.compression?\"DEFLATE\":\"STORE\"}):t.outputType?n.generateAsync({type:t.outputType}):n.generateAsync({type:\"blob\",compression:t.compression?\"DEFLATE\":\"STORE\"})})})},this.LAYOUTS={LAYOUT_4x3:{name:\"screen4x3\",width:9144e3,height:6858e3},LAYOUT_16x9:{name:\"screen16x9\",width:9144e3,height:5143500},LAYOUT_16x10:{name:\"screen16x10\",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:\"custom\",width:12192e3,height:6858e3}},this._author=\"PptxGenJS\",this._company=\"PptxGenJS\",this._revision=\"1\",this._subject=\"PptxGenJS Presentation\",this._title=\"PptxGenJS Presentation\",this._presLayout={name:this.LAYOUTS[p].name,_sizeW:this.LAYOUTS[p].width,_sizeH:this.LAYOUTS[p].height,width:this.LAYOUTS[p].width,height:this.LAYOUTS[p].height},this._rtlMode=!1,this._slideLayouts=[{_margin:P,_name:n,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(te.prototype,\"layout\",{get:function(){return this._layout},set:function(t){var e=this.LAYOUTS[t];if(!e)throw new Error(\"UNKNOWN-LAYOUT\");this._layout=t,this._presLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"version\",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"author\",{get:function(){return this._author},set:function(t){this._author=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"company\",{get:function(){return this._company},set:function(t){this._company=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"revision\",{get:function(){return this._revision},set:function(t){this._revision=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"subject\",{get:function(){return this._subject},set:function(t){this._subject=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"title\",{get:function(){return this._title},set:function(t){this._title=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"rtlMode\",{get:function(){return this._rtlMode},set:function(t){this._rtlMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"masterSlide\",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"slides\",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"sections\",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"slideLayouts\",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"AlignH\",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"AlignV\",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"ChartType\",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"OutputType\",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"presLayout\",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"SchemeColor\",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"ShapeType\",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"charts\",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"colors\",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"shapes\",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),te.prototype.stream=function(t){var e=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression;return this.exportPresentation({compression:e,outputType:\"STREAM\"})},te.prototype.write=function(t){var e=\"object\"==typeof t&&t.hasOwnProperty(\"outputType\")?t.outputType:t||null,r=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression;return this.exportPresentation({compression:r,outputType:e})},te.prototype.writeFile=function(t){var e=this,n=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null;\"string\"==typeof t&&console.log(\"Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)\");var r=\"object\"==typeof t&&t.hasOwnProperty(\"fileName\")?t.fileName:\"string\"==typeof t?t:\"\",a=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression,o=r?r.toString().toLowerCase().endsWith(\".pptx\")?r:r+\".pptx\":\"Presentation.pptx\";return this.exportPresentation({compression:a,outputType:n?\"nodebuffer\":null}).then(function(t){return n?new Promise(function(e,r){n.writeFile(o,t,function(t){t?r(t):e(o)})}):e.writeFileToBrowser(o,t)})},te.prototype.addSection=function(t){t?t.title||console.warn(\"addSection requires a title\"):console.warn(\"addSection requires an argument\");var e={_type:\"user\",_slides:[],title:t.title};t.order?this.sections.splice(t.order,0,e):this._sections.push(e)},te.prototype.addSlide=function(e){var r=\"string\"==typeof e?e:e&&e.masterName?e.masterName:\"\",t={_name:this.LAYOUTS[p].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(r){var n=this.slideLayouts.filter(function(t){return t._name===r})[0];n&&(t=n)}var a=new Wt({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:t});if(this._slides.push(a),e&&e.sectionTitle){var o=this.sections.filter(function(t){return t.title===e.sectionTitle})[0];o?o._slides.push(a):console.warn('addSlide: unable to find section with title: \"'+e.sectionTitle+'\"')}else if(this.sections&&0 opts.y = \"+a.y),r.addTable(t.rows,{x:a.x||p[3],y:a.y,w:Number(s)/B,colW:c,autoPage:!1}),a.addImage&&r.addImage({path:a.addImage.url,x:a.addImage.x,y:a.addImage.y,w:a.addImage.w,h:a.addImage.h}),a.addShape&&r.addShape(a.addShape.shape,a.addShape.options||{}),a.addTable&&r.addTable(a.addTable.rows,a.addTable.options||{}),a.addText&&r.addText(a.addText.text,a.addText.options||{})})}(this,t,e,e&&e.masterSlideName?this.slideLayouts.filter(function(t){return t._name===e.masterSlideName})[0]:null)},te}();"],"file":"pptxgen.bundle.js"} \ No newline at end of file +{"version":3,"names":[],"mappings":"","sources":["pptxgen.bundle.js"],"sourcesContent":["/* PptxGenJS 3.9.0-beta @ 2021-10-14T12:21:16.803Z */\n!function(t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).JSZip=t()}(function(){return function o(i,s,l){function c(e,t){if(!s[e]){if(!i[e]){var r=\"function\"==typeof require&&require;if(!t&&r)return r(e,!0);if(u)return u(e,!0);var n=new Error(\"Cannot find module '\"+e+\"'\");throw n.code=\"MODULE_NOT_FOUND\",n}var a=s[e]={exports:{}};i[e][0].call(a.exports,function(t){return c(i[e][1][t]||t)},a,a.exports,o,i,s,l)}return s[e].exports}for(var u=\"function\"==typeof require&&require,t=0;t>2,o=(3&e)<<4|r>>4,i=1>6:64,s=2>4,r=(15&a)<<4|(o=h.indexOf(t.charAt(s++)))>>2,n=(3&o)<<6|(i=h.indexOf(t.charAt(s++))),c[l++]=e,64!==o&&(c[l++]=r),64!==i&&(c[l++]=n);return c}},{\"./support\":30,\"./utils\":32}],2:[function(t,e,r){\"use strict\";var n=t(\"./external\"),a=t(\"./stream/DataWorker\"),o=t(\"./stream/Crc32Probe\"),i=t(\"./stream/DataLengthProbe\");function s(t,e,r,n,a){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=a}s.prototype={getContentWorker:function(){var t=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i(\"data_length\")),e=this;return t.on(\"end\",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error(\"Bug : uncompressed data size mismatch\")}),t},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo(\"compressedSize\",this.compressedSize).withStreamInfo(\"uncompressedSize\",this.uncompressedSize).withStreamInfo(\"crc32\",this.crc32).withStreamInfo(\"compression\",this.compression)}},s.createWorkerFrom=function(t,e,r){return t.pipe(new o).pipe(new i(\"uncompressedSize\")).pipe(e.compressWorker(r)).pipe(new i(\"compressedSize\")).withStreamInfo(\"compression\",e)},e.exports=s},{\"./external\":6,\"./stream/Crc32Probe\":25,\"./stream/DataLengthProbe\":26,\"./stream/DataWorker\":27}],3:[function(t,e,r){\"use strict\";var n=t(\"./stream/GenericWorker\");r.STORE={magic:\"\\0\\0\",compressWorker:function(t){return new n(\"STORE compression\")},uncompressWorker:function(){return new n(\"STORE decompression\")}},r.DEFLATE=t(\"./flate\")},{\"./flate\":7,\"./stream/GenericWorker\":28}],4:[function(t,e,r){\"use strict\";var n=t(\"./utils\"),i=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?\"string\"!==n.getTypeOf(t)?function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e[o])];return-1^t}(0|e,t,t.length):function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e.charCodeAt(o))];return-1^t}(0|e,t,t.length):0}},{\"./utils\":32}],5:[function(t,e,r){\"use strict\";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){\"use strict\";var n;n=\"undefined\"!=typeof Promise?Promise:t(\"lie\"),e.exports={Promise:n}},{lie:37}],7:[function(t,e,r){\"use strict\";var n=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Uint32Array,a=t(\"pako\"),o=t(\"./utils\"),i=t(\"./stream/GenericWorker\"),s=n?\"uint8array\":\"array\";function l(t,e){i.call(this,\"FlateWorker/\"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic=\"\\b\\0\",o.inherits(l,i),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){i.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(t){return new l(\"Deflate\",t)},r.uncompressWorker=function(){return new l(\"Inflate\",{})}},{\"./stream/GenericWorker\":28,\"./utils\":32,pako:38}],8:[function(t,e,r){\"use strict\";function T(t,e){var r,n=\"\";for(r=0;r>>=8;return n}function a(t,e,r,n,a,o){var i,s,l=t.file,c=t.compression,u=o!==R.utf8encode,p=k.transformTo(\"string\",o(l.name)),f=k.transformTo(\"string\",R.utf8encode(l.name)),d=l.comment,h=k.transformTo(\"string\",o(d)),m=k.transformTo(\"string\",R.utf8encode(d)),g=f.length!==l.name.length,v=m.length!==d.length,A=\"\",y=\"\",b=\"\",x=l.dir,w=l.date,_={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(_.crc32=t.crc32,_.compressedSize=t.compressedSize,_.uncompressedSize=t.uncompressedSize);var C=0;e&&(C|=8),u||!g&&!v||(C|=2048);var P,S=0,L=0;x&&(S|=16),\"UNIX\"===a?(L=798,S|=((P=l.unixPermissions)||(P=x?16893:33204),(65535&P)<<16)):(L=20,S|=63&(l.dosPermissions||0)),i=w.getUTCHours(),i<<=6,i|=w.getUTCMinutes(),i<<=5,i|=w.getUTCSeconds()/2,s=w.getUTCFullYear()-1980,s<<=4,s|=w.getUTCMonth()+1,s<<=5,s|=w.getUTCDate(),g&&(A+=\"up\"+T((y=T(1,1)+T(F(p),4)+f).length,2)+y),v&&(A+=\"uc\"+T((b=T(1,1)+T(F(h),4)+m).length,2)+b);var E=\"\";return E+=\"\\n\\0\",E+=T(C,2),E+=c.magic,E+=T(i,2),E+=T(s,2),E+=T(_.crc32,4),E+=T(_.compressedSize,4),E+=T(_.uncompressedSize,4),E+=T(p.length,2),E+=T(A.length,2),{fileRecord:I.LOCAL_FILE_HEADER+E+p+A,dirRecord:I.CENTRAL_FILE_HEADER+T(L,2)+E+T(h.length,2)+\"\\0\\0\\0\\0\"+T(S,4)+T(n,4)+p+A+h}}var k=t(\"../utils\"),o=t(\"../stream/GenericWorker\"),R=t(\"../utf8\"),F=t(\"../crc32\"),I=t(\"../signature\");function n(t,e,r,n){o.call(this,\"ZipFileWorker\"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}k.inherits(n,o),n.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},n.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=a(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(t){this.accumulate=!1;var e,r=this.streamFiles&&!t.file.dir,n=a(t,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),r)this.push({data:(e=t,I.DATA_DESCRIPTOR+T(e.crc32,4)+T(e.compressedSize,4)+T(e.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return n.transformTo(\"string\",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=a},{\"../utils\":32}],19:[function(t,e,r){\"use strict\";var n=t(\"./Uint8ArrayReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./Uint8ArrayReader\":21}],20:[function(t,e,r){\"use strict\";var n=t(\"./DataReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},a.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},a.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./DataReader\":18}],21:[function(t,e,r){\"use strict\";var n=t(\"./ArrayReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./ArrayReader\":17}],22:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"../support\"),o=t(\"./ArrayReader\"),i=t(\"./StringReader\"),s=t(\"./NodeBufferReader\"),l=t(\"./Uint8ArrayReader\");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),\"string\"!==e||a.uint8array?\"nodebuffer\"===e?new s(t):a.uint8array?new l(n.transformTo(\"uint8array\",t)):new o(n.transformTo(\"array\",t)):new i(t)}},{\"../support\":30,\"../utils\":32,\"./ArrayReader\":17,\"./NodeBufferReader\":19,\"./StringReader\":20,\"./Uint8ArrayReader\":21}],23:[function(t,e,r){\"use strict\";r.LOCAL_FILE_HEADER=\"PK\u0003\u0004\",r.CENTRAL_FILE_HEADER=\"PK\u0001\u0002\",r.CENTRAL_DIRECTORY_END=\"PK\u0005\u0006\",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR=\"PK\u0006\u0007\",r.ZIP64_CENTRAL_DIRECTORY_END=\"PK\u0006\u0006\",r.DATA_DESCRIPTOR=\"PK\u0007\\b\"},{}],24:[function(t,e,r){\"use strict\";var n=t(\"./GenericWorker\"),a=t(\"../utils\");function o(t){n.call(this,\"ConvertWorker to \"+t),this.destType=t}a.inherits(o,n),o.prototype.processChunk=function(t){this.push({data:a.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],25:[function(t,e,r){\"use strict\";var n=t(\"./GenericWorker\"),a=t(\"../crc32\");function o(){n.call(this,\"Crc32Probe\"),this.withStreamInfo(\"crc32\",0)}t(\"../utils\").inherits(o,n),o.prototype.processChunk=function(t){this.streamInfo.crc32=a(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{\"../crc32\":4,\"../utils\":32,\"./GenericWorker\":28}],26:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"./GenericWorker\");function o(t){a.call(this,\"DataLengthProbe for \"+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(o,a),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}a.prototype.processChunk.call(this,t)},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],27:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"./GenericWorker\");function o(t){a.call(this,\"DataWorker\");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=\"\",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}n.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case\"string\":t=this.data.substring(this.index,e);break;case\"uint8array\":t=this.data.subarray(this.index,e);break;case\"array\":case\"nodebuffer\":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],28:[function(t,e,r){\"use strict\";function n(t){this.name=t||\"default\",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit(\"data\",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(\"end\"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit(\"error\",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit(\"error\",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r \"+t:t}},e.exports=n},{}],29:[function(t,e,r){\"use strict\";var c=t(\"../utils\"),a=t(\"./ConvertWorker\"),o=t(\"./GenericWorker\"),u=t(\"../base64\"),n=t(\"../support\"),i=t(\"../external\"),s=null;if(n.nodestream)try{s=t(\"../nodejs/NodejsStreamOutputAdapter\")}catch(t){}function l(t,e,r){var n=e;switch(e){case\"blob\":case\"arraybuffer\":n=\"uint8array\";break;case\"base64\":n=\"string\"}try{this._internalType=n,this._outputType=e,this._mimeType=r,c.checkSupport(n),this._worker=t.pipe(new a(n)),t.lock()}catch(t){this._worker=new o(\"error\"),this._worker.error(t)}}l.prototype={accumulate:function(t){return s=this,l=t,new i.Promise(function(e,r){var n=[],a=s._internalType,o=s._outputType,i=s._mimeType;s.on(\"data\",function(t,e){n.push(t),l&&l(e)}).on(\"error\",function(t){n=[],r(t)}).on(\"end\",function(){try{var t=function(t,e,r){switch(t){case\"blob\":return c.newBlob(c.transformTo(\"arraybuffer\",e),r);case\"base64\":return u.encode(e);default:return c.transformTo(t,e)}}(o,function(t,e){var r,n=0,a=null,o=0;for(r=0;r>>6:(r<65536?e[o++]=224|r>>>12:(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63),e[o++]=128|r>>>6&63),e[o++]=128|63&r);return e}(t)},o.utf8decode=function(t){return l.nodebuffer?s.transformTo(\"nodebuffer\",t).toString(\"utf-8\"):function(t){var e,r,n,a,o=t.length,i=new Array(2*o);for(e=r=0;e>10&1023,i[r++]=56320|1023&n)}return i.length!==r&&(i.subarray?i=i.subarray(0,r):i.length=r),s.applyFromCharCode(i)}(t=s.transformTo(l.uint8array?\"uint8array\":\"array\",t))},s.inherits(i,n),i.prototype.processChunk=function(t){var e=s.transformTo(l.uint8array?\"uint8array\":\"array\",t.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var r=e;(e=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),e.set(r,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var n=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+c[t[r]]>e?r:e}(e),a=e;n!==e.length&&(l.uint8array?(a=e.subarray(0,n),this.leftOver=e.subarray(n,e.length)):(a=e.slice(0,n),this.leftOver=e.slice(n,e.length))),this.push({data:o.utf8decode(a),meta:t.meta})},i.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=i,s.inherits(u,n),u.prototype.processChunk=function(t){this.push({data:o.utf8encode(t.data),meta:t.meta})},o.Utf8EncodeWorker=u},{\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./support\":30,\"./utils\":32}],32:[function(t,e,s){\"use strict\";var l=t(\"./support\"),c=t(\"./base64\"),r=t(\"./nodejsUtils\"),n=t(\"set-immediate-shim\"),u=t(\"./external\");function a(t){return t}function p(t,e){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||\"/\"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(t){var e,r,n,a=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4>>6:(r<65536?e[o++]=224|r>>>12:(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63),e[o++]=128|r>>>6&63),e[o++]=128|63&r);return e},r.buf2binstring=function(t){return u(t,t.length)},r.binstring2buf=function(t){for(var e=new l.Buf8(t.length),r=0,n=e.length;r>10&1023,s[n++]=56320|1023&a)}return u(s,n)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+c[t[r]]>e?r:e}},{\"./common\":41}],43:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){for(var a=65535&t|0,o=t>>>16&65535|0,i=0;0!==r;){for(r-=i=2e3>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,n){var a=s,o=n+r;t^=-1;for(var i=n;i>>8^a[255&(t^e[i])];return-1^t}},{}],46:[function(t,e,r){\"use strict\";var l,f=t(\"../utils/common\"),c=t(\"./trees\"),d=t(\"./adler32\"),h=t(\"./crc32\"),n=t(\"./messages\"),u=0,p=0,m=-2,a=2,g=8,o=286,i=30,s=19,v=2*o+1,A=15,y=3,b=258,x=b+y+1,w=42,_=113;function C(t,e){return t.msg=n[e],e}function P(t){return(t<<1)-(4t.avail_out&&(r=t.avail_out),0!==r&&(f.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function E(t,e){c._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,L(t.strm)}function T(t,e){t.pending_buf[t.pending++]=e}function k(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function R(t,e){var r,n,a=t.max_chain_length,o=t.strstart,i=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-x?t.strstart-(t.w_size-x):0,c=t.window,u=t.w_mask,p=t.prev,f=t.strstart+b,d=c[o+i-1],h=c[o+i];t.prev_length>=t.good_match&&(a>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+i]===h&&c[r+i-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&ol&&0!=--a);return i<=t.lookahead?i:t.lookahead}function F(t){var e,r,n,a,o,i,s,l,c,u,p=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-x)){for(f.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;n=t.head[--e],t.head[e]=p<=n?n-p:0,--r;);for(e=r=p;n=t.prev[--e],t.prev[e]=p<=n?n-p:0,--r;);a+=p}if(0===t.strm.avail_in)break;if(i=t.strm,s=t.window,l=t.strstart+t.lookahead,u=void 0,(c=a)<(u=i.avail_in)&&(u=c),r=0===u?0:(i.avail_in-=u,f.arraySet(s,i.input,i.next_in,u,l),1===i.state.wrap?i.adler=d(i.adler,s,u,l):2===i.state.wrap&&(i.adler=h(i.adler,s,u,l)),i.next_in+=u,i.total_in+=u,u),t.lookahead+=r,t.lookahead+t.insert>=y)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<=y&&(t.ins_h=(t.ins_h<=y)if(n=c._tr_tally(t,t.strstart-t.match_start,t.match_length-y),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=y){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=y&&(t.ins_h=(t.ins_h<=y&&t.match_length<=t.prev_length){for(a=t.strstart+t.lookahead-y,n=c._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-y),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=a&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(F(t),0===t.lookahead&&e===u)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,E(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-x&&(E(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(E(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(E(t,!1),t.strm.avail_out),1)}),new B(4,4,8,4,I),new B(4,5,16,8,I),new B(4,6,32,32,I),new B(4,4,16,16,O),new B(8,16,32,32,O),new B(8,16,128,128,O),new B(8,32,128,256,O),new B(32,128,258,1024,O),new B(32,258,258,4096,O)],r.deflateInit=function(t,e){return z(t,e,g,15,8,0)},r.deflateInit2=z,r.deflateReset=M,r.deflateResetKeep=D,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,p):m},r.deflate=function(t,e){var r,n,a,o;if(!t||!t.state||5>8&255),T(n,n.gzhead.time>>16&255),T(n,n.gzhead.time>>24&255),T(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),T(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(T(n,255&n.gzhead.extra.length),T(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=h(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(T(n,0),T(n,0),T(n,0),T(n,0),T(n,0),T(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),T(n,3),n.status=_);else{var i=g+(n.w_bits-8<<4)<<8;i|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(i|=32),i+=31-i%31,n.status=_,k(n,i),0!==n.strstart&&(k(n,t.adler>>>16),k(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),L(t),a=n.pending,n.pending!==n.pending_buf_size));)T(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),L(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexa&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),L(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexa&&(t.adler=h(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&L(t),n.pending+2<=n.pending_buf_size&&(T(n,255&t.adler),T(n,t.adler>>8&255),t.adler=0,n.status=_)):n.status=_),0!==n.pending){if(L(t),0===t.avail_out)return n.last_flush=-1,p}else if(0===t.avail_in&&P(e)<=P(r)&&4!==e)return C(t,-5);if(666===n.status&&0!==t.avail_in)return C(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==u&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(F(t),0===t.lookahead)){if(e===u)return 1;break}if(t.match_length=0,r=c._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(E(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(E(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(E(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,a,o,i=t.window;;){if(t.lookahead<=b){if(F(t),t.lookahead<=b&&e===u)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=y&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=y?(r=c._tr_tally(t,1,t.match_length-y),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=c._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(E(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(E(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(E(t,!1),0===t.strm.avail_out)?1:2}(n,e):l[n.level].func(n,e);if(3!==s&&4!==s||(n.status=666),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),p;if(2===s&&(1===e?c._tr_align(n):5!==e&&(c._tr_stored_block(n,0,0,!1),3===e&&(S(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),L(t),0===t.avail_out))return n.last_flush=-1,p}return 4!==e?p:n.wrap<=0?1:(2===n.wrap?(T(n,255&t.adler),T(n,t.adler>>8&255),T(n,t.adler>>16&255),T(n,t.adler>>24&255),T(n,255&t.total_in),T(n,t.total_in>>8&255),T(n,t.total_in>>16&255),T(n,t.total_in>>24&255)):(k(n,t.adler>>>16),k(n,65535&t.adler)),L(t),0=r.w_size&&(0===o&&(S(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new f.Buf8(r.w_size),f.arraySet(c,e,u-r.w_size,r.w_size,0),e=c,u=r.w_size),i=t.avail_in,s=t.next_in,l=t.input,t.avail_in=u,t.next_in=0,t.input=e,F(r);r.lookahead>=y;){for(n=r.strstart,a=r.lookahead-(y-1);r.ins_h=(r.ins_h<>>=b=y>>>24,h-=b,0==(b=y>>>16&255))S[o++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=m[(65535&y)+(d&(1<>>=b,h-=b),h<15&&(d+=P[n++]<>>=b=y>>>24,h-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=g[(65535&y)+(d&(1<>>=b,h-=b,(b=o-i)>3,d&=(1<<(h-=x<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function o(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new T.Buf16(320),this.work=new T.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function i(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=M,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new T.Buf32(n),e.distcode=e.distdyn=new T.Buf32(a),e.sane=1,e.back=-1,N):D}function s(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,i(t)):D}function l(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=o.wsize?(T.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(n<(a=o.wsize-o.wnext)&&(a=n),T.arraySet(o.window,e,r-n,a,o.wnext),(n-=a)?(T.arraySet(o.window,e,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,r.check=R(r.check,L,2,0),u=c=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg=\"incorrect header check\",r.mode=30;break}if(8!=(15&c)){t.msg=\"unknown compression method\",r.mode=30;break}if(u-=4,w=8+(15&(c>>>=4)),0===r.wbits)r.wbits=w;else if(w>r.wbits){t.msg=\"invalid window size\",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=R(r.check,L,2,0)),u=c=0,r.mode=3;case 3:for(;u<32;){if(0===s)break t;s--,c+=n[o++]<>>8&255,L[2]=c>>>16&255,L[3]=c>>>24&255,r.check=R(r.check,L,4,0)),u=c=0,r.mode=4;case 4:for(;u<16;){if(0===s)break t;s--,c+=n[o++]<>8),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=R(r.check,L,2,0)),u=c=0,r.mode=5;case 5:if(1024&r.flags){for(;u<16;){if(0===s)break t;s--,c+=n[o++]<>>8&255,r.check=R(r.check,L,2,0)),u=c=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(s<(d=r.length)&&(d=s),d&&(r.head&&(w=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),T.arraySet(r.head.extra,n,o,d,w)),512&r.flags&&(r.check=R(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;for(d=0;w=n[o+d++],r.head&&w&&r.length<65536&&(r.head.name+=String.fromCharCode(w)),w&&d>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;u<32;){if(0===s)break t;s--,c+=n[o++]<>>=7&u,u-=7&u,r.mode=27;break}for(;u<3;){if(0===s)break t;s--,c+=n[o++]<>>=1)){case 0:r.mode=14;break;case 1:if(U(r),r.mode=20,6!==e)break;c>>>=2,u-=2;break t;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=30}c>>>=2,u-=2;break;case 14:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break t;s--,c+=n[o++]<>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=30;break}if(r.length=65535&c,u=c=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(s>>=5,u-=5,r.ndist=1+(31&c),c>>>=5,u-=5,r.ncode=4+(15&c),c>>>=4,u-=4,286>>=3,u-=3}for(;r.have<19;)r.lens[E[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},_=I(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg=\"invalid code lengths set\",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,A=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>>=g,u-=g,r.lens[r.have++]=A;else{if(16===A){for(P=g+2;u>>=g,u-=g,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=30;break}w=r.lens[r.have-1],d=3+(3&c),c>>>=2,u-=2}else if(17===A){for(P=g+3;u>>=g)),c>>>=3,u-=3}else{for(P=g+7;u>>=g)),c>>>=7,u-=7}if(r.have+d>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=30;break}for(;d--;)r.lens[r.have++]=w}}if(30===r.mode)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=30;break}if(r.lenbits=9,C={bits:r.lenbits},_=I(O,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg=\"invalid literal/lengths set\",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},_=I(B,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,_){t.msg=\"invalid distances set\",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=s&&258<=l){t.next_out=i,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=u,F(t,f),i=t.next_out,a=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,u=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;v=(S=r.lencode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>y)])>>>16&255,A=65535&S,!(y+(g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>>=y,u-=y,r.back+=y}if(c>>>=g,u-=g,r.back+=g,r.length=A,0===v){r.mode=26;break}if(32&v){r.back=-1,r.mode=12;break}if(64&v){t.msg=\"invalid literal/length code\",r.mode=30;break}r.extra=15&v,r.mode=22;case 22:if(r.extra){for(P=r.extra;u>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;v=(S=r.distcode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>y)])>>>16&255,A=65535&S,!(y+(g=S>>>24)<=u);){if(0===s)break t;s--,c+=n[o++]<>>=y,u-=y,r.back+=y}if(c>>>=g,u-=g,r.back+=g,64&v){t.msg=\"invalid distance code\",r.mode=30;break}r.offset=A,r.extra=15&v,r.mode=24;case 24:if(r.extra){for(P=r.extra;u>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=30;break}r.mode=25;case 25:if(0===l)break t;if(d=f-l,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break}h=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=a,h=i-r.offset,d=r.length;for(ld?(m=F[I+i[y]],E[T+i[y]]):(m=96,0),l=1<>C)+(c-=l)]=h<<24|m<<16|g|0,0!==c;);for(l=1<>=1;if(0!==l?(L&=l-1,L+=l):L=0,y++,0==--k[A]){if(A===x)break;A=e[r+i[y]]}if(w>>7)]}function _(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function C(t,e,r){t.bi_valid>a-r?(t.bi_buf|=e<>a-t.bi_valid,t.bi_valid+=r-a):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function L(t,e,r){var n,a,o=new Array(g+1),i=0;for(n=1;n<=g;n++)o[n]=i=i+r[n-1]<<1;for(a=0;a<=e;a++){var s=t[2*a+1];0!==s&&(t[2*a]=S(o[s]++,s))}}function E(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function T(t){8>1;1<=r;r--)R(t,o,r);for(a=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*a]=o[2*r]+o[2*n],t.depth[a]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=a,t.heap[1]=a++,R(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,a,o,i,s,l=e.dyn_tree,c=e.max_code,u=e.stat_desc.static_tree,p=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,h=e.stat_desc.max_length,m=0;for(o=0;o<=g;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)h<(o=l[2*l[2*(n=t.heap[r])+1]+1]+1)&&(o=h,m++),l[2*n+1]=o,c>=7;n<30;n++)for(b[n]=a<<7,t=0;t<1<>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),i=function(t){var e;for(O(t,t.dyn_ltree,t.l_desc.max_code),O(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=a&&(a=o)):a=o=r+5,r+4<=a&&-1!==e?D(t,e,r,n):4===t.strategy||o===a?(C(t,2+(n?1:0),3),F(t,p,f)):(C(t,4+(n?1:0),3),function(t,e,r,n){var a;for(C(t,e-257,5),C(t,r-1,5),C(t,n-4,4),a=0;a>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(h[r]+256+1)]++,t.dyn_dtree[2*w(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){var e;C(t,2,3),P(t,256,p),16===(e=t).bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{\"../utils/common\":41}],53:[function(t,e,r){\"use strict\";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){\"use strict\";e.exports=\"function\"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)})}).call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)}),function o(i,s,l){function c(e,t){if(!s[e]){if(!i[e]){var r=\"function\"==typeof require&&require;if(!t&&r)return r(e,!0);if(u)return u(e,!0);var n=new Error(\"Cannot find module '\"+e+\"'\");throw n.code=\"MODULE_NOT_FOUND\",n}var a=s[e]={exports:{}};i[e][0].call(a.exports,function(t){return c(i[e][1][t]||t)},a,a.exports,o,i,s,l)}return s[e].exports}for(var u=\"function\"==typeof require&&require,t=0;ti;)o.call(t,n=a[i++])&&e.push(n);return e}},{104:104,107:107,108:108}],62:[function(t,e,r){var m=t(70),g=t(52),v=t(72),A=t(118),y=t(54),b=\"prototype\",x=function(t,e,r){var n,a,o,i,s=t&x.F,l=t&x.G,c=t&x.S,u=t&x.P,p=t&x.B,f=l?m:c?m[e]||(m[e]={}):(m[e]||{})[b],d=l?g:g[e]||(g[e]={}),h=d[b]||(d[b]={});for(n in l&&(r=e),r)o=((a=!s&&f&&void 0!==f[n])?f:r)[n],i=p&&a?y(o,m):u&&\"function\"==typeof o?y(Function.call,o):o,f&&A(f,n,o,t&x.U),d[n]!=o&&v(d,n,i),u&&h[n]!=o&&(h[n]=o)};m.core=g,x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128,e.exports=x},{118:118,52:52,54:54,70:70,72:72}],63:[function(t,e,r){var n=t(152)(\"match\");e.exports=function(e){var r=/./;try{\"/./\"[e](r)}catch(t){try{return r[n]=!1,!\"/./\"[e](r)}catch(t){}}return!0}},{152:152}],64:[function(t,e,r){arguments[4][23][0].apply(r,arguments)},{23:23}],65:[function(t,e,r){\"use strict\";t(248);var u=t(118),p=t(72),f=t(64),d=t(57),h=t(152),m=t(120),g=h(\"species\"),v=!f(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:\"7\"},t},\"7\"!==\"\".replace(t,\"$
\")}),A=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r=\"ab\".split(t);return 2===r.length&&\"a\"===r[0]&&\"b\"===r[1]}();e.exports=function(r,t,e){var n=h(r),o=!f(function(){var t={};return t[n]=function(){return 7},7!=\"\"[r](t)}),a=o?!f(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},\"split\"===r&&(e.constructor={},e.constructor[g]=function(){return e}),e[n](\"\"),!t}):void 0;if(!o||!a||\"replace\"===r&&!v||\"split\"===r&&!A){var i=/./[n],s=e(d,n,\"\"[r],function(t,e,r,n,a){return e.exec===m?o&&!a?{done:!0,value:i.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),l=s[0],c=s[1];u(String.prototype,r,l),p(RegExp.prototype,n,2==t?function(t,e){return c.call(t,this,e)}:function(t){return c.call(t,this)})}}},{118:118,120:120,152:152,248:248,57:57,64:64,72:72}],66:[function(t,e,r){\"use strict\";var n=t(38);e.exports=function(){var t=n(this),e=\"\";return t.global&&(e+=\"g\"),t.ignoreCase&&(e+=\"i\"),t.multiline&&(e+=\"m\"),t.unicode&&(e+=\"u\"),t.sticky&&(e+=\"y\"),e}},{38:38}],67:[function(t,e,r){\"use strict\";var h=t(79),m=t(81),g=t(141),v=t(54),A=t(152)(\"isConcatSpreadable\");e.exports=function t(e,r,n,a,o,i,s,l){for(var c,u,p=o,f=0,d=!!s&&v(s,l,3);fdocument.F=Object<\\/script>\"),t.close(),u=t.F;r--;)delete u[c][s[r]];return u()};t.exports=Object.create||function(t,e){var r;return null!==t?(a[c]=o(t),r=new a,a[c]=null,r[l]=t):r=u(),void 0===e?r:i(r,e)}},{100:100,125:125,38:38,59:59,60:60,73:73}],99:[function(t,e,r){arguments[4][29][0].apply(r,arguments)},{143:143,29:29,38:38,58:58,74:74}],100:[function(t,e,r){var i=t(99),s=t(38),l=t(107);e.exports=t(58)?Object.defineProperties:function(t,e){s(t);for(var r,n=l(e),a=n.length,o=0;oa;)i(n,r=e[a++])&&(~l(o,r)||o.push(r));return o}},{125:125,140:140,41:41,71:71}],107:[function(t,e,r){var n=t(106),a=t(60);e.exports=Object.keys||function(t){return n(t,a)}},{106:106,60:60}],108:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],109:[function(t,e,r){var a=t(62),o=t(52),i=t(64);e.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],n={};n[t]=e(r),a(a.S+a.F*i(function(){r(1)}),\"Object\",n)}},{52:52,62:62,64:64}],110:[function(t,e,r){var l=t(58),c=t(107),u=t(140),p=t(108).f;e.exports=function(s){return function(t){for(var e,r=u(t),n=c(r),a=n.length,o=0,i=[];o>>0||(i.test(r)?16:10))}:n},{134:134,135:135,70:70}],114:[function(t,e,r){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],115:[function(t,e,r){var n=t(38),a=t(81),o=t(96);e.exports=function(t,e){if(n(t),a(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},{38:38,81:81,96:96}],116:[function(t,e,r){arguments[4][30][0].apply(r,arguments)},{30:30}],117:[function(t,e,r){var a=t(118);e.exports=function(t,e,r){for(var n in e)a(t,n,e[n],r);return t}},{118:118}],118:[function(t,e,r){var o=t(70),i=t(72),s=t(71),l=t(147)(\"src\"),n=t(69),a=\"toString\",c=(\"\"+n).split(a);t(52).inspectSource=function(t){return n.call(t)},(e.exports=function(t,e,r,n){var a=\"function\"==typeof r;a&&(s(r,\"name\")||i(r,\"name\",e)),t[e]!==r&&(a&&(s(r,l)||i(r,l,t[e]?\"\"+t[e]:c.join(String(e)))),t===o?t[e]=r:n?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,a,function(){return\"function\"==typeof this&&this[l]||n.call(this)})},{147:147,52:52,69:69,70:70,71:71,72:72}],119:[function(t,e,r){\"use strict\";var a=t(47),o=RegExp.prototype.exec;e.exports=function(t,e){var r=t.exec;if(\"function\"==typeof r){var n=r.call(t,e);if(\"object\"!=typeof n)throw new TypeError(\"RegExp exec method returned something other than an Object or null\");return n}if(\"RegExp\"!==a(t))throw new TypeError(\"RegExp#exec called on incompatible receiver\");return o.call(t,e)}},{47:47}],120:[function(t,e,r){\"use strict\";var n,a,i=t(66),s=RegExp.prototype.exec,l=String.prototype.replace,o=s,c=\"lastIndex\",u=(n=/a/,a=/b*/g,s.call(n,\"a\"),s.call(a,\"a\"),0!==n[c]||0!==a[c]),p=void 0!==/()??/.exec(\"\")[1];(u||p)&&(o=function(t){var e,r,n,a,o=this;return p&&(r=new RegExp(\"^\"+o.source+\"$(?!\\\\s)\",i.call(o))),u&&(e=o[c]),n=s.call(o,t),u&&n&&(o[c]=o.global?n.index+n[0].length:e),p&&n&&1\"+a+\"\"}var a=t(62),o=t(64),i=t(57),s=/\"/g;e.exports=function(e,t){var r={};r[e]=t(n),a(a.P+a.F*o(function(){var t=\"\"[e]('\"');return t!==t.toLowerCase()||3l&&(c=c.slice(0,l)),n?c+a:a+c}},{133:133,141:141,57:57}],133:[function(t,e,r){\"use strict\";var a=t(139),o=t(57);e.exports=function(t){var e=String(o(this)),r=\"\",n=a(t);if(n<0||n==1/0)throw RangeError(\"Count can't be negative\");for(;0>>=1)&&(e+=e))1&n&&(r+=e);return r}},{139:139,57:57}],134:[function(t,e,r){function n(t,e,r){var n={},a=s(function(){return!!l[t]()||\"​…\"!=\"​…\"[t]()}),o=n[t]=a?e(p):l[t];r&&(n[r]=o),i(i.P+i.F*a,\"String\",n)}var i=t(62),a=t(57),s=t(64),l=t(135),o=\"[\"+l+\"]\",c=RegExp(\"^\"+o+o+\"*\"),u=RegExp(o+o+\"*$\"),p=n.trim=function(t,e){return t=String(a(t)),1&e&&(t=t.replace(c,\"\")),2&e&&(t=t.replace(u,\"\")),t};e.exports=n},{135:135,57:57,62:62,64:64}],135:[function(t,e,r){e.exports=\"\\t\\n\\v\\f\\r   ᠎              \\u2028\\u2029\\ufeff\"},{}],136:[function(t,e,r){function n(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}}function a(t){n.call(t.data)}var o,i,s,l=t(54),c=t(76),u=t(73),p=t(59),f=t(70),d=f.process,h=f.setImmediate,m=f.clearImmediate,g=f.MessageChannel,v=f.Dispatch,A=0,y={},b=\"onreadystatechange\";h&&m||(h=function(t){for(var e=[],r=1;r>1,u=23===e?T(2,-24)-T(2,-77):0,p=0,f=t<0||0===t&&1/t<0?1:0;for((t=E(t))!=t||t===S?(a=t!=t?1:0,n=l):(n=k(R(t)/F),t*(o=T(2,-n))<1&&(n--,o*=2),2<=(t+=1<=n+c?u/o:u*T(2,1-c))*o&&(n++,o/=2),l<=n+c?(a=0,n=l):1<=n+c?(a=(t*o-1)*T(2,e),n+=c):(a=t*T(2,c-1)*T(2,e),n=0));8<=e;i[p++]=255&a,a/=256,e-=8);for(n=n<>1,s=a-7,l=r-1,c=t[l--],u=127&c;for(c>>=7;0>=-s,s+=e;0>8&255]}function G(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function H(t){return M(t,52,8)}function V(t){return M(t,23,4)}function Q(t,e,r){m(t[b],e,{get:function(){return this[r]}})}function Y(t,e,r,n){var a=d(+r);if(a+e>t[N])throw P(x);var o=t[B]._b,i=a+t[D],s=o.slice(i,i+e);return n?s:s.reverse()}function q(t,e,r,n,a,o){var i=d(+r);if(i+e>t[N])throw P(x);for(var s=t[B]._b,l=i+t[D],c=n(+a),u=0;uJ;)(Z=K[J++])in w||s(w,Z,L[Z]);o||(X.constructor=w)}var $=new _(new w(2)),tt=_[b].setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||l(_[b],{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else w=function(t){u(this,w,A);var e=d(t);this._b=g.call(new Array(e),0),this[N]=e},_=function(t,e,r){u(this,_,y),u(t,w,y);var n=t[N],a=p(e);if(a<0||n>24},getUint8:function(t){return Y(this,1,t)[0]},getInt16:function(t,e){var r=Y(this,2,t,e);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t,e){var r=Y(this,2,t,e);return r[1]<<8|r[0]},getInt32:function(t,e){return U(Y(this,4,t,e))},getUint32:function(t,e){return U(Y(this,4,t,e))>>>0},getFloat32:function(t,e){return z(Y(this,4,t,e),23,4)},getFloat64:function(t,e){return z(Y(this,8,t,e),52,8)},setInt8:function(t,e){q(this,1,t,j,e)},setUint8:function(t,e){q(this,1,t,j,e)},setInt16:function(t,e,r){q(this,2,t,W,e,r)},setUint16:function(t,e,r){q(this,2,t,W,e,r)},setInt32:function(t,e,r){q(this,4,t,G,e,r)},setUint32:function(t,e,r){q(this,4,t,G,e,r)},setFloat32:function(t,e,r){q(this,4,t,V,e,r)},setFloat64:function(t,e,r){q(this,8,t,H,e,r)}});v(w,A),v(_,y),s(_[b],i.VIEW,!0),r[A]=w,r[y]=_},{103:103,117:117,124:124,138:138,139:139,141:141,146:146,37:37,40:40,58:58,64:64,70:70,72:72,89:89,99:99}],146:[function(t,e,r){for(var n,a=t(70),o=t(72),i=t(147),s=i(\"typed_array\"),l=i(\"view\"),c=!(!a.ArrayBuffer||!a.DataView),u=c,p=0,f=\"Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array\".split(\",\");p<9;)(n=a[f[p++]])?(o(n.prototype,s,!0),o(n.prototype,l,!0)):u=!1;e.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},{147:147,70:70,72:72}],147:[function(t,e,r){var n=0,a=Math.random();e.exports=function(t){return\"Symbol(\".concat(void 0===t?\"\":t,\")_\",(++n+a).toString(36))}},{}],148:[function(t,e,r){var n=t(70).navigator;e.exports=n&&n.userAgent||\"\"},{70:70}],149:[function(t,e,r){var n=t(81);e.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError(\"Incompatible receiver, \"+e+\" required!\");return t}},{81:81}],150:[function(t,e,r){var n=t(70),a=t(52),o=t(89),i=t(151),s=t(99).f;e.exports=function(t){var e=a.Symbol||(a.Symbol=o?{}:n.Symbol||{});\"_\"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},{151:151,52:52,70:70,89:89,99:99}],151:[function(t,e,r){r.f=t(152)},{152:152}],152:[function(t,e,r){var n=t(126)(\"wks\"),a=t(147),o=t(70).Symbol,i=\"function\"==typeof o;(e.exports=function(t){return n[t]||(n[t]=i&&o[t]||(i?o:a)(\"Symbol.\"+t))}).store=n},{126:126,147:147,70:70}],153:[function(t,e,r){var n=t(47),a=t(152)(\"iterator\"),o=t(88);e.exports=t(52).getIteratorMethod=function(t){if(null!=t)return t[a]||t[\"@@iterator\"]||o[n(t)]}},{152:152,47:47,52:52,88:88}],154:[function(t,e,r){var n=t(62);n(n.P,\"Array\",{copyWithin:t(39)}),t(35)(\"copyWithin\")},{35:35,39:39,62:62}],155:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(4);n(n.P+n.F*!t(128)([].every,!0),\"Array\",{every:function(t,e){return a(this,t,e)}})},{128:128,42:42,62:62}],156:[function(t,e,r){var n=t(62);n(n.P,\"Array\",{fill:t(40)}),t(35)(\"fill\")},{35:35,40:40,62:62}],157:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(2);n(n.P+n.F*!t(128)([].filter,!0),\"Array\",{filter:function(t,e){return a(this,t,e)}})},{128:128,42:42,62:62}],158:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(6),o=\"findIndex\",i=!0;o in[]&&Array(1)[o](function(){i=!1}),n(n.P+n.F*i,\"Array\",{findIndex:function(t,e){return a(this,t,1=t.length?(this._t=void 0,a(1)):a(0,\"keys\"==e?r:\"values\"==e?t[r]:[r,t[r]])},\"values\"),o.Arguments=o.Array,n(\"keys\"),n(\"values\"),n(\"entries\")},{140:140,35:35,85:85,87:87,88:88}],165:[function(t,e,r){\"use strict\";var n=t(62),a=t(140),o=[].join;n(n.P+n.F*(t(77)!=Object||!t(128)(o)),\"Array\",{join:function(t){return o.call(a(this),void 0===t?\",\":t)}})},{128:128,140:140,62:62,77:77}],166:[function(t,e,r){\"use strict\";var n=t(62),o=t(140),i=t(139),s=t(141),l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(c||!t(128)(l)),\"Array\",{lastIndexOf:function(t,e){if(c)return l.apply(this,arguments)||0;var r=o(this),n=s(r.length),a=n-1;for(1>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{62:62}],189:[function(t,e,r){var n=t(62),a=Math.exp;n(n.S,\"Math\",{cosh:function(t){return(a(t=+t)+a(-t))/2}})},{62:62}],190:[function(t,e,r){var n=t(62),a=t(90);n(n.S+n.F*(a!=Math.expm1),\"Math\",{expm1:a})},{62:62,90:90}],191:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{fround:t(91)})},{62:62,91:91}],192:[function(t,e,r){var n=t(62),l=Math.abs;n(n.S,\"Math\",{hypot:function(t,e){for(var r,n,a=0,o=0,i=arguments.length,s=0;o>>16)*o+a*(65535&n>>>16)<<16>>>0)}})},{62:62,64:64}],194:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{log10:function(t){return Math.log(t)*Math.LOG10E}})},{62:62}],195:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{log1p:t(92)})},{62:62,92:92}],196:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{log2:function(t){return Math.log(t)/Math.LN2}})},{62:62}],197:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{sign:t(93)})},{62:62,93:93}],198:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S+n.F*t(64)(function(){return-2e-17!=!Math.sinh(-2e-17)}),\"Math\",{sinh:function(t){return Math.abs(t=+t)<1?(a(t)-a(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},{62:62,64:64,90:90}],199:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S,\"Math\",{tanh:function(t){var e=a(t=+t),r=a(-t);return e==1/0?1:r==1/0?-1:(e-r)/(o(t)+o(-t))}})},{62:62,90:90}],200:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{trunc:function(t){return(0w;w++)o(g,b=x[w])&&!o(m,b)&&f(m,b,p(g,b));(m.prototype=v).constructor=m,t(118)(a,h,m)}},{101:101,103:103,118:118,134:134,143:143,48:48,58:58,64:64,70:70,71:71,75:75,98:98,99:99}],202:[function(t,e,r){var n=t(62);n(n.S,\"Number\",{EPSILON:Math.pow(2,-52)})},{62:62}],203:[function(t,e,r){var n=t(62),a=t(70).isFinite;n(n.S,\"Number\",{isFinite:function(t){return\"number\"==typeof t&&a(t)}})},{62:62,70:70}],204:[function(t,e,r){var n=t(62);n(n.S,\"Number\",{isInteger:t(80)})},{62:62,80:80}],205:[function(t,e,r){var n=t(62);n(n.S,\"Number\",{isNaN:function(t){return t!=t}})},{62:62}],206:[function(t,e,r){var n=t(62),a=t(80),o=Math.abs;n(n.S,\"Number\",{isSafeInteger:function(t){return a(t)&&o(t)<=9007199254740991}})},{62:62,80:80}],207:[function(t,e,r){var n=t(62);n(n.S,\"Number\",{MAX_SAFE_INTEGER:9007199254740991})},{62:62}],208:[function(t,e,r){var n=t(62);n(n.S,\"Number\",{MIN_SAFE_INTEGER:-9007199254740991})},{62:62}],209:[function(t,e,r){var n=t(62),a=t(112);n(n.S+n.F*(Number.parseFloat!=a),\"Number\",{parseFloat:a})},{112:112,62:62}],210:[function(t,e,r){var n=t(62),a=t(113);n(n.S+n.F*(Number.parseInt!=a),\"Number\",{parseInt:a})},{113:113,62:62}],211:[function(t,e,r){\"use strict\";function c(t,e){for(var r=-1,n=e;++r<6;)n+=t*i[r],i[r]=n%1e7,n=o(n/1e7)}function u(t){for(var e=6,r=0;0<=--e;)r+=i[e],i[e]=o(r/t),r=r%t*1e7}function p(){for(var t=6,e=\"\";0<=--t;)if(\"\"!==e||0===t||0!==i[t]){var r=String(i[t]);e=\"\"===e?r:e+h.call(\"0\",7-r.length)+r}return e}var n=t(62),f=t(139),d=t(34),h=t(133),a=1..toFixed,o=Math.floor,i=[0,0,0,0,0,0],m=\"Number.toFixed: incorrect invocation!\",g=function(t,e,r){return 0===e?r:e%2==1?g(t,e-1,r*t):g(t*t,e/2,r)};n(n.P+n.F*(!!a&&(\"0.000\"!==8e-5.toFixed(3)||\"1\"!==.9.toFixed(0)||\"1.25\"!==1.255.toFixed(2)||\"1000000000000000128\"!==(0xde0b6b3a7640080).toFixed(0))||!t(64)(function(){a.call({})})),\"Number\",{toFixed:function(t){var e,r,n,a,o=d(this,m),i=f(t),s=\"\",l=\"0\";if(i<0||20t;)e(n[t++]);u._c=[],u._n=!1,r&&!u._h&&N(u)})}}function o(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),a(e,!0))}var i,s,l,c,u=r(89),f=r(70),d=r(54),h=r(47),m=r(62),g=r(81),v=r(33),A=r(37),y=r(68),b=r(127),x=r(136).set,w=r(95)(),_=r(96),C=r(114),P=r(148),S=r(115),L=\"Promise\",E=f.TypeError,T=f.process,k=T&&T.versions,R=k&&k.v8||\"\",F=f[L],I=\"process\"==h(T),O=s=_.f,B=!!function(){try{var t=F.resolve(1),e=(t.constructor={})[r(152)(\"species\")]=function(t){t(n,n)};return(I||\"function\"==typeof PromiseRejectionEvent)&&t.then(n)instanceof e&&0!==R.indexOf(\"6.6\")&&-1===P.indexOf(\"Chrome/66\")}catch(t){}}(),N=function(o){x.call(f,function(){var t,e,r,n=o._v,a=D(o);if(a&&(t=C(function(){I?T.emit(\"unhandledRejection\",n,o):(e=f.onunhandledrejection)?e({promise:o,reason:n}):(r=f.console)&&r.error&&r.error(\"Unhandled promise rejection\",n)}),o._h=I||D(o)?2:1),o._a=void 0,a&&t.e)throw t.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},M=function(e){x.call(f,function(){var t;I?T.emit(\"rejectionHandled\",e):(t=f.onrejectionhandled)&&t({promise:e,reason:e._v})})},z=function(t){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E(\"Promise can't be resolved itself\");(r=p(t))?w(function(){var e={_w:n,_d:!1};try{r.call(t,d(z,e,1),d(o,e,1))}catch(t){o.call(e,t)}}):(n._v=t,n._s=1,a(n,!1))}catch(t){o.call({_w:n,_d:!1},t)}}};B||(F=function(t){A(this,F,L,\"_h\"),v(t),i.call(this);try{t(d(z,this,1),d(o,this,1))}catch(t){o.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(117)(F.prototype,{then:function(t,e){var r=O(b(this,F));return r.ok=\"function\"!=typeof t||t,r.fail=\"function\"==typeof e&&e,r.domain=I?T.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&a(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),l=function(){var t=new i;this.promise=t,this.resolve=d(z,t,1),this.reject=d(o,t,1)},_.f=O=function(t){return t===F||t===c?new l(t):s(t)}),m(m.G+m.W+m.F*!B,{Promise:F}),r(124)(F,L),r(123)(L),c=r(52)[L],m(m.S+m.F*!B,L,{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),m(m.S+m.F*(u||!B),L,{resolve:function(t){return S(u&&this===c?F:this,t)}}),m(m.S+m.F*!(B&&r(86)(function(t){F.all(t).catch(n)})),L,{all:function(t){var i=this,e=O(i),s=e.resolve,l=e.reject,r=C(function(){var n=[],a=0,o=1;y(t,!1,function(t){var e=a++,r=!1;n.push(void 0),o++,i.resolve(t).then(function(t){r||(r=!0,n[e]=t,--o||s(n))},l)}),--o||s(n)});return r.e&&l(r.v),e.promise},race:function(t){var e=this,r=O(e),n=r.reject,a=C(function(){y(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return a.e&&n(a.v),r.promise}})},{114:114,115:115,117:117,123:123,124:124,127:127,136:136,148:148,152:152,33:33,37:37,47:47,52:52,54:54,62:62,68:68,70:70,81:81,86:86,89:89,95:95,96:96}],233:[function(t,e,r){var n=t(62),o=t(33),i=t(38),s=(t(70).Reflect||{}).apply,l=Function.apply;n(n.S+n.F*!t(64)(function(){s(function(){})}),\"Reflect\",{apply:function(t,e,r){var n=o(t),a=i(r);return s?s(n,e,a):l.call(n,e,a)}})},{33:33,38:38,62:62,64:64,70:70}],234:[function(t,e,r){var n=t(62),l=t(98),c=t(33),u=t(38),p=t(81),a=t(64),f=t(46),d=(t(70).Reflect||{}).construct,h=a(function(){function t(){}return!(d(function(){},[],t)instanceof t)}),m=!a(function(){d(function(){})});n(n.S+n.F*(h||m),\"Reflect\",{construct:function(t,e,r){c(t),u(e);var n=arguments.length<3?t:c(r);if(m&&!h)return d(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var a=[null];return a.push.apply(a,e),new(f.apply(t,a))}var o=n.prototype,i=l(p(o)?o:Object.prototype),s=Function.apply.call(t,i,e);return p(s)?s:i}})},{33:33,38:38,46:46,62:62,64:64,70:70,81:81,98:98}],235:[function(t,e,r){var n=t(99),a=t(62),o=t(38),i=t(143);a(a.S+a.F*t(64)(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),\"Reflect\",{defineProperty:function(t,e,r){o(t),e=i(e,!0),o(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},{143:143,38:38,62:62,64:64,99:99}],236:[function(t,e,r){var n=t(62),a=t(101).f,o=t(38);n(n.S,\"Reflect\",{deleteProperty:function(t,e){var r=a(o(t),e);return!(r&&!r.configurable)&&delete t[e]}})},{101:101,38:38,62:62}],237:[function(t,e,r){\"use strict\";function n(t){this._t=o(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)}var a=t(62),o=t(38);t(84)(n,\"Object\",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),a(a.S,\"Reflect\",{enumerate:function(t){return new n(t)}})},{38:38,62:62,84:84}],238:[function(t,e,r){var n=t(101),a=t(62),o=t(38);a(a.S,\"Reflect\",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},{101:101,38:38,62:62}],239:[function(t,e,r){var n=t(62),a=t(105),o=t(38);n(n.S,\"Reflect\",{getPrototypeOf:function(t){return a(o(t))}})},{105:105,38:38,62:62}],240:[function(t,e,r){var s=t(101),l=t(105),c=t(71),n=t(62),u=t(81),p=t(38);n(n.S,\"Reflect\",{get:function t(e,r,n){var a,o,i=arguments.length<3?e:n;return p(e)===i?e[r]:(a=s.f(e,r))?c(a,\"value\")?a.value:void 0!==a.get?a.get.call(i):void 0:u(o=l(e))?t(o,r,i):void 0}})},{101:101,105:105,38:38,62:62,71:71,81:81}],241:[function(t,e,r){var n=t(62);n(n.S,\"Reflect\",{has:function(t,e){return e in t}})},{62:62}],242:[function(t,e,r){var n=t(62),a=t(38),o=Object.isExtensible;n(n.S,\"Reflect\",{isExtensible:function(t){return a(t),!o||o(t)}})},{38:38,62:62}],243:[function(t,e,r){var n=t(62);n(n.S,\"Reflect\",{ownKeys:t(111)})},{111:111,62:62}],244:[function(t,e,r){var n=t(62),a=t(38),o=Object.preventExtensions;n(n.S,\"Reflect\",{preventExtensions:function(t){a(t);try{return o&&o(t),!0}catch(t){return!1}}})},{38:38,62:62}],245:[function(t,e,r){var n=t(62),a=t(122);a&&n(n.S,\"Reflect\",{setPrototypeOf:function(t,e){a.check(t,e);try{return a.set(t,e),!0}catch(t){return!1}}})},{122:122,62:62}],246:[function(t,e,r){var c=t(99),u=t(101),p=t(105),f=t(71),n=t(62),d=t(116),h=t(38),m=t(81);n(n.S,\"Reflect\",{set:function t(e,r,n,a){var o,i,s=arguments.length<4?e:a,l=u.f(h(e),r);if(!l){if(m(i=p(e)))return t(i,r,n,s);l=d(0)}if(f(l,\"value\")){if(!1===l.writable||!m(s))return!1;if(o=u.f(s,r)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,c.f(s,r,o)}else c.f(s,r,d(0,n));return!0}return void 0!==l.set&&(l.set.call(s,n),!0)}})},{101:101,105:105,116:116,38:38,62:62,71:71,81:81,99:99}],247:[function(t,e,r){var n=t(70),o=t(75),a=t(99).f,i=t(103).f,s=t(82),l=t(66),c=n.RegExp,u=c,p=c.prototype,f=/a/g,d=/a/g,h=new c(f)!==f;if(t(58)&&(!h||t(64)(function(){return d[t(152)(\"match\")]=!1,c(f)!=f||c(d)==d||\"/a/i\"!=c(f,\"i\")}))){function m(e){e in c||a(c,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})}c=function(t,e){var r=this instanceof c,n=s(t),a=void 0===e;return!r&&n&&t.constructor===c&&a?t:o(h?new u(n&&!a?t.source:t,e):u((n=t instanceof c)?t.source:t,n&&a?l.call(t):e),r?this:p,c)};for(var g=i(u),v=0;g.length>v;)m(g[v++]);(p.constructor=c).prototype=p,t(118)(n,\"RegExp\",c)}t(123)(\"RegExp\")},{103:103,118:118,123:123,152:152,58:58,64:64,66:66,70:70,75:75,82:82,99:99}],248:[function(t,e,r){\"use strict\";var n=t(120);t(62)({target:\"RegExp\",proto:!0,forced:n!==/./.exec},{exec:n})},{120:120,62:62}],249:[function(t,e,r){t(58)&&\"g\"!=/./g.flags&&t(99).f(RegExp.prototype,\"flags\",{configurable:!0,get:t(66)})},{58:58,66:66,99:99}],250:[function(t,e,r){\"use strict\";var p=t(38),f=t(141),d=t(36),h=t(119);t(65)(\"match\",1,function(n,a,c,u){return[function(t){var e=n(this),r=null==t?void 0:t[a];return void 0!==r?r.call(t,e):new RegExp(t)[a](String(e))},function(t){var e=u(c,t,this);if(e.done)return e.value;var r=p(t),n=String(this);if(!r.global)return h(r,n);for(var a,o=r.unicode,i=[],s=r.lastIndex=0;null!==(a=h(r,n));){var l=String(a[0]);\"\"===(i[s]=l)&&(r.lastIndex=d(n,f(r.lastIndex),o)),s++}return 0===s?null:i}]})},{119:119,141:141,36:36,38:38,65:65}],251:[function(t,e,r){\"use strict\";var C=t(38),n=t(142),P=t(141),S=t(139),L=t(36),E=t(119),T=Math.max,k=Math.min,f=Math.floor,d=/\\$([$&`']|\\d\\d?|<[^>]*>)/g,h=/\\$([$&`']|\\d\\d?)/g;t(65)(\"replace\",2,function(a,o,x,w){return[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):x.call(String(r),t,e)},function(t,e){var r=w(x,t,this,e);if(r.done)return r.value;var n=C(t),a=String(this),o=\"function\"==typeof e;o||(e=String(e));var i=n.global;if(i){var s=n.unicode;n.lastIndex=0}for(var l=[];;){var c=E(n,a);if(null===c)break;if(l.push(c),!i)break;\"\"===String(c[0])&&(n.lastIndex=L(a,P(n.lastIndex),s))}for(var u,p=\"\",f=0,d=0;d>>0,u=new RegExp(t.source,s+\"g\");(n=f.call(u,r))&&!(l<(a=u[m])&&(i.push(r.slice(l,n.index)),1=c));)u[m]===n.index&&u[m]++;return l===r[h]?!o&&u.test(\"\")||i.push(\"\"):i.push(r.slice(l)),i[h]>c?i.slice(0,c):i}:\"0\"[i](void 0,0)[h]?function(t,e){return void 0===t&&0===e?[]:g.call(this,t,e)}:g,[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):A.call(String(r),t,e)},function(t,e){var r=v(A,t,this,e,A!==g);if(r.done)return r.value;var n=y(t),a=String(this),o=b(n,RegExp),i=n.unicode,s=(n.ignoreCase?\"i\":\"\")+(n.multiline?\"m\":\"\")+(n.unicode?\"u\":\"\")+(S?\"y\":\"g\"),l=new o(S?n:\"^(?:\"+n.source+\")\",s),c=void 0===e?P:e>>>0;if(0==c)return[];if(0===a.length)return null===_(l,a)?[a]:[];for(var u=0,p=0,f=[];p>10),e%1024+56320))}return r.join(\"\")}})},{137:137,62:62}],266:[function(t,e,r){\"use strict\";var n=t(62),a=t(130);n(n.P+n.F*t(63)(\"includes\"),\"String\",{includes:function(t,e){return!!~a(this,t,\"includes\").indexOf(t,1=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{129:129,85:85}],269:[function(t,e,r){\"use strict\";t(131)(\"link\",function(e){return function(t){return e(this,\"a\",\"href\",t)}})},{131:131}],270:[function(t,e,r){var n=t(62),i=t(140),s=t(141);n(n.S,\"String\",{raw:function(t){for(var e=i(t.raw),r=s(e.length),n=arguments.length,a=[],o=0;oa;)u(Y,e=r[a++])||e==G||e==h||n.push(e);return n}function l(t){for(var e,r=t===Z,n=M(r?q:L(t)),a=[],o=0;n.length>o;)!u(Y,e=n[o++])||r&&!u(Z,e)||a.push(Y[e]);return a}var c=t(70),u=t(71),p=t(58),f=t(62),d=t(118),h=t(94).KEY,m=t(64),g=t(126),v=t(124),A=t(147),y=t(152),b=t(151),x=t(150),w=t(61),_=t(79),C=t(38),P=t(81),S=t(142),L=t(140),E=t(143),T=t(116),k=t(98),R=t(102),F=t(101),I=t(104),O=t(99),B=t(107),N=F.f,D=O.f,M=R.f,z=c.Symbol,U=c.JSON,j=U&&U.stringify,W=\"prototype\",G=y(\"_hidden\"),H=y(\"toPrimitive\"),V={}.propertyIsEnumerable,Q=g(\"symbol-registry\"),Y=g(\"symbols\"),q=g(\"op-symbols\"),Z=Object[W],X=\"function\"==typeof z&&!!I.f,K=c.QObject,J=!K||!K[W]||!K[W].findChild,$=p&&m(function(){return 7!=k(D({},\"a\",{get:function(){return D(this,\"a\",{value:7}).a}})).a})?function(t,e,r){var n=N(Z,e);n&&delete Z[e],D(t,e,r),n&&t!==Z&&D(Z,e,n)}:D,tt=X&&\"symbol\"==typeof z.iterator?function(t){return\"symbol\"==typeof t}:function(t){return t instanceof z},et=function(t,e,r){return t===Z&&et(q,e,r),C(t),e=E(e,!0),C(r),u(Y,e)?(r.enumerable?(u(t,G)&&t[G][e]&&(t[G][e]=!1),r=k(r,{enumerable:T(0,!1)})):(u(t,G)||D(t,G,T(1,{})),t[G][e]=!0),$(t,e,r)):D(t,e,r)};X||(d((z=function(t){if(this instanceof z)throw TypeError(\"Symbol is not a constructor!\");var e=A(0nt;)y(rt[nt++]);for(var at=B(y.store),ot=0;at.length>ot;)x(at[ot++]);f(f.S+f.F*!X,\"Symbol\",{for:function(t){return u(Q,t+=\"\")?Q[t]:Q[t]=z(t)},keyFor:function(t){if(!tt(t))throw TypeError(t+\" is not a symbol!\");for(var e in Q)if(Q[e]===t)return e},useSetter:function(){J=!0},useSimple:function(){J=!1}}),f(f.S+f.F*!X,\"Object\",{create:function(t,e){return void 0===e?k(t):a(k(t),e)},defineProperty:et,defineProperties:a,getOwnPropertyDescriptor:i,getOwnPropertyNames:s,getOwnPropertySymbols:l});var it=m(function(){I.f(1)});f(f.S+f.F*it,\"Object\",{getOwnPropertySymbols:function(t){return I.f(S(t))}}),U&&f(f.S+f.F*(!X||m(function(){var t=z();return\"[null]\"!=j([t])||\"{}\"!=j({a:t})||\"{}\"!=j(Object(t))})),\"JSON\",{stringify:function(t){for(var e,r,n=[t],a=1;as;)void 0!==(r=a(n,e=o[s++]))&&p(i,e,r);return i}})},{101:101,111:111,140:140,53:53,62:62}],296:[function(t,e,r){var n=t(62),a=t(110)(!1);n(n.S,\"Object\",{values:function(t){return a(t)}})},{110:110,62:62}],297:[function(t,e,r){\"use strict\";var n=t(62),a=t(52),o=t(70),i=t(127),s=t(115);n(n.P+n.R,\"Promise\",{finally:function(e){var r=i(this,a.Promise||o.Promise),t=\"function\"==typeof e;return this.then(t?function(t){return s(r,e()).then(function(){return t})}:e,t?function(t){return s(r,e()).then(function(){throw t})}:e)}})},{115:115,127:127,52:52,62:62,70:70}],298:[function(t,e,r){\"use strict\";var n=t(62),a=t(132),o=t(148),i=/Version\\/10\\.\\d+(\\.\\d+)?( Mobile\\/\\w+)? Safari\\//.test(o);n(n.P+n.F*i,\"String\",{padEnd:function(t,e){return a(this,t,1/g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\")}function vt(t){return\"number\"==typeof t&&100\"+e+\"\":\"\"}function _t(t){var e=\"solid\",r=\"\",n=\"\",a=\"\";if(t)switch(\"string\"==typeof t?r=t:(t.type&&(e=t.type),t.color&&(r=t.color),t.alpha&&(n+=''),t.transparency&&(n+='')),e){case\"solid\":a+=\"\"+wt(r,n)+\"\";break;default:a+=\"\"}return a}function Ct(t){return t._rels.length+t._relsChart.length+t._relsMedia.length+1}function Pt(t,c,n,e){void 0===t&&(t=[]),void 0===c&&(c={});var r,u=P,p=1*B,f=0,a=0,d=[],o=dt(c.x,\"X\",n),h=dt(c.y,\"Y\",n),i=dt(c.w,\"X\",n),m=dt(c.h,\"Y\",n),s=i;if(c.verbose&&(console.log(\"[[VERBOSE MODE]]\"),console.log(\"|-- TABLE PROPS --------------------------------------------------------|\"),console.log(\"| presLayout.width ................................ = \"+(n.width/B).toFixed(1)),console.log(\"| presLayout.height ............................... = \"+(n.height/B).toFixed(1)),console.log(\"| tableProps.x .................................... = \"+(\"number\"==typeof c.x?(c.x/B).toFixed(1):c.x)),console.log(\"| tableProps.y .................................... = \"+(\"number\"==typeof c.y?(c.y/B).toFixed(1):c.y)),console.log(\"| tableProps.w .................................... = \"+(\"number\"==typeof c.w?(c.w/B).toFixed(1):c.w)),console.log(\"| tableProps.h .................................... = \"+(\"number\"==typeof c.h?(c.h/B).toFixed(1):c.h)),console.log(\"| tableProps.slideMargin .......................... = \"+(c.slideMargin||\"\")),console.log(\"| tableProps.margin ............................... = \"+c.margin),console.log(\"| tableProps.colW ................................. = \"+c.colW),console.log(\"| tableProps.autoPageSlideStartY .................. = \"+c.autoPageSlideStartY),console.log(\"| tableProps.autoPageCharWeight ................... = \"+c.autoPageCharWeight),console.log(\"|-- CALCULATIONS -------------------------------------------------------|\"),console.log(\"| tablePropX ...................................... = \"+o/B),console.log(\"| tablePropY ...................................... = \"+h/B),console.log(\"| tablePropW ...................................... = \"+i/B),console.log(\"| tablePropH ...................................... = \"+m/B),console.log(\"| tableCalcW ...................................... = \"+s/B)),c.slideMargin||0===c.slideMargin||(c.slideMargin=P[0]),e&&void 0!==e._margin?Array.isArray(e._margin)?u=e._margin:isNaN(Number(e._margin))||(u=[Number(e._margin),Number(e._margin),Number(e._margin),Number(e._margin)]):!c.slideMargin&&0!==c.slideMargin||(Array.isArray(c.slideMargin)?u=c.slideMargin:isNaN(c.slideMargin)||(u=[c.slideMargin,c.slideMargin,c.slideMargin,c.slideMargin])),c.verbose&&console.log(\"| arrInchMargins .................................. = [\"+u.join(\", \")+\"]\"),(t[0]||[]).forEach(function(t){var e=(t=t||{_type:at.tablecell}).options||null;a+=Number(e&&e.colspan?e.colspan:1)}),c.verbose&&console.log(\"| numCols ......................................... = \"+a),!i&&c.colW&&(s=Array.isArray(c.colW)?c.colW.reduce(function(t,e){return t+e})*B:c.colW*a||0,c.verbose&&console.log(\"| tableCalcW ...................................... = \"+s/B)),r=s||vt((o?o/B:u[1])+u[3]),c.verbose&&console.log(\"| emuSlideTabW .................................... = \"+(r/B).toFixed(1)),!c.colW||!Array.isArray(c.colW))if(c.colW&&!isNaN(Number(c.colW))){var l=[];(t[0]||[]).forEach(function(){return l.push(c.colW)}),c.colW=[],l.forEach(function(t){Array.isArray(c.colW)&&c.colW.push(t)})}else{c.colW=[];for(var g=0;ge?e=At(t.options.margin[0]):c.margin&&c.margin[0]&&At(c.margin[0])>e&&(e=At(c.margin[0])),t.options.margin&&t.options.margin[2]&&At(t.options.margin[2])>r?r=At(t.options.margin[2]):c.margin&&c.margin[2]&&At(c.margin[2])>r&&(r=At(c.margin[2]))):(t.options.margin&&t.options.margin[0]&&vt(t.options.margin[0])>e?e=vt(t.options.margin[0]):c.margin&&c.margin[0]&&vt(c.margin[0])>e&&(e=vt(c.margin[0])),t.options.margin&&t.options.margin[2]&&vt(t.options.margin[2])>r?r=vt(t.options.margin[2]):c.margin&&c.margin[2]&&vt(c.margin[2])>r&&(r=vt(c.margin[2])))});var t=0;if(0===d.length&&(t=h||vt(u[0])),0 \"+JSON.stringify(c)),s.push(c),c=[])),0a&&(o.push(e),e=[],r=\"\"),e.push(t),r+=t.text.toString()}),0=a[l]._lines.length&&(l=e)}),a.forEach(function(n,a){n._lines.forEach(function(t,e){if(f+n._lineHeight>p){c.verbose&&(console.log(\"\\n|-----------------------------------------------------------------------|\"),console.log(\"|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => \"+(f/B).toFixed(2)+\" + \"+(n._lineHeight/B).toFixed(2)+\" > \"+p/B),console.log(\"|-----------------------------------------------------------------------|\\n\\n\")),0r&&(r=t._lineHeight)}),v.rows.push(e),f+=r})}var r=s[a];Array.isArray(r.text)&&(r.text=r.text.concat(t)),a===l&&(f+=n._lineHeight),s.forEach(function(t,e){e'},contain:function(t,e){var r=t.h/t.w,n=r'},crop:function(t,e){var r=e.x,n=t.w-(e.x+e.w),a=e.y,o=t.h-(e.y+e.h);return''}};function Lt(R){var F=R._name?'':\"\",I=1;return R._bkgdImgRid?F+='':R.background&&R.background.color?F+=\"\"+_t(R.background)+\"\":!R.bkgd&&R._name&&R._name===n&&(F+=''),F+=\"\",F+='',F+='',F+='',R._slideObjects.forEach(function(n,t){var e,r,a=0,o=0,i=dt(\"75%\",\"X\",R._presLayout),s=0,l=\"\";switch(void 0!==R._slideLayout&&void 0!==R._slideLayout._slideObjects&&n.options&&n.options.placeholder&&(r=R._slideLayout._slideObjects.filter(function(t){return t.options.placeholder===n.options.placeholder})[0]),n.options=n.options||{},void 0!==n.options.x&&(a=dt(n.options.x,\"X\",R._presLayout)),void 0!==n.options.y&&(o=dt(n.options.y,\"Y\",R._presLayout)),void 0!==n.options.w&&(i=dt(n.options.w,\"X\",R._presLayout)),void 0!==n.options.h&&(s=dt(n.options.h,\"Y\",R._presLayout)),r&&(!r.options.x&&0!==r.options.x||(a=dt(r.options.x,\"X\",R._presLayout)),!r.options.y&&0!==r.options.y||(o=dt(r.options.y,\"Y\",R._presLayout)),!r.options.w&&0!==r.options.w||(i=dt(r.options.w,\"X\",R._presLayout)),!r.options.h&&0!==r.options.h||(s=dt(r.options.h,\"Y\",R._presLayout))),n.options.flipH&&(l+=' flipH=\"1\"'),n.options.flipV&&(l+=' flipV=\"1\"'),n.options.rotate&&(l+=' rot=\"'+yt(n.options.rotate)+'\"'),n._type){case at.table:var c,u=n.arrTabRows,f=n.options,p=0,d=0;u[0].forEach(function(t){c=t.options||null,p+=c&&c.colspan?Number(c.colspan):1});var h='';if(h+=' ',h+='',h+='',Array.isArray(f.colW)){h+=\"\";for(var m=0;m'}h+=\"\"}else{d=f.colW?f.colW:B,n.options.w&&!f.colW&&(d=Math.round((\"number\"==typeof n.options.w?n.options.w:1)/p)),h+=\"\";for(var v=0;v';h+=\"\"}u.forEach(function(o){for(var i,s,l,t=function(t){var e=o[t],r=null===(i=e.options)||void 0===i?void 0:i.colspan,n=null===(s=e.options)||void 0===s?void 0:s.rowspan;if(r&&1',t.forEach(function(t){var e,r,n=t,a={rowSpan:1<(null===(e=n.options)||void 0===e?void 0:e.rowspan)?n.options.rowspan:void 0,gridSpan:1<(null===(r=n.options)||void 0===r?void 0:r.colspan)?n.options.colspan:void 0,vMerge:n._vmerge?1:void 0,hMerge:n._hmerge?1:void 0},o=Object.keys(a).map(function(t){return[t,a[t]]}).filter(function(t){return t[0],!!t[1]}).map(function(t){return t[0]+'=\"'+t[1]+'\"'}).join(\" \");if(o=o&&\" \"+o,n._hmerge||n._vmerge)h+=\"\";else{var i=n.options||{};n.options=i,[\"align\",\"bold\",\"border\",\"color\",\"fill\",\"fontFace\",\"fontSize\",\"margin\",\"underline\",\"valign\"].forEach(function(t){f[t]&&!i[t]&&0!==i[t]&&(i[t]=f[t])});var s=i.valign?' anchor=\"'+i.valign.replace(/^c$/i,\"ctr\").replace(/^m$/i,\"ctr\").replace(\"center\",\"ctr\").replace(\"middle\",\"ctr\").replace(\"top\",\"t\").replace(\"btm\",\"b\").replace(\"bottom\",\"b\")+'\"':\"\",l=n._optImp&&n._optImp.fill&&n._optImp.fill.color?n._optImp.fill.color:n._optImp&&n._optImp.fill&&\"string\"==typeof n._optImp.fill?n._optImp.fill:\"\",c=(l=l||i.fill&&i.fill.color?i.fill.color:i.fill&&\"string\"==typeof i.fill?i.fill:\"\")?\"\"+wt(l)+\"\":\"\",u=0===i.margin||i.margin?i.margin:N;Array.isArray(u)||\"number\"!=typeof u||(u=[u,u,u,u]);var p=\"\";p=1<=u[0]?' marL=\"'+At(u[3])+'\" marR=\"'+At(u[1])+'\" marT=\"'+At(u[0])+'\" marB=\"'+At(u[2])+'\"':' marL=\"'+vt(u[3])+'\" marR=\"'+vt(u[1])+'\" marT=\"'+vt(u[0])+'\" marB=\"'+vt(u[2])+'\"',h+=\"\"+Rt(n)+\"\",i.border&&Array.isArray(i.border)&&[{idx:3,name:\"lnL\"},{idx:1,name:\"lnR\"},{idx:0,name:\"lnT\"},{idx:2,name:\"lnB\"}].forEach(function(t){\"none\"!==i.border[t.idx].type?(h+=\"',h+=\"\"+wt(i.border[t.idx].color)+\"\",h+='',h+=\"\"):h+=\"\"}),h+=c,h+=\" \",h+=\" \"}}),h+=\"\"}),h+=\" \",h+=\" \",h+=\" \",F+=h+=\"\",I++;break;case at.text:case at.placeholder:var A=n.options.shapeName?gt(n.options.shapeName):\"Object\"+(t+1);if(n.options.line||0!==s||(s=.3*B),n.options._bodyProp||(n.options._bodyProp={}),n.options.margin&&Array.isArray(n.options.margin)?(n.options._bodyProp.lIns=At(n.options.margin[0]||0),n.options._bodyProp.rIns=At(n.options.margin[1]||0),n.options._bodyProp.bIns=At(n.options.margin[2]||0),n.options._bodyProp.tIns=At(n.options.margin[3]||0)):\"number\"==typeof n.options.margin&&(n.options._bodyProp.lIns=At(n.options.margin),n.options._bodyProp.rIns=At(n.options.margin),n.options._bodyProp.bIns=At(n.options.margin),n.options._bodyProp.tIns=At(n.options.margin)),F+=\"\",F+='',n.options.hyperlink&&n.options.hyperlink.url&&(F+=''),n.options.hyperlink&&n.options.hyperlink.slide&&(F+=''),F+=\"\",F+=\"':\"/>\"),F+=\"\"+(\"placeholder\"===n._type?Ft(n):Ft(r))+\"\",F+=\"\",F+=\"\",F+='',F+='',\"custGeom\"===n.shape)F+=\"\",F+=\"\",F+=\"\",F+=\"\",F+=\"\",F+=\"\",F+='',F+=\"\",F+='',null===(e=n.options.points)||void 0===e||e.map(function(t,e){if(\"curve\"in t)switch(t.curve.type){case\"arc\":F+='';break;case\"cubic\":F+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t';break;case\"quadratic\":F+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'}else\"close\"in t?F+=\"\":t.moveTo||0===e?F+='':F+=''}),F+=\"\",F+=\"\",F+=\"\";else{if(F+='',n.options.rectRadius)F+='';else if(n.options.angleRange){for(var y=0;y<2;y++){var b=n.options.angleRange[y];F+=''}n.options.arcThicknessRatio&&(F+='')}F+=\"\"}F+=n.options.fill?_t(n.options.fill):\"\",n.options.line&&(F+=n.options.line.width?'':\"\",n.options.line.color&&(F+=_t(n.options.line)),n.options.line.dashType&&(F+=''),n.options.line.beginArrowType&&(F+=''),n.options.line.endArrowType&&(F+=''),F+=\"\"),n.options.shadow&&(n.options.shadow.type=n.options.shadow.type||\"outer\",n.options.shadow.blur=At(n.options.shadow.blur||8),n.options.shadow.offset=At(n.options.shadow.offset||4),n.options.shadow.angle=Math.round(6e4*(n.options.shadow.angle||270)),n.options.shadow.opacity=Math.round(1e5*(n.options.shadow.opacity||.75)),n.options.shadow.color=n.options.shadow.color||D.color,F+=\"\",F+=\"',F+='',F+='',F+=\"\",F+=\"\"),F+=\"\",F+=Rt(n),F+=\"\";break;case at.image:var x=n.options,w=x.sizing,_=x.rounding,C=i,P=s;if(F+=\"\",F+=\" \",F+='',n.hyperlink&&n.hyperlink.url&&(F+=''),n.hyperlink&&n.hyperlink.slide&&(F+=''),F+=\" \",F+=' ',F+=\" \"+Ft(r)+\"\",F+=\" \",F+=\"\",(R._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0]&&\"svg\"===(R._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0].extn?(F+='',F+=\" \",F+=' ',F+=' ',F+=\" \",F+=\" \",F+=\"\"):F+='',w&&w.type){var S=w.w?dt(w.w,\"X\",R._presLayout):i,L=w.h?dt(w.h,\"Y\",R._presLayout):s,E=dt(w.x||0,\"X\",R._presLayout),T=dt(w.y||0,\"Y\",R._presLayout);F+=St[w.type]({w:C,h:P},{w:S,h:L,x:E,y:T}),C=S,P=L}else F+=\" \";F+=\"\",F+=\"\",F+=\" \",F+=' ',F+=' ',F+=\" \",F+=' ',F+=\"\",F+=\"\";break;case at.media:\"online\"===n.mtype?(F+=\"\",F+=\" \",F+=' ',F+=\" \",F+=\" \",F+=' ',F+=\" \",F+=\" \",F+=' '):(F+=\"\",F+=\" \",F+=' ',F+=' ',F+=\" \",F+=' ',F+=\" \",F+=' ',F+=' ',F+=\" \",F+=\" \",F+=\" \",F+=\" \",F+=' '),F+=\" \",F+=\" \",F+=' ',F+=' ',F+=\" \",F+=' ',F+=\" \",F+=\"\";break;case at.chart:var k=n.options;F+=\"\",F+=\" \",F+=' ',F+=\" \",F+=\" \"+Ft(r)+\"\",F+=\" \",F+=' ',F+=' ',F+=' ',F+=' ',F+=\" \",F+=\" \",F+=\"\";break;default:F+=\"\"}}),R._slideNumberProps&&(R._slideNumberProps.align||(R._slideNumberProps.align=\"left\"),F+=' ',F+=\"\",F+=\"\",F+=\" \",(R._slideNumberProps.fontFace||R._slideNumberProps.fontSize||R._slideNumberProps.color)&&(F+='',R._slideNumberProps.color&&(F+=_t(R._slideNumberProps.color)),R._slideNumberProps.fontFace&&(F+=''),F+=\"\"),F+=\"\",F+='',R._slideNumberProps.align.startsWith(\"l\")?F+='':R._slideNumberProps.align.startsWith(\"c\")?F+='':R._slideNumberProps.align.startsWith(\"r\")?F+='':F+='',F+='',F+=\"\"),F+=\"\",F+=\"\"}function Et(t,e){var r=0,n=''+c+'';return t._rels.forEach(function(t){r=Math.max(r,t.rId),-1':n+='':-1')}),(t._relsChart||[]).forEach(function(t){r=Math.max(r,t.rId),n+=''}),(t._relsMedia||[]).forEach(function(t){r=Math.max(r,t.rId),-1':-1':n+='':-1':n+='':-1':n+='')}),e.forEach(function(t,e){n+=''}),n+=\"\"}function Tt(t,e){var r=\"\",n=\"\",a=\"\",o=\"\",i=e?\"a:lvl1pPr\":\"a:pPr\",s=At(u),l=\"<\"+i+(t.options.rtlMode?' rtl=\"1\" ':\"\");if(t.options.align)switch(t.options.align){case\"left\":l+=' algn=\"l\"';break;case\"right\":l+=' algn=\"r\"';break;case\"center\":l+=' algn=\"ctr\"';break;case\"justify\":l+=' algn=\"just\"';break;default:l+=\"\"}if(t.options.lineSpacing?n='':t.options.lineSpacingMultiple&&(n=''),t.options.indentLevel&&!isNaN(Number(t.options.indentLevel))&&0'),t.options.paraSpaceAfter&&!isNaN(Number(t.options.paraSpaceAfter))&&0'),\"object\"==typeof t.options.bullet)if(t&&t.options&&t.options.bullet&&t.options.bullet.indent&&(s=At(t.options.bullet.indent)),t.options.bullet.type)\"number\"===t.options.bullet.type.toString().toLowerCase()&&(l+=' marL=\"'+(t.options.indentLevel&&0');else if(t.options.bullet.characterCode){var c=\"&#x\"+t.options.bullet.characterCode+\";\";!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.characterCode)&&(console.warn(\"Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!\"),c=lt.DEFAULT),l+=' marL=\"'+(t.options.indentLevel&&0'}else if(t.options.bullet.code){c=\"&#x\"+t.options.bullet.code+\";\";!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.code)&&(console.warn(\"Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!\"),c=lt.DEFAULT),l+=' marL=\"'+(t.options.indentLevel&&0'}else l+=' marL=\"'+(t.options.indentLevel&&0';else!0===t.options.bullet?(l+=' marL=\"'+(t.options.indentLevel&&0'):!1===t.options.bullet&&(l+=' indent=\"0\" marL=\"0\"',r=\"\");t.options.tabStops&&Array.isArray(t.options.tabStops)&&(o=\"\"+t.options.tabStops.map(function(t){return''}).join(\"\")+\"\");return l+=\">\"+n+a+r+o,e&&(l+=kt(t.options,!0)),l+=\"\"}function kt(t,e){var r,n=\"\",a=e?\"a:defRPr\":\"a:rPr\";if(n+=\"<\"+a+' lang=\"'+(t.lang?t.lang:\"en-US\")+'\"'+(t.lang?' altLang=\"en-US\"':\"\"),n+=t.fontSize?' sz=\"'+Math.round(t.fontSize)+'00\"':\"\",n+=t.hasOwnProperty(\"bold\")?' b=\"'+(t.bold?1:0)+'\"':\"\",n+=t.hasOwnProperty(\"italic\")?' i=\"'+(t.italic?1:0)+'\"':\"\",n+=t.hasOwnProperty(\"strike\")?' strike=\"'+(\"string\"==typeof t.strike?t.strike:\"sngStrike\")+'\"':\"\",\"object\"==typeof t.underline&&(null===(r=t.underline)||void 0===r?void 0:r.style)?n+=' u=\"'+t.underline.style+'\"':\"string\"==typeof t.underline?n+=' u=\"'+t.underline+'\"':t.hyperlink&&(n+=' u=\"sng\"'),t.baseline?n+=' baseline=\"'+Math.round(50*t.baseline)+'\"':t.subscript?n+=' baseline=\"-40000\"':t.superscript&&(n+=' baseline=\"30000\"'),n+=t.charSpacing?' spc=\"'+Math.round(100*t.charSpacing)+'\" kern=\"0\"':\"\",n+=' dirty=\"0\">',(t.color||t.fontFace||t.outline||\"object\"==typeof t.underline&&t.underline.color)&&(t.outline&&\"object\"==typeof t.outline&&(n+=''+_t(t.outline.color||\"FFFFFF\")+\"\"),t.color&&(n+=_t(t.color)),t.highlight&&(n+=\"\"+wt(t.highlight)+\"\"),\"object\"==typeof t.underline&&t.underline.color&&(n+=\"\"+_t(t.underline.color)+\"\"),t.glow&&(n+=\"\"+function(t,e){var r=\"\",n=mt(e,t);return r+='',r+=wt(n.color,''),r+=\"\"}(t.glow,S)+\"\"),t.fontFace&&(n+='')),t.hyperlink){if(\"object\"!=typeof t.hyperlink)throw new Error(\"ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` \");if(!t.hyperlink.url&&!t.hyperlink.slide)throw new Error(\"ERROR: 'hyperlink requires either `url` or `slide`'\");t.hyperlink.url?n+='\":\"/>\"):t.hyperlink.slide&&(n+='\":\"/>\")),t.color&&(n+=\"\\t\",n+='\\t\\t',n+='\\t\\t\\t',n+=\"\\t\\t\",n+=\"\\t\",n+=\"\")}return n+=\"\"}function Rt(n){var a=n.options||{},t=[],r=[];if(a&&n._type!==at.tablecell&&(void 0===n.text||null===n.text))return\"\";var o=n._type===at.tablecell?\"\":\"\";o+=function(t){var e=\"\",t.options.fit&&(\"none\"===t.options.fit?e+=\"\":\"shrink\"===t.options.fit?e+=\"\":\"resize\"===t.options.fit&&(e+=\"\")),t.options.shrinkText&&(e+=\"\"),e+=!1!==t.options._bodyProp.autoFit?\"\":\"\"):e+=' wrap=\"square\" rtlCol=\"0\">',e+=\"\",t._type===at.tablecell?\"\":e}(n),0===a.h&&a.line&&a.align?o+='':\"placeholder\"===n._type?o+=\"\"+Tt(n,!0)+\"\":o+=\"\",\"string\"==typeof n.text||\"number\"==typeof n.text?t.push({text:n.text.toString(),options:a||{}}):n.text&&!Array.isArray(n.text)&&\"object\"==typeof n.text&&-1\";var r=\"\"),n.options.align=n.options.align||a.align,n.options.lineSpacing=n.options.lineSpacing||a.lineSpacing,n.options.lineSpacingMultiple=n.options.lineSpacingMultiple||a.lineSpacingMultiple,n.options.indentLevel=n.options.indentLevel||a.indentLevel,n.options.paraSpaceBefore=n.options.paraSpaceBefore||a.paraSpaceBefore,n.options.paraSpaceAfter=n.options.paraSpaceAfter||a.paraSpaceAfter,r=Tt(n,!1),o+=r,Object.entries(a).forEach(function(t){var e=t[0],r=t[1];n.options.hyperlink&&\"color\"===e||\"bullet\"===e||n.options[e]||(n.options[e]=r)}),o+=function(t){return t.text?\"\"+kt(t.options,!1)+\"\"+gt(t.text)+\"\":\"\"}(n),(!n.text&&a.fontSize||n.options.fontSize)&&(e=!0,a.fontSize=a.fontSize||n.options.fontSize)}),n._type===at.tablecell&&(a.fontSize||a.fontFace)?a.fontFace?(o+='',o+='',o+='',o+='',o+=\"\"):o+='':o+=e?'':'',o+=\"\"}),o+=n._type===at.tablecell?\"\":\"\"}function Ft(t){if(!t)return\"\";var e=t.options&&t.options._placeholderIdx?t.options._placeholderIdx:\"\",r=t.options&&t.options._placeholderType?t.options._placeholderType:\"\";return\"\"}function It(t){return''+c+''+gt(function(t){var e=\"\";return t._slideObjects.forEach(function(t){t._type===at.notes&&(e+=t.text&&t.text[0]?t.text[0].text:\"\")}),e.replace(/\\r*\\n/g,c)}(t))+''+t._slideNum+''}function Ot(t){t&&\"object\"==typeof t&&(\"outer\"!==t.type&&\"inner\"!==t.type&&\"none\"!==t.type&&(console.warn(\"Warning: shadow.type options are `outer`, `inner` or `none`.\"),t.type=\"outer\"),t.angle&&((isNaN(Number(t.angle))||t.angle<0||359 \\n'),t.file(\"_rels/.rels\",'\\n'),t.file(\"docProps/app.xml\",'Microsoft Excel0falseWorksheets1Sheet1\\n'),t.file(\"docProps/core.xml\",'PptxGenJSEly, Brent'+(new Date).toISOString()+''+(new Date).toISOString()+\"\\n\"),t.file(\"xl/_rels/workbook.xml.rels\",'\\n'),t.file(\"xl/styles.xml\",'\\n'),t.file(\"xl/theme/theme1.xml\",''),t.file(\"xl/workbook.xml\",'\\n'),t.file(\"xl/worksheets/_rels/sheet1.xml.rels\",'\\n');var n='';if(f.opts._type===J.BUBBLE)n+='';else if(f.opts._type===J.SCATTER)n+='';else{var o=h.length+h[0].labels.length*h[0].labels[0].length+h[0].labels.length,i=h.length+h[0].labels.length*h[0].labels[0].length+1;n+='',n+=''}f.opts._type===J.BUBBLE?h.forEach(function(t,e){0===e?n+=\"X-Axis\":(n+=\"\"+gt(t.name||\" \")+\"\",n+=\"\"+gt(\"Size \"+e)+\"\")}):h.forEach(function(t){n+=\"\"+gt((t.name||\" \").replace(\"X-Axis\",\"X-Values\"))+\"\"}),f.opts._type!==J.BUBBLE&&f.opts._type!==J.SCATTER&&h[0].labels.forEach(function(t){t.forEach(function(t){n+=\"\"+gt(t)+\"\"})}),n+=\"\\n\",t.file(\"xl/sharedStrings.xml\",n);var s='';f.opts._type===J.BUBBLE||(f.opts._type===J.SCATTER?(s+='',s+='',h.forEach(function(t,e){s+=''})):(s+='
',s+='',h[0].labels.forEach(function(t,e){s+=''}),h.forEach(function(t,e){s+=''}))),s+=\"\",s+='',s+=\"
\",t.file(\"xl/tables/table1.xml\",s);var l='';if(l+='',f.opts._type===J.BUBBLE?l+='':f.opts._type===J.SCATTER?l+='':l+='',l+='',l+='',f.opts._type===J.BUBBLE){l+=\"\",l+='',l+=\"\",l+=\"\",l+='',l+='0';for(var c=1;c',l+=\"\"+c+\"\",l+=\"\";l+=\"\",h[0].values.forEach(function(t,e){l+='',l+=''+t+\"\";for(var r=1,n=1;n',l+=\"\"+(h[n].values[e]||\"\")+\"\",l+=\"\",l+='',l+=\"\"+(h[n].sizes[e]||\"\")+\"\",l+=\"\",r++;l+=\"\"})}else if(f.opts._type===J.SCATTER){l+=\"\",l+='',l+=\"\",l+=\"\",l+='',l+='0';for(var u=1;u',l+=\"\"+u+\"\",l+=\"\";l+=\"\",h[0].values.forEach(function(t,e){l+='',l+=''+t+\"\";for(var r=1;r',l+=\"\"+(h[r].values[e]||0===h[r].values[e]?h[r].values[e]:\"\")+\"\",l+=\"\";l+=\"\"})}else{l+=\"\",l+='',l+=\"\",l+=\"\",l+='',h[0].labels.forEach(function(t,e){l+='',l+=\"0\",l+=\"\"});for(var p=1;p<=h.length;p++)l+='',l+=\"\"+p+\"\",l+=\"\";l+=\"\",h[0].labels[0].forEach(function(t,e){l+='';for(var r=h[0].labels.length-1;0<=r;r--)l+='',l+=\"\"+(h.length+e+r*h[0].labels[0].length+1)+\"\",l+=\"\";for(var n=0;n',l+=\"\"+(h[n].values[e]||\"\")+\"\",l+=\"\";l+=\"\"})}l+=\"\",l+='',l+=\"\\n\",t.file(\"xl/worksheets/sheet1.xml\",l),t.generateAsync({type:\"base64\"}).then(function(t){d.file(\"ppt/embeddings/Microsoft_Excel_Worksheet\"+f.globalId+\".xlsx\",t,{base64:!0}),d.file(\"ppt/charts/_rels/\"+f.fileName+\".rels\",''),d.file(\"ppt/charts/\"+f.fileName,function(a){var o='',i=!1;o+='',o+='',o+=\"\",a.opts.showTitle?(o+=qt({title:a.opts.title||\"Chart Title\",color:a.opts.titleColor,fontFace:a.opts.titleFontFace,fontSize:a.opts.titleFontSize||w,titleAlign:a.opts.titleAlign,titleBold:a.opts.titleBold,titlePos:a.opts.titlePos,titleRotate:a.opts.titleRotate}),o+=''):o+='';a.opts._type===J.BAR3D&&(o+=\"\",o+=' ',o+=' ',o+=' ',o+=' ',o+=\"\");o+=\"\",a.opts.layout?(o+=\"\",o+=\" \",o+=' ',o+=' ',o+=' ',o+=' ',o+=' ',o+=' ',o+=' ',o+=\" \",o+=\"\"):o+=\"\";Array.isArray(a.opts._type)?a.opts._type.forEach(function(t){var e=mt(a.opts,t.options),r=e.secondaryValAxis?E:L,n=e.secondaryCatAxis?k:T;i=i||e.secondaryValAxis,o+=Vt(t.type,t.data,e,r,n)}):o+=Vt(a.opts._type,a.data,a.opts,L,T);if(a.opts._type!==J.PIE&&a.opts._type!==J.DOUGHNUT){if(a.opts.valAxes&&1\",n+=' ',n+=' ',n+=' ',n+=' ',n+=\"none\"!==e.serGridLine.style?Kt(e.serGridLine):\"\",e.showSerAxisTitle&&(n+=qt({color:e.serAxisTitleColor,fontFace:e.serAxisTitleFontFace,fontSize:e.serAxisTitleFontSize,titleRotate:e.serAxisTitleRotate,title:e.serAxisTitle||\"Axis Title\"}));n+=' ',n+=' ',n+=' ',n+=' ',n+=\" \",n+=' ',n+=!1===e.serAxisLineShow?\"\":\"\"+wt(e.serAxisLineColor||g.color)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+wt(e.serAxisLabelColor||v)+\"\",n+=' ',n+=\" \",n+=\" \",n+=' ',n+=\" \",n+=\" \",n+=' ',n+=' ',e.serAxisLabelFrequency&&(n+=' ');e.serLabelFormatCode&&([\"serAxisBaseTimeUnit\",\"serAxisMajorTimeUnit\",\"serAxisMinorTimeUnit\"].forEach(function(t){!e[t]||\"string\"==typeof e[t]&&-1!==[\"days\",\"months\",\"years\"].indexOf(t.toLowerCase())||(console.warn(\"`\"+t+\"` must be one of: 'days','months','years' !\"),e[t]=null)}),e.serAxisBaseTimeUnit&&(n+=' '),e.serAxisMajorTimeUnit&&(n+=' '),e.serAxisMinorTimeUnit&&(n+=' '),e.serAxisMajorUnit&&(n+=' '),e.serAxisMinorUnit&&(n+=' '));return n+=\"\"}(a.opts,R,L)))}a.opts.showDataTable&&(o+=\"\",o+=' ',o+=' ',o+=' ',o+=' ',o+=\" \",o+=\" \",o+=' ',o+=\" \",o+=\" \",o+=\" \",o+='\\t ',o+=\"\\t \",o+=\"\\t \",o+='\\t\\t',o+=' ',o+='\\t\\t\\t',o+='\\t\\t\\t',o+='\\t\\t\\t',o+='\\t\\t\\t',o+=\"\\t\\t \",o+=\"\\t\\t\",o+='\\t\\t',o+=\"\\t \",o+=\"\\t\",o+=\"\");o+=\" \",o+=a.opts.fill?_t(a.opts.fill):\"\",o+=a.opts.border?''+_t(a.opts.border.color)+\"\":\"\",o+=\" \",o+=\" \",o+=\"\",a.opts.showLegend&&(o+=\"\",o+='',o+='',(a.opts.legendFontFace||a.opts.legendFontSize||a.opts.legendColor)&&(o+=\"\",o+=\" \",o+=\" \",o+=\" \",o+=\" \",o+=a.opts.legendFontSize?'':\"\",a.opts.legendColor&&(o+=_t(a.opts.legendColor)),a.opts.legendFontFace&&(o+=''),a.opts.legendFontFace&&(o+=''),o+=\" \",o+=\" \",o+=' ',o+=\" \",o+=\"\"),o+=\"\");o+=' ',o+=' ',a.opts._type===J.SCATTER&&(o+='');return o+=\"\",o+=\"\",o+=\" \",o+=' ',o+=\" \",o+=\"\",o+='',o+=\"\"}(f)),e(null)}).catch(function(t){r(t)})})}function Vt(n,a,o,t,e){var i=\"\";switch(n){case J.AREA:case J.BAR:case J.BAR3D:case J.LINE:case J.RADAR:i+=\"\",n===J.AREA&&\"stacked\"===o.barGrouping&&(i+=''),n!==J.BAR&&n!==J.BAR3D||(i+='',i+=''),n===J.RADAR&&(i+=''),i+='';var s=-1;a.forEach(function(t){s++;var e=t.index;i+=\"\",i+=' ',i+=' ',i+=\" \",i+=\" \",i+=\" Sheet1!$\"+Zt(e+t.labels.length)+\"$1\",i+=' '+gt(t.name)+\"\",i+=\" \",i+=\" \",i+=' ';var r=o.chartColors?o.chartColors[s%o.chartColors.length]:null;i+=\" \",\"transparent\"===r?i+=\"\":o.chartColorsOpacity?i+=\"\"+wt(r,'')+\"\":i+=\"\"+wt(r)+\"\",n===J.LINE?0===o.lineSize?i+=\"\":(i+=''+wt(r)+\"\",i+=''):o.dataBorder&&(i+=''+wt(o.dataBorder.color)+''),i+=Xt(o.shadow,C),i+=\" \",n!==J.RADAR&&(i+=\" \",i+=' ',o.dataLabelBkgrdColors&&(i+=\" \",i+=\" \"+wt(r)+\"\",i+=\" \"),i+=\" \",i+=\" \",i+=\" \",i+=\" \",i+=' ',i+=\" \"+wt(o.dataLabelColor||v)+\"\",i+=' ',i+=\" \",i+=\" \",i+=\" \",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=\" \"),n!==J.LINE&&n!==J.RADAR||(i+=\"\",i+=' ',o.lineDataSymbolSize&&(i+=' '),i+=\" \",i+=\" \"+wt(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e])+\"\",i+=' '+wt(o.lineDataSymbolLineColor||r)+'',i+=\" \",i+=\" \",i+=\"\"),(n===J.BAR||n===J.BAR3D)&&1===a.length&&o.chartColors!==I&&1\",i+=' ',i+=' ',i+=' ',i+=\" \",0===o.lineSize?i+=\"\":n===J.BAR?(i+=\"\",i+=' ',i+=\"\"):(i+=\"\",i+=\" \",i+=' ',i+=\" \",i+=\"\"),i+=Xt(o.shadow,C),i+=\" \",i+=\" \"}),i+=\"\",o.catLabelFormatCode?(i+=\" \",i+=\" Sheet1!$A$2:$A$\"+(t.labels[0].length+1)+\"\",i+=\" \",i+=\" \"+(o.catLabelFormatCode||\"General\")+\"\",i+=' ',t.labels[0].forEach(function(t,e){i+=''+gt(t)+\"\"}),i+=\" \",i+=\" \"):(i+=\" \",i+=\" Sheet1!$A$2:$\"+Zt(t.labels.length-1)+\"$\"+(t.labels[0].length+1)+\"\",i+=\" \",i+='\\t ',t.labels.forEach(function(t){i+=\" \",t.forEach(function(t,e){i+=''+gt(t)+\"\"}),i+=\" \"}),i+=\" \",i+=\" \"),i+=\"\",i+=\"\",i+=\" \",i+=\" Sheet1!$\"+Zt(e+t.labels.length)+\"$2:$\"+Zt(e+t.labels.length)+\"$\"+(t.labels[0].length+1)+\"\",i+=\" \",i+=\" \"+(o.valLabelFormatCode||o.dataTableFormatCode||\"General\")+\"\",i+=' ',t.values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i+=\" \",i+=\" \",i+=\"\",n===J.LINE&&(i+=''),i+=\"\"}),i+=\" \",i+=' ',i+=\" \",i+=\" \",i+=\" \",i+=\" \",i+=' ',i+=\" \"+wt(o.dataLabelColor||v)+\"\",i+=' ',i+=\" \",i+=\" \",i+=\" \",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=\" \",n===J.BAR?(i+=' ',i+=' '):n===J.BAR3D?(i+=' ',i+=' ',i+=' '):n===J.LINE&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=\"\";break;case J.SCATTER:i+=\"\",i+='',i+='',s=-1,a.filter(function(t,e){return 0\",i+=' ',i+=' ',i+=\" \",i+=\" \",i+=\" Sheet1!$\"+F[t+1]+\"$1\",i+=' '+r.name+\"\",i+=\" \",i+=\" \",i+=\" \";var e=o.chartColors[s%o.chartColors.length];if(\"transparent\"===e?i+=\"\":o.chartColorsOpacity?i+=\"\"+wt(e,'')+\"\":i+=\"\"+wt(e)+\"\",0===o.lineSize?i+=\"\":(i+=''+wt(e)+\"\",i+=''),i+=Xt(o.shadow,C),i+=\" \",i+=\"\",i+=' ',o.lineDataSymbolSize&&(i+=' '),i+=\" \",i+=\" \"+wt(o.chartColors[t+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):t])+\"\",i+=' '+wt(o.lineDataSymbolLineColor||o.chartColors[s%o.chartColors.length])+'',i+=\" \",i+=\" \",i+=\"\",o.showLabel){var n=ht(\"-xxxx-xxxx-xxxx-xxxxxxxxxxxx\");!r.labels[0]||\"custom\"!==o.dataLabelFormatScatter&&\"customXY\"!==o.dataLabelFormatScatter||(i+=\"\",r.labels[0].forEach(function(t,e){\"custom\"!==o.dataLabelFormatScatter&&\"customXY\"!==o.dataLabelFormatScatter||(i+=\" \",i+=' ',i+=\" \",i+=\" \",i+=\"\\t\\t\\t\",i+=\"\\t\\t\\t\\t\",i+=\"\\t\\t\\t\",i+=\" \\t\",i+=\" \\t\",i+=\"\\t\\t\\t\\t\",i+=\"\\t\\t\\t\\t\\t\",i+=\"\\t\\t\\t\\t\",i+=\" \\t\",i+=' \\t\\t',i+=\" \\t\\t\"+gt(t)+\"\",i+=\" \\t\",\"customXY\"!==o.dataLabelFormatScatter||/^ *$/.test(t)||(i+=\" \\t\",i+=' \\t\\t',i+=\" \\t\\t (\",i+=\" \\t\",i+=' \\t',i+=' \\t\\t',i+=\" \\t\\t\",i+=\" \\t\\t\\t\",i+=\" \\t\\t\",i+=\" \\t\\t[\"+gt(r.name)+\"\",i+=\" \\t\",i+=\" \\t\",i+=' \\t\\t',i+=\" \\t\\t, \",i+=\" \\t\",i+=' \\t',i+=' \\t\\t',i+=\" \\t\\t\",i+=\" \\t\\t\\t\",i+=\" \\t\\t\",i+=\" \\t\\t[\"+gt(r.name)+\"]\",i+=\" \\t\",i+=\" \\t\",i+=' \\t\\t',i+=\" \\t\\t)\",i+=\" \\t\",i+=' \\t'),i+=\" \\t\",i+=\" \",i+=\" \",i+=\" \",i+=\" \\t\",i+=\" \\t\",i+=\" \\t\\t\",i+=\" \\t\",i+=\" \\t\",i+=\" \",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+='\\t ',i+=\" \",i+=' ',i+=' ',i+='\\t\\t\\t',i+=\" \",i+=\"\\t\\t\",i+=\"\")}),i+=\"\"),\"XY\"===o.dataLabelFormatScatter&&(i+=\"\",i+=\"\\t\",i+=\"\\t\\t\",i+=\"\\t\\t\",i+=\"\\t\\t\\t\",i+=\"\\t\\t\",i+=\"\\t \\t\",i+=\"\\t\",i+=\"\\t\",i+=\"\\t\\t\",i+=\"\\t\\t\\t\",i+=\"\\t\\t\",i+=\"\\t\\t\",i+=\"\\t\\t\",i+=\"\\t \\t\",i+=\" \\t\\t\",i+=\"\\t \\t\",i+='\\t \\t',i+=\"\\t\\t\",i+=\"\\t\",o.dataLabelPosition&&(i+=' '),i+='\\t',i+=' ',i+=' ',i+='\\t',i+='\\t',i+='\\t',i+=\"\\t\",i+='\\t\\t',i+='\\t\\t\\t',i+=\"\\t\\t\",i+=\"\\t\",i+=\"\")}1===a.length&&o.chartColors!==I&&r.values.forEach(function(t,e){var r=t<0?o.invertedColors||o.chartColors||I:o.chartColors||[];i+=\" \",i+=' ',i+=' ',i+=' ',i+=\" \",0===o.lineSize?i+=\"\":(i+=\"\",i+=' ',i+=\"\"),i+=Xt(o.shadow,C),i+=\" \",i+=\" \"}),i+=\"\",i+=\" \",i+=\" Sheet1!$A$2:$A$\"+(a[0].values.length+1)+\"\",i+=\" \",i+=\" General\",i+=' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i+=\" \",i+=\" \",i+=\"\",i+=\"\",i+=\" \",i+=\" Sheet1!$\"+Zt(t+1)+\"$2:$\"+Zt(t+1)+\"$\"+(a[0].values.length+1)+\"\",i+=\" \",i+=\" General\",i+=' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:\"\")+\"\"}),i+=\" \",i+=\" \",i+=\"\",i+='',i+=\"\"}),i+=\" \",i+=' ',i+=\" \",i+=\" \",i+=\" \",i+=\" \",i+=' ',i+=\" \"+wt(o.dataLabelColor||v)+\"\",i+=' ',i+=\" \",i+=\" \",i+=\" \",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=\" \",i+=' ',i+=' ',i+=\"\";break;case J.BUBBLE:i+=\"\",i+='',s=-1;var l=1;a.filter(function(t,e){return 0\",i+=' ',i+=' ',i+=\" \",i+=\" \",i+=\" Sheet1!$\"+F[l]+\"$1\",i+=' '+r.name+\"\",i+=\" \",i+=\" \",i+=\"\";var e=o.chartColors[s%o.chartColors.length];\"transparent\"===e?i+=\"\":o.chartColorsOpacity?i+=\"\"+wt(e,'')+\"\":i+=\"\"+wt(e)+\"\",0===o.lineSize?i+=\"\":o.dataBorder?i+=''+wt(o.dataBorder.color)+'':(i+=''+wt(e)+\"\",i+=''),i+=Xt(o.shadow,C),i+=\"\",i+=\"\",i+=\" \",i+=\" Sheet1!$A$2:$A$\"+(a[0].values.length+1)+\"\",i+=\" \",i+=\" General\",i+=' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i+=\" \",i+=\" \",i+=\"\",i+=\"\",i+=\" \",i+=\" Sheet1!$\"+Zt(l)+\"$2:$\"+Zt(l)+\"$\"+(a[0].values.length+1)+\"\",l++,i+=\" \",i+=\" General\",i+=' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:\"\")+\"\"}),i+=\" \",i+=\" \",i+=\"\",i+=\" \",i+=\" \",i+=\" Sheet1!$\"+Zt(l)+\"$2:$\"+Zt(t+2)+\"$\"+(r.sizes.length+1)+\"\",l++,i+=\" \",i+=\" General\",i+='\\t ',r.sizes.forEach(function(t,e){i+=''+(t||\"\")+\"\"}),i+=\" \",i+=\" \",i+=\" \",i+=' ',i+=\"\"}),i+=\" \",i+=' ',i+=\" \",i+=\" \",i+=\" \",i+=\" \",i+=' ',i+=\" \"+wt(o.dataLabelColor||v)+\"\",i+=' ',i+=\" \",i+=\" \",i+=\" \",o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=\" \",i+=' ',i+=' ',i+=\"\";break;case J.DOUGHNUT:case J.PIE:var r=a[0];i+=\"\",i+=' ',i+=\"\",i+=' ',i+=' ',i+=\" \",i+=\" \",i+=\" Sheet1!$B$1\",i+=\" \",i+=' ',i+=' '+gt(r.name)+\"\",i+=\" \",i+=\" \",i+=\" \",i+=\" \",i+=' ',i+=' ',o.dataNoEffects?i+=\"\":i+=Xt(o.shadow,C),i+=\" \",r.labels[0].forEach(function(t,e){i+=\"\",i+=' ',i+=' ',i+=\" \",i+=\"\"+wt(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e])+\"\",o.dataBorder&&(i+=''+wt(o.dataBorder.color)+''),i+=Xt(o.shadow,C),i+=\" \",i+=\"\"}),i+=\"\",r.labels[0].forEach(function(t,e){i+=\"\",i+=' ',i+=' ',i+=\" \",i+=\" \",i+=\" \",i+=' ',i+=\" \"+wt(o.dataLabelColor||v)+\"\",i+=' ',i+=\" \",i+=\" \",i+=\" \",n===J.PIE&&o.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=\" \"}),i+=' ',i+=\"\\t\",i+=\"\\t \",i+=\"\\t \",i+=\"\\t \",i+=\"\\t\\t\",i+='\\t\\t ',i+='\\t\\t\\t',i+=\"\\t\\t \",i+=\"\\t\\t\",i+=\"\\t \",i+=\"\\t\",i+=n===J.PIE?'':\"\",i+='\\t',i+='\\t',i+='\\t',i+='\\t',i+='\\t',i+='\\t',i+=' ',i+=\"\",i+=\"\",i+=\" \",i+=\" Sheet1!$A$2:$A$\"+(r.labels[0].length+1)+\"\",i+=\" \",i+='\\t ',r.labels[0].forEach(function(t,e){i+=''+gt(t)+\"\"}),i+=\" \",i+=\" \",i+=\"\",i+=\" \",i+=\" \",i+=\" Sheet1!$B$2:$B$\"+(r.labels[0].length+1)+\"\",i+=\" \",i+='\\t ',r.values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i+=\" \",i+=\" \",i+=\" \",i+=\" \",i+=' ',n===J.DOUGHNUT&&(i+=' '),i+=\"\";break;default:i+=\"\"}return i}function Qt(e,t,r){var n=\"\";return e._type===J.SCATTER||e._type===J.BUBBLE?n+=\"\":n+=\"\",n+=' ',n+=\" \",n+='',!e.catAxisMaxVal&&0!==e.catAxisMaxVal||(n+=''),!e.catAxisMinVal&&0!==e.catAxisMinVal||(n+=''),n+=\"\",n+=' ',n+=' ',n+=\"none\"!==e.catGridLine.style?Kt(e.catGridLine):\"\",e.showCatAxisTitle&&(n+=qt({color:e.catAxisTitleColor,fontFace:e.catAxisTitleFontFace,fontSize:e.catAxisTitleFontSize,titleRotate:e.catAxisTitleRotate,title:e.catAxisTitle||\"Axis Title\"})),e._type===J.SCATTER||e._type===J.BUBBLE?n+=' ':n+=' ',e._type===J.SCATTER?(n+=' ',n+=' ',n+=' '):(n+=' ',n+=' ',n+=' '),n+=\" \",n+=' ',n+=!1===e.catAxisLineShow?\"\":\"\"+wt(e.catAxisLineColor||g.color)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+wt(e.catAxisLabelColor||v)+\"\",n+=' ',n+=\" \",n+=\" \",n+=' ',n+=\" \",n+=\" \",n+=' ',n+=\" ',n+=' ',n+=' ',n+=' ',e.catAxisLabelFrequency&&(n+=' '),!e.catLabelFormatCode&&e._type!==J.SCATTER&&e._type!==J.BUBBLE||(e.catLabelFormatCode&&([\"catAxisBaseTimeUnit\",\"catAxisMajorTimeUnit\",\"catAxisMinorTimeUnit\"].forEach(function(t){!e[t]||\"string\"==typeof e[t]&&-1!==[\"days\",\"months\",\"years\"].indexOf(e[t].toLowerCase())||(console.warn(\"`\"+t+\"` must be one of: 'days','months','years' !\"),e[t]=null)}),e.catAxisBaseTimeUnit&&(n+=''),e.catAxisMajorTimeUnit&&(n+=''),e.catAxisMinorTimeUnit&&(n+='')),e.catAxisMajorUnit&&(n+=''),e.catAxisMinorUnit&&(n+='')),e._type===J.SCATTER||e._type===J.BUBBLE?n+=\"\":n+=\"\",n}function Yt(t,e){var r=e===L?\"col\"===t.barDir?\"l\":\"b\":\"col\"!==t.barDir?\"r\":\"t\",n=\"\",a=\"r\"==r||\"t\"==r?\"max\":\"autoZero\",o=e===L?T:k;return n+=\"\",n+=' ',n+=\" \",t.valAxisLogScaleBase&&(n+=' '),n+=' ',!t.valAxisMaxVal&&0!==t.valAxisMaxVal||(n+=''),!t.valAxisMinVal&&0!==t.valAxisMinVal||(n+=''),n+=\" \",n+=' ',n+=' ',\"none\"!==t.valGridLine.style&&(n+=Kt(t.valGridLine)),t.showValAxisTitle&&(n+=qt({color:t.valAxisTitleColor,fontFace:t.valAxisTitleFontFace,fontSize:t.valAxisTitleFontSize,titleRotate:t.valAxisTitleRotate,title:t.valAxisTitle||\"Axis Title\"})),n+=\"',t._type===J.SCATTER?(n+=' ',n+=' ',n+=' '):(n+=' ',n+=' ',n+=' '),n+=\" \",n+=' ',n+=!1===t.valAxisLineShow?\"\":\"\"+wt(t.valAxisLineColor||g.color)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+wt(t.valAxisLabelColor||v)+\"\",n+=' ',n+=\" \",n+=\" \",n+=' ',n+=\" \",n+=\" \",n+=' ',n+=' ',n+=' ',t.valAxisMajorUnit&&(n+=' '),t.valAxisDisplayUnit&&(n+=''+(t.valAxisDisplayUnitLabel?\"\":\"\")+\"\"),n+=\"\"}function qt(t){var e=\"left\"===t.titleAlign||\"right\"===t.titleAlign?'':\"\",r=t.titleRotate?'':\"\",n=t.fontSize?'sz=\"'+Math.round(100*t.fontSize)+'\"':\"\",a=!0===t.titleBold?1:0,o=t.titlePos&&t.titlePos.x&&t.titlePos.y?'':\"\";return\"\\n\\t \\n\\t \\n\\t \"+r+\"\\n\\t \\n\\t \\n\\t \"+e+\"\\n\\t \\n\\t '+wt(t.color||v)+'\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \\n\\t '+wt(t.color||v)+'\\n\\t \\n\\t \\n\\t '+(gt(t.title)||\"\")+\"\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \"+o+'\\n\\t \\n\\t'}function Zt(t){var e=\"\";return t<=26?e=F[t]:(e+=F[Math.floor(t/F.length)-1],e+=F[t%F.length]),e}function Xt(t,e){if(!t)return\"\";if(\"object\"!=typeof t)return console.warn(\"`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`\"),\"\";var r=\"\",n=mt(e,t),a=n.type||\"outer\",o=At(n.blur),i=At(n.offset),s=Math.round(6e4*n.angle),l=n.color,c=Math.round(1e5*n.opacity);return r+=\"',r+='',r+='',r+=\"\",r+=\"\"}function Kt(t){var e=\"\";return e+=\" \",e+=' ',e+=' ',e+=' ',e+=\" \",e+=\" \",e+=\"\"}function Jt(t){var o=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null,i=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"https\"):null,e=[];return t._relsMedia.filter(function(t){return\"online\"!==t.type&&!t.data&&(!t.path||t.path&&-1===t.path.indexOf(\"preencoded\"))}).forEach(function(a){e.push(new Promise(function(r,n){if(o&&0!==a.path.indexOf(\"http\"))try{var t=o.readFileSync(a.path);a.data=Buffer.from(t).toString(\"base64\"),r(\"done\")}catch(t){a.data=pt,n('ERROR: Unable to read media: \"'+a.path+'\"\\n'+t.toString())}else if(o&&i&&0===a.path.indexOf(\"http\"))i.get(a.path,function(t){var e=\"\";t.setEncoding(\"binary\"),t.on(\"data\",function(t){return e+=t}),t.on(\"end\",function(){a.data=Buffer.from(e,\"binary\").toString(\"base64\"),r(\"done\")}),t.on(\"error\",function(t){a.data=pt,n(\"ERROR! Unable to load image (https.get): \"+a.path)})});else{var e=new XMLHttpRequest;e.onload=function(){var t=new FileReader;t.onloadend=function(){a.data=t.result,a.isSvgPng?$t(a).then(function(){r(\"done\")}).catch(function(t){n(t)}):r(\"done\")},t.readAsDataURL(e.response)},e.onerror=function(t){a.data=pt,n(\"ERROR! Unable to load image (xhr.onerror): \"+a.path)},e.open(\"GET\",a.path),e.responseType=\"blob\",e.send()}}))}),t._relsMedia.filter(function(t){return t.isSvgPng&&t.data}).forEach(function(t){o?(t.data=pt,e.push(Promise.resolve().then(function(){return\"done\"}))):e.push($t(t))}),e}function $t(a){return new Promise(function(r,e){var n=new Image;n.onload=function(){n.width+n.height===0&&n.onerror(\"h/w=0\");var t=document.createElement(\"CANVAS\"),e=t.getContext(\"2d\");t.width=n.width,t.height=n.height,e.drawImage(n,0,0);try{a.data=t.toDataURL(a.type),r(\"done\")}catch(t){n.onerror(t)}t=null},n.onerror=function(t){a.data=pt,e(\"ERROR! Unable to load image (image.onerror): \"+a.path)},n.src=\"string\"==typeof a.data?a.data:pt})}function te(){var a=this;this._version=\"3.9.0-beta-20210930-2159\",this._alignH=Q,this._alignV=q,this._chartType=U,this._outputType=z,this._schemeColor=H,this._shapeType=W,this._charts=J,this._colors=tt,this._shapes=X,this.addNewSlide=function(t){var e=0')})}),n+='',n+='',n+='',n+='',t.forEach(function(t,e){n+='',n+='',t._relsChart.forEach(function(t){n+=' '})}),n+='',n+='',n+='',n+='',e.forEach(function(t,e){n+='',(t._relsChart||[]).forEach(function(t){n+=' '})}),t.forEach(function(t,e){n+=' '}),r._relsChart.forEach(function(t){n+=' '}),r._relsMedia.forEach(function(t){\"image\"!==t.type&&\"online\"!==t.type&&\"chart\"!==t.type&&\"m4v\"!==t.extn&&-1===n.indexOf(t.type)&&(n+=' ')}),n+=' ',n+=' ',n+=\"\"}(a.slides,a.slideLayouts,a.masterSlide)),n.file(\"_rels/.rels\",''+c+'\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t'),n.file(\"docProps/app.xml\",function(t,e){return''+c+'\\n\\t0\\n\\t0\\n\\tMicrosoft Office PowerPoint\\n\\tOn-screen Show (16:9)\\n\\t0\\n\\t'+t.length+\"\\n\\t\"+t.length+'\\n\\t0\\n\\t0\\n\\tfalse\\n\\t\\n\\t\\t\\n\\t\\t\\tFonts Used\\n\\t\\t\\t2\\n\\t\\t\\tTheme\\n\\t\\t\\t1\\n\\t\\t\\tSlide Titles\\n\\t\\t\\t'+t.length+'\\n\\t\\t\\n\\t\\n\\t\\n\\t\\t\\n\\t\\t\\tArial\\n\\t\\t\\tCalibri\\n\\t\\t\\tOffice Theme\\n\\t\\t\\t'+t.map(function(t,e){return\"Slide \"+(e+1)+\"\\n\"}).join(\"\")+\"\\n\\t\\t\\n\\t\\n\\t\"+e+\"\\n\\tfalse\\n\\tfalse\\n\\tfalse\\n\\t16.0000\\n\\t\"}(a.slides,a.company)),n.file(\"docProps/core.xml\",function(t,e,r,n){return'\\n\\t\\n\\t\\t'+gt(t)+\"\\n\\t\\t\"+gt(e)+\"\\n\\t\\t\"+gt(r)+\"\\n\\t\\t\"+gt(r)+\"\\n\\t\\t\"+n+'\\n\\t\\t'+(new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\")+'\\n\\t\\t'+(new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\")+\"\\n\\t\"}(a.title,a.subject,a.author,a.revision)),n.file(\"ppt/_rels/presentation.xml.rels\",function(t){var e=1,r=''+c;r+='',r+='';for(var n=1;n<=t.length;n++)r+='';return r+=''}(a.slides)),n.file(\"ppt/theme/theme1.xml\",''+c+''),n.file(\"ppt/presentation.xml\",function(t){var e=''+c+'';e+='',e+=\"\",t.slides.forEach(function(t){return e+=''}),e+=\"\",e+='',e+='',e+='',e+=\"\";for(var r=1;r<10;r++)e+=\"\";return e+=\"\",t.sections&&0',e+='',t.sections.forEach(function(t){e+='',t._slides.forEach(function(t){return e+=''}),e+=\"\"}),e+=\"\",e+='',e+=\"\"),e+=\"\"}(a)),n.file(\"ppt/presProps.xml\",''+c+''),n.file(\"ppt/tableStyles.xml\",''+c+''),n.file(\"ppt/viewProps.xml\",''+c+''),a.slideLayouts.forEach(function(t,e){n.file(\"ppt/slideLayouts/slideLayout\"+(e+1)+\".xml\",function(t){return'\\n\\t\\t\\n\\t\\t'+Lt(t)+\"\\n\\t\\t\"}(t)),n.file(\"ppt/slideLayouts/_rels/slideLayout\"+(e+1)+\".xml.rels\",function(t,e){return Et(e[t-1],[{target:\"../slideMasters/slideMaster1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster\"}])}(e+1,a.slideLayouts))}),a.slides.forEach(function(t,e){n.file(\"ppt/slides/slide\"+(e+1)+\".xml\",function(t){return''+c+'\"+Lt(t)+\"\"}(t)),n.file(\"ppt/slides/_rels/slide\"+(e+1)+\".xml.rels\",function(t,e,r){return Et(t[r-1],[{target:\"../slideLayouts/slideLayout\"+function(t,e,r){for(var n=0;n\\n\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t'}(e+1))}),n.file(\"ppt/slideMasters/slideMaster1.xml\",function(r,t){var e=t.map(function(t,e){return''}),n=''+c;return n+='',n+=Lt(r),n+='',n+=\"\"+e.join(\"\")+\"\",n+='',n+=' ',n+=\"\"}(a.masterSlide,a.slideLayouts)),n.file(\"ppt/slideMasters/_rels/slideMaster1.xml.rels\",function(t,e){var r=e.map(function(t,e){return{target:\"../slideLayouts/slideLayout\"+(e+1)+\".xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout\"}});return r.push({target:\"../theme/theme1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\"}),Et(t,r)}(a.masterSlide,a.slideLayouts)),n.file(\"ppt/notesMasters/notesMaster1.xml\",''+c+'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›'),n.file(\"ppt/notesMasters/_rels/notesMaster1.xml.rels\",''+c+'\\n\\t\\t\\n\\t\\t'),a.slideLayouts.forEach(function(t){a.createChartMediaRels(t,n,e)}),a.slides.forEach(function(t){a.createChartMediaRels(t,n,e)}),a.createChartMediaRels(a.masterSlide,n,e),Promise.all(e).then(function(){return\"STREAM\"===t.outputType?n.generateAsync({type:\"nodebuffer\",compression:t.compression?\"DEFLATE\":\"STORE\"}):t.outputType?n.generateAsync({type:t.outputType}):n.generateAsync({type:\"blob\",compression:t.compression?\"DEFLATE\":\"STORE\"})})})},this.LAYOUTS={LAYOUT_4x3:{name:\"screen4x3\",width:9144e3,height:6858e3},LAYOUT_16x9:{name:\"screen16x9\",width:9144e3,height:5143500},LAYOUT_16x10:{name:\"screen16x10\",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:\"custom\",width:12192e3,height:6858e3}},this._author=\"PptxGenJS\",this._company=\"PptxGenJS\",this._revision=\"1\",this._subject=\"PptxGenJS Presentation\",this._title=\"PptxGenJS Presentation\",this._presLayout={name:this.LAYOUTS[p].name,_sizeW:this.LAYOUTS[p].width,_sizeH:this.LAYOUTS[p].height,width:this.LAYOUTS[p].width,height:this.LAYOUTS[p].height},this._rtlMode=!1,this._slideLayouts=[{_margin:P,_name:n,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(te.prototype,\"layout\",{get:function(){return this._layout},set:function(t){var e=this.LAYOUTS[t];if(!e)throw new Error(\"UNKNOWN-LAYOUT\");this._layout=t,this._presLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"version\",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"author\",{get:function(){return this._author},set:function(t){this._author=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"company\",{get:function(){return this._company},set:function(t){this._company=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"revision\",{get:function(){return this._revision},set:function(t){this._revision=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"subject\",{get:function(){return this._subject},set:function(t){this._subject=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"title\",{get:function(){return this._title},set:function(t){this._title=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"rtlMode\",{get:function(){return this._rtlMode},set:function(t){this._rtlMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"masterSlide\",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"slides\",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"sections\",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"slideLayouts\",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"AlignH\",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"AlignV\",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"ChartType\",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"OutputType\",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"presLayout\",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"SchemeColor\",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"ShapeType\",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"charts\",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"colors\",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,\"shapes\",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),te.prototype.stream=function(t){var e=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression;return this.exportPresentation({compression:e,outputType:\"STREAM\"})},te.prototype.write=function(t){var e=\"object\"==typeof t&&t.hasOwnProperty(\"outputType\")?t.outputType:t||null,r=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression;return this.exportPresentation({compression:r,outputType:e})},te.prototype.writeFile=function(t){var e=this,n=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null;\"string\"==typeof t&&console.log(\"Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)\");var r=\"object\"==typeof t&&t.hasOwnProperty(\"fileName\")?t.fileName:\"string\"==typeof t?t:\"\",a=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression,o=r?r.toString().toLowerCase().endsWith(\".pptx\")?r:r+\".pptx\":\"Presentation.pptx\";return this.exportPresentation({compression:a,outputType:n?\"nodebuffer\":null}).then(function(t){return n?new Promise(function(e,r){n.writeFile(o,t,function(t){t?r(t):e(o)})}):e.writeFileToBrowser(o,t)})},te.prototype.addSection=function(t){t?t.title||console.warn(\"addSection requires a title\"):console.warn(\"addSection requires an argument\");var e={_type:\"user\",_slides:[],title:t.title};t.order?this.sections.splice(t.order,0,e):this._sections.push(e)},te.prototype.addSlide=function(e){var r=\"string\"==typeof e?e:e&&e.masterName?e.masterName:\"\",t={_name:this.LAYOUTS[p].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(r){var n=this.slideLayouts.filter(function(t){return t._name===r})[0];n&&(t=n)}var a=new Wt({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:t});if(this._slides.push(a),e&&e.sectionTitle){var o=this.sections.filter(function(t){return t.title===e.sectionTitle})[0];o?o._slides.push(a):console.warn('addSlide: unable to find section with title: \"'+e.sectionTitle+'\"')}else if(this.sections&&0 opts.y = \"+a.y),r.addTable(t.rows,{x:a.x||p[3],y:a.y,w:Number(s)/B,colW:c,autoPage:!1}),a.addImage&&r.addImage({path:a.addImage.url,x:a.addImage.x,y:a.addImage.y,w:a.addImage.w,h:a.addImage.h}),a.addShape&&r.addShape(a.addShape.shape,a.addShape.options||{}),a.addTable&&r.addTable(a.addTable.rows,a.addTable.options||{}),a.addText&&r.addText(a.addText.text,a.addText.options||{})})}(this,t,e,e&&e.masterSlideName?this.slideLayouts.filter(function(t){return t._name===e.masterSlideName})[0]:null)},te}();"],"file":"pptxgen.bundle.js"} \ No newline at end of file diff --git a/dist/pptxgen.cjs.js b/dist/pptxgen.cjs.js index 54908aa19..ca92aff82 100644 --- a/dist/pptxgen.cjs.js +++ b/dist/pptxgen.cjs.js @@ -1,4 +1,4 @@ -/* PptxGenJS 3.9.0-beta @ 2021-10-01T03:13:35.864Z */ +/* PptxGenJS 3.9.0-beta @ 2021-10-14T12:21:16.785Z */ 'use strict'; var JSZip = require('jszip'); @@ -3360,6 +3360,10 @@ function addChartDefinition(target, type, data, opt) { } tmpData.forEach(function (item, i) { item.index = i; + // Converts the 'labels' array from string[] to string[][] (or the respective primitive type), if needed + if (item.labels !== undefined && !Array.isArray(item.labels[0])) { + item.labels = [item.labels]; + } }); options = tmpOpt && typeof tmpOpt === 'object' ? tmpOpt : {}; // STEP 1: TODO: check for reqd fields, correct type, etc @@ -3516,6 +3520,12 @@ function addChartDefinition(target, type, data, opt) { options.lineSize = typeof options.lineSize === 'number' ? options.lineSize : 2; options.valAxisMajorUnit = typeof options.valAxisMajorUnit === 'number' ? options.valAxisMajorUnit : null; options.valAxisCrossesAt = options.valAxisCrossesAt || 'autoZero'; + if (options._type === CHART_TYPE.AREA || options._type === CHART_TYPE.BAR || options._type === CHART_TYPE.BAR3D || options._type === CHART_TYPE.LINE) { + options.catAxisMultiLevelLabels = !!options.catAxisMultiLevelLabels; + } + else { + delete options.catAxisMultiLevelLabels; + } // STEP 4: Set props resultObject._type = 'chart'; resultObject.options = options; @@ -4574,13 +4584,17 @@ function createExcelWorksheet(chartObject, zip) { ''; } else { + // series names + all labels of one series + number of label groups (data.labels.length) of one series (i.e. how many times the blank string is used) + var count = data.length + data[0].labels.length * data[0].labels[0].length + data[0].labels.length; + // series names + labels of one series + blank string (same for all label groups) + var uniqueCount = data.length + data[0].labels.length * data[0].labels[0].length + 1; strSharedStrings_1 += ''; - // B: Add 'blank' for A1 + // B: Add 'blank' for A1, B1, ..., of every label group inside data[n].labels strSharedStrings_1 += ''; } // C: Add `name`/Series @@ -4601,8 +4615,10 @@ function createExcelWorksheet(chartObject, zip) { } // D: Add `labels`/Categories if (chartObject.opts._type !== CHART_TYPE.BUBBLE && chartObject.opts._type !== CHART_TYPE.SCATTER) { - data[0].labels.forEach(function (label) { - strSharedStrings_1 += '' + encodeXmlEntities(label) + ''; + data[0].labels.forEach(function (labelsGroup) { + labelsGroup.forEach(function (label) { + strSharedStrings_1 += '' + encodeXmlEntities(label) + ''; + }); }); } strSharedStrings_1 += '\n'; @@ -4626,13 +4642,15 @@ function createExcelWorksheet(chartObject, zip) { else { strTableXml_1 += ''; - strTableXml_1 += ''; - strTableXml_1 += ''; + strTableXml_1 += ''; + data[0].labels.forEach(function (_labelsGroup, idx) { + strTableXml_1 += ''; + }); data.forEach(function (obj, idx) { - strTableXml_1 += ''; + strTableXml_1 += ''; }); } strTableXml_1 += ''; @@ -4652,7 +4670,7 @@ function createExcelWorksheet(chartObject, zip) { strSheetXml_1 += ''; } else { - strSheetXml_1 += ''; + strSheetXml_1 += ''; } strSheetXml_1 += ''; strSheetXml_1 += ''; @@ -4770,25 +4788,31 @@ function createExcelWorksheet(chartObject, zip) { 6|May-17 | 75| 93| 170| -|-------|-----|-----|-----| */ - // A: Create header row first (NOTE: Start at index=1 as headers cols start with 'B') - strSheetXml_1 += ''; - strSheetXml_1 += '0'; + // A: Create header row first + strSheetXml_1 += ''; + data[0].labels.forEach(function (_labelsGroup, idx) { + strSheetXml_1 += ''; + strSheetXml_1 += '0'; + strSheetXml_1 += ''; + }); for (var idx = 1; idx <= data.length; idx++) { // FIXME: Max cols is 52 - strSheetXml_1 += ''; // NOTE: use `t="s"` for label cols! + strSheetXml_1 += ''; // NOTE: use `t="s"` for label cols! strSheetXml_1 += '' + idx + ''; strSheetXml_1 += ''; } strSheetXml_1 += ''; // B: Add data row(s) for each category - data[0].labels.forEach(function (_cat, idx) { - // Leading col is reserved for the label, so hard-code it, then loop over col values - strSheetXml_1 += ''; - strSheetXml_1 += ''; - strSheetXml_1 += '' + (data.length + idx + 1) + ''; - strSheetXml_1 += ''; + data[0].labels[0].forEach(function (_cat, idx) { + strSheetXml_1 += ''; + // Leading cols are reserved for the label groups + for (var idx2 = data[0].labels.length - 1; idx2 >= 0; idx2--) { + strSheetXml_1 += ''; + strSheetXml_1 += '' + (data.length + idx + (idx2 * (data[0].labels[0].length)) + 1) + ''; + strSheetXml_1 += ''; + } for (var idy = 0; idy < data.length; idy++) { - strSheetXml_1 += ''; + strSheetXml_1 += ''; strSheetXml_1 += '' + (data[idy].values[idx] || '') + ''; strSheetXml_1 += ''; } @@ -5061,20 +5085,40 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC } strXml += ''; // 2: "Series" block for every data row - /* EX: + /* EX1: data: [ { name: 'Region 1', - labels: ['April', 'May', 'June', 'July'], + labels: [['April', 'May', 'June', 'July']], values: [17, 26, 53, 96] }, { name: 'Region 2', - labels: ['April', 'May', 'June', 'July'], + labels: [['April', 'May', 'June', 'July']], values: [55, 43, 70, 58] } ] */ + /* EX2: + data: [ + { + name: 'Region 1', + labels: [ + ['April', 'May', 'June', 'April', 'May', 'June'], + ['2020', '', '', '2021', '', ''] + ], + values: [17, 26, 53, 96, 40, 33] + }, + { + name: 'Region 2', + labels: [ + ['April', 'May', 'June', 'April', 'May', 'June'], + ['2020', '', '', '2021', '', ''] + ], + values: [55, 43, 70, 58, 78, 63] + } + ] + */ var colorIndex_1 = -1; // Maintain the color index by region data.forEach(function (obj) { colorIndex_1++; @@ -5084,7 +5128,7 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC strXml += ' '; strXml += ' '; strXml += ' '; - strXml += ' Sheet1!$' + getExcelColName(idx + 1) + '$1'; + strXml += ' Sheet1!$' + getExcelColName(idx + obj.labels.length) + '$1'; strXml += ' ' + encodeXmlEntities(obj.name) + ''; strXml += ' '; strXml += ' '; @@ -5217,26 +5261,30 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC if (opts.catLabelFormatCode) { // Use 'numRef' as catLabelFormatCode implies that we are expecting numbers here strXml += ' '; - strXml += ' Sheet1!$A$2:$A$' + (obj.labels.length + 1) + ''; + strXml += ' Sheet1!$A$2:$A$' + (obj.labels[0].length + 1) + ''; strXml += ' '; strXml += ' ' + (opts.catLabelFormatCode || 'General') + ''; - strXml += ' '; - obj.labels.forEach(function (label, idx) { + strXml += ' '; + obj.labels[0].forEach(function (label, idx) { strXml += '' + encodeXmlEntities(label) + ''; }); strXml += ' '; strXml += ' '; } else { - strXml += ' '; - strXml += ' Sheet1!$A$2:$A$' + (obj.labels.length + 1) + ''; - strXml += ' '; - strXml += ' '; - obj.labels.forEach(function (label, idx) { - strXml += '' + encodeXmlEntities(label) + ''; + strXml += ' '; + strXml += ' Sheet1!$A$2:$' + getExcelColName(obj.labels.length - 1) + '$' + (obj.labels[0].length + 1) + ''; + strXml += ' '; + strXml += ' '; + obj.labels.forEach(function (labelsGroup) { + strXml += ' '; + labelsGroup.forEach(function (label, idx) { + strXml += '' + encodeXmlEntities(label) + ''; + }); + strXml += ' '; }); - strXml += ' '; - strXml += ' '; + strXml += ' '; + strXml += ' '; } strXml += ''; } @@ -5244,10 +5292,10 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC { strXml += ''; strXml += ' '; - strXml += ' Sheet1!$' + getExcelColName(idx + 1) + '$2:$' + getExcelColName(idx + 1) + '$' + (obj.labels.length + 1) + ''; + strXml += ' Sheet1!$' + getExcelColName(idx + obj.labels.length) + '$2:$' + getExcelColName(idx + obj.labels.length) + '$' + (obj.labels[0].length + 1) + ''; strXml += ' '; strXml += ' ' + (opts.valLabelFormatCode || opts.dataTableFormatCode || 'General') + ''; - strXml += ' '; + strXml += ' '; obj.values.forEach(function (value, idx) { strXml += '' + (value || value === 0 ? value : '') + ''; }); @@ -5383,9 +5431,9 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC // Option: scatter data point labels if (opts.showLabel) { var chartUuid_1 = getUuid('-xxxx-xxxx-xxxx-xxxxxxxxxxxx'); - if (obj.labels && (opts.dataLabelFormatScatter === 'custom' || opts.dataLabelFormatScatter === 'customXY')) { + if (obj.labels[0] && (opts.dataLabelFormatScatter === 'custom' || opts.dataLabelFormatScatter === 'customXY')) { strXml += ''; - obj.labels.forEach(function (label, idx) { + obj.labels[0].forEach(function (label, idx) { if (opts.dataLabelFormatScatter === 'custom' || opts.dataLabelFormatScatter === 'customXY') { strXml += ' '; strXml += ' '; @@ -5776,7 +5824,7 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC strXml += ' '; //strXml += '' // 2: "Data Point" block for every data row - obj.labels.forEach(function (_label, idx) { + obj.labels[0].forEach(function (_label, idx) { strXml += ''; strXml += " "; strXml += ' '; @@ -5791,7 +5839,7 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC }); // 3: "Data Label" block for every data Label strXml += ''; - obj.labels.forEach(function (_label, idx) { + obj.labels[0].forEach(function (_label, idx) { strXml += ''; strXml += " "; strXml += " "; @@ -5838,10 +5886,10 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC // 2: "Categories" strXml += ''; strXml += ' '; - strXml += ' Sheet1!$A$2:$A$' + (obj.labels.length + 1) + ''; + strXml += ' Sheet1!$A$2:$A$' + (obj.labels[0].length + 1) + ''; strXml += ' '; - strXml += ' '; - obj.labels.forEach(function (label, idx) { + strXml += ' '; + obj.labels[0].forEach(function (label, idx) { strXml += '' + encodeXmlEntities(label) + ''; }); strXml += ' '; @@ -5850,9 +5898,9 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC // 3: Create vals strXml += ' '; strXml += ' '; - strXml += ' Sheet1!$B$2:$B$' + (obj.labels.length + 1) + ''; + strXml += ' Sheet1!$B$2:$B$' + (obj.labels[0].length + 1) + ''; strXml += ' '; - strXml += ' '; + strXml += ' '; obj.values.forEach(function (value, idx) { strXml += '' + (value || value === 0 ? value : '') + ''; }); @@ -5955,7 +6003,7 @@ function makeCatAxis(opts, axisId, valAxisId) { strXml += ' '; strXml += ' '; strXml += ' '; - strXml += ' '; + strXml += ' '; if (opts.catAxisLabelFrequency) strXml += ' '; // Issue#149: PPT will auto-adjust these as needed after calcing the date bounds, so we only include them when specified by user diff --git a/dist/pptxgen.es.js b/dist/pptxgen.es.js index cafba7f2c..ca8cd5d90 100644 --- a/dist/pptxgen.es.js +++ b/dist/pptxgen.es.js @@ -1,4 +1,4 @@ -/* PptxGenJS 3.9.0-beta @ 2021-10-01T03:13:35.870Z */ +/* PptxGenJS 3.9.0-beta @ 2021-10-14T12:21:16.793Z */ import JSZip from 'jszip'; /*! ***************************************************************************** @@ -3354,6 +3354,10 @@ function addChartDefinition(target, type, data, opt) { } tmpData.forEach(function (item, i) { item.index = i; + // Converts the 'labels' array from string[] to string[][] (or the respective primitive type), if needed + if (item.labels !== undefined && !Array.isArray(item.labels[0])) { + item.labels = [item.labels]; + } }); options = tmpOpt && typeof tmpOpt === 'object' ? tmpOpt : {}; // STEP 1: TODO: check for reqd fields, correct type, etc @@ -3510,6 +3514,12 @@ function addChartDefinition(target, type, data, opt) { options.lineSize = typeof options.lineSize === 'number' ? options.lineSize : 2; options.valAxisMajorUnit = typeof options.valAxisMajorUnit === 'number' ? options.valAxisMajorUnit : null; options.valAxisCrossesAt = options.valAxisCrossesAt || 'autoZero'; + if (options._type === CHART_TYPE.AREA || options._type === CHART_TYPE.BAR || options._type === CHART_TYPE.BAR3D || options._type === CHART_TYPE.LINE) { + options.catAxisMultiLevelLabels = !!options.catAxisMultiLevelLabels; + } + else { + delete options.catAxisMultiLevelLabels; + } // STEP 4: Set props resultObject._type = 'chart'; resultObject.options = options; @@ -4568,13 +4578,17 @@ function createExcelWorksheet(chartObject, zip) { ''; } else { + // series names + all labels of one series + number of label groups (data.labels.length) of one series (i.e. how many times the blank string is used) + var count = data.length + data[0].labels.length * data[0].labels[0].length + data[0].labels.length; + // series names + labels of one series + blank string (same for all label groups) + var uniqueCount = data.length + data[0].labels.length * data[0].labels[0].length + 1; strSharedStrings_1 += ''; - // B: Add 'blank' for A1 + // B: Add 'blank' for A1, B1, ..., of every label group inside data[n].labels strSharedStrings_1 += ''; } // C: Add `name`/Series @@ -4595,8 +4609,10 @@ function createExcelWorksheet(chartObject, zip) { } // D: Add `labels`/Categories if (chartObject.opts._type !== CHART_TYPE.BUBBLE && chartObject.opts._type !== CHART_TYPE.SCATTER) { - data[0].labels.forEach(function (label) { - strSharedStrings_1 += '' + encodeXmlEntities(label) + ''; + data[0].labels.forEach(function (labelsGroup) { + labelsGroup.forEach(function (label) { + strSharedStrings_1 += '' + encodeXmlEntities(label) + ''; + }); }); } strSharedStrings_1 += '\n'; @@ -4620,13 +4636,15 @@ function createExcelWorksheet(chartObject, zip) { else { strTableXml_1 += '
'; - strTableXml_1 += ''; - strTableXml_1 += ''; + strTableXml_1 += ''; + data[0].labels.forEach(function (_labelsGroup, idx) { + strTableXml_1 += ''; + }); data.forEach(function (obj, idx) { - strTableXml_1 += ''; + strTableXml_1 += ''; }); } strTableXml_1 += ''; @@ -4646,7 +4664,7 @@ function createExcelWorksheet(chartObject, zip) { strSheetXml_1 += ''; } else { - strSheetXml_1 += ''; + strSheetXml_1 += ''; } strSheetXml_1 += ''; strSheetXml_1 += ''; @@ -4764,25 +4782,31 @@ function createExcelWorksheet(chartObject, zip) { 6|May-17 | 75| 93| 170| -|-------|-----|-----|-----| */ - // A: Create header row first (NOTE: Start at index=1 as headers cols start with 'B') - strSheetXml_1 += ''; - strSheetXml_1 += '0'; + // A: Create header row first + strSheetXml_1 += ''; + data[0].labels.forEach(function (_labelsGroup, idx) { + strSheetXml_1 += ''; + strSheetXml_1 += '0'; + strSheetXml_1 += ''; + }); for (var idx = 1; idx <= data.length; idx++) { // FIXME: Max cols is 52 - strSheetXml_1 += ''; // NOTE: use `t="s"` for label cols! + strSheetXml_1 += ''; // NOTE: use `t="s"` for label cols! strSheetXml_1 += '' + idx + ''; strSheetXml_1 += ''; } strSheetXml_1 += ''; // B: Add data row(s) for each category - data[0].labels.forEach(function (_cat, idx) { - // Leading col is reserved for the label, so hard-code it, then loop over col values - strSheetXml_1 += ''; - strSheetXml_1 += ''; - strSheetXml_1 += '' + (data.length + idx + 1) + ''; - strSheetXml_1 += ''; + data[0].labels[0].forEach(function (_cat, idx) { + strSheetXml_1 += ''; + // Leading cols are reserved for the label groups + for (var idx2 = data[0].labels.length - 1; idx2 >= 0; idx2--) { + strSheetXml_1 += ''; + strSheetXml_1 += '' + (data.length + idx + (idx2 * (data[0].labels[0].length)) + 1) + ''; + strSheetXml_1 += ''; + } for (var idy = 0; idy < data.length; idy++) { - strSheetXml_1 += ''; + strSheetXml_1 += ''; strSheetXml_1 += '' + (data[idy].values[idx] || '') + ''; strSheetXml_1 += ''; } @@ -5055,20 +5079,40 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC } strXml += ''; // 2: "Series" block for every data row - /* EX: + /* EX1: data: [ { name: 'Region 1', - labels: ['April', 'May', 'June', 'July'], + labels: [['April', 'May', 'June', 'July']], values: [17, 26, 53, 96] }, { name: 'Region 2', - labels: ['April', 'May', 'June', 'July'], + labels: [['April', 'May', 'June', 'July']], values: [55, 43, 70, 58] } ] */ + /* EX2: + data: [ + { + name: 'Region 1', + labels: [ + ['April', 'May', 'June', 'April', 'May', 'June'], + ['2020', '', '', '2021', '', ''] + ], + values: [17, 26, 53, 96, 40, 33] + }, + { + name: 'Region 2', + labels: [ + ['April', 'May', 'June', 'April', 'May', 'June'], + ['2020', '', '', '2021', '', ''] + ], + values: [55, 43, 70, 58, 78, 63] + } + ] + */ var colorIndex_1 = -1; // Maintain the color index by region data.forEach(function (obj) { colorIndex_1++; @@ -5078,7 +5122,7 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC strXml += ' '; strXml += ' '; strXml += ' '; - strXml += ' Sheet1!$' + getExcelColName(idx + 1) + '$1'; + strXml += ' Sheet1!$' + getExcelColName(idx + obj.labels.length) + '$1'; strXml += ' ' + encodeXmlEntities(obj.name) + ''; strXml += ' '; strXml += ' '; @@ -5211,26 +5255,30 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC if (opts.catLabelFormatCode) { // Use 'numRef' as catLabelFormatCode implies that we are expecting numbers here strXml += ' '; - strXml += ' Sheet1!$A$2:$A$' + (obj.labels.length + 1) + ''; + strXml += ' Sheet1!$A$2:$A$' + (obj.labels[0].length + 1) + ''; strXml += ' '; strXml += ' ' + (opts.catLabelFormatCode || 'General') + ''; - strXml += ' '; - obj.labels.forEach(function (label, idx) { + strXml += ' '; + obj.labels[0].forEach(function (label, idx) { strXml += '' + encodeXmlEntities(label) + ''; }); strXml += ' '; strXml += ' '; } else { - strXml += ' '; - strXml += ' Sheet1!$A$2:$A$' + (obj.labels.length + 1) + ''; - strXml += ' '; - strXml += ' '; - obj.labels.forEach(function (label, idx) { - strXml += '' + encodeXmlEntities(label) + ''; + strXml += ' '; + strXml += ' Sheet1!$A$2:$' + getExcelColName(obj.labels.length - 1) + '$' + (obj.labels[0].length + 1) + ''; + strXml += ' '; + strXml += ' '; + obj.labels.forEach(function (labelsGroup) { + strXml += ' '; + labelsGroup.forEach(function (label, idx) { + strXml += '' + encodeXmlEntities(label) + ''; + }); + strXml += ' '; }); - strXml += ' '; - strXml += ' '; + strXml += ' '; + strXml += ' '; } strXml += ''; } @@ -5238,10 +5286,10 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC { strXml += ''; strXml += ' '; - strXml += ' Sheet1!$' + getExcelColName(idx + 1) + '$2:$' + getExcelColName(idx + 1) + '$' + (obj.labels.length + 1) + ''; + strXml += ' Sheet1!$' + getExcelColName(idx + obj.labels.length) + '$2:$' + getExcelColName(idx + obj.labels.length) + '$' + (obj.labels[0].length + 1) + ''; strXml += ' '; strXml += ' ' + (opts.valLabelFormatCode || opts.dataTableFormatCode || 'General') + ''; - strXml += ' '; + strXml += ' '; obj.values.forEach(function (value, idx) { strXml += '' + (value || value === 0 ? value : '') + ''; }); @@ -5377,9 +5425,9 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC // Option: scatter data point labels if (opts.showLabel) { var chartUuid_1 = getUuid('-xxxx-xxxx-xxxx-xxxxxxxxxxxx'); - if (obj.labels && (opts.dataLabelFormatScatter === 'custom' || opts.dataLabelFormatScatter === 'customXY')) { + if (obj.labels[0] && (opts.dataLabelFormatScatter === 'custom' || opts.dataLabelFormatScatter === 'customXY')) { strXml += ''; - obj.labels.forEach(function (label, idx) { + obj.labels[0].forEach(function (label, idx) { if (opts.dataLabelFormatScatter === 'custom' || opts.dataLabelFormatScatter === 'customXY') { strXml += ' '; strXml += ' '; @@ -5770,7 +5818,7 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC strXml += ' '; //strXml += '' // 2: "Data Point" block for every data row - obj.labels.forEach(function (_label, idx) { + obj.labels[0].forEach(function (_label, idx) { strXml += ''; strXml += " "; strXml += ' '; @@ -5785,7 +5833,7 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC }); // 3: "Data Label" block for every data Label strXml += ''; - obj.labels.forEach(function (_label, idx) { + obj.labels[0].forEach(function (_label, idx) { strXml += ''; strXml += " "; strXml += " "; @@ -5832,10 +5880,10 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC // 2: "Categories" strXml += ''; strXml += ' '; - strXml += ' Sheet1!$A$2:$A$' + (obj.labels.length + 1) + ''; + strXml += ' Sheet1!$A$2:$A$' + (obj.labels[0].length + 1) + ''; strXml += ' '; - strXml += ' '; - obj.labels.forEach(function (label, idx) { + strXml += ' '; + obj.labels[0].forEach(function (label, idx) { strXml += '' + encodeXmlEntities(label) + ''; }); strXml += ' '; @@ -5844,9 +5892,9 @@ function makeChartType(chartType, data, opts, valAxisId, catAxisId, isMultiTypeC // 3: Create vals strXml += ' '; strXml += ' '; - strXml += ' Sheet1!$B$2:$B$' + (obj.labels.length + 1) + ''; + strXml += ' Sheet1!$B$2:$B$' + (obj.labels[0].length + 1) + ''; strXml += ' '; - strXml += ' '; + strXml += ' '; obj.values.forEach(function (value, idx) { strXml += '' + (value || value === 0 ? value : '') + ''; }); @@ -5949,7 +5997,7 @@ function makeCatAxis(opts, axisId, valAxisId) { strXml += ' '; strXml += ' '; strXml += ' '; - strXml += ' '; + strXml += ' '; if (opts.catAxisLabelFrequency) strXml += ' '; // Issue#149: PPT will auto-adjust these as needed after calcing the date bounds, so we only include them when specified by user diff --git a/dist/pptxgen.min.js b/dist/pptxgen.min.js index 269d6b604..fa0c89a1b 100644 --- a/dist/pptxgen.min.js +++ b/dist/pptxgen.min.js @@ -1,3 +1,3 @@ -/* PptxGenJS 3.9.0-beta @ 2021-10-01T03:13:34.354Z */ -var PptxGenJS=function(){"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=e(JSZip),y=function(){return(y=Object.assign||function(e){for(var t,a=1,r=arguments.length;a/g,">").replace(/"/g,""").replace(/'/g,"'")}function ge(e){return"number"==typeof e&&100"+t+"":""}function Pe(e){var t="solid",a="",r="",o="";if(e)switch("string"==typeof e?a=e:(e.type&&(t=e.type),e.color&&(a=e.color),e.alpha&&(r+=''),e.transparency&&(r+='')),t){case"solid":o+=""+Ce(a,r)+"";break;default:o+=""}return o}function Le(e){return e._rels.length+e._relsChart.length+e._relsMedia.length+1}function we(e,p,r,t){void 0===e&&(e=[]),void 0===p&&(p={});var a,c=w,d=1*O,f=0,o=0,h=[],l=he(p.x,"X",r),A=he(p.y,"Y",r),n=he(p.w,"X",r),m=he(p.h,"Y",r),i=n;if(p.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- TABLE PROPS --------------------------------------------------------|"),console.log("| presLayout.width ................................ = "+(r.width/O).toFixed(1)),console.log("| presLayout.height ............................... = "+(r.height/O).toFixed(1)),console.log("| tableProps.x .................................... = "+("number"==typeof p.x?(p.x/O).toFixed(1):p.x)),console.log("| tableProps.y .................................... = "+("number"==typeof p.y?(p.y/O).toFixed(1):p.y)),console.log("| tableProps.w .................................... = "+("number"==typeof p.w?(p.w/O).toFixed(1):p.w)),console.log("| tableProps.h .................................... = "+("number"==typeof p.h?(p.h/O).toFixed(1):p.h)),console.log("| tableProps.slideMargin .......................... = "+(p.slideMargin||"")),console.log("| tableProps.margin ............................... = "+p.margin),console.log("| tableProps.colW ................................. = "+p.colW),console.log("| tableProps.autoPageSlideStartY .................. = "+p.autoPageSlideStartY),console.log("| tableProps.autoPageCharWeight ................... = "+p.autoPageCharWeight),console.log("|-- CALCULATIONS -------------------------------------------------------|"),console.log("| tablePropX ...................................... = "+l/O),console.log("| tablePropY ...................................... = "+A/O),console.log("| tablePropW ...................................... = "+n/O),console.log("| tablePropH ...................................... = "+m/O),console.log("| tableCalcW ...................................... = "+i/O)),p.slideMargin||0===p.slideMargin||(p.slideMargin=w[0]),t&&void 0!==t._margin?Array.isArray(t._margin)?c=t._margin:isNaN(Number(t._margin))||(c=[Number(t._margin),Number(t._margin),Number(t._margin),Number(t._margin)]):!p.slideMargin&&0!==p.slideMargin||(Array.isArray(p.slideMargin)?c=p.slideMargin:isNaN(p.slideMargin)||(c=[p.slideMargin,p.slideMargin,p.slideMargin,p.slideMargin])),p.verbose&&console.log("| arrInchMargins .................................. = ["+c.join(", ")+"]"),(e[0]||[]).forEach(function(e){var t=(e=e||{_type:oe.tablecell}).options||null;o+=Number(t&&t.colspan?t.colspan:1)}),p.verbose&&console.log("| numCols ......................................... = "+o),!n&&p.colW&&(i=Array.isArray(p.colW)?p.colW.reduce(function(e,t){return e+t})*O:p.colW*o||0,p.verbose&&console.log("| tableCalcW ...................................... = "+i/O)),a=i||ge((l?l/O:c[1])+c[3]),p.verbose&&console.log("| emuSlideTabW .................................... = "+(a/O).toFixed(1)),!p.colW||!Array.isArray(p.colW))if(p.colW&&!isNaN(Number(p.colW))){var s=[];(e[0]||[]).forEach(function(){return s.push(p.colW)}),p.colW=[],s.forEach(function(e){Array.isArray(p.colW)&&p.colW.push(e)})}else{p.colW=[];for(var u=0;ut?t=ye(e.options.margin[0]):p.margin&&p.margin[0]&&ye(p.margin[0])>t&&(t=ye(p.margin[0])),e.options.margin&&e.options.margin[2]&&ye(e.options.margin[2])>a?a=ye(e.options.margin[2]):p.margin&&p.margin[2]&&ye(p.margin[2])>a&&(a=ye(p.margin[2]))):(e.options.margin&&e.options.margin[0]&&ge(e.options.margin[0])>t?t=ge(e.options.margin[0]):p.margin&&p.margin[0]&&ge(p.margin[0])>t&&(t=ge(p.margin[0])),e.options.margin&&e.options.margin[2]&&ge(e.options.margin[2])>a?a=ge(e.options.margin[2]):p.margin&&p.margin[2]&&ge(p.margin[2])>a&&(a=ge(p.margin[2])))});var e=0;if(0===h.length&&(e=A||ge(c[0])),0 "+JSON.stringify(p)),i.push(p),p=[])),0o&&(l.push(t),t=[],a=""),t.push(e),a+=e.text.toString()}),0=o[s]._lines.length&&(s=t)}),o.forEach(function(r,o){r._lines.forEach(function(e,t){if(f+r._lineHeight>d){p.verbose&&(console.log("\n|-----------------------------------------------------------------------|"),console.log("|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => "+(f/O).toFixed(2)+" + "+(r._lineHeight/O).toFixed(2)+" > "+d/O),console.log("|-----------------------------------------------------------------------|\n\n")),0a&&(a=e._lineHeight)}),g.rows.push(t),f+=a})}var a=i[o];Array.isArray(a.text)&&(a.text=a.text.concat(e)),o===s&&(f+=r._lineHeight),i.forEach(function(e,t){t'},contain:function(e,t){var a=e.h/e.w,r=a'},crop:function(e,t){var a=t.x,r=e.w-(t.x+t.w),o=t.y,l=e.h-(t.y+t.h);return''}};function Se(F){var B=F._name?'':"",I=1;return F._bkgdImgRid?B+='':F.background&&F.background.color?B+=""+Pe(F.background)+"":!F.bkgd&&F._name&&F._name===r&&(B+=''),B+="",B+='',B+='',B+='',F._slideObjects.forEach(function(r,e){var t,a,o=0,l=0,n=he("75%","X",F._presLayout),i=0,s="";switch(void 0!==F._slideLayout&&void 0!==F._slideLayout._slideObjects&&r.options&&r.options.placeholder&&(a=F._slideLayout._slideObjects.filter(function(e){return e.options.placeholder===r.options.placeholder})[0]),r.options=r.options||{},void 0!==r.options.x&&(o=he(r.options.x,"X",F._presLayout)),void 0!==r.options.y&&(l=he(r.options.y,"Y",F._presLayout)),void 0!==r.options.w&&(n=he(r.options.w,"X",F._presLayout)),void 0!==r.options.h&&(i=he(r.options.h,"Y",F._presLayout)),a&&(!a.options.x&&0!==a.options.x||(o=he(a.options.x,"X",F._presLayout)),!a.options.y&&0!==a.options.y||(l=he(a.options.y,"Y",F._presLayout)),!a.options.w&&0!==a.options.w||(n=he(a.options.w,"X",F._presLayout)),!a.options.h&&0!==a.options.h||(i=he(a.options.h,"Y",F._presLayout))),r.options.flipH&&(s+=' flipH="1"'),r.options.flipV&&(s+=' flipV="1"'),r.options.rotate&&(s+=' rot="'+be(r.options.rotate)+'"'),r._type){case oe.table:var p,c=r.arrTabRows,f=r.options,d=0,h=0;c[0].forEach(function(e){p=e.options||null,d+=p&&p.colspan?Number(p.colspan):1});var A='';if(A+=' ',A+='',A+='',Array.isArray(f.colW)){A+="";for(var m=0;m'}A+=""}else{h=f.colW?f.colW:O,r.options.w&&!f.colW&&(h=Math.round(("number"==typeof r.options.w?r.options.w:1)/d)),A+="";for(var g=0;g';A+=""}c.forEach(function(l){for(var n,i,s,e=function(e){var t=l[e],a=null===(n=t.options)||void 0===n?void 0:n.colspan,r=null===(i=t.options)||void 0===i?void 0:i.rowspan;if(a&&1',e.forEach(function(e){var t,a,r=e,o={rowSpan:1<(null===(t=r.options)||void 0===t?void 0:t.rowspan)?r.options.rowspan:void 0,gridSpan:1<(null===(a=r.options)||void 0===a?void 0:a.colspan)?r.options.colspan:void 0,vMerge:r._vmerge?1:void 0,hMerge:r._hmerge?1:void 0},l=Object.keys(o).map(function(e){return[e,o[e]]}).filter(function(e){return e[0],!!e[1]}).map(function(e){return e[0]+'="'+e[1]+'"'}).join(" ");if(l=l&&" "+l,r._hmerge||r._vmerge)A+="";else{var n=r.options||{};r.options=n,["align","bold","border","color","fill","fontFace","fontSize","margin","underline","valign"].forEach(function(e){f[e]&&!n[e]&&0!==n[e]&&(n[e]=f[e])});var i=n.valign?' anchor="'+n.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b")+'"':"",s=r._optImp&&r._optImp.fill&&r._optImp.fill.color?r._optImp.fill.color:r._optImp&&r._optImp.fill&&"string"==typeof r._optImp.fill?r._optImp.fill:"",p=(s=s||n.fill&&n.fill.color?n.fill.color:n.fill&&"string"==typeof n.fill?n.fill:"")?""+Ce(s)+"":"",c=0===n.margin||n.margin?n.margin:k;Array.isArray(c)||"number"!=typeof c||(c=[c,c,c,c]);var d="";d=1<=c[0]?' marL="'+ye(c[3])+'" marR="'+ye(c[1])+'" marT="'+ye(c[0])+'" marB="'+ye(c[2])+'"':' marL="'+ge(c[3])+'" marR="'+ge(c[1])+'" marT="'+ge(c[0])+'" marB="'+ge(c[2])+'"',A+=""+Fe(r)+"",n.border&&Array.isArray(n.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach(function(e){"none"!==n.border[e.idx].type?(A+="',A+=""+Ce(n.border[e.idx].color)+"",A+='',A+=""):A+=""}),A+=p,A+=" ",A+=" "}}),A+=""}),A+=" ",A+=" ",A+=" ",B+=A+="",I++;break;case oe.text:case oe.placeholder:var y=r.options.shapeName?ue(r.options.shapeName):"Object"+(e+1);if(r.options.line||0!==i||(i=.3*O),r.options._bodyProp||(r.options._bodyProp={}),r.options.margin&&Array.isArray(r.options.margin)?(r.options._bodyProp.lIns=ye(r.options.margin[0]||0),r.options._bodyProp.rIns=ye(r.options.margin[1]||0),r.options._bodyProp.bIns=ye(r.options.margin[2]||0),r.options._bodyProp.tIns=ye(r.options.margin[3]||0)):"number"==typeof r.options.margin&&(r.options._bodyProp.lIns=ye(r.options.margin),r.options._bodyProp.rIns=ye(r.options.margin),r.options._bodyProp.bIns=ye(r.options.margin),r.options._bodyProp.tIns=ye(r.options.margin)),B+="",B+='',r.options.hyperlink&&r.options.hyperlink.url&&(B+=''),r.options.hyperlink&&r.options.hyperlink.slide&&(B+=''),B+="",B+="':"/>"),B+=""+("placeholder"===r._type?Be(r):Be(a))+"",B+="",B+="",B+='',B+='',"custGeom"===r.shape)B+="",B+="",B+="",B+="",B+="",B+="",B+='',B+="",B+='',null===(t=r.options.points)||void 0===t||t.map(function(e,t){if("curve"in e)switch(e.curve.type){case"arc":B+='';break;case"cubic":B+='\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t';break;case"quadratic":B+='\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t'}else"close"in e?B+="":e.moveTo||0===t?B+='':B+=''}),B+="",B+="",B+="";else{if(B+='',r.options.rectRadius)B+='';else if(r.options.angleRange){for(var b=0;b<2;b++){var v=r.options.angleRange[b];B+=''}r.options.arcThicknessRatio&&(B+='')}B+=""}B+=r.options.fill?Pe(r.options.fill):"",r.options.line&&(B+=r.options.line.width?'':"",r.options.line.color&&(B+=Pe(r.options.line)),r.options.line.dashType&&(B+=''),r.options.line.beginArrowType&&(B+=''),r.options.line.endArrowType&&(B+=''),B+=""),r.options.shadow&&(r.options.shadow.type=r.options.shadow.type||"outer",r.options.shadow.blur=ye(r.options.shadow.blur||8),r.options.shadow.offset=ye(r.options.shadow.offset||4),r.options.shadow.angle=Math.round(6e4*(r.options.shadow.angle||270)),r.options.shadow.opacity=Math.round(1e5*(r.options.shadow.opacity||.75)),r.options.shadow.color=r.options.shadow.color||D.color,B+="",B+="',B+='',B+='',B+="",B+=""),B+="",B+=Fe(r),B+="";break;case oe.image:var x=r.options,C=x.sizing,P=x.rounding,L=n,w=i;if(B+="",B+=" ",B+='',r.hyperlink&&r.hyperlink.url&&(B+=''),r.hyperlink&&r.hyperlink.slide&&(B+=''),B+=" ",B+=' ',B+=" "+Be(a)+"",B+=" ",B+="",(F._relsMedia||[]).filter(function(e){return e.rId===r.imageRid})[0]&&"svg"===(F._relsMedia||[]).filter(function(e){return e.rId===r.imageRid})[0].extn?(B+='',B+=" ",B+=' ',B+=' ',B+=" ",B+=" ",B+=""):B+='',C&&C.type){var T=C.w?he(C.w,"X",F._presLayout):n,S=C.h?he(C.h,"Y",F._presLayout):i,R=he(C.x||0,"X",F._presLayout),E=he(C.y||0,"Y",F._presLayout);B+=Te[C.type]({w:L,h:w},{w:T,h:S,x:R,y:E}),L=T,w=S}else B+=" ";B+="",B+="",B+=" ",B+=' ',B+=' ',B+=" ",B+=' ',B+="",B+="";break;case oe.media:"online"===r.mtype?(B+="",B+=" ",B+=' ',B+=" ",B+=" ",B+=' ',B+=" ",B+=" ",B+=' '):(B+="",B+=" ",B+=' ',B+=' ',B+=" ",B+=' ',B+=" ",B+=' ',B+=' ',B+=" ",B+=" ",B+=" ",B+=" ",B+=' '),B+=" ",B+=" ",B+=' ',B+=' ',B+=" ",B+=' ',B+=" ",B+="";break;case oe.chart:var _=r.options;B+="",B+=" ",B+=' ',B+=" ",B+=" "+Be(a)+"",B+=" ",B+=' ',B+=' ',B+=' ',B+=' ',B+=" ",B+=" ",B+="";break;default:B+=""}}),F._slideNumberProps&&(F._slideNumberProps.align||(F._slideNumberProps.align="left"),B+=' ',B+="",B+="',F._slideNumberProps.color&&(B+=Pe(F._slideNumberProps.color)),F._slideNumberProps.fontFace&&(B+=''),B+=""),B+="",B+='',F._slideNumberProps.align.startsWith("l")?B+='':F._slideNumberProps.align.startsWith("c")?B+='':F._slideNumberProps.align.startsWith("r")?B+='':B+='',B+='',B+=""),B+="",B+=""}function Re(e,t){var a=0,r=''+p+'';return e._rels.forEach(function(e){a=Math.max(a,e.rId),-1':r+='':-1')}),(e._relsChart||[]).forEach(function(e){a=Math.max(a,e.rId),r+=''}),(e._relsMedia||[]).forEach(function(e){a=Math.max(a,e.rId),-1':-1':r+='':-1':r+='':-1':r+='')}),t.forEach(function(e,t){r+=''}),r+=""}function Ee(e,t){var a="",r="",o="",l="",n=t?"a:lvl1pPr":"a:pPr",i=ye(c),s="<"+n+(e.options.rtlMode?' rtl="1" ':"");if(e.options.align)switch(e.options.align){case"left":s+=' algn="l"';break;case"right":s+=' algn="r"';break;case"center":s+=' algn="ctr"';break;case"justify":s+=' algn="just"';break;default:s+=""}if(e.options.lineSpacing?r='':e.options.lineSpacingMultiple&&(r=''),e.options.indentLevel&&!isNaN(Number(e.options.indentLevel))&&0'),e.options.paraSpaceAfter&&!isNaN(Number(e.options.paraSpaceAfter))&&0'),"object"==typeof e.options.bullet)if(e&&e.options&&e.options.bullet&&e.options.bullet.indent&&(i=ye(e.options.bullet.indent)),e.options.bullet.type)"number"===e.options.bullet.type.toString().toLowerCase()&&(s+=' marL="'+(e.options.indentLevel&&0');else if(e.options.bullet.characterCode){var p="&#x"+e.options.bullet.characterCode+";";!1===/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.characterCode)&&(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),p=se.DEFAULT),s+=' marL="'+(e.options.indentLevel&&0'}else if(e.options.bullet.code){p="&#x"+e.options.bullet.code+";";!1===/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.code)&&(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),p=se.DEFAULT),s+=' marL="'+(e.options.indentLevel&&0'}else s+=' marL="'+(e.options.indentLevel&&0';else!0===e.options.bullet?(s+=' marL="'+(e.options.indentLevel&&0'):!1===e.options.bullet&&(s+=' indent="0" marL="0"',a="");e.options.tabStops&&Array.isArray(e.options.tabStops)&&(l=""+e.options.tabStops.map(function(e){return''}).join("")+"");return s+=">"+r+o+a+l,t&&(s+=_e(e.options,!0)),s+=""}function _e(e,t){var a,r="",o=t?"a:defRPr":"a:rPr";if(r+="<"+o+' lang="'+(e.lang?e.lang:"en-US")+'"'+(e.lang?' altLang="en-US"':""),r+=e.fontSize?' sz="'+Math.round(e.fontSize)+'00"':"",r+=e.hasOwnProperty("bold")?' b="'+(e.bold?1:0)+'"':"",r+=e.hasOwnProperty("italic")?' i="'+(e.italic?1:0)+'"':"",r+=e.hasOwnProperty("strike")?' strike="'+("string"==typeof e.strike?e.strike:"sngStrike")+'"':"","object"==typeof e.underline&&(null===(a=e.underline)||void 0===a?void 0:a.style)?r+=' u="'+e.underline.style+'"':"string"==typeof e.underline?r+=' u="'+e.underline+'"':e.hyperlink&&(r+=' u="sng"'),e.baseline?r+=' baseline="'+Math.round(50*e.baseline)+'"':e.subscript?r+=' baseline="-40000"':e.superscript&&(r+=' baseline="30000"'),r+=e.charSpacing?' spc="'+Math.round(100*e.charSpacing)+'" kern="0"':"",r+=' dirty="0">',(e.color||e.fontFace||e.outline||"object"==typeof e.underline&&e.underline.color)&&(e.outline&&"object"==typeof e.outline&&(r+=''+Pe(e.outline.color||"FFFFFF")+""),e.color&&(r+=Pe(e.color)),e.highlight&&(r+=""+Ce(e.highlight)+""),"object"==typeof e.underline&&e.underline.color&&(r+=""+Pe(e.underline.color)+""),e.glow&&(r+=""+function(e,t){var a="",r=me(t,e);return a+='',a+=Ce(r.color,''),a+=""}(e.glow,T)+""),e.fontFace&&(r+='')),e.hyperlink){if("object"!=typeof e.hyperlink)throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");if(!e.hyperlink.url&&!e.hyperlink.slide)throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'");e.hyperlink.url?r+='":"/>"):e.hyperlink.slide&&(r+='":"/>")),e.color&&(r+="\t",r+='\t\t',r+='\t\t\t',r+="\t\t",r+="\t",r+="")}return r+=""}function Fe(r){var o=r.options||{},e=[],a=[];if(o&&r._type!==oe.tablecell&&(void 0===r.text||null===r.text))return"";var l=r._type===oe.tablecell?"":"";l+=function(e){var t="":"resize"===e.options.fit&&(t+="")),e.options.shrinkText&&(t+=""),t+=!1!==e.options._bodyProp.autoFit?"":""):t+=' wrap="square" rtlCol="0">',t+="",e._type===oe.tablecell?"":t}(r),0===o.h&&o.line&&o.align?l+='':"placeholder"===r._type?l+=""+Ee(r,!0)+"":l+="","string"==typeof r.text||"number"==typeof r.text?e.push({text:r.text.toString(),options:o||{}}):r.text&&!Array.isArray(r.text)&&"object"==typeof r.text&&-1";var a=""),r.options.align=r.options.align||o.align,r.options.lineSpacing=r.options.lineSpacing||o.lineSpacing,r.options.lineSpacingMultiple=r.options.lineSpacingMultiple||o.lineSpacingMultiple,r.options.indentLevel=r.options.indentLevel||o.indentLevel,r.options.paraSpaceBefore=r.options.paraSpaceBefore||o.paraSpaceBefore,r.options.paraSpaceAfter=r.options.paraSpaceAfter||o.paraSpaceAfter,a=Ee(r,!1),l+=a,Object.entries(o).forEach(function(e){var t=e[0],a=e[1];r.options.hyperlink&&"color"===t||"bullet"===t||r.options[t]||(r.options[t]=a)}),l+=function(e){return e.text?""+_e(e.options,!1)+""+ue(e.text)+"":""}(r),(!r.text&&o.fontSize||r.options.fontSize)&&(t=!0,o.fontSize=o.fontSize||r.options.fontSize)}),r._type===oe.tablecell&&(o.fontSize||o.fontFace)?o.fontFace?(l+='',l+='',l+='',l+='',l+=""):l+='':l+=t?'':'',l+=""}),l+=r._type===oe.tablecell?"":""}function Be(e){if(!e)return"";var t=e.options&&e.options._placeholderIdx?e.options._placeholderIdx:"",a=e.options&&e.options._placeholderType?e.options._placeholderType:"";return""}function Ie(e){return''+p+''+ue(function(e){var t="";return e._slideObjects.forEach(function(e){e._type===oe.notes&&(t+=e.text&&e.text[0]?e.text[0].text:"")}),t.replace(/\r*\n/g,p)}(e))+''+e._slideNum+''}function Ne(e){e&&"object"==typeof e&&("outer"!==e.type&&"inner"!==e.type&&"none"!==e.type&&(console.warn("Warning: shadow.type options are `outer`, `inner` or `none`."),e.type="outer"),e.angle&&((isNaN(Number(e.angle))||e.angle<0||359 \n'),e.file("_rels/.rels",'\n'),e.file("docProps/app.xml",'Microsoft Excel0falseWorksheets1Sheet1\n'),e.file("docProps/core.xml",'PptxGenJSEly, Brent'+(new Date).toISOString()+''+(new Date).toISOString()+"\n"),e.file("xl/_rels/workbook.xml.rels",'\n'),e.file("xl/styles.xml",'\n'),e.file("xl/theme/theme1.xml",''),e.file("xl/workbook.xml",'\n'),e.file("xl/worksheets/_rels/sheet1.xml.rels",'\n');var r='';c.opts._type===Z.BUBBLE?r+='':c.opts._type===Z.SCATTER?r+='':(r+='',r+=''),c.opts._type===Z.BUBBLE?f.forEach(function(e,t){0===t?r+="X-Axis":(r+=""+ue(e.name||" ")+"",r+=""+ue("Size "+t)+"")}):f.forEach(function(e){r+=""+ue((e.name||" ").replace("X-Axis","X-Values"))+""}),c.opts._type!==Z.BUBBLE&&c.opts._type!==Z.SCATTER&&f[0].labels.forEach(function(e){r+=""+ue(e)+""}),r+="\n",e.file("xl/sharedStrings.xml",r);var l='';c.opts._type===Z.BUBBLE||(c.opts._type===Z.SCATTER?(l+='
',l+='',f.forEach(function(e,t){l+=''})):(l+='
',l+='',l+='',f.forEach(function(e,t){l+=''}))),l+="",l+='',l+="
",e.file("xl/tables/table1.xml",l);var n='';if(n+='',c.opts._type===Z.BUBBLE?n+='':c.opts._type===Z.SCATTER?n+='':n+='',n+='',n+='',c.opts._type===Z.BUBBLE){n+="",n+='',n+="",n+="",n+='',n+='0';for(var i=1;i',n+=""+i+"",n+="";n+="",f[0].values.forEach(function(e,t){n+='',n+=''+e+"";for(var a=1,r=1;r',n+=""+(f[r].values[t]||"")+"",n+="",n+='',n+=""+(f[r].sizes[t]||"")+"",n+="",a++;n+=""})}else if(c.opts._type===Z.SCATTER){n+="",n+='',n+="",n+="",n+='',n+='0';for(var s=1;s',n+=""+s+"",n+="";n+="",f[0].values.forEach(function(e,t){n+='',n+=''+e+"";for(var a=1;a',n+=""+(f[a].values[t]||0===f[a].values[t]?f[a].values[t]:"")+"",n+="";n+=""})}else{n+="",n+='',n+="",n+="",n+='',n+='0';for(var p=1;p<=f.length;p++)n+='',n+=""+p+"",n+="";n+="",f[0].labels.forEach(function(e,t){n+='',n+='',n+=""+(f.length+t+1)+"",n+="";for(var a=0;a',n+=""+(f[a].values[t]||"")+"",n+="";n+=""})}n+="",n+='',n+="\n",e.file("xl/worksheets/sheet1.xml",n),e.generateAsync({type:"base64"}).then(function(e){d.file("ppt/embeddings/Microsoft_Excel_Worksheet"+c.globalId+".xlsx",e,{base64:!0}),d.file("ppt/charts/_rels/"+c.fileName+".rels",''),d.file("ppt/charts/"+c.fileName,function(o){var l='',n=!1;l+='',l+='',l+="",o.opts.showTitle?(l+=qe({title:o.opts.title||"Chart Title",color:o.opts.titleColor,fontFace:o.opts.titleFontFace,fontSize:o.opts.titleFontSize||C,titleAlign:o.opts.titleAlign,titleBold:o.opts.titleBold,titlePos:o.opts.titlePos,titleRotate:o.opts.titleRotate}),l+=''):l+='';o.opts._type===Z.BAR3D&&(l+="",l+=' ',l+=' ',l+=' ',l+=' ',l+="");l+="",o.opts.layout?(l+="",l+=" ",l+=' ',l+=' ',l+=' ',l+=' ',l+=' ',l+=' ',l+=' ',l+=" ",l+=""):l+="";Array.isArray(o.opts._type)?o.opts._type.forEach(function(e){var t=me(o.opts,e.options),a=t.secondaryValAxis?R:S,r=t.secondaryCatAxis?_:E;n=n||t.secondaryValAxis,l+=je(e.type,e.data,t,a,r)}):l+=je(o.opts._type,o.data,o.opts,S,E);if(o.opts._type!==Z.PIE&&o.opts._type!==Z.DOUGHNUT){if(o.opts.valAxes&&1',r+=' ',r+=' ',r+=' ',r+="none"!==t.serGridLine.style?Je(t.serGridLine):"",t.showSerAxisTitle&&(r+=qe({color:t.serAxisTitleColor,fontFace:t.serAxisTitleFontFace,fontSize:t.serAxisTitleFontSize,titleRotate:t.serAxisTitleRotate,title:t.serAxisTitle||"Axis Title"}));r+=' ',r+=' ',r+=' ',r+=' ',r+=" ",r+=' ',r+=!1===t.serAxisLineShow?"":""+Ce(t.serAxisLineColor||u.color)+"",r+=' ',r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=' ',r+=" "+Ce(t.serAxisLabelColor||g)+"",r+=' ',r+=" ",r+=" ",r+=' ',r+=" ",r+=" ",r+=' ',r+=' ',t.serAxisLabelFrequency&&(r+=' ');t.serLabelFormatCode&&(["serAxisBaseTimeUnit","serAxisMajorTimeUnit","serAxisMinorTimeUnit"].forEach(function(e){!t[e]||"string"==typeof t[e]&&-1!==["days","months","years"].indexOf(e.toLowerCase())||(console.warn("`"+e+"` must be one of: 'days','months','years' !"),t[e]=null)}),t.serAxisBaseTimeUnit&&(r+=' '),t.serAxisMajorTimeUnit&&(r+=' '),t.serAxisMinorTimeUnit&&(r+=' '),t.serAxisMajorUnit&&(r+=' '),t.serAxisMinorUnit&&(r+=' '));return r+=""}(o.opts,F,S)))}o.opts.showDataTable&&(l+="",l+=' ',l+=' ',l+=' ',l+=' ',l+=" ",l+=" ",l+=' ',l+=" ",l+=" ",l+=" ",l+='\t ',l+="\t ",l+="\t ",l+='\t\t',l+=' ',l+='\t\t\t',l+='\t\t\t',l+='\t\t\t',l+='\t\t\t',l+="\t\t ",l+="\t\t",l+='\t\t',l+="\t ",l+="\t",l+="");l+=" ",l+=o.opts.fill?Pe(o.opts.fill):"",l+=o.opts.border?''+Pe(o.opts.border.color)+"":"",l+=" ",l+=" ",l+="",o.opts.showLegend&&(l+="",l+='',l+='',(o.opts.legendFontFace||o.opts.legendFontSize||o.opts.legendColor)&&(l+="",l+=" ",l+=" ",l+=" ",l+=" ",l+=o.opts.legendFontSize?'':"",o.opts.legendColor&&(l+=Pe(o.opts.legendColor)),o.opts.legendFontFace&&(l+=''),o.opts.legendFontFace&&(l+=''),l+=" ",l+=" ",l+=' ',l+=" ",l+=""),l+="");l+=' ',l+=' ',o.opts._type===Z.SCATTER&&(l+='');return l+="",l+="",l+=" ",l+=' ',l+=" ",l+="",l+='',l+=""}(c)),t(null)}).catch(function(e){a(e)})})}function je(r,o,l,e,t){var n="";switch(r){case Z.AREA:case Z.BAR:case Z.BAR3D:case Z.LINE:case Z.RADAR:n+="",r===Z.AREA&&"stacked"===l.barGrouping&&(n+=''),r!==Z.BAR&&r!==Z.BAR3D||(n+='',n+=''),r===Z.RADAR&&(n+=''),n+='';var i=-1;o.forEach(function(e){i++;var t=e.index;n+="",n+=' ',n+=' ',n+=" ",n+=" ",n+=" Sheet1!$"+Xe(t+1)+"$1",n+=' '+ue(e.name)+"",n+=" ",n+=" ",n+=' ';var a=l.chartColors?l.chartColors[i%l.chartColors.length]:null;n+=" ","transparent"===a?n+="":l.chartColorsOpacity?n+=""+Ce(a,'')+"":n+=""+Ce(a)+"",r===Z.LINE?0===l.lineSize?n+="":(n+=''+Ce(a)+"",n+=''):l.dataBorder&&(n+=''+Ce(l.dataBorder.color)+''),n+=Ke(l.shadow,L),n+=" ",r!==Z.RADAR&&(n+=" ",n+=' ',l.dataLabelBkgrdColors&&(n+=" ",n+=" "+Ce(a)+"",n+=" "),n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+Ce(l.dataLabelColor||g)+"",n+=' ',n+=" ",n+=" ",n+=" ",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=" "),r!==Z.LINE&&r!==Z.RADAR||(n+="",n+=' ',l.lineDataSymbolSize&&(n+=' '),n+=" ",n+=" "+Ce(l.chartColors[t+1>l.chartColors.length?Math.floor(Math.random()*l.chartColors.length):t])+"",n+=' '+Ce(l.lineDataSymbolLineColor||a)+'',n+=" ",n+=" ",n+=""),(r===Z.BAR||r===Z.BAR3D)&&1===o.length&&l.chartColors!==I&&1",n+=' ',n+=' ',n+=' ',n+=" ",0===l.lineSize?n+="":r===Z.BAR?(n+="",n+=' ',n+=""):(n+="",n+=" ",n+=' ',n+=" ",n+=""),n+=Ke(l.shadow,L),n+=" ",n+=" "}),n+="",l.catLabelFormatCode?(n+=" ",n+=" Sheet1!$A$2:$A$"+(e.labels.length+1)+"",n+=" ",n+=" "+(l.catLabelFormatCode||"General")+"",n+=' ',e.labels.forEach(function(e,t){n+=''+ue(e)+""}),n+=" ",n+=" "):(n+=" ",n+=" Sheet1!$A$2:$A$"+(e.labels.length+1)+"",n+=" ",n+='\t ',e.labels.forEach(function(e,t){n+=''+ue(e)+""}),n+=" ",n+=" "),n+="",n+="",n+=" ",n+=" Sheet1!$"+Xe(t+1)+"$2:$"+Xe(t+1)+"$"+(e.labels.length+1)+"",n+=" ",n+=" "+(l.valLabelFormatCode||l.dataTableFormatCode||"General")+"",n+=' ',e.values.forEach(function(e,t){n+=''+(e||0===e?e:"")+""}),n+=" ",n+=" ",n+="",r===Z.LINE&&(n+=''),n+=""}),n+=" ",n+=' ',n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+Ce(l.dataLabelColor||g)+"",n+=' ',n+=" ",n+=" ",n+=" ",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=" ",r===Z.BAR?(n+=' ',n+=' '):r===Z.BAR3D?(n+=' ',n+=' ',n+=' '):r===Z.LINE&&(n+=' '),n+=' ',n+=' ',n+=' ',n+="";break;case Z.SCATTER:n+="",n+='',n+='',i=-1,o.filter(function(e,t){return 0",n+=' ',n+=' ',n+=" ",n+=" ",n+=" Sheet1!$"+B[e+1]+"$1",n+=' '+a.name+"",n+=" ",n+=" ",n+=" ";var t=l.chartColors[i%l.chartColors.length];if("transparent"===t?n+="":l.chartColorsOpacity?n+=""+Ce(t,'')+"":n+=""+Ce(t)+"",0===l.lineSize?n+="":(n+=''+Ce(t)+"",n+=''),n+=Ke(l.shadow,L),n+=" ",n+="",n+=' ',l.lineDataSymbolSize&&(n+=' '),n+=" ",n+=" "+Ce(l.chartColors[e+1>l.chartColors.length?Math.floor(Math.random()*l.chartColors.length):e])+"",n+=' '+Ce(l.lineDataSymbolLineColor||l.chartColors[i%l.chartColors.length])+'',n+=" ",n+=" ",n+="",l.showLabel){var r=Ae("-xxxx-xxxx-xxxx-xxxxxxxxxxxx");!a.labels||"custom"!==l.dataLabelFormatScatter&&"customXY"!==l.dataLabelFormatScatter||(n+="",a.labels.forEach(function(e,t){"custom"!==l.dataLabelFormatScatter&&"customXY"!==l.dataLabelFormatScatter||(n+=" ",n+=' ',n+=" ",n+=" ",n+="\t\t\t",n+="\t\t\t\t",n+="\t\t\t",n+=" \t",n+=" \t",n+="\t\t\t\t",n+="\t\t\t\t\t",n+="\t\t\t\t",n+=" \t",n+=' \t\t',n+=" \t\t"+ue(e)+"",n+=" \t","customXY"!==l.dataLabelFormatScatter||/^ *$/.test(e)||(n+=" \t",n+=' \t\t',n+=" \t\t (",n+=" \t",n+=' \t',n+=' \t\t',n+=" \t\t",n+=" \t\t\t",n+=" \t\t",n+=" \t\t["+ue(a.name)+"",n+=" \t",n+=" \t",n+=' \t\t',n+=" \t\t, ",n+=" \t",n+=' \t',n+=' \t\t',n+=" \t\t",n+=" \t\t\t",n+=" \t\t",n+=" \t\t["+ue(a.name)+"]",n+=" \t",n+=" \t",n+=' \t\t',n+=" \t\t)",n+=" \t",n+=' \t'),n+=" \t",n+=" ",n+=" ",n+=" ",n+=" \t",n+=" \t",n+=" \t\t",n+=" \t",n+=" \t",n+=" ",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+='\t ',n+=" ",n+=' ',n+=' ',n+='\t\t\t',n+=" ",n+="\t\t",n+="")}),n+=""),"XY"===l.dataLabelFormatScatter&&(n+="",n+="\t",n+="\t\t",n+="\t\t",n+="\t\t\t",n+="\t\t",n+="\t \t",n+="\t",n+="\t",n+="\t\t",n+="\t\t\t",n+="\t\t",n+="\t\t",n+="\t\t",n+="\t \t",n+=" \t\t",n+="\t \t",n+='\t \t',n+="\t\t",n+="\t",l.dataLabelPosition&&(n+=' '),n+='\t',n+=' ',n+=' ',n+='\t',n+='\t',n+='\t',n+="\t",n+='\t\t',n+='\t\t\t',n+="\t\t",n+="\t",n+="")}1===o.length&&l.chartColors!==I&&a.values.forEach(function(e,t){var a=e<0?l.invertedColors||l.chartColors||I:l.chartColors||[];n+=" ",n+=' ',n+=' ',n+=' ',n+=" ",0===l.lineSize?n+="":(n+="",n+=' ',n+=""),n+=Ke(l.shadow,L),n+=" ",n+=" "}),n+="",n+=" ",n+=" Sheet1!$A$2:$A$"+(o[0].values.length+1)+"",n+=" ",n+=" General",n+=' ',o[0].values.forEach(function(e,t){n+=''+(e||0===e?e:"")+""}),n+=" ",n+=" ",n+="",n+="",n+=" ",n+=" Sheet1!$"+Xe(e+1)+"$2:$"+Xe(e+1)+"$"+(o[0].values.length+1)+"",n+=" ",n+=" General",n+=' ',o[0].values.forEach(function(e,t){n+=''+(a.values[t]||0===a.values[t]?a.values[t]:"")+""}),n+=" ",n+=" ",n+="",n+='',n+=""}),n+=" ",n+=' ',n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+Ce(l.dataLabelColor||g)+"",n+=' ',n+=" ",n+=" ",n+=" ",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=" ",n+=' ',n+=' ',n+="";break;case Z.BUBBLE:n+="",n+='',i=-1;var s=1;o.filter(function(e,t){return 0",n+=' ',n+=' ',n+=" ",n+=" ",n+=" Sheet1!$"+B[s]+"$1",n+=' '+a.name+"",n+=" ",n+=" ",n+="";var t=l.chartColors[i%l.chartColors.length];"transparent"===t?n+="":l.chartColorsOpacity?n+=""+Ce(t,'')+"":n+=""+Ce(t)+"",0===l.lineSize?n+="":l.dataBorder?n+=''+Ce(l.dataBorder.color)+'':(n+=''+Ce(t)+"",n+=''),n+=Ke(l.shadow,L),n+="",n+="",n+=" ",n+=" Sheet1!$A$2:$A$"+(o[0].values.length+1)+"",n+=" ",n+=" General",n+=' ',o[0].values.forEach(function(e,t){n+=''+(e||0===e?e:"")+""}),n+=" ",n+=" ",n+="",n+="",n+=" ",n+=" Sheet1!$"+Xe(s)+"$2:$"+Xe(s)+"$"+(o[0].values.length+1)+"",s++,n+=" ",n+=" General",n+=' ',o[0].values.forEach(function(e,t){n+=''+(a.values[t]||0===a.values[t]?a.values[t]:"")+""}),n+=" ",n+=" ",n+="",n+=" ",n+=" ",n+=" Sheet1!$"+Xe(s)+"$2:$"+Xe(e+2)+"$"+(a.sizes.length+1)+"",s++,n+=" ",n+=" General",n+='\t ',a.sizes.forEach(function(e,t){n+=''+(e||"")+""}),n+=" ",n+=" ",n+=" ",n+=' ',n+=""}),n+=" ",n+=' ',n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+Ce(l.dataLabelColor||g)+"",n+=' ',n+=" ",n+=" ",n+=" ",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=" ",n+=' ',n+=' ',n+="";break;case Z.DOUGHNUT:case Z.PIE:var a=o[0];n+="",n+=' ',n+="",n+=' ',n+=' ',n+=" ",n+=" ",n+=" Sheet1!$B$1",n+=" ",n+=' ',n+=' '+ue(a.name)+"",n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=' ',l.dataNoEffects?n+="":n+=Ke(l.shadow,L),n+=" ",a.labels.forEach(function(e,t){n+="",n+=' ',n+=' ',n+=" ",n+=""+Ce(l.chartColors[t+1>l.chartColors.length?Math.floor(Math.random()*l.chartColors.length):t])+"",l.dataBorder&&(n+=''+Ce(l.dataBorder.color)+''),n+=Ke(l.shadow,L),n+=" ",n+=""}),n+="",a.labels.forEach(function(e,t){n+="",n+=' ',n+=' ',n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+Ce(l.dataLabelColor||g)+"",n+=' ',n+=" ",n+=" ",n+=" ",r===Z.PIE&&l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=" "}),n+=' ',n+="\t",n+="\t ",n+="\t ",n+="\t ",n+="\t\t",n+='\t\t ',n+='\t\t\t',n+="\t\t ",n+="\t\t",n+="\t ",n+="\t",n+=r===Z.PIE?'':"",n+='\t',n+='\t',n+='\t',n+='\t',n+='\t',n+='\t',n+=' ',n+="",n+="",n+=" ",n+=" Sheet1!$A$2:$A$"+(a.labels.length+1)+"",n+=" ",n+='\t ',a.labels.forEach(function(e,t){n+=''+ue(e)+""}),n+=" ",n+=" ",n+="",n+=" ",n+=" ",n+=" Sheet1!$B$2:$B$"+(a.labels.length+1)+"",n+=" ",n+='\t ',a.values.forEach(function(e,t){n+=''+(e||0===e?e:"")+""}),n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',r===Z.DOUGHNUT&&(n+=' '),n+="";break;default:n+=""}return n}function Qe(t,e,a){var r="";return t._type===Z.SCATTER||t._type===Z.BUBBLE?r+="":r+="",r+=' ',r+=" ",r+='',!t.catAxisMaxVal&&0!==t.catAxisMaxVal||(r+=''),!t.catAxisMinVal&&0!==t.catAxisMinVal||(r+=''),r+="",r+=' ',r+=' ',r+="none"!==t.catGridLine.style?Je(t.catGridLine):"",t.showCatAxisTitle&&(r+=qe({color:t.catAxisTitleColor,fontFace:t.catAxisTitleFontFace,fontSize:t.catAxisTitleFontSize,titleRotate:t.catAxisTitleRotate,title:t.catAxisTitle||"Axis Title"})),t._type===Z.SCATTER||t._type===Z.BUBBLE?r+=' ':r+=' ',t._type===Z.SCATTER?(r+=' ',r+=' ',r+=' '):(r+=' ',r+=' ',r+=' '),r+=" ",r+=' ',r+=!1===t.catAxisLineShow?"":""+Ce(t.catAxisLineColor||u.color)+"",r+=' ',r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=' ',r+=" "+Ce(t.catAxisLabelColor||g)+"",r+=' ',r+=" ",r+=" ",r+=' ',r+=" ",r+=" ",r+=' ',r+=" ',r+=' ',r+=' ',r+=' ',t.catAxisLabelFrequency&&(r+=' '),!t.catLabelFormatCode&&t._type!==Z.SCATTER&&t._type!==Z.BUBBLE||(t.catLabelFormatCode&&(["catAxisBaseTimeUnit","catAxisMajorTimeUnit","catAxisMinorTimeUnit"].forEach(function(e){!t[e]||"string"==typeof t[e]&&-1!==["days","months","years"].indexOf(t[e].toLowerCase())||(console.warn("`"+e+"` must be one of: 'days','months','years' !"),t[e]=null)}),t.catAxisBaseTimeUnit&&(r+=''),t.catAxisMajorTimeUnit&&(r+=''),t.catAxisMinorTimeUnit&&(r+='')),t.catAxisMajorUnit&&(r+=''),t.catAxisMinorUnit&&(r+='')),t._type===Z.SCATTER||t._type===Z.BUBBLE?r+="":r+="",r}function Ye(e,t){var a=t===S?"col"===e.barDir?"l":"b":"col"!==e.barDir?"r":"t",r="",o="r"==a||"t"==a?"max":"autoZero",l=t===S?E:_;return r+="",r+=' ',r+=" ",e.valAxisLogScaleBase&&(r+=' '),r+=' ',!e.valAxisMaxVal&&0!==e.valAxisMaxVal||(r+=''),!e.valAxisMinVal&&0!==e.valAxisMinVal||(r+=''),r+=" ",r+=' ',r+=' ',"none"!==e.valGridLine.style&&(r+=Je(e.valGridLine)),e.showValAxisTitle&&(r+=qe({color:e.valAxisTitleColor,fontFace:e.valAxisTitleFontFace,fontSize:e.valAxisTitleFontSize,titleRotate:e.valAxisTitleRotate,title:e.valAxisTitle||"Axis Title"})),r+="',e._type===Z.SCATTER?(r+=' ',r+=' ',r+=' '):(r+=' ',r+=' ',r+=' '),r+=" ",r+=' ',r+=!1===e.valAxisLineShow?"":""+Ce(e.valAxisLineColor||u.color)+"",r+=' ',r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=' ',r+=" "+Ce(e.valAxisLabelColor||g)+"",r+=' ',r+=" ",r+=" ",r+=' ',r+=" ",r+=" ",r+=' ',r+=' ',r+=' ',e.valAxisMajorUnit&&(r+=' '),e.valAxisDisplayUnit&&(r+=''+(e.valAxisDisplayUnitLabel?"":"")+""),r+=""}function qe(e){var t="left"===e.titleAlign||"right"===e.titleAlign?'':"",a=e.titleRotate?'':"",r=e.fontSize?'sz="'+Math.round(100*e.fontSize)+'"':"",o=!0===e.titleBold?1:0,l=e.titlePos&&e.titlePos.x&&e.titlePos.y?'':"";return"\n\t \n\t \n\t "+a+"\n\t \n\t \n\t "+t+"\n\t \n\t '+Ce(e.color||g)+'\n\t \n\t \n\t \n\t \n\t \n\t '+Ce(e.color||g)+'\n\t \n\t \n\t '+(ue(e.title)||"")+"\n\t \n\t \n\t \n\t \n\t "+l+'\n\t \n\t'}function Xe(e){var t="";return e<=26?t=B[e]:(t+=B[Math.floor(e/B.length)-1],t+=B[e%B.length]),t}function Ke(e,t){if(!e)return"";if("object"!=typeof e)return console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),"";var a="",r=me(t,e),o=r.type||"outer",l=ye(r.blur),n=ye(r.offset),i=Math.round(6e4*r.angle),s=r.color,p=Math.round(1e5*r.opacity);return a+="',a+='',a+='',a+="",a+=""}function Je(e){var t="";return t+=" ",t+=' ',t+=' ',t+=' ',t+=" ",t+=" ",t+=""}function Ze(e){var l="undefined"!=typeof require&&"undefined"==typeof window?require("fs"):null,n="undefined"!=typeof require&&"undefined"==typeof window?require("https"):null,t=[];return e._relsMedia.filter(function(e){return"online"!==e.type&&!e.data&&(!e.path||e.path&&-1===e.path.indexOf("preencoded"))}).forEach(function(o){t.push(new Promise(function(a,r){if(l&&0!==o.path.indexOf("http"))try{var e=l.readFileSync(o.path);o.data=Buffer.from(e).toString("base64"),a("done")}catch(e){o.data=de,r('ERROR: Unable to read media: "'+o.path+'"\n'+e.toString())}else if(l&&n&&0===o.path.indexOf("http"))n.get(o.path,function(e){var t="";e.setEncoding("binary"),e.on("data",function(e){return t+=e}),e.on("end",function(){o.data=Buffer.from(t,"binary").toString("base64"),a("done")}),e.on("error",function(e){o.data=de,r("ERROR! Unable to load image (https.get): "+o.path)})});else{var t=new XMLHttpRequest;t.onload=function(){var e=new FileReader;e.onloadend=function(){o.data=e.result,o.isSvgPng?$e(o).then(function(){a("done")}).catch(function(e){r(e)}):a("done")},e.readAsDataURL(t.response)},t.onerror=function(e){o.data=de,r("ERROR! Unable to load image (xhr.onerror): "+o.path)},t.open("GET",o.path),t.responseType="blob",t.send()}}))}),e._relsMedia.filter(function(e){return e.isSvgPng&&e.data}).forEach(function(e){l?(e.data=de,t.push(Promise.resolve().then(function(){return"done"}))):t.push($e(e))}),t}function $e(o){return new Promise(function(a,t){var r=new Image;r.onload=function(){r.width+r.height===0&&r.onerror("h/w=0");var e=document.createElement("CANVAS"),t=e.getContext("2d");e.width=r.width,e.height=r.height,t.drawImage(r,0,0);try{o.data=e.toDataURL(o.type),a("done")}catch(e){r.onerror(e)}e=null},r.onerror=function(e){o.data=de,t("ERROR! Unable to load image (image.onerror): "+o.path)},r.src="string"==typeof o.data?o.data:de})}function et(){var o=this;this._version="3.9.0-beta-20210930-2159",this._alignH=Q,this._alignV=q,this._chartType=z,this._outputType=U,this._schemeColor=V,this._shapeType=W,this._charts=Z,this._colors=ee,this._shapes=K,this.addNewSlide=function(e){var t=0')})}),r+='',r+='',r+='',r+='',e.forEach(function(e,t){r+='',r+='',e._relsChart.forEach(function(e){r+=' '})}),r+='',r+='',r+='',r+='',t.forEach(function(e,t){r+='',(e._relsChart||[]).forEach(function(e){r+=' '})}),e.forEach(function(e,t){r+=' '}),a._relsChart.forEach(function(e){r+=' '}),a._relsMedia.forEach(function(e){"image"!==e.type&&"online"!==e.type&&"chart"!==e.type&&"m4v"!==e.extn&&-1===r.indexOf(e.type)&&(r+=' ')}),r+=' ',r+=' ',r+=""}(o.slides,o.slideLayouts,o.masterSlide)),r.file("_rels/.rels",''+p+'\n\t\t\n\t\t\n\t\t\n\t\t'),r.file("docProps/app.xml",function(e,t){return''+p+'\n\t0\n\t0\n\tMicrosoft Office PowerPoint\n\tOn-screen Show (16:9)\n\t0\n\t'+e.length+"\n\t"+e.length+'\n\t0\n\t0\n\tfalse\n\t\n\t\t\n\t\t\tFonts Used\n\t\t\t2\n\t\t\tTheme\n\t\t\t1\n\t\t\tSlide Titles\n\t\t\t'+e.length+'\n\t\t\n\t\n\t\n\t\t\n\t\t\tArial\n\t\t\tCalibri\n\t\t\tOffice Theme\n\t\t\t'+e.map(function(e,t){return"Slide "+(t+1)+"\n"}).join("")+"\n\t\t\n\t\n\t"+t+"\n\tfalse\n\tfalse\n\tfalse\n\t16.0000\n\t"}(o.slides,o.company)),r.file("docProps/core.xml",function(e,t,a,r){return'\n\t\n\t\t'+ue(e)+"\n\t\t"+ue(t)+"\n\t\t"+ue(a)+"\n\t\t"+ue(a)+"\n\t\t"+r+'\n\t\t'+(new Date).toISOString().replace(/\.\d\d\dZ/,"Z")+'\n\t\t'+(new Date).toISOString().replace(/\.\d\d\dZ/,"Z")+"\n\t"}(o.title,o.subject,o.author,o.revision)),r.file("ppt/_rels/presentation.xml.rels",function(e){var t=1,a=''+p;a+='',a+='';for(var r=1;r<=e.length;r++)a+='';return a+=''}(o.slides)),r.file("ppt/theme/theme1.xml",''+p+''),r.file("ppt/presentation.xml",function(e){var t=''+p+'';t+='',t+="",e.slides.forEach(function(e){return t+=''}),t+="",t+='',t+='',t+='',t+="";for(var a=1;a<10;a++)t+="";return t+="",e.sections&&0',t+='',e.sections.forEach(function(e){t+='',e._slides.forEach(function(e){return t+=''}),t+=""}),t+="",t+='',t+=""),t+=""}(o)),r.file("ppt/presProps.xml",''+p+''),r.file("ppt/tableStyles.xml",''+p+''),r.file("ppt/viewProps.xml",''+p+''),o.slideLayouts.forEach(function(e,t){r.file("ppt/slideLayouts/slideLayout"+(t+1)+".xml",function(e){return'\n\t\t\n\t\t'+Se(e)+"\n\t\t"}(e)),r.file("ppt/slideLayouts/_rels/slideLayout"+(t+1)+".xml.rels",function(e,t){return Re(t[e-1],[{target:"../slideMasters/slideMaster1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"}])}(t+1,o.slideLayouts))}),o.slides.forEach(function(e,t){r.file("ppt/slides/slide"+(t+1)+".xml",function(e){return''+p+'"+Se(e)+""}(e)),r.file("ppt/slides/_rels/slide"+(t+1)+".xml.rels",function(e,t,a){return Re(e[a-1],[{target:"../slideLayouts/slideLayout"+function(e,t,a){for(var r=0;r\n\t\t\n\t\t\t\n\t\t\t\n\t\t'}(t+1))}),r.file("ppt/slideMasters/slideMaster1.xml",function(a,e){var t=e.map(function(e,t){return''}),r=''+p;return r+='',r+=Se(a),r+='',r+=""+t.join("")+"",r+='',r+=' ',r+=""}(o.masterSlide,o.slideLayouts)),r.file("ppt/slideMasters/_rels/slideMaster1.xml.rels",function(e,t){var a=t.map(function(e,t){return{target:"../slideLayouts/slideLayout"+(t+1)+".xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"}});return a.push({target:"../theme/theme1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),Re(e,a)}(o.masterSlide,o.slideLayouts)),r.file("ppt/notesMasters/notesMaster1.xml",''+p+'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›'),r.file("ppt/notesMasters/_rels/notesMaster1.xml.rels",''+p+'\n\t\t\n\t\t'),o.slideLayouts.forEach(function(e){o.createChartMediaRels(e,r,t)}),o.slides.forEach(function(e){o.createChartMediaRels(e,r,t)}),o.createChartMediaRels(o.masterSlide,r,t),Promise.all(t).then(function(){return"STREAM"===e.outputType?r.generateAsync({type:"nodebuffer",compression:e.compression?"DEFLATE":"STORE"}):e.outputType?r.generateAsync({type:e.outputType}):r.generateAsync({type:"blob",compression:e.compression?"DEFLATE":"STORE"})})})},this.LAYOUTS={LAYOUT_4x3:{name:"screen4x3",width:9144e3,height:6858e3},LAYOUT_16x9:{name:"screen16x9",width:9144e3,height:5143500},LAYOUT_16x10:{name:"screen16x10",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:"custom",width:12192e3,height:6858e3}},this._author="PptxGenJS",this._company="PptxGenJS",this._revision="1",this._subject="PptxGenJS Presentation",this._title="PptxGenJS Presentation",this._presLayout={name:this.LAYOUTS[d].name,_sizeW:this.LAYOUTS[d].width,_sizeH:this.LAYOUTS[d].height,width:this.LAYOUTS[d].width,height:this.LAYOUTS[d].height},this._rtlMode=!1,this._slideLayouts=[{_margin:w,_name:r,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(et.prototype,"layout",{get:function(){return this._layout},set:function(e){var t=this.LAYOUTS[e];if(!t)throw new Error("UNKNOWN-LAYOUT");this._layout=e,this._presLayout=t},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"author",{get:function(){return this._author},set:function(e){this._author=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"company",{get:function(){return this._company},set:function(e){this._company=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"revision",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"subject",{get:function(){return this._subject},set:function(e){this._subject=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"rtlMode",{get:function(){return this._rtlMode},set:function(e){this._rtlMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"masterSlide",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"slides",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"sections",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"slideLayouts",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"AlignH",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"AlignV",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"ChartType",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"OutputType",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"presLayout",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"SchemeColor",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"ShapeType",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"charts",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"colors",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"shapes",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),et.prototype.stream=function(e){var t=!("object"!=typeof e||!e.hasOwnProperty("compression"))&&e.compression;return this.exportPresentation({compression:t,outputType:"STREAM"})},et.prototype.write=function(e){var t="object"==typeof e&&e.hasOwnProperty("outputType")?e.outputType:e||null,a=!("object"!=typeof e||!e.hasOwnProperty("compression"))&&e.compression;return this.exportPresentation({compression:a,outputType:t})},et.prototype.writeFile=function(e){var t=this,r="undefined"!=typeof require&&"undefined"==typeof window?require("fs"):null;"string"==typeof e&&console.log("Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)");var a="object"==typeof e&&e.hasOwnProperty("fileName")?e.fileName:"string"==typeof e?e:"",o=!("object"!=typeof e||!e.hasOwnProperty("compression"))&&e.compression,l=a?a.toString().toLowerCase().endsWith(".pptx")?a:a+".pptx":"Presentation.pptx";return this.exportPresentation({compression:o,outputType:r?"nodebuffer":null}).then(function(e){return r?new Promise(function(t,a){r.writeFile(l,e,function(e){e?a(e):t(l)})}):t.writeFileToBrowser(l,e)})},et.prototype.addSection=function(e){e?e.title||console.warn("addSection requires a title"):console.warn("addSection requires an argument");var t={_type:"user",_slides:[],title:e.title};e.order?this.sections.splice(e.order,0,t):this._sections.push(t)},et.prototype.addSlide=function(t){var a="string"==typeof t?t:t&&t.masterName?t.masterName:"",e={_name:this.LAYOUTS[d].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(a){var r=this.slideLayouts.filter(function(e){return e._name===a})[0];r&&(e=r)}var o=new We({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:e});if(this._slides.push(o),t&&t.sectionTitle){var l=this.sections.filter(function(e){return e.title===t.sectionTitle})[0];l?l._slides.push(o):console.warn('addSlide: unable to find section with title: "'+t.sectionTitle+'"')}else if(this.sections&&0 opts.y = "+o.y),a.addTable(e.rows,{x:o.x||d[3],y:o.y,w:Number(i)/O,colW:p,autoPage:!1}),o.addImage&&a.addImage({path:o.addImage.url,x:o.addImage.x,y:o.addImage.y,w:o.addImage.w,h:o.addImage.h}),o.addShape&&a.addShape(o.addShape.shape,o.addShape.options||{}),o.addTable&&a.addTable(o.addTable.rows,o.addTable.options||{}),o.addText&&a.addText(o.addText.text,o.addText.options||{})})}(this,e,t,t&&t.masterSlideName?this.slideLayouts.filter(function(e){return e._name===t.masterSlideName})[0]:null)},et}(); +/* PptxGenJS 3.9.0-beta @ 2021-10-14T12:21:15.034Z */ +var PptxGenJS=function(){"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=e(JSZip),y=function(){return(y=Object.assign||function(e){for(var t,a=1,r=arguments.length;a/g,">").replace(/"/g,""").replace(/'/g,"'")}function ge(e){return"number"==typeof e&&100"+t+"":""}function Pe(e){var t="solid",a="",r="",o="";if(e)switch("string"==typeof e?a=e:(e.type&&(t=e.type),e.color&&(a=e.color),e.alpha&&(r+=''),e.transparency&&(r+='')),t){case"solid":o+=""+Ce(a,r)+"";break;default:o+=""}return o}function Le(e){return e._rels.length+e._relsChart.length+e._relsMedia.length+1}function we(e,p,r,t){void 0===e&&(e=[]),void 0===p&&(p={});var a,c=w,d=1*O,h=0,o=0,f=[],l=fe(p.x,"X",r),A=fe(p.y,"Y",r),n=fe(p.w,"X",r),m=fe(p.h,"Y",r),i=n;if(p.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- TABLE PROPS --------------------------------------------------------|"),console.log("| presLayout.width ................................ = "+(r.width/O).toFixed(1)),console.log("| presLayout.height ............................... = "+(r.height/O).toFixed(1)),console.log("| tableProps.x .................................... = "+("number"==typeof p.x?(p.x/O).toFixed(1):p.x)),console.log("| tableProps.y .................................... = "+("number"==typeof p.y?(p.y/O).toFixed(1):p.y)),console.log("| tableProps.w .................................... = "+("number"==typeof p.w?(p.w/O).toFixed(1):p.w)),console.log("| tableProps.h .................................... = "+("number"==typeof p.h?(p.h/O).toFixed(1):p.h)),console.log("| tableProps.slideMargin .......................... = "+(p.slideMargin||"")),console.log("| tableProps.margin ............................... = "+p.margin),console.log("| tableProps.colW ................................. = "+p.colW),console.log("| tableProps.autoPageSlideStartY .................. = "+p.autoPageSlideStartY),console.log("| tableProps.autoPageCharWeight ................... = "+p.autoPageCharWeight),console.log("|-- CALCULATIONS -------------------------------------------------------|"),console.log("| tablePropX ...................................... = "+l/O),console.log("| tablePropY ...................................... = "+A/O),console.log("| tablePropW ...................................... = "+n/O),console.log("| tablePropH ...................................... = "+m/O),console.log("| tableCalcW ...................................... = "+i/O)),p.slideMargin||0===p.slideMargin||(p.slideMargin=w[0]),t&&void 0!==t._margin?Array.isArray(t._margin)?c=t._margin:isNaN(Number(t._margin))||(c=[Number(t._margin),Number(t._margin),Number(t._margin),Number(t._margin)]):!p.slideMargin&&0!==p.slideMargin||(Array.isArray(p.slideMargin)?c=p.slideMargin:isNaN(p.slideMargin)||(c=[p.slideMargin,p.slideMargin,p.slideMargin,p.slideMargin])),p.verbose&&console.log("| arrInchMargins .................................. = ["+c.join(", ")+"]"),(e[0]||[]).forEach(function(e){var t=(e=e||{_type:oe.tablecell}).options||null;o+=Number(t&&t.colspan?t.colspan:1)}),p.verbose&&console.log("| numCols ......................................... = "+o),!n&&p.colW&&(i=Array.isArray(p.colW)?p.colW.reduce(function(e,t){return e+t})*O:p.colW*o||0,p.verbose&&console.log("| tableCalcW ...................................... = "+i/O)),a=i||ge((l?l/O:c[1])+c[3]),p.verbose&&console.log("| emuSlideTabW .................................... = "+(a/O).toFixed(1)),!p.colW||!Array.isArray(p.colW))if(p.colW&&!isNaN(Number(p.colW))){var s=[];(e[0]||[]).forEach(function(){return s.push(p.colW)}),p.colW=[],s.forEach(function(e){Array.isArray(p.colW)&&p.colW.push(e)})}else{p.colW=[];for(var u=0;ut?t=ye(e.options.margin[0]):p.margin&&p.margin[0]&&ye(p.margin[0])>t&&(t=ye(p.margin[0])),e.options.margin&&e.options.margin[2]&&ye(e.options.margin[2])>a?a=ye(e.options.margin[2]):p.margin&&p.margin[2]&&ye(p.margin[2])>a&&(a=ye(p.margin[2]))):(e.options.margin&&e.options.margin[0]&&ge(e.options.margin[0])>t?t=ge(e.options.margin[0]):p.margin&&p.margin[0]&&ge(p.margin[0])>t&&(t=ge(p.margin[0])),e.options.margin&&e.options.margin[2]&&ge(e.options.margin[2])>a?a=ge(e.options.margin[2]):p.margin&&p.margin[2]&&ge(p.margin[2])>a&&(a=ge(p.margin[2])))});var e=0;if(0===f.length&&(e=A||ge(c[0])),0 "+JSON.stringify(p)),i.push(p),p=[])),0o&&(l.push(t),t=[],a=""),t.push(e),a+=e.text.toString()}),0=o[s]._lines.length&&(s=t)}),o.forEach(function(r,o){r._lines.forEach(function(e,t){if(h+r._lineHeight>d){p.verbose&&(console.log("\n|-----------------------------------------------------------------------|"),console.log("|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => "+(h/O).toFixed(2)+" + "+(r._lineHeight/O).toFixed(2)+" > "+d/O),console.log("|-----------------------------------------------------------------------|\n\n")),0a&&(a=e._lineHeight)}),g.rows.push(t),h+=a})}var a=i[o];Array.isArray(a.text)&&(a.text=a.text.concat(e)),o===s&&(h+=r._lineHeight),i.forEach(function(e,t){t'},contain:function(e,t){var a=e.h/e.w,r=a'},crop:function(e,t){var a=t.x,r=e.w-(t.x+t.w),o=t.y,l=e.h-(t.y+t.h);return''}};function Se(F){var B=F._name?'':"",I=1;return F._bkgdImgRid?B+='':F.background&&F.background.color?B+=""+Pe(F.background)+"":!F.bkgd&&F._name&&F._name===r&&(B+=''),B+="",B+='',B+='',B+='',F._slideObjects.forEach(function(r,e){var t,a,o=0,l=0,n=fe("75%","X",F._presLayout),i=0,s="";switch(void 0!==F._slideLayout&&void 0!==F._slideLayout._slideObjects&&r.options&&r.options.placeholder&&(a=F._slideLayout._slideObjects.filter(function(e){return e.options.placeholder===r.options.placeholder})[0]),r.options=r.options||{},void 0!==r.options.x&&(o=fe(r.options.x,"X",F._presLayout)),void 0!==r.options.y&&(l=fe(r.options.y,"Y",F._presLayout)),void 0!==r.options.w&&(n=fe(r.options.w,"X",F._presLayout)),void 0!==r.options.h&&(i=fe(r.options.h,"Y",F._presLayout)),a&&(!a.options.x&&0!==a.options.x||(o=fe(a.options.x,"X",F._presLayout)),!a.options.y&&0!==a.options.y||(l=fe(a.options.y,"Y",F._presLayout)),!a.options.w&&0!==a.options.w||(n=fe(a.options.w,"X",F._presLayout)),!a.options.h&&0!==a.options.h||(i=fe(a.options.h,"Y",F._presLayout))),r.options.flipH&&(s+=' flipH="1"'),r.options.flipV&&(s+=' flipV="1"'),r.options.rotate&&(s+=' rot="'+be(r.options.rotate)+'"'),r._type){case oe.table:var p,c=r.arrTabRows,h=r.options,d=0,f=0;c[0].forEach(function(e){p=e.options||null,d+=p&&p.colspan?Number(p.colspan):1});var A='';if(A+=' ',A+='',A+='',Array.isArray(h.colW)){A+="";for(var m=0;m'}A+=""}else{f=h.colW?h.colW:O,r.options.w&&!h.colW&&(f=Math.round(("number"==typeof r.options.w?r.options.w:1)/d)),A+="";for(var g=0;g';A+=""}c.forEach(function(l){for(var n,i,s,e=function(e){var t=l[e],a=null===(n=t.options)||void 0===n?void 0:n.colspan,r=null===(i=t.options)||void 0===i?void 0:i.rowspan;if(a&&1',e.forEach(function(e){var t,a,r=e,o={rowSpan:1<(null===(t=r.options)||void 0===t?void 0:t.rowspan)?r.options.rowspan:void 0,gridSpan:1<(null===(a=r.options)||void 0===a?void 0:a.colspan)?r.options.colspan:void 0,vMerge:r._vmerge?1:void 0,hMerge:r._hmerge?1:void 0},l=Object.keys(o).map(function(e){return[e,o[e]]}).filter(function(e){return e[0],!!e[1]}).map(function(e){return e[0]+'="'+e[1]+'"'}).join(" ");if(l=l&&" "+l,r._hmerge||r._vmerge)A+="";else{var n=r.options||{};r.options=n,["align","bold","border","color","fill","fontFace","fontSize","margin","underline","valign"].forEach(function(e){h[e]&&!n[e]&&0!==n[e]&&(n[e]=h[e])});var i=n.valign?' anchor="'+n.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b")+'"':"",s=r._optImp&&r._optImp.fill&&r._optImp.fill.color?r._optImp.fill.color:r._optImp&&r._optImp.fill&&"string"==typeof r._optImp.fill?r._optImp.fill:"",p=(s=s||n.fill&&n.fill.color?n.fill.color:n.fill&&"string"==typeof n.fill?n.fill:"")?""+Ce(s)+"":"",c=0===n.margin||n.margin?n.margin:k;Array.isArray(c)||"number"!=typeof c||(c=[c,c,c,c]);var d="";d=1<=c[0]?' marL="'+ye(c[3])+'" marR="'+ye(c[1])+'" marT="'+ye(c[0])+'" marB="'+ye(c[2])+'"':' marL="'+ge(c[3])+'" marR="'+ge(c[1])+'" marT="'+ge(c[0])+'" marB="'+ge(c[2])+'"',A+=""+Fe(r)+"",n.border&&Array.isArray(n.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach(function(e){"none"!==n.border[e.idx].type?(A+="',A+=""+Ce(n.border[e.idx].color)+"",A+='',A+=""):A+=""}),A+=p,A+=" ",A+=" "}}),A+=""}),A+=" ",A+=" ",A+=" ",B+=A+="",I++;break;case oe.text:case oe.placeholder:var y=r.options.shapeName?ue(r.options.shapeName):"Object"+(e+1);if(r.options.line||0!==i||(i=.3*O),r.options._bodyProp||(r.options._bodyProp={}),r.options.margin&&Array.isArray(r.options.margin)?(r.options._bodyProp.lIns=ye(r.options.margin[0]||0),r.options._bodyProp.rIns=ye(r.options.margin[1]||0),r.options._bodyProp.bIns=ye(r.options.margin[2]||0),r.options._bodyProp.tIns=ye(r.options.margin[3]||0)):"number"==typeof r.options.margin&&(r.options._bodyProp.lIns=ye(r.options.margin),r.options._bodyProp.rIns=ye(r.options.margin),r.options._bodyProp.bIns=ye(r.options.margin),r.options._bodyProp.tIns=ye(r.options.margin)),B+="",B+='',r.options.hyperlink&&r.options.hyperlink.url&&(B+=''),r.options.hyperlink&&r.options.hyperlink.slide&&(B+=''),B+="",B+="':"/>"),B+=""+("placeholder"===r._type?Be(r):Be(a))+"",B+="",B+="",B+='',B+='',"custGeom"===r.shape)B+="",B+="",B+="",B+="",B+="",B+="",B+='',B+="",B+='',null===(t=r.options.points)||void 0===t||t.map(function(e,t){if("curve"in e)switch(e.curve.type){case"arc":B+='';break;case"cubic":B+='\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t';break;case"quadratic":B+='\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t'}else"close"in e?B+="":e.moveTo||0===t?B+='':B+=''}),B+="",B+="",B+="";else{if(B+='',r.options.rectRadius)B+='';else if(r.options.angleRange){for(var b=0;b<2;b++){var v=r.options.angleRange[b];B+=''}r.options.arcThicknessRatio&&(B+='')}B+=""}B+=r.options.fill?Pe(r.options.fill):"",r.options.line&&(B+=r.options.line.width?'':"",r.options.line.color&&(B+=Pe(r.options.line)),r.options.line.dashType&&(B+=''),r.options.line.beginArrowType&&(B+=''),r.options.line.endArrowType&&(B+=''),B+=""),r.options.shadow&&(r.options.shadow.type=r.options.shadow.type||"outer",r.options.shadow.blur=ye(r.options.shadow.blur||8),r.options.shadow.offset=ye(r.options.shadow.offset||4),r.options.shadow.angle=Math.round(6e4*(r.options.shadow.angle||270)),r.options.shadow.opacity=Math.round(1e5*(r.options.shadow.opacity||.75)),r.options.shadow.color=r.options.shadow.color||M.color,B+="",B+="',B+='',B+='',B+="",B+=""),B+="",B+=Fe(r),B+="";break;case oe.image:var x=r.options,C=x.sizing,P=x.rounding,L=n,w=i;if(B+="",B+=" ",B+='',r.hyperlink&&r.hyperlink.url&&(B+=''),r.hyperlink&&r.hyperlink.slide&&(B+=''),B+=" ",B+=' ',B+=" "+Be(a)+"",B+=" ",B+="",(F._relsMedia||[]).filter(function(e){return e.rId===r.imageRid})[0]&&"svg"===(F._relsMedia||[]).filter(function(e){return e.rId===r.imageRid})[0].extn?(B+='',B+=" ",B+=' ',B+=' ',B+=" ",B+=" ",B+=""):B+='',C&&C.type){var T=C.w?fe(C.w,"X",F._presLayout):n,S=C.h?fe(C.h,"Y",F._presLayout):i,R=fe(C.x||0,"X",F._presLayout),E=fe(C.y||0,"Y",F._presLayout);B+=Te[C.type]({w:L,h:w},{w:T,h:S,x:R,y:E}),L=T,w=S}else B+=" ";B+="",B+="",B+=" ",B+=' ',B+=' ',B+=" ",B+=' ',B+="",B+="";break;case oe.media:"online"===r.mtype?(B+="",B+=" ",B+=' ',B+=" ",B+=" ",B+=' ',B+=" ",B+=" ",B+=' '):(B+="",B+=" ",B+=' ',B+=' ',B+=" ",B+=' ',B+=" ",B+=' ',B+=' ',B+=" ",B+=" ",B+=" ",B+=" ",B+=' '),B+=" ",B+=" ",B+=' ',B+=' ',B+=" ",B+=' ',B+=" ",B+="";break;case oe.chart:var _=r.options;B+="",B+=" ",B+=' ',B+=" ",B+=" "+Be(a)+"",B+=" ",B+=' ',B+=' ',B+=' ',B+=' ',B+=" ",B+=" ",B+="";break;default:B+=""}}),F._slideNumberProps&&(F._slideNumberProps.align||(F._slideNumberProps.align="left"),B+=' ',B+="",B+="',F._slideNumberProps.color&&(B+=Pe(F._slideNumberProps.color)),F._slideNumberProps.fontFace&&(B+=''),B+=""),B+="",B+='',F._slideNumberProps.align.startsWith("l")?B+='':F._slideNumberProps.align.startsWith("c")?B+='':F._slideNumberProps.align.startsWith("r")?B+='':B+='',B+='',B+=""),B+="",B+=""}function Re(e,t){var a=0,r=''+p+'';return e._rels.forEach(function(e){a=Math.max(a,e.rId),-1':r+='':-1')}),(e._relsChart||[]).forEach(function(e){a=Math.max(a,e.rId),r+=''}),(e._relsMedia||[]).forEach(function(e){a=Math.max(a,e.rId),-1':-1':r+='':-1':r+='':-1':r+='')}),t.forEach(function(e,t){r+=''}),r+=""}function Ee(e,t){var a="",r="",o="",l="",n=t?"a:lvl1pPr":"a:pPr",i=ye(c),s="<"+n+(e.options.rtlMode?' rtl="1" ':"");if(e.options.align)switch(e.options.align){case"left":s+=' algn="l"';break;case"right":s+=' algn="r"';break;case"center":s+=' algn="ctr"';break;case"justify":s+=' algn="just"';break;default:s+=""}if(e.options.lineSpacing?r='':e.options.lineSpacingMultiple&&(r=''),e.options.indentLevel&&!isNaN(Number(e.options.indentLevel))&&0'),e.options.paraSpaceAfter&&!isNaN(Number(e.options.paraSpaceAfter))&&0'),"object"==typeof e.options.bullet)if(e&&e.options&&e.options.bullet&&e.options.bullet.indent&&(i=ye(e.options.bullet.indent)),e.options.bullet.type)"number"===e.options.bullet.type.toString().toLowerCase()&&(s+=' marL="'+(e.options.indentLevel&&0');else if(e.options.bullet.characterCode){var p="&#x"+e.options.bullet.characterCode+";";!1===/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.characterCode)&&(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),p=se.DEFAULT),s+=' marL="'+(e.options.indentLevel&&0'}else if(e.options.bullet.code){p="&#x"+e.options.bullet.code+";";!1===/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.code)&&(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),p=se.DEFAULT),s+=' marL="'+(e.options.indentLevel&&0'}else s+=' marL="'+(e.options.indentLevel&&0';else!0===e.options.bullet?(s+=' marL="'+(e.options.indentLevel&&0'):!1===e.options.bullet&&(s+=' indent="0" marL="0"',a="");e.options.tabStops&&Array.isArray(e.options.tabStops)&&(l=""+e.options.tabStops.map(function(e){return''}).join("")+"");return s+=">"+r+o+a+l,t&&(s+=_e(e.options,!0)),s+=""}function _e(e,t){var a,r="",o=t?"a:defRPr":"a:rPr";if(r+="<"+o+' lang="'+(e.lang?e.lang:"en-US")+'"'+(e.lang?' altLang="en-US"':""),r+=e.fontSize?' sz="'+Math.round(e.fontSize)+'00"':"",r+=e.hasOwnProperty("bold")?' b="'+(e.bold?1:0)+'"':"",r+=e.hasOwnProperty("italic")?' i="'+(e.italic?1:0)+'"':"",r+=e.hasOwnProperty("strike")?' strike="'+("string"==typeof e.strike?e.strike:"sngStrike")+'"':"","object"==typeof e.underline&&(null===(a=e.underline)||void 0===a?void 0:a.style)?r+=' u="'+e.underline.style+'"':"string"==typeof e.underline?r+=' u="'+e.underline+'"':e.hyperlink&&(r+=' u="sng"'),e.baseline?r+=' baseline="'+Math.round(50*e.baseline)+'"':e.subscript?r+=' baseline="-40000"':e.superscript&&(r+=' baseline="30000"'),r+=e.charSpacing?' spc="'+Math.round(100*e.charSpacing)+'" kern="0"':"",r+=' dirty="0">',(e.color||e.fontFace||e.outline||"object"==typeof e.underline&&e.underline.color)&&(e.outline&&"object"==typeof e.outline&&(r+=''+Pe(e.outline.color||"FFFFFF")+""),e.color&&(r+=Pe(e.color)),e.highlight&&(r+=""+Ce(e.highlight)+""),"object"==typeof e.underline&&e.underline.color&&(r+=""+Pe(e.underline.color)+""),e.glow&&(r+=""+function(e,t){var a="",r=me(t,e);return a+='',a+=Ce(r.color,''),a+=""}(e.glow,T)+""),e.fontFace&&(r+='')),e.hyperlink){if("object"!=typeof e.hyperlink)throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");if(!e.hyperlink.url&&!e.hyperlink.slide)throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'");e.hyperlink.url?r+='":"/>"):e.hyperlink.slide&&(r+='":"/>")),e.color&&(r+="\t",r+='\t\t',r+='\t\t\t',r+="\t\t",r+="\t",r+="")}return r+=""}function Fe(r){var o=r.options||{},e=[],a=[];if(o&&r._type!==oe.tablecell&&(void 0===r.text||null===r.text))return"";var l=r._type===oe.tablecell?"":"";l+=function(e){var t="":"resize"===e.options.fit&&(t+="")),e.options.shrinkText&&(t+=""),t+=!1!==e.options._bodyProp.autoFit?"":""):t+=' wrap="square" rtlCol="0">',t+="",e._type===oe.tablecell?"":t}(r),0===o.h&&o.line&&o.align?l+='':"placeholder"===r._type?l+=""+Ee(r,!0)+"":l+="","string"==typeof r.text||"number"==typeof r.text?e.push({text:r.text.toString(),options:o||{}}):r.text&&!Array.isArray(r.text)&&"object"==typeof r.text&&-1";var a=""),r.options.align=r.options.align||o.align,r.options.lineSpacing=r.options.lineSpacing||o.lineSpacing,r.options.lineSpacingMultiple=r.options.lineSpacingMultiple||o.lineSpacingMultiple,r.options.indentLevel=r.options.indentLevel||o.indentLevel,r.options.paraSpaceBefore=r.options.paraSpaceBefore||o.paraSpaceBefore,r.options.paraSpaceAfter=r.options.paraSpaceAfter||o.paraSpaceAfter,a=Ee(r,!1),l+=a,Object.entries(o).forEach(function(e){var t=e[0],a=e[1];r.options.hyperlink&&"color"===t||"bullet"===t||r.options[t]||(r.options[t]=a)}),l+=function(e){return e.text?""+_e(e.options,!1)+""+ue(e.text)+"":""}(r),(!r.text&&o.fontSize||r.options.fontSize)&&(t=!0,o.fontSize=o.fontSize||r.options.fontSize)}),r._type===oe.tablecell&&(o.fontSize||o.fontFace)?o.fontFace?(l+='',l+='',l+='',l+='',l+=""):l+='':l+=t?'':'',l+=""}),l+=r._type===oe.tablecell?"":""}function Be(e){if(!e)return"";var t=e.options&&e.options._placeholderIdx?e.options._placeholderIdx:"",a=e.options&&e.options._placeholderType?e.options._placeholderType:"";return""}function Ie(e){return''+p+''+ue(function(e){var t="";return e._slideObjects.forEach(function(e){e._type===oe.notes&&(t+=e.text&&e.text[0]?e.text[0].text:"")}),t.replace(/\r*\n/g,p)}(e))+''+e._slideNum+''}function Ne(e){e&&"object"==typeof e&&("outer"!==e.type&&"inner"!==e.type&&"none"!==e.type&&(console.warn("Warning: shadow.type options are `outer`, `inner` or `none`."),e.type="outer"),e.angle&&((isNaN(Number(e.angle))||e.angle<0||359 \n'),e.file("_rels/.rels",'\n'),e.file("docProps/app.xml",'Microsoft Excel0falseWorksheets1Sheet1\n'),e.file("docProps/core.xml",'PptxGenJSEly, Brent'+(new Date).toISOString()+''+(new Date).toISOString()+"\n"),e.file("xl/_rels/workbook.xml.rels",'\n'),e.file("xl/styles.xml",'\n'),e.file("xl/theme/theme1.xml",''),e.file("xl/workbook.xml",'\n'),e.file("xl/worksheets/_rels/sheet1.xml.rels",'\n');var r='';if(h.opts._type===Z.BUBBLE)r+='';else if(h.opts._type===Z.SCATTER)r+='';else{var l=A.length+A[0].labels.length*A[0].labels[0].length+A[0].labels.length,n=A.length+A[0].labels.length*A[0].labels[0].length+1;r+='',r+=''}h.opts._type===Z.BUBBLE?A.forEach(function(e,t){0===t?r+="X-Axis":(r+=""+ue(e.name||" ")+"",r+=""+ue("Size "+t)+"")}):A.forEach(function(e){r+=""+ue((e.name||" ").replace("X-Axis","X-Values"))+""}),h.opts._type!==Z.BUBBLE&&h.opts._type!==Z.SCATTER&&A[0].labels.forEach(function(e){e.forEach(function(e){r+=""+ue(e)+""})}),r+="\n",e.file("xl/sharedStrings.xml",r);var i='';h.opts._type===Z.BUBBLE||(h.opts._type===Z.SCATTER?(i+='',i+='',A.forEach(function(e,t){i+=''})):(i+='
',i+='',A[0].labels.forEach(function(e,t){i+=''}),A.forEach(function(e,t){i+=''}))),i+="",i+='',i+="
",e.file("xl/tables/table1.xml",i);var s='';if(s+='',h.opts._type===Z.BUBBLE?s+='':h.opts._type===Z.SCATTER?s+='':s+='',s+='',s+='',h.opts._type===Z.BUBBLE){s+="",s+='',s+="",s+="",s+='',s+='0';for(var p=1;p',s+=""+p+"",s+="";s+="",A[0].values.forEach(function(e,t){s+='',s+=''+e+"";for(var a=1,r=1;r',s+=""+(A[r].values[t]||"")+"",s+="",s+='',s+=""+(A[r].sizes[t]||"")+"",s+="",a++;s+=""})}else if(h.opts._type===Z.SCATTER){s+="",s+='',s+="",s+="",s+='',s+='0';for(var c=1;c',s+=""+c+"",s+="";s+="",A[0].values.forEach(function(e,t){s+='',s+=''+e+"";for(var a=1;a',s+=""+(A[a].values[t]||0===A[a].values[t]?A[a].values[t]:"")+"",s+="";s+=""})}else{s+="",s+='',s+="",s+="",s+='',A[0].labels.forEach(function(e,t){s+='',s+="0",s+=""});for(var d=1;d<=A.length;d++)s+='',s+=""+d+"",s+="";s+="",A[0].labels[0].forEach(function(e,t){s+='';for(var a=A[0].labels.length-1;0<=a;a--)s+='',s+=""+(A.length+t+a*A[0].labels[0].length+1)+"",s+="";for(var r=0;r',s+=""+(A[r].values[t]||"")+"",s+="";s+=""})}s+="",s+='',s+="\n",e.file("xl/worksheets/sheet1.xml",s),e.generateAsync({type:"base64"}).then(function(e){f.file("ppt/embeddings/Microsoft_Excel_Worksheet"+h.globalId+".xlsx",e,{base64:!0}),f.file("ppt/charts/_rels/"+h.fileName+".rels",''),f.file("ppt/charts/"+h.fileName,function(o){var l='',n=!1;l+='',l+='',l+="",o.opts.showTitle?(l+=qe({title:o.opts.title||"Chart Title",color:o.opts.titleColor,fontFace:o.opts.titleFontFace,fontSize:o.opts.titleFontSize||C,titleAlign:o.opts.titleAlign,titleBold:o.opts.titleBold,titlePos:o.opts.titlePos,titleRotate:o.opts.titleRotate}),l+=''):l+='';o.opts._type===Z.BAR3D&&(l+="",l+=' ',l+=' ',l+=' ',l+=' ',l+="");l+="",o.opts.layout?(l+="",l+=" ",l+=' ',l+=' ',l+=' ',l+=' ',l+=' ',l+=' ',l+=' ',l+=" ",l+=""):l+="";Array.isArray(o.opts._type)?o.opts._type.forEach(function(e){var t=me(o.opts,e.options),a=t.secondaryValAxis?R:S,r=t.secondaryCatAxis?_:E;n=n||t.secondaryValAxis,l+=je(e.type,e.data,t,a,r)}):l+=je(o.opts._type,o.data,o.opts,S,E);if(o.opts._type!==Z.PIE&&o.opts._type!==Z.DOUGHNUT){if(o.opts.valAxes&&1',r+=' ',r+=' ',r+=' ',r+="none"!==t.serGridLine.style?Je(t.serGridLine):"",t.showSerAxisTitle&&(r+=qe({color:t.serAxisTitleColor,fontFace:t.serAxisTitleFontFace,fontSize:t.serAxisTitleFontSize,titleRotate:t.serAxisTitleRotate,title:t.serAxisTitle||"Axis Title"}));r+=' ',r+=' ',r+=' ',r+=' ',r+=" ",r+=' ',r+=!1===t.serAxisLineShow?"":""+Ce(t.serAxisLineColor||u.color)+"",r+=' ',r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=' ',r+=" "+Ce(t.serAxisLabelColor||g)+"",r+=' ',r+=" ",r+=" ",r+=' ',r+=" ",r+=" ",r+=' ',r+=' ',t.serAxisLabelFrequency&&(r+=' ');t.serLabelFormatCode&&(["serAxisBaseTimeUnit","serAxisMajorTimeUnit","serAxisMinorTimeUnit"].forEach(function(e){!t[e]||"string"==typeof t[e]&&-1!==["days","months","years"].indexOf(e.toLowerCase())||(console.warn("`"+e+"` must be one of: 'days','months','years' !"),t[e]=null)}),t.serAxisBaseTimeUnit&&(r+=' '),t.serAxisMajorTimeUnit&&(r+=' '),t.serAxisMinorTimeUnit&&(r+=' '),t.serAxisMajorUnit&&(r+=' '),t.serAxisMinorUnit&&(r+=' '));return r+=""}(o.opts,F,S)))}o.opts.showDataTable&&(l+="",l+=' ',l+=' ',l+=' ',l+=' ',l+=" ",l+=" ",l+=' ',l+=" ",l+=" ",l+=" ",l+='\t ',l+="\t ",l+="\t ",l+='\t\t',l+=' ',l+='\t\t\t',l+='\t\t\t',l+='\t\t\t',l+='\t\t\t',l+="\t\t ",l+="\t\t",l+='\t\t',l+="\t ",l+="\t",l+="");l+=" ",l+=o.opts.fill?Pe(o.opts.fill):"",l+=o.opts.border?''+Pe(o.opts.border.color)+"":"",l+=" ",l+=" ",l+="",o.opts.showLegend&&(l+="",l+='',l+='',(o.opts.legendFontFace||o.opts.legendFontSize||o.opts.legendColor)&&(l+="",l+=" ",l+=" ",l+=" ",l+=" ",l+=o.opts.legendFontSize?'':"",o.opts.legendColor&&(l+=Pe(o.opts.legendColor)),o.opts.legendFontFace&&(l+=''),o.opts.legendFontFace&&(l+=''),l+=" ",l+=" ",l+=' ',l+=" ",l+=""),l+="");l+=' ',l+=' ',o.opts._type===Z.SCATTER&&(l+='');return l+="",l+="",l+=" ",l+=' ',l+=" ",l+="",l+='',l+=""}(h)),t(null)}).catch(function(e){a(e)})})}function je(r,o,l,e,t){var n="";switch(r){case Z.AREA:case Z.BAR:case Z.BAR3D:case Z.LINE:case Z.RADAR:n+="",r===Z.AREA&&"stacked"===l.barGrouping&&(n+=''),r!==Z.BAR&&r!==Z.BAR3D||(n+='',n+=''),r===Z.RADAR&&(n+=''),n+='';var i=-1;o.forEach(function(e){i++;var t=e.index;n+="",n+=' ',n+=' ',n+=" ",n+=" ",n+=" Sheet1!$"+Xe(t+e.labels.length)+"$1",n+=' '+ue(e.name)+"",n+=" ",n+=" ",n+=' ';var a=l.chartColors?l.chartColors[i%l.chartColors.length]:null;n+=" ","transparent"===a?n+="":l.chartColorsOpacity?n+=""+Ce(a,'')+"":n+=""+Ce(a)+"",r===Z.LINE?0===l.lineSize?n+="":(n+=''+Ce(a)+"",n+=''):l.dataBorder&&(n+=''+Ce(l.dataBorder.color)+''),n+=Ke(l.shadow,L),n+=" ",r!==Z.RADAR&&(n+=" ",n+=' ',l.dataLabelBkgrdColors&&(n+=" ",n+=" "+Ce(a)+"",n+=" "),n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+Ce(l.dataLabelColor||g)+"",n+=' ',n+=" ",n+=" ",n+=" ",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=" "),r!==Z.LINE&&r!==Z.RADAR||(n+="",n+=' ',l.lineDataSymbolSize&&(n+=' '),n+=" ",n+=" "+Ce(l.chartColors[t+1>l.chartColors.length?Math.floor(Math.random()*l.chartColors.length):t])+"",n+=' '+Ce(l.lineDataSymbolLineColor||a)+'',n+=" ",n+=" ",n+=""),(r===Z.BAR||r===Z.BAR3D)&&1===o.length&&l.chartColors!==I&&1",n+=' ',n+=' ',n+=' ',n+=" ",0===l.lineSize?n+="":r===Z.BAR?(n+="",n+=' ',n+=""):(n+="",n+=" ",n+=' ',n+=" ",n+=""),n+=Ke(l.shadow,L),n+=" ",n+=" "}),n+="",l.catLabelFormatCode?(n+=" ",n+=" Sheet1!$A$2:$A$"+(e.labels[0].length+1)+"",n+=" ",n+=" "+(l.catLabelFormatCode||"General")+"",n+=' ',e.labels[0].forEach(function(e,t){n+=''+ue(e)+""}),n+=" ",n+=" "):(n+=" ",n+=" Sheet1!$A$2:$"+Xe(e.labels.length-1)+"$"+(e.labels[0].length+1)+"",n+=" ",n+='\t ',e.labels.forEach(function(e){n+=" ",e.forEach(function(e,t){n+=''+ue(e)+""}),n+=" "}),n+=" ",n+=" "),n+="",n+="",n+=" ",n+=" Sheet1!$"+Xe(t+e.labels.length)+"$2:$"+Xe(t+e.labels.length)+"$"+(e.labels[0].length+1)+"",n+=" ",n+=" "+(l.valLabelFormatCode||l.dataTableFormatCode||"General")+"",n+=' ',e.values.forEach(function(e,t){n+=''+(e||0===e?e:"")+""}),n+=" ",n+=" ",n+="",r===Z.LINE&&(n+=''),n+=""}),n+=" ",n+=' ',n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+Ce(l.dataLabelColor||g)+"",n+=' ',n+=" ",n+=" ",n+=" ",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=" ",r===Z.BAR?(n+=' ',n+=' '):r===Z.BAR3D?(n+=' ',n+=' ',n+=' '):r===Z.LINE&&(n+=' '),n+=' ',n+=' ',n+=' ',n+="";break;case Z.SCATTER:n+="",n+='',n+='',i=-1,o.filter(function(e,t){return 0",n+=' ',n+=' ',n+=" ",n+=" ",n+=" Sheet1!$"+B[e+1]+"$1",n+=' '+a.name+"",n+=" ",n+=" ",n+=" ";var t=l.chartColors[i%l.chartColors.length];if("transparent"===t?n+="":l.chartColorsOpacity?n+=""+Ce(t,'')+"":n+=""+Ce(t)+"",0===l.lineSize?n+="":(n+=''+Ce(t)+"",n+=''),n+=Ke(l.shadow,L),n+=" ",n+="",n+=' ',l.lineDataSymbolSize&&(n+=' '),n+=" ",n+=" "+Ce(l.chartColors[e+1>l.chartColors.length?Math.floor(Math.random()*l.chartColors.length):e])+"",n+=' '+Ce(l.lineDataSymbolLineColor||l.chartColors[i%l.chartColors.length])+'',n+=" ",n+=" ",n+="",l.showLabel){var r=Ae("-xxxx-xxxx-xxxx-xxxxxxxxxxxx");!a.labels[0]||"custom"!==l.dataLabelFormatScatter&&"customXY"!==l.dataLabelFormatScatter||(n+="",a.labels[0].forEach(function(e,t){"custom"!==l.dataLabelFormatScatter&&"customXY"!==l.dataLabelFormatScatter||(n+=" ",n+=' ',n+=" ",n+=" ",n+="\t\t\t",n+="\t\t\t\t",n+="\t\t\t",n+=" \t",n+=" \t",n+="\t\t\t\t",n+="\t\t\t\t\t",n+="\t\t\t\t",n+=" \t",n+=' \t\t',n+=" \t\t"+ue(e)+"",n+=" \t","customXY"!==l.dataLabelFormatScatter||/^ *$/.test(e)||(n+=" \t",n+=' \t\t',n+=" \t\t (",n+=" \t",n+=' \t',n+=' \t\t',n+=" \t\t",n+=" \t\t\t",n+=" \t\t",n+=" \t\t["+ue(a.name)+"",n+=" \t",n+=" \t",n+=' \t\t',n+=" \t\t, ",n+=" \t",n+=' \t',n+=' \t\t',n+=" \t\t",n+=" \t\t\t",n+=" \t\t",n+=" \t\t["+ue(a.name)+"]",n+=" \t",n+=" \t",n+=' \t\t',n+=" \t\t)",n+=" \t",n+=' \t'),n+=" \t",n+=" ",n+=" ",n+=" ",n+=" \t",n+=" \t",n+=" \t\t",n+=" \t",n+=" \t",n+=" ",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+='\t ',n+=" ",n+=' ',n+=' ',n+='\t\t\t',n+=" ",n+="\t\t",n+="")}),n+=""),"XY"===l.dataLabelFormatScatter&&(n+="",n+="\t",n+="\t\t",n+="\t\t",n+="\t\t\t",n+="\t\t",n+="\t \t",n+="\t",n+="\t",n+="\t\t",n+="\t\t\t",n+="\t\t",n+="\t\t",n+="\t\t",n+="\t \t",n+=" \t\t",n+="\t \t",n+='\t \t',n+="\t\t",n+="\t",l.dataLabelPosition&&(n+=' '),n+='\t',n+=' ',n+=' ',n+='\t',n+='\t',n+='\t',n+="\t",n+='\t\t',n+='\t\t\t',n+="\t\t",n+="\t",n+="")}1===o.length&&l.chartColors!==I&&a.values.forEach(function(e,t){var a=e<0?l.invertedColors||l.chartColors||I:l.chartColors||[];n+=" ",n+=' ',n+=' ',n+=' ',n+=" ",0===l.lineSize?n+="":(n+="",n+=' ',n+=""),n+=Ke(l.shadow,L),n+=" ",n+=" "}),n+="",n+=" ",n+=" Sheet1!$A$2:$A$"+(o[0].values.length+1)+"",n+=" ",n+=" General",n+=' ',o[0].values.forEach(function(e,t){n+=''+(e||0===e?e:"")+""}),n+=" ",n+=" ",n+="",n+="",n+=" ",n+=" Sheet1!$"+Xe(e+1)+"$2:$"+Xe(e+1)+"$"+(o[0].values.length+1)+"",n+=" ",n+=" General",n+=' ',o[0].values.forEach(function(e,t){n+=''+(a.values[t]||0===a.values[t]?a.values[t]:"")+""}),n+=" ",n+=" ",n+="",n+='',n+=""}),n+=" ",n+=' ',n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+Ce(l.dataLabelColor||g)+"",n+=' ',n+=" ",n+=" ",n+=" ",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=" ",n+=' ',n+=' ',n+="";break;case Z.BUBBLE:n+="",n+='',i=-1;var s=1;o.filter(function(e,t){return 0",n+=' ',n+=' ',n+=" ",n+=" ",n+=" Sheet1!$"+B[s]+"$1",n+=' '+a.name+"",n+=" ",n+=" ",n+="";var t=l.chartColors[i%l.chartColors.length];"transparent"===t?n+="":l.chartColorsOpacity?n+=""+Ce(t,'')+"":n+=""+Ce(t)+"",0===l.lineSize?n+="":l.dataBorder?n+=''+Ce(l.dataBorder.color)+'':(n+=''+Ce(t)+"",n+=''),n+=Ke(l.shadow,L),n+="",n+="",n+=" ",n+=" Sheet1!$A$2:$A$"+(o[0].values.length+1)+"",n+=" ",n+=" General",n+=' ',o[0].values.forEach(function(e,t){n+=''+(e||0===e?e:"")+""}),n+=" ",n+=" ",n+="",n+="",n+=" ",n+=" Sheet1!$"+Xe(s)+"$2:$"+Xe(s)+"$"+(o[0].values.length+1)+"",s++,n+=" ",n+=" General",n+=' ',o[0].values.forEach(function(e,t){n+=''+(a.values[t]||0===a.values[t]?a.values[t]:"")+""}),n+=" ",n+=" ",n+="",n+=" ",n+=" ",n+=" Sheet1!$"+Xe(s)+"$2:$"+Xe(e+2)+"$"+(a.sizes.length+1)+"",s++,n+=" ",n+=" General",n+='\t ',a.sizes.forEach(function(e,t){n+=''+(e||"")+""}),n+=" ",n+=" ",n+=" ",n+=' ',n+=""}),n+=" ",n+=' ',n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+Ce(l.dataLabelColor||g)+"",n+=' ',n+=" ",n+=" ",n+=" ",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=" ",n+=' ',n+=' ',n+="";break;case Z.DOUGHNUT:case Z.PIE:var a=o[0];n+="",n+=' ',n+="",n+=' ',n+=' ',n+=" ",n+=" ",n+=" Sheet1!$B$1",n+=" ",n+=' ',n+=' '+ue(a.name)+"",n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=' ',l.dataNoEffects?n+="":n+=Ke(l.shadow,L),n+=" ",a.labels[0].forEach(function(e,t){n+="",n+=' ',n+=' ',n+=" ",n+=""+Ce(l.chartColors[t+1>l.chartColors.length?Math.floor(Math.random()*l.chartColors.length):t])+"",l.dataBorder&&(n+=''+Ce(l.dataBorder.color)+''),n+=Ke(l.shadow,L),n+=" ",n+=""}),n+="",a.labels[0].forEach(function(e,t){n+="",n+=' ',n+=' ',n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+Ce(l.dataLabelColor||g)+"",n+=' ',n+=" ",n+=" ",n+=" ",r===Z.PIE&&l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=" "}),n+=' ',n+="\t",n+="\t ",n+="\t ",n+="\t ",n+="\t\t",n+='\t\t ',n+='\t\t\t',n+="\t\t ",n+="\t\t",n+="\t ",n+="\t",n+=r===Z.PIE?'':"",n+='\t',n+='\t',n+='\t',n+='\t',n+='\t',n+='\t',n+=' ',n+="",n+="",n+=" ",n+=" Sheet1!$A$2:$A$"+(a.labels[0].length+1)+"",n+=" ",n+='\t ',a.labels[0].forEach(function(e,t){n+=''+ue(e)+""}),n+=" ",n+=" ",n+="",n+=" ",n+=" ",n+=" Sheet1!$B$2:$B$"+(a.labels[0].length+1)+"",n+=" ",n+='\t ',a.values.forEach(function(e,t){n+=''+(e||0===e?e:"")+""}),n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',r===Z.DOUGHNUT&&(n+=' '),n+="";break;default:n+=""}return n}function Qe(t,e,a){var r="";return t._type===Z.SCATTER||t._type===Z.BUBBLE?r+="":r+="",r+=' ',r+=" ",r+='',!t.catAxisMaxVal&&0!==t.catAxisMaxVal||(r+=''),!t.catAxisMinVal&&0!==t.catAxisMinVal||(r+=''),r+="",r+=' ',r+=' ',r+="none"!==t.catGridLine.style?Je(t.catGridLine):"",t.showCatAxisTitle&&(r+=qe({color:t.catAxisTitleColor,fontFace:t.catAxisTitleFontFace,fontSize:t.catAxisTitleFontSize,titleRotate:t.catAxisTitleRotate,title:t.catAxisTitle||"Axis Title"})),t._type===Z.SCATTER||t._type===Z.BUBBLE?r+=' ':r+=' ',t._type===Z.SCATTER?(r+=' ',r+=' ',r+=' '):(r+=' ',r+=' ',r+=' '),r+=" ",r+=' ',r+=!1===t.catAxisLineShow?"":""+Ce(t.catAxisLineColor||u.color)+"",r+=' ',r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=' ',r+=" "+Ce(t.catAxisLabelColor||g)+"",r+=' ',r+=" ",r+=" ",r+=' ',r+=" ",r+=" ",r+=' ',r+=" ',r+=' ',r+=' ',r+=' ',t.catAxisLabelFrequency&&(r+=' '),!t.catLabelFormatCode&&t._type!==Z.SCATTER&&t._type!==Z.BUBBLE||(t.catLabelFormatCode&&(["catAxisBaseTimeUnit","catAxisMajorTimeUnit","catAxisMinorTimeUnit"].forEach(function(e){!t[e]||"string"==typeof t[e]&&-1!==["days","months","years"].indexOf(t[e].toLowerCase())||(console.warn("`"+e+"` must be one of: 'days','months','years' !"),t[e]=null)}),t.catAxisBaseTimeUnit&&(r+=''),t.catAxisMajorTimeUnit&&(r+=''),t.catAxisMinorTimeUnit&&(r+='')),t.catAxisMajorUnit&&(r+=''),t.catAxisMinorUnit&&(r+='')),t._type===Z.SCATTER||t._type===Z.BUBBLE?r+="":r+="",r}function Ye(e,t){var a=t===S?"col"===e.barDir?"l":"b":"col"!==e.barDir?"r":"t",r="",o="r"==a||"t"==a?"max":"autoZero",l=t===S?E:_;return r+="",r+=' ',r+=" ",e.valAxisLogScaleBase&&(r+=' '),r+=' ',!e.valAxisMaxVal&&0!==e.valAxisMaxVal||(r+=''),!e.valAxisMinVal&&0!==e.valAxisMinVal||(r+=''),r+=" ",r+=' ',r+=' ',"none"!==e.valGridLine.style&&(r+=Je(e.valGridLine)),e.showValAxisTitle&&(r+=qe({color:e.valAxisTitleColor,fontFace:e.valAxisTitleFontFace,fontSize:e.valAxisTitleFontSize,titleRotate:e.valAxisTitleRotate,title:e.valAxisTitle||"Axis Title"})),r+="',e._type===Z.SCATTER?(r+=' ',r+=' ',r+=' '):(r+=' ',r+=' ',r+=' '),r+=" ",r+=' ',r+=!1===e.valAxisLineShow?"":""+Ce(e.valAxisLineColor||u.color)+"",r+=' ',r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=' ',r+=" "+Ce(e.valAxisLabelColor||g)+"",r+=' ',r+=" ",r+=" ",r+=' ',r+=" ",r+=" ",r+=' ',r+=' ',r+=' ',e.valAxisMajorUnit&&(r+=' '),e.valAxisDisplayUnit&&(r+=''+(e.valAxisDisplayUnitLabel?"":"")+""),r+=""}function qe(e){var t="left"===e.titleAlign||"right"===e.titleAlign?'':"",a=e.titleRotate?'':"",r=e.fontSize?'sz="'+Math.round(100*e.fontSize)+'"':"",o=!0===e.titleBold?1:0,l=e.titlePos&&e.titlePos.x&&e.titlePos.y?'':"";return"\n\t \n\t \n\t "+a+"\n\t \n\t \n\t "+t+"\n\t \n\t '+Ce(e.color||g)+'\n\t \n\t \n\t \n\t \n\t \n\t '+Ce(e.color||g)+'\n\t \n\t \n\t '+(ue(e.title)||"")+"\n\t \n\t \n\t \n\t \n\t "+l+'\n\t \n\t'}function Xe(e){var t="";return e<=26?t=B[e]:(t+=B[Math.floor(e/B.length)-1],t+=B[e%B.length]),t}function Ke(e,t){if(!e)return"";if("object"!=typeof e)return console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),"";var a="",r=me(t,e),o=r.type||"outer",l=ye(r.blur),n=ye(r.offset),i=Math.round(6e4*r.angle),s=r.color,p=Math.round(1e5*r.opacity);return a+="',a+='',a+='',a+="",a+=""}function Je(e){var t="";return t+=" ",t+=' ',t+=' ',t+=' ',t+=" ",t+=" ",t+=""}function Ze(e){var l="undefined"!=typeof require&&"undefined"==typeof window?require("fs"):null,n="undefined"!=typeof require&&"undefined"==typeof window?require("https"):null,t=[];return e._relsMedia.filter(function(e){return"online"!==e.type&&!e.data&&(!e.path||e.path&&-1===e.path.indexOf("preencoded"))}).forEach(function(o){t.push(new Promise(function(a,r){if(l&&0!==o.path.indexOf("http"))try{var e=l.readFileSync(o.path);o.data=Buffer.from(e).toString("base64"),a("done")}catch(e){o.data=de,r('ERROR: Unable to read media: "'+o.path+'"\n'+e.toString())}else if(l&&n&&0===o.path.indexOf("http"))n.get(o.path,function(e){var t="";e.setEncoding("binary"),e.on("data",function(e){return t+=e}),e.on("end",function(){o.data=Buffer.from(t,"binary").toString("base64"),a("done")}),e.on("error",function(e){o.data=de,r("ERROR! Unable to load image (https.get): "+o.path)})});else{var t=new XMLHttpRequest;t.onload=function(){var e=new FileReader;e.onloadend=function(){o.data=e.result,o.isSvgPng?$e(o).then(function(){a("done")}).catch(function(e){r(e)}):a("done")},e.readAsDataURL(t.response)},t.onerror=function(e){o.data=de,r("ERROR! Unable to load image (xhr.onerror): "+o.path)},t.open("GET",o.path),t.responseType="blob",t.send()}}))}),e._relsMedia.filter(function(e){return e.isSvgPng&&e.data}).forEach(function(e){l?(e.data=de,t.push(Promise.resolve().then(function(){return"done"}))):t.push($e(e))}),t}function $e(o){return new Promise(function(a,t){var r=new Image;r.onload=function(){r.width+r.height===0&&r.onerror("h/w=0");var e=document.createElement("CANVAS"),t=e.getContext("2d");e.width=r.width,e.height=r.height,t.drawImage(r,0,0);try{o.data=e.toDataURL(o.type),a("done")}catch(e){r.onerror(e)}e=null},r.onerror=function(e){o.data=de,t("ERROR! Unable to load image (image.onerror): "+o.path)},r.src="string"==typeof o.data?o.data:de})}function et(){var o=this;this._version="3.9.0-beta-20210930-2159",this._alignH=Q,this._alignV=q,this._chartType=z,this._outputType=U,this._schemeColor=V,this._shapeType=W,this._charts=Z,this._colors=ee,this._shapes=K,this.addNewSlide=function(e){var t=0')})}),r+='',r+='',r+='',r+='',e.forEach(function(e,t){r+='',r+='',e._relsChart.forEach(function(e){r+=' '})}),r+='',r+='',r+='',r+='',t.forEach(function(e,t){r+='',(e._relsChart||[]).forEach(function(e){r+=' '})}),e.forEach(function(e,t){r+=' '}),a._relsChart.forEach(function(e){r+=' '}),a._relsMedia.forEach(function(e){"image"!==e.type&&"online"!==e.type&&"chart"!==e.type&&"m4v"!==e.extn&&-1===r.indexOf(e.type)&&(r+=' ')}),r+=' ',r+=' ',r+=""}(o.slides,o.slideLayouts,o.masterSlide)),r.file("_rels/.rels",''+p+'\n\t\t\n\t\t\n\t\t\n\t\t'),r.file("docProps/app.xml",function(e,t){return''+p+'\n\t0\n\t0\n\tMicrosoft Office PowerPoint\n\tOn-screen Show (16:9)\n\t0\n\t'+e.length+"\n\t"+e.length+'\n\t0\n\t0\n\tfalse\n\t\n\t\t\n\t\t\tFonts Used\n\t\t\t2\n\t\t\tTheme\n\t\t\t1\n\t\t\tSlide Titles\n\t\t\t'+e.length+'\n\t\t\n\t\n\t\n\t\t\n\t\t\tArial\n\t\t\tCalibri\n\t\t\tOffice Theme\n\t\t\t'+e.map(function(e,t){return"Slide "+(t+1)+"\n"}).join("")+"\n\t\t\n\t\n\t"+t+"\n\tfalse\n\tfalse\n\tfalse\n\t16.0000\n\t"}(o.slides,o.company)),r.file("docProps/core.xml",function(e,t,a,r){return'\n\t\n\t\t'+ue(e)+"\n\t\t"+ue(t)+"\n\t\t"+ue(a)+"\n\t\t"+ue(a)+"\n\t\t"+r+'\n\t\t'+(new Date).toISOString().replace(/\.\d\d\dZ/,"Z")+'\n\t\t'+(new Date).toISOString().replace(/\.\d\d\dZ/,"Z")+"\n\t"}(o.title,o.subject,o.author,o.revision)),r.file("ppt/_rels/presentation.xml.rels",function(e){var t=1,a=''+p;a+='',a+='';for(var r=1;r<=e.length;r++)a+='';return a+=''}(o.slides)),r.file("ppt/theme/theme1.xml",''+p+''),r.file("ppt/presentation.xml",function(e){var t=''+p+'';t+='',t+="",e.slides.forEach(function(e){return t+=''}),t+="",t+='',t+='',t+='',t+="";for(var a=1;a<10;a++)t+="";return t+="",e.sections&&0',t+='',e.sections.forEach(function(e){t+='',e._slides.forEach(function(e){return t+=''}),t+=""}),t+="",t+='',t+=""),t+=""}(o)),r.file("ppt/presProps.xml",''+p+''),r.file("ppt/tableStyles.xml",''+p+''),r.file("ppt/viewProps.xml",''+p+''),o.slideLayouts.forEach(function(e,t){r.file("ppt/slideLayouts/slideLayout"+(t+1)+".xml",function(e){return'\n\t\t\n\t\t'+Se(e)+"\n\t\t"}(e)),r.file("ppt/slideLayouts/_rels/slideLayout"+(t+1)+".xml.rels",function(e,t){return Re(t[e-1],[{target:"../slideMasters/slideMaster1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"}])}(t+1,o.slideLayouts))}),o.slides.forEach(function(e,t){r.file("ppt/slides/slide"+(t+1)+".xml",function(e){return''+p+'"+Se(e)+""}(e)),r.file("ppt/slides/_rels/slide"+(t+1)+".xml.rels",function(e,t,a){return Re(e[a-1],[{target:"../slideLayouts/slideLayout"+function(e,t,a){for(var r=0;r\n\t\t\n\t\t\t\n\t\t\t\n\t\t'}(t+1))}),r.file("ppt/slideMasters/slideMaster1.xml",function(a,e){var t=e.map(function(e,t){return''}),r=''+p;return r+='',r+=Se(a),r+='',r+=""+t.join("")+"",r+='',r+=' ',r+=""}(o.masterSlide,o.slideLayouts)),r.file("ppt/slideMasters/_rels/slideMaster1.xml.rels",function(e,t){var a=t.map(function(e,t){return{target:"../slideLayouts/slideLayout"+(t+1)+".xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"}});return a.push({target:"../theme/theme1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),Re(e,a)}(o.masterSlide,o.slideLayouts)),r.file("ppt/notesMasters/notesMaster1.xml",''+p+'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›'),r.file("ppt/notesMasters/_rels/notesMaster1.xml.rels",''+p+'\n\t\t\n\t\t'),o.slideLayouts.forEach(function(e){o.createChartMediaRels(e,r,t)}),o.slides.forEach(function(e){o.createChartMediaRels(e,r,t)}),o.createChartMediaRels(o.masterSlide,r,t),Promise.all(t).then(function(){return"STREAM"===e.outputType?r.generateAsync({type:"nodebuffer",compression:e.compression?"DEFLATE":"STORE"}):e.outputType?r.generateAsync({type:e.outputType}):r.generateAsync({type:"blob",compression:e.compression?"DEFLATE":"STORE"})})})},this.LAYOUTS={LAYOUT_4x3:{name:"screen4x3",width:9144e3,height:6858e3},LAYOUT_16x9:{name:"screen16x9",width:9144e3,height:5143500},LAYOUT_16x10:{name:"screen16x10",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:"custom",width:12192e3,height:6858e3}},this._author="PptxGenJS",this._company="PptxGenJS",this._revision="1",this._subject="PptxGenJS Presentation",this._title="PptxGenJS Presentation",this._presLayout={name:this.LAYOUTS[d].name,_sizeW:this.LAYOUTS[d].width,_sizeH:this.LAYOUTS[d].height,width:this.LAYOUTS[d].width,height:this.LAYOUTS[d].height},this._rtlMode=!1,this._slideLayouts=[{_margin:w,_name:r,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(et.prototype,"layout",{get:function(){return this._layout},set:function(e){var t=this.LAYOUTS[e];if(!t)throw new Error("UNKNOWN-LAYOUT");this._layout=e,this._presLayout=t},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"author",{get:function(){return this._author},set:function(e){this._author=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"company",{get:function(){return this._company},set:function(e){this._company=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"revision",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"subject",{get:function(){return this._subject},set:function(e){this._subject=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"rtlMode",{get:function(){return this._rtlMode},set:function(e){this._rtlMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"masterSlide",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"slides",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"sections",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"slideLayouts",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"AlignH",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"AlignV",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"ChartType",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"OutputType",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"presLayout",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"SchemeColor",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"ShapeType",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"charts",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"colors",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"shapes",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),et.prototype.stream=function(e){var t=!("object"!=typeof e||!e.hasOwnProperty("compression"))&&e.compression;return this.exportPresentation({compression:t,outputType:"STREAM"})},et.prototype.write=function(e){var t="object"==typeof e&&e.hasOwnProperty("outputType")?e.outputType:e||null,a=!("object"!=typeof e||!e.hasOwnProperty("compression"))&&e.compression;return this.exportPresentation({compression:a,outputType:t})},et.prototype.writeFile=function(e){var t=this,r="undefined"!=typeof require&&"undefined"==typeof window?require("fs"):null;"string"==typeof e&&console.log("Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)");var a="object"==typeof e&&e.hasOwnProperty("fileName")?e.fileName:"string"==typeof e?e:"",o=!("object"!=typeof e||!e.hasOwnProperty("compression"))&&e.compression,l=a?a.toString().toLowerCase().endsWith(".pptx")?a:a+".pptx":"Presentation.pptx";return this.exportPresentation({compression:o,outputType:r?"nodebuffer":null}).then(function(e){return r?new Promise(function(t,a){r.writeFile(l,e,function(e){e?a(e):t(l)})}):t.writeFileToBrowser(l,e)})},et.prototype.addSection=function(e){e?e.title||console.warn("addSection requires a title"):console.warn("addSection requires an argument");var t={_type:"user",_slides:[],title:e.title};e.order?this.sections.splice(e.order,0,t):this._sections.push(t)},et.prototype.addSlide=function(t){var a="string"==typeof t?t:t&&t.masterName?t.masterName:"",e={_name:this.LAYOUTS[d].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(a){var r=this.slideLayouts.filter(function(e){return e._name===a})[0];r&&(e=r)}var o=new We({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:e});if(this._slides.push(o),t&&t.sectionTitle){var l=this.sections.filter(function(e){return e.title===t.sectionTitle})[0];l?l._slides.push(o):console.warn('addSlide: unable to find section with title: "'+t.sectionTitle+'"')}else if(this.sections&&0 opts.y = "+o.y),a.addTable(e.rows,{x:o.x||d[3],y:o.y,w:Number(i)/O,colW:p,autoPage:!1}),o.addImage&&a.addImage({path:o.addImage.url,x:o.addImage.x,y:o.addImage.y,w:o.addImage.w,h:o.addImage.h}),o.addShape&&a.addShape(o.addShape.shape,o.addShape.options||{}),o.addTable&&a.addTable(o.addTable.rows,o.addTable.options||{}),o.addText&&a.addText(o.addText.text,o.addText.options||{})})}(this,e,t,t&&t.masterSlideName?this.slideLayouts.filter(function(e){return e._name===t.masterSlideName})[0]:null)},et}(); //# sourceMappingURL=pptxgen.min.js.map diff --git a/dist/pptxgen.min.js.map b/dist/pptxgen.min.js.map index 24c790227..80098acbf 100644 --- a/dist/pptxgen.min.js.map +++ b/dist/pptxgen.min.js.map @@ -1 +1 @@ -{"version":3,"names":[],"mappings":"","sources":["pptxgen.min.js"],"sourcesContent":["/* PptxGenJS 3.9.0-beta @ 2021-10-01T03:13:34.354Z */\nvar PptxGenJS=function(){\"use strict\";function e(e){return e&&\"object\"==typeof e&&\"default\"in e?e:{default:e}}var h=e(JSZip),y=function(){return(y=Object.assign||function(e){for(var t,a=1,r=arguments.length;a/g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\")}function ge(e){return\"number\"==typeof e&&100\"+t+\"\":\"\"}function Pe(e){var t=\"solid\",a=\"\",r=\"\",o=\"\";if(e)switch(\"string\"==typeof e?a=e:(e.type&&(t=e.type),e.color&&(a=e.color),e.alpha&&(r+=''),e.transparency&&(r+='')),t){case\"solid\":o+=\"\"+Ce(a,r)+\"\";break;default:o+=\"\"}return o}function Le(e){return e._rels.length+e._relsChart.length+e._relsMedia.length+1}function we(e,p,r,t){void 0===e&&(e=[]),void 0===p&&(p={});var a,c=w,d=1*O,f=0,o=0,h=[],l=he(p.x,\"X\",r),A=he(p.y,\"Y\",r),n=he(p.w,\"X\",r),m=he(p.h,\"Y\",r),i=n;if(p.verbose&&(console.log(\"[[VERBOSE MODE]]\"),console.log(\"|-- TABLE PROPS --------------------------------------------------------|\"),console.log(\"| presLayout.width ................................ = \"+(r.width/O).toFixed(1)),console.log(\"| presLayout.height ............................... = \"+(r.height/O).toFixed(1)),console.log(\"| tableProps.x .................................... = \"+(\"number\"==typeof p.x?(p.x/O).toFixed(1):p.x)),console.log(\"| tableProps.y .................................... = \"+(\"number\"==typeof p.y?(p.y/O).toFixed(1):p.y)),console.log(\"| tableProps.w .................................... = \"+(\"number\"==typeof p.w?(p.w/O).toFixed(1):p.w)),console.log(\"| tableProps.h .................................... = \"+(\"number\"==typeof p.h?(p.h/O).toFixed(1):p.h)),console.log(\"| tableProps.slideMargin .......................... = \"+(p.slideMargin||\"\")),console.log(\"| tableProps.margin ............................... = \"+p.margin),console.log(\"| tableProps.colW ................................. = \"+p.colW),console.log(\"| tableProps.autoPageSlideStartY .................. = \"+p.autoPageSlideStartY),console.log(\"| tableProps.autoPageCharWeight ................... = \"+p.autoPageCharWeight),console.log(\"|-- CALCULATIONS -------------------------------------------------------|\"),console.log(\"| tablePropX ...................................... = \"+l/O),console.log(\"| tablePropY ...................................... = \"+A/O),console.log(\"| tablePropW ...................................... = \"+n/O),console.log(\"| tablePropH ...................................... = \"+m/O),console.log(\"| tableCalcW ...................................... = \"+i/O)),p.slideMargin||0===p.slideMargin||(p.slideMargin=w[0]),t&&void 0!==t._margin?Array.isArray(t._margin)?c=t._margin:isNaN(Number(t._margin))||(c=[Number(t._margin),Number(t._margin),Number(t._margin),Number(t._margin)]):!p.slideMargin&&0!==p.slideMargin||(Array.isArray(p.slideMargin)?c=p.slideMargin:isNaN(p.slideMargin)||(c=[p.slideMargin,p.slideMargin,p.slideMargin,p.slideMargin])),p.verbose&&console.log(\"| arrInchMargins .................................. = [\"+c.join(\", \")+\"]\"),(e[0]||[]).forEach(function(e){var t=(e=e||{_type:oe.tablecell}).options||null;o+=Number(t&&t.colspan?t.colspan:1)}),p.verbose&&console.log(\"| numCols ......................................... = \"+o),!n&&p.colW&&(i=Array.isArray(p.colW)?p.colW.reduce(function(e,t){return e+t})*O:p.colW*o||0,p.verbose&&console.log(\"| tableCalcW ...................................... = \"+i/O)),a=i||ge((l?l/O:c[1])+c[3]),p.verbose&&console.log(\"| emuSlideTabW .................................... = \"+(a/O).toFixed(1)),!p.colW||!Array.isArray(p.colW))if(p.colW&&!isNaN(Number(p.colW))){var s=[];(e[0]||[]).forEach(function(){return s.push(p.colW)}),p.colW=[],s.forEach(function(e){Array.isArray(p.colW)&&p.colW.push(e)})}else{p.colW=[];for(var u=0;ut?t=ye(e.options.margin[0]):p.margin&&p.margin[0]&&ye(p.margin[0])>t&&(t=ye(p.margin[0])),e.options.margin&&e.options.margin[2]&&ye(e.options.margin[2])>a?a=ye(e.options.margin[2]):p.margin&&p.margin[2]&&ye(p.margin[2])>a&&(a=ye(p.margin[2]))):(e.options.margin&&e.options.margin[0]&&ge(e.options.margin[0])>t?t=ge(e.options.margin[0]):p.margin&&p.margin[0]&&ge(p.margin[0])>t&&(t=ge(p.margin[0])),e.options.margin&&e.options.margin[2]&&ge(e.options.margin[2])>a?a=ge(e.options.margin[2]):p.margin&&p.margin[2]&&ge(p.margin[2])>a&&(a=ge(p.margin[2])))});var e=0;if(0===h.length&&(e=A||ge(c[0])),0 \"+JSON.stringify(p)),i.push(p),p=[])),0o&&(l.push(t),t=[],a=\"\"),t.push(e),a+=e.text.toString()}),0=o[s]._lines.length&&(s=t)}),o.forEach(function(r,o){r._lines.forEach(function(e,t){if(f+r._lineHeight>d){p.verbose&&(console.log(\"\\n|-----------------------------------------------------------------------|\"),console.log(\"|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => \"+(f/O).toFixed(2)+\" + \"+(r._lineHeight/O).toFixed(2)+\" > \"+d/O),console.log(\"|-----------------------------------------------------------------------|\\n\\n\")),0a&&(a=e._lineHeight)}),g.rows.push(t),f+=a})}var a=i[o];Array.isArray(a.text)&&(a.text=a.text.concat(e)),o===s&&(f+=r._lineHeight),i.forEach(function(e,t){t'},contain:function(e,t){var a=e.h/e.w,r=a'},crop:function(e,t){var a=t.x,r=e.w-(t.x+t.w),o=t.y,l=e.h-(t.y+t.h);return''}};function Se(F){var B=F._name?'':\"\",I=1;return F._bkgdImgRid?B+='':F.background&&F.background.color?B+=\"\"+Pe(F.background)+\"\":!F.bkgd&&F._name&&F._name===r&&(B+=''),B+=\"\",B+='',B+='',B+='',F._slideObjects.forEach(function(r,e){var t,a,o=0,l=0,n=he(\"75%\",\"X\",F._presLayout),i=0,s=\"\";switch(void 0!==F._slideLayout&&void 0!==F._slideLayout._slideObjects&&r.options&&r.options.placeholder&&(a=F._slideLayout._slideObjects.filter(function(e){return e.options.placeholder===r.options.placeholder})[0]),r.options=r.options||{},void 0!==r.options.x&&(o=he(r.options.x,\"X\",F._presLayout)),void 0!==r.options.y&&(l=he(r.options.y,\"Y\",F._presLayout)),void 0!==r.options.w&&(n=he(r.options.w,\"X\",F._presLayout)),void 0!==r.options.h&&(i=he(r.options.h,\"Y\",F._presLayout)),a&&(!a.options.x&&0!==a.options.x||(o=he(a.options.x,\"X\",F._presLayout)),!a.options.y&&0!==a.options.y||(l=he(a.options.y,\"Y\",F._presLayout)),!a.options.w&&0!==a.options.w||(n=he(a.options.w,\"X\",F._presLayout)),!a.options.h&&0!==a.options.h||(i=he(a.options.h,\"Y\",F._presLayout))),r.options.flipH&&(s+=' flipH=\"1\"'),r.options.flipV&&(s+=' flipV=\"1\"'),r.options.rotate&&(s+=' rot=\"'+be(r.options.rotate)+'\"'),r._type){case oe.table:var p,c=r.arrTabRows,f=r.options,d=0,h=0;c[0].forEach(function(e){p=e.options||null,d+=p&&p.colspan?Number(p.colspan):1});var A='';if(A+=' ',A+='',A+='',Array.isArray(f.colW)){A+=\"\";for(var m=0;m'}A+=\"\"}else{h=f.colW?f.colW:O,r.options.w&&!f.colW&&(h=Math.round((\"number\"==typeof r.options.w?r.options.w:1)/d)),A+=\"\";for(var g=0;g';A+=\"\"}c.forEach(function(l){for(var n,i,s,e=function(e){var t=l[e],a=null===(n=t.options)||void 0===n?void 0:n.colspan,r=null===(i=t.options)||void 0===i?void 0:i.rowspan;if(a&&1',e.forEach(function(e){var t,a,r=e,o={rowSpan:1<(null===(t=r.options)||void 0===t?void 0:t.rowspan)?r.options.rowspan:void 0,gridSpan:1<(null===(a=r.options)||void 0===a?void 0:a.colspan)?r.options.colspan:void 0,vMerge:r._vmerge?1:void 0,hMerge:r._hmerge?1:void 0},l=Object.keys(o).map(function(e){return[e,o[e]]}).filter(function(e){return e[0],!!e[1]}).map(function(e){return e[0]+'=\"'+e[1]+'\"'}).join(\" \");if(l=l&&\" \"+l,r._hmerge||r._vmerge)A+=\"\";else{var n=r.options||{};r.options=n,[\"align\",\"bold\",\"border\",\"color\",\"fill\",\"fontFace\",\"fontSize\",\"margin\",\"underline\",\"valign\"].forEach(function(e){f[e]&&!n[e]&&0!==n[e]&&(n[e]=f[e])});var i=n.valign?' anchor=\"'+n.valign.replace(/^c$/i,\"ctr\").replace(/^m$/i,\"ctr\").replace(\"center\",\"ctr\").replace(\"middle\",\"ctr\").replace(\"top\",\"t\").replace(\"btm\",\"b\").replace(\"bottom\",\"b\")+'\"':\"\",s=r._optImp&&r._optImp.fill&&r._optImp.fill.color?r._optImp.fill.color:r._optImp&&r._optImp.fill&&\"string\"==typeof r._optImp.fill?r._optImp.fill:\"\",p=(s=s||n.fill&&n.fill.color?n.fill.color:n.fill&&\"string\"==typeof n.fill?n.fill:\"\")?\"\"+Ce(s)+\"\":\"\",c=0===n.margin||n.margin?n.margin:k;Array.isArray(c)||\"number\"!=typeof c||(c=[c,c,c,c]);var d=\"\";d=1<=c[0]?' marL=\"'+ye(c[3])+'\" marR=\"'+ye(c[1])+'\" marT=\"'+ye(c[0])+'\" marB=\"'+ye(c[2])+'\"':' marL=\"'+ge(c[3])+'\" marR=\"'+ge(c[1])+'\" marT=\"'+ge(c[0])+'\" marB=\"'+ge(c[2])+'\"',A+=\"\"+Fe(r)+\"\",n.border&&Array.isArray(n.border)&&[{idx:3,name:\"lnL\"},{idx:1,name:\"lnR\"},{idx:0,name:\"lnT\"},{idx:2,name:\"lnB\"}].forEach(function(e){\"none\"!==n.border[e.idx].type?(A+=\"',A+=\"\"+Ce(n.border[e.idx].color)+\"\",A+='',A+=\"\"):A+=\"\"}),A+=p,A+=\" \",A+=\" \"}}),A+=\"\"}),A+=\" \",A+=\" \",A+=\" \",B+=A+=\"\",I++;break;case oe.text:case oe.placeholder:var y=r.options.shapeName?ue(r.options.shapeName):\"Object\"+(e+1);if(r.options.line||0!==i||(i=.3*O),r.options._bodyProp||(r.options._bodyProp={}),r.options.margin&&Array.isArray(r.options.margin)?(r.options._bodyProp.lIns=ye(r.options.margin[0]||0),r.options._bodyProp.rIns=ye(r.options.margin[1]||0),r.options._bodyProp.bIns=ye(r.options.margin[2]||0),r.options._bodyProp.tIns=ye(r.options.margin[3]||0)):\"number\"==typeof r.options.margin&&(r.options._bodyProp.lIns=ye(r.options.margin),r.options._bodyProp.rIns=ye(r.options.margin),r.options._bodyProp.bIns=ye(r.options.margin),r.options._bodyProp.tIns=ye(r.options.margin)),B+=\"\",B+='',r.options.hyperlink&&r.options.hyperlink.url&&(B+=''),r.options.hyperlink&&r.options.hyperlink.slide&&(B+=''),B+=\"\",B+=\"':\"/>\"),B+=\"\"+(\"placeholder\"===r._type?Be(r):Be(a))+\"\",B+=\"\",B+=\"\",B+='',B+='',\"custGeom\"===r.shape)B+=\"\",B+=\"\",B+=\"\",B+=\"\",B+=\"\",B+=\"\",B+='',B+=\"\",B+='',null===(t=r.options.points)||void 0===t||t.map(function(e,t){if(\"curve\"in e)switch(e.curve.type){case\"arc\":B+='';break;case\"cubic\":B+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t';break;case\"quadratic\":B+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'}else\"close\"in e?B+=\"\":e.moveTo||0===t?B+='':B+=''}),B+=\"\",B+=\"\",B+=\"\";else{if(B+='',r.options.rectRadius)B+='';else if(r.options.angleRange){for(var b=0;b<2;b++){var v=r.options.angleRange[b];B+=''}r.options.arcThicknessRatio&&(B+='')}B+=\"\"}B+=r.options.fill?Pe(r.options.fill):\"\",r.options.line&&(B+=r.options.line.width?'':\"\",r.options.line.color&&(B+=Pe(r.options.line)),r.options.line.dashType&&(B+=''),r.options.line.beginArrowType&&(B+=''),r.options.line.endArrowType&&(B+=''),B+=\"\"),r.options.shadow&&(r.options.shadow.type=r.options.shadow.type||\"outer\",r.options.shadow.blur=ye(r.options.shadow.blur||8),r.options.shadow.offset=ye(r.options.shadow.offset||4),r.options.shadow.angle=Math.round(6e4*(r.options.shadow.angle||270)),r.options.shadow.opacity=Math.round(1e5*(r.options.shadow.opacity||.75)),r.options.shadow.color=r.options.shadow.color||D.color,B+=\"\",B+=\"',B+='',B+='',B+=\"\",B+=\"\"),B+=\"\",B+=Fe(r),B+=\"\";break;case oe.image:var x=r.options,C=x.sizing,P=x.rounding,L=n,w=i;if(B+=\"\",B+=\" \",B+='',r.hyperlink&&r.hyperlink.url&&(B+=''),r.hyperlink&&r.hyperlink.slide&&(B+=''),B+=\" \",B+=' ',B+=\" \"+Be(a)+\"\",B+=\" \",B+=\"\",(F._relsMedia||[]).filter(function(e){return e.rId===r.imageRid})[0]&&\"svg\"===(F._relsMedia||[]).filter(function(e){return e.rId===r.imageRid})[0].extn?(B+='',B+=\" \",B+=' ',B+=' ',B+=\" \",B+=\" \",B+=\"\"):B+='',C&&C.type){var T=C.w?he(C.w,\"X\",F._presLayout):n,S=C.h?he(C.h,\"Y\",F._presLayout):i,R=he(C.x||0,\"X\",F._presLayout),E=he(C.y||0,\"Y\",F._presLayout);B+=Te[C.type]({w:L,h:w},{w:T,h:S,x:R,y:E}),L=T,w=S}else B+=\" \";B+=\"\",B+=\"\",B+=\" \",B+=' ',B+=' ',B+=\" \",B+=' ',B+=\"\",B+=\"\";break;case oe.media:\"online\"===r.mtype?(B+=\"\",B+=\" \",B+=' ',B+=\" \",B+=\" \",B+=' ',B+=\" \",B+=\" \",B+=' '):(B+=\"\",B+=\" \",B+=' ',B+=' ',B+=\" \",B+=' ',B+=\" \",B+=' ',B+=' ',B+=\" \",B+=\" \",B+=\" \",B+=\" \",B+=' '),B+=\" \",B+=\" \",B+=' ',B+=' ',B+=\" \",B+=' ',B+=\" \",B+=\"\";break;case oe.chart:var _=r.options;B+=\"\",B+=\" \",B+=' ',B+=\" \",B+=\" \"+Be(a)+\"\",B+=\" \",B+=' ',B+=' ',B+=' ',B+=' ',B+=\" \",B+=\" \",B+=\"\";break;default:B+=\"\"}}),F._slideNumberProps&&(F._slideNumberProps.align||(F._slideNumberProps.align=\"left\"),B+=' ',B+=\"\",B+=\"\",B+=\" \",(F._slideNumberProps.fontFace||F._slideNumberProps.fontSize||F._slideNumberProps.color)&&(B+='',F._slideNumberProps.color&&(B+=Pe(F._slideNumberProps.color)),F._slideNumberProps.fontFace&&(B+=''),B+=\"\"),B+=\"\",B+='',F._slideNumberProps.align.startsWith(\"l\")?B+='':F._slideNumberProps.align.startsWith(\"c\")?B+='':F._slideNumberProps.align.startsWith(\"r\")?B+='':B+='',B+='',B+=\"\"),B+=\"\",B+=\"\"}function Re(e,t){var a=0,r=''+p+'';return e._rels.forEach(function(e){a=Math.max(a,e.rId),-1':r+='':-1')}),(e._relsChart||[]).forEach(function(e){a=Math.max(a,e.rId),r+=''}),(e._relsMedia||[]).forEach(function(e){a=Math.max(a,e.rId),-1':-1':r+='':-1':r+='':-1':r+='')}),t.forEach(function(e,t){r+=''}),r+=\"\"}function Ee(e,t){var a=\"\",r=\"\",o=\"\",l=\"\",n=t?\"a:lvl1pPr\":\"a:pPr\",i=ye(c),s=\"<\"+n+(e.options.rtlMode?' rtl=\"1\" ':\"\");if(e.options.align)switch(e.options.align){case\"left\":s+=' algn=\"l\"';break;case\"right\":s+=' algn=\"r\"';break;case\"center\":s+=' algn=\"ctr\"';break;case\"justify\":s+=' algn=\"just\"';break;default:s+=\"\"}if(e.options.lineSpacing?r='':e.options.lineSpacingMultiple&&(r=''),e.options.indentLevel&&!isNaN(Number(e.options.indentLevel))&&0'),e.options.paraSpaceAfter&&!isNaN(Number(e.options.paraSpaceAfter))&&0'),\"object\"==typeof e.options.bullet)if(e&&e.options&&e.options.bullet&&e.options.bullet.indent&&(i=ye(e.options.bullet.indent)),e.options.bullet.type)\"number\"===e.options.bullet.type.toString().toLowerCase()&&(s+=' marL=\"'+(e.options.indentLevel&&0');else if(e.options.bullet.characterCode){var p=\"&#x\"+e.options.bullet.characterCode+\";\";!1===/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.characterCode)&&(console.warn(\"Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!\"),p=se.DEFAULT),s+=' marL=\"'+(e.options.indentLevel&&0'}else if(e.options.bullet.code){p=\"&#x\"+e.options.bullet.code+\";\";!1===/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.code)&&(console.warn(\"Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!\"),p=se.DEFAULT),s+=' marL=\"'+(e.options.indentLevel&&0'}else s+=' marL=\"'+(e.options.indentLevel&&0';else!0===e.options.bullet?(s+=' marL=\"'+(e.options.indentLevel&&0'):!1===e.options.bullet&&(s+=' indent=\"0\" marL=\"0\"',a=\"\");e.options.tabStops&&Array.isArray(e.options.tabStops)&&(l=\"\"+e.options.tabStops.map(function(e){return''}).join(\"\")+\"\");return s+=\">\"+r+o+a+l,t&&(s+=_e(e.options,!0)),s+=\"\"}function _e(e,t){var a,r=\"\",o=t?\"a:defRPr\":\"a:rPr\";if(r+=\"<\"+o+' lang=\"'+(e.lang?e.lang:\"en-US\")+'\"'+(e.lang?' altLang=\"en-US\"':\"\"),r+=e.fontSize?' sz=\"'+Math.round(e.fontSize)+'00\"':\"\",r+=e.hasOwnProperty(\"bold\")?' b=\"'+(e.bold?1:0)+'\"':\"\",r+=e.hasOwnProperty(\"italic\")?' i=\"'+(e.italic?1:0)+'\"':\"\",r+=e.hasOwnProperty(\"strike\")?' strike=\"'+(\"string\"==typeof e.strike?e.strike:\"sngStrike\")+'\"':\"\",\"object\"==typeof e.underline&&(null===(a=e.underline)||void 0===a?void 0:a.style)?r+=' u=\"'+e.underline.style+'\"':\"string\"==typeof e.underline?r+=' u=\"'+e.underline+'\"':e.hyperlink&&(r+=' u=\"sng\"'),e.baseline?r+=' baseline=\"'+Math.round(50*e.baseline)+'\"':e.subscript?r+=' baseline=\"-40000\"':e.superscript&&(r+=' baseline=\"30000\"'),r+=e.charSpacing?' spc=\"'+Math.round(100*e.charSpacing)+'\" kern=\"0\"':\"\",r+=' dirty=\"0\">',(e.color||e.fontFace||e.outline||\"object\"==typeof e.underline&&e.underline.color)&&(e.outline&&\"object\"==typeof e.outline&&(r+=''+Pe(e.outline.color||\"FFFFFF\")+\"\"),e.color&&(r+=Pe(e.color)),e.highlight&&(r+=\"\"+Ce(e.highlight)+\"\"),\"object\"==typeof e.underline&&e.underline.color&&(r+=\"\"+Pe(e.underline.color)+\"\"),e.glow&&(r+=\"\"+function(e,t){var a=\"\",r=me(t,e);return a+='',a+=Ce(r.color,''),a+=\"\"}(e.glow,T)+\"\"),e.fontFace&&(r+='')),e.hyperlink){if(\"object\"!=typeof e.hyperlink)throw new Error(\"ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` \");if(!e.hyperlink.url&&!e.hyperlink.slide)throw new Error(\"ERROR: 'hyperlink requires either `url` or `slide`'\");e.hyperlink.url?r+='\":\"/>\"):e.hyperlink.slide&&(r+='\":\"/>\")),e.color&&(r+=\"\\t\",r+='\\t\\t',r+='\\t\\t\\t',r+=\"\\t\\t\",r+=\"\\t\",r+=\"\")}return r+=\"\"}function Fe(r){var o=r.options||{},e=[],a=[];if(o&&r._type!==oe.tablecell&&(void 0===r.text||null===r.text))return\"\";var l=r._type===oe.tablecell?\"\":\"\";l+=function(e){var t=\"\",e.options.fit&&(\"none\"===e.options.fit?t+=\"\":\"shrink\"===e.options.fit?t+=\"\":\"resize\"===e.options.fit&&(t+=\"\")),e.options.shrinkText&&(t+=\"\"),t+=!1!==e.options._bodyProp.autoFit?\"\":\"\"):t+=' wrap=\"square\" rtlCol=\"0\">',t+=\"\",e._type===oe.tablecell?\"\":t}(r),0===o.h&&o.line&&o.align?l+='':\"placeholder\"===r._type?l+=\"\"+Ee(r,!0)+\"\":l+=\"\",\"string\"==typeof r.text||\"number\"==typeof r.text?e.push({text:r.text.toString(),options:o||{}}):r.text&&!Array.isArray(r.text)&&\"object\"==typeof r.text&&-1\";var a=\"\"),r.options.align=r.options.align||o.align,r.options.lineSpacing=r.options.lineSpacing||o.lineSpacing,r.options.lineSpacingMultiple=r.options.lineSpacingMultiple||o.lineSpacingMultiple,r.options.indentLevel=r.options.indentLevel||o.indentLevel,r.options.paraSpaceBefore=r.options.paraSpaceBefore||o.paraSpaceBefore,r.options.paraSpaceAfter=r.options.paraSpaceAfter||o.paraSpaceAfter,a=Ee(r,!1),l+=a,Object.entries(o).forEach(function(e){var t=e[0],a=e[1];r.options.hyperlink&&\"color\"===t||\"bullet\"===t||r.options[t]||(r.options[t]=a)}),l+=function(e){return e.text?\"\"+_e(e.options,!1)+\"\"+ue(e.text)+\"\":\"\"}(r),(!r.text&&o.fontSize||r.options.fontSize)&&(t=!0,o.fontSize=o.fontSize||r.options.fontSize)}),r._type===oe.tablecell&&(o.fontSize||o.fontFace)?o.fontFace?(l+='',l+='',l+='',l+='',l+=\"\"):l+='':l+=t?'':'',l+=\"\"}),l+=r._type===oe.tablecell?\"\":\"\"}function Be(e){if(!e)return\"\";var t=e.options&&e.options._placeholderIdx?e.options._placeholderIdx:\"\",a=e.options&&e.options._placeholderType?e.options._placeholderType:\"\";return\"\"}function Ie(e){return''+p+''+ue(function(e){var t=\"\";return e._slideObjects.forEach(function(e){e._type===oe.notes&&(t+=e.text&&e.text[0]?e.text[0].text:\"\")}),t.replace(/\\r*\\n/g,p)}(e))+''+e._slideNum+''}function Ne(e){e&&\"object\"==typeof e&&(\"outer\"!==e.type&&\"inner\"!==e.type&&\"none\"!==e.type&&(console.warn(\"Warning: shadow.type options are `outer`, `inner` or `none`.\"),e.type=\"outer\"),e.angle&&((isNaN(Number(e.angle))||e.angle<0||359 \\n'),e.file(\"_rels/.rels\",'\\n'),e.file(\"docProps/app.xml\",'Microsoft Excel0falseWorksheets1Sheet1\\n'),e.file(\"docProps/core.xml\",'PptxGenJSEly, Brent'+(new Date).toISOString()+''+(new Date).toISOString()+\"\\n\"),e.file(\"xl/_rels/workbook.xml.rels\",'\\n'),e.file(\"xl/styles.xml\",'\\n'),e.file(\"xl/theme/theme1.xml\",''),e.file(\"xl/workbook.xml\",'\\n'),e.file(\"xl/worksheets/_rels/sheet1.xml.rels\",'\\n');var r='';c.opts._type===Z.BUBBLE?r+='':c.opts._type===Z.SCATTER?r+='':(r+='',r+=''),c.opts._type===Z.BUBBLE?f.forEach(function(e,t){0===t?r+=\"X-Axis\":(r+=\"\"+ue(e.name||\" \")+\"\",r+=\"\"+ue(\"Size \"+t)+\"\")}):f.forEach(function(e){r+=\"\"+ue((e.name||\" \").replace(\"X-Axis\",\"X-Values\"))+\"\"}),c.opts._type!==Z.BUBBLE&&c.opts._type!==Z.SCATTER&&f[0].labels.forEach(function(e){r+=\"\"+ue(e)+\"\"}),r+=\"\\n\",e.file(\"xl/sharedStrings.xml\",r);var l='';c.opts._type===Z.BUBBLE||(c.opts._type===Z.SCATTER?(l+='',l+='',f.forEach(function(e,t){l+=''})):(l+='
',l+='',l+='',f.forEach(function(e,t){l+=''}))),l+=\"\",l+='',l+=\"
\",e.file(\"xl/tables/table1.xml\",l);var n='';if(n+='',c.opts._type===Z.BUBBLE?n+='':c.opts._type===Z.SCATTER?n+='':n+='',n+='',n+='',c.opts._type===Z.BUBBLE){n+=\"\",n+='',n+=\"\",n+=\"\",n+='',n+='0';for(var i=1;i',n+=\"\"+i+\"\",n+=\"\";n+=\"\",f[0].values.forEach(function(e,t){n+='',n+=''+e+\"\";for(var a=1,r=1;r',n+=\"\"+(f[r].values[t]||\"\")+\"\",n+=\"\",n+='',n+=\"\"+(f[r].sizes[t]||\"\")+\"\",n+=\"\",a++;n+=\"\"})}else if(c.opts._type===Z.SCATTER){n+=\"\",n+='',n+=\"\",n+=\"\",n+='',n+='0';for(var s=1;s',n+=\"\"+s+\"\",n+=\"\";n+=\"\",f[0].values.forEach(function(e,t){n+='',n+=''+e+\"\";for(var a=1;a',n+=\"\"+(f[a].values[t]||0===f[a].values[t]?f[a].values[t]:\"\")+\"\",n+=\"\";n+=\"\"})}else{n+=\"\",n+='',n+=\"\",n+=\"\",n+='',n+='0';for(var p=1;p<=f.length;p++)n+='',n+=\"\"+p+\"\",n+=\"\";n+=\"\",f[0].labels.forEach(function(e,t){n+='',n+='',n+=\"\"+(f.length+t+1)+\"\",n+=\"\";for(var a=0;a',n+=\"\"+(f[a].values[t]||\"\")+\"\",n+=\"\";n+=\"\"})}n+=\"\",n+='',n+=\"\\n\",e.file(\"xl/worksheets/sheet1.xml\",n),e.generateAsync({type:\"base64\"}).then(function(e){d.file(\"ppt/embeddings/Microsoft_Excel_Worksheet\"+c.globalId+\".xlsx\",e,{base64:!0}),d.file(\"ppt/charts/_rels/\"+c.fileName+\".rels\",''),d.file(\"ppt/charts/\"+c.fileName,function(o){var l='',n=!1;l+='',l+='',l+=\"\",o.opts.showTitle?(l+=qe({title:o.opts.title||\"Chart Title\",color:o.opts.titleColor,fontFace:o.opts.titleFontFace,fontSize:o.opts.titleFontSize||C,titleAlign:o.opts.titleAlign,titleBold:o.opts.titleBold,titlePos:o.opts.titlePos,titleRotate:o.opts.titleRotate}),l+=''):l+='';o.opts._type===Z.BAR3D&&(l+=\"\",l+=' ',l+=' ',l+=' ',l+=' ',l+=\"\");l+=\"\",o.opts.layout?(l+=\"\",l+=\" \",l+=' ',l+=' ',l+=' ',l+=' ',l+=' ',l+=' ',l+=' ',l+=\" \",l+=\"\"):l+=\"\";Array.isArray(o.opts._type)?o.opts._type.forEach(function(e){var t=me(o.opts,e.options),a=t.secondaryValAxis?R:S,r=t.secondaryCatAxis?_:E;n=n||t.secondaryValAxis,l+=je(e.type,e.data,t,a,r)}):l+=je(o.opts._type,o.data,o.opts,S,E);if(o.opts._type!==Z.PIE&&o.opts._type!==Z.DOUGHNUT){if(o.opts.valAxes&&1\",r+=' ',r+=' ',r+=' ',r+=' ',r+=\"none\"!==t.serGridLine.style?Je(t.serGridLine):\"\",t.showSerAxisTitle&&(r+=qe({color:t.serAxisTitleColor,fontFace:t.serAxisTitleFontFace,fontSize:t.serAxisTitleFontSize,titleRotate:t.serAxisTitleRotate,title:t.serAxisTitle||\"Axis Title\"}));r+=' ',r+=' ',r+=' ',r+=' ',r+=\" \",r+=' ',r+=!1===t.serAxisLineShow?\"\":\"\"+Ce(t.serAxisLineColor||u.color)+\"\",r+=' ',r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=' ',r+=\" \"+Ce(t.serAxisLabelColor||g)+\"\",r+=' ',r+=\" \",r+=\" \",r+=' ',r+=\" \",r+=\" \",r+=' ',r+=' ',t.serAxisLabelFrequency&&(r+=' ');t.serLabelFormatCode&&([\"serAxisBaseTimeUnit\",\"serAxisMajorTimeUnit\",\"serAxisMinorTimeUnit\"].forEach(function(e){!t[e]||\"string\"==typeof t[e]&&-1!==[\"days\",\"months\",\"years\"].indexOf(e.toLowerCase())||(console.warn(\"`\"+e+\"` must be one of: 'days','months','years' !\"),t[e]=null)}),t.serAxisBaseTimeUnit&&(r+=' '),t.serAxisMajorTimeUnit&&(r+=' '),t.serAxisMinorTimeUnit&&(r+=' '),t.serAxisMajorUnit&&(r+=' '),t.serAxisMinorUnit&&(r+=' '));return r+=\"\"}(o.opts,F,S)))}o.opts.showDataTable&&(l+=\"\",l+=' ',l+=' ',l+=' ',l+=' ',l+=\" \",l+=\" \",l+=' ',l+=\" \",l+=\" \",l+=\" \",l+='\\t ',l+=\"\\t \",l+=\"\\t \",l+='\\t\\t',l+=' ',l+='\\t\\t\\t',l+='\\t\\t\\t',l+='\\t\\t\\t',l+='\\t\\t\\t',l+=\"\\t\\t \",l+=\"\\t\\t\",l+='\\t\\t',l+=\"\\t \",l+=\"\\t\",l+=\"\");l+=\" \",l+=o.opts.fill?Pe(o.opts.fill):\"\",l+=o.opts.border?''+Pe(o.opts.border.color)+\"\":\"\",l+=\" \",l+=\" \",l+=\"\",o.opts.showLegend&&(l+=\"\",l+='',l+='',(o.opts.legendFontFace||o.opts.legendFontSize||o.opts.legendColor)&&(l+=\"\",l+=\" \",l+=\" \",l+=\" \",l+=\" \",l+=o.opts.legendFontSize?'':\"\",o.opts.legendColor&&(l+=Pe(o.opts.legendColor)),o.opts.legendFontFace&&(l+=''),o.opts.legendFontFace&&(l+=''),l+=\" \",l+=\" \",l+=' ',l+=\" \",l+=\"\"),l+=\"\");l+=' ',l+=' ',o.opts._type===Z.SCATTER&&(l+='');return l+=\"\",l+=\"\",l+=\" \",l+=' ',l+=\" \",l+=\"\",l+='',l+=\"\"}(c)),t(null)}).catch(function(e){a(e)})})}function je(r,o,l,e,t){var n=\"\";switch(r){case Z.AREA:case Z.BAR:case Z.BAR3D:case Z.LINE:case Z.RADAR:n+=\"\",r===Z.AREA&&\"stacked\"===l.barGrouping&&(n+=''),r!==Z.BAR&&r!==Z.BAR3D||(n+='',n+=''),r===Z.RADAR&&(n+=''),n+='';var i=-1;o.forEach(function(e){i++;var t=e.index;n+=\"\",n+=' ',n+=' ',n+=\" \",n+=\" \",n+=\" Sheet1!$\"+Xe(t+1)+\"$1\",n+=' '+ue(e.name)+\"\",n+=\" \",n+=\" \",n+=' ';var a=l.chartColors?l.chartColors[i%l.chartColors.length]:null;n+=\" \",\"transparent\"===a?n+=\"\":l.chartColorsOpacity?n+=\"\"+Ce(a,'')+\"\":n+=\"\"+Ce(a)+\"\",r===Z.LINE?0===l.lineSize?n+=\"\":(n+=''+Ce(a)+\"\",n+=''):l.dataBorder&&(n+=''+Ce(l.dataBorder.color)+''),n+=Ke(l.shadow,L),n+=\" \",r!==Z.RADAR&&(n+=\" \",n+=' ',l.dataLabelBkgrdColors&&(n+=\" \",n+=\" \"+Ce(a)+\"\",n+=\" \"),n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+Ce(l.dataLabelColor||g)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=\" \"),r!==Z.LINE&&r!==Z.RADAR||(n+=\"\",n+=' ',l.lineDataSymbolSize&&(n+=' '),n+=\" \",n+=\" \"+Ce(l.chartColors[t+1>l.chartColors.length?Math.floor(Math.random()*l.chartColors.length):t])+\"\",n+=' '+Ce(l.lineDataSymbolLineColor||a)+'',n+=\" \",n+=\" \",n+=\"\"),(r===Z.BAR||r===Z.BAR3D)&&1===o.length&&l.chartColors!==I&&1\",n+=' ',n+=' ',n+=' ',n+=\" \",0===l.lineSize?n+=\"\":r===Z.BAR?(n+=\"\",n+=' ',n+=\"\"):(n+=\"\",n+=\" \",n+=' ',n+=\" \",n+=\"\"),n+=Ke(l.shadow,L),n+=\" \",n+=\" \"}),n+=\"\",l.catLabelFormatCode?(n+=\" \",n+=\" Sheet1!$A$2:$A$\"+(e.labels.length+1)+\"\",n+=\" \",n+=\" \"+(l.catLabelFormatCode||\"General\")+\"\",n+=' ',e.labels.forEach(function(e,t){n+=''+ue(e)+\"\"}),n+=\" \",n+=\" \"):(n+=\" \",n+=\" Sheet1!$A$2:$A$\"+(e.labels.length+1)+\"\",n+=\" \",n+='\\t ',e.labels.forEach(function(e,t){n+=''+ue(e)+\"\"}),n+=\" \",n+=\" \"),n+=\"\",n+=\"\",n+=\" \",n+=\" Sheet1!$\"+Xe(t+1)+\"$2:$\"+Xe(t+1)+\"$\"+(e.labels.length+1)+\"\",n+=\" \",n+=\" \"+(l.valLabelFormatCode||l.dataTableFormatCode||\"General\")+\"\",n+=' ',e.values.forEach(function(e,t){n+=''+(e||0===e?e:\"\")+\"\"}),n+=\" \",n+=\" \",n+=\"\",r===Z.LINE&&(n+=''),n+=\"\"}),n+=\" \",n+=' ',n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+Ce(l.dataLabelColor||g)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=\" \",r===Z.BAR?(n+=' ',n+=' '):r===Z.BAR3D?(n+=' ',n+=' ',n+=' '):r===Z.LINE&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=\"\";break;case Z.SCATTER:n+=\"\",n+='',n+='',i=-1,o.filter(function(e,t){return 0\",n+=' ',n+=' ',n+=\" \",n+=\" \",n+=\" Sheet1!$\"+B[e+1]+\"$1\",n+=' '+a.name+\"\",n+=\" \",n+=\" \",n+=\" \";var t=l.chartColors[i%l.chartColors.length];if(\"transparent\"===t?n+=\"\":l.chartColorsOpacity?n+=\"\"+Ce(t,'')+\"\":n+=\"\"+Ce(t)+\"\",0===l.lineSize?n+=\"\":(n+=''+Ce(t)+\"\",n+=''),n+=Ke(l.shadow,L),n+=\" \",n+=\"\",n+=' ',l.lineDataSymbolSize&&(n+=' '),n+=\" \",n+=\" \"+Ce(l.chartColors[e+1>l.chartColors.length?Math.floor(Math.random()*l.chartColors.length):e])+\"\",n+=' '+Ce(l.lineDataSymbolLineColor||l.chartColors[i%l.chartColors.length])+'',n+=\" \",n+=\" \",n+=\"\",l.showLabel){var r=Ae(\"-xxxx-xxxx-xxxx-xxxxxxxxxxxx\");!a.labels||\"custom\"!==l.dataLabelFormatScatter&&\"customXY\"!==l.dataLabelFormatScatter||(n+=\"\",a.labels.forEach(function(e,t){\"custom\"!==l.dataLabelFormatScatter&&\"customXY\"!==l.dataLabelFormatScatter||(n+=\" \",n+=' ',n+=\" \",n+=\" \",n+=\"\\t\\t\\t\",n+=\"\\t\\t\\t\\t\",n+=\"\\t\\t\\t\",n+=\" \\t\",n+=\" \\t\",n+=\"\\t\\t\\t\\t\",n+=\"\\t\\t\\t\\t\\t\",n+=\"\\t\\t\\t\\t\",n+=\" \\t\",n+=' \\t\\t',n+=\" \\t\\t\"+ue(e)+\"\",n+=\" \\t\",\"customXY\"!==l.dataLabelFormatScatter||/^ *$/.test(e)||(n+=\" \\t\",n+=' \\t\\t',n+=\" \\t\\t (\",n+=\" \\t\",n+=' \\t',n+=' \\t\\t',n+=\" \\t\\t\",n+=\" \\t\\t\\t\",n+=\" \\t\\t\",n+=\" \\t\\t[\"+ue(a.name)+\"\",n+=\" \\t\",n+=\" \\t\",n+=' \\t\\t',n+=\" \\t\\t, \",n+=\" \\t\",n+=' \\t',n+=' \\t\\t',n+=\" \\t\\t\",n+=\" \\t\\t\\t\",n+=\" \\t\\t\",n+=\" \\t\\t[\"+ue(a.name)+\"]\",n+=\" \\t\",n+=\" \\t\",n+=' \\t\\t',n+=\" \\t\\t)\",n+=\" \\t\",n+=' \\t'),n+=\" \\t\",n+=\" \",n+=\" \",n+=\" \",n+=\" \\t\",n+=\" \\t\",n+=\" \\t\\t\",n+=\" \\t\",n+=\" \\t\",n+=\" \",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+='\\t ',n+=\" \",n+=' ',n+=' ',n+='\\t\\t\\t',n+=\" \",n+=\"\\t\\t\",n+=\"\")}),n+=\"\"),\"XY\"===l.dataLabelFormatScatter&&(n+=\"\",n+=\"\\t\",n+=\"\\t\\t\",n+=\"\\t\\t\",n+=\"\\t\\t\\t\",n+=\"\\t\\t\",n+=\"\\t \\t\",n+=\"\\t\",n+=\"\\t\",n+=\"\\t\\t\",n+=\"\\t\\t\\t\",n+=\"\\t\\t\",n+=\"\\t\\t\",n+=\"\\t\\t\",n+=\"\\t \\t\",n+=\" \\t\\t\",n+=\"\\t \\t\",n+='\\t \\t',n+=\"\\t\\t\",n+=\"\\t\",l.dataLabelPosition&&(n+=' '),n+='\\t',n+=' ',n+=' ',n+='\\t',n+='\\t',n+='\\t',n+=\"\\t\",n+='\\t\\t',n+='\\t\\t\\t',n+=\"\\t\\t\",n+=\"\\t\",n+=\"\")}1===o.length&&l.chartColors!==I&&a.values.forEach(function(e,t){var a=e<0?l.invertedColors||l.chartColors||I:l.chartColors||[];n+=\" \",n+=' ',n+=' ',n+=' ',n+=\" \",0===l.lineSize?n+=\"\":(n+=\"\",n+=' ',n+=\"\"),n+=Ke(l.shadow,L),n+=\" \",n+=\" \"}),n+=\"\",n+=\" \",n+=\" Sheet1!$A$2:$A$\"+(o[0].values.length+1)+\"\",n+=\" \",n+=\" General\",n+=' ',o[0].values.forEach(function(e,t){n+=''+(e||0===e?e:\"\")+\"\"}),n+=\" \",n+=\" \",n+=\"\",n+=\"\",n+=\" \",n+=\" Sheet1!$\"+Xe(e+1)+\"$2:$\"+Xe(e+1)+\"$\"+(o[0].values.length+1)+\"\",n+=\" \",n+=\" General\",n+=' ',o[0].values.forEach(function(e,t){n+=''+(a.values[t]||0===a.values[t]?a.values[t]:\"\")+\"\"}),n+=\" \",n+=\" \",n+=\"\",n+='',n+=\"\"}),n+=\" \",n+=' ',n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+Ce(l.dataLabelColor||g)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=\" \",n+=' ',n+=' ',n+=\"\";break;case Z.BUBBLE:n+=\"\",n+='',i=-1;var s=1;o.filter(function(e,t){return 0\",n+=' ',n+=' ',n+=\" \",n+=\" \",n+=\" Sheet1!$\"+B[s]+\"$1\",n+=' '+a.name+\"\",n+=\" \",n+=\" \",n+=\"\";var t=l.chartColors[i%l.chartColors.length];\"transparent\"===t?n+=\"\":l.chartColorsOpacity?n+=\"\"+Ce(t,'')+\"\":n+=\"\"+Ce(t)+\"\",0===l.lineSize?n+=\"\":l.dataBorder?n+=''+Ce(l.dataBorder.color)+'':(n+=''+Ce(t)+\"\",n+=''),n+=Ke(l.shadow,L),n+=\"\",n+=\"\",n+=\" \",n+=\" Sheet1!$A$2:$A$\"+(o[0].values.length+1)+\"\",n+=\" \",n+=\" General\",n+=' ',o[0].values.forEach(function(e,t){n+=''+(e||0===e?e:\"\")+\"\"}),n+=\" \",n+=\" \",n+=\"\",n+=\"\",n+=\" \",n+=\" Sheet1!$\"+Xe(s)+\"$2:$\"+Xe(s)+\"$\"+(o[0].values.length+1)+\"\",s++,n+=\" \",n+=\" General\",n+=' ',o[0].values.forEach(function(e,t){n+=''+(a.values[t]||0===a.values[t]?a.values[t]:\"\")+\"\"}),n+=\" \",n+=\" \",n+=\"\",n+=\" \",n+=\" \",n+=\" Sheet1!$\"+Xe(s)+\"$2:$\"+Xe(e+2)+\"$\"+(a.sizes.length+1)+\"\",s++,n+=\" \",n+=\" General\",n+='\\t ',a.sizes.forEach(function(e,t){n+=''+(e||\"\")+\"\"}),n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\"\"}),n+=\" \",n+=' ',n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+Ce(l.dataLabelColor||g)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=\" \",n+=' ',n+=' ',n+=\"\";break;case Z.DOUGHNUT:case Z.PIE:var a=o[0];n+=\"\",n+=' ',n+=\"\",n+=' ',n+=' ',n+=\" \",n+=\" \",n+=\" Sheet1!$B$1\",n+=\" \",n+=' ',n+=' '+ue(a.name)+\"\",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=' ',l.dataNoEffects?n+=\"\":n+=Ke(l.shadow,L),n+=\" \",a.labels.forEach(function(e,t){n+=\"\",n+=' ',n+=' ',n+=\" \",n+=\"\"+Ce(l.chartColors[t+1>l.chartColors.length?Math.floor(Math.random()*l.chartColors.length):t])+\"\",l.dataBorder&&(n+=''+Ce(l.dataBorder.color)+''),n+=Ke(l.shadow,L),n+=\" \",n+=\"\"}),n+=\"\",a.labels.forEach(function(e,t){n+=\"\",n+=' ',n+=' ',n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+Ce(l.dataLabelColor||g)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",r===Z.PIE&&l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=\" \"}),n+=' ',n+=\"\\t\",n+=\"\\t \",n+=\"\\t \",n+=\"\\t \",n+=\"\\t\\t\",n+='\\t\\t ',n+='\\t\\t\\t',n+=\"\\t\\t \",n+=\"\\t\\t\",n+=\"\\t \",n+=\"\\t\",n+=r===Z.PIE?'':\"\",n+='\\t',n+='\\t',n+='\\t',n+='\\t',n+='\\t',n+='\\t',n+=' ',n+=\"\",n+=\"\",n+=\" \",n+=\" Sheet1!$A$2:$A$\"+(a.labels.length+1)+\"\",n+=\" \",n+='\\t ',a.labels.forEach(function(e,t){n+=''+ue(e)+\"\"}),n+=\" \",n+=\" \",n+=\"\",n+=\" \",n+=\" \",n+=\" Sheet1!$B$2:$B$\"+(a.labels.length+1)+\"\",n+=\" \",n+='\\t ',a.values.forEach(function(e,t){n+=''+(e||0===e?e:\"\")+\"\"}),n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',r===Z.DOUGHNUT&&(n+=' '),n+=\"\";break;default:n+=\"\"}return n}function Qe(t,e,a){var r=\"\";return t._type===Z.SCATTER||t._type===Z.BUBBLE?r+=\"\":r+=\"\",r+=' ',r+=\" \",r+='',!t.catAxisMaxVal&&0!==t.catAxisMaxVal||(r+=''),!t.catAxisMinVal&&0!==t.catAxisMinVal||(r+=''),r+=\"\",r+=' ',r+=' ',r+=\"none\"!==t.catGridLine.style?Je(t.catGridLine):\"\",t.showCatAxisTitle&&(r+=qe({color:t.catAxisTitleColor,fontFace:t.catAxisTitleFontFace,fontSize:t.catAxisTitleFontSize,titleRotate:t.catAxisTitleRotate,title:t.catAxisTitle||\"Axis Title\"})),t._type===Z.SCATTER||t._type===Z.BUBBLE?r+=' ':r+=' ',t._type===Z.SCATTER?(r+=' ',r+=' ',r+=' '):(r+=' ',r+=' ',r+=' '),r+=\" \",r+=' ',r+=!1===t.catAxisLineShow?\"\":\"\"+Ce(t.catAxisLineColor||u.color)+\"\",r+=' ',r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=' ',r+=\" \"+Ce(t.catAxisLabelColor||g)+\"\",r+=' ',r+=\" \",r+=\" \",r+=' ',r+=\" \",r+=\" \",r+=' ',r+=\" ',r+=' ',r+=' ',r+=' ',t.catAxisLabelFrequency&&(r+=' '),!t.catLabelFormatCode&&t._type!==Z.SCATTER&&t._type!==Z.BUBBLE||(t.catLabelFormatCode&&([\"catAxisBaseTimeUnit\",\"catAxisMajorTimeUnit\",\"catAxisMinorTimeUnit\"].forEach(function(e){!t[e]||\"string\"==typeof t[e]&&-1!==[\"days\",\"months\",\"years\"].indexOf(t[e].toLowerCase())||(console.warn(\"`\"+e+\"` must be one of: 'days','months','years' !\"),t[e]=null)}),t.catAxisBaseTimeUnit&&(r+=''),t.catAxisMajorTimeUnit&&(r+=''),t.catAxisMinorTimeUnit&&(r+='')),t.catAxisMajorUnit&&(r+=''),t.catAxisMinorUnit&&(r+='')),t._type===Z.SCATTER||t._type===Z.BUBBLE?r+=\"\":r+=\"\",r}function Ye(e,t){var a=t===S?\"col\"===e.barDir?\"l\":\"b\":\"col\"!==e.barDir?\"r\":\"t\",r=\"\",o=\"r\"==a||\"t\"==a?\"max\":\"autoZero\",l=t===S?E:_;return r+=\"\",r+=' ',r+=\" \",e.valAxisLogScaleBase&&(r+=' '),r+=' ',!e.valAxisMaxVal&&0!==e.valAxisMaxVal||(r+=''),!e.valAxisMinVal&&0!==e.valAxisMinVal||(r+=''),r+=\" \",r+=' ',r+=' ',\"none\"!==e.valGridLine.style&&(r+=Je(e.valGridLine)),e.showValAxisTitle&&(r+=qe({color:e.valAxisTitleColor,fontFace:e.valAxisTitleFontFace,fontSize:e.valAxisTitleFontSize,titleRotate:e.valAxisTitleRotate,title:e.valAxisTitle||\"Axis Title\"})),r+=\"',e._type===Z.SCATTER?(r+=' ',r+=' ',r+=' '):(r+=' ',r+=' ',r+=' '),r+=\" \",r+=' ',r+=!1===e.valAxisLineShow?\"\":\"\"+Ce(e.valAxisLineColor||u.color)+\"\",r+=' ',r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=' ',r+=\" \"+Ce(e.valAxisLabelColor||g)+\"\",r+=' ',r+=\" \",r+=\" \",r+=' ',r+=\" \",r+=\" \",r+=' ',r+=' ',r+=' ',e.valAxisMajorUnit&&(r+=' '),e.valAxisDisplayUnit&&(r+=''+(e.valAxisDisplayUnitLabel?\"\":\"\")+\"\"),r+=\"\"}function qe(e){var t=\"left\"===e.titleAlign||\"right\"===e.titleAlign?'':\"\",a=e.titleRotate?'':\"\",r=e.fontSize?'sz=\"'+Math.round(100*e.fontSize)+'\"':\"\",o=!0===e.titleBold?1:0,l=e.titlePos&&e.titlePos.x&&e.titlePos.y?'':\"\";return\"\\n\\t \\n\\t \\n\\t \"+a+\"\\n\\t \\n\\t \\n\\t \"+t+\"\\n\\t \\n\\t '+Ce(e.color||g)+'\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \\n\\t '+Ce(e.color||g)+'\\n\\t \\n\\t \\n\\t '+(ue(e.title)||\"\")+\"\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \"+l+'\\n\\t \\n\\t'}function Xe(e){var t=\"\";return e<=26?t=B[e]:(t+=B[Math.floor(e/B.length)-1],t+=B[e%B.length]),t}function Ke(e,t){if(!e)return\"\";if(\"object\"!=typeof e)return console.warn(\"`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`\"),\"\";var a=\"\",r=me(t,e),o=r.type||\"outer\",l=ye(r.blur),n=ye(r.offset),i=Math.round(6e4*r.angle),s=r.color,p=Math.round(1e5*r.opacity);return a+=\"',a+='',a+='',a+=\"\",a+=\"\"}function Je(e){var t=\"\";return t+=\" \",t+=' ',t+=' ',t+=' ',t+=\" \",t+=\" \",t+=\"\"}function Ze(e){var l=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null,n=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"https\"):null,t=[];return e._relsMedia.filter(function(e){return\"online\"!==e.type&&!e.data&&(!e.path||e.path&&-1===e.path.indexOf(\"preencoded\"))}).forEach(function(o){t.push(new Promise(function(a,r){if(l&&0!==o.path.indexOf(\"http\"))try{var e=l.readFileSync(o.path);o.data=Buffer.from(e).toString(\"base64\"),a(\"done\")}catch(e){o.data=de,r('ERROR: Unable to read media: \"'+o.path+'\"\\n'+e.toString())}else if(l&&n&&0===o.path.indexOf(\"http\"))n.get(o.path,function(e){var t=\"\";e.setEncoding(\"binary\"),e.on(\"data\",function(e){return t+=e}),e.on(\"end\",function(){o.data=Buffer.from(t,\"binary\").toString(\"base64\"),a(\"done\")}),e.on(\"error\",function(e){o.data=de,r(\"ERROR! Unable to load image (https.get): \"+o.path)})});else{var t=new XMLHttpRequest;t.onload=function(){var e=new FileReader;e.onloadend=function(){o.data=e.result,o.isSvgPng?$e(o).then(function(){a(\"done\")}).catch(function(e){r(e)}):a(\"done\")},e.readAsDataURL(t.response)},t.onerror=function(e){o.data=de,r(\"ERROR! Unable to load image (xhr.onerror): \"+o.path)},t.open(\"GET\",o.path),t.responseType=\"blob\",t.send()}}))}),e._relsMedia.filter(function(e){return e.isSvgPng&&e.data}).forEach(function(e){l?(e.data=de,t.push(Promise.resolve().then(function(){return\"done\"}))):t.push($e(e))}),t}function $e(o){return new Promise(function(a,t){var r=new Image;r.onload=function(){r.width+r.height===0&&r.onerror(\"h/w=0\");var e=document.createElement(\"CANVAS\"),t=e.getContext(\"2d\");e.width=r.width,e.height=r.height,t.drawImage(r,0,0);try{o.data=e.toDataURL(o.type),a(\"done\")}catch(e){r.onerror(e)}e=null},r.onerror=function(e){o.data=de,t(\"ERROR! Unable to load image (image.onerror): \"+o.path)},r.src=\"string\"==typeof o.data?o.data:de})}function et(){var o=this;this._version=\"3.9.0-beta-20210930-2159\",this._alignH=Q,this._alignV=q,this._chartType=z,this._outputType=U,this._schemeColor=V,this._shapeType=W,this._charts=Z,this._colors=ee,this._shapes=K,this.addNewSlide=function(e){var t=0')})}),r+='',r+='',r+='',r+='',e.forEach(function(e,t){r+='',r+='',e._relsChart.forEach(function(e){r+=' '})}),r+='',r+='',r+='',r+='',t.forEach(function(e,t){r+='',(e._relsChart||[]).forEach(function(e){r+=' '})}),e.forEach(function(e,t){r+=' '}),a._relsChart.forEach(function(e){r+=' '}),a._relsMedia.forEach(function(e){\"image\"!==e.type&&\"online\"!==e.type&&\"chart\"!==e.type&&\"m4v\"!==e.extn&&-1===r.indexOf(e.type)&&(r+=' ')}),r+=' ',r+=' ',r+=\"\"}(o.slides,o.slideLayouts,o.masterSlide)),r.file(\"_rels/.rels\",''+p+'\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t'),r.file(\"docProps/app.xml\",function(e,t){return''+p+'\\n\\t0\\n\\t0\\n\\tMicrosoft Office PowerPoint\\n\\tOn-screen Show (16:9)\\n\\t0\\n\\t'+e.length+\"\\n\\t\"+e.length+'\\n\\t0\\n\\t0\\n\\tfalse\\n\\t\\n\\t\\t\\n\\t\\t\\tFonts Used\\n\\t\\t\\t2\\n\\t\\t\\tTheme\\n\\t\\t\\t1\\n\\t\\t\\tSlide Titles\\n\\t\\t\\t'+e.length+'\\n\\t\\t\\n\\t\\n\\t\\n\\t\\t\\n\\t\\t\\tArial\\n\\t\\t\\tCalibri\\n\\t\\t\\tOffice Theme\\n\\t\\t\\t'+e.map(function(e,t){return\"Slide \"+(t+1)+\"\\n\"}).join(\"\")+\"\\n\\t\\t\\n\\t\\n\\t\"+t+\"\\n\\tfalse\\n\\tfalse\\n\\tfalse\\n\\t16.0000\\n\\t\"}(o.slides,o.company)),r.file(\"docProps/core.xml\",function(e,t,a,r){return'\\n\\t\\n\\t\\t'+ue(e)+\"\\n\\t\\t\"+ue(t)+\"\\n\\t\\t\"+ue(a)+\"\\n\\t\\t\"+ue(a)+\"\\n\\t\\t\"+r+'\\n\\t\\t'+(new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\")+'\\n\\t\\t'+(new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\")+\"\\n\\t\"}(o.title,o.subject,o.author,o.revision)),r.file(\"ppt/_rels/presentation.xml.rels\",function(e){var t=1,a=''+p;a+='',a+='';for(var r=1;r<=e.length;r++)a+='';return a+=''}(o.slides)),r.file(\"ppt/theme/theme1.xml\",''+p+''),r.file(\"ppt/presentation.xml\",function(e){var t=''+p+'';t+='',t+=\"\",e.slides.forEach(function(e){return t+=''}),t+=\"\",t+='',t+='',t+='',t+=\"\";for(var a=1;a<10;a++)t+=\"\";return t+=\"\",e.sections&&0',t+='',e.sections.forEach(function(e){t+='',e._slides.forEach(function(e){return t+=''}),t+=\"\"}),t+=\"\",t+='',t+=\"\"),t+=\"\"}(o)),r.file(\"ppt/presProps.xml\",''+p+''),r.file(\"ppt/tableStyles.xml\",''+p+''),r.file(\"ppt/viewProps.xml\",''+p+''),o.slideLayouts.forEach(function(e,t){r.file(\"ppt/slideLayouts/slideLayout\"+(t+1)+\".xml\",function(e){return'\\n\\t\\t\\n\\t\\t'+Se(e)+\"\\n\\t\\t\"}(e)),r.file(\"ppt/slideLayouts/_rels/slideLayout\"+(t+1)+\".xml.rels\",function(e,t){return Re(t[e-1],[{target:\"../slideMasters/slideMaster1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster\"}])}(t+1,o.slideLayouts))}),o.slides.forEach(function(e,t){r.file(\"ppt/slides/slide\"+(t+1)+\".xml\",function(e){return''+p+'\"+Se(e)+\"\"}(e)),r.file(\"ppt/slides/_rels/slide\"+(t+1)+\".xml.rels\",function(e,t,a){return Re(e[a-1],[{target:\"../slideLayouts/slideLayout\"+function(e,t,a){for(var r=0;r\\n\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t'}(t+1))}),r.file(\"ppt/slideMasters/slideMaster1.xml\",function(a,e){var t=e.map(function(e,t){return''}),r=''+p;return r+='',r+=Se(a),r+='',r+=\"\"+t.join(\"\")+\"\",r+='',r+=' ',r+=\"\"}(o.masterSlide,o.slideLayouts)),r.file(\"ppt/slideMasters/_rels/slideMaster1.xml.rels\",function(e,t){var a=t.map(function(e,t){return{target:\"../slideLayouts/slideLayout\"+(t+1)+\".xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout\"}});return a.push({target:\"../theme/theme1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\"}),Re(e,a)}(o.masterSlide,o.slideLayouts)),r.file(\"ppt/notesMasters/notesMaster1.xml\",''+p+'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›'),r.file(\"ppt/notesMasters/_rels/notesMaster1.xml.rels\",''+p+'\\n\\t\\t\\n\\t\\t'),o.slideLayouts.forEach(function(e){o.createChartMediaRels(e,r,t)}),o.slides.forEach(function(e){o.createChartMediaRels(e,r,t)}),o.createChartMediaRels(o.masterSlide,r,t),Promise.all(t).then(function(){return\"STREAM\"===e.outputType?r.generateAsync({type:\"nodebuffer\",compression:e.compression?\"DEFLATE\":\"STORE\"}):e.outputType?r.generateAsync({type:e.outputType}):r.generateAsync({type:\"blob\",compression:e.compression?\"DEFLATE\":\"STORE\"})})})},this.LAYOUTS={LAYOUT_4x3:{name:\"screen4x3\",width:9144e3,height:6858e3},LAYOUT_16x9:{name:\"screen16x9\",width:9144e3,height:5143500},LAYOUT_16x10:{name:\"screen16x10\",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:\"custom\",width:12192e3,height:6858e3}},this._author=\"PptxGenJS\",this._company=\"PptxGenJS\",this._revision=\"1\",this._subject=\"PptxGenJS Presentation\",this._title=\"PptxGenJS Presentation\",this._presLayout={name:this.LAYOUTS[d].name,_sizeW:this.LAYOUTS[d].width,_sizeH:this.LAYOUTS[d].height,width:this.LAYOUTS[d].width,height:this.LAYOUTS[d].height},this._rtlMode=!1,this._slideLayouts=[{_margin:w,_name:r,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(et.prototype,\"layout\",{get:function(){return this._layout},set:function(e){var t=this.LAYOUTS[e];if(!t)throw new Error(\"UNKNOWN-LAYOUT\");this._layout=e,this._presLayout=t},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"version\",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"author\",{get:function(){return this._author},set:function(e){this._author=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"company\",{get:function(){return this._company},set:function(e){this._company=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"revision\",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"subject\",{get:function(){return this._subject},set:function(e){this._subject=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"title\",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"rtlMode\",{get:function(){return this._rtlMode},set:function(e){this._rtlMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"masterSlide\",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"slides\",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"sections\",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"slideLayouts\",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"AlignH\",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"AlignV\",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"ChartType\",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"OutputType\",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"presLayout\",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"SchemeColor\",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"ShapeType\",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"charts\",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"colors\",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"shapes\",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),et.prototype.stream=function(e){var t=!(\"object\"!=typeof e||!e.hasOwnProperty(\"compression\"))&&e.compression;return this.exportPresentation({compression:t,outputType:\"STREAM\"})},et.prototype.write=function(e){var t=\"object\"==typeof e&&e.hasOwnProperty(\"outputType\")?e.outputType:e||null,a=!(\"object\"!=typeof e||!e.hasOwnProperty(\"compression\"))&&e.compression;return this.exportPresentation({compression:a,outputType:t})},et.prototype.writeFile=function(e){var t=this,r=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null;\"string\"==typeof e&&console.log(\"Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)\");var a=\"object\"==typeof e&&e.hasOwnProperty(\"fileName\")?e.fileName:\"string\"==typeof e?e:\"\",o=!(\"object\"!=typeof e||!e.hasOwnProperty(\"compression\"))&&e.compression,l=a?a.toString().toLowerCase().endsWith(\".pptx\")?a:a+\".pptx\":\"Presentation.pptx\";return this.exportPresentation({compression:o,outputType:r?\"nodebuffer\":null}).then(function(e){return r?new Promise(function(t,a){r.writeFile(l,e,function(e){e?a(e):t(l)})}):t.writeFileToBrowser(l,e)})},et.prototype.addSection=function(e){e?e.title||console.warn(\"addSection requires a title\"):console.warn(\"addSection requires an argument\");var t={_type:\"user\",_slides:[],title:e.title};e.order?this.sections.splice(e.order,0,t):this._sections.push(t)},et.prototype.addSlide=function(t){var a=\"string\"==typeof t?t:t&&t.masterName?t.masterName:\"\",e={_name:this.LAYOUTS[d].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(a){var r=this.slideLayouts.filter(function(e){return e._name===a})[0];r&&(e=r)}var o=new We({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:e});if(this._slides.push(o),t&&t.sectionTitle){var l=this.sections.filter(function(e){return e.title===t.sectionTitle})[0];l?l._slides.push(o):console.warn('addSlide: unable to find section with title: \"'+t.sectionTitle+'\"')}else if(this.sections&&0 opts.y = \"+o.y),a.addTable(e.rows,{x:o.x||d[3],y:o.y,w:Number(i)/O,colW:p,autoPage:!1}),o.addImage&&a.addImage({path:o.addImage.url,x:o.addImage.x,y:o.addImage.y,w:o.addImage.w,h:o.addImage.h}),o.addShape&&a.addShape(o.addShape.shape,o.addShape.options||{}),o.addTable&&a.addTable(o.addTable.rows,o.addTable.options||{}),o.addText&&a.addText(o.addText.text,o.addText.options||{})})}(this,e,t,t&&t.masterSlideName?this.slideLayouts.filter(function(e){return e._name===t.masterSlideName})[0]:null)},et}();"],"file":"pptxgen.min.js"} \ No newline at end of file +{"version":3,"names":[],"mappings":"","sources":["pptxgen.min.js"],"sourcesContent":["/* PptxGenJS 3.9.0-beta @ 2021-10-14T12:21:15.034Z */\nvar PptxGenJS=function(){\"use strict\";function e(e){return e&&\"object\"==typeof e&&\"default\"in e?e:{default:e}}var m=e(JSZip),y=function(){return(y=Object.assign||function(e){for(var t,a=1,r=arguments.length;a/g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\")}function ge(e){return\"number\"==typeof e&&100\"+t+\"
\":\"\"}function Pe(e){var t=\"solid\",a=\"\",r=\"\",o=\"\";if(e)switch(\"string\"==typeof e?a=e:(e.type&&(t=e.type),e.color&&(a=e.color),e.alpha&&(r+=''),e.transparency&&(r+='')),t){case\"solid\":o+=\"\"+Ce(a,r)+\"\";break;default:o+=\"\"}return o}function Le(e){return e._rels.length+e._relsChart.length+e._relsMedia.length+1}function we(e,p,r,t){void 0===e&&(e=[]),void 0===p&&(p={});var a,c=w,d=1*O,h=0,o=0,f=[],l=fe(p.x,\"X\",r),A=fe(p.y,\"Y\",r),n=fe(p.w,\"X\",r),m=fe(p.h,\"Y\",r),i=n;if(p.verbose&&(console.log(\"[[VERBOSE MODE]]\"),console.log(\"|-- TABLE PROPS --------------------------------------------------------|\"),console.log(\"| presLayout.width ................................ = \"+(r.width/O).toFixed(1)),console.log(\"| presLayout.height ............................... = \"+(r.height/O).toFixed(1)),console.log(\"| tableProps.x .................................... = \"+(\"number\"==typeof p.x?(p.x/O).toFixed(1):p.x)),console.log(\"| tableProps.y .................................... = \"+(\"number\"==typeof p.y?(p.y/O).toFixed(1):p.y)),console.log(\"| tableProps.w .................................... = \"+(\"number\"==typeof p.w?(p.w/O).toFixed(1):p.w)),console.log(\"| tableProps.h .................................... = \"+(\"number\"==typeof p.h?(p.h/O).toFixed(1):p.h)),console.log(\"| tableProps.slideMargin .......................... = \"+(p.slideMargin||\"\")),console.log(\"| tableProps.margin ............................... = \"+p.margin),console.log(\"| tableProps.colW ................................. = \"+p.colW),console.log(\"| tableProps.autoPageSlideStartY .................. = \"+p.autoPageSlideStartY),console.log(\"| tableProps.autoPageCharWeight ................... = \"+p.autoPageCharWeight),console.log(\"|-- CALCULATIONS -------------------------------------------------------|\"),console.log(\"| tablePropX ...................................... = \"+l/O),console.log(\"| tablePropY ...................................... = \"+A/O),console.log(\"| tablePropW ...................................... = \"+n/O),console.log(\"| tablePropH ...................................... = \"+m/O),console.log(\"| tableCalcW ...................................... = \"+i/O)),p.slideMargin||0===p.slideMargin||(p.slideMargin=w[0]),t&&void 0!==t._margin?Array.isArray(t._margin)?c=t._margin:isNaN(Number(t._margin))||(c=[Number(t._margin),Number(t._margin),Number(t._margin),Number(t._margin)]):!p.slideMargin&&0!==p.slideMargin||(Array.isArray(p.slideMargin)?c=p.slideMargin:isNaN(p.slideMargin)||(c=[p.slideMargin,p.slideMargin,p.slideMargin,p.slideMargin])),p.verbose&&console.log(\"| arrInchMargins .................................. = [\"+c.join(\", \")+\"]\"),(e[0]||[]).forEach(function(e){var t=(e=e||{_type:oe.tablecell}).options||null;o+=Number(t&&t.colspan?t.colspan:1)}),p.verbose&&console.log(\"| numCols ......................................... = \"+o),!n&&p.colW&&(i=Array.isArray(p.colW)?p.colW.reduce(function(e,t){return e+t})*O:p.colW*o||0,p.verbose&&console.log(\"| tableCalcW ...................................... = \"+i/O)),a=i||ge((l?l/O:c[1])+c[3]),p.verbose&&console.log(\"| emuSlideTabW .................................... = \"+(a/O).toFixed(1)),!p.colW||!Array.isArray(p.colW))if(p.colW&&!isNaN(Number(p.colW))){var s=[];(e[0]||[]).forEach(function(){return s.push(p.colW)}),p.colW=[],s.forEach(function(e){Array.isArray(p.colW)&&p.colW.push(e)})}else{p.colW=[];for(var u=0;ut?t=ye(e.options.margin[0]):p.margin&&p.margin[0]&&ye(p.margin[0])>t&&(t=ye(p.margin[0])),e.options.margin&&e.options.margin[2]&&ye(e.options.margin[2])>a?a=ye(e.options.margin[2]):p.margin&&p.margin[2]&&ye(p.margin[2])>a&&(a=ye(p.margin[2]))):(e.options.margin&&e.options.margin[0]&&ge(e.options.margin[0])>t?t=ge(e.options.margin[0]):p.margin&&p.margin[0]&&ge(p.margin[0])>t&&(t=ge(p.margin[0])),e.options.margin&&e.options.margin[2]&&ge(e.options.margin[2])>a?a=ge(e.options.margin[2]):p.margin&&p.margin[2]&&ge(p.margin[2])>a&&(a=ge(p.margin[2])))});var e=0;if(0===f.length&&(e=A||ge(c[0])),0 \"+JSON.stringify(p)),i.push(p),p=[])),0o&&(l.push(t),t=[],a=\"\"),t.push(e),a+=e.text.toString()}),0=o[s]._lines.length&&(s=t)}),o.forEach(function(r,o){r._lines.forEach(function(e,t){if(h+r._lineHeight>d){p.verbose&&(console.log(\"\\n|-----------------------------------------------------------------------|\"),console.log(\"|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => \"+(h/O).toFixed(2)+\" + \"+(r._lineHeight/O).toFixed(2)+\" > \"+d/O),console.log(\"|-----------------------------------------------------------------------|\\n\\n\")),0a&&(a=e._lineHeight)}),g.rows.push(t),h+=a})}var a=i[o];Array.isArray(a.text)&&(a.text=a.text.concat(e)),o===s&&(h+=r._lineHeight),i.forEach(function(e,t){t'},contain:function(e,t){var a=e.h/e.w,r=a'},crop:function(e,t){var a=t.x,r=e.w-(t.x+t.w),o=t.y,l=e.h-(t.y+t.h);return''}};function Se(F){var B=F._name?'':\"\",I=1;return F._bkgdImgRid?B+='':F.background&&F.background.color?B+=\"\"+Pe(F.background)+\"\":!F.bkgd&&F._name&&F._name===r&&(B+=''),B+=\"\",B+='',B+='',B+='',F._slideObjects.forEach(function(r,e){var t,a,o=0,l=0,n=fe(\"75%\",\"X\",F._presLayout),i=0,s=\"\";switch(void 0!==F._slideLayout&&void 0!==F._slideLayout._slideObjects&&r.options&&r.options.placeholder&&(a=F._slideLayout._slideObjects.filter(function(e){return e.options.placeholder===r.options.placeholder})[0]),r.options=r.options||{},void 0!==r.options.x&&(o=fe(r.options.x,\"X\",F._presLayout)),void 0!==r.options.y&&(l=fe(r.options.y,\"Y\",F._presLayout)),void 0!==r.options.w&&(n=fe(r.options.w,\"X\",F._presLayout)),void 0!==r.options.h&&(i=fe(r.options.h,\"Y\",F._presLayout)),a&&(!a.options.x&&0!==a.options.x||(o=fe(a.options.x,\"X\",F._presLayout)),!a.options.y&&0!==a.options.y||(l=fe(a.options.y,\"Y\",F._presLayout)),!a.options.w&&0!==a.options.w||(n=fe(a.options.w,\"X\",F._presLayout)),!a.options.h&&0!==a.options.h||(i=fe(a.options.h,\"Y\",F._presLayout))),r.options.flipH&&(s+=' flipH=\"1\"'),r.options.flipV&&(s+=' flipV=\"1\"'),r.options.rotate&&(s+=' rot=\"'+be(r.options.rotate)+'\"'),r._type){case oe.table:var p,c=r.arrTabRows,h=r.options,d=0,f=0;c[0].forEach(function(e){p=e.options||null,d+=p&&p.colspan?Number(p.colspan):1});var A='';if(A+=' ',A+='',A+='',Array.isArray(h.colW)){A+=\"\";for(var m=0;m'}A+=\"\"}else{f=h.colW?h.colW:O,r.options.w&&!h.colW&&(f=Math.round((\"number\"==typeof r.options.w?r.options.w:1)/d)),A+=\"\";for(var g=0;g';A+=\"\"}c.forEach(function(l){for(var n,i,s,e=function(e){var t=l[e],a=null===(n=t.options)||void 0===n?void 0:n.colspan,r=null===(i=t.options)||void 0===i?void 0:i.rowspan;if(a&&1',e.forEach(function(e){var t,a,r=e,o={rowSpan:1<(null===(t=r.options)||void 0===t?void 0:t.rowspan)?r.options.rowspan:void 0,gridSpan:1<(null===(a=r.options)||void 0===a?void 0:a.colspan)?r.options.colspan:void 0,vMerge:r._vmerge?1:void 0,hMerge:r._hmerge?1:void 0},l=Object.keys(o).map(function(e){return[e,o[e]]}).filter(function(e){return e[0],!!e[1]}).map(function(e){return e[0]+'=\"'+e[1]+'\"'}).join(\" \");if(l=l&&\" \"+l,r._hmerge||r._vmerge)A+=\"\";else{var n=r.options||{};r.options=n,[\"align\",\"bold\",\"border\",\"color\",\"fill\",\"fontFace\",\"fontSize\",\"margin\",\"underline\",\"valign\"].forEach(function(e){h[e]&&!n[e]&&0!==n[e]&&(n[e]=h[e])});var i=n.valign?' anchor=\"'+n.valign.replace(/^c$/i,\"ctr\").replace(/^m$/i,\"ctr\").replace(\"center\",\"ctr\").replace(\"middle\",\"ctr\").replace(\"top\",\"t\").replace(\"btm\",\"b\").replace(\"bottom\",\"b\")+'\"':\"\",s=r._optImp&&r._optImp.fill&&r._optImp.fill.color?r._optImp.fill.color:r._optImp&&r._optImp.fill&&\"string\"==typeof r._optImp.fill?r._optImp.fill:\"\",p=(s=s||n.fill&&n.fill.color?n.fill.color:n.fill&&\"string\"==typeof n.fill?n.fill:\"\")?\"\"+Ce(s)+\"\":\"\",c=0===n.margin||n.margin?n.margin:k;Array.isArray(c)||\"number\"!=typeof c||(c=[c,c,c,c]);var d=\"\";d=1<=c[0]?' marL=\"'+ye(c[3])+'\" marR=\"'+ye(c[1])+'\" marT=\"'+ye(c[0])+'\" marB=\"'+ye(c[2])+'\"':' marL=\"'+ge(c[3])+'\" marR=\"'+ge(c[1])+'\" marT=\"'+ge(c[0])+'\" marB=\"'+ge(c[2])+'\"',A+=\"\"+Fe(r)+\"\",n.border&&Array.isArray(n.border)&&[{idx:3,name:\"lnL\"},{idx:1,name:\"lnR\"},{idx:0,name:\"lnT\"},{idx:2,name:\"lnB\"}].forEach(function(e){\"none\"!==n.border[e.idx].type?(A+=\"',A+=\"\"+Ce(n.border[e.idx].color)+\"\",A+='',A+=\"\"):A+=\"\"}),A+=p,A+=\" \",A+=\" \"}}),A+=\"\"}),A+=\" \",A+=\" \",A+=\" \",B+=A+=\"\",I++;break;case oe.text:case oe.placeholder:var y=r.options.shapeName?ue(r.options.shapeName):\"Object\"+(e+1);if(r.options.line||0!==i||(i=.3*O),r.options._bodyProp||(r.options._bodyProp={}),r.options.margin&&Array.isArray(r.options.margin)?(r.options._bodyProp.lIns=ye(r.options.margin[0]||0),r.options._bodyProp.rIns=ye(r.options.margin[1]||0),r.options._bodyProp.bIns=ye(r.options.margin[2]||0),r.options._bodyProp.tIns=ye(r.options.margin[3]||0)):\"number\"==typeof r.options.margin&&(r.options._bodyProp.lIns=ye(r.options.margin),r.options._bodyProp.rIns=ye(r.options.margin),r.options._bodyProp.bIns=ye(r.options.margin),r.options._bodyProp.tIns=ye(r.options.margin)),B+=\"\",B+='',r.options.hyperlink&&r.options.hyperlink.url&&(B+=''),r.options.hyperlink&&r.options.hyperlink.slide&&(B+=''),B+=\"\",B+=\"':\"/>\"),B+=\"\"+(\"placeholder\"===r._type?Be(r):Be(a))+\"\",B+=\"\",B+=\"\",B+='',B+='',\"custGeom\"===r.shape)B+=\"\",B+=\"\",B+=\"\",B+=\"\",B+=\"\",B+=\"\",B+='',B+=\"\",B+='',null===(t=r.options.points)||void 0===t||t.map(function(e,t){if(\"curve\"in e)switch(e.curve.type){case\"arc\":B+='';break;case\"cubic\":B+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t';break;case\"quadratic\":B+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'}else\"close\"in e?B+=\"\":e.moveTo||0===t?B+='':B+=''}),B+=\"\",B+=\"\",B+=\"\";else{if(B+='',r.options.rectRadius)B+='';else if(r.options.angleRange){for(var b=0;b<2;b++){var v=r.options.angleRange[b];B+=''}r.options.arcThicknessRatio&&(B+='')}B+=\"\"}B+=r.options.fill?Pe(r.options.fill):\"\",r.options.line&&(B+=r.options.line.width?'':\"\",r.options.line.color&&(B+=Pe(r.options.line)),r.options.line.dashType&&(B+=''),r.options.line.beginArrowType&&(B+=''),r.options.line.endArrowType&&(B+=''),B+=\"\"),r.options.shadow&&(r.options.shadow.type=r.options.shadow.type||\"outer\",r.options.shadow.blur=ye(r.options.shadow.blur||8),r.options.shadow.offset=ye(r.options.shadow.offset||4),r.options.shadow.angle=Math.round(6e4*(r.options.shadow.angle||270)),r.options.shadow.opacity=Math.round(1e5*(r.options.shadow.opacity||.75)),r.options.shadow.color=r.options.shadow.color||M.color,B+=\"\",B+=\"',B+='',B+='',B+=\"\",B+=\"\"),B+=\"\",B+=Fe(r),B+=\"\";break;case oe.image:var x=r.options,C=x.sizing,P=x.rounding,L=n,w=i;if(B+=\"\",B+=\" \",B+='',r.hyperlink&&r.hyperlink.url&&(B+=''),r.hyperlink&&r.hyperlink.slide&&(B+=''),B+=\" \",B+=' ',B+=\" \"+Be(a)+\"\",B+=\" \",B+=\"\",(F._relsMedia||[]).filter(function(e){return e.rId===r.imageRid})[0]&&\"svg\"===(F._relsMedia||[]).filter(function(e){return e.rId===r.imageRid})[0].extn?(B+='',B+=\" \",B+=' ',B+=' ',B+=\" \",B+=\" \",B+=\"\"):B+='',C&&C.type){var T=C.w?fe(C.w,\"X\",F._presLayout):n,S=C.h?fe(C.h,\"Y\",F._presLayout):i,R=fe(C.x||0,\"X\",F._presLayout),E=fe(C.y||0,\"Y\",F._presLayout);B+=Te[C.type]({w:L,h:w},{w:T,h:S,x:R,y:E}),L=T,w=S}else B+=\" \";B+=\"\",B+=\"\",B+=\" \",B+=' ',B+=' ',B+=\" \",B+=' ',B+=\"\",B+=\"\";break;case oe.media:\"online\"===r.mtype?(B+=\"\",B+=\" \",B+=' ',B+=\" \",B+=\" \",B+=' ',B+=\" \",B+=\" \",B+=' '):(B+=\"\",B+=\" \",B+=' ',B+=' ',B+=\" \",B+=' ',B+=\" \",B+=' ',B+=' ',B+=\" \",B+=\" \",B+=\" \",B+=\" \",B+=' '),B+=\" \",B+=\" \",B+=' ',B+=' ',B+=\" \",B+=' ',B+=\" \",B+=\"\";break;case oe.chart:var _=r.options;B+=\"\",B+=\" \",B+=' ',B+=\" \",B+=\" \"+Be(a)+\"\",B+=\" \",B+=' ',B+=' ',B+=' ',B+=' ',B+=\" \",B+=\" \",B+=\"\";break;default:B+=\"\"}}),F._slideNumberProps&&(F._slideNumberProps.align||(F._slideNumberProps.align=\"left\"),B+=' ',B+=\"\",B+=\"\",B+=\" \",(F._slideNumberProps.fontFace||F._slideNumberProps.fontSize||F._slideNumberProps.color)&&(B+='',F._slideNumberProps.color&&(B+=Pe(F._slideNumberProps.color)),F._slideNumberProps.fontFace&&(B+=''),B+=\"\"),B+=\"\",B+='',F._slideNumberProps.align.startsWith(\"l\")?B+='':F._slideNumberProps.align.startsWith(\"c\")?B+='':F._slideNumberProps.align.startsWith(\"r\")?B+='':B+='',B+='',B+=\"\"),B+=\"\",B+=\"\"}function Re(e,t){var a=0,r=''+p+'';return e._rels.forEach(function(e){a=Math.max(a,e.rId),-1':r+='':-1')}),(e._relsChart||[]).forEach(function(e){a=Math.max(a,e.rId),r+=''}),(e._relsMedia||[]).forEach(function(e){a=Math.max(a,e.rId),-1':-1':r+='':-1':r+='':-1':r+='')}),t.forEach(function(e,t){r+=''}),r+=\"\"}function Ee(e,t){var a=\"\",r=\"\",o=\"\",l=\"\",n=t?\"a:lvl1pPr\":\"a:pPr\",i=ye(c),s=\"<\"+n+(e.options.rtlMode?' rtl=\"1\" ':\"\");if(e.options.align)switch(e.options.align){case\"left\":s+=' algn=\"l\"';break;case\"right\":s+=' algn=\"r\"';break;case\"center\":s+=' algn=\"ctr\"';break;case\"justify\":s+=' algn=\"just\"';break;default:s+=\"\"}if(e.options.lineSpacing?r='':e.options.lineSpacingMultiple&&(r=''),e.options.indentLevel&&!isNaN(Number(e.options.indentLevel))&&0'),e.options.paraSpaceAfter&&!isNaN(Number(e.options.paraSpaceAfter))&&0'),\"object\"==typeof e.options.bullet)if(e&&e.options&&e.options.bullet&&e.options.bullet.indent&&(i=ye(e.options.bullet.indent)),e.options.bullet.type)\"number\"===e.options.bullet.type.toString().toLowerCase()&&(s+=' marL=\"'+(e.options.indentLevel&&0');else if(e.options.bullet.characterCode){var p=\"&#x\"+e.options.bullet.characterCode+\";\";!1===/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.characterCode)&&(console.warn(\"Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!\"),p=se.DEFAULT),s+=' marL=\"'+(e.options.indentLevel&&0'}else if(e.options.bullet.code){p=\"&#x\"+e.options.bullet.code+\";\";!1===/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.code)&&(console.warn(\"Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!\"),p=se.DEFAULT),s+=' marL=\"'+(e.options.indentLevel&&0'}else s+=' marL=\"'+(e.options.indentLevel&&0';else!0===e.options.bullet?(s+=' marL=\"'+(e.options.indentLevel&&0'):!1===e.options.bullet&&(s+=' indent=\"0\" marL=\"0\"',a=\"\");e.options.tabStops&&Array.isArray(e.options.tabStops)&&(l=\"\"+e.options.tabStops.map(function(e){return''}).join(\"\")+\"\");return s+=\">\"+r+o+a+l,t&&(s+=_e(e.options,!0)),s+=\"\"}function _e(e,t){var a,r=\"\",o=t?\"a:defRPr\":\"a:rPr\";if(r+=\"<\"+o+' lang=\"'+(e.lang?e.lang:\"en-US\")+'\"'+(e.lang?' altLang=\"en-US\"':\"\"),r+=e.fontSize?' sz=\"'+Math.round(e.fontSize)+'00\"':\"\",r+=e.hasOwnProperty(\"bold\")?' b=\"'+(e.bold?1:0)+'\"':\"\",r+=e.hasOwnProperty(\"italic\")?' i=\"'+(e.italic?1:0)+'\"':\"\",r+=e.hasOwnProperty(\"strike\")?' strike=\"'+(\"string\"==typeof e.strike?e.strike:\"sngStrike\")+'\"':\"\",\"object\"==typeof e.underline&&(null===(a=e.underline)||void 0===a?void 0:a.style)?r+=' u=\"'+e.underline.style+'\"':\"string\"==typeof e.underline?r+=' u=\"'+e.underline+'\"':e.hyperlink&&(r+=' u=\"sng\"'),e.baseline?r+=' baseline=\"'+Math.round(50*e.baseline)+'\"':e.subscript?r+=' baseline=\"-40000\"':e.superscript&&(r+=' baseline=\"30000\"'),r+=e.charSpacing?' spc=\"'+Math.round(100*e.charSpacing)+'\" kern=\"0\"':\"\",r+=' dirty=\"0\">',(e.color||e.fontFace||e.outline||\"object\"==typeof e.underline&&e.underline.color)&&(e.outline&&\"object\"==typeof e.outline&&(r+=''+Pe(e.outline.color||\"FFFFFF\")+\"\"),e.color&&(r+=Pe(e.color)),e.highlight&&(r+=\"\"+Ce(e.highlight)+\"\"),\"object\"==typeof e.underline&&e.underline.color&&(r+=\"\"+Pe(e.underline.color)+\"\"),e.glow&&(r+=\"\"+function(e,t){var a=\"\",r=me(t,e);return a+='',a+=Ce(r.color,''),a+=\"\"}(e.glow,T)+\"\"),e.fontFace&&(r+='')),e.hyperlink){if(\"object\"!=typeof e.hyperlink)throw new Error(\"ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` \");if(!e.hyperlink.url&&!e.hyperlink.slide)throw new Error(\"ERROR: 'hyperlink requires either `url` or `slide`'\");e.hyperlink.url?r+='\":\"/>\"):e.hyperlink.slide&&(r+='\":\"/>\")),e.color&&(r+=\"\\t\",r+='\\t\\t',r+='\\t\\t\\t',r+=\"\\t\\t\",r+=\"\\t\",r+=\"\")}return r+=\"\"}function Fe(r){var o=r.options||{},e=[],a=[];if(o&&r._type!==oe.tablecell&&(void 0===r.text||null===r.text))return\"\";var l=r._type===oe.tablecell?\"\":\"\";l+=function(e){var t=\"\",e.options.fit&&(\"none\"===e.options.fit?t+=\"\":\"shrink\"===e.options.fit?t+=\"\":\"resize\"===e.options.fit&&(t+=\"\")),e.options.shrinkText&&(t+=\"\"),t+=!1!==e.options._bodyProp.autoFit?\"\":\"\"):t+=' wrap=\"square\" rtlCol=\"0\">',t+=\"\",e._type===oe.tablecell?\"\":t}(r),0===o.h&&o.line&&o.align?l+='':\"placeholder\"===r._type?l+=\"\"+Ee(r,!0)+\"\":l+=\"\",\"string\"==typeof r.text||\"number\"==typeof r.text?e.push({text:r.text.toString(),options:o||{}}):r.text&&!Array.isArray(r.text)&&\"object\"==typeof r.text&&-1\";var a=\"\"),r.options.align=r.options.align||o.align,r.options.lineSpacing=r.options.lineSpacing||o.lineSpacing,r.options.lineSpacingMultiple=r.options.lineSpacingMultiple||o.lineSpacingMultiple,r.options.indentLevel=r.options.indentLevel||o.indentLevel,r.options.paraSpaceBefore=r.options.paraSpaceBefore||o.paraSpaceBefore,r.options.paraSpaceAfter=r.options.paraSpaceAfter||o.paraSpaceAfter,a=Ee(r,!1),l+=a,Object.entries(o).forEach(function(e){var t=e[0],a=e[1];r.options.hyperlink&&\"color\"===t||\"bullet\"===t||r.options[t]||(r.options[t]=a)}),l+=function(e){return e.text?\"\"+_e(e.options,!1)+\"\"+ue(e.text)+\"\":\"\"}(r),(!r.text&&o.fontSize||r.options.fontSize)&&(t=!0,o.fontSize=o.fontSize||r.options.fontSize)}),r._type===oe.tablecell&&(o.fontSize||o.fontFace)?o.fontFace?(l+='',l+='',l+='',l+='',l+=\"\"):l+='':l+=t?'':'',l+=\"\"}),l+=r._type===oe.tablecell?\"\":\"\"}function Be(e){if(!e)return\"\";var t=e.options&&e.options._placeholderIdx?e.options._placeholderIdx:\"\",a=e.options&&e.options._placeholderType?e.options._placeholderType:\"\";return\"\"}function Ie(e){return''+p+''+ue(function(e){var t=\"\";return e._slideObjects.forEach(function(e){e._type===oe.notes&&(t+=e.text&&e.text[0]?e.text[0].text:\"\")}),t.replace(/\\r*\\n/g,p)}(e))+''+e._slideNum+''}function Ne(e){e&&\"object\"==typeof e&&(\"outer\"!==e.type&&\"inner\"!==e.type&&\"none\"!==e.type&&(console.warn(\"Warning: shadow.type options are `outer`, `inner` or `none`.\"),e.type=\"outer\"),e.angle&&((isNaN(Number(e.angle))||e.angle<0||359 \\n'),e.file(\"_rels/.rels\",'\\n'),e.file(\"docProps/app.xml\",'Microsoft Excel0falseWorksheets1Sheet1\\n'),e.file(\"docProps/core.xml\",'PptxGenJSEly, Brent'+(new Date).toISOString()+''+(new Date).toISOString()+\"\\n\"),e.file(\"xl/_rels/workbook.xml.rels\",'\\n'),e.file(\"xl/styles.xml\",'\\n'),e.file(\"xl/theme/theme1.xml\",''),e.file(\"xl/workbook.xml\",'\\n'),e.file(\"xl/worksheets/_rels/sheet1.xml.rels\",'\\n');var r='';if(h.opts._type===Z.BUBBLE)r+='';else if(h.opts._type===Z.SCATTER)r+='';else{var l=A.length+A[0].labels.length*A[0].labels[0].length+A[0].labels.length,n=A.length+A[0].labels.length*A[0].labels[0].length+1;r+='',r+=''}h.opts._type===Z.BUBBLE?A.forEach(function(e,t){0===t?r+=\"X-Axis\":(r+=\"\"+ue(e.name||\" \")+\"\",r+=\"\"+ue(\"Size \"+t)+\"\")}):A.forEach(function(e){r+=\"\"+ue((e.name||\" \").replace(\"X-Axis\",\"X-Values\"))+\"\"}),h.opts._type!==Z.BUBBLE&&h.opts._type!==Z.SCATTER&&A[0].labels.forEach(function(e){e.forEach(function(e){r+=\"\"+ue(e)+\"\"})}),r+=\"\\n\",e.file(\"xl/sharedStrings.xml\",r);var i='';h.opts._type===Z.BUBBLE||(h.opts._type===Z.SCATTER?(i+='',i+='',A.forEach(function(e,t){i+=''})):(i+='
',i+='',A[0].labels.forEach(function(e,t){i+=''}),A.forEach(function(e,t){i+=''}))),i+=\"\",i+='',i+=\"
\",e.file(\"xl/tables/table1.xml\",i);var s='';if(s+='',h.opts._type===Z.BUBBLE?s+='':h.opts._type===Z.SCATTER?s+='':s+='',s+='',s+='',h.opts._type===Z.BUBBLE){s+=\"\",s+='',s+=\"\",s+=\"\",s+='',s+='0';for(var p=1;p',s+=\"\"+p+\"\",s+=\"\";s+=\"\",A[0].values.forEach(function(e,t){s+='',s+=''+e+\"\";for(var a=1,r=1;r',s+=\"\"+(A[r].values[t]||\"\")+\"\",s+=\"\",s+='',s+=\"\"+(A[r].sizes[t]||\"\")+\"\",s+=\"\",a++;s+=\"\"})}else if(h.opts._type===Z.SCATTER){s+=\"\",s+='',s+=\"\",s+=\"\",s+='',s+='0';for(var c=1;c',s+=\"\"+c+\"\",s+=\"\";s+=\"\",A[0].values.forEach(function(e,t){s+='',s+=''+e+\"\";for(var a=1;a',s+=\"\"+(A[a].values[t]||0===A[a].values[t]?A[a].values[t]:\"\")+\"\",s+=\"\";s+=\"\"})}else{s+=\"\",s+='',s+=\"\",s+=\"\",s+='',A[0].labels.forEach(function(e,t){s+='',s+=\"0\",s+=\"\"});for(var d=1;d<=A.length;d++)s+='',s+=\"\"+d+\"\",s+=\"\";s+=\"\",A[0].labels[0].forEach(function(e,t){s+='';for(var a=A[0].labels.length-1;0<=a;a--)s+='',s+=\"\"+(A.length+t+a*A[0].labels[0].length+1)+\"\",s+=\"\";for(var r=0;r',s+=\"\"+(A[r].values[t]||\"\")+\"\",s+=\"\";s+=\"\"})}s+=\"\",s+='',s+=\"\\n\",e.file(\"xl/worksheets/sheet1.xml\",s),e.generateAsync({type:\"base64\"}).then(function(e){f.file(\"ppt/embeddings/Microsoft_Excel_Worksheet\"+h.globalId+\".xlsx\",e,{base64:!0}),f.file(\"ppt/charts/_rels/\"+h.fileName+\".rels\",''),f.file(\"ppt/charts/\"+h.fileName,function(o){var l='',n=!1;l+='',l+='',l+=\"\",o.opts.showTitle?(l+=qe({title:o.opts.title||\"Chart Title\",color:o.opts.titleColor,fontFace:o.opts.titleFontFace,fontSize:o.opts.titleFontSize||C,titleAlign:o.opts.titleAlign,titleBold:o.opts.titleBold,titlePos:o.opts.titlePos,titleRotate:o.opts.titleRotate}),l+=''):l+='';o.opts._type===Z.BAR3D&&(l+=\"\",l+=' ',l+=' ',l+=' ',l+=' ',l+=\"\");l+=\"\",o.opts.layout?(l+=\"\",l+=\" \",l+=' ',l+=' ',l+=' ',l+=' ',l+=' ',l+=' ',l+=' ',l+=\" \",l+=\"\"):l+=\"\";Array.isArray(o.opts._type)?o.opts._type.forEach(function(e){var t=me(o.opts,e.options),a=t.secondaryValAxis?R:S,r=t.secondaryCatAxis?_:E;n=n||t.secondaryValAxis,l+=je(e.type,e.data,t,a,r)}):l+=je(o.opts._type,o.data,o.opts,S,E);if(o.opts._type!==Z.PIE&&o.opts._type!==Z.DOUGHNUT){if(o.opts.valAxes&&1\",r+=' ',r+=' ',r+=' ',r+=' ',r+=\"none\"!==t.serGridLine.style?Je(t.serGridLine):\"\",t.showSerAxisTitle&&(r+=qe({color:t.serAxisTitleColor,fontFace:t.serAxisTitleFontFace,fontSize:t.serAxisTitleFontSize,titleRotate:t.serAxisTitleRotate,title:t.serAxisTitle||\"Axis Title\"}));r+=' ',r+=' ',r+=' ',r+=' ',r+=\" \",r+=' ',r+=!1===t.serAxisLineShow?\"\":\"\"+Ce(t.serAxisLineColor||u.color)+\"\",r+=' ',r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=' ',r+=\" \"+Ce(t.serAxisLabelColor||g)+\"\",r+=' ',r+=\" \",r+=\" \",r+=' ',r+=\" \",r+=\" \",r+=' ',r+=' ',t.serAxisLabelFrequency&&(r+=' ');t.serLabelFormatCode&&([\"serAxisBaseTimeUnit\",\"serAxisMajorTimeUnit\",\"serAxisMinorTimeUnit\"].forEach(function(e){!t[e]||\"string\"==typeof t[e]&&-1!==[\"days\",\"months\",\"years\"].indexOf(e.toLowerCase())||(console.warn(\"`\"+e+\"` must be one of: 'days','months','years' !\"),t[e]=null)}),t.serAxisBaseTimeUnit&&(r+=' '),t.serAxisMajorTimeUnit&&(r+=' '),t.serAxisMinorTimeUnit&&(r+=' '),t.serAxisMajorUnit&&(r+=' '),t.serAxisMinorUnit&&(r+=' '));return r+=\"\"}(o.opts,F,S)))}o.opts.showDataTable&&(l+=\"\",l+=' ',l+=' ',l+=' ',l+=' ',l+=\" \",l+=\" \",l+=' ',l+=\" \",l+=\" \",l+=\" \",l+='\\t ',l+=\"\\t \",l+=\"\\t \",l+='\\t\\t',l+=' ',l+='\\t\\t\\t',l+='\\t\\t\\t',l+='\\t\\t\\t',l+='\\t\\t\\t',l+=\"\\t\\t \",l+=\"\\t\\t\",l+='\\t\\t',l+=\"\\t \",l+=\"\\t\",l+=\"\");l+=\" \",l+=o.opts.fill?Pe(o.opts.fill):\"\",l+=o.opts.border?''+Pe(o.opts.border.color)+\"\":\"\",l+=\" \",l+=\" \",l+=\"\",o.opts.showLegend&&(l+=\"\",l+='',l+='',(o.opts.legendFontFace||o.opts.legendFontSize||o.opts.legendColor)&&(l+=\"\",l+=\" \",l+=\" \",l+=\" \",l+=\" \",l+=o.opts.legendFontSize?'':\"\",o.opts.legendColor&&(l+=Pe(o.opts.legendColor)),o.opts.legendFontFace&&(l+=''),o.opts.legendFontFace&&(l+=''),l+=\" \",l+=\" \",l+=' ',l+=\" \",l+=\"\"),l+=\"\");l+=' ',l+=' ',o.opts._type===Z.SCATTER&&(l+='');return l+=\"\",l+=\"\",l+=\" \",l+=' ',l+=\" \",l+=\"\",l+='',l+=\"\"}(h)),t(null)}).catch(function(e){a(e)})})}function je(r,o,l,e,t){var n=\"\";switch(r){case Z.AREA:case Z.BAR:case Z.BAR3D:case Z.LINE:case Z.RADAR:n+=\"\",r===Z.AREA&&\"stacked\"===l.barGrouping&&(n+=''),r!==Z.BAR&&r!==Z.BAR3D||(n+='',n+=''),r===Z.RADAR&&(n+=''),n+='';var i=-1;o.forEach(function(e){i++;var t=e.index;n+=\"\",n+=' ',n+=' ',n+=\" \",n+=\" \",n+=\" Sheet1!$\"+Xe(t+e.labels.length)+\"$1\",n+=' '+ue(e.name)+\"\",n+=\" \",n+=\" \",n+=' ';var a=l.chartColors?l.chartColors[i%l.chartColors.length]:null;n+=\" \",\"transparent\"===a?n+=\"\":l.chartColorsOpacity?n+=\"\"+Ce(a,'')+\"\":n+=\"\"+Ce(a)+\"\",r===Z.LINE?0===l.lineSize?n+=\"\":(n+=''+Ce(a)+\"\",n+=''):l.dataBorder&&(n+=''+Ce(l.dataBorder.color)+''),n+=Ke(l.shadow,L),n+=\" \",r!==Z.RADAR&&(n+=\" \",n+=' ',l.dataLabelBkgrdColors&&(n+=\" \",n+=\" \"+Ce(a)+\"\",n+=\" \"),n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+Ce(l.dataLabelColor||g)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=\" \"),r!==Z.LINE&&r!==Z.RADAR||(n+=\"\",n+=' ',l.lineDataSymbolSize&&(n+=' '),n+=\" \",n+=\" \"+Ce(l.chartColors[t+1>l.chartColors.length?Math.floor(Math.random()*l.chartColors.length):t])+\"\",n+=' '+Ce(l.lineDataSymbolLineColor||a)+'',n+=\" \",n+=\" \",n+=\"\"),(r===Z.BAR||r===Z.BAR3D)&&1===o.length&&l.chartColors!==I&&1\",n+=' ',n+=' ',n+=' ',n+=\" \",0===l.lineSize?n+=\"\":r===Z.BAR?(n+=\"\",n+=' ',n+=\"\"):(n+=\"\",n+=\" \",n+=' ',n+=\" \",n+=\"\"),n+=Ke(l.shadow,L),n+=\" \",n+=\" \"}),n+=\"\",l.catLabelFormatCode?(n+=\" \",n+=\" Sheet1!$A$2:$A$\"+(e.labels[0].length+1)+\"\",n+=\" \",n+=\" \"+(l.catLabelFormatCode||\"General\")+\"\",n+=' ',e.labels[0].forEach(function(e,t){n+=''+ue(e)+\"\"}),n+=\" \",n+=\" \"):(n+=\" \",n+=\" Sheet1!$A$2:$\"+Xe(e.labels.length-1)+\"$\"+(e.labels[0].length+1)+\"\",n+=\" \",n+='\\t ',e.labels.forEach(function(e){n+=\" \",e.forEach(function(e,t){n+=''+ue(e)+\"\"}),n+=\" \"}),n+=\" \",n+=\" \"),n+=\"\",n+=\"\",n+=\" \",n+=\" Sheet1!$\"+Xe(t+e.labels.length)+\"$2:$\"+Xe(t+e.labels.length)+\"$\"+(e.labels[0].length+1)+\"\",n+=\" \",n+=\" \"+(l.valLabelFormatCode||l.dataTableFormatCode||\"General\")+\"\",n+=' ',e.values.forEach(function(e,t){n+=''+(e||0===e?e:\"\")+\"\"}),n+=\" \",n+=\" \",n+=\"\",r===Z.LINE&&(n+=''),n+=\"\"}),n+=\" \",n+=' ',n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+Ce(l.dataLabelColor||g)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=\" \",r===Z.BAR?(n+=' ',n+=' '):r===Z.BAR3D?(n+=' ',n+=' ',n+=' '):r===Z.LINE&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=\"\";break;case Z.SCATTER:n+=\"\",n+='',n+='',i=-1,o.filter(function(e,t){return 0\",n+=' ',n+=' ',n+=\" \",n+=\" \",n+=\" Sheet1!$\"+B[e+1]+\"$1\",n+=' '+a.name+\"\",n+=\" \",n+=\" \",n+=\" \";var t=l.chartColors[i%l.chartColors.length];if(\"transparent\"===t?n+=\"\":l.chartColorsOpacity?n+=\"\"+Ce(t,'')+\"\":n+=\"\"+Ce(t)+\"\",0===l.lineSize?n+=\"\":(n+=''+Ce(t)+\"\",n+=''),n+=Ke(l.shadow,L),n+=\" \",n+=\"\",n+=' ',l.lineDataSymbolSize&&(n+=' '),n+=\" \",n+=\" \"+Ce(l.chartColors[e+1>l.chartColors.length?Math.floor(Math.random()*l.chartColors.length):e])+\"\",n+=' '+Ce(l.lineDataSymbolLineColor||l.chartColors[i%l.chartColors.length])+'',n+=\" \",n+=\" \",n+=\"\",l.showLabel){var r=Ae(\"-xxxx-xxxx-xxxx-xxxxxxxxxxxx\");!a.labels[0]||\"custom\"!==l.dataLabelFormatScatter&&\"customXY\"!==l.dataLabelFormatScatter||(n+=\"\",a.labels[0].forEach(function(e,t){\"custom\"!==l.dataLabelFormatScatter&&\"customXY\"!==l.dataLabelFormatScatter||(n+=\" \",n+=' ',n+=\" \",n+=\" \",n+=\"\\t\\t\\t\",n+=\"\\t\\t\\t\\t\",n+=\"\\t\\t\\t\",n+=\" \\t\",n+=\" \\t\",n+=\"\\t\\t\\t\\t\",n+=\"\\t\\t\\t\\t\\t\",n+=\"\\t\\t\\t\\t\",n+=\" \\t\",n+=' \\t\\t',n+=\" \\t\\t\"+ue(e)+\"\",n+=\" \\t\",\"customXY\"!==l.dataLabelFormatScatter||/^ *$/.test(e)||(n+=\" \\t\",n+=' \\t\\t',n+=\" \\t\\t (\",n+=\" \\t\",n+=' \\t',n+=' \\t\\t',n+=\" \\t\\t\",n+=\" \\t\\t\\t\",n+=\" \\t\\t\",n+=\" \\t\\t[\"+ue(a.name)+\"\",n+=\" \\t\",n+=\" \\t\",n+=' \\t\\t',n+=\" \\t\\t, \",n+=\" \\t\",n+=' \\t',n+=' \\t\\t',n+=\" \\t\\t\",n+=\" \\t\\t\\t\",n+=\" \\t\\t\",n+=\" \\t\\t[\"+ue(a.name)+\"]\",n+=\" \\t\",n+=\" \\t\",n+=' \\t\\t',n+=\" \\t\\t)\",n+=\" \\t\",n+=' \\t'),n+=\" \\t\",n+=\" \",n+=\" \",n+=\" \",n+=\" \\t\",n+=\" \\t\",n+=\" \\t\\t\",n+=\" \\t\",n+=\" \\t\",n+=\" \",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+='\\t ',n+=\" \",n+=' ',n+=' ',n+='\\t\\t\\t',n+=\" \",n+=\"\\t\\t\",n+=\"\")}),n+=\"\"),\"XY\"===l.dataLabelFormatScatter&&(n+=\"\",n+=\"\\t\",n+=\"\\t\\t\",n+=\"\\t\\t\",n+=\"\\t\\t\\t\",n+=\"\\t\\t\",n+=\"\\t \\t\",n+=\"\\t\",n+=\"\\t\",n+=\"\\t\\t\",n+=\"\\t\\t\\t\",n+=\"\\t\\t\",n+=\"\\t\\t\",n+=\"\\t\\t\",n+=\"\\t \\t\",n+=\" \\t\\t\",n+=\"\\t \\t\",n+='\\t \\t',n+=\"\\t\\t\",n+=\"\\t\",l.dataLabelPosition&&(n+=' '),n+='\\t',n+=' ',n+=' ',n+='\\t',n+='\\t',n+='\\t',n+=\"\\t\",n+='\\t\\t',n+='\\t\\t\\t',n+=\"\\t\\t\",n+=\"\\t\",n+=\"\")}1===o.length&&l.chartColors!==I&&a.values.forEach(function(e,t){var a=e<0?l.invertedColors||l.chartColors||I:l.chartColors||[];n+=\" \",n+=' ',n+=' ',n+=' ',n+=\" \",0===l.lineSize?n+=\"\":(n+=\"\",n+=' ',n+=\"\"),n+=Ke(l.shadow,L),n+=\" \",n+=\" \"}),n+=\"\",n+=\" \",n+=\" Sheet1!$A$2:$A$\"+(o[0].values.length+1)+\"\",n+=\" \",n+=\" General\",n+=' ',o[0].values.forEach(function(e,t){n+=''+(e||0===e?e:\"\")+\"\"}),n+=\" \",n+=\" \",n+=\"\",n+=\"\",n+=\" \",n+=\" Sheet1!$\"+Xe(e+1)+\"$2:$\"+Xe(e+1)+\"$\"+(o[0].values.length+1)+\"\",n+=\" \",n+=\" General\",n+=' ',o[0].values.forEach(function(e,t){n+=''+(a.values[t]||0===a.values[t]?a.values[t]:\"\")+\"\"}),n+=\" \",n+=\" \",n+=\"\",n+='',n+=\"\"}),n+=\" \",n+=' ',n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+Ce(l.dataLabelColor||g)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=\" \",n+=' ',n+=' ',n+=\"\";break;case Z.BUBBLE:n+=\"\",n+='',i=-1;var s=1;o.filter(function(e,t){return 0\",n+=' ',n+=' ',n+=\" \",n+=\" \",n+=\" Sheet1!$\"+B[s]+\"$1\",n+=' '+a.name+\"\",n+=\" \",n+=\" \",n+=\"\";var t=l.chartColors[i%l.chartColors.length];\"transparent\"===t?n+=\"\":l.chartColorsOpacity?n+=\"\"+Ce(t,'')+\"\":n+=\"\"+Ce(t)+\"\",0===l.lineSize?n+=\"\":l.dataBorder?n+=''+Ce(l.dataBorder.color)+'':(n+=''+Ce(t)+\"\",n+=''),n+=Ke(l.shadow,L),n+=\"\",n+=\"\",n+=\" \",n+=\" Sheet1!$A$2:$A$\"+(o[0].values.length+1)+\"\",n+=\" \",n+=\" General\",n+=' ',o[0].values.forEach(function(e,t){n+=''+(e||0===e?e:\"\")+\"\"}),n+=\" \",n+=\" \",n+=\"\",n+=\"\",n+=\" \",n+=\" Sheet1!$\"+Xe(s)+\"$2:$\"+Xe(s)+\"$\"+(o[0].values.length+1)+\"\",s++,n+=\" \",n+=\" General\",n+=' ',o[0].values.forEach(function(e,t){n+=''+(a.values[t]||0===a.values[t]?a.values[t]:\"\")+\"\"}),n+=\" \",n+=\" \",n+=\"\",n+=\" \",n+=\" \",n+=\" Sheet1!$\"+Xe(s)+\"$2:$\"+Xe(e+2)+\"$\"+(a.sizes.length+1)+\"\",s++,n+=\" \",n+=\" General\",n+='\\t ',a.sizes.forEach(function(e,t){n+=''+(e||\"\")+\"\"}),n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\"\"}),n+=\" \",n+=' ',n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+Ce(l.dataLabelColor||g)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=\" \",n+=' ',n+=' ',n+=\"\";break;case Z.DOUGHNUT:case Z.PIE:var a=o[0];n+=\"\",n+=' ',n+=\"\",n+=' ',n+=' ',n+=\" \",n+=\" \",n+=\" Sheet1!$B$1\",n+=\" \",n+=' ',n+=' '+ue(a.name)+\"\",n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=' ',l.dataNoEffects?n+=\"\":n+=Ke(l.shadow,L),n+=\" \",a.labels[0].forEach(function(e,t){n+=\"\",n+=' ',n+=' ',n+=\" \",n+=\"\"+Ce(l.chartColors[t+1>l.chartColors.length?Math.floor(Math.random()*l.chartColors.length):t])+\"\",l.dataBorder&&(n+=''+Ce(l.dataBorder.color)+''),n+=Ke(l.shadow,L),n+=\" \",n+=\"\"}),n+=\"\",a.labels[0].forEach(function(e,t){n+=\"\",n+=' ',n+=' ',n+=\" \",n+=\" \",n+=\" \",n+=' ',n+=\" \"+Ce(l.dataLabelColor||g)+\"\",n+=' ',n+=\" \",n+=\" \",n+=\" \",r===Z.PIE&&l.dataLabelPosition&&(n+=' '),n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=' ',n+=\" \"}),n+=' ',n+=\"\\t\",n+=\"\\t \",n+=\"\\t \",n+=\"\\t \",n+=\"\\t\\t\",n+='\\t\\t ',n+='\\t\\t\\t',n+=\"\\t\\t \",n+=\"\\t\\t\",n+=\"\\t \",n+=\"\\t\",n+=r===Z.PIE?'':\"\",n+='\\t',n+='\\t',n+='\\t',n+='\\t',n+='\\t',n+='\\t',n+=' ',n+=\"\",n+=\"\",n+=\" \",n+=\" Sheet1!$A$2:$A$\"+(a.labels[0].length+1)+\"\",n+=\" \",n+='\\t ',a.labels[0].forEach(function(e,t){n+=''+ue(e)+\"\"}),n+=\" \",n+=\" \",n+=\"\",n+=\" \",n+=\" \",n+=\" Sheet1!$B$2:$B$\"+(a.labels[0].length+1)+\"\",n+=\" \",n+='\\t ',a.values.forEach(function(e,t){n+=''+(e||0===e?e:\"\")+\"\"}),n+=\" \",n+=\" \",n+=\" \",n+=\" \",n+=' ',r===Z.DOUGHNUT&&(n+=' '),n+=\"\";break;default:n+=\"\"}return n}function Qe(t,e,a){var r=\"\";return t._type===Z.SCATTER||t._type===Z.BUBBLE?r+=\"\":r+=\"\",r+=' ',r+=\" \",r+='',!t.catAxisMaxVal&&0!==t.catAxisMaxVal||(r+=''),!t.catAxisMinVal&&0!==t.catAxisMinVal||(r+=''),r+=\"\",r+=' ',r+=' ',r+=\"none\"!==t.catGridLine.style?Je(t.catGridLine):\"\",t.showCatAxisTitle&&(r+=qe({color:t.catAxisTitleColor,fontFace:t.catAxisTitleFontFace,fontSize:t.catAxisTitleFontSize,titleRotate:t.catAxisTitleRotate,title:t.catAxisTitle||\"Axis Title\"})),t._type===Z.SCATTER||t._type===Z.BUBBLE?r+=' ':r+=' ',t._type===Z.SCATTER?(r+=' ',r+=' ',r+=' '):(r+=' ',r+=' ',r+=' '),r+=\" \",r+=' ',r+=!1===t.catAxisLineShow?\"\":\"\"+Ce(t.catAxisLineColor||u.color)+\"\",r+=' ',r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=' ',r+=\" \"+Ce(t.catAxisLabelColor||g)+\"\",r+=' ',r+=\" \",r+=\" \",r+=' ',r+=\" \",r+=\" \",r+=' ',r+=\" ',r+=' ',r+=' ',r+=' ',t.catAxisLabelFrequency&&(r+=' '),!t.catLabelFormatCode&&t._type!==Z.SCATTER&&t._type!==Z.BUBBLE||(t.catLabelFormatCode&&([\"catAxisBaseTimeUnit\",\"catAxisMajorTimeUnit\",\"catAxisMinorTimeUnit\"].forEach(function(e){!t[e]||\"string\"==typeof t[e]&&-1!==[\"days\",\"months\",\"years\"].indexOf(t[e].toLowerCase())||(console.warn(\"`\"+e+\"` must be one of: 'days','months','years' !\"),t[e]=null)}),t.catAxisBaseTimeUnit&&(r+=''),t.catAxisMajorTimeUnit&&(r+=''),t.catAxisMinorTimeUnit&&(r+='')),t.catAxisMajorUnit&&(r+=''),t.catAxisMinorUnit&&(r+='')),t._type===Z.SCATTER||t._type===Z.BUBBLE?r+=\"\":r+=\"\",r}function Ye(e,t){var a=t===S?\"col\"===e.barDir?\"l\":\"b\":\"col\"!==e.barDir?\"r\":\"t\",r=\"\",o=\"r\"==a||\"t\"==a?\"max\":\"autoZero\",l=t===S?E:_;return r+=\"\",r+=' ',r+=\" \",e.valAxisLogScaleBase&&(r+=' '),r+=' ',!e.valAxisMaxVal&&0!==e.valAxisMaxVal||(r+=''),!e.valAxisMinVal&&0!==e.valAxisMinVal||(r+=''),r+=\" \",r+=' ',r+=' ',\"none\"!==e.valGridLine.style&&(r+=Je(e.valGridLine)),e.showValAxisTitle&&(r+=qe({color:e.valAxisTitleColor,fontFace:e.valAxisTitleFontFace,fontSize:e.valAxisTitleFontSize,titleRotate:e.valAxisTitleRotate,title:e.valAxisTitle||\"Axis Title\"})),r+=\"',e._type===Z.SCATTER?(r+=' ',r+=' ',r+=' '):(r+=' ',r+=' ',r+=' '),r+=\" \",r+=' ',r+=!1===e.valAxisLineShow?\"\":\"\"+Ce(e.valAxisLineColor||u.color)+\"\",r+=' ',r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=\" \",r+=' ',r+=\" \"+Ce(e.valAxisLabelColor||g)+\"\",r+=' ',r+=\" \",r+=\" \",r+=' ',r+=\" \",r+=\" \",r+=' ',r+=' ',r+=' ',e.valAxisMajorUnit&&(r+=' '),e.valAxisDisplayUnit&&(r+=''+(e.valAxisDisplayUnitLabel?\"\":\"\")+\"\"),r+=\"\"}function qe(e){var t=\"left\"===e.titleAlign||\"right\"===e.titleAlign?'':\"\",a=e.titleRotate?'':\"\",r=e.fontSize?'sz=\"'+Math.round(100*e.fontSize)+'\"':\"\",o=!0===e.titleBold?1:0,l=e.titlePos&&e.titlePos.x&&e.titlePos.y?'':\"\";return\"\\n\\t \\n\\t \\n\\t \"+a+\"\\n\\t \\n\\t \\n\\t \"+t+\"\\n\\t \\n\\t '+Ce(e.color||g)+'\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \\n\\t '+Ce(e.color||g)+'\\n\\t \\n\\t \\n\\t '+(ue(e.title)||\"\")+\"\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \"+l+'\\n\\t \\n\\t'}function Xe(e){var t=\"\";return e<=26?t=B[e]:(t+=B[Math.floor(e/B.length)-1],t+=B[e%B.length]),t}function Ke(e,t){if(!e)return\"\";if(\"object\"!=typeof e)return console.warn(\"`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`\"),\"\";var a=\"\",r=me(t,e),o=r.type||\"outer\",l=ye(r.blur),n=ye(r.offset),i=Math.round(6e4*r.angle),s=r.color,p=Math.round(1e5*r.opacity);return a+=\"',a+='',a+='',a+=\"\",a+=\"\"}function Je(e){var t=\"\";return t+=\" \",t+=' ',t+=' ',t+=' ',t+=\" \",t+=\" \",t+=\"\"}function Ze(e){var l=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null,n=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"https\"):null,t=[];return e._relsMedia.filter(function(e){return\"online\"!==e.type&&!e.data&&(!e.path||e.path&&-1===e.path.indexOf(\"preencoded\"))}).forEach(function(o){t.push(new Promise(function(a,r){if(l&&0!==o.path.indexOf(\"http\"))try{var e=l.readFileSync(o.path);o.data=Buffer.from(e).toString(\"base64\"),a(\"done\")}catch(e){o.data=de,r('ERROR: Unable to read media: \"'+o.path+'\"\\n'+e.toString())}else if(l&&n&&0===o.path.indexOf(\"http\"))n.get(o.path,function(e){var t=\"\";e.setEncoding(\"binary\"),e.on(\"data\",function(e){return t+=e}),e.on(\"end\",function(){o.data=Buffer.from(t,\"binary\").toString(\"base64\"),a(\"done\")}),e.on(\"error\",function(e){o.data=de,r(\"ERROR! Unable to load image (https.get): \"+o.path)})});else{var t=new XMLHttpRequest;t.onload=function(){var e=new FileReader;e.onloadend=function(){o.data=e.result,o.isSvgPng?$e(o).then(function(){a(\"done\")}).catch(function(e){r(e)}):a(\"done\")},e.readAsDataURL(t.response)},t.onerror=function(e){o.data=de,r(\"ERROR! Unable to load image (xhr.onerror): \"+o.path)},t.open(\"GET\",o.path),t.responseType=\"blob\",t.send()}}))}),e._relsMedia.filter(function(e){return e.isSvgPng&&e.data}).forEach(function(e){l?(e.data=de,t.push(Promise.resolve().then(function(){return\"done\"}))):t.push($e(e))}),t}function $e(o){return new Promise(function(a,t){var r=new Image;r.onload=function(){r.width+r.height===0&&r.onerror(\"h/w=0\");var e=document.createElement(\"CANVAS\"),t=e.getContext(\"2d\");e.width=r.width,e.height=r.height,t.drawImage(r,0,0);try{o.data=e.toDataURL(o.type),a(\"done\")}catch(e){r.onerror(e)}e=null},r.onerror=function(e){o.data=de,t(\"ERROR! Unable to load image (image.onerror): \"+o.path)},r.src=\"string\"==typeof o.data?o.data:de})}function et(){var o=this;this._version=\"3.9.0-beta-20210930-2159\",this._alignH=Q,this._alignV=q,this._chartType=z,this._outputType=U,this._schemeColor=V,this._shapeType=W,this._charts=Z,this._colors=ee,this._shapes=K,this.addNewSlide=function(e){var t=0')})}),r+='',r+='',r+='',r+='',e.forEach(function(e,t){r+='',r+='',e._relsChart.forEach(function(e){r+=' '})}),r+='',r+='',r+='',r+='',t.forEach(function(e,t){r+='',(e._relsChart||[]).forEach(function(e){r+=' '})}),e.forEach(function(e,t){r+=' '}),a._relsChart.forEach(function(e){r+=' '}),a._relsMedia.forEach(function(e){\"image\"!==e.type&&\"online\"!==e.type&&\"chart\"!==e.type&&\"m4v\"!==e.extn&&-1===r.indexOf(e.type)&&(r+=' ')}),r+=' ',r+=' ',r+=\"\"}(o.slides,o.slideLayouts,o.masterSlide)),r.file(\"_rels/.rels\",''+p+'\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t'),r.file(\"docProps/app.xml\",function(e,t){return''+p+'\\n\\t0\\n\\t0\\n\\tMicrosoft Office PowerPoint\\n\\tOn-screen Show (16:9)\\n\\t0\\n\\t'+e.length+\"\\n\\t\"+e.length+'\\n\\t0\\n\\t0\\n\\tfalse\\n\\t\\n\\t\\t\\n\\t\\t\\tFonts Used\\n\\t\\t\\t2\\n\\t\\t\\tTheme\\n\\t\\t\\t1\\n\\t\\t\\tSlide Titles\\n\\t\\t\\t'+e.length+'\\n\\t\\t\\n\\t\\n\\t\\n\\t\\t\\n\\t\\t\\tArial\\n\\t\\t\\tCalibri\\n\\t\\t\\tOffice Theme\\n\\t\\t\\t'+e.map(function(e,t){return\"Slide \"+(t+1)+\"\\n\"}).join(\"\")+\"\\n\\t\\t\\n\\t\\n\\t\"+t+\"\\n\\tfalse\\n\\tfalse\\n\\tfalse\\n\\t16.0000\\n\\t\"}(o.slides,o.company)),r.file(\"docProps/core.xml\",function(e,t,a,r){return'\\n\\t\\n\\t\\t'+ue(e)+\"\\n\\t\\t\"+ue(t)+\"\\n\\t\\t\"+ue(a)+\"\\n\\t\\t\"+ue(a)+\"\\n\\t\\t\"+r+'\\n\\t\\t'+(new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\")+'\\n\\t\\t'+(new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\")+\"\\n\\t\"}(o.title,o.subject,o.author,o.revision)),r.file(\"ppt/_rels/presentation.xml.rels\",function(e){var t=1,a=''+p;a+='',a+='';for(var r=1;r<=e.length;r++)a+='';return a+=''}(o.slides)),r.file(\"ppt/theme/theme1.xml\",''+p+''),r.file(\"ppt/presentation.xml\",function(e){var t=''+p+'';t+='',t+=\"\",e.slides.forEach(function(e){return t+=''}),t+=\"\",t+='',t+='',t+='',t+=\"\";for(var a=1;a<10;a++)t+=\"\";return t+=\"\",e.sections&&0',t+='',e.sections.forEach(function(e){t+='',e._slides.forEach(function(e){return t+=''}),t+=\"\"}),t+=\"\",t+='',t+=\"\"),t+=\"\"}(o)),r.file(\"ppt/presProps.xml\",''+p+''),r.file(\"ppt/tableStyles.xml\",''+p+''),r.file(\"ppt/viewProps.xml\",''+p+''),o.slideLayouts.forEach(function(e,t){r.file(\"ppt/slideLayouts/slideLayout\"+(t+1)+\".xml\",function(e){return'\\n\\t\\t\\n\\t\\t'+Se(e)+\"\\n\\t\\t\"}(e)),r.file(\"ppt/slideLayouts/_rels/slideLayout\"+(t+1)+\".xml.rels\",function(e,t){return Re(t[e-1],[{target:\"../slideMasters/slideMaster1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster\"}])}(t+1,o.slideLayouts))}),o.slides.forEach(function(e,t){r.file(\"ppt/slides/slide\"+(t+1)+\".xml\",function(e){return''+p+'\"+Se(e)+\"\"}(e)),r.file(\"ppt/slides/_rels/slide\"+(t+1)+\".xml.rels\",function(e,t,a){return Re(e[a-1],[{target:\"../slideLayouts/slideLayout\"+function(e,t,a){for(var r=0;r\\n\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t'}(t+1))}),r.file(\"ppt/slideMasters/slideMaster1.xml\",function(a,e){var t=e.map(function(e,t){return''}),r=''+p;return r+='',r+=Se(a),r+='',r+=\"\"+t.join(\"\")+\"\",r+='',r+=' ',r+=\"\"}(o.masterSlide,o.slideLayouts)),r.file(\"ppt/slideMasters/_rels/slideMaster1.xml.rels\",function(e,t){var a=t.map(function(e,t){return{target:\"../slideLayouts/slideLayout\"+(t+1)+\".xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout\"}});return a.push({target:\"../theme/theme1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\"}),Re(e,a)}(o.masterSlide,o.slideLayouts)),r.file(\"ppt/notesMasters/notesMaster1.xml\",''+p+'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›'),r.file(\"ppt/notesMasters/_rels/notesMaster1.xml.rels\",''+p+'\\n\\t\\t\\n\\t\\t'),o.slideLayouts.forEach(function(e){o.createChartMediaRels(e,r,t)}),o.slides.forEach(function(e){o.createChartMediaRels(e,r,t)}),o.createChartMediaRels(o.masterSlide,r,t),Promise.all(t).then(function(){return\"STREAM\"===e.outputType?r.generateAsync({type:\"nodebuffer\",compression:e.compression?\"DEFLATE\":\"STORE\"}):e.outputType?r.generateAsync({type:e.outputType}):r.generateAsync({type:\"blob\",compression:e.compression?\"DEFLATE\":\"STORE\"})})})},this.LAYOUTS={LAYOUT_4x3:{name:\"screen4x3\",width:9144e3,height:6858e3},LAYOUT_16x9:{name:\"screen16x9\",width:9144e3,height:5143500},LAYOUT_16x10:{name:\"screen16x10\",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:\"custom\",width:12192e3,height:6858e3}},this._author=\"PptxGenJS\",this._company=\"PptxGenJS\",this._revision=\"1\",this._subject=\"PptxGenJS Presentation\",this._title=\"PptxGenJS Presentation\",this._presLayout={name:this.LAYOUTS[d].name,_sizeW:this.LAYOUTS[d].width,_sizeH:this.LAYOUTS[d].height,width:this.LAYOUTS[d].width,height:this.LAYOUTS[d].height},this._rtlMode=!1,this._slideLayouts=[{_margin:w,_name:r,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(et.prototype,\"layout\",{get:function(){return this._layout},set:function(e){var t=this.LAYOUTS[e];if(!t)throw new Error(\"UNKNOWN-LAYOUT\");this._layout=e,this._presLayout=t},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"version\",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"author\",{get:function(){return this._author},set:function(e){this._author=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"company\",{get:function(){return this._company},set:function(e){this._company=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"revision\",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"subject\",{get:function(){return this._subject},set:function(e){this._subject=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"title\",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"rtlMode\",{get:function(){return this._rtlMode},set:function(e){this._rtlMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"masterSlide\",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"slides\",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"sections\",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"slideLayouts\",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"AlignH\",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"AlignV\",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"ChartType\",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"OutputType\",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"presLayout\",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"SchemeColor\",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"ShapeType\",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"charts\",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"colors\",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,\"shapes\",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),et.prototype.stream=function(e){var t=!(\"object\"!=typeof e||!e.hasOwnProperty(\"compression\"))&&e.compression;return this.exportPresentation({compression:t,outputType:\"STREAM\"})},et.prototype.write=function(e){var t=\"object\"==typeof e&&e.hasOwnProperty(\"outputType\")?e.outputType:e||null,a=!(\"object\"!=typeof e||!e.hasOwnProperty(\"compression\"))&&e.compression;return this.exportPresentation({compression:a,outputType:t})},et.prototype.writeFile=function(e){var t=this,r=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null;\"string\"==typeof e&&console.log(\"Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)\");var a=\"object\"==typeof e&&e.hasOwnProperty(\"fileName\")?e.fileName:\"string\"==typeof e?e:\"\",o=!(\"object\"!=typeof e||!e.hasOwnProperty(\"compression\"))&&e.compression,l=a?a.toString().toLowerCase().endsWith(\".pptx\")?a:a+\".pptx\":\"Presentation.pptx\";return this.exportPresentation({compression:o,outputType:r?\"nodebuffer\":null}).then(function(e){return r?new Promise(function(t,a){r.writeFile(l,e,function(e){e?a(e):t(l)})}):t.writeFileToBrowser(l,e)})},et.prototype.addSection=function(e){e?e.title||console.warn(\"addSection requires a title\"):console.warn(\"addSection requires an argument\");var t={_type:\"user\",_slides:[],title:e.title};e.order?this.sections.splice(e.order,0,t):this._sections.push(t)},et.prototype.addSlide=function(t){var a=\"string\"==typeof t?t:t&&t.masterName?t.masterName:\"\",e={_name:this.LAYOUTS[d].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(a){var r=this.slideLayouts.filter(function(e){return e._name===a})[0];r&&(e=r)}var o=new We({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:e});if(this._slides.push(o),t&&t.sectionTitle){var l=this.sections.filter(function(e){return e.title===t.sectionTitle})[0];l?l._slides.push(o):console.warn('addSlide: unable to find section with title: \"'+t.sectionTitle+'\"')}else if(this.sections&&0 opts.y = \"+o.y),a.addTable(e.rows,{x:o.x||d[3],y:o.y,w:Number(i)/O,colW:p,autoPage:!1}),o.addImage&&a.addImage({path:o.addImage.url,x:o.addImage.x,y:o.addImage.y,w:o.addImage.w,h:o.addImage.h}),o.addShape&&a.addShape(o.addShape.shape,o.addShape.options||{}),o.addTable&&a.addTable(o.addTable.rows,o.addTable.options||{}),o.addText&&a.addText(o.addText.text,o.addText.options||{})})}(this,e,t,t&&t.masterSlideName?this.slideLayouts.filter(function(e){return e._name===t.masterSlideName})[0]:null)},et}();"],"file":"pptxgen.min.js"} \ No newline at end of file diff --git a/src/core-interfaces.ts b/src/core-interfaces.ts index c447e18f5..6655ba0f3 100644 --- a/src/core-interfaces.ts +++ b/src/core-interfaces.ts @@ -1035,7 +1035,7 @@ export interface OptsDataLabelPosition { export type ChartAxisTickMark = 'none' | 'inside' | 'outside' | 'cross' export interface OptsChartData { index?: number - labels?: (string | string[])[] + labels?: string[] | string[][] name?: string sizes?: number[] values?: number[] diff --git a/types/index.d.ts b/types/index.d.ts index 28bba5b22..063857695 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1819,7 +1819,7 @@ declare namespace PptxGenJS { export type ChartAxisTickMark = 'none' | 'inside' | 'outside' | 'cross' export interface OptsChartData { index?: number - labels?: string[] + labels?: string[] | string[][] name?: string sizes?: number[] values?: number[] From e0a1d7c3759016d87dec9b25636f3661ad03224a Mon Sep 17 00:00:00 2001 From: MariusOpeepl Date: Mon, 2 May 2022 10:33:42 +0200 Subject: [PATCH 6/7] cleaned up dist files --- demos/browser/js/pptxgen.bundle.js.map | 2 +- dist/pptxgen.bundle.js.map | 2 +- dist/pptxgen.cjs.js | 14278 +++++++++++------------ dist/pptxgen.es.js | 14278 +++++++++++------------ dist/pptxgen.min.js.map | 2 +- 5 files changed, 14281 insertions(+), 14281 deletions(-) diff --git a/demos/browser/js/pptxgen.bundle.js.map b/demos/browser/js/pptxgen.bundle.js.map index 2e8da7e4f..671baec4c 100644 --- a/demos/browser/js/pptxgen.bundle.js.map +++ b/demos/browser/js/pptxgen.bundle.js.map @@ -1 +1 @@ -{"version":3,"names":[],"mappings":"","sources":["pptxgen.bundle.js"],"sourcesContent":["/* PptxGenJS 3.11.0-beta @ 2022-05-01T21:07:11.428Z */\n!function(t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).JSZip=t()}(function(){return function n(a,o,i){function s(e,t){if(!o[e]){if(!a[e]){var r=\"function\"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);t=new Error(\"Cannot find module '\"+e+\"'\");throw t.code=\"MODULE_NOT_FOUND\",t}r=o[e]={exports:{}};a[e][0].call(r.exports,function(t){return s(a[e][1][t]||t)},r,r.exports,n,a,o,i)}return o[e].exports}for(var l=\"function\"==typeof require&&require,t=0;t>4,o=1>6:64,i=2>2)+f.charAt(a)+f.charAt(o)+f.charAt(i));return s.join(\"\")},r.decode=function(t){var e,r,n,a,o,i=0,s=0;if(\"data:\"===t.substr(0,\"data:\".length))throw new Error(\"Invalid base64 input, it looks like a data url.\");var l,c=3*(t=t.replace(/[^A-Za-z0-9\\+\\/\\=]/g,\"\")).length/4;if(t.charAt(t.length-1)===f.charAt(64)&&c--,t.charAt(t.length-2)===f.charAt(64)&&c--,c%1!=0)throw new Error(\"Invalid base64 input, bad content length.\");for(l=new(p.uint8array?Uint8Array:Array)(0|c);i>4,r=(15&a)<<4|(a=f.indexOf(t.charAt(i++)))>>2,n=(3&a)<<6|(o=f.indexOf(t.charAt(i++))),l[s++]=e,64!==a&&(l[s++]=r),64!==o&&(l[s++]=n);return l}},{\"./support\":30,\"./utils\":32}],2:[function(t,e,r){\"use strict\";var n=t(\"./external\"),a=t(\"./stream/DataWorker\"),o=t(\"./stream/Crc32Probe\"),i=t(\"./stream/DataLengthProbe\");function s(t,e,r,n,a){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=a}s.prototype={getContentWorker:function(){var t=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i(\"data_length\")),e=this;return t.on(\"end\",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error(\"Bug : uncompressed data size mismatch\")}),t},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo(\"compressedSize\",this.compressedSize).withStreamInfo(\"uncompressedSize\",this.uncompressedSize).withStreamInfo(\"crc32\",this.crc32).withStreamInfo(\"compression\",this.compression)}},s.createWorkerFrom=function(t,e,r){return t.pipe(new o).pipe(new i(\"uncompressedSize\")).pipe(e.compressWorker(r)).pipe(new i(\"compressedSize\")).withStreamInfo(\"compression\",e)},e.exports=s},{\"./external\":6,\"./stream/Crc32Probe\":25,\"./stream/DataLengthProbe\":26,\"./stream/DataWorker\":27}],3:[function(t,e,r){\"use strict\";var n=t(\"./stream/GenericWorker\");r.STORE={magic:\"\\0\\0\",compressWorker:function(t){return new n(\"STORE compression\")},uncompressWorker:function(){return new n(\"STORE decompression\")}},r.DEFLATE=t(\"./flate\")},{\"./flate\":7,\"./stream/GenericWorker\":28}],4:[function(t,e,r){\"use strict\";var n=t(\"./utils\"),i=function(){for(var t=[],e=0;e<256;e++){for(var r=e,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;t[e]=r}return t}();e.exports=function(t,e){return void 0!==t&&t.length?(\"string\"!==n.getTypeOf(t)?function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e[o])];return-1^t}:function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e.charCodeAt(o))];return-1^t})(0|e,t,t.length):0}},{\"./utils\":32}],5:[function(t,e,r){\"use strict\";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){\"use strict\";t=\"undefined\"!=typeof Promise?Promise:t(\"lie\");e.exports={Promise:t}},{lie:37}],7:[function(t,e,r){\"use strict\";var n=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Uint32Array,a=t(\"pako\"),o=t(\"./utils\"),i=t(\"./stream/GenericWorker\"),s=n?\"uint8array\":\"array\";function l(t,e){i.call(this,\"FlateWorker/\"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic=\"\\b\\0\",o.inherits(l,i),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){i.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(t){return new l(\"Deflate\",t)},r.uncompressWorker=function(){return new l(\"Inflate\",{})}},{\"./stream/GenericWorker\":28,\"./utils\":32,pako:38}],8:[function(t,e,r){\"use strict\";function A(t,e){for(var r=\"\",n=0;n>>=8;return r}function n(t,e,r,n,a,o){var i=t.file,s=t.compression,l=o!==b.utf8encode,c=v.transformTo(\"string\",o(i.name)),p=v.transformTo(\"string\",b.utf8encode(i.name)),u=i.comment,o=v.transformTo(\"string\",o(u)),f=v.transformTo(\"string\",b.utf8encode(u)),d=p.length!==i.name.length,u=f.length!==u.length,h=\"\",m=i.dir,g=i.date,y={crc32:0,compressedSize:0,uncompressedSize:0},r=(e&&!r||(y.crc32=t.crc32,y.compressedSize=t.compressedSize,y.uncompressedSize=t.uncompressedSize),0);e&&(r|=8),l||!d&&!u||(r|=2048);t=0,e=0,m&&(t|=16),\"UNIX\"===a?(e=798,t|=(65535&(l=(l=i.unixPermissions)?l:m?16893:33204))<<16):(e=20,t|=63&(i.dosPermissions||0)),a=g.getUTCHours(),a=(a=((a<<=6)|g.getUTCMinutes())<<5)|g.getUTCSeconds()/2,m=g.getUTCFullYear()-1980,m=(m=((m<<=4)|g.getUTCMonth()+1)<<5)|g.getUTCDate(),d&&(h+=\"up\"+A((l=A(1,1)+A(x(c),4)+p).length,2)+l),u&&(h+=\"uc\"+A((i=A(1,1)+A(x(o),4)+f).length,2)+i),g=\"\",g=(g=(g=(g=(g=(g=(g=(g=(g=(g+=\"\\n\\0\")+A(r,2))+s.magic)+A(a,2))+A(m,2))+A(y.crc32,4))+A(y.compressedSize,4))+A(y.uncompressedSize,4))+A(c.length,2))+A(h.length,2);return{fileRecord:w.LOCAL_FILE_HEADER+g+c+h,dirRecord:w.CENTRAL_FILE_HEADER+A(e,2)+g+A(o.length,2)+\"\\0\\0\\0\\0\"+A(t,4)+A(n,4)+c+h+o}}var v=t(\"../utils\"),a=t(\"../stream/GenericWorker\"),b=t(\"../utf8\"),x=t(\"../crc32\"),w=t(\"../signature\");function o(t,e,r,n){a.call(this,\"ZipFileWorker\"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}v.inherits(o,a),o.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},o.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;e?(t=n(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:t.fileRecord,meta:{percent:0}})):this.accumulate=!0},o.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=n(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:w.DATA_DESCRIPTOR+A((e=t).crc32,4)+A(e.compressedSize,4)+A(e.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},o.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return n.transformTo(\"string\",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=a},{\"../utils\":32}],19:[function(t,e,r){\"use strict\";var n=t(\"./Uint8ArrayReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./Uint8ArrayReader\":21}],20:[function(t,e,r){\"use strict\";var n=t(\"./DataReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},a.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},a.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./DataReader\":18}],21:[function(t,e,r){\"use strict\";var n=t(\"./ArrayReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./ArrayReader\":17}],22:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"../support\"),o=t(\"./ArrayReader\"),i=t(\"./StringReader\"),s=t(\"./NodeBufferReader\"),l=t(\"./Uint8ArrayReader\");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),\"string\"!==e||a.uint8array?\"nodebuffer\"===e?new s(t):a.uint8array?new l(n.transformTo(\"uint8array\",t)):new o(n.transformTo(\"array\",t)):new i(t)}},{\"../support\":30,\"../utils\":32,\"./ArrayReader\":17,\"./NodeBufferReader\":19,\"./StringReader\":20,\"./Uint8ArrayReader\":21}],23:[function(t,e,r){\"use strict\";r.LOCAL_FILE_HEADER=\"PK\u0003\u0004\",r.CENTRAL_FILE_HEADER=\"PK\u0001\u0002\",r.CENTRAL_DIRECTORY_END=\"PK\u0005\u0006\",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR=\"PK\u0006\u0007\",r.ZIP64_CENTRAL_DIRECTORY_END=\"PK\u0006\u0006\",r.DATA_DESCRIPTOR=\"PK\u0007\\b\"},{}],24:[function(t,e,r){\"use strict\";var n=t(\"./GenericWorker\"),a=t(\"../utils\");function o(t){n.call(this,\"ConvertWorker to \"+t),this.destType=t}a.inherits(o,n),o.prototype.processChunk=function(t){this.push({data:a.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],25:[function(t,e,r){\"use strict\";var n=t(\"./GenericWorker\"),a=t(\"../crc32\");function o(){n.call(this,\"Crc32Probe\"),this.withStreamInfo(\"crc32\",0)}t(\"../utils\").inherits(o,n),o.prototype.processChunk=function(t){this.streamInfo.crc32=a(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{\"../crc32\":4,\"../utils\":32,\"./GenericWorker\":28}],26:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"./GenericWorker\");function o(t){a.call(this,\"DataLengthProbe for \"+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(o,a),o.prototype.processChunk=function(t){var e;t&&(e=this.streamInfo[this.propName]||0,this.streamInfo[this.propName]=e+t.data.length),a.prototype.processChunk.call(this,t)},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],27:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"./GenericWorker\");function o(t){a.call(this,\"DataWorker\");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=\"\",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}n.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case\"string\":t=this.data.substring(this.index,e);break;case\"uint8array\":t=this.data.subarray(this.index,e);break;case\"array\":case\"nodebuffer\":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],28:[function(t,e,r){\"use strict\";function n(t){this.name=t||\"default\",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit(\"data\",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(\"end\"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit(\"error\",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit(\"error\",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r \"+t:t}},e.exports=n},{}],29:[function(t,e,r){\"use strict\";var c=t(\"../utils\"),a=t(\"./ConvertWorker\"),o=t(\"./GenericWorker\"),p=t(\"../base64\"),n=t(\"../support\"),i=t(\"../external\"),s=null;if(n.nodestream)try{s=t(\"../nodejs/NodejsStreamOutputAdapter\")}catch(t){}function l(t,e,r){var n=e;switch(e){case\"blob\":case\"arraybuffer\":n=\"uint8array\";break;case\"base64\":n=\"string\"}try{this._internalType=n,this._outputType=e,this._mimeType=r,c.checkSupport(n),this._worker=t.pipe(new a(n)),t.lock()}catch(t){this._worker=new o(\"error\"),this._worker.error(t)}}l.prototype={accumulate:function(t){return s=this,l=t,new i.Promise(function(e,r){var n=[],a=s._internalType,o=s._outputType,i=s._mimeType;s.on(\"data\",function(t,e){n.push(t),l&&l(e)}).on(\"error\",function(t){n=[],r(t)}).on(\"end\",function(){try{var t=function(t,e,r){switch(t){case\"blob\":return c.newBlob(c.transformTo(\"arraybuffer\",e),r);case\"base64\":return p.encode(e);default:return c.transformTo(t,e)}}(o,function(t,e){for(var r=0,n=null,a=0,o=0;o>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},a.utf8decode=function(t){if(c.nodebuffer)return l.transformTo(\"nodebuffer\",t).toString(\"utf-8\");for(var e,r,n,a=t=l.transformTo(c.uint8array?\"uint8array\":\"array\",t),o=a.length,i=new Array(2*o),s=e=0;s>10&1023,i[e++]=56320|1023&r)}return i.length!==e&&(i.subarray?i=i.subarray(0,e):i.length=e),l.applyFromCharCode(i)},l.inherits(o,r),o.prototype.processChunk=function(t){var e=l.transformTo(c.uint8array?\"uint8array\":\"array\",t.data),r=(this.leftOver&&this.leftOver.length&&(c.uint8array?(r=e,(e=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),e.set(r,this.leftOver.length)):e=this.leftOver.concat(e),this.leftOver=null),function(t,e){for(var r=(e=(e=e||t.length)>t.length?t.length:e)-1;0<=r&&128==(192&t[r]);)r--;return!(r<0)&&0!==r&&r+u[t[r]]>e?r:e}(e)),n=e;r!==e.length&&(c.uint8array?(n=e.subarray(0,r),this.leftOver=e.subarray(r,e.length)):(n=e.slice(0,r),this.leftOver=e.slice(r,e.length))),this.push({data:a.utf8decode(n),meta:t.meta})},o.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=o,l.inherits(i,r),i.prototype.processChunk=function(t){this.push({data:a.utf8encode(t.data),meta:t.meta})},a.Utf8EncodeWorker=i},{\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./support\":30,\"./utils\":32}],32:[function(t,e,i){\"use strict\";var s=t(\"./support\"),l=t(\"./base64\"),r=t(\"./nodejsUtils\"),n=t(\"set-immediate-shim\"),c=t(\"./external\");function a(t){return t}function p(t,e){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||\"/\"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){var e;this.extraFields[1]&&(e=n(this.extraFields[1].value),this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4)))},readExtraFields:function(t){var e,r,n,a=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},r.buf2binstring=function(t){return p(t,t.length)},r.binstring2buf=function(t){for(var e=new l.Buf8(t.length),r=0,n=e.length;r>10&1023,i[r++]=56320|1023&n)}return p(i,r)},r.utf8border=function(t,e){for(var r=(e=(e=e||t.length)>t.length?t.length:e)-1;0<=r&&128==(192&t[r]);)r--;return!(r<0)&&0!==r&&r+c[t[r]]>e?r:e}},{\"./common\":41}],43:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){for(var a=65535&t|0,o=t>>>16&65535|0,i=0;0!==r;){for(r-=i=2e3>>1:r>>>1;t[e]=r}return t}();e.exports=function(t,e,r,n){var a=s,o=n+r;t^=-1;for(var i=n;i>>8^a[255&(t^e[i])];return-1^t}},{}],46:[function(t,N,e){\"use strict\";var s,u=t(\"../utils/common\"),l=t(\"./trees\"),f=t(\"./adler32\"),d=t(\"./crc32\"),r=t(\"./messages\"),c=0,p=0,h=-2,n=2,m=8,a=286,o=30,i=19,D=2*a+1,M=15,g=3,y=258,A=y+g+1,v=42,b=113;function x(t,e){return t.msg=r[e],e}function w(t){return(t<<1)-(4t.avail_out?t.avail_out:r)&&(u.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function P(t,e){l._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,C(t.strm)}function S(t,e){t.pending_buf[t.pending++]=e}function L(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function E(t,e){var r,n,a=t.max_chain_length,o=t.strstart,i=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-A?t.strstart-(t.w_size-A):0,c=t.window,p=t.w_mask,u=t.prev,f=t.strstart+y,d=c[o+i-1],h=c[o+i];t.prev_length>=t.good_match&&(a>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+i]===h&&c[r+i-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){for(o+=2,r++;c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&ol&&0!=--a);return i<=t.lookahead?i:t.lookahead}function T(t){var e,r,n,a,o,i,s,l,c,p=t.w_size;do{if(l=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-A)){for(u.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;n=t.head[--e],t.head[e]=p<=n?n-p:0,--r;);for(e=r=p;n=t.prev[--e],t.prev[e]=p<=n?n-p:0,--r;);l+=p}if(0===t.strm.avail_in)break;if(o=t.strm,i=t.window,s=t.strstart+t.lookahead,c=void 0,r=0===(c=(l=l)<(c=o.avail_in)?l:c)?0:(o.avail_in-=c,u.arraySet(i,o.input,o.next_in,c,s),1===o.state.wrap?o.adler=f(o.adler,i,c,s):2===o.state.wrap&&(o.adler=d(o.adler,i,c,s)),o.next_in+=c,o.total_in+=c,c),t.lookahead+=r,t.lookahead+t.insert>=g)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<=g&&(t.ins_h=(t.ins_h<=g)if(n=l._tr_tally(t,t.strstart-t.match_start,t.match_length-g),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=g){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=g&&(t.ins_h=(t.ins_h<=g&&t.match_length<=t.prev_length){for(a=t.strstart+t.lookahead-g,n=l._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-g),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=a&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(T(t),0===t.lookahead&&e===c)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,P(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-A&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(P(t,!1),t.strm.avail_out),1)}),new F(4,4,8,4,k),new F(4,5,16,8,k),new F(4,6,32,32,k),new F(4,4,16,16,R),new F(8,16,32,32,R),new F(8,16,128,128,R),new F(8,32,128,256,R),new F(32,128,258,1024,R),new F(32,258,258,4096,R)],e.deflateInit=function(t,e){return B(t,e,m,15,8,0)},e.deflateInit2=B,e.deflateReset=O,e.deflateResetKeep=I,e.deflateSetHeader=function(t,e){return!t||!t.state||2!==t.state.wrap?h:(t.state.gzhead=e,p)},e.deflate=function(t,e){var r,n,a,o;if(!t||!t.state||5>8&255),S(n,n.gzhead.time>>16&255),S(n,n.gzhead.time>>24&255),S(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),S(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(S(n,255&n.gzhead.extra.length),S(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=d(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(S(n,0),S(n,0),S(n,0),S(n,0),S(n,0),S(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),S(n,3),n.status=b)):(i=m+(n.w_bits-8<<4)<<8,i|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(i|=32),i+=31-i%31,n.status=b,L(n,i),0!==n.strstart&&(L(n,t.adler>>>16),L(n,65535&t.adler)),t.adler=1)),69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),C(t),a=n.pending,n.pending!==n.pending_buf_size));)S(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),C(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}}while(o=n.gzindexa&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),C(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}}while(o=n.gzindexa&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&C(t),n.pending+2<=n.pending_buf_size&&(S(n,255&t.adler),S(n,t.adler>>8&255),t.adler=0,n.status=b)):n.status=b),0!==n.pending){if(C(t),0===t.avail_out)return n.last_flush=-1,p}else if(0===t.avail_in&&w(e)<=w(r)&&4!==e)return x(t,-5);if(666===n.status&&0!==t.avail_in)return x(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==c&&666!==n.status){var i=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(T(t),0===t.lookahead)){if(e===c)return 1;break}if(t.match_length=0,r=l._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(P(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,a,o,i=t.window;;){if(t.lookahead<=y){if(T(t),t.lookahead<=y&&e===c)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=g&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=g?(r=l._tr_tally(t,1,t.match_length-g),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=l._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(P(t,!1),0===t.strm.avail_out)?1:2}(n,e):s[n.level].func(n,e);if(3!==i&&4!==i||(n.status=666),1===i||3===i)return 0===t.avail_out&&(n.last_flush=-1),p;if(2===i&&(1===e?l._tr_align(n):5!==e&&(l._tr_stored_block(n,0,0,!1),3===e&&(_(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),C(t),0===t.avail_out))return n.last_flush=-1,p}return 4!==e?p:n.wrap<=0?1:(2===n.wrap?(S(n,255&t.adler),S(n,t.adler>>8&255),S(n,t.adler>>16&255),S(n,t.adler>>24&255),S(n,255&t.total_in),S(n,t.total_in>>8&255),S(n,t.total_in>>16&255),S(n,t.total_in>>24&255)):(L(n,t.adler>>>16),L(n,65535&t.adler)),C(t),0=r.w_size&&(0===o&&(_(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new u.Buf8(r.w_size),u.arraySet(l,e,c-r.w_size,r.w_size,0),e=l,c=r.w_size),l=t.avail_in,i=t.next_in,s=t.input,t.avail_in=c,t.next_in=0,t.input=e,T(r);r.lookahead>=g;){for(n=r.strstart,a=r.lookahead-(g-1);r.ins_h=(r.ins_h<>>=n=r>>>24,w-=n,0==(n=r>>>16&255))d[f++]=65535&r;else{if(!(16&n)){if(0==(64&n)){r=_[(65535&r)+(x&(1<>>=n,w-=n),w<15&&(x+=p[c++]<>>=n=r>>>24,w-=n,!(16&(n=r>>>16&255))){if(0==(64&n)){r=C[(65535&r)+(x&(1<>>=n,w-=n,(n=f-h)>3,x&=(1<<(w-=a<<3))-1,t.next_in=c,t.next_out=f,t.avail_in=c>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function o(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new R.Buf16(320),this.work=new R.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function i(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=M,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new R.Buf32(n),e.distcode=e.distdyn=new R.Buf32(a),e.sane=1,e.back=-1,N):D}function s(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,i(t)):D}function l(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=t.wsize?(R.arraySet(t.window,e,r-t.wsize,t.wsize,0),t.wnext=0,t.whave=t.wsize):(n<(a=t.wsize-t.wnext)&&(a=n),R.arraySet(t.window,e,r-n,a,t.wnext),(n-=a)?(R.arraySet(t.window,e,r-n,n,0),t.wnext=n,t.whave=t.wsize):(t.wnext+=a,t.wnext===t.wsize&&(t.wnext=0),t.whave>>8&255,r.check=I(r.check,L,2,0),p=c=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg=\"incorrect header check\",r.mode=30;break}if(8!=(15&c)){t.msg=\"unknown compression method\",r.mode=30;break}if(p-=4,w=8+(15&(c>>>=4)),0===r.wbits)r.wbits=w;else if(w>r.wbits){t.msg=\"invalid window size\",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=I(r.check,L,2,0)),p=c=0,r.mode=3;case 3:for(;p<32;){if(0===s)break t;s--,c+=n[o++]<>>8&255,L[2]=c>>>16&255,L[3]=c>>>24&255,r.check=I(r.check,L,4,0)),p=c=0,r.mode=4;case 4:for(;p<16;){if(0===s)break t;s--,c+=n[o++]<>8),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=I(r.check,L,2,0)),p=c=0,r.mode=5;case 5:if(1024&r.flags){for(;p<16;){if(0===s)break t;s--,c+=n[o++]<>>8&255,r.check=I(r.check,L,2,0)),p=c=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((d=s<(d=r.length)?s:d)&&(r.head&&(w=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),R.arraySet(r.head.extra,n,o,d,w)),512&r.flags&&(r.check=I(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;for(d=0;w=n[o+d++],r.head&&w&&r.length<65536&&(r.head.name+=String.fromCharCode(w)),w&&d>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;p<32;){if(0===s)break t;s--,c+=n[o++]<>>=7&p,p-=7&p,r.mode=27;break}for(;p<3;){if(0===s)break t;s--,c+=n[o++]<>>=1)){case 0:r.mode=14;break;case 1:T=k=void 0;var T,k=r;if(G){for(U=new R.Buf32(512),j=new R.Buf32(32),T=0;T<144;)k.lens[T++]=8;for(;T<256;)k.lens[T++]=9;for(;T<280;)k.lens[T++]=7;for(;T<288;)k.lens[T++]=8;for(B(1,k.lens,0,288,U,0,k.work,{bits:9}),T=0;T<32;)k.lens[T++]=5;B(2,k.lens,0,32,j,0,k.work,{bits:5}),G=!1}if(k.lencode=U,k.lenbits=9,k.distcode=j,k.distbits=5,r.mode=20,6!==e)break;c>>>=2,p-=2;break t;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=30}c>>>=2,p-=2;break;case 14:for(c>>>=7&p,p-=7&p;p<32;){if(0===s)break t;s--,c+=n[o++]<>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=30;break}if(r.length=65535&c,p=c=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(0===(d=l<(d=s>>=5,p-=5,r.ndist=1+(31&c),c>>>=5,p-=5,r.ncode=4+(15&c),c>>>=4,p-=4,286>>=3,p-=3}for(;r.have<19;)r.lens[E[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},_=B(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg=\"invalid code lengths set\",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,A=65535&S,!((g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>>=g,p-=g,r.lens[r.have++]=A;else{if(16===A){for(P=g+2;p>>=g,p-=g,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=30;break}w=r.lens[r.have-1],d=3+(3&c),c>>>=2,p-=2}else if(17===A){for(P=g+3;p>>=g)),c>>>=3,p=p-g-3}else{for(P=g+7;p>>=g)),c>>>=7,p=p-g-7}if(r.have+d>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=30;break}for(;d--;)r.lens[r.have++]=w}}if(30===r.mode)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=30;break}if(r.lenbits=9,C={bits:r.lenbits},_=B(1,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg=\"invalid literal/lengths set\",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},_=B(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,_){t.msg=\"invalid distances set\",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=s&&258<=l){t.next_out=i,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=p,O(t,f),i=t.next_out,a=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,p=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;y=(S=r.lencode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>v)])>>>16&255,A=65535&S,!(v+(g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>>=v,p-=v,r.back+=v}if(c>>>=g,p-=g,r.back+=g,r.length=A,0===y){r.mode=26;break}if(32&y){r.back=-1,r.mode=12;break}if(64&y){t.msg=\"invalid literal/length code\",r.mode=30;break}r.extra=15&y,r.mode=22;case 22:if(r.extra){for(P=r.extra;p>>=r.extra,p-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;y=(S=r.distcode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>v)])>>>16&255,A=65535&S,!(v+(g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>>=v,p-=v,r.back+=v}if(c>>>=g,p-=g,r.back+=g,64&y){t.msg=\"invalid distance code\",r.mode=30;break}r.offset=A,r.extra=15&y,r.mode=24;case 24:if(r.extra){for(P=r.extra;p>>=r.extra,p-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=30;break}r.mode=25;case 25:if(0===l)break t;if(r.offset>(d=f-l)){if((d=r.offset-d)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break}h=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=a,h=i-r.offset,d=r.length;for(l-=d=ld?(m=F[I+i[v]],E[T+i[v]]):(m=96,0),l=1<<(h=A-C),b=c=1<<_;a[f+(L>>C)+(c-=l)]=h<<24|m<<16|g|0,0!==c;);for(l=1<>=1;if(0!==l?L=(L&l-1)+l:L=0,v++,0==--k[A]){if(A===x)break;A=e[r+i[v]]}if(w>>7)]}function o(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function _(t,e,r){t.bi_valid>n-r?(t.bi_buf|=e<>n-t.bi_valid,t.bi_valid+=r-n):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function S(t,e,r){for(var n,a=new Array(16),o=0,i=1;i<=15;i++)a[i]=o=o+r[i-1]<<1;for(n=0;n<=e;n++){var s=t[2*n+1];0!==s&&(t[2*n]=P(a[s]++,s))}}function L(t){for(var e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function E(t){8>1;1<=r;r--)T(t,o,r);for(a=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],T(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*a]=o[2*r]+o[2*n],t.depth[a]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=a,t.heap[1]=a++,T(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1];for(var p,u,f,d,h,m=t,g=e.dyn_tree,y=e.max_code,A=e.stat_desc.static_tree,v=e.stat_desc.has_stree,b=e.stat_desc.extra_bits,x=e.stat_desc.extra_base,w=e.stat_desc.max_length,_=0,C=0;C<=15;C++)m.bl_count[C]=0;for(g[2*m.heap[m.heap_max]+1]=0,p=m.heap_max+1;p<573;p++)w<(C=g[2*g[2*(u=m.heap[p])+1]+1]+1)&&(C=w,_++),g[2*u+1]=C,y>=7;i<30;i++)for(v[i]=a<<7,e=0;e<1<>>=1)if(1&e&&0!==t.dyn_ltree[2*r])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(r=32;r<256;r++)if(0!==t.dyn_ltree[2*r])return 1;return 0}(t)),R(t,t.l_desc),R(t,t.d_desc),s=function(t){var e;for(F(t,t.dyn_ltree,t.l_desc.max_code),F(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*p[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=a&&(a=o)):a=o=r+5,r+4<=a&&-1!==e)B(t,e,r,n);else if(4===t.strategy||o===a)_(t,2+(n?1:0),3),k(t,u,f);else{_(t,4+(n?1:0),3);var l=t,c=(e=t.l_desc.max_code+1,r=t.d_desc.max_code+1,s+1);for(_(l,e-257,5),_(l,r-1,5),_(l,c-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(h[r]+256+1)]++,t.dyn_dtree[2*w(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){_(t,2,3),C(t,256,u),16===(t=t).bi_valid?(o(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{\"../utils/common\":41}],53:[function(t,e,r){\"use strict\";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){\"use strict\";e.exports=\"function\"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)}),function n(a,o,i){function s(e,t){if(!o[e]){if(!a[e]){var r=\"function\"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);t=new Error(\"Cannot find module '\"+e+\"'\");throw t.code=\"MODULE_NOT_FOUND\",t}r=o[e]={exports:{}};a[e][0].call(r.exports,function(t){return s(a[e][1][t]||t)},r,r.exports,n,a,o,i)}return o[e].exports}for(var l=\"function\"==typeof require&&require,t=0;ti;)o.call(t,n=a[i++])&&e.push(n);return e}},{104:104,107:107,108:108}],62:[function(t,e,r){function d(t,e,r){var n,a,o,i=t&d.F,s=t&d.G,l=t&d.P,c=t&d.B,p=s?h:t&d.S?h[e]||(h[e]={}):(h[e]||{})[v],u=s?m:m[e]||(m[e]={}),f=u[v]||(u[v]={});for(n in r=s?e:r)a=((o=!i&&p&&void 0!==p[n])?p:r)[n],o=c&&o?A(a,h):l&&\"function\"==typeof a?A(Function.call,a):a,p&&y(p,n,a,t&d.U),u[n]!=a&&g(u,n,o),l&&f[n]!=a&&(f[n]=a)}var h=t(70),m=t(52),g=t(72),y=t(118),A=t(54),v=\"prototype\";h.core=m,d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,e.exports=d},{118:118,52:52,54:54,70:70,72:72}],63:[function(t,e,r){var n=t(152)(\"match\");e.exports=function(e){var r=/./;try{\"/./\"[e](r)}catch(t){try{return r[n]=!1,!\"/./\"[e](r)}catch(t){}}return!0}},{152:152}],64:[function(t,e,r){arguments[4][23][0].apply(r,arguments)},{23:23}],65:[function(t,e,r){\"use strict\";t(248);var n,l=t(118),c=t(72),p=t(64),u=t(57),f=t(152),d=t(120),h=f(\"species\"),m=!p(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:\"7\"},t},\"7\"!==\"\".replace(t,\"$
\")}),g=(n=(t=/(?:)/).exec,t.exec=function(){return n.apply(this,arguments)},2===(t=\"ab\".split(t)).length&&\"a\"===t[0]&&\"b\"===t[1]);e.exports=function(r,t,e){var o,n,a=f(r),i=!p(function(){var t={};return t[a]=function(){return 7},7!=\"\"[r](t)}),s=i?!p(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},\"split\"===r&&(e.constructor={},e.constructor[h]=function(){return e}),e[a](\"\"),!t}):void 0;i&&s&&(\"replace\"!==r||m)&&(\"split\"!==r||g)||(o=/./[a],e=(s=e(u,a,\"\"[r],function(t,e,r,n,a){return e.exec===d?i&&!a?{done:!0,value:o.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}))[0],n=s[1],l(String.prototype,r,e),c(RegExp.prototype,a,2==t?function(t,e){return n.call(t,this,e)}:function(t){return n.call(t,this)}))}},{118:118,120:120,152:152,248:248,57:57,64:64,72:72}],66:[function(t,e,r){\"use strict\";var n=t(38);e.exports=function(){var t=n(this),e=\"\";return t.global&&(e+=\"g\"),t.ignoreCase&&(e+=\"i\"),t.multiline&&(e+=\"m\"),t.unicode&&(e+=\"u\"),t.sticky&&(e+=\"y\"),e}},{38:38}],67:[function(t,e,r){\"use strict\";var h=t(79),m=t(81),g=t(141),y=t(54),A=t(152)(\"isConcatSpreadable\");e.exports=function t(e,r,n,a,o,i,s,l){for(var c,p,u=o,f=0,d=!!s&&y(s,l,3);fdocument.F=Object<\\/script>\"),t.close(),c=t.F;e--;)delete c[l][i[e]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(n[l]=a(t),r=new n,n[l]=null,r[s]=t):r=c(),void 0===e?r:o(r,e)}},{100:100,125:125,38:38,59:59,60:60,73:73}],99:[function(t,e,r){arguments[4][29][0].apply(r,arguments)},{143:143,29:29,38:38,58:58,74:74}],100:[function(t,e,r){var i=t(99),s=t(38),l=t(107);e.exports=t(58)?Object.defineProperties:function(t,e){s(t);for(var r,n=l(e),a=n.length,o=0;oa;)!i(n,r=e[a++])||~l(o,r)||o.push(r);return o}},{125:125,140:140,41:41,71:71}],107:[function(t,e,r){var n=t(106),a=t(60);e.exports=Object.keys||function(t){return n(t,a)}},{106:106,60:60}],108:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],109:[function(t,e,r){var a=t(62),o=t(52),i=t(64);e.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],n={};n[t]=e(r),a(a.S+a.F*i(function(){r(1)}),\"Object\",n)}},{52:52,62:62,64:64}],110:[function(t,e,r){var l=t(58),c=t(107),p=t(140),u=t(108).f;e.exports=function(s){return function(t){for(var e,r=p(t),n=c(r),a=n.length,o=0,i=[];o>>0||(o.test(t)?16:10))}:n},{134:134,135:135,70:70}],114:[function(t,e,r){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],115:[function(t,e,r){var n=t(38),a=t(81),o=t(96);e.exports=function(t,e){if(n(t),a(e)&&e.constructor===t)return e;t=o.f(t);return(0,t.resolve)(e),t.promise}},{38:38,81:81,96:96}],116:[function(t,e,r){arguments[4][30][0].apply(r,arguments)},{30:30}],117:[function(t,e,r){var a=t(118);e.exports=function(t,e,r){for(var n in e)a(t,n,e[n],r);return t}},{118:118}],118:[function(t,e,r){var o=t(70),i=t(72),s=t(71),l=t(147)(\"src\"),n=t(69),a=\"toString\",c=(\"\"+n).split(a);t(52).inspectSource=function(t){return n.call(t)},(e.exports=function(t,e,r,n){var a=\"function\"==typeof r;a&&!s(r,\"name\")&&i(r,\"name\",e),t[e]!==r&&(a&&!s(r,l)&&i(r,l,t[e]?\"\"+t[e]:c.join(String(e))),t===o?t[e]=r:n?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,a,function(){return\"function\"==typeof this&&this[l]||n.call(this)})},{147:147,52:52,69:69,70:70,71:71,72:72}],119:[function(t,e,r){\"use strict\";var n=t(47),a=RegExp.prototype.exec;e.exports=function(t,e){var r=t.exec;if(\"function\"==typeof r){r=r.call(t,e);if(\"object\"!=typeof r)throw new TypeError(\"RegExp exec method returned something other than an Object or null\");return r}if(\"RegExp\"!==n(t))throw new TypeError(\"RegExp#exec called on incompatible receiver\");return a.call(t,e)}},{47:47}],120:[function(t,e,r){\"use strict\";var n,a,i=t(66),s=RegExp.prototype.exec,l=String.prototype.replace,t=s,c=\"lastIndex\",p=(a=/b*/g,s.call(n=/a/,\"a\"),s.call(a,\"a\"),0!==n[c]||0!==a[c]),u=void 0!==/()??/.exec(\"\")[1];e.exports=t=p||u?function(t){var e,r,n,a,o=this;return u&&(r=new RegExp(\"^\"+o.source+\"$(?!\\\\s)\",i.call(o))),p&&(e=o[c]),n=s.call(o,t),p&&n&&(o[c]=o.global?n.index+n[0].length:e),u&&n&&1\"+t+\"\"}var a=t(62),o=t(64),i=t(57),s=/\"/g;e.exports=function(e,t){var r={};r[e]=t(n),a(a.P+a.F*o(function(){var t=\"\"[e]('\"');return t!==t.toLowerCase()||3e&&(a=a.slice(0,e)),n?a+t:t+a}},{133:133,141:141,57:57}],133:[function(t,e,r){\"use strict\";var a=t(139),o=t(57);e.exports=function(t){var e=String(o(this)),r=\"\",n=a(t);if(n<0||n==1/0)throw RangeError(\"Count can't be negative\");for(;0>>=1)&&(e+=e))1&n&&(r+=e);return r}},{139:139,57:57}],134:[function(t,e,r){function n(t,e,r){var n={},a=i(function(){return!!s[t]()||\"​…\"!=\"​…\"[t]()}),e=n[t]=a?e(p):s[t];r&&(n[r]=e),o(o.P+o.F*a,\"String\",n)}var o=t(62),a=t(57),i=t(64),s=t(135),t=\"[\"+s+\"]\",l=RegExp(\"^\"+t+t+\"*\"),c=RegExp(t+t+\"*$\"),p=n.trim=function(t,e){return t=String(a(t)),1&e&&(t=t.replace(l,\"\")),t=2&e?t.replace(c,\"\"):t};e.exports=n},{135:135,57:57,62:62,64:64}],135:[function(t,e,r){e.exports=\"\\t\\n\\v\\f\\r   ᠎              \\u2028\\u2029\\ufeff\"},{}],136:[function(t,e,r){function n(){var t,e=+this;y.hasOwnProperty(e)&&(t=y[e],delete y[e],t())}function a(t){n.call(t.data)}var o,i=t(54),s=t(76),l=t(73),c=t(59),p=t(70),u=p.process,f=p.setImmediate,d=p.clearImmediate,h=p.MessageChannel,m=p.Dispatch,g=0,y={},A=\"onreadystatechange\";f&&d||(f=function(t){for(var e=[],r=1;r>1,c=23===e?x(2,-24)-x(2,-77):0,p=0,u=t<0||0===t&&1/t<0?1:0;for((t=G(t))!=t||t===v?(a=t!=t?1:0,n=r):(n=W(H(t)/V),t*(o=x(2,-n))<1&&(n--,o*=2),2<=(t+=1<=n+l?c/o:c*x(2,1-l))*o&&(n++,o/=2),r<=n+l?(a=0,n=r):1<=n+l?(a=(t*o-1)*x(2,e),n+=l):(a=t*x(2,l-1)*x(2,e),n=0));8<=e;i[p++]=255&a,a/=256,e-=8);for(n=n<>1,s=a-7,l=r-1,a=t[l--],c=127&a;for(a>>=7;0>=-s,s+=e;0>8&255]}function k(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function Q(t){return P(t,52,8)}function Y(t){return P(t,23,4)}function R(t,e,r){U(t[d],e,{get:function(){return this[r]}})}function F(t,e,r,n){r=p(+r);if(r+e>t[_])throw A(h);var a=t[w]._b,r=r+t[C],t=a.slice(r,r+e);return n?t:t.reverse()}function I(t,e,r,n,a,o){r=p(+r);if(r+e>t[_])throw A(h);for(var i=t[w]._b,s=r+t[C],l=n(+a),c=0;cq;)(O=B[q++])in m||o(m,O,b[O]);D||(s.constructor=m)}var c=new g(new m(2)),Z=g[d].setInt8;c.setInt8(0,2147483648),c.setInt8(1,2147483649),!c.getInt8(0)&&c.getInt8(1)||i(g[d],{setInt8:function(t,e){Z.call(this,t,e<<24>>24)},setUint8:function(t,e){Z.call(this,t,e<<24>>24)}},!0)}else m=function(t){l(this,m,u);t=p(t);this._b=j.call(new Array(t),0),this[_]=t},g=function(t,e,r){l(this,g,f),l(t,m,f);var n=t[_],e=M(e);if(e<0||n>24},getUint8:function(t){return F(this,1,t)[0]},getInt16:function(t){t=F(this,2,t,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(t){t=F(this,2,t,arguments[1]);return t[1]<<8|t[0]},getInt32:function(t){return L(F(this,4,t,arguments[1]))},getUint32:function(t){return L(F(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return S(F(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return S(F(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){I(this,1,t,E,e)},setUint8:function(t,e){I(this,1,t,E,e)},setInt16:function(t,e){I(this,2,t,T,e,arguments[2])},setUint16:function(t,e){I(this,2,t,T,e,arguments[2])},setInt32:function(t,e){I(this,4,t,k,e,arguments[2])},setUint32:function(t,e){I(this,4,t,k,e,arguments[2])},setFloat32:function(t,e){I(this,4,t,Y,e,arguments[2])},setFloat64:function(t,e){I(this,8,t,Q,e,arguments[2])}});t(m,u),t(g,f),o(g[d],a.VIEW,!0),e[u]=m,e[f]=g},{103:103,117:117,124:124,138:138,139:139,141:141,146:146,37:37,40:40,58:58,64:64,70:70,72:72,89:89,99:99}],146:[function(t,e,r){for(var n,a=t(70),o=t(72),t=t(147),i=t(\"typed_array\"),s=t(\"view\"),t=!(!a.ArrayBuffer||!a.DataView),l=t,c=0,p=\"Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array\".split(\",\");c<9;)(n=a[p[c++]])?(o(n.prototype,i,!0),o(n.prototype,s,!0)):l=!1;e.exports={ABV:t,CONSTR:l,TYPED:i,VIEW:s}},{147:147,70:70,72:72}],147:[function(t,e,r){var n=0,a=Math.random();e.exports=function(t){return\"Symbol(\".concat(void 0===t?\"\":t,\")_\",(++n+a).toString(36))}},{}],148:[function(t,e,r){t=t(70).navigator;e.exports=t&&t.userAgent||\"\"},{70:70}],149:[function(t,e,r){var n=t(81);e.exports=function(t,e){if(n(t)&&t._t===e)return t;throw TypeError(\"Incompatible receiver, \"+e+\" required!\")}},{81:81}],150:[function(t,e,r){var n=t(70),a=t(52),o=t(89),i=t(151),s=t(99).f;e.exports=function(t){var e=a.Symbol||(a.Symbol=!o&&n.Symbol||{});\"_\"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},{151:151,52:52,70:70,89:89,99:99}],151:[function(t,e,r){r.f=t(152)},{152:152}],152:[function(t,e,r){var n=t(126)(\"wks\"),a=t(147),o=t(70).Symbol,i=\"function\"==typeof o;(e.exports=function(t){return n[t]||(n[t]=i&&o[t]||(i?o:a)(\"Symbol.\"+t))}).store=n},{126:126,147:147,70:70}],153:[function(t,e,r){var n=t(47),a=t(152)(\"iterator\"),o=t(88);e.exports=t(52).getIteratorMethod=function(t){if(null!=t)return t[a]||t[\"@@iterator\"]||o[n(t)]}},{152:152,47:47,52:52,88:88}],154:[function(t,e,r){var n=t(62);n(n.P,\"Array\",{copyWithin:t(39)}),t(35)(\"copyWithin\")},{35:35,39:39,62:62}],155:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(4);n(n.P+n.F*!t(128)([].every,!0),\"Array\",{every:function(t){return a(this,t,arguments[1])}})},{128:128,42:42,62:62}],156:[function(t,e,r){var n=t(62);n(n.P,\"Array\",{fill:t(40)}),t(35)(\"fill\")},{35:35,40:40,62:62}],157:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(2);n(n.P+n.F*!t(128)([].filter,!0),\"Array\",{filter:function(t){return a(this,t,arguments[1])}})},{128:128,42:42,62:62}],158:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(6),o=\"findIndex\",i=!0;o in[]&&Array(1)[o](function(){i=!1}),n(n.P+n.F*i,\"Array\",{findIndex:function(t){return a(this,t,1=t.length?(this._t=void 0,a(1)):a(0,\"keys\"==e?r:\"values\"==e?t[r]:[r,t[r]])},\"values\"),o.Arguments=o.Array,n(\"keys\"),n(\"values\"),n(\"entries\")},{140:140,35:35,85:85,87:87,88:88}],165:[function(t,e,r){\"use strict\";var n=t(62),a=t(140),o=[].join;n(n.P+n.F*(t(77)!=Object||!t(128)(o)),\"Array\",{join:function(t){return o.call(a(this),void 0===t?\",\":t)}})},{128:128,140:140,62:62,77:77}],166:[function(t,e,r){\"use strict\";var n=t(62),a=t(140),o=t(139),i=t(141),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(l||!t(128)(s)),\"Array\",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=a(this),r=i(e.length),n=r-1;for((n=1>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{62:62}],189:[function(t,e,r){var t=t(62),n=Math.exp;t(t.S,\"Math\",{cosh:function(t){return(n(t=+t)+n(-t))/2}})},{62:62}],190:[function(t,e,r){var n=t(62),t=t(90);n(n.S+n.F*(t!=Math.expm1),\"Math\",{expm1:t})},{62:62,90:90}],191:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{fround:t(91)})},{62:62,91:91}],192:[function(t,e,r){var t=t(62),l=Math.abs;t(t.S,\"Math\",{hypot:function(t,e){for(var r,n,a=0,o=0,i=arguments.length,s=0;o>>16)*n+r*(65535&e>>>16)<<16>>>0)}})},{62:62,64:64}],194:[function(t,e,r){t=t(62);t(t.S,\"Math\",{log10:function(t){return Math.log(t)*Math.LOG10E}})},{62:62}],195:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{log1p:t(92)})},{62:62,92:92}],196:[function(t,e,r){t=t(62);t(t.S,\"Math\",{log2:function(t){return Math.log(t)/Math.LN2}})},{62:62}],197:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{sign:t(93)})},{62:62,93:93}],198:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S+n.F*t(64)(function(){return-2e-17!=!Math.sinh(-2e-17)}),\"Math\",{sinh:function(t){return Math.abs(t=+t)<1?(a(t)-a(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},{62:62,64:64,90:90}],199:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S,\"Math\",{tanh:function(t){var e=a(t=+t),r=a(-t);return e==1/0?1:r==1/0?-1:(e-r)/(o(t)+o(-t))}})},{62:62,90:90}],200:[function(t,e,r){t=t(62);t(t.S,\"Math\",{trunc:function(t){return(0w;w++)o(m,v=x[w])&&!o(b,v)&&f(b,v,u(m,v));(b.prototype=g).constructor=b,t(118)(a,h,b)}},{101:101,103:103,118:118,134:134,143:143,48:48,58:58,64:64,70:70,71:71,75:75,98:98,99:99}],202:[function(t,e,r){t=t(62);t(t.S,\"Number\",{EPSILON:Math.pow(2,-52)})},{62:62}],203:[function(t,e,r){var n=t(62),a=t(70).isFinite;n(n.S,\"Number\",{isFinite:function(t){return\"number\"==typeof t&&a(t)}})},{62:62,70:70}],204:[function(t,e,r){var n=t(62);n(n.S,\"Number\",{isInteger:t(80)})},{62:62,80:80}],205:[function(t,e,r){t=t(62);t(t.S,\"Number\",{isNaN:function(t){return t!=t}})},{62:62}],206:[function(t,e,r){var n=t(62),a=t(80),o=Math.abs;n(n.S,\"Number\",{isSafeInteger:function(t){return a(t)&&o(t)<=9007199254740991}})},{62:62,80:80}],207:[function(t,e,r){t=t(62);t(t.S,\"Number\",{MAX_SAFE_INTEGER:9007199254740991})},{62:62}],208:[function(t,e,r){t=t(62);t(t.S,\"Number\",{MIN_SAFE_INTEGER:-9007199254740991})},{62:62}],209:[function(t,e,r){var n=t(62),t=t(112);n(n.S+n.F*(Number.parseFloat!=t),\"Number\",{parseFloat:t})},{112:112,62:62}],210:[function(t,e,r){var n=t(62),t=t(113);n(n.S+n.F*(Number.parseInt!=t),\"Number\",{parseInt:t})},{113:113,62:62}],211:[function(t,e,r){\"use strict\";function s(t,e){for(var r=-1,n=e;++r<6;)n+=t*i[r],i[r]=n%1e7,n=o(n/1e7)}function l(t){for(var e=6,r=0;0<=--e;)r+=i[e],i[e]=o(r/t),r=r%t*1e7}function c(){for(var t,e=6,r=\"\";0<=--e;)\"\"===r&&0!==e&&0===i[e]||(t=String(i[e]),r=\"\"===r?t:r+d.call(\"0\",7-t.length)+t);return r}function p(t,e,r){return 0===e?r:e%2==1?p(t,e-1,r*t):p(t*t,e/2,r)}var n=t(62),u=t(139),f=t(34),d=t(133),a=1..toFixed,o=Math.floor,i=[0,0,0,0,0,0],h=\"Number.toFixed: incorrect invocation!\";n(n.P+n.F*(!!a&&(\"0.000\"!==8e-5.toFixed(3)||\"1\"!==.9.toFixed(0)||\"1.25\"!==1.255.toFixed(2)||\"1000000000000000128\"!==0xde0b6b3a7640080.toFixed(0))||!t(64)(function(){a.call({})})),\"Number\",{toFixed:function(t){var e,r,n,a=f(this,h),t=u(t),o=\"\",i=\"0\";if(t<0||20r;){a=void 0;o=void 0;i=void 0;s=void 0;l=void 0;c=void 0;p=void 0;var n=d[r++];var a,o,i,s=e?n.ok:n.fail,l=n.resolve,c=n.reject,p=n.domain;try{s?(e||(2==u._h&&g(u),u._h=1),!0===s?a=t:(p&&p.enter(),a=s(t),p&&(p.exit(),i=!0)),a===n.promise?c(E(\"Promise-chain cycle\")):(o=h(a))?o.call(a,l,c):l(a)):c(t)}catch(n){p&&!i&&p.exit(),c(n)}}u._c=[],u._n=!1,f&&!u._h&&m(u)}))}function o(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),a(e,!0))}function m(a){x.call(p,function(){var t,e,r=a._v,n=O(a);if(n&&(t=C(function(){F?T.emit(\"unhandledRejection\",r,a):(e=p.onunhandledrejection)?e({promise:a,reason:r}):(e=p.console)&&e.error&&e.error(\"Unhandled promise rejection\",r)}),a._h=F||O(a)?2:1),a._a=void 0,n&&t.e)throw t.v})}function g(e){x.call(p,function(){var t;F?T.emit(\"rejectionHandled\",e):(t=p.onrejectionhandled)&&t({promise:e,reason:e._v})})}var e,i,s,l,c=r(89),p=r(70),u=r(54),t=r(47),f=r(62),d=r(81),y=r(33),A=r(37),v=r(68),b=r(127),x=r(136).set,w=r(95)(),_=r(96),C=r(114),P=r(148),S=r(115),L=\"Promise\",E=p.TypeError,T=p.process,k=T&&T.versions,M=k&&k.v8||\"\",R=p[L],F=\"process\"==t(T),I=i=_.f,k=!!function(){try{var t=R.resolve(1),e=(t.constructor={})[r(152)(\"species\")]=function(t){t(n,n)};return(F||\"function\"==typeof PromiseRejectionEvent)&&t.then(n)instanceof e&&0!==M.indexOf(\"6.6\")&&-1===P.indexOf(\"Chrome/66\")}catch(t){}}(),O=function(t){return 1!==t._h&&0===(t._a||t._c).length},B=function(t){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E(\"Promise can't be resolved itself\");(r=h(t))?w(function(){var e={_w:n,_d:!1};try{r.call(t,u(B,e,1),u(o,e,1))}catch(t){o.call(e,t)}}):(n._v=t,n._s=1,a(n,!1))}catch(t){o.call({_w:n,_d:!1},t)}}};k||(R=function(t){A(this,R,L,\"_h\"),y(t),e.call(this);try{t(u(B,this,1),u(o,this,1))}catch(t){o.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(117)(R.prototype,{then:function(t,e){var r=I(b(this,R));return r.ok=\"function\"!=typeof t||t,r.fail=\"function\"==typeof e&&e,r.domain=F?T.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&a(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),s=function(){var t=new e;this.promise=t,this.resolve=u(B,t,1),this.reject=u(o,t,1)},_.f=I=function(t){return t===R||t===l?new s:i(t)}),f(f.G+f.W+f.F*!k,{Promise:R}),r(124)(R,L),r(123)(L),l=r(52)[L],f(f.S+f.F*!k,L,{reject:function(t){var e=I(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(c||!k),L,{resolve:function(t){return S(c&&this===l?R:this,t)}}),f(f.S+f.F*!(k&&r(86)(function(t){R.all(t).catch(n)})),L,{all:function(t){var i=this,e=I(i),s=e.resolve,l=e.reject,r=C(function(){var n=[],a=0,o=1;v(t,!1,function(t){var e=a++,r=!1;n.push(void 0),o++,i.resolve(t).then(function(t){r||(r=!0,n[e]=t,--o||s(n))},l)}),--o||s(n)});return r.e&&l(r.v),e.promise},race:function(t){var e=this,r=I(e),n=r.reject,a=C(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return a.e&&n(a.v),r.promise}})},{114:114,115:115,117:117,123:123,124:124,127:127,136:136,148:148,152:152,33:33,37:37,47:47,52:52,54:54,62:62,68:68,70:70,81:81,86:86,89:89,95:95,96:96}],233:[function(t,e,r){var n=t(62),a=t(33),o=t(38),i=(t(70).Reflect||{}).apply,s=Function.apply;n(n.S+n.F*!t(64)(function(){i(function(){})}),\"Reflect\",{apply:function(t,e,r){t=a(t),r=o(r);return i?i(t,e,r):s.call(t,e,r)}})},{33:33,38:38,62:62,64:64,70:70}],234:[function(t,e,r){var n=t(62),a=t(98),o=t(33),i=t(38),s=t(81),l=t(64),c=t(46),p=(t(70).Reflect||{}).construct,u=l(function(){function t(){}return!(p(function(){},[],t)instanceof t)}),f=!l(function(){p(function(){})});n(n.S+n.F*(u||f),\"Reflect\",{construct:function(t,e){o(t),i(e);var r=arguments.length<3?t:o(arguments[2]);if(f&&!u)return p(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}n=r.prototype,r=a(s(n)?n:Object.prototype),n=Function.apply.call(t,r,e);return s(n)?n:r}})},{33:33,38:38,46:46,62:62,64:64,70:70,81:81,98:98}],235:[function(t,e,r){var n=t(99),a=t(62),o=t(38),i=t(143);a(a.S+a.F*t(64)(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),\"Reflect\",{defineProperty:function(t,e,r){o(t),e=i(e,!0),o(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},{143:143,38:38,62:62,64:64,99:99}],236:[function(t,e,r){var n=t(62),a=t(101).f,o=t(38);n(n.S,\"Reflect\",{deleteProperty:function(t,e){var r=a(o(t),e);return!(r&&!r.configurable)&&delete t[e]}})},{101:101,38:38,62:62}],237:[function(t,e,r){\"use strict\";function n(t){this._t=o(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)}var a=t(62),o=t(38);t(84)(n,\"Object\",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),a(a.S,\"Reflect\",{enumerate:function(t){return new n(t)}})},{38:38,62:62,84:84}],238:[function(t,e,r){var n=t(101),a=t(62),o=t(38);a(a.S,\"Reflect\",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},{101:101,38:38,62:62}],239:[function(t,e,r){var n=t(62),a=t(105),o=t(38);n(n.S,\"Reflect\",{getPrototypeOf:function(t){return a(o(t))}})},{105:105,38:38,62:62}],240:[function(t,e,r){var o=t(101),i=t(105),s=t(71),n=t(62),l=t(81),c=t(38);n(n.S,\"Reflect\",{get:function t(e,r){var n,a=arguments.length<3?e:arguments[2];return c(e)===a?e[r]:(n=o.f(e,r))?s(n,\"value\")?n.value:void 0!==n.get?n.get.call(a):void 0:l(n=i(e))?t(n,r,a):void 0}})},{101:101,105:105,38:38,62:62,71:71,81:81}],241:[function(t,e,r){t=t(62);t(t.S,\"Reflect\",{has:function(t,e){return e in t}})},{62:62}],242:[function(t,e,r){var n=t(62),a=t(38),o=Object.isExtensible;n(n.S,\"Reflect\",{isExtensible:function(t){return a(t),!o||o(t)}})},{38:38,62:62}],243:[function(t,e,r){var n=t(62);n(n.S,\"Reflect\",{ownKeys:t(111)})},{111:111,62:62}],244:[function(t,e,r){var n=t(62),a=t(38),o=Object.preventExtensions;n(n.S,\"Reflect\",{preventExtensions:function(t){a(t);try{return o&&o(t),!0}catch(t){return!1}}})},{38:38,62:62}],245:[function(t,e,r){var n=t(62),a=t(122);a&&n(n.S,\"Reflect\",{setPrototypeOf:function(t,e){a.check(t,e);try{return a.set(t,e),!0}catch(t){return!1}}})},{122:122,62:62}],246:[function(t,e,r){var s=t(99),l=t(101),c=t(105),p=t(71),n=t(62),u=t(116),f=t(38),d=t(81);n(n.S,\"Reflect\",{set:function t(e,r,n){var a,o=arguments.length<4?e:arguments[3],i=l.f(f(e),r);if(!i){if(d(a=c(e)))return t(a,r,n,o);i=u(0)}if(p(i,\"value\")){if(!1===i.writable||!d(o))return!1;if(a=l.f(o,r)){if(a.get||a.set||!1===a.writable)return!1;a.value=n,s.f(o,r,a)}else s.f(o,r,u(0,n));return!0}return void 0!==i.set&&(i.set.call(o,n),!0)}})},{101:101,105:105,116:116,38:38,62:62,71:71,81:81,99:99}],247:[function(t,e,r){var n=t(70),o=t(75),a=t(99).f,i=t(103).f,s=t(82),l=t(66),c=h=n.RegExp,p=h.prototype,u=/a/g,f=/a/g,d=new h(u)!==u;if(t(58)&&(!d||t(64)(function(){return f[t(152)(\"match\")]=!1,h(u)!=u||h(f)==f||\"/a/i\"!=h(u,\"i\")}))){for(var h=function(t,e){var r=this instanceof h,n=s(t),a=void 0===e;return!r&&n&&t.constructor===h&&a?t:o(d?new c(n&&!a?t.source:t,e):c((n=t instanceof h)?t.source:t,n&&a?l.call(t):e),r?this:p,h)},m=i(c),g=0;m.length>g;)!function(e){e in h||a(h,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})}(m[g++]);(p.constructor=h).prototype=p,t(118)(n,\"RegExp\",h)}t(123)(\"RegExp\")},{103:103,118:118,123:123,152:152,58:58,64:64,66:66,70:70,75:75,82:82,99:99}],248:[function(t,e,r){\"use strict\";var n=t(120);t(62)({target:\"RegExp\",proto:!0,forced:n!==/./.exec},{exec:n})},{120:120,62:62}],249:[function(t,e,r){t(58)&&\"g\"!=/./g.flags&&t(99).f(RegExp.prototype,\"flags\",{configurable:!0,get:t(66)})},{58:58,66:66,99:99}],250:[function(t,e,r){\"use strict\";var p=t(38),u=t(141),f=t(36),d=t(119);t(65)(\"match\",1,function(n,a,l,c){return[function(t){var e=n(this),r=null==t?void 0:t[a];return void 0!==r?r.call(t,e):new RegExp(t)[a](String(e))},function(t){var e=c(l,t,this);if(e.done)return e.value;var r=p(t),n=String(this);if(!r.global)return d(r,n);for(var a=r.unicode,o=[],i=r.lastIndex=0;null!==(s=d(r,n));){var s=String(s[0]);\"\"===(o[i]=s)&&(r.lastIndex=f(n,u(r.lastIndex),a)),i++}return 0===i?null:o}]})},{119:119,141:141,36:36,38:38,65:65}],251:[function(t,e,r){\"use strict\";var w=t(38),_=t(142),C=t(141),P=t(139),S=t(36),L=t(119),E=Math.max,T=Math.min,k=Math.floor,R=/\\$([$&`']|\\d\\d?|<[^>]*>)/g,F=/\\$([$&`']|\\d\\d?)/g;t(65)(\"replace\",2,function(a,o,b,x){return[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):b.call(String(r),t,e)},function(t,e){var r=x(b,t,this,e);if(r.done)return r.value;var n,a=w(t),o=String(this),i=\"function\"==typeof e,s=(i||(e=String(e)),a.global);s&&(n=a.unicode,a.lastIndex=0);for(var l=[];;){var c=L(a,o);if(null===c)break;if(l.push(c),!s)break;\"\"===String(c[0])&&(a.lastIndex=S(o,C(a.lastIndex),n))}for(var p,u=\"\",f=0,d=0;d>>0,p=new RegExp(t.source,s+\"g\");(n=f.call(p,r))&&!(l<(a=p[C])&&(i.push(r.slice(l,n.index)),1=c));)p[C]===n.index&&p[C]++;return l===r[_]?!o&&p.test(\"\")||i.push(\"\"):i.push(r.slice(l)),i[_]>c?i.slice(0,c):i}:\"0\"[i](void 0,0)[_]?function(t,e){return void 0===t&&0===e?[]:h.call(this,t,e)}:h;return[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):g.call(String(r),t,e)},function(t,e){var r=m(g,t,this,e,g!==h);if(r.done)return r.value;var r=y(t),n=String(this),t=A(r,RegExp),a=r.unicode,o=(r.ignoreCase?\"i\":\"\")+(r.multiline?\"m\":\"\")+(r.unicode?\"u\":\"\")+(S?\"y\":\"g\"),i=new t(S?r:\"^(?:\"+r.source+\")\",o),s=void 0===e?P:e>>>0;if(0==s)return[];if(0===n.length)return null===x(i,n)?[n]:[];for(var l=0,c=0,p=[];c>10),e%1024+56320))}return r.join(\"\")}})},{137:137,62:62}],266:[function(t,e,r){\"use strict\";var n=t(62),a=t(130);n(n.P+n.F*t(63)(\"includes\"),\"String\",{includes:function(t){return!!~a(this,t,\"includes\").indexOf(t,1=t.length?{value:void 0,done:!0}:(t=n(t,e),this._i+=t.length,{value:t,done:!1})})},{129:129,85:85}],269:[function(t,e,r){\"use strict\";t(131)(\"link\",function(e){return function(t){return e(this,\"a\",\"href\",t)}})},{131:131}],270:[function(t,e,r){var n=t(62),i=t(140),s=t(141);n(n.S,\"String\",{raw:function(t){for(var e=i(t.raw),r=s(e.length),n=arguments.length,a=[],o=0;oa;)c(T,e=r[a++])||e==L||e==z||n.push(e);return n}function i(t){for(var e,r=t===R,n=J(r?k:y(t)),a=[],o=0;n.length>o;)!c(T,e=n[o++])||r&&!c(R,e)||a.push(T[e]);return a}function s(t,e,r){return t===R&&s(k,e,r),g(t),e=A(e,!0),g(r),c(T,e)?(r.enumerable?(c(t,L)&&t[L][e]&&(t[L][e]=!1),r=b(r,{enumerable:v(0,!1)})):(c(t,L)||w(t,L,v(1,{})),t[L][e]=!0),O(t,e,r)):w(t,e,r)}var l=t(70),c=t(71),p=t(58),u=t(62),M=t(118),z=t(94).KEY,f=t(64),d=t(126),h=t(124),U=t(147),m=t(152),j=t(151),G=t(150),W=t(61),H=t(79),g=t(38),V=t(81),Q=t(142),y=t(140),A=t(143),v=t(116),b=t(98),Y=t(102),q=t(101),x=t(104),Z=t(99),X=t(107),K=q.f,w=Z.f,J=Y.f,_=l.Symbol,C=l.JSON,P=C&&C.stringify,S=\"prototype\",L=m(\"_hidden\"),$=m(\"toPrimitive\"),tt={}.propertyIsEnumerable,E=d(\"symbol-registry\"),T=d(\"symbols\"),k=d(\"op-symbols\"),R=Object[S],d=\"function\"==typeof _&&!!x.f,F=l.QObject,I=!F||!F[S]||!F[S].findChild,O=p&&f(function(){return 7!=b(w({},\"a\",{get:function(){return w(this,\"a\",{value:7}).a}})).a})?function(t,e,r){var n=K(R,e);n&&delete R[e],w(t,e,r),n&&t!==R&&w(R,e,n)}:w,B=d&&\"symbol\"==typeof _.iterator?function(t){return\"symbol\"==typeof t}:function(t){return t instanceof _};d||(M((_=function(){if(this instanceof _)throw TypeError(\"Symbol is not a constructor!\");var e=U(0rt;)m(et[rt++]);for(var nt=X(m.store),at=0;nt.length>at;)G(nt[at++]);u(u.S+u.F*!d,\"Symbol\",{for:function(t){return c(E,t+=\"\")?E[t]:E[t]=_(t)},keyFor:function(t){if(!B(t))throw TypeError(t+\" is not a symbol!\");for(var e in E)if(E[e]===t)return e},useSetter:function(){I=!0},useSimple:function(){I=!1}}),u(u.S+u.F*!d,\"Object\",{create:function(t,e){return void 0===e?b(t):r(b(t),e)},defineProperty:s,defineProperties:r,getOwnPropertyDescriptor:a,getOwnPropertyNames:o,getOwnPropertySymbols:i});F=f(function(){x.f(1)});u(u.S+u.F*F,\"Object\",{getOwnPropertySymbols:function(t){return x.f(Q(t))}}),C&&u(u.S+u.F*(!d||f(function(){var t=_();return\"[null]\"!=P([t])||\"{}\"!=P({a:t})||\"{}\"!=P(Object(t))})),\"JSON\",{stringify:function(t){for(var e,r,n=[t],a=1;as;)void 0!==(r=a(n,e=o[s++]))&&u(i,e,r);return i}})},{101:101,111:111,140:140,53:53,62:62}],296:[function(t,e,r){var n=t(62),a=t(110)(!1);n(n.S,\"Object\",{values:function(t){return a(t)}})},{110:110,62:62}],297:[function(t,e,r){\"use strict\";var n=t(62),a=t(52),o=t(70),i=t(127),s=t(115);n(n.P+n.R,\"Promise\",{finally:function(e){var r=i(this,a.Promise||o.Promise),t=\"function\"==typeof e;return this.then(t?function(t){return s(r,e()).then(function(){return t})}:e,t?function(t){return s(r,e()).then(function(){throw t})}:e)}})},{115:115,127:127,52:52,62:62,70:70}],298:[function(t,e,r){\"use strict\";var n=t(62),a=t(132),t=t(148),t=/Version\\/10\\.\\d+(\\.\\d+)?( Mobile\\/\\w+)? Safari\\//.test(t);n(n.P+n.F*t,\"String\",{padEnd:function(t){return a(this,t,1/g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\")}function O(t){return\"number\"==typeof t&&100\").concat(e,\"\"):\"\")}function M(t){var e=\"solid\",r=\"\",n=\"\",a=\"\";return t&&(\"string\"==typeof t?r=t:(t.type&&(e=t.type),t.color&&(r=t.color),t.alpha&&(n+='')),t.transparency&&(n+=''))),a+=\"solid\"===e?\"\".concat(D(r,n),\"\"):\"\"),a}function C(t){return t._rels.length+t._relsChart.length+t._relsMedia.length+1}function mt(t,d,e,r){void 0===t&&(t=[]);var n,a=w,p=+R,u=0,o=0,h=[],i=F((d=void 0===d?{}:d).x,\"X\",e),s=F(d.y,\"Y\",e),l=F(d.w,\"X\",e),c=F(d.h,\"Y\",e),f=l;function m(){var t=0;0===h.length&&(t=s||O(a[0])),0r?r=B(t.options.margin[0]):d.margin&&d.margin[0]&&B(d.margin[0])>r&&(r=B(d.margin[0])),t.options.margin&&t.options.margin[2]&&B(t.options.margin[2])>n?n=B(t.options.margin[2]):d.margin&&d.margin[2]&&B(d.margin[2])>n&&(n=B(d.margin[2]))):(t.options.margin&&t.options.margin[0]&&O(t.options.margin[0])>r?r=O(t.options.margin[0]):d.margin&&d.margin[0]&&O(d.margin[0])>r&&(r=O(d.margin[0])),t.options.margin&&t.options.margin[2]&&O(t.options.margin[2])>n?n=O(t.options.margin[2]):d.margin&&d.margin[2]&&O(d.margin[2])>n&&(n=O(d.margin[2])))}),m(),u+=r+n,d.verbose&&0===e&&console.log(\"| SLIDE [\".concat(h.length,\"]: emuSlideTabH ...... = \").concat((p/R).toFixed(1),\" \")),t.forEach(function(r,n){var t,a,e,o,i,s,l,c,p={_type:k.tablecell,_lines:null,_lineHeight:O((r.options&&r.options.fontSize?r.options.fontSize:d.fontSize||x)*(q+(d.autoPageLineWeight||0))/100),text:[],options:r.options},u=(p.options.rowspan&&(p._lineHeight=0),p.options.autoPageCharWeight=d.autoPageCharWeight||null,d.colW[n]);r.options.colspan&&Array.isArray(d.colW)&&(u=d.colW.filter(function(t,e){return n<=e&&e \".concat(JSON.stringify(c))),s.push(c),c=[])),0o&&(i.push(e),e=[],r=\"\"),e.push(t),r+=t.text.toString()}),0=i&&(i=t._lineHeight)}),p maxH) => \".concat((u/R).toFixed(2),\" + \").concat((l._lineHeight/R).toFixed(2),\" > \").concat(p/R)),console.log(\"|-----------------------------------------------------------------------|\\n\\n\")),0r&&(r=t._lineHeight)}),A.rows.push(e),u+=r}),c=a[o]),l._lines.shift());Array.isArray(c.text)&&(l?c.text=c.text.concat(l):0===c.text.length&&(c.text=c.text.concat({_type:k.tablecell,text:\"\"}))),o===f.length-1&&(u+=i),o=o'},contain:function(t,e){var t=t.h/t.w,r=t'},crop:function(t,e){var r=e.x,n=t.w-(e.x+e.w),a=e.y,e=t.h-(e.y+e.h);return''}};function yt(L){var E=L._name?'':\"\",T=1;return L._bkgdImgRid?E+=''):L.background&&L.background.color?E+=\"\".concat(M(L.background),\"\"):!L.bkgd&&L._name&&L._name===et&&(E+=''),E=(E=E+\"\"+'')+''+'',L._slideObjects.forEach(function(n,t){var e,r=0,a=0,o=F(\"75%\",\"X\",L._presLayout),i=0,s=\"\";switch(void 0!==L._slideLayout&&void 0!==L._slideLayout._slideObjects&&n.options&&n.options.placeholder&&(e=L._slideLayout._slideObjects.filter(function(t){return t.options.placeholder===n.options.placeholder})[0]),n.options=n.options||{},void 0!==n.options.x&&(r=F(n.options.x,\"X\",L._presLayout)),void 0!==n.options.y&&(a=F(n.options.y,\"Y\",L._presLayout)),void 0!==n.options.w&&(o=F(n.options.w,\"X\",L._presLayout)),void 0!==n.options.h&&(i=F(n.options.h,\"Y\",L._presLayout)),e&&(!e.options.x&&0!==e.options.x||(r=F(e.options.x,\"X\",L._presLayout)),!e.options.y&&0!==e.options.y||(a=F(e.options.y,\"Y\",L._presLayout)),!e.options.w&&0!==e.options.w||(o=F(e.options.w,\"X\",L._presLayout)),!e.options.h&&0!==e.options.h||(i=F(e.options.h,\"Y\",L._presLayout))),n.options.flipH&&(s+=' flipH=\"1\"'),n.options.flipV&&(s+=' flipV=\"1\"'),n.options.rotate&&(s+=' rot=\"'+N(n.options.rotate)+'\"'),n._type){case k.table:var l,c=n.arrTabRows,p=n.options,u=0,f=0,d=(c[0].forEach(function(t){l=t.options||null,u+=l&&l.colspan?Number(l.colspan):1}),'')),d=(d+=' ')+'')+'';if(Array.isArray(p.colW)){d+=\"\";for(var h=0;h'}d+=\"\"}else{f=p.colW||R,n.options.w&&!p.colW&&(f=Math.round((\"number\"==typeof n.options.w?n.options.w:1)/u)),d+=\"\";for(var g=0;g';d+=\"\"}c.forEach(function(a){for(var o,i,t=0;t'),t.forEach(function(t){var e,r,n,a,o,i={rowSpan:1<(null==(s=t.options)?void 0:s.rowspan)?t.options.rowspan:void 0,gridSpan:1<(null==(s=t.options)?void 0:s.colspan)?t.options.colspan:void 0,vMerge:t._vmerge?1:void 0,hMerge:t._hmerge?1:void 0},s=(s=Object.keys(i).map(function(t){return[t,i[t]]}).filter(function(t){return t[0],!!t[1]}).map(function(t){var e=t[0],t=t[1];return\"\".concat(e,'=\"').concat(t,'\"')}).join(\" \"))&&\" \"+s;t._hmerge||t._vmerge?d+=\"\"):(e=t.options||{},t.options=e,[\"align\",\"bold\",\"border\",\"color\",\"fill\",\"fontFace\",\"fontSize\",\"margin\",\"underline\",\"valign\"].forEach(function(t){p[t]&&!e[t]&&0!==e[t]&&(e[t]=p[t])}),r=e.valign?' anchor=\"'+e.valign.replace(/^c$/i,\"ctr\").replace(/^m$/i,\"ctr\").replace(\"center\",\"ctr\").replace(\"middle\",\"ctr\").replace(\"top\",\"t\").replace(\"btm\",\"b\").replace(\"bottom\",\"b\")+'\"':\"\",n=(n=(t._optImp&&t._optImp.fill&&t._optImp.fill.color?t._optImp.fill.color:t._optImp&&t._optImp.fill&&\"string\"==typeof t._optImp.fill?t._optImp.fill:\"\")||e.fill?e.fill:\"\")?M(n):\"\",a=0===e.margin||e.margin?e.margin:$,o=\"\",o=1<=(a=Array.isArray(a)||\"number\"!=typeof a?a:[a,a,a,a])[0]?' marL=\"'.concat(B(a[3]),'\" marR=\"').concat(B(a[1]),'\" marT=\"').concat(B(a[0]),'\" marB=\"').concat(B(a[2]),'\"'):' marL=\"'.concat(O(a[3]),'\" marR=\"').concat(O(a[1]),'\" marT=\"').concat(O(a[0]),'\" marB=\"').concat(O(a[2]),'\"'),d+=\"\").concat(xt(t),\"\"),e.border&&Array.isArray(e.border)&&[{idx:3,name:\"lnL\"},{idx:1,name:\"lnR\"},{idx:0,name:\"lnT\"},{idx:2,name:\"lnB\"}].forEach(function(t){\"none\"!==e.border[t.idx].type?d=(d=(d=(d+=\"'))+\"\".concat(D(e.border[t.idx].color),\"\"))+''))+\"\"):d+=\"\")}),d=d+n+\" \")}),d+=\"\"}),E+=d=(d=d+\" \"+\" \")+\" \"+\"\",T++;break;case k.text:case k.placeholder:if(n.options.line||0!==i||(i=.3*R),n.options._bodyProp||(n.options._bodyProp={}),n.options.margin&&Array.isArray(n.options.margin)?(n.options._bodyProp.lIns=B(n.options.margin[0]||0),n.options._bodyProp.rIns=B(n.options.margin[1]||0),n.options._bodyProp.bIns=B(n.options.margin[2]||0),n.options._bodyProp.tIns=B(n.options.margin[3]||0)):\"number\"==typeof n.options.margin&&(n.options._bodyProp.lIns=B(n.options.margin),n.options._bodyProp.rIns=B(n.options.margin),n.options._bodyProp.bIns=B(n.options.margin),n.options._bodyProp.tIns=B(n.options.margin)),E=(E+=\"\")+''),n.options.hyperlink&&n.options.hyperlink.url&&(E+=''),n.options.hyperlink&&n.options.hyperlink.slide&&(E+=''),E=(E=(E=(E=(E=(E+=\"\")+(\"':\"/>\")))+\"\".concat(\"placeholder\"===n._type?wt(n):wt(e),\"\")+\"\")+\"\"))+''))+''),\"custGeom\"===n.shape)E=(E+='')+''),null!=(_=n.options.points)&&_.map(function(t,e){if(\"curve\"in t)switch(t.curve.type){case\"arc\":E+='');break;case\"cubic\":E+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t');break;case\"quadratic\":E+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t')}else\"close\"in t?E+=\"\":t.moveTo||0===e?E+=''):E+='')}),E+=\"\";else{if(E+='',n.options.rectRadius)E+='');else if(n.options.angleRange){for(var y=0;y<2;y++){var A=n.options.angleRange[y];E+='')}n.options.arcThicknessRatio&&(E+=''))}E+=\"\"}E+=n.options.fill?M(n.options.fill):\"\",n.options.line&&(E+=n.options.line.width?''):\"\",n.options.line.color&&(E+=M(n.options.line)),n.options.line.dashType&&(E+='')),n.options.line.beginArrowType&&(E+='')),n.options.line.endArrowType&&(E+='')),E+=\"\"),n.options.shadow&&(n.options.shadow.type=n.options.shadow.type||\"outer\",n.options.shadow.blur=B(n.options.shadow.blur||8),n.options.shadow.offset=B(n.options.shadow.offset||4),n.options.shadow.angle=Math.round(6e4*(n.options.shadow.angle||270)),n.options.shadow.opacity=Math.round(1e5*(n.options.shadow.opacity||.75)),n.options.shadow.color=n.options.shadow.color||nt.color,E=(E=(E=(E=(E=(E+=\"\")+\"')+'')+''),E=(E+=\"\")+xt(n)+\"\";break;case k.image:var v,b,x,w,_=n.options.sizing,C=n.options.rounding,P=o,S=i;E=(E=E+\"\"+\" \")+''),n.hyperlink&&n.hyperlink.url&&(E+='')),n.hyperlink&&n.hyperlink.slide&&(E+='')),E=(E=(E=E+\" \"+' ')+(\" \"+wt(e)+\"\"))+\" \"+\"\",E=(L._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0]&&\"svg\"===(L._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0].extn?(E=(E+='')+(n.options.transparency?' '):\"\")+' ')+' ':(E+='')+(n.options.transparency?' '):\"\")+\"\",_&&_.type?(v=_.w?F(_.w,\"X\",L._presLayout):o,b=_.h?F(_.h,\"Y\",L._presLayout):i,x=F(_.x||0,\"X\",L._presLayout),w=F(_.y||0,\"Y\",L._presLayout),E+=gt[_.type]({w:P,h:S},{w:v,h:b,x:x,y:w}),P=v,S=b):E+=\" \",E=(E=(E=(E=(E+=\"\")+\"\"+(\" \"))+(' ')+(' '))+\" \"+(' '))+\"\"+\"\";break;case k.media:E=\"online\"===n.mtype?(E=(E=(E=(E=(E+=\" \")+'')+\" \")+' ')+' ')+\" \")+' ':(E=(E=(E=(E=(E=(E+=\" \")+'')+' ')+' ')+' ')+' ')+\" \")+' ';break;case k.chart:E=(E=(E=(E=(E=(E=(E=E+\"\"+\" \")+' ')+\" \")+\" \".concat(wt(e),\"\")+\" \")+' '))+' '+' ')+' ')+\" \")+\" \"+\"\";break;default:E+=\"\"}}),L._slideNumberProps&&(L._slideNumberProps.align||(L._slideNumberProps.align=\"left\"),E=E+(' \",(L._slideNumberProps.fontFace||L._slideNumberProps.fontSize||L._slideNumberProps.color)&&(E+=''),L._slideNumberProps.color&&(E+=M(L._slideNumberProps.color)),L._slideNumberProps.fontFace&&(E+='')),E+=\"\"),E+=\"\",L._slideNumberProps.align.startsWith(\"l\")?E+='':L._slideNumberProps.align.startsWith(\"c\")?E+='':L._slideNumberProps.align.startsWith(\"r\")?E+='':E+='',E=(E+=''))+\"\".concat(L._slideNum,'')+\"\"),E=E+\"\"+\"\"}function At(t,e){var r=0,n=''+u+'';return t._rels.forEach(function(t){r=Math.max(r,t.rId),-1':n+='':-1')}),(t._relsChart||[]).forEach(function(t){r=Math.max(r,t.rId),n+=''}),(t._relsMedia||[]).forEach(function(t){r=Math.max(r,t.rId),-1':-1':n+='':-1':n+='':-1':n+='')}),e.forEach(function(t,e){n+=''}),n+=\"\"}function vt(t,e){var r,n=\"\",a=\"\",o=\"\",i=\"\",s=e?\"a:lvl1pPr\":\"a:pPr\",l=B(Z),c=\"<\".concat(s).concat(t.options.rtlMode?' rtl=\"1\" ':\"\");if(t.options.align)switch(t.options.align){case\"left\":c+=' algn=\"l\"';break;case\"right\":c+=' algn=\"r\"';break;case\"center\":c+=' algn=\"ctr\"';break;case\"justify\":c+=' algn=\"just\"';break;default:c+=\"\"}return t.options.lineSpacing?a=''):t.options.lineSpacingMultiple&&(a='')),t.options.indentLevel&&!isNaN(Number(t.options.indentLevel))&&0')),t.options.paraSpaceAfter&&!isNaN(Number(t.options.paraSpaceAfter))&&0')),\"object\"==typeof t.options.bullet?(t&&t.options&&t.options.bullet&&t.options.bullet.indent&&(l=B(t.options.bullet.indent)),t.options.bullet.type?\"number\"===t.options.bullet.type.toString().toLowerCase()&&(c+=' marL=\"'.concat(t.options.indentLevel&&0')):n=t.options.bullet.characterCode?(r=\"&#x\".concat(t.options.bullet.characterCode,\";\"),!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.characterCode)&&(console.warn(\"Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!\"),r=p.DEFAULT),c+=' marL=\"'.concat(t.options.indentLevel&&0'):t.options.bullet.code?(r=\"&#x\".concat(t.options.bullet.code,\";\"),!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.code)&&(console.warn(\"Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!\"),r=p.DEFAULT),c+=' marL=\"'.concat(t.options.indentLevel&&0'):(c+=' marL=\"'.concat(t.options.indentLevel&&0'))):!0===t.options.bullet?(c+=' marL=\"'.concat(t.options.indentLevel&&0')):!1===t.options.bullet&&(c+=' indent=\"0\" marL=\"0\"',n=\"\"),t.options.tabStops&&Array.isArray(t.options.tabStops)&&(r=t.options.tabStops.map(function(t){return'')}).join(\"\"),i=\"\".concat(r,\"\")),c+=\">\"+a+o+n+i,e&&(c+=bt(t.options,!0)),c+=\"\"}function bt(t,e){var r,n,a,o,i=\"\",e=e?\"a:defRPr\":\"a:rPr\",i=(i=(i=(i=(i+=\"<\"+e+' lang=\"'+(t.lang||\"en-US\")+'\"'+(t.lang?' altLang=\"en-US\"':\"\"))+(t.fontSize?' sz=\"'+Math.round(t.fontSize)+'00\"':\"\"))+(t.hasOwnProperty(\"bold\")?' b=\"'.concat(t.bold?1:0,'\"'):\"\"))+(t.hasOwnProperty(\"italic\")?' i=\"'.concat(t.italic?1:0,'\"'):\"\"))+(t.hasOwnProperty(\"strike\")?' strike=\"'.concat(\"string\"==typeof t.strike?t.strike:\"sngStrike\",'\"'):\"\");if(\"object\"==typeof t.underline&&null!=(r=t.underline)&&r.style?i+=' u=\"'.concat(t.underline.style,'\"'):\"string\"==typeof t.underline?i+=' u=\"'.concat(t.underline,'\"'):t.hyperlink&&(i+=' u=\"sng\"'),t.baseline?i+=' baseline=\"'.concat(Math.round(50*t.baseline),'\"'):t.subscript?i+=' baseline=\"-40000\"':t.superscript&&(i+=' baseline=\"30000\"'),i=i+(t.charSpacing?' spc=\"'.concat(Math.round(100*t.charSpacing),'\" kern=\"0\"'):\"\")+' dirty=\"0\">',(t.color||t.fontFace||t.outline||\"object\"==typeof t.underline&&t.underline.color)&&(t.outline&&\"object\"==typeof t.outline&&(i+='').concat(M(t.outline.color||\"FFFFFF\"),\"\")),t.color&&(i+=M({color:t.color,transparency:t.transparency})),t.highlight&&(i+=\"\".concat(D(t.highlight),\"\")),\"object\"==typeof t.underline&&t.underline.color&&(i+=\"\".concat(M(t.underline.color),\"\")),t.glow&&(i+=\"\".concat((r=t.glow,a=\"\",n=_(n=at,r),r=Math.round(n.size*b),o=n.color,n=Math.round(1e5*n.opacity),(a+=''))+D(o,''))+\"\"),\"\")),t.fontFace&&(i+=''))),t.hyperlink){if(\"object\"!=typeof t.hyperlink)throw new Error(\"ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` \");if(!t.hyperlink.url&&!t.hyperlink.slide)throw new Error(\"ERROR: 'hyperlink requires either `url` or `slide`'\");t.hyperlink.url?i+='\":\"/>\"):t.hyperlink.slide&&(i+='\":\"/>\")),t.color&&(i+='\\t\\t\\t\\t\\t\\t\\t\\t\\t')}return i+=\"\")}function xt(r){var a=r.options||{},t=[],n=[];if(a&&r._type!==k.tablecell&&(void 0===r.text||null===r.text))return\"\";var e,o,i=r._type===k.tablecell?\"\":\"\",s=(i+=(o=\"\",e.options.fit&&(\"none\"===e.options.fit?o+=\"\":\"shrink\"===e.options.fit?o+=\"\":\"resize\"===e.options.fit&&(o+=\"\")),e.options.shrinkText&&(o+=\"\"),o=o+(!1!==e.options._bodyProp.autoFit?\"\":\"\")+\"\"):o+=' wrap=\"square\" rtlCol=\"0\">',e._type===k.tablecell?\"\":o),0===a.h&&a.line&&a.align?i+='':\"placeholder\"===r._type?i+=\"\".concat(vt(r,!0),\"\"):i+=\"\",\"string\"==typeof r.text||\"number\"==typeof r.text?t.push({text:r.text.toString(),options:a||{}}):r.text&&!Array.isArray(r.text)&&\"object\"==typeof r.text&&-1\",\"\"),r.options.align=r.options.align||a.align,r.options.lineSpacing=r.options.lineSpacing||a.lineSpacing,r.options.lineSpacingMultiple=r.options.lineSpacingMultiple||a.lineSpacingMultiple,r.options.indentLevel=r.options.indentLevel||a.indentLevel,r.options.paraSpaceBefore=r.options.paraSpaceBefore||a.paraSpaceBefore,r.options.paraSpaceAfter=r.options.paraSpaceAfter||a.paraSpaceAfter,n=vt(r,!1),i+=n.replace(\"\",\"\"),Object.entries(a).forEach(function(t){var e=t[0],t=t[1];r.options.hyperlink&&\"color\"===e||\"bullet\"===e||r.options[e]||(r.options[e]=t)}),i+=(t=r).text?\"\".concat(bt(t.options,!1),\"\").concat(I(t.text),\"\"):\"\",(!r.text&&a.fontSize||r.options.fontSize)&&(e=!0,a.fontSize=a.fontSize||r.options.fontSize)}),r._type===k.tablecell&&(a.fontSize||a.fontFace)?a.fontFace?i=(i=(i=(i+='')+''))+''))+'')+\"\":i+='':i+=e?'':''),i+=\"\"}),i+=r._type===k.tablecell?\"\":\"\"}function wt(t){if(!t)return\"\";var e=t.options&&t.options._placeholderIdx?t.options._placeholderIdx:\"\",r=t.options&&t.options._placeholderType?t.options._placeholderType:\"\";return\"\")}function _t(t){return''+u+''+I((e=\"\",t._slideObjects.forEach(function(t){t._type===k.notes&&(e+=t.text&&t.text[0]?t.text[0].text:\"\")}),e.replace(/\\r*\\n/g,u)))+''+t._slideNum+'';var e}function Ct(t,e,r){return At(t[r-1],[{target:\"../slideLayouts/slideLayout\"+function(t,e,r){for(var n=0;n \\n'),t.file(\"_rels/.rels\",'\\n'),t.file(\"docProps/app.xml\",'Microsoft Excel0falseWorksheets1Sheet1\\n'),t.file(\"docProps/core.xml\",'PptxGenJSEly, Brent'+(new Date).toISOString()+''+(new Date).toISOString()+\"\\n\"),t.file(\"xl/_rels/workbook.xml.rels\",'\\n'),t.file(\"xl/styles.xml\",'\\n'),t.file(\"xl/theme/theme1.xml\",''),t.file(\"xl/workbook.xml\",'\\n'),t.file(\"xl/worksheets/_rels/sheet1.xml.rels\",'\\n'),''),o=(p.opts._type===d.BUBBLE?n+='':p.opts._type===d.SCATTER?n+='':n=n+('',p.opts._type===d.BUBBLE?f.forEach(function(t,e){0===e?n+=\"X-Axis\":n=(n+=\"\"+I(t.name||\" \")+\"\")+\"\"+I(\"Size \"+e)+\"\"}):f.forEach(function(t){n+=\"\"+I((t.name||\" \").replace(\"X-Axis\",\"X-Values\"))+\"\"}),p.opts._type!==d.BUBBLE&&p.opts._type!==d.SCATTER&&f[0].labels.forEach(function(t){n+=\"\"+I(t)+\"\"}),n+=\"\\n\",t.file(\"xl/sharedStrings.xml\",n),''),i=(p.opts._type!==d.BUBBLE&&(p.opts._type===d.SCATTER?(o=(o+='')+'',f.forEach(function(t,e){o+=''})):(o=(o+='
')+'',f.forEach(function(t,e){o+=''}))),o=(o+=\"\")+''+\"
\",t.file(\"xl/tables/table1.xml\",o),'');if(i+='',p.opts._type===d.BUBBLE?i+='':p.opts._type===d.SCATTER?i+='':i+='',i=i+''+'',p.opts._type===d.BUBBLE){for(var i=(i=(i=(i+=\"\")+(''))+\"\"+\"\")+('')+'0',s=1;s')+\"\"+s+\"\";i+=\"\",f[0].values.forEach(function(t,e){i=i+''+t+\"\";for(var r=1,n=1;n')+\"\"+(f[n].values[e]||\"\")+\"\")+'')+\"\"+(f[n].sizes[e]||\"\")+\"\",r++;i+=\"\"})}else if(p.opts._type===d.SCATTER){i=(i=(i=(i+=\"\")+(''))+\"\"+\"\")+('')+'0';for(var l=1;l')+\"\"+l+\"\";i+=\"\",f[0].values.forEach(function(t,e){i=i+(''+t+\"\";for(var r=1;r')+\"\"+(f[r].values[e]||0===f[r].values[e]?f[r].values[e]:\"\")+\"\";i+=\"\"})}else{i=(i=(i=i+\"\"+'')+\"\"+\"\")+('')+'0';for(var c=1;c<=f.length;c++)i=(i+='')+\"\"+c+\"\";i+=\"\",f[0].labels.forEach(function(t,e){i=(i=i+('')+\"\"+(f.length+e+1)+\"\";for(var r=0;r')+\"\"+(f[r].values[e]||\"\")+\"\";i+=\"\"})}i+='\\n',t.file(\"xl/worksheets/sheet1.xml\",i),t.generateAsync({type:\"base64\"}).then(function(t){u.file(\"ppt/embeddings/Microsoft_Excel_Worksheet\"+p.globalId+\".xlsx\",t,{base64:!0}),u.file(\"ppt/charts/_rels/\"+p.fileName+\".rels\",''),u.file(\"ppt/charts/\"+p.fileName,function(a){var o='',i=!1;o+='',a.opts.showTitle?o=o+Dt({title:a.opts.title||\"Chart Title\",color:a.opts.titleColor,fontFace:a.opts.titleFontFace,fontSize:a.opts.titleFontSize||tt,titleAlign:a.opts.titleAlign,titleBold:a.opts.titleBold,titlePos:a.opts.titlePos,titleRotate:a.opts.titleRotate})+'':o+='';a.opts._type===d.BAR3D&&(o=(o=(o=(o=(o+=\"\")+' ')+' ')+' ')+' ');o+=\"\",a.opts.layout?o=(o=(o=(o=(o+=' ')+' ')+' ')+' ')+' ':o+=\"\";Array.isArray(a.opts._type)?a.opts._type.forEach(function(t){var e=_(a.opts,t.options),r=e.secondaryValAxis?ot:g,n=e.secondaryCatAxis?st:it;i=i||e.secondaryValAxis,o+=Ot(t.type,t.data,e,r,n)}):o+=Ot(a.opts._type,a.data,a.opts,g,it);if(a.opts._type!==d.PIE&&a.opts._type!==d.DOUGHNUT){if(a.opts.valAxes&&1 ')+' ')+' ')+' ')+(\"none\"!==e.serGridLine.style?Mt(e.serGridLine):\"\"),e.showSerAxisTitle&&(n+=Dt({color:e.serAxisTitleColor,fontFace:e.serAxisTitleFontFace,fontSize:e.serAxisTitleFontSize,titleRotate:e.serAxisTitleRotate,title:e.serAxisTitle||\"Axis Title\"}));n=(n=(n=(n=(n=(n=(n=(n=n+' ')+' ')+' ')+(!1===e.serAxisLineShow?\"\":\"\"+D(e.serAxisLineColor||h.color)+\"\")+' ')+' '))+\" \"+D(e.serAxisLabelColor||m)+\"\")+' ')+' ')+' ',e.serAxisLabelFrequency&&(n+=' ');e.serLabelFormatCode&&([\"serAxisBaseTimeUnit\",\"serAxisMajorTimeUnit\",\"serAxisMinorTimeUnit\"].forEach(function(t){!e[t]||\"string\"==typeof e[t]&&-1!==[\"days\",\"months\",\"years\"].indexOf(t.toLowerCase())||(console.warn(\"`\"+t+\"` must be one of: 'days','months','years' !\"),e[t]=null)}),e.serAxisBaseTimeUnit&&(n+=' '),e.serAxisMajorTimeUnit&&(n+=' '),e.serAxisMinorTimeUnit&&(n+=' '),e.serAxisMajorUnit&&(n+=' '),e.serAxisMinorUnit&&(n+=' '));return n+=\"\"}(a.opts,lt,g)))}a.opts.showDataTable&&(o=(o=(o=(o=(o=(o+=\"\")+' ')+' ')+' ')+' \\t \\t \\t \\t\\t')+' ')+'\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t\\t\\t\\t\\t \\t');o=(o=(o+=\" \")+(a.opts.fill?M(a.opts.fill):\"\"))+(a.opts.border?'').concat(M(a.opts.border.color),\"\"):\"\")+\" \",a.opts.showLegend&&(o=(o+=\"\")+'',(a.opts.legendFontFace||a.opts.legendFontSize||a.opts.legendColor)&&(o=(o+=\" \")+(a.opts.legendFontSize?'':\"\"),a.opts.legendColor&&(o+=M(a.opts.legendColor)),a.opts.legendFontFace&&(o+=''),a.opts.legendFontFace&&(o+=''),o+=' '),o+=\"\");o=(o+=' ')+' ',a.opts._type===d.SCATTER&&(o+='');return o+=' '}(p)),e(null)}).catch(function(t){r(t)})})}function Ot(n,a,o,t,e){var i=\"\";switch(n){case d.AREA:case d.BAR:case d.BAR3D:case d.LINE:case d.RADAR:i+=\"\",n===d.AREA&&\"stacked\"===o.barGrouping&&(i+=''),n!==d.BAR&&n!==d.BAR3D||(i=(i+='')+''),n===d.RADAR&&(i+=''),i+='';var s=-1;a.forEach(function(t){s++;var e=t.index,r=(i=(i=(i=(i=(i=(i+=\"\")+(' ')+(' '))+\" \"+\" \")+(\" Sheet1!$\"+S(e+1)+\"$1\"))+(' '+I(t.name)+\"\")+\" \")+\" \"+' ',o.chartColors?o.chartColors[s%o.chartColors.length]:null);i+=\" \",\"transparent\"===r?i+=\"\":o.chartColorsOpacity?i+=\"\"+D(r,''))+\"\":i+=\"\"+D(r)+\"\",n===d.LINE||n===d.RADAR?0===o.lineSize?i+=\"\":i=(i+=''+D(r)+\"\")+'':o.dataBorder&&(i+=''+D(o.dataBorder.color)+''),i=i+L(o.shadow,c)+\" \",n!==d.RADAR&&(i=(i+=\" \")+' '),i=(i=(i=(i=(o.dataLabelBkgrdColors?(i+=\" \")+\" \"+D(r)+\" \":i)+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i=(i+=' ')+' ')+' ')+\" \"),n!==d.LINE&&n!==d.RADAR||(i=(i+=\"\")+' ',o.lineDataSymbolSize&&(i+=' '),i=(i=(i+=\" \")+\" \"+D(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e])+\"\")+' '+D(o.lineDataSymbolLineColor||r)+' '),n!==d.BAR&&n!==d.BAR3D||1!==a.length||!(o.chartColors&&o.chartColors!==ct&&1\")+' ',0===o.lineSize?i+=\"\":i=n===d.BAR?(i+=\"\")+' ':(i+=\" \")+' ',i=i+L(o.shadow,c)+\" \"}),i+=\"\",o.catLabelFormatCode?(i=(i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(t.labels.length+1)+\" \")+\" \"+(o.catLabelFormatCode||\"General\")+\"\")+' ',t.labels.forEach(function(t,e){i+=''+I(t)+\"\"}),i+=\" \"):(i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(t.labels.length+1)+\" \")+'\\t ',t.labels.forEach(function(t,e){i+=''+I(t)+\"\"}),i+=\" \"),i=(i=(i=(i=i+\"\"+\" \")+\" Sheet1!$\"+S(e+1)+\"$2:$\"+S(e+1)+\"$\"+(t.labels.length+1)+\" \")+\" \"+(o.valLabelFormatCode||o.dataTableFormatCode||\"General\")+\"\")+' ',t.values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i+=\" \",n===d.LINE&&(i+=''),i+=\"\"}),i=(i=(i=(i=(i+=\" \")+' ')+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i=(i+=' ')+' ')+' ')+\" \",n===d.BAR?i=(i+=' ')+' ':n===d.BAR3D?i=(i=(i+=' ')+' ')+' ':n===d.LINE&&(i+=' '),i=(i=i+(' ')+(' '))+(' ')+(\"\");break;case d.SCATTER:i=(i+=\"\")+''+'',s=-1,a.filter(function(t,e){return 0\")+' ')+\" Sheet1!$\"+y[t+1]+\"$1\")+' '+r.name+\" \";var n,e=o.chartColors[s%o.chartColors.length];\"transparent\"===e?i+=\"\":o.chartColorsOpacity?i+=\"\"+D(e,'')+\"\":i+=\"\"+D(e)+\"\",0===o.lineSize?i+=\"\":i=(i+=''+D(e)+\"\")+'',i=(i=(i+=L(o.shadow,c))+\" \"+\"\")+' ',o.lineDataSymbolSize&&(i+=' '),i=(i=(i+=\" \")+\" \"+D(o.chartColors[t+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):t])+\"\")+' '+D(o.lineDataSymbolLineColor||o.chartColors[s%o.chartColors.length])+' ',o.showLabel&&(n=ft(\"-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"),!r.labels||\"custom\"!==o.dataLabelFormatScatter&&\"customXY\"!==o.dataLabelFormatScatter||(i+=\"\",r.labels.forEach(function(t,e){\"custom\"!==o.dataLabelFormatScatter&&\"customXY\"!==o.dataLabelFormatScatter||(i=(i=(i=(i+=\" \")+' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t')+' \\t\\t')+\" \\t\\t\"+I(t)+\" \\t\",i=(\"customXY\"!==o.dataLabelFormatScatter||/^ *$/.test(t)?i:(i=(i=(i=(i=(i=(i=(i=(i=(i=(i+=\" \\t\")+' \\t\\t \\t\\t ( \\t')+' \\t')+' \\t\\t \\t\\t \\t\\t\\t \\t\\t')+\" \\t\\t[\"+I(r.name)+\" \\t \\t\")+' \\t\\t \\t\\t, \\t')+' \\t')+' \\t\\t \\t\\t \\t\\t\\t \\t\\t')+\" \\t\\t[\"+I(r.name)+\"] \\t \\t\")+' \\t\\t \\t\\t) \\t')+' \\t')+\" \\t \\t \\t \\t\\t \\t \\t \",o.dataLabelPosition&&(i+=' '),i=(i+=' \\t ')+'\\t\\t\\t \\t\\t')}),i+=\"\"),\"XY\"===o.dataLabelFormatScatter&&(i+='\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t \\t\\t\\t \\t\\t \\t\\t\\t\\t',o.dataLabelPosition&&(i+=' '),i=(i=(i+='\\t')+' '))+' ')+'\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t')),1===a.length&&o.chartColors!==ct&&r.values.forEach(function(t,e){t=t<0?o.invertedColors||o.chartColors||ct:o.chartColors||[];i=(i+=\" \")+' ',0===o.lineSize?i+=\"\":i=(i+=\"\")+' ',i=i+L(o.shadow,c)+\" \"}),i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(a[0].values.length+1)+\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i=(i=(i+=\" \")+\" Sheet1!$\"+S(t+1)+\"$2:$\"+S(t+1)+\"$\"+(a[0].values.length+1)+\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:\"\")+\"\"}),i=(i+=\" \")+''}),i=(i=(i=(i=(i+=\" \")+' ')+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i+=' ')+' ',i=(i+=' ')+(' ')+(\"\");break;case d.BUBBLE:var i=i+(\"\")+'',s=-1,l=1;a.filter(function(t,e){return 0\")+' ')+\" Sheet1!$\"+y[l]+\"$1\")+' '+r.name+\" \";var e=o.chartColors[s%o.chartColors.length];\"transparent\"===e?i+=\"\":o.chartColorsOpacity?i+=\"\"+D(e,'')+\"\":i+=\"\"+D(e)+\"\",0===o.lineSize?i+=\"\":o.dataBorder?i+=''+D(o.dataBorder.color)+'':i=(i+=''+D(e)+\"\")+'',i=i+L(o.shadow,c)+\"\",i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(a[0].values.length+1)+\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i=(i+=\" \")+\" Sheet1!$\"+S(l)+\"$2:$\"+S(l)+\"$\"+(a[0].values.length+1)+\"\",l++,i=(i+=\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:\"\")+\"\"}),i=(i+=\" \")+\" Sheet1!$\"+S(l)+\"$2:$\"+S(t+2)+\"$\"+(r.sizes.length+1)+\"\",l++,i=(i+=\" General\")+'\\t ',r.sizes.forEach(function(t,e){i+=''+(t||\"\")+\"\"}),i+=' '}),i=(i=(i=(i=(i+=\" \")+' ')+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i+=' ')+' ',i=(i+=' ')+(' ')+(\"\");break;case d.DOUGHNUT:case d.PIE:var r=a[0];i=(i=(i=(i=(i=(i=(i=(i=(i=i+(\"\")+' ')+\"\"+' ')+' '+\" \")+\" \"+\" Sheet1!$B$1\")+\" \"+' ')+(' '+I(r.name)+\"\"))+\" \"+\" \")+\" \"+\" \")+' '+' ',o.dataNoEffects?i+=\"\":i+=L(o.shadow,c),i+=\" \",r.labels.forEach(function(t,e){i=(i=(i+=\"\")+' ')+' ')+\"\".concat(D(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e]),\"\"),o.dataBorder&&(i+='').concat(D(o.dataBorder.color),'')),i=i+L(o.shadow,c)+\" \"}),i+=\"\",r.labels.forEach(function(t,e){i=(i=(i=(i=(i=(i+=\"\")+' '))+' ')+\" \")+' '))+\" \"+D(o.dataLabelColor||m)+\"\")+' ')+\" \",n===d.PIE&&o.dataLabelPosition&&(i+=' ')),i=(i=(i=(i+=' ')+' ')+' ')+' '}),i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=i+' ')+\"\\t\")+\"\\t \"+\"\\t \")+\"\\t \"+\"\\t\\t\")+('\\t\\t ')+'\\t\\t\\t')+\"\\t\\t \"+\"\\t\\t\")+\"\\t \"+\"\\t\")+(n===d.PIE?'':\"\"))+'\\t'+'\\t')+'\\t'+'\\t')+'\\t'+'\\t')+' ')+\"\")+\"\"+\" \")+(\" Sheet1!$A$2:$A$\"+(r.labels.length+1)+\"\")+\" \")+('\\t '),r.labels.forEach(function(t,e){i+=''+I(t)+\"\"}),i=(i=(i=(i=(i+=\" \")+\" \"+\"\")+\" \"+\" \")+(\" Sheet1!$B$2:$B$\"+(r.labels.length+1)+\"\")+\" \")+('\\t '),r.values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i=(i=(i=i+\" \"+\" \")+\" \"+\" \")+' '),n===d.DOUGHNUT&&(i+=' '),i+=\"\";break;default:i+=\"\"}return i}function Bt(e,t,r){var n=\"\";return e._type===d.SCATTER||e._type===d.BUBBLE?n+=\"\":n+=\"\",n=(n+=' ')+\" \"+(''),!e.catAxisMaxVal&&0!==e.catAxisMaxVal||(n+=''),!e.catAxisMinVal&&0!==e.catAxisMinVal||(n+=''),n=(n=(n=n+\"\"+(' '))+(' '))+(\"none\"!==e.catGridLine.style?Mt(e.catGridLine):\"\"),e.showCatAxisTitle&&(n+=Dt({color:e.catAxisTitleColor,fontFace:e.catAxisTitleFontFace,fontSize:e.catAxisTitleFontSize,titleRotate:e.catAxisTitleRotate,title:e.catAxisTitle||\"Axis Title\"})),e._type===d.SCATTER||e._type===d.BUBBLE?n+=' ':n+=' ',e._type===d.SCATTER?n+=' ':n=(n=(n+=' ')+' ')+' ',n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n+=\" \")+(' '))+(!1===e.catAxisLineShow?\"\":\"\"+D(e.catAxisLineColor||h.color)+\"\"))+(' '))+\" \"+\" \")+\" \"+\" \")+(\" \")+\" \")+\" \"+\" \")+(' '))+(\" \"+D(e.catAxisLabelColor||m)+\"\"))+(' '))+\" \"+\" \")+(' ')+\" \")+\" \"+(' '))+(\" ')+' ')+' '+' ',e.catAxisLabelFrequency&&(n+=' '),!e.catLabelFormatCode&&e._type!==d.SCATTER&&e._type!==d.BUBBLE||(e.catLabelFormatCode&&([\"catAxisBaseTimeUnit\",\"catAxisMajorTimeUnit\",\"catAxisMinorTimeUnit\"].forEach(function(t){!e[t]||\"string\"==typeof e[t]&&-1!==[\"days\",\"months\",\"years\"].indexOf(e[t].toLowerCase())||(console.warn(\"`\"+t+\"` must be one of: 'days','months','years' !\"),e[t]=null)}),e.catAxisBaseTimeUnit&&(n+=''),e.catAxisMajorTimeUnit&&(n+=''),e.catAxisMinorTimeUnit&&(n+='')),e.catAxisMajorUnit&&(n+=''),e.catAxisMinorUnit&&(n+='')),e._type===d.SCATTER||e._type===d.BUBBLE?n+=\"\":n+=\"\",n}function Nt(t,e){var r=e===g?\"col\"===t.barDir?\"l\":\"b\":\"col\"!==t.barDir?\"r\":\"t\",n=\"\",a=\"r\"==r||\"t\"==r?\"max\":\"autoZero\",o=e===g?it:st,n=(n+=\"\")+(' ')+\" \";return t.valAxisLogScaleBase&&(n+=' ')),n+=' ',!t.valAxisMaxVal&&0!==t.valAxisMaxVal||(n+=''),!t.valAxisMinVal&&0!==t.valAxisMinVal||(n+=''),n=(n+=\" \")+(' ')+(' '),\"none\"!==t.valGridLine.style&&(n+=Mt(t.valGridLine)),t.showValAxisTitle&&(n+=Dt({color:t.valAxisTitleColor,fontFace:t.valAxisTitleFontFace,fontSize:t.valAxisTitleFontSize,titleRotate:t.valAxisTitleRotate,title:t.valAxisTitle||\"Axis Title\"})),n+=''),t._type===d.SCATTER?n+=' ':n=(n=(n+=' ')+' ')+' ',n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n+=\" \")+(' '))+(!1===t.valAxisLineShow?\"\":\"\"+D(t.valAxisLineColor||h.color)+\"\"))+(' '))+\" \"+\" \")+\" \"+\" \")+(\" \")+\" \")+\" \"+\" \")+(' '))+(\" \"+D(t.valAxisLabelColor||m)+\"\"))+(' ')+\" \")+\" \"+(' '))+\" \"+\" \")+(' ')+(' '))+(' '),t.valAxisMajorUnit&&(n+=' '),t.valAxisDisplayUnit&&(n+='').concat(t.valAxisDisplayUnitLabel?\"\":\"\",\"\")),n+=\"\"}function Dt(t){var e=\"left\"===t.titleAlign||\"right\"===t.titleAlign?''):\"\",r=t.titleRotate?''):\"\",n=t.fontSize?'sz=\"'+Math.round(100*t.fontSize)+'\"':\"\",a=!0===t.titleBold?1:0,o=t.titlePos&&t.titlePos.x&&t.titlePos.y?''):\"\";return\"\\n\\t \\n\\t \\n\\t \".concat(r,\"\\n\\t \\n\\t \\n\\t \").concat(e,\"\\n\\t \\n\\t ').concat(D(t.color||m),'\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \\n\\t ').concat(D(t.color||m),'\\n\\t \\n\\t \\n\\t ').concat(I(t.title)||\"\",\"\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \").concat(o,'\\n\\t \\n\\t')}function S(t){var e=\"\";return e=t<=26?y[t]:(e+=y[Math.floor(t/y.length)-1])+y[t%y.length]}function L(t,e){if(!t)return\"\";if(\"object\"!=typeof t)return console.warn(\"`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`\"),\"\";var r=\"\",e=_(e,t),t=e.type||\"outer\",n=B(e.blur),a=B(e.offset),o=Math.round(6e4*e.angle),i=e.color,s=Math.round(1e5*e.opacity);return(r+=\"')+('')+('')+(\"\")+\"\"}function Mt(t){var e=\"\";return(e+=\" \")+(' ')+(' ')+(' ')+\" \"+\" \"+\"\"}function zt(t){var o=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null,i=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"https\"):null,e=[],s=t._relsMedia.filter(function(t){return\"online\"!==t.type&&!t.data&&(!t.path||t.path&&-1===t.path.indexOf(\"preencoded\"))}),r=[];return s.forEach(function(t){-1===r.indexOf(t.path)?(t.isDuplicate=!1,r.push(t.path)):t.isDuplicate=!0}),s.filter(function(t){return!t.isDuplicate}).forEach(function(a){e.push(new Promise(function(r,n){var e;if(o&&0!==a.path.indexOf(\"http\"))try{var t=o.readFileSync(a.path);a.data=Buffer.from(t).toString(\"base64\"),s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),r(\"done\")}catch(t){a.data=A,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),n('ERROR: Unable to read media: \"'+a.path+'\"\\n'+t.toString())}else o&&i&&0===a.path.indexOf(\"http\")?i.get(a.path,function(t){var e=\"\";t.setEncoding(\"binary\"),t.on(\"data\",function(t){return e+=t}),t.on(\"end\",function(){a.data=Buffer.from(e,\"binary\").toString(\"base64\"),s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),r(\"done\")}),t.on(\"error\",function(t){a.data=A,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),n(\"ERROR! Unable to load image (https.get): \".concat(a.path))})}):((e=new XMLHttpRequest).onload=function(){var t=new FileReader;t.onloadend=function(){a.data=t.result,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),a.isSvgPng?Ut(a).then(function(){r(\"done\")}).catch(function(t){n(t)}):r(\"done\")},t.readAsDataURL(e.response)},e.onerror=function(t){a.data=A,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),n(\"ERROR! Unable to load image (xhr.onerror): \".concat(a.path))},e.open(\"GET\",a.path),e.responseType=\"blob\",e.send())}))}),t._relsMedia.filter(function(t){return t.isSvgPng&&t.data}).forEach(function(t){o?(t.data=A,e.push(Promise.resolve().then(function(){return\"done\"}))):e.push(Ut(t))}),e}function Ut(a){return new Promise(function(r,e){var n=new Image;n.onload=function(){n.width+n.height===0&&n.onerror(\"h/w=0\");var t=document.createElement(\"CANVAS\"),e=t.getContext(\"2d\");t.width=n.width,t.height=n.height,e.drawImage(n,0,0);try{a.data=t.toDataURL(a.type),r(\"done\")}catch(t){n.onerror(t)}},n.onerror=function(t){a.data=A,e(\"ERROR! Unable to load image (image.onerror): \".concat(a.path))},n.src=\"string\"==typeof a.data?a.data:A})}function r(){var c=this;this._version=\"3.11.0-beta-20220501-1310\",this._alignH=G,this._alignV=W,this._chartType=U,this._outputType=T,this._schemeColor=a,this._shapeType=j,this._charts=d,this._colors=H,this._shapes=l,this.addNewSlide=function(t){var e=0'+u,r+='',a.forEach(function(t){(t._relsMedia||[]).forEach(function(t){\"image\"!==t.type&&\"online\"!==t.type&&\"chart\"!==t.type&&\"m4v\"!==t.extn&&-1===r.indexOf(t.type)&&(r+='')})}),r+='',a.forEach(function(t,e){r=r+'',t._relsChart.forEach(function(t){r+=' '})}),r+='',e.forEach(function(t,e){r+='',(t._relsChart||[]).forEach(function(t){r+=' '})}),a.forEach(function(t,e){r+=' '}),t._relsChart.forEach(function(t){r+=' '}),t._relsMedia.forEach(function(t){\"image\"!==t.type&&\"online\"!==t.type&&\"chart\"!==t.type&&\"m4v\"!==t.extn&&-1===r.indexOf(t.type)&&(r+=' ')}),r+=' ')),l.file(\"_rels/.rels\",''.concat(u,'\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t')),l.file(\"docProps/app.xml\",(e=c.slides,a=c.company,''.concat(u,'\\n\\t0\\n\\t0\\n\\tMicrosoft Office PowerPoint\\n\\tOn-screen Show (16:9)\\n\\t0\\n\\t').concat(e.length,\"\\n\\t\").concat(e.length,'\\n\\t0\\n\\t0\\n\\tfalse\\n\\t\\n\\t\\t\\n\\t\\t\\tFonts Used\\n\\t\\t\\t2\\n\\t\\t\\tTheme\\n\\t\\t\\t1\\n\\t\\t\\tSlide Titles\\n\\t\\t\\t').concat(e.length,'\\n\\t\\t\\n\\t\\n\\t\\n\\t\\t\\n\\t\\t\\tArial\\n\\t\\t\\tCalibri\\n\\t\\t\\tOffice Theme\\n\\t\\t\\t').concat(e.map(function(t,e){return\"Slide \"+(e+1)+\"\\n\"}).join(\"\"),\"\\n\\t\\t\\n\\t\\n\\t\").concat(a,\"\\n\\tfalse\\n\\tfalse\\n\\tfalse\\n\\t16.0000\\n\\t\"))),l.file(\"docProps/core.xml\",(t=c.title,e=c.subject,a=c.author,o=c.revision,'\\n\\t\\n\\t\\t'.concat(I(t),\"\\n\\t\\t\").concat(I(e),\"\\n\\t\\t\").concat(I(a),\"\\n\\t\\t\").concat(I(a),\"\\n\\t\\t\").concat(o,'\\n\\t\\t').concat((new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\"),'\\n\\t\\t').concat((new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\"),\"\\n\\t\"))),l.file(\"ppt/_rels/presentation.xml.rels\",function(t){for(var e=1,r=(r=''+u)+''+'',n=1;n<=t.length;n++)r+='';return r+=''}(c.slides)),l.file(\"ppt/theme/theme1.xml\",''.concat(u,'')),l.file(\"ppt/presentation.xml\",function(t){var e=(e=''.concat(u)+''))+''+\"\";t.slides.forEach(function(t){return e+='')}),e=(e=(e=(e+=\"\")+''))+''))+'')+\"\";for(var r=1;r<10;r++)e+=\"')+''+\"\");return e+=\"\",t.sections&&0',t.sections.forEach(function(t){e+=''),t._slides.forEach(function(t){return e+='')}),e+=\"\"}),e+=''),e+=\"\"}(c)),l.file(\"ppt/presProps.xml\",''.concat(u,'')),l.file(\"ppt/tableStyles.xml\",''.concat(u,'')),l.file(\"ppt/viewProps.xml\",''.concat(u,'')),c.slideLayouts.forEach(function(t,e){l.file(\"ppt/slideLayouts/slideLayout\"+(e+1)+\".xml\",'\\n\\t\\t\\n\\t\\t'.concat(yt(t),\"\\n\\t\\t\")),l.file(\"ppt/slideLayouts/_rels/slideLayout\"+(e+1)+\".xml.rels\",(t=e+1,At(c.slideLayouts[t-1],[{target:\"../slideMasters/slideMaster1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster\"}])))}),c.slides.forEach(function(t,e){var r;l.file(\"ppt/slides/slide\"+(e+1)+\".xml\",(r=t,''.concat(u)+'\")+\"\".concat(yt(r))+\"\")),l.file(\"ppt/slides/_rels/slide\"+(e+1)+\".xml.rels\",Ct(c.slides,c.slideLayouts,e+1)),l.file(\"ppt/notesSlides/notesSlide\"+(e+1)+\".xml\",_t(t)),l.file(\"ppt/notesSlides/_rels/notesSlide\"+(e+1)+\".xml.rels\",'\\n\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t'))}),l.file(\"ppt/slideMasters/slideMaster1.xml\",(n=c.masterSlide,t=(t=c.slideLayouts).map(function(t,e){return''}),e=''+u,(e+='')+yt(n)+''+t.join(\"\")+' ')),l.file(\"ppt/slideMasters/_rels/slideMaster1.xml.rels\",(a=c.masterSlide,(o=(o=c.slideLayouts).map(function(t,e){return{target:\"../slideLayouts/slideLayout\".concat(e+1,\".xml\"),type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout\"}})).push({target:\"../theme/theme1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\"}),At(a,o))),l.file(\"ppt/notesMasters/notesMaster1.xml\",''.concat(u,'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›')),l.file(\"ppt/notesMasters/_rels/notesMaster1.xml.rels\",''.concat(u,'\\n\\t\\t\\n\\t\\t')),c.slideLayouts.forEach(function(t){c.createChartMediaRels(t,l,s)}),c.slides.forEach(function(t){c.createChartMediaRels(t,l,s)}),c.createChartMediaRels(c.masterSlide,l,s),Promise.all(s).then(function(){return\"STREAM\"===i.outputType?l.generateAsync({type:\"nodebuffer\",compression:i.compression?\"DEFLATE\":\"STORE\"}):i.outputType?l.generateAsync({type:i.outputType}):l.generateAsync({type:\"blob\",compression:i.compression?\"DEFLATE\":\"STORE\"})})})},this.LAYOUTS={LAYOUT_4x3:{name:\"screen4x3\",width:9144e3,height:6858e3},LAYOUT_16x9:{name:\"screen16x9\",width:9144e3,height:5143500},LAYOUT_16x10:{name:\"screen16x10\",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:\"custom\",width:12192e3,height:6858e3}},this._author=\"PptxGenJS\",this._company=\"PptxGenJS\",this._revision=\"1\",this._subject=\"PptxGenJS Presentation\",this._title=\"PptxGenJS Presentation\",this._presLayout={name:this.LAYOUTS[f].name,_sizeW:this.LAYOUTS[f].width,_sizeH:this.LAYOUTS[f].height,width:this.LAYOUTS[f].width,height:this.LAYOUTS[f].height},this._rtlMode=!1,this._slideLayouts=[{_margin:w,_name:et,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(r.prototype,\"layout\",{get:function(){return this._layout},set:function(t){var e=this.LAYOUTS[t];if(!e)throw new Error(\"UNKNOWN-LAYOUT\");this._layout=t,this._presLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"version\",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"author\",{get:function(){return this._author},set:function(t){this._author=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"company\",{get:function(){return this._company},set:function(t){this._company=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"revision\",{get:function(){return this._revision},set:function(t){this._revision=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"subject\",{get:function(){return this._subject},set:function(t){this._subject=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"title\",{get:function(){return this._title},set:function(t){this._title=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"rtlMode\",{get:function(){return this._rtlMode},set:function(t){this._rtlMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"masterSlide\",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"slides\",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"sections\",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"slideLayouts\",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"AlignH\",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"AlignV\",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"ChartType\",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"OutputType\",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"presLayout\",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"SchemeColor\",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"ShapeType\",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"charts\",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"colors\",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"shapes\",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),r.prototype.stream=function(t){t=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression;return this.exportPresentation({compression:t,outputType:\"STREAM\"})},r.prototype.write=function(t){var e=\"object\"==typeof t&&t.hasOwnProperty(\"outputType\")?t.outputType:t||null,t=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression;return this.exportPresentation({compression:t,outputType:e})},r.prototype.writeFile=function(t){var e=this,n=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null,r=(\"string\"==typeof t&&console.log(\"Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)\"),\"object\"==typeof t&&t.hasOwnProperty(\"fileName\")?t.fileName:\"string\"==typeof t?t:\"\"),t=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression,a=r?r.toString().toLowerCase().endsWith(\".pptx\")?r:r+\".pptx\":\"Presentation.pptx\";return this.exportPresentation({compression:t,outputType:n?\"nodebuffer\":null}).then(function(t){return n?new Promise(function(e,r){n.writeFile(a,t,function(t){t?r(t):e(a)})}):e.writeFileToBrowser(a,t)})},r.prototype.addSection=function(t){t?t.title||console.warn(\"addSection requires a title\"):console.warn(\"addSection requires an argument\");var e={_type:\"user\",_slides:[],title:t.title};t.order?this.sections.splice(t.order,0,e):this._sections.push(e)},r.prototype.addSlide=function(e){var r=\"string\"==typeof e?e:e&&e.masterName?e.masterName:\"\",t={_name:this.LAYOUTS[f].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1},n=(!r||(n=this.slideLayouts.filter(function(t){return t._name===r})[0])&&(t=n),new Ft({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:t}));return this._slides.push(n),e&&e.sectionTitle?(t=this.sections.filter(function(t){return t.title===e.sectionTitle})[0])?t._slides.push(n):console.warn('addSlide: unable to find section with title: \"'.concat(e.sectionTitle,'\"')):!(this.sections&&0 opts.y = \").concat(i.y)),r.addTable(t.rows,{x:i.x||f[3],y:i.y,w:Number(a)/R,colW:p,autoPage:!1}),i.addImage&&(i.addImage.options=i.addImage.options||{},i.addImage.image&&(i.addImage.image.path||i.addImage.image.data)?r.addImage({path:i.addImage.image.path,data:i.addImage.image.data,x:i.addImage.options.x,y:i.addImage.options.y,w:i.addImage.options.w,h:i.addImage.options.h}):console.warn(\"Warning: tableToSlides.addImage requires either `path` or `data`\")),i.addShape&&r.addShape(i.addShape.shape,i.addShape.options||{}),i.addTable&&r.addTable(i.addTable.rows,i.addTable.options||{}),i.addText&&r.addText(i.addText.text,i.addText.options||{})})},r}();"],"file":"pptxgen.bundle.js"} +{"version":3,"names":[],"mappings":"","sources":["pptxgen.bundle.js"],"sourcesContent":["/* PptxGenJS 3.11.0-beta @ 2022-05-01T21:07:11.428Z */\n!function(t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).JSZip=t()}(function(){return function n(a,o,i){function s(e,t){if(!o[e]){if(!a[e]){var r=\"function\"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);t=new Error(\"Cannot find module '\"+e+\"'\");throw t.code=\"MODULE_NOT_FOUND\",t}r=o[e]={exports:{}};a[e][0].call(r.exports,function(t){return s(a[e][1][t]||t)},r,r.exports,n,a,o,i)}return o[e].exports}for(var l=\"function\"==typeof require&&require,t=0;t>4,o=1>6:64,i=2>2)+f.charAt(a)+f.charAt(o)+f.charAt(i));return s.join(\"\")},r.decode=function(t){var e,r,n,a,o,i=0,s=0;if(\"data:\"===t.substr(0,\"data:\".length))throw new Error(\"Invalid base64 input, it looks like a data url.\");var l,c=3*(t=t.replace(/[^A-Za-z0-9\\+\\/\\=]/g,\"\")).length/4;if(t.charAt(t.length-1)===f.charAt(64)&&c--,t.charAt(t.length-2)===f.charAt(64)&&c--,c%1!=0)throw new Error(\"Invalid base64 input, bad content length.\");for(l=new(p.uint8array?Uint8Array:Array)(0|c);i>4,r=(15&a)<<4|(a=f.indexOf(t.charAt(i++)))>>2,n=(3&a)<<6|(o=f.indexOf(t.charAt(i++))),l[s++]=e,64!==a&&(l[s++]=r),64!==o&&(l[s++]=n);return l}},{\"./support\":30,\"./utils\":32}],2:[function(t,e,r){\"use strict\";var n=t(\"./external\"),a=t(\"./stream/DataWorker\"),o=t(\"./stream/Crc32Probe\"),i=t(\"./stream/DataLengthProbe\");function s(t,e,r,n,a){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=a}s.prototype={getContentWorker:function(){var t=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i(\"data_length\")),e=this;return t.on(\"end\",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error(\"Bug : uncompressed data size mismatch\")}),t},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo(\"compressedSize\",this.compressedSize).withStreamInfo(\"uncompressedSize\",this.uncompressedSize).withStreamInfo(\"crc32\",this.crc32).withStreamInfo(\"compression\",this.compression)}},s.createWorkerFrom=function(t,e,r){return t.pipe(new o).pipe(new i(\"uncompressedSize\")).pipe(e.compressWorker(r)).pipe(new i(\"compressedSize\")).withStreamInfo(\"compression\",e)},e.exports=s},{\"./external\":6,\"./stream/Crc32Probe\":25,\"./stream/DataLengthProbe\":26,\"./stream/DataWorker\":27}],3:[function(t,e,r){\"use strict\";var n=t(\"./stream/GenericWorker\");r.STORE={magic:\"\\0\\0\",compressWorker:function(t){return new n(\"STORE compression\")},uncompressWorker:function(){return new n(\"STORE decompression\")}},r.DEFLATE=t(\"./flate\")},{\"./flate\":7,\"./stream/GenericWorker\":28}],4:[function(t,e,r){\"use strict\";var n=t(\"./utils\"),i=function(){for(var t=[],e=0;e<256;e++){for(var r=e,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;t[e]=r}return t}();e.exports=function(t,e){return void 0!==t&&t.length?(\"string\"!==n.getTypeOf(t)?function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e[o])];return-1^t}:function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e.charCodeAt(o))];return-1^t})(0|e,t,t.length):0}},{\"./utils\":32}],5:[function(t,e,r){\"use strict\";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){\"use strict\";t=\"undefined\"!=typeof Promise?Promise:t(\"lie\");e.exports={Promise:t}},{lie:37}],7:[function(t,e,r){\"use strict\";var n=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Uint32Array,a=t(\"pako\"),o=t(\"./utils\"),i=t(\"./stream/GenericWorker\"),s=n?\"uint8array\":\"array\";function l(t,e){i.call(this,\"FlateWorker/\"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic=\"\\b\\0\",o.inherits(l,i),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){i.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(t){return new l(\"Deflate\",t)},r.uncompressWorker=function(){return new l(\"Inflate\",{})}},{\"./stream/GenericWorker\":28,\"./utils\":32,pako:38}],8:[function(t,e,r){\"use strict\";function A(t,e){for(var r=\"\",n=0;n>>=8;return r}function n(t,e,r,n,a,o){var i=t.file,s=t.compression,l=o!==b.utf8encode,c=v.transformTo(\"string\",o(i.name)),p=v.transformTo(\"string\",b.utf8encode(i.name)),u=i.comment,o=v.transformTo(\"string\",o(u)),f=v.transformTo(\"string\",b.utf8encode(u)),d=p.length!==i.name.length,u=f.length!==u.length,h=\"\",m=i.dir,g=i.date,y={crc32:0,compressedSize:0,uncompressedSize:0},r=(e&&!r||(y.crc32=t.crc32,y.compressedSize=t.compressedSize,y.uncompressedSize=t.uncompressedSize),0);e&&(r|=8),l||!d&&!u||(r|=2048);t=0,e=0,m&&(t|=16),\"UNIX\"===a?(e=798,t|=(65535&(l=(l=i.unixPermissions)?l:m?16893:33204))<<16):(e=20,t|=63&(i.dosPermissions||0)),a=g.getUTCHours(),a=(a=((a<<=6)|g.getUTCMinutes())<<5)|g.getUTCSeconds()/2,m=g.getUTCFullYear()-1980,m=(m=((m<<=4)|g.getUTCMonth()+1)<<5)|g.getUTCDate(),d&&(h+=\"up\"+A((l=A(1,1)+A(x(c),4)+p).length,2)+l),u&&(h+=\"uc\"+A((i=A(1,1)+A(x(o),4)+f).length,2)+i),g=\"\",g=(g=(g=(g=(g=(g=(g=(g=(g=(g+=\"\\n\\0\")+A(r,2))+s.magic)+A(a,2))+A(m,2))+A(y.crc32,4))+A(y.compressedSize,4))+A(y.uncompressedSize,4))+A(c.length,2))+A(h.length,2);return{fileRecord:w.LOCAL_FILE_HEADER+g+c+h,dirRecord:w.CENTRAL_FILE_HEADER+A(e,2)+g+A(o.length,2)+\"\\0\\0\\0\\0\"+A(t,4)+A(n,4)+c+h+o}}var v=t(\"../utils\"),a=t(\"../stream/GenericWorker\"),b=t(\"../utf8\"),x=t(\"../crc32\"),w=t(\"../signature\");function o(t,e,r,n){a.call(this,\"ZipFileWorker\"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}v.inherits(o,a),o.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},o.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;e?(t=n(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:t.fileRecord,meta:{percent:0}})):this.accumulate=!0},o.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=n(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:w.DATA_DESCRIPTOR+A((e=t).crc32,4)+A(e.compressedSize,4)+A(e.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},o.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return n.transformTo(\"string\",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=a},{\"../utils\":32}],19:[function(t,e,r){\"use strict\";var n=t(\"./Uint8ArrayReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./Uint8ArrayReader\":21}],20:[function(t,e,r){\"use strict\";var n=t(\"./DataReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},a.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},a.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./DataReader\":18}],21:[function(t,e,r){\"use strict\";var n=t(\"./ArrayReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./ArrayReader\":17}],22:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"../support\"),o=t(\"./ArrayReader\"),i=t(\"./StringReader\"),s=t(\"./NodeBufferReader\"),l=t(\"./Uint8ArrayReader\");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),\"string\"!==e||a.uint8array?\"nodebuffer\"===e?new s(t):a.uint8array?new l(n.transformTo(\"uint8array\",t)):new o(n.transformTo(\"array\",t)):new i(t)}},{\"../support\":30,\"../utils\":32,\"./ArrayReader\":17,\"./NodeBufferReader\":19,\"./StringReader\":20,\"./Uint8ArrayReader\":21}],23:[function(t,e,r){\"use strict\";r.LOCAL_FILE_HEADER=\"PK\u0003\u0004\",r.CENTRAL_FILE_HEADER=\"PK\u0001\u0002\",r.CENTRAL_DIRECTORY_END=\"PK\u0005\u0006\",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR=\"PK\u0006\u0007\",r.ZIP64_CENTRAL_DIRECTORY_END=\"PK\u0006\u0006\",r.DATA_DESCRIPTOR=\"PK\u0007\\b\"},{}],24:[function(t,e,r){\"use strict\";var n=t(\"./GenericWorker\"),a=t(\"../utils\");function o(t){n.call(this,\"ConvertWorker to \"+t),this.destType=t}a.inherits(o,n),o.prototype.processChunk=function(t){this.push({data:a.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],25:[function(t,e,r){\"use strict\";var n=t(\"./GenericWorker\"),a=t(\"../crc32\");function o(){n.call(this,\"Crc32Probe\"),this.withStreamInfo(\"crc32\",0)}t(\"../utils\").inherits(o,n),o.prototype.processChunk=function(t){this.streamInfo.crc32=a(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{\"../crc32\":4,\"../utils\":32,\"./GenericWorker\":28}],26:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"./GenericWorker\");function o(t){a.call(this,\"DataLengthProbe for \"+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(o,a),o.prototype.processChunk=function(t){var e;t&&(e=this.streamInfo[this.propName]||0,this.streamInfo[this.propName]=e+t.data.length),a.prototype.processChunk.call(this,t)},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],27:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"./GenericWorker\");function o(t){a.call(this,\"DataWorker\");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=\"\",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}n.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case\"string\":t=this.data.substring(this.index,e);break;case\"uint8array\":t=this.data.subarray(this.index,e);break;case\"array\":case\"nodebuffer\":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],28:[function(t,e,r){\"use strict\";function n(t){this.name=t||\"default\",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit(\"data\",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(\"end\"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit(\"error\",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit(\"error\",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r \"+t:t}},e.exports=n},{}],29:[function(t,e,r){\"use strict\";var c=t(\"../utils\"),a=t(\"./ConvertWorker\"),o=t(\"./GenericWorker\"),p=t(\"../base64\"),n=t(\"../support\"),i=t(\"../external\"),s=null;if(n.nodestream)try{s=t(\"../nodejs/NodejsStreamOutputAdapter\")}catch(t){}function l(t,e,r){var n=e;switch(e){case\"blob\":case\"arraybuffer\":n=\"uint8array\";break;case\"base64\":n=\"string\"}try{this._internalType=n,this._outputType=e,this._mimeType=r,c.checkSupport(n),this._worker=t.pipe(new a(n)),t.lock()}catch(t){this._worker=new o(\"error\"),this._worker.error(t)}}l.prototype={accumulate:function(t){return s=this,l=t,new i.Promise(function(e,r){var n=[],a=s._internalType,o=s._outputType,i=s._mimeType;s.on(\"data\",function(t,e){n.push(t),l&&l(e)}).on(\"error\",function(t){n=[],r(t)}).on(\"end\",function(){try{var t=function(t,e,r){switch(t){case\"blob\":return c.newBlob(c.transformTo(\"arraybuffer\",e),r);case\"base64\":return p.encode(e);default:return c.transformTo(t,e)}}(o,function(t,e){for(var r=0,n=null,a=0,o=0;o>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},a.utf8decode=function(t){if(c.nodebuffer)return l.transformTo(\"nodebuffer\",t).toString(\"utf-8\");for(var e,r,n,a=t=l.transformTo(c.uint8array?\"uint8array\":\"array\",t),o=a.length,i=new Array(2*o),s=e=0;s>10&1023,i[e++]=56320|1023&r)}return i.length!==e&&(i.subarray?i=i.subarray(0,e):i.length=e),l.applyFromCharCode(i)},l.inherits(o,r),o.prototype.processChunk=function(t){var e=l.transformTo(c.uint8array?\"uint8array\":\"array\",t.data),r=(this.leftOver&&this.leftOver.length&&(c.uint8array?(r=e,(e=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),e.set(r,this.leftOver.length)):e=this.leftOver.concat(e),this.leftOver=null),function(t,e){for(var r=(e=(e=e||t.length)>t.length?t.length:e)-1;0<=r&&128==(192&t[r]);)r--;return!(r<0)&&0!==r&&r+u[t[r]]>e?r:e}(e)),n=e;r!==e.length&&(c.uint8array?(n=e.subarray(0,r),this.leftOver=e.subarray(r,e.length)):(n=e.slice(0,r),this.leftOver=e.slice(r,e.length))),this.push({data:a.utf8decode(n),meta:t.meta})},o.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=o,l.inherits(i,r),i.prototype.processChunk=function(t){this.push({data:a.utf8encode(t.data),meta:t.meta})},a.Utf8EncodeWorker=i},{\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./support\":30,\"./utils\":32}],32:[function(t,e,i){\"use strict\";var s=t(\"./support\"),l=t(\"./base64\"),r=t(\"./nodejsUtils\"),n=t(\"set-immediate-shim\"),c=t(\"./external\");function a(t){return t}function p(t,e){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||\"/\"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){var e;this.extraFields[1]&&(e=n(this.extraFields[1].value),this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4)))},readExtraFields:function(t){var e,r,n,a=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},r.buf2binstring=function(t){return p(t,t.length)},r.binstring2buf=function(t){for(var e=new l.Buf8(t.length),r=0,n=e.length;r>10&1023,i[r++]=56320|1023&n)}return p(i,r)},r.utf8border=function(t,e){for(var r=(e=(e=e||t.length)>t.length?t.length:e)-1;0<=r&&128==(192&t[r]);)r--;return!(r<0)&&0!==r&&r+c[t[r]]>e?r:e}},{\"./common\":41}],43:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){for(var a=65535&t|0,o=t>>>16&65535|0,i=0;0!==r;){for(r-=i=2e3>>1:r>>>1;t[e]=r}return t}();e.exports=function(t,e,r,n){var a=s,o=n+r;t^=-1;for(var i=n;i>>8^a[255&(t^e[i])];return-1^t}},{}],46:[function(t,N,e){\"use strict\";var s,u=t(\"../utils/common\"),l=t(\"./trees\"),f=t(\"./adler32\"),d=t(\"./crc32\"),r=t(\"./messages\"),c=0,p=0,h=-2,n=2,m=8,a=286,o=30,i=19,D=2*a+1,M=15,g=3,y=258,A=y+g+1,v=42,b=113;function x(t,e){return t.msg=r[e],e}function w(t){return(t<<1)-(4t.avail_out?t.avail_out:r)&&(u.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function P(t,e){l._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,C(t.strm)}function S(t,e){t.pending_buf[t.pending++]=e}function L(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function E(t,e){var r,n,a=t.max_chain_length,o=t.strstart,i=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-A?t.strstart-(t.w_size-A):0,c=t.window,p=t.w_mask,u=t.prev,f=t.strstart+y,d=c[o+i-1],h=c[o+i];t.prev_length>=t.good_match&&(a>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+i]===h&&c[r+i-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){for(o+=2,r++;c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&ol&&0!=--a);return i<=t.lookahead?i:t.lookahead}function T(t){var e,r,n,a,o,i,s,l,c,p=t.w_size;do{if(l=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-A)){for(u.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;n=t.head[--e],t.head[e]=p<=n?n-p:0,--r;);for(e=r=p;n=t.prev[--e],t.prev[e]=p<=n?n-p:0,--r;);l+=p}if(0===t.strm.avail_in)break;if(o=t.strm,i=t.window,s=t.strstart+t.lookahead,c=void 0,r=0===(c=(l=l)<(c=o.avail_in)?l:c)?0:(o.avail_in-=c,u.arraySet(i,o.input,o.next_in,c,s),1===o.state.wrap?o.adler=f(o.adler,i,c,s):2===o.state.wrap&&(o.adler=d(o.adler,i,c,s)),o.next_in+=c,o.total_in+=c,c),t.lookahead+=r,t.lookahead+t.insert>=g)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<=g&&(t.ins_h=(t.ins_h<=g)if(n=l._tr_tally(t,t.strstart-t.match_start,t.match_length-g),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=g){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=g&&(t.ins_h=(t.ins_h<=g&&t.match_length<=t.prev_length){for(a=t.strstart+t.lookahead-g,n=l._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-g),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=a&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(T(t),0===t.lookahead&&e===c)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,P(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-A&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(P(t,!1),t.strm.avail_out),1)}),new F(4,4,8,4,k),new F(4,5,16,8,k),new F(4,6,32,32,k),new F(4,4,16,16,R),new F(8,16,32,32,R),new F(8,16,128,128,R),new F(8,32,128,256,R),new F(32,128,258,1024,R),new F(32,258,258,4096,R)],e.deflateInit=function(t,e){return B(t,e,m,15,8,0)},e.deflateInit2=B,e.deflateReset=O,e.deflateResetKeep=I,e.deflateSetHeader=function(t,e){return!t||!t.state||2!==t.state.wrap?h:(t.state.gzhead=e,p)},e.deflate=function(t,e){var r,n,a,o;if(!t||!t.state||5>8&255),S(n,n.gzhead.time>>16&255),S(n,n.gzhead.time>>24&255),S(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),S(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(S(n,255&n.gzhead.extra.length),S(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=d(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(S(n,0),S(n,0),S(n,0),S(n,0),S(n,0),S(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),S(n,3),n.status=b)):(i=m+(n.w_bits-8<<4)<<8,i|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(i|=32),i+=31-i%31,n.status=b,L(n,i),0!==n.strstart&&(L(n,t.adler>>>16),L(n,65535&t.adler)),t.adler=1)),69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),C(t),a=n.pending,n.pending!==n.pending_buf_size));)S(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),C(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}}while(o=n.gzindexa&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),C(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}}while(o=n.gzindexa&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&C(t),n.pending+2<=n.pending_buf_size&&(S(n,255&t.adler),S(n,t.adler>>8&255),t.adler=0,n.status=b)):n.status=b),0!==n.pending){if(C(t),0===t.avail_out)return n.last_flush=-1,p}else if(0===t.avail_in&&w(e)<=w(r)&&4!==e)return x(t,-5);if(666===n.status&&0!==t.avail_in)return x(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==c&&666!==n.status){var i=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(T(t),0===t.lookahead)){if(e===c)return 1;break}if(t.match_length=0,r=l._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(P(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,a,o,i=t.window;;){if(t.lookahead<=y){if(T(t),t.lookahead<=y&&e===c)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=g&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=g?(r=l._tr_tally(t,1,t.match_length-g),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=l._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(P(t,!1),0===t.strm.avail_out)?1:2}(n,e):s[n.level].func(n,e);if(3!==i&&4!==i||(n.status=666),1===i||3===i)return 0===t.avail_out&&(n.last_flush=-1),p;if(2===i&&(1===e?l._tr_align(n):5!==e&&(l._tr_stored_block(n,0,0,!1),3===e&&(_(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),C(t),0===t.avail_out))return n.last_flush=-1,p}return 4!==e?p:n.wrap<=0?1:(2===n.wrap?(S(n,255&t.adler),S(n,t.adler>>8&255),S(n,t.adler>>16&255),S(n,t.adler>>24&255),S(n,255&t.total_in),S(n,t.total_in>>8&255),S(n,t.total_in>>16&255),S(n,t.total_in>>24&255)):(L(n,t.adler>>>16),L(n,65535&t.adler)),C(t),0=r.w_size&&(0===o&&(_(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new u.Buf8(r.w_size),u.arraySet(l,e,c-r.w_size,r.w_size,0),e=l,c=r.w_size),l=t.avail_in,i=t.next_in,s=t.input,t.avail_in=c,t.next_in=0,t.input=e,T(r);r.lookahead>=g;){for(n=r.strstart,a=r.lookahead-(g-1);r.ins_h=(r.ins_h<>>=n=r>>>24,w-=n,0==(n=r>>>16&255))d[f++]=65535&r;else{if(!(16&n)){if(0==(64&n)){r=_[(65535&r)+(x&(1<>>=n,w-=n),w<15&&(x+=p[c++]<>>=n=r>>>24,w-=n,!(16&(n=r>>>16&255))){if(0==(64&n)){r=C[(65535&r)+(x&(1<>>=n,w-=n,(n=f-h)>3,x&=(1<<(w-=a<<3))-1,t.next_in=c,t.next_out=f,t.avail_in=c>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function o(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new R.Buf16(320),this.work=new R.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function i(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=M,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new R.Buf32(n),e.distcode=e.distdyn=new R.Buf32(a),e.sane=1,e.back=-1,N):D}function s(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,i(t)):D}function l(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=t.wsize?(R.arraySet(t.window,e,r-t.wsize,t.wsize,0),t.wnext=0,t.whave=t.wsize):(n<(a=t.wsize-t.wnext)&&(a=n),R.arraySet(t.window,e,r-n,a,t.wnext),(n-=a)?(R.arraySet(t.window,e,r-n,n,0),t.wnext=n,t.whave=t.wsize):(t.wnext+=a,t.wnext===t.wsize&&(t.wnext=0),t.whave>>8&255,r.check=I(r.check,L,2,0),p=c=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg=\"incorrect header check\",r.mode=30;break}if(8!=(15&c)){t.msg=\"unknown compression method\",r.mode=30;break}if(p-=4,w=8+(15&(c>>>=4)),0===r.wbits)r.wbits=w;else if(w>r.wbits){t.msg=\"invalid window size\",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=I(r.check,L,2,0)),p=c=0,r.mode=3;case 3:for(;p<32;){if(0===s)break t;s--,c+=n[o++]<>>8&255,L[2]=c>>>16&255,L[3]=c>>>24&255,r.check=I(r.check,L,4,0)),p=c=0,r.mode=4;case 4:for(;p<16;){if(0===s)break t;s--,c+=n[o++]<>8),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=I(r.check,L,2,0)),p=c=0,r.mode=5;case 5:if(1024&r.flags){for(;p<16;){if(0===s)break t;s--,c+=n[o++]<>>8&255,r.check=I(r.check,L,2,0)),p=c=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((d=s<(d=r.length)?s:d)&&(r.head&&(w=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),R.arraySet(r.head.extra,n,o,d,w)),512&r.flags&&(r.check=I(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;for(d=0;w=n[o+d++],r.head&&w&&r.length<65536&&(r.head.name+=String.fromCharCode(w)),w&&d>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;p<32;){if(0===s)break t;s--,c+=n[o++]<>>=7&p,p-=7&p,r.mode=27;break}for(;p<3;){if(0===s)break t;s--,c+=n[o++]<>>=1)){case 0:r.mode=14;break;case 1:T=k=void 0;var T,k=r;if(G){for(U=new R.Buf32(512),j=new R.Buf32(32),T=0;T<144;)k.lens[T++]=8;for(;T<256;)k.lens[T++]=9;for(;T<280;)k.lens[T++]=7;for(;T<288;)k.lens[T++]=8;for(B(1,k.lens,0,288,U,0,k.work,{bits:9}),T=0;T<32;)k.lens[T++]=5;B(2,k.lens,0,32,j,0,k.work,{bits:5}),G=!1}if(k.lencode=U,k.lenbits=9,k.distcode=j,k.distbits=5,r.mode=20,6!==e)break;c>>>=2,p-=2;break t;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=30}c>>>=2,p-=2;break;case 14:for(c>>>=7&p,p-=7&p;p<32;){if(0===s)break t;s--,c+=n[o++]<>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=30;break}if(r.length=65535&c,p=c=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(0===(d=l<(d=s>>=5,p-=5,r.ndist=1+(31&c),c>>>=5,p-=5,r.ncode=4+(15&c),c>>>=4,p-=4,286>>=3,p-=3}for(;r.have<19;)r.lens[E[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},_=B(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg=\"invalid code lengths set\",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,A=65535&S,!((g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>>=g,p-=g,r.lens[r.have++]=A;else{if(16===A){for(P=g+2;p>>=g,p-=g,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=30;break}w=r.lens[r.have-1],d=3+(3&c),c>>>=2,p-=2}else if(17===A){for(P=g+3;p>>=g)),c>>>=3,p=p-g-3}else{for(P=g+7;p>>=g)),c>>>=7,p=p-g-7}if(r.have+d>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=30;break}for(;d--;)r.lens[r.have++]=w}}if(30===r.mode)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=30;break}if(r.lenbits=9,C={bits:r.lenbits},_=B(1,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg=\"invalid literal/lengths set\",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},_=B(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,_){t.msg=\"invalid distances set\",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=s&&258<=l){t.next_out=i,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=p,O(t,f),i=t.next_out,a=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,p=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;y=(S=r.lencode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>v)])>>>16&255,A=65535&S,!(v+(g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>>=v,p-=v,r.back+=v}if(c>>>=g,p-=g,r.back+=g,r.length=A,0===y){r.mode=26;break}if(32&y){r.back=-1,r.mode=12;break}if(64&y){t.msg=\"invalid literal/length code\",r.mode=30;break}r.extra=15&y,r.mode=22;case 22:if(r.extra){for(P=r.extra;p>>=r.extra,p-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;y=(S=r.distcode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>v)])>>>16&255,A=65535&S,!(v+(g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>>=v,p-=v,r.back+=v}if(c>>>=g,p-=g,r.back+=g,64&y){t.msg=\"invalid distance code\",r.mode=30;break}r.offset=A,r.extra=15&y,r.mode=24;case 24:if(r.extra){for(P=r.extra;p>>=r.extra,p-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=30;break}r.mode=25;case 25:if(0===l)break t;if(r.offset>(d=f-l)){if((d=r.offset-d)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break}h=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=a,h=i-r.offset,d=r.length;for(l-=d=ld?(m=F[I+i[v]],E[T+i[v]]):(m=96,0),l=1<<(h=A-C),b=c=1<<_;a[f+(L>>C)+(c-=l)]=h<<24|m<<16|g|0,0!==c;);for(l=1<>=1;if(0!==l?L=(L&l-1)+l:L=0,v++,0==--k[A]){if(A===x)break;A=e[r+i[v]]}if(w>>7)]}function o(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function _(t,e,r){t.bi_valid>n-r?(t.bi_buf|=e<>n-t.bi_valid,t.bi_valid+=r-n):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function S(t,e,r){for(var n,a=new Array(16),o=0,i=1;i<=15;i++)a[i]=o=o+r[i-1]<<1;for(n=0;n<=e;n++){var s=t[2*n+1];0!==s&&(t[2*n]=P(a[s]++,s))}}function L(t){for(var e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function E(t){8>1;1<=r;r--)T(t,o,r);for(a=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],T(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*a]=o[2*r]+o[2*n],t.depth[a]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=a,t.heap[1]=a++,T(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1];for(var p,u,f,d,h,m=t,g=e.dyn_tree,y=e.max_code,A=e.stat_desc.static_tree,v=e.stat_desc.has_stree,b=e.stat_desc.extra_bits,x=e.stat_desc.extra_base,w=e.stat_desc.max_length,_=0,C=0;C<=15;C++)m.bl_count[C]=0;for(g[2*m.heap[m.heap_max]+1]=0,p=m.heap_max+1;p<573;p++)w<(C=g[2*g[2*(u=m.heap[p])+1]+1]+1)&&(C=w,_++),g[2*u+1]=C,y>=7;i<30;i++)for(v[i]=a<<7,e=0;e<1<>>=1)if(1&e&&0!==t.dyn_ltree[2*r])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(r=32;r<256;r++)if(0!==t.dyn_ltree[2*r])return 1;return 0}(t)),R(t,t.l_desc),R(t,t.d_desc),s=function(t){var e;for(F(t,t.dyn_ltree,t.l_desc.max_code),F(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*p[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=a&&(a=o)):a=o=r+5,r+4<=a&&-1!==e)B(t,e,r,n);else if(4===t.strategy||o===a)_(t,2+(n?1:0),3),k(t,u,f);else{_(t,4+(n?1:0),3);var l=t,c=(e=t.l_desc.max_code+1,r=t.d_desc.max_code+1,s+1);for(_(l,e-257,5),_(l,r-1,5),_(l,c-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(h[r]+256+1)]++,t.dyn_dtree[2*w(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){_(t,2,3),C(t,256,u),16===(t=t).bi_valid?(o(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{\"../utils/common\":41}],53:[function(t,e,r){\"use strict\";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){\"use strict\";e.exports=\"function\"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)}),function n(a,o,i){function s(e,t){if(!o[e]){if(!a[e]){var r=\"function\"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);t=new Error(\"Cannot find module '\"+e+\"'\");throw t.code=\"MODULE_NOT_FOUND\",t}r=o[e]={exports:{}};a[e][0].call(r.exports,function(t){return s(a[e][1][t]||t)},r,r.exports,n,a,o,i)}return o[e].exports}for(var l=\"function\"==typeof require&&require,t=0;ti;)o.call(t,n=a[i++])&&e.push(n);return e}},{104:104,107:107,108:108}],62:[function(t,e,r){function d(t,e,r){var n,a,o,i=t&d.F,s=t&d.G,l=t&d.P,c=t&d.B,p=s?h:t&d.S?h[e]||(h[e]={}):(h[e]||{})[v],u=s?m:m[e]||(m[e]={}),f=u[v]||(u[v]={});for(n in r=s?e:r)a=((o=!i&&p&&void 0!==p[n])?p:r)[n],o=c&&o?A(a,h):l&&\"function\"==typeof a?A(Function.call,a):a,p&&y(p,n,a,t&d.U),u[n]!=a&&g(u,n,o),l&&f[n]!=a&&(f[n]=a)}var h=t(70),m=t(52),g=t(72),y=t(118),A=t(54),v=\"prototype\";h.core=m,d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,e.exports=d},{118:118,52:52,54:54,70:70,72:72}],63:[function(t,e,r){var n=t(152)(\"match\");e.exports=function(e){var r=/./;try{\"/./\"[e](r)}catch(t){try{return r[n]=!1,!\"/./\"[e](r)}catch(t){}}return!0}},{152:152}],64:[function(t,e,r){arguments[4][23][0].apply(r,arguments)},{23:23}],65:[function(t,e,r){\"use strict\";t(248);var n,l=t(118),c=t(72),p=t(64),u=t(57),f=t(152),d=t(120),h=f(\"species\"),m=!p(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:\"7\"},t},\"7\"!==\"\".replace(t,\"$
\")}),g=(n=(t=/(?:)/).exec,t.exec=function(){return n.apply(this,arguments)},2===(t=\"ab\".split(t)).length&&\"a\"===t[0]&&\"b\"===t[1]);e.exports=function(r,t,e){var o,n,a=f(r),i=!p(function(){var t={};return t[a]=function(){return 7},7!=\"\"[r](t)}),s=i?!p(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},\"split\"===r&&(e.constructor={},e.constructor[h]=function(){return e}),e[a](\"\"),!t}):void 0;i&&s&&(\"replace\"!==r||m)&&(\"split\"!==r||g)||(o=/./[a],e=(s=e(u,a,\"\"[r],function(t,e,r,n,a){return e.exec===d?i&&!a?{done:!0,value:o.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}))[0],n=s[1],l(String.prototype,r,e),c(RegExp.prototype,a,2==t?function(t,e){return n.call(t,this,e)}:function(t){return n.call(t,this)}))}},{118:118,120:120,152:152,248:248,57:57,64:64,72:72}],66:[function(t,e,r){\"use strict\";var n=t(38);e.exports=function(){var t=n(this),e=\"\";return t.global&&(e+=\"g\"),t.ignoreCase&&(e+=\"i\"),t.multiline&&(e+=\"m\"),t.unicode&&(e+=\"u\"),t.sticky&&(e+=\"y\"),e}},{38:38}],67:[function(t,e,r){\"use strict\";var h=t(79),m=t(81),g=t(141),y=t(54),A=t(152)(\"isConcatSpreadable\");e.exports=function t(e,r,n,a,o,i,s,l){for(var c,p,u=o,f=0,d=!!s&&y(s,l,3);fdocument.F=Object<\\/script>\"),t.close(),c=t.F;e--;)delete c[l][i[e]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(n[l]=a(t),r=new n,n[l]=null,r[s]=t):r=c(),void 0===e?r:o(r,e)}},{100:100,125:125,38:38,59:59,60:60,73:73}],99:[function(t,e,r){arguments[4][29][0].apply(r,arguments)},{143:143,29:29,38:38,58:58,74:74}],100:[function(t,e,r){var i=t(99),s=t(38),l=t(107);e.exports=t(58)?Object.defineProperties:function(t,e){s(t);for(var r,n=l(e),a=n.length,o=0;oa;)!i(n,r=e[a++])||~l(o,r)||o.push(r);return o}},{125:125,140:140,41:41,71:71}],107:[function(t,e,r){var n=t(106),a=t(60);e.exports=Object.keys||function(t){return n(t,a)}},{106:106,60:60}],108:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],109:[function(t,e,r){var a=t(62),o=t(52),i=t(64);e.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],n={};n[t]=e(r),a(a.S+a.F*i(function(){r(1)}),\"Object\",n)}},{52:52,62:62,64:64}],110:[function(t,e,r){var l=t(58),c=t(107),p=t(140),u=t(108).f;e.exports=function(s){return function(t){for(var e,r=p(t),n=c(r),a=n.length,o=0,i=[];o>>0||(o.test(t)?16:10))}:n},{134:134,135:135,70:70}],114:[function(t,e,r){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],115:[function(t,e,r){var n=t(38),a=t(81),o=t(96);e.exports=function(t,e){if(n(t),a(e)&&e.constructor===t)return e;t=o.f(t);return(0,t.resolve)(e),t.promise}},{38:38,81:81,96:96}],116:[function(t,e,r){arguments[4][30][0].apply(r,arguments)},{30:30}],117:[function(t,e,r){var a=t(118);e.exports=function(t,e,r){for(var n in e)a(t,n,e[n],r);return t}},{118:118}],118:[function(t,e,r){var o=t(70),i=t(72),s=t(71),l=t(147)(\"src\"),n=t(69),a=\"toString\",c=(\"\"+n).split(a);t(52).inspectSource=function(t){return n.call(t)},(e.exports=function(t,e,r,n){var a=\"function\"==typeof r;a&&!s(r,\"name\")&&i(r,\"name\",e),t[e]!==r&&(a&&!s(r,l)&&i(r,l,t[e]?\"\"+t[e]:c.join(String(e))),t===o?t[e]=r:n?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,a,function(){return\"function\"==typeof this&&this[l]||n.call(this)})},{147:147,52:52,69:69,70:70,71:71,72:72}],119:[function(t,e,r){\"use strict\";var n=t(47),a=RegExp.prototype.exec;e.exports=function(t,e){var r=t.exec;if(\"function\"==typeof r){r=r.call(t,e);if(\"object\"!=typeof r)throw new TypeError(\"RegExp exec method returned something other than an Object or null\");return r}if(\"RegExp\"!==n(t))throw new TypeError(\"RegExp#exec called on incompatible receiver\");return a.call(t,e)}},{47:47}],120:[function(t,e,r){\"use strict\";var n,a,i=t(66),s=RegExp.prototype.exec,l=String.prototype.replace,t=s,c=\"lastIndex\",p=(a=/b*/g,s.call(n=/a/,\"a\"),s.call(a,\"a\"),0!==n[c]||0!==a[c]),u=void 0!==/()??/.exec(\"\")[1];e.exports=t=p||u?function(t){var e,r,n,a,o=this;return u&&(r=new RegExp(\"^\"+o.source+\"$(?!\\\\s)\",i.call(o))),p&&(e=o[c]),n=s.call(o,t),p&&n&&(o[c]=o.global?n.index+n[0].length:e),u&&n&&1\"+t+\"\"}var a=t(62),o=t(64),i=t(57),s=/\"/g;e.exports=function(e,t){var r={};r[e]=t(n),a(a.P+a.F*o(function(){var t=\"\"[e]('\"');return t!==t.toLowerCase()||3e&&(a=a.slice(0,e)),n?a+t:t+a}},{133:133,141:141,57:57}],133:[function(t,e,r){\"use strict\";var a=t(139),o=t(57);e.exports=function(t){var e=String(o(this)),r=\"\",n=a(t);if(n<0||n==1/0)throw RangeError(\"Count can't be negative\");for(;0>>=1)&&(e+=e))1&n&&(r+=e);return r}},{139:139,57:57}],134:[function(t,e,r){function n(t,e,r){var n={},a=i(function(){return!!s[t]()||\"​…\"!=\"​…\"[t]()}),e=n[t]=a?e(p):s[t];r&&(n[r]=e),o(o.P+o.F*a,\"String\",n)}var o=t(62),a=t(57),i=t(64),s=t(135),t=\"[\"+s+\"]\",l=RegExp(\"^\"+t+t+\"*\"),c=RegExp(t+t+\"*$\"),p=n.trim=function(t,e){return t=String(a(t)),1&e&&(t=t.replace(l,\"\")),t=2&e?t.replace(c,\"\"):t};e.exports=n},{135:135,57:57,62:62,64:64}],135:[function(t,e,r){e.exports=\"\\t\\n\\v\\f\\r   ᠎              \\u2028\\u2029\\ufeff\"},{}],136:[function(t,e,r){function n(){var t,e=+this;y.hasOwnProperty(e)&&(t=y[e],delete y[e],t())}function a(t){n.call(t.data)}var o,i=t(54),s=t(76),l=t(73),c=t(59),p=t(70),u=p.process,f=p.setImmediate,d=p.clearImmediate,h=p.MessageChannel,m=p.Dispatch,g=0,y={},A=\"onreadystatechange\";f&&d||(f=function(t){for(var e=[],r=1;r>1,c=23===e?x(2,-24)-x(2,-77):0,p=0,u=t<0||0===t&&1/t<0?1:0;for((t=G(t))!=t||t===v?(a=t!=t?1:0,n=r):(n=W(H(t)/V),t*(o=x(2,-n))<1&&(n--,o*=2),2<=(t+=1<=n+l?c/o:c*x(2,1-l))*o&&(n++,o/=2),r<=n+l?(a=0,n=r):1<=n+l?(a=(t*o-1)*x(2,e),n+=l):(a=t*x(2,l-1)*x(2,e),n=0));8<=e;i[p++]=255&a,a/=256,e-=8);for(n=n<>1,s=a-7,l=r-1,a=t[l--],c=127&a;for(a>>=7;0>=-s,s+=e;0>8&255]}function k(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function Q(t){return P(t,52,8)}function Y(t){return P(t,23,4)}function R(t,e,r){U(t[d],e,{get:function(){return this[r]}})}function F(t,e,r,n){r=p(+r);if(r+e>t[_])throw A(h);var a=t[w]._b,r=r+t[C],t=a.slice(r,r+e);return n?t:t.reverse()}function I(t,e,r,n,a,o){r=p(+r);if(r+e>t[_])throw A(h);for(var i=t[w]._b,s=r+t[C],l=n(+a),c=0;cq;)(O=B[q++])in m||o(m,O,b[O]);D||(s.constructor=m)}var c=new g(new m(2)),Z=g[d].setInt8;c.setInt8(0,2147483648),c.setInt8(1,2147483649),!c.getInt8(0)&&c.getInt8(1)||i(g[d],{setInt8:function(t,e){Z.call(this,t,e<<24>>24)},setUint8:function(t,e){Z.call(this,t,e<<24>>24)}},!0)}else m=function(t){l(this,m,u);t=p(t);this._b=j.call(new Array(t),0),this[_]=t},g=function(t,e,r){l(this,g,f),l(t,m,f);var n=t[_],e=M(e);if(e<0||n>24},getUint8:function(t){return F(this,1,t)[0]},getInt16:function(t){t=F(this,2,t,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(t){t=F(this,2,t,arguments[1]);return t[1]<<8|t[0]},getInt32:function(t){return L(F(this,4,t,arguments[1]))},getUint32:function(t){return L(F(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return S(F(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return S(F(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){I(this,1,t,E,e)},setUint8:function(t,e){I(this,1,t,E,e)},setInt16:function(t,e){I(this,2,t,T,e,arguments[2])},setUint16:function(t,e){I(this,2,t,T,e,arguments[2])},setInt32:function(t,e){I(this,4,t,k,e,arguments[2])},setUint32:function(t,e){I(this,4,t,k,e,arguments[2])},setFloat32:function(t,e){I(this,4,t,Y,e,arguments[2])},setFloat64:function(t,e){I(this,8,t,Q,e,arguments[2])}});t(m,u),t(g,f),o(g[d],a.VIEW,!0),e[u]=m,e[f]=g},{103:103,117:117,124:124,138:138,139:139,141:141,146:146,37:37,40:40,58:58,64:64,70:70,72:72,89:89,99:99}],146:[function(t,e,r){for(var n,a=t(70),o=t(72),t=t(147),i=t(\"typed_array\"),s=t(\"view\"),t=!(!a.ArrayBuffer||!a.DataView),l=t,c=0,p=\"Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array\".split(\",\");c<9;)(n=a[p[c++]])?(o(n.prototype,i,!0),o(n.prototype,s,!0)):l=!1;e.exports={ABV:t,CONSTR:l,TYPED:i,VIEW:s}},{147:147,70:70,72:72}],147:[function(t,e,r){var n=0,a=Math.random();e.exports=function(t){return\"Symbol(\".concat(void 0===t?\"\":t,\")_\",(++n+a).toString(36))}},{}],148:[function(t,e,r){t=t(70).navigator;e.exports=t&&t.userAgent||\"\"},{70:70}],149:[function(t,e,r){var n=t(81);e.exports=function(t,e){if(n(t)&&t._t===e)return t;throw TypeError(\"Incompatible receiver, \"+e+\" required!\")}},{81:81}],150:[function(t,e,r){var n=t(70),a=t(52),o=t(89),i=t(151),s=t(99).f;e.exports=function(t){var e=a.Symbol||(a.Symbol=!o&&n.Symbol||{});\"_\"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},{151:151,52:52,70:70,89:89,99:99}],151:[function(t,e,r){r.f=t(152)},{152:152}],152:[function(t,e,r){var n=t(126)(\"wks\"),a=t(147),o=t(70).Symbol,i=\"function\"==typeof o;(e.exports=function(t){return n[t]||(n[t]=i&&o[t]||(i?o:a)(\"Symbol.\"+t))}).store=n},{126:126,147:147,70:70}],153:[function(t,e,r){var n=t(47),a=t(152)(\"iterator\"),o=t(88);e.exports=t(52).getIteratorMethod=function(t){if(null!=t)return t[a]||t[\"@@iterator\"]||o[n(t)]}},{152:152,47:47,52:52,88:88}],154:[function(t,e,r){var n=t(62);n(n.P,\"Array\",{copyWithin:t(39)}),t(35)(\"copyWithin\")},{35:35,39:39,62:62}],155:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(4);n(n.P+n.F*!t(128)([].every,!0),\"Array\",{every:function(t){return a(this,t,arguments[1])}})},{128:128,42:42,62:62}],156:[function(t,e,r){var n=t(62);n(n.P,\"Array\",{fill:t(40)}),t(35)(\"fill\")},{35:35,40:40,62:62}],157:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(2);n(n.P+n.F*!t(128)([].filter,!0),\"Array\",{filter:function(t){return a(this,t,arguments[1])}})},{128:128,42:42,62:62}],158:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(6),o=\"findIndex\",i=!0;o in[]&&Array(1)[o](function(){i=!1}),n(n.P+n.F*i,\"Array\",{findIndex:function(t){return a(this,t,1=t.length?(this._t=void 0,a(1)):a(0,\"keys\"==e?r:\"values\"==e?t[r]:[r,t[r]])},\"values\"),o.Arguments=o.Array,n(\"keys\"),n(\"values\"),n(\"entries\")},{140:140,35:35,85:85,87:87,88:88}],165:[function(t,e,r){\"use strict\";var n=t(62),a=t(140),o=[].join;n(n.P+n.F*(t(77)!=Object||!t(128)(o)),\"Array\",{join:function(t){return o.call(a(this),void 0===t?\",\":t)}})},{128:128,140:140,62:62,77:77}],166:[function(t,e,r){\"use strict\";var n=t(62),a=t(140),o=t(139),i=t(141),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(l||!t(128)(s)),\"Array\",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=a(this),r=i(e.length),n=r-1;for((n=1>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{62:62}],189:[function(t,e,r){var t=t(62),n=Math.exp;t(t.S,\"Math\",{cosh:function(t){return(n(t=+t)+n(-t))/2}})},{62:62}],190:[function(t,e,r){var n=t(62),t=t(90);n(n.S+n.F*(t!=Math.expm1),\"Math\",{expm1:t})},{62:62,90:90}],191:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{fround:t(91)})},{62:62,91:91}],192:[function(t,e,r){var t=t(62),l=Math.abs;t(t.S,\"Math\",{hypot:function(t,e){for(var r,n,a=0,o=0,i=arguments.length,s=0;o>>16)*n+r*(65535&e>>>16)<<16>>>0)}})},{62:62,64:64}],194:[function(t,e,r){t=t(62);t(t.S,\"Math\",{log10:function(t){return Math.log(t)*Math.LOG10E}})},{62:62}],195:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{log1p:t(92)})},{62:62,92:92}],196:[function(t,e,r){t=t(62);t(t.S,\"Math\",{log2:function(t){return Math.log(t)/Math.LN2}})},{62:62}],197:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{sign:t(93)})},{62:62,93:93}],198:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S+n.F*t(64)(function(){return-2e-17!=!Math.sinh(-2e-17)}),\"Math\",{sinh:function(t){return Math.abs(t=+t)<1?(a(t)-a(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},{62:62,64:64,90:90}],199:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S,\"Math\",{tanh:function(t){var e=a(t=+t),r=a(-t);return e==1/0?1:r==1/0?-1:(e-r)/(o(t)+o(-t))}})},{62:62,90:90}],200:[function(t,e,r){t=t(62);t(t.S,\"Math\",{trunc:function(t){return(0w;w++)o(m,v=x[w])&&!o(b,v)&&f(b,v,u(m,v));(b.prototype=g).constructor=b,t(118)(a,h,b)}},{101:101,103:103,118:118,134:134,143:143,48:48,58:58,64:64,70:70,71:71,75:75,98:98,99:99}],202:[function(t,e,r){t=t(62);t(t.S,\"Number\",{EPSILON:Math.pow(2,-52)})},{62:62}],203:[function(t,e,r){var n=t(62),a=t(70).isFinite;n(n.S,\"Number\",{isFinite:function(t){return\"number\"==typeof t&&a(t)}})},{62:62,70:70}],204:[function(t,e,r){var n=t(62);n(n.S,\"Number\",{isInteger:t(80)})},{62:62,80:80}],205:[function(t,e,r){t=t(62);t(t.S,\"Number\",{isNaN:function(t){return t!=t}})},{62:62}],206:[function(t,e,r){var n=t(62),a=t(80),o=Math.abs;n(n.S,\"Number\",{isSafeInteger:function(t){return a(t)&&o(t)<=9007199254740991}})},{62:62,80:80}],207:[function(t,e,r){t=t(62);t(t.S,\"Number\",{MAX_SAFE_INTEGER:9007199254740991})},{62:62}],208:[function(t,e,r){t=t(62);t(t.S,\"Number\",{MIN_SAFE_INTEGER:-9007199254740991})},{62:62}],209:[function(t,e,r){var n=t(62),t=t(112);n(n.S+n.F*(Number.parseFloat!=t),\"Number\",{parseFloat:t})},{112:112,62:62}],210:[function(t,e,r){var n=t(62),t=t(113);n(n.S+n.F*(Number.parseInt!=t),\"Number\",{parseInt:t})},{113:113,62:62}],211:[function(t,e,r){\"use strict\";function s(t,e){for(var r=-1,n=e;++r<6;)n+=t*i[r],i[r]=n%1e7,n=o(n/1e7)}function l(t){for(var e=6,r=0;0<=--e;)r+=i[e],i[e]=o(r/t),r=r%t*1e7}function c(){for(var t,e=6,r=\"\";0<=--e;)\"\"===r&&0!==e&&0===i[e]||(t=String(i[e]),r=\"\"===r?t:r+d.call(\"0\",7-t.length)+t);return r}function p(t,e,r){return 0===e?r:e%2==1?p(t,e-1,r*t):p(t*t,e/2,r)}var n=t(62),u=t(139),f=t(34),d=t(133),a=1..toFixed,o=Math.floor,i=[0,0,0,0,0,0],h=\"Number.toFixed: incorrect invocation!\";n(n.P+n.F*(!!a&&(\"0.000\"!==8e-5.toFixed(3)||\"1\"!==.9.toFixed(0)||\"1.25\"!==1.255.toFixed(2)||\"1000000000000000128\"!==0xde0b6b3a7640080.toFixed(0))||!t(64)(function(){a.call({})})),\"Number\",{toFixed:function(t){var e,r,n,a=f(this,h),t=u(t),o=\"\",i=\"0\";if(t<0||20r;){a=void 0;o=void 0;i=void 0;s=void 0;l=void 0;c=void 0;p=void 0;var n=d[r++];var a,o,i,s=e?n.ok:n.fail,l=n.resolve,c=n.reject,p=n.domain;try{s?(e||(2==u._h&&g(u),u._h=1),!0===s?a=t:(p&&p.enter(),a=s(t),p&&(p.exit(),i=!0)),a===n.promise?c(E(\"Promise-chain cycle\")):(o=h(a))?o.call(a,l,c):l(a)):c(t)}catch(n){p&&!i&&p.exit(),c(n)}}u._c=[],u._n=!1,f&&!u._h&&m(u)}))}function o(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),a(e,!0))}function m(a){x.call(p,function(){var t,e,r=a._v,n=O(a);if(n&&(t=C(function(){F?T.emit(\"unhandledRejection\",r,a):(e=p.onunhandledrejection)?e({promise:a,reason:r}):(e=p.console)&&e.error&&e.error(\"Unhandled promise rejection\",r)}),a._h=F||O(a)?2:1),a._a=void 0,n&&t.e)throw t.v})}function g(e){x.call(p,function(){var t;F?T.emit(\"rejectionHandled\",e):(t=p.onrejectionhandled)&&t({promise:e,reason:e._v})})}var e,i,s,l,c=r(89),p=r(70),u=r(54),t=r(47),f=r(62),d=r(81),y=r(33),A=r(37),v=r(68),b=r(127),x=r(136).set,w=r(95)(),_=r(96),C=r(114),P=r(148),S=r(115),L=\"Promise\",E=p.TypeError,T=p.process,k=T&&T.versions,M=k&&k.v8||\"\",R=p[L],F=\"process\"==t(T),I=i=_.f,k=!!function(){try{var t=R.resolve(1),e=(t.constructor={})[r(152)(\"species\")]=function(t){t(n,n)};return(F||\"function\"==typeof PromiseRejectionEvent)&&t.then(n)instanceof e&&0!==M.indexOf(\"6.6\")&&-1===P.indexOf(\"Chrome/66\")}catch(t){}}(),O=function(t){return 1!==t._h&&0===(t._a||t._c).length},B=function(t){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E(\"Promise can't be resolved itself\");(r=h(t))?w(function(){var e={_w:n,_d:!1};try{r.call(t,u(B,e,1),u(o,e,1))}catch(t){o.call(e,t)}}):(n._v=t,n._s=1,a(n,!1))}catch(t){o.call({_w:n,_d:!1},t)}}};k||(R=function(t){A(this,R,L,\"_h\"),y(t),e.call(this);try{t(u(B,this,1),u(o,this,1))}catch(t){o.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(117)(R.prototype,{then:function(t,e){var r=I(b(this,R));return r.ok=\"function\"!=typeof t||t,r.fail=\"function\"==typeof e&&e,r.domain=F?T.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&a(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),s=function(){var t=new e;this.promise=t,this.resolve=u(B,t,1),this.reject=u(o,t,1)},_.f=I=function(t){return t===R||t===l?new s:i(t)}),f(f.G+f.W+f.F*!k,{Promise:R}),r(124)(R,L),r(123)(L),l=r(52)[L],f(f.S+f.F*!k,L,{reject:function(t){var e=I(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(c||!k),L,{resolve:function(t){return S(c&&this===l?R:this,t)}}),f(f.S+f.F*!(k&&r(86)(function(t){R.all(t).catch(n)})),L,{all:function(t){var i=this,e=I(i),s=e.resolve,l=e.reject,r=C(function(){var n=[],a=0,o=1;v(t,!1,function(t){var e=a++,r=!1;n.push(void 0),o++,i.resolve(t).then(function(t){r||(r=!0,n[e]=t,--o||s(n))},l)}),--o||s(n)});return r.e&&l(r.v),e.promise},race:function(t){var e=this,r=I(e),n=r.reject,a=C(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return a.e&&n(a.v),r.promise}})},{114:114,115:115,117:117,123:123,124:124,127:127,136:136,148:148,152:152,33:33,37:37,47:47,52:52,54:54,62:62,68:68,70:70,81:81,86:86,89:89,95:95,96:96}],233:[function(t,e,r){var n=t(62),a=t(33),o=t(38),i=(t(70).Reflect||{}).apply,s=Function.apply;n(n.S+n.F*!t(64)(function(){i(function(){})}),\"Reflect\",{apply:function(t,e,r){t=a(t),r=o(r);return i?i(t,e,r):s.call(t,e,r)}})},{33:33,38:38,62:62,64:64,70:70}],234:[function(t,e,r){var n=t(62),a=t(98),o=t(33),i=t(38),s=t(81),l=t(64),c=t(46),p=(t(70).Reflect||{}).construct,u=l(function(){function t(){}return!(p(function(){},[],t)instanceof t)}),f=!l(function(){p(function(){})});n(n.S+n.F*(u||f),\"Reflect\",{construct:function(t,e){o(t),i(e);var r=arguments.length<3?t:o(arguments[2]);if(f&&!u)return p(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}n=r.prototype,r=a(s(n)?n:Object.prototype),n=Function.apply.call(t,r,e);return s(n)?n:r}})},{33:33,38:38,46:46,62:62,64:64,70:70,81:81,98:98}],235:[function(t,e,r){var n=t(99),a=t(62),o=t(38),i=t(143);a(a.S+a.F*t(64)(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),\"Reflect\",{defineProperty:function(t,e,r){o(t),e=i(e,!0),o(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},{143:143,38:38,62:62,64:64,99:99}],236:[function(t,e,r){var n=t(62),a=t(101).f,o=t(38);n(n.S,\"Reflect\",{deleteProperty:function(t,e){var r=a(o(t),e);return!(r&&!r.configurable)&&delete t[e]}})},{101:101,38:38,62:62}],237:[function(t,e,r){\"use strict\";function n(t){this._t=o(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)}var a=t(62),o=t(38);t(84)(n,\"Object\",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),a(a.S,\"Reflect\",{enumerate:function(t){return new n(t)}})},{38:38,62:62,84:84}],238:[function(t,e,r){var n=t(101),a=t(62),o=t(38);a(a.S,\"Reflect\",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},{101:101,38:38,62:62}],239:[function(t,e,r){var n=t(62),a=t(105),o=t(38);n(n.S,\"Reflect\",{getPrototypeOf:function(t){return a(o(t))}})},{105:105,38:38,62:62}],240:[function(t,e,r){var o=t(101),i=t(105),s=t(71),n=t(62),l=t(81),c=t(38);n(n.S,\"Reflect\",{get:function t(e,r){var n,a=arguments.length<3?e:arguments[2];return c(e)===a?e[r]:(n=o.f(e,r))?s(n,\"value\")?n.value:void 0!==n.get?n.get.call(a):void 0:l(n=i(e))?t(n,r,a):void 0}})},{101:101,105:105,38:38,62:62,71:71,81:81}],241:[function(t,e,r){t=t(62);t(t.S,\"Reflect\",{has:function(t,e){return e in t}})},{62:62}],242:[function(t,e,r){var n=t(62),a=t(38),o=Object.isExtensible;n(n.S,\"Reflect\",{isExtensible:function(t){return a(t),!o||o(t)}})},{38:38,62:62}],243:[function(t,e,r){var n=t(62);n(n.S,\"Reflect\",{ownKeys:t(111)})},{111:111,62:62}],244:[function(t,e,r){var n=t(62),a=t(38),o=Object.preventExtensions;n(n.S,\"Reflect\",{preventExtensions:function(t){a(t);try{return o&&o(t),!0}catch(t){return!1}}})},{38:38,62:62}],245:[function(t,e,r){var n=t(62),a=t(122);a&&n(n.S,\"Reflect\",{setPrototypeOf:function(t,e){a.check(t,e);try{return a.set(t,e),!0}catch(t){return!1}}})},{122:122,62:62}],246:[function(t,e,r){var s=t(99),l=t(101),c=t(105),p=t(71),n=t(62),u=t(116),f=t(38),d=t(81);n(n.S,\"Reflect\",{set:function t(e,r,n){var a,o=arguments.length<4?e:arguments[3],i=l.f(f(e),r);if(!i){if(d(a=c(e)))return t(a,r,n,o);i=u(0)}if(p(i,\"value\")){if(!1===i.writable||!d(o))return!1;if(a=l.f(o,r)){if(a.get||a.set||!1===a.writable)return!1;a.value=n,s.f(o,r,a)}else s.f(o,r,u(0,n));return!0}return void 0!==i.set&&(i.set.call(o,n),!0)}})},{101:101,105:105,116:116,38:38,62:62,71:71,81:81,99:99}],247:[function(t,e,r){var n=t(70),o=t(75),a=t(99).f,i=t(103).f,s=t(82),l=t(66),c=h=n.RegExp,p=h.prototype,u=/a/g,f=/a/g,d=new h(u)!==u;if(t(58)&&(!d||t(64)(function(){return f[t(152)(\"match\")]=!1,h(u)!=u||h(f)==f||\"/a/i\"!=h(u,\"i\")}))){for(var h=function(t,e){var r=this instanceof h,n=s(t),a=void 0===e;return!r&&n&&t.constructor===h&&a?t:o(d?new c(n&&!a?t.source:t,e):c((n=t instanceof h)?t.source:t,n&&a?l.call(t):e),r?this:p,h)},m=i(c),g=0;m.length>g;)!function(e){e in h||a(h,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})}(m[g++]);(p.constructor=h).prototype=p,t(118)(n,\"RegExp\",h)}t(123)(\"RegExp\")},{103:103,118:118,123:123,152:152,58:58,64:64,66:66,70:70,75:75,82:82,99:99}],248:[function(t,e,r){\"use strict\";var n=t(120);t(62)({target:\"RegExp\",proto:!0,forced:n!==/./.exec},{exec:n})},{120:120,62:62}],249:[function(t,e,r){t(58)&&\"g\"!=/./g.flags&&t(99).f(RegExp.prototype,\"flags\",{configurable:!0,get:t(66)})},{58:58,66:66,99:99}],250:[function(t,e,r){\"use strict\";var p=t(38),u=t(141),f=t(36),d=t(119);t(65)(\"match\",1,function(n,a,l,c){return[function(t){var e=n(this),r=null==t?void 0:t[a];return void 0!==r?r.call(t,e):new RegExp(t)[a](String(e))},function(t){var e=c(l,t,this);if(e.done)return e.value;var r=p(t),n=String(this);if(!r.global)return d(r,n);for(var a=r.unicode,o=[],i=r.lastIndex=0;null!==(s=d(r,n));){var s=String(s[0]);\"\"===(o[i]=s)&&(r.lastIndex=f(n,u(r.lastIndex),a)),i++}return 0===i?null:o}]})},{119:119,141:141,36:36,38:38,65:65}],251:[function(t,e,r){\"use strict\";var w=t(38),_=t(142),C=t(141),P=t(139),S=t(36),L=t(119),E=Math.max,T=Math.min,k=Math.floor,R=/\\$([$&`']|\\d\\d?|<[^>]*>)/g,F=/\\$([$&`']|\\d\\d?)/g;t(65)(\"replace\",2,function(a,o,b,x){return[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):b.call(String(r),t,e)},function(t,e){var r=x(b,t,this,e);if(r.done)return r.value;var n,a=w(t),o=String(this),i=\"function\"==typeof e,s=(i||(e=String(e)),a.global);s&&(n=a.unicode,a.lastIndex=0);for(var l=[];;){var c=L(a,o);if(null===c)break;if(l.push(c),!s)break;\"\"===String(c[0])&&(a.lastIndex=S(o,C(a.lastIndex),n))}for(var p,u=\"\",f=0,d=0;d>>0,p=new RegExp(t.source,s+\"g\");(n=f.call(p,r))&&!(l<(a=p[C])&&(i.push(r.slice(l,n.index)),1=c));)p[C]===n.index&&p[C]++;return l===r[_]?!o&&p.test(\"\")||i.push(\"\"):i.push(r.slice(l)),i[_]>c?i.slice(0,c):i}:\"0\"[i](void 0,0)[_]?function(t,e){return void 0===t&&0===e?[]:h.call(this,t,e)}:h;return[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):g.call(String(r),t,e)},function(t,e){var r=m(g,t,this,e,g!==h);if(r.done)return r.value;var r=y(t),n=String(this),t=A(r,RegExp),a=r.unicode,o=(r.ignoreCase?\"i\":\"\")+(r.multiline?\"m\":\"\")+(r.unicode?\"u\":\"\")+(S?\"y\":\"g\"),i=new t(S?r:\"^(?:\"+r.source+\")\",o),s=void 0===e?P:e>>>0;if(0==s)return[];if(0===n.length)return null===x(i,n)?[n]:[];for(var l=0,c=0,p=[];c>10),e%1024+56320))}return r.join(\"\")}})},{137:137,62:62}],266:[function(t,e,r){\"use strict\";var n=t(62),a=t(130);n(n.P+n.F*t(63)(\"includes\"),\"String\",{includes:function(t){return!!~a(this,t,\"includes\").indexOf(t,1=t.length?{value:void 0,done:!0}:(t=n(t,e),this._i+=t.length,{value:t,done:!1})})},{129:129,85:85}],269:[function(t,e,r){\"use strict\";t(131)(\"link\",function(e){return function(t){return e(this,\"a\",\"href\",t)}})},{131:131}],270:[function(t,e,r){var n=t(62),i=t(140),s=t(141);n(n.S,\"String\",{raw:function(t){for(var e=i(t.raw),r=s(e.length),n=arguments.length,a=[],o=0;oa;)c(T,e=r[a++])||e==L||e==z||n.push(e);return n}function i(t){for(var e,r=t===R,n=J(r?k:y(t)),a=[],o=0;n.length>o;)!c(T,e=n[o++])||r&&!c(R,e)||a.push(T[e]);return a}function s(t,e,r){return t===R&&s(k,e,r),g(t),e=A(e,!0),g(r),c(T,e)?(r.enumerable?(c(t,L)&&t[L][e]&&(t[L][e]=!1),r=b(r,{enumerable:v(0,!1)})):(c(t,L)||w(t,L,v(1,{})),t[L][e]=!0),O(t,e,r)):w(t,e,r)}var l=t(70),c=t(71),p=t(58),u=t(62),M=t(118),z=t(94).KEY,f=t(64),d=t(126),h=t(124),U=t(147),m=t(152),j=t(151),G=t(150),W=t(61),H=t(79),g=t(38),V=t(81),Q=t(142),y=t(140),A=t(143),v=t(116),b=t(98),Y=t(102),q=t(101),x=t(104),Z=t(99),X=t(107),K=q.f,w=Z.f,J=Y.f,_=l.Symbol,C=l.JSON,P=C&&C.stringify,S=\"prototype\",L=m(\"_hidden\"),$=m(\"toPrimitive\"),tt={}.propertyIsEnumerable,E=d(\"symbol-registry\"),T=d(\"symbols\"),k=d(\"op-symbols\"),R=Object[S],d=\"function\"==typeof _&&!!x.f,F=l.QObject,I=!F||!F[S]||!F[S].findChild,O=p&&f(function(){return 7!=b(w({},\"a\",{get:function(){return w(this,\"a\",{value:7}).a}})).a})?function(t,e,r){var n=K(R,e);n&&delete R[e],w(t,e,r),n&&t!==R&&w(R,e,n)}:w,B=d&&\"symbol\"==typeof _.iterator?function(t){return\"symbol\"==typeof t}:function(t){return t instanceof _};d||(M((_=function(){if(this instanceof _)throw TypeError(\"Symbol is not a constructor!\");var e=U(0rt;)m(et[rt++]);for(var nt=X(m.store),at=0;nt.length>at;)G(nt[at++]);u(u.S+u.F*!d,\"Symbol\",{for:function(t){return c(E,t+=\"\")?E[t]:E[t]=_(t)},keyFor:function(t){if(!B(t))throw TypeError(t+\" is not a symbol!\");for(var e in E)if(E[e]===t)return e},useSetter:function(){I=!0},useSimple:function(){I=!1}}),u(u.S+u.F*!d,\"Object\",{create:function(t,e){return void 0===e?b(t):r(b(t),e)},defineProperty:s,defineProperties:r,getOwnPropertyDescriptor:a,getOwnPropertyNames:o,getOwnPropertySymbols:i});F=f(function(){x.f(1)});u(u.S+u.F*F,\"Object\",{getOwnPropertySymbols:function(t){return x.f(Q(t))}}),C&&u(u.S+u.F*(!d||f(function(){var t=_();return\"[null]\"!=P([t])||\"{}\"!=P({a:t})||\"{}\"!=P(Object(t))})),\"JSON\",{stringify:function(t){for(var e,r,n=[t],a=1;as;)void 0!==(r=a(n,e=o[s++]))&&u(i,e,r);return i}})},{101:101,111:111,140:140,53:53,62:62}],296:[function(t,e,r){var n=t(62),a=t(110)(!1);n(n.S,\"Object\",{values:function(t){return a(t)}})},{110:110,62:62}],297:[function(t,e,r){\"use strict\";var n=t(62),a=t(52),o=t(70),i=t(127),s=t(115);n(n.P+n.R,\"Promise\",{finally:function(e){var r=i(this,a.Promise||o.Promise),t=\"function\"==typeof e;return this.then(t?function(t){return s(r,e()).then(function(){return t})}:e,t?function(t){return s(r,e()).then(function(){throw t})}:e)}})},{115:115,127:127,52:52,62:62,70:70}],298:[function(t,e,r){\"use strict\";var n=t(62),a=t(132),t=t(148),t=/Version\\/10\\.\\d+(\\.\\d+)?( Mobile\\/\\w+)? Safari\\//.test(t);n(n.P+n.F*t,\"String\",{padEnd:function(t){return a(this,t,1/g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\")}function O(t){return\"number\"==typeof t&&100\").concat(e,\"\"):\"\")}function M(t){var e=\"solid\",r=\"\",n=\"\",a=\"\";return t&&(\"string\"==typeof t?r=t:(t.type&&(e=t.type),t.color&&(r=t.color),t.alpha&&(n+='')),t.transparency&&(n+=''))),a+=\"solid\"===e?\"\".concat(D(r,n),\"\"):\"\"),a}function C(t){return t._rels.length+t._relsChart.length+t._relsMedia.length+1}function mt(t,d,e,r){void 0===t&&(t=[]);var n,a=w,p=+R,u=0,o=0,h=[],i=F((d=void 0===d?{}:d).x,\"X\",e),s=F(d.y,\"Y\",e),l=F(d.w,\"X\",e),c=F(d.h,\"Y\",e),f=l;function m(){var t=0;0===h.length&&(t=s||O(a[0])),0r?r=B(t.options.margin[0]):d.margin&&d.margin[0]&&B(d.margin[0])>r&&(r=B(d.margin[0])),t.options.margin&&t.options.margin[2]&&B(t.options.margin[2])>n?n=B(t.options.margin[2]):d.margin&&d.margin[2]&&B(d.margin[2])>n&&(n=B(d.margin[2]))):(t.options.margin&&t.options.margin[0]&&O(t.options.margin[0])>r?r=O(t.options.margin[0]):d.margin&&d.margin[0]&&O(d.margin[0])>r&&(r=O(d.margin[0])),t.options.margin&&t.options.margin[2]&&O(t.options.margin[2])>n?n=O(t.options.margin[2]):d.margin&&d.margin[2]&&O(d.margin[2])>n&&(n=O(d.margin[2])))}),m(),u+=r+n,d.verbose&&0===e&&console.log(\"| SLIDE [\".concat(h.length,\"]: emuSlideTabH ...... = \").concat((p/R).toFixed(1),\" \")),t.forEach(function(r,n){var t,a,e,o,i,s,l,c,p={_type:k.tablecell,_lines:null,_lineHeight:O((r.options&&r.options.fontSize?r.options.fontSize:d.fontSize||x)*(q+(d.autoPageLineWeight||0))/100),text:[],options:r.options},u=(p.options.rowspan&&(p._lineHeight=0),p.options.autoPageCharWeight=d.autoPageCharWeight||null,d.colW[n]);r.options.colspan&&Array.isArray(d.colW)&&(u=d.colW.filter(function(t,e){return n<=e&&e \".concat(JSON.stringify(c))),s.push(c),c=[])),0o&&(i.push(e),e=[],r=\"\"),e.push(t),r+=t.text.toString()}),0=i&&(i=t._lineHeight)}),p maxH) => \".concat((u/R).toFixed(2),\" + \").concat((l._lineHeight/R).toFixed(2),\" > \").concat(p/R)),console.log(\"|-----------------------------------------------------------------------|\\n\\n\")),0r&&(r=t._lineHeight)}),A.rows.push(e),u+=r}),c=a[o]),l._lines.shift());Array.isArray(c.text)&&(l?c.text=c.text.concat(l):0===c.text.length&&(c.text=c.text.concat({_type:k.tablecell,text:\"\"}))),o===f.length-1&&(u+=i),o=o'},contain:function(t,e){var t=t.h/t.w,r=t'},crop:function(t,e){var r=e.x,n=t.w-(e.x+e.w),a=e.y,e=t.h-(e.y+e.h);return''}};function yt(L){var E=L._name?'':\"\",T=1;return L._bkgdImgRid?E+=''):L.background&&L.background.color?E+=\"\".concat(M(L.background),\"\"):!L.bkgd&&L._name&&L._name===et&&(E+=''),E=(E=E+\"\"+'')+''+'',L._slideObjects.forEach(function(n,t){var e,r=0,a=0,o=F(\"75%\",\"X\",L._presLayout),i=0,s=\"\";switch(void 0!==L._slideLayout&&void 0!==L._slideLayout._slideObjects&&n.options&&n.options.placeholder&&(e=L._slideLayout._slideObjects.filter(function(t){return t.options.placeholder===n.options.placeholder})[0]),n.options=n.options||{},void 0!==n.options.x&&(r=F(n.options.x,\"X\",L._presLayout)),void 0!==n.options.y&&(a=F(n.options.y,\"Y\",L._presLayout)),void 0!==n.options.w&&(o=F(n.options.w,\"X\",L._presLayout)),void 0!==n.options.h&&(i=F(n.options.h,\"Y\",L._presLayout)),e&&(!e.options.x&&0!==e.options.x||(r=F(e.options.x,\"X\",L._presLayout)),!e.options.y&&0!==e.options.y||(a=F(e.options.y,\"Y\",L._presLayout)),!e.options.w&&0!==e.options.w||(o=F(e.options.w,\"X\",L._presLayout)),!e.options.h&&0!==e.options.h||(i=F(e.options.h,\"Y\",L._presLayout))),n.options.flipH&&(s+=' flipH=\"1\"'),n.options.flipV&&(s+=' flipV=\"1\"'),n.options.rotate&&(s+=' rot=\"'+N(n.options.rotate)+'\"'),n._type){case k.table:var l,c=n.arrTabRows,p=n.options,u=0,f=0,d=(c[0].forEach(function(t){l=t.options||null,u+=l&&l.colspan?Number(l.colspan):1}),'')),d=(d+=' ')+'')+'';if(Array.isArray(p.colW)){d+=\"\";for(var h=0;h'}d+=\"\"}else{f=p.colW||R,n.options.w&&!p.colW&&(f=Math.round((\"number\"==typeof n.options.w?n.options.w:1)/u)),d+=\"\";for(var g=0;g';d+=\"\"}c.forEach(function(a){for(var o,i,t=0;t'),t.forEach(function(t){var e,r,n,a,o,i={rowSpan:1<(null==(s=t.options)?void 0:s.rowspan)?t.options.rowspan:void 0,gridSpan:1<(null==(s=t.options)?void 0:s.colspan)?t.options.colspan:void 0,vMerge:t._vmerge?1:void 0,hMerge:t._hmerge?1:void 0},s=(s=Object.keys(i).map(function(t){return[t,i[t]]}).filter(function(t){return t[0],!!t[1]}).map(function(t){var e=t[0],t=t[1];return\"\".concat(e,'=\"').concat(t,'\"')}).join(\" \"))&&\" \"+s;t._hmerge||t._vmerge?d+=\"\"):(e=t.options||{},t.options=e,[\"align\",\"bold\",\"border\",\"color\",\"fill\",\"fontFace\",\"fontSize\",\"margin\",\"underline\",\"valign\"].forEach(function(t){p[t]&&!e[t]&&0!==e[t]&&(e[t]=p[t])}),r=e.valign?' anchor=\"'+e.valign.replace(/^c$/i,\"ctr\").replace(/^m$/i,\"ctr\").replace(\"center\",\"ctr\").replace(\"middle\",\"ctr\").replace(\"top\",\"t\").replace(\"btm\",\"b\").replace(\"bottom\",\"b\")+'\"':\"\",n=(n=(t._optImp&&t._optImp.fill&&t._optImp.fill.color?t._optImp.fill.color:t._optImp&&t._optImp.fill&&\"string\"==typeof t._optImp.fill?t._optImp.fill:\"\")||e.fill?e.fill:\"\")?M(n):\"\",a=0===e.margin||e.margin?e.margin:$,o=\"\",o=1<=(a=Array.isArray(a)||\"number\"!=typeof a?a:[a,a,a,a])[0]?' marL=\"'.concat(B(a[3]),'\" marR=\"').concat(B(a[1]),'\" marT=\"').concat(B(a[0]),'\" marB=\"').concat(B(a[2]),'\"'):' marL=\"'.concat(O(a[3]),'\" marR=\"').concat(O(a[1]),'\" marT=\"').concat(O(a[0]),'\" marB=\"').concat(O(a[2]),'\"'),d+=\"\").concat(xt(t),\"\"),e.border&&Array.isArray(e.border)&&[{idx:3,name:\"lnL\"},{idx:1,name:\"lnR\"},{idx:0,name:\"lnT\"},{idx:2,name:\"lnB\"}].forEach(function(t){\"none\"!==e.border[t.idx].type?d=(d=(d=(d+=\"'))+\"\".concat(D(e.border[t.idx].color),\"\"))+''))+\"\"):d+=\"\")}),d=d+n+\" \")}),d+=\"\"}),E+=d=(d=d+\" \"+\" \")+\" \"+\"\",T++;break;case k.text:case k.placeholder:if(n.options.line||0!==i||(i=.3*R),n.options._bodyProp||(n.options._bodyProp={}),n.options.margin&&Array.isArray(n.options.margin)?(n.options._bodyProp.lIns=B(n.options.margin[0]||0),n.options._bodyProp.rIns=B(n.options.margin[1]||0),n.options._bodyProp.bIns=B(n.options.margin[2]||0),n.options._bodyProp.tIns=B(n.options.margin[3]||0)):\"number\"==typeof n.options.margin&&(n.options._bodyProp.lIns=B(n.options.margin),n.options._bodyProp.rIns=B(n.options.margin),n.options._bodyProp.bIns=B(n.options.margin),n.options._bodyProp.tIns=B(n.options.margin)),E=(E+=\"\")+''),n.options.hyperlink&&n.options.hyperlink.url&&(E+=''),n.options.hyperlink&&n.options.hyperlink.slide&&(E+=''),E=(E=(E=(E=(E=(E+=\"\")+(\"':\"/>\")))+\"\".concat(\"placeholder\"===n._type?wt(n):wt(e),\"\")+\"\")+\"\"))+''))+''),\"custGeom\"===n.shape)E=(E+='')+''),null!=(_=n.options.points)&&_.map(function(t,e){if(\"curve\"in t)switch(t.curve.type){case\"arc\":E+='');break;case\"cubic\":E+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t');break;case\"quadratic\":E+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t')}else\"close\"in t?E+=\"\":t.moveTo||0===e?E+=''):E+='')}),E+=\"\";else{if(E+='',n.options.rectRadius)E+='');else if(n.options.angleRange){for(var y=0;y<2;y++){var A=n.options.angleRange[y];E+='')}n.options.arcThicknessRatio&&(E+=''))}E+=\"\"}E+=n.options.fill?M(n.options.fill):\"\",n.options.line&&(E+=n.options.line.width?''):\"\",n.options.line.color&&(E+=M(n.options.line)),n.options.line.dashType&&(E+='')),n.options.line.beginArrowType&&(E+='')),n.options.line.endArrowType&&(E+='')),E+=\"\"),n.options.shadow&&(n.options.shadow.type=n.options.shadow.type||\"outer\",n.options.shadow.blur=B(n.options.shadow.blur||8),n.options.shadow.offset=B(n.options.shadow.offset||4),n.options.shadow.angle=Math.round(6e4*(n.options.shadow.angle||270)),n.options.shadow.opacity=Math.round(1e5*(n.options.shadow.opacity||.75)),n.options.shadow.color=n.options.shadow.color||nt.color,E=(E=(E=(E=(E=(E+=\"\")+\"')+'')+''),E=(E+=\"\")+xt(n)+\"\";break;case k.image:var v,b,x,w,_=n.options.sizing,C=n.options.rounding,P=o,S=i;E=(E=E+\"\"+\" \")+''),n.hyperlink&&n.hyperlink.url&&(E+='')),n.hyperlink&&n.hyperlink.slide&&(E+='')),E=(E=(E=E+\" \"+' ')+(\" \"+wt(e)+\"\"))+\" \"+\"\",E=(L._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0]&&\"svg\"===(L._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0].extn?(E=(E+='')+(n.options.transparency?' '):\"\")+' ')+' ':(E+='')+(n.options.transparency?' '):\"\")+\"\",_&&_.type?(v=_.w?F(_.w,\"X\",L._presLayout):o,b=_.h?F(_.h,\"Y\",L._presLayout):i,x=F(_.x||0,\"X\",L._presLayout),w=F(_.y||0,\"Y\",L._presLayout),E+=gt[_.type]({w:P,h:S},{w:v,h:b,x:x,y:w}),P=v,S=b):E+=\" \",E=(E=(E=(E=(E+=\"\")+\"\"+(\" \"))+(' ')+(' '))+\" \"+(' '))+\"\"+\"\";break;case k.media:E=\"online\"===n.mtype?(E=(E=(E=(E=(E+=\" \")+'')+\" \")+' ')+' ')+\" \")+' ':(E=(E=(E=(E=(E=(E+=\" \")+'')+' ')+' ')+' ')+' ')+\" \")+' ';break;case k.chart:E=(E=(E=(E=(E=(E=(E=E+\"\"+\" \")+' ')+\" \")+\" \".concat(wt(e),\"\")+\" \")+' '))+' '+' ')+' ')+\" \")+\" \"+\"\";break;default:E+=\"\"}}),L._slideNumberProps&&(L._slideNumberProps.align||(L._slideNumberProps.align=\"left\"),E=E+(' \",(L._slideNumberProps.fontFace||L._slideNumberProps.fontSize||L._slideNumberProps.color)&&(E+=''),L._slideNumberProps.color&&(E+=M(L._slideNumberProps.color)),L._slideNumberProps.fontFace&&(E+='')),E+=\"\"),E+=\"\",L._slideNumberProps.align.startsWith(\"l\")?E+='':L._slideNumberProps.align.startsWith(\"c\")?E+='':L._slideNumberProps.align.startsWith(\"r\")?E+='':E+='',E=(E+=''))+\"\".concat(L._slideNum,'')+\"\"),E=E+\"\"+\"\"}function At(t,e){var r=0,n=''+u+'';return t._rels.forEach(function(t){r=Math.max(r,t.rId),-1':n+='':-1')}),(t._relsChart||[]).forEach(function(t){r=Math.max(r,t.rId),n+=''}),(t._relsMedia||[]).forEach(function(t){r=Math.max(r,t.rId),-1':-1':n+='':-1':n+='':-1':n+='')}),e.forEach(function(t,e){n+=''}),n+=\"\"}function vt(t,e){var r,n=\"\",a=\"\",o=\"\",i=\"\",s=e?\"a:lvl1pPr\":\"a:pPr\",l=B(Z),c=\"<\".concat(s).concat(t.options.rtlMode?' rtl=\"1\" ':\"\");if(t.options.align)switch(t.options.align){case\"left\":c+=' algn=\"l\"';break;case\"right\":c+=' algn=\"r\"';break;case\"center\":c+=' algn=\"ctr\"';break;case\"justify\":c+=' algn=\"just\"';break;default:c+=\"\"}return t.options.lineSpacing?a=''):t.options.lineSpacingMultiple&&(a='')),t.options.indentLevel&&!isNaN(Number(t.options.indentLevel))&&0')),t.options.paraSpaceAfter&&!isNaN(Number(t.options.paraSpaceAfter))&&0')),\"object\"==typeof t.options.bullet?(t&&t.options&&t.options.bullet&&t.options.bullet.indent&&(l=B(t.options.bullet.indent)),t.options.bullet.type?\"number\"===t.options.bullet.type.toString().toLowerCase()&&(c+=' marL=\"'.concat(t.options.indentLevel&&0')):n=t.options.bullet.characterCode?(r=\"&#x\".concat(t.options.bullet.characterCode,\";\"),!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.characterCode)&&(console.warn(\"Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!\"),r=p.DEFAULT),c+=' marL=\"'.concat(t.options.indentLevel&&0'):t.options.bullet.code?(r=\"&#x\".concat(t.options.bullet.code,\";\"),!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.code)&&(console.warn(\"Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!\"),r=p.DEFAULT),c+=' marL=\"'.concat(t.options.indentLevel&&0'):(c+=' marL=\"'.concat(t.options.indentLevel&&0'))):!0===t.options.bullet?(c+=' marL=\"'.concat(t.options.indentLevel&&0')):!1===t.options.bullet&&(c+=' indent=\"0\" marL=\"0\"',n=\"\"),t.options.tabStops&&Array.isArray(t.options.tabStops)&&(r=t.options.tabStops.map(function(t){return'')}).join(\"\"),i=\"\".concat(r,\"\")),c+=\">\"+a+o+n+i,e&&(c+=bt(t.options,!0)),c+=\"\"}function bt(t,e){var r,n,a,o,i=\"\",e=e?\"a:defRPr\":\"a:rPr\",i=(i=(i=(i=(i+=\"<\"+e+' lang=\"'+(t.lang||\"en-US\")+'\"'+(t.lang?' altLang=\"en-US\"':\"\"))+(t.fontSize?' sz=\"'+Math.round(t.fontSize)+'00\"':\"\"))+(t.hasOwnProperty(\"bold\")?' b=\"'.concat(t.bold?1:0,'\"'):\"\"))+(t.hasOwnProperty(\"italic\")?' i=\"'.concat(t.italic?1:0,'\"'):\"\"))+(t.hasOwnProperty(\"strike\")?' strike=\"'.concat(\"string\"==typeof t.strike?t.strike:\"sngStrike\",'\"'):\"\");if(\"object\"==typeof t.underline&&null!=(r=t.underline)&&r.style?i+=' u=\"'.concat(t.underline.style,'\"'):\"string\"==typeof t.underline?i+=' u=\"'.concat(t.underline,'\"'):t.hyperlink&&(i+=' u=\"sng\"'),t.baseline?i+=' baseline=\"'.concat(Math.round(50*t.baseline),'\"'):t.subscript?i+=' baseline=\"-40000\"':t.superscript&&(i+=' baseline=\"30000\"'),i=i+(t.charSpacing?' spc=\"'.concat(Math.round(100*t.charSpacing),'\" kern=\"0\"'):\"\")+' dirty=\"0\">',(t.color||t.fontFace||t.outline||\"object\"==typeof t.underline&&t.underline.color)&&(t.outline&&\"object\"==typeof t.outline&&(i+='').concat(M(t.outline.color||\"FFFFFF\"),\"\")),t.color&&(i+=M({color:t.color,transparency:t.transparency})),t.highlight&&(i+=\"\".concat(D(t.highlight),\"\")),\"object\"==typeof t.underline&&t.underline.color&&(i+=\"\".concat(M(t.underline.color),\"\")),t.glow&&(i+=\"\".concat((r=t.glow,a=\"\",n=_(n=at,r),r=Math.round(n.size*b),o=n.color,n=Math.round(1e5*n.opacity),(a+=''))+D(o,''))+\"\"),\"\")),t.fontFace&&(i+=''))),t.hyperlink){if(\"object\"!=typeof t.hyperlink)throw new Error(\"ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` \");if(!t.hyperlink.url&&!t.hyperlink.slide)throw new Error(\"ERROR: 'hyperlink requires either `url` or `slide`'\");t.hyperlink.url?i+='\":\"/>\"):t.hyperlink.slide&&(i+='\":\"/>\")),t.color&&(i+='\\t\\t\\t\\t\\t\\t\\t\\t\\t')}return i+=\"\")}function xt(r){var a=r.options||{},t=[],n=[];if(a&&r._type!==k.tablecell&&(void 0===r.text||null===r.text))return\"\";var e,o,i=r._type===k.tablecell?\"\":\"\",s=(i+=(o=\"\",e.options.fit&&(\"none\"===e.options.fit?o+=\"\":\"shrink\"===e.options.fit?o+=\"\":\"resize\"===e.options.fit&&(o+=\"\")),e.options.shrinkText&&(o+=\"\"),o=o+(!1!==e.options._bodyProp.autoFit?\"\":\"\")+\"\"):o+=' wrap=\"square\" rtlCol=\"0\">',e._type===k.tablecell?\"\":o),0===a.h&&a.line&&a.align?i+='':\"placeholder\"===r._type?i+=\"\".concat(vt(r,!0),\"\"):i+=\"\",\"string\"==typeof r.text||\"number\"==typeof r.text?t.push({text:r.text.toString(),options:a||{}}):r.text&&!Array.isArray(r.text)&&\"object\"==typeof r.text&&-1\",\"\"),r.options.align=r.options.align||a.align,r.options.lineSpacing=r.options.lineSpacing||a.lineSpacing,r.options.lineSpacingMultiple=r.options.lineSpacingMultiple||a.lineSpacingMultiple,r.options.indentLevel=r.options.indentLevel||a.indentLevel,r.options.paraSpaceBefore=r.options.paraSpaceBefore||a.paraSpaceBefore,r.options.paraSpaceAfter=r.options.paraSpaceAfter||a.paraSpaceAfter,n=vt(r,!1),i+=n.replace(\"\",\"\"),Object.entries(a).forEach(function(t){var e=t[0],t=t[1];r.options.hyperlink&&\"color\"===e||\"bullet\"===e||r.options[e]||(r.options[e]=t)}),i+=(t=r).text?\"\".concat(bt(t.options,!1),\"\").concat(I(t.text),\"\"):\"\",(!r.text&&a.fontSize||r.options.fontSize)&&(e=!0,a.fontSize=a.fontSize||r.options.fontSize)}),r._type===k.tablecell&&(a.fontSize||a.fontFace)?a.fontFace?i=(i=(i=(i+='')+''))+''))+'')+\"\":i+='':i+=e?'':''),i+=\"\"}),i+=r._type===k.tablecell?\"\":\"\"}function wt(t){if(!t)return\"\";var e=t.options&&t.options._placeholderIdx?t.options._placeholderIdx:\"\",r=t.options&&t.options._placeholderType?t.options._placeholderType:\"\";return\"\")}function _t(t){return''+u+''+I((e=\"\",t._slideObjects.forEach(function(t){t._type===k.notes&&(e+=t.text&&t.text[0]?t.text[0].text:\"\")}),e.replace(/\\r*\\n/g,u)))+''+t._slideNum+'';var e}function Ct(t,e,r){return At(t[r-1],[{target:\"../slideLayouts/slideLayout\"+function(t,e,r){for(var n=0;n \\n'),t.file(\"_rels/.rels\",'\\n'),t.file(\"docProps/app.xml\",'Microsoft Excel0falseWorksheets1Sheet1\\n'),t.file(\"docProps/core.xml\",'PptxGenJSEly, Brent'+(new Date).toISOString()+''+(new Date).toISOString()+\"\\n\"),t.file(\"xl/_rels/workbook.xml.rels\",'\\n'),t.file(\"xl/styles.xml\",'\\n'),t.file(\"xl/theme/theme1.xml\",''),t.file(\"xl/workbook.xml\",'\\n'),t.file(\"xl/worksheets/_rels/sheet1.xml.rels\",'\\n'),''),o=(p.opts._type===d.BUBBLE?n+='':p.opts._type===d.SCATTER?n+='':n=n+('',p.opts._type===d.BUBBLE?f.forEach(function(t,e){0===e?n+=\"X-Axis\":n=(n+=\"\"+I(t.name||\" \")+\"\")+\"\"+I(\"Size \"+e)+\"\"}):f.forEach(function(t){n+=\"\"+I((t.name||\" \").replace(\"X-Axis\",\"X-Values\"))+\"\"}),p.opts._type!==d.BUBBLE&&p.opts._type!==d.SCATTER&&f[0].labels.forEach(function(t){n+=\"\"+I(t)+\"\"}),n+=\"\\n\",t.file(\"xl/sharedStrings.xml\",n),''),i=(p.opts._type!==d.BUBBLE&&(p.opts._type===d.SCATTER?(o=(o+='')+'',f.forEach(function(t,e){o+=''})):(o=(o+='
')+'',f.forEach(function(t,e){o+=''}))),o=(o+=\"\")+''+\"
\",t.file(\"xl/tables/table1.xml\",o),'');if(i+='',p.opts._type===d.BUBBLE?i+='':p.opts._type===d.SCATTER?i+='':i+='',i=i+''+'',p.opts._type===d.BUBBLE){for(var i=(i=(i=(i+=\"\")+(''))+\"\"+\"\")+('')+'0',s=1;s')+\"\"+s+\"\";i+=\"\",f[0].values.forEach(function(t,e){i=i+''+t+\"\";for(var r=1,n=1;n')+\"\"+(f[n].values[e]||\"\")+\"\")+'')+\"\"+(f[n].sizes[e]||\"\")+\"\",r++;i+=\"\"})}else if(p.opts._type===d.SCATTER){i=(i=(i=(i+=\"\")+(''))+\"\"+\"\")+('')+'0';for(var l=1;l')+\"\"+l+\"\";i+=\"\",f[0].values.forEach(function(t,e){i=i+(''+t+\"\";for(var r=1;r')+\"\"+(f[r].values[e]||0===f[r].values[e]?f[r].values[e]:\"\")+\"\";i+=\"\"})}else{i=(i=(i=i+\"\"+'')+\"\"+\"\")+('')+'0';for(var c=1;c<=f.length;c++)i=(i+='')+\"\"+c+\"\";i+=\"\",f[0].labels.forEach(function(t,e){i=(i=i+('')+\"\"+(f.length+e+1)+\"\";for(var r=0;r')+\"\"+(f[r].values[e]||\"\")+\"\";i+=\"\"})}i+='\\n',t.file(\"xl/worksheets/sheet1.xml\",i),t.generateAsync({type:\"base64\"}).then(function(t){u.file(\"ppt/embeddings/Microsoft_Excel_Worksheet\"+p.globalId+\".xlsx\",t,{base64:!0}),u.file(\"ppt/charts/_rels/\"+p.fileName+\".rels\",''),u.file(\"ppt/charts/\"+p.fileName,function(a){var o='',i=!1;o+='',a.opts.showTitle?o=o+Dt({title:a.opts.title||\"Chart Title\",color:a.opts.titleColor,fontFace:a.opts.titleFontFace,fontSize:a.opts.titleFontSize||tt,titleAlign:a.opts.titleAlign,titleBold:a.opts.titleBold,titlePos:a.opts.titlePos,titleRotate:a.opts.titleRotate})+'':o+='';a.opts._type===d.BAR3D&&(o=(o=(o=(o=(o+=\"\")+' ')+' ')+' ')+' ');o+=\"\",a.opts.layout?o=(o=(o=(o=(o+=' ')+' ')+' ')+' ')+' ':o+=\"\";Array.isArray(a.opts._type)?a.opts._type.forEach(function(t){var e=_(a.opts,t.options),r=e.secondaryValAxis?ot:g,n=e.secondaryCatAxis?st:it;i=i||e.secondaryValAxis,o+=Ot(t.type,t.data,e,r,n)}):o+=Ot(a.opts._type,a.data,a.opts,g,it);if(a.opts._type!==d.PIE&&a.opts._type!==d.DOUGHNUT){if(a.opts.valAxes&&1 ')+' ')+' ')+' ')+(\"none\"!==e.serGridLine.style?Mt(e.serGridLine):\"\"),e.showSerAxisTitle&&(n+=Dt({color:e.serAxisTitleColor,fontFace:e.serAxisTitleFontFace,fontSize:e.serAxisTitleFontSize,titleRotate:e.serAxisTitleRotate,title:e.serAxisTitle||\"Axis Title\"}));n=(n=(n=(n=(n=(n=(n=(n=n+' ')+' ')+' ')+(!1===e.serAxisLineShow?\"\":\"\"+D(e.serAxisLineColor||h.color)+\"\")+' ')+' '))+\" \"+D(e.serAxisLabelColor||m)+\"\")+' ')+' ')+' ',e.serAxisLabelFrequency&&(n+=' ');e.serLabelFormatCode&&([\"serAxisBaseTimeUnit\",\"serAxisMajorTimeUnit\",\"serAxisMinorTimeUnit\"].forEach(function(t){!e[t]||\"string\"==typeof e[t]&&-1!==[\"days\",\"months\",\"years\"].indexOf(t.toLowerCase())||(console.warn(\"`\"+t+\"` must be one of: 'days','months','years' !\"),e[t]=null)}),e.serAxisBaseTimeUnit&&(n+=' '),e.serAxisMajorTimeUnit&&(n+=' '),e.serAxisMinorTimeUnit&&(n+=' '),e.serAxisMajorUnit&&(n+=' '),e.serAxisMinorUnit&&(n+=' '));return n+=\"\"}(a.opts,lt,g)))}a.opts.showDataTable&&(o=(o=(o=(o=(o=(o+=\"\")+' ')+' ')+' ')+' \\t \\t \\t \\t\\t')+' ')+'\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t\\t\\t\\t\\t \\t');o=(o=(o+=\" \")+(a.opts.fill?M(a.opts.fill):\"\"))+(a.opts.border?'').concat(M(a.opts.border.color),\"\"):\"\")+\" \",a.opts.showLegend&&(o=(o+=\"\")+'',(a.opts.legendFontFace||a.opts.legendFontSize||a.opts.legendColor)&&(o=(o+=\" \")+(a.opts.legendFontSize?'':\"\"),a.opts.legendColor&&(o+=M(a.opts.legendColor)),a.opts.legendFontFace&&(o+=''),a.opts.legendFontFace&&(o+=''),o+=' '),o+=\"\");o=(o+=' ')+' ',a.opts._type===d.SCATTER&&(o+='');return o+=' '}(p)),e(null)}).catch(function(t){r(t)})})}function Ot(n,a,o,t,e){var i=\"\";switch(n){case d.AREA:case d.BAR:case d.BAR3D:case d.LINE:case d.RADAR:i+=\"\",n===d.AREA&&\"stacked\"===o.barGrouping&&(i+=''),n!==d.BAR&&n!==d.BAR3D||(i=(i+='')+''),n===d.RADAR&&(i+=''),i+='';var s=-1;a.forEach(function(t){s++;var e=t.index,r=(i=(i=(i=(i=(i=(i+=\"\")+(' ')+(' '))+\" \"+\" \")+(\" Sheet1!$\"+S(e+1)+\"$1\"))+(' '+I(t.name)+\"\")+\" \")+\" \"+' ',o.chartColors?o.chartColors[s%o.chartColors.length]:null);i+=\" \",\"transparent\"===r?i+=\"\":o.chartColorsOpacity?i+=\"\"+D(r,''))+\"\":i+=\"\"+D(r)+\"\",n===d.LINE||n===d.RADAR?0===o.lineSize?i+=\"\":i=(i+=''+D(r)+\"\")+'':o.dataBorder&&(i+=''+D(o.dataBorder.color)+''),i=i+L(o.shadow,c)+\" \",n!==d.RADAR&&(i=(i+=\" \")+' '),i=(i=(i=(i=(o.dataLabelBkgrdColors?(i+=\" \")+\" \"+D(r)+\" \":i)+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i=(i+=' ')+' ')+' ')+\" \"),n!==d.LINE&&n!==d.RADAR||(i=(i+=\"\")+' ',o.lineDataSymbolSize&&(i+=' '),i=(i=(i+=\" \")+\" \"+D(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e])+\"\")+' '+D(o.lineDataSymbolLineColor||r)+' '),n!==d.BAR&&n!==d.BAR3D||1!==a.length||!(o.chartColors&&o.chartColors!==ct&&1\")+' ',0===o.lineSize?i+=\"\":i=n===d.BAR?(i+=\"\")+' ':(i+=\" \")+' ',i=i+L(o.shadow,c)+\" \"}),i+=\"\",o.catLabelFormatCode?(i=(i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(t.labels.length+1)+\" \")+\" \"+(o.catLabelFormatCode||\"General\")+\"\")+' ',t.labels.forEach(function(t,e){i+=''+I(t)+\"\"}),i+=\" \"):(i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(t.labels.length+1)+\" \")+'\\t ',t.labels.forEach(function(t,e){i+=''+I(t)+\"\"}),i+=\" \"),i=(i=(i=(i=i+\"\"+\" \")+\" Sheet1!$\"+S(e+1)+\"$2:$\"+S(e+1)+\"$\"+(t.labels.length+1)+\" \")+\" \"+(o.valLabelFormatCode||o.dataTableFormatCode||\"General\")+\"\")+' ',t.values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i+=\" \",n===d.LINE&&(i+=''),i+=\"\"}),i=(i=(i=(i=(i+=\" \")+' ')+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i=(i+=' ')+' ')+' ')+\" \",n===d.BAR?i=(i+=' ')+' ':n===d.BAR3D?i=(i=(i+=' ')+' ')+' ':n===d.LINE&&(i+=' '),i=(i=i+(' ')+(' '))+(' ')+(\"\");break;case d.SCATTER:i=(i+=\"\")+''+'',s=-1,a.filter(function(t,e){return 0\")+' ')+\" Sheet1!$\"+y[t+1]+\"$1\")+' '+r.name+\" \";var n,e=o.chartColors[s%o.chartColors.length];\"transparent\"===e?i+=\"\":o.chartColorsOpacity?i+=\"\"+D(e,'')+\"\":i+=\"\"+D(e)+\"\",0===o.lineSize?i+=\"\":i=(i+=''+D(e)+\"\")+'',i=(i=(i+=L(o.shadow,c))+\" \"+\"\")+' ',o.lineDataSymbolSize&&(i+=' '),i=(i=(i+=\" \")+\" \"+D(o.chartColors[t+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):t])+\"\")+' '+D(o.lineDataSymbolLineColor||o.chartColors[s%o.chartColors.length])+' ',o.showLabel&&(n=ft(\"-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"),!r.labels||\"custom\"!==o.dataLabelFormatScatter&&\"customXY\"!==o.dataLabelFormatScatter||(i+=\"\",r.labels.forEach(function(t,e){\"custom\"!==o.dataLabelFormatScatter&&\"customXY\"!==o.dataLabelFormatScatter||(i=(i=(i=(i+=\" \")+' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t')+' \\t\\t')+\" \\t\\t\"+I(t)+\" \\t\",i=(\"customXY\"!==o.dataLabelFormatScatter||/^ *$/.test(t)?i:(i=(i=(i=(i=(i=(i=(i=(i=(i=(i+=\" \\t\")+' \\t\\t \\t\\t ( \\t')+' \\t')+' \\t\\t \\t\\t \\t\\t\\t \\t\\t')+\" \\t\\t[\"+I(r.name)+\" \\t \\t\")+' \\t\\t \\t\\t, \\t')+' \\t')+' \\t\\t \\t\\t \\t\\t\\t \\t\\t')+\" \\t\\t[\"+I(r.name)+\"] \\t \\t\")+' \\t\\t \\t\\t) \\t')+' \\t')+\" \\t \\t \\t \\t\\t \\t \\t \",o.dataLabelPosition&&(i+=' '),i=(i+=' \\t ')+'\\t\\t\\t \\t\\t')}),i+=\"\"),\"XY\"===o.dataLabelFormatScatter&&(i+='\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t \\t\\t\\t \\t\\t \\t\\t\\t\\t',o.dataLabelPosition&&(i+=' '),i=(i=(i+='\\t')+' '))+' ')+'\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t')),1===a.length&&o.chartColors!==ct&&r.values.forEach(function(t,e){t=t<0?o.invertedColors||o.chartColors||ct:o.chartColors||[];i=(i+=\" \")+' ',0===o.lineSize?i+=\"\":i=(i+=\"\")+' ',i=i+L(o.shadow,c)+\" \"}),i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(a[0].values.length+1)+\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i=(i=(i+=\" \")+\" Sheet1!$\"+S(t+1)+\"$2:$\"+S(t+1)+\"$\"+(a[0].values.length+1)+\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:\"\")+\"\"}),i=(i+=\" \")+''}),i=(i=(i=(i=(i+=\" \")+' ')+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i+=' ')+' ',i=(i+=' ')+(' ')+(\"\");break;case d.BUBBLE:var i=i+(\"\")+'',s=-1,l=1;a.filter(function(t,e){return 0\")+' ')+\" Sheet1!$\"+y[l]+\"$1\")+' '+r.name+\" \";var e=o.chartColors[s%o.chartColors.length];\"transparent\"===e?i+=\"\":o.chartColorsOpacity?i+=\"\"+D(e,'')+\"\":i+=\"\"+D(e)+\"\",0===o.lineSize?i+=\"\":o.dataBorder?i+=''+D(o.dataBorder.color)+'':i=(i+=''+D(e)+\"\")+'',i=i+L(o.shadow,c)+\"\",i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(a[0].values.length+1)+\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i=(i+=\" \")+\" Sheet1!$\"+S(l)+\"$2:$\"+S(l)+\"$\"+(a[0].values.length+1)+\"\",l++,i=(i+=\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:\"\")+\"\"}),i=(i+=\" \")+\" Sheet1!$\"+S(l)+\"$2:$\"+S(t+2)+\"$\"+(r.sizes.length+1)+\"\",l++,i=(i+=\" General\")+'\\t ',r.sizes.forEach(function(t,e){i+=''+(t||\"\")+\"\"}),i+=' '}),i=(i=(i=(i=(i+=\" \")+' ')+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i+=' ')+' ',i=(i+=' ')+(' ')+(\"\");break;case d.DOUGHNUT:case d.PIE:var r=a[0];i=(i=(i=(i=(i=(i=(i=(i=(i=i+(\"\")+' ')+\"\"+' ')+' '+\" \")+\" \"+\" Sheet1!$B$1\")+\" \"+' ')+(' '+I(r.name)+\"\"))+\" \"+\" \")+\" \"+\" \")+' '+' ',o.dataNoEffects?i+=\"\":i+=L(o.shadow,c),i+=\" \",r.labels.forEach(function(t,e){i=(i=(i+=\"\")+' ')+' ')+\"\".concat(D(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e]),\"\"),o.dataBorder&&(i+='').concat(D(o.dataBorder.color),'')),i=i+L(o.shadow,c)+\" \"}),i+=\"\",r.labels.forEach(function(t,e){i=(i=(i=(i=(i=(i+=\"\")+' '))+' ')+\" \")+' '))+\" \"+D(o.dataLabelColor||m)+\"\")+' ')+\" \",n===d.PIE&&o.dataLabelPosition&&(i+=' ')),i=(i=(i=(i+=' ')+' ')+' ')+' '}),i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=i+' ')+\"\\t\")+\"\\t \"+\"\\t \")+\"\\t \"+\"\\t\\t\")+('\\t\\t ')+'\\t\\t\\t')+\"\\t\\t \"+\"\\t\\t\")+\"\\t \"+\"\\t\")+(n===d.PIE?'':\"\"))+'\\t'+'\\t')+'\\t'+'\\t')+'\\t'+'\\t')+' ')+\"\")+\"\"+\" \")+(\" Sheet1!$A$2:$A$\"+(r.labels.length+1)+\"\")+\" \")+('\\t '),r.labels.forEach(function(t,e){i+=''+I(t)+\"\"}),i=(i=(i=(i=(i+=\" \")+\" \"+\"\")+\" \"+\" \")+(\" Sheet1!$B$2:$B$\"+(r.labels.length+1)+\"\")+\" \")+('\\t '),r.values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i=(i=(i=i+\" \"+\" \")+\" \"+\" \")+' '),n===d.DOUGHNUT&&(i+=' '),i+=\"\";break;default:i+=\"\"}return i}function Bt(e,t,r){var n=\"\";return e._type===d.SCATTER||e._type===d.BUBBLE?n+=\"\":n+=\"\",n=(n+=' ')+\" \"+(''),!e.catAxisMaxVal&&0!==e.catAxisMaxVal||(n+=''),!e.catAxisMinVal&&0!==e.catAxisMinVal||(n+=''),n=(n=(n=n+\"\"+(' '))+(' '))+(\"none\"!==e.catGridLine.style?Mt(e.catGridLine):\"\"),e.showCatAxisTitle&&(n+=Dt({color:e.catAxisTitleColor,fontFace:e.catAxisTitleFontFace,fontSize:e.catAxisTitleFontSize,titleRotate:e.catAxisTitleRotate,title:e.catAxisTitle||\"Axis Title\"})),e._type===d.SCATTER||e._type===d.BUBBLE?n+=' ':n+=' ',e._type===d.SCATTER?n+=' ':n=(n=(n+=' ')+' ')+' ',n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n+=\" \")+(' '))+(!1===e.catAxisLineShow?\"\":\"\"+D(e.catAxisLineColor||h.color)+\"\"))+(' '))+\" \"+\" \")+\" \"+\" \")+(\" \")+\" \")+\" \"+\" \")+(' '))+(\" \"+D(e.catAxisLabelColor||m)+\"\"))+(' '))+\" \"+\" \")+(' ')+\" \")+\" \"+(' '))+(\" ')+' ')+' '+' ',e.catAxisLabelFrequency&&(n+=' '),!e.catLabelFormatCode&&e._type!==d.SCATTER&&e._type!==d.BUBBLE||(e.catLabelFormatCode&&([\"catAxisBaseTimeUnit\",\"catAxisMajorTimeUnit\",\"catAxisMinorTimeUnit\"].forEach(function(t){!e[t]||\"string\"==typeof e[t]&&-1!==[\"days\",\"months\",\"years\"].indexOf(e[t].toLowerCase())||(console.warn(\"`\"+t+\"` must be one of: 'days','months','years' !\"),e[t]=null)}),e.catAxisBaseTimeUnit&&(n+=''),e.catAxisMajorTimeUnit&&(n+=''),e.catAxisMinorTimeUnit&&(n+='')),e.catAxisMajorUnit&&(n+=''),e.catAxisMinorUnit&&(n+='')),e._type===d.SCATTER||e._type===d.BUBBLE?n+=\"\":n+=\"\",n}function Nt(t,e){var r=e===g?\"col\"===t.barDir?\"l\":\"b\":\"col\"!==t.barDir?\"r\":\"t\",n=\"\",a=\"r\"==r||\"t\"==r?\"max\":\"autoZero\",o=e===g?it:st,n=(n+=\"\")+(' ')+\" \";return t.valAxisLogScaleBase&&(n+=' ')),n+=' ',!t.valAxisMaxVal&&0!==t.valAxisMaxVal||(n+=''),!t.valAxisMinVal&&0!==t.valAxisMinVal||(n+=''),n=(n+=\" \")+(' ')+(' '),\"none\"!==t.valGridLine.style&&(n+=Mt(t.valGridLine)),t.showValAxisTitle&&(n+=Dt({color:t.valAxisTitleColor,fontFace:t.valAxisTitleFontFace,fontSize:t.valAxisTitleFontSize,titleRotate:t.valAxisTitleRotate,title:t.valAxisTitle||\"Axis Title\"})),n+=''),t._type===d.SCATTER?n+=' ':n=(n=(n+=' ')+' ')+' ',n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n+=\" \")+(' '))+(!1===t.valAxisLineShow?\"\":\"\"+D(t.valAxisLineColor||h.color)+\"\"))+(' '))+\" \"+\" \")+\" \"+\" \")+(\" \")+\" \")+\" \"+\" \")+(' '))+(\" \"+D(t.valAxisLabelColor||m)+\"\"))+(' ')+\" \")+\" \"+(' '))+\" \"+\" \")+(' ')+(' '))+(' '),t.valAxisMajorUnit&&(n+=' '),t.valAxisDisplayUnit&&(n+='').concat(t.valAxisDisplayUnitLabel?\"\":\"\",\"\")),n+=\"\"}function Dt(t){var e=\"left\"===t.titleAlign||\"right\"===t.titleAlign?''):\"\",r=t.titleRotate?''):\"\",n=t.fontSize?'sz=\"'+Math.round(100*t.fontSize)+'\"':\"\",a=!0===t.titleBold?1:0,o=t.titlePos&&t.titlePos.x&&t.titlePos.y?''):\"\";return\"\\n\\t \\n\\t \\n\\t \".concat(r,\"\\n\\t \\n\\t \\n\\t \").concat(e,\"\\n\\t \\n\\t ').concat(D(t.color||m),'\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \\n\\t ').concat(D(t.color||m),'\\n\\t \\n\\t \\n\\t ').concat(I(t.title)||\"\",\"\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \").concat(o,'\\n\\t \\n\\t')}function S(t){var e=\"\";return e=t<=26?y[t]:(e+=y[Math.floor(t/y.length)-1])+y[t%y.length]}function L(t,e){if(!t)return\"\";if(\"object\"!=typeof t)return console.warn(\"`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`\"),\"\";var r=\"\",e=_(e,t),t=e.type||\"outer\",n=B(e.blur),a=B(e.offset),o=Math.round(6e4*e.angle),i=e.color,s=Math.round(1e5*e.opacity);return(r+=\"')+('')+('')+(\"\")+\"\"}function Mt(t){var e=\"\";return(e+=\" \")+(' ')+(' ')+(' ')+\" \"+\" \"+\"\"}function zt(t){var o=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null,i=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"https\"):null,e=[],s=t._relsMedia.filter(function(t){return\"online\"!==t.type&&!t.data&&(!t.path||t.path&&-1===t.path.indexOf(\"preencoded\"))}),r=[];return s.forEach(function(t){-1===r.indexOf(t.path)?(t.isDuplicate=!1,r.push(t.path)):t.isDuplicate=!0}),s.filter(function(t){return!t.isDuplicate}).forEach(function(a){e.push(new Promise(function(r,n){var e;if(o&&0!==a.path.indexOf(\"http\"))try{var t=o.readFileSync(a.path);a.data=Buffer.from(t).toString(\"base64\"),s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),r(\"done\")}catch(t){a.data=A,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),n('ERROR: Unable to read media: \"'+a.path+'\"\\n'+t.toString())}else o&&i&&0===a.path.indexOf(\"http\")?i.get(a.path,function(t){var e=\"\";t.setEncoding(\"binary\"),t.on(\"data\",function(t){return e+=t}),t.on(\"end\",function(){a.data=Buffer.from(e,\"binary\").toString(\"base64\"),s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),r(\"done\")}),t.on(\"error\",function(t){a.data=A,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),n(\"ERROR! Unable to load image (https.get): \".concat(a.path))})}):((e=new XMLHttpRequest).onload=function(){var t=new FileReader;t.onloadend=function(){a.data=t.result,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),a.isSvgPng?Ut(a).then(function(){r(\"done\")}).catch(function(t){n(t)}):r(\"done\")},t.readAsDataURL(e.response)},e.onerror=function(t){a.data=A,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),n(\"ERROR! Unable to load image (xhr.onerror): \".concat(a.path))},e.open(\"GET\",a.path),e.responseType=\"blob\",e.send())}))}),t._relsMedia.filter(function(t){return t.isSvgPng&&t.data}).forEach(function(t){o?(t.data=A,e.push(Promise.resolve().then(function(){return\"done\"}))):e.push(Ut(t))}),e}function Ut(a){return new Promise(function(r,e){var n=new Image;n.onload=function(){n.width+n.height===0&&n.onerror(\"h/w=0\");var t=document.createElement(\"CANVAS\"),e=t.getContext(\"2d\");t.width=n.width,t.height=n.height,e.drawImage(n,0,0);try{a.data=t.toDataURL(a.type),r(\"done\")}catch(t){n.onerror(t)}},n.onerror=function(t){a.data=A,e(\"ERROR! Unable to load image (image.onerror): \".concat(a.path))},n.src=\"string\"==typeof a.data?a.data:A})}function r(){var c=this;this._version=\"3.11.0-beta-20220501-1310\",this._alignH=G,this._alignV=W,this._chartType=U,this._outputType=T,this._schemeColor=a,this._shapeType=j,this._charts=d,this._colors=H,this._shapes=l,this.addNewSlide=function(t){var e=0'+u,r+='',a.forEach(function(t){(t._relsMedia||[]).forEach(function(t){\"image\"!==t.type&&\"online\"!==t.type&&\"chart\"!==t.type&&\"m4v\"!==t.extn&&-1===r.indexOf(t.type)&&(r+='')})}),r+='',a.forEach(function(t,e){r=r+'',t._relsChart.forEach(function(t){r+=' '})}),r+='',e.forEach(function(t,e){r+='',(t._relsChart||[]).forEach(function(t){r+=' '})}),a.forEach(function(t,e){r+=' '}),t._relsChart.forEach(function(t){r+=' '}),t._relsMedia.forEach(function(t){\"image\"!==t.type&&\"online\"!==t.type&&\"chart\"!==t.type&&\"m4v\"!==t.extn&&-1===r.indexOf(t.type)&&(r+=' ')}),r+=' ')),l.file(\"_rels/.rels\",''.concat(u,'\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t')),l.file(\"docProps/app.xml\",(e=c.slides,a=c.company,''.concat(u,'\\n\\t0\\n\\t0\\n\\tMicrosoft Office PowerPoint\\n\\tOn-screen Show (16:9)\\n\\t0\\n\\t').concat(e.length,\"\\n\\t\").concat(e.length,'\\n\\t0\\n\\t0\\n\\tfalse\\n\\t\\n\\t\\t\\n\\t\\t\\tFonts Used\\n\\t\\t\\t2\\n\\t\\t\\tTheme\\n\\t\\t\\t1\\n\\t\\t\\tSlide Titles\\n\\t\\t\\t').concat(e.length,'\\n\\t\\t\\n\\t\\n\\t\\n\\t\\t\\n\\t\\t\\tArial\\n\\t\\t\\tCalibri\\n\\t\\t\\tOffice Theme\\n\\t\\t\\t').concat(e.map(function(t,e){return\"Slide \"+(e+1)+\"\\n\"}).join(\"\"),\"\\n\\t\\t\\n\\t\\n\\t\").concat(a,\"\\n\\tfalse\\n\\tfalse\\n\\tfalse\\n\\t16.0000\\n\\t\"))),l.file(\"docProps/core.xml\",(t=c.title,e=c.subject,a=c.author,o=c.revision,'\\n\\t\\n\\t\\t'.concat(I(t),\"\\n\\t\\t\").concat(I(e),\"\\n\\t\\t\").concat(I(a),\"\\n\\t\\t\").concat(I(a),\"\\n\\t\\t\").concat(o,'\\n\\t\\t').concat((new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\"),'\\n\\t\\t').concat((new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\"),\"\\n\\t\"))),l.file(\"ppt/_rels/presentation.xml.rels\",function(t){for(var e=1,r=(r=''+u)+''+'',n=1;n<=t.length;n++)r+='';return r+=''}(c.slides)),l.file(\"ppt/theme/theme1.xml\",''.concat(u,'')),l.file(\"ppt/presentation.xml\",function(t){var e=(e=''.concat(u)+''))+''+\"\";t.slides.forEach(function(t){return e+='')}),e=(e=(e=(e+=\"\")+''))+''))+'')+\"\";for(var r=1;r<10;r++)e+=\"')+''+\"\");return e+=\"\",t.sections&&0',t.sections.forEach(function(t){e+=''),t._slides.forEach(function(t){return e+='')}),e+=\"\"}),e+=''),e+=\"\"}(c)),l.file(\"ppt/presProps.xml\",''.concat(u,'')),l.file(\"ppt/tableStyles.xml\",''.concat(u,'')),l.file(\"ppt/viewProps.xml\",''.concat(u,'')),c.slideLayouts.forEach(function(t,e){l.file(\"ppt/slideLayouts/slideLayout\"+(e+1)+\".xml\",'\\n\\t\\t\\n\\t\\t'.concat(yt(t),\"\\n\\t\\t\")),l.file(\"ppt/slideLayouts/_rels/slideLayout\"+(e+1)+\".xml.rels\",(t=e+1,At(c.slideLayouts[t-1],[{target:\"../slideMasters/slideMaster1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster\"}])))}),c.slides.forEach(function(t,e){var r;l.file(\"ppt/slides/slide\"+(e+1)+\".xml\",(r=t,''.concat(u)+'\")+\"\".concat(yt(r))+\"\")),l.file(\"ppt/slides/_rels/slide\"+(e+1)+\".xml.rels\",Ct(c.slides,c.slideLayouts,e+1)),l.file(\"ppt/notesSlides/notesSlide\"+(e+1)+\".xml\",_t(t)),l.file(\"ppt/notesSlides/_rels/notesSlide\"+(e+1)+\".xml.rels\",'\\n\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t'))}),l.file(\"ppt/slideMasters/slideMaster1.xml\",(n=c.masterSlide,t=(t=c.slideLayouts).map(function(t,e){return''}),e=''+u,(e+='')+yt(n)+''+t.join(\"\")+' ')),l.file(\"ppt/slideMasters/_rels/slideMaster1.xml.rels\",(a=c.masterSlide,(o=(o=c.slideLayouts).map(function(t,e){return{target:\"../slideLayouts/slideLayout\".concat(e+1,\".xml\"),type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout\"}})).push({target:\"../theme/theme1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\"}),At(a,o))),l.file(\"ppt/notesMasters/notesMaster1.xml\",''.concat(u,'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›')),l.file(\"ppt/notesMasters/_rels/notesMaster1.xml.rels\",''.concat(u,'\\n\\t\\t\\n\\t\\t')),c.slideLayouts.forEach(function(t){c.createChartMediaRels(t,l,s)}),c.slides.forEach(function(t){c.createChartMediaRels(t,l,s)}),c.createChartMediaRels(c.masterSlide,l,s),Promise.all(s).then(function(){return\"STREAM\"===i.outputType?l.generateAsync({type:\"nodebuffer\",compression:i.compression?\"DEFLATE\":\"STORE\"}):i.outputType?l.generateAsync({type:i.outputType}):l.generateAsync({type:\"blob\",compression:i.compression?\"DEFLATE\":\"STORE\"})})})},this.LAYOUTS={LAYOUT_4x3:{name:\"screen4x3\",width:9144e3,height:6858e3},LAYOUT_16x9:{name:\"screen16x9\",width:9144e3,height:5143500},LAYOUT_16x10:{name:\"screen16x10\",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:\"custom\",width:12192e3,height:6858e3}},this._author=\"PptxGenJS\",this._company=\"PptxGenJS\",this._revision=\"1\",this._subject=\"PptxGenJS Presentation\",this._title=\"PptxGenJS Presentation\",this._presLayout={name:this.LAYOUTS[f].name,_sizeW:this.LAYOUTS[f].width,_sizeH:this.LAYOUTS[f].height,width:this.LAYOUTS[f].width,height:this.LAYOUTS[f].height},this._rtlMode=!1,this._slideLayouts=[{_margin:w,_name:et,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(r.prototype,\"layout\",{get:function(){return this._layout},set:function(t){var e=this.LAYOUTS[t];if(!e)throw new Error(\"UNKNOWN-LAYOUT\");this._layout=t,this._presLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"version\",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"author\",{get:function(){return this._author},set:function(t){this._author=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"company\",{get:function(){return this._company},set:function(t){this._company=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"revision\",{get:function(){return this._revision},set:function(t){this._revision=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"subject\",{get:function(){return this._subject},set:function(t){this._subject=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"title\",{get:function(){return this._title},set:function(t){this._title=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"rtlMode\",{get:function(){return this._rtlMode},set:function(t){this._rtlMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"masterSlide\",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"slides\",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"sections\",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"slideLayouts\",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"AlignH\",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"AlignV\",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"ChartType\",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"OutputType\",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"presLayout\",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"SchemeColor\",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"ShapeType\",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"charts\",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"colors\",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"shapes\",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),r.prototype.stream=function(t){t=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression;return this.exportPresentation({compression:t,outputType:\"STREAM\"})},r.prototype.write=function(t){var e=\"object\"==typeof t&&t.hasOwnProperty(\"outputType\")?t.outputType:t||null,t=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression;return this.exportPresentation({compression:t,outputType:e})},r.prototype.writeFile=function(t){var e=this,n=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null,r=(\"string\"==typeof t&&console.log(\"Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)\"),\"object\"==typeof t&&t.hasOwnProperty(\"fileName\")?t.fileName:\"string\"==typeof t?t:\"\"),t=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression,a=r?r.toString().toLowerCase().endsWith(\".pptx\")?r:r+\".pptx\":\"Presentation.pptx\";return this.exportPresentation({compression:t,outputType:n?\"nodebuffer\":null}).then(function(t){return n?new Promise(function(e,r){n.writeFile(a,t,function(t){t?r(t):e(a)})}):e.writeFileToBrowser(a,t)})},r.prototype.addSection=function(t){t?t.title||console.warn(\"addSection requires a title\"):console.warn(\"addSection requires an argument\");var e={_type:\"user\",_slides:[],title:t.title};t.order?this.sections.splice(t.order,0,e):this._sections.push(e)},r.prototype.addSlide=function(e){var r=\"string\"==typeof e?e:e&&e.masterName?e.masterName:\"\",t={_name:this.LAYOUTS[f].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1},n=(!r||(n=this.slideLayouts.filter(function(t){return t._name===r})[0])&&(t=n),new Ft({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:t}));return this._slides.push(n),e&&e.sectionTitle?(t=this.sections.filter(function(t){return t.title===e.sectionTitle})[0])?t._slides.push(n):console.warn('addSlide: unable to find section with title: \"'.concat(e.sectionTitle,'\"')):!(this.sections&&0 opts.y = \").concat(i.y)),r.addTable(t.rows,{x:i.x||f[3],y:i.y,w:Number(a)/R,colW:p,autoPage:!1}),i.addImage&&(i.addImage.options=i.addImage.options||{},i.addImage.image&&(i.addImage.image.path||i.addImage.image.data)?r.addImage({path:i.addImage.image.path,data:i.addImage.image.data,x:i.addImage.options.x,y:i.addImage.options.y,w:i.addImage.options.w,h:i.addImage.options.h}):console.warn(\"Warning: tableToSlides.addImage requires either `path` or `data`\")),i.addShape&&r.addShape(i.addShape.shape,i.addShape.options||{}),i.addTable&&r.addTable(i.addTable.rows,i.addTable.options||{}),i.addText&&r.addText(i.addText.text,i.addText.options||{})})},r}();"],"file":"pptxgen.bundle.js"} \ No newline at end of file diff --git a/dist/pptxgen.bundle.js.map b/dist/pptxgen.bundle.js.map index 2e8da7e4f..671baec4c 100644 --- a/dist/pptxgen.bundle.js.map +++ b/dist/pptxgen.bundle.js.map @@ -1 +1 @@ -{"version":3,"names":[],"mappings":"","sources":["pptxgen.bundle.js"],"sourcesContent":["/* PptxGenJS 3.11.0-beta @ 2022-05-01T21:07:11.428Z */\n!function(t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).JSZip=t()}(function(){return function n(a,o,i){function s(e,t){if(!o[e]){if(!a[e]){var r=\"function\"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);t=new Error(\"Cannot find module '\"+e+\"'\");throw t.code=\"MODULE_NOT_FOUND\",t}r=o[e]={exports:{}};a[e][0].call(r.exports,function(t){return s(a[e][1][t]||t)},r,r.exports,n,a,o,i)}return o[e].exports}for(var l=\"function\"==typeof require&&require,t=0;t>4,o=1>6:64,i=2>2)+f.charAt(a)+f.charAt(o)+f.charAt(i));return s.join(\"\")},r.decode=function(t){var e,r,n,a,o,i=0,s=0;if(\"data:\"===t.substr(0,\"data:\".length))throw new Error(\"Invalid base64 input, it looks like a data url.\");var l,c=3*(t=t.replace(/[^A-Za-z0-9\\+\\/\\=]/g,\"\")).length/4;if(t.charAt(t.length-1)===f.charAt(64)&&c--,t.charAt(t.length-2)===f.charAt(64)&&c--,c%1!=0)throw new Error(\"Invalid base64 input, bad content length.\");for(l=new(p.uint8array?Uint8Array:Array)(0|c);i>4,r=(15&a)<<4|(a=f.indexOf(t.charAt(i++)))>>2,n=(3&a)<<6|(o=f.indexOf(t.charAt(i++))),l[s++]=e,64!==a&&(l[s++]=r),64!==o&&(l[s++]=n);return l}},{\"./support\":30,\"./utils\":32}],2:[function(t,e,r){\"use strict\";var n=t(\"./external\"),a=t(\"./stream/DataWorker\"),o=t(\"./stream/Crc32Probe\"),i=t(\"./stream/DataLengthProbe\");function s(t,e,r,n,a){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=a}s.prototype={getContentWorker:function(){var t=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i(\"data_length\")),e=this;return t.on(\"end\",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error(\"Bug : uncompressed data size mismatch\")}),t},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo(\"compressedSize\",this.compressedSize).withStreamInfo(\"uncompressedSize\",this.uncompressedSize).withStreamInfo(\"crc32\",this.crc32).withStreamInfo(\"compression\",this.compression)}},s.createWorkerFrom=function(t,e,r){return t.pipe(new o).pipe(new i(\"uncompressedSize\")).pipe(e.compressWorker(r)).pipe(new i(\"compressedSize\")).withStreamInfo(\"compression\",e)},e.exports=s},{\"./external\":6,\"./stream/Crc32Probe\":25,\"./stream/DataLengthProbe\":26,\"./stream/DataWorker\":27}],3:[function(t,e,r){\"use strict\";var n=t(\"./stream/GenericWorker\");r.STORE={magic:\"\\0\\0\",compressWorker:function(t){return new n(\"STORE compression\")},uncompressWorker:function(){return new n(\"STORE decompression\")}},r.DEFLATE=t(\"./flate\")},{\"./flate\":7,\"./stream/GenericWorker\":28}],4:[function(t,e,r){\"use strict\";var n=t(\"./utils\"),i=function(){for(var t=[],e=0;e<256;e++){for(var r=e,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;t[e]=r}return t}();e.exports=function(t,e){return void 0!==t&&t.length?(\"string\"!==n.getTypeOf(t)?function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e[o])];return-1^t}:function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e.charCodeAt(o))];return-1^t})(0|e,t,t.length):0}},{\"./utils\":32}],5:[function(t,e,r){\"use strict\";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){\"use strict\";t=\"undefined\"!=typeof Promise?Promise:t(\"lie\");e.exports={Promise:t}},{lie:37}],7:[function(t,e,r){\"use strict\";var n=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Uint32Array,a=t(\"pako\"),o=t(\"./utils\"),i=t(\"./stream/GenericWorker\"),s=n?\"uint8array\":\"array\";function l(t,e){i.call(this,\"FlateWorker/\"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic=\"\\b\\0\",o.inherits(l,i),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){i.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(t){return new l(\"Deflate\",t)},r.uncompressWorker=function(){return new l(\"Inflate\",{})}},{\"./stream/GenericWorker\":28,\"./utils\":32,pako:38}],8:[function(t,e,r){\"use strict\";function A(t,e){for(var r=\"\",n=0;n>>=8;return r}function n(t,e,r,n,a,o){var i=t.file,s=t.compression,l=o!==b.utf8encode,c=v.transformTo(\"string\",o(i.name)),p=v.transformTo(\"string\",b.utf8encode(i.name)),u=i.comment,o=v.transformTo(\"string\",o(u)),f=v.transformTo(\"string\",b.utf8encode(u)),d=p.length!==i.name.length,u=f.length!==u.length,h=\"\",m=i.dir,g=i.date,y={crc32:0,compressedSize:0,uncompressedSize:0},r=(e&&!r||(y.crc32=t.crc32,y.compressedSize=t.compressedSize,y.uncompressedSize=t.uncompressedSize),0);e&&(r|=8),l||!d&&!u||(r|=2048);t=0,e=0,m&&(t|=16),\"UNIX\"===a?(e=798,t|=(65535&(l=(l=i.unixPermissions)?l:m?16893:33204))<<16):(e=20,t|=63&(i.dosPermissions||0)),a=g.getUTCHours(),a=(a=((a<<=6)|g.getUTCMinutes())<<5)|g.getUTCSeconds()/2,m=g.getUTCFullYear()-1980,m=(m=((m<<=4)|g.getUTCMonth()+1)<<5)|g.getUTCDate(),d&&(h+=\"up\"+A((l=A(1,1)+A(x(c),4)+p).length,2)+l),u&&(h+=\"uc\"+A((i=A(1,1)+A(x(o),4)+f).length,2)+i),g=\"\",g=(g=(g=(g=(g=(g=(g=(g=(g=(g+=\"\\n\\0\")+A(r,2))+s.magic)+A(a,2))+A(m,2))+A(y.crc32,4))+A(y.compressedSize,4))+A(y.uncompressedSize,4))+A(c.length,2))+A(h.length,2);return{fileRecord:w.LOCAL_FILE_HEADER+g+c+h,dirRecord:w.CENTRAL_FILE_HEADER+A(e,2)+g+A(o.length,2)+\"\\0\\0\\0\\0\"+A(t,4)+A(n,4)+c+h+o}}var v=t(\"../utils\"),a=t(\"../stream/GenericWorker\"),b=t(\"../utf8\"),x=t(\"../crc32\"),w=t(\"../signature\");function o(t,e,r,n){a.call(this,\"ZipFileWorker\"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}v.inherits(o,a),o.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},o.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;e?(t=n(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:t.fileRecord,meta:{percent:0}})):this.accumulate=!0},o.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=n(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:w.DATA_DESCRIPTOR+A((e=t).crc32,4)+A(e.compressedSize,4)+A(e.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},o.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return n.transformTo(\"string\",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=a},{\"../utils\":32}],19:[function(t,e,r){\"use strict\";var n=t(\"./Uint8ArrayReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./Uint8ArrayReader\":21}],20:[function(t,e,r){\"use strict\";var n=t(\"./DataReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},a.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},a.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./DataReader\":18}],21:[function(t,e,r){\"use strict\";var n=t(\"./ArrayReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./ArrayReader\":17}],22:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"../support\"),o=t(\"./ArrayReader\"),i=t(\"./StringReader\"),s=t(\"./NodeBufferReader\"),l=t(\"./Uint8ArrayReader\");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),\"string\"!==e||a.uint8array?\"nodebuffer\"===e?new s(t):a.uint8array?new l(n.transformTo(\"uint8array\",t)):new o(n.transformTo(\"array\",t)):new i(t)}},{\"../support\":30,\"../utils\":32,\"./ArrayReader\":17,\"./NodeBufferReader\":19,\"./StringReader\":20,\"./Uint8ArrayReader\":21}],23:[function(t,e,r){\"use strict\";r.LOCAL_FILE_HEADER=\"PK\u0003\u0004\",r.CENTRAL_FILE_HEADER=\"PK\u0001\u0002\",r.CENTRAL_DIRECTORY_END=\"PK\u0005\u0006\",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR=\"PK\u0006\u0007\",r.ZIP64_CENTRAL_DIRECTORY_END=\"PK\u0006\u0006\",r.DATA_DESCRIPTOR=\"PK\u0007\\b\"},{}],24:[function(t,e,r){\"use strict\";var n=t(\"./GenericWorker\"),a=t(\"../utils\");function o(t){n.call(this,\"ConvertWorker to \"+t),this.destType=t}a.inherits(o,n),o.prototype.processChunk=function(t){this.push({data:a.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],25:[function(t,e,r){\"use strict\";var n=t(\"./GenericWorker\"),a=t(\"../crc32\");function o(){n.call(this,\"Crc32Probe\"),this.withStreamInfo(\"crc32\",0)}t(\"../utils\").inherits(o,n),o.prototype.processChunk=function(t){this.streamInfo.crc32=a(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{\"../crc32\":4,\"../utils\":32,\"./GenericWorker\":28}],26:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"./GenericWorker\");function o(t){a.call(this,\"DataLengthProbe for \"+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(o,a),o.prototype.processChunk=function(t){var e;t&&(e=this.streamInfo[this.propName]||0,this.streamInfo[this.propName]=e+t.data.length),a.prototype.processChunk.call(this,t)},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],27:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"./GenericWorker\");function o(t){a.call(this,\"DataWorker\");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=\"\",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}n.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case\"string\":t=this.data.substring(this.index,e);break;case\"uint8array\":t=this.data.subarray(this.index,e);break;case\"array\":case\"nodebuffer\":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],28:[function(t,e,r){\"use strict\";function n(t){this.name=t||\"default\",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit(\"data\",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(\"end\"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit(\"error\",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit(\"error\",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r \"+t:t}},e.exports=n},{}],29:[function(t,e,r){\"use strict\";var c=t(\"../utils\"),a=t(\"./ConvertWorker\"),o=t(\"./GenericWorker\"),p=t(\"../base64\"),n=t(\"../support\"),i=t(\"../external\"),s=null;if(n.nodestream)try{s=t(\"../nodejs/NodejsStreamOutputAdapter\")}catch(t){}function l(t,e,r){var n=e;switch(e){case\"blob\":case\"arraybuffer\":n=\"uint8array\";break;case\"base64\":n=\"string\"}try{this._internalType=n,this._outputType=e,this._mimeType=r,c.checkSupport(n),this._worker=t.pipe(new a(n)),t.lock()}catch(t){this._worker=new o(\"error\"),this._worker.error(t)}}l.prototype={accumulate:function(t){return s=this,l=t,new i.Promise(function(e,r){var n=[],a=s._internalType,o=s._outputType,i=s._mimeType;s.on(\"data\",function(t,e){n.push(t),l&&l(e)}).on(\"error\",function(t){n=[],r(t)}).on(\"end\",function(){try{var t=function(t,e,r){switch(t){case\"blob\":return c.newBlob(c.transformTo(\"arraybuffer\",e),r);case\"base64\":return p.encode(e);default:return c.transformTo(t,e)}}(o,function(t,e){for(var r=0,n=null,a=0,o=0;o>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},a.utf8decode=function(t){if(c.nodebuffer)return l.transformTo(\"nodebuffer\",t).toString(\"utf-8\");for(var e,r,n,a=t=l.transformTo(c.uint8array?\"uint8array\":\"array\",t),o=a.length,i=new Array(2*o),s=e=0;s>10&1023,i[e++]=56320|1023&r)}return i.length!==e&&(i.subarray?i=i.subarray(0,e):i.length=e),l.applyFromCharCode(i)},l.inherits(o,r),o.prototype.processChunk=function(t){var e=l.transformTo(c.uint8array?\"uint8array\":\"array\",t.data),r=(this.leftOver&&this.leftOver.length&&(c.uint8array?(r=e,(e=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),e.set(r,this.leftOver.length)):e=this.leftOver.concat(e),this.leftOver=null),function(t,e){for(var r=(e=(e=e||t.length)>t.length?t.length:e)-1;0<=r&&128==(192&t[r]);)r--;return!(r<0)&&0!==r&&r+u[t[r]]>e?r:e}(e)),n=e;r!==e.length&&(c.uint8array?(n=e.subarray(0,r),this.leftOver=e.subarray(r,e.length)):(n=e.slice(0,r),this.leftOver=e.slice(r,e.length))),this.push({data:a.utf8decode(n),meta:t.meta})},o.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=o,l.inherits(i,r),i.prototype.processChunk=function(t){this.push({data:a.utf8encode(t.data),meta:t.meta})},a.Utf8EncodeWorker=i},{\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./support\":30,\"./utils\":32}],32:[function(t,e,i){\"use strict\";var s=t(\"./support\"),l=t(\"./base64\"),r=t(\"./nodejsUtils\"),n=t(\"set-immediate-shim\"),c=t(\"./external\");function a(t){return t}function p(t,e){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||\"/\"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){var e;this.extraFields[1]&&(e=n(this.extraFields[1].value),this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4)))},readExtraFields:function(t){var e,r,n,a=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},r.buf2binstring=function(t){return p(t,t.length)},r.binstring2buf=function(t){for(var e=new l.Buf8(t.length),r=0,n=e.length;r>10&1023,i[r++]=56320|1023&n)}return p(i,r)},r.utf8border=function(t,e){for(var r=(e=(e=e||t.length)>t.length?t.length:e)-1;0<=r&&128==(192&t[r]);)r--;return!(r<0)&&0!==r&&r+c[t[r]]>e?r:e}},{\"./common\":41}],43:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){for(var a=65535&t|0,o=t>>>16&65535|0,i=0;0!==r;){for(r-=i=2e3>>1:r>>>1;t[e]=r}return t}();e.exports=function(t,e,r,n){var a=s,o=n+r;t^=-1;for(var i=n;i>>8^a[255&(t^e[i])];return-1^t}},{}],46:[function(t,N,e){\"use strict\";var s,u=t(\"../utils/common\"),l=t(\"./trees\"),f=t(\"./adler32\"),d=t(\"./crc32\"),r=t(\"./messages\"),c=0,p=0,h=-2,n=2,m=8,a=286,o=30,i=19,D=2*a+1,M=15,g=3,y=258,A=y+g+1,v=42,b=113;function x(t,e){return t.msg=r[e],e}function w(t){return(t<<1)-(4t.avail_out?t.avail_out:r)&&(u.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function P(t,e){l._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,C(t.strm)}function S(t,e){t.pending_buf[t.pending++]=e}function L(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function E(t,e){var r,n,a=t.max_chain_length,o=t.strstart,i=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-A?t.strstart-(t.w_size-A):0,c=t.window,p=t.w_mask,u=t.prev,f=t.strstart+y,d=c[o+i-1],h=c[o+i];t.prev_length>=t.good_match&&(a>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+i]===h&&c[r+i-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){for(o+=2,r++;c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&ol&&0!=--a);return i<=t.lookahead?i:t.lookahead}function T(t){var e,r,n,a,o,i,s,l,c,p=t.w_size;do{if(l=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-A)){for(u.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;n=t.head[--e],t.head[e]=p<=n?n-p:0,--r;);for(e=r=p;n=t.prev[--e],t.prev[e]=p<=n?n-p:0,--r;);l+=p}if(0===t.strm.avail_in)break;if(o=t.strm,i=t.window,s=t.strstart+t.lookahead,c=void 0,r=0===(c=(l=l)<(c=o.avail_in)?l:c)?0:(o.avail_in-=c,u.arraySet(i,o.input,o.next_in,c,s),1===o.state.wrap?o.adler=f(o.adler,i,c,s):2===o.state.wrap&&(o.adler=d(o.adler,i,c,s)),o.next_in+=c,o.total_in+=c,c),t.lookahead+=r,t.lookahead+t.insert>=g)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<=g&&(t.ins_h=(t.ins_h<=g)if(n=l._tr_tally(t,t.strstart-t.match_start,t.match_length-g),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=g){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=g&&(t.ins_h=(t.ins_h<=g&&t.match_length<=t.prev_length){for(a=t.strstart+t.lookahead-g,n=l._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-g),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=a&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(T(t),0===t.lookahead&&e===c)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,P(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-A&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(P(t,!1),t.strm.avail_out),1)}),new F(4,4,8,4,k),new F(4,5,16,8,k),new F(4,6,32,32,k),new F(4,4,16,16,R),new F(8,16,32,32,R),new F(8,16,128,128,R),new F(8,32,128,256,R),new F(32,128,258,1024,R),new F(32,258,258,4096,R)],e.deflateInit=function(t,e){return B(t,e,m,15,8,0)},e.deflateInit2=B,e.deflateReset=O,e.deflateResetKeep=I,e.deflateSetHeader=function(t,e){return!t||!t.state||2!==t.state.wrap?h:(t.state.gzhead=e,p)},e.deflate=function(t,e){var r,n,a,o;if(!t||!t.state||5>8&255),S(n,n.gzhead.time>>16&255),S(n,n.gzhead.time>>24&255),S(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),S(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(S(n,255&n.gzhead.extra.length),S(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=d(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(S(n,0),S(n,0),S(n,0),S(n,0),S(n,0),S(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),S(n,3),n.status=b)):(i=m+(n.w_bits-8<<4)<<8,i|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(i|=32),i+=31-i%31,n.status=b,L(n,i),0!==n.strstart&&(L(n,t.adler>>>16),L(n,65535&t.adler)),t.adler=1)),69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),C(t),a=n.pending,n.pending!==n.pending_buf_size));)S(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),C(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}}while(o=n.gzindexa&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),C(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}}while(o=n.gzindexa&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&C(t),n.pending+2<=n.pending_buf_size&&(S(n,255&t.adler),S(n,t.adler>>8&255),t.adler=0,n.status=b)):n.status=b),0!==n.pending){if(C(t),0===t.avail_out)return n.last_flush=-1,p}else if(0===t.avail_in&&w(e)<=w(r)&&4!==e)return x(t,-5);if(666===n.status&&0!==t.avail_in)return x(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==c&&666!==n.status){var i=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(T(t),0===t.lookahead)){if(e===c)return 1;break}if(t.match_length=0,r=l._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(P(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,a,o,i=t.window;;){if(t.lookahead<=y){if(T(t),t.lookahead<=y&&e===c)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=g&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=g?(r=l._tr_tally(t,1,t.match_length-g),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=l._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(P(t,!1),0===t.strm.avail_out)?1:2}(n,e):s[n.level].func(n,e);if(3!==i&&4!==i||(n.status=666),1===i||3===i)return 0===t.avail_out&&(n.last_flush=-1),p;if(2===i&&(1===e?l._tr_align(n):5!==e&&(l._tr_stored_block(n,0,0,!1),3===e&&(_(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),C(t),0===t.avail_out))return n.last_flush=-1,p}return 4!==e?p:n.wrap<=0?1:(2===n.wrap?(S(n,255&t.adler),S(n,t.adler>>8&255),S(n,t.adler>>16&255),S(n,t.adler>>24&255),S(n,255&t.total_in),S(n,t.total_in>>8&255),S(n,t.total_in>>16&255),S(n,t.total_in>>24&255)):(L(n,t.adler>>>16),L(n,65535&t.adler)),C(t),0=r.w_size&&(0===o&&(_(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new u.Buf8(r.w_size),u.arraySet(l,e,c-r.w_size,r.w_size,0),e=l,c=r.w_size),l=t.avail_in,i=t.next_in,s=t.input,t.avail_in=c,t.next_in=0,t.input=e,T(r);r.lookahead>=g;){for(n=r.strstart,a=r.lookahead-(g-1);r.ins_h=(r.ins_h<>>=n=r>>>24,w-=n,0==(n=r>>>16&255))d[f++]=65535&r;else{if(!(16&n)){if(0==(64&n)){r=_[(65535&r)+(x&(1<>>=n,w-=n),w<15&&(x+=p[c++]<>>=n=r>>>24,w-=n,!(16&(n=r>>>16&255))){if(0==(64&n)){r=C[(65535&r)+(x&(1<>>=n,w-=n,(n=f-h)>3,x&=(1<<(w-=a<<3))-1,t.next_in=c,t.next_out=f,t.avail_in=c>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function o(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new R.Buf16(320),this.work=new R.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function i(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=M,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new R.Buf32(n),e.distcode=e.distdyn=new R.Buf32(a),e.sane=1,e.back=-1,N):D}function s(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,i(t)):D}function l(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=t.wsize?(R.arraySet(t.window,e,r-t.wsize,t.wsize,0),t.wnext=0,t.whave=t.wsize):(n<(a=t.wsize-t.wnext)&&(a=n),R.arraySet(t.window,e,r-n,a,t.wnext),(n-=a)?(R.arraySet(t.window,e,r-n,n,0),t.wnext=n,t.whave=t.wsize):(t.wnext+=a,t.wnext===t.wsize&&(t.wnext=0),t.whave>>8&255,r.check=I(r.check,L,2,0),p=c=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg=\"incorrect header check\",r.mode=30;break}if(8!=(15&c)){t.msg=\"unknown compression method\",r.mode=30;break}if(p-=4,w=8+(15&(c>>>=4)),0===r.wbits)r.wbits=w;else if(w>r.wbits){t.msg=\"invalid window size\",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=I(r.check,L,2,0)),p=c=0,r.mode=3;case 3:for(;p<32;){if(0===s)break t;s--,c+=n[o++]<>>8&255,L[2]=c>>>16&255,L[3]=c>>>24&255,r.check=I(r.check,L,4,0)),p=c=0,r.mode=4;case 4:for(;p<16;){if(0===s)break t;s--,c+=n[o++]<>8),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=I(r.check,L,2,0)),p=c=0,r.mode=5;case 5:if(1024&r.flags){for(;p<16;){if(0===s)break t;s--,c+=n[o++]<>>8&255,r.check=I(r.check,L,2,0)),p=c=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((d=s<(d=r.length)?s:d)&&(r.head&&(w=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),R.arraySet(r.head.extra,n,o,d,w)),512&r.flags&&(r.check=I(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;for(d=0;w=n[o+d++],r.head&&w&&r.length<65536&&(r.head.name+=String.fromCharCode(w)),w&&d>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;p<32;){if(0===s)break t;s--,c+=n[o++]<>>=7&p,p-=7&p,r.mode=27;break}for(;p<3;){if(0===s)break t;s--,c+=n[o++]<>>=1)){case 0:r.mode=14;break;case 1:T=k=void 0;var T,k=r;if(G){for(U=new R.Buf32(512),j=new R.Buf32(32),T=0;T<144;)k.lens[T++]=8;for(;T<256;)k.lens[T++]=9;for(;T<280;)k.lens[T++]=7;for(;T<288;)k.lens[T++]=8;for(B(1,k.lens,0,288,U,0,k.work,{bits:9}),T=0;T<32;)k.lens[T++]=5;B(2,k.lens,0,32,j,0,k.work,{bits:5}),G=!1}if(k.lencode=U,k.lenbits=9,k.distcode=j,k.distbits=5,r.mode=20,6!==e)break;c>>>=2,p-=2;break t;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=30}c>>>=2,p-=2;break;case 14:for(c>>>=7&p,p-=7&p;p<32;){if(0===s)break t;s--,c+=n[o++]<>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=30;break}if(r.length=65535&c,p=c=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(0===(d=l<(d=s>>=5,p-=5,r.ndist=1+(31&c),c>>>=5,p-=5,r.ncode=4+(15&c),c>>>=4,p-=4,286>>=3,p-=3}for(;r.have<19;)r.lens[E[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},_=B(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg=\"invalid code lengths set\",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,A=65535&S,!((g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>>=g,p-=g,r.lens[r.have++]=A;else{if(16===A){for(P=g+2;p>>=g,p-=g,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=30;break}w=r.lens[r.have-1],d=3+(3&c),c>>>=2,p-=2}else if(17===A){for(P=g+3;p>>=g)),c>>>=3,p=p-g-3}else{for(P=g+7;p>>=g)),c>>>=7,p=p-g-7}if(r.have+d>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=30;break}for(;d--;)r.lens[r.have++]=w}}if(30===r.mode)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=30;break}if(r.lenbits=9,C={bits:r.lenbits},_=B(1,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg=\"invalid literal/lengths set\",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},_=B(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,_){t.msg=\"invalid distances set\",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=s&&258<=l){t.next_out=i,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=p,O(t,f),i=t.next_out,a=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,p=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;y=(S=r.lencode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>v)])>>>16&255,A=65535&S,!(v+(g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>>=v,p-=v,r.back+=v}if(c>>>=g,p-=g,r.back+=g,r.length=A,0===y){r.mode=26;break}if(32&y){r.back=-1,r.mode=12;break}if(64&y){t.msg=\"invalid literal/length code\",r.mode=30;break}r.extra=15&y,r.mode=22;case 22:if(r.extra){for(P=r.extra;p>>=r.extra,p-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;y=(S=r.distcode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>v)])>>>16&255,A=65535&S,!(v+(g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>>=v,p-=v,r.back+=v}if(c>>>=g,p-=g,r.back+=g,64&y){t.msg=\"invalid distance code\",r.mode=30;break}r.offset=A,r.extra=15&y,r.mode=24;case 24:if(r.extra){for(P=r.extra;p>>=r.extra,p-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=30;break}r.mode=25;case 25:if(0===l)break t;if(r.offset>(d=f-l)){if((d=r.offset-d)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break}h=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=a,h=i-r.offset,d=r.length;for(l-=d=ld?(m=F[I+i[v]],E[T+i[v]]):(m=96,0),l=1<<(h=A-C),b=c=1<<_;a[f+(L>>C)+(c-=l)]=h<<24|m<<16|g|0,0!==c;);for(l=1<>=1;if(0!==l?L=(L&l-1)+l:L=0,v++,0==--k[A]){if(A===x)break;A=e[r+i[v]]}if(w>>7)]}function o(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function _(t,e,r){t.bi_valid>n-r?(t.bi_buf|=e<>n-t.bi_valid,t.bi_valid+=r-n):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function S(t,e,r){for(var n,a=new Array(16),o=0,i=1;i<=15;i++)a[i]=o=o+r[i-1]<<1;for(n=0;n<=e;n++){var s=t[2*n+1];0!==s&&(t[2*n]=P(a[s]++,s))}}function L(t){for(var e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function E(t){8>1;1<=r;r--)T(t,o,r);for(a=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],T(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*a]=o[2*r]+o[2*n],t.depth[a]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=a,t.heap[1]=a++,T(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1];for(var p,u,f,d,h,m=t,g=e.dyn_tree,y=e.max_code,A=e.stat_desc.static_tree,v=e.stat_desc.has_stree,b=e.stat_desc.extra_bits,x=e.stat_desc.extra_base,w=e.stat_desc.max_length,_=0,C=0;C<=15;C++)m.bl_count[C]=0;for(g[2*m.heap[m.heap_max]+1]=0,p=m.heap_max+1;p<573;p++)w<(C=g[2*g[2*(u=m.heap[p])+1]+1]+1)&&(C=w,_++),g[2*u+1]=C,y>=7;i<30;i++)for(v[i]=a<<7,e=0;e<1<>>=1)if(1&e&&0!==t.dyn_ltree[2*r])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(r=32;r<256;r++)if(0!==t.dyn_ltree[2*r])return 1;return 0}(t)),R(t,t.l_desc),R(t,t.d_desc),s=function(t){var e;for(F(t,t.dyn_ltree,t.l_desc.max_code),F(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*p[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=a&&(a=o)):a=o=r+5,r+4<=a&&-1!==e)B(t,e,r,n);else if(4===t.strategy||o===a)_(t,2+(n?1:0),3),k(t,u,f);else{_(t,4+(n?1:0),3);var l=t,c=(e=t.l_desc.max_code+1,r=t.d_desc.max_code+1,s+1);for(_(l,e-257,5),_(l,r-1,5),_(l,c-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(h[r]+256+1)]++,t.dyn_dtree[2*w(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){_(t,2,3),C(t,256,u),16===(t=t).bi_valid?(o(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{\"../utils/common\":41}],53:[function(t,e,r){\"use strict\";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){\"use strict\";e.exports=\"function\"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)}),function n(a,o,i){function s(e,t){if(!o[e]){if(!a[e]){var r=\"function\"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);t=new Error(\"Cannot find module '\"+e+\"'\");throw t.code=\"MODULE_NOT_FOUND\",t}r=o[e]={exports:{}};a[e][0].call(r.exports,function(t){return s(a[e][1][t]||t)},r,r.exports,n,a,o,i)}return o[e].exports}for(var l=\"function\"==typeof require&&require,t=0;ti;)o.call(t,n=a[i++])&&e.push(n);return e}},{104:104,107:107,108:108}],62:[function(t,e,r){function d(t,e,r){var n,a,o,i=t&d.F,s=t&d.G,l=t&d.P,c=t&d.B,p=s?h:t&d.S?h[e]||(h[e]={}):(h[e]||{})[v],u=s?m:m[e]||(m[e]={}),f=u[v]||(u[v]={});for(n in r=s?e:r)a=((o=!i&&p&&void 0!==p[n])?p:r)[n],o=c&&o?A(a,h):l&&\"function\"==typeof a?A(Function.call,a):a,p&&y(p,n,a,t&d.U),u[n]!=a&&g(u,n,o),l&&f[n]!=a&&(f[n]=a)}var h=t(70),m=t(52),g=t(72),y=t(118),A=t(54),v=\"prototype\";h.core=m,d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,e.exports=d},{118:118,52:52,54:54,70:70,72:72}],63:[function(t,e,r){var n=t(152)(\"match\");e.exports=function(e){var r=/./;try{\"/./\"[e](r)}catch(t){try{return r[n]=!1,!\"/./\"[e](r)}catch(t){}}return!0}},{152:152}],64:[function(t,e,r){arguments[4][23][0].apply(r,arguments)},{23:23}],65:[function(t,e,r){\"use strict\";t(248);var n,l=t(118),c=t(72),p=t(64),u=t(57),f=t(152),d=t(120),h=f(\"species\"),m=!p(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:\"7\"},t},\"7\"!==\"\".replace(t,\"$
\")}),g=(n=(t=/(?:)/).exec,t.exec=function(){return n.apply(this,arguments)},2===(t=\"ab\".split(t)).length&&\"a\"===t[0]&&\"b\"===t[1]);e.exports=function(r,t,e){var o,n,a=f(r),i=!p(function(){var t={};return t[a]=function(){return 7},7!=\"\"[r](t)}),s=i?!p(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},\"split\"===r&&(e.constructor={},e.constructor[h]=function(){return e}),e[a](\"\"),!t}):void 0;i&&s&&(\"replace\"!==r||m)&&(\"split\"!==r||g)||(o=/./[a],e=(s=e(u,a,\"\"[r],function(t,e,r,n,a){return e.exec===d?i&&!a?{done:!0,value:o.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}))[0],n=s[1],l(String.prototype,r,e),c(RegExp.prototype,a,2==t?function(t,e){return n.call(t,this,e)}:function(t){return n.call(t,this)}))}},{118:118,120:120,152:152,248:248,57:57,64:64,72:72}],66:[function(t,e,r){\"use strict\";var n=t(38);e.exports=function(){var t=n(this),e=\"\";return t.global&&(e+=\"g\"),t.ignoreCase&&(e+=\"i\"),t.multiline&&(e+=\"m\"),t.unicode&&(e+=\"u\"),t.sticky&&(e+=\"y\"),e}},{38:38}],67:[function(t,e,r){\"use strict\";var h=t(79),m=t(81),g=t(141),y=t(54),A=t(152)(\"isConcatSpreadable\");e.exports=function t(e,r,n,a,o,i,s,l){for(var c,p,u=o,f=0,d=!!s&&y(s,l,3);fdocument.F=Object<\\/script>\"),t.close(),c=t.F;e--;)delete c[l][i[e]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(n[l]=a(t),r=new n,n[l]=null,r[s]=t):r=c(),void 0===e?r:o(r,e)}},{100:100,125:125,38:38,59:59,60:60,73:73}],99:[function(t,e,r){arguments[4][29][0].apply(r,arguments)},{143:143,29:29,38:38,58:58,74:74}],100:[function(t,e,r){var i=t(99),s=t(38),l=t(107);e.exports=t(58)?Object.defineProperties:function(t,e){s(t);for(var r,n=l(e),a=n.length,o=0;oa;)!i(n,r=e[a++])||~l(o,r)||o.push(r);return o}},{125:125,140:140,41:41,71:71}],107:[function(t,e,r){var n=t(106),a=t(60);e.exports=Object.keys||function(t){return n(t,a)}},{106:106,60:60}],108:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],109:[function(t,e,r){var a=t(62),o=t(52),i=t(64);e.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],n={};n[t]=e(r),a(a.S+a.F*i(function(){r(1)}),\"Object\",n)}},{52:52,62:62,64:64}],110:[function(t,e,r){var l=t(58),c=t(107),p=t(140),u=t(108).f;e.exports=function(s){return function(t){for(var e,r=p(t),n=c(r),a=n.length,o=0,i=[];o>>0||(o.test(t)?16:10))}:n},{134:134,135:135,70:70}],114:[function(t,e,r){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],115:[function(t,e,r){var n=t(38),a=t(81),o=t(96);e.exports=function(t,e){if(n(t),a(e)&&e.constructor===t)return e;t=o.f(t);return(0,t.resolve)(e),t.promise}},{38:38,81:81,96:96}],116:[function(t,e,r){arguments[4][30][0].apply(r,arguments)},{30:30}],117:[function(t,e,r){var a=t(118);e.exports=function(t,e,r){for(var n in e)a(t,n,e[n],r);return t}},{118:118}],118:[function(t,e,r){var o=t(70),i=t(72),s=t(71),l=t(147)(\"src\"),n=t(69),a=\"toString\",c=(\"\"+n).split(a);t(52).inspectSource=function(t){return n.call(t)},(e.exports=function(t,e,r,n){var a=\"function\"==typeof r;a&&!s(r,\"name\")&&i(r,\"name\",e),t[e]!==r&&(a&&!s(r,l)&&i(r,l,t[e]?\"\"+t[e]:c.join(String(e))),t===o?t[e]=r:n?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,a,function(){return\"function\"==typeof this&&this[l]||n.call(this)})},{147:147,52:52,69:69,70:70,71:71,72:72}],119:[function(t,e,r){\"use strict\";var n=t(47),a=RegExp.prototype.exec;e.exports=function(t,e){var r=t.exec;if(\"function\"==typeof r){r=r.call(t,e);if(\"object\"!=typeof r)throw new TypeError(\"RegExp exec method returned something other than an Object or null\");return r}if(\"RegExp\"!==n(t))throw new TypeError(\"RegExp#exec called on incompatible receiver\");return a.call(t,e)}},{47:47}],120:[function(t,e,r){\"use strict\";var n,a,i=t(66),s=RegExp.prototype.exec,l=String.prototype.replace,t=s,c=\"lastIndex\",p=(a=/b*/g,s.call(n=/a/,\"a\"),s.call(a,\"a\"),0!==n[c]||0!==a[c]),u=void 0!==/()??/.exec(\"\")[1];e.exports=t=p||u?function(t){var e,r,n,a,o=this;return u&&(r=new RegExp(\"^\"+o.source+\"$(?!\\\\s)\",i.call(o))),p&&(e=o[c]),n=s.call(o,t),p&&n&&(o[c]=o.global?n.index+n[0].length:e),u&&n&&1\"+t+\"\"}var a=t(62),o=t(64),i=t(57),s=/\"/g;e.exports=function(e,t){var r={};r[e]=t(n),a(a.P+a.F*o(function(){var t=\"\"[e]('\"');return t!==t.toLowerCase()||3e&&(a=a.slice(0,e)),n?a+t:t+a}},{133:133,141:141,57:57}],133:[function(t,e,r){\"use strict\";var a=t(139),o=t(57);e.exports=function(t){var e=String(o(this)),r=\"\",n=a(t);if(n<0||n==1/0)throw RangeError(\"Count can't be negative\");for(;0>>=1)&&(e+=e))1&n&&(r+=e);return r}},{139:139,57:57}],134:[function(t,e,r){function n(t,e,r){var n={},a=i(function(){return!!s[t]()||\"​…\"!=\"​…\"[t]()}),e=n[t]=a?e(p):s[t];r&&(n[r]=e),o(o.P+o.F*a,\"String\",n)}var o=t(62),a=t(57),i=t(64),s=t(135),t=\"[\"+s+\"]\",l=RegExp(\"^\"+t+t+\"*\"),c=RegExp(t+t+\"*$\"),p=n.trim=function(t,e){return t=String(a(t)),1&e&&(t=t.replace(l,\"\")),t=2&e?t.replace(c,\"\"):t};e.exports=n},{135:135,57:57,62:62,64:64}],135:[function(t,e,r){e.exports=\"\\t\\n\\v\\f\\r   ᠎              \\u2028\\u2029\\ufeff\"},{}],136:[function(t,e,r){function n(){var t,e=+this;y.hasOwnProperty(e)&&(t=y[e],delete y[e],t())}function a(t){n.call(t.data)}var o,i=t(54),s=t(76),l=t(73),c=t(59),p=t(70),u=p.process,f=p.setImmediate,d=p.clearImmediate,h=p.MessageChannel,m=p.Dispatch,g=0,y={},A=\"onreadystatechange\";f&&d||(f=function(t){for(var e=[],r=1;r>1,c=23===e?x(2,-24)-x(2,-77):0,p=0,u=t<0||0===t&&1/t<0?1:0;for((t=G(t))!=t||t===v?(a=t!=t?1:0,n=r):(n=W(H(t)/V),t*(o=x(2,-n))<1&&(n--,o*=2),2<=(t+=1<=n+l?c/o:c*x(2,1-l))*o&&(n++,o/=2),r<=n+l?(a=0,n=r):1<=n+l?(a=(t*o-1)*x(2,e),n+=l):(a=t*x(2,l-1)*x(2,e),n=0));8<=e;i[p++]=255&a,a/=256,e-=8);for(n=n<>1,s=a-7,l=r-1,a=t[l--],c=127&a;for(a>>=7;0>=-s,s+=e;0>8&255]}function k(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function Q(t){return P(t,52,8)}function Y(t){return P(t,23,4)}function R(t,e,r){U(t[d],e,{get:function(){return this[r]}})}function F(t,e,r,n){r=p(+r);if(r+e>t[_])throw A(h);var a=t[w]._b,r=r+t[C],t=a.slice(r,r+e);return n?t:t.reverse()}function I(t,e,r,n,a,o){r=p(+r);if(r+e>t[_])throw A(h);for(var i=t[w]._b,s=r+t[C],l=n(+a),c=0;cq;)(O=B[q++])in m||o(m,O,b[O]);D||(s.constructor=m)}var c=new g(new m(2)),Z=g[d].setInt8;c.setInt8(0,2147483648),c.setInt8(1,2147483649),!c.getInt8(0)&&c.getInt8(1)||i(g[d],{setInt8:function(t,e){Z.call(this,t,e<<24>>24)},setUint8:function(t,e){Z.call(this,t,e<<24>>24)}},!0)}else m=function(t){l(this,m,u);t=p(t);this._b=j.call(new Array(t),0),this[_]=t},g=function(t,e,r){l(this,g,f),l(t,m,f);var n=t[_],e=M(e);if(e<0||n>24},getUint8:function(t){return F(this,1,t)[0]},getInt16:function(t){t=F(this,2,t,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(t){t=F(this,2,t,arguments[1]);return t[1]<<8|t[0]},getInt32:function(t){return L(F(this,4,t,arguments[1]))},getUint32:function(t){return L(F(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return S(F(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return S(F(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){I(this,1,t,E,e)},setUint8:function(t,e){I(this,1,t,E,e)},setInt16:function(t,e){I(this,2,t,T,e,arguments[2])},setUint16:function(t,e){I(this,2,t,T,e,arguments[2])},setInt32:function(t,e){I(this,4,t,k,e,arguments[2])},setUint32:function(t,e){I(this,4,t,k,e,arguments[2])},setFloat32:function(t,e){I(this,4,t,Y,e,arguments[2])},setFloat64:function(t,e){I(this,8,t,Q,e,arguments[2])}});t(m,u),t(g,f),o(g[d],a.VIEW,!0),e[u]=m,e[f]=g},{103:103,117:117,124:124,138:138,139:139,141:141,146:146,37:37,40:40,58:58,64:64,70:70,72:72,89:89,99:99}],146:[function(t,e,r){for(var n,a=t(70),o=t(72),t=t(147),i=t(\"typed_array\"),s=t(\"view\"),t=!(!a.ArrayBuffer||!a.DataView),l=t,c=0,p=\"Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array\".split(\",\");c<9;)(n=a[p[c++]])?(o(n.prototype,i,!0),o(n.prototype,s,!0)):l=!1;e.exports={ABV:t,CONSTR:l,TYPED:i,VIEW:s}},{147:147,70:70,72:72}],147:[function(t,e,r){var n=0,a=Math.random();e.exports=function(t){return\"Symbol(\".concat(void 0===t?\"\":t,\")_\",(++n+a).toString(36))}},{}],148:[function(t,e,r){t=t(70).navigator;e.exports=t&&t.userAgent||\"\"},{70:70}],149:[function(t,e,r){var n=t(81);e.exports=function(t,e){if(n(t)&&t._t===e)return t;throw TypeError(\"Incompatible receiver, \"+e+\" required!\")}},{81:81}],150:[function(t,e,r){var n=t(70),a=t(52),o=t(89),i=t(151),s=t(99).f;e.exports=function(t){var e=a.Symbol||(a.Symbol=!o&&n.Symbol||{});\"_\"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},{151:151,52:52,70:70,89:89,99:99}],151:[function(t,e,r){r.f=t(152)},{152:152}],152:[function(t,e,r){var n=t(126)(\"wks\"),a=t(147),o=t(70).Symbol,i=\"function\"==typeof o;(e.exports=function(t){return n[t]||(n[t]=i&&o[t]||(i?o:a)(\"Symbol.\"+t))}).store=n},{126:126,147:147,70:70}],153:[function(t,e,r){var n=t(47),a=t(152)(\"iterator\"),o=t(88);e.exports=t(52).getIteratorMethod=function(t){if(null!=t)return t[a]||t[\"@@iterator\"]||o[n(t)]}},{152:152,47:47,52:52,88:88}],154:[function(t,e,r){var n=t(62);n(n.P,\"Array\",{copyWithin:t(39)}),t(35)(\"copyWithin\")},{35:35,39:39,62:62}],155:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(4);n(n.P+n.F*!t(128)([].every,!0),\"Array\",{every:function(t){return a(this,t,arguments[1])}})},{128:128,42:42,62:62}],156:[function(t,e,r){var n=t(62);n(n.P,\"Array\",{fill:t(40)}),t(35)(\"fill\")},{35:35,40:40,62:62}],157:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(2);n(n.P+n.F*!t(128)([].filter,!0),\"Array\",{filter:function(t){return a(this,t,arguments[1])}})},{128:128,42:42,62:62}],158:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(6),o=\"findIndex\",i=!0;o in[]&&Array(1)[o](function(){i=!1}),n(n.P+n.F*i,\"Array\",{findIndex:function(t){return a(this,t,1=t.length?(this._t=void 0,a(1)):a(0,\"keys\"==e?r:\"values\"==e?t[r]:[r,t[r]])},\"values\"),o.Arguments=o.Array,n(\"keys\"),n(\"values\"),n(\"entries\")},{140:140,35:35,85:85,87:87,88:88}],165:[function(t,e,r){\"use strict\";var n=t(62),a=t(140),o=[].join;n(n.P+n.F*(t(77)!=Object||!t(128)(o)),\"Array\",{join:function(t){return o.call(a(this),void 0===t?\",\":t)}})},{128:128,140:140,62:62,77:77}],166:[function(t,e,r){\"use strict\";var n=t(62),a=t(140),o=t(139),i=t(141),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(l||!t(128)(s)),\"Array\",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=a(this),r=i(e.length),n=r-1;for((n=1>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{62:62}],189:[function(t,e,r){var t=t(62),n=Math.exp;t(t.S,\"Math\",{cosh:function(t){return(n(t=+t)+n(-t))/2}})},{62:62}],190:[function(t,e,r){var n=t(62),t=t(90);n(n.S+n.F*(t!=Math.expm1),\"Math\",{expm1:t})},{62:62,90:90}],191:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{fround:t(91)})},{62:62,91:91}],192:[function(t,e,r){var t=t(62),l=Math.abs;t(t.S,\"Math\",{hypot:function(t,e){for(var r,n,a=0,o=0,i=arguments.length,s=0;o>>16)*n+r*(65535&e>>>16)<<16>>>0)}})},{62:62,64:64}],194:[function(t,e,r){t=t(62);t(t.S,\"Math\",{log10:function(t){return Math.log(t)*Math.LOG10E}})},{62:62}],195:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{log1p:t(92)})},{62:62,92:92}],196:[function(t,e,r){t=t(62);t(t.S,\"Math\",{log2:function(t){return Math.log(t)/Math.LN2}})},{62:62}],197:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{sign:t(93)})},{62:62,93:93}],198:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S+n.F*t(64)(function(){return-2e-17!=!Math.sinh(-2e-17)}),\"Math\",{sinh:function(t){return Math.abs(t=+t)<1?(a(t)-a(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},{62:62,64:64,90:90}],199:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S,\"Math\",{tanh:function(t){var e=a(t=+t),r=a(-t);return e==1/0?1:r==1/0?-1:(e-r)/(o(t)+o(-t))}})},{62:62,90:90}],200:[function(t,e,r){t=t(62);t(t.S,\"Math\",{trunc:function(t){return(0w;w++)o(m,v=x[w])&&!o(b,v)&&f(b,v,u(m,v));(b.prototype=g).constructor=b,t(118)(a,h,b)}},{101:101,103:103,118:118,134:134,143:143,48:48,58:58,64:64,70:70,71:71,75:75,98:98,99:99}],202:[function(t,e,r){t=t(62);t(t.S,\"Number\",{EPSILON:Math.pow(2,-52)})},{62:62}],203:[function(t,e,r){var n=t(62),a=t(70).isFinite;n(n.S,\"Number\",{isFinite:function(t){return\"number\"==typeof t&&a(t)}})},{62:62,70:70}],204:[function(t,e,r){var n=t(62);n(n.S,\"Number\",{isInteger:t(80)})},{62:62,80:80}],205:[function(t,e,r){t=t(62);t(t.S,\"Number\",{isNaN:function(t){return t!=t}})},{62:62}],206:[function(t,e,r){var n=t(62),a=t(80),o=Math.abs;n(n.S,\"Number\",{isSafeInteger:function(t){return a(t)&&o(t)<=9007199254740991}})},{62:62,80:80}],207:[function(t,e,r){t=t(62);t(t.S,\"Number\",{MAX_SAFE_INTEGER:9007199254740991})},{62:62}],208:[function(t,e,r){t=t(62);t(t.S,\"Number\",{MIN_SAFE_INTEGER:-9007199254740991})},{62:62}],209:[function(t,e,r){var n=t(62),t=t(112);n(n.S+n.F*(Number.parseFloat!=t),\"Number\",{parseFloat:t})},{112:112,62:62}],210:[function(t,e,r){var n=t(62),t=t(113);n(n.S+n.F*(Number.parseInt!=t),\"Number\",{parseInt:t})},{113:113,62:62}],211:[function(t,e,r){\"use strict\";function s(t,e){for(var r=-1,n=e;++r<6;)n+=t*i[r],i[r]=n%1e7,n=o(n/1e7)}function l(t){for(var e=6,r=0;0<=--e;)r+=i[e],i[e]=o(r/t),r=r%t*1e7}function c(){for(var t,e=6,r=\"\";0<=--e;)\"\"===r&&0!==e&&0===i[e]||(t=String(i[e]),r=\"\"===r?t:r+d.call(\"0\",7-t.length)+t);return r}function p(t,e,r){return 0===e?r:e%2==1?p(t,e-1,r*t):p(t*t,e/2,r)}var n=t(62),u=t(139),f=t(34),d=t(133),a=1..toFixed,o=Math.floor,i=[0,0,0,0,0,0],h=\"Number.toFixed: incorrect invocation!\";n(n.P+n.F*(!!a&&(\"0.000\"!==8e-5.toFixed(3)||\"1\"!==.9.toFixed(0)||\"1.25\"!==1.255.toFixed(2)||\"1000000000000000128\"!==0xde0b6b3a7640080.toFixed(0))||!t(64)(function(){a.call({})})),\"Number\",{toFixed:function(t){var e,r,n,a=f(this,h),t=u(t),o=\"\",i=\"0\";if(t<0||20r;){a=void 0;o=void 0;i=void 0;s=void 0;l=void 0;c=void 0;p=void 0;var n=d[r++];var a,o,i,s=e?n.ok:n.fail,l=n.resolve,c=n.reject,p=n.domain;try{s?(e||(2==u._h&&g(u),u._h=1),!0===s?a=t:(p&&p.enter(),a=s(t),p&&(p.exit(),i=!0)),a===n.promise?c(E(\"Promise-chain cycle\")):(o=h(a))?o.call(a,l,c):l(a)):c(t)}catch(n){p&&!i&&p.exit(),c(n)}}u._c=[],u._n=!1,f&&!u._h&&m(u)}))}function o(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),a(e,!0))}function m(a){x.call(p,function(){var t,e,r=a._v,n=O(a);if(n&&(t=C(function(){F?T.emit(\"unhandledRejection\",r,a):(e=p.onunhandledrejection)?e({promise:a,reason:r}):(e=p.console)&&e.error&&e.error(\"Unhandled promise rejection\",r)}),a._h=F||O(a)?2:1),a._a=void 0,n&&t.e)throw t.v})}function g(e){x.call(p,function(){var t;F?T.emit(\"rejectionHandled\",e):(t=p.onrejectionhandled)&&t({promise:e,reason:e._v})})}var e,i,s,l,c=r(89),p=r(70),u=r(54),t=r(47),f=r(62),d=r(81),y=r(33),A=r(37),v=r(68),b=r(127),x=r(136).set,w=r(95)(),_=r(96),C=r(114),P=r(148),S=r(115),L=\"Promise\",E=p.TypeError,T=p.process,k=T&&T.versions,M=k&&k.v8||\"\",R=p[L],F=\"process\"==t(T),I=i=_.f,k=!!function(){try{var t=R.resolve(1),e=(t.constructor={})[r(152)(\"species\")]=function(t){t(n,n)};return(F||\"function\"==typeof PromiseRejectionEvent)&&t.then(n)instanceof e&&0!==M.indexOf(\"6.6\")&&-1===P.indexOf(\"Chrome/66\")}catch(t){}}(),O=function(t){return 1!==t._h&&0===(t._a||t._c).length},B=function(t){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E(\"Promise can't be resolved itself\");(r=h(t))?w(function(){var e={_w:n,_d:!1};try{r.call(t,u(B,e,1),u(o,e,1))}catch(t){o.call(e,t)}}):(n._v=t,n._s=1,a(n,!1))}catch(t){o.call({_w:n,_d:!1},t)}}};k||(R=function(t){A(this,R,L,\"_h\"),y(t),e.call(this);try{t(u(B,this,1),u(o,this,1))}catch(t){o.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(117)(R.prototype,{then:function(t,e){var r=I(b(this,R));return r.ok=\"function\"!=typeof t||t,r.fail=\"function\"==typeof e&&e,r.domain=F?T.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&a(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),s=function(){var t=new e;this.promise=t,this.resolve=u(B,t,1),this.reject=u(o,t,1)},_.f=I=function(t){return t===R||t===l?new s:i(t)}),f(f.G+f.W+f.F*!k,{Promise:R}),r(124)(R,L),r(123)(L),l=r(52)[L],f(f.S+f.F*!k,L,{reject:function(t){var e=I(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(c||!k),L,{resolve:function(t){return S(c&&this===l?R:this,t)}}),f(f.S+f.F*!(k&&r(86)(function(t){R.all(t).catch(n)})),L,{all:function(t){var i=this,e=I(i),s=e.resolve,l=e.reject,r=C(function(){var n=[],a=0,o=1;v(t,!1,function(t){var e=a++,r=!1;n.push(void 0),o++,i.resolve(t).then(function(t){r||(r=!0,n[e]=t,--o||s(n))},l)}),--o||s(n)});return r.e&&l(r.v),e.promise},race:function(t){var e=this,r=I(e),n=r.reject,a=C(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return a.e&&n(a.v),r.promise}})},{114:114,115:115,117:117,123:123,124:124,127:127,136:136,148:148,152:152,33:33,37:37,47:47,52:52,54:54,62:62,68:68,70:70,81:81,86:86,89:89,95:95,96:96}],233:[function(t,e,r){var n=t(62),a=t(33),o=t(38),i=(t(70).Reflect||{}).apply,s=Function.apply;n(n.S+n.F*!t(64)(function(){i(function(){})}),\"Reflect\",{apply:function(t,e,r){t=a(t),r=o(r);return i?i(t,e,r):s.call(t,e,r)}})},{33:33,38:38,62:62,64:64,70:70}],234:[function(t,e,r){var n=t(62),a=t(98),o=t(33),i=t(38),s=t(81),l=t(64),c=t(46),p=(t(70).Reflect||{}).construct,u=l(function(){function t(){}return!(p(function(){},[],t)instanceof t)}),f=!l(function(){p(function(){})});n(n.S+n.F*(u||f),\"Reflect\",{construct:function(t,e){o(t),i(e);var r=arguments.length<3?t:o(arguments[2]);if(f&&!u)return p(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}n=r.prototype,r=a(s(n)?n:Object.prototype),n=Function.apply.call(t,r,e);return s(n)?n:r}})},{33:33,38:38,46:46,62:62,64:64,70:70,81:81,98:98}],235:[function(t,e,r){var n=t(99),a=t(62),o=t(38),i=t(143);a(a.S+a.F*t(64)(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),\"Reflect\",{defineProperty:function(t,e,r){o(t),e=i(e,!0),o(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},{143:143,38:38,62:62,64:64,99:99}],236:[function(t,e,r){var n=t(62),a=t(101).f,o=t(38);n(n.S,\"Reflect\",{deleteProperty:function(t,e){var r=a(o(t),e);return!(r&&!r.configurable)&&delete t[e]}})},{101:101,38:38,62:62}],237:[function(t,e,r){\"use strict\";function n(t){this._t=o(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)}var a=t(62),o=t(38);t(84)(n,\"Object\",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),a(a.S,\"Reflect\",{enumerate:function(t){return new n(t)}})},{38:38,62:62,84:84}],238:[function(t,e,r){var n=t(101),a=t(62),o=t(38);a(a.S,\"Reflect\",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},{101:101,38:38,62:62}],239:[function(t,e,r){var n=t(62),a=t(105),o=t(38);n(n.S,\"Reflect\",{getPrototypeOf:function(t){return a(o(t))}})},{105:105,38:38,62:62}],240:[function(t,e,r){var o=t(101),i=t(105),s=t(71),n=t(62),l=t(81),c=t(38);n(n.S,\"Reflect\",{get:function t(e,r){var n,a=arguments.length<3?e:arguments[2];return c(e)===a?e[r]:(n=o.f(e,r))?s(n,\"value\")?n.value:void 0!==n.get?n.get.call(a):void 0:l(n=i(e))?t(n,r,a):void 0}})},{101:101,105:105,38:38,62:62,71:71,81:81}],241:[function(t,e,r){t=t(62);t(t.S,\"Reflect\",{has:function(t,e){return e in t}})},{62:62}],242:[function(t,e,r){var n=t(62),a=t(38),o=Object.isExtensible;n(n.S,\"Reflect\",{isExtensible:function(t){return a(t),!o||o(t)}})},{38:38,62:62}],243:[function(t,e,r){var n=t(62);n(n.S,\"Reflect\",{ownKeys:t(111)})},{111:111,62:62}],244:[function(t,e,r){var n=t(62),a=t(38),o=Object.preventExtensions;n(n.S,\"Reflect\",{preventExtensions:function(t){a(t);try{return o&&o(t),!0}catch(t){return!1}}})},{38:38,62:62}],245:[function(t,e,r){var n=t(62),a=t(122);a&&n(n.S,\"Reflect\",{setPrototypeOf:function(t,e){a.check(t,e);try{return a.set(t,e),!0}catch(t){return!1}}})},{122:122,62:62}],246:[function(t,e,r){var s=t(99),l=t(101),c=t(105),p=t(71),n=t(62),u=t(116),f=t(38),d=t(81);n(n.S,\"Reflect\",{set:function t(e,r,n){var a,o=arguments.length<4?e:arguments[3],i=l.f(f(e),r);if(!i){if(d(a=c(e)))return t(a,r,n,o);i=u(0)}if(p(i,\"value\")){if(!1===i.writable||!d(o))return!1;if(a=l.f(o,r)){if(a.get||a.set||!1===a.writable)return!1;a.value=n,s.f(o,r,a)}else s.f(o,r,u(0,n));return!0}return void 0!==i.set&&(i.set.call(o,n),!0)}})},{101:101,105:105,116:116,38:38,62:62,71:71,81:81,99:99}],247:[function(t,e,r){var n=t(70),o=t(75),a=t(99).f,i=t(103).f,s=t(82),l=t(66),c=h=n.RegExp,p=h.prototype,u=/a/g,f=/a/g,d=new h(u)!==u;if(t(58)&&(!d||t(64)(function(){return f[t(152)(\"match\")]=!1,h(u)!=u||h(f)==f||\"/a/i\"!=h(u,\"i\")}))){for(var h=function(t,e){var r=this instanceof h,n=s(t),a=void 0===e;return!r&&n&&t.constructor===h&&a?t:o(d?new c(n&&!a?t.source:t,e):c((n=t instanceof h)?t.source:t,n&&a?l.call(t):e),r?this:p,h)},m=i(c),g=0;m.length>g;)!function(e){e in h||a(h,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})}(m[g++]);(p.constructor=h).prototype=p,t(118)(n,\"RegExp\",h)}t(123)(\"RegExp\")},{103:103,118:118,123:123,152:152,58:58,64:64,66:66,70:70,75:75,82:82,99:99}],248:[function(t,e,r){\"use strict\";var n=t(120);t(62)({target:\"RegExp\",proto:!0,forced:n!==/./.exec},{exec:n})},{120:120,62:62}],249:[function(t,e,r){t(58)&&\"g\"!=/./g.flags&&t(99).f(RegExp.prototype,\"flags\",{configurable:!0,get:t(66)})},{58:58,66:66,99:99}],250:[function(t,e,r){\"use strict\";var p=t(38),u=t(141),f=t(36),d=t(119);t(65)(\"match\",1,function(n,a,l,c){return[function(t){var e=n(this),r=null==t?void 0:t[a];return void 0!==r?r.call(t,e):new RegExp(t)[a](String(e))},function(t){var e=c(l,t,this);if(e.done)return e.value;var r=p(t),n=String(this);if(!r.global)return d(r,n);for(var a=r.unicode,o=[],i=r.lastIndex=0;null!==(s=d(r,n));){var s=String(s[0]);\"\"===(o[i]=s)&&(r.lastIndex=f(n,u(r.lastIndex),a)),i++}return 0===i?null:o}]})},{119:119,141:141,36:36,38:38,65:65}],251:[function(t,e,r){\"use strict\";var w=t(38),_=t(142),C=t(141),P=t(139),S=t(36),L=t(119),E=Math.max,T=Math.min,k=Math.floor,R=/\\$([$&`']|\\d\\d?|<[^>]*>)/g,F=/\\$([$&`']|\\d\\d?)/g;t(65)(\"replace\",2,function(a,o,b,x){return[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):b.call(String(r),t,e)},function(t,e){var r=x(b,t,this,e);if(r.done)return r.value;var n,a=w(t),o=String(this),i=\"function\"==typeof e,s=(i||(e=String(e)),a.global);s&&(n=a.unicode,a.lastIndex=0);for(var l=[];;){var c=L(a,o);if(null===c)break;if(l.push(c),!s)break;\"\"===String(c[0])&&(a.lastIndex=S(o,C(a.lastIndex),n))}for(var p,u=\"\",f=0,d=0;d>>0,p=new RegExp(t.source,s+\"g\");(n=f.call(p,r))&&!(l<(a=p[C])&&(i.push(r.slice(l,n.index)),1=c));)p[C]===n.index&&p[C]++;return l===r[_]?!o&&p.test(\"\")||i.push(\"\"):i.push(r.slice(l)),i[_]>c?i.slice(0,c):i}:\"0\"[i](void 0,0)[_]?function(t,e){return void 0===t&&0===e?[]:h.call(this,t,e)}:h;return[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):g.call(String(r),t,e)},function(t,e){var r=m(g,t,this,e,g!==h);if(r.done)return r.value;var r=y(t),n=String(this),t=A(r,RegExp),a=r.unicode,o=(r.ignoreCase?\"i\":\"\")+(r.multiline?\"m\":\"\")+(r.unicode?\"u\":\"\")+(S?\"y\":\"g\"),i=new t(S?r:\"^(?:\"+r.source+\")\",o),s=void 0===e?P:e>>>0;if(0==s)return[];if(0===n.length)return null===x(i,n)?[n]:[];for(var l=0,c=0,p=[];c>10),e%1024+56320))}return r.join(\"\")}})},{137:137,62:62}],266:[function(t,e,r){\"use strict\";var n=t(62),a=t(130);n(n.P+n.F*t(63)(\"includes\"),\"String\",{includes:function(t){return!!~a(this,t,\"includes\").indexOf(t,1=t.length?{value:void 0,done:!0}:(t=n(t,e),this._i+=t.length,{value:t,done:!1})})},{129:129,85:85}],269:[function(t,e,r){\"use strict\";t(131)(\"link\",function(e){return function(t){return e(this,\"a\",\"href\",t)}})},{131:131}],270:[function(t,e,r){var n=t(62),i=t(140),s=t(141);n(n.S,\"String\",{raw:function(t){for(var e=i(t.raw),r=s(e.length),n=arguments.length,a=[],o=0;oa;)c(T,e=r[a++])||e==L||e==z||n.push(e);return n}function i(t){for(var e,r=t===R,n=J(r?k:y(t)),a=[],o=0;n.length>o;)!c(T,e=n[o++])||r&&!c(R,e)||a.push(T[e]);return a}function s(t,e,r){return t===R&&s(k,e,r),g(t),e=A(e,!0),g(r),c(T,e)?(r.enumerable?(c(t,L)&&t[L][e]&&(t[L][e]=!1),r=b(r,{enumerable:v(0,!1)})):(c(t,L)||w(t,L,v(1,{})),t[L][e]=!0),O(t,e,r)):w(t,e,r)}var l=t(70),c=t(71),p=t(58),u=t(62),M=t(118),z=t(94).KEY,f=t(64),d=t(126),h=t(124),U=t(147),m=t(152),j=t(151),G=t(150),W=t(61),H=t(79),g=t(38),V=t(81),Q=t(142),y=t(140),A=t(143),v=t(116),b=t(98),Y=t(102),q=t(101),x=t(104),Z=t(99),X=t(107),K=q.f,w=Z.f,J=Y.f,_=l.Symbol,C=l.JSON,P=C&&C.stringify,S=\"prototype\",L=m(\"_hidden\"),$=m(\"toPrimitive\"),tt={}.propertyIsEnumerable,E=d(\"symbol-registry\"),T=d(\"symbols\"),k=d(\"op-symbols\"),R=Object[S],d=\"function\"==typeof _&&!!x.f,F=l.QObject,I=!F||!F[S]||!F[S].findChild,O=p&&f(function(){return 7!=b(w({},\"a\",{get:function(){return w(this,\"a\",{value:7}).a}})).a})?function(t,e,r){var n=K(R,e);n&&delete R[e],w(t,e,r),n&&t!==R&&w(R,e,n)}:w,B=d&&\"symbol\"==typeof _.iterator?function(t){return\"symbol\"==typeof t}:function(t){return t instanceof _};d||(M((_=function(){if(this instanceof _)throw TypeError(\"Symbol is not a constructor!\");var e=U(0rt;)m(et[rt++]);for(var nt=X(m.store),at=0;nt.length>at;)G(nt[at++]);u(u.S+u.F*!d,\"Symbol\",{for:function(t){return c(E,t+=\"\")?E[t]:E[t]=_(t)},keyFor:function(t){if(!B(t))throw TypeError(t+\" is not a symbol!\");for(var e in E)if(E[e]===t)return e},useSetter:function(){I=!0},useSimple:function(){I=!1}}),u(u.S+u.F*!d,\"Object\",{create:function(t,e){return void 0===e?b(t):r(b(t),e)},defineProperty:s,defineProperties:r,getOwnPropertyDescriptor:a,getOwnPropertyNames:o,getOwnPropertySymbols:i});F=f(function(){x.f(1)});u(u.S+u.F*F,\"Object\",{getOwnPropertySymbols:function(t){return x.f(Q(t))}}),C&&u(u.S+u.F*(!d||f(function(){var t=_();return\"[null]\"!=P([t])||\"{}\"!=P({a:t})||\"{}\"!=P(Object(t))})),\"JSON\",{stringify:function(t){for(var e,r,n=[t],a=1;as;)void 0!==(r=a(n,e=o[s++]))&&u(i,e,r);return i}})},{101:101,111:111,140:140,53:53,62:62}],296:[function(t,e,r){var n=t(62),a=t(110)(!1);n(n.S,\"Object\",{values:function(t){return a(t)}})},{110:110,62:62}],297:[function(t,e,r){\"use strict\";var n=t(62),a=t(52),o=t(70),i=t(127),s=t(115);n(n.P+n.R,\"Promise\",{finally:function(e){var r=i(this,a.Promise||o.Promise),t=\"function\"==typeof e;return this.then(t?function(t){return s(r,e()).then(function(){return t})}:e,t?function(t){return s(r,e()).then(function(){throw t})}:e)}})},{115:115,127:127,52:52,62:62,70:70}],298:[function(t,e,r){\"use strict\";var n=t(62),a=t(132),t=t(148),t=/Version\\/10\\.\\d+(\\.\\d+)?( Mobile\\/\\w+)? Safari\\//.test(t);n(n.P+n.F*t,\"String\",{padEnd:function(t){return a(this,t,1/g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\")}function O(t){return\"number\"==typeof t&&100\").concat(e,\"\"):\"\")}function M(t){var e=\"solid\",r=\"\",n=\"\",a=\"\";return t&&(\"string\"==typeof t?r=t:(t.type&&(e=t.type),t.color&&(r=t.color),t.alpha&&(n+='')),t.transparency&&(n+=''))),a+=\"solid\"===e?\"\".concat(D(r,n),\"\"):\"\"),a}function C(t){return t._rels.length+t._relsChart.length+t._relsMedia.length+1}function mt(t,d,e,r){void 0===t&&(t=[]);var n,a=w,p=+R,u=0,o=0,h=[],i=F((d=void 0===d?{}:d).x,\"X\",e),s=F(d.y,\"Y\",e),l=F(d.w,\"X\",e),c=F(d.h,\"Y\",e),f=l;function m(){var t=0;0===h.length&&(t=s||O(a[0])),0r?r=B(t.options.margin[0]):d.margin&&d.margin[0]&&B(d.margin[0])>r&&(r=B(d.margin[0])),t.options.margin&&t.options.margin[2]&&B(t.options.margin[2])>n?n=B(t.options.margin[2]):d.margin&&d.margin[2]&&B(d.margin[2])>n&&(n=B(d.margin[2]))):(t.options.margin&&t.options.margin[0]&&O(t.options.margin[0])>r?r=O(t.options.margin[0]):d.margin&&d.margin[0]&&O(d.margin[0])>r&&(r=O(d.margin[0])),t.options.margin&&t.options.margin[2]&&O(t.options.margin[2])>n?n=O(t.options.margin[2]):d.margin&&d.margin[2]&&O(d.margin[2])>n&&(n=O(d.margin[2])))}),m(),u+=r+n,d.verbose&&0===e&&console.log(\"| SLIDE [\".concat(h.length,\"]: emuSlideTabH ...... = \").concat((p/R).toFixed(1),\" \")),t.forEach(function(r,n){var t,a,e,o,i,s,l,c,p={_type:k.tablecell,_lines:null,_lineHeight:O((r.options&&r.options.fontSize?r.options.fontSize:d.fontSize||x)*(q+(d.autoPageLineWeight||0))/100),text:[],options:r.options},u=(p.options.rowspan&&(p._lineHeight=0),p.options.autoPageCharWeight=d.autoPageCharWeight||null,d.colW[n]);r.options.colspan&&Array.isArray(d.colW)&&(u=d.colW.filter(function(t,e){return n<=e&&e \".concat(JSON.stringify(c))),s.push(c),c=[])),0o&&(i.push(e),e=[],r=\"\"),e.push(t),r+=t.text.toString()}),0=i&&(i=t._lineHeight)}),p maxH) => \".concat((u/R).toFixed(2),\" + \").concat((l._lineHeight/R).toFixed(2),\" > \").concat(p/R)),console.log(\"|-----------------------------------------------------------------------|\\n\\n\")),0r&&(r=t._lineHeight)}),A.rows.push(e),u+=r}),c=a[o]),l._lines.shift());Array.isArray(c.text)&&(l?c.text=c.text.concat(l):0===c.text.length&&(c.text=c.text.concat({_type:k.tablecell,text:\"\"}))),o===f.length-1&&(u+=i),o=o'},contain:function(t,e){var t=t.h/t.w,r=t'},crop:function(t,e){var r=e.x,n=t.w-(e.x+e.w),a=e.y,e=t.h-(e.y+e.h);return''}};function yt(L){var E=L._name?'':\"\",T=1;return L._bkgdImgRid?E+=''):L.background&&L.background.color?E+=\"\".concat(M(L.background),\"\"):!L.bkgd&&L._name&&L._name===et&&(E+=''),E=(E=E+\"\"+'')+''+'',L._slideObjects.forEach(function(n,t){var e,r=0,a=0,o=F(\"75%\",\"X\",L._presLayout),i=0,s=\"\";switch(void 0!==L._slideLayout&&void 0!==L._slideLayout._slideObjects&&n.options&&n.options.placeholder&&(e=L._slideLayout._slideObjects.filter(function(t){return t.options.placeholder===n.options.placeholder})[0]),n.options=n.options||{},void 0!==n.options.x&&(r=F(n.options.x,\"X\",L._presLayout)),void 0!==n.options.y&&(a=F(n.options.y,\"Y\",L._presLayout)),void 0!==n.options.w&&(o=F(n.options.w,\"X\",L._presLayout)),void 0!==n.options.h&&(i=F(n.options.h,\"Y\",L._presLayout)),e&&(!e.options.x&&0!==e.options.x||(r=F(e.options.x,\"X\",L._presLayout)),!e.options.y&&0!==e.options.y||(a=F(e.options.y,\"Y\",L._presLayout)),!e.options.w&&0!==e.options.w||(o=F(e.options.w,\"X\",L._presLayout)),!e.options.h&&0!==e.options.h||(i=F(e.options.h,\"Y\",L._presLayout))),n.options.flipH&&(s+=' flipH=\"1\"'),n.options.flipV&&(s+=' flipV=\"1\"'),n.options.rotate&&(s+=' rot=\"'+N(n.options.rotate)+'\"'),n._type){case k.table:var l,c=n.arrTabRows,p=n.options,u=0,f=0,d=(c[0].forEach(function(t){l=t.options||null,u+=l&&l.colspan?Number(l.colspan):1}),'')),d=(d+=' ')+'')+'';if(Array.isArray(p.colW)){d+=\"\";for(var h=0;h'}d+=\"\"}else{f=p.colW||R,n.options.w&&!p.colW&&(f=Math.round((\"number\"==typeof n.options.w?n.options.w:1)/u)),d+=\"\";for(var g=0;g';d+=\"\"}c.forEach(function(a){for(var o,i,t=0;t'),t.forEach(function(t){var e,r,n,a,o,i={rowSpan:1<(null==(s=t.options)?void 0:s.rowspan)?t.options.rowspan:void 0,gridSpan:1<(null==(s=t.options)?void 0:s.colspan)?t.options.colspan:void 0,vMerge:t._vmerge?1:void 0,hMerge:t._hmerge?1:void 0},s=(s=Object.keys(i).map(function(t){return[t,i[t]]}).filter(function(t){return t[0],!!t[1]}).map(function(t){var e=t[0],t=t[1];return\"\".concat(e,'=\"').concat(t,'\"')}).join(\" \"))&&\" \"+s;t._hmerge||t._vmerge?d+=\"\"):(e=t.options||{},t.options=e,[\"align\",\"bold\",\"border\",\"color\",\"fill\",\"fontFace\",\"fontSize\",\"margin\",\"underline\",\"valign\"].forEach(function(t){p[t]&&!e[t]&&0!==e[t]&&(e[t]=p[t])}),r=e.valign?' anchor=\"'+e.valign.replace(/^c$/i,\"ctr\").replace(/^m$/i,\"ctr\").replace(\"center\",\"ctr\").replace(\"middle\",\"ctr\").replace(\"top\",\"t\").replace(\"btm\",\"b\").replace(\"bottom\",\"b\")+'\"':\"\",n=(n=(t._optImp&&t._optImp.fill&&t._optImp.fill.color?t._optImp.fill.color:t._optImp&&t._optImp.fill&&\"string\"==typeof t._optImp.fill?t._optImp.fill:\"\")||e.fill?e.fill:\"\")?M(n):\"\",a=0===e.margin||e.margin?e.margin:$,o=\"\",o=1<=(a=Array.isArray(a)||\"number\"!=typeof a?a:[a,a,a,a])[0]?' marL=\"'.concat(B(a[3]),'\" marR=\"').concat(B(a[1]),'\" marT=\"').concat(B(a[0]),'\" marB=\"').concat(B(a[2]),'\"'):' marL=\"'.concat(O(a[3]),'\" marR=\"').concat(O(a[1]),'\" marT=\"').concat(O(a[0]),'\" marB=\"').concat(O(a[2]),'\"'),d+=\"\").concat(xt(t),\"\"),e.border&&Array.isArray(e.border)&&[{idx:3,name:\"lnL\"},{idx:1,name:\"lnR\"},{idx:0,name:\"lnT\"},{idx:2,name:\"lnB\"}].forEach(function(t){\"none\"!==e.border[t.idx].type?d=(d=(d=(d+=\"'))+\"\".concat(D(e.border[t.idx].color),\"\"))+''))+\"\"):d+=\"\")}),d=d+n+\" \")}),d+=\"\"}),E+=d=(d=d+\" \"+\" \")+\" \"+\"\",T++;break;case k.text:case k.placeholder:if(n.options.line||0!==i||(i=.3*R),n.options._bodyProp||(n.options._bodyProp={}),n.options.margin&&Array.isArray(n.options.margin)?(n.options._bodyProp.lIns=B(n.options.margin[0]||0),n.options._bodyProp.rIns=B(n.options.margin[1]||0),n.options._bodyProp.bIns=B(n.options.margin[2]||0),n.options._bodyProp.tIns=B(n.options.margin[3]||0)):\"number\"==typeof n.options.margin&&(n.options._bodyProp.lIns=B(n.options.margin),n.options._bodyProp.rIns=B(n.options.margin),n.options._bodyProp.bIns=B(n.options.margin),n.options._bodyProp.tIns=B(n.options.margin)),E=(E+=\"\")+''),n.options.hyperlink&&n.options.hyperlink.url&&(E+=''),n.options.hyperlink&&n.options.hyperlink.slide&&(E+=''),E=(E=(E=(E=(E=(E+=\"\")+(\"':\"/>\")))+\"\".concat(\"placeholder\"===n._type?wt(n):wt(e),\"\")+\"\")+\"\"))+''))+''),\"custGeom\"===n.shape)E=(E+='')+''),null!=(_=n.options.points)&&_.map(function(t,e){if(\"curve\"in t)switch(t.curve.type){case\"arc\":E+='');break;case\"cubic\":E+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t');break;case\"quadratic\":E+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t')}else\"close\"in t?E+=\"\":t.moveTo||0===e?E+=''):E+='')}),E+=\"\";else{if(E+='',n.options.rectRadius)E+='');else if(n.options.angleRange){for(var y=0;y<2;y++){var A=n.options.angleRange[y];E+='')}n.options.arcThicknessRatio&&(E+=''))}E+=\"\"}E+=n.options.fill?M(n.options.fill):\"\",n.options.line&&(E+=n.options.line.width?''):\"\",n.options.line.color&&(E+=M(n.options.line)),n.options.line.dashType&&(E+='')),n.options.line.beginArrowType&&(E+='')),n.options.line.endArrowType&&(E+='')),E+=\"\"),n.options.shadow&&(n.options.shadow.type=n.options.shadow.type||\"outer\",n.options.shadow.blur=B(n.options.shadow.blur||8),n.options.shadow.offset=B(n.options.shadow.offset||4),n.options.shadow.angle=Math.round(6e4*(n.options.shadow.angle||270)),n.options.shadow.opacity=Math.round(1e5*(n.options.shadow.opacity||.75)),n.options.shadow.color=n.options.shadow.color||nt.color,E=(E=(E=(E=(E=(E+=\"\")+\"')+'')+''),E=(E+=\"\")+xt(n)+\"\";break;case k.image:var v,b,x,w,_=n.options.sizing,C=n.options.rounding,P=o,S=i;E=(E=E+\"\"+\" \")+''),n.hyperlink&&n.hyperlink.url&&(E+='')),n.hyperlink&&n.hyperlink.slide&&(E+='')),E=(E=(E=E+\" \"+' ')+(\" \"+wt(e)+\"\"))+\" \"+\"\",E=(L._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0]&&\"svg\"===(L._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0].extn?(E=(E+='')+(n.options.transparency?' '):\"\")+' ')+' ':(E+='')+(n.options.transparency?' '):\"\")+\"\",_&&_.type?(v=_.w?F(_.w,\"X\",L._presLayout):o,b=_.h?F(_.h,\"Y\",L._presLayout):i,x=F(_.x||0,\"X\",L._presLayout),w=F(_.y||0,\"Y\",L._presLayout),E+=gt[_.type]({w:P,h:S},{w:v,h:b,x:x,y:w}),P=v,S=b):E+=\" \",E=(E=(E=(E=(E+=\"\")+\"\"+(\" \"))+(' ')+(' '))+\" \"+(' '))+\"\"+\"\";break;case k.media:E=\"online\"===n.mtype?(E=(E=(E=(E=(E+=\" \")+'')+\" \")+' ')+' ')+\" \")+' ':(E=(E=(E=(E=(E=(E+=\" \")+'')+' ')+' ')+' ')+' ')+\" \")+' ';break;case k.chart:E=(E=(E=(E=(E=(E=(E=E+\"\"+\" \")+' ')+\" \")+\" \".concat(wt(e),\"\")+\" \")+' '))+' '+' ')+' ')+\" \")+\" \"+\"\";break;default:E+=\"\"}}),L._slideNumberProps&&(L._slideNumberProps.align||(L._slideNumberProps.align=\"left\"),E=E+(' \",(L._slideNumberProps.fontFace||L._slideNumberProps.fontSize||L._slideNumberProps.color)&&(E+=''),L._slideNumberProps.color&&(E+=M(L._slideNumberProps.color)),L._slideNumberProps.fontFace&&(E+='')),E+=\"\"),E+=\"\",L._slideNumberProps.align.startsWith(\"l\")?E+='':L._slideNumberProps.align.startsWith(\"c\")?E+='':L._slideNumberProps.align.startsWith(\"r\")?E+='':E+='',E=(E+=''))+\"\".concat(L._slideNum,'')+\"\"),E=E+\"\"+\"\"}function At(t,e){var r=0,n=''+u+'';return t._rels.forEach(function(t){r=Math.max(r,t.rId),-1':n+='':-1')}),(t._relsChart||[]).forEach(function(t){r=Math.max(r,t.rId),n+=''}),(t._relsMedia||[]).forEach(function(t){r=Math.max(r,t.rId),-1':-1':n+='':-1':n+='':-1':n+='')}),e.forEach(function(t,e){n+=''}),n+=\"\"}function vt(t,e){var r,n=\"\",a=\"\",o=\"\",i=\"\",s=e?\"a:lvl1pPr\":\"a:pPr\",l=B(Z),c=\"<\".concat(s).concat(t.options.rtlMode?' rtl=\"1\" ':\"\");if(t.options.align)switch(t.options.align){case\"left\":c+=' algn=\"l\"';break;case\"right\":c+=' algn=\"r\"';break;case\"center\":c+=' algn=\"ctr\"';break;case\"justify\":c+=' algn=\"just\"';break;default:c+=\"\"}return t.options.lineSpacing?a=''):t.options.lineSpacingMultiple&&(a='')),t.options.indentLevel&&!isNaN(Number(t.options.indentLevel))&&0')),t.options.paraSpaceAfter&&!isNaN(Number(t.options.paraSpaceAfter))&&0')),\"object\"==typeof t.options.bullet?(t&&t.options&&t.options.bullet&&t.options.bullet.indent&&(l=B(t.options.bullet.indent)),t.options.bullet.type?\"number\"===t.options.bullet.type.toString().toLowerCase()&&(c+=' marL=\"'.concat(t.options.indentLevel&&0')):n=t.options.bullet.characterCode?(r=\"&#x\".concat(t.options.bullet.characterCode,\";\"),!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.characterCode)&&(console.warn(\"Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!\"),r=p.DEFAULT),c+=' marL=\"'.concat(t.options.indentLevel&&0'):t.options.bullet.code?(r=\"&#x\".concat(t.options.bullet.code,\";\"),!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.code)&&(console.warn(\"Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!\"),r=p.DEFAULT),c+=' marL=\"'.concat(t.options.indentLevel&&0'):(c+=' marL=\"'.concat(t.options.indentLevel&&0'))):!0===t.options.bullet?(c+=' marL=\"'.concat(t.options.indentLevel&&0')):!1===t.options.bullet&&(c+=' indent=\"0\" marL=\"0\"',n=\"\"),t.options.tabStops&&Array.isArray(t.options.tabStops)&&(r=t.options.tabStops.map(function(t){return'')}).join(\"\"),i=\"\".concat(r,\"\")),c+=\">\"+a+o+n+i,e&&(c+=bt(t.options,!0)),c+=\"\"}function bt(t,e){var r,n,a,o,i=\"\",e=e?\"a:defRPr\":\"a:rPr\",i=(i=(i=(i=(i+=\"<\"+e+' lang=\"'+(t.lang||\"en-US\")+'\"'+(t.lang?' altLang=\"en-US\"':\"\"))+(t.fontSize?' sz=\"'+Math.round(t.fontSize)+'00\"':\"\"))+(t.hasOwnProperty(\"bold\")?' b=\"'.concat(t.bold?1:0,'\"'):\"\"))+(t.hasOwnProperty(\"italic\")?' i=\"'.concat(t.italic?1:0,'\"'):\"\"))+(t.hasOwnProperty(\"strike\")?' strike=\"'.concat(\"string\"==typeof t.strike?t.strike:\"sngStrike\",'\"'):\"\");if(\"object\"==typeof t.underline&&null!=(r=t.underline)&&r.style?i+=' u=\"'.concat(t.underline.style,'\"'):\"string\"==typeof t.underline?i+=' u=\"'.concat(t.underline,'\"'):t.hyperlink&&(i+=' u=\"sng\"'),t.baseline?i+=' baseline=\"'.concat(Math.round(50*t.baseline),'\"'):t.subscript?i+=' baseline=\"-40000\"':t.superscript&&(i+=' baseline=\"30000\"'),i=i+(t.charSpacing?' spc=\"'.concat(Math.round(100*t.charSpacing),'\" kern=\"0\"'):\"\")+' dirty=\"0\">',(t.color||t.fontFace||t.outline||\"object\"==typeof t.underline&&t.underline.color)&&(t.outline&&\"object\"==typeof t.outline&&(i+='').concat(M(t.outline.color||\"FFFFFF\"),\"\")),t.color&&(i+=M({color:t.color,transparency:t.transparency})),t.highlight&&(i+=\"\".concat(D(t.highlight),\"\")),\"object\"==typeof t.underline&&t.underline.color&&(i+=\"\".concat(M(t.underline.color),\"\")),t.glow&&(i+=\"\".concat((r=t.glow,a=\"\",n=_(n=at,r),r=Math.round(n.size*b),o=n.color,n=Math.round(1e5*n.opacity),(a+=''))+D(o,''))+\"\"),\"\")),t.fontFace&&(i+=''))),t.hyperlink){if(\"object\"!=typeof t.hyperlink)throw new Error(\"ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` \");if(!t.hyperlink.url&&!t.hyperlink.slide)throw new Error(\"ERROR: 'hyperlink requires either `url` or `slide`'\");t.hyperlink.url?i+='\":\"/>\"):t.hyperlink.slide&&(i+='\":\"/>\")),t.color&&(i+='\\t\\t\\t\\t\\t\\t\\t\\t\\t')}return i+=\"\")}function xt(r){var a=r.options||{},t=[],n=[];if(a&&r._type!==k.tablecell&&(void 0===r.text||null===r.text))return\"\";var e,o,i=r._type===k.tablecell?\"\":\"\",s=(i+=(o=\"\",e.options.fit&&(\"none\"===e.options.fit?o+=\"\":\"shrink\"===e.options.fit?o+=\"\":\"resize\"===e.options.fit&&(o+=\"\")),e.options.shrinkText&&(o+=\"\"),o=o+(!1!==e.options._bodyProp.autoFit?\"\":\"\")+\"\"):o+=' wrap=\"square\" rtlCol=\"0\">',e._type===k.tablecell?\"\":o),0===a.h&&a.line&&a.align?i+='':\"placeholder\"===r._type?i+=\"\".concat(vt(r,!0),\"\"):i+=\"\",\"string\"==typeof r.text||\"number\"==typeof r.text?t.push({text:r.text.toString(),options:a||{}}):r.text&&!Array.isArray(r.text)&&\"object\"==typeof r.text&&-1\",\"\"),r.options.align=r.options.align||a.align,r.options.lineSpacing=r.options.lineSpacing||a.lineSpacing,r.options.lineSpacingMultiple=r.options.lineSpacingMultiple||a.lineSpacingMultiple,r.options.indentLevel=r.options.indentLevel||a.indentLevel,r.options.paraSpaceBefore=r.options.paraSpaceBefore||a.paraSpaceBefore,r.options.paraSpaceAfter=r.options.paraSpaceAfter||a.paraSpaceAfter,n=vt(r,!1),i+=n.replace(\"\",\"\"),Object.entries(a).forEach(function(t){var e=t[0],t=t[1];r.options.hyperlink&&\"color\"===e||\"bullet\"===e||r.options[e]||(r.options[e]=t)}),i+=(t=r).text?\"\".concat(bt(t.options,!1),\"\").concat(I(t.text),\"\"):\"\",(!r.text&&a.fontSize||r.options.fontSize)&&(e=!0,a.fontSize=a.fontSize||r.options.fontSize)}),r._type===k.tablecell&&(a.fontSize||a.fontFace)?a.fontFace?i=(i=(i=(i+='')+''))+''))+'')+\"\":i+='':i+=e?'':''),i+=\"\"}),i+=r._type===k.tablecell?\"\":\"\"}function wt(t){if(!t)return\"\";var e=t.options&&t.options._placeholderIdx?t.options._placeholderIdx:\"\",r=t.options&&t.options._placeholderType?t.options._placeholderType:\"\";return\"\")}function _t(t){return''+u+''+I((e=\"\",t._slideObjects.forEach(function(t){t._type===k.notes&&(e+=t.text&&t.text[0]?t.text[0].text:\"\")}),e.replace(/\\r*\\n/g,u)))+''+t._slideNum+'';var e}function Ct(t,e,r){return At(t[r-1],[{target:\"../slideLayouts/slideLayout\"+function(t,e,r){for(var n=0;n \\n'),t.file(\"_rels/.rels\",'\\n'),t.file(\"docProps/app.xml\",'Microsoft Excel0falseWorksheets1Sheet1\\n'),t.file(\"docProps/core.xml\",'PptxGenJSEly, Brent'+(new Date).toISOString()+''+(new Date).toISOString()+\"\\n\"),t.file(\"xl/_rels/workbook.xml.rels\",'\\n'),t.file(\"xl/styles.xml\",'\\n'),t.file(\"xl/theme/theme1.xml\",''),t.file(\"xl/workbook.xml\",'\\n'),t.file(\"xl/worksheets/_rels/sheet1.xml.rels\",'\\n'),''),o=(p.opts._type===d.BUBBLE?n+='':p.opts._type===d.SCATTER?n+='':n=n+('',p.opts._type===d.BUBBLE?f.forEach(function(t,e){0===e?n+=\"X-Axis\":n=(n+=\"\"+I(t.name||\" \")+\"\")+\"\"+I(\"Size \"+e)+\"\"}):f.forEach(function(t){n+=\"\"+I((t.name||\" \").replace(\"X-Axis\",\"X-Values\"))+\"\"}),p.opts._type!==d.BUBBLE&&p.opts._type!==d.SCATTER&&f[0].labels.forEach(function(t){n+=\"\"+I(t)+\"\"}),n+=\"\\n\",t.file(\"xl/sharedStrings.xml\",n),''),i=(p.opts._type!==d.BUBBLE&&(p.opts._type===d.SCATTER?(o=(o+='')+'',f.forEach(function(t,e){o+=''})):(o=(o+='
')+'',f.forEach(function(t,e){o+=''}))),o=(o+=\"\")+''+\"
\",t.file(\"xl/tables/table1.xml\",o),'');if(i+='',p.opts._type===d.BUBBLE?i+='':p.opts._type===d.SCATTER?i+='':i+='',i=i+''+'',p.opts._type===d.BUBBLE){for(var i=(i=(i=(i+=\"\")+(''))+\"\"+\"\")+('')+'0',s=1;s')+\"\"+s+\"\";i+=\"\",f[0].values.forEach(function(t,e){i=i+''+t+\"\";for(var r=1,n=1;n')+\"\"+(f[n].values[e]||\"\")+\"\")+'')+\"\"+(f[n].sizes[e]||\"\")+\"\",r++;i+=\"\"})}else if(p.opts._type===d.SCATTER){i=(i=(i=(i+=\"\")+(''))+\"\"+\"\")+('')+'0';for(var l=1;l')+\"\"+l+\"\";i+=\"\",f[0].values.forEach(function(t,e){i=i+(''+t+\"\";for(var r=1;r')+\"\"+(f[r].values[e]||0===f[r].values[e]?f[r].values[e]:\"\")+\"\";i+=\"\"})}else{i=(i=(i=i+\"\"+'')+\"\"+\"\")+('')+'0';for(var c=1;c<=f.length;c++)i=(i+='')+\"\"+c+\"\";i+=\"\",f[0].labels.forEach(function(t,e){i=(i=i+('')+\"\"+(f.length+e+1)+\"\";for(var r=0;r')+\"\"+(f[r].values[e]||\"\")+\"\";i+=\"\"})}i+='\\n',t.file(\"xl/worksheets/sheet1.xml\",i),t.generateAsync({type:\"base64\"}).then(function(t){u.file(\"ppt/embeddings/Microsoft_Excel_Worksheet\"+p.globalId+\".xlsx\",t,{base64:!0}),u.file(\"ppt/charts/_rels/\"+p.fileName+\".rels\",''),u.file(\"ppt/charts/\"+p.fileName,function(a){var o='',i=!1;o+='',a.opts.showTitle?o=o+Dt({title:a.opts.title||\"Chart Title\",color:a.opts.titleColor,fontFace:a.opts.titleFontFace,fontSize:a.opts.titleFontSize||tt,titleAlign:a.opts.titleAlign,titleBold:a.opts.titleBold,titlePos:a.opts.titlePos,titleRotate:a.opts.titleRotate})+'':o+='';a.opts._type===d.BAR3D&&(o=(o=(o=(o=(o+=\"\")+' ')+' ')+' ')+' ');o+=\"\",a.opts.layout?o=(o=(o=(o=(o+=' ')+' ')+' ')+' ')+' ':o+=\"\";Array.isArray(a.opts._type)?a.opts._type.forEach(function(t){var e=_(a.opts,t.options),r=e.secondaryValAxis?ot:g,n=e.secondaryCatAxis?st:it;i=i||e.secondaryValAxis,o+=Ot(t.type,t.data,e,r,n)}):o+=Ot(a.opts._type,a.data,a.opts,g,it);if(a.opts._type!==d.PIE&&a.opts._type!==d.DOUGHNUT){if(a.opts.valAxes&&1 ')+' ')+' ')+' ')+(\"none\"!==e.serGridLine.style?Mt(e.serGridLine):\"\"),e.showSerAxisTitle&&(n+=Dt({color:e.serAxisTitleColor,fontFace:e.serAxisTitleFontFace,fontSize:e.serAxisTitleFontSize,titleRotate:e.serAxisTitleRotate,title:e.serAxisTitle||\"Axis Title\"}));n=(n=(n=(n=(n=(n=(n=(n=n+' ')+' ')+' ')+(!1===e.serAxisLineShow?\"\":\"\"+D(e.serAxisLineColor||h.color)+\"\")+' ')+' '))+\" \"+D(e.serAxisLabelColor||m)+\"\")+' ')+' ')+' ',e.serAxisLabelFrequency&&(n+=' ');e.serLabelFormatCode&&([\"serAxisBaseTimeUnit\",\"serAxisMajorTimeUnit\",\"serAxisMinorTimeUnit\"].forEach(function(t){!e[t]||\"string\"==typeof e[t]&&-1!==[\"days\",\"months\",\"years\"].indexOf(t.toLowerCase())||(console.warn(\"`\"+t+\"` must be one of: 'days','months','years' !\"),e[t]=null)}),e.serAxisBaseTimeUnit&&(n+=' '),e.serAxisMajorTimeUnit&&(n+=' '),e.serAxisMinorTimeUnit&&(n+=' '),e.serAxisMajorUnit&&(n+=' '),e.serAxisMinorUnit&&(n+=' '));return n+=\"\"}(a.opts,lt,g)))}a.opts.showDataTable&&(o=(o=(o=(o=(o=(o+=\"\")+' ')+' ')+' ')+' \\t \\t \\t \\t\\t')+' ')+'\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t\\t\\t\\t\\t \\t');o=(o=(o+=\" \")+(a.opts.fill?M(a.opts.fill):\"\"))+(a.opts.border?'').concat(M(a.opts.border.color),\"\"):\"\")+\" \",a.opts.showLegend&&(o=(o+=\"\")+'',(a.opts.legendFontFace||a.opts.legendFontSize||a.opts.legendColor)&&(o=(o+=\" \")+(a.opts.legendFontSize?'':\"\"),a.opts.legendColor&&(o+=M(a.opts.legendColor)),a.opts.legendFontFace&&(o+=''),a.opts.legendFontFace&&(o+=''),o+=' '),o+=\"\");o=(o+=' ')+' ',a.opts._type===d.SCATTER&&(o+='');return o+=' '}(p)),e(null)}).catch(function(t){r(t)})})}function Ot(n,a,o,t,e){var i=\"\";switch(n){case d.AREA:case d.BAR:case d.BAR3D:case d.LINE:case d.RADAR:i+=\"\",n===d.AREA&&\"stacked\"===o.barGrouping&&(i+=''),n!==d.BAR&&n!==d.BAR3D||(i=(i+='')+''),n===d.RADAR&&(i+=''),i+='';var s=-1;a.forEach(function(t){s++;var e=t.index,r=(i=(i=(i=(i=(i=(i+=\"\")+(' ')+(' '))+\" \"+\" \")+(\" Sheet1!$\"+S(e+1)+\"$1\"))+(' '+I(t.name)+\"\")+\" \")+\" \"+' ',o.chartColors?o.chartColors[s%o.chartColors.length]:null);i+=\" \",\"transparent\"===r?i+=\"\":o.chartColorsOpacity?i+=\"\"+D(r,''))+\"\":i+=\"\"+D(r)+\"\",n===d.LINE||n===d.RADAR?0===o.lineSize?i+=\"\":i=(i+=''+D(r)+\"\")+'':o.dataBorder&&(i+=''+D(o.dataBorder.color)+''),i=i+L(o.shadow,c)+\" \",n!==d.RADAR&&(i=(i+=\" \")+' '),i=(i=(i=(i=(o.dataLabelBkgrdColors?(i+=\" \")+\" \"+D(r)+\" \":i)+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i=(i+=' ')+' ')+' ')+\" \"),n!==d.LINE&&n!==d.RADAR||(i=(i+=\"\")+' ',o.lineDataSymbolSize&&(i+=' '),i=(i=(i+=\" \")+\" \"+D(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e])+\"\")+' '+D(o.lineDataSymbolLineColor||r)+' '),n!==d.BAR&&n!==d.BAR3D||1!==a.length||!(o.chartColors&&o.chartColors!==ct&&1\")+' ',0===o.lineSize?i+=\"\":i=n===d.BAR?(i+=\"\")+' ':(i+=\" \")+' ',i=i+L(o.shadow,c)+\" \"}),i+=\"\",o.catLabelFormatCode?(i=(i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(t.labels.length+1)+\" \")+\" \"+(o.catLabelFormatCode||\"General\")+\"\")+' ',t.labels.forEach(function(t,e){i+=''+I(t)+\"\"}),i+=\" \"):(i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(t.labels.length+1)+\" \")+'\\t ',t.labels.forEach(function(t,e){i+=''+I(t)+\"\"}),i+=\" \"),i=(i=(i=(i=i+\"\"+\" \")+\" Sheet1!$\"+S(e+1)+\"$2:$\"+S(e+1)+\"$\"+(t.labels.length+1)+\" \")+\" \"+(o.valLabelFormatCode||o.dataTableFormatCode||\"General\")+\"\")+' ',t.values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i+=\" \",n===d.LINE&&(i+=''),i+=\"\"}),i=(i=(i=(i=(i+=\" \")+' ')+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i=(i+=' ')+' ')+' ')+\" \",n===d.BAR?i=(i+=' ')+' ':n===d.BAR3D?i=(i=(i+=' ')+' ')+' ':n===d.LINE&&(i+=' '),i=(i=i+(' ')+(' '))+(' ')+(\"\");break;case d.SCATTER:i=(i+=\"\")+''+'',s=-1,a.filter(function(t,e){return 0\")+' ')+\" Sheet1!$\"+y[t+1]+\"$1\")+' '+r.name+\" \";var n,e=o.chartColors[s%o.chartColors.length];\"transparent\"===e?i+=\"\":o.chartColorsOpacity?i+=\"\"+D(e,'')+\"\":i+=\"\"+D(e)+\"\",0===o.lineSize?i+=\"\":i=(i+=''+D(e)+\"\")+'',i=(i=(i+=L(o.shadow,c))+\" \"+\"\")+' ',o.lineDataSymbolSize&&(i+=' '),i=(i=(i+=\" \")+\" \"+D(o.chartColors[t+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):t])+\"\")+' '+D(o.lineDataSymbolLineColor||o.chartColors[s%o.chartColors.length])+' ',o.showLabel&&(n=ft(\"-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"),!r.labels||\"custom\"!==o.dataLabelFormatScatter&&\"customXY\"!==o.dataLabelFormatScatter||(i+=\"\",r.labels.forEach(function(t,e){\"custom\"!==o.dataLabelFormatScatter&&\"customXY\"!==o.dataLabelFormatScatter||(i=(i=(i=(i+=\" \")+' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t')+' \\t\\t')+\" \\t\\t\"+I(t)+\" \\t\",i=(\"customXY\"!==o.dataLabelFormatScatter||/^ *$/.test(t)?i:(i=(i=(i=(i=(i=(i=(i=(i=(i=(i+=\" \\t\")+' \\t\\t \\t\\t ( \\t')+' \\t')+' \\t\\t \\t\\t \\t\\t\\t \\t\\t')+\" \\t\\t[\"+I(r.name)+\" \\t \\t\")+' \\t\\t \\t\\t, \\t')+' \\t')+' \\t\\t \\t\\t \\t\\t\\t \\t\\t')+\" \\t\\t[\"+I(r.name)+\"] \\t \\t\")+' \\t\\t \\t\\t) \\t')+' \\t')+\" \\t \\t \\t \\t\\t \\t \\t \",o.dataLabelPosition&&(i+=' '),i=(i+=' \\t ')+'\\t\\t\\t \\t\\t')}),i+=\"\"),\"XY\"===o.dataLabelFormatScatter&&(i+='\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t \\t\\t\\t \\t\\t \\t\\t\\t\\t',o.dataLabelPosition&&(i+=' '),i=(i=(i+='\\t')+' '))+' ')+'\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t')),1===a.length&&o.chartColors!==ct&&r.values.forEach(function(t,e){t=t<0?o.invertedColors||o.chartColors||ct:o.chartColors||[];i=(i+=\" \")+' ',0===o.lineSize?i+=\"\":i=(i+=\"\")+' ',i=i+L(o.shadow,c)+\" \"}),i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(a[0].values.length+1)+\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i=(i=(i+=\" \")+\" Sheet1!$\"+S(t+1)+\"$2:$\"+S(t+1)+\"$\"+(a[0].values.length+1)+\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:\"\")+\"\"}),i=(i+=\" \")+''}),i=(i=(i=(i=(i+=\" \")+' ')+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i+=' ')+' ',i=(i+=' ')+(' ')+(\"\");break;case d.BUBBLE:var i=i+(\"\")+'',s=-1,l=1;a.filter(function(t,e){return 0\")+' ')+\" Sheet1!$\"+y[l]+\"$1\")+' '+r.name+\" \";var e=o.chartColors[s%o.chartColors.length];\"transparent\"===e?i+=\"\":o.chartColorsOpacity?i+=\"\"+D(e,'')+\"\":i+=\"\"+D(e)+\"\",0===o.lineSize?i+=\"\":o.dataBorder?i+=''+D(o.dataBorder.color)+'':i=(i+=''+D(e)+\"\")+'',i=i+L(o.shadow,c)+\"\",i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(a[0].values.length+1)+\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i=(i+=\" \")+\" Sheet1!$\"+S(l)+\"$2:$\"+S(l)+\"$\"+(a[0].values.length+1)+\"\",l++,i=(i+=\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:\"\")+\"\"}),i=(i+=\" \")+\" Sheet1!$\"+S(l)+\"$2:$\"+S(t+2)+\"$\"+(r.sizes.length+1)+\"\",l++,i=(i+=\" General\")+'\\t ',r.sizes.forEach(function(t,e){i+=''+(t||\"\")+\"\"}),i+=' '}),i=(i=(i=(i=(i+=\" \")+' ')+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i+=' ')+' ',i=(i+=' ')+(' ')+(\"\");break;case d.DOUGHNUT:case d.PIE:var r=a[0];i=(i=(i=(i=(i=(i=(i=(i=(i=i+(\"\")+' ')+\"\"+' ')+' '+\" \")+\" \"+\" Sheet1!$B$1\")+\" \"+' ')+(' '+I(r.name)+\"\"))+\" \"+\" \")+\" \"+\" \")+' '+' ',o.dataNoEffects?i+=\"\":i+=L(o.shadow,c),i+=\" \",r.labels.forEach(function(t,e){i=(i=(i+=\"\")+' ')+' ')+\"\".concat(D(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e]),\"\"),o.dataBorder&&(i+='').concat(D(o.dataBorder.color),'')),i=i+L(o.shadow,c)+\" \"}),i+=\"\",r.labels.forEach(function(t,e){i=(i=(i=(i=(i=(i+=\"\")+' '))+' ')+\" \")+' '))+\" \"+D(o.dataLabelColor||m)+\"\")+' ')+\" \",n===d.PIE&&o.dataLabelPosition&&(i+=' ')),i=(i=(i=(i+=' ')+' ')+' ')+' '}),i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=i+' ')+\"\\t\")+\"\\t \"+\"\\t \")+\"\\t \"+\"\\t\\t\")+('\\t\\t ')+'\\t\\t\\t')+\"\\t\\t \"+\"\\t\\t\")+\"\\t \"+\"\\t\")+(n===d.PIE?'':\"\"))+'\\t'+'\\t')+'\\t'+'\\t')+'\\t'+'\\t')+' ')+\"\")+\"\"+\" \")+(\" Sheet1!$A$2:$A$\"+(r.labels.length+1)+\"\")+\" \")+('\\t '),r.labels.forEach(function(t,e){i+=''+I(t)+\"\"}),i=(i=(i=(i=(i+=\" \")+\" \"+\"\")+\" \"+\" \")+(\" Sheet1!$B$2:$B$\"+(r.labels.length+1)+\"\")+\" \")+('\\t '),r.values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i=(i=(i=i+\" \"+\" \")+\" \"+\" \")+' '),n===d.DOUGHNUT&&(i+=' '),i+=\"\";break;default:i+=\"\"}return i}function Bt(e,t,r){var n=\"\";return e._type===d.SCATTER||e._type===d.BUBBLE?n+=\"\":n+=\"\",n=(n+=' ')+\" \"+(''),!e.catAxisMaxVal&&0!==e.catAxisMaxVal||(n+=''),!e.catAxisMinVal&&0!==e.catAxisMinVal||(n+=''),n=(n=(n=n+\"\"+(' '))+(' '))+(\"none\"!==e.catGridLine.style?Mt(e.catGridLine):\"\"),e.showCatAxisTitle&&(n+=Dt({color:e.catAxisTitleColor,fontFace:e.catAxisTitleFontFace,fontSize:e.catAxisTitleFontSize,titleRotate:e.catAxisTitleRotate,title:e.catAxisTitle||\"Axis Title\"})),e._type===d.SCATTER||e._type===d.BUBBLE?n+=' ':n+=' ',e._type===d.SCATTER?n+=' ':n=(n=(n+=' ')+' ')+' ',n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n+=\" \")+(' '))+(!1===e.catAxisLineShow?\"\":\"\"+D(e.catAxisLineColor||h.color)+\"\"))+(' '))+\" \"+\" \")+\" \"+\" \")+(\" \")+\" \")+\" \"+\" \")+(' '))+(\" \"+D(e.catAxisLabelColor||m)+\"\"))+(' '))+\" \"+\" \")+(' ')+\" \")+\" \"+(' '))+(\" ')+' ')+' '+' ',e.catAxisLabelFrequency&&(n+=' '),!e.catLabelFormatCode&&e._type!==d.SCATTER&&e._type!==d.BUBBLE||(e.catLabelFormatCode&&([\"catAxisBaseTimeUnit\",\"catAxisMajorTimeUnit\",\"catAxisMinorTimeUnit\"].forEach(function(t){!e[t]||\"string\"==typeof e[t]&&-1!==[\"days\",\"months\",\"years\"].indexOf(e[t].toLowerCase())||(console.warn(\"`\"+t+\"` must be one of: 'days','months','years' !\"),e[t]=null)}),e.catAxisBaseTimeUnit&&(n+=''),e.catAxisMajorTimeUnit&&(n+=''),e.catAxisMinorTimeUnit&&(n+='')),e.catAxisMajorUnit&&(n+=''),e.catAxisMinorUnit&&(n+='')),e._type===d.SCATTER||e._type===d.BUBBLE?n+=\"\":n+=\"\",n}function Nt(t,e){var r=e===g?\"col\"===t.barDir?\"l\":\"b\":\"col\"!==t.barDir?\"r\":\"t\",n=\"\",a=\"r\"==r||\"t\"==r?\"max\":\"autoZero\",o=e===g?it:st,n=(n+=\"\")+(' ')+\" \";return t.valAxisLogScaleBase&&(n+=' ')),n+=' ',!t.valAxisMaxVal&&0!==t.valAxisMaxVal||(n+=''),!t.valAxisMinVal&&0!==t.valAxisMinVal||(n+=''),n=(n+=\" \")+(' ')+(' '),\"none\"!==t.valGridLine.style&&(n+=Mt(t.valGridLine)),t.showValAxisTitle&&(n+=Dt({color:t.valAxisTitleColor,fontFace:t.valAxisTitleFontFace,fontSize:t.valAxisTitleFontSize,titleRotate:t.valAxisTitleRotate,title:t.valAxisTitle||\"Axis Title\"})),n+=''),t._type===d.SCATTER?n+=' ':n=(n=(n+=' ')+' ')+' ',n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n+=\" \")+(' '))+(!1===t.valAxisLineShow?\"\":\"\"+D(t.valAxisLineColor||h.color)+\"\"))+(' '))+\" \"+\" \")+\" \"+\" \")+(\" \")+\" \")+\" \"+\" \")+(' '))+(\" \"+D(t.valAxisLabelColor||m)+\"\"))+(' ')+\" \")+\" \"+(' '))+\" \"+\" \")+(' ')+(' '))+(' '),t.valAxisMajorUnit&&(n+=' '),t.valAxisDisplayUnit&&(n+='').concat(t.valAxisDisplayUnitLabel?\"\":\"\",\"\")),n+=\"\"}function Dt(t){var e=\"left\"===t.titleAlign||\"right\"===t.titleAlign?''):\"\",r=t.titleRotate?''):\"\",n=t.fontSize?'sz=\"'+Math.round(100*t.fontSize)+'\"':\"\",a=!0===t.titleBold?1:0,o=t.titlePos&&t.titlePos.x&&t.titlePos.y?''):\"\";return\"\\n\\t \\n\\t \\n\\t \".concat(r,\"\\n\\t \\n\\t \\n\\t \").concat(e,\"\\n\\t \\n\\t ').concat(D(t.color||m),'\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \\n\\t ').concat(D(t.color||m),'\\n\\t \\n\\t \\n\\t ').concat(I(t.title)||\"\",\"\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \").concat(o,'\\n\\t \\n\\t')}function S(t){var e=\"\";return e=t<=26?y[t]:(e+=y[Math.floor(t/y.length)-1])+y[t%y.length]}function L(t,e){if(!t)return\"\";if(\"object\"!=typeof t)return console.warn(\"`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`\"),\"\";var r=\"\",e=_(e,t),t=e.type||\"outer\",n=B(e.blur),a=B(e.offset),o=Math.round(6e4*e.angle),i=e.color,s=Math.round(1e5*e.opacity);return(r+=\"')+('')+('')+(\"\")+\"\"}function Mt(t){var e=\"\";return(e+=\" \")+(' ')+(' ')+(' ')+\" \"+\" \"+\"\"}function zt(t){var o=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null,i=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"https\"):null,e=[],s=t._relsMedia.filter(function(t){return\"online\"!==t.type&&!t.data&&(!t.path||t.path&&-1===t.path.indexOf(\"preencoded\"))}),r=[];return s.forEach(function(t){-1===r.indexOf(t.path)?(t.isDuplicate=!1,r.push(t.path)):t.isDuplicate=!0}),s.filter(function(t){return!t.isDuplicate}).forEach(function(a){e.push(new Promise(function(r,n){var e;if(o&&0!==a.path.indexOf(\"http\"))try{var t=o.readFileSync(a.path);a.data=Buffer.from(t).toString(\"base64\"),s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),r(\"done\")}catch(t){a.data=A,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),n('ERROR: Unable to read media: \"'+a.path+'\"\\n'+t.toString())}else o&&i&&0===a.path.indexOf(\"http\")?i.get(a.path,function(t){var e=\"\";t.setEncoding(\"binary\"),t.on(\"data\",function(t){return e+=t}),t.on(\"end\",function(){a.data=Buffer.from(e,\"binary\").toString(\"base64\"),s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),r(\"done\")}),t.on(\"error\",function(t){a.data=A,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),n(\"ERROR! Unable to load image (https.get): \".concat(a.path))})}):((e=new XMLHttpRequest).onload=function(){var t=new FileReader;t.onloadend=function(){a.data=t.result,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),a.isSvgPng?Ut(a).then(function(){r(\"done\")}).catch(function(t){n(t)}):r(\"done\")},t.readAsDataURL(e.response)},e.onerror=function(t){a.data=A,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),n(\"ERROR! Unable to load image (xhr.onerror): \".concat(a.path))},e.open(\"GET\",a.path),e.responseType=\"blob\",e.send())}))}),t._relsMedia.filter(function(t){return t.isSvgPng&&t.data}).forEach(function(t){o?(t.data=A,e.push(Promise.resolve().then(function(){return\"done\"}))):e.push(Ut(t))}),e}function Ut(a){return new Promise(function(r,e){var n=new Image;n.onload=function(){n.width+n.height===0&&n.onerror(\"h/w=0\");var t=document.createElement(\"CANVAS\"),e=t.getContext(\"2d\");t.width=n.width,t.height=n.height,e.drawImage(n,0,0);try{a.data=t.toDataURL(a.type),r(\"done\")}catch(t){n.onerror(t)}},n.onerror=function(t){a.data=A,e(\"ERROR! Unable to load image (image.onerror): \".concat(a.path))},n.src=\"string\"==typeof a.data?a.data:A})}function r(){var c=this;this._version=\"3.11.0-beta-20220501-1310\",this._alignH=G,this._alignV=W,this._chartType=U,this._outputType=T,this._schemeColor=a,this._shapeType=j,this._charts=d,this._colors=H,this._shapes=l,this.addNewSlide=function(t){var e=0'+u,r+='',a.forEach(function(t){(t._relsMedia||[]).forEach(function(t){\"image\"!==t.type&&\"online\"!==t.type&&\"chart\"!==t.type&&\"m4v\"!==t.extn&&-1===r.indexOf(t.type)&&(r+='')})}),r+='',a.forEach(function(t,e){r=r+'',t._relsChart.forEach(function(t){r+=' '})}),r+='',e.forEach(function(t,e){r+='',(t._relsChart||[]).forEach(function(t){r+=' '})}),a.forEach(function(t,e){r+=' '}),t._relsChart.forEach(function(t){r+=' '}),t._relsMedia.forEach(function(t){\"image\"!==t.type&&\"online\"!==t.type&&\"chart\"!==t.type&&\"m4v\"!==t.extn&&-1===r.indexOf(t.type)&&(r+=' ')}),r+=' ')),l.file(\"_rels/.rels\",''.concat(u,'\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t')),l.file(\"docProps/app.xml\",(e=c.slides,a=c.company,''.concat(u,'\\n\\t0\\n\\t0\\n\\tMicrosoft Office PowerPoint\\n\\tOn-screen Show (16:9)\\n\\t0\\n\\t').concat(e.length,\"\\n\\t\").concat(e.length,'\\n\\t0\\n\\t0\\n\\tfalse\\n\\t\\n\\t\\t\\n\\t\\t\\tFonts Used\\n\\t\\t\\t2\\n\\t\\t\\tTheme\\n\\t\\t\\t1\\n\\t\\t\\tSlide Titles\\n\\t\\t\\t').concat(e.length,'\\n\\t\\t\\n\\t\\n\\t\\n\\t\\t\\n\\t\\t\\tArial\\n\\t\\t\\tCalibri\\n\\t\\t\\tOffice Theme\\n\\t\\t\\t').concat(e.map(function(t,e){return\"Slide \"+(e+1)+\"\\n\"}).join(\"\"),\"\\n\\t\\t\\n\\t\\n\\t\").concat(a,\"\\n\\tfalse\\n\\tfalse\\n\\tfalse\\n\\t16.0000\\n\\t\"))),l.file(\"docProps/core.xml\",(t=c.title,e=c.subject,a=c.author,o=c.revision,'\\n\\t\\n\\t\\t'.concat(I(t),\"\\n\\t\\t\").concat(I(e),\"\\n\\t\\t\").concat(I(a),\"\\n\\t\\t\").concat(I(a),\"\\n\\t\\t\").concat(o,'\\n\\t\\t').concat((new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\"),'\\n\\t\\t').concat((new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\"),\"\\n\\t\"))),l.file(\"ppt/_rels/presentation.xml.rels\",function(t){for(var e=1,r=(r=''+u)+''+'',n=1;n<=t.length;n++)r+='';return r+=''}(c.slides)),l.file(\"ppt/theme/theme1.xml\",''.concat(u,'')),l.file(\"ppt/presentation.xml\",function(t){var e=(e=''.concat(u)+''))+''+\"\";t.slides.forEach(function(t){return e+='')}),e=(e=(e=(e+=\"\")+''))+''))+'')+\"\";for(var r=1;r<10;r++)e+=\"')+''+\"\");return e+=\"\",t.sections&&0',t.sections.forEach(function(t){e+=''),t._slides.forEach(function(t){return e+='')}),e+=\"\"}),e+=''),e+=\"\"}(c)),l.file(\"ppt/presProps.xml\",''.concat(u,'')),l.file(\"ppt/tableStyles.xml\",''.concat(u,'')),l.file(\"ppt/viewProps.xml\",''.concat(u,'')),c.slideLayouts.forEach(function(t,e){l.file(\"ppt/slideLayouts/slideLayout\"+(e+1)+\".xml\",'\\n\\t\\t\\n\\t\\t'.concat(yt(t),\"\\n\\t\\t\")),l.file(\"ppt/slideLayouts/_rels/slideLayout\"+(e+1)+\".xml.rels\",(t=e+1,At(c.slideLayouts[t-1],[{target:\"../slideMasters/slideMaster1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster\"}])))}),c.slides.forEach(function(t,e){var r;l.file(\"ppt/slides/slide\"+(e+1)+\".xml\",(r=t,''.concat(u)+'\")+\"\".concat(yt(r))+\"\")),l.file(\"ppt/slides/_rels/slide\"+(e+1)+\".xml.rels\",Ct(c.slides,c.slideLayouts,e+1)),l.file(\"ppt/notesSlides/notesSlide\"+(e+1)+\".xml\",_t(t)),l.file(\"ppt/notesSlides/_rels/notesSlide\"+(e+1)+\".xml.rels\",'\\n\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t'))}),l.file(\"ppt/slideMasters/slideMaster1.xml\",(n=c.masterSlide,t=(t=c.slideLayouts).map(function(t,e){return''}),e=''+u,(e+='')+yt(n)+''+t.join(\"\")+' ')),l.file(\"ppt/slideMasters/_rels/slideMaster1.xml.rels\",(a=c.masterSlide,(o=(o=c.slideLayouts).map(function(t,e){return{target:\"../slideLayouts/slideLayout\".concat(e+1,\".xml\"),type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout\"}})).push({target:\"../theme/theme1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\"}),At(a,o))),l.file(\"ppt/notesMasters/notesMaster1.xml\",''.concat(u,'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›')),l.file(\"ppt/notesMasters/_rels/notesMaster1.xml.rels\",''.concat(u,'\\n\\t\\t\\n\\t\\t')),c.slideLayouts.forEach(function(t){c.createChartMediaRels(t,l,s)}),c.slides.forEach(function(t){c.createChartMediaRels(t,l,s)}),c.createChartMediaRels(c.masterSlide,l,s),Promise.all(s).then(function(){return\"STREAM\"===i.outputType?l.generateAsync({type:\"nodebuffer\",compression:i.compression?\"DEFLATE\":\"STORE\"}):i.outputType?l.generateAsync({type:i.outputType}):l.generateAsync({type:\"blob\",compression:i.compression?\"DEFLATE\":\"STORE\"})})})},this.LAYOUTS={LAYOUT_4x3:{name:\"screen4x3\",width:9144e3,height:6858e3},LAYOUT_16x9:{name:\"screen16x9\",width:9144e3,height:5143500},LAYOUT_16x10:{name:\"screen16x10\",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:\"custom\",width:12192e3,height:6858e3}},this._author=\"PptxGenJS\",this._company=\"PptxGenJS\",this._revision=\"1\",this._subject=\"PptxGenJS Presentation\",this._title=\"PptxGenJS Presentation\",this._presLayout={name:this.LAYOUTS[f].name,_sizeW:this.LAYOUTS[f].width,_sizeH:this.LAYOUTS[f].height,width:this.LAYOUTS[f].width,height:this.LAYOUTS[f].height},this._rtlMode=!1,this._slideLayouts=[{_margin:w,_name:et,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(r.prototype,\"layout\",{get:function(){return this._layout},set:function(t){var e=this.LAYOUTS[t];if(!e)throw new Error(\"UNKNOWN-LAYOUT\");this._layout=t,this._presLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"version\",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"author\",{get:function(){return this._author},set:function(t){this._author=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"company\",{get:function(){return this._company},set:function(t){this._company=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"revision\",{get:function(){return this._revision},set:function(t){this._revision=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"subject\",{get:function(){return this._subject},set:function(t){this._subject=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"title\",{get:function(){return this._title},set:function(t){this._title=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"rtlMode\",{get:function(){return this._rtlMode},set:function(t){this._rtlMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"masterSlide\",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"slides\",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"sections\",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"slideLayouts\",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"AlignH\",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"AlignV\",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"ChartType\",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"OutputType\",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"presLayout\",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"SchemeColor\",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"ShapeType\",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"charts\",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"colors\",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"shapes\",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),r.prototype.stream=function(t){t=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression;return this.exportPresentation({compression:t,outputType:\"STREAM\"})},r.prototype.write=function(t){var e=\"object\"==typeof t&&t.hasOwnProperty(\"outputType\")?t.outputType:t||null,t=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression;return this.exportPresentation({compression:t,outputType:e})},r.prototype.writeFile=function(t){var e=this,n=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null,r=(\"string\"==typeof t&&console.log(\"Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)\"),\"object\"==typeof t&&t.hasOwnProperty(\"fileName\")?t.fileName:\"string\"==typeof t?t:\"\"),t=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression,a=r?r.toString().toLowerCase().endsWith(\".pptx\")?r:r+\".pptx\":\"Presentation.pptx\";return this.exportPresentation({compression:t,outputType:n?\"nodebuffer\":null}).then(function(t){return n?new Promise(function(e,r){n.writeFile(a,t,function(t){t?r(t):e(a)})}):e.writeFileToBrowser(a,t)})},r.prototype.addSection=function(t){t?t.title||console.warn(\"addSection requires a title\"):console.warn(\"addSection requires an argument\");var e={_type:\"user\",_slides:[],title:t.title};t.order?this.sections.splice(t.order,0,e):this._sections.push(e)},r.prototype.addSlide=function(e){var r=\"string\"==typeof e?e:e&&e.masterName?e.masterName:\"\",t={_name:this.LAYOUTS[f].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1},n=(!r||(n=this.slideLayouts.filter(function(t){return t._name===r})[0])&&(t=n),new Ft({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:t}));return this._slides.push(n),e&&e.sectionTitle?(t=this.sections.filter(function(t){return t.title===e.sectionTitle})[0])?t._slides.push(n):console.warn('addSlide: unable to find section with title: \"'.concat(e.sectionTitle,'\"')):!(this.sections&&0 opts.y = \").concat(i.y)),r.addTable(t.rows,{x:i.x||f[3],y:i.y,w:Number(a)/R,colW:p,autoPage:!1}),i.addImage&&(i.addImage.options=i.addImage.options||{},i.addImage.image&&(i.addImage.image.path||i.addImage.image.data)?r.addImage({path:i.addImage.image.path,data:i.addImage.image.data,x:i.addImage.options.x,y:i.addImage.options.y,w:i.addImage.options.w,h:i.addImage.options.h}):console.warn(\"Warning: tableToSlides.addImage requires either `path` or `data`\")),i.addShape&&r.addShape(i.addShape.shape,i.addShape.options||{}),i.addTable&&r.addTable(i.addTable.rows,i.addTable.options||{}),i.addText&&r.addText(i.addText.text,i.addText.options||{})})},r}();"],"file":"pptxgen.bundle.js"} +{"version":3,"names":[],"mappings":"","sources":["pptxgen.bundle.js"],"sourcesContent":["/* PptxGenJS 3.11.0-beta @ 2022-05-01T21:07:11.428Z */\n!function(t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).JSZip=t()}(function(){return function n(a,o,i){function s(e,t){if(!o[e]){if(!a[e]){var r=\"function\"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);t=new Error(\"Cannot find module '\"+e+\"'\");throw t.code=\"MODULE_NOT_FOUND\",t}r=o[e]={exports:{}};a[e][0].call(r.exports,function(t){return s(a[e][1][t]||t)},r,r.exports,n,a,o,i)}return o[e].exports}for(var l=\"function\"==typeof require&&require,t=0;t>4,o=1>6:64,i=2>2)+f.charAt(a)+f.charAt(o)+f.charAt(i));return s.join(\"\")},r.decode=function(t){var e,r,n,a,o,i=0,s=0;if(\"data:\"===t.substr(0,\"data:\".length))throw new Error(\"Invalid base64 input, it looks like a data url.\");var l,c=3*(t=t.replace(/[^A-Za-z0-9\\+\\/\\=]/g,\"\")).length/4;if(t.charAt(t.length-1)===f.charAt(64)&&c--,t.charAt(t.length-2)===f.charAt(64)&&c--,c%1!=0)throw new Error(\"Invalid base64 input, bad content length.\");for(l=new(p.uint8array?Uint8Array:Array)(0|c);i>4,r=(15&a)<<4|(a=f.indexOf(t.charAt(i++)))>>2,n=(3&a)<<6|(o=f.indexOf(t.charAt(i++))),l[s++]=e,64!==a&&(l[s++]=r),64!==o&&(l[s++]=n);return l}},{\"./support\":30,\"./utils\":32}],2:[function(t,e,r){\"use strict\";var n=t(\"./external\"),a=t(\"./stream/DataWorker\"),o=t(\"./stream/Crc32Probe\"),i=t(\"./stream/DataLengthProbe\");function s(t,e,r,n,a){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=a}s.prototype={getContentWorker:function(){var t=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i(\"data_length\")),e=this;return t.on(\"end\",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error(\"Bug : uncompressed data size mismatch\")}),t},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo(\"compressedSize\",this.compressedSize).withStreamInfo(\"uncompressedSize\",this.uncompressedSize).withStreamInfo(\"crc32\",this.crc32).withStreamInfo(\"compression\",this.compression)}},s.createWorkerFrom=function(t,e,r){return t.pipe(new o).pipe(new i(\"uncompressedSize\")).pipe(e.compressWorker(r)).pipe(new i(\"compressedSize\")).withStreamInfo(\"compression\",e)},e.exports=s},{\"./external\":6,\"./stream/Crc32Probe\":25,\"./stream/DataLengthProbe\":26,\"./stream/DataWorker\":27}],3:[function(t,e,r){\"use strict\";var n=t(\"./stream/GenericWorker\");r.STORE={magic:\"\\0\\0\",compressWorker:function(t){return new n(\"STORE compression\")},uncompressWorker:function(){return new n(\"STORE decompression\")}},r.DEFLATE=t(\"./flate\")},{\"./flate\":7,\"./stream/GenericWorker\":28}],4:[function(t,e,r){\"use strict\";var n=t(\"./utils\"),i=function(){for(var t=[],e=0;e<256;e++){for(var r=e,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;t[e]=r}return t}();e.exports=function(t,e){return void 0!==t&&t.length?(\"string\"!==n.getTypeOf(t)?function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e[o])];return-1^t}:function(t,e,r){var n=i,a=0+r;t^=-1;for(var o=0;o>>8^n[255&(t^e.charCodeAt(o))];return-1^t})(0|e,t,t.length):0}},{\"./utils\":32}],5:[function(t,e,r){\"use strict\";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){\"use strict\";t=\"undefined\"!=typeof Promise?Promise:t(\"lie\");e.exports={Promise:t}},{lie:37}],7:[function(t,e,r){\"use strict\";var n=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Uint32Array,a=t(\"pako\"),o=t(\"./utils\"),i=t(\"./stream/GenericWorker\"),s=n?\"uint8array\":\"array\";function l(t,e){i.call(this,\"FlateWorker/\"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic=\"\\b\\0\",o.inherits(l,i),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){i.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(t){return new l(\"Deflate\",t)},r.uncompressWorker=function(){return new l(\"Inflate\",{})}},{\"./stream/GenericWorker\":28,\"./utils\":32,pako:38}],8:[function(t,e,r){\"use strict\";function A(t,e){for(var r=\"\",n=0;n>>=8;return r}function n(t,e,r,n,a,o){var i=t.file,s=t.compression,l=o!==b.utf8encode,c=v.transformTo(\"string\",o(i.name)),p=v.transformTo(\"string\",b.utf8encode(i.name)),u=i.comment,o=v.transformTo(\"string\",o(u)),f=v.transformTo(\"string\",b.utf8encode(u)),d=p.length!==i.name.length,u=f.length!==u.length,h=\"\",m=i.dir,g=i.date,y={crc32:0,compressedSize:0,uncompressedSize:0},r=(e&&!r||(y.crc32=t.crc32,y.compressedSize=t.compressedSize,y.uncompressedSize=t.uncompressedSize),0);e&&(r|=8),l||!d&&!u||(r|=2048);t=0,e=0,m&&(t|=16),\"UNIX\"===a?(e=798,t|=(65535&(l=(l=i.unixPermissions)?l:m?16893:33204))<<16):(e=20,t|=63&(i.dosPermissions||0)),a=g.getUTCHours(),a=(a=((a<<=6)|g.getUTCMinutes())<<5)|g.getUTCSeconds()/2,m=g.getUTCFullYear()-1980,m=(m=((m<<=4)|g.getUTCMonth()+1)<<5)|g.getUTCDate(),d&&(h+=\"up\"+A((l=A(1,1)+A(x(c),4)+p).length,2)+l),u&&(h+=\"uc\"+A((i=A(1,1)+A(x(o),4)+f).length,2)+i),g=\"\",g=(g=(g=(g=(g=(g=(g=(g=(g=(g+=\"\\n\\0\")+A(r,2))+s.magic)+A(a,2))+A(m,2))+A(y.crc32,4))+A(y.compressedSize,4))+A(y.uncompressedSize,4))+A(c.length,2))+A(h.length,2);return{fileRecord:w.LOCAL_FILE_HEADER+g+c+h,dirRecord:w.CENTRAL_FILE_HEADER+A(e,2)+g+A(o.length,2)+\"\\0\\0\\0\\0\"+A(t,4)+A(n,4)+c+h+o}}var v=t(\"../utils\"),a=t(\"../stream/GenericWorker\"),b=t(\"../utf8\"),x=t(\"../crc32\"),w=t(\"../signature\");function o(t,e,r,n){a.call(this,\"ZipFileWorker\"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}v.inherits(o,a),o.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},o.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;e?(t=n(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:t.fileRecord,meta:{percent:0}})):this.accumulate=!0},o.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=n(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:w.DATA_DESCRIPTOR+A((e=t).crc32,4)+A(e.compressedSize,4)+A(e.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},o.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return n.transformTo(\"string\",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=a},{\"../utils\":32}],19:[function(t,e,r){\"use strict\";var n=t(\"./Uint8ArrayReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./Uint8ArrayReader\":21}],20:[function(t,e,r){\"use strict\";var n=t(\"./DataReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},a.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},a.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./DataReader\":18}],21:[function(t,e,r){\"use strict\";var n=t(\"./ArrayReader\");function a(t){n.call(this,t)}t(\"../utils\").inherits(a,n),a.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{\"../utils\":32,\"./ArrayReader\":17}],22:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"../support\"),o=t(\"./ArrayReader\"),i=t(\"./StringReader\"),s=t(\"./NodeBufferReader\"),l=t(\"./Uint8ArrayReader\");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),\"string\"!==e||a.uint8array?\"nodebuffer\"===e?new s(t):a.uint8array?new l(n.transformTo(\"uint8array\",t)):new o(n.transformTo(\"array\",t)):new i(t)}},{\"../support\":30,\"../utils\":32,\"./ArrayReader\":17,\"./NodeBufferReader\":19,\"./StringReader\":20,\"./Uint8ArrayReader\":21}],23:[function(t,e,r){\"use strict\";r.LOCAL_FILE_HEADER=\"PK\u0003\u0004\",r.CENTRAL_FILE_HEADER=\"PK\u0001\u0002\",r.CENTRAL_DIRECTORY_END=\"PK\u0005\u0006\",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR=\"PK\u0006\u0007\",r.ZIP64_CENTRAL_DIRECTORY_END=\"PK\u0006\u0006\",r.DATA_DESCRIPTOR=\"PK\u0007\\b\"},{}],24:[function(t,e,r){\"use strict\";var n=t(\"./GenericWorker\"),a=t(\"../utils\");function o(t){n.call(this,\"ConvertWorker to \"+t),this.destType=t}a.inherits(o,n),o.prototype.processChunk=function(t){this.push({data:a.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],25:[function(t,e,r){\"use strict\";var n=t(\"./GenericWorker\"),a=t(\"../crc32\");function o(){n.call(this,\"Crc32Probe\"),this.withStreamInfo(\"crc32\",0)}t(\"../utils\").inherits(o,n),o.prototype.processChunk=function(t){this.streamInfo.crc32=a(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{\"../crc32\":4,\"../utils\":32,\"./GenericWorker\":28}],26:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"./GenericWorker\");function o(t){a.call(this,\"DataLengthProbe for \"+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(o,a),o.prototype.processChunk=function(t){var e;t&&(e=this.streamInfo[this.propName]||0,this.streamInfo[this.propName]=e+t.data.length),a.prototype.processChunk.call(this,t)},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],27:[function(t,e,r){\"use strict\";var n=t(\"../utils\"),a=t(\"./GenericWorker\");function o(t){a.call(this,\"DataWorker\");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=\"\",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}n.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case\"string\":t=this.data.substring(this.index,e);break;case\"uint8array\":t=this.data.subarray(this.index,e);break;case\"array\":case\"nodebuffer\":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{\"../utils\":32,\"./GenericWorker\":28}],28:[function(t,e,r){\"use strict\";function n(t){this.name=t||\"default\",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit(\"data\",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(\"end\"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit(\"error\",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit(\"error\",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r \"+t:t}},e.exports=n},{}],29:[function(t,e,r){\"use strict\";var c=t(\"../utils\"),a=t(\"./ConvertWorker\"),o=t(\"./GenericWorker\"),p=t(\"../base64\"),n=t(\"../support\"),i=t(\"../external\"),s=null;if(n.nodestream)try{s=t(\"../nodejs/NodejsStreamOutputAdapter\")}catch(t){}function l(t,e,r){var n=e;switch(e){case\"blob\":case\"arraybuffer\":n=\"uint8array\";break;case\"base64\":n=\"string\"}try{this._internalType=n,this._outputType=e,this._mimeType=r,c.checkSupport(n),this._worker=t.pipe(new a(n)),t.lock()}catch(t){this._worker=new o(\"error\"),this._worker.error(t)}}l.prototype={accumulate:function(t){return s=this,l=t,new i.Promise(function(e,r){var n=[],a=s._internalType,o=s._outputType,i=s._mimeType;s.on(\"data\",function(t,e){n.push(t),l&&l(e)}).on(\"error\",function(t){n=[],r(t)}).on(\"end\",function(){try{var t=function(t,e,r){switch(t){case\"blob\":return c.newBlob(c.transformTo(\"arraybuffer\",e),r);case\"base64\":return p.encode(e);default:return c.transformTo(t,e)}}(o,function(t,e){for(var r=0,n=null,a=0,o=0;o>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},a.utf8decode=function(t){if(c.nodebuffer)return l.transformTo(\"nodebuffer\",t).toString(\"utf-8\");for(var e,r,n,a=t=l.transformTo(c.uint8array?\"uint8array\":\"array\",t),o=a.length,i=new Array(2*o),s=e=0;s>10&1023,i[e++]=56320|1023&r)}return i.length!==e&&(i.subarray?i=i.subarray(0,e):i.length=e),l.applyFromCharCode(i)},l.inherits(o,r),o.prototype.processChunk=function(t){var e=l.transformTo(c.uint8array?\"uint8array\":\"array\",t.data),r=(this.leftOver&&this.leftOver.length&&(c.uint8array?(r=e,(e=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),e.set(r,this.leftOver.length)):e=this.leftOver.concat(e),this.leftOver=null),function(t,e){for(var r=(e=(e=e||t.length)>t.length?t.length:e)-1;0<=r&&128==(192&t[r]);)r--;return!(r<0)&&0!==r&&r+u[t[r]]>e?r:e}(e)),n=e;r!==e.length&&(c.uint8array?(n=e.subarray(0,r),this.leftOver=e.subarray(r,e.length)):(n=e.slice(0,r),this.leftOver=e.slice(r,e.length))),this.push({data:a.utf8decode(n),meta:t.meta})},o.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=o,l.inherits(i,r),i.prototype.processChunk=function(t){this.push({data:a.utf8encode(t.data),meta:t.meta})},a.Utf8EncodeWorker=i},{\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./support\":30,\"./utils\":32}],32:[function(t,e,i){\"use strict\";var s=t(\"./support\"),l=t(\"./base64\"),r=t(\"./nodejsUtils\"),n=t(\"set-immediate-shim\"),c=t(\"./external\");function a(t){return t}function p(t,e){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||\"/\"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){var e;this.extraFields[1]&&(e=n(this.extraFields[1].value),this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4)))},readExtraFields:function(t){var e,r,n,a=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},r.buf2binstring=function(t){return p(t,t.length)},r.binstring2buf=function(t){for(var e=new l.Buf8(t.length),r=0,n=e.length;r>10&1023,i[r++]=56320|1023&n)}return p(i,r)},r.utf8border=function(t,e){for(var r=(e=(e=e||t.length)>t.length?t.length:e)-1;0<=r&&128==(192&t[r]);)r--;return!(r<0)&&0!==r&&r+c[t[r]]>e?r:e}},{\"./common\":41}],43:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){for(var a=65535&t|0,o=t>>>16&65535|0,i=0;0!==r;){for(r-=i=2e3>>1:r>>>1;t[e]=r}return t}();e.exports=function(t,e,r,n){var a=s,o=n+r;t^=-1;for(var i=n;i>>8^a[255&(t^e[i])];return-1^t}},{}],46:[function(t,N,e){\"use strict\";var s,u=t(\"../utils/common\"),l=t(\"./trees\"),f=t(\"./adler32\"),d=t(\"./crc32\"),r=t(\"./messages\"),c=0,p=0,h=-2,n=2,m=8,a=286,o=30,i=19,D=2*a+1,M=15,g=3,y=258,A=y+g+1,v=42,b=113;function x(t,e){return t.msg=r[e],e}function w(t){return(t<<1)-(4t.avail_out?t.avail_out:r)&&(u.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function P(t,e){l._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,C(t.strm)}function S(t,e){t.pending_buf[t.pending++]=e}function L(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function E(t,e){var r,n,a=t.max_chain_length,o=t.strstart,i=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-A?t.strstart-(t.w_size-A):0,c=t.window,p=t.w_mask,u=t.prev,f=t.strstart+y,d=c[o+i-1],h=c[o+i];t.prev_length>=t.good_match&&(a>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+i]===h&&c[r+i-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){for(o+=2,r++;c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&ol&&0!=--a);return i<=t.lookahead?i:t.lookahead}function T(t){var e,r,n,a,o,i,s,l,c,p=t.w_size;do{if(l=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-A)){for(u.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;n=t.head[--e],t.head[e]=p<=n?n-p:0,--r;);for(e=r=p;n=t.prev[--e],t.prev[e]=p<=n?n-p:0,--r;);l+=p}if(0===t.strm.avail_in)break;if(o=t.strm,i=t.window,s=t.strstart+t.lookahead,c=void 0,r=0===(c=(l=l)<(c=o.avail_in)?l:c)?0:(o.avail_in-=c,u.arraySet(i,o.input,o.next_in,c,s),1===o.state.wrap?o.adler=f(o.adler,i,c,s):2===o.state.wrap&&(o.adler=d(o.adler,i,c,s)),o.next_in+=c,o.total_in+=c,c),t.lookahead+=r,t.lookahead+t.insert>=g)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<=g&&(t.ins_h=(t.ins_h<=g)if(n=l._tr_tally(t,t.strstart-t.match_start,t.match_length-g),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=g){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=g&&(t.ins_h=(t.ins_h<=g&&t.match_length<=t.prev_length){for(a=t.strstart+t.lookahead-g,n=l._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-g),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=a&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(T(t),0===t.lookahead&&e===c)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,P(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-A&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(P(t,!1),t.strm.avail_out),1)}),new F(4,4,8,4,k),new F(4,5,16,8,k),new F(4,6,32,32,k),new F(4,4,16,16,R),new F(8,16,32,32,R),new F(8,16,128,128,R),new F(8,32,128,256,R),new F(32,128,258,1024,R),new F(32,258,258,4096,R)],e.deflateInit=function(t,e){return B(t,e,m,15,8,0)},e.deflateInit2=B,e.deflateReset=O,e.deflateResetKeep=I,e.deflateSetHeader=function(t,e){return!t||!t.state||2!==t.state.wrap?h:(t.state.gzhead=e,p)},e.deflate=function(t,e){var r,n,a,o;if(!t||!t.state||5>8&255),S(n,n.gzhead.time>>16&255),S(n,n.gzhead.time>>24&255),S(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),S(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(S(n,255&n.gzhead.extra.length),S(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=d(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(S(n,0),S(n,0),S(n,0),S(n,0),S(n,0),S(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),S(n,3),n.status=b)):(i=m+(n.w_bits-8<<4)<<8,i|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(i|=32),i+=31-i%31,n.status=b,L(n,i),0!==n.strstart&&(L(n,t.adler>>>16),L(n,65535&t.adler)),t.adler=1)),69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),C(t),a=n.pending,n.pending!==n.pending_buf_size));)S(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),C(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}}while(o=n.gzindexa&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),C(t),a=n.pending,n.pending===n.pending_buf_size)){o=1;break}}while(o=n.gzindexa&&(t.adler=d(t.adler,n.pending_buf,n.pending-a,a)),0===o&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&C(t),n.pending+2<=n.pending_buf_size&&(S(n,255&t.adler),S(n,t.adler>>8&255),t.adler=0,n.status=b)):n.status=b),0!==n.pending){if(C(t),0===t.avail_out)return n.last_flush=-1,p}else if(0===t.avail_in&&w(e)<=w(r)&&4!==e)return x(t,-5);if(666===n.status&&0!==t.avail_in)return x(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==c&&666!==n.status){var i=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(T(t),0===t.lookahead)){if(e===c)return 1;break}if(t.match_length=0,r=l._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(P(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,a,o,i=t.window;;){if(t.lookahead<=y){if(T(t),t.lookahead<=y&&e===c)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=g&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=g?(r=l._tr_tally(t,1,t.match_length-g),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=l._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(P(t,!1),0===t.strm.avail_out)?1:2}(n,e):s[n.level].func(n,e);if(3!==i&&4!==i||(n.status=666),1===i||3===i)return 0===t.avail_out&&(n.last_flush=-1),p;if(2===i&&(1===e?l._tr_align(n):5!==e&&(l._tr_stored_block(n,0,0,!1),3===e&&(_(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),C(t),0===t.avail_out))return n.last_flush=-1,p}return 4!==e?p:n.wrap<=0?1:(2===n.wrap?(S(n,255&t.adler),S(n,t.adler>>8&255),S(n,t.adler>>16&255),S(n,t.adler>>24&255),S(n,255&t.total_in),S(n,t.total_in>>8&255),S(n,t.total_in>>16&255),S(n,t.total_in>>24&255)):(L(n,t.adler>>>16),L(n,65535&t.adler)),C(t),0=r.w_size&&(0===o&&(_(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new u.Buf8(r.w_size),u.arraySet(l,e,c-r.w_size,r.w_size,0),e=l,c=r.w_size),l=t.avail_in,i=t.next_in,s=t.input,t.avail_in=c,t.next_in=0,t.input=e,T(r);r.lookahead>=g;){for(n=r.strstart,a=r.lookahead-(g-1);r.ins_h=(r.ins_h<>>=n=r>>>24,w-=n,0==(n=r>>>16&255))d[f++]=65535&r;else{if(!(16&n)){if(0==(64&n)){r=_[(65535&r)+(x&(1<>>=n,w-=n),w<15&&(x+=p[c++]<>>=n=r>>>24,w-=n,!(16&(n=r>>>16&255))){if(0==(64&n)){r=C[(65535&r)+(x&(1<>>=n,w-=n,(n=f-h)>3,x&=(1<<(w-=a<<3))-1,t.next_in=c,t.next_out=f,t.avail_in=c>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function o(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new R.Buf16(320),this.work=new R.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function i(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=M,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new R.Buf32(n),e.distcode=e.distdyn=new R.Buf32(a),e.sane=1,e.back=-1,N):D}function s(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,i(t)):D}function l(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=t.wsize?(R.arraySet(t.window,e,r-t.wsize,t.wsize,0),t.wnext=0,t.whave=t.wsize):(n<(a=t.wsize-t.wnext)&&(a=n),R.arraySet(t.window,e,r-n,a,t.wnext),(n-=a)?(R.arraySet(t.window,e,r-n,n,0),t.wnext=n,t.whave=t.wsize):(t.wnext+=a,t.wnext===t.wsize&&(t.wnext=0),t.whave>>8&255,r.check=I(r.check,L,2,0),p=c=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg=\"incorrect header check\",r.mode=30;break}if(8!=(15&c)){t.msg=\"unknown compression method\",r.mode=30;break}if(p-=4,w=8+(15&(c>>>=4)),0===r.wbits)r.wbits=w;else if(w>r.wbits){t.msg=\"invalid window size\",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=I(r.check,L,2,0)),p=c=0,r.mode=3;case 3:for(;p<32;){if(0===s)break t;s--,c+=n[o++]<>>8&255,L[2]=c>>>16&255,L[3]=c>>>24&255,r.check=I(r.check,L,4,0)),p=c=0,r.mode=4;case 4:for(;p<16;){if(0===s)break t;s--,c+=n[o++]<>8),512&r.flags&&(L[0]=255&c,L[1]=c>>>8&255,r.check=I(r.check,L,2,0)),p=c=0,r.mode=5;case 5:if(1024&r.flags){for(;p<16;){if(0===s)break t;s--,c+=n[o++]<>>8&255,r.check=I(r.check,L,2,0)),p=c=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((d=s<(d=r.length)?s:d)&&(r.head&&(w=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),R.arraySet(r.head.extra,n,o,d,w)),512&r.flags&&(r.check=I(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;for(d=0;w=n[o+d++],r.head&&w&&r.length<65536&&(r.head.name+=String.fromCharCode(w)),w&&d>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;p<32;){if(0===s)break t;s--,c+=n[o++]<>>=7&p,p-=7&p,r.mode=27;break}for(;p<3;){if(0===s)break t;s--,c+=n[o++]<>>=1)){case 0:r.mode=14;break;case 1:T=k=void 0;var T,k=r;if(G){for(U=new R.Buf32(512),j=new R.Buf32(32),T=0;T<144;)k.lens[T++]=8;for(;T<256;)k.lens[T++]=9;for(;T<280;)k.lens[T++]=7;for(;T<288;)k.lens[T++]=8;for(B(1,k.lens,0,288,U,0,k.work,{bits:9}),T=0;T<32;)k.lens[T++]=5;B(2,k.lens,0,32,j,0,k.work,{bits:5}),G=!1}if(k.lencode=U,k.lenbits=9,k.distcode=j,k.distbits=5,r.mode=20,6!==e)break;c>>>=2,p-=2;break t;case 2:r.mode=17;break;case 3:t.msg=\"invalid block type\",r.mode=30}c>>>=2,p-=2;break;case 14:for(c>>>=7&p,p-=7&p;p<32;){if(0===s)break t;s--,c+=n[o++]<>>16^65535)){t.msg=\"invalid stored block lengths\",r.mode=30;break}if(r.length=65535&c,p=c=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(0===(d=l<(d=s>>=5,p-=5,r.ndist=1+(31&c),c>>>=5,p-=5,r.ncode=4+(15&c),c>>>=4,p-=4,286>>=3,p-=3}for(;r.have<19;)r.lens[E[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},_=B(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg=\"invalid code lengths set\",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,A=65535&S,!((g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>>=g,p-=g,r.lens[r.have++]=A;else{if(16===A){for(P=g+2;p>>=g,p-=g,0===r.have){t.msg=\"invalid bit length repeat\",r.mode=30;break}w=r.lens[r.have-1],d=3+(3&c),c>>>=2,p-=2}else if(17===A){for(P=g+3;p>>=g)),c>>>=3,p=p-g-3}else{for(P=g+7;p>>=g)),c>>>=7,p=p-g-7}if(r.have+d>r.nlen+r.ndist){t.msg=\"invalid bit length repeat\",r.mode=30;break}for(;d--;)r.lens[r.have++]=w}}if(30===r.mode)break;if(0===r.lens[256]){t.msg=\"invalid code -- missing end-of-block\",r.mode=30;break}if(r.lenbits=9,C={bits:r.lenbits},_=B(1,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,_){t.msg=\"invalid literal/lengths set\",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},_=B(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,_){t.msg=\"invalid distances set\",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=s&&258<=l){t.next_out=i,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=p,O(t,f),i=t.next_out,a=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,p=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;y=(S=r.lencode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>v)])>>>16&255,A=65535&S,!(v+(g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>>=v,p-=v,r.back+=v}if(c>>>=g,p-=g,r.back+=g,r.length=A,0===y){r.mode=26;break}if(32&y){r.back=-1,r.mode=12;break}if(64&y){t.msg=\"invalid literal/length code\",r.mode=30;break}r.extra=15&y,r.mode=22;case 22:if(r.extra){for(P=r.extra;p>>=r.extra,p-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;y=(S=r.distcode[c&(1<>>16&255,A=65535&S,!((g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>v)])>>>16&255,A=65535&S,!(v+(g=S>>>24)<=p);){if(0===s)break t;s--,c+=n[o++]<>>=v,p-=v,r.back+=v}if(c>>>=g,p-=g,r.back+=g,64&y){t.msg=\"invalid distance code\",r.mode=30;break}r.offset=A,r.extra=15&y,r.mode=24;case 24:if(r.extra){for(P=r.extra;p>>=r.extra,p-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg=\"invalid distance too far back\",r.mode=30;break}r.mode=25;case 25:if(0===l)break t;if(r.offset>(d=f-l)){if((d=r.offset-d)>r.whave&&r.sane){t.msg=\"invalid distance too far back\",r.mode=30;break}h=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=a,h=i-r.offset,d=r.length;for(l-=d=ld?(m=F[I+i[v]],E[T+i[v]]):(m=96,0),l=1<<(h=A-C),b=c=1<<_;a[f+(L>>C)+(c-=l)]=h<<24|m<<16|g|0,0!==c;);for(l=1<>=1;if(0!==l?L=(L&l-1)+l:L=0,v++,0==--k[A]){if(A===x)break;A=e[r+i[v]]}if(w>>7)]}function o(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function _(t,e,r){t.bi_valid>n-r?(t.bi_buf|=e<>n-t.bi_valid,t.bi_valid+=r-n):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function S(t,e,r){for(var n,a=new Array(16),o=0,i=1;i<=15;i++)a[i]=o=o+r[i-1]<<1;for(n=0;n<=e;n++){var s=t[2*n+1];0!==s&&(t[2*n]=P(a[s]++,s))}}function L(t){for(var e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function E(t){8>1;1<=r;r--)T(t,o,r);for(a=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],T(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*a]=o[2*r]+o[2*n],t.depth[a]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=a,t.heap[1]=a++,T(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1];for(var p,u,f,d,h,m=t,g=e.dyn_tree,y=e.max_code,A=e.stat_desc.static_tree,v=e.stat_desc.has_stree,b=e.stat_desc.extra_bits,x=e.stat_desc.extra_base,w=e.stat_desc.max_length,_=0,C=0;C<=15;C++)m.bl_count[C]=0;for(g[2*m.heap[m.heap_max]+1]=0,p=m.heap_max+1;p<573;p++)w<(C=g[2*g[2*(u=m.heap[p])+1]+1]+1)&&(C=w,_++),g[2*u+1]=C,y>=7;i<30;i++)for(v[i]=a<<7,e=0;e<1<>>=1)if(1&e&&0!==t.dyn_ltree[2*r])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(r=32;r<256;r++)if(0!==t.dyn_ltree[2*r])return 1;return 0}(t)),R(t,t.l_desc),R(t,t.d_desc),s=function(t){var e;for(F(t,t.dyn_ltree,t.l_desc.max_code),F(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*p[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=a&&(a=o)):a=o=r+5,r+4<=a&&-1!==e)B(t,e,r,n);else if(4===t.strategy||o===a)_(t,2+(n?1:0),3),k(t,u,f);else{_(t,4+(n?1:0),3);var l=t,c=(e=t.l_desc.max_code+1,r=t.d_desc.max_code+1,s+1);for(_(l,e-257,5),_(l,r-1,5),_(l,c-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(h[r]+256+1)]++,t.dyn_dtree[2*w(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){_(t,2,3),C(t,256,u),16===(t=t).bi_valid?(o(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{\"../utils/common\":41}],53:[function(t,e,r){\"use strict\";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){\"use strict\";e.exports=\"function\"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,void 0!==r?r:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)})}.call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1])(1)}),function n(a,o,i){function s(e,t){if(!o[e]){if(!a[e]){var r=\"function\"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);t=new Error(\"Cannot find module '\"+e+\"'\");throw t.code=\"MODULE_NOT_FOUND\",t}r=o[e]={exports:{}};a[e][0].call(r.exports,function(t){return s(a[e][1][t]||t)},r,r.exports,n,a,o,i)}return o[e].exports}for(var l=\"function\"==typeof require&&require,t=0;ti;)o.call(t,n=a[i++])&&e.push(n);return e}},{104:104,107:107,108:108}],62:[function(t,e,r){function d(t,e,r){var n,a,o,i=t&d.F,s=t&d.G,l=t&d.P,c=t&d.B,p=s?h:t&d.S?h[e]||(h[e]={}):(h[e]||{})[v],u=s?m:m[e]||(m[e]={}),f=u[v]||(u[v]={});for(n in r=s?e:r)a=((o=!i&&p&&void 0!==p[n])?p:r)[n],o=c&&o?A(a,h):l&&\"function\"==typeof a?A(Function.call,a):a,p&&y(p,n,a,t&d.U),u[n]!=a&&g(u,n,o),l&&f[n]!=a&&(f[n]=a)}var h=t(70),m=t(52),g=t(72),y=t(118),A=t(54),v=\"prototype\";h.core=m,d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,e.exports=d},{118:118,52:52,54:54,70:70,72:72}],63:[function(t,e,r){var n=t(152)(\"match\");e.exports=function(e){var r=/./;try{\"/./\"[e](r)}catch(t){try{return r[n]=!1,!\"/./\"[e](r)}catch(t){}}return!0}},{152:152}],64:[function(t,e,r){arguments[4][23][0].apply(r,arguments)},{23:23}],65:[function(t,e,r){\"use strict\";t(248);var n,l=t(118),c=t(72),p=t(64),u=t(57),f=t(152),d=t(120),h=f(\"species\"),m=!p(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:\"7\"},t},\"7\"!==\"\".replace(t,\"$
\")}),g=(n=(t=/(?:)/).exec,t.exec=function(){return n.apply(this,arguments)},2===(t=\"ab\".split(t)).length&&\"a\"===t[0]&&\"b\"===t[1]);e.exports=function(r,t,e){var o,n,a=f(r),i=!p(function(){var t={};return t[a]=function(){return 7},7!=\"\"[r](t)}),s=i?!p(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},\"split\"===r&&(e.constructor={},e.constructor[h]=function(){return e}),e[a](\"\"),!t}):void 0;i&&s&&(\"replace\"!==r||m)&&(\"split\"!==r||g)||(o=/./[a],e=(s=e(u,a,\"\"[r],function(t,e,r,n,a){return e.exec===d?i&&!a?{done:!0,value:o.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}))[0],n=s[1],l(String.prototype,r,e),c(RegExp.prototype,a,2==t?function(t,e){return n.call(t,this,e)}:function(t){return n.call(t,this)}))}},{118:118,120:120,152:152,248:248,57:57,64:64,72:72}],66:[function(t,e,r){\"use strict\";var n=t(38);e.exports=function(){var t=n(this),e=\"\";return t.global&&(e+=\"g\"),t.ignoreCase&&(e+=\"i\"),t.multiline&&(e+=\"m\"),t.unicode&&(e+=\"u\"),t.sticky&&(e+=\"y\"),e}},{38:38}],67:[function(t,e,r){\"use strict\";var h=t(79),m=t(81),g=t(141),y=t(54),A=t(152)(\"isConcatSpreadable\");e.exports=function t(e,r,n,a,o,i,s,l){for(var c,p,u=o,f=0,d=!!s&&y(s,l,3);fdocument.F=Object<\\/script>\"),t.close(),c=t.F;e--;)delete c[l][i[e]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(n[l]=a(t),r=new n,n[l]=null,r[s]=t):r=c(),void 0===e?r:o(r,e)}},{100:100,125:125,38:38,59:59,60:60,73:73}],99:[function(t,e,r){arguments[4][29][0].apply(r,arguments)},{143:143,29:29,38:38,58:58,74:74}],100:[function(t,e,r){var i=t(99),s=t(38),l=t(107);e.exports=t(58)?Object.defineProperties:function(t,e){s(t);for(var r,n=l(e),a=n.length,o=0;oa;)!i(n,r=e[a++])||~l(o,r)||o.push(r);return o}},{125:125,140:140,41:41,71:71}],107:[function(t,e,r){var n=t(106),a=t(60);e.exports=Object.keys||function(t){return n(t,a)}},{106:106,60:60}],108:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],109:[function(t,e,r){var a=t(62),o=t(52),i=t(64);e.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],n={};n[t]=e(r),a(a.S+a.F*i(function(){r(1)}),\"Object\",n)}},{52:52,62:62,64:64}],110:[function(t,e,r){var l=t(58),c=t(107),p=t(140),u=t(108).f;e.exports=function(s){return function(t){for(var e,r=p(t),n=c(r),a=n.length,o=0,i=[];o>>0||(o.test(t)?16:10))}:n},{134:134,135:135,70:70}],114:[function(t,e,r){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],115:[function(t,e,r){var n=t(38),a=t(81),o=t(96);e.exports=function(t,e){if(n(t),a(e)&&e.constructor===t)return e;t=o.f(t);return(0,t.resolve)(e),t.promise}},{38:38,81:81,96:96}],116:[function(t,e,r){arguments[4][30][0].apply(r,arguments)},{30:30}],117:[function(t,e,r){var a=t(118);e.exports=function(t,e,r){for(var n in e)a(t,n,e[n],r);return t}},{118:118}],118:[function(t,e,r){var o=t(70),i=t(72),s=t(71),l=t(147)(\"src\"),n=t(69),a=\"toString\",c=(\"\"+n).split(a);t(52).inspectSource=function(t){return n.call(t)},(e.exports=function(t,e,r,n){var a=\"function\"==typeof r;a&&!s(r,\"name\")&&i(r,\"name\",e),t[e]!==r&&(a&&!s(r,l)&&i(r,l,t[e]?\"\"+t[e]:c.join(String(e))),t===o?t[e]=r:n?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,a,function(){return\"function\"==typeof this&&this[l]||n.call(this)})},{147:147,52:52,69:69,70:70,71:71,72:72}],119:[function(t,e,r){\"use strict\";var n=t(47),a=RegExp.prototype.exec;e.exports=function(t,e){var r=t.exec;if(\"function\"==typeof r){r=r.call(t,e);if(\"object\"!=typeof r)throw new TypeError(\"RegExp exec method returned something other than an Object or null\");return r}if(\"RegExp\"!==n(t))throw new TypeError(\"RegExp#exec called on incompatible receiver\");return a.call(t,e)}},{47:47}],120:[function(t,e,r){\"use strict\";var n,a,i=t(66),s=RegExp.prototype.exec,l=String.prototype.replace,t=s,c=\"lastIndex\",p=(a=/b*/g,s.call(n=/a/,\"a\"),s.call(a,\"a\"),0!==n[c]||0!==a[c]),u=void 0!==/()??/.exec(\"\")[1];e.exports=t=p||u?function(t){var e,r,n,a,o=this;return u&&(r=new RegExp(\"^\"+o.source+\"$(?!\\\\s)\",i.call(o))),p&&(e=o[c]),n=s.call(o,t),p&&n&&(o[c]=o.global?n.index+n[0].length:e),u&&n&&1\"+t+\"\"}var a=t(62),o=t(64),i=t(57),s=/\"/g;e.exports=function(e,t){var r={};r[e]=t(n),a(a.P+a.F*o(function(){var t=\"\"[e]('\"');return t!==t.toLowerCase()||3e&&(a=a.slice(0,e)),n?a+t:t+a}},{133:133,141:141,57:57}],133:[function(t,e,r){\"use strict\";var a=t(139),o=t(57);e.exports=function(t){var e=String(o(this)),r=\"\",n=a(t);if(n<0||n==1/0)throw RangeError(\"Count can't be negative\");for(;0>>=1)&&(e+=e))1&n&&(r+=e);return r}},{139:139,57:57}],134:[function(t,e,r){function n(t,e,r){var n={},a=i(function(){return!!s[t]()||\"​…\"!=\"​…\"[t]()}),e=n[t]=a?e(p):s[t];r&&(n[r]=e),o(o.P+o.F*a,\"String\",n)}var o=t(62),a=t(57),i=t(64),s=t(135),t=\"[\"+s+\"]\",l=RegExp(\"^\"+t+t+\"*\"),c=RegExp(t+t+\"*$\"),p=n.trim=function(t,e){return t=String(a(t)),1&e&&(t=t.replace(l,\"\")),t=2&e?t.replace(c,\"\"):t};e.exports=n},{135:135,57:57,62:62,64:64}],135:[function(t,e,r){e.exports=\"\\t\\n\\v\\f\\r   ᠎              \\u2028\\u2029\\ufeff\"},{}],136:[function(t,e,r){function n(){var t,e=+this;y.hasOwnProperty(e)&&(t=y[e],delete y[e],t())}function a(t){n.call(t.data)}var o,i=t(54),s=t(76),l=t(73),c=t(59),p=t(70),u=p.process,f=p.setImmediate,d=p.clearImmediate,h=p.MessageChannel,m=p.Dispatch,g=0,y={},A=\"onreadystatechange\";f&&d||(f=function(t){for(var e=[],r=1;r>1,c=23===e?x(2,-24)-x(2,-77):0,p=0,u=t<0||0===t&&1/t<0?1:0;for((t=G(t))!=t||t===v?(a=t!=t?1:0,n=r):(n=W(H(t)/V),t*(o=x(2,-n))<1&&(n--,o*=2),2<=(t+=1<=n+l?c/o:c*x(2,1-l))*o&&(n++,o/=2),r<=n+l?(a=0,n=r):1<=n+l?(a=(t*o-1)*x(2,e),n+=l):(a=t*x(2,l-1)*x(2,e),n=0));8<=e;i[p++]=255&a,a/=256,e-=8);for(n=n<>1,s=a-7,l=r-1,a=t[l--],c=127&a;for(a>>=7;0>=-s,s+=e;0>8&255]}function k(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function Q(t){return P(t,52,8)}function Y(t){return P(t,23,4)}function R(t,e,r){U(t[d],e,{get:function(){return this[r]}})}function F(t,e,r,n){r=p(+r);if(r+e>t[_])throw A(h);var a=t[w]._b,r=r+t[C],t=a.slice(r,r+e);return n?t:t.reverse()}function I(t,e,r,n,a,o){r=p(+r);if(r+e>t[_])throw A(h);for(var i=t[w]._b,s=r+t[C],l=n(+a),c=0;cq;)(O=B[q++])in m||o(m,O,b[O]);D||(s.constructor=m)}var c=new g(new m(2)),Z=g[d].setInt8;c.setInt8(0,2147483648),c.setInt8(1,2147483649),!c.getInt8(0)&&c.getInt8(1)||i(g[d],{setInt8:function(t,e){Z.call(this,t,e<<24>>24)},setUint8:function(t,e){Z.call(this,t,e<<24>>24)}},!0)}else m=function(t){l(this,m,u);t=p(t);this._b=j.call(new Array(t),0),this[_]=t},g=function(t,e,r){l(this,g,f),l(t,m,f);var n=t[_],e=M(e);if(e<0||n>24},getUint8:function(t){return F(this,1,t)[0]},getInt16:function(t){t=F(this,2,t,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(t){t=F(this,2,t,arguments[1]);return t[1]<<8|t[0]},getInt32:function(t){return L(F(this,4,t,arguments[1]))},getUint32:function(t){return L(F(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return S(F(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return S(F(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){I(this,1,t,E,e)},setUint8:function(t,e){I(this,1,t,E,e)},setInt16:function(t,e){I(this,2,t,T,e,arguments[2])},setUint16:function(t,e){I(this,2,t,T,e,arguments[2])},setInt32:function(t,e){I(this,4,t,k,e,arguments[2])},setUint32:function(t,e){I(this,4,t,k,e,arguments[2])},setFloat32:function(t,e){I(this,4,t,Y,e,arguments[2])},setFloat64:function(t,e){I(this,8,t,Q,e,arguments[2])}});t(m,u),t(g,f),o(g[d],a.VIEW,!0),e[u]=m,e[f]=g},{103:103,117:117,124:124,138:138,139:139,141:141,146:146,37:37,40:40,58:58,64:64,70:70,72:72,89:89,99:99}],146:[function(t,e,r){for(var n,a=t(70),o=t(72),t=t(147),i=t(\"typed_array\"),s=t(\"view\"),t=!(!a.ArrayBuffer||!a.DataView),l=t,c=0,p=\"Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array\".split(\",\");c<9;)(n=a[p[c++]])?(o(n.prototype,i,!0),o(n.prototype,s,!0)):l=!1;e.exports={ABV:t,CONSTR:l,TYPED:i,VIEW:s}},{147:147,70:70,72:72}],147:[function(t,e,r){var n=0,a=Math.random();e.exports=function(t){return\"Symbol(\".concat(void 0===t?\"\":t,\")_\",(++n+a).toString(36))}},{}],148:[function(t,e,r){t=t(70).navigator;e.exports=t&&t.userAgent||\"\"},{70:70}],149:[function(t,e,r){var n=t(81);e.exports=function(t,e){if(n(t)&&t._t===e)return t;throw TypeError(\"Incompatible receiver, \"+e+\" required!\")}},{81:81}],150:[function(t,e,r){var n=t(70),a=t(52),o=t(89),i=t(151),s=t(99).f;e.exports=function(t){var e=a.Symbol||(a.Symbol=!o&&n.Symbol||{});\"_\"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},{151:151,52:52,70:70,89:89,99:99}],151:[function(t,e,r){r.f=t(152)},{152:152}],152:[function(t,e,r){var n=t(126)(\"wks\"),a=t(147),o=t(70).Symbol,i=\"function\"==typeof o;(e.exports=function(t){return n[t]||(n[t]=i&&o[t]||(i?o:a)(\"Symbol.\"+t))}).store=n},{126:126,147:147,70:70}],153:[function(t,e,r){var n=t(47),a=t(152)(\"iterator\"),o=t(88);e.exports=t(52).getIteratorMethod=function(t){if(null!=t)return t[a]||t[\"@@iterator\"]||o[n(t)]}},{152:152,47:47,52:52,88:88}],154:[function(t,e,r){var n=t(62);n(n.P,\"Array\",{copyWithin:t(39)}),t(35)(\"copyWithin\")},{35:35,39:39,62:62}],155:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(4);n(n.P+n.F*!t(128)([].every,!0),\"Array\",{every:function(t){return a(this,t,arguments[1])}})},{128:128,42:42,62:62}],156:[function(t,e,r){var n=t(62);n(n.P,\"Array\",{fill:t(40)}),t(35)(\"fill\")},{35:35,40:40,62:62}],157:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(2);n(n.P+n.F*!t(128)([].filter,!0),\"Array\",{filter:function(t){return a(this,t,arguments[1])}})},{128:128,42:42,62:62}],158:[function(t,e,r){\"use strict\";var n=t(62),a=t(42)(6),o=\"findIndex\",i=!0;o in[]&&Array(1)[o](function(){i=!1}),n(n.P+n.F*i,\"Array\",{findIndex:function(t){return a(this,t,1=t.length?(this._t=void 0,a(1)):a(0,\"keys\"==e?r:\"values\"==e?t[r]:[r,t[r]])},\"values\"),o.Arguments=o.Array,n(\"keys\"),n(\"values\"),n(\"entries\")},{140:140,35:35,85:85,87:87,88:88}],165:[function(t,e,r){\"use strict\";var n=t(62),a=t(140),o=[].join;n(n.P+n.F*(t(77)!=Object||!t(128)(o)),\"Array\",{join:function(t){return o.call(a(this),void 0===t?\",\":t)}})},{128:128,140:140,62:62,77:77}],166:[function(t,e,r){\"use strict\";var n=t(62),a=t(140),o=t(139),i=t(141),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(l||!t(128)(s)),\"Array\",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=a(this),r=i(e.length),n=r-1;for((n=1>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{62:62}],189:[function(t,e,r){var t=t(62),n=Math.exp;t(t.S,\"Math\",{cosh:function(t){return(n(t=+t)+n(-t))/2}})},{62:62}],190:[function(t,e,r){var n=t(62),t=t(90);n(n.S+n.F*(t!=Math.expm1),\"Math\",{expm1:t})},{62:62,90:90}],191:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{fround:t(91)})},{62:62,91:91}],192:[function(t,e,r){var t=t(62),l=Math.abs;t(t.S,\"Math\",{hypot:function(t,e){for(var r,n,a=0,o=0,i=arguments.length,s=0;o>>16)*n+r*(65535&e>>>16)<<16>>>0)}})},{62:62,64:64}],194:[function(t,e,r){t=t(62);t(t.S,\"Math\",{log10:function(t){return Math.log(t)*Math.LOG10E}})},{62:62}],195:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{log1p:t(92)})},{62:62,92:92}],196:[function(t,e,r){t=t(62);t(t.S,\"Math\",{log2:function(t){return Math.log(t)/Math.LN2}})},{62:62}],197:[function(t,e,r){var n=t(62);n(n.S,\"Math\",{sign:t(93)})},{62:62,93:93}],198:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S+n.F*t(64)(function(){return-2e-17!=!Math.sinh(-2e-17)}),\"Math\",{sinh:function(t){return Math.abs(t=+t)<1?(a(t)-a(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},{62:62,64:64,90:90}],199:[function(t,e,r){var n=t(62),a=t(90),o=Math.exp;n(n.S,\"Math\",{tanh:function(t){var e=a(t=+t),r=a(-t);return e==1/0?1:r==1/0?-1:(e-r)/(o(t)+o(-t))}})},{62:62,90:90}],200:[function(t,e,r){t=t(62);t(t.S,\"Math\",{trunc:function(t){return(0w;w++)o(m,v=x[w])&&!o(b,v)&&f(b,v,u(m,v));(b.prototype=g).constructor=b,t(118)(a,h,b)}},{101:101,103:103,118:118,134:134,143:143,48:48,58:58,64:64,70:70,71:71,75:75,98:98,99:99}],202:[function(t,e,r){t=t(62);t(t.S,\"Number\",{EPSILON:Math.pow(2,-52)})},{62:62}],203:[function(t,e,r){var n=t(62),a=t(70).isFinite;n(n.S,\"Number\",{isFinite:function(t){return\"number\"==typeof t&&a(t)}})},{62:62,70:70}],204:[function(t,e,r){var n=t(62);n(n.S,\"Number\",{isInteger:t(80)})},{62:62,80:80}],205:[function(t,e,r){t=t(62);t(t.S,\"Number\",{isNaN:function(t){return t!=t}})},{62:62}],206:[function(t,e,r){var n=t(62),a=t(80),o=Math.abs;n(n.S,\"Number\",{isSafeInteger:function(t){return a(t)&&o(t)<=9007199254740991}})},{62:62,80:80}],207:[function(t,e,r){t=t(62);t(t.S,\"Number\",{MAX_SAFE_INTEGER:9007199254740991})},{62:62}],208:[function(t,e,r){t=t(62);t(t.S,\"Number\",{MIN_SAFE_INTEGER:-9007199254740991})},{62:62}],209:[function(t,e,r){var n=t(62),t=t(112);n(n.S+n.F*(Number.parseFloat!=t),\"Number\",{parseFloat:t})},{112:112,62:62}],210:[function(t,e,r){var n=t(62),t=t(113);n(n.S+n.F*(Number.parseInt!=t),\"Number\",{parseInt:t})},{113:113,62:62}],211:[function(t,e,r){\"use strict\";function s(t,e){for(var r=-1,n=e;++r<6;)n+=t*i[r],i[r]=n%1e7,n=o(n/1e7)}function l(t){for(var e=6,r=0;0<=--e;)r+=i[e],i[e]=o(r/t),r=r%t*1e7}function c(){for(var t,e=6,r=\"\";0<=--e;)\"\"===r&&0!==e&&0===i[e]||(t=String(i[e]),r=\"\"===r?t:r+d.call(\"0\",7-t.length)+t);return r}function p(t,e,r){return 0===e?r:e%2==1?p(t,e-1,r*t):p(t*t,e/2,r)}var n=t(62),u=t(139),f=t(34),d=t(133),a=1..toFixed,o=Math.floor,i=[0,0,0,0,0,0],h=\"Number.toFixed: incorrect invocation!\";n(n.P+n.F*(!!a&&(\"0.000\"!==8e-5.toFixed(3)||\"1\"!==.9.toFixed(0)||\"1.25\"!==1.255.toFixed(2)||\"1000000000000000128\"!==0xde0b6b3a7640080.toFixed(0))||!t(64)(function(){a.call({})})),\"Number\",{toFixed:function(t){var e,r,n,a=f(this,h),t=u(t),o=\"\",i=\"0\";if(t<0||20r;){a=void 0;o=void 0;i=void 0;s=void 0;l=void 0;c=void 0;p=void 0;var n=d[r++];var a,o,i,s=e?n.ok:n.fail,l=n.resolve,c=n.reject,p=n.domain;try{s?(e||(2==u._h&&g(u),u._h=1),!0===s?a=t:(p&&p.enter(),a=s(t),p&&(p.exit(),i=!0)),a===n.promise?c(E(\"Promise-chain cycle\")):(o=h(a))?o.call(a,l,c):l(a)):c(t)}catch(n){p&&!i&&p.exit(),c(n)}}u._c=[],u._n=!1,f&&!u._h&&m(u)}))}function o(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),a(e,!0))}function m(a){x.call(p,function(){var t,e,r=a._v,n=O(a);if(n&&(t=C(function(){F?T.emit(\"unhandledRejection\",r,a):(e=p.onunhandledrejection)?e({promise:a,reason:r}):(e=p.console)&&e.error&&e.error(\"Unhandled promise rejection\",r)}),a._h=F||O(a)?2:1),a._a=void 0,n&&t.e)throw t.v})}function g(e){x.call(p,function(){var t;F?T.emit(\"rejectionHandled\",e):(t=p.onrejectionhandled)&&t({promise:e,reason:e._v})})}var e,i,s,l,c=r(89),p=r(70),u=r(54),t=r(47),f=r(62),d=r(81),y=r(33),A=r(37),v=r(68),b=r(127),x=r(136).set,w=r(95)(),_=r(96),C=r(114),P=r(148),S=r(115),L=\"Promise\",E=p.TypeError,T=p.process,k=T&&T.versions,M=k&&k.v8||\"\",R=p[L],F=\"process\"==t(T),I=i=_.f,k=!!function(){try{var t=R.resolve(1),e=(t.constructor={})[r(152)(\"species\")]=function(t){t(n,n)};return(F||\"function\"==typeof PromiseRejectionEvent)&&t.then(n)instanceof e&&0!==M.indexOf(\"6.6\")&&-1===P.indexOf(\"Chrome/66\")}catch(t){}}(),O=function(t){return 1!==t._h&&0===(t._a||t._c).length},B=function(t){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E(\"Promise can't be resolved itself\");(r=h(t))?w(function(){var e={_w:n,_d:!1};try{r.call(t,u(B,e,1),u(o,e,1))}catch(t){o.call(e,t)}}):(n._v=t,n._s=1,a(n,!1))}catch(t){o.call({_w:n,_d:!1},t)}}};k||(R=function(t){A(this,R,L,\"_h\"),y(t),e.call(this);try{t(u(B,this,1),u(o,this,1))}catch(t){o.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(117)(R.prototype,{then:function(t,e){var r=I(b(this,R));return r.ok=\"function\"!=typeof t||t,r.fail=\"function\"==typeof e&&e,r.domain=F?T.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&a(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),s=function(){var t=new e;this.promise=t,this.resolve=u(B,t,1),this.reject=u(o,t,1)},_.f=I=function(t){return t===R||t===l?new s:i(t)}),f(f.G+f.W+f.F*!k,{Promise:R}),r(124)(R,L),r(123)(L),l=r(52)[L],f(f.S+f.F*!k,L,{reject:function(t){var e=I(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(c||!k),L,{resolve:function(t){return S(c&&this===l?R:this,t)}}),f(f.S+f.F*!(k&&r(86)(function(t){R.all(t).catch(n)})),L,{all:function(t){var i=this,e=I(i),s=e.resolve,l=e.reject,r=C(function(){var n=[],a=0,o=1;v(t,!1,function(t){var e=a++,r=!1;n.push(void 0),o++,i.resolve(t).then(function(t){r||(r=!0,n[e]=t,--o||s(n))},l)}),--o||s(n)});return r.e&&l(r.v),e.promise},race:function(t){var e=this,r=I(e),n=r.reject,a=C(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return a.e&&n(a.v),r.promise}})},{114:114,115:115,117:117,123:123,124:124,127:127,136:136,148:148,152:152,33:33,37:37,47:47,52:52,54:54,62:62,68:68,70:70,81:81,86:86,89:89,95:95,96:96}],233:[function(t,e,r){var n=t(62),a=t(33),o=t(38),i=(t(70).Reflect||{}).apply,s=Function.apply;n(n.S+n.F*!t(64)(function(){i(function(){})}),\"Reflect\",{apply:function(t,e,r){t=a(t),r=o(r);return i?i(t,e,r):s.call(t,e,r)}})},{33:33,38:38,62:62,64:64,70:70}],234:[function(t,e,r){var n=t(62),a=t(98),o=t(33),i=t(38),s=t(81),l=t(64),c=t(46),p=(t(70).Reflect||{}).construct,u=l(function(){function t(){}return!(p(function(){},[],t)instanceof t)}),f=!l(function(){p(function(){})});n(n.S+n.F*(u||f),\"Reflect\",{construct:function(t,e){o(t),i(e);var r=arguments.length<3?t:o(arguments[2]);if(f&&!u)return p(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}n=r.prototype,r=a(s(n)?n:Object.prototype),n=Function.apply.call(t,r,e);return s(n)?n:r}})},{33:33,38:38,46:46,62:62,64:64,70:70,81:81,98:98}],235:[function(t,e,r){var n=t(99),a=t(62),o=t(38),i=t(143);a(a.S+a.F*t(64)(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),\"Reflect\",{defineProperty:function(t,e,r){o(t),e=i(e,!0),o(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},{143:143,38:38,62:62,64:64,99:99}],236:[function(t,e,r){var n=t(62),a=t(101).f,o=t(38);n(n.S,\"Reflect\",{deleteProperty:function(t,e){var r=a(o(t),e);return!(r&&!r.configurable)&&delete t[e]}})},{101:101,38:38,62:62}],237:[function(t,e,r){\"use strict\";function n(t){this._t=o(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)}var a=t(62),o=t(38);t(84)(n,\"Object\",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),a(a.S,\"Reflect\",{enumerate:function(t){return new n(t)}})},{38:38,62:62,84:84}],238:[function(t,e,r){var n=t(101),a=t(62),o=t(38);a(a.S,\"Reflect\",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},{101:101,38:38,62:62}],239:[function(t,e,r){var n=t(62),a=t(105),o=t(38);n(n.S,\"Reflect\",{getPrototypeOf:function(t){return a(o(t))}})},{105:105,38:38,62:62}],240:[function(t,e,r){var o=t(101),i=t(105),s=t(71),n=t(62),l=t(81),c=t(38);n(n.S,\"Reflect\",{get:function t(e,r){var n,a=arguments.length<3?e:arguments[2];return c(e)===a?e[r]:(n=o.f(e,r))?s(n,\"value\")?n.value:void 0!==n.get?n.get.call(a):void 0:l(n=i(e))?t(n,r,a):void 0}})},{101:101,105:105,38:38,62:62,71:71,81:81}],241:[function(t,e,r){t=t(62);t(t.S,\"Reflect\",{has:function(t,e){return e in t}})},{62:62}],242:[function(t,e,r){var n=t(62),a=t(38),o=Object.isExtensible;n(n.S,\"Reflect\",{isExtensible:function(t){return a(t),!o||o(t)}})},{38:38,62:62}],243:[function(t,e,r){var n=t(62);n(n.S,\"Reflect\",{ownKeys:t(111)})},{111:111,62:62}],244:[function(t,e,r){var n=t(62),a=t(38),o=Object.preventExtensions;n(n.S,\"Reflect\",{preventExtensions:function(t){a(t);try{return o&&o(t),!0}catch(t){return!1}}})},{38:38,62:62}],245:[function(t,e,r){var n=t(62),a=t(122);a&&n(n.S,\"Reflect\",{setPrototypeOf:function(t,e){a.check(t,e);try{return a.set(t,e),!0}catch(t){return!1}}})},{122:122,62:62}],246:[function(t,e,r){var s=t(99),l=t(101),c=t(105),p=t(71),n=t(62),u=t(116),f=t(38),d=t(81);n(n.S,\"Reflect\",{set:function t(e,r,n){var a,o=arguments.length<4?e:arguments[3],i=l.f(f(e),r);if(!i){if(d(a=c(e)))return t(a,r,n,o);i=u(0)}if(p(i,\"value\")){if(!1===i.writable||!d(o))return!1;if(a=l.f(o,r)){if(a.get||a.set||!1===a.writable)return!1;a.value=n,s.f(o,r,a)}else s.f(o,r,u(0,n));return!0}return void 0!==i.set&&(i.set.call(o,n),!0)}})},{101:101,105:105,116:116,38:38,62:62,71:71,81:81,99:99}],247:[function(t,e,r){var n=t(70),o=t(75),a=t(99).f,i=t(103).f,s=t(82),l=t(66),c=h=n.RegExp,p=h.prototype,u=/a/g,f=/a/g,d=new h(u)!==u;if(t(58)&&(!d||t(64)(function(){return f[t(152)(\"match\")]=!1,h(u)!=u||h(f)==f||\"/a/i\"!=h(u,\"i\")}))){for(var h=function(t,e){var r=this instanceof h,n=s(t),a=void 0===e;return!r&&n&&t.constructor===h&&a?t:o(d?new c(n&&!a?t.source:t,e):c((n=t instanceof h)?t.source:t,n&&a?l.call(t):e),r?this:p,h)},m=i(c),g=0;m.length>g;)!function(e){e in h||a(h,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})}(m[g++]);(p.constructor=h).prototype=p,t(118)(n,\"RegExp\",h)}t(123)(\"RegExp\")},{103:103,118:118,123:123,152:152,58:58,64:64,66:66,70:70,75:75,82:82,99:99}],248:[function(t,e,r){\"use strict\";var n=t(120);t(62)({target:\"RegExp\",proto:!0,forced:n!==/./.exec},{exec:n})},{120:120,62:62}],249:[function(t,e,r){t(58)&&\"g\"!=/./g.flags&&t(99).f(RegExp.prototype,\"flags\",{configurable:!0,get:t(66)})},{58:58,66:66,99:99}],250:[function(t,e,r){\"use strict\";var p=t(38),u=t(141),f=t(36),d=t(119);t(65)(\"match\",1,function(n,a,l,c){return[function(t){var e=n(this),r=null==t?void 0:t[a];return void 0!==r?r.call(t,e):new RegExp(t)[a](String(e))},function(t){var e=c(l,t,this);if(e.done)return e.value;var r=p(t),n=String(this);if(!r.global)return d(r,n);for(var a=r.unicode,o=[],i=r.lastIndex=0;null!==(s=d(r,n));){var s=String(s[0]);\"\"===(o[i]=s)&&(r.lastIndex=f(n,u(r.lastIndex),a)),i++}return 0===i?null:o}]})},{119:119,141:141,36:36,38:38,65:65}],251:[function(t,e,r){\"use strict\";var w=t(38),_=t(142),C=t(141),P=t(139),S=t(36),L=t(119),E=Math.max,T=Math.min,k=Math.floor,R=/\\$([$&`']|\\d\\d?|<[^>]*>)/g,F=/\\$([$&`']|\\d\\d?)/g;t(65)(\"replace\",2,function(a,o,b,x){return[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):b.call(String(r),t,e)},function(t,e){var r=x(b,t,this,e);if(r.done)return r.value;var n,a=w(t),o=String(this),i=\"function\"==typeof e,s=(i||(e=String(e)),a.global);s&&(n=a.unicode,a.lastIndex=0);for(var l=[];;){var c=L(a,o);if(null===c)break;if(l.push(c),!s)break;\"\"===String(c[0])&&(a.lastIndex=S(o,C(a.lastIndex),n))}for(var p,u=\"\",f=0,d=0;d>>0,p=new RegExp(t.source,s+\"g\");(n=f.call(p,r))&&!(l<(a=p[C])&&(i.push(r.slice(l,n.index)),1=c));)p[C]===n.index&&p[C]++;return l===r[_]?!o&&p.test(\"\")||i.push(\"\"):i.push(r.slice(l)),i[_]>c?i.slice(0,c):i}:\"0\"[i](void 0,0)[_]?function(t,e){return void 0===t&&0===e?[]:h.call(this,t,e)}:h;return[function(t,e){var r=a(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):g.call(String(r),t,e)},function(t,e){var r=m(g,t,this,e,g!==h);if(r.done)return r.value;var r=y(t),n=String(this),t=A(r,RegExp),a=r.unicode,o=(r.ignoreCase?\"i\":\"\")+(r.multiline?\"m\":\"\")+(r.unicode?\"u\":\"\")+(S?\"y\":\"g\"),i=new t(S?r:\"^(?:\"+r.source+\")\",o),s=void 0===e?P:e>>>0;if(0==s)return[];if(0===n.length)return null===x(i,n)?[n]:[];for(var l=0,c=0,p=[];c>10),e%1024+56320))}return r.join(\"\")}})},{137:137,62:62}],266:[function(t,e,r){\"use strict\";var n=t(62),a=t(130);n(n.P+n.F*t(63)(\"includes\"),\"String\",{includes:function(t){return!!~a(this,t,\"includes\").indexOf(t,1=t.length?{value:void 0,done:!0}:(t=n(t,e),this._i+=t.length,{value:t,done:!1})})},{129:129,85:85}],269:[function(t,e,r){\"use strict\";t(131)(\"link\",function(e){return function(t){return e(this,\"a\",\"href\",t)}})},{131:131}],270:[function(t,e,r){var n=t(62),i=t(140),s=t(141);n(n.S,\"String\",{raw:function(t){for(var e=i(t.raw),r=s(e.length),n=arguments.length,a=[],o=0;oa;)c(T,e=r[a++])||e==L||e==z||n.push(e);return n}function i(t){for(var e,r=t===R,n=J(r?k:y(t)),a=[],o=0;n.length>o;)!c(T,e=n[o++])||r&&!c(R,e)||a.push(T[e]);return a}function s(t,e,r){return t===R&&s(k,e,r),g(t),e=A(e,!0),g(r),c(T,e)?(r.enumerable?(c(t,L)&&t[L][e]&&(t[L][e]=!1),r=b(r,{enumerable:v(0,!1)})):(c(t,L)||w(t,L,v(1,{})),t[L][e]=!0),O(t,e,r)):w(t,e,r)}var l=t(70),c=t(71),p=t(58),u=t(62),M=t(118),z=t(94).KEY,f=t(64),d=t(126),h=t(124),U=t(147),m=t(152),j=t(151),G=t(150),W=t(61),H=t(79),g=t(38),V=t(81),Q=t(142),y=t(140),A=t(143),v=t(116),b=t(98),Y=t(102),q=t(101),x=t(104),Z=t(99),X=t(107),K=q.f,w=Z.f,J=Y.f,_=l.Symbol,C=l.JSON,P=C&&C.stringify,S=\"prototype\",L=m(\"_hidden\"),$=m(\"toPrimitive\"),tt={}.propertyIsEnumerable,E=d(\"symbol-registry\"),T=d(\"symbols\"),k=d(\"op-symbols\"),R=Object[S],d=\"function\"==typeof _&&!!x.f,F=l.QObject,I=!F||!F[S]||!F[S].findChild,O=p&&f(function(){return 7!=b(w({},\"a\",{get:function(){return w(this,\"a\",{value:7}).a}})).a})?function(t,e,r){var n=K(R,e);n&&delete R[e],w(t,e,r),n&&t!==R&&w(R,e,n)}:w,B=d&&\"symbol\"==typeof _.iterator?function(t){return\"symbol\"==typeof t}:function(t){return t instanceof _};d||(M((_=function(){if(this instanceof _)throw TypeError(\"Symbol is not a constructor!\");var e=U(0rt;)m(et[rt++]);for(var nt=X(m.store),at=0;nt.length>at;)G(nt[at++]);u(u.S+u.F*!d,\"Symbol\",{for:function(t){return c(E,t+=\"\")?E[t]:E[t]=_(t)},keyFor:function(t){if(!B(t))throw TypeError(t+\" is not a symbol!\");for(var e in E)if(E[e]===t)return e},useSetter:function(){I=!0},useSimple:function(){I=!1}}),u(u.S+u.F*!d,\"Object\",{create:function(t,e){return void 0===e?b(t):r(b(t),e)},defineProperty:s,defineProperties:r,getOwnPropertyDescriptor:a,getOwnPropertyNames:o,getOwnPropertySymbols:i});F=f(function(){x.f(1)});u(u.S+u.F*F,\"Object\",{getOwnPropertySymbols:function(t){return x.f(Q(t))}}),C&&u(u.S+u.F*(!d||f(function(){var t=_();return\"[null]\"!=P([t])||\"{}\"!=P({a:t})||\"{}\"!=P(Object(t))})),\"JSON\",{stringify:function(t){for(var e,r,n=[t],a=1;as;)void 0!==(r=a(n,e=o[s++]))&&u(i,e,r);return i}})},{101:101,111:111,140:140,53:53,62:62}],296:[function(t,e,r){var n=t(62),a=t(110)(!1);n(n.S,\"Object\",{values:function(t){return a(t)}})},{110:110,62:62}],297:[function(t,e,r){\"use strict\";var n=t(62),a=t(52),o=t(70),i=t(127),s=t(115);n(n.P+n.R,\"Promise\",{finally:function(e){var r=i(this,a.Promise||o.Promise),t=\"function\"==typeof e;return this.then(t?function(t){return s(r,e()).then(function(){return t})}:e,t?function(t){return s(r,e()).then(function(){throw t})}:e)}})},{115:115,127:127,52:52,62:62,70:70}],298:[function(t,e,r){\"use strict\";var n=t(62),a=t(132),t=t(148),t=/Version\\/10\\.\\d+(\\.\\d+)?( Mobile\\/\\w+)? Safari\\//.test(t);n(n.P+n.F*t,\"String\",{padEnd:function(t){return a(this,t,1/g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\")}function O(t){return\"number\"==typeof t&&100\").concat(e,\"\"):\"\")}function M(t){var e=\"solid\",r=\"\",n=\"\",a=\"\";return t&&(\"string\"==typeof t?r=t:(t.type&&(e=t.type),t.color&&(r=t.color),t.alpha&&(n+='')),t.transparency&&(n+=''))),a+=\"solid\"===e?\"\".concat(D(r,n),\"\"):\"\"),a}function C(t){return t._rels.length+t._relsChart.length+t._relsMedia.length+1}function mt(t,d,e,r){void 0===t&&(t=[]);var n,a=w,p=+R,u=0,o=0,h=[],i=F((d=void 0===d?{}:d).x,\"X\",e),s=F(d.y,\"Y\",e),l=F(d.w,\"X\",e),c=F(d.h,\"Y\",e),f=l;function m(){var t=0;0===h.length&&(t=s||O(a[0])),0r?r=B(t.options.margin[0]):d.margin&&d.margin[0]&&B(d.margin[0])>r&&(r=B(d.margin[0])),t.options.margin&&t.options.margin[2]&&B(t.options.margin[2])>n?n=B(t.options.margin[2]):d.margin&&d.margin[2]&&B(d.margin[2])>n&&(n=B(d.margin[2]))):(t.options.margin&&t.options.margin[0]&&O(t.options.margin[0])>r?r=O(t.options.margin[0]):d.margin&&d.margin[0]&&O(d.margin[0])>r&&(r=O(d.margin[0])),t.options.margin&&t.options.margin[2]&&O(t.options.margin[2])>n?n=O(t.options.margin[2]):d.margin&&d.margin[2]&&O(d.margin[2])>n&&(n=O(d.margin[2])))}),m(),u+=r+n,d.verbose&&0===e&&console.log(\"| SLIDE [\".concat(h.length,\"]: emuSlideTabH ...... = \").concat((p/R).toFixed(1),\" \")),t.forEach(function(r,n){var t,a,e,o,i,s,l,c,p={_type:k.tablecell,_lines:null,_lineHeight:O((r.options&&r.options.fontSize?r.options.fontSize:d.fontSize||x)*(q+(d.autoPageLineWeight||0))/100),text:[],options:r.options},u=(p.options.rowspan&&(p._lineHeight=0),p.options.autoPageCharWeight=d.autoPageCharWeight||null,d.colW[n]);r.options.colspan&&Array.isArray(d.colW)&&(u=d.colW.filter(function(t,e){return n<=e&&e \".concat(JSON.stringify(c))),s.push(c),c=[])),0o&&(i.push(e),e=[],r=\"\"),e.push(t),r+=t.text.toString()}),0=i&&(i=t._lineHeight)}),p maxH) => \".concat((u/R).toFixed(2),\" + \").concat((l._lineHeight/R).toFixed(2),\" > \").concat(p/R)),console.log(\"|-----------------------------------------------------------------------|\\n\\n\")),0r&&(r=t._lineHeight)}),A.rows.push(e),u+=r}),c=a[o]),l._lines.shift());Array.isArray(c.text)&&(l?c.text=c.text.concat(l):0===c.text.length&&(c.text=c.text.concat({_type:k.tablecell,text:\"\"}))),o===f.length-1&&(u+=i),o=o'},contain:function(t,e){var t=t.h/t.w,r=t'},crop:function(t,e){var r=e.x,n=t.w-(e.x+e.w),a=e.y,e=t.h-(e.y+e.h);return''}};function yt(L){var E=L._name?'':\"\",T=1;return L._bkgdImgRid?E+=''):L.background&&L.background.color?E+=\"\".concat(M(L.background),\"\"):!L.bkgd&&L._name&&L._name===et&&(E+=''),E=(E=E+\"\"+'')+''+'',L._slideObjects.forEach(function(n,t){var e,r=0,a=0,o=F(\"75%\",\"X\",L._presLayout),i=0,s=\"\";switch(void 0!==L._slideLayout&&void 0!==L._slideLayout._slideObjects&&n.options&&n.options.placeholder&&(e=L._slideLayout._slideObjects.filter(function(t){return t.options.placeholder===n.options.placeholder})[0]),n.options=n.options||{},void 0!==n.options.x&&(r=F(n.options.x,\"X\",L._presLayout)),void 0!==n.options.y&&(a=F(n.options.y,\"Y\",L._presLayout)),void 0!==n.options.w&&(o=F(n.options.w,\"X\",L._presLayout)),void 0!==n.options.h&&(i=F(n.options.h,\"Y\",L._presLayout)),e&&(!e.options.x&&0!==e.options.x||(r=F(e.options.x,\"X\",L._presLayout)),!e.options.y&&0!==e.options.y||(a=F(e.options.y,\"Y\",L._presLayout)),!e.options.w&&0!==e.options.w||(o=F(e.options.w,\"X\",L._presLayout)),!e.options.h&&0!==e.options.h||(i=F(e.options.h,\"Y\",L._presLayout))),n.options.flipH&&(s+=' flipH=\"1\"'),n.options.flipV&&(s+=' flipV=\"1\"'),n.options.rotate&&(s+=' rot=\"'+N(n.options.rotate)+'\"'),n._type){case k.table:var l,c=n.arrTabRows,p=n.options,u=0,f=0,d=(c[0].forEach(function(t){l=t.options||null,u+=l&&l.colspan?Number(l.colspan):1}),'')),d=(d+=' ')+'')+'';if(Array.isArray(p.colW)){d+=\"\";for(var h=0;h'}d+=\"\"}else{f=p.colW||R,n.options.w&&!p.colW&&(f=Math.round((\"number\"==typeof n.options.w?n.options.w:1)/u)),d+=\"\";for(var g=0;g';d+=\"\"}c.forEach(function(a){for(var o,i,t=0;t'),t.forEach(function(t){var e,r,n,a,o,i={rowSpan:1<(null==(s=t.options)?void 0:s.rowspan)?t.options.rowspan:void 0,gridSpan:1<(null==(s=t.options)?void 0:s.colspan)?t.options.colspan:void 0,vMerge:t._vmerge?1:void 0,hMerge:t._hmerge?1:void 0},s=(s=Object.keys(i).map(function(t){return[t,i[t]]}).filter(function(t){return t[0],!!t[1]}).map(function(t){var e=t[0],t=t[1];return\"\".concat(e,'=\"').concat(t,'\"')}).join(\" \"))&&\" \"+s;t._hmerge||t._vmerge?d+=\"\"):(e=t.options||{},t.options=e,[\"align\",\"bold\",\"border\",\"color\",\"fill\",\"fontFace\",\"fontSize\",\"margin\",\"underline\",\"valign\"].forEach(function(t){p[t]&&!e[t]&&0!==e[t]&&(e[t]=p[t])}),r=e.valign?' anchor=\"'+e.valign.replace(/^c$/i,\"ctr\").replace(/^m$/i,\"ctr\").replace(\"center\",\"ctr\").replace(\"middle\",\"ctr\").replace(\"top\",\"t\").replace(\"btm\",\"b\").replace(\"bottom\",\"b\")+'\"':\"\",n=(n=(t._optImp&&t._optImp.fill&&t._optImp.fill.color?t._optImp.fill.color:t._optImp&&t._optImp.fill&&\"string\"==typeof t._optImp.fill?t._optImp.fill:\"\")||e.fill?e.fill:\"\")?M(n):\"\",a=0===e.margin||e.margin?e.margin:$,o=\"\",o=1<=(a=Array.isArray(a)||\"number\"!=typeof a?a:[a,a,a,a])[0]?' marL=\"'.concat(B(a[3]),'\" marR=\"').concat(B(a[1]),'\" marT=\"').concat(B(a[0]),'\" marB=\"').concat(B(a[2]),'\"'):' marL=\"'.concat(O(a[3]),'\" marR=\"').concat(O(a[1]),'\" marT=\"').concat(O(a[0]),'\" marB=\"').concat(O(a[2]),'\"'),d+=\"\").concat(xt(t),\"\"),e.border&&Array.isArray(e.border)&&[{idx:3,name:\"lnL\"},{idx:1,name:\"lnR\"},{idx:0,name:\"lnT\"},{idx:2,name:\"lnB\"}].forEach(function(t){\"none\"!==e.border[t.idx].type?d=(d=(d=(d+=\"'))+\"\".concat(D(e.border[t.idx].color),\"\"))+''))+\"\"):d+=\"\")}),d=d+n+\" \")}),d+=\"\"}),E+=d=(d=d+\" \"+\" \")+\" \"+\"\",T++;break;case k.text:case k.placeholder:if(n.options.line||0!==i||(i=.3*R),n.options._bodyProp||(n.options._bodyProp={}),n.options.margin&&Array.isArray(n.options.margin)?(n.options._bodyProp.lIns=B(n.options.margin[0]||0),n.options._bodyProp.rIns=B(n.options.margin[1]||0),n.options._bodyProp.bIns=B(n.options.margin[2]||0),n.options._bodyProp.tIns=B(n.options.margin[3]||0)):\"number\"==typeof n.options.margin&&(n.options._bodyProp.lIns=B(n.options.margin),n.options._bodyProp.rIns=B(n.options.margin),n.options._bodyProp.bIns=B(n.options.margin),n.options._bodyProp.tIns=B(n.options.margin)),E=(E+=\"\")+''),n.options.hyperlink&&n.options.hyperlink.url&&(E+=''),n.options.hyperlink&&n.options.hyperlink.slide&&(E+=''),E=(E=(E=(E=(E=(E+=\"\")+(\"':\"/>\")))+\"\".concat(\"placeholder\"===n._type?wt(n):wt(e),\"\")+\"\")+\"\"))+''))+''),\"custGeom\"===n.shape)E=(E+='')+''),null!=(_=n.options.points)&&_.map(function(t,e){if(\"curve\"in t)switch(t.curve.type){case\"arc\":E+='');break;case\"cubic\":E+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t');break;case\"quadratic\":E+='\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t')}else\"close\"in t?E+=\"\":t.moveTo||0===e?E+=''):E+='')}),E+=\"\";else{if(E+='',n.options.rectRadius)E+='');else if(n.options.angleRange){for(var y=0;y<2;y++){var A=n.options.angleRange[y];E+='')}n.options.arcThicknessRatio&&(E+=''))}E+=\"\"}E+=n.options.fill?M(n.options.fill):\"\",n.options.line&&(E+=n.options.line.width?''):\"\",n.options.line.color&&(E+=M(n.options.line)),n.options.line.dashType&&(E+='')),n.options.line.beginArrowType&&(E+='')),n.options.line.endArrowType&&(E+='')),E+=\"\"),n.options.shadow&&(n.options.shadow.type=n.options.shadow.type||\"outer\",n.options.shadow.blur=B(n.options.shadow.blur||8),n.options.shadow.offset=B(n.options.shadow.offset||4),n.options.shadow.angle=Math.round(6e4*(n.options.shadow.angle||270)),n.options.shadow.opacity=Math.round(1e5*(n.options.shadow.opacity||.75)),n.options.shadow.color=n.options.shadow.color||nt.color,E=(E=(E=(E=(E=(E+=\"\")+\"')+'')+''),E=(E+=\"\")+xt(n)+\"\";break;case k.image:var v,b,x,w,_=n.options.sizing,C=n.options.rounding,P=o,S=i;E=(E=E+\"\"+\" \")+''),n.hyperlink&&n.hyperlink.url&&(E+='')),n.hyperlink&&n.hyperlink.slide&&(E+='')),E=(E=(E=E+\" \"+' ')+(\" \"+wt(e)+\"\"))+\" \"+\"\",E=(L._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0]&&\"svg\"===(L._relsMedia||[]).filter(function(t){return t.rId===n.imageRid})[0].extn?(E=(E+='')+(n.options.transparency?' '):\"\")+' ')+' ':(E+='')+(n.options.transparency?' '):\"\")+\"\",_&&_.type?(v=_.w?F(_.w,\"X\",L._presLayout):o,b=_.h?F(_.h,\"Y\",L._presLayout):i,x=F(_.x||0,\"X\",L._presLayout),w=F(_.y||0,\"Y\",L._presLayout),E+=gt[_.type]({w:P,h:S},{w:v,h:b,x:x,y:w}),P=v,S=b):E+=\" \",E=(E=(E=(E=(E+=\"\")+\"\"+(\" \"))+(' ')+(' '))+\" \"+(' '))+\"\"+\"\";break;case k.media:E=\"online\"===n.mtype?(E=(E=(E=(E=(E+=\" \")+'')+\" \")+' ')+' ')+\" \")+' ':(E=(E=(E=(E=(E=(E+=\" \")+'')+' ')+' ')+' ')+' ')+\" \")+' ';break;case k.chart:E=(E=(E=(E=(E=(E=(E=E+\"\"+\" \")+' ')+\" \")+\" \".concat(wt(e),\"\")+\" \")+' '))+' '+' ')+' ')+\" \")+\" \"+\"\";break;default:E+=\"\"}}),L._slideNumberProps&&(L._slideNumberProps.align||(L._slideNumberProps.align=\"left\"),E=E+(' \",(L._slideNumberProps.fontFace||L._slideNumberProps.fontSize||L._slideNumberProps.color)&&(E+=''),L._slideNumberProps.color&&(E+=M(L._slideNumberProps.color)),L._slideNumberProps.fontFace&&(E+='')),E+=\"\"),E+=\"\",L._slideNumberProps.align.startsWith(\"l\")?E+='':L._slideNumberProps.align.startsWith(\"c\")?E+='':L._slideNumberProps.align.startsWith(\"r\")?E+='':E+='',E=(E+=''))+\"\".concat(L._slideNum,'')+\"\"),E=E+\"\"+\"\"}function At(t,e){var r=0,n=''+u+'';return t._rels.forEach(function(t){r=Math.max(r,t.rId),-1':n+='':-1')}),(t._relsChart||[]).forEach(function(t){r=Math.max(r,t.rId),n+=''}),(t._relsMedia||[]).forEach(function(t){r=Math.max(r,t.rId),-1':-1':n+='':-1':n+='':-1':n+='')}),e.forEach(function(t,e){n+=''}),n+=\"\"}function vt(t,e){var r,n=\"\",a=\"\",o=\"\",i=\"\",s=e?\"a:lvl1pPr\":\"a:pPr\",l=B(Z),c=\"<\".concat(s).concat(t.options.rtlMode?' rtl=\"1\" ':\"\");if(t.options.align)switch(t.options.align){case\"left\":c+=' algn=\"l\"';break;case\"right\":c+=' algn=\"r\"';break;case\"center\":c+=' algn=\"ctr\"';break;case\"justify\":c+=' algn=\"just\"';break;default:c+=\"\"}return t.options.lineSpacing?a=''):t.options.lineSpacingMultiple&&(a='')),t.options.indentLevel&&!isNaN(Number(t.options.indentLevel))&&0')),t.options.paraSpaceAfter&&!isNaN(Number(t.options.paraSpaceAfter))&&0')),\"object\"==typeof t.options.bullet?(t&&t.options&&t.options.bullet&&t.options.bullet.indent&&(l=B(t.options.bullet.indent)),t.options.bullet.type?\"number\"===t.options.bullet.type.toString().toLowerCase()&&(c+=' marL=\"'.concat(t.options.indentLevel&&0')):n=t.options.bullet.characterCode?(r=\"&#x\".concat(t.options.bullet.characterCode,\";\"),!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.characterCode)&&(console.warn(\"Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!\"),r=p.DEFAULT),c+=' marL=\"'.concat(t.options.indentLevel&&0'):t.options.bullet.code?(r=\"&#x\".concat(t.options.bullet.code,\";\"),!1===/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.code)&&(console.warn(\"Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!\"),r=p.DEFAULT),c+=' marL=\"'.concat(t.options.indentLevel&&0'):(c+=' marL=\"'.concat(t.options.indentLevel&&0'))):!0===t.options.bullet?(c+=' marL=\"'.concat(t.options.indentLevel&&0')):!1===t.options.bullet&&(c+=' indent=\"0\" marL=\"0\"',n=\"\"),t.options.tabStops&&Array.isArray(t.options.tabStops)&&(r=t.options.tabStops.map(function(t){return'')}).join(\"\"),i=\"\".concat(r,\"\")),c+=\">\"+a+o+n+i,e&&(c+=bt(t.options,!0)),c+=\"\"}function bt(t,e){var r,n,a,o,i=\"\",e=e?\"a:defRPr\":\"a:rPr\",i=(i=(i=(i=(i+=\"<\"+e+' lang=\"'+(t.lang||\"en-US\")+'\"'+(t.lang?' altLang=\"en-US\"':\"\"))+(t.fontSize?' sz=\"'+Math.round(t.fontSize)+'00\"':\"\"))+(t.hasOwnProperty(\"bold\")?' b=\"'.concat(t.bold?1:0,'\"'):\"\"))+(t.hasOwnProperty(\"italic\")?' i=\"'.concat(t.italic?1:0,'\"'):\"\"))+(t.hasOwnProperty(\"strike\")?' strike=\"'.concat(\"string\"==typeof t.strike?t.strike:\"sngStrike\",'\"'):\"\");if(\"object\"==typeof t.underline&&null!=(r=t.underline)&&r.style?i+=' u=\"'.concat(t.underline.style,'\"'):\"string\"==typeof t.underline?i+=' u=\"'.concat(t.underline,'\"'):t.hyperlink&&(i+=' u=\"sng\"'),t.baseline?i+=' baseline=\"'.concat(Math.round(50*t.baseline),'\"'):t.subscript?i+=' baseline=\"-40000\"':t.superscript&&(i+=' baseline=\"30000\"'),i=i+(t.charSpacing?' spc=\"'.concat(Math.round(100*t.charSpacing),'\" kern=\"0\"'):\"\")+' dirty=\"0\">',(t.color||t.fontFace||t.outline||\"object\"==typeof t.underline&&t.underline.color)&&(t.outline&&\"object\"==typeof t.outline&&(i+='').concat(M(t.outline.color||\"FFFFFF\"),\"\")),t.color&&(i+=M({color:t.color,transparency:t.transparency})),t.highlight&&(i+=\"\".concat(D(t.highlight),\"\")),\"object\"==typeof t.underline&&t.underline.color&&(i+=\"\".concat(M(t.underline.color),\"\")),t.glow&&(i+=\"\".concat((r=t.glow,a=\"\",n=_(n=at,r),r=Math.round(n.size*b),o=n.color,n=Math.round(1e5*n.opacity),(a+=''))+D(o,''))+\"\"),\"\")),t.fontFace&&(i+=''))),t.hyperlink){if(\"object\"!=typeof t.hyperlink)throw new Error(\"ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` \");if(!t.hyperlink.url&&!t.hyperlink.slide)throw new Error(\"ERROR: 'hyperlink requires either `url` or `slide`'\");t.hyperlink.url?i+='\":\"/>\"):t.hyperlink.slide&&(i+='\":\"/>\")),t.color&&(i+='\\t\\t\\t\\t\\t\\t\\t\\t\\t')}return i+=\"\")}function xt(r){var a=r.options||{},t=[],n=[];if(a&&r._type!==k.tablecell&&(void 0===r.text||null===r.text))return\"\";var e,o,i=r._type===k.tablecell?\"\":\"\",s=(i+=(o=\"\",e.options.fit&&(\"none\"===e.options.fit?o+=\"\":\"shrink\"===e.options.fit?o+=\"\":\"resize\"===e.options.fit&&(o+=\"\")),e.options.shrinkText&&(o+=\"\"),o=o+(!1!==e.options._bodyProp.autoFit?\"\":\"\")+\"\"):o+=' wrap=\"square\" rtlCol=\"0\">',e._type===k.tablecell?\"\":o),0===a.h&&a.line&&a.align?i+='':\"placeholder\"===r._type?i+=\"\".concat(vt(r,!0),\"\"):i+=\"\",\"string\"==typeof r.text||\"number\"==typeof r.text?t.push({text:r.text.toString(),options:a||{}}):r.text&&!Array.isArray(r.text)&&\"object\"==typeof r.text&&-1\",\"\"),r.options.align=r.options.align||a.align,r.options.lineSpacing=r.options.lineSpacing||a.lineSpacing,r.options.lineSpacingMultiple=r.options.lineSpacingMultiple||a.lineSpacingMultiple,r.options.indentLevel=r.options.indentLevel||a.indentLevel,r.options.paraSpaceBefore=r.options.paraSpaceBefore||a.paraSpaceBefore,r.options.paraSpaceAfter=r.options.paraSpaceAfter||a.paraSpaceAfter,n=vt(r,!1),i+=n.replace(\"\",\"\"),Object.entries(a).forEach(function(t){var e=t[0],t=t[1];r.options.hyperlink&&\"color\"===e||\"bullet\"===e||r.options[e]||(r.options[e]=t)}),i+=(t=r).text?\"\".concat(bt(t.options,!1),\"\").concat(I(t.text),\"\"):\"\",(!r.text&&a.fontSize||r.options.fontSize)&&(e=!0,a.fontSize=a.fontSize||r.options.fontSize)}),r._type===k.tablecell&&(a.fontSize||a.fontFace)?a.fontFace?i=(i=(i=(i+='')+''))+''))+'')+\"\":i+='':i+=e?'':''),i+=\"\"}),i+=r._type===k.tablecell?\"\":\"\"}function wt(t){if(!t)return\"\";var e=t.options&&t.options._placeholderIdx?t.options._placeholderIdx:\"\",r=t.options&&t.options._placeholderType?t.options._placeholderType:\"\";return\"\")}function _t(t){return''+u+''+I((e=\"\",t._slideObjects.forEach(function(t){t._type===k.notes&&(e+=t.text&&t.text[0]?t.text[0].text:\"\")}),e.replace(/\\r*\\n/g,u)))+''+t._slideNum+'';var e}function Ct(t,e,r){return At(t[r-1],[{target:\"../slideLayouts/slideLayout\"+function(t,e,r){for(var n=0;n \\n'),t.file(\"_rels/.rels\",'\\n'),t.file(\"docProps/app.xml\",'Microsoft Excel0falseWorksheets1Sheet1\\n'),t.file(\"docProps/core.xml\",'PptxGenJSEly, Brent'+(new Date).toISOString()+''+(new Date).toISOString()+\"\\n\"),t.file(\"xl/_rels/workbook.xml.rels\",'\\n'),t.file(\"xl/styles.xml\",'\\n'),t.file(\"xl/theme/theme1.xml\",''),t.file(\"xl/workbook.xml\",'\\n'),t.file(\"xl/worksheets/_rels/sheet1.xml.rels\",'\\n'),''),o=(p.opts._type===d.BUBBLE?n+='':p.opts._type===d.SCATTER?n+='':n=n+('',p.opts._type===d.BUBBLE?f.forEach(function(t,e){0===e?n+=\"X-Axis\":n=(n+=\"\"+I(t.name||\" \")+\"\")+\"\"+I(\"Size \"+e)+\"\"}):f.forEach(function(t){n+=\"\"+I((t.name||\" \").replace(\"X-Axis\",\"X-Values\"))+\"\"}),p.opts._type!==d.BUBBLE&&p.opts._type!==d.SCATTER&&f[0].labels.forEach(function(t){n+=\"\"+I(t)+\"\"}),n+=\"\\n\",t.file(\"xl/sharedStrings.xml\",n),''),i=(p.opts._type!==d.BUBBLE&&(p.opts._type===d.SCATTER?(o=(o+='')+'',f.forEach(function(t,e){o+=''})):(o=(o+='
')+'',f.forEach(function(t,e){o+=''}))),o=(o+=\"\")+''+\"
\",t.file(\"xl/tables/table1.xml\",o),'');if(i+='',p.opts._type===d.BUBBLE?i+='':p.opts._type===d.SCATTER?i+='':i+='',i=i+''+'',p.opts._type===d.BUBBLE){for(var i=(i=(i=(i+=\"\")+(''))+\"\"+\"\")+('')+'0',s=1;s')+\"\"+s+\"\";i+=\"\",f[0].values.forEach(function(t,e){i=i+''+t+\"\";for(var r=1,n=1;n')+\"\"+(f[n].values[e]||\"\")+\"\")+'')+\"\"+(f[n].sizes[e]||\"\")+\"\",r++;i+=\"\"})}else if(p.opts._type===d.SCATTER){i=(i=(i=(i+=\"\")+(''))+\"\"+\"\")+('')+'0';for(var l=1;l')+\"\"+l+\"\";i+=\"\",f[0].values.forEach(function(t,e){i=i+(''+t+\"\";for(var r=1;r')+\"\"+(f[r].values[e]||0===f[r].values[e]?f[r].values[e]:\"\")+\"\";i+=\"\"})}else{i=(i=(i=i+\"\"+'')+\"\"+\"\")+('')+'0';for(var c=1;c<=f.length;c++)i=(i+='')+\"\"+c+\"\";i+=\"\",f[0].labels.forEach(function(t,e){i=(i=i+('')+\"\"+(f.length+e+1)+\"\";for(var r=0;r')+\"\"+(f[r].values[e]||\"\")+\"\";i+=\"\"})}i+='\\n',t.file(\"xl/worksheets/sheet1.xml\",i),t.generateAsync({type:\"base64\"}).then(function(t){u.file(\"ppt/embeddings/Microsoft_Excel_Worksheet\"+p.globalId+\".xlsx\",t,{base64:!0}),u.file(\"ppt/charts/_rels/\"+p.fileName+\".rels\",''),u.file(\"ppt/charts/\"+p.fileName,function(a){var o='',i=!1;o+='',a.opts.showTitle?o=o+Dt({title:a.opts.title||\"Chart Title\",color:a.opts.titleColor,fontFace:a.opts.titleFontFace,fontSize:a.opts.titleFontSize||tt,titleAlign:a.opts.titleAlign,titleBold:a.opts.titleBold,titlePos:a.opts.titlePos,titleRotate:a.opts.titleRotate})+'':o+='';a.opts._type===d.BAR3D&&(o=(o=(o=(o=(o+=\"\")+' ')+' ')+' ')+' ');o+=\"\",a.opts.layout?o=(o=(o=(o=(o+=' ')+' ')+' ')+' ')+' ':o+=\"\";Array.isArray(a.opts._type)?a.opts._type.forEach(function(t){var e=_(a.opts,t.options),r=e.secondaryValAxis?ot:g,n=e.secondaryCatAxis?st:it;i=i||e.secondaryValAxis,o+=Ot(t.type,t.data,e,r,n)}):o+=Ot(a.opts._type,a.data,a.opts,g,it);if(a.opts._type!==d.PIE&&a.opts._type!==d.DOUGHNUT){if(a.opts.valAxes&&1 ')+' ')+' ')+' ')+(\"none\"!==e.serGridLine.style?Mt(e.serGridLine):\"\"),e.showSerAxisTitle&&(n+=Dt({color:e.serAxisTitleColor,fontFace:e.serAxisTitleFontFace,fontSize:e.serAxisTitleFontSize,titleRotate:e.serAxisTitleRotate,title:e.serAxisTitle||\"Axis Title\"}));n=(n=(n=(n=(n=(n=(n=(n=n+' ')+' ')+' ')+(!1===e.serAxisLineShow?\"\":\"\"+D(e.serAxisLineColor||h.color)+\"\")+' ')+' '))+\" \"+D(e.serAxisLabelColor||m)+\"\")+' ')+' ')+' ',e.serAxisLabelFrequency&&(n+=' ');e.serLabelFormatCode&&([\"serAxisBaseTimeUnit\",\"serAxisMajorTimeUnit\",\"serAxisMinorTimeUnit\"].forEach(function(t){!e[t]||\"string\"==typeof e[t]&&-1!==[\"days\",\"months\",\"years\"].indexOf(t.toLowerCase())||(console.warn(\"`\"+t+\"` must be one of: 'days','months','years' !\"),e[t]=null)}),e.serAxisBaseTimeUnit&&(n+=' '),e.serAxisMajorTimeUnit&&(n+=' '),e.serAxisMinorTimeUnit&&(n+=' '),e.serAxisMajorUnit&&(n+=' '),e.serAxisMinorUnit&&(n+=' '));return n+=\"\"}(a.opts,lt,g)))}a.opts.showDataTable&&(o=(o=(o=(o=(o=(o+=\"\")+' ')+' ')+' ')+' \\t \\t \\t \\t\\t')+' ')+'\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t\\t\\t\\t\\t \\t');o=(o=(o+=\" \")+(a.opts.fill?M(a.opts.fill):\"\"))+(a.opts.border?'').concat(M(a.opts.border.color),\"\"):\"\")+\" \",a.opts.showLegend&&(o=(o+=\"\")+'',(a.opts.legendFontFace||a.opts.legendFontSize||a.opts.legendColor)&&(o=(o+=\" \")+(a.opts.legendFontSize?'':\"\"),a.opts.legendColor&&(o+=M(a.opts.legendColor)),a.opts.legendFontFace&&(o+=''),a.opts.legendFontFace&&(o+=''),o+=' '),o+=\"\");o=(o+=' ')+' ',a.opts._type===d.SCATTER&&(o+='');return o+=' '}(p)),e(null)}).catch(function(t){r(t)})})}function Ot(n,a,o,t,e){var i=\"\";switch(n){case d.AREA:case d.BAR:case d.BAR3D:case d.LINE:case d.RADAR:i+=\"\",n===d.AREA&&\"stacked\"===o.barGrouping&&(i+=''),n!==d.BAR&&n!==d.BAR3D||(i=(i+='')+''),n===d.RADAR&&(i+=''),i+='';var s=-1;a.forEach(function(t){s++;var e=t.index,r=(i=(i=(i=(i=(i=(i+=\"\")+(' ')+(' '))+\" \"+\" \")+(\" Sheet1!$\"+S(e+1)+\"$1\"))+(' '+I(t.name)+\"\")+\" \")+\" \"+' ',o.chartColors?o.chartColors[s%o.chartColors.length]:null);i+=\" \",\"transparent\"===r?i+=\"\":o.chartColorsOpacity?i+=\"\"+D(r,''))+\"\":i+=\"\"+D(r)+\"\",n===d.LINE||n===d.RADAR?0===o.lineSize?i+=\"\":i=(i+=''+D(r)+\"\")+'':o.dataBorder&&(i+=''+D(o.dataBorder.color)+''),i=i+L(o.shadow,c)+\" \",n!==d.RADAR&&(i=(i+=\" \")+' '),i=(i=(i=(i=(o.dataLabelBkgrdColors?(i+=\" \")+\" \"+D(r)+\" \":i)+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i=(i+=' ')+' ')+' ')+\" \"),n!==d.LINE&&n!==d.RADAR||(i=(i+=\"\")+' ',o.lineDataSymbolSize&&(i+=' '),i=(i=(i+=\" \")+\" \"+D(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e])+\"\")+' '+D(o.lineDataSymbolLineColor||r)+' '),n!==d.BAR&&n!==d.BAR3D||1!==a.length||!(o.chartColors&&o.chartColors!==ct&&1\")+' ',0===o.lineSize?i+=\"\":i=n===d.BAR?(i+=\"\")+' ':(i+=\" \")+' ',i=i+L(o.shadow,c)+\" \"}),i+=\"\",o.catLabelFormatCode?(i=(i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(t.labels.length+1)+\" \")+\" \"+(o.catLabelFormatCode||\"General\")+\"\")+' ',t.labels.forEach(function(t,e){i+=''+I(t)+\"\"}),i+=\" \"):(i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(t.labels.length+1)+\" \")+'\\t ',t.labels.forEach(function(t,e){i+=''+I(t)+\"\"}),i+=\" \"),i=(i=(i=(i=i+\"\"+\" \")+\" Sheet1!$\"+S(e+1)+\"$2:$\"+S(e+1)+\"$\"+(t.labels.length+1)+\" \")+\" \"+(o.valLabelFormatCode||o.dataTableFormatCode||\"General\")+\"\")+' ',t.values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i+=\" \",n===d.LINE&&(i+=''),i+=\"\"}),i=(i=(i=(i=(i+=\" \")+' ')+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i=(i+=' ')+' ')+' ')+\" \",n===d.BAR?i=(i+=' ')+' ':n===d.BAR3D?i=(i=(i+=' ')+' ')+' ':n===d.LINE&&(i+=' '),i=(i=i+(' ')+(' '))+(' ')+(\"\");break;case d.SCATTER:i=(i+=\"\")+''+'',s=-1,a.filter(function(t,e){return 0\")+' ')+\" Sheet1!$\"+y[t+1]+\"$1\")+' '+r.name+\" \";var n,e=o.chartColors[s%o.chartColors.length];\"transparent\"===e?i+=\"\":o.chartColorsOpacity?i+=\"\"+D(e,'')+\"\":i+=\"\"+D(e)+\"\",0===o.lineSize?i+=\"\":i=(i+=''+D(e)+\"\")+'',i=(i=(i+=L(o.shadow,c))+\" \"+\"\")+' ',o.lineDataSymbolSize&&(i+=' '),i=(i=(i+=\" \")+\" \"+D(o.chartColors[t+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):t])+\"\")+' '+D(o.lineDataSymbolLineColor||o.chartColors[s%o.chartColors.length])+' ',o.showLabel&&(n=ft(\"-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"),!r.labels||\"custom\"!==o.dataLabelFormatScatter&&\"customXY\"!==o.dataLabelFormatScatter||(i+=\"\",r.labels.forEach(function(t,e){\"custom\"!==o.dataLabelFormatScatter&&\"customXY\"!==o.dataLabelFormatScatter||(i=(i=(i=(i+=\" \")+' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t')+' \\t\\t')+\" \\t\\t\"+I(t)+\" \\t\",i=(\"customXY\"!==o.dataLabelFormatScatter||/^ *$/.test(t)?i:(i=(i=(i=(i=(i=(i=(i=(i=(i=(i+=\" \\t\")+' \\t\\t \\t\\t ( \\t')+' \\t')+' \\t\\t \\t\\t \\t\\t\\t \\t\\t')+\" \\t\\t[\"+I(r.name)+\" \\t \\t\")+' \\t\\t \\t\\t, \\t')+' \\t')+' \\t\\t \\t\\t \\t\\t\\t \\t\\t')+\" \\t\\t[\"+I(r.name)+\"] \\t \\t\")+' \\t\\t \\t\\t) \\t')+' \\t')+\" \\t \\t \\t \\t\\t \\t \\t \",o.dataLabelPosition&&(i+=' '),i=(i+=' \\t ')+'\\t\\t\\t \\t\\t')}),i+=\"\"),\"XY\"===o.dataLabelFormatScatter&&(i+='\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\t \\t\\t\\t \\t\\t \\t\\t\\t\\t',o.dataLabelPosition&&(i+=' '),i=(i=(i+='\\t')+' '))+' ')+'\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t')),1===a.length&&o.chartColors!==ct&&r.values.forEach(function(t,e){t=t<0?o.invertedColors||o.chartColors||ct:o.chartColors||[];i=(i+=\" \")+' ',0===o.lineSize?i+=\"\":i=(i+=\"\")+' ',i=i+L(o.shadow,c)+\" \"}),i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(a[0].values.length+1)+\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i=(i=(i+=\" \")+\" Sheet1!$\"+S(t+1)+\"$2:$\"+S(t+1)+\"$\"+(a[0].values.length+1)+\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:\"\")+\"\"}),i=(i+=\" \")+''}),i=(i=(i=(i=(i+=\" \")+' ')+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i+=' ')+' ',i=(i+=' ')+(' ')+(\"\");break;case d.BUBBLE:var i=i+(\"\")+'',s=-1,l=1;a.filter(function(t,e){return 0\")+' ')+\" Sheet1!$\"+y[l]+\"$1\")+' '+r.name+\" \";var e=o.chartColors[s%o.chartColors.length];\"transparent\"===e?i+=\"\":o.chartColorsOpacity?i+=\"\"+D(e,'')+\"\":i+=\"\"+D(e)+\"\",0===o.lineSize?i+=\"\":o.dataBorder?i+=''+D(o.dataBorder.color)+'':i=(i+=''+D(e)+\"\")+'',i=i+L(o.shadow,c)+\"\",i=(i=(i+=\" \")+\" Sheet1!$A$2:$A$\"+(a[0].values.length+1)+\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i=(i+=\" \")+\" Sheet1!$\"+S(l)+\"$2:$\"+S(l)+\"$\"+(a[0].values.length+1)+\"\",l++,i=(i+=\" General\")+' ',a[0].values.forEach(function(t,e){i+=''+(r.values[e]||0===r.values[e]?r.values[e]:\"\")+\"\"}),i=(i+=\" \")+\" Sheet1!$\"+S(l)+\"$2:$\"+S(t+2)+\"$\"+(r.sizes.length+1)+\"\",l++,i=(i+=\" General\")+'\\t ',r.sizes.forEach(function(t,e){i+=''+(t||\"\")+\"\"}),i+=' '}),i=(i=(i=(i=(i+=\" \")+' ')+\" \")+' ')+\" \"+D(o.dataLabelColor||m)+\"\")+' ',o.dataLabelPosition&&(i+=' '),i=(i+=' ')+' ',i=(i+=' ')+(' ')+(\"\");break;case d.DOUGHNUT:case d.PIE:var r=a[0];i=(i=(i=(i=(i=(i=(i=(i=(i=i+(\"\")+' ')+\"\"+' ')+' '+\" \")+\" \"+\" Sheet1!$B$1\")+\" \"+' ')+(' '+I(r.name)+\"\"))+\" \"+\" \")+\" \"+\" \")+' '+' ',o.dataNoEffects?i+=\"\":i+=L(o.shadow,c),i+=\" \",r.labels.forEach(function(t,e){i=(i=(i+=\"\")+' ')+' ')+\"\".concat(D(o.chartColors[e+1>o.chartColors.length?Math.floor(Math.random()*o.chartColors.length):e]),\"\"),o.dataBorder&&(i+='').concat(D(o.dataBorder.color),'')),i=i+L(o.shadow,c)+\" \"}),i+=\"\",r.labels.forEach(function(t,e){i=(i=(i=(i=(i=(i+=\"\")+' '))+' ')+\" \")+' '))+\" \"+D(o.dataLabelColor||m)+\"\")+' ')+\" \",n===d.PIE&&o.dataLabelPosition&&(i+=' ')),i=(i=(i=(i+=' ')+' ')+' ')+' '}),i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=i+' ')+\"\\t\")+\"\\t \"+\"\\t \")+\"\\t \"+\"\\t\\t\")+('\\t\\t ')+'\\t\\t\\t')+\"\\t\\t \"+\"\\t\\t\")+\"\\t \"+\"\\t\")+(n===d.PIE?'':\"\"))+'\\t'+'\\t')+'\\t'+'\\t')+'\\t'+'\\t')+' ')+\"\")+\"\"+\" \")+(\" Sheet1!$A$2:$A$\"+(r.labels.length+1)+\"\")+\" \")+('\\t '),r.labels.forEach(function(t,e){i+=''+I(t)+\"\"}),i=(i=(i=(i=(i+=\" \")+\" \"+\"\")+\" \"+\" \")+(\" Sheet1!$B$2:$B$\"+(r.labels.length+1)+\"\")+\" \")+('\\t '),r.values.forEach(function(t,e){i+=''+(t||0===t?t:\"\")+\"\"}),i=(i=(i=i+\" \"+\" \")+\" \"+\" \")+' '),n===d.DOUGHNUT&&(i+=' '),i+=\"\";break;default:i+=\"\"}return i}function Bt(e,t,r){var n=\"\";return e._type===d.SCATTER||e._type===d.BUBBLE?n+=\"\":n+=\"\",n=(n+=' ')+\" \"+(''),!e.catAxisMaxVal&&0!==e.catAxisMaxVal||(n+=''),!e.catAxisMinVal&&0!==e.catAxisMinVal||(n+=''),n=(n=(n=n+\"\"+(' '))+(' '))+(\"none\"!==e.catGridLine.style?Mt(e.catGridLine):\"\"),e.showCatAxisTitle&&(n+=Dt({color:e.catAxisTitleColor,fontFace:e.catAxisTitleFontFace,fontSize:e.catAxisTitleFontSize,titleRotate:e.catAxisTitleRotate,title:e.catAxisTitle||\"Axis Title\"})),e._type===d.SCATTER||e._type===d.BUBBLE?n+=' ':n+=' ',e._type===d.SCATTER?n+=' ':n=(n=(n+=' ')+' ')+' ',n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n+=\" \")+(' '))+(!1===e.catAxisLineShow?\"\":\"\"+D(e.catAxisLineColor||h.color)+\"\"))+(' '))+\" \"+\" \")+\" \"+\" \")+(\" \")+\" \")+\" \"+\" \")+(' '))+(\" \"+D(e.catAxisLabelColor||m)+\"\"))+(' '))+\" \"+\" \")+(' ')+\" \")+\" \"+(' '))+(\" ')+' ')+' '+' ',e.catAxisLabelFrequency&&(n+=' '),!e.catLabelFormatCode&&e._type!==d.SCATTER&&e._type!==d.BUBBLE||(e.catLabelFormatCode&&([\"catAxisBaseTimeUnit\",\"catAxisMajorTimeUnit\",\"catAxisMinorTimeUnit\"].forEach(function(t){!e[t]||\"string\"==typeof e[t]&&-1!==[\"days\",\"months\",\"years\"].indexOf(e[t].toLowerCase())||(console.warn(\"`\"+t+\"` must be one of: 'days','months','years' !\"),e[t]=null)}),e.catAxisBaseTimeUnit&&(n+=''),e.catAxisMajorTimeUnit&&(n+=''),e.catAxisMinorTimeUnit&&(n+='')),e.catAxisMajorUnit&&(n+=''),e.catAxisMinorUnit&&(n+='')),e._type===d.SCATTER||e._type===d.BUBBLE?n+=\"\":n+=\"\",n}function Nt(t,e){var r=e===g?\"col\"===t.barDir?\"l\":\"b\":\"col\"!==t.barDir?\"r\":\"t\",n=\"\",a=\"r\"==r||\"t\"==r?\"max\":\"autoZero\",o=e===g?it:st,n=(n+=\"\")+(' ')+\" \";return t.valAxisLogScaleBase&&(n+=' ')),n+=' ',!t.valAxisMaxVal&&0!==t.valAxisMaxVal||(n+=''),!t.valAxisMinVal&&0!==t.valAxisMinVal||(n+=''),n=(n+=\" \")+(' ')+(' '),\"none\"!==t.valGridLine.style&&(n+=Mt(t.valGridLine)),t.showValAxisTitle&&(n+=Dt({color:t.valAxisTitleColor,fontFace:t.valAxisTitleFontFace,fontSize:t.valAxisTitleFontSize,titleRotate:t.valAxisTitleRotate,title:t.valAxisTitle||\"Axis Title\"})),n+=''),t._type===d.SCATTER?n+=' ':n=(n=(n+=' ')+' ')+' ',n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n+=\" \")+(' '))+(!1===t.valAxisLineShow?\"\":\"\"+D(t.valAxisLineColor||h.color)+\"\"))+(' '))+\" \"+\" \")+\" \"+\" \")+(\" \")+\" \")+\" \"+\" \")+(' '))+(\" \"+D(t.valAxisLabelColor||m)+\"\"))+(' ')+\" \")+\" \"+(' '))+\" \"+\" \")+(' ')+(' '))+(' '),t.valAxisMajorUnit&&(n+=' '),t.valAxisDisplayUnit&&(n+='').concat(t.valAxisDisplayUnitLabel?\"\":\"\",\"\")),n+=\"\"}function Dt(t){var e=\"left\"===t.titleAlign||\"right\"===t.titleAlign?''):\"\",r=t.titleRotate?''):\"\",n=t.fontSize?'sz=\"'+Math.round(100*t.fontSize)+'\"':\"\",a=!0===t.titleBold?1:0,o=t.titlePos&&t.titlePos.x&&t.titlePos.y?''):\"\";return\"\\n\\t \\n\\t \\n\\t \".concat(r,\"\\n\\t \\n\\t \\n\\t \").concat(e,\"\\n\\t \\n\\t ').concat(D(t.color||m),'\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \\n\\t ').concat(D(t.color||m),'\\n\\t \\n\\t \\n\\t ').concat(I(t.title)||\"\",\"\\n\\t \\n\\t \\n\\t \\n\\t \\n\\t \").concat(o,'\\n\\t \\n\\t')}function S(t){var e=\"\";return e=t<=26?y[t]:(e+=y[Math.floor(t/y.length)-1])+y[t%y.length]}function L(t,e){if(!t)return\"\";if(\"object\"!=typeof t)return console.warn(\"`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`\"),\"\";var r=\"\",e=_(e,t),t=e.type||\"outer\",n=B(e.blur),a=B(e.offset),o=Math.round(6e4*e.angle),i=e.color,s=Math.round(1e5*e.opacity);return(r+=\"')+('')+('')+(\"\")+\"\"}function Mt(t){var e=\"\";return(e+=\" \")+(' ')+(' ')+(' ')+\" \"+\" \"+\"\"}function zt(t){var o=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null,i=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"https\"):null,e=[],s=t._relsMedia.filter(function(t){return\"online\"!==t.type&&!t.data&&(!t.path||t.path&&-1===t.path.indexOf(\"preencoded\"))}),r=[];return s.forEach(function(t){-1===r.indexOf(t.path)?(t.isDuplicate=!1,r.push(t.path)):t.isDuplicate=!0}),s.filter(function(t){return!t.isDuplicate}).forEach(function(a){e.push(new Promise(function(r,n){var e;if(o&&0!==a.path.indexOf(\"http\"))try{var t=o.readFileSync(a.path);a.data=Buffer.from(t).toString(\"base64\"),s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),r(\"done\")}catch(t){a.data=A,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),n('ERROR: Unable to read media: \"'+a.path+'\"\\n'+t.toString())}else o&&i&&0===a.path.indexOf(\"http\")?i.get(a.path,function(t){var e=\"\";t.setEncoding(\"binary\"),t.on(\"data\",function(t){return e+=t}),t.on(\"end\",function(){a.data=Buffer.from(e,\"binary\").toString(\"base64\"),s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),r(\"done\")}),t.on(\"error\",function(t){a.data=A,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),n(\"ERROR! Unable to load image (https.get): \".concat(a.path))})}):((e=new XMLHttpRequest).onload=function(){var t=new FileReader;t.onloadend=function(){a.data=t.result,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),a.isSvgPng?Ut(a).then(function(){r(\"done\")}).catch(function(t){n(t)}):r(\"done\")},t.readAsDataURL(e.response)},e.onerror=function(t){a.data=A,s.filter(function(t){return t.isDuplicate&&t.path===a.path}).forEach(function(t){return t.data=a.data}),n(\"ERROR! Unable to load image (xhr.onerror): \".concat(a.path))},e.open(\"GET\",a.path),e.responseType=\"blob\",e.send())}))}),t._relsMedia.filter(function(t){return t.isSvgPng&&t.data}).forEach(function(t){o?(t.data=A,e.push(Promise.resolve().then(function(){return\"done\"}))):e.push(Ut(t))}),e}function Ut(a){return new Promise(function(r,e){var n=new Image;n.onload=function(){n.width+n.height===0&&n.onerror(\"h/w=0\");var t=document.createElement(\"CANVAS\"),e=t.getContext(\"2d\");t.width=n.width,t.height=n.height,e.drawImage(n,0,0);try{a.data=t.toDataURL(a.type),r(\"done\")}catch(t){n.onerror(t)}},n.onerror=function(t){a.data=A,e(\"ERROR! Unable to load image (image.onerror): \".concat(a.path))},n.src=\"string\"==typeof a.data?a.data:A})}function r(){var c=this;this._version=\"3.11.0-beta-20220501-1310\",this._alignH=G,this._alignV=W,this._chartType=U,this._outputType=T,this._schemeColor=a,this._shapeType=j,this._charts=d,this._colors=H,this._shapes=l,this.addNewSlide=function(t){var e=0'+u,r+='',a.forEach(function(t){(t._relsMedia||[]).forEach(function(t){\"image\"!==t.type&&\"online\"!==t.type&&\"chart\"!==t.type&&\"m4v\"!==t.extn&&-1===r.indexOf(t.type)&&(r+='')})}),r+='',a.forEach(function(t,e){r=r+'',t._relsChart.forEach(function(t){r+=' '})}),r+='',e.forEach(function(t,e){r+='',(t._relsChart||[]).forEach(function(t){r+=' '})}),a.forEach(function(t,e){r+=' '}),t._relsChart.forEach(function(t){r+=' '}),t._relsMedia.forEach(function(t){\"image\"!==t.type&&\"online\"!==t.type&&\"chart\"!==t.type&&\"m4v\"!==t.extn&&-1===r.indexOf(t.type)&&(r+=' ')}),r+=' ')),l.file(\"_rels/.rels\",''.concat(u,'\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t')),l.file(\"docProps/app.xml\",(e=c.slides,a=c.company,''.concat(u,'\\n\\t0\\n\\t0\\n\\tMicrosoft Office PowerPoint\\n\\tOn-screen Show (16:9)\\n\\t0\\n\\t').concat(e.length,\"\\n\\t\").concat(e.length,'\\n\\t0\\n\\t0\\n\\tfalse\\n\\t\\n\\t\\t\\n\\t\\t\\tFonts Used\\n\\t\\t\\t2\\n\\t\\t\\tTheme\\n\\t\\t\\t1\\n\\t\\t\\tSlide Titles\\n\\t\\t\\t').concat(e.length,'\\n\\t\\t\\n\\t\\n\\t\\n\\t\\t\\n\\t\\t\\tArial\\n\\t\\t\\tCalibri\\n\\t\\t\\tOffice Theme\\n\\t\\t\\t').concat(e.map(function(t,e){return\"Slide \"+(e+1)+\"\\n\"}).join(\"\"),\"\\n\\t\\t\\n\\t\\n\\t\").concat(a,\"\\n\\tfalse\\n\\tfalse\\n\\tfalse\\n\\t16.0000\\n\\t\"))),l.file(\"docProps/core.xml\",(t=c.title,e=c.subject,a=c.author,o=c.revision,'\\n\\t\\n\\t\\t'.concat(I(t),\"\\n\\t\\t\").concat(I(e),\"\\n\\t\\t\").concat(I(a),\"\\n\\t\\t\").concat(I(a),\"\\n\\t\\t\").concat(o,'\\n\\t\\t').concat((new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\"),'\\n\\t\\t').concat((new Date).toISOString().replace(/\\.\\d\\d\\dZ/,\"Z\"),\"\\n\\t\"))),l.file(\"ppt/_rels/presentation.xml.rels\",function(t){for(var e=1,r=(r=''+u)+''+'',n=1;n<=t.length;n++)r+='';return r+=''}(c.slides)),l.file(\"ppt/theme/theme1.xml\",''.concat(u,'')),l.file(\"ppt/presentation.xml\",function(t){var e=(e=''.concat(u)+''))+''+\"\";t.slides.forEach(function(t){return e+='')}),e=(e=(e=(e+=\"\")+''))+''))+'')+\"\";for(var r=1;r<10;r++)e+=\"')+''+\"\");return e+=\"\",t.sections&&0',t.sections.forEach(function(t){e+=''),t._slides.forEach(function(t){return e+='')}),e+=\"\"}),e+=''),e+=\"\"}(c)),l.file(\"ppt/presProps.xml\",''.concat(u,'')),l.file(\"ppt/tableStyles.xml\",''.concat(u,'')),l.file(\"ppt/viewProps.xml\",''.concat(u,'')),c.slideLayouts.forEach(function(t,e){l.file(\"ppt/slideLayouts/slideLayout\"+(e+1)+\".xml\",'\\n\\t\\t\\n\\t\\t'.concat(yt(t),\"\\n\\t\\t\")),l.file(\"ppt/slideLayouts/_rels/slideLayout\"+(e+1)+\".xml.rels\",(t=e+1,At(c.slideLayouts[t-1],[{target:\"../slideMasters/slideMaster1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster\"}])))}),c.slides.forEach(function(t,e){var r;l.file(\"ppt/slides/slide\"+(e+1)+\".xml\",(r=t,''.concat(u)+'\")+\"\".concat(yt(r))+\"\")),l.file(\"ppt/slides/_rels/slide\"+(e+1)+\".xml.rels\",Ct(c.slides,c.slideLayouts,e+1)),l.file(\"ppt/notesSlides/notesSlide\"+(e+1)+\".xml\",_t(t)),l.file(\"ppt/notesSlides/_rels/notesSlide\"+(e+1)+\".xml.rels\",'\\n\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t'))}),l.file(\"ppt/slideMasters/slideMaster1.xml\",(n=c.masterSlide,t=(t=c.slideLayouts).map(function(t,e){return''}),e=''+u,(e+='')+yt(n)+''+t.join(\"\")+' ')),l.file(\"ppt/slideMasters/_rels/slideMaster1.xml.rels\",(a=c.masterSlide,(o=(o=c.slideLayouts).map(function(t,e){return{target:\"../slideLayouts/slideLayout\".concat(e+1,\".xml\"),type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout\"}})).push({target:\"../theme/theme1.xml\",type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\"}),At(a,o))),l.file(\"ppt/notesMasters/notesMaster1.xml\",''.concat(u,'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›')),l.file(\"ppt/notesMasters/_rels/notesMaster1.xml.rels\",''.concat(u,'\\n\\t\\t\\n\\t\\t')),c.slideLayouts.forEach(function(t){c.createChartMediaRels(t,l,s)}),c.slides.forEach(function(t){c.createChartMediaRels(t,l,s)}),c.createChartMediaRels(c.masterSlide,l,s),Promise.all(s).then(function(){return\"STREAM\"===i.outputType?l.generateAsync({type:\"nodebuffer\",compression:i.compression?\"DEFLATE\":\"STORE\"}):i.outputType?l.generateAsync({type:i.outputType}):l.generateAsync({type:\"blob\",compression:i.compression?\"DEFLATE\":\"STORE\"})})})},this.LAYOUTS={LAYOUT_4x3:{name:\"screen4x3\",width:9144e3,height:6858e3},LAYOUT_16x9:{name:\"screen16x9\",width:9144e3,height:5143500},LAYOUT_16x10:{name:\"screen16x10\",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:\"custom\",width:12192e3,height:6858e3}},this._author=\"PptxGenJS\",this._company=\"PptxGenJS\",this._revision=\"1\",this._subject=\"PptxGenJS Presentation\",this._title=\"PptxGenJS Presentation\",this._presLayout={name:this.LAYOUTS[f].name,_sizeW:this.LAYOUTS[f].width,_sizeH:this.LAYOUTS[f].height,width:this.LAYOUTS[f].width,height:this.LAYOUTS[f].height},this._rtlMode=!1,this._slideLayouts=[{_margin:w,_name:et,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(r.prototype,\"layout\",{get:function(){return this._layout},set:function(t){var e=this.LAYOUTS[t];if(!e)throw new Error(\"UNKNOWN-LAYOUT\");this._layout=t,this._presLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"version\",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"author\",{get:function(){return this._author},set:function(t){this._author=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"company\",{get:function(){return this._company},set:function(t){this._company=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"revision\",{get:function(){return this._revision},set:function(t){this._revision=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"subject\",{get:function(){return this._subject},set:function(t){this._subject=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"title\",{get:function(){return this._title},set:function(t){this._title=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"rtlMode\",{get:function(){return this._rtlMode},set:function(t){this._rtlMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"masterSlide\",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"slides\",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"sections\",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"slideLayouts\",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"AlignH\",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"AlignV\",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"ChartType\",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"OutputType\",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"presLayout\",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"SchemeColor\",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"ShapeType\",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"charts\",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"colors\",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"shapes\",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),r.prototype.stream=function(t){t=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression;return this.exportPresentation({compression:t,outputType:\"STREAM\"})},r.prototype.write=function(t){var e=\"object\"==typeof t&&t.hasOwnProperty(\"outputType\")?t.outputType:t||null,t=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression;return this.exportPresentation({compression:t,outputType:e})},r.prototype.writeFile=function(t){var e=this,n=\"undefined\"!=typeof require&&\"undefined\"==typeof window?require(\"fs\"):null,r=(\"string\"==typeof t&&console.log(\"Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)\"),\"object\"==typeof t&&t.hasOwnProperty(\"fileName\")?t.fileName:\"string\"==typeof t?t:\"\"),t=!(\"object\"!=typeof t||!t.hasOwnProperty(\"compression\"))&&t.compression,a=r?r.toString().toLowerCase().endsWith(\".pptx\")?r:r+\".pptx\":\"Presentation.pptx\";return this.exportPresentation({compression:t,outputType:n?\"nodebuffer\":null}).then(function(t){return n?new Promise(function(e,r){n.writeFile(a,t,function(t){t?r(t):e(a)})}):e.writeFileToBrowser(a,t)})},r.prototype.addSection=function(t){t?t.title||console.warn(\"addSection requires a title\"):console.warn(\"addSection requires an argument\");var e={_type:\"user\",_slides:[],title:t.title};t.order?this.sections.splice(t.order,0,e):this._sections.push(e)},r.prototype.addSlide=function(e){var r=\"string\"==typeof e?e:e&&e.masterName?e.masterName:\"\",t={_name:this.LAYOUTS[f].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1},n=(!r||(n=this.slideLayouts.filter(function(t){return t._name===r})[0])&&(t=n),new Ft({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:t}));return this._slides.push(n),e&&e.sectionTitle?(t=this.sections.filter(function(t){return t.title===e.sectionTitle})[0])?t._slides.push(n):console.warn('addSlide: unable to find section with title: \"'.concat(e.sectionTitle,'\"')):!(this.sections&&0 opts.y = \").concat(i.y)),r.addTable(t.rows,{x:i.x||f[3],y:i.y,w:Number(a)/R,colW:p,autoPage:!1}),i.addImage&&(i.addImage.options=i.addImage.options||{},i.addImage.image&&(i.addImage.image.path||i.addImage.image.data)?r.addImage({path:i.addImage.image.path,data:i.addImage.image.data,x:i.addImage.options.x,y:i.addImage.options.y,w:i.addImage.options.w,h:i.addImage.options.h}):console.warn(\"Warning: tableToSlides.addImage requires either `path` or `data`\")),i.addShape&&r.addShape(i.addShape.shape,i.addShape.options||{}),i.addTable&&r.addTable(i.addTable.rows,i.addTable.options||{}),i.addText&&r.addText(i.addText.text,i.addText.options||{})})},r}();"],"file":"pptxgen.bundle.js"} \ No newline at end of file diff --git a/dist/pptxgen.cjs.js b/dist/pptxgen.cjs.js index c1239d338..9470d4885 100644 --- a/dist/pptxgen.cjs.js +++ b/dist/pptxgen.cjs.js @@ -7,7164 +7,7164 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau var JSZip__default = /*#__PURE__*/_interopDefaultLegacy(JSZip); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - -var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); -}; - -function __spreadArray(to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ + +var __assign = function() { + __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; + +function __spreadArray(to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); } -/** - * PptxGenJS Enums - * NOTE: `enum` wont work for objects, so use `Object.freeze` - */ -// CONST -var EMU = 914400; // One (1) inch (OfficeXML measures in EMU (English Metric Units)) -var ONEPT = 12700; // One (1) point (pt) -var CRLF = '\r\n'; // AKA: Chr(13) & Chr(10) -var LAYOUT_IDX_SERIES_BASE = 2147483649; -var REGEX_HEX_COLOR = /^[0-9a-fA-F]{6}$/; -var LINEH_MODIFIER = 1.67; // AKA: Golden Ratio Typography -var DEF_BULLET_MARGIN = 27; -var DEF_CELL_BORDER = { type: 'solid', color: '666666', pt: 1 }; -var DEF_CELL_MARGIN_IN = [0.05, 0.1, 0.05, 0.1]; // "Normal" margins in PPT-2021 ("Narrow" is `0.05` for all 4) -var DEF_CHART_GRIDLINE = { color: '888888', style: 'solid', size: 1 }; -var DEF_FONT_COLOR = '000000'; -var DEF_FONT_SIZE = 12; -var DEF_FONT_TITLE_SIZE = 18; -var DEF_PRES_LAYOUT = 'LAYOUT_16x9'; -var DEF_PRES_LAYOUT_NAME = 'DEFAULT'; -var DEF_SHAPE_LINE_COLOR = '333333'; -var DEF_SHAPE_SHADOW = { type: 'outer', blur: 3, offset: 23000 / 12700, angle: 90, color: '000000', opacity: 0.35, rotateWithShape: true }; -var DEF_SLIDE_MARGIN_IN = [0.5, 0.5, 0.5, 0.5]; // TRBL-style -var DEF_TEXT_SHADOW = { type: 'outer', blur: 8, offset: 4, angle: 270, color: '000000', opacity: 0.75 }; -var DEF_TEXT_GLOW = { size: 8, color: 'FFFFFF', opacity: 0.75 }; -var AXIS_ID_VALUE_PRIMARY = '2094734552'; -var AXIS_ID_VALUE_SECONDARY = '2094734553'; -var AXIS_ID_CATEGORY_PRIMARY = '2094734554'; -var AXIS_ID_CATEGORY_SECONDARY = '2094734555'; -var AXIS_ID_SERIES_PRIMARY = '2094734556'; -var LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''); -var BARCHART_COLORS = [ - 'C0504D', - '4F81BD', - '9BBB59', - '8064A2', - '4BACC6', - 'F79646', - '628FC6', - 'C86360', - 'C0504D', - '4F81BD', - '9BBB59', - '8064A2', - '4BACC6', - 'F79646', - '628FC6', - 'C86360', -]; -var PIECHART_COLORS = [ - '5DA5DA', - 'FAA43A', - '60BD68', - 'F17CB0', - 'B2912F', - 'B276B2', - 'DECF3F', - 'F15854', - 'A7A7A7', - '5DA5DA', - 'FAA43A', - '60BD68', - 'F17CB0', - 'B2912F', - 'B276B2', - 'DECF3F', - 'F15854', - 'A7A7A7', -]; -var TEXT_HALIGN; -(function (TEXT_HALIGN) { - TEXT_HALIGN["left"] = "left"; - TEXT_HALIGN["center"] = "center"; - TEXT_HALIGN["right"] = "right"; - TEXT_HALIGN["justify"] = "justify"; -})(TEXT_HALIGN || (TEXT_HALIGN = {})); -var TEXT_VALIGN; -(function (TEXT_VALIGN) { - TEXT_VALIGN["b"] = "b"; - TEXT_VALIGN["ctr"] = "ctr"; - TEXT_VALIGN["t"] = "t"; -})(TEXT_VALIGN || (TEXT_VALIGN = {})); -var SLDNUMFLDID = '{F7021451-1387-4CA6-816F-3879F97B5CBC}'; -// ENUM -// TODO: 3.5 or v4.0: rationalize ts-def exported enum names/case! -// NOTE: First tsdef enum named correctly (shapes -> 'Shape', colors -> 'Color'), etc. -var OutputType; -(function (OutputType) { - OutputType["arraybuffer"] = "arraybuffer"; - OutputType["base64"] = "base64"; - OutputType["binarystring"] = "binarystring"; - OutputType["blob"] = "blob"; - OutputType["nodebuffer"] = "nodebuffer"; - OutputType["uint8array"] = "uint8array"; -})(OutputType || (OutputType = {})); -var ChartType; -(function (ChartType) { - ChartType["area"] = "area"; - ChartType["bar"] = "bar"; - ChartType["bar3d"] = "bar3D"; - ChartType["bubble"] = "bubble"; - ChartType["doughnut"] = "doughnut"; - ChartType["line"] = "line"; - ChartType["pie"] = "pie"; - ChartType["radar"] = "radar"; - ChartType["scatter"] = "scatter"; -})(ChartType || (ChartType = {})); -var ShapeType; -(function (ShapeType) { - ShapeType["accentBorderCallout1"] = "accentBorderCallout1"; - ShapeType["accentBorderCallout2"] = "accentBorderCallout2"; - ShapeType["accentBorderCallout3"] = "accentBorderCallout3"; - ShapeType["accentCallout1"] = "accentCallout1"; - ShapeType["accentCallout2"] = "accentCallout2"; - ShapeType["accentCallout3"] = "accentCallout3"; - ShapeType["actionButtonBackPrevious"] = "actionButtonBackPrevious"; - ShapeType["actionButtonBeginning"] = "actionButtonBeginning"; - ShapeType["actionButtonBlank"] = "actionButtonBlank"; - ShapeType["actionButtonDocument"] = "actionButtonDocument"; - ShapeType["actionButtonEnd"] = "actionButtonEnd"; - ShapeType["actionButtonForwardNext"] = "actionButtonForwardNext"; - ShapeType["actionButtonHelp"] = "actionButtonHelp"; - ShapeType["actionButtonHome"] = "actionButtonHome"; - ShapeType["actionButtonInformation"] = "actionButtonInformation"; - ShapeType["actionButtonMovie"] = "actionButtonMovie"; - ShapeType["actionButtonReturn"] = "actionButtonReturn"; - ShapeType["actionButtonSound"] = "actionButtonSound"; - ShapeType["arc"] = "arc"; - ShapeType["bentArrow"] = "bentArrow"; - ShapeType["bentUpArrow"] = "bentUpArrow"; - ShapeType["bevel"] = "bevel"; - ShapeType["blockArc"] = "blockArc"; - ShapeType["borderCallout1"] = "borderCallout1"; - ShapeType["borderCallout2"] = "borderCallout2"; - ShapeType["borderCallout3"] = "borderCallout3"; - ShapeType["bracePair"] = "bracePair"; - ShapeType["bracketPair"] = "bracketPair"; - ShapeType["callout1"] = "callout1"; - ShapeType["callout2"] = "callout2"; - ShapeType["callout3"] = "callout3"; - ShapeType["can"] = "can"; - ShapeType["chartPlus"] = "chartPlus"; - ShapeType["chartStar"] = "chartStar"; - ShapeType["chartX"] = "chartX"; - ShapeType["chevron"] = "chevron"; - ShapeType["chord"] = "chord"; - ShapeType["circularArrow"] = "circularArrow"; - ShapeType["cloud"] = "cloud"; - ShapeType["cloudCallout"] = "cloudCallout"; - ShapeType["corner"] = "corner"; - ShapeType["cornerTabs"] = "cornerTabs"; - ShapeType["cube"] = "cube"; - ShapeType["curvedDownArrow"] = "curvedDownArrow"; - ShapeType["curvedLeftArrow"] = "curvedLeftArrow"; - ShapeType["curvedRightArrow"] = "curvedRightArrow"; - ShapeType["curvedUpArrow"] = "curvedUpArrow"; - ShapeType["custGeom"] = "custGeom"; - ShapeType["decagon"] = "decagon"; - ShapeType["diagStripe"] = "diagStripe"; - ShapeType["diamond"] = "diamond"; - ShapeType["dodecagon"] = "dodecagon"; - ShapeType["donut"] = "donut"; - ShapeType["doubleWave"] = "doubleWave"; - ShapeType["downArrow"] = "downArrow"; - ShapeType["downArrowCallout"] = "downArrowCallout"; - ShapeType["ellipse"] = "ellipse"; - ShapeType["ellipseRibbon"] = "ellipseRibbon"; - ShapeType["ellipseRibbon2"] = "ellipseRibbon2"; - ShapeType["flowChartAlternateProcess"] = "flowChartAlternateProcess"; - ShapeType["flowChartCollate"] = "flowChartCollate"; - ShapeType["flowChartConnector"] = "flowChartConnector"; - ShapeType["flowChartDecision"] = "flowChartDecision"; - ShapeType["flowChartDelay"] = "flowChartDelay"; - ShapeType["flowChartDisplay"] = "flowChartDisplay"; - ShapeType["flowChartDocument"] = "flowChartDocument"; - ShapeType["flowChartExtract"] = "flowChartExtract"; - ShapeType["flowChartInputOutput"] = "flowChartInputOutput"; - ShapeType["flowChartInternalStorage"] = "flowChartInternalStorage"; - ShapeType["flowChartMagneticDisk"] = "flowChartMagneticDisk"; - ShapeType["flowChartMagneticDrum"] = "flowChartMagneticDrum"; - ShapeType["flowChartMagneticTape"] = "flowChartMagneticTape"; - ShapeType["flowChartManualInput"] = "flowChartManualInput"; - ShapeType["flowChartManualOperation"] = "flowChartManualOperation"; - ShapeType["flowChartMerge"] = "flowChartMerge"; - ShapeType["flowChartMultidocument"] = "flowChartMultidocument"; - ShapeType["flowChartOfflineStorage"] = "flowChartOfflineStorage"; - ShapeType["flowChartOffpageConnector"] = "flowChartOffpageConnector"; - ShapeType["flowChartOnlineStorage"] = "flowChartOnlineStorage"; - ShapeType["flowChartOr"] = "flowChartOr"; - ShapeType["flowChartPredefinedProcess"] = "flowChartPredefinedProcess"; - ShapeType["flowChartPreparation"] = "flowChartPreparation"; - ShapeType["flowChartProcess"] = "flowChartProcess"; - ShapeType["flowChartPunchedCard"] = "flowChartPunchedCard"; - ShapeType["flowChartPunchedTape"] = "flowChartPunchedTape"; - ShapeType["flowChartSort"] = "flowChartSort"; - ShapeType["flowChartSummingJunction"] = "flowChartSummingJunction"; - ShapeType["flowChartTerminator"] = "flowChartTerminator"; - ShapeType["folderCorner"] = "folderCorner"; - ShapeType["frame"] = "frame"; - ShapeType["funnel"] = "funnel"; - ShapeType["gear6"] = "gear6"; - ShapeType["gear9"] = "gear9"; - ShapeType["halfFrame"] = "halfFrame"; - ShapeType["heart"] = "heart"; - ShapeType["heptagon"] = "heptagon"; - ShapeType["hexagon"] = "hexagon"; - ShapeType["homePlate"] = "homePlate"; - ShapeType["horizontalScroll"] = "horizontalScroll"; - ShapeType["irregularSeal1"] = "irregularSeal1"; - ShapeType["irregularSeal2"] = "irregularSeal2"; - ShapeType["leftArrow"] = "leftArrow"; - ShapeType["leftArrowCallout"] = "leftArrowCallout"; - ShapeType["leftBrace"] = "leftBrace"; - ShapeType["leftBracket"] = "leftBracket"; - ShapeType["leftCircularArrow"] = "leftCircularArrow"; - ShapeType["leftRightArrow"] = "leftRightArrow"; - ShapeType["leftRightArrowCallout"] = "leftRightArrowCallout"; - ShapeType["leftRightCircularArrow"] = "leftRightCircularArrow"; - ShapeType["leftRightRibbon"] = "leftRightRibbon"; - ShapeType["leftRightUpArrow"] = "leftRightUpArrow"; - ShapeType["leftUpArrow"] = "leftUpArrow"; - ShapeType["lightningBolt"] = "lightningBolt"; - ShapeType["line"] = "line"; - ShapeType["lineInv"] = "lineInv"; - ShapeType["mathDivide"] = "mathDivide"; - ShapeType["mathEqual"] = "mathEqual"; - ShapeType["mathMinus"] = "mathMinus"; - ShapeType["mathMultiply"] = "mathMultiply"; - ShapeType["mathNotEqual"] = "mathNotEqual"; - ShapeType["mathPlus"] = "mathPlus"; - ShapeType["moon"] = "moon"; - ShapeType["noSmoking"] = "noSmoking"; - ShapeType["nonIsoscelesTrapezoid"] = "nonIsoscelesTrapezoid"; - ShapeType["notchedRightArrow"] = "notchedRightArrow"; - ShapeType["octagon"] = "octagon"; - ShapeType["parallelogram"] = "parallelogram"; - ShapeType["pentagon"] = "pentagon"; - ShapeType["pie"] = "pie"; - ShapeType["pieWedge"] = "pieWedge"; - ShapeType["plaque"] = "plaque"; - ShapeType["plaqueTabs"] = "plaqueTabs"; - ShapeType["plus"] = "plus"; - ShapeType["quadArrow"] = "quadArrow"; - ShapeType["quadArrowCallout"] = "quadArrowCallout"; - ShapeType["rect"] = "rect"; - ShapeType["ribbon"] = "ribbon"; - ShapeType["ribbon2"] = "ribbon2"; - ShapeType["rightArrow"] = "rightArrow"; - ShapeType["rightArrowCallout"] = "rightArrowCallout"; - ShapeType["rightBrace"] = "rightBrace"; - ShapeType["rightBracket"] = "rightBracket"; - ShapeType["round1Rect"] = "round1Rect"; - ShapeType["round2DiagRect"] = "round2DiagRect"; - ShapeType["round2SameRect"] = "round2SameRect"; - ShapeType["roundRect"] = "roundRect"; - ShapeType["rtTriangle"] = "rtTriangle"; - ShapeType["smileyFace"] = "smileyFace"; - ShapeType["snip1Rect"] = "snip1Rect"; - ShapeType["snip2DiagRect"] = "snip2DiagRect"; - ShapeType["snip2SameRect"] = "snip2SameRect"; - ShapeType["snipRoundRect"] = "snipRoundRect"; - ShapeType["squareTabs"] = "squareTabs"; - ShapeType["star10"] = "star10"; - ShapeType["star12"] = "star12"; - ShapeType["star16"] = "star16"; - ShapeType["star24"] = "star24"; - ShapeType["star32"] = "star32"; - ShapeType["star4"] = "star4"; - ShapeType["star5"] = "star5"; - ShapeType["star6"] = "star6"; - ShapeType["star7"] = "star7"; - ShapeType["star8"] = "star8"; - ShapeType["stripedRightArrow"] = "stripedRightArrow"; - ShapeType["sun"] = "sun"; - ShapeType["swooshArrow"] = "swooshArrow"; - ShapeType["teardrop"] = "teardrop"; - ShapeType["trapezoid"] = "trapezoid"; - ShapeType["triangle"] = "triangle"; - ShapeType["upArrow"] = "upArrow"; - ShapeType["upArrowCallout"] = "upArrowCallout"; - ShapeType["upDownArrow"] = "upDownArrow"; - ShapeType["upDownArrowCallout"] = "upDownArrowCallout"; - ShapeType["uturnArrow"] = "uturnArrow"; - ShapeType["verticalScroll"] = "verticalScroll"; - ShapeType["wave"] = "wave"; - ShapeType["wedgeEllipseCallout"] = "wedgeEllipseCallout"; - ShapeType["wedgeRectCallout"] = "wedgeRectCallout"; - ShapeType["wedgeRoundRectCallout"] = "wedgeRoundRectCallout"; -})(ShapeType || (ShapeType = {})); -/** - * TODO: FUTURE: v4.0: rename to `ThemeColor` - */ -var SchemeColor; -(function (SchemeColor) { - SchemeColor["text1"] = "tx1"; - SchemeColor["text2"] = "tx2"; - SchemeColor["background1"] = "bg1"; - SchemeColor["background2"] = "bg2"; - SchemeColor["accent1"] = "accent1"; - SchemeColor["accent2"] = "accent2"; - SchemeColor["accent3"] = "accent3"; - SchemeColor["accent4"] = "accent4"; - SchemeColor["accent5"] = "accent5"; - SchemeColor["accent6"] = "accent6"; -})(SchemeColor || (SchemeColor = {})); -var AlignH; -(function (AlignH) { - AlignH["left"] = "left"; - AlignH["center"] = "center"; - AlignH["right"] = "right"; - AlignH["justify"] = "justify"; -})(AlignH || (AlignH = {})); -var AlignV; -(function (AlignV) { - AlignV["top"] = "top"; - AlignV["middle"] = "middle"; - AlignV["bottom"] = "bottom"; -})(AlignV || (AlignV = {})); -var SHAPE_TYPE; -(function (SHAPE_TYPE) { - SHAPE_TYPE["ACTION_BUTTON_BACK_OR_PREVIOUS"] = "actionButtonBackPrevious"; - SHAPE_TYPE["ACTION_BUTTON_BEGINNING"] = "actionButtonBeginning"; - SHAPE_TYPE["ACTION_BUTTON_CUSTOM"] = "actionButtonBlank"; - SHAPE_TYPE["ACTION_BUTTON_DOCUMENT"] = "actionButtonDocument"; - SHAPE_TYPE["ACTION_BUTTON_END"] = "actionButtonEnd"; - SHAPE_TYPE["ACTION_BUTTON_FORWARD_OR_NEXT"] = "actionButtonForwardNext"; - SHAPE_TYPE["ACTION_BUTTON_HELP"] = "actionButtonHelp"; - SHAPE_TYPE["ACTION_BUTTON_HOME"] = "actionButtonHome"; - SHAPE_TYPE["ACTION_BUTTON_INFORMATION"] = "actionButtonInformation"; - SHAPE_TYPE["ACTION_BUTTON_MOVIE"] = "actionButtonMovie"; - SHAPE_TYPE["ACTION_BUTTON_RETURN"] = "actionButtonReturn"; - SHAPE_TYPE["ACTION_BUTTON_SOUND"] = "actionButtonSound"; - SHAPE_TYPE["ARC"] = "arc"; - SHAPE_TYPE["BALLOON"] = "wedgeRoundRectCallout"; - SHAPE_TYPE["BENT_ARROW"] = "bentArrow"; - SHAPE_TYPE["BENT_UP_ARROW"] = "bentUpArrow"; - SHAPE_TYPE["BEVEL"] = "bevel"; - SHAPE_TYPE["BLOCK_ARC"] = "blockArc"; - SHAPE_TYPE["CAN"] = "can"; - SHAPE_TYPE["CHART_PLUS"] = "chartPlus"; - SHAPE_TYPE["CHART_STAR"] = "chartStar"; - SHAPE_TYPE["CHART_X"] = "chartX"; - SHAPE_TYPE["CHEVRON"] = "chevron"; - SHAPE_TYPE["CHORD"] = "chord"; - SHAPE_TYPE["CIRCULAR_ARROW"] = "circularArrow"; - SHAPE_TYPE["CLOUD"] = "cloud"; - SHAPE_TYPE["CLOUD_CALLOUT"] = "cloudCallout"; - SHAPE_TYPE["CORNER"] = "corner"; - SHAPE_TYPE["CORNER_TABS"] = "cornerTabs"; - SHAPE_TYPE["CROSS"] = "plus"; - SHAPE_TYPE["CUBE"] = "cube"; - SHAPE_TYPE["CURVED_DOWN_ARROW"] = "curvedDownArrow"; - SHAPE_TYPE["CURVED_DOWN_RIBBON"] = "ellipseRibbon"; - SHAPE_TYPE["CURVED_LEFT_ARROW"] = "curvedLeftArrow"; - SHAPE_TYPE["CURVED_RIGHT_ARROW"] = "curvedRightArrow"; - SHAPE_TYPE["CURVED_UP_ARROW"] = "curvedUpArrow"; - SHAPE_TYPE["CURVED_UP_RIBBON"] = "ellipseRibbon2"; - SHAPE_TYPE["CUSTOM_GEOMETRY"] = "custGeom"; - SHAPE_TYPE["DECAGON"] = "decagon"; - SHAPE_TYPE["DIAGONAL_STRIPE"] = "diagStripe"; - SHAPE_TYPE["DIAMOND"] = "diamond"; - SHAPE_TYPE["DODECAGON"] = "dodecagon"; - SHAPE_TYPE["DONUT"] = "donut"; - SHAPE_TYPE["DOUBLE_BRACE"] = "bracePair"; - SHAPE_TYPE["DOUBLE_BRACKET"] = "bracketPair"; - SHAPE_TYPE["DOUBLE_WAVE"] = "doubleWave"; - SHAPE_TYPE["DOWN_ARROW"] = "downArrow"; - SHAPE_TYPE["DOWN_ARROW_CALLOUT"] = "downArrowCallout"; - SHAPE_TYPE["DOWN_RIBBON"] = "ribbon"; - SHAPE_TYPE["EXPLOSION1"] = "irregularSeal1"; - SHAPE_TYPE["EXPLOSION2"] = "irregularSeal2"; - SHAPE_TYPE["FLOWCHART_ALTERNATE_PROCESS"] = "flowChartAlternateProcess"; - SHAPE_TYPE["FLOWCHART_CARD"] = "flowChartPunchedCard"; - SHAPE_TYPE["FLOWCHART_COLLATE"] = "flowChartCollate"; - SHAPE_TYPE["FLOWCHART_CONNECTOR"] = "flowChartConnector"; - SHAPE_TYPE["FLOWCHART_DATA"] = "flowChartInputOutput"; - SHAPE_TYPE["FLOWCHART_DECISION"] = "flowChartDecision"; - SHAPE_TYPE["FLOWCHART_DELAY"] = "flowChartDelay"; - SHAPE_TYPE["FLOWCHART_DIRECT_ACCESS_STORAGE"] = "flowChartMagneticDrum"; - SHAPE_TYPE["FLOWCHART_DISPLAY"] = "flowChartDisplay"; - SHAPE_TYPE["FLOWCHART_DOCUMENT"] = "flowChartDocument"; - SHAPE_TYPE["FLOWCHART_EXTRACT"] = "flowChartExtract"; - SHAPE_TYPE["FLOWCHART_INTERNAL_STORAGE"] = "flowChartInternalStorage"; - SHAPE_TYPE["FLOWCHART_MAGNETIC_DISK"] = "flowChartMagneticDisk"; - SHAPE_TYPE["FLOWCHART_MANUAL_INPUT"] = "flowChartManualInput"; - SHAPE_TYPE["FLOWCHART_MANUAL_OPERATION"] = "flowChartManualOperation"; - SHAPE_TYPE["FLOWCHART_MERGE"] = "flowChartMerge"; - SHAPE_TYPE["FLOWCHART_MULTIDOCUMENT"] = "flowChartMultidocument"; - SHAPE_TYPE["FLOWCHART_OFFLINE_STORAGE"] = "flowChartOfflineStorage"; - SHAPE_TYPE["FLOWCHART_OFFPAGE_CONNECTOR"] = "flowChartOffpageConnector"; - SHAPE_TYPE["FLOWCHART_OR"] = "flowChartOr"; - SHAPE_TYPE["FLOWCHART_PREDEFINED_PROCESS"] = "flowChartPredefinedProcess"; - SHAPE_TYPE["FLOWCHART_PREPARATION"] = "flowChartPreparation"; - SHAPE_TYPE["FLOWCHART_PROCESS"] = "flowChartProcess"; - SHAPE_TYPE["FLOWCHART_PUNCHED_TAPE"] = "flowChartPunchedTape"; - SHAPE_TYPE["FLOWCHART_SEQUENTIAL_ACCESS_STORAGE"] = "flowChartMagneticTape"; - SHAPE_TYPE["FLOWCHART_SORT"] = "flowChartSort"; - SHAPE_TYPE["FLOWCHART_STORED_DATA"] = "flowChartOnlineStorage"; - SHAPE_TYPE["FLOWCHART_SUMMING_JUNCTION"] = "flowChartSummingJunction"; - SHAPE_TYPE["FLOWCHART_TERMINATOR"] = "flowChartTerminator"; - SHAPE_TYPE["FOLDED_CORNER"] = "folderCorner"; - SHAPE_TYPE["FRAME"] = "frame"; - SHAPE_TYPE["FUNNEL"] = "funnel"; - SHAPE_TYPE["GEAR_6"] = "gear6"; - SHAPE_TYPE["GEAR_9"] = "gear9"; - SHAPE_TYPE["HALF_FRAME"] = "halfFrame"; - SHAPE_TYPE["HEART"] = "heart"; - SHAPE_TYPE["HEPTAGON"] = "heptagon"; - SHAPE_TYPE["HEXAGON"] = "hexagon"; - SHAPE_TYPE["HORIZONTAL_SCROLL"] = "horizontalScroll"; - SHAPE_TYPE["ISOSCELES_TRIANGLE"] = "triangle"; - SHAPE_TYPE["LEFT_ARROW"] = "leftArrow"; - SHAPE_TYPE["LEFT_ARROW_CALLOUT"] = "leftArrowCallout"; - SHAPE_TYPE["LEFT_BRACE"] = "leftBrace"; - SHAPE_TYPE["LEFT_BRACKET"] = "leftBracket"; - SHAPE_TYPE["LEFT_CIRCULAR_ARROW"] = "leftCircularArrow"; - SHAPE_TYPE["LEFT_RIGHT_ARROW"] = "leftRightArrow"; - SHAPE_TYPE["LEFT_RIGHT_ARROW_CALLOUT"] = "leftRightArrowCallout"; - SHAPE_TYPE["LEFT_RIGHT_CIRCULAR_ARROW"] = "leftRightCircularArrow"; - SHAPE_TYPE["LEFT_RIGHT_RIBBON"] = "leftRightRibbon"; - SHAPE_TYPE["LEFT_RIGHT_UP_ARROW"] = "leftRightUpArrow"; - SHAPE_TYPE["LEFT_UP_ARROW"] = "leftUpArrow"; - SHAPE_TYPE["LIGHTNING_BOLT"] = "lightningBolt"; - SHAPE_TYPE["LINE_CALLOUT_1"] = "borderCallout1"; - SHAPE_TYPE["LINE_CALLOUT_1_ACCENT_BAR"] = "accentCallout1"; - SHAPE_TYPE["LINE_CALLOUT_1_BORDER_AND_ACCENT_BAR"] = "accentBorderCallout1"; - SHAPE_TYPE["LINE_CALLOUT_1_NO_BORDER"] = "callout1"; - SHAPE_TYPE["LINE_CALLOUT_2"] = "borderCallout2"; - SHAPE_TYPE["LINE_CALLOUT_2_ACCENT_BAR"] = "accentCallout2"; - SHAPE_TYPE["LINE_CALLOUT_2_BORDER_AND_ACCENT_BAR"] = "accentBorderCallout2"; - SHAPE_TYPE["LINE_CALLOUT_2_NO_BORDER"] = "callout2"; - SHAPE_TYPE["LINE_CALLOUT_3"] = "borderCallout3"; - SHAPE_TYPE["LINE_CALLOUT_3_ACCENT_BAR"] = "accentCallout3"; - SHAPE_TYPE["LINE_CALLOUT_3_BORDER_AND_ACCENT_BAR"] = "accentBorderCallout3"; - SHAPE_TYPE["LINE_CALLOUT_3_NO_BORDER"] = "callout3"; - SHAPE_TYPE["LINE_CALLOUT_4"] = "borderCallout3"; - SHAPE_TYPE["LINE_CALLOUT_4_ACCENT_BAR"] = "accentCallout3"; - SHAPE_TYPE["LINE_CALLOUT_4_BORDER_AND_ACCENT_BAR"] = "accentBorderCallout3"; - SHAPE_TYPE["LINE_CALLOUT_4_NO_BORDER"] = "callout3"; - SHAPE_TYPE["LINE"] = "line"; - SHAPE_TYPE["LINE_INVERSE"] = "lineInv"; - SHAPE_TYPE["MATH_DIVIDE"] = "mathDivide"; - SHAPE_TYPE["MATH_EQUAL"] = "mathEqual"; - SHAPE_TYPE["MATH_MINUS"] = "mathMinus"; - SHAPE_TYPE["MATH_MULTIPLY"] = "mathMultiply"; - SHAPE_TYPE["MATH_NOT_EQUAL"] = "mathNotEqual"; - SHAPE_TYPE["MATH_PLUS"] = "mathPlus"; - SHAPE_TYPE["MOON"] = "moon"; - SHAPE_TYPE["NON_ISOSCELES_TRAPEZOID"] = "nonIsoscelesTrapezoid"; - SHAPE_TYPE["NOTCHED_RIGHT_ARROW"] = "notchedRightArrow"; - SHAPE_TYPE["NO_SYMBOL"] = "noSmoking"; - SHAPE_TYPE["OCTAGON"] = "octagon"; - SHAPE_TYPE["OVAL"] = "ellipse"; - SHAPE_TYPE["OVAL_CALLOUT"] = "wedgeEllipseCallout"; - SHAPE_TYPE["PARALLELOGRAM"] = "parallelogram"; - SHAPE_TYPE["PENTAGON"] = "homePlate"; - SHAPE_TYPE["PIE"] = "pie"; - SHAPE_TYPE["PIE_WEDGE"] = "pieWedge"; - SHAPE_TYPE["PLAQUE"] = "plaque"; - SHAPE_TYPE["PLAQUE_TABS"] = "plaqueTabs"; - SHAPE_TYPE["QUAD_ARROW"] = "quadArrow"; - SHAPE_TYPE["QUAD_ARROW_CALLOUT"] = "quadArrowCallout"; - SHAPE_TYPE["RECTANGLE"] = "rect"; - SHAPE_TYPE["RECTANGULAR_CALLOUT"] = "wedgeRectCallout"; - SHAPE_TYPE["REGULAR_PENTAGON"] = "pentagon"; - SHAPE_TYPE["RIGHT_ARROW"] = "rightArrow"; - SHAPE_TYPE["RIGHT_ARROW_CALLOUT"] = "rightArrowCallout"; - SHAPE_TYPE["RIGHT_BRACE"] = "rightBrace"; - SHAPE_TYPE["RIGHT_BRACKET"] = "rightBracket"; - SHAPE_TYPE["RIGHT_TRIANGLE"] = "rtTriangle"; - SHAPE_TYPE["ROUNDED_RECTANGLE"] = "roundRect"; - SHAPE_TYPE["ROUNDED_RECTANGULAR_CALLOUT"] = "wedgeRoundRectCallout"; - SHAPE_TYPE["ROUND_1_RECTANGLE"] = "round1Rect"; - SHAPE_TYPE["ROUND_2_DIAG_RECTANGLE"] = "round2DiagRect"; - SHAPE_TYPE["ROUND_2_SAME_RECTANGLE"] = "round2SameRect"; - SHAPE_TYPE["SMILEY_FACE"] = "smileyFace"; - SHAPE_TYPE["SNIP_1_RECTANGLE"] = "snip1Rect"; - SHAPE_TYPE["SNIP_2_DIAG_RECTANGLE"] = "snip2DiagRect"; - SHAPE_TYPE["SNIP_2_SAME_RECTANGLE"] = "snip2SameRect"; - SHAPE_TYPE["SNIP_ROUND_RECTANGLE"] = "snipRoundRect"; - SHAPE_TYPE["SQUARE_TABS"] = "squareTabs"; - SHAPE_TYPE["STAR_10_POINT"] = "star10"; - SHAPE_TYPE["STAR_12_POINT"] = "star12"; - SHAPE_TYPE["STAR_16_POINT"] = "star16"; - SHAPE_TYPE["STAR_24_POINT"] = "star24"; - SHAPE_TYPE["STAR_32_POINT"] = "star32"; - SHAPE_TYPE["STAR_4_POINT"] = "star4"; - SHAPE_TYPE["STAR_5_POINT"] = "star5"; - SHAPE_TYPE["STAR_6_POINT"] = "star6"; - SHAPE_TYPE["STAR_7_POINT"] = "star7"; - SHAPE_TYPE["STAR_8_POINT"] = "star8"; - SHAPE_TYPE["STRIPED_RIGHT_ARROW"] = "stripedRightArrow"; - SHAPE_TYPE["SUN"] = "sun"; - SHAPE_TYPE["SWOOSH_ARROW"] = "swooshArrow"; - SHAPE_TYPE["TEAR"] = "teardrop"; - SHAPE_TYPE["TRAPEZOID"] = "trapezoid"; - SHAPE_TYPE["UP_ARROW"] = "upArrow"; - SHAPE_TYPE["UP_ARROW_CALLOUT"] = "upArrowCallout"; - SHAPE_TYPE["UP_DOWN_ARROW"] = "upDownArrow"; - SHAPE_TYPE["UP_DOWN_ARROW_CALLOUT"] = "upDownArrowCallout"; - SHAPE_TYPE["UP_RIBBON"] = "ribbon2"; - SHAPE_TYPE["U_TURN_ARROW"] = "uturnArrow"; - SHAPE_TYPE["VERTICAL_SCROLL"] = "verticalScroll"; - SHAPE_TYPE["WAVE"] = "wave"; -})(SHAPE_TYPE || (SHAPE_TYPE = {})); -var CHART_TYPE; -(function (CHART_TYPE) { - CHART_TYPE["AREA"] = "area"; - CHART_TYPE["BAR"] = "bar"; - CHART_TYPE["BAR3D"] = "bar3D"; - CHART_TYPE["BUBBLE"] = "bubble"; - CHART_TYPE["DOUGHNUT"] = "doughnut"; - CHART_TYPE["LINE"] = "line"; - CHART_TYPE["PIE"] = "pie"; - CHART_TYPE["RADAR"] = "radar"; - CHART_TYPE["SCATTER"] = "scatter"; -})(CHART_TYPE || (CHART_TYPE = {})); -var SCHEME_COLOR_NAMES; -(function (SCHEME_COLOR_NAMES) { - SCHEME_COLOR_NAMES["TEXT1"] = "tx1"; - SCHEME_COLOR_NAMES["TEXT2"] = "tx2"; - SCHEME_COLOR_NAMES["BACKGROUND1"] = "bg1"; - SCHEME_COLOR_NAMES["BACKGROUND2"] = "bg2"; - SCHEME_COLOR_NAMES["ACCENT1"] = "accent1"; - SCHEME_COLOR_NAMES["ACCENT2"] = "accent2"; - SCHEME_COLOR_NAMES["ACCENT3"] = "accent3"; - SCHEME_COLOR_NAMES["ACCENT4"] = "accent4"; - SCHEME_COLOR_NAMES["ACCENT5"] = "accent5"; - SCHEME_COLOR_NAMES["ACCENT6"] = "accent6"; -})(SCHEME_COLOR_NAMES || (SCHEME_COLOR_NAMES = {})); -var MASTER_OBJECTS; -(function (MASTER_OBJECTS) { - MASTER_OBJECTS["chart"] = "chart"; - MASTER_OBJECTS["image"] = "image"; - MASTER_OBJECTS["line"] = "line"; - MASTER_OBJECTS["rect"] = "rect"; - MASTER_OBJECTS["text"] = "text"; - MASTER_OBJECTS["placeholder"] = "placeholder"; -})(MASTER_OBJECTS || (MASTER_OBJECTS = {})); -var SLIDE_OBJECT_TYPES; -(function (SLIDE_OBJECT_TYPES) { - SLIDE_OBJECT_TYPES["chart"] = "chart"; - SLIDE_OBJECT_TYPES["hyperlink"] = "hyperlink"; - SLIDE_OBJECT_TYPES["image"] = "image"; - SLIDE_OBJECT_TYPES["media"] = "media"; - SLIDE_OBJECT_TYPES["online"] = "online"; - SLIDE_OBJECT_TYPES["placeholder"] = "placeholder"; - SLIDE_OBJECT_TYPES["table"] = "table"; - SLIDE_OBJECT_TYPES["tablecell"] = "tablecell"; - SLIDE_OBJECT_TYPES["text"] = "text"; - SLIDE_OBJECT_TYPES["notes"] = "notes"; -})(SLIDE_OBJECT_TYPES || (SLIDE_OBJECT_TYPES = {})); -var PLACEHOLDER_TYPES; -(function (PLACEHOLDER_TYPES) { - PLACEHOLDER_TYPES["title"] = "title"; - PLACEHOLDER_TYPES["body"] = "body"; - PLACEHOLDER_TYPES["image"] = "pic"; - PLACEHOLDER_TYPES["chart"] = "chart"; - PLACEHOLDER_TYPES["table"] = "tbl"; - PLACEHOLDER_TYPES["media"] = "media"; -})(PLACEHOLDER_TYPES || (PLACEHOLDER_TYPES = {})); -/** - * NOTE: 20170304: BULLET_TYPES: Only default is used so far. I'd like to combine the two pieces of code that use these before implementing these as options - * Since we close

within the text object bullets, its slightly more difficult than combining into a func and calling to get the paraProp - * and i'm not sure if anyone will even use these... so, skipping for now. - */ -var BULLET_TYPES; -(function (BULLET_TYPES) { - BULLET_TYPES["DEFAULT"] = "•"; - BULLET_TYPES["CHECK"] = "✓"; - BULLET_TYPES["STAR"] = "★"; - BULLET_TYPES["TRIANGLE"] = "▶"; -})(BULLET_TYPES || (BULLET_TYPES = {})); -// IMAGES (base64) -var IMG_BROKEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAB3CAYAAAD1oOVhAAAGAUlEQVR4Xu2dT0xcRRzHf7tAYSsc0EBSIq2xEg8mtTGebVzEqOVIolz0siRE4gGTStqKwdpWsXoyGhMuyAVJOHBgqyvLNgonDkabeCBYW/8kTUr0wsJC+Wfm0bfuvn37Znbem9mR9303mJnf/Pb7ed95M7PDI5JIJPYJV5EC7e3t1N/fT62trdqViQCIu+bVgpIHEo/Hqbe3V/sdYVKHyWSSZmZm8ilVA0oeyNjYmEnaVC2Xvr6+qg5fAOJAz4DU1dURGzFSqZRVqtMpAFIGyMjICC0vL9PExIRWKADiAYTNshYWFrRCARAOEFZcCKWtrY0GBgaUTYkBRACIE4rKZwqACALR5RQAqQCIDqcASIVAVDsFQCSAqHQKgEgCUeUUAPEBRIVTAMQnEBvK5OQkbW9vk991CoAEAMQJxc86BUACAhKUUwAkQCBBOAVAAgbi1ykAogCIH6cAiCIgsk4BEIVAZJwCIIqBVLqiBxANQFgXS0tLND4+zl08AogmIG5OSSQS1gGKwgtANAIRcQqAaAbCe6YASBWA2E6xDyeyDUl7+AKQMkDYYevm5mZHabA/Li4uUiaTsYLau8QA4gLE/hU7wajyYtv1hReDAiAOxQcHBymbzark4BkbQKom/X8dp9Npmpqasn4BIAYAYSnYp+4BBEAMUcCwNOCQsAKZnp62NtQOw8WmwT09PUo+ijaHsOMx7GppaaH6+nolH0Z10K2tLVpdXbW6UfV3mNqBdHd3U1NTk2rtlMRfW1uj2dlZAFGirkRQAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAGHqrm8caPzQ0WC1logbeiC7X3xJm0PvUmRzh45cuki1588FAmVn9BO6P3yF9utrqGH0MtW82S8UN9RA9v/4k7InjhcJFTs/TLVXLwmJV67S7vD7tHF5pKi46fYdosdOcOOGG8j1OcqefbFEJD9Q3GCwDhqT31HklS4A8VRgfYM2Op6k3bt/BQJl58J7lPvwg5JYNccepaMry0LPqFA7hCm39+NNyp2J0172b19QysGINj5CsRtpij57musOViH0QPJQXn6J9u7dlYJSFkbrMYolrwvDAJAC+WWdEpQz7FTgECeUCpzi6YxvvqXoM6eEhqnCSgDikEzUKUE7Aw7xuHctKB5OYU3dZlNR9syQdAaAcAYTC0pXF+39c09o2Ik+3EqxVKqiB7hbYAxZkk4pbBaEM+AQofv+wTrFwylBOQNABIGwavdfe4O2pg5elO+86l99nY58/VUF0byrYsjiSFluNlXYrOHcBar7+EogUADEQ0YRGHbzoKAASBkg2+9cpM1rV0tK2QOcXW7bLEFAARAXIF4w2DrDWoeUWaf4hQIgDiA8GPZ2iNfi0Q8UACkAIgrDbrJ385eDxaPLLrEsFAB5oG6lMPJQPLZZZKAACBGVhcG2Q+bmuLu2nk55e4jqPv1IeEoceiBeX7s2zCa5MAqdstl91vfXwaEGsv/rb5TtOFk6tWXOuJGh6KmnhO9sayrMninPx103JBtXblHkice58cINZP4Hyr5wpkgkdiChEmc4FWazLzenNKa/p0jncwDiqcD6BuWePk07t1asatZGoYQzSqA4nFJ7soNiP/+EUyfc25GI2GG53dHPrKo1g/1Cw4pIXLrzO+1c+/wg7tBbFDle/EbQcjFCPWQJCau5EoBoFpzXHYDwFNJcDiCaBed1ByA8hTSXA4hmwXndAQhPIc3lAKJZcF53AMJTSHM5gGgWnNcdgPAU0lwOIJoF53UHIDyFNJcfSiCdnZ0Ui8U0SxlMd7lcjubn561gh+Y1scFIU/0o/3sgeLO12E2k7UXKYumgFoAYdg8ACIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6ZQ4JB6PKzviYthnNy4d9h+1M5mMlVckkUjsG5dhiBMCEMPg/wuOfrZZ/RSywQAAAABJRU5ErkJggg=='; +/** + * PptxGenJS Enums + * NOTE: `enum` wont work for objects, so use `Object.freeze` + */ +// CONST +var EMU = 914400; // One (1) inch (OfficeXML measures in EMU (English Metric Units)) +var ONEPT = 12700; // One (1) point (pt) +var CRLF = '\r\n'; // AKA: Chr(13) & Chr(10) +var LAYOUT_IDX_SERIES_BASE = 2147483649; +var REGEX_HEX_COLOR = /^[0-9a-fA-F]{6}$/; +var LINEH_MODIFIER = 1.67; // AKA: Golden Ratio Typography +var DEF_BULLET_MARGIN = 27; +var DEF_CELL_BORDER = { type: 'solid', color: '666666', pt: 1 }; +var DEF_CELL_MARGIN_IN = [0.05, 0.1, 0.05, 0.1]; // "Normal" margins in PPT-2021 ("Narrow" is `0.05` for all 4) +var DEF_CHART_GRIDLINE = { color: '888888', style: 'solid', size: 1 }; +var DEF_FONT_COLOR = '000000'; +var DEF_FONT_SIZE = 12; +var DEF_FONT_TITLE_SIZE = 18; +var DEF_PRES_LAYOUT = 'LAYOUT_16x9'; +var DEF_PRES_LAYOUT_NAME = 'DEFAULT'; +var DEF_SHAPE_LINE_COLOR = '333333'; +var DEF_SHAPE_SHADOW = { type: 'outer', blur: 3, offset: 23000 / 12700, angle: 90, color: '000000', opacity: 0.35, rotateWithShape: true }; +var DEF_SLIDE_MARGIN_IN = [0.5, 0.5, 0.5, 0.5]; // TRBL-style +var DEF_TEXT_SHADOW = { type: 'outer', blur: 8, offset: 4, angle: 270, color: '000000', opacity: 0.75 }; +var DEF_TEXT_GLOW = { size: 8, color: 'FFFFFF', opacity: 0.75 }; +var AXIS_ID_VALUE_PRIMARY = '2094734552'; +var AXIS_ID_VALUE_SECONDARY = '2094734553'; +var AXIS_ID_CATEGORY_PRIMARY = '2094734554'; +var AXIS_ID_CATEGORY_SECONDARY = '2094734555'; +var AXIS_ID_SERIES_PRIMARY = '2094734556'; +var LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''); +var BARCHART_COLORS = [ + 'C0504D', + '4F81BD', + '9BBB59', + '8064A2', + '4BACC6', + 'F79646', + '628FC6', + 'C86360', + 'C0504D', + '4F81BD', + '9BBB59', + '8064A2', + '4BACC6', + 'F79646', + '628FC6', + 'C86360', +]; +var PIECHART_COLORS = [ + '5DA5DA', + 'FAA43A', + '60BD68', + 'F17CB0', + 'B2912F', + 'B276B2', + 'DECF3F', + 'F15854', + 'A7A7A7', + '5DA5DA', + 'FAA43A', + '60BD68', + 'F17CB0', + 'B2912F', + 'B276B2', + 'DECF3F', + 'F15854', + 'A7A7A7', +]; +var TEXT_HALIGN; +(function (TEXT_HALIGN) { + TEXT_HALIGN["left"] = "left"; + TEXT_HALIGN["center"] = "center"; + TEXT_HALIGN["right"] = "right"; + TEXT_HALIGN["justify"] = "justify"; +})(TEXT_HALIGN || (TEXT_HALIGN = {})); +var TEXT_VALIGN; +(function (TEXT_VALIGN) { + TEXT_VALIGN["b"] = "b"; + TEXT_VALIGN["ctr"] = "ctr"; + TEXT_VALIGN["t"] = "t"; +})(TEXT_VALIGN || (TEXT_VALIGN = {})); +var SLDNUMFLDID = '{F7021451-1387-4CA6-816F-3879F97B5CBC}'; +// ENUM +// TODO: 3.5 or v4.0: rationalize ts-def exported enum names/case! +// NOTE: First tsdef enum named correctly (shapes -> 'Shape', colors -> 'Color'), etc. +var OutputType; +(function (OutputType) { + OutputType["arraybuffer"] = "arraybuffer"; + OutputType["base64"] = "base64"; + OutputType["binarystring"] = "binarystring"; + OutputType["blob"] = "blob"; + OutputType["nodebuffer"] = "nodebuffer"; + OutputType["uint8array"] = "uint8array"; +})(OutputType || (OutputType = {})); +var ChartType; +(function (ChartType) { + ChartType["area"] = "area"; + ChartType["bar"] = "bar"; + ChartType["bar3d"] = "bar3D"; + ChartType["bubble"] = "bubble"; + ChartType["doughnut"] = "doughnut"; + ChartType["line"] = "line"; + ChartType["pie"] = "pie"; + ChartType["radar"] = "radar"; + ChartType["scatter"] = "scatter"; +})(ChartType || (ChartType = {})); +var ShapeType; +(function (ShapeType) { + ShapeType["accentBorderCallout1"] = "accentBorderCallout1"; + ShapeType["accentBorderCallout2"] = "accentBorderCallout2"; + ShapeType["accentBorderCallout3"] = "accentBorderCallout3"; + ShapeType["accentCallout1"] = "accentCallout1"; + ShapeType["accentCallout2"] = "accentCallout2"; + ShapeType["accentCallout3"] = "accentCallout3"; + ShapeType["actionButtonBackPrevious"] = "actionButtonBackPrevious"; + ShapeType["actionButtonBeginning"] = "actionButtonBeginning"; + ShapeType["actionButtonBlank"] = "actionButtonBlank"; + ShapeType["actionButtonDocument"] = "actionButtonDocument"; + ShapeType["actionButtonEnd"] = "actionButtonEnd"; + ShapeType["actionButtonForwardNext"] = "actionButtonForwardNext"; + ShapeType["actionButtonHelp"] = "actionButtonHelp"; + ShapeType["actionButtonHome"] = "actionButtonHome"; + ShapeType["actionButtonInformation"] = "actionButtonInformation"; + ShapeType["actionButtonMovie"] = "actionButtonMovie"; + ShapeType["actionButtonReturn"] = "actionButtonReturn"; + ShapeType["actionButtonSound"] = "actionButtonSound"; + ShapeType["arc"] = "arc"; + ShapeType["bentArrow"] = "bentArrow"; + ShapeType["bentUpArrow"] = "bentUpArrow"; + ShapeType["bevel"] = "bevel"; + ShapeType["blockArc"] = "blockArc"; + ShapeType["borderCallout1"] = "borderCallout1"; + ShapeType["borderCallout2"] = "borderCallout2"; + ShapeType["borderCallout3"] = "borderCallout3"; + ShapeType["bracePair"] = "bracePair"; + ShapeType["bracketPair"] = "bracketPair"; + ShapeType["callout1"] = "callout1"; + ShapeType["callout2"] = "callout2"; + ShapeType["callout3"] = "callout3"; + ShapeType["can"] = "can"; + ShapeType["chartPlus"] = "chartPlus"; + ShapeType["chartStar"] = "chartStar"; + ShapeType["chartX"] = "chartX"; + ShapeType["chevron"] = "chevron"; + ShapeType["chord"] = "chord"; + ShapeType["circularArrow"] = "circularArrow"; + ShapeType["cloud"] = "cloud"; + ShapeType["cloudCallout"] = "cloudCallout"; + ShapeType["corner"] = "corner"; + ShapeType["cornerTabs"] = "cornerTabs"; + ShapeType["cube"] = "cube"; + ShapeType["curvedDownArrow"] = "curvedDownArrow"; + ShapeType["curvedLeftArrow"] = "curvedLeftArrow"; + ShapeType["curvedRightArrow"] = "curvedRightArrow"; + ShapeType["curvedUpArrow"] = "curvedUpArrow"; + ShapeType["custGeom"] = "custGeom"; + ShapeType["decagon"] = "decagon"; + ShapeType["diagStripe"] = "diagStripe"; + ShapeType["diamond"] = "diamond"; + ShapeType["dodecagon"] = "dodecagon"; + ShapeType["donut"] = "donut"; + ShapeType["doubleWave"] = "doubleWave"; + ShapeType["downArrow"] = "downArrow"; + ShapeType["downArrowCallout"] = "downArrowCallout"; + ShapeType["ellipse"] = "ellipse"; + ShapeType["ellipseRibbon"] = "ellipseRibbon"; + ShapeType["ellipseRibbon2"] = "ellipseRibbon2"; + ShapeType["flowChartAlternateProcess"] = "flowChartAlternateProcess"; + ShapeType["flowChartCollate"] = "flowChartCollate"; + ShapeType["flowChartConnector"] = "flowChartConnector"; + ShapeType["flowChartDecision"] = "flowChartDecision"; + ShapeType["flowChartDelay"] = "flowChartDelay"; + ShapeType["flowChartDisplay"] = "flowChartDisplay"; + ShapeType["flowChartDocument"] = "flowChartDocument"; + ShapeType["flowChartExtract"] = "flowChartExtract"; + ShapeType["flowChartInputOutput"] = "flowChartInputOutput"; + ShapeType["flowChartInternalStorage"] = "flowChartInternalStorage"; + ShapeType["flowChartMagneticDisk"] = "flowChartMagneticDisk"; + ShapeType["flowChartMagneticDrum"] = "flowChartMagneticDrum"; + ShapeType["flowChartMagneticTape"] = "flowChartMagneticTape"; + ShapeType["flowChartManualInput"] = "flowChartManualInput"; + ShapeType["flowChartManualOperation"] = "flowChartManualOperation"; + ShapeType["flowChartMerge"] = "flowChartMerge"; + ShapeType["flowChartMultidocument"] = "flowChartMultidocument"; + ShapeType["flowChartOfflineStorage"] = "flowChartOfflineStorage"; + ShapeType["flowChartOffpageConnector"] = "flowChartOffpageConnector"; + ShapeType["flowChartOnlineStorage"] = "flowChartOnlineStorage"; + ShapeType["flowChartOr"] = "flowChartOr"; + ShapeType["flowChartPredefinedProcess"] = "flowChartPredefinedProcess"; + ShapeType["flowChartPreparation"] = "flowChartPreparation"; + ShapeType["flowChartProcess"] = "flowChartProcess"; + ShapeType["flowChartPunchedCard"] = "flowChartPunchedCard"; + ShapeType["flowChartPunchedTape"] = "flowChartPunchedTape"; + ShapeType["flowChartSort"] = "flowChartSort"; + ShapeType["flowChartSummingJunction"] = "flowChartSummingJunction"; + ShapeType["flowChartTerminator"] = "flowChartTerminator"; + ShapeType["folderCorner"] = "folderCorner"; + ShapeType["frame"] = "frame"; + ShapeType["funnel"] = "funnel"; + ShapeType["gear6"] = "gear6"; + ShapeType["gear9"] = "gear9"; + ShapeType["halfFrame"] = "halfFrame"; + ShapeType["heart"] = "heart"; + ShapeType["heptagon"] = "heptagon"; + ShapeType["hexagon"] = "hexagon"; + ShapeType["homePlate"] = "homePlate"; + ShapeType["horizontalScroll"] = "horizontalScroll"; + ShapeType["irregularSeal1"] = "irregularSeal1"; + ShapeType["irregularSeal2"] = "irregularSeal2"; + ShapeType["leftArrow"] = "leftArrow"; + ShapeType["leftArrowCallout"] = "leftArrowCallout"; + ShapeType["leftBrace"] = "leftBrace"; + ShapeType["leftBracket"] = "leftBracket"; + ShapeType["leftCircularArrow"] = "leftCircularArrow"; + ShapeType["leftRightArrow"] = "leftRightArrow"; + ShapeType["leftRightArrowCallout"] = "leftRightArrowCallout"; + ShapeType["leftRightCircularArrow"] = "leftRightCircularArrow"; + ShapeType["leftRightRibbon"] = "leftRightRibbon"; + ShapeType["leftRightUpArrow"] = "leftRightUpArrow"; + ShapeType["leftUpArrow"] = "leftUpArrow"; + ShapeType["lightningBolt"] = "lightningBolt"; + ShapeType["line"] = "line"; + ShapeType["lineInv"] = "lineInv"; + ShapeType["mathDivide"] = "mathDivide"; + ShapeType["mathEqual"] = "mathEqual"; + ShapeType["mathMinus"] = "mathMinus"; + ShapeType["mathMultiply"] = "mathMultiply"; + ShapeType["mathNotEqual"] = "mathNotEqual"; + ShapeType["mathPlus"] = "mathPlus"; + ShapeType["moon"] = "moon"; + ShapeType["noSmoking"] = "noSmoking"; + ShapeType["nonIsoscelesTrapezoid"] = "nonIsoscelesTrapezoid"; + ShapeType["notchedRightArrow"] = "notchedRightArrow"; + ShapeType["octagon"] = "octagon"; + ShapeType["parallelogram"] = "parallelogram"; + ShapeType["pentagon"] = "pentagon"; + ShapeType["pie"] = "pie"; + ShapeType["pieWedge"] = "pieWedge"; + ShapeType["plaque"] = "plaque"; + ShapeType["plaqueTabs"] = "plaqueTabs"; + ShapeType["plus"] = "plus"; + ShapeType["quadArrow"] = "quadArrow"; + ShapeType["quadArrowCallout"] = "quadArrowCallout"; + ShapeType["rect"] = "rect"; + ShapeType["ribbon"] = "ribbon"; + ShapeType["ribbon2"] = "ribbon2"; + ShapeType["rightArrow"] = "rightArrow"; + ShapeType["rightArrowCallout"] = "rightArrowCallout"; + ShapeType["rightBrace"] = "rightBrace"; + ShapeType["rightBracket"] = "rightBracket"; + ShapeType["round1Rect"] = "round1Rect"; + ShapeType["round2DiagRect"] = "round2DiagRect"; + ShapeType["round2SameRect"] = "round2SameRect"; + ShapeType["roundRect"] = "roundRect"; + ShapeType["rtTriangle"] = "rtTriangle"; + ShapeType["smileyFace"] = "smileyFace"; + ShapeType["snip1Rect"] = "snip1Rect"; + ShapeType["snip2DiagRect"] = "snip2DiagRect"; + ShapeType["snip2SameRect"] = "snip2SameRect"; + ShapeType["snipRoundRect"] = "snipRoundRect"; + ShapeType["squareTabs"] = "squareTabs"; + ShapeType["star10"] = "star10"; + ShapeType["star12"] = "star12"; + ShapeType["star16"] = "star16"; + ShapeType["star24"] = "star24"; + ShapeType["star32"] = "star32"; + ShapeType["star4"] = "star4"; + ShapeType["star5"] = "star5"; + ShapeType["star6"] = "star6"; + ShapeType["star7"] = "star7"; + ShapeType["star8"] = "star8"; + ShapeType["stripedRightArrow"] = "stripedRightArrow"; + ShapeType["sun"] = "sun"; + ShapeType["swooshArrow"] = "swooshArrow"; + ShapeType["teardrop"] = "teardrop"; + ShapeType["trapezoid"] = "trapezoid"; + ShapeType["triangle"] = "triangle"; + ShapeType["upArrow"] = "upArrow"; + ShapeType["upArrowCallout"] = "upArrowCallout"; + ShapeType["upDownArrow"] = "upDownArrow"; + ShapeType["upDownArrowCallout"] = "upDownArrowCallout"; + ShapeType["uturnArrow"] = "uturnArrow"; + ShapeType["verticalScroll"] = "verticalScroll"; + ShapeType["wave"] = "wave"; + ShapeType["wedgeEllipseCallout"] = "wedgeEllipseCallout"; + ShapeType["wedgeRectCallout"] = "wedgeRectCallout"; + ShapeType["wedgeRoundRectCallout"] = "wedgeRoundRectCallout"; +})(ShapeType || (ShapeType = {})); +/** + * TODO: FUTURE: v4.0: rename to `ThemeColor` + */ +var SchemeColor; +(function (SchemeColor) { + SchemeColor["text1"] = "tx1"; + SchemeColor["text2"] = "tx2"; + SchemeColor["background1"] = "bg1"; + SchemeColor["background2"] = "bg2"; + SchemeColor["accent1"] = "accent1"; + SchemeColor["accent2"] = "accent2"; + SchemeColor["accent3"] = "accent3"; + SchemeColor["accent4"] = "accent4"; + SchemeColor["accent5"] = "accent5"; + SchemeColor["accent6"] = "accent6"; +})(SchemeColor || (SchemeColor = {})); +var AlignH; +(function (AlignH) { + AlignH["left"] = "left"; + AlignH["center"] = "center"; + AlignH["right"] = "right"; + AlignH["justify"] = "justify"; +})(AlignH || (AlignH = {})); +var AlignV; +(function (AlignV) { + AlignV["top"] = "top"; + AlignV["middle"] = "middle"; + AlignV["bottom"] = "bottom"; +})(AlignV || (AlignV = {})); +var SHAPE_TYPE; +(function (SHAPE_TYPE) { + SHAPE_TYPE["ACTION_BUTTON_BACK_OR_PREVIOUS"] = "actionButtonBackPrevious"; + SHAPE_TYPE["ACTION_BUTTON_BEGINNING"] = "actionButtonBeginning"; + SHAPE_TYPE["ACTION_BUTTON_CUSTOM"] = "actionButtonBlank"; + SHAPE_TYPE["ACTION_BUTTON_DOCUMENT"] = "actionButtonDocument"; + SHAPE_TYPE["ACTION_BUTTON_END"] = "actionButtonEnd"; + SHAPE_TYPE["ACTION_BUTTON_FORWARD_OR_NEXT"] = "actionButtonForwardNext"; + SHAPE_TYPE["ACTION_BUTTON_HELP"] = "actionButtonHelp"; + SHAPE_TYPE["ACTION_BUTTON_HOME"] = "actionButtonHome"; + SHAPE_TYPE["ACTION_BUTTON_INFORMATION"] = "actionButtonInformation"; + SHAPE_TYPE["ACTION_BUTTON_MOVIE"] = "actionButtonMovie"; + SHAPE_TYPE["ACTION_BUTTON_RETURN"] = "actionButtonReturn"; + SHAPE_TYPE["ACTION_BUTTON_SOUND"] = "actionButtonSound"; + SHAPE_TYPE["ARC"] = "arc"; + SHAPE_TYPE["BALLOON"] = "wedgeRoundRectCallout"; + SHAPE_TYPE["BENT_ARROW"] = "bentArrow"; + SHAPE_TYPE["BENT_UP_ARROW"] = "bentUpArrow"; + SHAPE_TYPE["BEVEL"] = "bevel"; + SHAPE_TYPE["BLOCK_ARC"] = "blockArc"; + SHAPE_TYPE["CAN"] = "can"; + SHAPE_TYPE["CHART_PLUS"] = "chartPlus"; + SHAPE_TYPE["CHART_STAR"] = "chartStar"; + SHAPE_TYPE["CHART_X"] = "chartX"; + SHAPE_TYPE["CHEVRON"] = "chevron"; + SHAPE_TYPE["CHORD"] = "chord"; + SHAPE_TYPE["CIRCULAR_ARROW"] = "circularArrow"; + SHAPE_TYPE["CLOUD"] = "cloud"; + SHAPE_TYPE["CLOUD_CALLOUT"] = "cloudCallout"; + SHAPE_TYPE["CORNER"] = "corner"; + SHAPE_TYPE["CORNER_TABS"] = "cornerTabs"; + SHAPE_TYPE["CROSS"] = "plus"; + SHAPE_TYPE["CUBE"] = "cube"; + SHAPE_TYPE["CURVED_DOWN_ARROW"] = "curvedDownArrow"; + SHAPE_TYPE["CURVED_DOWN_RIBBON"] = "ellipseRibbon"; + SHAPE_TYPE["CURVED_LEFT_ARROW"] = "curvedLeftArrow"; + SHAPE_TYPE["CURVED_RIGHT_ARROW"] = "curvedRightArrow"; + SHAPE_TYPE["CURVED_UP_ARROW"] = "curvedUpArrow"; + SHAPE_TYPE["CURVED_UP_RIBBON"] = "ellipseRibbon2"; + SHAPE_TYPE["CUSTOM_GEOMETRY"] = "custGeom"; + SHAPE_TYPE["DECAGON"] = "decagon"; + SHAPE_TYPE["DIAGONAL_STRIPE"] = "diagStripe"; + SHAPE_TYPE["DIAMOND"] = "diamond"; + SHAPE_TYPE["DODECAGON"] = "dodecagon"; + SHAPE_TYPE["DONUT"] = "donut"; + SHAPE_TYPE["DOUBLE_BRACE"] = "bracePair"; + SHAPE_TYPE["DOUBLE_BRACKET"] = "bracketPair"; + SHAPE_TYPE["DOUBLE_WAVE"] = "doubleWave"; + SHAPE_TYPE["DOWN_ARROW"] = "downArrow"; + SHAPE_TYPE["DOWN_ARROW_CALLOUT"] = "downArrowCallout"; + SHAPE_TYPE["DOWN_RIBBON"] = "ribbon"; + SHAPE_TYPE["EXPLOSION1"] = "irregularSeal1"; + SHAPE_TYPE["EXPLOSION2"] = "irregularSeal2"; + SHAPE_TYPE["FLOWCHART_ALTERNATE_PROCESS"] = "flowChartAlternateProcess"; + SHAPE_TYPE["FLOWCHART_CARD"] = "flowChartPunchedCard"; + SHAPE_TYPE["FLOWCHART_COLLATE"] = "flowChartCollate"; + SHAPE_TYPE["FLOWCHART_CONNECTOR"] = "flowChartConnector"; + SHAPE_TYPE["FLOWCHART_DATA"] = "flowChartInputOutput"; + SHAPE_TYPE["FLOWCHART_DECISION"] = "flowChartDecision"; + SHAPE_TYPE["FLOWCHART_DELAY"] = "flowChartDelay"; + SHAPE_TYPE["FLOWCHART_DIRECT_ACCESS_STORAGE"] = "flowChartMagneticDrum"; + SHAPE_TYPE["FLOWCHART_DISPLAY"] = "flowChartDisplay"; + SHAPE_TYPE["FLOWCHART_DOCUMENT"] = "flowChartDocument"; + SHAPE_TYPE["FLOWCHART_EXTRACT"] = "flowChartExtract"; + SHAPE_TYPE["FLOWCHART_INTERNAL_STORAGE"] = "flowChartInternalStorage"; + SHAPE_TYPE["FLOWCHART_MAGNETIC_DISK"] = "flowChartMagneticDisk"; + SHAPE_TYPE["FLOWCHART_MANUAL_INPUT"] = "flowChartManualInput"; + SHAPE_TYPE["FLOWCHART_MANUAL_OPERATION"] = "flowChartManualOperation"; + SHAPE_TYPE["FLOWCHART_MERGE"] = "flowChartMerge"; + SHAPE_TYPE["FLOWCHART_MULTIDOCUMENT"] = "flowChartMultidocument"; + SHAPE_TYPE["FLOWCHART_OFFLINE_STORAGE"] = "flowChartOfflineStorage"; + SHAPE_TYPE["FLOWCHART_OFFPAGE_CONNECTOR"] = "flowChartOffpageConnector"; + SHAPE_TYPE["FLOWCHART_OR"] = "flowChartOr"; + SHAPE_TYPE["FLOWCHART_PREDEFINED_PROCESS"] = "flowChartPredefinedProcess"; + SHAPE_TYPE["FLOWCHART_PREPARATION"] = "flowChartPreparation"; + SHAPE_TYPE["FLOWCHART_PROCESS"] = "flowChartProcess"; + SHAPE_TYPE["FLOWCHART_PUNCHED_TAPE"] = "flowChartPunchedTape"; + SHAPE_TYPE["FLOWCHART_SEQUENTIAL_ACCESS_STORAGE"] = "flowChartMagneticTape"; + SHAPE_TYPE["FLOWCHART_SORT"] = "flowChartSort"; + SHAPE_TYPE["FLOWCHART_STORED_DATA"] = "flowChartOnlineStorage"; + SHAPE_TYPE["FLOWCHART_SUMMING_JUNCTION"] = "flowChartSummingJunction"; + SHAPE_TYPE["FLOWCHART_TERMINATOR"] = "flowChartTerminator"; + SHAPE_TYPE["FOLDED_CORNER"] = "folderCorner"; + SHAPE_TYPE["FRAME"] = "frame"; + SHAPE_TYPE["FUNNEL"] = "funnel"; + SHAPE_TYPE["GEAR_6"] = "gear6"; + SHAPE_TYPE["GEAR_9"] = "gear9"; + SHAPE_TYPE["HALF_FRAME"] = "halfFrame"; + SHAPE_TYPE["HEART"] = "heart"; + SHAPE_TYPE["HEPTAGON"] = "heptagon"; + SHAPE_TYPE["HEXAGON"] = "hexagon"; + SHAPE_TYPE["HORIZONTAL_SCROLL"] = "horizontalScroll"; + SHAPE_TYPE["ISOSCELES_TRIANGLE"] = "triangle"; + SHAPE_TYPE["LEFT_ARROW"] = "leftArrow"; + SHAPE_TYPE["LEFT_ARROW_CALLOUT"] = "leftArrowCallout"; + SHAPE_TYPE["LEFT_BRACE"] = "leftBrace"; + SHAPE_TYPE["LEFT_BRACKET"] = "leftBracket"; + SHAPE_TYPE["LEFT_CIRCULAR_ARROW"] = "leftCircularArrow"; + SHAPE_TYPE["LEFT_RIGHT_ARROW"] = "leftRightArrow"; + SHAPE_TYPE["LEFT_RIGHT_ARROW_CALLOUT"] = "leftRightArrowCallout"; + SHAPE_TYPE["LEFT_RIGHT_CIRCULAR_ARROW"] = "leftRightCircularArrow"; + SHAPE_TYPE["LEFT_RIGHT_RIBBON"] = "leftRightRibbon"; + SHAPE_TYPE["LEFT_RIGHT_UP_ARROW"] = "leftRightUpArrow"; + SHAPE_TYPE["LEFT_UP_ARROW"] = "leftUpArrow"; + SHAPE_TYPE["LIGHTNING_BOLT"] = "lightningBolt"; + SHAPE_TYPE["LINE_CALLOUT_1"] = "borderCallout1"; + SHAPE_TYPE["LINE_CALLOUT_1_ACCENT_BAR"] = "accentCallout1"; + SHAPE_TYPE["LINE_CALLOUT_1_BORDER_AND_ACCENT_BAR"] = "accentBorderCallout1"; + SHAPE_TYPE["LINE_CALLOUT_1_NO_BORDER"] = "callout1"; + SHAPE_TYPE["LINE_CALLOUT_2"] = "borderCallout2"; + SHAPE_TYPE["LINE_CALLOUT_2_ACCENT_BAR"] = "accentCallout2"; + SHAPE_TYPE["LINE_CALLOUT_2_BORDER_AND_ACCENT_BAR"] = "accentBorderCallout2"; + SHAPE_TYPE["LINE_CALLOUT_2_NO_BORDER"] = "callout2"; + SHAPE_TYPE["LINE_CALLOUT_3"] = "borderCallout3"; + SHAPE_TYPE["LINE_CALLOUT_3_ACCENT_BAR"] = "accentCallout3"; + SHAPE_TYPE["LINE_CALLOUT_3_BORDER_AND_ACCENT_BAR"] = "accentBorderCallout3"; + SHAPE_TYPE["LINE_CALLOUT_3_NO_BORDER"] = "callout3"; + SHAPE_TYPE["LINE_CALLOUT_4"] = "borderCallout3"; + SHAPE_TYPE["LINE_CALLOUT_4_ACCENT_BAR"] = "accentCallout3"; + SHAPE_TYPE["LINE_CALLOUT_4_BORDER_AND_ACCENT_BAR"] = "accentBorderCallout3"; + SHAPE_TYPE["LINE_CALLOUT_4_NO_BORDER"] = "callout3"; + SHAPE_TYPE["LINE"] = "line"; + SHAPE_TYPE["LINE_INVERSE"] = "lineInv"; + SHAPE_TYPE["MATH_DIVIDE"] = "mathDivide"; + SHAPE_TYPE["MATH_EQUAL"] = "mathEqual"; + SHAPE_TYPE["MATH_MINUS"] = "mathMinus"; + SHAPE_TYPE["MATH_MULTIPLY"] = "mathMultiply"; + SHAPE_TYPE["MATH_NOT_EQUAL"] = "mathNotEqual"; + SHAPE_TYPE["MATH_PLUS"] = "mathPlus"; + SHAPE_TYPE["MOON"] = "moon"; + SHAPE_TYPE["NON_ISOSCELES_TRAPEZOID"] = "nonIsoscelesTrapezoid"; + SHAPE_TYPE["NOTCHED_RIGHT_ARROW"] = "notchedRightArrow"; + SHAPE_TYPE["NO_SYMBOL"] = "noSmoking"; + SHAPE_TYPE["OCTAGON"] = "octagon"; + SHAPE_TYPE["OVAL"] = "ellipse"; + SHAPE_TYPE["OVAL_CALLOUT"] = "wedgeEllipseCallout"; + SHAPE_TYPE["PARALLELOGRAM"] = "parallelogram"; + SHAPE_TYPE["PENTAGON"] = "homePlate"; + SHAPE_TYPE["PIE"] = "pie"; + SHAPE_TYPE["PIE_WEDGE"] = "pieWedge"; + SHAPE_TYPE["PLAQUE"] = "plaque"; + SHAPE_TYPE["PLAQUE_TABS"] = "plaqueTabs"; + SHAPE_TYPE["QUAD_ARROW"] = "quadArrow"; + SHAPE_TYPE["QUAD_ARROW_CALLOUT"] = "quadArrowCallout"; + SHAPE_TYPE["RECTANGLE"] = "rect"; + SHAPE_TYPE["RECTANGULAR_CALLOUT"] = "wedgeRectCallout"; + SHAPE_TYPE["REGULAR_PENTAGON"] = "pentagon"; + SHAPE_TYPE["RIGHT_ARROW"] = "rightArrow"; + SHAPE_TYPE["RIGHT_ARROW_CALLOUT"] = "rightArrowCallout"; + SHAPE_TYPE["RIGHT_BRACE"] = "rightBrace"; + SHAPE_TYPE["RIGHT_BRACKET"] = "rightBracket"; + SHAPE_TYPE["RIGHT_TRIANGLE"] = "rtTriangle"; + SHAPE_TYPE["ROUNDED_RECTANGLE"] = "roundRect"; + SHAPE_TYPE["ROUNDED_RECTANGULAR_CALLOUT"] = "wedgeRoundRectCallout"; + SHAPE_TYPE["ROUND_1_RECTANGLE"] = "round1Rect"; + SHAPE_TYPE["ROUND_2_DIAG_RECTANGLE"] = "round2DiagRect"; + SHAPE_TYPE["ROUND_2_SAME_RECTANGLE"] = "round2SameRect"; + SHAPE_TYPE["SMILEY_FACE"] = "smileyFace"; + SHAPE_TYPE["SNIP_1_RECTANGLE"] = "snip1Rect"; + SHAPE_TYPE["SNIP_2_DIAG_RECTANGLE"] = "snip2DiagRect"; + SHAPE_TYPE["SNIP_2_SAME_RECTANGLE"] = "snip2SameRect"; + SHAPE_TYPE["SNIP_ROUND_RECTANGLE"] = "snipRoundRect"; + SHAPE_TYPE["SQUARE_TABS"] = "squareTabs"; + SHAPE_TYPE["STAR_10_POINT"] = "star10"; + SHAPE_TYPE["STAR_12_POINT"] = "star12"; + SHAPE_TYPE["STAR_16_POINT"] = "star16"; + SHAPE_TYPE["STAR_24_POINT"] = "star24"; + SHAPE_TYPE["STAR_32_POINT"] = "star32"; + SHAPE_TYPE["STAR_4_POINT"] = "star4"; + SHAPE_TYPE["STAR_5_POINT"] = "star5"; + SHAPE_TYPE["STAR_6_POINT"] = "star6"; + SHAPE_TYPE["STAR_7_POINT"] = "star7"; + SHAPE_TYPE["STAR_8_POINT"] = "star8"; + SHAPE_TYPE["STRIPED_RIGHT_ARROW"] = "stripedRightArrow"; + SHAPE_TYPE["SUN"] = "sun"; + SHAPE_TYPE["SWOOSH_ARROW"] = "swooshArrow"; + SHAPE_TYPE["TEAR"] = "teardrop"; + SHAPE_TYPE["TRAPEZOID"] = "trapezoid"; + SHAPE_TYPE["UP_ARROW"] = "upArrow"; + SHAPE_TYPE["UP_ARROW_CALLOUT"] = "upArrowCallout"; + SHAPE_TYPE["UP_DOWN_ARROW"] = "upDownArrow"; + SHAPE_TYPE["UP_DOWN_ARROW_CALLOUT"] = "upDownArrowCallout"; + SHAPE_TYPE["UP_RIBBON"] = "ribbon2"; + SHAPE_TYPE["U_TURN_ARROW"] = "uturnArrow"; + SHAPE_TYPE["VERTICAL_SCROLL"] = "verticalScroll"; + SHAPE_TYPE["WAVE"] = "wave"; +})(SHAPE_TYPE || (SHAPE_TYPE = {})); +var CHART_TYPE; +(function (CHART_TYPE) { + CHART_TYPE["AREA"] = "area"; + CHART_TYPE["BAR"] = "bar"; + CHART_TYPE["BAR3D"] = "bar3D"; + CHART_TYPE["BUBBLE"] = "bubble"; + CHART_TYPE["DOUGHNUT"] = "doughnut"; + CHART_TYPE["LINE"] = "line"; + CHART_TYPE["PIE"] = "pie"; + CHART_TYPE["RADAR"] = "radar"; + CHART_TYPE["SCATTER"] = "scatter"; +})(CHART_TYPE || (CHART_TYPE = {})); +var SCHEME_COLOR_NAMES; +(function (SCHEME_COLOR_NAMES) { + SCHEME_COLOR_NAMES["TEXT1"] = "tx1"; + SCHEME_COLOR_NAMES["TEXT2"] = "tx2"; + SCHEME_COLOR_NAMES["BACKGROUND1"] = "bg1"; + SCHEME_COLOR_NAMES["BACKGROUND2"] = "bg2"; + SCHEME_COLOR_NAMES["ACCENT1"] = "accent1"; + SCHEME_COLOR_NAMES["ACCENT2"] = "accent2"; + SCHEME_COLOR_NAMES["ACCENT3"] = "accent3"; + SCHEME_COLOR_NAMES["ACCENT4"] = "accent4"; + SCHEME_COLOR_NAMES["ACCENT5"] = "accent5"; + SCHEME_COLOR_NAMES["ACCENT6"] = "accent6"; +})(SCHEME_COLOR_NAMES || (SCHEME_COLOR_NAMES = {})); +var MASTER_OBJECTS; +(function (MASTER_OBJECTS) { + MASTER_OBJECTS["chart"] = "chart"; + MASTER_OBJECTS["image"] = "image"; + MASTER_OBJECTS["line"] = "line"; + MASTER_OBJECTS["rect"] = "rect"; + MASTER_OBJECTS["text"] = "text"; + MASTER_OBJECTS["placeholder"] = "placeholder"; +})(MASTER_OBJECTS || (MASTER_OBJECTS = {})); +var SLIDE_OBJECT_TYPES; +(function (SLIDE_OBJECT_TYPES) { + SLIDE_OBJECT_TYPES["chart"] = "chart"; + SLIDE_OBJECT_TYPES["hyperlink"] = "hyperlink"; + SLIDE_OBJECT_TYPES["image"] = "image"; + SLIDE_OBJECT_TYPES["media"] = "media"; + SLIDE_OBJECT_TYPES["online"] = "online"; + SLIDE_OBJECT_TYPES["placeholder"] = "placeholder"; + SLIDE_OBJECT_TYPES["table"] = "table"; + SLIDE_OBJECT_TYPES["tablecell"] = "tablecell"; + SLIDE_OBJECT_TYPES["text"] = "text"; + SLIDE_OBJECT_TYPES["notes"] = "notes"; +})(SLIDE_OBJECT_TYPES || (SLIDE_OBJECT_TYPES = {})); +var PLACEHOLDER_TYPES; +(function (PLACEHOLDER_TYPES) { + PLACEHOLDER_TYPES["title"] = "title"; + PLACEHOLDER_TYPES["body"] = "body"; + PLACEHOLDER_TYPES["image"] = "pic"; + PLACEHOLDER_TYPES["chart"] = "chart"; + PLACEHOLDER_TYPES["table"] = "tbl"; + PLACEHOLDER_TYPES["media"] = "media"; +})(PLACEHOLDER_TYPES || (PLACEHOLDER_TYPES = {})); +/** + * NOTE: 20170304: BULLET_TYPES: Only default is used so far. I'd like to combine the two pieces of code that use these before implementing these as options + * Since we close

within the text object bullets, its slightly more difficult than combining into a func and calling to get the paraProp + * and i'm not sure if anyone will even use these... so, skipping for now. + */ +var BULLET_TYPES; +(function (BULLET_TYPES) { + BULLET_TYPES["DEFAULT"] = "•"; + BULLET_TYPES["CHECK"] = "✓"; + BULLET_TYPES["STAR"] = "★"; + BULLET_TYPES["TRIANGLE"] = "▶"; +})(BULLET_TYPES || (BULLET_TYPES = {})); +// IMAGES (base64) +var IMG_BROKEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAB3CAYAAAD1oOVhAAAGAUlEQVR4Xu2dT0xcRRzHf7tAYSsc0EBSIq2xEg8mtTGebVzEqOVIolz0siRE4gGTStqKwdpWsXoyGhMuyAVJOHBgqyvLNgonDkabeCBYW/8kTUr0wsJC+Wfm0bfuvn37Znbem9mR9303mJnf/Pb7ed95M7PDI5JIJPYJV5EC7e3t1N/fT62trdqViQCIu+bVgpIHEo/Hqbe3V/sdYVKHyWSSZmZm8ilVA0oeyNjYmEnaVC2Xvr6+qg5fAOJAz4DU1dURGzFSqZRVqtMpAFIGyMjICC0vL9PExIRWKADiAYTNshYWFrRCARAOEFZcCKWtrY0GBgaUTYkBRACIE4rKZwqACALR5RQAqQCIDqcASIVAVDsFQCSAqHQKgEgCUeUUAPEBRIVTAMQnEBvK5OQkbW9vk991CoAEAMQJxc86BUACAhKUUwAkQCBBOAVAAgbi1ykAogCIH6cAiCIgsk4BEIVAZJwCIIqBVLqiBxANQFgXS0tLND4+zl08AogmIG5OSSQS1gGKwgtANAIRcQqAaAbCe6YASBWA2E6xDyeyDUl7+AKQMkDYYevm5mZHabA/Li4uUiaTsYLau8QA4gLE/hU7wajyYtv1hReDAiAOxQcHBymbzark4BkbQKom/X8dp9Npmpqasn4BIAYAYSnYp+4BBEAMUcCwNOCQsAKZnp62NtQOw8WmwT09PUo+ijaHsOMx7GppaaH6+nolH0Z10K2tLVpdXbW6UfV3mNqBdHd3U1NTk2rtlMRfW1uj2dlZAFGirkRQAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAGHqrm8caPzQ0WC1logbeiC7X3xJm0PvUmRzh45cuki1588FAmVn9BO6P3yF9utrqGH0MtW82S8UN9RA9v/4k7InjhcJFTs/TLVXLwmJV67S7vD7tHF5pKi46fYdosdOcOOGG8j1OcqefbFEJD9Q3GCwDhqT31HklS4A8VRgfYM2Op6k3bt/BQJl58J7lPvwg5JYNccepaMry0LPqFA7hCm39+NNyp2J0172b19QysGINj5CsRtpij57musOViH0QPJQXn6J9u7dlYJSFkbrMYolrwvDAJAC+WWdEpQz7FTgECeUCpzi6YxvvqXoM6eEhqnCSgDikEzUKUE7Aw7xuHctKB5OYU3dZlNR9syQdAaAcAYTC0pXF+39c09o2Ik+3EqxVKqiB7hbYAxZkk4pbBaEM+AQofv+wTrFwylBOQNABIGwavdfe4O2pg5elO+86l99nY58/VUF0byrYsjiSFluNlXYrOHcBar7+EogUADEQ0YRGHbzoKAASBkg2+9cpM1rV0tK2QOcXW7bLEFAARAXIF4w2DrDWoeUWaf4hQIgDiA8GPZ2iNfi0Q8UACkAIgrDbrJ385eDxaPLLrEsFAB5oG6lMPJQPLZZZKAACBGVhcG2Q+bmuLu2nk55e4jqPv1IeEoceiBeX7s2zCa5MAqdstl91vfXwaEGsv/rb5TtOFk6tWXOuJGh6KmnhO9sayrMninPx103JBtXblHkice58cINZP4Hyr5wpkgkdiChEmc4FWazLzenNKa/p0jncwDiqcD6BuWePk07t1asatZGoYQzSqA4nFJ7soNiP/+EUyfc25GI2GG53dHPrKo1g/1Cw4pIXLrzO+1c+/wg7tBbFDle/EbQcjFCPWQJCau5EoBoFpzXHYDwFNJcDiCaBed1ByA8hTSXA4hmwXndAQhPIc3lAKJZcF53AMJTSHM5gGgWnNcdgPAU0lwOIJoF53UHIDyFNJcfSiCdnZ0Ui8U0SxlMd7lcjubn561gh+Y1scFIU/0o/3sgeLO12E2k7UXKYumgFoAYdg8ACIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6ZQ4JB6PKzviYthnNy4d9h+1M5mMlVckkUjsG5dhiBMCEMPg/wuOfrZZ/RSywQAAAABJRU5ErkJggg=='; var IMG_PLAYBTN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAHCCAYAAAAXY63IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAFRdJREFUeNrs3WFz2lbagOEnkiVLxsYQsP//z9uZZmMswJIlS3k/tPb23U3TOAUM6Lpm8qkzbXM4A7p1dI4+/etf//oWAAAAB3ARETGdTo0EAACwV1VVRWIYAACAQxEgAACAAAEAAAQIAACAAAEAAAQIAACAAAEAAAQIAAAgQAAAAAQIAAAgQAAAAAQIAAAgQAAAAAECAAAgQAAAAAECAAAgQAAAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAQIAAAAACBAAAQIAAAAACBAAAQIAAAAACBAAAQIAAAAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAIAAAQAAECAAAIAAAQAAECAAAIAAAQAABAgAAIAAAQAABAgAAIAAAQAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAAAAQIAACBAAAAAAQIAACBAAAAAAQIAACBAAAAAAQIAAAgQAAAAAQIAAAgQAAAAAQIAAAgQAABAgAAAAAgQAABAgAAAAAgQAABAgAAAAAIEAABAgAAAAAIEAABAgAAAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAQIAAAgAABAAAQIAAAgAABAAAQIAAAgAABAAAQIAAAgAABAAAECAAAgAABAAAECAAAgAABAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAAABAgAAIEAAAAABAgAAIEAAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAAAAgQAAECAAAAAAgQAAECAAAAAAgQAAECAAAAAAgQAABAgAAAAAgQAABAgAAAAAgQAABAgAACAAAEAABAgAACAAAEAABAgAACAAAEAAAQIAACAAAEAAAQIAACAAAEAAAQIAAAgQAAAAPbnwhAA8CuGYYiXl5fv/7hcXESSuMcFgAAB4G90XRffvn2L5+fniIho2zYiIvq+j77vf+nfmaZppGkaERF5nkdExOXlZXz69CmyLDPoAAIEgDFo2zaen5/j5eUl+r6Pruv28t/5c7y8Bs1ms3n751mWRZqmcXFxEZeXl2+RAoAAAeBEDcMQbdu+/dlXbPyKruve/n9ewyTLssjz/O2PR7oABAgAR67v+2iaJpqmeVt5OBWvUbLdbiPi90e3iqKIoijeHucCQIAAcATRsd1uo2maX96zcYxeV26qqoo0TaMoiphMJmIEQIAAcGjDMERd11HX9VE9WrXvyNput5FlWZRlGWVZekwLQIAAsE+vjyjVdT3qMei6LqqqirIsYzKZOFkLQIAAsEt1XcfT09PJ7es4xLjUdR15nsfV1VWUZWlQAAQIAP/kAnu9Xp/V3o59eN0vsl6v4+bmRogACBAAhMf+9X0fq9VKiAAIEAB+RtM0UVWV8NhhiEyn0yiKwqAACBAAXr1uqrbHY/ch8vDwEHmex3Q6tVkdQIAAjNswDLHZbN5evsd+tG0bX758iclkEtfX147vBRAgAOPTNE08Pj7GMAwG40BejzC+vb31WBaAAAEYh9f9CR63+hjDMLw9ljWfz62GAOyZb1mAD9Q0TXz58kV8HIG2beO3336LpmkMBsAeWQEB+ADDMERVVaN+g/mxfi4PDw9RlmVMp1OrIQACBOD0dV0XDw8PjtY9YnVdR9u2MZ/PnZQFsGNu7QAc+ML269ev4uME9H0fX79+tUoFsGNWQAAOZLVauZg9McMwxGq1iufn55jNZgYEQIAAnMZF7MPDg43mJ6yu6+j73ilZADvgWxRgj7qui69fv4qPM9C2rcfnAAQIwPHHR9d1BuOMPtMvX774TAEECMBxxoe3mp+fYRiEJYAAATgeryddiY/zjxAvLQQQIAAfHh+r1Up8jCRCHh4enGwGIEAAPkbTNLFarQzEyKxWKyshAAIE4LC6rovHx0cDMVKPj4/2hAAIEIDDxYc9H+NmYzqAAAEQH4gQAAECcF4XnI+Pj+IDcwJAgADs38PDg7vd/I+u6+Lh4cFAAAgQgN1ZrVbRtq2B4LvatnUiGoAAAdiNuq69+wHzBECAAOxf13VRVZWB4KdUVeUxPQABAvBrXt98bYMx5gyAAAHYu6qqou97A8G79H1v1QxAgAC8T9M0nufnl9V1HU3TGAgAAQLw9/q+j8fHx5P6f86yLMqy9OEdEe8HARAgAD9ltVqd3IXjp0+fYjabxWKxiDzPfYhH4HU/CIAAAeAvNU1z0u/7yPM8FotFzGazSBJf+R+tbVuPYgECxBAAfN8wDCf36NVfKcsy7u7u4vr62gf7wTyKBQgQAL5rs9mc1YVikiRxc3MT9/f3URSFD/gDw3az2RgIQIAA8B9d18V2uz3Lv1uapjGfz2OxWESWZT7sD7Ddbr2gEBAgAPzHGN7bkOd5LJfLmE6n9oeYYwACBOCjnPrG8/eaTCZxd3cXk8nEh39ANqQDAgSAiBjnnekkSWI6ncb9/b1je801AAECcCh1XUff96P9+6dpGovFIhaLRaRpakLsWd/3Ude1gQAECMBYrddrgxC/7w+5v7+P6+tr+0PMOQABArAPY1/9+J6bm5u4u7uLsiwNxp5YBQEECMBIuRP9Fz8USRKz2SyWy6X9IeYegAAB2AWrH38vy7JYLBYxn8/tD9kxqyCAAAEYmaenJ4Pwk4qiiOVyaX+IOQggQAB+Rdd1o3rvx05+PJIkbm5uYrlc2h+yI23bejs6IEAAxmC73RqEX5Smacxms1gsFpFlmQExFwEECMCPDMPg2fsdyPM8lstlzGYzj2X9A3VdxzAMBgIQIADnfMHH7pRlGXd3d3F9fW0wzEkAAQLgYu8APyx/7A+5v7+PoigMiDkJIEAAIn4/+tSm3/1J0zTm83ksFgvH9r5D13WOhAYECMA5suH3MPI8j/v7+5hOp/aHmJsAAgQYr6ZpDMIBTSaTuLu7i8lkYjDMTUCAAIxL3/cec/mIH50kiel0Gvf395HnuQExPwEBAjAO7jB/rDRNY7FYxHw+tz/EHAUECICLOw6jKIq4v7+P6+tr+0PMUUCAAJynYRiibVsDcURubm7i7u4uyrI0GH9o29ZLCQEBAnAuF3Yc4Q9SksRsNovlcml/iLkKCBAAF3UcRpZlsVgsYjabjX5/iLkKnKMLQwC4qOMYlWUZl5eXsd1u4+npaZSPI5mrwDmyAgKMjrefn9CPVJLEzc1NLJfLUe4PMVcBAQJw4txRPk1pmsZsNovFYhFZlpmzAAIE4DQ8Pz8bhBOW53ksl8uYzWajObbXnAXOjT0gwKi8vLwYhDPw5/0hm83GnAU4IVZAgFHp+94gnMsP2B/7Q+7v78/62F5zFhAgACfMpt7zk6ZpLBaLWCwWZ3lsrzkLCBAAF3IcoTzP4/7+PqbT6dntDzF3AQECcIK+fftmEEZgMpnE3d1dTCYTcxdAgAB8HKcJjejHLUliOp3Gcrk8i/0h5i4gQADgBGRZFovFIubz+VnuDwE4RY7hBUbDC93GqyiKKIoi1ut1PD09xTAM5i7AB7ECAsBo3NzcxN3dXZRlaTAABAjAfnmfAhG/7w+ZzWaxWCxOZn+IuQsIEAABwonL8zwWi0XMZrOj3x9i7gLnxB4QAEatLMu4vLyM7XZ7kvtDAE6NFRAA/BgmSdzc3MRyuYyiKAwIgAAB+Gfc1eZnpGka8/k8FotFZFlmDgMIEIBf8/LyYhD4aXmex3K5jNlsFkmSmMMAO2QPCAD8hT/vD9lsNgYEYAesgADAj34o/9gfcn9/fzLH9gIIEAAAgPAIFgD80DAMsdlsYrvdGgwAAQIA+/O698MJVAACBOB9X3YXvu74eW3bRlVV0XWdOQwgQADe71iOUuW49X0fVVVF0zTmMIAAAYD9GIbBUbsAAgQA9q+u61iv19H3vcEAECAAu5OmqYtM3rRtG+v1Otq2PYm5CyBAAAQIJ6jv+1iv11HX9UnNXQABAgAnZr1ex9PTk2N1AQQIwP7leX4Sj9uwe03TRFVVJ7sClue5DxEQIABw7Lqui6qqhCeAAAE4vMvLS8esjsQwDLHZbGK73Z7N3AUQIAAn5tOnTwZhBF7f53FO+zzMXUCAAJygLMsMwhlr2zZWq9VZnnRm7gICBOCEL+S6rjMQZ6Tv+1itVme7z0N8AAIE4ISlaSpAzsQwDG+PW537nAUQIACn+qV34WvvHNR1HVVVjeJ9HuYsIEAATpiTsE5b27ZRVdWoVrGcgAUIEIBT/tJzN/kk9X0fVVVF0zSj+7t7CSEgQABOWJIkNqKfkNd9Hk9PT6N43Oq/2YAOCBCAM5DnuQA5AXVdx3q9Pstjdd8zVwEECMAZXNSdyxuyz1HXdVFV1dkeqytAAAEC4KKOIzAMQ1RVFXVdGwxzFRAgAOcjSZLI89wd9iOyXq9Hu8/jR/GRJImBAAQIwDkoikKAHIGmaaKqqlHv8/jRHAUQIABndHFXVZWB+CB938dqtRKBAgQQIADjkKZppGnqzvuBDcMQm83GIQA/OT8BBAjAGSmKwoXwAW2329hsNvZ5/OTcBBAgAGdmMpkIkANo2zZWq5XVpnfOTQABAnBm0jT1VvQ96vs+qqqKpmkMxjtkWebxK0CAAJyrsiwFyI4Nw/D2uBW/NicBBAjAGV/sOQ1rd+q6jqqq7PMQIAACBOB7kiSJsiy9ffsfats2qqqymrSD+PDyQUCAAJy5q6srAfKL+r6P9Xpt/HY4FwEECMCZy/M88jz3Urx3eN3n8fT05HGrHc9DAAECMAJXV1cC5CfVdR3r9dqxunuYgwACBGAkyrJ0Uf03uq6LqqqE2h6kaWrzOSBAAMbm5uYmVquVgfgvwzBEVVX2eex57gEIEICRsQryv9brtX0ee2b1AxAgACNmFeR3bdvGarUSYweacwACBGCkxr4K0vd9rFYr+zwOxOoHIEAAGOUqyDAMsdlsYrvdmgAHnmsAAgRg5MqyjKenp9GsAmy329hsNvZ5HFie51Y/gFFKDAHA/xrDnem2bePLly9RVZX4MMcADsYKCMB3vN6dPsejZ/u+j6qqomkaH/QHKcvSW88BAQLA/zedTuP5+flsVgeGYXh73IqPkyRJTKdTAwGM93vQEAD89YXi7e3tWfxd6rqO3377TXwcgdvb20gSP7/AeFkBAfiBoigiz/OT3ZDetm2s12vH6h6JPM+jKAoDAYyaWzAAf2M2m53cHetv377FarWKf//73+LjWH5wkyRms5mBAHwfGgKAH0vT9OQexeq67iw30J+y29vbSNPUQAACxBAA/L2iKDw6g/kDIEAADscdbH7FKa6gAQgQgGP4wkySmM/nBoJ3mc/nTr0CECAAvybLMhuJ+Wmz2SyyLDMQAAIE4NeVZRllWRoIzBMAAQJwGO5s8yNWygAECMDOff78WYTw3fj4/PmzgQAQIAA7/gJNkri9vbXBGHMCQIAAHMbr3W4XnCRJYlUMQIAAiBDEB4AAATjDCJlOpwZipKbTqfgAECAAh1WWpZOPRmg2mzluF+AdLgwBwG4jJCKiqqoYhsGAnLEkSWI6nYoPgPd+fxoCgN1HiD0h5x8fnz9/Fh8AAgTgONiYfv7xYc8HgAABOMoIcaHqMwVAgAC4YOVd8jz3WQIIEIAT+KJNklgul/YLnLCyLGOxWHikDkCAAJyO2WzmmF6fG8DoOYYX4IDKsoyLi4t4eHiIvu8NyBFL0zTm87lHrgB2zAoIwIFlWRbL5TKKojAYR6ooilgul+IDYA+sgAB8gCRJYj6fR9M08fj46KWFR/S53N7eikMAAQJwnoqiiCzLYrVaRdu2BuQD5Xkes9ks0jQ1GAACBOB8pWkai8XCasgHseoBIEAARqkoisjzPKqqirquDcgBlGUZ0+nU8boAAgRgnJIkidlsFldXV7Ferz2WtSd5nsd0OrXJHECAAPB6gbxYLKKu61iv147s3ZE0TWM6nXrcCkCAAPA9ZVlGWZZCZAfhcXNz4230AAIEACEiPAAECABHHyJPT0/2iPyFPM/j6upKeAAIEAB2GSJt28bT05NTs/40LpPJxOZyAAECwD7kef52olNd11HXdXRdN6oxyLLsLcgcpwsgQAA4gCRJYjKZxGQyib7vY7vdRtM0Z7tXJE3TKIoiJpOJN5cDCBAAPvrifDqdxnQ6jb7vo2maaJrm5PeL5HkeRVFEURSiA0CAAHCsMfK6MjIMQ7Rt+/bn2B/VyrLs7RGzPM89XgUgQAA4JUmSvK0gvGrbNp6fn+Pl5SX6vv+wKMmyLNI0jYuLi7i8vIw8z31gAAIEgHPzurrwZ13Xxbdv3+L5+fktUiIi+r7/5T0laZq+PTb1+t+7vLyMT58+ObEKQIAAMGavQfB3qxDDMMTLy8v3f1wuLjwyBYAAAWB3kiTxqBQA7//9MAQAAIAAAQAABAgAAIAAAQAABAgAAIAAAQAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAAAAQIAACBAAAAAAQIAACBAAAAAAQIAAAgQAAAAAQIAAAgQAAAAAQIAAAgQAABAgAAAAAgQAABAgAAAAAgQAABAgAAAAAIEAABAgAAAAAIEAABAgAAAAAIEAABAgAAAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAQIAAAgAABAAAQIAAAgAABAAAQIAAAgAABAAAECAAAgAABAAAECAAAgAABAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAAABAgAAIEAAAAABAgAAIEAAAAABAgAAIEAAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAAAAgQAAECAAAAAAgQAAECAAAAAAgQAABAgAAAAAgQAABAgAAAAAgQAABAgAACAAAEAABAgAACAAAEAABAgAACAAAEAAASIIQAAAAQIAAAgQAAAAAQIAAAgQAAAAAQIAAAgQAAAAAECAAAgQAAAAAECAAAgQAAAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAQIAAAAACBAAAQIAAAAACBAAAQIAAAAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAIAAAQAAECAAAIAAAQAAECAAAIAAAQAABAgAAIAAAQAABAgAAIAAAQAABAgAACBAAAAAdu0iIqKqKiMBAADs3f8NAFFjCf5mB+leAAAAAElFTkSuQmCC'; -/** - * PptxGenJS: Utility Methods - */ -/** - * Translates any type of `x`/`y`/`w`/`h` prop to EMU - * - guaranteed to return a result regardless of undefined, null, etc. (0) - * - {number} - 12800 (EMU) - * - {number} - 0.5 (inches) - * - {string} - "75%" - * @param {number|string} size - numeric ("5.5") or percentage ("90%") - * @param {'X' | 'Y'} xyDir - direction - * @param {PresLayout} layout - presentation layout - * @returns {number} calculated size - */ -function getSmartParseNumber(size, xyDir, layout) { - // FIRST: Convert string numeric value if reqd - if (typeof size === 'string' && !isNaN(Number(size))) - size = Number(size); - // CASE 1: Number in inches - // Assume any number less than 100 is inches - if (typeof size === 'number' && size < 100) - return inch2Emu(size); - // CASE 2: Number is already converted to something other than inches - // Assume any number greater than 100 sure isnt inches! Just return it (assume value is EMU already). - if (typeof size === 'number' && size >= 100) - return size; - // CASE 3: Percentage (ex: '50%') - if (typeof size === 'string' && size.indexOf('%') > -1) { - if (xyDir && xyDir === 'X') - return Math.round((parseFloat(size) / 100) * layout.width); - if (xyDir && xyDir === 'Y') - return Math.round((parseFloat(size) / 100) * layout.height); - // Default: Assume width (x/cx) - return Math.round((parseFloat(size) / 100) * layout.width); - } - // LAST: Default value - return 0; -} -/** - * Basic UUID Generator Adapted - * @link https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript#answer-2117523 - * @param {string} uuidFormat - UUID format - * @returns {string} UUID - */ -function getUuid(uuidFormat) { - return uuidFormat.replace(/[xy]/g, function (c) { - var r = (Math.random() * 16) | 0, v = c === 'x' ? r : (r & 0x3) | 0x8; - return v.toString(16); - }); -} -/** - * TODO: What does this method do again?? - * shallow mix, returns new object - */ -function getMix(o1, o2, etc) { - var objMix = {}; - var _loop_1 = function (i) { - var oN = arguments_1[i]; - if (oN) - Object.keys(oN).forEach(function (key) { - objMix[key] = oN[key]; - }); - }; - var arguments_1 = arguments; - for (var i = 0; i <= arguments.length; i++) { - _loop_1(i); - } - return objMix; -} -/** - * Replace special XML characters with HTML-encoded strings - * @param {string} xml - XML string to encode - * @returns {string} escaped XML - */ -function encodeXmlEntities(xml) { - // NOTE: Dont use short-circuit eval here as value c/b "0" (zero) etc.! - if (typeof xml === 'undefined' || xml == null) - return ''; - return xml.toString().replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"').replace(/'/g, '''); -} -/** - * Convert inches into EMU - * @param {number|string} inches - as string or number - * @returns {number} EMU value - */ -function inch2Emu(inches) { - // NOTE: Provide Caller Safety: Numbers may get conv<->conv during flight, so be kind and do some simple checks to ensure inches were passed - // Any value over 100 damn sure isnt inches, so lets assume its in EMU already, therefore, just return the same value - if (typeof inches === 'number' && inches > 100) - return inches; - if (typeof inches === 'string') - inches = Number(inches.replace(/in*/gi, '')); - return Math.round(EMU * inches); -} -/** - * Convert `pt` into points (using `ONEPT`) - * - * @param {number|string} pt - * @returns {number} value in points (`ONEPT`) - */ -function valToPts(pt) { - var points = Number(pt) || 0; - return isNaN(points) ? 0 : Math.round(points * ONEPT); -} -/** - * Convert degrees (0..360) to PowerPoint `rot` value - * - * @param {number} d - degrees - * @returns {number} rot - value - */ -function convertRotationDegrees(d) { - d = d || 0; - return Math.round((d > 360 ? d - 360 : d) * 60000); -} -/** - * Converts component value to hex value - * @param {number} c - component color - * @returns {string} hex string - */ -function componentToHex(c) { - var hex = c.toString(16); - return hex.length === 1 ? '0' + hex : hex; -} -/** - * Converts RGB colors from css selectors to Hex for Presentation colors - * @param {number} r - red value - * @param {number} g - green value - * @param {number} b - blue value - * @returns {string} XML string - */ -function rgbToHex(r, g, b) { - return (componentToHex(r) + componentToHex(g) + componentToHex(b)).toUpperCase(); -} -/** TODO: FUTURE: TODO-4.0: - * @date 2022-04-10 - * @tldr this s/b a private method with all current calls switched to `genXmlColorSelection()` - * @desc lots of code calls this method - * @example [gen-charts.tx] `strXml += '' + createColorElement(seriesColor, ``) + ''` - * Thi sis wrong. We s/b calling `genXmlColorSelection()` instead as it returns `BLAH`!! - */ -/** - * Create either a `a:schemeClr` - (scheme color) or `a:srgbClr` (hexa representation). - * @param {string|SCHEME_COLORS} colorStr - hexa representation (eg. "FFFF00") or a scheme color constant (eg. pptx.SchemeColor.ACCENT1) - * @param {string} innerElements - additional elements that adjust the color and are enclosed by the color element - * @returns {string} XML string - */ -function createColorElement(colorStr, innerElements) { - var colorVal = (colorStr || '').replace('#', ''); - var isHexaRgb = REGEX_HEX_COLOR.test(colorVal); - if (!isHexaRgb && - colorVal !== SchemeColor.background1 && - colorVal !== SchemeColor.background2 && - colorVal !== SchemeColor.text1 && - colorVal !== SchemeColor.text2 && - colorVal !== SchemeColor.accent1 && - colorVal !== SchemeColor.accent2 && - colorVal !== SchemeColor.accent3 && - colorVal !== SchemeColor.accent4 && - colorVal !== SchemeColor.accent5 && - colorVal !== SchemeColor.accent6) { - console.warn("\"".concat(colorVal, "\" is not a valid scheme color or hexa RGB! \"").concat(DEF_FONT_COLOR, "\" is used as a fallback. Pass 6-digit RGB or 'pptx.SchemeColor' values")); - colorVal = DEF_FONT_COLOR; - } - var tagName = isHexaRgb ? 'srgbClr' : 'schemeClr'; - var colorAttr = 'val="' + (isHexaRgb ? colorVal.toUpperCase() : colorVal) + '"'; - return innerElements ? "").concat(innerElements, "") : ""); -} -/** - * Creates `a:glow` element - * @param {TextGlowProps} options glow properties - * @param {TextGlowProps} defaults defaults for unspecified properties in `opts` - * @see http://officeopenxml.com/drwSp-effects.php - * { size: 8, color: 'FFFFFF', opacity: 0.75 }; - */ -function createGlowElement(options, defaults) { - var strXml = '', opts = getMix(defaults, options), size = Math.round(opts['size'] * ONEPT), color = opts['color'], opacity = Math.round(opts['opacity'] * 100000); - strXml += ""); - strXml += createColorElement(color, "")); - strXml += ""; - return strXml; -} -/** - * Create color selection - * @param {Color | ShapeFillProps | ShapeLineProps} props fill props - * @returns XML string - */ -function genXmlColorSelection(props) { - var fillType = 'solid'; - var colorVal = ''; - var internalElements = ''; - var outText = ''; - if (props) { - if (typeof props === 'string') - colorVal = props; - else { - if (props.type) - fillType = props.type; - if (props.color) - colorVal = props.color; - if (props.alpha) - internalElements += ""); // DEPRECATED: @deprecated v3.3.0 - if (props.transparency) - internalElements += ""); - } - switch (fillType) { - case 'solid': - outText += "".concat(createColorElement(colorVal, internalElements), ""); - break; - default: // @note need a statement as having only "break" is removed by rollup, then tiggers "no-default" js-linter - outText += ''; - break; - } - } - return outText; -} -/** - * Get a new rel ID (rId) for charts, media, etc. - * @param {PresSlide} target - the slide to use - * @returns {number} count of all current rels plus 1 for the caller to use as its "rId" - */ -function getNewRelId(target) { - return target._rels.length + target._relsChart.length + target._relsMedia.length + 1; +/** + * PptxGenJS: Utility Methods + */ +/** + * Translates any type of `x`/`y`/`w`/`h` prop to EMU + * - guaranteed to return a result regardless of undefined, null, etc. (0) + * - {number} - 12800 (EMU) + * - {number} - 0.5 (inches) + * - {string} - "75%" + * @param {number|string} size - numeric ("5.5") or percentage ("90%") + * @param {'X' | 'Y'} xyDir - direction + * @param {PresLayout} layout - presentation layout + * @returns {number} calculated size + */ +function getSmartParseNumber(size, xyDir, layout) { + // FIRST: Convert string numeric value if reqd + if (typeof size === 'string' && !isNaN(Number(size))) + size = Number(size); + // CASE 1: Number in inches + // Assume any number less than 100 is inches + if (typeof size === 'number' && size < 100) + return inch2Emu(size); + // CASE 2: Number is already converted to something other than inches + // Assume any number greater than 100 sure isnt inches! Just return it (assume value is EMU already). + if (typeof size === 'number' && size >= 100) + return size; + // CASE 3: Percentage (ex: '50%') + if (typeof size === 'string' && size.indexOf('%') > -1) { + if (xyDir && xyDir === 'X') + return Math.round((parseFloat(size) / 100) * layout.width); + if (xyDir && xyDir === 'Y') + return Math.round((parseFloat(size) / 100) * layout.height); + // Default: Assume width (x/cx) + return Math.round((parseFloat(size) / 100) * layout.width); + } + // LAST: Default value + return 0; +} +/** + * Basic UUID Generator Adapted + * @link https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript#answer-2117523 + * @param {string} uuidFormat - UUID format + * @returns {string} UUID + */ +function getUuid(uuidFormat) { + return uuidFormat.replace(/[xy]/g, function (c) { + var r = (Math.random() * 16) | 0, v = c === 'x' ? r : (r & 0x3) | 0x8; + return v.toString(16); + }); +} +/** + * TODO: What does this method do again?? + * shallow mix, returns new object + */ +function getMix(o1, o2, etc) { + var objMix = {}; + var _loop_1 = function (i) { + var oN = arguments_1[i]; + if (oN) + Object.keys(oN).forEach(function (key) { + objMix[key] = oN[key]; + }); + }; + var arguments_1 = arguments; + for (var i = 0; i <= arguments.length; i++) { + _loop_1(i); + } + return objMix; +} +/** + * Replace special XML characters with HTML-encoded strings + * @param {string} xml - XML string to encode + * @returns {string} escaped XML + */ +function encodeXmlEntities(xml) { + // NOTE: Dont use short-circuit eval here as value c/b "0" (zero) etc.! + if (typeof xml === 'undefined' || xml == null) + return ''; + return xml.toString().replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"').replace(/'/g, '''); +} +/** + * Convert inches into EMU + * @param {number|string} inches - as string or number + * @returns {number} EMU value + */ +function inch2Emu(inches) { + // NOTE: Provide Caller Safety: Numbers may get conv<->conv during flight, so be kind and do some simple checks to ensure inches were passed + // Any value over 100 damn sure isnt inches, so lets assume its in EMU already, therefore, just return the same value + if (typeof inches === 'number' && inches > 100) + return inches; + if (typeof inches === 'string') + inches = Number(inches.replace(/in*/gi, '')); + return Math.round(EMU * inches); +} +/** + * Convert `pt` into points (using `ONEPT`) + * + * @param {number|string} pt + * @returns {number} value in points (`ONEPT`) + */ +function valToPts(pt) { + var points = Number(pt) || 0; + return isNaN(points) ? 0 : Math.round(points * ONEPT); +} +/** + * Convert degrees (0..360) to PowerPoint `rot` value + * + * @param {number} d - degrees + * @returns {number} rot - value + */ +function convertRotationDegrees(d) { + d = d || 0; + return Math.round((d > 360 ? d - 360 : d) * 60000); +} +/** + * Converts component value to hex value + * @param {number} c - component color + * @returns {string} hex string + */ +function componentToHex(c) { + var hex = c.toString(16); + return hex.length === 1 ? '0' + hex : hex; +} +/** + * Converts RGB colors from css selectors to Hex for Presentation colors + * @param {number} r - red value + * @param {number} g - green value + * @param {number} b - blue value + * @returns {string} XML string + */ +function rgbToHex(r, g, b) { + return (componentToHex(r) + componentToHex(g) + componentToHex(b)).toUpperCase(); +} +/** TODO: FUTURE: TODO-4.0: + * @date 2022-04-10 + * @tldr this s/b a private method with all current calls switched to `genXmlColorSelection()` + * @desc lots of code calls this method + * @example [gen-charts.tx] `strXml += '' + createColorElement(seriesColor, ``) + ''` + * Thi sis wrong. We s/b calling `genXmlColorSelection()` instead as it returns `BLAH`!! + */ +/** + * Create either a `a:schemeClr` - (scheme color) or `a:srgbClr` (hexa representation). + * @param {string|SCHEME_COLORS} colorStr - hexa representation (eg. "FFFF00") or a scheme color constant (eg. pptx.SchemeColor.ACCENT1) + * @param {string} innerElements - additional elements that adjust the color and are enclosed by the color element + * @returns {string} XML string + */ +function createColorElement(colorStr, innerElements) { + var colorVal = (colorStr || '').replace('#', ''); + var isHexaRgb = REGEX_HEX_COLOR.test(colorVal); + if (!isHexaRgb && + colorVal !== SchemeColor.background1 && + colorVal !== SchemeColor.background2 && + colorVal !== SchemeColor.text1 && + colorVal !== SchemeColor.text2 && + colorVal !== SchemeColor.accent1 && + colorVal !== SchemeColor.accent2 && + colorVal !== SchemeColor.accent3 && + colorVal !== SchemeColor.accent4 && + colorVal !== SchemeColor.accent5 && + colorVal !== SchemeColor.accent6) { + console.warn("\"".concat(colorVal, "\" is not a valid scheme color or hexa RGB! \"").concat(DEF_FONT_COLOR, "\" is used as a fallback. Pass 6-digit RGB or 'pptx.SchemeColor' values")); + colorVal = DEF_FONT_COLOR; + } + var tagName = isHexaRgb ? 'srgbClr' : 'schemeClr'; + var colorAttr = 'val="' + (isHexaRgb ? colorVal.toUpperCase() : colorVal) + '"'; + return innerElements ? "").concat(innerElements, "") : ""); +} +/** + * Creates `a:glow` element + * @param {TextGlowProps} options glow properties + * @param {TextGlowProps} defaults defaults for unspecified properties in `opts` + * @see http://officeopenxml.com/drwSp-effects.php + * { size: 8, color: 'FFFFFF', opacity: 0.75 }; + */ +function createGlowElement(options, defaults) { + var strXml = '', opts = getMix(defaults, options), size = Math.round(opts['size'] * ONEPT), color = opts['color'], opacity = Math.round(opts['opacity'] * 100000); + strXml += ""); + strXml += createColorElement(color, "")); + strXml += ""; + return strXml; +} +/** + * Create color selection + * @param {Color | ShapeFillProps | ShapeLineProps} props fill props + * @returns XML string + */ +function genXmlColorSelection(props) { + var fillType = 'solid'; + var colorVal = ''; + var internalElements = ''; + var outText = ''; + if (props) { + if (typeof props === 'string') + colorVal = props; + else { + if (props.type) + fillType = props.type; + if (props.color) + colorVal = props.color; + if (props.alpha) + internalElements += ""); // DEPRECATED: @deprecated v3.3.0 + if (props.transparency) + internalElements += ""); + } + switch (fillType) { + case 'solid': + outText += "".concat(createColorElement(colorVal, internalElements), ""); + break; + default: // @note need a statement as having only "break" is removed by rollup, then tiggers "no-default" js-linter + outText += ''; + break; + } + } + return outText; +} +/** + * Get a new rel ID (rId) for charts, media, etc. + * @param {PresSlide} target - the slide to use + * @returns {number} count of all current rels plus 1 for the caller to use as its "rId" + */ +function getNewRelId(target) { + return target._rels.length + target._relsChart.length + target._relsMedia.length + 1; } -/** - * PptxGenJS: Table Generation - */ -/** - * Break cell text into lines based upon table column width (e.g.: Magic Happens Here(tm)) - * @param {TableCell} cell - table cell - * @param {number} colWidth - table column width (inches) - * @return {TableRow[]} - cell's text objects grouped into lines - */ -function parseTextToLines(cell, colWidth, verbose) { - // FYI: CPL = Width / (font-size / font-constant) - // FYI: CHAR:2.3, colWidth:10, fontSize:12 => CPL=138, (actual chars per line in PPT)=145 [14.5 CPI] - // FYI: CHAR:2.3, colWidth:7 , fontSize:12 => CPL= 97, (actual chars per line in PPT)=100 [14.3 CPI] - // FYI: CHAR:2.3, colWidth:9 , fontSize:16 => CPL= 96, (actual chars per line in PPT)=84 [ 9.3 CPI] - var FOCO = 2.3 + (cell.options && cell.options.autoPageCharWeight ? cell.options.autoPageCharWeight : 0); // Character Constant - var CPL = Math.floor((colWidth / ONEPT) * EMU) / ((cell.options && cell.options.fontSize ? cell.options.fontSize : DEF_FONT_SIZE) / FOCO); // Chars-Per-Line - var parsedLines = []; - var inputCells = []; - var inputLines1 = []; - var inputLines2 = []; - /* - if (cell.options && cell.options.autoPageCharWeight) { - let CHR1 = 2.3 + (cell.options && cell.options.autoPageCharWeight ? cell.options.autoPageCharWeight : 0) // Character Constant - let CPL1 = ((colWidth / ONEPT) * EMU) / ((cell.options && cell.options.fontSize ? cell.options.fontSize : DEF_FONT_SIZE) / CHR1) // Chars-Per-Line - console.log(`cell.options.autoPageCharWeight: '${cell.options.autoPageCharWeight}' => CPL: ${CPL1}`) - let CHR2 = 2.3 + 0 - let CPL2 = ((colWidth / ONEPT) * EMU) / ((cell.options && cell.options.fontSize ? cell.options.fontSize : DEF_FONT_SIZE) / CHR2) // Chars-Per-Line - console.log(`cell.options.autoPageCharWeight: '0' => CPL: ${CPL2}`) - } - */ - /** - * EX INPUTS: `cell.text` - * - string....: "Account Name Column" - * - object....: { text:"Account Name Column" } - * - object[]..: [{ text:"Account Name", options:{ bold:true } }, { text:" Column" }] - * - object[]..: [{ text:"Account Name", options:{ breakLine:true } }, { text:"Input" }] - */ - /** - * EX OUTPUTS: - * - string....: [{ text:"Account Name Column" }] - * - object....: [{ text:"Account Name Column" }] - * - object[]..: [{ text:"Account Name", options:{ breakLine:true } }, { text:"Input" }] - * - object[]..: [{ text:"Account Name", options:{ breakLine:true } }, { text:"Input" }] - */ - // STEP 1: Ensure inputCells is an array of TableCells - if (cell.text && cell.text.toString().trim().length === 0) { - // Allow a single space/whitespace as cell text (user-requested feature) - inputCells.push({ _type: SLIDE_OBJECT_TYPES.tablecell, text: ' ' }); - } - else if (typeof cell.text === 'number' || typeof cell.text === 'string') { - inputCells.push({ _type: SLIDE_OBJECT_TYPES.tablecell, text: (cell.text || '').toString().trim() }); - } - else if (Array.isArray(cell.text)) { - inputCells = cell.text; - } - if (verbose) { - console.log('[1/4] inputCells'); - inputCells.forEach(function (cell, idx) { return console.log("[1/4] [".concat(idx + 1, "] cell: ").concat(JSON.stringify(cell))); }); - //console.log('...............................................\n\n') - } - // STEP 2: Group table cells into lines based on "\n" or `breakLine` prop - /** - * - EX: `[{ text:"Input Output" }, { text:"Extra" }]` == 1 line - * - EX: `[{ text:"Input" }, { text:"Output", options:{ breakLine:true } }]` == 1 line - * - EX: `[{ text:"Input\nOutput" }]` == 2 lines - * - EX: `[{ text:"Input", options:{ breakLine:true } }, { text:"Output" }]` == 2 lines - */ - var newLine = []; - inputCells.forEach(function (cell) { - // (this is always true, we just constructed them above, but we need to tell typescript b/c type is still string||Cell[]) - if (typeof cell.text === 'string') { - if (cell.text.split('\n').length > 1) { - cell.text.split('\n').forEach(function (textLine) { - newLine.push({ - _type: SLIDE_OBJECT_TYPES.tablecell, - text: textLine, - options: __assign(__assign({}, cell.options), { breakLine: true }), - }); - }); - } - else { - newLine.push({ - _type: SLIDE_OBJECT_TYPES.tablecell, - text: cell.text.trim(), - options: cell.options, - }); - } - if (cell.options && cell.options.breakLine) { - if (verbose) - console.log("inputCells: new line > ".concat(JSON.stringify(newLine))); - inputLines1.push(newLine); - newLine = []; - } - } - // Flush buffer - if (newLine.length > 0) - inputLines1.push(newLine); - }); - if (verbose) { - console.log("[2/4] inputLines1 (".concat(inputLines1.length, ")")); - inputLines1.forEach(function (line, idx) { return console.log("[2/4] [".concat(idx + 1, "] line: ").concat(JSON.stringify(line))); }); - //console.log('...............................................\n\n') - } - // STEP 3: Tokenize every text object into words (then it's really easy to assemble lines below without having to break text, add its `options`, etc.) - inputLines1.forEach(function (line) { - line.forEach(function (cell) { - var lineCells = []; - var cellTextStr = cell.text + ''; // force convert to string (compiled JS is better with this than a cast) - var lineWords = cellTextStr.split(' '); - lineWords.forEach(function (word, idx) { - var cellProps = __assign({}, cell.options); - // IMPORTANT: Handle `breakLine` prop - we cannot apply to each word - only apply to very last word! - if (cellProps && cellProps.breakLine) - cellProps.breakLine = idx + 1 === lineWords.length; - lineCells.push({ _type: SLIDE_OBJECT_TYPES.tablecell, text: word + (idx + 1 < lineWords.length ? ' ' : ''), options: cellProps }); - }); - inputLines2.push(lineCells); - }); - }); - if (verbose) { - console.log("[3/4] inputLines2 (".concat(inputLines2.length, ")")); - inputLines2.forEach(function (line) { return console.log("[3/4] line: ".concat(JSON.stringify(line))); }); - //console.log('...............................................\n\n') - } - // STEP 4: Group cells/words into lines based upon space consumed by word letters - inputLines2.forEach(function (line) { - var lineCells = []; - var strCurrLine = ''; - line.forEach(function (word) { - // A: create new line when horizontal space is exhausted - if (strCurrLine.length + word.text.length > CPL) { - //if (verbose) console.log(`STEP 4: New line added: (${strCurrLine.length} + ${word.text.length} > ${CPL})`); - parsedLines.push(lineCells); - lineCells = []; - strCurrLine = ''; - } - // B: add current word to line cells - lineCells.push(word); - // C: add current word to `strCurrLine` which we use to keep track of line's char length - strCurrLine += word.text.toString(); - }); - // Flush buffer: Only create a line when there's text to avoid empty row - if (lineCells.length > 0) - parsedLines.push(lineCells); - }); - if (verbose) { - console.log("[4/4] parsedLines (".concat(parsedLines.length, ")")); - parsedLines.forEach(function (line, idx) { return console.log("[4/4] [Line ".concat(idx + 1, "]:\n").concat(JSON.stringify(line))); }); - console.log('...............................................\n\n'); - } - // Done: - return parsedLines; -} -/** - * Takes an array of table rows and breaks into an array of slides, which contain the calculated amount of table rows that fit on that slide - * @param {TableCell[][]} tableRows - table rows - * @param {TableToSlidesProps} tableProps - table2slides properties - * @param {PresLayout} presLayout - presentation layout - * @param {SlideLayout} masterSlide - master slide - * @return {TableRowSlide[]} array of table rows - */ -function getSlidesForTableRows(tableRows, tableProps, presLayout, masterSlide) { - if (tableRows === void 0) { tableRows = []; } - if (tableProps === void 0) { tableProps = {}; } - var arrInchMargins = DEF_SLIDE_MARGIN_IN; - var emuSlideTabW = EMU * 1; - var emuSlideTabH = EMU * 1; - var emuTabCurrH = 0; - var numCols = 0; - var tableRowSlides = []; - var tablePropX = getSmartParseNumber(tableProps.x, 'X', presLayout); - var tablePropY = getSmartParseNumber(tableProps.y, 'Y', presLayout); - var tablePropW = getSmartParseNumber(tableProps.w, 'X', presLayout); - var tablePropH = getSmartParseNumber(tableProps.h, 'Y', presLayout); - var tableCalcW = tablePropW; - function calcSlideTabH() { - var emuStartY = 0; - if (tableRowSlides.length === 0) - emuStartY = tablePropY ? tablePropY : inch2Emu(arrInchMargins[0]); - if (tableRowSlides.length > 0) - emuStartY = inch2Emu(tableProps.autoPageSlideStartY || tableProps.newSlideStartY || arrInchMargins[0]); - emuSlideTabH = (tablePropH || presLayout.height) - emuStartY - inch2Emu(arrInchMargins[2]); - //console.log(`| startY .......................................... = ${(emuStartY / EMU).toFixed(1)}`) - //console.log(`| emuSlideTabH .................................... = ${(emuSlideTabH / EMU).toFixed(1)}`) - if (tableRowSlides.length > 1) { - // D: RULE: Use margins for starting point after the initial Slide, not `opt.y` (ISSUE #43, ISSUE #47, ISSUE #48) - if (typeof tableProps.autoPageSlideStartY === 'number') { - emuSlideTabH = (tablePropH || presLayout.height) - inch2Emu(tableProps.autoPageSlideStartY + arrInchMargins[2]); - } - else if (typeof tableProps.newSlideStartY === 'number') { - // @deprecated v3.3.0 - emuSlideTabH = (tablePropH || presLayout.height) - inch2Emu(tableProps.newSlideStartY + arrInchMargins[2]); - } - else if (tablePropY) { - emuSlideTabH = (tablePropH || presLayout.height) - inch2Emu((tablePropY / EMU < arrInchMargins[0] ? tablePropY / EMU : arrInchMargins[0]) + arrInchMargins[2]); - // Use whichever is greater: area between margins or the table H provided (dont shrink usable area - the whole point of over-riding Y on paging is to *increase* usable space) - if (emuSlideTabH < tablePropH) - emuSlideTabH = tablePropH; - } - } - } - if (tableProps.verbose) { - console.log('[[VERBOSE MODE]]'); - console.log('|-- TABLE PROPS --------------------------------------------------------|'); - console.log("| presLayout.width ................................ = ".concat((presLayout.width / EMU).toFixed(1))); - console.log("| presLayout.height ............................... = ".concat((presLayout.height / EMU).toFixed(1))); - console.log("| tableProps.x .................................... = ".concat(typeof tableProps.x === 'number' ? (tableProps.x / EMU).toFixed(1) : tableProps.x)); - console.log("| tableProps.y .................................... = ".concat(typeof tableProps.y === 'number' ? (tableProps.y / EMU).toFixed(1) : tableProps.y)); - console.log("| tableProps.w .................................... = ".concat(typeof tableProps.w === 'number' ? (tableProps.w / EMU).toFixed(1) : tableProps.w)); - console.log("| tableProps.h .................................... = ".concat(typeof tableProps.h === 'number' ? (tableProps.h / EMU).toFixed(1) : tableProps.h)); - console.log("| tableProps.slideMargin .......................... = ".concat(tableProps.slideMargin || '')); - console.log("| tableProps.margin ............................... = ".concat(tableProps.margin)); - console.log("| tableProps.colW ................................. = ".concat(tableProps.colW)); - console.log("| tableProps.autoPageSlideStartY .................. = ".concat(tableProps.autoPageSlideStartY)); - console.log("| tableProps.autoPageCharWeight ................... = ".concat(tableProps.autoPageCharWeight)); - console.log('|-- CALCULATIONS -------------------------------------------------------|'); - console.log("| tablePropX ...................................... = ".concat(tablePropX / EMU)); - console.log("| tablePropY ...................................... = ".concat(tablePropY / EMU)); - console.log("| tablePropW ...................................... = ".concat(tablePropW / EMU)); - console.log("| tablePropH ...................................... = ".concat(tablePropH / EMU)); - console.log("| tableCalcW ...................................... = ".concat(tableCalcW / EMU)); - } - // STEP 1: Calculate margins - { - // Important: Use default size as zero cell margin is causing our tables to be too large and touch bottom of slide! - if (!tableProps.slideMargin && tableProps.slideMargin !== 0) - tableProps.slideMargin = DEF_SLIDE_MARGIN_IN[0]; - if (masterSlide && typeof masterSlide._margin !== 'undefined') { - if (Array.isArray(masterSlide._margin)) - arrInchMargins = masterSlide._margin; - else if (!isNaN(Number(masterSlide._margin))) - arrInchMargins = [Number(masterSlide._margin), Number(masterSlide._margin), Number(masterSlide._margin), Number(masterSlide._margin)]; - } - else if (tableProps.slideMargin || tableProps.slideMargin === 0) { - if (Array.isArray(tableProps.slideMargin)) - arrInchMargins = tableProps.slideMargin; - else if (!isNaN(tableProps.slideMargin)) - arrInchMargins = [tableProps.slideMargin, tableProps.slideMargin, tableProps.slideMargin, tableProps.slideMargin]; - } - if (tableProps.verbose) - console.log("| arrInchMargins .................................. = [".concat(arrInchMargins.join(', '), "]")); - } - // STEP 2: Calculate number of columns - { - // NOTE: Cells may have a colspan, so merely taking the length of the [0] (or any other) row is not - // ....: sufficient to determine column count. Therefore, check each cell for a colspan and total cols as reqd - var firstRow = tableRows[0] || []; - firstRow.forEach(function (cell) { - if (!cell) - cell = { _type: SLIDE_OBJECT_TYPES.tablecell }; - var cellOpts = cell.options || null; - numCols += Number(cellOpts && cellOpts.colspan ? cellOpts.colspan : 1); - }); - if (tableProps.verbose) - console.log("| numCols ......................................... = ".concat(numCols)); - } - // STEP 3: Calculate width using tableProps.colW if possible - if (!tablePropW && tableProps.colW) { - tableCalcW = Array.isArray(tableProps.colW) ? tableProps.colW.reduce(function (p, n) { return p + n; }) * EMU : tableProps.colW * numCols || 0; - if (tableProps.verbose) - console.log("| tableCalcW ...................................... = ".concat(tableCalcW / EMU)); - } - // STEP 4: Calculate usable width now that total usable space is known (`emuSlideTabW`) - { - emuSlideTabW = tableCalcW ? tableCalcW : inch2Emu((tablePropX ? tablePropX / EMU : arrInchMargins[1]) + arrInchMargins[3]); - if (tableProps.verbose) - console.log("| emuSlideTabW .................................... = ".concat((emuSlideTabW / EMU).toFixed(1))); - } - // STEP 5: Calculate column widths if not provided (emuSlideTabW will be used below to determine lines-per-col) - if (!tableProps.colW || !Array.isArray(tableProps.colW)) { - if (tableProps.colW && !isNaN(Number(tableProps.colW))) { - var arrColW_1 = []; - var firstRow = tableRows[0] || []; - firstRow.forEach(function () { return arrColW_1.push(tableProps.colW); }); - tableProps.colW = []; - arrColW_1.forEach(function (val) { - if (Array.isArray(tableProps.colW)) - tableProps.colW.push(val); - }); - } - // No column widths provided? Then distribute cols. - else { - tableProps.colW = []; - for (var iCol = 0; iCol < numCols; iCol++) { - tableProps.colW.push(emuSlideTabW / EMU / numCols); - } - } - } - // STEP 6: **MAIN** Iterate over rows, add table content, create new slides as rows overflow - var newTableRowSlide = { rows: [] }; - tableRows.forEach(function (row, iRow) { - // A: Row variables - var rowCellLines = []; - var maxCellMarTopEmu = 0; - var maxCellMarBtmEmu = 0; - // B: Create new row in data model, calc `maxCellMar*` - var currTableRow = []; - row.forEach(function (cell) { - currTableRow.push({ - _type: SLIDE_OBJECT_TYPES.tablecell, - text: [], - options: cell.options, - }); - /** FUTURE: DEPRECATED: - * - Backwards-Compat: Oops! Discovered we were still using points for cell margin before v3.8.0 (UGH!) - * - We cant introduce a breaking change before v4.0, so... - */ - if (cell.options.margin && cell.options.margin[0] >= 1) { - if (cell.options.margin && cell.options.margin[0] && valToPts(cell.options.margin[0]) > maxCellMarTopEmu) - maxCellMarTopEmu = valToPts(cell.options.margin[0]); - else if (tableProps.margin && tableProps.margin[0] && valToPts(tableProps.margin[0]) > maxCellMarTopEmu) - maxCellMarTopEmu = valToPts(tableProps.margin[0]); - if (cell.options.margin && cell.options.margin[2] && valToPts(cell.options.margin[2]) > maxCellMarBtmEmu) - maxCellMarBtmEmu = valToPts(cell.options.margin[2]); - else if (tableProps.margin && tableProps.margin[2] && valToPts(tableProps.margin[2]) > maxCellMarBtmEmu) - maxCellMarBtmEmu = valToPts(tableProps.margin[2]); - } - else { - if (cell.options.margin && cell.options.margin[0] && inch2Emu(cell.options.margin[0]) > maxCellMarTopEmu) - maxCellMarTopEmu = inch2Emu(cell.options.margin[0]); - else if (tableProps.margin && tableProps.margin[0] && inch2Emu(tableProps.margin[0]) > maxCellMarTopEmu) - maxCellMarTopEmu = inch2Emu(tableProps.margin[0]); - if (cell.options.margin && cell.options.margin[2] && inch2Emu(cell.options.margin[2]) > maxCellMarBtmEmu) - maxCellMarBtmEmu = inch2Emu(cell.options.margin[2]); - else if (tableProps.margin && tableProps.margin[2] && inch2Emu(tableProps.margin[2]) > maxCellMarBtmEmu) - maxCellMarBtmEmu = inch2Emu(tableProps.margin[2]); - } - }); - // C: Calc usable vertical space/table height. Set default value first, adjust below when necessary. - calcSlideTabH(); - emuTabCurrH += maxCellMarTopEmu + maxCellMarBtmEmu; // Start row height with margins - if (tableProps.verbose && iRow === 0) - console.log("| SLIDE [".concat(tableRowSlides.length, "]: emuSlideTabH ...... = ").concat((emuSlideTabH / EMU).toFixed(1), " ")); - // D: --==[[ BUILD DATA SET ]]==-- (iterate over cells: split text into lines[], set `lineHeight`) - row.forEach(function (cell, iCell) { - var newCell = { - _type: SLIDE_OBJECT_TYPES.tablecell, - _lines: null, - _lineHeight: inch2Emu(((cell.options && cell.options.fontSize ? cell.options.fontSize : tableProps.fontSize ? tableProps.fontSize : DEF_FONT_SIZE) * - (LINEH_MODIFIER + (tableProps.autoPageLineWeight ? tableProps.autoPageLineWeight : 0))) / - 100), - text: [], - options: cell.options, - }; - // E-1: Exempt cells with `rowspan` from increasing lineHeight (or we could create a new slide when unecessary!) - if (newCell.options.rowspan) - newCell._lineHeight = 0; - // E-2: The parseTextToLines method uses `autoPageCharWeight`, so inherit from table options - newCell.options.autoPageCharWeight = tableProps.autoPageCharWeight ? tableProps.autoPageCharWeight : null; - // E-3: **MAIN** Parse cell contents into lines based upon col width, font, etc - var totalColW = tableProps.colW[iCell]; - if (cell.options.colspan && Array.isArray(tableProps.colW)) { - totalColW = tableProps.colW.filter(function (_cell, idx) { return idx >= iCell && idx < idx + cell.options.colspan; }).reduce(function (prev, curr) { return prev + curr; }); - } - // E-4: Create lines based upon available column width - newCell._lines = parseTextToLines(cell, totalColW, false); - // E-5: Add cell to array - rowCellLines.push(newCell); - }); - /** E: --==[[ PAGE DATA SET ]]==-- - * Add text one-line-a-time to this row's cells until: lines are exhausted OR table height limit is hit - * - * Design: - * - Building cells L-to-R/loop style wont work as one could be 100 lines and another 1 line - * - Therefore, build the whole row, one-line-at-a-time, across each table columns - * - Then, when the vertical size limit is hit is by any of the cells, make a new slide and continue adding any remaining lines - * - * Implementation: - * - `rowCellLines` is an array of cells, one for each column in the table, with each cell containing an array of lines - * - * Sample Data: - * - `rowCellLines` ..: [ TableCell, TableCell, TableCell ] - * - `TableCell` .....: { _type: 'tablecell', _lines: TableCell[], _lineHeight: 10 } - * - `_lines` ........: [ {_type: 'tablecell', text: 'cell-1,line-1', options: {…}}, {_type: 'tablecell', text: 'cell-1,line-2', options: {…}} } - * - `_lines` is TableCell[] (the 1-N words in the line) - * { - * _lines: [{ text:'cell-1,line-1' }, { text:'cell-1,line-2' }], // TOTAL-CELL-HEIGHT = 2 - * _lines: [{ text:'cell-2,line-1' }, { text:'cell-2,line-2' }], // TOTAL-CELL-HEIGHT = 2 - * _lines: [{ text:'cell-3,line-1' }, { text:'cell-3,line-2' }, { text:'cell-3,line-3' }, { text:'cell-3,line-4' }], // TOTAL-CELL-HEIGHT = 4 - * } - * - * Example: 2 rows, with the firstrow overflowing onto a new slide - * SLIDE 1: - * |--------|--------|--------|--------| - * | line-1 | line-1 | line-1 | line-1 | - * | | | line-2 | | - * | | | line-3 | | - * |--------|--------|--------|--------| - * - * SLIDE 2: - * |--------|--------|--------|--------| - * | | | line-4 | | - * |--------|--------|--------|--------| - * | line-1 | line-1 | line-1 | line-1 | - * |--------|--------|--------|--------| - */ - if (tableProps.verbose) - console.log("\n| SLIDE [".concat(tableRowSlides.length, "]: ROW [").concat(iRow, "]: START...")); - var currCellIdx = 0; - var emuLineMaxH = 0; - var isDone = false; - while (!isDone) { - var srcCell = rowCellLines[currCellIdx]; - var tgtCell = currTableRow[currCellIdx]; // NOTE: may be redefined below (a new row may be created, thus changing this value) - // 1: calc emuLineMaxH - rowCellLines.forEach(function (cell) { - if (cell._lineHeight >= emuLineMaxH) - emuLineMaxH = cell._lineHeight; - }); - // 2: create a new slide if there is insufficient room for the current row - if (emuTabCurrH + emuLineMaxH > emuSlideTabH) { - if (tableProps.verbose) { - console.log('\n|-----------------------------------------------------------------------|'); - // prettier-ignore - console.log("|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => ".concat((emuTabCurrH / EMU).toFixed(2), " + ").concat((srcCell._lineHeight / EMU).toFixed(2), " > ").concat(emuSlideTabH / EMU)); - console.log('|-----------------------------------------------------------------------|\n\n'); - } - // A: add current row slide or it will be lost (only if it has rows and text) - if (currTableRow.length > 0 && currTableRow.map(function (cell) { return cell.text.length; }).reduce(function (p, n) { return p + n; }) > 0) - newTableRowSlide.rows.push(currTableRow); - // B: add current slide to Slides array - tableRowSlides.push(newTableRowSlide); - // C: reset working/curr slide to hold rows as they're created - var newRows = []; - newTableRowSlide = { rows: newRows }; - // D: reset working/curr row - currTableRow = []; - row.forEach(function (cell) { return currTableRow.push({ _type: SLIDE_OBJECT_TYPES.tablecell, text: [], options: cell.options }); }); - // E: Calc usable vertical space/table height now as we may still be in the same row and code above ("C: Calc usable vertical space/table height.") calc may now be invalid - calcSlideTabH(); - emuTabCurrH += maxCellMarTopEmu + maxCellMarBtmEmu; // Start row height with margins - if (tableProps.verbose) - console.log("| SLIDE [".concat(tableRowSlides.length, "]: emuSlideTabH ...... = ").concat((emuSlideTabH / EMU).toFixed(1), " ")); - // F: reset current table height for this new Slide - emuTabCurrH = 0; - // G: handle repeat headers option /or/ Add new empty row to continue current lines into - if ((tableProps.addHeaderToEach || tableProps.autoPageRepeatHeader) && tableProps._arrObjTabHeadRows) { - tableProps._arrObjTabHeadRows.forEach(function (row) { - var newHeadRow = []; - var maxLineHeight = 0; - row.forEach(function (cell) { - newHeadRow.push(cell); - if (cell._lineHeight > maxLineHeight) - maxLineHeight = cell._lineHeight; - }); - newTableRowSlide.rows.push(newHeadRow); - emuTabCurrH += maxLineHeight; // TODO: what about margins? dont we need to include cell margin in line height? - }); - } - // WIP: NEW: TEST THIS!! - tgtCell = currTableRow[currCellIdx]; - } - // 3: set array of words that comprise this line - var currLine = srcCell._lines.shift(); - // 4: create new line by adding all words from curr line (or add empty if there are no words to avoid "needs repair" issue triggered when cells have null content) - if (Array.isArray(tgtCell.text)) { - if (currLine) - tgtCell.text = tgtCell.text.concat(currLine); - else if (tgtCell.text.length === 0) - tgtCell.text = tgtCell.text.concat({ _type: SLIDE_OBJECT_TYPES.tablecell, text: '' }); - // IMPORTANT: ^^^ add empty if there are no words to avoid "needs repair" issue triggered when cells have null content - } - // 5: increase table height by the curr line height (if we're on the last column) - if (currCellIdx === rowCellLines.length - 1) - emuTabCurrH += emuLineMaxH; - // 6: advance column/cell index (or circle back to first one to continue adding lines) - currCellIdx = currCellIdx < rowCellLines.length - 1 ? currCellIdx + 1 : 0; - // 7: done? - var brent = rowCellLines.map(function (cell) { return cell._lines.length; }).reduce(function (prev, next) { return prev + next; }); - if (brent === 0) - isDone = true; - } - // F: Flush/capture row buffer before it resets at the top of this loop - if (currTableRow.length > 0) - newTableRowSlide.rows.push(currTableRow); - if (tableProps.verbose) - console.log("- SLIDE [".concat(tableRowSlides.length, "]: ROW [").concat(iRow, "]: ...COMPLETE ...... emuTabCurrH = ").concat((emuTabCurrH / EMU).toFixed(2), " ( emuSlideTabH = ").concat((emuSlideTabH / EMU).toFixed(2), " )")); - }); - // STEP 7: Flush buffer / add final slide - tableRowSlides.push(newTableRowSlide); - if (tableProps.verbose) { - console.log("\n|================================================|"); - console.log("| FINAL: tableRowSlides.length = ".concat(tableRowSlides.length)); - tableRowSlides.forEach(function (slide) { return console.log(slide); }); - console.log("|================================================|\n\n"); - } - // LAST: - return tableRowSlides; -} -/** - * Reproduces an HTML table as a PowerPoint table - including column widths, style, etc. - creates 1 or more slides as needed - * @param {PptxGenJS} pptx - pptxgenjs instance - * @param {string} tabEleId - HTMLElementID of the table - * @param {ITableToSlidesOpts} options - array of options (e.g.: tabsize) - * @param {SlideLayout} masterSlide - masterSlide - */ -function genTableToSlides(pptx, tabEleId, options, masterSlide) { - if (options === void 0) { options = {}; } - var opts = options || {}; - opts.slideMargin = opts.slideMargin || opts.slideMargin === 0 ? opts.slideMargin : 0.5; - var emuSlideTabW = opts.w || pptx.presLayout.width; - var arrObjTabHeadRows = []; - var arrObjTabBodyRows = []; - var arrObjTabFootRows = []; - var arrColW = []; - var arrTabColW = []; - var arrInchMargins = [0.5, 0.5, 0.5, 0.5]; // TRBL-style - var intTabW = 0; - // REALITY-CHECK: - if (!document.getElementById(tabEleId)) - throw new Error('tableToSlides: Table ID "' + tabEleId + '" does not exist!'); - // STEP 1: Set margins - if (masterSlide && masterSlide._margin) { - if (Array.isArray(masterSlide._margin)) - arrInchMargins = masterSlide._margin; - else if (!isNaN(masterSlide._margin)) - arrInchMargins = [masterSlide._margin, masterSlide._margin, masterSlide._margin, masterSlide._margin]; - opts.slideMargin = arrInchMargins; - } - else if (opts && opts.slideMargin) { - if (Array.isArray(opts.slideMargin)) - arrInchMargins = opts.slideMargin; - else if (!isNaN(opts.slideMargin)) - arrInchMargins = [opts.slideMargin, opts.slideMargin, opts.slideMargin, opts.slideMargin]; - } - emuSlideTabW = (opts.w ? inch2Emu(opts.w) : pptx.presLayout.width) - inch2Emu(arrInchMargins[1] + arrInchMargins[3]); - if (opts.verbose) { - console.log('[[VERBOSE MODE]]'); - console.log('|-- `tableToSlides` ----------------------------------------------------|'); - console.log("| tableProps.h .................................... = ".concat(opts.h)); - console.log("| tableProps.w .................................... = ".concat(opts.w)); - console.log("| pptx.presLayout.width ........................... = ".concat((pptx.presLayout.width / EMU).toFixed(1))); - console.log("| pptx.presLayout.height .......................... = ".concat((pptx.presLayout.height / EMU).toFixed(1))); - console.log("| emuSlideTabW .................................... = ".concat((emuSlideTabW / EMU).toFixed(1))); - } - // STEP 2: Grab table col widths - just find the first availble row, either thead/tbody/tfoot, others may have colspans, who cares, we only need col widths from 1 - var firstRowCells = document.querySelectorAll("#".concat(tabEleId, " tr:first-child th")); - if (firstRowCells.length === 0) - firstRowCells = document.querySelectorAll("#".concat(tabEleId, " tr:first-child td")); - firstRowCells.forEach(function (cell) { - if (cell.getAttribute('colspan')) { - // Guesstimate (divide evenly) col widths - // NOTE: both j$query and vanilla selectors return {0} when table is not visible) - for (var idxc = 0; idxc < Number(cell.getAttribute('colspan')); idxc++) { - arrTabColW.push(Math.round(cell.offsetWidth / Number(cell.getAttribute('colspan')))); - } - } - else { - arrTabColW.push(cell.offsetWidth); - } - }); - arrTabColW.forEach(function (colW) { - intTabW += colW; - }); - // STEP 3: Calc/Set column widths by using same column width percent from HTML table - arrTabColW.forEach(function (colW, idxW) { - var intCalcWidth = Number(((Number(emuSlideTabW) * ((colW / intTabW) * 100)) / 100 / EMU).toFixed(2)); - var intMinWidth = 0; - var colSelectorMin = document.querySelector("#".concat(tabEleId, " thead tr:first-child th:nth-child(").concat(idxW + 1, ")")); - if (colSelectorMin) - intMinWidth = Number(colSelectorMin.getAttribute('data-pptx-min-width')); - var colSelectorSet = document.querySelector("#".concat(tabEleId, " thead tr:first-child th:nth-child(").concat(idxW + 1, ")")); - if (colSelectorSet) - intMinWidth = Number(colSelectorSet.getAttribute('data-pptx-width')); - arrColW.push(intMinWidth > intCalcWidth ? intMinWidth : intCalcWidth); - }); - if (opts.verbose) { - console.log("| arrColW ......................................... = [".concat(arrColW.join(', '), "]")); - } - // STEP 4: Iterate over each table element and create data arrays (text and opts) - // NOTE: We create 3 arrays instead of one so we can loop over body then show header/footer rows on first and last page - var tableParts = ['thead', 'tbody', 'tfoot']; - tableParts.forEach(function (part) { - document.querySelectorAll("#".concat(tabEleId, " ").concat(part, " tr")).forEach(function (row) { - var arrObjTabCells = []; - Array.from(row.cells).forEach(function (cell) { - // A: Get RGB text/bkgd colors - var arrRGB1 = window.getComputedStyle(cell).getPropertyValue('color').replace(/\s+/gi, '').replace('rgba(', '').replace('rgb(', '').replace(')', '').split(','); - var arrRGB2 = window - .getComputedStyle(cell) - .getPropertyValue('background-color') - .replace(/\s+/gi, '') - .replace('rgba(', '') - .replace('rgb(', '') - .replace(')', '') - .split(','); - if ( - // NOTE: (ISSUE#57): Default for unstyled tables is black bkgd, so use white instead - window.getComputedStyle(cell).getPropertyValue('background-color') === 'rgba(0, 0, 0, 0)' || - window.getComputedStyle(cell).getPropertyValue('transparent')) { - arrRGB2 = ['255', '255', '255']; - } - // B: Create option object - var cellOpts = { - align: null, - bold: window.getComputedStyle(cell).getPropertyValue('font-weight') === 'bold' || - Number(window.getComputedStyle(cell).getPropertyValue('font-weight')) >= 500 - ? true - : false, - border: null, - color: rgbToHex(Number(arrRGB1[0]), Number(arrRGB1[1]), Number(arrRGB1[2])), - fill: { color: rgbToHex(Number(arrRGB2[0]), Number(arrRGB2[1]), Number(arrRGB2[2])) }, - fontFace: (window.getComputedStyle(cell).getPropertyValue('font-family') || '').split(',')[0].replace(/"/g, '').replace('inherit', '').replace('initial', '') || - null, - fontSize: Number(window.getComputedStyle(cell).getPropertyValue('font-size').replace(/[a-z]/gi, '')), - margin: null, - colspan: Number(cell.getAttribute('colspan')) || null, - rowspan: Number(cell.getAttribute('rowspan')) || null, - valign: null, - }; - if (['left', 'center', 'right', 'start', 'end'].indexOf(window.getComputedStyle(cell).getPropertyValue('text-align')) > -1) { - var align = window.getComputedStyle(cell).getPropertyValue('text-align').replace('start', 'left').replace('end', 'right'); - cellOpts.align = align === 'center' ? 'center' : align === 'left' ? 'left' : align === 'right' ? 'right' : null; - } - if (['top', 'middle', 'bottom'].indexOf(window.getComputedStyle(cell).getPropertyValue('vertical-align')) > -1) { - var valign = window.getComputedStyle(cell).getPropertyValue('vertical-align'); - cellOpts.valign = valign === 'top' ? 'top' : valign === 'middle' ? 'middle' : valign === 'bottom' ? 'bottom' : null; - } - // C: Add padding [margin] (if any) - // NOTE: Margins translate: px->pt 1:1 (e.g.: a 20px padded cell looks the same in PPTX as 20pt Text Inset/Padding) - if (window.getComputedStyle(cell).getPropertyValue('padding-left')) { - cellOpts.margin = [0, 0, 0, 0]; - var sidesPad = ['padding-top', 'padding-right', 'padding-bottom', 'padding-left']; - sidesPad.forEach(function (val, idxs) { - cellOpts.margin[idxs] = Math.round(Number(window.getComputedStyle(cell).getPropertyValue(val).replace(/\D/gi, ''))); - }); - } - // D: Add border (if any) - if (window.getComputedStyle(cell).getPropertyValue('border-top-width') || - window.getComputedStyle(cell).getPropertyValue('border-right-width') || - window.getComputedStyle(cell).getPropertyValue('border-bottom-width') || - window.getComputedStyle(cell).getPropertyValue('border-left-width')) { - cellOpts.border = [null, null, null, null]; - var sidesBor = ['top', 'right', 'bottom', 'left']; - sidesBor.forEach(function (val, idxb) { - var intBorderW = Math.round(Number(window - .getComputedStyle(cell) - .getPropertyValue('border-' + val + '-width') - .replace('px', ''))); - var arrRGB = []; - arrRGB = window - .getComputedStyle(cell) - .getPropertyValue('border-' + val + '-color') - .replace(/\s+/gi, '') - .replace('rgba(', '') - .replace('rgb(', '') - .replace(')', '') - .split(','); - var strBorderC = rgbToHex(Number(arrRGB[0]), Number(arrRGB[1]), Number(arrRGB[2])); - cellOpts.border[idxb] = { pt: intBorderW, color: strBorderC }; - }); - } - // LAST: Add cell - arrObjTabCells.push({ - _type: SLIDE_OBJECT_TYPES.tablecell, - text: cell.innerText, - options: cellOpts, - }); - }); - switch (part) { - case 'thead': - arrObjTabHeadRows.push(arrObjTabCells); - break; - case 'tbody': - arrObjTabBodyRows.push(arrObjTabCells); - break; - case 'tfoot': - arrObjTabFootRows.push(arrObjTabCells); - break; - default: - console.log("table parsing: unexpected table part: ".concat(part)); - break; - } - }); - }); - // STEP 5: Break table into Slides as needed - // Pass head-rows as there is an option to add to each table and the parse func needs this data to fulfill that option - opts._arrObjTabHeadRows = arrObjTabHeadRows || null; - opts.colW = arrColW; - getSlidesForTableRows(__spreadArray(__spreadArray(__spreadArray([], arrObjTabHeadRows, true), arrObjTabBodyRows, true), arrObjTabFootRows, true), opts, pptx.presLayout, masterSlide).forEach(function (slide, idxTr) { - // A: Create new Slide - var newSlide = pptx.addSlide({ masterName: opts.masterSlideName || null }); - // B: DESIGN: Reset `y` to startY or margin after first Slide (ISSUE#43, ISSUE#47, ISSUE#48) - if (idxTr === 0) - opts.y = opts.y || arrInchMargins[0]; - if (idxTr > 0) - opts.y = opts.autoPageSlideStartY || opts.newSlideStartY || arrInchMargins[0]; - if (opts.verbose) - console.log("| opts.autoPageSlideStartY: ".concat(opts.autoPageSlideStartY, " / arrInchMargins[0]: ").concat(arrInchMargins[0], " => opts.y = ").concat(opts.y)); - // C: Add table to Slide - newSlide.addTable(slide.rows, { x: opts.x || arrInchMargins[3], y: opts.y, w: Number(emuSlideTabW) / EMU, colW: arrColW, autoPage: false }); - // D: Add any additional objects - if (opts.addImage) { - opts.addImage.options = opts.addImage.options || {}; - if (!opts.addImage.image || (!opts.addImage.image.path && !opts.addImage.image.data)) { - console.warn('Warning: tableToSlides.addImage requires either `path` or `data`'); - } - else { - newSlide.addImage({ - path: opts.addImage.image.path, - data: opts.addImage.image.data, - x: opts.addImage.options.x, - y: opts.addImage.options.y, - w: opts.addImage.options.w, - h: opts.addImage.options.h, - }); - } - } - if (opts.addShape) - newSlide.addShape(opts.addShape.shape, opts.addShape.options || {}); - if (opts.addTable) - newSlide.addTable(opts.addTable.rows, opts.addTable.options || {}); - if (opts.addText) - newSlide.addText(opts.addText.text, opts.addText.options || {}); - }); +/** + * PptxGenJS: Table Generation + */ +/** + * Break cell text into lines based upon table column width (e.g.: Magic Happens Here(tm)) + * @param {TableCell} cell - table cell + * @param {number} colWidth - table column width (inches) + * @return {TableRow[]} - cell's text objects grouped into lines + */ +function parseTextToLines(cell, colWidth, verbose) { + // FYI: CPL = Width / (font-size / font-constant) + // FYI: CHAR:2.3, colWidth:10, fontSize:12 => CPL=138, (actual chars per line in PPT)=145 [14.5 CPI] + // FYI: CHAR:2.3, colWidth:7 , fontSize:12 => CPL= 97, (actual chars per line in PPT)=100 [14.3 CPI] + // FYI: CHAR:2.3, colWidth:9 , fontSize:16 => CPL= 96, (actual chars per line in PPT)=84 [ 9.3 CPI] + var FOCO = 2.3 + (cell.options && cell.options.autoPageCharWeight ? cell.options.autoPageCharWeight : 0); // Character Constant + var CPL = Math.floor((colWidth / ONEPT) * EMU) / ((cell.options && cell.options.fontSize ? cell.options.fontSize : DEF_FONT_SIZE) / FOCO); // Chars-Per-Line + var parsedLines = []; + var inputCells = []; + var inputLines1 = []; + var inputLines2 = []; + /* + if (cell.options && cell.options.autoPageCharWeight) { + let CHR1 = 2.3 + (cell.options && cell.options.autoPageCharWeight ? cell.options.autoPageCharWeight : 0) // Character Constant + let CPL1 = ((colWidth / ONEPT) * EMU) / ((cell.options && cell.options.fontSize ? cell.options.fontSize : DEF_FONT_SIZE) / CHR1) // Chars-Per-Line + console.log(`cell.options.autoPageCharWeight: '${cell.options.autoPageCharWeight}' => CPL: ${CPL1}`) + let CHR2 = 2.3 + 0 + let CPL2 = ((colWidth / ONEPT) * EMU) / ((cell.options && cell.options.fontSize ? cell.options.fontSize : DEF_FONT_SIZE) / CHR2) // Chars-Per-Line + console.log(`cell.options.autoPageCharWeight: '0' => CPL: ${CPL2}`) + } + */ + /** + * EX INPUTS: `cell.text` + * - string....: "Account Name Column" + * - object....: { text:"Account Name Column" } + * - object[]..: [{ text:"Account Name", options:{ bold:true } }, { text:" Column" }] + * - object[]..: [{ text:"Account Name", options:{ breakLine:true } }, { text:"Input" }] + */ + /** + * EX OUTPUTS: + * - string....: [{ text:"Account Name Column" }] + * - object....: [{ text:"Account Name Column" }] + * - object[]..: [{ text:"Account Name", options:{ breakLine:true } }, { text:"Input" }] + * - object[]..: [{ text:"Account Name", options:{ breakLine:true } }, { text:"Input" }] + */ + // STEP 1: Ensure inputCells is an array of TableCells + if (cell.text && cell.text.toString().trim().length === 0) { + // Allow a single space/whitespace as cell text (user-requested feature) + inputCells.push({ _type: SLIDE_OBJECT_TYPES.tablecell, text: ' ' }); + } + else if (typeof cell.text === 'number' || typeof cell.text === 'string') { + inputCells.push({ _type: SLIDE_OBJECT_TYPES.tablecell, text: (cell.text || '').toString().trim() }); + } + else if (Array.isArray(cell.text)) { + inputCells = cell.text; + } + if (verbose) { + console.log('[1/4] inputCells'); + inputCells.forEach(function (cell, idx) { return console.log("[1/4] [".concat(idx + 1, "] cell: ").concat(JSON.stringify(cell))); }); + //console.log('...............................................\n\n') + } + // STEP 2: Group table cells into lines based on "\n" or `breakLine` prop + /** + * - EX: `[{ text:"Input Output" }, { text:"Extra" }]` == 1 line + * - EX: `[{ text:"Input" }, { text:"Output", options:{ breakLine:true } }]` == 1 line + * - EX: `[{ text:"Input\nOutput" }]` == 2 lines + * - EX: `[{ text:"Input", options:{ breakLine:true } }, { text:"Output" }]` == 2 lines + */ + var newLine = []; + inputCells.forEach(function (cell) { + // (this is always true, we just constructed them above, but we need to tell typescript b/c type is still string||Cell[]) + if (typeof cell.text === 'string') { + if (cell.text.split('\n').length > 1) { + cell.text.split('\n').forEach(function (textLine) { + newLine.push({ + _type: SLIDE_OBJECT_TYPES.tablecell, + text: textLine, + options: __assign(__assign({}, cell.options), { breakLine: true }), + }); + }); + } + else { + newLine.push({ + _type: SLIDE_OBJECT_TYPES.tablecell, + text: cell.text.trim(), + options: cell.options, + }); + } + if (cell.options && cell.options.breakLine) { + if (verbose) + console.log("inputCells: new line > ".concat(JSON.stringify(newLine))); + inputLines1.push(newLine); + newLine = []; + } + } + // Flush buffer + if (newLine.length > 0) + inputLines1.push(newLine); + }); + if (verbose) { + console.log("[2/4] inputLines1 (".concat(inputLines1.length, ")")); + inputLines1.forEach(function (line, idx) { return console.log("[2/4] [".concat(idx + 1, "] line: ").concat(JSON.stringify(line))); }); + //console.log('...............................................\n\n') + } + // STEP 3: Tokenize every text object into words (then it's really easy to assemble lines below without having to break text, add its `options`, etc.) + inputLines1.forEach(function (line) { + line.forEach(function (cell) { + var lineCells = []; + var cellTextStr = cell.text + ''; // force convert to string (compiled JS is better with this than a cast) + var lineWords = cellTextStr.split(' '); + lineWords.forEach(function (word, idx) { + var cellProps = __assign({}, cell.options); + // IMPORTANT: Handle `breakLine` prop - we cannot apply to each word - only apply to very last word! + if (cellProps && cellProps.breakLine) + cellProps.breakLine = idx + 1 === lineWords.length; + lineCells.push({ _type: SLIDE_OBJECT_TYPES.tablecell, text: word + (idx + 1 < lineWords.length ? ' ' : ''), options: cellProps }); + }); + inputLines2.push(lineCells); + }); + }); + if (verbose) { + console.log("[3/4] inputLines2 (".concat(inputLines2.length, ")")); + inputLines2.forEach(function (line) { return console.log("[3/4] line: ".concat(JSON.stringify(line))); }); + //console.log('...............................................\n\n') + } + // STEP 4: Group cells/words into lines based upon space consumed by word letters + inputLines2.forEach(function (line) { + var lineCells = []; + var strCurrLine = ''; + line.forEach(function (word) { + // A: create new line when horizontal space is exhausted + if (strCurrLine.length + word.text.length > CPL) { + //if (verbose) console.log(`STEP 4: New line added: (${strCurrLine.length} + ${word.text.length} > ${CPL})`); + parsedLines.push(lineCells); + lineCells = []; + strCurrLine = ''; + } + // B: add current word to line cells + lineCells.push(word); + // C: add current word to `strCurrLine` which we use to keep track of line's char length + strCurrLine += word.text.toString(); + }); + // Flush buffer: Only create a line when there's text to avoid empty row + if (lineCells.length > 0) + parsedLines.push(lineCells); + }); + if (verbose) { + console.log("[4/4] parsedLines (".concat(parsedLines.length, ")")); + parsedLines.forEach(function (line, idx) { return console.log("[4/4] [Line ".concat(idx + 1, "]:\n").concat(JSON.stringify(line))); }); + console.log('...............................................\n\n'); + } + // Done: + return parsedLines; +} +/** + * Takes an array of table rows and breaks into an array of slides, which contain the calculated amount of table rows that fit on that slide + * @param {TableCell[][]} tableRows - table rows + * @param {TableToSlidesProps} tableProps - table2slides properties + * @param {PresLayout} presLayout - presentation layout + * @param {SlideLayout} masterSlide - master slide + * @return {TableRowSlide[]} array of table rows + */ +function getSlidesForTableRows(tableRows, tableProps, presLayout, masterSlide) { + if (tableRows === void 0) { tableRows = []; } + if (tableProps === void 0) { tableProps = {}; } + var arrInchMargins = DEF_SLIDE_MARGIN_IN; + var emuSlideTabW = EMU * 1; + var emuSlideTabH = EMU * 1; + var emuTabCurrH = 0; + var numCols = 0; + var tableRowSlides = []; + var tablePropX = getSmartParseNumber(tableProps.x, 'X', presLayout); + var tablePropY = getSmartParseNumber(tableProps.y, 'Y', presLayout); + var tablePropW = getSmartParseNumber(tableProps.w, 'X', presLayout); + var tablePropH = getSmartParseNumber(tableProps.h, 'Y', presLayout); + var tableCalcW = tablePropW; + function calcSlideTabH() { + var emuStartY = 0; + if (tableRowSlides.length === 0) + emuStartY = tablePropY ? tablePropY : inch2Emu(arrInchMargins[0]); + if (tableRowSlides.length > 0) + emuStartY = inch2Emu(tableProps.autoPageSlideStartY || tableProps.newSlideStartY || arrInchMargins[0]); + emuSlideTabH = (tablePropH || presLayout.height) - emuStartY - inch2Emu(arrInchMargins[2]); + //console.log(`| startY .......................................... = ${(emuStartY / EMU).toFixed(1)}`) + //console.log(`| emuSlideTabH .................................... = ${(emuSlideTabH / EMU).toFixed(1)}`) + if (tableRowSlides.length > 1) { + // D: RULE: Use margins for starting point after the initial Slide, not `opt.y` (ISSUE #43, ISSUE #47, ISSUE #48) + if (typeof tableProps.autoPageSlideStartY === 'number') { + emuSlideTabH = (tablePropH || presLayout.height) - inch2Emu(tableProps.autoPageSlideStartY + arrInchMargins[2]); + } + else if (typeof tableProps.newSlideStartY === 'number') { + // @deprecated v3.3.0 + emuSlideTabH = (tablePropH || presLayout.height) - inch2Emu(tableProps.newSlideStartY + arrInchMargins[2]); + } + else if (tablePropY) { + emuSlideTabH = (tablePropH || presLayout.height) - inch2Emu((tablePropY / EMU < arrInchMargins[0] ? tablePropY / EMU : arrInchMargins[0]) + arrInchMargins[2]); + // Use whichever is greater: area between margins or the table H provided (dont shrink usable area - the whole point of over-riding Y on paging is to *increase* usable space) + if (emuSlideTabH < tablePropH) + emuSlideTabH = tablePropH; + } + } + } + if (tableProps.verbose) { + console.log('[[VERBOSE MODE]]'); + console.log('|-- TABLE PROPS --------------------------------------------------------|'); + console.log("| presLayout.width ................................ = ".concat((presLayout.width / EMU).toFixed(1))); + console.log("| presLayout.height ............................... = ".concat((presLayout.height / EMU).toFixed(1))); + console.log("| tableProps.x .................................... = ".concat(typeof tableProps.x === 'number' ? (tableProps.x / EMU).toFixed(1) : tableProps.x)); + console.log("| tableProps.y .................................... = ".concat(typeof tableProps.y === 'number' ? (tableProps.y / EMU).toFixed(1) : tableProps.y)); + console.log("| tableProps.w .................................... = ".concat(typeof tableProps.w === 'number' ? (tableProps.w / EMU).toFixed(1) : tableProps.w)); + console.log("| tableProps.h .................................... = ".concat(typeof tableProps.h === 'number' ? (tableProps.h / EMU).toFixed(1) : tableProps.h)); + console.log("| tableProps.slideMargin .......................... = ".concat(tableProps.slideMargin || '')); + console.log("| tableProps.margin ............................... = ".concat(tableProps.margin)); + console.log("| tableProps.colW ................................. = ".concat(tableProps.colW)); + console.log("| tableProps.autoPageSlideStartY .................. = ".concat(tableProps.autoPageSlideStartY)); + console.log("| tableProps.autoPageCharWeight ................... = ".concat(tableProps.autoPageCharWeight)); + console.log('|-- CALCULATIONS -------------------------------------------------------|'); + console.log("| tablePropX ...................................... = ".concat(tablePropX / EMU)); + console.log("| tablePropY ...................................... = ".concat(tablePropY / EMU)); + console.log("| tablePropW ...................................... = ".concat(tablePropW / EMU)); + console.log("| tablePropH ...................................... = ".concat(tablePropH / EMU)); + console.log("| tableCalcW ...................................... = ".concat(tableCalcW / EMU)); + } + // STEP 1: Calculate margins + { + // Important: Use default size as zero cell margin is causing our tables to be too large and touch bottom of slide! + if (!tableProps.slideMargin && tableProps.slideMargin !== 0) + tableProps.slideMargin = DEF_SLIDE_MARGIN_IN[0]; + if (masterSlide && typeof masterSlide._margin !== 'undefined') { + if (Array.isArray(masterSlide._margin)) + arrInchMargins = masterSlide._margin; + else if (!isNaN(Number(masterSlide._margin))) + arrInchMargins = [Number(masterSlide._margin), Number(masterSlide._margin), Number(masterSlide._margin), Number(masterSlide._margin)]; + } + else if (tableProps.slideMargin || tableProps.slideMargin === 0) { + if (Array.isArray(tableProps.slideMargin)) + arrInchMargins = tableProps.slideMargin; + else if (!isNaN(tableProps.slideMargin)) + arrInchMargins = [tableProps.slideMargin, tableProps.slideMargin, tableProps.slideMargin, tableProps.slideMargin]; + } + if (tableProps.verbose) + console.log("| arrInchMargins .................................. = [".concat(arrInchMargins.join(', '), "]")); + } + // STEP 2: Calculate number of columns + { + // NOTE: Cells may have a colspan, so merely taking the length of the [0] (or any other) row is not + // ....: sufficient to determine column count. Therefore, check each cell for a colspan and total cols as reqd + var firstRow = tableRows[0] || []; + firstRow.forEach(function (cell) { + if (!cell) + cell = { _type: SLIDE_OBJECT_TYPES.tablecell }; + var cellOpts = cell.options || null; + numCols += Number(cellOpts && cellOpts.colspan ? cellOpts.colspan : 1); + }); + if (tableProps.verbose) + console.log("| numCols ......................................... = ".concat(numCols)); + } + // STEP 3: Calculate width using tableProps.colW if possible + if (!tablePropW && tableProps.colW) { + tableCalcW = Array.isArray(tableProps.colW) ? tableProps.colW.reduce(function (p, n) { return p + n; }) * EMU : tableProps.colW * numCols || 0; + if (tableProps.verbose) + console.log("| tableCalcW ...................................... = ".concat(tableCalcW / EMU)); + } + // STEP 4: Calculate usable width now that total usable space is known (`emuSlideTabW`) + { + emuSlideTabW = tableCalcW ? tableCalcW : inch2Emu((tablePropX ? tablePropX / EMU : arrInchMargins[1]) + arrInchMargins[3]); + if (tableProps.verbose) + console.log("| emuSlideTabW .................................... = ".concat((emuSlideTabW / EMU).toFixed(1))); + } + // STEP 5: Calculate column widths if not provided (emuSlideTabW will be used below to determine lines-per-col) + if (!tableProps.colW || !Array.isArray(tableProps.colW)) { + if (tableProps.colW && !isNaN(Number(tableProps.colW))) { + var arrColW_1 = []; + var firstRow = tableRows[0] || []; + firstRow.forEach(function () { return arrColW_1.push(tableProps.colW); }); + tableProps.colW = []; + arrColW_1.forEach(function (val) { + if (Array.isArray(tableProps.colW)) + tableProps.colW.push(val); + }); + } + // No column widths provided? Then distribute cols. + else { + tableProps.colW = []; + for (var iCol = 0; iCol < numCols; iCol++) { + tableProps.colW.push(emuSlideTabW / EMU / numCols); + } + } + } + // STEP 6: **MAIN** Iterate over rows, add table content, create new slides as rows overflow + var newTableRowSlide = { rows: [] }; + tableRows.forEach(function (row, iRow) { + // A: Row variables + var rowCellLines = []; + var maxCellMarTopEmu = 0; + var maxCellMarBtmEmu = 0; + // B: Create new row in data model, calc `maxCellMar*` + var currTableRow = []; + row.forEach(function (cell) { + currTableRow.push({ + _type: SLIDE_OBJECT_TYPES.tablecell, + text: [], + options: cell.options, + }); + /** FUTURE: DEPRECATED: + * - Backwards-Compat: Oops! Discovered we were still using points for cell margin before v3.8.0 (UGH!) + * - We cant introduce a breaking change before v4.0, so... + */ + if (cell.options.margin && cell.options.margin[0] >= 1) { + if (cell.options.margin && cell.options.margin[0] && valToPts(cell.options.margin[0]) > maxCellMarTopEmu) + maxCellMarTopEmu = valToPts(cell.options.margin[0]); + else if (tableProps.margin && tableProps.margin[0] && valToPts(tableProps.margin[0]) > maxCellMarTopEmu) + maxCellMarTopEmu = valToPts(tableProps.margin[0]); + if (cell.options.margin && cell.options.margin[2] && valToPts(cell.options.margin[2]) > maxCellMarBtmEmu) + maxCellMarBtmEmu = valToPts(cell.options.margin[2]); + else if (tableProps.margin && tableProps.margin[2] && valToPts(tableProps.margin[2]) > maxCellMarBtmEmu) + maxCellMarBtmEmu = valToPts(tableProps.margin[2]); + } + else { + if (cell.options.margin && cell.options.margin[0] && inch2Emu(cell.options.margin[0]) > maxCellMarTopEmu) + maxCellMarTopEmu = inch2Emu(cell.options.margin[0]); + else if (tableProps.margin && tableProps.margin[0] && inch2Emu(tableProps.margin[0]) > maxCellMarTopEmu) + maxCellMarTopEmu = inch2Emu(tableProps.margin[0]); + if (cell.options.margin && cell.options.margin[2] && inch2Emu(cell.options.margin[2]) > maxCellMarBtmEmu) + maxCellMarBtmEmu = inch2Emu(cell.options.margin[2]); + else if (tableProps.margin && tableProps.margin[2] && inch2Emu(tableProps.margin[2]) > maxCellMarBtmEmu) + maxCellMarBtmEmu = inch2Emu(tableProps.margin[2]); + } + }); + // C: Calc usable vertical space/table height. Set default value first, adjust below when necessary. + calcSlideTabH(); + emuTabCurrH += maxCellMarTopEmu + maxCellMarBtmEmu; // Start row height with margins + if (tableProps.verbose && iRow === 0) + console.log("| SLIDE [".concat(tableRowSlides.length, "]: emuSlideTabH ...... = ").concat((emuSlideTabH / EMU).toFixed(1), " ")); + // D: --==[[ BUILD DATA SET ]]==-- (iterate over cells: split text into lines[], set `lineHeight`) + row.forEach(function (cell, iCell) { + var newCell = { + _type: SLIDE_OBJECT_TYPES.tablecell, + _lines: null, + _lineHeight: inch2Emu(((cell.options && cell.options.fontSize ? cell.options.fontSize : tableProps.fontSize ? tableProps.fontSize : DEF_FONT_SIZE) * + (LINEH_MODIFIER + (tableProps.autoPageLineWeight ? tableProps.autoPageLineWeight : 0))) / + 100), + text: [], + options: cell.options, + }; + // E-1: Exempt cells with `rowspan` from increasing lineHeight (or we could create a new slide when unecessary!) + if (newCell.options.rowspan) + newCell._lineHeight = 0; + // E-2: The parseTextToLines method uses `autoPageCharWeight`, so inherit from table options + newCell.options.autoPageCharWeight = tableProps.autoPageCharWeight ? tableProps.autoPageCharWeight : null; + // E-3: **MAIN** Parse cell contents into lines based upon col width, font, etc + var totalColW = tableProps.colW[iCell]; + if (cell.options.colspan && Array.isArray(tableProps.colW)) { + totalColW = tableProps.colW.filter(function (_cell, idx) { return idx >= iCell && idx < idx + cell.options.colspan; }).reduce(function (prev, curr) { return prev + curr; }); + } + // E-4: Create lines based upon available column width + newCell._lines = parseTextToLines(cell, totalColW, false); + // E-5: Add cell to array + rowCellLines.push(newCell); + }); + /** E: --==[[ PAGE DATA SET ]]==-- + * Add text one-line-a-time to this row's cells until: lines are exhausted OR table height limit is hit + * + * Design: + * - Building cells L-to-R/loop style wont work as one could be 100 lines and another 1 line + * - Therefore, build the whole row, one-line-at-a-time, across each table columns + * - Then, when the vertical size limit is hit is by any of the cells, make a new slide and continue adding any remaining lines + * + * Implementation: + * - `rowCellLines` is an array of cells, one for each column in the table, with each cell containing an array of lines + * + * Sample Data: + * - `rowCellLines` ..: [ TableCell, TableCell, TableCell ] + * - `TableCell` .....: { _type: 'tablecell', _lines: TableCell[], _lineHeight: 10 } + * - `_lines` ........: [ {_type: 'tablecell', text: 'cell-1,line-1', options: {…}}, {_type: 'tablecell', text: 'cell-1,line-2', options: {…}} } + * - `_lines` is TableCell[] (the 1-N words in the line) + * { + * _lines: [{ text:'cell-1,line-1' }, { text:'cell-1,line-2' }], // TOTAL-CELL-HEIGHT = 2 + * _lines: [{ text:'cell-2,line-1' }, { text:'cell-2,line-2' }], // TOTAL-CELL-HEIGHT = 2 + * _lines: [{ text:'cell-3,line-1' }, { text:'cell-3,line-2' }, { text:'cell-3,line-3' }, { text:'cell-3,line-4' }], // TOTAL-CELL-HEIGHT = 4 + * } + * + * Example: 2 rows, with the firstrow overflowing onto a new slide + * SLIDE 1: + * |--------|--------|--------|--------| + * | line-1 | line-1 | line-1 | line-1 | + * | | | line-2 | | + * | | | line-3 | | + * |--------|--------|--------|--------| + * + * SLIDE 2: + * |--------|--------|--------|--------| + * | | | line-4 | | + * |--------|--------|--------|--------| + * | line-1 | line-1 | line-1 | line-1 | + * |--------|--------|--------|--------| + */ + if (tableProps.verbose) + console.log("\n| SLIDE [".concat(tableRowSlides.length, "]: ROW [").concat(iRow, "]: START...")); + var currCellIdx = 0; + var emuLineMaxH = 0; + var isDone = false; + while (!isDone) { + var srcCell = rowCellLines[currCellIdx]; + var tgtCell = currTableRow[currCellIdx]; // NOTE: may be redefined below (a new row may be created, thus changing this value) + // 1: calc emuLineMaxH + rowCellLines.forEach(function (cell) { + if (cell._lineHeight >= emuLineMaxH) + emuLineMaxH = cell._lineHeight; + }); + // 2: create a new slide if there is insufficient room for the current row + if (emuTabCurrH + emuLineMaxH > emuSlideTabH) { + if (tableProps.verbose) { + console.log('\n|-----------------------------------------------------------------------|'); + // prettier-ignore + console.log("|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => ".concat((emuTabCurrH / EMU).toFixed(2), " + ").concat((srcCell._lineHeight / EMU).toFixed(2), " > ").concat(emuSlideTabH / EMU)); + console.log('|-----------------------------------------------------------------------|\n\n'); + } + // A: add current row slide or it will be lost (only if it has rows and text) + if (currTableRow.length > 0 && currTableRow.map(function (cell) { return cell.text.length; }).reduce(function (p, n) { return p + n; }) > 0) + newTableRowSlide.rows.push(currTableRow); + // B: add current slide to Slides array + tableRowSlides.push(newTableRowSlide); + // C: reset working/curr slide to hold rows as they're created + var newRows = []; + newTableRowSlide = { rows: newRows }; + // D: reset working/curr row + currTableRow = []; + row.forEach(function (cell) { return currTableRow.push({ _type: SLIDE_OBJECT_TYPES.tablecell, text: [], options: cell.options }); }); + // E: Calc usable vertical space/table height now as we may still be in the same row and code above ("C: Calc usable vertical space/table height.") calc may now be invalid + calcSlideTabH(); + emuTabCurrH += maxCellMarTopEmu + maxCellMarBtmEmu; // Start row height with margins + if (tableProps.verbose) + console.log("| SLIDE [".concat(tableRowSlides.length, "]: emuSlideTabH ...... = ").concat((emuSlideTabH / EMU).toFixed(1), " ")); + // F: reset current table height for this new Slide + emuTabCurrH = 0; + // G: handle repeat headers option /or/ Add new empty row to continue current lines into + if ((tableProps.addHeaderToEach || tableProps.autoPageRepeatHeader) && tableProps._arrObjTabHeadRows) { + tableProps._arrObjTabHeadRows.forEach(function (row) { + var newHeadRow = []; + var maxLineHeight = 0; + row.forEach(function (cell) { + newHeadRow.push(cell); + if (cell._lineHeight > maxLineHeight) + maxLineHeight = cell._lineHeight; + }); + newTableRowSlide.rows.push(newHeadRow); + emuTabCurrH += maxLineHeight; // TODO: what about margins? dont we need to include cell margin in line height? + }); + } + // WIP: NEW: TEST THIS!! + tgtCell = currTableRow[currCellIdx]; + } + // 3: set array of words that comprise this line + var currLine = srcCell._lines.shift(); + // 4: create new line by adding all words from curr line (or add empty if there are no words to avoid "needs repair" issue triggered when cells have null content) + if (Array.isArray(tgtCell.text)) { + if (currLine) + tgtCell.text = tgtCell.text.concat(currLine); + else if (tgtCell.text.length === 0) + tgtCell.text = tgtCell.text.concat({ _type: SLIDE_OBJECT_TYPES.tablecell, text: '' }); + // IMPORTANT: ^^^ add empty if there are no words to avoid "needs repair" issue triggered when cells have null content + } + // 5: increase table height by the curr line height (if we're on the last column) + if (currCellIdx === rowCellLines.length - 1) + emuTabCurrH += emuLineMaxH; + // 6: advance column/cell index (or circle back to first one to continue adding lines) + currCellIdx = currCellIdx < rowCellLines.length - 1 ? currCellIdx + 1 : 0; + // 7: done? + var brent = rowCellLines.map(function (cell) { return cell._lines.length; }).reduce(function (prev, next) { return prev + next; }); + if (brent === 0) + isDone = true; + } + // F: Flush/capture row buffer before it resets at the top of this loop + if (currTableRow.length > 0) + newTableRowSlide.rows.push(currTableRow); + if (tableProps.verbose) + console.log("- SLIDE [".concat(tableRowSlides.length, "]: ROW [").concat(iRow, "]: ...COMPLETE ...... emuTabCurrH = ").concat((emuTabCurrH / EMU).toFixed(2), " ( emuSlideTabH = ").concat((emuSlideTabH / EMU).toFixed(2), " )")); + }); + // STEP 7: Flush buffer / add final slide + tableRowSlides.push(newTableRowSlide); + if (tableProps.verbose) { + console.log("\n|================================================|"); + console.log("| FINAL: tableRowSlides.length = ".concat(tableRowSlides.length)); + tableRowSlides.forEach(function (slide) { return console.log(slide); }); + console.log("|================================================|\n\n"); + } + // LAST: + return tableRowSlides; +} +/** + * Reproduces an HTML table as a PowerPoint table - including column widths, style, etc. - creates 1 or more slides as needed + * @param {PptxGenJS} pptx - pptxgenjs instance + * @param {string} tabEleId - HTMLElementID of the table + * @param {ITableToSlidesOpts} options - array of options (e.g.: tabsize) + * @param {SlideLayout} masterSlide - masterSlide + */ +function genTableToSlides(pptx, tabEleId, options, masterSlide) { + if (options === void 0) { options = {}; } + var opts = options || {}; + opts.slideMargin = opts.slideMargin || opts.slideMargin === 0 ? opts.slideMargin : 0.5; + var emuSlideTabW = opts.w || pptx.presLayout.width; + var arrObjTabHeadRows = []; + var arrObjTabBodyRows = []; + var arrObjTabFootRows = []; + var arrColW = []; + var arrTabColW = []; + var arrInchMargins = [0.5, 0.5, 0.5, 0.5]; // TRBL-style + var intTabW = 0; + // REALITY-CHECK: + if (!document.getElementById(tabEleId)) + throw new Error('tableToSlides: Table ID "' + tabEleId + '" does not exist!'); + // STEP 1: Set margins + if (masterSlide && masterSlide._margin) { + if (Array.isArray(masterSlide._margin)) + arrInchMargins = masterSlide._margin; + else if (!isNaN(masterSlide._margin)) + arrInchMargins = [masterSlide._margin, masterSlide._margin, masterSlide._margin, masterSlide._margin]; + opts.slideMargin = arrInchMargins; + } + else if (opts && opts.slideMargin) { + if (Array.isArray(opts.slideMargin)) + arrInchMargins = opts.slideMargin; + else if (!isNaN(opts.slideMargin)) + arrInchMargins = [opts.slideMargin, opts.slideMargin, opts.slideMargin, opts.slideMargin]; + } + emuSlideTabW = (opts.w ? inch2Emu(opts.w) : pptx.presLayout.width) - inch2Emu(arrInchMargins[1] + arrInchMargins[3]); + if (opts.verbose) { + console.log('[[VERBOSE MODE]]'); + console.log('|-- `tableToSlides` ----------------------------------------------------|'); + console.log("| tableProps.h .................................... = ".concat(opts.h)); + console.log("| tableProps.w .................................... = ".concat(opts.w)); + console.log("| pptx.presLayout.width ........................... = ".concat((pptx.presLayout.width / EMU).toFixed(1))); + console.log("| pptx.presLayout.height .......................... = ".concat((pptx.presLayout.height / EMU).toFixed(1))); + console.log("| emuSlideTabW .................................... = ".concat((emuSlideTabW / EMU).toFixed(1))); + } + // STEP 2: Grab table col widths - just find the first availble row, either thead/tbody/tfoot, others may have colspans, who cares, we only need col widths from 1 + var firstRowCells = document.querySelectorAll("#".concat(tabEleId, " tr:first-child th")); + if (firstRowCells.length === 0) + firstRowCells = document.querySelectorAll("#".concat(tabEleId, " tr:first-child td")); + firstRowCells.forEach(function (cell) { + if (cell.getAttribute('colspan')) { + // Guesstimate (divide evenly) col widths + // NOTE: both j$query and vanilla selectors return {0} when table is not visible) + for (var idxc = 0; idxc < Number(cell.getAttribute('colspan')); idxc++) { + arrTabColW.push(Math.round(cell.offsetWidth / Number(cell.getAttribute('colspan')))); + } + } + else { + arrTabColW.push(cell.offsetWidth); + } + }); + arrTabColW.forEach(function (colW) { + intTabW += colW; + }); + // STEP 3: Calc/Set column widths by using same column width percent from HTML table + arrTabColW.forEach(function (colW, idxW) { + var intCalcWidth = Number(((Number(emuSlideTabW) * ((colW / intTabW) * 100)) / 100 / EMU).toFixed(2)); + var intMinWidth = 0; + var colSelectorMin = document.querySelector("#".concat(tabEleId, " thead tr:first-child th:nth-child(").concat(idxW + 1, ")")); + if (colSelectorMin) + intMinWidth = Number(colSelectorMin.getAttribute('data-pptx-min-width')); + var colSelectorSet = document.querySelector("#".concat(tabEleId, " thead tr:first-child th:nth-child(").concat(idxW + 1, ")")); + if (colSelectorSet) + intMinWidth = Number(colSelectorSet.getAttribute('data-pptx-width')); + arrColW.push(intMinWidth > intCalcWidth ? intMinWidth : intCalcWidth); + }); + if (opts.verbose) { + console.log("| arrColW ......................................... = [".concat(arrColW.join(', '), "]")); + } + // STEP 4: Iterate over each table element and create data arrays (text and opts) + // NOTE: We create 3 arrays instead of one so we can loop over body then show header/footer rows on first and last page + var tableParts = ['thead', 'tbody', 'tfoot']; + tableParts.forEach(function (part) { + document.querySelectorAll("#".concat(tabEleId, " ").concat(part, " tr")).forEach(function (row) { + var arrObjTabCells = []; + Array.from(row.cells).forEach(function (cell) { + // A: Get RGB text/bkgd colors + var arrRGB1 = window.getComputedStyle(cell).getPropertyValue('color').replace(/\s+/gi, '').replace('rgba(', '').replace('rgb(', '').replace(')', '').split(','); + var arrRGB2 = window + .getComputedStyle(cell) + .getPropertyValue('background-color') + .replace(/\s+/gi, '') + .replace('rgba(', '') + .replace('rgb(', '') + .replace(')', '') + .split(','); + if ( + // NOTE: (ISSUE#57): Default for unstyled tables is black bkgd, so use white instead + window.getComputedStyle(cell).getPropertyValue('background-color') === 'rgba(0, 0, 0, 0)' || + window.getComputedStyle(cell).getPropertyValue('transparent')) { + arrRGB2 = ['255', '255', '255']; + } + // B: Create option object + var cellOpts = { + align: null, + bold: window.getComputedStyle(cell).getPropertyValue('font-weight') === 'bold' || + Number(window.getComputedStyle(cell).getPropertyValue('font-weight')) >= 500 + ? true + : false, + border: null, + color: rgbToHex(Number(arrRGB1[0]), Number(arrRGB1[1]), Number(arrRGB1[2])), + fill: { color: rgbToHex(Number(arrRGB2[0]), Number(arrRGB2[1]), Number(arrRGB2[2])) }, + fontFace: (window.getComputedStyle(cell).getPropertyValue('font-family') || '').split(',')[0].replace(/"/g, '').replace('inherit', '').replace('initial', '') || + null, + fontSize: Number(window.getComputedStyle(cell).getPropertyValue('font-size').replace(/[a-z]/gi, '')), + margin: null, + colspan: Number(cell.getAttribute('colspan')) || null, + rowspan: Number(cell.getAttribute('rowspan')) || null, + valign: null, + }; + if (['left', 'center', 'right', 'start', 'end'].indexOf(window.getComputedStyle(cell).getPropertyValue('text-align')) > -1) { + var align = window.getComputedStyle(cell).getPropertyValue('text-align').replace('start', 'left').replace('end', 'right'); + cellOpts.align = align === 'center' ? 'center' : align === 'left' ? 'left' : align === 'right' ? 'right' : null; + } + if (['top', 'middle', 'bottom'].indexOf(window.getComputedStyle(cell).getPropertyValue('vertical-align')) > -1) { + var valign = window.getComputedStyle(cell).getPropertyValue('vertical-align'); + cellOpts.valign = valign === 'top' ? 'top' : valign === 'middle' ? 'middle' : valign === 'bottom' ? 'bottom' : null; + } + // C: Add padding [margin] (if any) + // NOTE: Margins translate: px->pt 1:1 (e.g.: a 20px padded cell looks the same in PPTX as 20pt Text Inset/Padding) + if (window.getComputedStyle(cell).getPropertyValue('padding-left')) { + cellOpts.margin = [0, 0, 0, 0]; + var sidesPad = ['padding-top', 'padding-right', 'padding-bottom', 'padding-left']; + sidesPad.forEach(function (val, idxs) { + cellOpts.margin[idxs] = Math.round(Number(window.getComputedStyle(cell).getPropertyValue(val).replace(/\D/gi, ''))); + }); + } + // D: Add border (if any) + if (window.getComputedStyle(cell).getPropertyValue('border-top-width') || + window.getComputedStyle(cell).getPropertyValue('border-right-width') || + window.getComputedStyle(cell).getPropertyValue('border-bottom-width') || + window.getComputedStyle(cell).getPropertyValue('border-left-width')) { + cellOpts.border = [null, null, null, null]; + var sidesBor = ['top', 'right', 'bottom', 'left']; + sidesBor.forEach(function (val, idxb) { + var intBorderW = Math.round(Number(window + .getComputedStyle(cell) + .getPropertyValue('border-' + val + '-width') + .replace('px', ''))); + var arrRGB = []; + arrRGB = window + .getComputedStyle(cell) + .getPropertyValue('border-' + val + '-color') + .replace(/\s+/gi, '') + .replace('rgba(', '') + .replace('rgb(', '') + .replace(')', '') + .split(','); + var strBorderC = rgbToHex(Number(arrRGB[0]), Number(arrRGB[1]), Number(arrRGB[2])); + cellOpts.border[idxb] = { pt: intBorderW, color: strBorderC }; + }); + } + // LAST: Add cell + arrObjTabCells.push({ + _type: SLIDE_OBJECT_TYPES.tablecell, + text: cell.innerText, + options: cellOpts, + }); + }); + switch (part) { + case 'thead': + arrObjTabHeadRows.push(arrObjTabCells); + break; + case 'tbody': + arrObjTabBodyRows.push(arrObjTabCells); + break; + case 'tfoot': + arrObjTabFootRows.push(arrObjTabCells); + break; + default: + console.log("table parsing: unexpected table part: ".concat(part)); + break; + } + }); + }); + // STEP 5: Break table into Slides as needed + // Pass head-rows as there is an option to add to each table and the parse func needs this data to fulfill that option + opts._arrObjTabHeadRows = arrObjTabHeadRows || null; + opts.colW = arrColW; + getSlidesForTableRows(__spreadArray(__spreadArray(__spreadArray([], arrObjTabHeadRows, true), arrObjTabBodyRows, true), arrObjTabFootRows, true), opts, pptx.presLayout, masterSlide).forEach(function (slide, idxTr) { + // A: Create new Slide + var newSlide = pptx.addSlide({ masterName: opts.masterSlideName || null }); + // B: DESIGN: Reset `y` to startY or margin after first Slide (ISSUE#43, ISSUE#47, ISSUE#48) + if (idxTr === 0) + opts.y = opts.y || arrInchMargins[0]; + if (idxTr > 0) + opts.y = opts.autoPageSlideStartY || opts.newSlideStartY || arrInchMargins[0]; + if (opts.verbose) + console.log("| opts.autoPageSlideStartY: ".concat(opts.autoPageSlideStartY, " / arrInchMargins[0]: ").concat(arrInchMargins[0], " => opts.y = ").concat(opts.y)); + // C: Add table to Slide + newSlide.addTable(slide.rows, { x: opts.x || arrInchMargins[3], y: opts.y, w: Number(emuSlideTabW) / EMU, colW: arrColW, autoPage: false }); + // D: Add any additional objects + if (opts.addImage) { + opts.addImage.options = opts.addImage.options || {}; + if (!opts.addImage.image || (!opts.addImage.image.path && !opts.addImage.image.data)) { + console.warn('Warning: tableToSlides.addImage requires either `path` or `data`'); + } + else { + newSlide.addImage({ + path: opts.addImage.image.path, + data: opts.addImage.image.data, + x: opts.addImage.options.x, + y: opts.addImage.options.y, + w: opts.addImage.options.w, + h: opts.addImage.options.h, + }); + } + } + if (opts.addShape) + newSlide.addShape(opts.addShape.shape, opts.addShape.options || {}); + if (opts.addTable) + newSlide.addTable(opts.addTable.rows, opts.addTable.options || {}); + if (opts.addText) + newSlide.addText(opts.addText.text, opts.addText.options || {}); + }); } -/** - * PptxGenJS: XML Generation - */ -var imageSizingXml = { - cover: function (imgSize, boxDim) { - var imgRatio = imgSize.h / imgSize.w, boxRatio = boxDim.h / boxDim.w, isBoxBased = boxRatio > imgRatio, width = isBoxBased ? boxDim.h / imgRatio : boxDim.w, height = isBoxBased ? boxDim.h : boxDim.w * imgRatio, hzPerc = Math.round(1e5 * 0.5 * (1 - boxDim.w / width)), vzPerc = Math.round(1e5 * 0.5 * (1 - boxDim.h / height)); - return ''; - }, - contain: function (imgSize, boxDim) { - var imgRatio = imgSize.h / imgSize.w, boxRatio = boxDim.h / boxDim.w, widthBased = boxRatio > imgRatio, width = widthBased ? boxDim.w : boxDim.h / imgRatio, height = widthBased ? boxDim.w * imgRatio : boxDim.h, hzPerc = Math.round(1e5 * 0.5 * (1 - boxDim.w / width)), vzPerc = Math.round(1e5 * 0.5 * (1 - boxDim.h / height)); - return ''; - }, - crop: function (imageSize, boxDim) { - var l = boxDim.x, r = imageSize.w - (boxDim.x + boxDim.w), t = boxDim.y, b = imageSize.h - (boxDim.y + boxDim.h), lPerc = Math.round(1e5 * (l / imageSize.w)), rPerc = Math.round(1e5 * (r / imageSize.w)), tPerc = Math.round(1e5 * (t / imageSize.h)), bPerc = Math.round(1e5 * (b / imageSize.h)); - return ''; - }, -}; -/** - * Transforms a slide or slideLayout to resulting XML string - Creates `ppt/slide*.xml` - * @param {PresSlide|SlideLayout} slideObject - slide object created within createSlideObject - * @return {string} XML string with as the root - */ -function slideObjectToXml(slide) { - var strSlideXml = slide._name ? '' : ''; - var intTableNum = 1; - // STEP 1: Add background color/image (ensure only a single `` tag is created, ex: when master-baskground has both `color` and `path`) - if (slide._bkgdImgRid) { - strSlideXml += ""); - } - else if (slide.background && slide.background.color) { - strSlideXml += "".concat(genXmlColorSelection(slide.background), ""); - } - else if (!slide.bkgd && slide._name && slide._name === DEF_PRES_LAYOUT_NAME) { - // NOTE: Default [white] background is needed on slideMaster1.xml to avoid gray background in Keynote (and Finder previews) - strSlideXml += ""; - } - // STEP 2: Continue slide by starting spTree node - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ''; - // STEP 3: Loop over all Slide.data objects and add them to this slide - slide._slideObjects.forEach(function (slideItemObj, idx) { - var _a; - var x = 0, y = 0, cx = getSmartParseNumber('75%', 'X', slide._presLayout), cy = 0; - var placeholderObj; - var locationAttr = ''; - if (slide._slideLayout !== undefined && - slide._slideLayout._slideObjects !== undefined && - slideItemObj.options && - slideItemObj.options.placeholder) { - placeholderObj = slide._slideLayout._slideObjects.filter(function (object) { return object.options.placeholder === slideItemObj.options.placeholder; })[0]; - } - // A: Set option vars - slideItemObj.options = slideItemObj.options || {}; - if (typeof slideItemObj.options.x !== 'undefined') - x = getSmartParseNumber(slideItemObj.options.x, 'X', slide._presLayout); - if (typeof slideItemObj.options.y !== 'undefined') - y = getSmartParseNumber(slideItemObj.options.y, 'Y', slide._presLayout); - if (typeof slideItemObj.options.w !== 'undefined') - cx = getSmartParseNumber(slideItemObj.options.w, 'X', slide._presLayout); - if (typeof slideItemObj.options.h !== 'undefined') - cy = getSmartParseNumber(slideItemObj.options.h, 'Y', slide._presLayout); - // If using a placeholder then inherit it's position - if (placeholderObj) { - if (placeholderObj.options.x || placeholderObj.options.x === 0) - x = getSmartParseNumber(placeholderObj.options.x, 'X', slide._presLayout); - if (placeholderObj.options.y || placeholderObj.options.y === 0) - y = getSmartParseNumber(placeholderObj.options.y, 'Y', slide._presLayout); - if (placeholderObj.options.w || placeholderObj.options.w === 0) - cx = getSmartParseNumber(placeholderObj.options.w, 'X', slide._presLayout); - if (placeholderObj.options.h || placeholderObj.options.h === 0) - cy = getSmartParseNumber(placeholderObj.options.h, 'Y', slide._presLayout); - } - // - if (slideItemObj.options.flipH) - locationAttr += ' flipH="1"'; - if (slideItemObj.options.flipV) - locationAttr += ' flipV="1"'; - if (slideItemObj.options.rotate) - locationAttr += ' rot="' + convertRotationDegrees(slideItemObj.options.rotate) + '"'; - // B: Add OBJECT to the current Slide - switch (slideItemObj._type) { - case SLIDE_OBJECT_TYPES.table: - var arrTabRows_1 = slideItemObj.arrTabRows; - var objTabOpts_1 = slideItemObj.options; - var intColCnt_1 = 0, intColW = 0; - var cellOpts_1; - // Calc number of columns - // NOTE: Cells may have a colspan, so merely taking the length of the [0] (or any other) row is not - // ....: sufficient to determine column count. Therefore, check each cell for a colspan and total cols as reqd - arrTabRows_1[0].forEach(function (cell) { - cellOpts_1 = cell.options || null; - intColCnt_1 += cellOpts_1 && cellOpts_1.colspan ? Number(cellOpts_1.colspan) : 1; - }); - // STEP 1: Start Table XML - // NOTE: Non-numeric cNvPr id values will trigger "presentation needs repair" type warning in MS-PPT-2013 - var strXml_1 = ""); - strXml_1 += - '' + - ' ' + - ''; - strXml_1 += ""); - strXml_1 += ''; - // + ' '; - // TODO: Support banded rows, first/last row, etc. - // NOTE: Banding, etc. only shows when using a table style! (or set alt row color if banding) - // - // STEP 2: Set column widths - // Evenly distribute cols/rows across size provided when applicable (calc them if only overall dimensions were provided) - // A: Col widths provided? - if (Array.isArray(objTabOpts_1.colW)) { - strXml_1 += ''; - for (var col = 0; col < intColCnt_1; col++) { - var w = inch2Emu(objTabOpts_1.colW[col]); - if (w == null || isNaN(w)) { - w = (typeof slideItemObj.options.w === 'number' ? slideItemObj.options.w : 1) / intColCnt_1; - } - strXml_1 += ''; - } - strXml_1 += ''; - } - // B: Table Width provided without colW? Then distribute cols - else { - intColW = objTabOpts_1.colW ? objTabOpts_1.colW : EMU; - if (slideItemObj.options.w && !objTabOpts_1.colW) - intColW = Math.round((typeof slideItemObj.options.w === 'number' ? slideItemObj.options.w : 1) / intColCnt_1); - strXml_1 += ''; - for (var colw = 0; colw < intColCnt_1; colw++) { - strXml_1 += ''; - } - strXml_1 += ''; - } - // STEP 3: Build our row arrays into an actual grid to match the XML we will be building next (ISSUE #36) - // Note row arrays can arrive "lopsided" as in row1:[1,2,3] row2:[3] when first two cols rowspan!, - // so a simple loop below in XML building wont suffice to build table correctly. - // We have to build an actual grid now - /* - EX: (A0:rowspan=3, B1:rowspan=2, C1:colspan=2) +/** + * PptxGenJS: XML Generation + */ +var imageSizingXml = { + cover: function (imgSize, boxDim) { + var imgRatio = imgSize.h / imgSize.w, boxRatio = boxDim.h / boxDim.w, isBoxBased = boxRatio > imgRatio, width = isBoxBased ? boxDim.h / imgRatio : boxDim.w, height = isBoxBased ? boxDim.h : boxDim.w * imgRatio, hzPerc = Math.round(1e5 * 0.5 * (1 - boxDim.w / width)), vzPerc = Math.round(1e5 * 0.5 * (1 - boxDim.h / height)); + return ''; + }, + contain: function (imgSize, boxDim) { + var imgRatio = imgSize.h / imgSize.w, boxRatio = boxDim.h / boxDim.w, widthBased = boxRatio > imgRatio, width = widthBased ? boxDim.w : boxDim.h / imgRatio, height = widthBased ? boxDim.w * imgRatio : boxDim.h, hzPerc = Math.round(1e5 * 0.5 * (1 - boxDim.w / width)), vzPerc = Math.round(1e5 * 0.5 * (1 - boxDim.h / height)); + return ''; + }, + crop: function (imageSize, boxDim) { + var l = boxDim.x, r = imageSize.w - (boxDim.x + boxDim.w), t = boxDim.y, b = imageSize.h - (boxDim.y + boxDim.h), lPerc = Math.round(1e5 * (l / imageSize.w)), rPerc = Math.round(1e5 * (r / imageSize.w)), tPerc = Math.round(1e5 * (t / imageSize.h)), bPerc = Math.round(1e5 * (b / imageSize.h)); + return ''; + }, +}; +/** + * Transforms a slide or slideLayout to resulting XML string - Creates `ppt/slide*.xml` + * @param {PresSlide|SlideLayout} slideObject - slide object created within createSlideObject + * @return {string} XML string with as the root + */ +function slideObjectToXml(slide) { + var strSlideXml = slide._name ? '' : ''; + var intTableNum = 1; + // STEP 1: Add background color/image (ensure only a single `` tag is created, ex: when master-baskground has both `color` and `path`) + if (slide._bkgdImgRid) { + strSlideXml += ""); + } + else if (slide.background && slide.background.color) { + strSlideXml += "".concat(genXmlColorSelection(slide.background), ""); + } + else if (!slide.bkgd && slide._name && slide._name === DEF_PRES_LAYOUT_NAME) { + // NOTE: Default [white] background is needed on slideMaster1.xml to avoid gray background in Keynote (and Finder previews) + strSlideXml += ""; + } + // STEP 2: Continue slide by starting spTree node + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ''; + // STEP 3: Loop over all Slide.data objects and add them to this slide + slide._slideObjects.forEach(function (slideItemObj, idx) { + var _a; + var x = 0, y = 0, cx = getSmartParseNumber('75%', 'X', slide._presLayout), cy = 0; + var placeholderObj; + var locationAttr = ''; + if (slide._slideLayout !== undefined && + slide._slideLayout._slideObjects !== undefined && + slideItemObj.options && + slideItemObj.options.placeholder) { + placeholderObj = slide._slideLayout._slideObjects.filter(function (object) { return object.options.placeholder === slideItemObj.options.placeholder; })[0]; + } + // A: Set option vars + slideItemObj.options = slideItemObj.options || {}; + if (typeof slideItemObj.options.x !== 'undefined') + x = getSmartParseNumber(slideItemObj.options.x, 'X', slide._presLayout); + if (typeof slideItemObj.options.y !== 'undefined') + y = getSmartParseNumber(slideItemObj.options.y, 'Y', slide._presLayout); + if (typeof slideItemObj.options.w !== 'undefined') + cx = getSmartParseNumber(slideItemObj.options.w, 'X', slide._presLayout); + if (typeof slideItemObj.options.h !== 'undefined') + cy = getSmartParseNumber(slideItemObj.options.h, 'Y', slide._presLayout); + // If using a placeholder then inherit it's position + if (placeholderObj) { + if (placeholderObj.options.x || placeholderObj.options.x === 0) + x = getSmartParseNumber(placeholderObj.options.x, 'X', slide._presLayout); + if (placeholderObj.options.y || placeholderObj.options.y === 0) + y = getSmartParseNumber(placeholderObj.options.y, 'Y', slide._presLayout); + if (placeholderObj.options.w || placeholderObj.options.w === 0) + cx = getSmartParseNumber(placeholderObj.options.w, 'X', slide._presLayout); + if (placeholderObj.options.h || placeholderObj.options.h === 0) + cy = getSmartParseNumber(placeholderObj.options.h, 'Y', slide._presLayout); + } + // + if (slideItemObj.options.flipH) + locationAttr += ' flipH="1"'; + if (slideItemObj.options.flipV) + locationAttr += ' flipV="1"'; + if (slideItemObj.options.rotate) + locationAttr += ' rot="' + convertRotationDegrees(slideItemObj.options.rotate) + '"'; + // B: Add OBJECT to the current Slide + switch (slideItemObj._type) { + case SLIDE_OBJECT_TYPES.table: + var arrTabRows_1 = slideItemObj.arrTabRows; + var objTabOpts_1 = slideItemObj.options; + var intColCnt_1 = 0, intColW = 0; + var cellOpts_1; + // Calc number of columns + // NOTE: Cells may have a colspan, so merely taking the length of the [0] (or any other) row is not + // ....: sufficient to determine column count. Therefore, check each cell for a colspan and total cols as reqd + arrTabRows_1[0].forEach(function (cell) { + cellOpts_1 = cell.options || null; + intColCnt_1 += cellOpts_1 && cellOpts_1.colspan ? Number(cellOpts_1.colspan) : 1; + }); + // STEP 1: Start Table XML + // NOTE: Non-numeric cNvPr id values will trigger "presentation needs repair" type warning in MS-PPT-2013 + var strXml_1 = ""); + strXml_1 += + '' + + ' ' + + ''; + strXml_1 += ""); + strXml_1 += ''; + // + ' '; + // TODO: Support banded rows, first/last row, etc. + // NOTE: Banding, etc. only shows when using a table style! (or set alt row color if banding) + // + // STEP 2: Set column widths + // Evenly distribute cols/rows across size provided when applicable (calc them if only overall dimensions were provided) + // A: Col widths provided? + if (Array.isArray(objTabOpts_1.colW)) { + strXml_1 += ''; + for (var col = 0; col < intColCnt_1; col++) { + var w = inch2Emu(objTabOpts_1.colW[col]); + if (w == null || isNaN(w)) { + w = (typeof slideItemObj.options.w === 'number' ? slideItemObj.options.w : 1) / intColCnt_1; + } + strXml_1 += ''; + } + strXml_1 += ''; + } + // B: Table Width provided without colW? Then distribute cols + else { + intColW = objTabOpts_1.colW ? objTabOpts_1.colW : EMU; + if (slideItemObj.options.w && !objTabOpts_1.colW) + intColW = Math.round((typeof slideItemObj.options.w === 'number' ? slideItemObj.options.w : 1) / intColCnt_1); + strXml_1 += ''; + for (var colw = 0; colw < intColCnt_1; colw++) { + strXml_1 += ''; + } + strXml_1 += ''; + } + // STEP 3: Build our row arrays into an actual grid to match the XML we will be building next (ISSUE #36) + // Note row arrays can arrive "lopsided" as in row1:[1,2,3] row2:[3] when first two cols rowspan!, + // so a simple loop below in XML building wont suffice to build table correctly. + // We have to build an actual grid now + /* + EX: (A0:rowspan=3, B1:rowspan=2, C1:colspan=2) - /------|------|------|------\ - | A0 | B0 | C0 | D0 | - | | B1 | C1 | | - | | | C2 | D2 | - \------|------|------|------/ - */ - // A: add _hmerge cell for colspan. should reserve rowspan - arrTabRows_1.forEach(function (cells) { - var _a, _b; - var _loop_1 = function (cIdx) { - var cell = cells[cIdx]; - var colspan = (_a = cell.options) === null || _a === void 0 ? void 0 : _a.colspan; - var rowspan = (_b = cell.options) === null || _b === void 0 ? void 0 : _b.rowspan; - if (colspan && colspan > 1) { - var vMergeCells = new Array(colspan - 1).fill(undefined).map(function (_) { - return { _type: SLIDE_OBJECT_TYPES.tablecell, options: { rowspan: rowspan }, _hmerge: true }; - }); - cells.splice.apply(cells, __spreadArray([cIdx + 1, 0], vMergeCells, false)); - cIdx += colspan; - } - else { - cIdx += 1; - } - out_cIdx_1 = cIdx; - }; - var out_cIdx_1; - for (var cIdx = 0; cIdx < cells.length;) { - _loop_1(cIdx); - cIdx = out_cIdx_1; - } - }); - // B: add _vmerge cell for rowspan. should reserve colspan/_hmerge - arrTabRows_1.forEach(function (cells, rIdx) { - var nextRow = arrTabRows_1[rIdx + 1]; - if (!nextRow) - return; - cells.forEach(function (cell, cIdx) { - var _a, _b; - var rowspan = cell._rowContinue || ((_a = cell.options) === null || _a === void 0 ? void 0 : _a.rowspan); - var colspan = (_b = cell.options) === null || _b === void 0 ? void 0 : _b.colspan; - var _hmerge = cell._hmerge; - if (rowspan && rowspan > 1) { - var hMergeCell = { _type: SLIDE_OBJECT_TYPES.tablecell, options: { colspan: colspan }, _rowContinue: rowspan - 1, _vmerge: true, _hmerge: _hmerge }; - nextRow.splice(cIdx, 0, hMergeCell); - } - }); - }); - // STEP 4: Build table rows/cells - arrTabRows_1.forEach(function (cells, rIdx) { - // A: Table Height provided without rowH? Then distribute rows - var intRowH = 0; // IMPORTANT: Default must be zero for auto-sizing to work - if (Array.isArray(objTabOpts_1.rowH) && objTabOpts_1.rowH[rIdx]) - intRowH = inch2Emu(Number(objTabOpts_1.rowH[rIdx])); - else if (objTabOpts_1.rowH && !isNaN(Number(objTabOpts_1.rowH))) - intRowH = inch2Emu(Number(objTabOpts_1.rowH)); - else if (slideItemObj.options.cy || slideItemObj.options.h) - intRowH = Math.round((slideItemObj.options.h ? inch2Emu(slideItemObj.options.h) : typeof slideItemObj.options.cy === 'number' ? slideItemObj.options.cy : 1) / - arrTabRows_1.length); - // B: Start row - strXml_1 += ""); - // C: Loop over each CELL - cells.forEach(function (cellObj) { - var _a, _b; - var cell = cellObj; - var cellSpanAttrs = { - rowSpan: ((_a = cell.options) === null || _a === void 0 ? void 0 : _a.rowspan) > 1 ? cell.options.rowspan : undefined, - gridSpan: ((_b = cell.options) === null || _b === void 0 ? void 0 : _b.colspan) > 1 ? cell.options.colspan : undefined, - vMerge: cell._vmerge ? 1 : undefined, - hMerge: cell._hmerge ? 1 : undefined, - }; - var cellSpanAttrStr = Object.keys(cellSpanAttrs) - .map(function (k) { return [k, cellSpanAttrs[k]]; }) - .filter(function (_a) { - _a[0]; var v = _a[1]; - return !!v; - }) - .map(function (_a) { - var k = _a[0], v = _a[1]; - return "".concat(k, "=\"").concat(v, "\""); - }) - .join(' '); - if (cellSpanAttrStr) - cellSpanAttrStr = ' ' + cellSpanAttrStr; - // 1: COLSPAN/ROWSPAN: Add dummy cells for any active colspan/rowspan - if (cell._hmerge || cell._vmerge) { - strXml_1 += ""); - return; - } - // 2: OPTIONS: Build/set cell options - var cellOpts = cell.options || {}; - cell.options = cellOpts; - ['align', 'bold', 'border', 'color', 'fill', 'fontFace', 'fontSize', 'margin', 'underline', 'valign'].forEach(function (name) { - if (objTabOpts_1[name] && !cellOpts[name] && cellOpts[name] !== 0) - cellOpts[name] = objTabOpts_1[name]; - }); - var cellValign = cellOpts.valign - ? ' anchor="' + - cellOpts.valign - .replace(/^c$/i, 'ctr') - .replace(/^m$/i, 'ctr') - .replace('center', 'ctr') - .replace('middle', 'ctr') - .replace('top', 't') - .replace('btm', 'b') - .replace('bottom', 'b') + - '"' - : ''; - var fillColor = cell._optImp && cell._optImp.fill && cell._optImp.fill.color - ? cell._optImp.fill.color - : cell._optImp && cell._optImp.fill && typeof cell._optImp.fill === 'string' - ? cell._optImp.fill - : ''; - fillColor = fillColor || cellOpts.fill ? cellOpts.fill : ''; - var cellFill = fillColor ? genXmlColorSelection(fillColor) : ''; - var cellMargin = cellOpts.margin === 0 || cellOpts.margin ? cellOpts.margin : DEF_CELL_MARGIN_IN; - if (!Array.isArray(cellMargin) && typeof cellMargin === 'number') - cellMargin = [cellMargin, cellMargin, cellMargin, cellMargin]; - /** FUTURE: DEPRECATED: - * - Backwards-Compat: Oops! Discovered we were still using points for cell margin before v3.8.0 (UGH!) - * - We cant introduce a breaking change before v4.0, so... - */ - var cellMarginXml = ''; - if (cellMargin[0] >= 1) { - cellMarginXml = " marL=\"".concat(valToPts(cellMargin[3]), "\" marR=\"").concat(valToPts(cellMargin[1]), "\" marT=\"").concat(valToPts(cellMargin[0]), "\" marB=\"").concat(valToPts(cellMargin[2]), "\""); - } - else { - cellMarginXml = " marL=\"".concat(inch2Emu(cellMargin[3]), "\" marR=\"").concat(inch2Emu(cellMargin[1]), "\" marT=\"").concat(inch2Emu(cellMargin[0]), "\" marB=\"").concat(inch2Emu(cellMargin[2]), "\""); - } - // FUTURE: Cell NOWRAP property (textwrap: add to a:tcPr (horzOverflow="overflow" or whatever options exist) - // 4: Set CELL content and properties ================================== - strXml_1 += "").concat(genXmlTextBody(cell), ""); - //strXml += `${genXmlTextBody(cell)}` - // FIXME: 20200525: ^^^ - // - // 5: Borders: Add any borders - if (cellOpts.border && Array.isArray(cellOpts.border)) { - [ - { idx: 3, name: 'lnL' }, - { idx: 1, name: 'lnR' }, - { idx: 0, name: 'lnT' }, - { idx: 2, name: 'lnB' }, - ].forEach(function (obj) { - if (cellOpts.border[obj.idx].type !== 'none') { - strXml_1 += ""); - strXml_1 += "".concat(createColorElement(cellOpts.border[obj.idx].color), ""); - strXml_1 += ""); - strXml_1 += ""); - } - else { - strXml_1 += ""); - } - }); - } - // 6: Close cell Properties & Cell - strXml_1 += cellFill; - strXml_1 += ' '; - strXml_1 += ' '; - }); - // D: Complete row - strXml_1 += ''; - }); - // STEP 5: Complete table - strXml_1 += ' '; - strXml_1 += ' '; - strXml_1 += ' '; - strXml_1 += ''; - // STEP 6: Set table XML - strSlideXml += strXml_1; - // LAST: Increment counter - intTableNum++; - break; - case SLIDE_OBJECT_TYPES.text: - case SLIDE_OBJECT_TYPES.placeholder: - // Lines can have zero cy, but text should not - if (!slideItemObj.options.line && cy === 0) - cy = EMU * 0.3; - // Margin/Padding/Inset for textboxes - if (!slideItemObj.options._bodyProp) - slideItemObj.options._bodyProp = {}; - if (slideItemObj.options.margin && Array.isArray(slideItemObj.options.margin)) { - slideItemObj.options._bodyProp.lIns = valToPts(slideItemObj.options.margin[0] || 0); - slideItemObj.options._bodyProp.rIns = valToPts(slideItemObj.options.margin[1] || 0); - slideItemObj.options._bodyProp.bIns = valToPts(slideItemObj.options.margin[2] || 0); - slideItemObj.options._bodyProp.tIns = valToPts(slideItemObj.options.margin[3] || 0); - } - else if (typeof slideItemObj.options.margin === 'number') { - slideItemObj.options._bodyProp.lIns = valToPts(slideItemObj.options.margin); - slideItemObj.options._bodyProp.rIns = valToPts(slideItemObj.options.margin); - slideItemObj.options._bodyProp.bIns = valToPts(slideItemObj.options.margin); - slideItemObj.options._bodyProp.tIns = valToPts(slideItemObj.options.margin); - } - // A: Start SHAPE ======================================================= - strSlideXml += ''; - // B: The addition of the "txBox" attribute is the sole determiner of if an object is a shape or textbox - strSlideXml += ""); - // - if (slideItemObj.options.hyperlink && slideItemObj.options.hyperlink.url) - strSlideXml += - ''; - if (slideItemObj.options.hyperlink && slideItemObj.options.hyperlink.slide) - strSlideXml += - ''; - // - strSlideXml += ''; - strSlideXml += '' : '/>'); - strSlideXml += "".concat(slideItemObj._type === 'placeholder' ? genXmlPlaceholder(slideItemObj) : genXmlPlaceholder(placeholderObj), ""); - strSlideXml += ''; - strSlideXml += ""); - strSlideXml += ""); - strSlideXml += ""); - if (slideItemObj.shape === 'custGeom') { - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ""); - (_a = slideItemObj.options.points) === null || _a === void 0 ? void 0 : _a.map(function (point, i) { - if ('curve' in point) { - switch (point.curve.type) { - case 'arc': - strSlideXml += ""); - break; - case 'cubic': - strSlideXml += "\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t"); - break; - case 'quadratic': - strSlideXml += "\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t"); - break; - } - } - else if ('close' in point) { - strSlideXml += ""; - } - else if (point.moveTo || i === 0) { - strSlideXml += ""); - } - else { - strSlideXml += ""); - } - }); - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ''; - } - else { - strSlideXml += ''; - if (slideItemObj.options.rectRadius) { - strSlideXml += ""); - } - else if (slideItemObj.options.angleRange) { - for (var i = 0; i < 2; i++) { - var angle = slideItemObj.options.angleRange[i]; - strSlideXml += ""); - } - if (slideItemObj.options.arcThicknessRatio) { - strSlideXml += ""); - } - } - strSlideXml += ''; - } - // Option: FILL - strSlideXml += slideItemObj.options.fill ? genXmlColorSelection(slideItemObj.options.fill) : ''; - // shape Type: LINE: line color - if (slideItemObj.options.line) { - strSlideXml += slideItemObj.options.line.width ? "") : ''; - if (slideItemObj.options.line.color) - strSlideXml += genXmlColorSelection(slideItemObj.options.line); - if (slideItemObj.options.line.dashType) - strSlideXml += ""); - if (slideItemObj.options.line.beginArrowType) - strSlideXml += ""); - if (slideItemObj.options.line.endArrowType) - strSlideXml += ""); - // FUTURE: `endArrowSize` < a: headEnd type = "arrow" w = "lg" len = "lg" /> 'sm' | 'med' | 'lg'(values are 1 - 9, making a 3x3 grid of w / len possibilities) - strSlideXml += ''; - } - // EFFECTS > SHADOW: REF: @see http://officeopenxml.com/drwSp-effects.php - if (slideItemObj.options.shadow) { - slideItemObj.options.shadow.type = slideItemObj.options.shadow.type || 'outer'; - slideItemObj.options.shadow.blur = valToPts(slideItemObj.options.shadow.blur || 8); - slideItemObj.options.shadow.offset = valToPts(slideItemObj.options.shadow.offset || 4); - slideItemObj.options.shadow.angle = Math.round((slideItemObj.options.shadow.angle || 270) * 60000); - slideItemObj.options.shadow.opacity = Math.round((slideItemObj.options.shadow.opacity || 0.75) * 100000); - slideItemObj.options.shadow.color = slideItemObj.options.shadow.color || DEF_TEXT_SHADOW.color; - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ''; - } - /* TODO: FUTURE: Text wrapping (copied from MS-PPTX export) - // Commented out b/c i'm not even sure this works - current code produces text that wraps in shapes and textboxes, so... - if ( slideItemObj.options.textWrap ) { - strSlideXml += '' - + '' - + '' - + '' - + ''; - } - */ - // B: Close shape Properties - strSlideXml += ''; - // C: Add formatted text (text body "bodyPr") - strSlideXml += genXmlTextBody(slideItemObj); - // LAST: Close SHAPE ======================================================= - strSlideXml += ''; - break; - case SLIDE_OBJECT_TYPES.image: - var sizing = slideItemObj.options.sizing, rounding = slideItemObj.options.rounding, width = cx, height = cy; - strSlideXml += ''; - strSlideXml += ' '; - strSlideXml += ""); - if (slideItemObj.hyperlink && slideItemObj.hyperlink.url) - strSlideXml += ""); - if (slideItemObj.hyperlink && slideItemObj.hyperlink.slide) - strSlideXml += ""); - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' ' + genXmlPlaceholder(placeholderObj) + ''; - strSlideXml += ' '; - strSlideXml += ''; - // NOTE: This works for both cases: either `path` or `data` contains the SVG - if ((slide._relsMedia || []).filter(function (rel) { return rel.rId === slideItemObj.imageRid; })[0] && - (slide._relsMedia || []).filter(function (rel) { return rel.rId === slideItemObj.imageRid; })[0]['extn'] === 'svg') { - strSlideXml += ''; - strSlideXml += slideItemObj.options.transparency ? " ") : ''; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ''; - } - else { - strSlideXml += ''; - strSlideXml += slideItemObj.options.transparency ? " ") : ''; - strSlideXml += ''; - } - if (sizing && sizing.type) { - var boxW = sizing.w ? getSmartParseNumber(sizing.w, 'X', slide._presLayout) : cx, boxH = sizing.h ? getSmartParseNumber(sizing.h, 'Y', slide._presLayout) : cy, boxX = getSmartParseNumber(sizing.x || 0, 'X', slide._presLayout), boxY = getSmartParseNumber(sizing.y || 0, 'Y', slide._presLayout); - strSlideXml += imageSizingXml[sizing.type]({ w: width, h: height }, { w: boxW, h: boxH, x: boxX, y: boxY }); - width = boxW; - height = boxH; - } - else { - strSlideXml += ' '; - } - strSlideXml += ''; - strSlideXml += ''; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ''; - strSlideXml += ''; - break; - case SLIDE_OBJECT_TYPES.media: - if (slideItemObj.mtype === 'online') { - strSlideXml += ''; - strSlideXml += ' '; - // IMPORTANT: "); - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - // NOTE: `blip` is diferent than videos; also there's no preview "p:extLst" above but exists in videos - strSlideXml += ' '; // NOTE: Preview image is required! - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ''; - } - else { - strSlideXml += ''; - strSlideXml += ' '; - // IMPORTANT: "); - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; // NOTE: Preview image is required! - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ''; - } - break; - case SLIDE_OBJECT_TYPES.chart: - strSlideXml += ''; - strSlideXml += ' '; - strSlideXml += " "); - strSlideXml += ' '; - strSlideXml += " ".concat(genXmlPlaceholder(placeholderObj), ""); - strSlideXml += ' '; - strSlideXml += " "); - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += " "); - strSlideXml += ' '; - strSlideXml += ' '; - strSlideXml += ''; - break; - default: - strSlideXml += ''; - break; - } - }); - // STEP 4: Add slide numbers (if any) last - if (slide._slideNumberProps) { - // Set some defaults (done here b/c SlideNumber canbe added to masters or slides and has numerous entry points) - if (!slide._slideNumberProps.align) - slide._slideNumberProps.align = 'left'; - strSlideXml += - '' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' '; - strSlideXml += ''; - strSlideXml += '"); - if (slide._slideNumberProps.color) - strSlideXml += genXmlColorSelection(slide._slideNumberProps.color); - if (slide._slideNumberProps.fontFace) - strSlideXml += ""); - strSlideXml += ''; - } - strSlideXml += ''; - strSlideXml += ''; - if (slide._slideNumberProps.align.startsWith('l')) - strSlideXml += ''; - else if (slide._slideNumberProps.align.startsWith('c')) - strSlideXml += ''; - else if (slide._slideNumberProps.align.startsWith('r')) - strSlideXml += ''; - else - strSlideXml += ""; - strSlideXml += ""); - strSlideXml += "".concat(slide._slideNum, ""); - strSlideXml += ''; - } - // STEP 5: Close spTree and finalize slide XML - strSlideXml += ''; - strSlideXml += ''; - // LAST: Return - return strSlideXml; -} -/** - * Transforms slide relations to XML string. - * Extra relations that are not dynamic can be passed using the 2nd arg (e.g. theme relation in master file). - * These relations use rId series that starts with 1-increased maximum of rIds used for dynamic relations. - * @param {PresSlide | SlideLayout} slide - slide object whose relations are being transformed - * @param {{ target: string; type: string }[]} defaultRels - array of default relations - * @return {string} XML - */ -function slideObjectRelationsToXml(slide, defaultRels) { - var lastRid = 0; // stores maximum rId used for dynamic relations - var strXml = '' + CRLF + ''; - // STEP 1: Add all rels for this Slide - slide._rels.forEach(function (rel) { - lastRid = Math.max(lastRid, rel.rId); - if (rel.type.toLowerCase().indexOf('hyperlink') > -1) { - if (rel.data === 'slide') { - strXml += - ''; - } - else { - strXml += - ''; - } - } - else if (rel.type.toLowerCase().indexOf('notesSlide') > -1) { - strXml += - ''; - } - }); - (slide._relsChart || []).forEach(function (rel) { - lastRid = Math.max(lastRid, rel.rId); - strXml += ''; - }); - (slide._relsMedia || []).forEach(function (rel) { - lastRid = Math.max(lastRid, rel.rId); - if (rel.type.toLowerCase().indexOf('image') > -1) { - strXml += ''; - } - else if (rel.type.toLowerCase().indexOf('audio') > -1) { - // As media has *TWO* rel entries per item, check for first one, if found add second rel with alt style - if (strXml.indexOf(' Target="' + rel.Target + '"') > -1) - strXml += ''; - else - strXml += - ''; - } - else if (rel.type.toLowerCase().indexOf('video') > -1) { - // As media has *TWO* rel entries per item, check for first one, if found add second rel with alt style - if (strXml.indexOf(' Target="' + rel.Target + '"') > -1) - strXml += ''; - else - strXml += - ''; - } - else if (rel.type.toLowerCase().indexOf('online') > -1) { - // As media has *TWO* rel entries per item, check for first one, if found add second rel with alt style - if (strXml.indexOf(' Target="' + rel.Target + '"') > -1) - strXml += ''; - else - strXml += - ''; - } - }); - // STEP 2: Add default rels - defaultRels.forEach(function (rel, idx) { - strXml += ''; - }); - strXml += ''; - return strXml; -} -/** - * Generate XML Paragraph Properties - * @param {ISlideObject|TextProps} textObj - text object - * @param {boolean} isDefault - array of default relations - * @return {string} XML - */ -function genXmlParagraphProperties(textObj, isDefault) { - var strXmlBullet = '', strXmlLnSpc = '', strXmlParaSpc = '', strXmlTabStops = ''; - var tag = isDefault ? 'a:lvl1pPr' : 'a:pPr'; - var bulletMarL = valToPts(DEF_BULLET_MARGIN); - var paragraphPropXml = "<".concat(tag).concat(textObj.options.rtlMode ? ' rtl="1" ' : ''); - // A: Build paragraphProperties - { - // OPTION: align - if (textObj.options.align) { - switch (textObj.options.align) { - case 'left': - paragraphPropXml += ' algn="l"'; - break; - case 'right': - paragraphPropXml += ' algn="r"'; - break; - case 'center': - paragraphPropXml += ' algn="ctr"'; - break; - case 'justify': - paragraphPropXml += ' algn="just"'; - break; - default: - paragraphPropXml += ''; - break; - } - } - if (textObj.options.lineSpacing) { - strXmlLnSpc = ""); - } - else if (textObj.options.lineSpacingMultiple) { - strXmlLnSpc = ""); - } - // OPTION: indent - if (textObj.options.indentLevel && !isNaN(Number(textObj.options.indentLevel)) && textObj.options.indentLevel > 0) { - paragraphPropXml += " lvl=\"".concat(textObj.options.indentLevel, "\""); - } - // OPTION: Paragraph Spacing: Before/After - if (textObj.options.paraSpaceBefore && !isNaN(Number(textObj.options.paraSpaceBefore)) && textObj.options.paraSpaceBefore > 0) { - strXmlParaSpc += ""); - } - if (textObj.options.paraSpaceAfter && !isNaN(Number(textObj.options.paraSpaceAfter)) && textObj.options.paraSpaceAfter > 0) { - strXmlParaSpc += ""); - } - // OPTION: bullet - // NOTE: OOXML uses the unicode character set for Bullets - // EX: Unicode Character 'BULLET' (U+2022) ==> '' - if (typeof textObj.options.bullet === 'object') { - if (textObj && textObj.options && textObj.options.bullet && textObj.options.bullet.indent) - bulletMarL = valToPts(textObj.options.bullet.indent); - if (textObj.options.bullet.type) { - if (textObj.options.bullet.type.toString().toLowerCase() === 'number') { - paragraphPropXml += " marL=\"".concat(textObj.options.indentLevel && textObj.options.indentLevel > 0 ? bulletMarL + bulletMarL * textObj.options.indentLevel : bulletMarL, "\" indent=\"-").concat(bulletMarL, "\""); - strXmlBullet = ""); - } - } - else if (textObj.options.bullet.characterCode) { - var bulletCode = "&#x".concat(textObj.options.bullet.characterCode, ";"); - // Check value for hex-ness (s/b 4 char hex) - if (/^[0-9A-Fa-f]{4}$/.test(textObj.options.bullet.characterCode) === false) { - console.warn('Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!'); - bulletCode = BULLET_TYPES['DEFAULT']; - } - paragraphPropXml += " marL=\"".concat(textObj.options.indentLevel && textObj.options.indentLevel > 0 ? bulletMarL + bulletMarL * textObj.options.indentLevel : bulletMarL, "\" indent=\"-").concat(bulletMarL, "\""); - strXmlBullet = ''; - } - else if (textObj.options.bullet.code) { - // @deprecated `bullet.code` v3.3.0 - var bulletCode = "&#x".concat(textObj.options.bullet.code, ";"); - // Check value for hex-ness (s/b 4 char hex) - if (/^[0-9A-Fa-f]{4}$/.test(textObj.options.bullet.code) === false) { - console.warn('Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!'); - bulletCode = BULLET_TYPES['DEFAULT']; - } - paragraphPropXml += " marL=\"".concat(textObj.options.indentLevel && textObj.options.indentLevel > 0 ? bulletMarL + bulletMarL * textObj.options.indentLevel : bulletMarL, "\" indent=\"-").concat(bulletMarL, "\""); - strXmlBullet = ''; - } - else { - paragraphPropXml += " marL=\"".concat(textObj.options.indentLevel && textObj.options.indentLevel > 0 ? bulletMarL + bulletMarL * textObj.options.indentLevel : bulletMarL, "\" indent=\"-").concat(bulletMarL, "\""); - strXmlBullet = ""); - } - } - else if (textObj.options.bullet === true) { - paragraphPropXml += " marL=\"".concat(textObj.options.indentLevel && textObj.options.indentLevel > 0 ? bulletMarL + bulletMarL * textObj.options.indentLevel : bulletMarL, "\" indent=\"-").concat(bulletMarL, "\""); - strXmlBullet = ""); - } - else if (textObj.options.bullet === false) { - // We only add this when the user explicitely asks for no bullet, otherwise, it can override the master defaults! - paragraphPropXml += " indent=\"0\" marL=\"0\""; // FIX: ISSUE#589 - specify zero indent and marL or default will be hanging paragraph - strXmlBullet = ''; - } - // OPTION: tabStops - if (textObj.options.tabStops && Array.isArray(textObj.options.tabStops)) { - var tabStopsXml = textObj.options.tabStops.map(function (stop) { return ""); }).join(''); - strXmlTabStops = "".concat(tabStopsXml, ""); - } - // B: Close Paragraph-Properties - // IMPORTANT: strXmlLnSpc, strXmlParaSpc, and strXmlBullet require strict ordering - anything out of order is ignored. (PPT-Online, PPT for Mac) - paragraphPropXml += '>' + strXmlLnSpc + strXmlParaSpc + strXmlBullet + strXmlTabStops; - if (isDefault) - paragraphPropXml += genXmlTextRunProperties(textObj.options, true); - paragraphPropXml += ''; - } - return paragraphPropXml; -} -/** - * Generate XML Text Run Properties (`a:rPr`) - * @param {ObjectOptions|TextPropsOptions} opts - text options - * @param {boolean} isDefault - whether these are the default text run properties - * @return {string} XML - */ -function genXmlTextRunProperties(opts, isDefault) { - var _a; - var runProps = ''; - var runPropsTag = isDefault ? 'a:defRPr' : 'a:rPr'; - // BEGIN runProperties (ex: ``) - runProps += '<' + runPropsTag + ' lang="' + (opts.lang ? opts.lang : 'en-US') + '"' + (opts.lang ? ' altLang="en-US"' : ''); - runProps += opts.fontSize ? ' sz="' + Math.round(opts.fontSize) + '00"' : ''; // NOTE: Use round so sizes like '7.5' wont cause corrupt pres. - runProps += opts.hasOwnProperty('bold') ? " b=\"".concat(opts.bold ? 1 : 0, "\"") : ''; - runProps += opts.hasOwnProperty('italic') ? " i=\"".concat(opts.italic ? 1 : 0, "\"") : ''; - runProps += opts.hasOwnProperty('strike') ? " strike=\"".concat(typeof opts.strike === 'string' ? opts.strike : 'sngStrike', "\"") : ''; - if (typeof opts.underline === 'object' && ((_a = opts.underline) === null || _a === void 0 ? void 0 : _a.style)) { - runProps += " u=\"".concat(opts.underline.style, "\""); - } - else if (typeof opts.underline === 'string') { - // DEPRECATED: opts.underline is an object in v3.5.0 - runProps += " u=\"".concat(opts.underline, "\""); - } - else if (opts.hyperlink) { - runProps += ' u="sng"'; - } - if (opts.baseline) { - runProps += " baseline=\"".concat(Math.round(opts.baseline * 50), "\""); - } - else if (opts.subscript) { - runProps += ' baseline="-40000"'; - } - else if (opts.superscript) { - runProps += ' baseline="30000"'; - } - runProps += opts.charSpacing ? " spc=\"".concat(Math.round(opts.charSpacing * 100), "\" kern=\"0\"") : ''; // IMPORTANT: Also disable kerning; otherwise text won't actually expand - runProps += ' dirty="0">'; - // Color / Font / Highlight / Outline are children of , so add them now before closing the runProperties tag - if (opts.color || opts.fontFace || opts.outline || (typeof opts.underline === 'object' && opts.underline.color)) { - if (opts.outline && typeof opts.outline === 'object') { - runProps += "").concat(genXmlColorSelection(opts.outline.color || 'FFFFFF'), ""); - } - if (opts.color) - runProps += genXmlColorSelection({ color: opts.color, transparency: opts.transparency }); - if (opts.highlight) - runProps += "".concat(createColorElement(opts.highlight), ""); - if (typeof opts.underline === 'object' && opts.underline.color) - runProps += "".concat(genXmlColorSelection(opts.underline.color), ""); - if (opts.glow) - runProps += "".concat(createGlowElement(opts.glow, DEF_TEXT_GLOW), ""); - if (opts.fontFace) { - // NOTE: 'cs' = Complex Script, 'ea' = East Asian (use "-120" instead of "0" - per Issue #174); ea must come first (Issue #174) - runProps += ""); - } - } - // Hyperlink support - if (opts.hyperlink) { - if (typeof opts.hyperlink !== 'object') - throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` "); - else if (!opts.hyperlink.url && !opts.hyperlink.slide) - throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'"); - else if (opts.hyperlink.url) { - //runProps += ''+ genXmlColorSelection('0000FF') +''; // Breaks PPT2010! (Issue#74) - runProps += "' : '/>'); - } - else if (opts.hyperlink.slide) { - runProps += "' : '/>'); - } - if (opts.color) { - runProps += ' '; - runProps += ' '; - runProps += ' '; - runProps += ' '; - runProps += ' '; - runProps += ''; - } - } - // END runProperties - runProps += ""); - return runProps; -} -/** - * Build textBody text runs [``] for paragraphs [``] - * @param {TextProps} textObj - Text object - * @return {string} XML string - */ -function genXmlTextRun(textObj) { - // NOTE: Dont create full rPr runProps for empty [lineBreak] runs - // Why? The size of the lineBreak wont match (eg: below it will be 18px instead of the correct 36px) - // Do this: - /* - - - - - */ - // NOT this: - /* - - - - - - - - - - - - - - - - */ - // Return paragraph with text run - return textObj.text ? "".concat(genXmlTextRunProperties(textObj.options, false), "").concat(encodeXmlEntities(textObj.text), "") : ''; -} -/** - * Builds `` tag for "genXmlTextBody()" - * @param {ISlideObject | TableCell} slideObject - various options - * @return {string} XML string - */ -function genXmlBodyProperties(slideObject) { - var bodyProperties = ' - // A: Enable or disable textwrapping none or square - bodyProperties += slideObject.options._bodyProp.wrap ? ' wrap="square"' : ' wrap="none"'; - // B: Textbox margins [padding] - if (slideObject.options._bodyProp.lIns || slideObject.options._bodyProp.lIns === 0) - bodyProperties += ' lIns="' + slideObject.options._bodyProp.lIns + '"'; - if (slideObject.options._bodyProp.tIns || slideObject.options._bodyProp.tIns === 0) - bodyProperties += ' tIns="' + slideObject.options._bodyProp.tIns + '"'; - if (slideObject.options._bodyProp.rIns || slideObject.options._bodyProp.rIns === 0) - bodyProperties += ' rIns="' + slideObject.options._bodyProp.rIns + '"'; - if (slideObject.options._bodyProp.bIns || slideObject.options._bodyProp.bIns === 0) - bodyProperties += ' bIns="' + slideObject.options._bodyProp.bIns + '"'; - // C: Add rtl after margins - bodyProperties += ' rtlCol="0"'; - // D: Add anchorPoints - if (slideObject.options._bodyProp.anchor) - bodyProperties += ' anchor="' + slideObject.options._bodyProp.anchor + '"'; // VALS: [t,ctr,b] - if (slideObject.options._bodyProp.vert) - bodyProperties += ' vert="' + slideObject.options._bodyProp.vert + '"'; // VALS: [eaVert,horz,mongolianVert,vert,vert270,wordArtVert,wordArtVertRtl] - // E: Close ' instead of '' causes issues in PPT-2013! - if (slideObject.options.fit === 'none') - bodyProperties += ''; - // NOTE: Shrink does not work automatically - PowerPoint calculates the `fontScale` value dynamically upon resize - //else if (slideObject.options.fit === 'shrink') bodyProperties += '' // MS-PPT > Format shape > Text Options: "Shrink text on overflow" - else if (slideObject.options.fit === 'shrink') - bodyProperties += ''; - else if (slideObject.options.fit === 'resize') - bodyProperties += ''; - } - // - // DEPRECATED: below (@deprecated v3.3.0) - if (slideObject.options.shrinkText) - bodyProperties += ''; // MS-PPT > Format shape > Text Options: "Shrink text on overflow" - /* DEPRECATED: below (@deprecated v3.3.0) - * MS-PPT > Format shape > Text Options: "Resize shape to fit text" [spAutoFit] - * NOTE: Use of '' in lieu of '' below causes issues in PPT-2013 - */ - bodyProperties += slideObject.options._bodyProp.autoFit !== false ? '' : ''; - // LAST: Close _bodyProp - bodyProperties += ''; - } - else { - // DEFAULT: - bodyProperties += ' wrap="square" rtlCol="0">'; - bodyProperties += ''; - } - // LAST: Return Close _bodyProp - return slideObject._type === SLIDE_OBJECT_TYPES.tablecell ? '' : bodyProperties; -} -/** - * Generate the XML for text and its options (bold, bullet, etc) including text runs (word-level formatting) - * @param {ISlideObject|TableCell} slideObj - slideObj or tableCell - * @note PPT text lines [lines followed by line-breaks] are created using

-aragraph's - * @note Bullets are a paragragh-level formatting device - * @template - * - * - * - * - * - * - * - * - * - * textbox text - * - * - * - * - * @returns XML containing the param object's text and formatting - */ -function genXmlTextBody(slideObj) { - var opts = slideObj.options || {}; - var tmpTextObjects = []; - var arrTextObjects = []; - // FIRST: Shapes without text, etc. may be sent here during build, but have no text to render so return an empty string - if (opts && slideObj._type !== SLIDE_OBJECT_TYPES.tablecell && (typeof slideObj.text === 'undefined' || slideObj.text === null)) - return ''; - // STEP 1: Start textBody - var strSlideXml = slideObj._type === SLIDE_OBJECT_TYPES.tablecell ? '' : ''; - // STEP 2: Add bodyProperties - { - // A: 'bodyPr' - strSlideXml += genXmlBodyProperties(slideObj); - // B: 'lstStyle' - // NOTE: shape type 'LINE' has different text align needs (a lstStyle.lvl1pPr between bodyPr and p) - // FIXME: LINE horiz-align doesnt work (text is always to the left inside line) (FYI: the PPT code diff is substantial!) - if (opts.h === 0 && opts.line && opts.align) - strSlideXml += ''; - else if (slideObj._type === 'placeholder') - strSlideXml += "".concat(genXmlParagraphProperties(slideObj, true), ""); - else - strSlideXml += ''; - } - /* STEP 3: Modify slideObj.text to array - CASES: - addText( 'string' ) // string - addText( 'line1\n line2' ) // string with lineBreak - addText( {text:'word1'} ) // TextProps object - addText( ['barry','allen'] ) // array of strings - addText( [{text:'word1'}, {text:'word2'}] ) // TextProps object array - addText( [{text:'line1\n line2'}, {text:'end word'}] ) // TextProps object array with lineBreak - */ - if (typeof slideObj.text === 'string' || typeof slideObj.text === 'number') { - // Handle cases 1,2 - tmpTextObjects.push({ text: slideObj.text.toString(), options: opts || {} }); - } - else if (slideObj.text && !Array.isArray(slideObj.text) && typeof slideObj.text === 'object' && Object.keys(slideObj.text).indexOf('text') > -1) { - //} else if (!Array.isArray(slideObj.text) && slideObj.text!.hasOwnProperty('text')) { // 20210706: replaced with below as ts compiler rejected it - // Handle case 3 - tmpTextObjects.push({ text: slideObj.text || '', options: slideObj.options || {} }); - } - else if (Array.isArray(slideObj.text)) { - // Handle cases 4,5,6 - // NOTE: use cast as text is TextProps[]|TableCell[] and their `options` dont overlap (they share the same TextBaseProps though) - tmpTextObjects = slideObj.text.map(function (item) { return ({ text: item.text, options: item.options }); }); - } - // STEP 4: Iterate over text objects, set text/options, break into pieces if '\n'/breakLine found - tmpTextObjects.forEach(function (itext, idx) { - if (!itext.text) - itext.text = ''; - // A: Set options - itext.options = itext.options || opts || {}; - if (idx === 0 && itext.options && !itext.options.bullet && opts.bullet) - itext.options.bullet = opts.bullet; - // B: Cast to text-object and fix line-breaks (if needed) - if (typeof itext.text === 'string' || typeof itext.text === 'number') { - // 1: Convert "\n" or any variation into CRLF - itext.text = itext.text.toString().replace(/\r*\n/g, CRLF); - } - // C: If text string has line-breaks, then create a separate text-object for each (much easier than dealing with split inside a loop below) - // NOTE: Filter for trailing lineBreak prevents the creation of an empty textObj as the last item - if (itext.text.indexOf(CRLF) > -1 && itext.text.match(/\n$/g) === null) { - itext.text.split(CRLF).forEach(function (line) { - itext.options.breakLine = true; - arrTextObjects.push({ text: line, options: itext.options }); - }); - } - else { - arrTextObjects.push(itext); - } - }); - // STEP 5: Group textObj into lines by checking for lineBreak, bullets, alignment change, etc. - var arrLines = []; - var arrTexts = []; - arrTextObjects.forEach(function (textObj, idx) { - // A: Align or Bullet trigger new line - if (arrTexts.length > 0 && (textObj.options.align || opts.align)) { - // Only start a new paragraph when align *changes* - if (textObj.options.align != arrTextObjects[idx - 1].options.align) { - arrLines.push(arrTexts); - arrTexts = []; - } - } - else if (arrTexts.length > 0 && textObj.options.bullet && arrTexts.length > 0) { - arrLines.push(arrTexts); - arrTexts = []; - textObj.options.breakLine = false; // For cases with both `bullet` and `brekaLine` - prevent double lineBreak - } - // B: Add this text to current line - arrTexts.push(textObj); - // C: BreakLine begins new line **after** adding current text - if (arrTexts.length > 0 && textObj.options.breakLine) { - // Avoid starting a para right as loop is exhausted - if (idx + 1 < arrTextObjects.length) { - arrLines.push(arrTexts); - arrTexts = []; - } - } - // D: Flush buffer - if (idx + 1 === arrTextObjects.length) - arrLines.push(arrTexts); - }); - // STEP 6: Loop over each line and create paragraph props, text run, etc. - arrLines.forEach(function (line) { - var reqsClosingFontSize = false; - // A: Start paragraph, add paraProps - strSlideXml += ''; - // NOTE: `rtlMode` is like other opts, its propagated up to each text:options, so just check the 1st one - var paragraphPropXml = " 0 && textObj.options.softBreakBefore) { - strSlideXml += ""; - } - // B: Inherit pPr-type options from parent shape's `options` - textObj.options.align = textObj.options.align || opts.align; - textObj.options.lineSpacing = textObj.options.lineSpacing || opts.lineSpacing; - textObj.options.lineSpacingMultiple = textObj.options.lineSpacingMultiple || opts.lineSpacingMultiple; - textObj.options.indentLevel = textObj.options.indentLevel || opts.indentLevel; - textObj.options.paraSpaceBefore = textObj.options.paraSpaceBefore || opts.paraSpaceBefore; - textObj.options.paraSpaceAfter = textObj.options.paraSpaceAfter || opts.paraSpaceAfter; - paragraphPropXml = genXmlParagraphProperties(textObj, false); - strSlideXml += paragraphPropXml.replace('', ''); // IMPORTANT: Empty "pPr" blocks will generate needs-repair/corrupt msg - // C: Inherit any main options (color, fontSize, etc.) - // NOTE: We only pass the text.options to genXmlTextRun (not the Slide.options), - // so the run building function cant just fallback to Slide.color, therefore, we need to do that here before passing options below. - Object.entries(opts).forEach(function (_a) { - var key = _a[0], val = _a[1]; - // RULE: Hyperlinks should not inherit `color` from main options (let PPT default tolocal color, eg: blue on MacOS) - if (textObj.options.hyperlink && key === 'color') - ; - // NOTE: This loop will pick up unecessary keys (`x`, etc.), but it doesnt hurt anything - else if (key !== 'bullet' && !textObj.options[key]) - textObj.options[key] = val; - }); - // D: Add formatted textrun - strSlideXml += genXmlTextRun(textObj); - // E: Flag close fontSize for empty [lineBreak] elements - if ((!textObj.text && opts.fontSize) || textObj.options.fontSize) { - reqsClosingFontSize = true; - opts.fontSize = opts.fontSize || textObj.options.fontSize; - } - }); - /* C: Append 'endParaRPr' (when needed) and close current open paragraph - * NOTE: (ISSUE#20, ISSUE#193): Add 'endParaRPr' with font/size props or PPT default (Arial/18pt en-us) is used making row "too tall"/not honoring options - */ - if (slideObj._type === SLIDE_OBJECT_TYPES.tablecell && (opts.fontSize || opts.fontFace)) { - if (opts.fontFace) { - strSlideXml += "'; - strSlideXml += ""); - strSlideXml += ""); - strSlideXml += ""); - strSlideXml += ''; - } - else { - strSlideXml += "'; - } - } - else if (reqsClosingFontSize) { - // Empty [lineBreak] lines should not contain runProp, however, they need to specify fontSize in `endParaRPr` - strSlideXml += "'; - } - else { - strSlideXml += ""); // Added 20180101 to address PPT-2007 issues - } - // D: End paragraph - strSlideXml += ''; - }); - // STEP 7: Close the textBody - strSlideXml += slideObj._type === SLIDE_OBJECT_TYPES.tablecell ? '' : ''; - // LAST: Return XML - return strSlideXml; -} -/** - * Generate an XML Placeholder - * @param {ISlideObject} placeholderObj - * @returns XML - */ -function genXmlPlaceholder(placeholderObj) { - if (!placeholderObj) - return ''; - var placeholderIdx = placeholderObj.options && placeholderObj.options._placeholderIdx ? placeholderObj.options._placeholderIdx : ''; - var placeholderType = placeholderObj.options && placeholderObj.options._placeholderType ? placeholderObj.options._placeholderType : ''; - return " 0 ? ' hasCustomPrompt="1"' : '', "\n\t\t/>"); -} -// XML-GEN: First 6 functions create the base /ppt files -/** - * Generate XML ContentType - * @param {PresSlide[]} slides - slides - * @param {SlideLayout[]} slideLayouts - slide layouts - * @param {PresSlide} masterSlide - master slide - * @returns XML - */ -function makeXmlContTypes(slides, slideLayouts, masterSlide) { - var strXml = '' + CRLF; - strXml += ''; - strXml += ''; - strXml += ''; - strXml += ''; - strXml += ''; - // STEP 1: Add standard/any media types used in Presentation - strXml += ''; - strXml += ''; - strXml += ''; // NOTE: Hard-Code this extension as it wont be created in loop below (as extn !== type) - strXml += ''; // NOTE: Hard-Code this extension as it wont be created in loop below (as extn !== type) - slides.forEach(function (slide) { - (slide._relsMedia || []).forEach(function (rel) { - if (rel.type !== 'image' && rel.type !== 'online' && rel.type !== 'chart' && rel.extn !== 'm4v' && strXml.indexOf(rel.type) === -1) { - strXml += ''; - } - }); - }); - strXml += ''; - strXml += ''; - // STEP 2: Add presentation and slide master(s)/slide(s) - strXml += ''; - strXml += ''; - slides.forEach(function (slide, idx) { - strXml += - ''; - strXml += ''; - // Add charts if any - slide._relsChart.forEach(function (rel) { - strXml += ' '; - }); - }); - // STEP 3: Core PPT - strXml += ''; - strXml += ''; - strXml += ''; - strXml += ''; - // STEP 4: Add Slide Layouts - slideLayouts.forEach(function (layout, idx) { - strXml += - ''; - (layout._relsChart || []).forEach(function (rel) { - strXml += ' '; - }); - }); - // STEP 5: Add notes slide(s) - slides.forEach(function (_slide, idx) { - strXml += - ' '; - }); - // STEP 6: Add rels - masterSlide._relsChart.forEach(function (rel) { - strXml += ' '; - }); - masterSlide._relsMedia.forEach(function (rel) { - if (rel.type !== 'image' && rel.type !== 'online' && rel.type !== 'chart' && rel.extn !== 'm4v' && strXml.indexOf(rel.type) === -1) - strXml += ' '; - }); - // LAST: Finish XML (Resume core) - strXml += ' '; - strXml += ' '; - strXml += ''; - return strXml; -} -/** - * Creates `_rels/.rels` - * @returns XML - */ -function makeXmlRootRels() { - return "".concat(CRLF, "\n\t\t\n\t\t\n\t\t\n\t\t"); -} -/** - * Creates `docProps/app.xml` - * @param {PresSlide[]} slides - Presenation Slides - * @param {string} company - "Company" metadata - * @returns XML - */ -function makeXmlApp(slides, company) { - return "".concat(CRLF, "\n\t0\n\t0\n\tMicrosoft Office PowerPoint\n\tOn-screen Show (16:9)\n\t0\n\t").concat(slides.length, "\n\t").concat(slides.length, "\n\t0\n\t0\n\tfalse\n\t\n\t\t\n\t\t\tFonts Used\n\t\t\t2\n\t\t\tTheme\n\t\t\t1\n\t\t\tSlide Titles\n\t\t\t").concat(slides.length, "\n\t\t\n\t\n\t\n\t\t\n\t\t\tArial\n\t\t\tCalibri\n\t\t\tOffice Theme\n\t\t\t").concat(slides.map(function (_slideObj, idx) { return 'Slide ' + (idx + 1) + '\n'; }).join(''), "\n\t\t\n\t\n\t").concat(company, "\n\tfalse\n\tfalse\n\tfalse\n\t16.0000\n\t"); -} -/** - * Creates `docProps/core.xml` - * @param {string} title - metadata data - * @param {string} company - metadata data - * @param {string} author - metadata value - * @param {string} revision - metadata value - * @returns XML - */ -function makeXmlCore(title, subject, author, revision) { - return "\n\t\n\t\t".concat(encodeXmlEntities(title), "\n\t\t").concat(encodeXmlEntities(subject), "\n\t\t").concat(encodeXmlEntities(author), "\n\t\t").concat(encodeXmlEntities(author), "\n\t\t").concat(revision, "\n\t\t").concat(new Date().toISOString().replace(/\.\d\d\dZ/, 'Z'), "\n\t\t").concat(new Date().toISOString().replace(/\.\d\d\dZ/, 'Z'), "\n\t"); -} -/** - * Creates `ppt/_rels/presentation.xml.rels` - * @param {PresSlide[]} slides - Presenation Slides - * @returns XML - */ -function makeXmlPresentationRels(slides) { - var intRelNum = 1; - var strXml = '' + CRLF; - strXml += ''; - strXml += ''; - for (var idx = 1; idx <= slides.length; idx++) { - strXml += - ''; - } - intRelNum++; - strXml += - '' + - '' + - '' + - '' + - '' + - ''; - return strXml; -} -// XML-GEN: Functions that run 1-N times (once for each Slide) -/** - * Generates XML for the slide file (`ppt/slides/slide1.xml`) - * @param {PresSlide} slide - the slide object to transform into XML - * @return {string} XML - */ -function makeXmlSlide(slide) { - return ("".concat(CRLF) + - "") + - "".concat(slideObjectToXml(slide)) + - ""); -} -/** - * Get text content of Notes from Slide - * @param {PresSlide} slide - the slide object to transform into XML - * @return {string} notes text - */ -function getNotesFromSlide(slide) { - var notesText = ''; - slide._slideObjects.forEach(function (data) { - if (data._type === SLIDE_OBJECT_TYPES.notes) - notesText += data.text && data.text[0] ? data.text[0].text : ''; - }); - return notesText.replace(/\r*\n/g, CRLF); -} -/** - * Generate XML for Notes Master (notesMaster1.xml) - * @returns {string} XML - */ -function makeXmlNotesMaster() { - return "".concat(CRLF, "7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level\u2039#\u203A"); -} -/** - * Creates Notes Slide (`ppt/notesSlides/notesSlide1.xml`) - * @param {PresSlide} slide - the slide object to transform into XML - * @return {string} XML - */ -function makeXmlNotesSlide(slide) { - return ('' + - CRLF + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - encodeXmlEntities(getNotesFromSlide(slide)) + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - slide._slideNum + - '' + - '' + - '' + - ''); -} -/** - * Generates the XML layout resource from a layout object - * @param {SlideLayout} layout - slide layout (master) - * @return {string} XML - */ -function makeXmlLayout(layout) { - return "\n\t\t\n\t\t".concat(slideObjectToXml(layout), "\n\t\t"); -} -/** - * Creates Slide Master 1 (`ppt/slideMasters/slideMaster1.xml`) - * @param {PresSlide} slide - slide object that represents master slide layout - * @param {SlideLayout[]} layouts - slide layouts - * @return {string} XML - */ -function makeXmlMaster(slide, layouts) { - // NOTE: Pass layouts as static rels because they are not referenced any time - var layoutDefs = layouts.map(function (_layoutDef, idx) { return ''; }); - var strXml = '' + CRLF; - strXml += - ''; - strXml += slideObjectToXml(slide); - strXml += - ''; - strXml += '' + layoutDefs.join('') + ''; - strXml += ''; - strXml += - '' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ''; - strXml += ''; - return strXml; -} -/** - * Generates XML string for a slide layout relation file - * @param {number} layoutNumber - 1-indexed number of a layout that relations are generated for - * @param {SlideLayout[]} slideLayouts - Slide Layouts - * @return {string} XML - */ -function makeXmlSlideLayoutRel(layoutNumber, slideLayouts) { - return slideObjectRelationsToXml(slideLayouts[layoutNumber - 1], [ - { - target: '../slideMasters/slideMaster1.xml', - type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster', - }, - ]); -} -/** - * Creates `ppt/_rels/slide*.xml.rels` - * @param {PresSlide[]} slides - * @param {SlideLayout[]} slideLayouts - Slide Layout(s) - * @param {number} `slideNumber` 1-indexed number of a layout that relations are generated for - * @return {string} XML - */ -function makeXmlSlideRel(slides, slideLayouts, slideNumber) { - return slideObjectRelationsToXml(slides[slideNumber - 1], [ - { - target: '../slideLayouts/slideLayout' + getLayoutIdxForSlide(slides, slideLayouts, slideNumber) + '.xml', - type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout', - }, - { - target: '../notesSlides/notesSlide' + slideNumber + '.xml', - type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide', - }, - ]); -} -/** - * Generates XML string for a slide relation file. - * @param {number} slideNumber - 1-indexed number of a layout that relations are generated for - * @return {string} XML - */ -function makeXmlNotesSlideRel(slideNumber) { - return "\n\t\t\n\t\t\t\n\t\t\t\n\t\t"); -} -/** - * Creates `ppt/slideMasters/_rels/slideMaster1.xml.rels` - * @param {PresSlide} masterSlide - Slide object - * @param {SlideLayout[]} slideLayouts - Slide Layouts - * @return {string} XML - */ -function makeXmlMasterRel(masterSlide, slideLayouts) { - var defaultRels = slideLayouts.map(function (_layoutDef, idx) { return ({ - target: "../slideLayouts/slideLayout".concat(idx + 1, ".xml"), - type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout', - }); }); - defaultRels.push({ target: '../theme/theme1.xml', type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme' }); - return slideObjectRelationsToXml(masterSlide, defaultRels); -} -/** - * Creates `ppt/notesMasters/_rels/notesMaster1.xml.rels` - * @return {string} XML - */ -function makeXmlNotesMasterRel() { - return "".concat(CRLF, "\n\t\t\n\t\t"); -} -/** - * For the passed slide number, resolves name of a layout that is used for. - * @param {PresSlide[]} slides - srray of slides - * @param {SlideLayout[]} slideLayouts - array of slideLayouts - * @param {number} slideNumber - * @return {number} slide number - */ -function getLayoutIdxForSlide(slides, slideLayouts, slideNumber) { - for (var i = 0; i < slideLayouts.length; i++) { - if (slideLayouts[i]._name === slides[slideNumber - 1]._slideLayout._name) { - return i + 1; - } - } - // IMPORTANT: Return 1 (for `slideLayout1.xml`) when no def is found - // So all objects are in Layout1 and every slide that references it uses this layout. - return 1; -} -// XML-GEN: Last 5 functions create root /ppt files -/** - * Creates `ppt/theme/theme1.xml` - * @return {string} XML - */ -function makeXmlTheme() { - return "".concat(CRLF, ""); -} -/** - * Create presentation file (`ppt/presentation.xml`) - * @see https://docs.microsoft.com/en-us/office/open-xml/structure-of-a-presentationml-document - * @see http://www.datypic.com/sc/ooxml/t-p_CT_Presentation.html - * @param {IPresentationProps} pres - presentation - * @return {string} XML - */ -function makeXmlPresentation(pres) { - var strXml = "".concat(CRLF) + - ""); - // STEP 1: Add slide master (SPEC: tag 1 under ) - strXml += ''; - // STEP 2: Add all Slides (SPEC: tag 3 under ) - strXml += ''; - pres.slides.forEach(function (slide) { return (strXml += "")); }); - strXml += ''; - // STEP 3: Add Notes Master (SPEC: tag 2 under ) - // (NOTE: length+2 is from `presentation.xml.rels` func (since we have to match this rId, we just use same logic)) - // IMPORTANT: In this order (matches PPT2019) PPT will give corruption message on open! - // IMPORTANT: Placing this before `` causes warning in modern powerpoint! - // IMPORTANT: Presentations open without warning Without this line, however, the pres isnt preview in Finder anymore or viewable in iOS! - strXml += ""); - // STEP 4: Add sizes - strXml += ""); - strXml += ""); - // STEP 5: Add text styles - strXml += ''; - for (var idy = 1; idy < 10; idy++) { - strXml += - "") + - "" + - ""); - } - strXml += ''; - // STEP 6: Add Sections (if any) - if (pres.sections && pres.sections.length > 0) { - strXml += ''; - strXml += ''; - pres.sections.forEach(function (sect) { - strXml += ""); - sect._slides.forEach(function (slide) { return (strXml += "")); }); - strXml += ""; - }); - strXml += ''; - strXml += ''; - strXml += ''; - } - // Done - strXml += ''; - return strXml; -} -/** - * Create `ppt/presProps.xml` - * @return {string} XML - */ -function makeXmlPresProps() { - return "".concat(CRLF, ""); -} -/** - * Create `ppt/tableStyles.xml` - * @see: http://openxmldeveloper.org/discussions/formats/f/13/p/2398/8107.aspx - * @return {string} XML - */ -function makeXmlTableStyles() { - return "".concat(CRLF, ""); -} -/** - * Creates `ppt/viewProps.xml` - * @return {string} XML - */ -function makeXmlViewProps() { - return "".concat(CRLF, ""); -} -/** - * Checks shadow options passed by user and performs corrections if needed. - * @param {ShadowProps} ShadowProps - shadow options - */ -function correctShadowOptions(ShadowProps) { - if (!ShadowProps || typeof ShadowProps !== 'object') { - //console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`") - return; - } - // OPT: `type` - if (ShadowProps.type !== 'outer' && ShadowProps.type !== 'inner' && ShadowProps.type !== 'none') { - console.warn('Warning: shadow.type options are `outer`, `inner` or `none`.'); - ShadowProps.type = 'outer'; - } - // OPT: `angle` - if (ShadowProps.angle) { - // A: REALITY-CHECK - if (isNaN(Number(ShadowProps.angle)) || ShadowProps.angle < 0 || ShadowProps.angle > 359) { - console.warn('Warning: shadow.angle can only be 0-359'); - ShadowProps.angle = 270; - } - // B: ROBUST: Cast any type of valid arg to int: '12', 12.3, etc. -> 12 - ShadowProps.angle = Math.round(Number(ShadowProps.angle)); - } - // OPT: `opacity` - if (ShadowProps.opacity) { - // A: REALITY-CHECK - if (isNaN(Number(ShadowProps.opacity)) || ShadowProps.opacity < 0 || ShadowProps.opacity > 1) { - console.warn('Warning: shadow.opacity can only be 0-1'); - ShadowProps.opacity = 0.75; - } - // B: ROBUST: Cast any type of valid arg to int: '12', 12.3, etc. -> 12 - ShadowProps.opacity = Number(ShadowProps.opacity); - } + /------|------|------|------\ + | A0 | B0 | C0 | D0 | + | | B1 | C1 | | + | | | C2 | D2 | + \------|------|------|------/ + */ + // A: add _hmerge cell for colspan. should reserve rowspan + arrTabRows_1.forEach(function (cells) { + var _a, _b; + var _loop_1 = function (cIdx) { + var cell = cells[cIdx]; + var colspan = (_a = cell.options) === null || _a === void 0 ? void 0 : _a.colspan; + var rowspan = (_b = cell.options) === null || _b === void 0 ? void 0 : _b.rowspan; + if (colspan && colspan > 1) { + var vMergeCells = new Array(colspan - 1).fill(undefined).map(function (_) { + return { _type: SLIDE_OBJECT_TYPES.tablecell, options: { rowspan: rowspan }, _hmerge: true }; + }); + cells.splice.apply(cells, __spreadArray([cIdx + 1, 0], vMergeCells, false)); + cIdx += colspan; + } + else { + cIdx += 1; + } + out_cIdx_1 = cIdx; + }; + var out_cIdx_1; + for (var cIdx = 0; cIdx < cells.length;) { + _loop_1(cIdx); + cIdx = out_cIdx_1; + } + }); + // B: add _vmerge cell for rowspan. should reserve colspan/_hmerge + arrTabRows_1.forEach(function (cells, rIdx) { + var nextRow = arrTabRows_1[rIdx + 1]; + if (!nextRow) + return; + cells.forEach(function (cell, cIdx) { + var _a, _b; + var rowspan = cell._rowContinue || ((_a = cell.options) === null || _a === void 0 ? void 0 : _a.rowspan); + var colspan = (_b = cell.options) === null || _b === void 0 ? void 0 : _b.colspan; + var _hmerge = cell._hmerge; + if (rowspan && rowspan > 1) { + var hMergeCell = { _type: SLIDE_OBJECT_TYPES.tablecell, options: { colspan: colspan }, _rowContinue: rowspan - 1, _vmerge: true, _hmerge: _hmerge }; + nextRow.splice(cIdx, 0, hMergeCell); + } + }); + }); + // STEP 4: Build table rows/cells + arrTabRows_1.forEach(function (cells, rIdx) { + // A: Table Height provided without rowH? Then distribute rows + var intRowH = 0; // IMPORTANT: Default must be zero for auto-sizing to work + if (Array.isArray(objTabOpts_1.rowH) && objTabOpts_1.rowH[rIdx]) + intRowH = inch2Emu(Number(objTabOpts_1.rowH[rIdx])); + else if (objTabOpts_1.rowH && !isNaN(Number(objTabOpts_1.rowH))) + intRowH = inch2Emu(Number(objTabOpts_1.rowH)); + else if (slideItemObj.options.cy || slideItemObj.options.h) + intRowH = Math.round((slideItemObj.options.h ? inch2Emu(slideItemObj.options.h) : typeof slideItemObj.options.cy === 'number' ? slideItemObj.options.cy : 1) / + arrTabRows_1.length); + // B: Start row + strXml_1 += ""); + // C: Loop over each CELL + cells.forEach(function (cellObj) { + var _a, _b; + var cell = cellObj; + var cellSpanAttrs = { + rowSpan: ((_a = cell.options) === null || _a === void 0 ? void 0 : _a.rowspan) > 1 ? cell.options.rowspan : undefined, + gridSpan: ((_b = cell.options) === null || _b === void 0 ? void 0 : _b.colspan) > 1 ? cell.options.colspan : undefined, + vMerge: cell._vmerge ? 1 : undefined, + hMerge: cell._hmerge ? 1 : undefined, + }; + var cellSpanAttrStr = Object.keys(cellSpanAttrs) + .map(function (k) { return [k, cellSpanAttrs[k]]; }) + .filter(function (_a) { + _a[0]; var v = _a[1]; + return !!v; + }) + .map(function (_a) { + var k = _a[0], v = _a[1]; + return "".concat(k, "=\"").concat(v, "\""); + }) + .join(' '); + if (cellSpanAttrStr) + cellSpanAttrStr = ' ' + cellSpanAttrStr; + // 1: COLSPAN/ROWSPAN: Add dummy cells for any active colspan/rowspan + if (cell._hmerge || cell._vmerge) { + strXml_1 += ""); + return; + } + // 2: OPTIONS: Build/set cell options + var cellOpts = cell.options || {}; + cell.options = cellOpts; + ['align', 'bold', 'border', 'color', 'fill', 'fontFace', 'fontSize', 'margin', 'underline', 'valign'].forEach(function (name) { + if (objTabOpts_1[name] && !cellOpts[name] && cellOpts[name] !== 0) + cellOpts[name] = objTabOpts_1[name]; + }); + var cellValign = cellOpts.valign + ? ' anchor="' + + cellOpts.valign + .replace(/^c$/i, 'ctr') + .replace(/^m$/i, 'ctr') + .replace('center', 'ctr') + .replace('middle', 'ctr') + .replace('top', 't') + .replace('btm', 'b') + .replace('bottom', 'b') + + '"' + : ''; + var fillColor = cell._optImp && cell._optImp.fill && cell._optImp.fill.color + ? cell._optImp.fill.color + : cell._optImp && cell._optImp.fill && typeof cell._optImp.fill === 'string' + ? cell._optImp.fill + : ''; + fillColor = fillColor || cellOpts.fill ? cellOpts.fill : ''; + var cellFill = fillColor ? genXmlColorSelection(fillColor) : ''; + var cellMargin = cellOpts.margin === 0 || cellOpts.margin ? cellOpts.margin : DEF_CELL_MARGIN_IN; + if (!Array.isArray(cellMargin) && typeof cellMargin === 'number') + cellMargin = [cellMargin, cellMargin, cellMargin, cellMargin]; + /** FUTURE: DEPRECATED: + * - Backwards-Compat: Oops! Discovered we were still using points for cell margin before v3.8.0 (UGH!) + * - We cant introduce a breaking change before v4.0, so... + */ + var cellMarginXml = ''; + if (cellMargin[0] >= 1) { + cellMarginXml = " marL=\"".concat(valToPts(cellMargin[3]), "\" marR=\"").concat(valToPts(cellMargin[1]), "\" marT=\"").concat(valToPts(cellMargin[0]), "\" marB=\"").concat(valToPts(cellMargin[2]), "\""); + } + else { + cellMarginXml = " marL=\"".concat(inch2Emu(cellMargin[3]), "\" marR=\"").concat(inch2Emu(cellMargin[1]), "\" marT=\"").concat(inch2Emu(cellMargin[0]), "\" marB=\"").concat(inch2Emu(cellMargin[2]), "\""); + } + // FUTURE: Cell NOWRAP property (textwrap: add to a:tcPr (horzOverflow="overflow" or whatever options exist) + // 4: Set CELL content and properties ================================== + strXml_1 += "").concat(genXmlTextBody(cell), ""); + //strXml += `${genXmlTextBody(cell)}` + // FIXME: 20200525: ^^^ + // + // 5: Borders: Add any borders + if (cellOpts.border && Array.isArray(cellOpts.border)) { + [ + { idx: 3, name: 'lnL' }, + { idx: 1, name: 'lnR' }, + { idx: 0, name: 'lnT' }, + { idx: 2, name: 'lnB' }, + ].forEach(function (obj) { + if (cellOpts.border[obj.idx].type !== 'none') { + strXml_1 += ""); + strXml_1 += "".concat(createColorElement(cellOpts.border[obj.idx].color), ""); + strXml_1 += ""); + strXml_1 += ""); + } + else { + strXml_1 += ""); + } + }); + } + // 6: Close cell Properties & Cell + strXml_1 += cellFill; + strXml_1 += ' '; + strXml_1 += ' '; + }); + // D: Complete row + strXml_1 += ''; + }); + // STEP 5: Complete table + strXml_1 += ' '; + strXml_1 += ' '; + strXml_1 += ' '; + strXml_1 += ''; + // STEP 6: Set table XML + strSlideXml += strXml_1; + // LAST: Increment counter + intTableNum++; + break; + case SLIDE_OBJECT_TYPES.text: + case SLIDE_OBJECT_TYPES.placeholder: + // Lines can have zero cy, but text should not + if (!slideItemObj.options.line && cy === 0) + cy = EMU * 0.3; + // Margin/Padding/Inset for textboxes + if (!slideItemObj.options._bodyProp) + slideItemObj.options._bodyProp = {}; + if (slideItemObj.options.margin && Array.isArray(slideItemObj.options.margin)) { + slideItemObj.options._bodyProp.lIns = valToPts(slideItemObj.options.margin[0] || 0); + slideItemObj.options._bodyProp.rIns = valToPts(slideItemObj.options.margin[1] || 0); + slideItemObj.options._bodyProp.bIns = valToPts(slideItemObj.options.margin[2] || 0); + slideItemObj.options._bodyProp.tIns = valToPts(slideItemObj.options.margin[3] || 0); + } + else if (typeof slideItemObj.options.margin === 'number') { + slideItemObj.options._bodyProp.lIns = valToPts(slideItemObj.options.margin); + slideItemObj.options._bodyProp.rIns = valToPts(slideItemObj.options.margin); + slideItemObj.options._bodyProp.bIns = valToPts(slideItemObj.options.margin); + slideItemObj.options._bodyProp.tIns = valToPts(slideItemObj.options.margin); + } + // A: Start SHAPE ======================================================= + strSlideXml += ''; + // B: The addition of the "txBox" attribute is the sole determiner of if an object is a shape or textbox + strSlideXml += ""); + // + if (slideItemObj.options.hyperlink && slideItemObj.options.hyperlink.url) + strSlideXml += + ''; + if (slideItemObj.options.hyperlink && slideItemObj.options.hyperlink.slide) + strSlideXml += + ''; + // + strSlideXml += ''; + strSlideXml += '' : '/>'); + strSlideXml += "".concat(slideItemObj._type === 'placeholder' ? genXmlPlaceholder(slideItemObj) : genXmlPlaceholder(placeholderObj), ""); + strSlideXml += ''; + strSlideXml += ""); + strSlideXml += ""); + strSlideXml += ""); + if (slideItemObj.shape === 'custGeom') { + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ""); + (_a = slideItemObj.options.points) === null || _a === void 0 ? void 0 : _a.map(function (point, i) { + if ('curve' in point) { + switch (point.curve.type) { + case 'arc': + strSlideXml += ""); + break; + case 'cubic': + strSlideXml += "\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t"); + break; + case 'quadratic': + strSlideXml += "\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t"); + break; + } + } + else if ('close' in point) { + strSlideXml += ""; + } + else if (point.moveTo || i === 0) { + strSlideXml += ""); + } + else { + strSlideXml += ""); + } + }); + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ''; + } + else { + strSlideXml += ''; + if (slideItemObj.options.rectRadius) { + strSlideXml += ""); + } + else if (slideItemObj.options.angleRange) { + for (var i = 0; i < 2; i++) { + var angle = slideItemObj.options.angleRange[i]; + strSlideXml += ""); + } + if (slideItemObj.options.arcThicknessRatio) { + strSlideXml += ""); + } + } + strSlideXml += ''; + } + // Option: FILL + strSlideXml += slideItemObj.options.fill ? genXmlColorSelection(slideItemObj.options.fill) : ''; + // shape Type: LINE: line color + if (slideItemObj.options.line) { + strSlideXml += slideItemObj.options.line.width ? "") : ''; + if (slideItemObj.options.line.color) + strSlideXml += genXmlColorSelection(slideItemObj.options.line); + if (slideItemObj.options.line.dashType) + strSlideXml += ""); + if (slideItemObj.options.line.beginArrowType) + strSlideXml += ""); + if (slideItemObj.options.line.endArrowType) + strSlideXml += ""); + // FUTURE: `endArrowSize` < a: headEnd type = "arrow" w = "lg" len = "lg" /> 'sm' | 'med' | 'lg'(values are 1 - 9, making a 3x3 grid of w / len possibilities) + strSlideXml += ''; + } + // EFFECTS > SHADOW: REF: @see http://officeopenxml.com/drwSp-effects.php + if (slideItemObj.options.shadow) { + slideItemObj.options.shadow.type = slideItemObj.options.shadow.type || 'outer'; + slideItemObj.options.shadow.blur = valToPts(slideItemObj.options.shadow.blur || 8); + slideItemObj.options.shadow.offset = valToPts(slideItemObj.options.shadow.offset || 4); + slideItemObj.options.shadow.angle = Math.round((slideItemObj.options.shadow.angle || 270) * 60000); + slideItemObj.options.shadow.opacity = Math.round((slideItemObj.options.shadow.opacity || 0.75) * 100000); + slideItemObj.options.shadow.color = slideItemObj.options.shadow.color || DEF_TEXT_SHADOW.color; + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ''; + } + /* TODO: FUTURE: Text wrapping (copied from MS-PPTX export) + // Commented out b/c i'm not even sure this works - current code produces text that wraps in shapes and textboxes, so... + if ( slideItemObj.options.textWrap ) { + strSlideXml += '' + + '' + + '' + + '' + + ''; + } + */ + // B: Close shape Properties + strSlideXml += ''; + // C: Add formatted text (text body "bodyPr") + strSlideXml += genXmlTextBody(slideItemObj); + // LAST: Close SHAPE ======================================================= + strSlideXml += ''; + break; + case SLIDE_OBJECT_TYPES.image: + var sizing = slideItemObj.options.sizing, rounding = slideItemObj.options.rounding, width = cx, height = cy; + strSlideXml += ''; + strSlideXml += ' '; + strSlideXml += ""); + if (slideItemObj.hyperlink && slideItemObj.hyperlink.url) + strSlideXml += ""); + if (slideItemObj.hyperlink && slideItemObj.hyperlink.slide) + strSlideXml += ""); + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' ' + genXmlPlaceholder(placeholderObj) + ''; + strSlideXml += ' '; + strSlideXml += ''; + // NOTE: This works for both cases: either `path` or `data` contains the SVG + if ((slide._relsMedia || []).filter(function (rel) { return rel.rId === slideItemObj.imageRid; })[0] && + (slide._relsMedia || []).filter(function (rel) { return rel.rId === slideItemObj.imageRid; })[0]['extn'] === 'svg') { + strSlideXml += ''; + strSlideXml += slideItemObj.options.transparency ? " ") : ''; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ''; + } + else { + strSlideXml += ''; + strSlideXml += slideItemObj.options.transparency ? " ") : ''; + strSlideXml += ''; + } + if (sizing && sizing.type) { + var boxW = sizing.w ? getSmartParseNumber(sizing.w, 'X', slide._presLayout) : cx, boxH = sizing.h ? getSmartParseNumber(sizing.h, 'Y', slide._presLayout) : cy, boxX = getSmartParseNumber(sizing.x || 0, 'X', slide._presLayout), boxY = getSmartParseNumber(sizing.y || 0, 'Y', slide._presLayout); + strSlideXml += imageSizingXml[sizing.type]({ w: width, h: height }, { w: boxW, h: boxH, x: boxX, y: boxY }); + width = boxW; + height = boxH; + } + else { + strSlideXml += ' '; + } + strSlideXml += ''; + strSlideXml += ''; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ''; + strSlideXml += ''; + break; + case SLIDE_OBJECT_TYPES.media: + if (slideItemObj.mtype === 'online') { + strSlideXml += ''; + strSlideXml += ' '; + // IMPORTANT: "); + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + // NOTE: `blip` is diferent than videos; also there's no preview "p:extLst" above but exists in videos + strSlideXml += ' '; // NOTE: Preview image is required! + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ''; + } + else { + strSlideXml += ''; + strSlideXml += ' '; + // IMPORTANT: "); + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; // NOTE: Preview image is required! + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ''; + } + break; + case SLIDE_OBJECT_TYPES.chart: + strSlideXml += ''; + strSlideXml += ' '; + strSlideXml += " "); + strSlideXml += ' '; + strSlideXml += " ".concat(genXmlPlaceholder(placeholderObj), ""); + strSlideXml += ' '; + strSlideXml += " "); + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += " "); + strSlideXml += ' '; + strSlideXml += ' '; + strSlideXml += ''; + break; + default: + strSlideXml += ''; + break; + } + }); + // STEP 4: Add slide numbers (if any) last + if (slide._slideNumberProps) { + // Set some defaults (done here b/c SlideNumber canbe added to masters or slides and has numerous entry points) + if (!slide._slideNumberProps.align) + slide._slideNumberProps.align = 'left'; + strSlideXml += + '' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' '; + strSlideXml += ''; + strSlideXml += '"); + if (slide._slideNumberProps.color) + strSlideXml += genXmlColorSelection(slide._slideNumberProps.color); + if (slide._slideNumberProps.fontFace) + strSlideXml += ""); + strSlideXml += ''; + } + strSlideXml += ''; + strSlideXml += ''; + if (slide._slideNumberProps.align.startsWith('l')) + strSlideXml += ''; + else if (slide._slideNumberProps.align.startsWith('c')) + strSlideXml += ''; + else if (slide._slideNumberProps.align.startsWith('r')) + strSlideXml += ''; + else + strSlideXml += ""; + strSlideXml += ""); + strSlideXml += "".concat(slide._slideNum, ""); + strSlideXml += ''; + } + // STEP 5: Close spTree and finalize slide XML + strSlideXml += ''; + strSlideXml += ''; + // LAST: Return + return strSlideXml; +} +/** + * Transforms slide relations to XML string. + * Extra relations that are not dynamic can be passed using the 2nd arg (e.g. theme relation in master file). + * These relations use rId series that starts with 1-increased maximum of rIds used for dynamic relations. + * @param {PresSlide | SlideLayout} slide - slide object whose relations are being transformed + * @param {{ target: string; type: string }[]} defaultRels - array of default relations + * @return {string} XML + */ +function slideObjectRelationsToXml(slide, defaultRels) { + var lastRid = 0; // stores maximum rId used for dynamic relations + var strXml = '' + CRLF + ''; + // STEP 1: Add all rels for this Slide + slide._rels.forEach(function (rel) { + lastRid = Math.max(lastRid, rel.rId); + if (rel.type.toLowerCase().indexOf('hyperlink') > -1) { + if (rel.data === 'slide') { + strXml += + ''; + } + else { + strXml += + ''; + } + } + else if (rel.type.toLowerCase().indexOf('notesSlide') > -1) { + strXml += + ''; + } + }); + (slide._relsChart || []).forEach(function (rel) { + lastRid = Math.max(lastRid, rel.rId); + strXml += ''; + }); + (slide._relsMedia || []).forEach(function (rel) { + lastRid = Math.max(lastRid, rel.rId); + if (rel.type.toLowerCase().indexOf('image') > -1) { + strXml += ''; + } + else if (rel.type.toLowerCase().indexOf('audio') > -1) { + // As media has *TWO* rel entries per item, check for first one, if found add second rel with alt style + if (strXml.indexOf(' Target="' + rel.Target + '"') > -1) + strXml += ''; + else + strXml += + ''; + } + else if (rel.type.toLowerCase().indexOf('video') > -1) { + // As media has *TWO* rel entries per item, check for first one, if found add second rel with alt style + if (strXml.indexOf(' Target="' + rel.Target + '"') > -1) + strXml += ''; + else + strXml += + ''; + } + else if (rel.type.toLowerCase().indexOf('online') > -1) { + // As media has *TWO* rel entries per item, check for first one, if found add second rel with alt style + if (strXml.indexOf(' Target="' + rel.Target + '"') > -1) + strXml += ''; + else + strXml += + ''; + } + }); + // STEP 2: Add default rels + defaultRels.forEach(function (rel, idx) { + strXml += ''; + }); + strXml += ''; + return strXml; +} +/** + * Generate XML Paragraph Properties + * @param {ISlideObject|TextProps} textObj - text object + * @param {boolean} isDefault - array of default relations + * @return {string} XML + */ +function genXmlParagraphProperties(textObj, isDefault) { + var strXmlBullet = '', strXmlLnSpc = '', strXmlParaSpc = '', strXmlTabStops = ''; + var tag = isDefault ? 'a:lvl1pPr' : 'a:pPr'; + var bulletMarL = valToPts(DEF_BULLET_MARGIN); + var paragraphPropXml = "<".concat(tag).concat(textObj.options.rtlMode ? ' rtl="1" ' : ''); + // A: Build paragraphProperties + { + // OPTION: align + if (textObj.options.align) { + switch (textObj.options.align) { + case 'left': + paragraphPropXml += ' algn="l"'; + break; + case 'right': + paragraphPropXml += ' algn="r"'; + break; + case 'center': + paragraphPropXml += ' algn="ctr"'; + break; + case 'justify': + paragraphPropXml += ' algn="just"'; + break; + default: + paragraphPropXml += ''; + break; + } + } + if (textObj.options.lineSpacing) { + strXmlLnSpc = ""); + } + else if (textObj.options.lineSpacingMultiple) { + strXmlLnSpc = ""); + } + // OPTION: indent + if (textObj.options.indentLevel && !isNaN(Number(textObj.options.indentLevel)) && textObj.options.indentLevel > 0) { + paragraphPropXml += " lvl=\"".concat(textObj.options.indentLevel, "\""); + } + // OPTION: Paragraph Spacing: Before/After + if (textObj.options.paraSpaceBefore && !isNaN(Number(textObj.options.paraSpaceBefore)) && textObj.options.paraSpaceBefore > 0) { + strXmlParaSpc += ""); + } + if (textObj.options.paraSpaceAfter && !isNaN(Number(textObj.options.paraSpaceAfter)) && textObj.options.paraSpaceAfter > 0) { + strXmlParaSpc += ""); + } + // OPTION: bullet + // NOTE: OOXML uses the unicode character set for Bullets + // EX: Unicode Character 'BULLET' (U+2022) ==> '' + if (typeof textObj.options.bullet === 'object') { + if (textObj && textObj.options && textObj.options.bullet && textObj.options.bullet.indent) + bulletMarL = valToPts(textObj.options.bullet.indent); + if (textObj.options.bullet.type) { + if (textObj.options.bullet.type.toString().toLowerCase() === 'number') { + paragraphPropXml += " marL=\"".concat(textObj.options.indentLevel && textObj.options.indentLevel > 0 ? bulletMarL + bulletMarL * textObj.options.indentLevel : bulletMarL, "\" indent=\"-").concat(bulletMarL, "\""); + strXmlBullet = ""); + } + } + else if (textObj.options.bullet.characterCode) { + var bulletCode = "&#x".concat(textObj.options.bullet.characterCode, ";"); + // Check value for hex-ness (s/b 4 char hex) + if (/^[0-9A-Fa-f]{4}$/.test(textObj.options.bullet.characterCode) === false) { + console.warn('Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!'); + bulletCode = BULLET_TYPES['DEFAULT']; + } + paragraphPropXml += " marL=\"".concat(textObj.options.indentLevel && textObj.options.indentLevel > 0 ? bulletMarL + bulletMarL * textObj.options.indentLevel : bulletMarL, "\" indent=\"-").concat(bulletMarL, "\""); + strXmlBullet = ''; + } + else if (textObj.options.bullet.code) { + // @deprecated `bullet.code` v3.3.0 + var bulletCode = "&#x".concat(textObj.options.bullet.code, ";"); + // Check value for hex-ness (s/b 4 char hex) + if (/^[0-9A-Fa-f]{4}$/.test(textObj.options.bullet.code) === false) { + console.warn('Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!'); + bulletCode = BULLET_TYPES['DEFAULT']; + } + paragraphPropXml += " marL=\"".concat(textObj.options.indentLevel && textObj.options.indentLevel > 0 ? bulletMarL + bulletMarL * textObj.options.indentLevel : bulletMarL, "\" indent=\"-").concat(bulletMarL, "\""); + strXmlBullet = ''; + } + else { + paragraphPropXml += " marL=\"".concat(textObj.options.indentLevel && textObj.options.indentLevel > 0 ? bulletMarL + bulletMarL * textObj.options.indentLevel : bulletMarL, "\" indent=\"-").concat(bulletMarL, "\""); + strXmlBullet = ""); + } + } + else if (textObj.options.bullet === true) { + paragraphPropXml += " marL=\"".concat(textObj.options.indentLevel && textObj.options.indentLevel > 0 ? bulletMarL + bulletMarL * textObj.options.indentLevel : bulletMarL, "\" indent=\"-").concat(bulletMarL, "\""); + strXmlBullet = ""); + } + else if (textObj.options.bullet === false) { + // We only add this when the user explicitely asks for no bullet, otherwise, it can override the master defaults! + paragraphPropXml += " indent=\"0\" marL=\"0\""; // FIX: ISSUE#589 - specify zero indent and marL or default will be hanging paragraph + strXmlBullet = ''; + } + // OPTION: tabStops + if (textObj.options.tabStops && Array.isArray(textObj.options.tabStops)) { + var tabStopsXml = textObj.options.tabStops.map(function (stop) { return ""); }).join(''); + strXmlTabStops = "".concat(tabStopsXml, ""); + } + // B: Close Paragraph-Properties + // IMPORTANT: strXmlLnSpc, strXmlParaSpc, and strXmlBullet require strict ordering - anything out of order is ignored. (PPT-Online, PPT for Mac) + paragraphPropXml += '>' + strXmlLnSpc + strXmlParaSpc + strXmlBullet + strXmlTabStops; + if (isDefault) + paragraphPropXml += genXmlTextRunProperties(textObj.options, true); + paragraphPropXml += ''; + } + return paragraphPropXml; +} +/** + * Generate XML Text Run Properties (`a:rPr`) + * @param {ObjectOptions|TextPropsOptions} opts - text options + * @param {boolean} isDefault - whether these are the default text run properties + * @return {string} XML + */ +function genXmlTextRunProperties(opts, isDefault) { + var _a; + var runProps = ''; + var runPropsTag = isDefault ? 'a:defRPr' : 'a:rPr'; + // BEGIN runProperties (ex: ``) + runProps += '<' + runPropsTag + ' lang="' + (opts.lang ? opts.lang : 'en-US') + '"' + (opts.lang ? ' altLang="en-US"' : ''); + runProps += opts.fontSize ? ' sz="' + Math.round(opts.fontSize) + '00"' : ''; // NOTE: Use round so sizes like '7.5' wont cause corrupt pres. + runProps += opts.hasOwnProperty('bold') ? " b=\"".concat(opts.bold ? 1 : 0, "\"") : ''; + runProps += opts.hasOwnProperty('italic') ? " i=\"".concat(opts.italic ? 1 : 0, "\"") : ''; + runProps += opts.hasOwnProperty('strike') ? " strike=\"".concat(typeof opts.strike === 'string' ? opts.strike : 'sngStrike', "\"") : ''; + if (typeof opts.underline === 'object' && ((_a = opts.underline) === null || _a === void 0 ? void 0 : _a.style)) { + runProps += " u=\"".concat(opts.underline.style, "\""); + } + else if (typeof opts.underline === 'string') { + // DEPRECATED: opts.underline is an object in v3.5.0 + runProps += " u=\"".concat(opts.underline, "\""); + } + else if (opts.hyperlink) { + runProps += ' u="sng"'; + } + if (opts.baseline) { + runProps += " baseline=\"".concat(Math.round(opts.baseline * 50), "\""); + } + else if (opts.subscript) { + runProps += ' baseline="-40000"'; + } + else if (opts.superscript) { + runProps += ' baseline="30000"'; + } + runProps += opts.charSpacing ? " spc=\"".concat(Math.round(opts.charSpacing * 100), "\" kern=\"0\"") : ''; // IMPORTANT: Also disable kerning; otherwise text won't actually expand + runProps += ' dirty="0">'; + // Color / Font / Highlight / Outline are children of , so add them now before closing the runProperties tag + if (opts.color || opts.fontFace || opts.outline || (typeof opts.underline === 'object' && opts.underline.color)) { + if (opts.outline && typeof opts.outline === 'object') { + runProps += "").concat(genXmlColorSelection(opts.outline.color || 'FFFFFF'), ""); + } + if (opts.color) + runProps += genXmlColorSelection({ color: opts.color, transparency: opts.transparency }); + if (opts.highlight) + runProps += "".concat(createColorElement(opts.highlight), ""); + if (typeof opts.underline === 'object' && opts.underline.color) + runProps += "".concat(genXmlColorSelection(opts.underline.color), ""); + if (opts.glow) + runProps += "".concat(createGlowElement(opts.glow, DEF_TEXT_GLOW), ""); + if (opts.fontFace) { + // NOTE: 'cs' = Complex Script, 'ea' = East Asian (use "-120" instead of "0" - per Issue #174); ea must come first (Issue #174) + runProps += ""); + } + } + // Hyperlink support + if (opts.hyperlink) { + if (typeof opts.hyperlink !== 'object') + throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` "); + else if (!opts.hyperlink.url && !opts.hyperlink.slide) + throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'"); + else if (opts.hyperlink.url) { + //runProps += ''+ genXmlColorSelection('0000FF') +''; // Breaks PPT2010! (Issue#74) + runProps += "' : '/>'); + } + else if (opts.hyperlink.slide) { + runProps += "' : '/>'); + } + if (opts.color) { + runProps += ' '; + runProps += ' '; + runProps += ' '; + runProps += ' '; + runProps += ' '; + runProps += ''; + } + } + // END runProperties + runProps += ""); + return runProps; +} +/** + * Build textBody text runs [``] for paragraphs [``] + * @param {TextProps} textObj - Text object + * @return {string} XML string + */ +function genXmlTextRun(textObj) { + // NOTE: Dont create full rPr runProps for empty [lineBreak] runs + // Why? The size of the lineBreak wont match (eg: below it will be 18px instead of the correct 36px) + // Do this: + /* + + + + + */ + // NOT this: + /* + + + + + + + + + + + + + + + + */ + // Return paragraph with text run + return textObj.text ? "".concat(genXmlTextRunProperties(textObj.options, false), "").concat(encodeXmlEntities(textObj.text), "") : ''; +} +/** + * Builds `` tag for "genXmlTextBody()" + * @param {ISlideObject | TableCell} slideObject - various options + * @return {string} XML string + */ +function genXmlBodyProperties(slideObject) { + var bodyProperties = ' + // A: Enable or disable textwrapping none or square + bodyProperties += slideObject.options._bodyProp.wrap ? ' wrap="square"' : ' wrap="none"'; + // B: Textbox margins [padding] + if (slideObject.options._bodyProp.lIns || slideObject.options._bodyProp.lIns === 0) + bodyProperties += ' lIns="' + slideObject.options._bodyProp.lIns + '"'; + if (slideObject.options._bodyProp.tIns || slideObject.options._bodyProp.tIns === 0) + bodyProperties += ' tIns="' + slideObject.options._bodyProp.tIns + '"'; + if (slideObject.options._bodyProp.rIns || slideObject.options._bodyProp.rIns === 0) + bodyProperties += ' rIns="' + slideObject.options._bodyProp.rIns + '"'; + if (slideObject.options._bodyProp.bIns || slideObject.options._bodyProp.bIns === 0) + bodyProperties += ' bIns="' + slideObject.options._bodyProp.bIns + '"'; + // C: Add rtl after margins + bodyProperties += ' rtlCol="0"'; + // D: Add anchorPoints + if (slideObject.options._bodyProp.anchor) + bodyProperties += ' anchor="' + slideObject.options._bodyProp.anchor + '"'; // VALS: [t,ctr,b] + if (slideObject.options._bodyProp.vert) + bodyProperties += ' vert="' + slideObject.options._bodyProp.vert + '"'; // VALS: [eaVert,horz,mongolianVert,vert,vert270,wordArtVert,wordArtVertRtl] + // E: Close ' instead of '' causes issues in PPT-2013! + if (slideObject.options.fit === 'none') + bodyProperties += ''; + // NOTE: Shrink does not work automatically - PowerPoint calculates the `fontScale` value dynamically upon resize + //else if (slideObject.options.fit === 'shrink') bodyProperties += '' // MS-PPT > Format shape > Text Options: "Shrink text on overflow" + else if (slideObject.options.fit === 'shrink') + bodyProperties += ''; + else if (slideObject.options.fit === 'resize') + bodyProperties += ''; + } + // + // DEPRECATED: below (@deprecated v3.3.0) + if (slideObject.options.shrinkText) + bodyProperties += ''; // MS-PPT > Format shape > Text Options: "Shrink text on overflow" + /* DEPRECATED: below (@deprecated v3.3.0) + * MS-PPT > Format shape > Text Options: "Resize shape to fit text" [spAutoFit] + * NOTE: Use of '' in lieu of '' below causes issues in PPT-2013 + */ + bodyProperties += slideObject.options._bodyProp.autoFit !== false ? '' : ''; + // LAST: Close _bodyProp + bodyProperties += ''; + } + else { + // DEFAULT: + bodyProperties += ' wrap="square" rtlCol="0">'; + bodyProperties += ''; + } + // LAST: Return Close _bodyProp + return slideObject._type === SLIDE_OBJECT_TYPES.tablecell ? '' : bodyProperties; +} +/** + * Generate the XML for text and its options (bold, bullet, etc) including text runs (word-level formatting) + * @param {ISlideObject|TableCell} slideObj - slideObj or tableCell + * @note PPT text lines [lines followed by line-breaks] are created using

-aragraph's + * @note Bullets are a paragragh-level formatting device + * @template + * + * + * + * + * + * + * + * + * + * textbox text + * + * + * + * + * @returns XML containing the param object's text and formatting + */ +function genXmlTextBody(slideObj) { + var opts = slideObj.options || {}; + var tmpTextObjects = []; + var arrTextObjects = []; + // FIRST: Shapes without text, etc. may be sent here during build, but have no text to render so return an empty string + if (opts && slideObj._type !== SLIDE_OBJECT_TYPES.tablecell && (typeof slideObj.text === 'undefined' || slideObj.text === null)) + return ''; + // STEP 1: Start textBody + var strSlideXml = slideObj._type === SLIDE_OBJECT_TYPES.tablecell ? '' : ''; + // STEP 2: Add bodyProperties + { + // A: 'bodyPr' + strSlideXml += genXmlBodyProperties(slideObj); + // B: 'lstStyle' + // NOTE: shape type 'LINE' has different text align needs (a lstStyle.lvl1pPr between bodyPr and p) + // FIXME: LINE horiz-align doesnt work (text is always to the left inside line) (FYI: the PPT code diff is substantial!) + if (opts.h === 0 && opts.line && opts.align) + strSlideXml += ''; + else if (slideObj._type === 'placeholder') + strSlideXml += "".concat(genXmlParagraphProperties(slideObj, true), ""); + else + strSlideXml += ''; + } + /* STEP 3: Modify slideObj.text to array + CASES: + addText( 'string' ) // string + addText( 'line1\n line2' ) // string with lineBreak + addText( {text:'word1'} ) // TextProps object + addText( ['barry','allen'] ) // array of strings + addText( [{text:'word1'}, {text:'word2'}] ) // TextProps object array + addText( [{text:'line1\n line2'}, {text:'end word'}] ) // TextProps object array with lineBreak + */ + if (typeof slideObj.text === 'string' || typeof slideObj.text === 'number') { + // Handle cases 1,2 + tmpTextObjects.push({ text: slideObj.text.toString(), options: opts || {} }); + } + else if (slideObj.text && !Array.isArray(slideObj.text) && typeof slideObj.text === 'object' && Object.keys(slideObj.text).indexOf('text') > -1) { + //} else if (!Array.isArray(slideObj.text) && slideObj.text!.hasOwnProperty('text')) { // 20210706: replaced with below as ts compiler rejected it + // Handle case 3 + tmpTextObjects.push({ text: slideObj.text || '', options: slideObj.options || {} }); + } + else if (Array.isArray(slideObj.text)) { + // Handle cases 4,5,6 + // NOTE: use cast as text is TextProps[]|TableCell[] and their `options` dont overlap (they share the same TextBaseProps though) + tmpTextObjects = slideObj.text.map(function (item) { return ({ text: item.text, options: item.options }); }); + } + // STEP 4: Iterate over text objects, set text/options, break into pieces if '\n'/breakLine found + tmpTextObjects.forEach(function (itext, idx) { + if (!itext.text) + itext.text = ''; + // A: Set options + itext.options = itext.options || opts || {}; + if (idx === 0 && itext.options && !itext.options.bullet && opts.bullet) + itext.options.bullet = opts.bullet; + // B: Cast to text-object and fix line-breaks (if needed) + if (typeof itext.text === 'string' || typeof itext.text === 'number') { + // 1: Convert "\n" or any variation into CRLF + itext.text = itext.text.toString().replace(/\r*\n/g, CRLF); + } + // C: If text string has line-breaks, then create a separate text-object for each (much easier than dealing with split inside a loop below) + // NOTE: Filter for trailing lineBreak prevents the creation of an empty textObj as the last item + if (itext.text.indexOf(CRLF) > -1 && itext.text.match(/\n$/g) === null) { + itext.text.split(CRLF).forEach(function (line) { + itext.options.breakLine = true; + arrTextObjects.push({ text: line, options: itext.options }); + }); + } + else { + arrTextObjects.push(itext); + } + }); + // STEP 5: Group textObj into lines by checking for lineBreak, bullets, alignment change, etc. + var arrLines = []; + var arrTexts = []; + arrTextObjects.forEach(function (textObj, idx) { + // A: Align or Bullet trigger new line + if (arrTexts.length > 0 && (textObj.options.align || opts.align)) { + // Only start a new paragraph when align *changes* + if (textObj.options.align != arrTextObjects[idx - 1].options.align) { + arrLines.push(arrTexts); + arrTexts = []; + } + } + else if (arrTexts.length > 0 && textObj.options.bullet && arrTexts.length > 0) { + arrLines.push(arrTexts); + arrTexts = []; + textObj.options.breakLine = false; // For cases with both `bullet` and `brekaLine` - prevent double lineBreak + } + // B: Add this text to current line + arrTexts.push(textObj); + // C: BreakLine begins new line **after** adding current text + if (arrTexts.length > 0 && textObj.options.breakLine) { + // Avoid starting a para right as loop is exhausted + if (idx + 1 < arrTextObjects.length) { + arrLines.push(arrTexts); + arrTexts = []; + } + } + // D: Flush buffer + if (idx + 1 === arrTextObjects.length) + arrLines.push(arrTexts); + }); + // STEP 6: Loop over each line and create paragraph props, text run, etc. + arrLines.forEach(function (line) { + var reqsClosingFontSize = false; + // A: Start paragraph, add paraProps + strSlideXml += ''; + // NOTE: `rtlMode` is like other opts, its propagated up to each text:options, so just check the 1st one + var paragraphPropXml = " 0 && textObj.options.softBreakBefore) { + strSlideXml += ""; + } + // B: Inherit pPr-type options from parent shape's `options` + textObj.options.align = textObj.options.align || opts.align; + textObj.options.lineSpacing = textObj.options.lineSpacing || opts.lineSpacing; + textObj.options.lineSpacingMultiple = textObj.options.lineSpacingMultiple || opts.lineSpacingMultiple; + textObj.options.indentLevel = textObj.options.indentLevel || opts.indentLevel; + textObj.options.paraSpaceBefore = textObj.options.paraSpaceBefore || opts.paraSpaceBefore; + textObj.options.paraSpaceAfter = textObj.options.paraSpaceAfter || opts.paraSpaceAfter; + paragraphPropXml = genXmlParagraphProperties(textObj, false); + strSlideXml += paragraphPropXml.replace('', ''); // IMPORTANT: Empty "pPr" blocks will generate needs-repair/corrupt msg + // C: Inherit any main options (color, fontSize, etc.) + // NOTE: We only pass the text.options to genXmlTextRun (not the Slide.options), + // so the run building function cant just fallback to Slide.color, therefore, we need to do that here before passing options below. + Object.entries(opts).forEach(function (_a) { + var key = _a[0], val = _a[1]; + // RULE: Hyperlinks should not inherit `color` from main options (let PPT default tolocal color, eg: blue on MacOS) + if (textObj.options.hyperlink && key === 'color') + ; + // NOTE: This loop will pick up unecessary keys (`x`, etc.), but it doesnt hurt anything + else if (key !== 'bullet' && !textObj.options[key]) + textObj.options[key] = val; + }); + // D: Add formatted textrun + strSlideXml += genXmlTextRun(textObj); + // E: Flag close fontSize for empty [lineBreak] elements + if ((!textObj.text && opts.fontSize) || textObj.options.fontSize) { + reqsClosingFontSize = true; + opts.fontSize = opts.fontSize || textObj.options.fontSize; + } + }); + /* C: Append 'endParaRPr' (when needed) and close current open paragraph + * NOTE: (ISSUE#20, ISSUE#193): Add 'endParaRPr' with font/size props or PPT default (Arial/18pt en-us) is used making row "too tall"/not honoring options + */ + if (slideObj._type === SLIDE_OBJECT_TYPES.tablecell && (opts.fontSize || opts.fontFace)) { + if (opts.fontFace) { + strSlideXml += "'; + strSlideXml += ""); + strSlideXml += ""); + strSlideXml += ""); + strSlideXml += ''; + } + else { + strSlideXml += "'; + } + } + else if (reqsClosingFontSize) { + // Empty [lineBreak] lines should not contain runProp, however, they need to specify fontSize in `endParaRPr` + strSlideXml += "'; + } + else { + strSlideXml += ""); // Added 20180101 to address PPT-2007 issues + } + // D: End paragraph + strSlideXml += ''; + }); + // STEP 7: Close the textBody + strSlideXml += slideObj._type === SLIDE_OBJECT_TYPES.tablecell ? '' : ''; + // LAST: Return XML + return strSlideXml; +} +/** + * Generate an XML Placeholder + * @param {ISlideObject} placeholderObj + * @returns XML + */ +function genXmlPlaceholder(placeholderObj) { + if (!placeholderObj) + return ''; + var placeholderIdx = placeholderObj.options && placeholderObj.options._placeholderIdx ? placeholderObj.options._placeholderIdx : ''; + var placeholderType = placeholderObj.options && placeholderObj.options._placeholderType ? placeholderObj.options._placeholderType : ''; + return " 0 ? ' hasCustomPrompt="1"' : '', "\n\t\t/>"); +} +// XML-GEN: First 6 functions create the base /ppt files +/** + * Generate XML ContentType + * @param {PresSlide[]} slides - slides + * @param {SlideLayout[]} slideLayouts - slide layouts + * @param {PresSlide} masterSlide - master slide + * @returns XML + */ +function makeXmlContTypes(slides, slideLayouts, masterSlide) { + var strXml = '' + CRLF; + strXml += ''; + strXml += ''; + strXml += ''; + strXml += ''; + strXml += ''; + // STEP 1: Add standard/any media types used in Presentation + strXml += ''; + strXml += ''; + strXml += ''; // NOTE: Hard-Code this extension as it wont be created in loop below (as extn !== type) + strXml += ''; // NOTE: Hard-Code this extension as it wont be created in loop below (as extn !== type) + slides.forEach(function (slide) { + (slide._relsMedia || []).forEach(function (rel) { + if (rel.type !== 'image' && rel.type !== 'online' && rel.type !== 'chart' && rel.extn !== 'm4v' && strXml.indexOf(rel.type) === -1) { + strXml += ''; + } + }); + }); + strXml += ''; + strXml += ''; + // STEP 2: Add presentation and slide master(s)/slide(s) + strXml += ''; + strXml += ''; + slides.forEach(function (slide, idx) { + strXml += + ''; + strXml += ''; + // Add charts if any + slide._relsChart.forEach(function (rel) { + strXml += ' '; + }); + }); + // STEP 3: Core PPT + strXml += ''; + strXml += ''; + strXml += ''; + strXml += ''; + // STEP 4: Add Slide Layouts + slideLayouts.forEach(function (layout, idx) { + strXml += + ''; + (layout._relsChart || []).forEach(function (rel) { + strXml += ' '; + }); + }); + // STEP 5: Add notes slide(s) + slides.forEach(function (_slide, idx) { + strXml += + ' '; + }); + // STEP 6: Add rels + masterSlide._relsChart.forEach(function (rel) { + strXml += ' '; + }); + masterSlide._relsMedia.forEach(function (rel) { + if (rel.type !== 'image' && rel.type !== 'online' && rel.type !== 'chart' && rel.extn !== 'm4v' && strXml.indexOf(rel.type) === -1) + strXml += ' '; + }); + // LAST: Finish XML (Resume core) + strXml += ' '; + strXml += ' '; + strXml += ''; + return strXml; +} +/** + * Creates `_rels/.rels` + * @returns XML + */ +function makeXmlRootRels() { + return "".concat(CRLF, "\n\t\t\n\t\t\n\t\t\n\t\t"); +} +/** + * Creates `docProps/app.xml` + * @param {PresSlide[]} slides - Presenation Slides + * @param {string} company - "Company" metadata + * @returns XML + */ +function makeXmlApp(slides, company) { + return "".concat(CRLF, "\n\t0\n\t0\n\tMicrosoft Office PowerPoint\n\tOn-screen Show (16:9)\n\t0\n\t").concat(slides.length, "\n\t").concat(slides.length, "\n\t0\n\t0\n\tfalse\n\t\n\t\t\n\t\t\tFonts Used\n\t\t\t2\n\t\t\tTheme\n\t\t\t1\n\t\t\tSlide Titles\n\t\t\t").concat(slides.length, "\n\t\t\n\t\n\t\n\t\t\n\t\t\tArial\n\t\t\tCalibri\n\t\t\tOffice Theme\n\t\t\t").concat(slides.map(function (_slideObj, idx) { return 'Slide ' + (idx + 1) + '\n'; }).join(''), "\n\t\t\n\t\n\t").concat(company, "\n\tfalse\n\tfalse\n\tfalse\n\t16.0000\n\t"); +} +/** + * Creates `docProps/core.xml` + * @param {string} title - metadata data + * @param {string} company - metadata data + * @param {string} author - metadata value + * @param {string} revision - metadata value + * @returns XML + */ +function makeXmlCore(title, subject, author, revision) { + return "\n\t\n\t\t".concat(encodeXmlEntities(title), "\n\t\t").concat(encodeXmlEntities(subject), "\n\t\t").concat(encodeXmlEntities(author), "\n\t\t").concat(encodeXmlEntities(author), "\n\t\t").concat(revision, "\n\t\t").concat(new Date().toISOString().replace(/\.\d\d\dZ/, 'Z'), "\n\t\t").concat(new Date().toISOString().replace(/\.\d\d\dZ/, 'Z'), "\n\t"); +} +/** + * Creates `ppt/_rels/presentation.xml.rels` + * @param {PresSlide[]} slides - Presenation Slides + * @returns XML + */ +function makeXmlPresentationRels(slides) { + var intRelNum = 1; + var strXml = '' + CRLF; + strXml += ''; + strXml += ''; + for (var idx = 1; idx <= slides.length; idx++) { + strXml += + ''; + } + intRelNum++; + strXml += + '' + + '' + + '' + + '' + + '' + + ''; + return strXml; +} +// XML-GEN: Functions that run 1-N times (once for each Slide) +/** + * Generates XML for the slide file (`ppt/slides/slide1.xml`) + * @param {PresSlide} slide - the slide object to transform into XML + * @return {string} XML + */ +function makeXmlSlide(slide) { + return ("".concat(CRLF) + + "") + + "".concat(slideObjectToXml(slide)) + + ""); +} +/** + * Get text content of Notes from Slide + * @param {PresSlide} slide - the slide object to transform into XML + * @return {string} notes text + */ +function getNotesFromSlide(slide) { + var notesText = ''; + slide._slideObjects.forEach(function (data) { + if (data._type === SLIDE_OBJECT_TYPES.notes) + notesText += data.text && data.text[0] ? data.text[0].text : ''; + }); + return notesText.replace(/\r*\n/g, CRLF); +} +/** + * Generate XML for Notes Master (notesMaster1.xml) + * @returns {string} XML + */ +function makeXmlNotesMaster() { + return "".concat(CRLF, "7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level\u2039#\u203A"); +} +/** + * Creates Notes Slide (`ppt/notesSlides/notesSlide1.xml`) + * @param {PresSlide} slide - the slide object to transform into XML + * @return {string} XML + */ +function makeXmlNotesSlide(slide) { + return ('' + + CRLF + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + encodeXmlEntities(getNotesFromSlide(slide)) + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + slide._slideNum + + '' + + '' + + '' + + ''); +} +/** + * Generates the XML layout resource from a layout object + * @param {SlideLayout} layout - slide layout (master) + * @return {string} XML + */ +function makeXmlLayout(layout) { + return "\n\t\t\n\t\t".concat(slideObjectToXml(layout), "\n\t\t"); +} +/** + * Creates Slide Master 1 (`ppt/slideMasters/slideMaster1.xml`) + * @param {PresSlide} slide - slide object that represents master slide layout + * @param {SlideLayout[]} layouts - slide layouts + * @return {string} XML + */ +function makeXmlMaster(slide, layouts) { + // NOTE: Pass layouts as static rels because they are not referenced any time + var layoutDefs = layouts.map(function (_layoutDef, idx) { return ''; }); + var strXml = '' + CRLF; + strXml += + ''; + strXml += slideObjectToXml(slide); + strXml += + ''; + strXml += '' + layoutDefs.join('') + ''; + strXml += ''; + strXml += + '' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ''; + strXml += ''; + return strXml; +} +/** + * Generates XML string for a slide layout relation file + * @param {number} layoutNumber - 1-indexed number of a layout that relations are generated for + * @param {SlideLayout[]} slideLayouts - Slide Layouts + * @return {string} XML + */ +function makeXmlSlideLayoutRel(layoutNumber, slideLayouts) { + return slideObjectRelationsToXml(slideLayouts[layoutNumber - 1], [ + { + target: '../slideMasters/slideMaster1.xml', + type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster', + }, + ]); +} +/** + * Creates `ppt/_rels/slide*.xml.rels` + * @param {PresSlide[]} slides + * @param {SlideLayout[]} slideLayouts - Slide Layout(s) + * @param {number} `slideNumber` 1-indexed number of a layout that relations are generated for + * @return {string} XML + */ +function makeXmlSlideRel(slides, slideLayouts, slideNumber) { + return slideObjectRelationsToXml(slides[slideNumber - 1], [ + { + target: '../slideLayouts/slideLayout' + getLayoutIdxForSlide(slides, slideLayouts, slideNumber) + '.xml', + type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout', + }, + { + target: '../notesSlides/notesSlide' + slideNumber + '.xml', + type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide', + }, + ]); +} +/** + * Generates XML string for a slide relation file. + * @param {number} slideNumber - 1-indexed number of a layout that relations are generated for + * @return {string} XML + */ +function makeXmlNotesSlideRel(slideNumber) { + return "\n\t\t\n\t\t\t\n\t\t\t\n\t\t"); +} +/** + * Creates `ppt/slideMasters/_rels/slideMaster1.xml.rels` + * @param {PresSlide} masterSlide - Slide object + * @param {SlideLayout[]} slideLayouts - Slide Layouts + * @return {string} XML + */ +function makeXmlMasterRel(masterSlide, slideLayouts) { + var defaultRels = slideLayouts.map(function (_layoutDef, idx) { return ({ + target: "../slideLayouts/slideLayout".concat(idx + 1, ".xml"), + type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout', + }); }); + defaultRels.push({ target: '../theme/theme1.xml', type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme' }); + return slideObjectRelationsToXml(masterSlide, defaultRels); +} +/** + * Creates `ppt/notesMasters/_rels/notesMaster1.xml.rels` + * @return {string} XML + */ +function makeXmlNotesMasterRel() { + return "".concat(CRLF, "\n\t\t\n\t\t"); +} +/** + * For the passed slide number, resolves name of a layout that is used for. + * @param {PresSlide[]} slides - srray of slides + * @param {SlideLayout[]} slideLayouts - array of slideLayouts + * @param {number} slideNumber + * @return {number} slide number + */ +function getLayoutIdxForSlide(slides, slideLayouts, slideNumber) { + for (var i = 0; i < slideLayouts.length; i++) { + if (slideLayouts[i]._name === slides[slideNumber - 1]._slideLayout._name) { + return i + 1; + } + } + // IMPORTANT: Return 1 (for `slideLayout1.xml`) when no def is found + // So all objects are in Layout1 and every slide that references it uses this layout. + return 1; +} +// XML-GEN: Last 5 functions create root /ppt files +/** + * Creates `ppt/theme/theme1.xml` + * @return {string} XML + */ +function makeXmlTheme() { + return "".concat(CRLF, ""); +} +/** + * Create presentation file (`ppt/presentation.xml`) + * @see https://docs.microsoft.com/en-us/office/open-xml/structure-of-a-presentationml-document + * @see http://www.datypic.com/sc/ooxml/t-p_CT_Presentation.html + * @param {IPresentationProps} pres - presentation + * @return {string} XML + */ +function makeXmlPresentation(pres) { + var strXml = "".concat(CRLF) + + ""); + // STEP 1: Add slide master (SPEC: tag 1 under ) + strXml += ''; + // STEP 2: Add all Slides (SPEC: tag 3 under ) + strXml += ''; + pres.slides.forEach(function (slide) { return (strXml += "")); }); + strXml += ''; + // STEP 3: Add Notes Master (SPEC: tag 2 under ) + // (NOTE: length+2 is from `presentation.xml.rels` func (since we have to match this rId, we just use same logic)) + // IMPORTANT: In this order (matches PPT2019) PPT will give corruption message on open! + // IMPORTANT: Placing this before `` causes warning in modern powerpoint! + // IMPORTANT: Presentations open without warning Without this line, however, the pres isnt preview in Finder anymore or viewable in iOS! + strXml += ""); + // STEP 4: Add sizes + strXml += ""); + strXml += ""); + // STEP 5: Add text styles + strXml += ''; + for (var idy = 1; idy < 10; idy++) { + strXml += + "") + + "" + + ""); + } + strXml += ''; + // STEP 6: Add Sections (if any) + if (pres.sections && pres.sections.length > 0) { + strXml += ''; + strXml += ''; + pres.sections.forEach(function (sect) { + strXml += ""); + sect._slides.forEach(function (slide) { return (strXml += "")); }); + strXml += ""; + }); + strXml += ''; + strXml += ''; + strXml += ''; + } + // Done + strXml += ''; + return strXml; +} +/** + * Create `ppt/presProps.xml` + * @return {string} XML + */ +function makeXmlPresProps() { + return "".concat(CRLF, ""); +} +/** + * Create `ppt/tableStyles.xml` + * @see: http://openxmldeveloper.org/discussions/formats/f/13/p/2398/8107.aspx + * @return {string} XML + */ +function makeXmlTableStyles() { + return "".concat(CRLF, ""); +} +/** + * Creates `ppt/viewProps.xml` + * @return {string} XML + */ +function makeXmlViewProps() { + return "".concat(CRLF, ""); +} +/** + * Checks shadow options passed by user and performs corrections if needed. + * @param {ShadowProps} ShadowProps - shadow options + */ +function correctShadowOptions(ShadowProps) { + if (!ShadowProps || typeof ShadowProps !== 'object') { + //console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`") + return; + } + // OPT: `type` + if (ShadowProps.type !== 'outer' && ShadowProps.type !== 'inner' && ShadowProps.type !== 'none') { + console.warn('Warning: shadow.type options are `outer`, `inner` or `none`.'); + ShadowProps.type = 'outer'; + } + // OPT: `angle` + if (ShadowProps.angle) { + // A: REALITY-CHECK + if (isNaN(Number(ShadowProps.angle)) || ShadowProps.angle < 0 || ShadowProps.angle > 359) { + console.warn('Warning: shadow.angle can only be 0-359'); + ShadowProps.angle = 270; + } + // B: ROBUST: Cast any type of valid arg to int: '12', 12.3, etc. -> 12 + ShadowProps.angle = Math.round(Number(ShadowProps.angle)); + } + // OPT: `opacity` + if (ShadowProps.opacity) { + // A: REALITY-CHECK + if (isNaN(Number(ShadowProps.opacity)) || ShadowProps.opacity < 0 || ShadowProps.opacity > 1) { + console.warn('Warning: shadow.opacity can only be 0-1'); + ShadowProps.opacity = 0.75; + } + // B: ROBUST: Cast any type of valid arg to int: '12', 12.3, etc. -> 12 + ShadowProps.opacity = Number(ShadowProps.opacity); + } } -/** - * PptxGenJS: Slide Object Generators - */ -/** counter for included charts (used for index in their filenames) */ -var _chartCounter = 0; -/** - * Transforms a slide definition to a slide object that is then passed to the XML transformation process. - * @param {SlideMasterProps} props - slide definition - * @param {PresSlide|SlideLayout} target - empty slide object that should be updated by the passed definition - */ -function createSlideMaster(props, target) { - // STEP 1: Add background if either the slide or layout has background props - // if (props.background || target.background) addBackgroundDefinition(props.background, target) - if (props.bkgd) - target.bkgd = props.bkgd; // DEPRECATED: (remove in v4.0.0) - // STEP 2: Add all Slide Master objects in the order they were given - if (props.objects && Array.isArray(props.objects) && props.objects.length > 0) { - props.objects.forEach(function (object, idx) { - var key = Object.keys(object)[0]; - var tgt = target; - if (MASTER_OBJECTS[key] && key === 'chart') - addChartDefinition(tgt, object[key].type, object[key].data, object[key].opts); - else if (MASTER_OBJECTS[key] && key === 'image') - addImageDefinition(tgt, object[key]); - else if (MASTER_OBJECTS[key] && key === 'line') - addShapeDefinition(tgt, SHAPE_TYPE.LINE, object[key]); - else if (MASTER_OBJECTS[key] && key === 'rect') - addShapeDefinition(tgt, SHAPE_TYPE.RECTANGLE, object[key]); - else if (MASTER_OBJECTS[key] && key === 'text') - addTextDefinition(tgt, [{ text: object[key].text }], object[key].options, false); - else if (MASTER_OBJECTS[key] && key === 'placeholder') { - // TODO: 20180820: Check for existing `name`? - object[key].options.placeholder = object[key].options.name; - delete object[key].options.name; // remap name for earier handling internally - object[key].options._placeholderType = object[key].options.type; - delete object[key].options.type; // remap name for earier handling internally - object[key].options._placeholderIdx = 100 + idx; - addTextDefinition(tgt, [{ text: object[key].text }], object[key].options, true); - // TODO: ISSUE#599 - only text is suported now (add more below) - //else if (object[key].image) addImageDefinition(tgt, object[key].image) - /* 20200120: So... image placeholders go into the "slideLayoutN.xml" file and addImage doesnt do this yet... - - - - - - - - - - - */ - } - }); - } - // STEP 3: Add Slide Numbers (NOTE: Do this last so numbers are not covered by objects!) - if (props.slideNumber && typeof props.slideNumber === 'object') - target._slideNumberProps = props.slideNumber; -} -/** - * Generate the chart based on input data. - * OOXML Chart Spec: ISO/IEC 29500-1:2016(E) - * - * @param {CHART_NAME | IChartMulti[]} `type` should belong to: 'column', 'pie' - * @param {[]} `data` a JSON object with follow the following format - * @param {IChartOptsLib} `opt` chart options - * @param {PresSlide} `target` slide object that the chart will be added to - * @return {object} chart object - * { - * title: 'eSurvey chart', - * data: [ - * { - * name: 'Income', - * labels: ['2005', '2006', '2007', '2008', '2009'], - * values: [23.5, 26.2, 30.1, 29.5, 24.6] - * }, - * { - * name: 'Expense', - * labels: ['2005', '2006', '2007', '2008', '2009'], - * values: [18.1, 22.8, 23.9, 25.1, 25] - * } - * ] - * } - */ -function addChartDefinition(target, type, data, opt) { - function correctGridLineOptions(glOpts) { - if (!glOpts || glOpts.style === 'none') - return; - if (glOpts.size !== undefined && (isNaN(Number(glOpts.size)) || glOpts.size <= 0)) { - console.warn('Warning: chart.gridLine.size must be greater than 0.'); - delete glOpts.size; // delete prop to used defaults - } - if (glOpts.style && ['solid', 'dash', 'dot'].indexOf(glOpts.style) < 0) { - console.warn('Warning: chart.gridLine.style options: `solid`, `dash`, `dot`.'); - delete glOpts.style; - } - } - var chartId = ++_chartCounter; - var resultObject = { - _type: null, - text: null, - options: null, - chartRid: null, - }; - // DESIGN: `type` can an object (ex: `pptx.charts.DOUGHNUT`) or an array of chart objects - // EX: addChartDefinition([ { type:pptx.charts.BAR, data:{name:'', labels:[], values[]} }, {} ]) - // Multi-Type Charts - var tmpOpt; - var tmpData = [], options; - if (Array.isArray(type)) { - // For multi-type charts there needs to be data for each type, - // as well as a single data source for non-series operations. - // The data is indexed below to keep the data in order when segmented - // into types. - type.forEach(function (obj) { - tmpData = tmpData.concat(obj.data); - }); - tmpOpt = data || opt; - } - else { - tmpData = data; - tmpOpt = opt; - } - tmpData.forEach(function (item, i) { - item.index = i; - }); - options = tmpOpt && typeof tmpOpt === 'object' ? tmpOpt : {}; - // STEP 1: TODO: check for reqd fields, correct type, etc - // `type` exists in CHART_TYPE - // Array.isArray(data) - /* - if ( Array.isArray(rel.data) && rel.data.length > 0 && typeof rel.data[0] === 'object' - && rel.data[0].labels && Array.isArray(rel.data[0].labels) - && rel.data[0].values && Array.isArray(rel.data[0].values) ) { - obj = rel.data[0]; - } - else { - console.warn("USAGE: addChart( 'pie', [ {name:'Sales', labels:['Jan','Feb'], values:[10,20]} ], {x:1, y:1} )"); - return; - } - */ - // STEP 2: Set default options/decode user options - // A: Core - options._type = type; - options.x = typeof options.x !== 'undefined' && options.x != null && !isNaN(Number(options.x)) ? options.x : 1; - options.y = typeof options.y !== 'undefined' && options.y != null && !isNaN(Number(options.y)) ? options.y : 1; - options.w = options.w || '50%'; - options.h = options.h || '50%'; - options.objectName = options.objectName - ? encodeXmlEntities(options.objectName) - : "Chart ".concat(target._slideObjects.filter(function (obj) { return obj._type === SLIDE_OBJECT_TYPES.chart; }).length); - // B: Options: misc - if (['bar', 'col'].indexOf(options.barDir || '') < 0) - options.barDir = 'col'; - // barGrouping: "21.2.3.17 ST_Grouping (Grouping)" - // barGrouping must be handled before data label validation as it can affect valid label positioning - if (options._type === CHART_TYPE.AREA) { - if (['stacked', 'standard', 'percentStacked'].indexOf(options.barGrouping || '') < 0) - options.barGrouping = 'standard'; - } - if (options._type === CHART_TYPE.BAR) { - if (['clustered', 'stacked', 'percentStacked'].indexOf(options.barGrouping || '') < 0) - options.barGrouping = 'clustered'; - } - if (options._type === CHART_TYPE.BAR3D) { - if (['clustered', 'stacked', 'standard', 'percentStacked'].indexOf(options.barGrouping || '') < 0) - options.barGrouping = 'standard'; - } - if (options.barGrouping && options.barGrouping.indexOf('tacked') > -1) { - if (!options.barGapWidthPct) - options.barGapWidthPct = 50; - } - // Clean up and validate data label positions - // REFERENCE: https://docs.microsoft.com/en-us/openspecs/office_standards/ms-oi29500/e2b1697c-7adc-463d-9081-3daef72f656f?redirectedfrom=MSDN - if (options.dataLabelPosition) { - if (options._type === CHART_TYPE.AREA || options._type === CHART_TYPE.BAR3D || options._type === CHART_TYPE.DOUGHNUT || options._type === CHART_TYPE.RADAR) - delete options.dataLabelPosition; - if (options._type === CHART_TYPE.PIE) { - if (['bestFit', 'ctr', 'inEnd', 'outEnd'].indexOf(options.dataLabelPosition) < 0) - delete options.dataLabelPosition; - } - if (options._type === CHART_TYPE.BUBBLE || options._type === CHART_TYPE.LINE || options._type === CHART_TYPE.SCATTER) { - if (['b', 'ctr', 'l', 'r', 't'].indexOf(options.dataLabelPosition) < 0) - delete options.dataLabelPosition; - } - if (options._type === CHART_TYPE.BAR) { - if (['stacked', 'percentStacked'].indexOf(options.barGrouping || '') < 0) { - if (['ctr', 'inBase', 'inEnd'].indexOf(options.dataLabelPosition) < 0) - delete options.dataLabelPosition; - } - if (['clustered'].indexOf(options.barGrouping || '') < 0) { - if (['ctr', 'inBase', 'inEnd', 'outEnd'].indexOf(options.dataLabelPosition) < 0) - delete options.dataLabelPosition; - } - } - } - options.dataLabelBkgrdColors = options.dataLabelBkgrdColors === true || options.dataLabelBkgrdColors === false ? options.dataLabelBkgrdColors : false; - if (['b', 'l', 'r', 't', 'tr'].indexOf(options.legendPos || '') < 0) - options.legendPos = 'r'; - // 3D bar: ST_Shape - if (['cone', 'coneToMax', 'box', 'cylinder', 'pyramid', 'pyramidToMax'].indexOf(options.bar3DShape || '') < 0) - options.bar3DShape = 'box'; - // lineDataSymbol: http://www.datypic.com/sc/ooxml/a-val-32.html - // Spec has [plus,star,x] however neither PPT2013 nor PPT-Online support them - if (['circle', 'dash', 'diamond', 'dot', 'none', 'square', 'triangle'].indexOf(options.lineDataSymbol || '') < 0) - options.lineDataSymbol = 'circle'; - if (['gap', 'span'].indexOf(options.displayBlanksAs || '') < 0) - options.displayBlanksAs = 'span'; - if (['standard', 'marker', 'filled'].indexOf(options.radarStyle || '') < 0) - options.radarStyle = 'standard'; - options.lineDataSymbolSize = options.lineDataSymbolSize && !isNaN(options.lineDataSymbolSize) ? options.lineDataSymbolSize : 6; - options.lineDataSymbolLineSize = options.lineDataSymbolLineSize && !isNaN(options.lineDataSymbolLineSize) ? valToPts(options.lineDataSymbolLineSize) : valToPts(0.75); - // `layout` allows the override of PPT defaults to maximize space - if (options.layout) { - ['x', 'y', 'w', 'h'].forEach(function (key) { - var val = options.layout[key]; - if (isNaN(Number(val)) || val < 0 || val > 1) { - console.warn('Warning: chart.layout.' + key + ' can only be 0-1'); - delete options.layout[key]; // remove invalid value so that default will be used - } - }); - } - // Set gridline defaults - options.catGridLine = options.catGridLine || (options._type === CHART_TYPE.SCATTER ? { color: 'D9D9D9', size: 1 } : { style: 'none' }); - options.valGridLine = options.valGridLine || (options._type === CHART_TYPE.SCATTER ? { color: 'D9D9D9', size: 1 } : {}); - options.serGridLine = options.serGridLine || (options._type === CHART_TYPE.SCATTER ? { color: 'D9D9D9', size: 1 } : { style: 'none' }); - correctGridLineOptions(options.catGridLine); - correctGridLineOptions(options.valGridLine); - correctGridLineOptions(options.serGridLine); - correctShadowOptions(options.shadow); - // C: Options: plotArea - options.showDataTable = options.showDataTable === true || options.showDataTable === false ? options.showDataTable : false; - options.showDataTableHorzBorder = options.showDataTableHorzBorder === true || options.showDataTableHorzBorder === false ? options.showDataTableHorzBorder : true; - options.showDataTableVertBorder = options.showDataTableVertBorder === true || options.showDataTableVertBorder === false ? options.showDataTableVertBorder : true; - options.showDataTableOutline = options.showDataTableOutline === true || options.showDataTableOutline === false ? options.showDataTableOutline : true; - options.showDataTableKeys = options.showDataTableKeys === true || options.showDataTableKeys === false ? options.showDataTableKeys : true; - options.showLabel = options.showLabel === true || options.showLabel === false ? options.showLabel : false; - options.showLegend = options.showLegend === true || options.showLegend === false ? options.showLegend : false; - options.showPercent = options.showPercent === true || options.showPercent === false ? options.showPercent : true; - options.showTitle = options.showTitle === true || options.showTitle === false ? options.showTitle : false; - options.showValue = options.showValue === true || options.showValue === false ? options.showValue : false; - options.showLeaderLines = options.showLeaderLines === true || options.showLeaderLines === false ? options.showLeaderLines : false; - options.catAxisLineShow = typeof options.catAxisLineShow !== 'undefined' ? options.catAxisLineShow : true; - options.valAxisLineShow = typeof options.valAxisLineShow !== 'undefined' ? options.valAxisLineShow : true; - options.serAxisLineShow = typeof options.serAxisLineShow !== 'undefined' ? options.serAxisLineShow : true; - options.v3DRotX = !isNaN(options.v3DRotX) && options.v3DRotX >= -90 && options.v3DRotX <= 90 ? options.v3DRotX : 30; - options.v3DRotY = !isNaN(options.v3DRotY) && options.v3DRotY >= 0 && options.v3DRotY <= 360 ? options.v3DRotY : 30; - options.v3DRAngAx = options.v3DRAngAx === true || options.v3DRAngAx === false ? options.v3DRAngAx : true; - options.v3DPerspective = !isNaN(options.v3DPerspective) && options.v3DPerspective >= 0 && options.v3DPerspective <= 240 ? options.v3DPerspective : 30; - // D: Options: chart - options.barGapWidthPct = !isNaN(options.barGapWidthPct) && options.barGapWidthPct >= 0 && options.barGapWidthPct <= 1000 ? options.barGapWidthPct : 150; - options.barGapDepthPct = !isNaN(options.barGapDepthPct) && options.barGapDepthPct >= 0 && options.barGapDepthPct <= 1000 ? options.barGapDepthPct : 150; - options.chartColors = Array.isArray(options.chartColors) - ? options.chartColors - : options._type === CHART_TYPE.PIE || options._type === CHART_TYPE.DOUGHNUT - ? PIECHART_COLORS - : BARCHART_COLORS; - options.chartColorsOpacity = options.chartColorsOpacity && !isNaN(options.chartColorsOpacity) ? options.chartColorsOpacity : null; - // - options.border = options.border && typeof options.border === 'object' ? options.border : null; - if (options.border && (!options.border.pt || isNaN(options.border.pt))) - options.border.pt = 1; - if (options.border && (!options.border.color || typeof options.border.color !== 'string' || options.border.color.length !== 6)) - options.border.color = '363636'; - // - options.dataBorder = options.dataBorder && typeof options.dataBorder === 'object' ? options.dataBorder : null; - if (options.dataBorder && (!options.dataBorder.pt || isNaN(options.dataBorder.pt))) - options.dataBorder.pt = 0.75; - if (options.dataBorder && (!options.dataBorder.color || typeof options.dataBorder.color !== 'string' || options.dataBorder.color.length !== 6)) - options.dataBorder.color = 'F9F9F9'; - // - if (!options.dataLabelFormatCode && options._type === CHART_TYPE.SCATTER) - options.dataLabelFormatCode = 'General'; - if (!options.dataLabelFormatCode && (options._type === CHART_TYPE.PIE || options._type === CHART_TYPE.DOUGHNUT)) - options.dataLabelFormatCode = options.showPercent ? '0%' : 'General'; - options.dataLabelFormatCode = options.dataLabelFormatCode && typeof options.dataLabelFormatCode === 'string' ? options.dataLabelFormatCode : '#,##0'; - // - // Set default format for Scatter chart labels to custom string if not defined - if (!options.dataLabelFormatScatter && options._type === CHART_TYPE.SCATTER) - options.dataLabelFormatScatter = 'custom'; - // - options.lineSize = typeof options.lineSize === 'number' ? options.lineSize : 2; - options.valAxisMajorUnit = typeof options.valAxisMajorUnit === 'number' ? options.valAxisMajorUnit : null; - options.valAxisCrossesAt = options.valAxisCrossesAt || 'autoZero'; - // STEP 4: Set props - resultObject._type = 'chart'; - resultObject.options = options; - resultObject.chartRid = getNewRelId(target); - // STEP 5: Add this chart to this Slide Rels (rId/rels count spans all slides! Count all images to get next rId) - target._relsChart.push({ - rId: getNewRelId(target), - data: tmpData, - opts: options, - type: options._type, - globalId: chartId, - fileName: 'chart' + chartId + '.xml', - Target: '/ppt/charts/chart' + chartId + '.xml', - }); - target._slideObjects.push(resultObject); - return resultObject; -} -/** - * Adds an image object to a slide definition. - * This method can be called with only two args (opt, target) - this is supposed to be the only way in future. - * @param {ImageProps} `opt` - object containing `path`/`data`, `x`, `y`, etc. - * @param {PresSlide} `target` - slide that the image should be added to (if not specified as the 2nd arg) - * @note: Remote images (eg: "http://whatev.com/blah"/from web and/or remote server arent supported yet - we'd need to create an , load it, then send to canvas - * @see: https://stackoverflow.com/questions/164181/how-to-fetch-a-remote-image-to-display-in-a-canvas) - */ -function addImageDefinition(target, opt) { - var newObject = { - _type: null, - text: null, - options: null, - image: null, - imageRid: null, - hyperlink: null, - }; - // FIRST: Set vars for this image (object param replaces positional args in 1.1.0) - var intPosX = opt.x || 0; - var intPosY = opt.y || 0; - var intWidth = opt.w || 0; - var intHeight = opt.h || 0; - var sizing = opt.sizing || null; - var objHyperlink = opt.hyperlink || ''; - var strImageData = opt.data || ''; - var strImagePath = opt.path || ''; - var imageRelId = getNewRelId(target); - var objectName = opt.objectName ? encodeXmlEntities(opt.objectName) : "Image ".concat(target._slideObjects.filter(function (obj) { return obj._type === SLIDE_OBJECT_TYPES.image; }).length); - // REALITY-CHECK: - if (!strImagePath && !strImageData) { - console.error("ERROR: addImage() requires either 'data' or 'path' parameter!"); - return null; - } - else if (strImagePath && typeof strImagePath !== 'string') { - console.error("ERROR: addImage() 'path' should be a string, ex: {path:'/img/sample.png'} - you sent ".concat(strImagePath)); - return null; - } - else if (strImageData && typeof strImageData !== 'string') { - console.error("ERROR: addImage() 'data' should be a string, ex: {data:'image/png;base64,NMP[...]'} - you sent ".concat(strImageData)); - return null; - } - else if (strImageData && typeof strImageData === 'string' && strImageData.toLowerCase().indexOf('base64,') === -1) { - console.error("ERROR: Image `data` value lacks a base64 header! Ex: 'image/png;base64,NMP[...]')"); - return null; - } - // STEP 1: Set extension - // NOTE: Split to address URLs with params (eg: `path/brent.jpg?someParam=true`) - var strImgExtn = strImagePath - .substring(strImagePath.lastIndexOf('/') + 1) - .split('?')[0] - .split('.') - .pop() - .split('#')[0] || 'png'; - // However, pre-encoded images can be whatever mime-type they want (and good for them!) - if (strImageData && /image\/(\w+);/.exec(strImageData) && /image\/(\w+);/.exec(strImageData).length > 0) { - strImgExtn = /image\/(\w+);/.exec(strImageData)[1]; - } - else if (strImageData && strImageData.toLowerCase().indexOf('image/svg+xml') > -1) { - strImgExtn = 'svg'; - } - // STEP 2: Set type/path - newObject._type = SLIDE_OBJECT_TYPES.image; - newObject.image = strImagePath || 'preencoded.png'; - // STEP 3: Set image properties & options - // FIXME: Measure actual image when no intWidth/intHeight params passed - // ....: This is an async process: we need to make getSizeFromImage use callback, then set H/W... - // if ( !intWidth || !intHeight ) { var imgObj = getSizeFromImage(strImagePath); - newObject.options = { - x: intPosX || 0, - y: intPosY || 0, - w: intWidth || 1, - h: intHeight || 1, - altText: opt.altText || '', - rounding: typeof opt.rounding === 'boolean' ? opt.rounding : false, - sizing: sizing, - placeholder: opt.placeholder, - rotate: opt.rotate || 0, - flipV: opt.flipV || false, - flipH: opt.flipH || false, - transparency: opt.transparency || 0, - objectName: objectName, - }; - // STEP 4: Add this image to this Slide Rels (rId/rels count spans all slides! Count all images to get next rId) - if (strImgExtn === 'svg') { - // SVG files consume *TWO* rId's: (a png version and the svg image) - // - // - target._relsMedia.push({ - path: strImagePath || strImageData + 'png', - type: 'image/png', - extn: 'png', - data: strImageData || '', - rId: imageRelId, - Target: '../media/image-' + target._slideNum + '-' + (target._relsMedia.length + 1) + '.png', - isSvgPng: true, - svgSize: { w: getSmartParseNumber(newObject.options.w, 'X', target._presLayout), h: getSmartParseNumber(newObject.options.h, 'Y', target._presLayout) }, - }); - newObject.imageRid = imageRelId; - target._relsMedia.push({ - path: strImagePath || strImageData, - type: 'image/svg+xml', - extn: strImgExtn, - data: strImageData || '', - rId: imageRelId + 1, - Target: '../media/image-' + target._slideNum + '-' + (target._relsMedia.length + 1) + '.' + strImgExtn, - }); - newObject.imageRid = imageRelId + 1; - } - else { - // PERF: Duplicate media should reuse existing `Target` value and not create an additional copy - var dupeItem = target._relsMedia.filter(function (item) { return item.path && item.path === strImagePath && item.type === 'image/' + strImgExtn && item.isDuplicate === false; })[0]; - target._relsMedia.push({ - path: strImagePath || 'preencoded.' + strImgExtn, - type: 'image/' + strImgExtn, - extn: strImgExtn, - data: strImageData || '', - rId: imageRelId, - isDuplicate: dupeItem && dupeItem.Target ? true : false, - Target: dupeItem && dupeItem.Target ? dupeItem.Target : "../media/image-".concat(target._slideNum, "-").concat(target._relsMedia.length + 1, ".").concat(strImgExtn), - }); - newObject.imageRid = imageRelId; - } - // STEP 5: Hyperlink support - if (typeof objHyperlink === 'object') { - if (!objHyperlink.url && !objHyperlink.slide) - throw new Error('ERROR: `hyperlink` option requires either: `url` or `slide`'); - else { - imageRelId++; - target._rels.push({ - type: SLIDE_OBJECT_TYPES.hyperlink, - data: objHyperlink.slide ? 'slide' : 'dummy', - rId: imageRelId, - Target: objHyperlink.url || objHyperlink.slide.toString(), - }); - objHyperlink._rId = imageRelId; - newObject.hyperlink = objHyperlink; - } - } - // STEP 6: Add object to slide - target._slideObjects.push(newObject); -} -/** - * Adds a media object to a slide definition. - * @param {PresSlide} `target` - slide object that the media will be added to - * @param {MediaProps} `opt` - media options - */ -function addMediaDefinition(target, opt) { - var intPosX = opt.x || 0; - var intPosY = opt.y || 0; - var intSizeX = opt.w || 2; - var intSizeY = opt.h || 2; - var strData = opt.data || ''; - var strLink = opt.link || ''; - var strPath = opt.path || ''; - var strType = opt.type || 'audio'; - var strExtn = ''; - var strCover = opt.cover || IMG_PLAYBTN; - var objectName = opt.objectName ? encodeXmlEntities(opt.objectName) : "Media ".concat(target._slideObjects.filter(function (obj) { return obj._type === SLIDE_OBJECT_TYPES.media; }).length); - var slideData = { _type: SLIDE_OBJECT_TYPES.media }; - // STEP 1: REALITY-CHECK - if (!strPath && !strData && strType !== 'online') { - throw new Error("addMedia() error: either 'data' or 'path' are required!"); - } - else if (strData && strData.toLowerCase().indexOf('base64,') === -1) { - throw new Error("addMedia() error: `data` value lacks a base64 header! Ex: 'video/mpeg;base64,NMP[...]')"); - } - // Online Video: requires `link` - if (strType === 'online' && !strLink) { - throw new Error('addMedia() error: online videos require `link` value'); - } - // FIXME: 20190707 - //strType = strData ? strData.split(';')[0].split('/')[0] : strType - strExtn = opt.extn || (strData ? strData.split(';')[0].split('/')[1] : strPath.split('.').pop()) || 'mp3'; - // STEP 2: Set type, media - slideData.mtype = strType; - slideData.media = strPath || 'preencoded.mov'; - slideData.options = {}; - // STEP 3: Set media properties & options - slideData.options.x = intPosX; - slideData.options.y = intPosY; - slideData.options.w = intSizeX; - slideData.options.h = intSizeY; - slideData.options.objectName = objectName; - // STEP 4: Add this media to this Slide Rels (rId/rels count spans all slides! Count all media to get next rId) - /** - * NOTE: - * - rId starts at 2 (hence the intRels+1 below) as slideLayout.xml is rId=1! - * - * NOTE: - * - Audio/Video files consume *TWO* rId's: - * - * - */ - if (strType === 'online') { - var relId1 = getNewRelId(target); - // A: Add video - target._relsMedia.push({ - path: strPath || 'preencoded' + strExtn, - data: 'dummy', - type: 'online', - extn: strExtn, - rId: relId1, - Target: strLink, - }); - slideData.mediaRid = relId1; - // B: Add cover (preview/overlay) image - target._relsMedia.push({ - path: 'preencoded.png', - data: strCover, - type: 'image/png', - extn: 'png', - rId: getNewRelId(target), - Target: '../media/image-' + target._slideNum + '-' + (target._relsMedia.length + 1) + '.png', - }); - } - else { - // PERF: Duplicate media should reuse existing `Target` value and not create an additional copy - var dupeItem = target._relsMedia.filter(function (item) { return item.path && item.path === strPath && item.type === strType + '/' + strExtn && item.isDuplicate === false; })[0]; - // A: "relationships/video" - var relId1 = getNewRelId(target); - target._relsMedia.push({ - path: strPath || 'preencoded' + strExtn, - type: strType + '/' + strExtn, - extn: strExtn, - data: strData || '', - rId: relId1, - isDuplicate: dupeItem && dupeItem.Target ? true : false, - Target: dupeItem && dupeItem.Target ? dupeItem.Target : "../media/media-".concat(target._slideNum, "-").concat(target._relsMedia.length + 1, ".").concat(strExtn), - }); - slideData.mediaRid = relId1; - // B: "relationships/media" - target._relsMedia.push({ - path: strPath || 'preencoded' + strExtn, - type: strType + '/' + strExtn, - extn: strExtn, - data: strData || '', - rId: getNewRelId(target), - isDuplicate: dupeItem && dupeItem.Target ? true : false, - Target: dupeItem && dupeItem.Target ? dupeItem.Target : "../media/media-".concat(target._slideNum, "-").concat(target._relsMedia.length + 0, ".").concat(strExtn), - }); - // C: Add cover (preview/overlay) image - target._relsMedia.push({ - path: 'preencoded.png', - type: 'image/png', - extn: 'png', - data: strCover, - rId: getNewRelId(target), - Target: "../media/image-".concat(target._slideNum, "-").concat(target._relsMedia.length + 1, ".png"), - }); - } - // LAST - target._slideObjects.push(slideData); -} -/** - * Adds Notes to a slide. - * @param {PresSlide} `target` slide object - * @param {string} `notes` - * @since 2.3.0 - */ -function addNotesDefinition(target, notes) { - target._slideObjects.push({ - _type: SLIDE_OBJECT_TYPES.notes, - text: [{ text: notes }], - }); -} -/** - * Adds a shape object to a slide definition. - * @param {PresSlide} target slide object that the shape should be added to - * @param {SHAPE_NAME} shapeName shape name - * @param {ShapeProps} opts shape options - */ -function addShapeDefinition(target, shapeName, opts) { - var options = typeof opts === 'object' ? opts : {}; - options.line = options.line || { type: 'none' }; - var newObject = { - _type: SLIDE_OBJECT_TYPES.text, - shape: shapeName || SHAPE_TYPE.RECTANGLE, - options: options, - text: null, - }; - // Reality check - if (!shapeName) - throw new Error('Missing/Invalid shape parameter! Example: `addShape(pptxgen.shapes.LINE, {x:1, y:1, w:1, h:1});`'); - // 1: ShapeLineProps defaults - var newLineOpts = { - type: options.line.type || 'solid', - color: options.line.color || DEF_SHAPE_LINE_COLOR, - transparency: options.line.transparency || 0, - width: options.line.width || 1, - dashType: options.line.dashType || 'solid', - beginArrowType: options.line.beginArrowType || null, - endArrowType: options.line.endArrowType || null, - }; - if (typeof options.line === 'object' && options.line.type !== 'none') - options.line = newLineOpts; - // 2: Set options defaults - options.x = options.x || (options.x === 0 ? 0 : 1); - options.y = options.y || (options.y === 0 ? 0 : 1); - options.w = options.w || (options.w === 0 ? 0 : 1); - options.h = options.h || (options.h === 0 ? 0 : 1); - options.objectName = options.objectName - ? encodeXmlEntities(options.objectName) - : "Shape ".concat(target._slideObjects.filter(function (obj) { return obj._type === SLIDE_OBJECT_TYPES.text; }).length); - // 3: Handle line (lots of deprecated opts) - if (typeof options.line === 'string') { - var tmpOpts = newLineOpts; - tmpOpts.color = options.line + ''; // @deprecated `options.line` string (was line color) - options.line = tmpOpts; - } - if (typeof options.lineSize === 'number') - options.line.width = options.lineSize; // @deprecated (part of `ShapeLineProps` now) - if (typeof options.lineDash === 'string') - options.line.dashType = options.lineDash; // @deprecated (part of `ShapeLineProps` now) - if (typeof options.lineHead === 'string') - options.line.beginArrowType = options.lineHead; // @deprecated (part of `ShapeLineProps` now) - if (typeof options.lineTail === 'string') - options.line.endArrowType = options.lineTail; // @deprecated (part of `ShapeLineProps` now) - // 4: Create hyperlink rels - createHyperlinkRels(target, newObject); - // LAST: Add object to slide - target._slideObjects.push(newObject); -} -/** - * Adds a table object to a slide definition. - * @param {PresSlide} target - slide object that the table should be added to - * @param {TableRow[]} tableRows - table data - * @param {TableProps} options - table options - * @param {SlideLayout} slideLayout - Slide layout - * @param {PresLayout} presLayout - Presentation layout - * @param {Function} addSlide - method - * @param {Function} getSlide - method - */ -function addTableDefinition(target, tableRows, options, slideLayout, presLayout, addSlide, getSlide) { - var slides = [target]; // Create array of Slides as more may be added by auto-paging - var opt = options && typeof options === 'object' ? options : {}; - opt.objectName = opt.objectName ? encodeXmlEntities(opt.objectName) : "Table ".concat(target._slideObjects.filter(function (obj) { return obj._type === SLIDE_OBJECT_TYPES.table; }).length); - // STEP 1: REALITY-CHECK - { - // A: check for empty - if (tableRows === null || tableRows.length === 0 || !Array.isArray(tableRows)) { - throw new Error("addTable: Array expected! EX: 'slide.addTable( [rows], {options} );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)"); - } - // B: check for non-well-formatted array (ex: rows=['a','b'] instead of [['a','b']]) - if (!tableRows[0] || !Array.isArray(tableRows[0])) { - throw new Error("addTable: 'rows' should be an array of cells! EX: 'slide.addTable( [ ['A'], ['B'], {text:'C',options:{align:'center'}} ] );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)"); - } - // TODO: FUTURE: This is wacky and wont function right (shows .w value when there is none from demo.js?!) 20191219 - /* - if (opt.w && opt.colW) { - console.warn('addTable: please use either `colW` or `w` - not both (table will use `colW` and ignore `w`)') - console.log(`${opt.w} ${opt.colW}`) - } - */ - } - // STEP 2: Transform `tableRows` into well-formatted TableCell's - // tableRows can be object or plain text array: `[{text:'cell 1'}, {text:'cell 2', options:{color:'ff0000'}}]` | `["cell 1", "cell 2"]` - var arrRows = []; - tableRows.forEach(function (row) { - var newRow = []; - if (Array.isArray(row)) { - row.forEach(function (cell) { - // A: - var newCell = { - _type: SLIDE_OBJECT_TYPES.tablecell, - text: '', - options: typeof cell === 'object' && cell.options ? cell.options : {}, - }; - // B: - if (typeof cell === 'string' || typeof cell === 'number') - newCell.text = cell.toString(); - else if (cell.text) { - // Cell can contain complex text type, or string, or number - if (typeof cell.text === 'string' || typeof cell.text === 'number') - newCell.text = cell.text.toString(); - else if (cell.text) - newCell.text = cell.text; - // Capture options - if (cell.options && typeof cell.options === 'object') - newCell.options = cell.options; - } - // C: Set cell borders - newCell.options.border = newCell.options.border || opt.border || [{ type: 'none' }, { type: 'none' }, { type: 'none' }, { type: 'none' }]; - var cellBorder = newCell.options.border; - // CASE 1: border interface is: BorderOptions | [BorderOptions, BorderOptions, BorderOptions, BorderOptions] - if (!Array.isArray(cellBorder) && typeof cellBorder === 'object') - newCell.options.border = [cellBorder, cellBorder, cellBorder, cellBorder]; - // Handle: [null, null, {type:'solid'}, null] - if (!newCell.options.border[0]) - newCell.options.border[0] = { type: 'none' }; - if (!newCell.options.border[1]) - newCell.options.border[1] = { type: 'none' }; - if (!newCell.options.border[2]) - newCell.options.border[2] = { type: 'none' }; - if (!newCell.options.border[3]) - newCell.options.border[3] = { type: 'none' }; - // set complete BorderOptions for all sides - var arrSides = [0, 1, 2, 3]; - arrSides.forEach(function (idx) { - newCell.options.border[idx] = { - type: newCell.options.border[idx].type || DEF_CELL_BORDER.type, - color: newCell.options.border[idx].color || DEF_CELL_BORDER.color, - pt: typeof newCell.options.border[idx].pt === 'number' ? newCell.options.border[idx].pt : DEF_CELL_BORDER.pt, - }; - }); - // LAST: - newRow.push(newCell); - }); - } - else { - console.log('addTable: tableRows has a bad row. A row should be an array of cells. You provided:'); - console.log(row); - } - arrRows.push(newRow); - }); - // STEP 3: Set options - opt.x = getSmartParseNumber(opt.x || (opt.x === 0 ? 0 : EMU / 2), 'X', presLayout); - opt.y = getSmartParseNumber(opt.y || (opt.y === 0 ? 0 : EMU / 2), 'Y', presLayout); - if (opt.h) - opt.h = getSmartParseNumber(opt.h, 'Y', presLayout); // NOTE: Dont set default `h` - leaving it null triggers auto-rowH in `makeXMLSlide()` - opt.fontSize = opt.fontSize || DEF_FONT_SIZE; - opt.margin = opt.margin === 0 || opt.margin ? opt.margin : DEF_CELL_MARGIN_IN; - if (typeof opt.margin === 'number') - opt.margin = [Number(opt.margin), Number(opt.margin), Number(opt.margin), Number(opt.margin)]; - if (!opt.color) - opt.color = opt.color || DEF_FONT_COLOR; // Set default color if needed (table option > inherit from Slide > default to black) - if (typeof opt.border === 'string') { - console.warn("addTable `border` option must be an object. Ex: `{border: {type:'none'}}`"); - opt.border = null; - } - else if (Array.isArray(opt.border)) { - [0, 1, 2, 3].forEach(function (idx) { - opt.border[idx] = opt.border[idx] - ? { type: opt.border[idx].type || DEF_CELL_BORDER.type, color: opt.border[idx].color || DEF_CELL_BORDER.color, pt: opt.border[idx].pt || DEF_CELL_BORDER.pt } - : { type: 'none' }; - }); - } - opt.autoPage = typeof opt.autoPage === 'boolean' ? opt.autoPage : false; - opt.autoPageRepeatHeader = typeof opt.autoPageRepeatHeader === 'boolean' ? opt.autoPageRepeatHeader : false; - opt.autoPageHeaderRows = typeof opt.autoPageHeaderRows !== 'undefined' && !isNaN(Number(opt.autoPageHeaderRows)) ? Number(opt.autoPageHeaderRows) : 1; - opt.autoPageLineWeight = typeof opt.autoPageLineWeight !== 'undefined' && !isNaN(Number(opt.autoPageLineWeight)) ? Number(opt.autoPageLineWeight) : 0; - if (opt.autoPageLineWeight) { - if (opt.autoPageLineWeight > 1) - opt.autoPageLineWeight = 1; - else if (opt.autoPageLineWeight < -1) - opt.autoPageLineWeight = -1; - } - // autoPage ^^^ - // Set/Calc table width - // Get slide margins - start with default values, then adjust if master or slide margins exist - var arrTableMargin = DEF_SLIDE_MARGIN_IN; - // Case 1: Master margins - if (slideLayout && typeof slideLayout._margin !== 'undefined') { - if (Array.isArray(slideLayout._margin)) - arrTableMargin = slideLayout._margin; - else if (!isNaN(Number(slideLayout._margin))) - arrTableMargin = [Number(slideLayout._margin), Number(slideLayout._margin), Number(slideLayout._margin), Number(slideLayout._margin)]; - } - // Case 2: Table margins - /* FIXME: add `_margin` option to slide options - else if ( addNewSlide._margin ) { - if ( Array.isArray(addNewSlide._margin) ) arrTableMargin = addNewSlide._margin; - else if ( !isNaN(Number(addNewSlide._margin)) ) arrTableMargin = [Number(addNewSlide._margin), Number(addNewSlide._margin), Number(addNewSlide._margin), Number(addNewSlide._margin)]; - } - */ - /** - * Calc table width depending upon what data we have - several scenarios exist (including bad data, eg: colW doesnt match col count) - * The API does not require a `w` value, but XML generation does, hence, code to calc a width below using colW value(s) - */ - if (opt.colW) { - var firstRowColCnt = arrRows[0].reduce(function (totalLen, c) { - if (c && c.options && c.options.colspan && typeof c.options.colspan === 'number') { - totalLen += c.options.colspan; - } - else { - totalLen += 1; - } - return totalLen; - }, 0); - // Ex: `colW = 3` or `colW = '3'` - if (typeof opt.colW === 'string' || typeof opt.colW === 'number') { - opt.w = Math.floor(Number(opt.colW) * firstRowColCnt); - opt.colW = null; // IMPORTANT: Unset `colW` so table is created using `opt.w`, which will evenly divide cols - } - // Ex: `colW=[3]` but with >1 cols (same as above, user is saying "use this width for all") - else if (opt.colW && Array.isArray(opt.colW) && opt.colW.length === 1 && firstRowColCnt > 1) { - opt.w = Math.floor(Number(opt.colW) * firstRowColCnt); - opt.colW = null; // IMPORTANT: Unset `colW` so table is created using `opt.w`, which will evenly divide cols - } - // Err: Mismatched colW and cols count - else if (opt.colW && Array.isArray(opt.colW) && opt.colW.length !== firstRowColCnt) { - console.warn('addTable: mismatch: (colW.length != data.length) Therefore, defaulting to evenly distributed col widths.'); - opt.colW = null; - } - } - else if (opt.w) { - opt.w = getSmartParseNumber(opt.w, 'X', presLayout); - } - else { - opt.w = Math.floor(presLayout._sizeW / EMU - arrTableMargin[1] - arrTableMargin[3]); - } - // STEP 4: Convert units to EMU now (we use different logic in makeSlide->table - smartCalc is not used) - if (opt.x && opt.x < 20) - opt.x = inch2Emu(opt.x); - if (opt.y && opt.y < 20) - opt.y = inch2Emu(opt.y); - if (opt.w && opt.w < 20) - opt.w = inch2Emu(opt.w); - if (opt.h && opt.h < 20) - opt.h = inch2Emu(opt.h); - // STEP 5: Loop over cells: transform each to ITableCell; check to see whether to unset `autoPage` while here - arrRows.forEach(function (row) { - row.forEach(function (cell, idy) { - // A: Transform cell data if needed - /* Table rows can be an object or plain text - transform into object when needed - // EX: - var arrTabRows1 = [ - [ { text:'A1\nA2', options:{rowspan:2, fill:'99FFCC'} } ] - ,[ 'B2', 'C2', 'D2', 'E2' ] - ] - */ - if (typeof cell === 'number' || typeof cell === 'string') { - // Grab table formatting `opts` to use here so text style/format inherits as it should - row[idy] = { _type: SLIDE_OBJECT_TYPES.tablecell, text: row[idy].toString(), options: opt }; - } - else if (typeof cell === 'object') { - // ARG0: `text` - if (typeof cell.text === 'number') - row[idy].text = row[idy].text.toString(); - else if (typeof cell.text === 'undefined' || cell.text === null) - row[idy].text = ''; - // ARG1: `options`: ensure options exists - row[idy].options = cell.options || {}; - // Set type to tabelcell - row[idy]._type = SLIDE_OBJECT_TYPES.tablecell; - } - // B: Check for fine-grained formatting, disable auto-page when found - // Since genXmlTextBody already checks for text array ( text:[{},..{}] ) we're done! - // Text in individual cells will be formatted as they are added by calls to genXmlTextBody within table builder - //if (cell.text && Array.isArray(cell.text)) opt.autoPage = false - // TODO: FIXME: WIP: 20210807: We cant do this anymore - }); - }); - // STEP 6: Auto-Paging: (via {options} and used internally) - // (used internally by `tableToSlides()` to not engage recursion - we've already paged the table data, just add this one) - if (opt && opt.autoPage === false) { - // Create hyperlink rels (IMPORTANT: Wait until table has been shredded across Slides or all rels will end-up on Slide 1!) - createHyperlinkRels(target, arrRows); - // Add slideObjects (NOTE: Use `extend` to avoid mutation) - target._slideObjects.push({ - _type: SLIDE_OBJECT_TYPES.table, - arrTabRows: arrRows, - options: Object.assign({}, opt), - }); - } - else { - if (opt.autoPageRepeatHeader) - opt._arrObjTabHeadRows = arrRows.filter(function (_row, idx) { return idx < opt.autoPageHeaderRows; }); - // Loop over rows and create 1-N tables as needed (ISSUE#21) - getSlidesForTableRows(arrRows, opt, presLayout, slideLayout).forEach(function (slide, idx) { - // A: Create new Slide when needed, otherwise, use existing (NOTE: More than 1 table can be on a Slide, so we will go up AND down the Slide chain) - if (!getSlide(target._slideNum + idx)) - slides.push(addSlide(slideLayout ? slideLayout._name : null)); - // B: Reset opt.y to `option`/`margin` after first Slide (ISSUE#43, ISSUE#47, ISSUE#48) - if (idx > 0) - opt.y = inch2Emu(opt.autoPageSlideStartY || opt.newSlideStartY || arrTableMargin[0]); - // C: Add this table to new Slide - { - var newSlide = getSlide(target._slideNum + idx); - opt.autoPage = false; - // Create hyperlink rels (IMPORTANT: Wait until table has been shredded across Slides or all rels will end-up on Slide 1!) - createHyperlinkRels(newSlide, slide.rows); - // Add rows to new slide - newSlide.addTable(slide.rows, Object.assign({}, opt)); - } - }); - } -} -/** - * Adds a text object to a slide definition. - * @param {PresSlide} target - slide object that the text should be added to - * @param {string|TextProps[]} text text string or object - * @param {TextPropsOptions} opts text options - * @param {boolean} isPlaceholder whether this a placeholder object - * @since: 1.0.0 - */ -function addTextDefinition(target, text, opts, isPlaceholder) { - var newObject = { - _type: isPlaceholder ? SLIDE_OBJECT_TYPES.placeholder : SLIDE_OBJECT_TYPES.text, - shape: (opts && opts.shape) || SHAPE_TYPE.RECTANGLE, - text: !text || text.length === 0 ? [{ text: '', options: null }] : text, - options: opts || {}, - }; - function cleanOpts(itemOpts) { - // STEP 1: Set some options - { - // A.1: Color (placeholders should inherit their colors or override them, so don't default them) - if (!itemOpts.placeholder) { - itemOpts.color = itemOpts.color || newObject.options.color || target.color || DEF_FONT_COLOR; - } - // A.2: Placeholder should inherit their bullets or override them, so don't default them - if (itemOpts.placeholder || isPlaceholder) { - itemOpts.bullet = itemOpts.bullet || false; - } - // A.3: Text targeting a placeholder need to inherit the placeholders options (eg: margin, valign, etc.) (Issue #640) - if (itemOpts.placeholder && target._slideLayout && target._slideLayout._slideObjects) { - var placeHold = target._slideLayout._slideObjects.filter(function (item) { return item._type === 'placeholder' && item.options && item.options.placeholder && item.options.placeholder === itemOpts.placeholder; })[0]; - if (placeHold && placeHold.options) - itemOpts = __assign(__assign({}, itemOpts), placeHold.options); - } - // A.4: Other options - itemOpts.objectName = itemOpts.objectName - ? encodeXmlEntities(itemOpts.objectName) - : "Text ".concat(target._slideObjects.filter(function (obj) { return obj._type === SLIDE_OBJECT_TYPES.text; }).length); - // B: - if (itemOpts.shape === SHAPE_TYPE.LINE) { - // ShapeLineProps defaults - var newLineOpts = { - type: itemOpts.line.type || 'solid', - color: itemOpts.line.color || DEF_SHAPE_LINE_COLOR, - transparency: itemOpts.line.transparency || 0, - width: itemOpts.line.width || 1, - dashType: itemOpts.line.dashType || 'solid', - beginArrowType: itemOpts.line.beginArrowType || null, - endArrowType: itemOpts.line.endArrowType || null, - }; - if (typeof itemOpts.line === 'object') - itemOpts.line = newLineOpts; - // 3: Handle line (lots of deprecated opts) - if (typeof itemOpts.line === 'string') { - var tmpOpts = newLineOpts; - if (typeof itemOpts.line === 'string') - tmpOpts.color = itemOpts.line; // @deprecated [remove in v4.0] - //tmpOpts.color = itemOpts.line!.toString() // @deprecated `itemOpts.line`:[string] (was line color) - itemOpts.line = tmpOpts; - } - if (typeof itemOpts.lineSize === 'number') - itemOpts.line.width = itemOpts.lineSize; // @deprecated (part of `ShapeLineProps` now) - if (typeof itemOpts.lineDash === 'string') - itemOpts.line.dashType = itemOpts.lineDash; // @deprecated (part of `ShapeLineProps` now) - if (typeof itemOpts.lineHead === 'string') - itemOpts.line.beginArrowType = itemOpts.lineHead; // @deprecated (part of `ShapeLineProps` now) - if (typeof itemOpts.lineTail === 'string') - itemOpts.line.endArrowType = itemOpts.lineTail; // @deprecated (part of `ShapeLineProps` now) - } - // C: Line opts - itemOpts.line = itemOpts.line || {}; - itemOpts.lineSpacing = itemOpts.lineSpacing && !isNaN(itemOpts.lineSpacing) ? itemOpts.lineSpacing : null; - itemOpts.lineSpacingMultiple = itemOpts.lineSpacingMultiple && !isNaN(itemOpts.lineSpacingMultiple) ? itemOpts.lineSpacingMultiple : null; - // D: Transform text options to bodyProperties as thats how we build XML - itemOpts._bodyProp = itemOpts._bodyProp || {}; - itemOpts._bodyProp.autoFit = itemOpts.autoFit || false; // DEPRECATED: (3.3.0) If true, shape will collapse to text size (Fit To shape) - itemOpts._bodyProp.anchor = !itemOpts.placeholder ? TEXT_VALIGN.ctr : null; // VALS: [t,ctr,b] - itemOpts._bodyProp.vert = itemOpts.vert || null; // VALS: [eaVert,horz,mongolianVert,vert,vert270,wordArtVert,wordArtVertRtl] - itemOpts._bodyProp.wrap = typeof itemOpts.wrap === 'boolean' ? itemOpts.wrap : true; - // E: Inset - // @deprecated 3.10.0 (`inset` - use `margin`) - if ((itemOpts.inset && !isNaN(Number(itemOpts.inset))) || itemOpts.inset === 0) { - itemOpts._bodyProp.lIns = inch2Emu(itemOpts.inset); - itemOpts._bodyProp.rIns = inch2Emu(itemOpts.inset); - itemOpts._bodyProp.tIns = inch2Emu(itemOpts.inset); - itemOpts._bodyProp.bIns = inch2Emu(itemOpts.inset); - } - // F: Transform @deprecated props - if (typeof itemOpts.underline === 'boolean' && itemOpts.underline === true) - itemOpts.underline = { style: 'sng' }; - } - // STEP 2: Transform `align`/`valign` to XML values, store in _bodyProp for XML gen - { - if ((itemOpts.align || '').toLowerCase().indexOf('c') === 0) - itemOpts._bodyProp.align = TEXT_HALIGN.center; - else if ((itemOpts.align || '').toLowerCase().indexOf('l') === 0) - itemOpts._bodyProp.align = TEXT_HALIGN.left; - else if ((itemOpts.align || '').toLowerCase().indexOf('r') === 0) - itemOpts._bodyProp.align = TEXT_HALIGN.right; - else if ((itemOpts.align || '').toLowerCase().indexOf('j') === 0) - itemOpts._bodyProp.align = TEXT_HALIGN.justify; - if ((itemOpts.valign || '').toLowerCase().indexOf('b') === 0) - itemOpts._bodyProp.anchor = TEXT_VALIGN.b; - else if ((itemOpts.valign || '').toLowerCase().indexOf('m') === 0) - itemOpts._bodyProp.anchor = TEXT_VALIGN.ctr; - else if ((itemOpts.valign || '').toLowerCase().indexOf('t') === 0) - itemOpts._bodyProp.anchor = TEXT_VALIGN.t; - } - // STEP 3: ROBUST: Set rational values for some shadow props if needed - correctShadowOptions(itemOpts.shadow); - return itemOpts; - } - // STEP 1: Create/Clean object options - newObject.options = cleanOpts(newObject.options); - // STEP 2: Create/Clean text options - newObject.text.forEach(function (item) { return (item.options = cleanOpts(item.options || {})); }); - // STEP 3: Create hyperlinks - createHyperlinkRels(target, newObject.text || ''); - // LAST: Add object to Slide - target._slideObjects.push(newObject); -} -/** - * Adds placeholder objects to slide - * @param {PresSlide} slide - slide object containing layouts - */ -function addPlaceholdersToSlideLayouts(slide) { - (slide._slideLayout._slideObjects || []).forEach(function (slideLayoutObj) { - if (slideLayoutObj._type === SLIDE_OBJECT_TYPES.placeholder) { - // A: Search for this placeholder on Slide before we add - // NOTE: Check to ensure a placeholder does not already exist on the Slide - // They are created when they have been populated with text (ex: `slide.addText('Hi', { placeholder:'title' });`) - if (slide._slideObjects.filter(function (slideObj) { return slideObj.options && slideObj.options.placeholder === slideLayoutObj.options.placeholder; }).length === 0) { - addTextDefinition(slide, [{ text: '' }], slideLayoutObj.options, false); - } - } - }); -} -/* -------------------------------------------------------------------------------- */ -/** - * Adds a background image or color to a slide definition. - * @param {BackgroundProps} props - color string or an object with image definition - * @param {PresSlide} target - slide object that the background is set to - */ -function addBackgroundDefinition(props, target) { - // A: @deprecated - if (target.bkgd) { - if (!target.background) - target.background = {}; - if (typeof target.bkgd === 'string') - target.background.color = target.bkgd; - else { - if (target.bkgd.data) - target.background.data = target.bkgd.data; - if (target.bkgd.path) - target.background.path = target.bkgd.path; - if (target.bkgd['src']) - target.background.path = target.bkgd['src']; // @deprecated (drop in 4.x) - } - } - if (target.background && target.background.fill) - target.background.color = target.background.fill; - // B: Handle media - if (props && (props.path || props.data)) { - // Allow the use of only the data key (`path` isnt reqd) - props.path = props.path || 'preencoded.png'; - var strImgExtn = (props.path.split('.').pop() || 'png').split('?')[0]; // Handle "blah.jpg?width=540" etc. - if (strImgExtn === 'jpg') - strImgExtn = 'jpeg'; // base64-encoded jpg's come out as "data:image/jpeg;base64,/9j/[...]", so correct exttnesion to avoid content warnings at PPT startup - target._relsMedia = target._relsMedia || []; - var intRels = target._relsMedia.length + 1; - // NOTE: `Target` cannot have spaces (eg:"Slide 1-image-1.jpg") or a "presentation is corrupt" warning comes up - target._relsMedia.push({ - path: props.path, - type: SLIDE_OBJECT_TYPES.image, - extn: strImgExtn, - data: props.data || null, - rId: intRels, - Target: "../media/".concat((target._name || '').replace(/\s+/gi, '-'), "-image-").concat(target._relsMedia.length + 1, ".").concat(strImgExtn), - }); - target._bkgdImgRid = intRels; - } -} -/** - * Parses text/text-objects from `addText()` and `addTable()` methods; creates 'hyperlink'-type Slide Rels for each hyperlink found - * @param {PresSlide} target - slide object that any hyperlinks will be be added to - * @param {number | string | TextProps | TextProps[] | ITableCell[][]} text - text to parse - */ -function createHyperlinkRels(target, text) { - var textObjs = []; - // Only text objects can have hyperlinks, bail when text param is plain text - if (typeof text === 'string' || typeof text === 'number') - return; - // IMPORTANT: "else if" Array.isArray must come before typeof===object! Otherwise, code will exhaust recursion! - else if (Array.isArray(text)) - textObjs = text; - else if (typeof text === 'object') - textObjs = [text]; - textObjs.forEach(function (text) { - // `text` can be an array of other `text` objects (table cell word-level formatting), continue parsing using recursion - if (Array.isArray(text)) { - createHyperlinkRels(target, text); - } - else if (Array.isArray(text.text)) { - // this handles TableCells with hyperlinks - createHyperlinkRels(target, text.text); - } - else if (text && typeof text === 'object' && text.options && text.options.hyperlink && !text.options.hyperlink._rId) { - if (typeof text.options.hyperlink !== 'object') - console.log("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink: {url:'https://github.com'}` "); - else if (!text.options.hyperlink.url && !text.options.hyperlink.slide) - console.log("ERROR: 'hyperlink requires either: `url` or `slide`'"); - else { - var relId = getNewRelId(target); - target._rels.push({ - type: SLIDE_OBJECT_TYPES.hyperlink, - data: text.options.hyperlink.slide ? 'slide' : 'dummy', - rId: relId, - Target: encodeXmlEntities(text.options.hyperlink.url) || text.options.hyperlink.slide.toString(), - }); - text.options.hyperlink._rId = relId; - } - } - }); +/** + * PptxGenJS: Slide Object Generators + */ +/** counter for included charts (used for index in their filenames) */ +var _chartCounter = 0; +/** + * Transforms a slide definition to a slide object that is then passed to the XML transformation process. + * @param {SlideMasterProps} props - slide definition + * @param {PresSlide|SlideLayout} target - empty slide object that should be updated by the passed definition + */ +function createSlideMaster(props, target) { + // STEP 1: Add background if either the slide or layout has background props + // if (props.background || target.background) addBackgroundDefinition(props.background, target) + if (props.bkgd) + target.bkgd = props.bkgd; // DEPRECATED: (remove in v4.0.0) + // STEP 2: Add all Slide Master objects in the order they were given + if (props.objects && Array.isArray(props.objects) && props.objects.length > 0) { + props.objects.forEach(function (object, idx) { + var key = Object.keys(object)[0]; + var tgt = target; + if (MASTER_OBJECTS[key] && key === 'chart') + addChartDefinition(tgt, object[key].type, object[key].data, object[key].opts); + else if (MASTER_OBJECTS[key] && key === 'image') + addImageDefinition(tgt, object[key]); + else if (MASTER_OBJECTS[key] && key === 'line') + addShapeDefinition(tgt, SHAPE_TYPE.LINE, object[key]); + else if (MASTER_OBJECTS[key] && key === 'rect') + addShapeDefinition(tgt, SHAPE_TYPE.RECTANGLE, object[key]); + else if (MASTER_OBJECTS[key] && key === 'text') + addTextDefinition(tgt, [{ text: object[key].text }], object[key].options, false); + else if (MASTER_OBJECTS[key] && key === 'placeholder') { + // TODO: 20180820: Check for existing `name`? + object[key].options.placeholder = object[key].options.name; + delete object[key].options.name; // remap name for earier handling internally + object[key].options._placeholderType = object[key].options.type; + delete object[key].options.type; // remap name for earier handling internally + object[key].options._placeholderIdx = 100 + idx; + addTextDefinition(tgt, [{ text: object[key].text }], object[key].options, true); + // TODO: ISSUE#599 - only text is suported now (add more below) + //else if (object[key].image) addImageDefinition(tgt, object[key].image) + /* 20200120: So... image placeholders go into the "slideLayoutN.xml" file and addImage doesnt do this yet... + + + + + + + + + + + */ + } + }); + } + // STEP 3: Add Slide Numbers (NOTE: Do this last so numbers are not covered by objects!) + if (props.slideNumber && typeof props.slideNumber === 'object') + target._slideNumberProps = props.slideNumber; +} +/** + * Generate the chart based on input data. + * OOXML Chart Spec: ISO/IEC 29500-1:2016(E) + * + * @param {CHART_NAME | IChartMulti[]} `type` should belong to: 'column', 'pie' + * @param {[]} `data` a JSON object with follow the following format + * @param {IChartOptsLib} `opt` chart options + * @param {PresSlide} `target` slide object that the chart will be added to + * @return {object} chart object + * { + * title: 'eSurvey chart', + * data: [ + * { + * name: 'Income', + * labels: ['2005', '2006', '2007', '2008', '2009'], + * values: [23.5, 26.2, 30.1, 29.5, 24.6] + * }, + * { + * name: 'Expense', + * labels: ['2005', '2006', '2007', '2008', '2009'], + * values: [18.1, 22.8, 23.9, 25.1, 25] + * } + * ] + * } + */ +function addChartDefinition(target, type, data, opt) { + function correctGridLineOptions(glOpts) { + if (!glOpts || glOpts.style === 'none') + return; + if (glOpts.size !== undefined && (isNaN(Number(glOpts.size)) || glOpts.size <= 0)) { + console.warn('Warning: chart.gridLine.size must be greater than 0.'); + delete glOpts.size; // delete prop to used defaults + } + if (glOpts.style && ['solid', 'dash', 'dot'].indexOf(glOpts.style) < 0) { + console.warn('Warning: chart.gridLine.style options: `solid`, `dash`, `dot`.'); + delete glOpts.style; + } + } + var chartId = ++_chartCounter; + var resultObject = { + _type: null, + text: null, + options: null, + chartRid: null, + }; + // DESIGN: `type` can an object (ex: `pptx.charts.DOUGHNUT`) or an array of chart objects + // EX: addChartDefinition([ { type:pptx.charts.BAR, data:{name:'', labels:[], values[]} }, {} ]) + // Multi-Type Charts + var tmpOpt; + var tmpData = [], options; + if (Array.isArray(type)) { + // For multi-type charts there needs to be data for each type, + // as well as a single data source for non-series operations. + // The data is indexed below to keep the data in order when segmented + // into types. + type.forEach(function (obj) { + tmpData = tmpData.concat(obj.data); + }); + tmpOpt = data || opt; + } + else { + tmpData = data; + tmpOpt = opt; + } + tmpData.forEach(function (item, i) { + item.index = i; + }); + options = tmpOpt && typeof tmpOpt === 'object' ? tmpOpt : {}; + // STEP 1: TODO: check for reqd fields, correct type, etc + // `type` exists in CHART_TYPE + // Array.isArray(data) + /* + if ( Array.isArray(rel.data) && rel.data.length > 0 && typeof rel.data[0] === 'object' + && rel.data[0].labels && Array.isArray(rel.data[0].labels) + && rel.data[0].values && Array.isArray(rel.data[0].values) ) { + obj = rel.data[0]; + } + else { + console.warn("USAGE: addChart( 'pie', [ {name:'Sales', labels:['Jan','Feb'], values:[10,20]} ], {x:1, y:1} )"); + return; + } + */ + // STEP 2: Set default options/decode user options + // A: Core + options._type = type; + options.x = typeof options.x !== 'undefined' && options.x != null && !isNaN(Number(options.x)) ? options.x : 1; + options.y = typeof options.y !== 'undefined' && options.y != null && !isNaN(Number(options.y)) ? options.y : 1; + options.w = options.w || '50%'; + options.h = options.h || '50%'; + options.objectName = options.objectName + ? encodeXmlEntities(options.objectName) + : "Chart ".concat(target._slideObjects.filter(function (obj) { return obj._type === SLIDE_OBJECT_TYPES.chart; }).length); + // B: Options: misc + if (['bar', 'col'].indexOf(options.barDir || '') < 0) + options.barDir = 'col'; + // barGrouping: "21.2.3.17 ST_Grouping (Grouping)" + // barGrouping must be handled before data label validation as it can affect valid label positioning + if (options._type === CHART_TYPE.AREA) { + if (['stacked', 'standard', 'percentStacked'].indexOf(options.barGrouping || '') < 0) + options.barGrouping = 'standard'; + } + if (options._type === CHART_TYPE.BAR) { + if (['clustered', 'stacked', 'percentStacked'].indexOf(options.barGrouping || '') < 0) + options.barGrouping = 'clustered'; + } + if (options._type === CHART_TYPE.BAR3D) { + if (['clustered', 'stacked', 'standard', 'percentStacked'].indexOf(options.barGrouping || '') < 0) + options.barGrouping = 'standard'; + } + if (options.barGrouping && options.barGrouping.indexOf('tacked') > -1) { + if (!options.barGapWidthPct) + options.barGapWidthPct = 50; + } + // Clean up and validate data label positions + // REFERENCE: https://docs.microsoft.com/en-us/openspecs/office_standards/ms-oi29500/e2b1697c-7adc-463d-9081-3daef72f656f?redirectedfrom=MSDN + if (options.dataLabelPosition) { + if (options._type === CHART_TYPE.AREA || options._type === CHART_TYPE.BAR3D || options._type === CHART_TYPE.DOUGHNUT || options._type === CHART_TYPE.RADAR) + delete options.dataLabelPosition; + if (options._type === CHART_TYPE.PIE) { + if (['bestFit', 'ctr', 'inEnd', 'outEnd'].indexOf(options.dataLabelPosition) < 0) + delete options.dataLabelPosition; + } + if (options._type === CHART_TYPE.BUBBLE || options._type === CHART_TYPE.LINE || options._type === CHART_TYPE.SCATTER) { + if (['b', 'ctr', 'l', 'r', 't'].indexOf(options.dataLabelPosition) < 0) + delete options.dataLabelPosition; + } + if (options._type === CHART_TYPE.BAR) { + if (['stacked', 'percentStacked'].indexOf(options.barGrouping || '') < 0) { + if (['ctr', 'inBase', 'inEnd'].indexOf(options.dataLabelPosition) < 0) + delete options.dataLabelPosition; + } + if (['clustered'].indexOf(options.barGrouping || '') < 0) { + if (['ctr', 'inBase', 'inEnd', 'outEnd'].indexOf(options.dataLabelPosition) < 0) + delete options.dataLabelPosition; + } + } + } + options.dataLabelBkgrdColors = options.dataLabelBkgrdColors === true || options.dataLabelBkgrdColors === false ? options.dataLabelBkgrdColors : false; + if (['b', 'l', 'r', 't', 'tr'].indexOf(options.legendPos || '') < 0) + options.legendPos = 'r'; + // 3D bar: ST_Shape + if (['cone', 'coneToMax', 'box', 'cylinder', 'pyramid', 'pyramidToMax'].indexOf(options.bar3DShape || '') < 0) + options.bar3DShape = 'box'; + // lineDataSymbol: http://www.datypic.com/sc/ooxml/a-val-32.html + // Spec has [plus,star,x] however neither PPT2013 nor PPT-Online support them + if (['circle', 'dash', 'diamond', 'dot', 'none', 'square', 'triangle'].indexOf(options.lineDataSymbol || '') < 0) + options.lineDataSymbol = 'circle'; + if (['gap', 'span'].indexOf(options.displayBlanksAs || '') < 0) + options.displayBlanksAs = 'span'; + if (['standard', 'marker', 'filled'].indexOf(options.radarStyle || '') < 0) + options.radarStyle = 'standard'; + options.lineDataSymbolSize = options.lineDataSymbolSize && !isNaN(options.lineDataSymbolSize) ? options.lineDataSymbolSize : 6; + options.lineDataSymbolLineSize = options.lineDataSymbolLineSize && !isNaN(options.lineDataSymbolLineSize) ? valToPts(options.lineDataSymbolLineSize) : valToPts(0.75); + // `layout` allows the override of PPT defaults to maximize space + if (options.layout) { + ['x', 'y', 'w', 'h'].forEach(function (key) { + var val = options.layout[key]; + if (isNaN(Number(val)) || val < 0 || val > 1) { + console.warn('Warning: chart.layout.' + key + ' can only be 0-1'); + delete options.layout[key]; // remove invalid value so that default will be used + } + }); + } + // Set gridline defaults + options.catGridLine = options.catGridLine || (options._type === CHART_TYPE.SCATTER ? { color: 'D9D9D9', size: 1 } : { style: 'none' }); + options.valGridLine = options.valGridLine || (options._type === CHART_TYPE.SCATTER ? { color: 'D9D9D9', size: 1 } : {}); + options.serGridLine = options.serGridLine || (options._type === CHART_TYPE.SCATTER ? { color: 'D9D9D9', size: 1 } : { style: 'none' }); + correctGridLineOptions(options.catGridLine); + correctGridLineOptions(options.valGridLine); + correctGridLineOptions(options.serGridLine); + correctShadowOptions(options.shadow); + // C: Options: plotArea + options.showDataTable = options.showDataTable === true || options.showDataTable === false ? options.showDataTable : false; + options.showDataTableHorzBorder = options.showDataTableHorzBorder === true || options.showDataTableHorzBorder === false ? options.showDataTableHorzBorder : true; + options.showDataTableVertBorder = options.showDataTableVertBorder === true || options.showDataTableVertBorder === false ? options.showDataTableVertBorder : true; + options.showDataTableOutline = options.showDataTableOutline === true || options.showDataTableOutline === false ? options.showDataTableOutline : true; + options.showDataTableKeys = options.showDataTableKeys === true || options.showDataTableKeys === false ? options.showDataTableKeys : true; + options.showLabel = options.showLabel === true || options.showLabel === false ? options.showLabel : false; + options.showLegend = options.showLegend === true || options.showLegend === false ? options.showLegend : false; + options.showPercent = options.showPercent === true || options.showPercent === false ? options.showPercent : true; + options.showTitle = options.showTitle === true || options.showTitle === false ? options.showTitle : false; + options.showValue = options.showValue === true || options.showValue === false ? options.showValue : false; + options.showLeaderLines = options.showLeaderLines === true || options.showLeaderLines === false ? options.showLeaderLines : false; + options.catAxisLineShow = typeof options.catAxisLineShow !== 'undefined' ? options.catAxisLineShow : true; + options.valAxisLineShow = typeof options.valAxisLineShow !== 'undefined' ? options.valAxisLineShow : true; + options.serAxisLineShow = typeof options.serAxisLineShow !== 'undefined' ? options.serAxisLineShow : true; + options.v3DRotX = !isNaN(options.v3DRotX) && options.v3DRotX >= -90 && options.v3DRotX <= 90 ? options.v3DRotX : 30; + options.v3DRotY = !isNaN(options.v3DRotY) && options.v3DRotY >= 0 && options.v3DRotY <= 360 ? options.v3DRotY : 30; + options.v3DRAngAx = options.v3DRAngAx === true || options.v3DRAngAx === false ? options.v3DRAngAx : true; + options.v3DPerspective = !isNaN(options.v3DPerspective) && options.v3DPerspective >= 0 && options.v3DPerspective <= 240 ? options.v3DPerspective : 30; + // D: Options: chart + options.barGapWidthPct = !isNaN(options.barGapWidthPct) && options.barGapWidthPct >= 0 && options.barGapWidthPct <= 1000 ? options.barGapWidthPct : 150; + options.barGapDepthPct = !isNaN(options.barGapDepthPct) && options.barGapDepthPct >= 0 && options.barGapDepthPct <= 1000 ? options.barGapDepthPct : 150; + options.chartColors = Array.isArray(options.chartColors) + ? options.chartColors + : options._type === CHART_TYPE.PIE || options._type === CHART_TYPE.DOUGHNUT + ? PIECHART_COLORS + : BARCHART_COLORS; + options.chartColorsOpacity = options.chartColorsOpacity && !isNaN(options.chartColorsOpacity) ? options.chartColorsOpacity : null; + // + options.border = options.border && typeof options.border === 'object' ? options.border : null; + if (options.border && (!options.border.pt || isNaN(options.border.pt))) + options.border.pt = 1; + if (options.border && (!options.border.color || typeof options.border.color !== 'string' || options.border.color.length !== 6)) + options.border.color = '363636'; + // + options.dataBorder = options.dataBorder && typeof options.dataBorder === 'object' ? options.dataBorder : null; + if (options.dataBorder && (!options.dataBorder.pt || isNaN(options.dataBorder.pt))) + options.dataBorder.pt = 0.75; + if (options.dataBorder && (!options.dataBorder.color || typeof options.dataBorder.color !== 'string' || options.dataBorder.color.length !== 6)) + options.dataBorder.color = 'F9F9F9'; + // + if (!options.dataLabelFormatCode && options._type === CHART_TYPE.SCATTER) + options.dataLabelFormatCode = 'General'; + if (!options.dataLabelFormatCode && (options._type === CHART_TYPE.PIE || options._type === CHART_TYPE.DOUGHNUT)) + options.dataLabelFormatCode = options.showPercent ? '0%' : 'General'; + options.dataLabelFormatCode = options.dataLabelFormatCode && typeof options.dataLabelFormatCode === 'string' ? options.dataLabelFormatCode : '#,##0'; + // + // Set default format for Scatter chart labels to custom string if not defined + if (!options.dataLabelFormatScatter && options._type === CHART_TYPE.SCATTER) + options.dataLabelFormatScatter = 'custom'; + // + options.lineSize = typeof options.lineSize === 'number' ? options.lineSize : 2; + options.valAxisMajorUnit = typeof options.valAxisMajorUnit === 'number' ? options.valAxisMajorUnit : null; + options.valAxisCrossesAt = options.valAxisCrossesAt || 'autoZero'; + // STEP 4: Set props + resultObject._type = 'chart'; + resultObject.options = options; + resultObject.chartRid = getNewRelId(target); + // STEP 5: Add this chart to this Slide Rels (rId/rels count spans all slides! Count all images to get next rId) + target._relsChart.push({ + rId: getNewRelId(target), + data: tmpData, + opts: options, + type: options._type, + globalId: chartId, + fileName: 'chart' + chartId + '.xml', + Target: '/ppt/charts/chart' + chartId + '.xml', + }); + target._slideObjects.push(resultObject); + return resultObject; +} +/** + * Adds an image object to a slide definition. + * This method can be called with only two args (opt, target) - this is supposed to be the only way in future. + * @param {ImageProps} `opt` - object containing `path`/`data`, `x`, `y`, etc. + * @param {PresSlide} `target` - slide that the image should be added to (if not specified as the 2nd arg) + * @note: Remote images (eg: "http://whatev.com/blah"/from web and/or remote server arent supported yet - we'd need to create an , load it, then send to canvas + * @see: https://stackoverflow.com/questions/164181/how-to-fetch-a-remote-image-to-display-in-a-canvas) + */ +function addImageDefinition(target, opt) { + var newObject = { + _type: null, + text: null, + options: null, + image: null, + imageRid: null, + hyperlink: null, + }; + // FIRST: Set vars for this image (object param replaces positional args in 1.1.0) + var intPosX = opt.x || 0; + var intPosY = opt.y || 0; + var intWidth = opt.w || 0; + var intHeight = opt.h || 0; + var sizing = opt.sizing || null; + var objHyperlink = opt.hyperlink || ''; + var strImageData = opt.data || ''; + var strImagePath = opt.path || ''; + var imageRelId = getNewRelId(target); + var objectName = opt.objectName ? encodeXmlEntities(opt.objectName) : "Image ".concat(target._slideObjects.filter(function (obj) { return obj._type === SLIDE_OBJECT_TYPES.image; }).length); + // REALITY-CHECK: + if (!strImagePath && !strImageData) { + console.error("ERROR: addImage() requires either 'data' or 'path' parameter!"); + return null; + } + else if (strImagePath && typeof strImagePath !== 'string') { + console.error("ERROR: addImage() 'path' should be a string, ex: {path:'/img/sample.png'} - you sent ".concat(strImagePath)); + return null; + } + else if (strImageData && typeof strImageData !== 'string') { + console.error("ERROR: addImage() 'data' should be a string, ex: {data:'image/png;base64,NMP[...]'} - you sent ".concat(strImageData)); + return null; + } + else if (strImageData && typeof strImageData === 'string' && strImageData.toLowerCase().indexOf('base64,') === -1) { + console.error("ERROR: Image `data` value lacks a base64 header! Ex: 'image/png;base64,NMP[...]')"); + return null; + } + // STEP 1: Set extension + // NOTE: Split to address URLs with params (eg: `path/brent.jpg?someParam=true`) + var strImgExtn = strImagePath + .substring(strImagePath.lastIndexOf('/') + 1) + .split('?')[0] + .split('.') + .pop() + .split('#')[0] || 'png'; + // However, pre-encoded images can be whatever mime-type they want (and good for them!) + if (strImageData && /image\/(\w+);/.exec(strImageData) && /image\/(\w+);/.exec(strImageData).length > 0) { + strImgExtn = /image\/(\w+);/.exec(strImageData)[1]; + } + else if (strImageData && strImageData.toLowerCase().indexOf('image/svg+xml') > -1) { + strImgExtn = 'svg'; + } + // STEP 2: Set type/path + newObject._type = SLIDE_OBJECT_TYPES.image; + newObject.image = strImagePath || 'preencoded.png'; + // STEP 3: Set image properties & options + // FIXME: Measure actual image when no intWidth/intHeight params passed + // ....: This is an async process: we need to make getSizeFromImage use callback, then set H/W... + // if ( !intWidth || !intHeight ) { var imgObj = getSizeFromImage(strImagePath); + newObject.options = { + x: intPosX || 0, + y: intPosY || 0, + w: intWidth || 1, + h: intHeight || 1, + altText: opt.altText || '', + rounding: typeof opt.rounding === 'boolean' ? opt.rounding : false, + sizing: sizing, + placeholder: opt.placeholder, + rotate: opt.rotate || 0, + flipV: opt.flipV || false, + flipH: opt.flipH || false, + transparency: opt.transparency || 0, + objectName: objectName, + }; + // STEP 4: Add this image to this Slide Rels (rId/rels count spans all slides! Count all images to get next rId) + if (strImgExtn === 'svg') { + // SVG files consume *TWO* rId's: (a png version and the svg image) + // + // + target._relsMedia.push({ + path: strImagePath || strImageData + 'png', + type: 'image/png', + extn: 'png', + data: strImageData || '', + rId: imageRelId, + Target: '../media/image-' + target._slideNum + '-' + (target._relsMedia.length + 1) + '.png', + isSvgPng: true, + svgSize: { w: getSmartParseNumber(newObject.options.w, 'X', target._presLayout), h: getSmartParseNumber(newObject.options.h, 'Y', target._presLayout) }, + }); + newObject.imageRid = imageRelId; + target._relsMedia.push({ + path: strImagePath || strImageData, + type: 'image/svg+xml', + extn: strImgExtn, + data: strImageData || '', + rId: imageRelId + 1, + Target: '../media/image-' + target._slideNum + '-' + (target._relsMedia.length + 1) + '.' + strImgExtn, + }); + newObject.imageRid = imageRelId + 1; + } + else { + // PERF: Duplicate media should reuse existing `Target` value and not create an additional copy + var dupeItem = target._relsMedia.filter(function (item) { return item.path && item.path === strImagePath && item.type === 'image/' + strImgExtn && item.isDuplicate === false; })[0]; + target._relsMedia.push({ + path: strImagePath || 'preencoded.' + strImgExtn, + type: 'image/' + strImgExtn, + extn: strImgExtn, + data: strImageData || '', + rId: imageRelId, + isDuplicate: dupeItem && dupeItem.Target ? true : false, + Target: dupeItem && dupeItem.Target ? dupeItem.Target : "../media/image-".concat(target._slideNum, "-").concat(target._relsMedia.length + 1, ".").concat(strImgExtn), + }); + newObject.imageRid = imageRelId; + } + // STEP 5: Hyperlink support + if (typeof objHyperlink === 'object') { + if (!objHyperlink.url && !objHyperlink.slide) + throw new Error('ERROR: `hyperlink` option requires either: `url` or `slide`'); + else { + imageRelId++; + target._rels.push({ + type: SLIDE_OBJECT_TYPES.hyperlink, + data: objHyperlink.slide ? 'slide' : 'dummy', + rId: imageRelId, + Target: objHyperlink.url || objHyperlink.slide.toString(), + }); + objHyperlink._rId = imageRelId; + newObject.hyperlink = objHyperlink; + } + } + // STEP 6: Add object to slide + target._slideObjects.push(newObject); +} +/** + * Adds a media object to a slide definition. + * @param {PresSlide} `target` - slide object that the media will be added to + * @param {MediaProps} `opt` - media options + */ +function addMediaDefinition(target, opt) { + var intPosX = opt.x || 0; + var intPosY = opt.y || 0; + var intSizeX = opt.w || 2; + var intSizeY = opt.h || 2; + var strData = opt.data || ''; + var strLink = opt.link || ''; + var strPath = opt.path || ''; + var strType = opt.type || 'audio'; + var strExtn = ''; + var strCover = opt.cover || IMG_PLAYBTN; + var objectName = opt.objectName ? encodeXmlEntities(opt.objectName) : "Media ".concat(target._slideObjects.filter(function (obj) { return obj._type === SLIDE_OBJECT_TYPES.media; }).length); + var slideData = { _type: SLIDE_OBJECT_TYPES.media }; + // STEP 1: REALITY-CHECK + if (!strPath && !strData && strType !== 'online') { + throw new Error("addMedia() error: either 'data' or 'path' are required!"); + } + else if (strData && strData.toLowerCase().indexOf('base64,') === -1) { + throw new Error("addMedia() error: `data` value lacks a base64 header! Ex: 'video/mpeg;base64,NMP[...]')"); + } + // Online Video: requires `link` + if (strType === 'online' && !strLink) { + throw new Error('addMedia() error: online videos require `link` value'); + } + // FIXME: 20190707 + //strType = strData ? strData.split(';')[0].split('/')[0] : strType + strExtn = opt.extn || (strData ? strData.split(';')[0].split('/')[1] : strPath.split('.').pop()) || 'mp3'; + // STEP 2: Set type, media + slideData.mtype = strType; + slideData.media = strPath || 'preencoded.mov'; + slideData.options = {}; + // STEP 3: Set media properties & options + slideData.options.x = intPosX; + slideData.options.y = intPosY; + slideData.options.w = intSizeX; + slideData.options.h = intSizeY; + slideData.options.objectName = objectName; + // STEP 4: Add this media to this Slide Rels (rId/rels count spans all slides! Count all media to get next rId) + /** + * NOTE: + * - rId starts at 2 (hence the intRels+1 below) as slideLayout.xml is rId=1! + * + * NOTE: + * - Audio/Video files consume *TWO* rId's: + * + * + */ + if (strType === 'online') { + var relId1 = getNewRelId(target); + // A: Add video + target._relsMedia.push({ + path: strPath || 'preencoded' + strExtn, + data: 'dummy', + type: 'online', + extn: strExtn, + rId: relId1, + Target: strLink, + }); + slideData.mediaRid = relId1; + // B: Add cover (preview/overlay) image + target._relsMedia.push({ + path: 'preencoded.png', + data: strCover, + type: 'image/png', + extn: 'png', + rId: getNewRelId(target), + Target: '../media/image-' + target._slideNum + '-' + (target._relsMedia.length + 1) + '.png', + }); + } + else { + // PERF: Duplicate media should reuse existing `Target` value and not create an additional copy + var dupeItem = target._relsMedia.filter(function (item) { return item.path && item.path === strPath && item.type === strType + '/' + strExtn && item.isDuplicate === false; })[0]; + // A: "relationships/video" + var relId1 = getNewRelId(target); + target._relsMedia.push({ + path: strPath || 'preencoded' + strExtn, + type: strType + '/' + strExtn, + extn: strExtn, + data: strData || '', + rId: relId1, + isDuplicate: dupeItem && dupeItem.Target ? true : false, + Target: dupeItem && dupeItem.Target ? dupeItem.Target : "../media/media-".concat(target._slideNum, "-").concat(target._relsMedia.length + 1, ".").concat(strExtn), + }); + slideData.mediaRid = relId1; + // B: "relationships/media" + target._relsMedia.push({ + path: strPath || 'preencoded' + strExtn, + type: strType + '/' + strExtn, + extn: strExtn, + data: strData || '', + rId: getNewRelId(target), + isDuplicate: dupeItem && dupeItem.Target ? true : false, + Target: dupeItem && dupeItem.Target ? dupeItem.Target : "../media/media-".concat(target._slideNum, "-").concat(target._relsMedia.length + 0, ".").concat(strExtn), + }); + // C: Add cover (preview/overlay) image + target._relsMedia.push({ + path: 'preencoded.png', + type: 'image/png', + extn: 'png', + data: strCover, + rId: getNewRelId(target), + Target: "../media/image-".concat(target._slideNum, "-").concat(target._relsMedia.length + 1, ".png"), + }); + } + // LAST + target._slideObjects.push(slideData); +} +/** + * Adds Notes to a slide. + * @param {PresSlide} `target` slide object + * @param {string} `notes` + * @since 2.3.0 + */ +function addNotesDefinition(target, notes) { + target._slideObjects.push({ + _type: SLIDE_OBJECT_TYPES.notes, + text: [{ text: notes }], + }); +} +/** + * Adds a shape object to a slide definition. + * @param {PresSlide} target slide object that the shape should be added to + * @param {SHAPE_NAME} shapeName shape name + * @param {ShapeProps} opts shape options + */ +function addShapeDefinition(target, shapeName, opts) { + var options = typeof opts === 'object' ? opts : {}; + options.line = options.line || { type: 'none' }; + var newObject = { + _type: SLIDE_OBJECT_TYPES.text, + shape: shapeName || SHAPE_TYPE.RECTANGLE, + options: options, + text: null, + }; + // Reality check + if (!shapeName) + throw new Error('Missing/Invalid shape parameter! Example: `addShape(pptxgen.shapes.LINE, {x:1, y:1, w:1, h:1});`'); + // 1: ShapeLineProps defaults + var newLineOpts = { + type: options.line.type || 'solid', + color: options.line.color || DEF_SHAPE_LINE_COLOR, + transparency: options.line.transparency || 0, + width: options.line.width || 1, + dashType: options.line.dashType || 'solid', + beginArrowType: options.line.beginArrowType || null, + endArrowType: options.line.endArrowType || null, + }; + if (typeof options.line === 'object' && options.line.type !== 'none') + options.line = newLineOpts; + // 2: Set options defaults + options.x = options.x || (options.x === 0 ? 0 : 1); + options.y = options.y || (options.y === 0 ? 0 : 1); + options.w = options.w || (options.w === 0 ? 0 : 1); + options.h = options.h || (options.h === 0 ? 0 : 1); + options.objectName = options.objectName + ? encodeXmlEntities(options.objectName) + : "Shape ".concat(target._slideObjects.filter(function (obj) { return obj._type === SLIDE_OBJECT_TYPES.text; }).length); + // 3: Handle line (lots of deprecated opts) + if (typeof options.line === 'string') { + var tmpOpts = newLineOpts; + tmpOpts.color = options.line + ''; // @deprecated `options.line` string (was line color) + options.line = tmpOpts; + } + if (typeof options.lineSize === 'number') + options.line.width = options.lineSize; // @deprecated (part of `ShapeLineProps` now) + if (typeof options.lineDash === 'string') + options.line.dashType = options.lineDash; // @deprecated (part of `ShapeLineProps` now) + if (typeof options.lineHead === 'string') + options.line.beginArrowType = options.lineHead; // @deprecated (part of `ShapeLineProps` now) + if (typeof options.lineTail === 'string') + options.line.endArrowType = options.lineTail; // @deprecated (part of `ShapeLineProps` now) + // 4: Create hyperlink rels + createHyperlinkRels(target, newObject); + // LAST: Add object to slide + target._slideObjects.push(newObject); +} +/** + * Adds a table object to a slide definition. + * @param {PresSlide} target - slide object that the table should be added to + * @param {TableRow[]} tableRows - table data + * @param {TableProps} options - table options + * @param {SlideLayout} slideLayout - Slide layout + * @param {PresLayout} presLayout - Presentation layout + * @param {Function} addSlide - method + * @param {Function} getSlide - method + */ +function addTableDefinition(target, tableRows, options, slideLayout, presLayout, addSlide, getSlide) { + var slides = [target]; // Create array of Slides as more may be added by auto-paging + var opt = options && typeof options === 'object' ? options : {}; + opt.objectName = opt.objectName ? encodeXmlEntities(opt.objectName) : "Table ".concat(target._slideObjects.filter(function (obj) { return obj._type === SLIDE_OBJECT_TYPES.table; }).length); + // STEP 1: REALITY-CHECK + { + // A: check for empty + if (tableRows === null || tableRows.length === 0 || !Array.isArray(tableRows)) { + throw new Error("addTable: Array expected! EX: 'slide.addTable( [rows], {options} );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)"); + } + // B: check for non-well-formatted array (ex: rows=['a','b'] instead of [['a','b']]) + if (!tableRows[0] || !Array.isArray(tableRows[0])) { + throw new Error("addTable: 'rows' should be an array of cells! EX: 'slide.addTable( [ ['A'], ['B'], {text:'C',options:{align:'center'}} ] );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)"); + } + // TODO: FUTURE: This is wacky and wont function right (shows .w value when there is none from demo.js?!) 20191219 + /* + if (opt.w && opt.colW) { + console.warn('addTable: please use either `colW` or `w` - not both (table will use `colW` and ignore `w`)') + console.log(`${opt.w} ${opt.colW}`) + } + */ + } + // STEP 2: Transform `tableRows` into well-formatted TableCell's + // tableRows can be object or plain text array: `[{text:'cell 1'}, {text:'cell 2', options:{color:'ff0000'}}]` | `["cell 1", "cell 2"]` + var arrRows = []; + tableRows.forEach(function (row) { + var newRow = []; + if (Array.isArray(row)) { + row.forEach(function (cell) { + // A: + var newCell = { + _type: SLIDE_OBJECT_TYPES.tablecell, + text: '', + options: typeof cell === 'object' && cell.options ? cell.options : {}, + }; + // B: + if (typeof cell === 'string' || typeof cell === 'number') + newCell.text = cell.toString(); + else if (cell.text) { + // Cell can contain complex text type, or string, or number + if (typeof cell.text === 'string' || typeof cell.text === 'number') + newCell.text = cell.text.toString(); + else if (cell.text) + newCell.text = cell.text; + // Capture options + if (cell.options && typeof cell.options === 'object') + newCell.options = cell.options; + } + // C: Set cell borders + newCell.options.border = newCell.options.border || opt.border || [{ type: 'none' }, { type: 'none' }, { type: 'none' }, { type: 'none' }]; + var cellBorder = newCell.options.border; + // CASE 1: border interface is: BorderOptions | [BorderOptions, BorderOptions, BorderOptions, BorderOptions] + if (!Array.isArray(cellBorder) && typeof cellBorder === 'object') + newCell.options.border = [cellBorder, cellBorder, cellBorder, cellBorder]; + // Handle: [null, null, {type:'solid'}, null] + if (!newCell.options.border[0]) + newCell.options.border[0] = { type: 'none' }; + if (!newCell.options.border[1]) + newCell.options.border[1] = { type: 'none' }; + if (!newCell.options.border[2]) + newCell.options.border[2] = { type: 'none' }; + if (!newCell.options.border[3]) + newCell.options.border[3] = { type: 'none' }; + // set complete BorderOptions for all sides + var arrSides = [0, 1, 2, 3]; + arrSides.forEach(function (idx) { + newCell.options.border[idx] = { + type: newCell.options.border[idx].type || DEF_CELL_BORDER.type, + color: newCell.options.border[idx].color || DEF_CELL_BORDER.color, + pt: typeof newCell.options.border[idx].pt === 'number' ? newCell.options.border[idx].pt : DEF_CELL_BORDER.pt, + }; + }); + // LAST: + newRow.push(newCell); + }); + } + else { + console.log('addTable: tableRows has a bad row. A row should be an array of cells. You provided:'); + console.log(row); + } + arrRows.push(newRow); + }); + // STEP 3: Set options + opt.x = getSmartParseNumber(opt.x || (opt.x === 0 ? 0 : EMU / 2), 'X', presLayout); + opt.y = getSmartParseNumber(opt.y || (opt.y === 0 ? 0 : EMU / 2), 'Y', presLayout); + if (opt.h) + opt.h = getSmartParseNumber(opt.h, 'Y', presLayout); // NOTE: Dont set default `h` - leaving it null triggers auto-rowH in `makeXMLSlide()` + opt.fontSize = opt.fontSize || DEF_FONT_SIZE; + opt.margin = opt.margin === 0 || opt.margin ? opt.margin : DEF_CELL_MARGIN_IN; + if (typeof opt.margin === 'number') + opt.margin = [Number(opt.margin), Number(opt.margin), Number(opt.margin), Number(opt.margin)]; + if (!opt.color) + opt.color = opt.color || DEF_FONT_COLOR; // Set default color if needed (table option > inherit from Slide > default to black) + if (typeof opt.border === 'string') { + console.warn("addTable `border` option must be an object. Ex: `{border: {type:'none'}}`"); + opt.border = null; + } + else if (Array.isArray(opt.border)) { + [0, 1, 2, 3].forEach(function (idx) { + opt.border[idx] = opt.border[idx] + ? { type: opt.border[idx].type || DEF_CELL_BORDER.type, color: opt.border[idx].color || DEF_CELL_BORDER.color, pt: opt.border[idx].pt || DEF_CELL_BORDER.pt } + : { type: 'none' }; + }); + } + opt.autoPage = typeof opt.autoPage === 'boolean' ? opt.autoPage : false; + opt.autoPageRepeatHeader = typeof opt.autoPageRepeatHeader === 'boolean' ? opt.autoPageRepeatHeader : false; + opt.autoPageHeaderRows = typeof opt.autoPageHeaderRows !== 'undefined' && !isNaN(Number(opt.autoPageHeaderRows)) ? Number(opt.autoPageHeaderRows) : 1; + opt.autoPageLineWeight = typeof opt.autoPageLineWeight !== 'undefined' && !isNaN(Number(opt.autoPageLineWeight)) ? Number(opt.autoPageLineWeight) : 0; + if (opt.autoPageLineWeight) { + if (opt.autoPageLineWeight > 1) + opt.autoPageLineWeight = 1; + else if (opt.autoPageLineWeight < -1) + opt.autoPageLineWeight = -1; + } + // autoPage ^^^ + // Set/Calc table width + // Get slide margins - start with default values, then adjust if master or slide margins exist + var arrTableMargin = DEF_SLIDE_MARGIN_IN; + // Case 1: Master margins + if (slideLayout && typeof slideLayout._margin !== 'undefined') { + if (Array.isArray(slideLayout._margin)) + arrTableMargin = slideLayout._margin; + else if (!isNaN(Number(slideLayout._margin))) + arrTableMargin = [Number(slideLayout._margin), Number(slideLayout._margin), Number(slideLayout._margin), Number(slideLayout._margin)]; + } + // Case 2: Table margins + /* FIXME: add `_margin` option to slide options + else if ( addNewSlide._margin ) { + if ( Array.isArray(addNewSlide._margin) ) arrTableMargin = addNewSlide._margin; + else if ( !isNaN(Number(addNewSlide._margin)) ) arrTableMargin = [Number(addNewSlide._margin), Number(addNewSlide._margin), Number(addNewSlide._margin), Number(addNewSlide._margin)]; + } + */ + /** + * Calc table width depending upon what data we have - several scenarios exist (including bad data, eg: colW doesnt match col count) + * The API does not require a `w` value, but XML generation does, hence, code to calc a width below using colW value(s) + */ + if (opt.colW) { + var firstRowColCnt = arrRows[0].reduce(function (totalLen, c) { + if (c && c.options && c.options.colspan && typeof c.options.colspan === 'number') { + totalLen += c.options.colspan; + } + else { + totalLen += 1; + } + return totalLen; + }, 0); + // Ex: `colW = 3` or `colW = '3'` + if (typeof opt.colW === 'string' || typeof opt.colW === 'number') { + opt.w = Math.floor(Number(opt.colW) * firstRowColCnt); + opt.colW = null; // IMPORTANT: Unset `colW` so table is created using `opt.w`, which will evenly divide cols + } + // Ex: `colW=[3]` but with >1 cols (same as above, user is saying "use this width for all") + else if (opt.colW && Array.isArray(opt.colW) && opt.colW.length === 1 && firstRowColCnt > 1) { + opt.w = Math.floor(Number(opt.colW) * firstRowColCnt); + opt.colW = null; // IMPORTANT: Unset `colW` so table is created using `opt.w`, which will evenly divide cols + } + // Err: Mismatched colW and cols count + else if (opt.colW && Array.isArray(opt.colW) && opt.colW.length !== firstRowColCnt) { + console.warn('addTable: mismatch: (colW.length != data.length) Therefore, defaulting to evenly distributed col widths.'); + opt.colW = null; + } + } + else if (opt.w) { + opt.w = getSmartParseNumber(opt.w, 'X', presLayout); + } + else { + opt.w = Math.floor(presLayout._sizeW / EMU - arrTableMargin[1] - arrTableMargin[3]); + } + // STEP 4: Convert units to EMU now (we use different logic in makeSlide->table - smartCalc is not used) + if (opt.x && opt.x < 20) + opt.x = inch2Emu(opt.x); + if (opt.y && opt.y < 20) + opt.y = inch2Emu(opt.y); + if (opt.w && opt.w < 20) + opt.w = inch2Emu(opt.w); + if (opt.h && opt.h < 20) + opt.h = inch2Emu(opt.h); + // STEP 5: Loop over cells: transform each to ITableCell; check to see whether to unset `autoPage` while here + arrRows.forEach(function (row) { + row.forEach(function (cell, idy) { + // A: Transform cell data if needed + /* Table rows can be an object or plain text - transform into object when needed + // EX: + var arrTabRows1 = [ + [ { text:'A1\nA2', options:{rowspan:2, fill:'99FFCC'} } ] + ,[ 'B2', 'C2', 'D2', 'E2' ] + ] + */ + if (typeof cell === 'number' || typeof cell === 'string') { + // Grab table formatting `opts` to use here so text style/format inherits as it should + row[idy] = { _type: SLIDE_OBJECT_TYPES.tablecell, text: row[idy].toString(), options: opt }; + } + else if (typeof cell === 'object') { + // ARG0: `text` + if (typeof cell.text === 'number') + row[idy].text = row[idy].text.toString(); + else if (typeof cell.text === 'undefined' || cell.text === null) + row[idy].text = ''; + // ARG1: `options`: ensure options exists + row[idy].options = cell.options || {}; + // Set type to tabelcell + row[idy]._type = SLIDE_OBJECT_TYPES.tablecell; + } + // B: Check for fine-grained formatting, disable auto-page when found + // Since genXmlTextBody already checks for text array ( text:[{},..{}] ) we're done! + // Text in individual cells will be formatted as they are added by calls to genXmlTextBody within table builder + //if (cell.text && Array.isArray(cell.text)) opt.autoPage = false + // TODO: FIXME: WIP: 20210807: We cant do this anymore + }); + }); + // STEP 6: Auto-Paging: (via {options} and used internally) + // (used internally by `tableToSlides()` to not engage recursion - we've already paged the table data, just add this one) + if (opt && opt.autoPage === false) { + // Create hyperlink rels (IMPORTANT: Wait until table has been shredded across Slides or all rels will end-up on Slide 1!) + createHyperlinkRels(target, arrRows); + // Add slideObjects (NOTE: Use `extend` to avoid mutation) + target._slideObjects.push({ + _type: SLIDE_OBJECT_TYPES.table, + arrTabRows: arrRows, + options: Object.assign({}, opt), + }); + } + else { + if (opt.autoPageRepeatHeader) + opt._arrObjTabHeadRows = arrRows.filter(function (_row, idx) { return idx < opt.autoPageHeaderRows; }); + // Loop over rows and create 1-N tables as needed (ISSUE#21) + getSlidesForTableRows(arrRows, opt, presLayout, slideLayout).forEach(function (slide, idx) { + // A: Create new Slide when needed, otherwise, use existing (NOTE: More than 1 table can be on a Slide, so we will go up AND down the Slide chain) + if (!getSlide(target._slideNum + idx)) + slides.push(addSlide(slideLayout ? slideLayout._name : null)); + // B: Reset opt.y to `option`/`margin` after first Slide (ISSUE#43, ISSUE#47, ISSUE#48) + if (idx > 0) + opt.y = inch2Emu(opt.autoPageSlideStartY || opt.newSlideStartY || arrTableMargin[0]); + // C: Add this table to new Slide + { + var newSlide = getSlide(target._slideNum + idx); + opt.autoPage = false; + // Create hyperlink rels (IMPORTANT: Wait until table has been shredded across Slides or all rels will end-up on Slide 1!) + createHyperlinkRels(newSlide, slide.rows); + // Add rows to new slide + newSlide.addTable(slide.rows, Object.assign({}, opt)); + } + }); + } +} +/** + * Adds a text object to a slide definition. + * @param {PresSlide} target - slide object that the text should be added to + * @param {string|TextProps[]} text text string or object + * @param {TextPropsOptions} opts text options + * @param {boolean} isPlaceholder whether this a placeholder object + * @since: 1.0.0 + */ +function addTextDefinition(target, text, opts, isPlaceholder) { + var newObject = { + _type: isPlaceholder ? SLIDE_OBJECT_TYPES.placeholder : SLIDE_OBJECT_TYPES.text, + shape: (opts && opts.shape) || SHAPE_TYPE.RECTANGLE, + text: !text || text.length === 0 ? [{ text: '', options: null }] : text, + options: opts || {}, + }; + function cleanOpts(itemOpts) { + // STEP 1: Set some options + { + // A.1: Color (placeholders should inherit their colors or override them, so don't default them) + if (!itemOpts.placeholder) { + itemOpts.color = itemOpts.color || newObject.options.color || target.color || DEF_FONT_COLOR; + } + // A.2: Placeholder should inherit their bullets or override them, so don't default them + if (itemOpts.placeholder || isPlaceholder) { + itemOpts.bullet = itemOpts.bullet || false; + } + // A.3: Text targeting a placeholder need to inherit the placeholders options (eg: margin, valign, etc.) (Issue #640) + if (itemOpts.placeholder && target._slideLayout && target._slideLayout._slideObjects) { + var placeHold = target._slideLayout._slideObjects.filter(function (item) { return item._type === 'placeholder' && item.options && item.options.placeholder && item.options.placeholder === itemOpts.placeholder; })[0]; + if (placeHold && placeHold.options) + itemOpts = __assign(__assign({}, itemOpts), placeHold.options); + } + // A.4: Other options + itemOpts.objectName = itemOpts.objectName + ? encodeXmlEntities(itemOpts.objectName) + : "Text ".concat(target._slideObjects.filter(function (obj) { return obj._type === SLIDE_OBJECT_TYPES.text; }).length); + // B: + if (itemOpts.shape === SHAPE_TYPE.LINE) { + // ShapeLineProps defaults + var newLineOpts = { + type: itemOpts.line.type || 'solid', + color: itemOpts.line.color || DEF_SHAPE_LINE_COLOR, + transparency: itemOpts.line.transparency || 0, + width: itemOpts.line.width || 1, + dashType: itemOpts.line.dashType || 'solid', + beginArrowType: itemOpts.line.beginArrowType || null, + endArrowType: itemOpts.line.endArrowType || null, + }; + if (typeof itemOpts.line === 'object') + itemOpts.line = newLineOpts; + // 3: Handle line (lots of deprecated opts) + if (typeof itemOpts.line === 'string') { + var tmpOpts = newLineOpts; + if (typeof itemOpts.line === 'string') + tmpOpts.color = itemOpts.line; // @deprecated [remove in v4.0] + //tmpOpts.color = itemOpts.line!.toString() // @deprecated `itemOpts.line`:[string] (was line color) + itemOpts.line = tmpOpts; + } + if (typeof itemOpts.lineSize === 'number') + itemOpts.line.width = itemOpts.lineSize; // @deprecated (part of `ShapeLineProps` now) + if (typeof itemOpts.lineDash === 'string') + itemOpts.line.dashType = itemOpts.lineDash; // @deprecated (part of `ShapeLineProps` now) + if (typeof itemOpts.lineHead === 'string') + itemOpts.line.beginArrowType = itemOpts.lineHead; // @deprecated (part of `ShapeLineProps` now) + if (typeof itemOpts.lineTail === 'string') + itemOpts.line.endArrowType = itemOpts.lineTail; // @deprecated (part of `ShapeLineProps` now) + } + // C: Line opts + itemOpts.line = itemOpts.line || {}; + itemOpts.lineSpacing = itemOpts.lineSpacing && !isNaN(itemOpts.lineSpacing) ? itemOpts.lineSpacing : null; + itemOpts.lineSpacingMultiple = itemOpts.lineSpacingMultiple && !isNaN(itemOpts.lineSpacingMultiple) ? itemOpts.lineSpacingMultiple : null; + // D: Transform text options to bodyProperties as thats how we build XML + itemOpts._bodyProp = itemOpts._bodyProp || {}; + itemOpts._bodyProp.autoFit = itemOpts.autoFit || false; // DEPRECATED: (3.3.0) If true, shape will collapse to text size (Fit To shape) + itemOpts._bodyProp.anchor = !itemOpts.placeholder ? TEXT_VALIGN.ctr : null; // VALS: [t,ctr,b] + itemOpts._bodyProp.vert = itemOpts.vert || null; // VALS: [eaVert,horz,mongolianVert,vert,vert270,wordArtVert,wordArtVertRtl] + itemOpts._bodyProp.wrap = typeof itemOpts.wrap === 'boolean' ? itemOpts.wrap : true; + // E: Inset + // @deprecated 3.10.0 (`inset` - use `margin`) + if ((itemOpts.inset && !isNaN(Number(itemOpts.inset))) || itemOpts.inset === 0) { + itemOpts._bodyProp.lIns = inch2Emu(itemOpts.inset); + itemOpts._bodyProp.rIns = inch2Emu(itemOpts.inset); + itemOpts._bodyProp.tIns = inch2Emu(itemOpts.inset); + itemOpts._bodyProp.bIns = inch2Emu(itemOpts.inset); + } + // F: Transform @deprecated props + if (typeof itemOpts.underline === 'boolean' && itemOpts.underline === true) + itemOpts.underline = { style: 'sng' }; + } + // STEP 2: Transform `align`/`valign` to XML values, store in _bodyProp for XML gen + { + if ((itemOpts.align || '').toLowerCase().indexOf('c') === 0) + itemOpts._bodyProp.align = TEXT_HALIGN.center; + else if ((itemOpts.align || '').toLowerCase().indexOf('l') === 0) + itemOpts._bodyProp.align = TEXT_HALIGN.left; + else if ((itemOpts.align || '').toLowerCase().indexOf('r') === 0) + itemOpts._bodyProp.align = TEXT_HALIGN.right; + else if ((itemOpts.align || '').toLowerCase().indexOf('j') === 0) + itemOpts._bodyProp.align = TEXT_HALIGN.justify; + if ((itemOpts.valign || '').toLowerCase().indexOf('b') === 0) + itemOpts._bodyProp.anchor = TEXT_VALIGN.b; + else if ((itemOpts.valign || '').toLowerCase().indexOf('m') === 0) + itemOpts._bodyProp.anchor = TEXT_VALIGN.ctr; + else if ((itemOpts.valign || '').toLowerCase().indexOf('t') === 0) + itemOpts._bodyProp.anchor = TEXT_VALIGN.t; + } + // STEP 3: ROBUST: Set rational values for some shadow props if needed + correctShadowOptions(itemOpts.shadow); + return itemOpts; + } + // STEP 1: Create/Clean object options + newObject.options = cleanOpts(newObject.options); + // STEP 2: Create/Clean text options + newObject.text.forEach(function (item) { return (item.options = cleanOpts(item.options || {})); }); + // STEP 3: Create hyperlinks + createHyperlinkRels(target, newObject.text || ''); + // LAST: Add object to Slide + target._slideObjects.push(newObject); +} +/** + * Adds placeholder objects to slide + * @param {PresSlide} slide - slide object containing layouts + */ +function addPlaceholdersToSlideLayouts(slide) { + (slide._slideLayout._slideObjects || []).forEach(function (slideLayoutObj) { + if (slideLayoutObj._type === SLIDE_OBJECT_TYPES.placeholder) { + // A: Search for this placeholder on Slide before we add + // NOTE: Check to ensure a placeholder does not already exist on the Slide + // They are created when they have been populated with text (ex: `slide.addText('Hi', { placeholder:'title' });`) + if (slide._slideObjects.filter(function (slideObj) { return slideObj.options && slideObj.options.placeholder === slideLayoutObj.options.placeholder; }).length === 0) { + addTextDefinition(slide, [{ text: '' }], slideLayoutObj.options, false); + } + } + }); +} +/* -------------------------------------------------------------------------------- */ +/** + * Adds a background image or color to a slide definition. + * @param {BackgroundProps} props - color string or an object with image definition + * @param {PresSlide} target - slide object that the background is set to + */ +function addBackgroundDefinition(props, target) { + // A: @deprecated + if (target.bkgd) { + if (!target.background) + target.background = {}; + if (typeof target.bkgd === 'string') + target.background.color = target.bkgd; + else { + if (target.bkgd.data) + target.background.data = target.bkgd.data; + if (target.bkgd.path) + target.background.path = target.bkgd.path; + if (target.bkgd['src']) + target.background.path = target.bkgd['src']; // @deprecated (drop in 4.x) + } + } + if (target.background && target.background.fill) + target.background.color = target.background.fill; + // B: Handle media + if (props && (props.path || props.data)) { + // Allow the use of only the data key (`path` isnt reqd) + props.path = props.path || 'preencoded.png'; + var strImgExtn = (props.path.split('.').pop() || 'png').split('?')[0]; // Handle "blah.jpg?width=540" etc. + if (strImgExtn === 'jpg') + strImgExtn = 'jpeg'; // base64-encoded jpg's come out as "data:image/jpeg;base64,/9j/[...]", so correct exttnesion to avoid content warnings at PPT startup + target._relsMedia = target._relsMedia || []; + var intRels = target._relsMedia.length + 1; + // NOTE: `Target` cannot have spaces (eg:"Slide 1-image-1.jpg") or a "presentation is corrupt" warning comes up + target._relsMedia.push({ + path: props.path, + type: SLIDE_OBJECT_TYPES.image, + extn: strImgExtn, + data: props.data || null, + rId: intRels, + Target: "../media/".concat((target._name || '').replace(/\s+/gi, '-'), "-image-").concat(target._relsMedia.length + 1, ".").concat(strImgExtn), + }); + target._bkgdImgRid = intRels; + } +} +/** + * Parses text/text-objects from `addText()` and `addTable()` methods; creates 'hyperlink'-type Slide Rels for each hyperlink found + * @param {PresSlide} target - slide object that any hyperlinks will be be added to + * @param {number | string | TextProps | TextProps[] | ITableCell[][]} text - text to parse + */ +function createHyperlinkRels(target, text) { + var textObjs = []; + // Only text objects can have hyperlinks, bail when text param is plain text + if (typeof text === 'string' || typeof text === 'number') + return; + // IMPORTANT: "else if" Array.isArray must come before typeof===object! Otherwise, code will exhaust recursion! + else if (Array.isArray(text)) + textObjs = text; + else if (typeof text === 'object') + textObjs = [text]; + textObjs.forEach(function (text) { + // `text` can be an array of other `text` objects (table cell word-level formatting), continue parsing using recursion + if (Array.isArray(text)) { + createHyperlinkRels(target, text); + } + else if (Array.isArray(text.text)) { + // this handles TableCells with hyperlinks + createHyperlinkRels(target, text.text); + } + else if (text && typeof text === 'object' && text.options && text.options.hyperlink && !text.options.hyperlink._rId) { + if (typeof text.options.hyperlink !== 'object') + console.log("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink: {url:'https://github.com'}` "); + else if (!text.options.hyperlink.url && !text.options.hyperlink.slide) + console.log("ERROR: 'hyperlink requires either: `url` or `slide`'"); + else { + var relId = getNewRelId(target); + target._rels.push({ + type: SLIDE_OBJECT_TYPES.hyperlink, + data: text.options.hyperlink.slide ? 'slide' : 'dummy', + rId: relId, + Target: encodeXmlEntities(text.options.hyperlink.url) || text.options.hyperlink.slide.toString(), + }); + text.options.hyperlink._rId = relId; + } + } + }); } -/** - * PptxGenJS: Slide Class - */ -var Slide = /** @class */ (function () { - function Slide(params) { - this.addSlide = params.addSlide; - this.getSlide = params.getSlide; - this._name = 'Slide ' + params.slideNumber; - this._presLayout = params.presLayout; - this._rId = params.slideRId; - this._rels = []; - this._relsChart = []; - this._relsMedia = []; - this._setSlideNum = params.setSlideNum; - this._slideId = params.slideId; - this._slideLayout = params.slideLayout || null; - this._slideNum = params.slideNumber; - this._slideObjects = []; - /** NOTE: Slide Numbers: In order for Slide Numbers to function they need to be in all 3 files: master/layout/slide - * `defineSlideMaster` and `addNewSlide.slideNumber` will add {slideNumber} to `this.masterSlide` and `this.slideLayouts` - * so, lastly, add to the Slide now. - */ - this._slideNumberProps = this._slideLayout && this._slideLayout._slideNumberProps ? this._slideLayout._slideNumberProps : null; - } - Object.defineProperty(Slide.prototype, "bkgd", { - get: function () { - return this._bkgd; - }, - set: function (value) { - this._bkgd = value; - if (!this._background || !this._background.color) { - if (!this._background) - this._background = {}; - if (typeof value === 'string') - this._background.color = value; - } - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Slide.prototype, "background", { - get: function () { - return this._background; - }, - set: function (props) { - this._background = props; - // Add background (image data/path must be captured before `exportPresentation()` is called) - if (props) - addBackgroundDefinition(props, this); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Slide.prototype, "color", { - get: function () { - return this._color; - }, - set: function (value) { - this._color = value; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Slide.prototype, "hidden", { - get: function () { - return this._hidden; - }, - set: function (value) { - this._hidden = value; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Slide.prototype, "slideNumber", { - get: function () { - return this._slideNumberProps; - }, - /** - * @type {SlideNumberProps} - */ - set: function (value) { - // NOTE: Slide Numbers: In order for Slide Numbers to function they need to be in all 3 files: master/layout/slide - this._slideNumberProps = value; - this._setSlideNum(value); - }, - enumerable: false, - configurable: true - }); - /** - * Add chart to Slide - * @param {CHART_NAME|IChartMulti[]} type - chart type - * @param {object[]} data - data object - * @param {IChartOpts} options - chart options - * @return {Slide} this Slide - */ - Slide.prototype.addChart = function (type, data, options) { - // FUTURE: TODO-VERSION-4: Remove first arg - only take data and opts, with "type" required on opts - // Set `_type` on IChartOptsLib as its what is used as object is passed around - var optionsWithType = options || {}; - optionsWithType._type = type; - addChartDefinition(this, type, data, options); - return this; - }; - /** - * Add image to Slide - * @param {ImageProps} options - image options - * @return {Slide} this Slide - */ - Slide.prototype.addImage = function (options) { - addImageDefinition(this, options); - return this; - }; - /** - * Add media (audio/video) to Slide - * @param {MediaProps} options - media options - * @return {Slide} this Slide - */ - Slide.prototype.addMedia = function (options) { - addMediaDefinition(this, options); - return this; - }; - /** - * Add speaker notes to Slide - * @docs https://gitbrent.github.io/PptxGenJS/docs/speaker-notes.html - * @param {string} notes - notes to add to slide - * @return {Slide} this Slide - */ - Slide.prototype.addNotes = function (notes) { - addNotesDefinition(this, notes); - return this; - }; - /** - * Add shape to Slide - * @param {SHAPE_NAME} shapeName - shape name - * @param {ShapeProps} options - shape options - * @return {Slide} this Slide - */ - Slide.prototype.addShape = function (shapeName, options) { - // NOTE: As of v3.1.0,