@progress/kendo-vue-excel-export 3.5.1-dev.202208150613 → 3.5.2-dev.202209011849
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-vue-excel-export.js +1 -1
- package/dist/es/ExcelExportOptions.d.ts +21 -0
- package/dist/es/ooxml/workbook.js +6 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/saveExcel.js +3 -1
- package/dist/esm/ExcelExportOptions.d.ts +21 -0
- package/dist/esm/ooxml/workbook.js +6 -1
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/saveExcel.js +3 -1
- package/dist/npm/ExcelExportOptions.d.ts +21 -0
- package/dist/npm/ooxml/workbook.js +6 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/saveExcel.js +3 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KendoVueExcelExport=e():t.KendoVueExcelExport=e()}(self,(function(){return(()=>{"use strict";var t={946:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},424:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},545:(t,e,r)=>{var n=Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]},i=function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.saveExcel=void 0;var o,a=(o=r(551))&&o.__esModule?o:{default:o};e.saveExcel=a.default,i(r(424),e),i(r(946),e),i(r(628),e),i(r(364),e)},613:(t,e)=>{var r=function(){return r=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ExporterColumn=e.toExporterColumns=void 0;var n=function(t,e,n){return function(i){n(e,i);var o=t(r({},e)),a=Number(o);return isNaN(a)?o:a}},i=function(t,e){t.$implicit=t.group=e,t.field=e.field,t.value=e.value,t.aggregates=e.aggregates},o=function(t,e){t.group=e.group,t.$implicit=t.aggregates=e},a=function(t,e){};e.toExporterColumns=function(t){var e=[],r=0;return function t(e,n,i){e.forEach((function(e){var o=new s(e,r);if(n.push(o),e.children&&e.children.length>1){var a=o.columns=[];t(e.children,a,i+1)}else r++}))}(t,e,0),e};var s=function(t,e){this.title=t.title,this.field=t.field,this.hidden=t.hidden,this.locked=t.locked,this.width=t.width,this.headerCellOptions=t.headerCellOptions,this.cellOptions=t.cellOptions,this.groupHeaderCellOptions=t.groupHeaderCellOptions,this.groupFooterCellOptions=t.groupFooterCellOptions,this.footerCellOptions=t.footerCellOptions,t.footer&&(this.footerTemplate=n(t.footer,{$implicit:t,column:t,columnIndex:e},a)),t.groupFooter&&(this.groupFooterTemplate=n(t.groupFooter,{column:t,field:t.field},o)),t.groupHeader&&(this.groupHeaderTemplate=n(t.groupHeader,{},i))};e.ExporterColumn=s},628:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isWorkbookOptions=e.toDataURL=e.workbookOptions=void 0;var n=r(364),i=r(613);e.workbookOptions=function(t){var e=(0,i.toExporterColumns)(t.columns),r=new n.ExcelExporter({columns:e,data:t.data,filterable:t.filterable,groups:t.group,paddingCellOptions:t.paddingCellOptions,headerPaddingCellOptions:t.headerPaddingCellOptions}).workbook();return r.creator=t.creator,r.date=t.date,r.rtl="rtl"===t.dir,r},e.toDataURL=function(t){return new n.Workbook(t).toDataURL()},e.isWorkbookOptions=function(t){return t&&t.sheets}},551:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=r(628),i=r(202);e.default=function(t){var e=(0,n.workbookOptions)(t);(0,n.toDataURL)(e).then((function(e){(0,i.saveAs)(e,t.fileName,{forceProxy:t.forceProxy,proxyURL:t.proxyURL})}))}},202:(t,e,r)=>{function n(t,e,r){void 0===r&&(r={});var n=l;if(r.forceProxy&&!r.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");r.forceProxy||(o()&&(n=s),navigator.msSaveBlob&&(n=a)),n(t,e,r)}r.r(e),r.d(e,{encodeBase64:()=>c,saveAs:()=>n});var i=function(){return document.createElement("a")},o=function(){return"download"in i()};function a(t,e){var r=t;if("string"==typeof t){for(var n=t.split(";base64,"),i=n[0],o=atob(n[1]),a=new Uint8Array(o.length),s=0;s<o.length;s++)a[s]=o.charCodeAt(s);r=new Blob([a.buffer],{type:i})}navigator.msSaveBlob(r,e)}function s(t,e){var r=t;window.Blob&&t instanceof Blob&&(r=URL.createObjectURL(t));var n=i();n.download=e,n.href=r;var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(o),setTimeout((function(){return URL.revokeObjectURL(r)}))}function l(t,e,r){if(r.proxyURL){var n=document.createElement("form");n.setAttribute("action",r.proxyURL),n.setAttribute("method","POST"),n.setAttribute("target",r.proxyTarget||"_self");var i=r.proxyData||{};i.fileName=e;var o=t.split(";base64,");for(var a in i.contentType=o[0].replace("data:",""),i.base64=o[1],i)if(i.hasOwnProperty(a)){var s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name",a),s.setAttribute("value",i[a]),n.appendChild(s)}document.body.appendChild(n),n.submit(),document.body.removeChild(n)}}var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=String.fromCharCode;function c(t){for(var e,r,n,i,o,a,s,l=function(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e+=u(n):n<2048?(e+=u(192|n>>>6),e+=u(128|63&n)):n<65536&&(e+=u(224|n>>>12),e+=u(128|n>>>6&63),e+=u(128|63&n))}return e}(t),c="",d=0;d<l.length;)i=(e=l.charCodeAt(d++))>>2,o=(3&e)<<4|(r=l.charCodeAt(d++))>>4,a=(15&r)<<2|(n=l.charCodeAt(d++))>>6,s=63&n,isNaN(r)?a=s=64:isNaN(n)&&(s=64),c=c+h.charAt(i)+h.charAt(o)+h.charAt(a)+h.charAt(s);return c}},364:(t,e,r)=>{r.r(e),r.d(e,{ExcelExporter:()=>p,IntlService:()=>v,TemplateService:()=>o,Workbook:()=>Jr,Worksheet:()=>Hr});var n={compile:function(t){return t}},i=function(){};i.register=function(t){n=t},i.compile=function(t){return n.compile(t)};const o=i;var a=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,s={};function l(t){if(s[t])return s[t];var e=[];return t.replace(a,(function(t,r,n,i){e.push(void 0!==r?r:n||i)})),s[t]=function(t){for(var r=t,n=0;n<e.length&&r;n++)r=r[e[n]];return r},s[t]}function h(t,e){return t.reduce((function(t,r,n){var i=e(r,n);return null!=i&&t.push(i),t}),[])}function u(t){return t.title+": "+t.value}function c(t,e){for(var r=[],n=0;n<t;n++)r.push(e(n));return r}function d(t){return t.id}s[void 0]=function(t){return t};var f=function(t){t.columns=this._trimColumns(t.columns||[]),this.allColumns=h(this._leafColumns(t.columns||[]),this._prepareColumn),this.columns=this._visibleColumns(this.allColumns),this.options=t,this.data=t.data||[],this.aggregates=t.aggregates||{},this.groups=[].concat(t.groups||[]),this.hasGroups=this.groups.length>0,this.hierarchy=t.hierarchy,this.hasGroupHeaderColumn=this.columns.some((function(t){return t.groupHeaderColumnTemplate})),this.collapsible=this.options.collapsible};f.prototype.workbook=function(){return{sheets:[{columns:this._columns(),rows:this.hierarchy?this._hierarchyRows():this._rows(),freezePane:this._freezePane(),filter:this._filter()}]}},f.prototype._trimColumns=function(t){var e=this;return t.filter((function(t){var r=Boolean(t.field);return!r&&t.columns&&(r=e._trimColumns(t.columns).length>0),r}))},f.prototype._leafColumns=function(t){for(var e=[],r=0;r<t.length;r++)t[r].columns?e=e.concat(this._leafColumns(t[r].columns)):e.push(t[r]);return e},f.prototype._prepareColumn=function(t){if(!t.field)return null;var e=function(e){return l(t.field)(e)},r=null;return t.values&&(r={},t.values.forEach((function(t){r[t.value]=t.text})),e=function(e){return r[l(t.field)(e)]}),Object.assign({},t,{value:e,values:r,groupHeaderTemplate:t.groupHeaderTemplate?o.compile(t.groupHeaderTemplate):u,groupHeaderColumnTemplate:t.groupHeaderColumnTemplate?o.compile(t.groupHeaderColumnTemplate):null,groupFooterTemplate:t.groupFooterTemplate?o.compile(t.groupFooterTemplate):null,footerTemplate:t.footerTemplate?o.compile(t.footerTemplate):null})},f.prototype._filter=function(){if(!this.options.filterable)return null;var t=this._depth();return{from:t,to:t+this.columns.length-1}},f.prototype._createPaddingCells=function(t){var e=this;return c(t,(function(){return Object.assign({background:"#dfdfdf",color:"#333"},e.options.paddingCellOptions)}))},f.prototype._dataRow=function(t,e,r){var n=this._createPaddingCells(e);if(this.hasGroups&&r&&t.items){n=n.concat(this._groupHeaderCells(t,e,r));var i=this._dataRows(t.items,e+1);return i.unshift({type:"group-header",cells:n,level:this.collapsible?e:null}),i.concat(this._footer(t,e))}for(var o=[],a=0;a<this.columns.length;a++)o[a]=this._cell(t,this.columns[a]);return this.hierarchy&&(o[0].colSpan=r-e+1),[{type:"data",cells:n.concat(o),level:this.collapsible?e:null}]},f.prototype._groupHeaderCells=function(t,e,r){var n=[],i=this.allColumns.filter((function(e){return e.field===t.field}))[0]||{},o=i&&i.title?i.title:t.field,a=i?i.groupHeaderTemplate||i.groupHeaderColumnTemplate:null,s=Object.assign({title:o,field:t.field,value:i&&i.values?i.values[t.value]:t.value,aggregates:t.aggregates,items:t.items},t.aggregates[t.field]),l=a?a(s):o+": "+t.value;return n.push(Object.assign({value:l,background:"#dfdfdf",color:"#333",colSpan:(this.hasGroupHeaderColumn?1:this.columns.length)+r-e},i.groupHeaderCellOptions)),this.hasGroupHeaderColumn&&this.columns.forEach((function(e,r){r>0&&n.push(Object.assign({background:"#dfdfdf",color:"#333",value:e.groupHeaderColumnTemplate?e.groupHeaderColumnTemplate(Object.assign({group:s},s,t.aggregates[e.field])):void 0},e.groupHeaderCellOptions))})),n},f.prototype._dataRows=function(t,e){for(var r=this._depth(),n=[],i=0;i<t.length;i++)n.push.apply(n,this._dataRow(t[i],e,r));return n},f.prototype._hierarchyRows=function(){var t,e=this._depth(),r=this.data,n=this.hierarchy.itemLevel,i=this.hierarchy.itemId||d,o=this._hasFooterTemplate(),a=[],s=[],l=0;o||(this.collapsible=!1);for(var h=0;h<r.length;h++){var u=r[h],c=n(u,h);o&&(c>l?s.push({id:t,level:l}):c<l&&a.push.apply(a,this._hierarchyFooterRows(s,c,e)),l=c,t=i(u,h)),a.push.apply(a,this._dataRow(u,c+1,e))}if(o){a.push.apply(a,this._hierarchyFooterRows(s,0,e));var f=r.length?this.aggregates[r[0].parentId]:{};a.push(this._hierarchyFooter(f,0,e))}return this._prependHeaderRows(a),a},f.prototype._hierarchyFooterRows=function(t,e,r){for(var n=[];t.length&&t[t.length-1].level>=e;){var i=t.pop();n.push(this._hierarchyFooter(this.aggregates[i.id],i.level+1,r))}return n},f.prototype._hasFooterTemplate=function(){for(var t=this.columns,e=0;e<t.length;e++)if(t[e].footerTemplate)return!0},f.prototype._hierarchyFooter=function(t,e,r){var n=this.columns.map((function(n,i){var o=i?1:r-e+1;if(n.footerTemplate){var a=(t||{})[n.field];return Object.assign({background:"#dfdfdf",color:"#333",colSpan:o,value:n.footerTemplate(Object.assign({aggregates:t},a))},n.footerCellOptions)}return Object.assign({background:"#dfdfdf",color:"#333",colSpan:o},n.footerCellOptions)}));return{type:"footer",cells:this._createPaddingCells(e).concat(n),level:this.collapsible?e:null}},f.prototype._footer=function(t,e){var r,n,i=[],o=this.columns.some((function(t){return t.groupFooterTemplate}));o&&(n={group:{items:t.items,field:t.field,value:t.value}},r={},Object.keys(t.aggregates).forEach((function(e){r[e]=Object.assign({},t.aggregates[e],n)})));var a=this.columns.map((function(e){if(e.groupFooterTemplate){var i=Object.assign({},r,t.aggregates[e.field],n);return Object.assign({background:"#dfdfdf",color:"#333",value:e.groupFooterTemplate(i)},e.groupFooterCellOptions)}return Object.assign({background:"#dfdfdf",color:"#333"},e.groupFooterCellOptions)}));return o&&i.push({type:"group-footer",cells:this._createPaddingCells(this.groups.length).concat(a),level:this.collapsible?e:null}),i},f.prototype._isColumnVisible=function(t){return this._visibleColumns([t]).length>0&&(t.field||t.columns)},f.prototype._visibleColumns=function(t){var e=this;return t.filter((function(t){var r=t.exportable;"object"==typeof r&&(r=t.exportable.excel);var n=!t.hidden&&!1!==r,i=t.hidden&&!0===r,o=n||i;return o&&t.columns&&(o=e._visibleColumns(t.columns).length>0),o}))},f.prototype._headerRow=function(t,e){var r=this,n=t.cells.map((function(e){return Object.assign(e,{colSpan:e.colSpan>1?e.colSpan:1,rowSpan:t.rowSpan>1&&!e.colSpan?t.rowSpan:1})}));return this.hierarchy&&n[0].firstCell&&(n[0].colSpan+=this._depth()),{type:"header",cells:c(e.length,(function(){return Object.assign({background:"#7a7a7a",color:"#fff"},r.options.headerPaddingCellOptions)})).concat(n)}},f.prototype._prependHeaderRows=function(t){var e=this.groups,r=[{rowSpan:1,cells:[],index:0}];this._prepareHeaderRows(r,this.options.columns);for(var n=r.length-1;n>=0;n--)t.unshift(this._headerRow(r[n],e))},f.prototype._prepareHeaderRows=function(t,e,r,n){for(var i=this,o=n||t[t.length-1],a=t[o.index+1],s=0,l=0;l<e.length;l++){var h=e[l];if(i._isColumnVisible(h)){var u=Object.assign({background:"#7a7a7a",color:"#fff",value:h.title||h.field,colSpan:0,firstCell:0===l&&(!r||r.firstCell)},h.headerCellOptions);o.cells.push(u),h.columns&&h.columns.length&&(a||(a={rowSpan:0,cells:[],index:t.length},t.push(a)),u.colSpan=i._trimColumns(i._visibleColumns(h.columns)).length,i._prepareHeaderRows(t,h.columns,u,a),s+=u.colSpan-1,o.rowSpan=t.length-o.index)}}r&&(r.colSpan+=s)},f.prototype._rows=function(){var t=this,e=this._dataRows(this.data,0);if(this.columns.length){this._prependHeaderRows(e);var r=!1,n=this.columns.map((function(e){return e.footerTemplate?(r=!0,Object.assign({background:"#dfdfdf",color:"#333",value:e.footerTemplate(Object.assign({},t.aggregates,t.aggregates[e.field]))},e.footerCellOptions)):Object.assign({background:"#dfdfdf",color:"#333"},e.footerCellOptions)}));r&&e.push({type:"footer",cells:this._createPaddingCells(this.groups.length).concat(n)})}return e},f.prototype._headerDepth=function(t){for(var e=0,r=0;r<t.length;r++)if(t[r].columns){var n=this._headerDepth(t[r].columns);n>e&&(e=n)}return 1+e},f.prototype._freezePane=function(){var t=this._visibleColumns(this.options.columns||[]),e=this._visibleColumns(this._trimColumns(this._leafColumns(t.filter((function(t){return t.locked}))))).length;return{rowSplit:this._headerDepth(t),colSplit:e?e+this.groups.length:0}},f.prototype._cell=function(t,e){return Object.assign({value:e.value(t)},e.cellOptions)},f.prototype._depth=function(){return this.hierarchy?this.hierarchy.depth:this.groups.length},f.prototype._columns=function(){return c(this._depth(),(function(){return{width:20}})).concat(this.columns.map((function(t){return{width:parseInt(t.width,10),autoWidth:!t.width}})))};const p=f;var m={toString:function(t){return t}},g=function(){};g.register=function(t){m=t},g.toString=function(t,e){return m.toString(t,e)};const v=g;var _=-2;function y(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function w(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)y(r,n)&&(t[n]=r[n])}}return t}function b(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)}var x={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a},Buf8:function(t){return new Uint8Array(t)},Buf16:function(t){return new Uint16Array(t)},Buf32:function(t){return new Int32Array(t)}},k={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)},Buf8:function(t){return new Array(t)},Buf16:function(t){return new Array(t)},Buf32:function(t){return new Array(t)}},C=function(){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;return C=function(){return t},t},S=function(t,e,r,n,i){return(S=C()?x.arraySet:k.arraySet)(t,e,r,n,i)},z=function(t){return(z=C()?x.flattenChunks:k.flattenChunks)(t)},O=function(t){return(O=C()?x.Buf8:k.Buf8)(t)},I=function(t){return(I=C()?x.Buf16:k.Buf16)(t)},A=function(t){return(A=C()?x.Buf32:k.Buf32)(t)},T=function(){var t=!0;try{String.fromCharCode.apply(null,[0])}catch(e){t=!1}return T=function(){return t},t},P=function(){var t=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){t=!1}return P=function(){return t},t},F=function(t){for(var e=O(256),r=0;r<256;r++)e[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;return e[254]=e[254]=1,F=function(t){return e[t]},e[t]};function E(t){var e,r,n,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e}function D(t,e){if(e<65534&&(t.subarray&&P()||!t.subarray&&T()))return String.fromCharCode.apply(null,b(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}function R(t,e){var r,n,i,o,a=e||t.length,s=new Array(2*a);for(n=0,r=0;r<a;)if((i=t[r++])<128)s[n++]=i;else if((o=F(i))>4)s[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<a;)i=i<<6|63&t[r++],o--;o>1?s[n++]=65533:i<65536?s[n++]=i:(i-=65536,s[n++]=55296|i>>10&1023,s[n++]=56320|1023&i)}return D(s,n)}function B(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+F(t[r])>e?r:e}function j(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}var N=function(){var t=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}();return N=function(){return t},t};function U(t,e,r,n){var i=N(),o=n+r;t^=-1;for(var a=n;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t}function L(t,e){var r,n,i,o,a,s,l,h,u,c,d,f,p,m,g,v,_,y,w,b,x,k,C,S,z;r=t.state,n=t.next_in,S=t.input,i=n+(t.avail_in-5),o=t.next_out,z=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=r.dmax,h=r.wsize,u=r.whave,c=r.wnext,d=r.window,f=r.hold,p=r.bits,m=r.lencode,g=r.distcode,v=(1<<r.lenbits)-1,_=(1<<r.distbits)-1;t:do{p<15&&(f+=S[n++]<<p,p+=8,f+=S[n++]<<p,p+=8),y=m[f&v];e:for(;;){if(f>>>=w=y>>>24,p-=w,0==(w=y>>>16&255))z[o++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=m[(65535&y)+(f&(1<<w)-1)];continue e}if(32&w){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}b=65535&y,(w&=15)&&(p<w&&(f+=S[n++]<<p,p+=8),b+=f&(1<<w)-1,f>>>=w,p-=w),p<15&&(f+=S[n++]<<p,p+=8,f+=S[n++]<<p,p+=8),y=g[f&_];r:for(;;){if(f>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=g[(65535&y)+(f&(1<<w)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(x=65535&y,p<(w&=15)&&(f+=S[n++]<<p,(p+=8)<w&&(f+=S[n++]<<p,p+=8)),(x+=f&(1<<w)-1)>l){t.msg="invalid distance too far back",r.mode=30;break t}if(f>>>=w,p-=w,x>(w=o-a)){if((w=x-w)>u&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(k=0,C=d,0===c){if(k+=h-w,w<b){b-=w;do{z[o++]=d[k++]}while(--w);k=o-x,C=z}}else if(c<w){if(k+=h+c-w,(w-=c)<b){b-=w;do{z[o++]=d[k++]}while(--w);if(k=0,c<b){b-=w=c;do{z[o++]=d[k++]}while(--w);k=o-x,C=z}}}else if(k+=c-w,w<b){b-=w;do{z[o++]=d[k++]}while(--w);k=o-x,C=z}for(;b>2;)z[o++]=C[k++],z[o++]=C[k++],z[o++]=C[k++],b-=3;b&&(z[o++]=C[k++],b>1&&(z[o++]=C[k++]))}else{k=o-x;do{z[o++]=z[k++],z[o++]=z[k++],z[o++]=z[k++],b-=3}while(b>2);b&&(z[o++]=z[k++],b>1&&(z[o++]=z[k++]))}break}}break}}while(n<i&&o<s);n-=b=p>>3,f&=(1<<(p-=b<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=f,r.bits=p}var M=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],W=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],H=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],q=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function V(t,e,r,n,i,o,a,s){var l,h,u,c,d,f,p,m,g,v=s.bits,_=0,y=0,w=0,b=0,x=0,k=0,C=0,S=0,z=0,O=0,A=null,T=0,P=I(16),F=I(16),E=null,D=0;for(_=0;_<=15;_++)P[_]=0;for(y=0;y<n;y++)P[e[r+y]]++;for(x=v,b=15;b>=1&&0===P[b];b--);if(x>b&&(x=b),0===b)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(w=1;w<b&&0===P[w];w++);for(x<w&&(x=w),S=1,_=1;_<=15;_++)if(S<<=1,(S-=P[_])<0)return-1;if(S>0&&(0===t||1!==b))return-1;for(F[1]=0,_=1;_<15;_++)F[_+1]=F[_]+P[_];for(y=0;y<n;y++)0!==e[r+y]&&(a[F[e[r+y]]++]=y);if(0===t?(A=E=a,f=19):1===t?(A=M,T-=257,E=W,D-=257,f=256):(A=H,E=q,f=-1),O=0,y=0,_=w,d=o,k=x,C=0,u=-1,c=(z=1<<x)-1,1===t&&z>852||2===t&&z>592)return 1;for(;;){p=_-C,a[y]<f?(m=0,g=a[y]):a[y]>f?(m=E[D+a[y]],g=A[T+a[y]]):(m=96,g=0),l=1<<_-C,w=h=1<<k;do{i[d+(O>>C)+(h-=l)]=p<<24|m<<16|g|0}while(0!==h);for(l=1<<_-1;O&l;)l>>=1;if(0!==l?(O&=l-1,O+=l):O=0,y++,0==--P[_]){if(_===b)break;_=e[r+a[y]]}if(_>x&&(O&c)!==u){for(0===C&&(C=x),d+=w,S=1<<(k=_-C);k+C<b&&!((S-=P[k+C])<=0);)k++,S<<=1;if(z+=1<<k,1===t&&z>852||2===t&&z>592)return 1;i[u=O&c]=x<<24|k<<16|d-o|0}}return 0!==O&&(i[d+O]=_-C<<24|64<<16|0),s.bits=x,0}var Z=-2,X=12,G=30;function J(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function K(){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=I(320),this.work=I(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function $(t,e){var r,n;return t?(n=new K,t.state=n,n.window=null,r=function(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||e>15)?Z:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,function(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,function(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=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=A(852),e.distcode=e.distdyn=A(592),e.sane=1,e.back=-1,0):Z}(t)):Z}(t))):Z}(t,e),0!==r&&(t.state=null),r):Z}var Q,Y,tt=!0;function et(t){if(tt){var e;for(Q=A(512),Y=A(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(V(1,t.lens,0,288,Q,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;V(2,t.lens,0,32,Y,0,t.work,{bits:5}),tt=!1}t.lencode=Q,t.lenbits=9,t.distcode=Y,t.distbits=5}function rt(t,e,r,n){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=O(o.wsize)),n>=o.wsize?(S(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>n&&(i=n),S(o.window,e,r-n,i,o.wnext),(n-=i)?(S(o.window,e,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}function nt(t,e){var r,n,i,o,a,s,l,h,u,c,d,f,p,m,g,v,_,y,w,b,x,k,C,z,I=0,A=O(4),T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return Z;(r=t.state).mode===X&&(r.mode=13),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,h=r.hold,u=r.bits,c=s,d=l,k=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;u<16;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(2&r.wrap&&35615===h){r.check=0,A[0]=255&h,A[1]=h>>>8&255,r.check=U(r.check,A,2,0),h=0,u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",r.mode=G;break}if(8!=(15&h)){t.msg="unknown compression method",r.mode=G;break}if(u-=4,x=8+(15&(h>>>=4)),0===r.wbits)r.wbits=x;else if(x>r.wbits){t.msg="invalid window size",r.mode=G;break}r.dmax=1<<x,t.adler=r.check=1,r.mode=512&h?10:X,h=0,u=0;break;case 2:for(;u<16;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(r.flags=h,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=G;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=G;break}r.head&&(r.head.text=h>>8&1),512&r.flags&&(A[0]=255&h,A[1]=h>>>8&255,r.check=U(r.check,A,2,0)),h=0,u=0,r.mode=3;case 3:for(;u<32;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}r.head&&(r.head.time=h),512&r.flags&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,r.check=U(r.check,A,4,0)),h=0,u=0,r.mode=4;case 4:for(;u<16;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}r.head&&(r.head.xflags=255&h,r.head.os=h>>8),512&r.flags&&(A[0]=255&h,A[1]=h>>>8&255,r.check=U(r.check,A,2,0)),h=0,u=0,r.mode=5;case 5:if(1024&r.flags){for(;u<16;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}r.length=h,r.head&&(r.head.extra_len=h),512&r.flags&&(A[0]=255&h,A[1]=h>>>8&255,r.check=U(r.check,A,2,0)),h=0,u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((f=r.length)>s&&(f=s),f&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),S(r.head.extra,n,o,f,x)),512&r.flags&&(r.check=U(r.check,n,f,o)),s-=f,o+=f,r.length-=f),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;f=0;do{x=n[o+f++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x))}while(x&&f<s);if(512&r.flags&&(r.check=U(r.check,n,f,o)),s-=f,o+=f,x)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break t;f=0;do{x=n[o+f++],r.head&&x&&r.length<65536&&(r.head.comment+=String.fromCharCode(x))}while(x&&f<s);if(512&r.flags&&(r.check=U(r.check,n,f,o)),s-=f,o+=f,x)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;u<16;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(h!==(65535&r.check)){t.msg="header crc mismatch",r.mode=G;break}h=0,u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=X;break;case 10:for(;u<32;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}t.adler=r.check=J(h),h=0,u=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=h,r.bits=u,2;t.adler=r.check=1,r.mode=X;case X:if(5===e||6===e)break t;case 13:if(r.last){h>>>=7&u,u-=7&u,r.mode=27;break}for(;u<3;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}switch(r.last=1&h,u-=1,3&(h>>>=1)){case 0:r.mode=14;break;case 1:if(et(r),r.mode=20,6===e){h>>>=2,u-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=G}h>>>=2,u-=2;break;case 14:for(h>>>=7&u,u-=7&u;u<32;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",r.mode=G;break}if(r.length=65535&h,h=0,u=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(f=r.length){if(f>s&&(f=s),f>l&&(f=l),0===f)break t;S(i,n,o,f,a),s-=f,o+=f,l-=f,a+=f,r.length-=f;break}r.mode=X;break;case 17:for(;u<14;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(r.nlen=257+(31&h),h>>>=5,u-=5,r.ndist=1+(31&h),h>>>=5,u-=5,r.ncode=4+(15&h),h>>>=4,u-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=G;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;u<3;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}r.lens[T[r.have++]]=7&h,h>>>=3,u-=3}for(;r.have<19;)r.lens[T[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},k=V(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,k){t.msg="invalid code lengths set",r.mode=G;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;v=(I=r.lencode[h&(1<<r.lenbits)-1])>>>16&255,_=65535&I,!((g=I>>>24)<=u);){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(_<16)h>>>=g,u-=g,r.lens[r.have++]=_;else{if(16===_){for(z=g+2;u<z;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(h>>>=g,u-=g,0===r.have){t.msg="invalid bit length repeat",r.mode=G;break}x=r.lens[r.have-1],f=3+(3&h),h>>>=2,u-=2}else if(17===_){for(z=g+3;u<z;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}u-=g,x=0,f=3+(7&(h>>>=g)),h>>>=3,u-=3}else{for(z=g+7;u<z;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}u-=g,x=0,f=11+(127&(h>>>=g)),h>>>=7,u-=7}if(r.have+f>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=G;break}for(;f--;)r.lens[r.have++]=x}}if(r.mode===G)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=G;break}if(r.lenbits=9,C={bits:r.lenbits},k=V(1,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,k){t.msg="invalid literal/lengths set",r.mode=G;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},k=V(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,k){t.msg="invalid distances set",r.mode=G;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(s>=6&&l>=258){t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=h,r.bits=u,L(t,d),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,h=r.hold,u=r.bits,r.mode===X&&(r.back=-1);break}for(r.back=0;v=(I=r.lencode[h&(1<<r.lenbits)-1])>>>16&255,_=65535&I,!((g=I>>>24)<=u);){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(v&&0==(240&v)){for(y=g,w=v,b=_;v=(I=r.lencode[b+((h&(1<<y+w)-1)>>y)])>>>16&255,_=65535&I,!(y+(g=I>>>24)<=u);){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}h>>>=y,u-=y,r.back+=y}if(h>>>=g,u-=g,r.back+=g,r.length=_,0===v){r.mode=26;break}if(32&v){r.back=-1,r.mode=X;break}if(64&v){t.msg="invalid literal/length code",r.mode=G;break}r.extra=15&v,r.mode=22;case 22:if(r.extra){for(z=r.extra;u<z;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}r.length+=h&(1<<r.extra)-1,h>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;v=(I=r.distcode[h&(1<<r.distbits)-1])>>>16&255,_=65535&I,!((g=I>>>24)<=u);){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(0==(240&v)){for(y=g,w=v,b=_;v=(I=r.distcode[b+((h&(1<<y+w)-1)>>y)])>>>16&255,_=65535&I,!(y+(g=I>>>24)<=u);){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}h>>>=y,u-=y,r.back+=y}if(h>>>=g,u-=g,r.back+=g,64&v){t.msg="invalid distance code",r.mode=G;break}r.offset=_,r.extra=15&v,r.mode=24;case 24:if(r.extra){for(z=r.extra;u<z;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}r.offset+=h&(1<<r.extra)-1,h>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=G;break}r.mode=25;case 25:if(0===l)break t;if(f=d-l,r.offset>f){if((f=r.offset-f)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=G;break}f>r.wnext?(f-=r.wnext,p=r.wsize-f):p=r.wnext-f,f>r.length&&(f=r.length),m=r.window}else m=i,p=a-r.offset,f=r.length;f>l&&(f=l),l-=f,r.length-=f;do{i[a++]=m[p++]}while(--f);0===r.length&&(r.mode=21);break;case 26:if(0===l)break t;i[a++]=r.length,l--,r.mode=21;break;case 27:if(r.wrap){for(;u<32;){if(0===s)break t;s--,h|=n[o++]<<u,u+=8}if(d-=l,t.total_out+=d,r.total+=d,d&&(t.adler=r.check=r.flags?U(r.check,i,d,a-d):j(r.check,i,d,a-d)),d=l,(r.flags?h:J(h))!==r.check){t.msg="incorrect data check",r.mode=G;break}h=0,u=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;u<32;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(h!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=G;break}h=0,u=0}r.mode=29;case 29:k=1;break t;case G:k=-3;break t;case 31:return-4;default:return Z}return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=h,r.bits=u,(r.wsize||d!==t.avail_out&&r.mode<G&&(r.mode<27||4!==e))&&rt(t,t.output,t.next_out,d-t.avail_out),c-=t.avail_in,d-=t.avail_out,t.total_in+=c,t.total_out+=d,r.total+=d,r.wrap&&d&&(t.adler=r.check=r.flags?U(r.check,i,d,t.next_out-d):j(r.check,i,d,t.next_out-d)),t.data_type=r.bits+(r.last?64:0)+(r.mode===X?128:0)+(20===r.mode||15===r.mode?256:0),(0===c&&0===d||4===e)&&0===k&&(k=-5),k}function it(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?Z:11===r.mode&&j(1,e,n,0)!==r.check?-3:rt(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):Z}var ot={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function at(){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}function st(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var lt=Object.prototype.toString,ht=function t(e){if(!(this instanceof t))return new t(e);this.options=w({chunkSize:16384,windowBits:0,to:""},e||{});var r=this.options;r.raw&&r.windowBits>=0&&r.windowBits<16&&(r.windowBits=-r.windowBits,0===r.windowBits&&(r.windowBits=-15)),!(r.windowBits>=0&&r.windowBits<16)||e&&e.windowBits||(r.windowBits+=32),r.windowBits>15&&r.windowBits<48&&0==(15&r.windowBits)&&(r.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new at,this.strm.avail_out=0;var n,i,o,a=$(this.strm,r.windowBits);if(0!==a)throw new Error(ot[a]);if(this.header=new st,n=this.strm,i=this.header,n&&n.state&&(0==(2&(o=n.state).wrap)||(o.head=i,i.done=!1)),r.dictionary&&("string"==typeof r.dictionary?r.dictionary=E(r.dictionary):"[object ArrayBuffer]"===lt.call(r.dictionary)&&(r.dictionary=new Uint8Array(r.dictionary)),r.raw&&0!==(a=it(this.strm,r.dictionary))))throw new Error(ot[a])};function ut(t){for(var e=t.length;--e>=0;)t[e]=0}ht.prototype.push=function(t,e){var r,n,i,o,a,s,l=this.strm,h=this.options.chunkSize,u=this.options.dictionary,c=!1;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?l.input=function(t){for(var e=new Uint8Array(t.length),r=0,n=e.length;r<n;r++)e[r]=t.charCodeAt(r);return e}(t):"[object ArrayBuffer]"===lt.call(t)?l.input=new Uint8Array(t):l.input=t,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=O(h),l.next_out=0,l.avail_out=h),2===(r=nt(l,0))&&u&&(s="string"==typeof u?E(u):"[object ArrayBuffer]"===lt.call(u)?new Uint8Array(u):u,r=it(this.strm,s)),-5===r&&!0===c&&(r=0,c=!1),1!==r&&0!==r)return this.onEnd(r),this.ended=!0,!1;l.next_out&&(0!==l.avail_out&&1!==r&&(0!==l.avail_in||4!==n&&2!==n)||("string"===this.options.to?(i=B(l.output,l.next_out),o=l.next_out-i,a=R(l.output,i),l.next_out=o,l.avail_out=h-o,o&&S(l.output,l.output,i,o,0),this.onData(a)):this.onData(b(l.output,l.next_out)))),0===l.avail_in&&0===l.avail_out&&(c=!0)}while((l.avail_in>0||0===l.avail_out)&&1!==r);return 1===r&&(n=4),4===n?(r=function(t){if(!t||!t.state)return Z;var e=t.state;return e.window&&(e.window=null),t.state=null,0}(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),l.avail_out=0,!0)},ht.prototype.onData=function(t){this.chunks.push(t)},ht.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=z(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ct,dt,ft,pt,mt,gt,vt,_t,yt,wt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],bt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],xt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],kt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Ct(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function St(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function zt(t){return t<256?ft[t]:ft[256+(t>>>7)]}function Ot(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function It(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,Ot(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function At(t,e,r){It(t,r[2*e],r[2*e+1])}function Tt(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function Pt(t,e,r){var n,i,o=new Array(16),a=0;for(n=1;n<=15;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=Tt(o[s]++,s))}}function Ft(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 Et(t){t.bi_valid>8?Ot(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Dt(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function Rt(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&Dt(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Dt(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function Bt(t,e,r){var n,i,o,a,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?At(t,i,e):(At(t,(o=pt[i])+256+1,e),0!==(a=wt[o])&&It(t,i-=mt[o],a),At(t,o=zt(--n),r),0!==(a=bt[o])&&It(t,n-=gt[o],a))}while(s<t.last_lit);At(t,256,e)}function jt(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<l;r++)0!==o[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=h<2?++h:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)Rt(t,o,r);i=l;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Rt(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,Rt(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,l=e.dyn_tree,h=e.max_code,u=e.stat_desc.static_tree,c=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,p=e.stat_desc.max_length,m=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(o=l[2*l[2*(n=t.heap[r])+1]+1]+1)>p&&(o=p,m++),l[2*n+1]=o,n>h||(t.bl_count[o]++,a=0,n>=f&&(a=d[n-f]),s=l[2*n],t.opt_len+=s*(o+a),c&&(t.static_len+=s*(u[2*n+1]+a)));if(0!==m){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,m-=2}while(m>0);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>h||(l[2*i+1]!==o&&(t.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),n--)}}(t,e),Pt(o,h,t.bl_count)}function Nt(t,e,r){var n,i,o=-1,a=e[1],s=0,l=7,h=4;for(0===a&&(l=138,h=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<l&&i===a||(s<h?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(l=138,h=3):i===a?(l=6,h=3):(l=7,h=4))}function Ut(t,e,r){var n,i,o=-1,a=e[1],s=0,l=7,h=4;for(0===a&&(l=138,h=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<l&&i===a)){if(s<h)do{At(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(At(t,i,t.bl_tree),s--),At(t,16,t.bl_tree),It(t,s-3,2)):s<=10?(At(t,17,t.bl_tree),It(t,s-3,3)):(At(t,18,t.bl_tree),It(t,s-11,7));s=0,o=i,0===a?(l=138,h=3):i===a?(l=6,h=3):(l=7,h=4)}}var Lt=!1;function Mt(t,e,r,n){It(t,0+(n?1:0),3),function(t,e,r,n){Et(t),Ot(t,r),Ot(t,~r),S(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r)}function Wt(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>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*(pt[r]+256+1)]++,t.dyn_dtree[2*zt(e)]++),t.last_lit===t.lit_bufsize-1}var Ht=258,qt=262,Vt=103,Zt=113,Xt=666;function Gt(t,e){return t.msg=ot[e],e}function Jt(t){return(t<<1)-(t>4?9:0)}function Kt(t){for(var e=t.length;--e>=0;)t[e]=0}function $t(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(S(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 Qt(t,e){(function(t,e,r,n){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=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)),jt(t,t.l_desc),jt(t,t.d_desc),a=function(t){var e;for(Nt(t,t.dyn_ltree,t.l_desc.max_code),Nt(t,t.dyn_dtree,t.d_desc.max_code),jt(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*kt[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?Mt(t,e,r,n):4===t.strategy||o===i?(It(t,2+(n?1:0),3),Bt(t,ct,dt)):(It(t,4+(n?1:0),3),function(t,e,r,n){var i;for(It(t,e-257,5),It(t,r-1,5),It(t,n-4,4),i=0;i<n;i++)It(t,t.bl_tree[2*kt[i]+1],3);Ut(t,t.dyn_ltree,e-1),Ut(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),Bt(t,t.dyn_ltree,t.dyn_dtree)),Ft(t),n&&Et(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,$t(t.strm)}function Yt(t,e){t.pending_buf[t.pending++]=e}function te(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function ee(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-qt?t.strstart-(t.w_size-qt):0,h=t.window,u=t.w_mask,c=t.prev,d=t.strstart+Ht,f=h[o+a-1],p=h[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(h[(r=e)+a]===p&&h[r+a-1]===f&&h[r]===h[o]&&h[++r]===h[o+1]){o+=2,r++;do{}while(h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&o<d);if(n=Ht-(d-o),o=d-Ht,n>a){if(t.match_start=e,a=n,n>=s)break;f=h[o+a-1],p=h[o+a]}}}while((e=c[e&u])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function re(t){var e,r,n,i,o,a,s,l,h,u,c=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=c+(c-qt)){S(t.window,t.window,c,c,0),t.match_start-=c,t.strstart-=c,t.block_start-=c,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=c?n-c:0}while(--r);e=r=c;do{n=t.prev[--e],t.prev[e]=n>=c?n-c:0}while(--r);i+=c}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,l=t.strstart+t.lookahead,h=i,u=void 0,(u=a.avail_in)>h&&(u=h),r=0===u?0:(a.avail_in-=u,S(s,a.input,a.next_in,u,l),1===a.state.wrap?a.adler=j(a.adler,s,u,l):2===a.state.wrap&&(a.adler=U(a.adler,s,u,l)),a.next_in+=u,a.total_in+=u,u),t.lookahead+=r,t.lookahead+t.insert>=3)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+3-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<qt&&0!==t.strm.avail_in)}function ne(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(re(t),0===t.lookahead&&0===e)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,Qt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-qt&&(Qt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Qt(t,!1),t.strm.avail_out),1)}function ie(t,e){for(var r,n;;){if(t.lookahead<qt){if(re(t),t.lookahead<qt&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-qt&&(t.match_length=ee(t,r)),t.match_length>=3)if(n=Wt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=Wt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Qt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Qt(t,!1),0===t.strm.avail_out)?1:2}function oe(t,e){for(var r,n,i;;){if(t.lookahead<qt){if(re(t),t.lookahead<qt&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-qt&&(t.match_length=ee(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=Wt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Qt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=Wt(t,0,t.window[t.strstart-1]))&&Qt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=Wt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Qt(t,!1),0===t.strm.avail_out)?1:2}function ae(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}var se=function(){var t=[new ae(0,0,0,0,ne),new ae(4,4,8,4,ie),new ae(4,5,16,8,ie),new ae(4,6,32,32,ie),new ae(4,4,16,16,oe),new ae(8,16,32,32,oe),new ae(8,16,128,128,oe),new ae(8,32,128,256,oe),new ae(32,128,258,1024,oe),new ae(32,258,258,4096,oe)];return se=function(){return t},t};function le(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=I(1146),this.dyn_dtree=I(122),this.bl_tree=I(78),Kt(this.dyn_ltree),Kt(this.dyn_dtree),Kt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=I(16),this.heap=I(573),Kt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=I(573),Kt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function he(t){var e=function(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:Zt,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){Lt||(function(){var t,e,r,n,i,o=new Array(16);for(ut(ct=new Array(576)),ut(dt=new Array(60)),ut(ft=new Array(512)),ut(pt=new Array(256)),ut(mt=new Array(29)),ut(gt=new Array(30)),r=0,n=0;n<28;n++)for(mt[n]=r,t=0;t<1<<wt[n];t++)pt[r++]=n;for(pt[r-1]=n,i=0,n=0;n<16;n++)for(gt[n]=i,t=0;t<1<<bt[n];t++)ft[i++]=n;for(i>>=7;n<30;n++)for(gt[n]=i<<7,t=0;t<1<<bt[n]-7;t++)ft[256+i++]=n;for(e=0;e<=15;e++)o[e]=0;for(t=0;t<=143;)ct[2*t+1]=8,t++,o[8]++;for(;t<=255;)ct[2*t+1]=9,t++,o[9]++;for(;t<=279;)ct[2*t+1]=7,t++,o[7]++;for(;t<=287;)ct[2*t+1]=8,t++,o[8]++;for(Pt(ct,287,o),t=0;t<30;t++)dt[2*t+1]=5,dt[2*t]=Tt(t,5);vt=new Ct(ct,wt,257,286,15),_t=new Ct(dt,bt,0,30,15),yt=new Ct(new Array(0),xt,0,19,7)}(),Lt=!0),t.l_desc=new St(t.dyn_ltree,vt),t.d_desc=new St(t.dyn_dtree,_t),t.bl_desc=new St(t.bl_tree,yt),t.bi_buf=0,t.bi_valid=0,Ft(t)}(e),0):Gt(t,_)}(t);return 0===e&&function(t){t.window_size=2*t.w_size,Kt(t.head);var e=se();t.max_lazy_match=e[t.level].max_lazy,t.good_match=e[t.level].good_length,t.nice_match=e[t.level].nice_length,t.max_chain_length=e[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),e}function ue(t,e){var r,n,i,o;if(!t||!t.state||e>5||e<0)return t?Gt(t,_):_;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||n.status===Xt&&4!==e)return Gt(t,0===t.avail_out?-5:_);if(n.strm=t,r=n.last_flush,n.last_flush=e,42===n.status)if(2===n.wrap)t.adler=0,Yt(n,31),Yt(n,139),Yt(n,8),n.gzhead?(Yt(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Yt(n,255&n.gzhead.time),Yt(n,n.gzhead.time>>8&255),Yt(n,n.gzhead.time>>16&255),Yt(n,n.gzhead.time>>24&255),Yt(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Yt(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Yt(n,255&n.gzhead.extra.length),Yt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=U(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(Yt(n,0),Yt(n,0),Yt(n,0),Yt(n,0),Yt(n,0),Yt(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Yt(n,3),n.status=Zt);else{var a=8+(n.w_bits-8<<4)<<8;a|=(n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),a+=31-a%31,n.status=Zt,te(n,a),0!==n.strstart&&(te(n,t.adler>>>16),te(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(t.adler=U(t.adler,n.pending_buf,n.pending-i,i)),$t(t),i=n.pending,n.pending!==n.pending_buf_size));)Yt(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=U(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=U(t.adler,n.pending_buf,n.pending-i,i)),$t(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Yt(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(t.adler=U(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=U(t.adler,n.pending_buf,n.pending-i,i)),$t(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Yt(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(t.adler=U(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=Vt)}else n.status=Vt;if(n.status===Vt&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&$t(t),n.pending+2<=n.pending_buf_size&&(Yt(n,255&t.adler),Yt(n,t.adler>>8&255),t.adler=0,n.status=Zt)):n.status=Zt),0!==n.pending){if($t(t),0===t.avail_out)return n.last_flush=-1,0}else if(0===t.avail_in&&Jt(e)<=Jt(r)&&4!==e)return Gt(t,-5);if(n.status===Xt&&0!==t.avail_in)return Gt(t,-5);if(0!==t.avail_in||0!==n.lookahead||0!==e&&n.status!==Xt){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(re(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=Wt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Qt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Qt(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,i,o,a=t.window;;){if(t.lookahead<=Ht){if(re(t),t.lookahead<=Ht&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[i=t.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=t.strstart+Ht;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);t.match_length=Ht-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=Wt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=Wt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Qt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Qt(t,!1),0===t.strm.avail_out)?1:2}(n,e):se()[n.level].func(n,e);if(3!==s&&4!==s||(n.status=Xt),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),0;if(2===s&&(1===e?function(t){It(t,2,3),At(t,256,ct),function(t){16===t.bi_valid?(Ot(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(n):5!==e&&(Mt(n,0,0,!1),3===e&&(Kt(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),$t(t),0===t.avail_out))return n.last_flush=-1,0}return 4!==e?0:n.wrap<=0?1:(2===n.wrap?(Yt(n,255&t.adler),Yt(n,t.adler>>8&255),Yt(n,t.adler>>16&255),Yt(n,t.adler>>24&255),Yt(n,255&t.total_in),Yt(n,t.total_in>>8&255),Yt(n,t.total_in>>16&255),Yt(n,t.total_in>>24&255)):(te(n,t.adler>>>16),te(n,65535&t.adler)),$t(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)}var ce=Object.prototype.toString,de=function(t){this.options=w({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new at,this.strm.avail_out=0;var r,n,i=function(t,e,r,n,i,o){if(!t)return _;var a=1;if(-1===e&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||8!==r||n<8||n>15||e<0||e>9||o<0||o>4)return Gt(t,_);8===n&&(n=9);var s=new le;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=O(2*s.w_size),s.head=I(s.hash_size),s.prev=I(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=O(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=r,he(t)}(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==i)throw new Error(ot[i]);if(e.header&&(r=this.strm,n=e.header,r&&r.state&&(2!==r.state.wrap||(r.state.gzhead=n))),e.dictionary){var o;if(o="string"==typeof e.dictionary?E(e.dictionary):"[object ArrayBuffer]"===ce.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,i=function(t,e){var r,n,i,o,a,s,l,h,u=e.length;if(!t||!t.state)return _;if(2===(o=(r=t.state).wrap)||1===o&&42!==r.status||r.lookahead)return _;for(1===o&&(t.adler=j(t.adler,e,u,0)),r.wrap=0,u>=r.w_size&&(0===o&&(Kt(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=O(r.w_size),S(h,e,u-r.w_size,r.w_size,0),e=h,u=r.w_size),a=t.avail_in,s=t.next_in,l=t.input,t.avail_in=u,t.next_in=0,t.input=e,re(r);r.lookahead>=3;){n=r.strstart,i=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--i);r.strstart=n,r.lookahead=2,re(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=s,t.input=l,t.avail_in=a,r.wrap=o,0}(this.strm,o),0!==i)throw new Error(ot[i]);this._dict_set=!0}};de.prototype.push=function(t,e){var r,n,i,o=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?o.input=E(t):"[object ArrayBuffer]"===ce.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=O(a),o.next_out=0,o.avail_out=a),1!==(r=ue(o,n))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(D(i=b(o.output,o.next_out),i.length)):this.onData(b(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==r);return 4===n?(r=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==Vt&&e!==Zt&&e!==Xt?Gt(t,_):(t.state=null,e===Zt?Gt(t,-3):0):_}(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),o.avail_out=0,!0)},de.prototype.onData=function(t){this.chunks.push(t)},de.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=z(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var fe={Promise},pe={base64:!0,array:!0,string:!0,nodebuffer:!1,nodestream:!1,get arraybuffer(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},get uint8array(){return"undefined"!=typeof Uint8Array},get blob(){return me()}},me=function(){var t;if("undefined"==typeof ArrayBuffer)t=!1;else{var e=new ArrayBuffer(0);try{t=0===new Blob([e],{type:"application/zip"}).size}catch(e){t=!1}}return me=function(){return t},t},ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ve(t){return t}function _e(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}function ye(t,e,r){var n=[],i=0,o=t.length;if(o<=r)return String.fromCharCode.apply(null,t);for(;i<o;)"array"===e?n.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+r,o)))):n.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+r,o)))),i+=r;return n.join("")}var we=function(){var t;try{t=pe.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){t=!1}return we=function(){return t},t};function be(t){var e=65536,r=ze(t),n=!0;if("uint8array"===r&&(n=we()),n)for(;e>1;)try{return ye(t,r,e)}catch(t){e=Math.floor(e/2)}return function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}(t)}var xe=be;function ke(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}var Ce={string:{string:ve,array:function(t){return _e(t,new Array(t.length))},arraybuffer:function(t){return Ce.string.uint8array(t).buffer},uint8array:function(t){return _e(t,new Uint8Array(t.length))}},array:{string:be,array:ve,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)}},arraybuffer:{string:function(t){return be(new Uint8Array(t))},array:function(t){return ke(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:ve,uint8array:function(t){return new Uint8Array(t)}},uint8array:{string:be,array:function(t){return ke(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:ve}},Se=function(t,e){if(e||(e=""),!t)return e;Oe(t);var r=ze(e);return Ce[r][t](e)},ze=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":pe.uint8array&&t instanceof Uint8Array?"uint8array":pe.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},Oe=function(t){if(!pe[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},Ie=65535,Ae=-1,Te=function(t){var e,r,n="";for(r=0;r<(t||"").length;r++)n+="\\x"+((e=t.charCodeAt(r))<16?"0":"")+e.toString(16).toUpperCase();return n},Pe=function(t,e,r){setTimeout((function(){t.apply(r||null,e||[])}),0)},Fe=function(){var t,e,r=arguments,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.hasOwnProperty.call(r[t],e)&&void 0===n[e]&&(n[e]=r[t][e]);return n},Ee=function(t,e,r,n,i){return fe.Promise.resolve(e).then((function(t){return pe.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new fe.Promise((function(e,r){var n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){r(t.target.error)},n.readAsArrayBuffer(t)})):t})).then((function(e){var o,a=ze(e);return a?("arraybuffer"===a?e=Se("uint8array",e):"string"===a&&(i?e=function(t){var e,r,n,i,o,a,s=0,l=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var u,c=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(t.charAt(t.length-1)===ge.charAt(64)&&c--,t.charAt(t.length-2)===ge.charAt(64)&&c--,c%1!=0)throw new Error("Invalid base64 input, bad content length.");for(u=pe.uint8array?new Uint8Array(0|c):new Array(0|c);s<t.length;)e=ge.indexOf(t.charAt(s++))<<2|(i=ge.indexOf(t.charAt(s++)))>>4,r=(15&i)<<4|(o=ge.indexOf(t.charAt(s++)))>>2,n=(3&o)<<6|(a=ge.indexOf(t.charAt(s++))),u[l++]=e,64!==o&&(u[l++]=r),64!==a&&(u[l++]=n);return u}(e):r&&!0!==n&&(e=_e(o=e,pe.uint8array?new Uint8Array(o.length):new Array(o.length)))),e):fe.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))},De=function(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};De.prototype.push=function(t){this.emit("data",t)},De.prototype.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},De.prototype.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)},De.prototype.on=function(t,e){return this._listeners[t].push(e),this},De.prototype.cleanUp=function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},De.prototype.emit=function(t,e){if(this._listeners[t])for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].call(this,e)},De.prototype.pipe=function(t){return t.registerPrevious(this)},De.prototype.registerPrevious=function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},De.prototype.pause=function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},De.prototype.resume=function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var t=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},De.prototype.flush=function(){},De.prototype.processChunk=function(t){this.push(t)},De.prototype.withStreamInfo=function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},De.prototype.mergeStreamInfo=function(){for(var t in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},De.prototype.lock=function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},De.prototype.toString=function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t};var Re=function(t){for(var e=new Array(256),r=0;r<256;r++)e[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;return e[254]=e[254]=1,Re=function(t){return e[t]},e[t]},Be=function(t){return function(t){var e,r,n,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=pe.uint8array?new Uint8Array(s):new Array(s),o=0,i=0;o<s;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(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)},je=function(t){return function(t){var e,r,n,i,o=t.length,a=new Array(2*o);for(r=0,e=0;e<o;)if((n=t[e++])<128)a[r++]=n;else if((i=Re(n))>4)a[r++]=65533,e+=i-1;else{for(n&=2===i?31:3===i?15:7;i>1&&e<o;)n=n<<6|63&t[e++],i--;i>1?a[r++]=65533:n<65536?a[r++]=n:(n-=65536,a[r++]=55296|n>>10&1023,a[r++]=56320|1023&n)}return a.length!==r&&(a.subarray?a=a.subarray(0,r):a.length=r),xe(a)}(t=Se(pe.uint8array?"uint8array":"array",t))},Ne=function(t){function e(){t.call(this,"utf-8 decode"),this.leftOver=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.processChunk=function(t){var e=Se(pe.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(pe.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;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+Re(t[r])>e?r:e}(e),i=e;n!==e.length&&(pe.uint8array?(i=e.subarray(0,n),this.leftOver=e.subarray(n,e.length)):(i=e.slice(0,n),this.leftOver=e.slice(n,e.length))),this.push({data:je(i),meta:t.meta})},e.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:je(this.leftOver),meta:{}}),this.leftOver=null)},e}(De),Ue=function(t){function e(){t.call(this,"utf-8 encode")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.processChunk=function(t){this.push({data:Be(t.data),meta:t.meta})},e}(De),Le=function(t){function e(e){t.call(this,"ConvertWorker to "+e),this.destType=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.processChunk=function(t){this.push({data:Se(this.destType,t.data),meta:t.meta})},e}(De);function Me(t,e){return new fe.Promise((function(r,n){var i=[],o=t._internalType,a=t._outputType,s=t._mimeType;t.on("data",(function(t,r){i.push(t),e&&e(r)})).on("error",(function(t){i=[],n(t)})).on("end",(function(){try{var t=function(t,e,r){switch(t){case"blob":return function(t,e){return Oe("blob"),new Blob([t],{type:e})}(Se("arraybuffer",e),r);case"base64":return function(t){for(var e,r,n,i,o,a,s,l=[],h=0,u=t.length,c=u,d="string"!=typeof t;h<t.length;)c=u-h,d?(e=t[h++],r=h<u?t[h++]:0,n=h<u?t[h++]:0):(e=t.charCodeAt(h++),r=h<u?t.charCodeAt(h++):0,n=h<u?t.charCodeAt(h++):0),i=e>>2,o=(3&e)<<4|r>>4,a=c>1?(15&r)<<2|n>>6:64,s=c>2?63&n:64,l.push(ge.charAt(i)+ge.charAt(o)+ge.charAt(a)+ge.charAt(s));return l.join("")}(e);default:return Se(t,e)}}(a,function(t,e){var r,n=0,i=null,o=0;for(r=0;r<e.length;r++)o+=e[r].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(i=new Uint8Array(o),r=0;r<e.length;r++)i.set(e[r],n),n+=e[r].length;return i;default:throw new Error("concat : unsupported type '"+t+"'")}}(o,i),s);r(t)}catch(t){n(t)}i=[]})).resume()}))}var We=function(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,Oe(n),this._worker=t.pipe(new Le(n)),t.lock()}catch(t){this._worker=new De("error"),this._worker.error(t)}};We.prototype.accumulate=function(t){return Me(this,t)},We.prototype.on=function(t,e){var r=this;return"data"===t?this._worker.on(t,(function(t){e.call(r,t.data,t.meta)})):this._worker.on(t,(function(){Pe(e,arguments,r)})),this},We.prototype.resume=function(){return Pe(this._worker.resume,[],this._worker),this},We.prototype.pause=function(){return this._worker.pause(),this};var He=Object.freeze({__proto__:null,base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null}),qe=function(t){function e(e){t.call(this,"DataWorker");var r=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(t){r.dataIsReady=!0,r.data=t,r.max=t&&t.length||0,r.type=ze(t),r.isPaused||r._tickAndRepeat()}),(function(t){r.error(t)}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.cleanUp=function(){t.prototype.cleanUp.call(this),this.data=null},e.prototype.resume=function(){return!!t.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Pe(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Pe(this._tickAndRepeat,[],this),this._tickScheduled=!0))},e.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":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}(De),Ve=function(t){function e(e){t.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.processChunk=function(e){if(e){var r=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=r+e.data.length}t.prototype.processChunk.call(this,e)},e}(De),Ze=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 Ze=function(){return t},t};function Xe(t,e){return void 0!==t&&t.length?"string"!==ze(t)?function(t,e,r,n){var i=Ze(),o=0+r;t^=-1;for(var a=0;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t}(0|e,t,t.length):function(t,e,r,n){var i=Ze(),o=0+r;t^=-1;for(var a=0;a<o;a++)t=t>>>8^i[255&(t^e.charCodeAt(a))];return-1^t}(0|e,t,t.length):0}var Ge=function(t){function e(){t.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.processChunk=function(t){this.streamInfo.crc32=Xe(t.data,this.streamInfo.crc32||0),this.push(t)},e}(De),Je=function(t,e,r,n,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=i};Je.prototype.getContentWorker=function(){var t=new qe(fe.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Ve("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},Je.prototype.getCompressedWorker=function(){return new qe(fe.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},Je.createWorkerFrom=function(t,e,r){return t.pipe(new Ge).pipe(new Ve("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new Ve("compressedSize")).withStreamInfo("compression",e)};var Ke=function(t,e,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=e,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};Ke.prototype.internalStream=function(t){var e=null,r="string";try{if(!t)throw new Error("No output type specified.");var n="string"===(r=t.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),e=this._decompressWorker();var i=!this._dataBinary;i&&!n&&(e=e.pipe(new Ue)),!i&&n&&(e=e.pipe(new Ne))}catch(t){(e=new De("error")).error(t)}return new We(e,r,"")},Ke.prototype.async=function(t,e){return this.internalStream(t).accumulate(e)},Ke.prototype._compressWorker=function(t,e){if(this._data instanceof Je&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new Ue)),Je.createWorkerFrom(r,t,e)},Ke.prototype._decompressWorker=function(){return this._data instanceof Je?this._data.getContentWorker():this._data instanceof De?this._data:new qe(this._data)};var $e=function(){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?"uint8array":"array";$e=function(){return t}},Qe=function(t){function e(e,r){t.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=r,this.meta={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(Se($e(),t.data),!1)},e.prototype.flush=function(){t.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},e.prototype.cleanUp=function(){t.prototype.cleanUp.call(this),this._pako=null},e.prototype._createPako=function(){var t=this,e={raw:!0,level:this._pakoOptions.level||-1};this._pako="Deflate"===this._pakoAction?new de(e):new ht(e),this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},e}(De),Ye={STORE:{magic:"\0\0",compressWorker:function(){return new De("STORE compression")},uncompressWorker:function(){return new De("STORE decompression")}},DEFLATE:{magic:"\b\0",compressWorker:function(t){return new Qe("Deflate",t)},uncompressWorker:function(){return new Qe("Inflate",{})}}},tr="PK",er="PK",rr="PK",nr="PK",ir="PK",or=function(t,e){var r,n="";for(r=0;r<e;r++)n+=String.fromCharCode(255&t),t>>>=8;return n},ar=function(t,e,r,n,i,o){var a,s,l=t.file,h=t.compression,u=o!==Be,c=Se("string",o(l.name)),d=Se("string",Be(l.name)),f=l.comment,p=Se("string",o(f)),m=Se("string",Be(f)),g=d.length!==l.name.length,v=m.length!==f.length,_="",y="",w="",b=l.dir,x=l.date,k={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(k.crc32=t.crc32,k.compressedSize=t.compressedSize,k.uncompressedSize=t.uncompressedSize);var C=0;e&&(C|=8),u||!g&&!v||(C|=2048);var S,z,O,I=0,A=0;b&&(I|=16),"UNIX"===i?(A=798,I|=(S=l.unixPermissions,z=b,O=S,S||(O=z?16893:33204),(65535&O)<<16)):(A=20,I|=63&(l.dosPermissions||0)),a=x.getUTCHours(),a<<=6,a|=x.getUTCMinutes(),a<<=5,a|=x.getUTCSeconds()/2,s=x.getUTCFullYear()-1980,s<<=4,s|=x.getUTCMonth()+1,s<<=5,s|=x.getUTCDate(),g&&(y=or(1,1)+or(Xe(c),4)+d,_+="up"+or(y.length,2)+y),v&&(w=or(1,1)+or(Xe(p),4)+m,_+="uc"+or(w.length,2)+w);var T="";return T+="\n\0",T+=or(C,2),T+=h.magic,T+=or(a,2),T+=or(s,2),T+=or(k.crc32,4),T+=or(k.compressedSize,4),T+=or(k.uncompressedSize,4),T+=or(c.length,2),T+=or(_.length,2),{fileRecord:tr+T+c+_,dirRecord:er+or(A,2)+T+or(p.length,2)+"\0\0\0\0"+or(I,4)+or(n,4)+c+_+p}},sr=function(t){return"PK\b"+or(t.crc32,4)+or(t.compressedSize,4)+or(t.uncompressedSize,4)},lr=function(t){function e(e,r,n,i){t.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=r,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(e){var r=e.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,t.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(r+100*(n-i-1))/n:100}}))},e.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=ar(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},e.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=ar(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:sr(t),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},e.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var r=this.bytesWritten-t,n=function(t,e,r,n,i){var o=Se("string",i(n));return"PK\0\0\0\0"+or(t,2)+or(t,2)+or(e,4)+or(r,4)+or(o.length,2)+o}(this.dirRecords.length,r,t,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},e.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},e.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},e.prototype.resume=function(){return!!t.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},e.prototype.error=function(e){var r=this._sources;if(!t.prototype.error.call(this,e))return!1;for(var n=0;n<r.length;n++)try{r[n].error(e)}catch(t){}return!0},e.prototype.lock=function(){t.prototype.lock.call(this);for(var e=this._sources,r=0;r<e.length;r++)e[r].lock()},e}(De),hr=function(t){this.data=t,this.length=t.length,this.index=0,this.zero=0};hr.prototype.checkOffset=function(t){this.checkIndex(this.index+t)},hr.prototype.checkIndex=function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},hr.prototype.setIndex=function(t){this.checkIndex(t),this.index=t},hr.prototype.skip=function(t){this.setIndex(this.index+t)},hr.prototype.byteAt=function(t){},hr.prototype.readInt=function(t){var e,r=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},hr.prototype.readString=function(t){return Se("string",this.readData(t))},hr.prototype.readData=function(t){},hr.prototype.lastIndexOfSignature=function(t){},hr.prototype.readAndCheckSignature=function(t){},hr.prototype.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))};var ur=function(t){function e(e){t.call(this,e);for(var r=0;r<this.data.length;r++)e[r]=255&e[r]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.byteAt=function(t){return this.data[this.zero+t]},e.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),o=this.length-4;o>=0;--o)if(this.data[o]===e&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===i)return o-this.zero;return-1},e.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&r===o[1]&&n===o[2]&&i===o[3]},e.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e}(hr),cr=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},e.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},e.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},e.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}(hr),dr=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.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}(ur);function fr(t){var e=ze(t);return Oe(e),"string"!==e||pe.uint8array?pe.uint8array?new dr(Se("uint8array",t)):new ur(Se("array",t)):new cr(t)}var pr=function(t,e){this.options=t,this.loadOptions=e};pr.prototype.isEncrypted=function(){return 1==(1&this.bitFlag)},pr.prototype.useUTF8=function(){return 2048==(2048&this.bitFlag)},pr.prototype.readLocalPart=function(t){var e,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in Ye)if(Ye.hasOwnProperty(e)&&Ye[e].magic===t)return Ye[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+Te(this.compressionMethod)+" unknown (inner file : "+Se("string",this.fileName)+")");this.decompressed=new Je(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},pr.prototype.readCentralPart=function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},pr.prototype.processAttributes=function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>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)},pr.prototype.parseZIP64ExtraField=function(t){if(this.extraFields[1]){var e=fr(this.extraFields[1].value);this.uncompressedSize===Ae&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===Ae&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===Ae&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===Ae&&(this.diskNumberStart=e.readInt(4))}},pr.prototype.readExtraFields=function(t){var e,r,n,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index<i;)e=t.readInt(2),r=t.readInt(2),n=t.readData(r),this.extraFields[e]={id:e,length:r,value:n}},pr.prototype.handleUTF8=function(){var t=pe.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=je(this.fileName),this.fileCommentStr=je(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=Se(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=Se(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},pr.prototype.findExtraFieldUnicodePath=function(){var t=this.extraFields[28789];if(t){var e=fr(t.value);return 1!==e.readInt(1)||Xe(this.fileName)!==e.readInt(4)?null:je(e.readData(t.length-5))}return null},pr.prototype.findExtraFieldUnicodeComment=function(){var t=this.extraFields[25461];if(t){var e=fr(t.value);return 1!==e.readInt(1)||Xe(this.fileComment)!==e.readInt(4)?null:je(e.readData(t.length-5))}return null};var mr=function(t){this.files=[],this.loadOptions=t};function gr(t){return new fe.Promise((function(e,r){var n=t.decompressed.getContentWorker().pipe(new Ge);n.on("error",(function(t){r(t)})).on("end",(function(){n.streamInfo.crc32!==t.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}function vr(t,e){var r=this;return e=Fe(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:je}),Ee("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var r=new mr(e);return r.load(t),r})).then((function(t){var r=[fe.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var i=0;i<n.length;i++)r.push(gr(n[i]));return fe.Promise.all(r)})).then((function(t){for(var n=t.shift(),i=n.files,o=0;o<i.length;o++){var a=i[o];r.file(a.fileNameStr,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:e.createFolders})}return n.zipComment.length&&(r.comment=n.zipComment),r}))}mr.prototype.checkSignature=function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Te(e)+", expected "+Te(t)+")")}},mr.prototype.isSignature=function(t,e){var r=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===e;return this.reader.setIndex(r),n},mr.prototype.readBlockEndOfCentral=function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=pe.uint8array?"uint8array":"array",r=Se(e,t);this.zipComment=this.loadOptions.decodeFileName(r)},mr.prototype.readBlockZip64EndOfCentral=function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,r,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),e=this.reader.readInt(4),r=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:r}},mr.prototype.readBlockZip64EndOfCentralLocator=function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},mr.prototype.readLocalFiles=function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(tr),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},mr.prototype.readCentralDir=function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(er);)(t=new pr({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},mr.prototype.readEndOfCentral=function(){var t=this.reader.lastIndexOfSignature(rr);if(t<0)throw this.isSignature(0,tr)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(rr),this.readBlockEndOfCentral(),this.diskNumber===Ie||this.diskWithCentralDirStart===Ie||this.centralDirRecordsOnThisDisk===Ie||this.centralDirRecords===Ie||this.centralDirSize===Ae||this.centralDirOffset===Ae){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(nr))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(nr),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,ir)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(ir),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(ir),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=e-r;if(n>0)this.isSignature(e,er)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},mr.prototype.prepareReader=function(t){this.reader=fr(t)},mr.prototype.load=function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()};var _r=function(t,e,r){var n,i=ze(e),o=Fe(r||{},He);o.date=o.date||new Date,null!==o.compression&&(o.compression=o.compression.toUpperCase()),"string"==typeof o.unixPermissions&&(o.unixPermissions=parseInt(o.unixPermissions,8)),o.unixPermissions&&16384&o.unixPermissions&&(o.dir=!0),o.dosPermissions&&16&o.dosPermissions&&(o.dir=!0),o.dir&&(t=wr(t)),o.createFolders&&(n=yr(t))&&br.call(this,n,!0);var a="string"===i&&!1===o.binary&&!1===o.base64;r&&void 0!==r.binary||(o.binary=!a),(e instanceof Je&&0===e.uncompressedSize||o.dir||!e||0===e.length)&&(o.base64=!1,o.binary=!0,e="",o.compression="STORE",i="string");var s;s=e instanceof Je||e instanceof De?e:Ee(t,e,o.binary,o.optimizedBinaryString,o.base64);var l=new Ke(t,s,o);this.files[t]=l},yr=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return e>0?t.substring(0,e):""},wr=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},br=function(t,e){return e=void 0===e||e,t=wr(t),this.files[t]||_r.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function xr(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var kr=function t(){if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new t;for(var r in this)"function"!=typeof this[r]&&(e[r]=this[r]);return e}},Cr={support:{configurable:!0},defaults:{configurable:!0},version:{configurable:!0},external:{configurable:!0}};function Sr(t,e,r){return(1461*(t+4800+((e-13)/12|0))/4|0)+(367*(e-1-12*((e-13)/12|0))/12|0)-(3*((t+4900+((e-13)/12|0))/100|0)/4|0)+r-32075}kr.prototype.load=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},kr.prototype.forEach=function(t){var e,r,n;for(e in this.files)n=this.files[e],(r=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(r,n)},kr.prototype.filter=function(t){var e=[];return this.forEach((function(r,n){t(r,n)&&e.push(n)})),e},kr.prototype.file=function(t,e,r){if(1===arguments.length){if(xr(t)){var n=t;return this.filter((function(t,e){return!e.dir&&n.test(t)}))}var i=this.files[this.root+t];return i&&!i.dir?i:null}return t=this.root+t,_r.call(this,t,e,r),this},kr.prototype.folder=function(t){if(!t)return this;if(xr(t))return this.filter((function(e,r){return r.dir&&t.test(e)}));var e=this.root+t,r=br.call(this,e),n=this.clone();return n.root=r.name,n},kr.prototype.remove=function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var r=this.filter((function(e,r){return r.name.slice(0,t.length)===t})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},kr.prototype.generate=function(t){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},kr.prototype.generateInternalStream=function(t){var e,r={};try{if((r=Fe(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Be})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");Oe(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS"),e=function(t,e,r){var n=new lr(e.streamFiles,r,e.platform,e.encodeFileName),i=0;try{t.forEach((function(t,r){i++;var o=function(t,e){var r=t||e,n=Ye[r];if(!n)throw new Error(r+" is not a valid compression method !");return n}(r.options.compression,e.compression),a=r.options.compressionOptions||e.compressionOptions||{},s=r.dir,l=r.date;r._compressWorker(o,a).withStreamInfo("file",{name:t,dir:s,date:l,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(n)})),n.entriesCount=i}catch(t){n.error(t)}return n}(this,r,r.comment||this.comment||"")}catch(t){(e=new De("error")).error(t)}return new We(e,r.type||"string",r.mimeType)},kr.prototype.generateAsync=function(t,e){return this.generateInternalStream(t).accumulate(e)},kr.prototype.loadAsync=function(t,e){return vr.apply(this,[t,e])},kr.loadAsync=function(t,e){return(new kr).loadAsync(t,e)},Cr.support.get=function(){return pe},Cr.defaults.get=function(){return He},Cr.version.get=function(){return"3.2.2-esm"},Cr.external.get=function(){return fe},Object.defineProperties(kr,Cr);var zr=Sr(1900,0,-1);var Or={compression:"DEFLATE",type:"base64"},Ir={compression:"DEFLATE",type:"blob"},Ar={compression:"DEFLATE",type:"arraybuffer"};function Tr(t){return"data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,"+t}function Pr(t,e){return e.indexOf(t)}var Fr=JSON.parse.bind(JSON);function Er(t){return String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,""").replace(/\'/g,"'")}function Dr(t,e){for(var r="",n=0;n<t;++n)r+=e(n);return r}function Rr(t,e){var r="";if(null!=t)if(Array.isArray(t))for(var n=0;n<t.length;++n)r+=e(t[n],n);else"object"==typeof t&&Object.keys(t).forEach((function(n,i){r+=e(t[n],n,i)}));return r}var Br='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r',jr=function(t){return Br+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+Rr(t,(function(t){return'\n <Relationship Id="'+t.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+t.target+'"/>'}))+"\n</Relationships>"};function Nr(t){var e=Math.floor(t/26)-1;return(e>=0?Nr(e):"")+String.fromCharCode(65+t%26)}function Ur(t,e){return Nr(e)+(t+1)}function Lr(t,e){return"$"+Nr(e)+"$"+(t+1)}function Mr(t){return(t.frozenRows||(t.freezePane||{}).rowSplit||1)-1}function Wr(t){return t/7-Math.floor(128/7)/256}var Hr=function(t,e,r,n){this.options=t,this._strings=e,this._styles=r,this._borders=n,this._validations={},this._comments=[],this._drawings=t.drawings||[],this._hyperlinks=(this.options.hyperlinks||[]).map((function(t,e){return Object.assign({},t,{rId:"link"+e})}))};function qr(t){var e=t.length;return t.forEach((function(t){t.index&&t.index>=e&&(e=t.index+1)})),e}Hr.prototype.relsToXML=function(){var t=this._hyperlinks,e=this._comments,r=this._drawings;if(t.length||e.length||r.length)return function(t){var e=t.comments,r=t.sheetIndex,n=t.drawings;return Br+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+Rr(t.hyperlinks,(function(t){return'\n <Relationship Id="'+t.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="'+Er(t.target)+'" TargetMode="External" />'}))+"\n "+(e.length?'\n <Relationship Id="comment'+r+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" Target="../comments'+r+'.xml"/>\n <Relationship Id="vml'+r+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" Target="../drawings/vmlDrawing'+r+'.vml"/>':"")+"\n "+(n.length?'\n <Relationship Id="drw'+r+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing'+r+'.xml"/>':"")+"\n</Relationships>"}({hyperlinks:t,comments:e,sheetIndex:this.options.sheetIndex,drawings:r})},Hr.prototype.toXML=function(t){var e=this,r=this.options.mergedCells||[],n=function(t,e){var r=[],n=[];!function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n){var i=n.index;"number"!=typeof i&&(i=r),e(n,i)}}}(t,(function(t,e){var i={_source:t,index:e,height:t.height,level:t.level,cells:[]};r.push(i),n[e]=i}));for(var i=Yr(r).slice(0),o={rowData:r,rowsByIndex:n,mergedCells:e},a=0;a<i.length;a++)nn(i[a],o),delete i[a]._source;return Yr(r)}(this.options.rows||[],r);this._readCells(n);var i,o=this.options.filter;o&&"number"==typeof o.from&&"number"==typeof o.to?o={from:Ur(Mr(this.options),o.from),to:Ur(Mr(this.options),o.to)}:o&&o.ref&&o.columns&&(i=o,o=null);var a=[];for(var s in e._validations)Object.prototype.hasOwnProperty.call(e._validations,s)&&a.push(e._validations[s]);var l=null;this.options.defaultCellStyle&&(l=this._lookupStyle(this.options.defaultCellStyle));var h=this.options.freezePane||{},u=this.options.defaults||{},c=this.options.rows?this._getLastRow():1,d=this.options.rows?this._getLastCol():1;return function(t){var e=t.frozenColumns,r=t.frozenRows,n=t.columns,i=t.defaults,o=t.data,a=t.index,s=t.mergeCells,l=t.autoFilter,h=t.filter,u=t.showGridLines,c=t.hyperlinks,d=t.validations,f=t.defaultCellStyleId,p=t.rtl,m=t.legacyDrawing,g=t.drawing,v=t.lastRow,_=t.lastCol;return Br+'\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" mc:Ignorable="x14ac">\n '+(v&&_?'<dimension ref="A1:'+Ur(v-1,_-1)+'" />':"")+"\n\n <sheetViews>\n <sheetView "+(p?'rightToLeft="1"':"")+" "+(0===a?'tabSelected="1"':"")+' workbookViewId="0" '+(!1===u?'showGridLines="0"':"")+">\n "+(r||e?'\n <pane state="frozen"\n '+(e?'xSplit="'+e+'"':"")+"\n "+(r?'ySplit="'+r+'"':"")+'\n topLeftCell="'+(String.fromCharCode(65+(e||0))+((r||0)+1))+'"\n />':"")+'\n </sheetView>\n </sheetViews>\n\n <sheetFormatPr x14ac:dyDescent="0.25" '+(i.skipCustomHeight?"":'customHeight="1"')+' defaultRowHeight="'+(i.rowHeight?.75*i.rowHeight:15)+'"\n '+(i.columnWidth?'defaultColWidth="'+Wr(i.columnWidth)+'"':"")+" />\n\n "+(null!=f||n&&n.length>0?"\n <cols>\n "+(n&&n.length?"":'\n <col min="1" max="16384" style="'+f+'"\n '+(i.columnWidth?'width="'+Wr(i.columnWidth)+'"':"")+" /> ")+"\n "+Rr(n,(function(t,e){var r="number"==typeof t.index?t.index+1:e+1;return 0===t.width?"<col "+(null!=f?'style="'+f+'"':"")+'\n min="'+r+'" max="'+r+'" hidden="1" customWidth="1" />':"<col "+(null!=f?'style="'+f+'"':"")+'\n min="'+r+'" max="'+r+'" customWidth="1"\n '+(t.autoWidth?'width="'+(7*t.width+5)/7*256/256+'" bestFit="1"':'width="'+Wr(t.width)+'"')+" />"}))+"\n </cols>":"")+"\n\n <sheetData>\n "+Rr(o,(function(t,e){return'\n <row r="'+("number"==typeof t.index?t.index+1:e+1)+'" x14ac:dyDescent="0.25"\n '+(t.level?'outlineLevel="'+t.level+'"':"")+"\n "+(0===t.height?'hidden="1"':t.height?'ht="'+.75*t.height+'" customHeight="1"':"")+">\n "+Rr(t.data,(function(t){return'\n <c r="'+t.ref+'" '+(t.style?'s="'+t.style+'"':"")+" "+(t.type?'t="'+t.type+'"':"")+">\n "+(null!=t.formula?"string"==typeof(e=t.formula)?"<f>"+Er(e)+"</f>":'<f t="array" ref="'+e.ref+'">'+Er(e.src)+"</f>":"")+"\n "+(null!=t.value?"<v>"+Er(t.value)+"</v>":"")+"\n </c>";var e}))+"\n </row>\n "}))+"\n </sheetData>\n\n "+(l?'<autoFilter ref="'+l.from+":"+l.to+'"/>':h?dn(h):"")+"\n\n "+(s.length?'\n <mergeCells count="'+s.length+'">\n '+Rr(s,(function(t){return'<mergeCell ref="'+t+'"/>'}))+"\n </mergeCells>":"")+"\n\n "+(d.length?"\n <dataValidations>\n "+Rr(d,(function(t){return'\n <dataValidation sqref="'+t.sqref.join(" ")+'"\n showErrorMessage="'+t.showErrorMessage+'"\n type="'+Er(t.type)+'"\n '+("list"!==t.type?'operator="'+Er(t.operator)+'"':"")+'\n allowBlank="'+t.allowBlank+'"\n showDropDown="'+t.showDropDown+'"\n '+(t.error?'error="'+Er(t.error)+'"':"")+"\n "+(t.errorTitle?'errorTitle="'+Er(t.errorTitle)+'"':"")+">\n "+(t.formula1?"<formula1>"+Er(t.formula1)+"</formula1>":"")+"\n "+(t.formula2?"<formula2>"+Er(t.formula2)+"</formula2>":"")+"\n </dataValidation>"}))+"\n </dataValidations>":"")+"\n\n "+(c.length?"\n <hyperlinks>\n "+Rr(c,(function(t){return'\n <hyperlink ref="'+t.ref+'" r:id="'+t.rId+'"/>'}))+"\n </hyperlinks>":"")+'\n\n <pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />\n '+(g?'<drawing r:id="'+g+'"/>':"")+"\n "+(m?'<legacyDrawing r:id="'+m+'"/>':"")+"\n</worksheet>"}({frozenColumns:this.options.frozenColumns||h.colSplit,frozenRows:this.options.frozenRows||h.rowSplit,columns:this.options.columns,defaults:u,data:n,index:t,mergeCells:r,autoFilter:o,filter:i,showGridLines:this.options.showGridLines,hyperlinks:this._hyperlinks,validations:a,defaultCellStyleId:l,rtl:void 0!==this.options.rtl?this.options.rtl:u.rtl,legacyDrawing:this._comments.length?"vml"+this.options.sheetIndex:null,drawing:this._drawings.length?"drw"+this.options.sheetIndex:null,lastRow:c,lastCol:d})},Hr.prototype.commentsXML=function(){if(this._comments.length)return function(t){return Br+'\n<comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">\n <authors>\n <author></author>\n </authors>\n <commentList>\n '+Rr(t.comments,(function(t){return'\n <comment ref="'+t.ref+'" authorId="0">\n <text>\n <r>\n <rPr>\n <sz val="8"/>\n <color indexed="81"/>\n <rFont val="Tahoma"/>\n <charset val="1"/>\n </rPr>\n <t>'+Er(t.text)+"</t>\n </r>\n </text>\n </comment>"}))+"\n </commentList>\n</comments>"}({comments:this._comments})},Hr.prototype.drawingsXML=function(t){if(this._drawings.length){var e={},r=this._drawings.map((function(r){var n=en(r.topLeftCell),i=e[r.image];return i||(i=e[r.image]={rId:"img"+r.image,target:t[r.image].target}),{col:n.col,colOffset:rn(r.offsetX),row:n.row,rowOffset:rn(r.offsetY),width:rn(r.width),height:rn(r.height),imageId:i.rId}}));return{main:(n=r,Br+'\n<xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"\n xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"\n xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">\n '+Rr(n,(function(t,e){return'\n <xdr:oneCellAnchor editAs="oneCell">\n <xdr:from>\n <xdr:col>'+t.col+"</xdr:col>\n <xdr:colOff>"+t.colOffset+"</xdr:colOff>\n <xdr:row>"+t.row+"</xdr:row>\n <xdr:rowOff>"+t.rowOffset+'</xdr:rowOff>\n </xdr:from>\n <xdr:ext cx="'+t.width+'" cy="'+t.height+'" />\n <xdr:pic>\n <xdr:nvPicPr>\n <xdr:cNvPr id="'+(e+1)+'" name="Picture '+(e+1)+'"/>\n <xdr:cNvPicPr/>\n </xdr:nvPicPr>\n <xdr:blipFill>\n <a:blip r:embed="'+t.imageId+'"/>\n <a:stretch>\n <a:fillRect/>\n </a:stretch>\n </xdr:blipFill>\n <xdr:spPr>\n <a:prstGeom prst="rect">\n <a:avLst/>\n </a:prstGeom>\n </xdr:spPr>\n </xdr:pic>\n <xdr:clientData/>\n </xdr:oneCellAnchor>'}))+"\n</xdr:wsDr>"),rels:jr(e)}}var n},Hr.prototype.legacyDrawing=function(){if(this._comments.length)return function(t){return'<xml xmlns:v="urn:schemas-microsoft-com:vml"\n xmlns:o="urn:schemas-microsoft-com:office:office"\n xmlns:x="urn:schemas-microsoft-com:office:excel">\n <v:shapetype coordsize="21600,21600" id="_x0000_t202" path="m,l,21600r21600,l21600,xe">\n <v:stroke joinstyle="miter"/>\n <v:path gradientshapeok="t" o:connecttype="rect"/>\n </v:shapetype>\n '+Rr(t.comments,(function(t){return'\n <v:shape type="#_x0000_t202" style="visibility: hidden" fillcolor="#ffffe1" o:insetmode="auto">\n <v:shadow on="t" color="black" obscured="t"/>\n <x:ClientData ObjectType="Note">\n <x:MoveWithCells/>\n <x:SizeWithCells/>\n <x:Anchor>'+t.anchor+"</x:Anchor>\n <x:AutoFill>False</x:AutoFill>\n <x:Row>"+t.row+"</x:Row>\n <x:Column>"+t.col+"</x:Column>\n </x:ClientData>\n </v:shape>"}))+"\n</xml>"}({comments:this._comments})},Hr.prototype._lookupString=function(t){var e,r="$"+t,n=this._strings.indexes[r];return void 0!==n?e=n:(e=this._strings.indexes[r]=this._strings.uniqueCount,this._strings.uniqueCount++),this._strings.count++,e},Hr.prototype._lookupStyle=function(t){var e=JSON.stringify(t);if("{}"===e)return 0;var r=Pr(e,this._styles);return r<0&&(r=this._styles.push(e)-1),r+1},Hr.prototype._lookupBorder=function(t){var e=JSON.stringify(t);if("{}"!==e){var r=Pr(e,this._borders);return r<0&&(r=this._borders.push(e)-1),r+1}},Hr.prototype._readCells=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.cells;r.data=[];for(var i=0;i<n.length;i++){var o=this._cell(n[i],r.index,i);o&&r.data.push(o)}}},Hr.prototype._cell=function(t,e,r){if(!t||t===Qr)return null;var n=t.value,i={};t.borderLeft&&(i.left=t.borderLeft),t.borderRight&&(i.right=t.borderRight),t.borderTop&&(i.top=t.borderTop),t.borderBottom&&(i.bottom=t.borderBottom),i=this._lookupBorder(i);var o,a=this.options.defaultCellStyle||{},s={borderId:i};(o=function(e,r){var n=t[e];if(void 0===n&&(n=a[e]),void 0!==n)return s[r||e]=n,!0})("color"),o("background"),o("bold"),o("italic"),o("underline"),o("fontFamily")||o("fontName","fontFamily"),o("fontSize"),o("format"),o("textAlign")||o("hAlign","textAlign"),o("verticalAlign")||o("vAlign","verticalAlign"),o("wrap"),o("indent");var l,h,u,c=(this.options.columns||[])[r],d=typeof n;if(c&&c.autoWidth&&(!t.colSpan||1===t.colSpan)){var f=n;"number"===d&&(f=v.toString(n,t.format)),c.width=Math.max(c.width||0,String(f).length)}"string"===d?(n=function(t){return String(t).replace(/[\x00-\x09\x0B\x0C\x0E-\x1F]/g,"").replace(/\r?\n/g,"\r\n")}(n),n=this._lookupString(n),d="s"):"number"===d?d="n":"boolean"===d?(d="b",n=Number(n)):n&&n.getTime?(d=null,h=((l=n).getHours()+(l.getMinutes()+(l.getSeconds()+l.getMilliseconds()/1e3)/60)/60)/24,n=(u=function(t,e,r){return Sr(t,e,r)-zr}(l.getFullYear(),l.getMonth(),l.getDate()))<0?u-1+h:u+h,s.format||(s.format="mm-dd-yy")):(d=null,n=null),s=this._lookupStyle(s);var p=Ur(e,r);if(t.validation&&this._addValidation(t.validation,p),t.comment){var m=[r+1,15,e,10,r+3,15,e+3,4];this._comments.push({ref:p,text:t.comment,row:e,col:r,anchor:m.join(", ")})}return{value:n,formula:t.formula,type:d,style:s,ref:p}},Hr.prototype._addValidation=function(t,e){var r={showErrorMessage:"reject"===t.type?1:0,formula1:t.from,formula2:t.to,type:Zr[t.dataType]||t.dataType,operator:Vr[t.comparerType]||t.comparerType,allowBlank:t.allowNulls?1:0,showDropDown:t.showButton?0:1,error:t.messageTemplate,errorTitle:t.titleTemplate},n=JSON.stringify(r);this._validations[n]||(this._validations[n]=r,r.sqref=[]),this._validations[n].sqref.push(e)},Hr.prototype._getLastRow=function(){return qr(this.options.rows)},Hr.prototype._getLastCol=function(){var t=0;return this.options.rows.forEach((function(e){e.cells&&(t=Math.max(t,qr(e.cells)))})),t};var Vr={greaterThanOrEqualTo:"greaterThanOrEqual",lessThanOrEqualTo:"lessThanOrEqual"},Zr={number:"decimal"},Xr={General:0,0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49,"[$-404]e/m/d":27,"m/d/yy":30,t0:59,"t0.00":60,"t#,##0":61,"t#,##0.00":62,"t0%":67,"t0.00%":68,"t# ?/?":69,"t# ??/??":70};function Gr(t){var e=t;return e.length<6&&(e=e.replace(/(\w)/g,(function(t,e){return e+e}))),(e=e.substring(1).toUpperCase()).length<8&&(e="FF"+e),e}var Jr=function(t){var e=this;this.options=t||{},this._strings={indexes:{},count:0,uniqueCount:0},this._styles=[],this._borders=[],this._images=this.options.images,this._imgId=0,this._sheets=h(this.options.sheets||[],(function(t,r){return t.defaults=e.options,t.sheetIndex=r+1,new Hr(t,e._strings,e._styles,e._borders)}))};function Kr(t,e){var r,n,i="";return e&&(i+="<"+t+' style="'+(n="thin",2===(r=e.size)?n="medium":3===r&&(n="thick"),n+'">'),e.color&&(i+='<color rgb="'+Gr(e.color)+'"/>'),i+="</"+t+">"),i}function $r(t){return"<border>"+Kr("left",t.left)+Kr("right",t.right)+Kr("top",t.top)+Kr("bottom",t.bottom)+"</border>"}Jr.prototype.imageFilename=function(t){var e=++this._imgId;switch(t){case"image/jpg":case"image/jpeg":return"image"+e+".jpg";case"image/png":return"image"+e+".png";case"image/gif":return"image"+e+".gif";default:return"image"+e+".bin"}},Jr.prototype.toZIP=function(){var t=this,e=new kr,r=e.folder("docProps");r.file("core.xml",function(t){var e=t.lastModifiedBy,r=t.created,n=t.modified;return Br+'\n <cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"\n xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"\n xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <dc:creator>'+Er(t.creator)+"</dc:creator>\n <cp:lastModifiedBy>"+Er(e)+'</cp:lastModifiedBy>\n <dcterms:created xsi:type="dcterms:W3CDTF">'+Er(r)+'</dcterms:created>\n <dcterms:modified xsi:type="dcterms:W3CDTF">'+Er(n)+"</dcterms:modified>\n</cp:coreProperties>"}({creator:this.options.creator||"Kendo UI",lastModifiedBy:this.options.creator||"Kendo UI",created:this.options.date||(new Date).toJSON(),modified:this.options.date||(new Date).toJSON()}));var n=this._sheets.length;r.file("app.xml",function(t){var e=t.sheets;return Br+'\n<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">\n <Application>Microsoft Excel</Application>\n <DocSecurity>0</DocSecurity>\n <ScaleCrop>false</ScaleCrop>\n <HeadingPairs>\n <vt:vector size="2" baseType="variant">\n <vt:variant>\n <vt:lpstr>Worksheets</vt:lpstr>\n </vt:variant>\n <vt:variant>\n <vt:i4>'+e.length+'</vt:i4>\n </vt:variant>\n </vt:vector>\n </HeadingPairs>\n <TitlesOfParts>\n <vt:vector size="'+e.length+'" baseType="lpstr">'+Rr(e,(function(t,e){return t.options.title?"<vt:lpstr>"+Er(t.options.title)+"</vt:lpstr>":"<vt:lpstr>Sheet"+(e+1)+"</vt:lpstr>"}))+"</vt:vector>\n </TitlesOfParts>\n <LinksUpToDate>false</LinksUpToDate>\n <SharedDoc>false</SharedDoc>\n <HyperlinksChanged>false</HyperlinksChanged>\n <AppVersion>14.0300</AppVersion>\n</Properties>"}({sheets:this._sheets})),e.folder("_rels").file(".rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>\n <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>\n <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>\n </Relationships>');var i=e.folder("xl");if(i.folder("_rels").file("workbook.xml.rels",function(t){var e=t.count;return Br+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+Dr(e,(function(t){return'\n <Relationship Id="rId'+(t+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet'+(t+1)+'.xml" />'}))+'\n <Relationship Id="rId'+(e+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" />\n <Relationship Id="rId'+(e+2)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml" />\n</Relationships>'}({count:n})),this._images){var o=i.folder("media");Object.keys(this._images).forEach((function(e){var r=t._images[e],n=t.imageFilename(r.type);o.file(n,r.data),r.target="../media/"+n}))}var a={};i.file("workbook.xml",function(t){var e=t.filterNames,r=t.userNames;return Br+'\n<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">\n <fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="9303" />\n <workbookPr defaultThemeVersion="124226" />\n <bookViews>\n <workbookView xWindow="240" yWindow="45" windowWidth="18195" windowHeight="7995" />\n </bookViews>\n <sheets>\n '+Rr(t.sheets,(function(t,e){var r=t.options;return'<sheet name="'+Er(r.name||r.title||"Sheet"+(e+1))+'" sheetId="'+(e+1)+'" r:id="rId'+(e+1)+'" />'}))+"\n </sheets>\n "+(e.length||r.length?"\n <definedNames>\n "+Rr(e,(function(t){return'\n <definedName name="_xlnm._FilterDatabase" hidden="1" localSheetId="'+t.localSheetId+'">'+Er(function(t){return/^\'/.test(t)||/^[a-z_][a-z0-9_]*$/i.test(t)?t:"'"+t.replace(/\x27/g,"\\'")+"'"}(t.name))+"!"+Er(t.from)+":"+Er(t.to)+"</definedName>"}))+"\n "+Rr(r,(function(t){return'\n <definedName name="'+t.name+'" hidden="'+(t.hidden?1:0)+'" '+(null!=t.localSheetId?'localSheetId="'+t.localSheetId+'"':"")+">"+Er(t.value)+"</definedName>"}))+"\n </definedNames>":"")+'\n <calcPr fullCalcOnLoad="1" calcId="145621" />\n</workbook>'}({sheets:this._sheets,filterNames:h(this._sheets,(function(t,e){var r=t.options,n=r.name||r.title||"Sheet"+(e+1);a[n.toLowerCase()]=e;var i=r.filter;if(i){if(i.ref){var o=i.ref.split(":"),s=en(o[0]),l=en(o[1]);return{localSheetId:e,name:n,from:Lr(s.row,s.col),to:Lr(l.row,l.col)}}if(void 0!==i.from&&void 0!==i.to)return{localSheetId:e,name:n,from:Lr(Mr(r),i.from),to:Lr(Mr(r),i.to)}}})),userNames:h(this.options.names||[],(function(t){return{name:t.localName,localSheetId:t.sheet?a[t.sheet.toLowerCase()]:null,value:t.value,hidden:t.hidden}}))}));for(var s=i.folder("worksheets"),l=i.folder("drawings"),u=l.folder("_rels"),c=s.folder("_rels"),d=[],f=[],p=0;p<n;p++){var m=t._sheets[p],g="sheet"+(p+1)+".xml",v=m.toXML(p),_=m.relsToXML(),y=m.commentsXML(),w=m.legacyDrawing(),b=m.drawingsXML(t._images);if(_&&c.file(g+".rels",_),y){var x="comments"+m.options.sheetIndex+".xml";i.file(x,y),d.push(x)}if(w&&l.file("vmlDrawing"+m.options.sheetIndex+".vml",w),b){var k="drawing"+m.options.sheetIndex+".xml";l.file(k,b.main),u.file(k+".rels",b.rels),f.push(k)}s.file(g,v)}var C=h(this._borders,Fr),S=h(this._styles,Fr),z=function(t){return t.underline||t.bold||t.italic||t.color||t.fontFamily||t.fontSize},O=h(S,(function(t){var e,r,n;if(t.fontSize&&(t.fontSize=(e=t.fontSize,(n=Number(e))&&(r=3*n/4),r)),t.color&&(t.color=Gr(t.color)),z(t))return t})),I=h(S,(function(t){if(t.format&&void 0===Xr[t.format])return t})),A=h(S,(function(t){if(t.background)return t.background=Gr(t.background),t}));return i.file("styles.xml",function(t){var e=t.formats,r=t.fonts,n=t.fills,i=t.borders,o=t.styles;return Br+'\n<styleSheet\n xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"\n xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"\n mc:Ignorable="x14ac"\n xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">\n <numFmts count="'+e.length+'">\n '+Rr(e,(function(t,e){return'\n <numFmt formatCode="'+Er(t.format)+'" numFmtId="'+(165+e)+'" />'}))+'\n </numFmts>\n <fonts count="'+(r.length+1)+'" x14ac:knownFonts="1">\n <font>\n <sz val="11" />\n <color theme="1" />\n <name val="Calibri" />\n <family val="2" />\n <scheme val="minor" />\n </font>\n '+Rr(r,(function(t){return"\n <font>\n "+(t.bold?"<b/>":"")+"\n "+(t.italic?"<i/>":"")+"\n "+(t.underline?"<u/>":"")+'\n <sz val="'+(t.fontSize||11)+'" />\n '+(t.color?'<color rgb="'+Er(t.color)+'" />':'<color theme="1" />')+"\n "+(t.fontFamily?'\n <name val="'+Er(t.fontFamily)+'" />\n <family val="2" />\n ':'\n <name val="Calibri" />\n <family val="2" />\n <scheme val="minor" />\n ')+"\n </font>"}))+'\n </fonts>\n <fills count="'+(n.length+2)+'">\n <fill><patternFill patternType="none"/></fill>\n <fill><patternFill patternType="gray125"/></fill>\n '+Rr(n,(function(t){return"\n "+(t.background?'\n <fill>\n <patternFill patternType="solid">\n <fgColor rgb="'+Er(t.background)+'"/>\n </patternFill>\n </fill>\n ':"")}))+'\n </fills>\n <borders count="'+(i.length+1)+'">\n <border><left/><right/><top/><bottom/><diagonal/></border>\n '+Rr(i,$r)+'\n </borders>\n <cellStyleXfs count="1">\n <xf borderId="0" fillId="0" fontId="0" />\n </cellStyleXfs>\n <cellXfs count="'+(o.length+1)+'">\n <xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" />\n '+Rr(o,(function(t){return'\n <xf xfId="0"\n '+(t.fontId?'fontId="'+t.fontId+'" applyFont="1"':"")+"\n "+(t.fillId?'fillId="'+t.fillId+'" applyFill="1"':"")+"\n "+(t.numFmtId?'numFmtId="'+t.numFmtId+'" applyNumberFormat="1"':"")+"\n "+(t.textAlign||t.verticalAlign||t.wrap?'applyAlignment="1"':"")+"\n "+(t.borderId?'borderId="'+t.borderId+'" applyBorder="1"':"")+">\n "+(t.textAlign||t.verticalAlign||t.wrap?"\n <alignment\n "+(t.textAlign?'horizontal="'+Er(t.textAlign)+'"':"")+"\n "+(t.verticalAlign?'vertical="'+Er(t.verticalAlign)+'"':"")+"\n "+(t.indent?'indent="'+Er(t.indent)+'"':"")+"\n "+(t.wrap?'wrapText="1"':"")+" />\n ":"")+"\n </xf>\n "}))+'\n </cellXfs>\n <cellStyles count="1">\n <cellStyle name="Normal" xfId="0" builtinId="0"/>\n </cellStyles>\n <dxfs count="0" />\n <tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleMedium9" />\n</styleSheet>'}({fonts:O,fills:A,formats:I,borders:C,styles:h(S,(function(t){var e={};return z(t)&&(e.fontId=Pr(t,O)+1),t.background&&(e.fillId=Pr(t,A)+2),e.textAlign=t.textAlign,e.indent=t.indent,e.verticalAlign=t.verticalAlign,e.wrap=t.wrap,e.borderId=t.borderId,t.format&&(void 0!==Xr[t.format]?e.numFmtId=Xr[t.format]:e.numFmtId=165+Pr(t,I)),e}))})),i.file("sharedStrings.xml",function(t){var e=t.count,r=t.uniqueCount,n=t.indexes;return Br+'\n<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'+e+'" uniqueCount="'+r+'">\n '+Rr(Object.keys(n),(function(t){return'\n <si><t xml:space="preserve">'+Er(t.substring(1))+"</t></si>"}))+"\n</sst>"}(this._strings)),e.file("[Content_Types].xml",function(t){var e=t.commentFiles,r=t.drawingFiles;return Br+'\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default Extension="png" ContentType="image/png"/>\n <Default Extension="gif" ContentType="image/gif"/>\n <Default Extension="jpg" ContentType="image/jpeg"/>\n <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" />\n <Default Extension="xml" ContentType="application/xml" />\n <Default Extension="vml" ContentType="application/vnd.openxmlformats-officedocument.vmlDrawing"/>\n <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" />\n <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/>\n <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/>\n '+Dr(t.sheetCount,(function(t){return'<Override PartName="/xl/worksheets/sheet'+(t+1)+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />'}))+"\n "+Rr(e,(function(t){return'<Override PartName="/xl/'+t+'" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"/>'}))+"\n "+Rr(r,(function(t){return'<Override PartName="/xl/drawings/'+t+'" ContentType="application/vnd.openxmlformats-officedocument.drawing+xml"/>'}))+'\n <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />\n <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" />\n</Types>'}({sheetCount:n,commentFiles:d,drawingFiles:f})),e},Jr.prototype.toDataURL=function(){var t=this.toZIP();return t.generateAsync?t.generateAsync(Or).then(Tr):Tr(t.generate(Or))},Jr.prototype.toBlob=function(){var t=this.toZIP();return t.generateAsync?t.generateAsync(Ir):new Blob([t.generate(Ar)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})};var Qr={};function Yr(t){return t.sort((function(t,e){return t.index-e.index}))}function tn(t,e){for(var r=0;r<t.length;++r){var n=t[r].split(":"),i=n[0];if(i===e){var o=n[1];return i=en(i),{rowSpan:(o=en(o)).row-i.row+1,colSpan:o.col-i.col+1}}}}function en(t){var e,r=/^([a-z]+)(\d+)$/i.exec(t);return{row:(e=r[2],parseInt(e,10)-1),col:function(t){for(var e=t.toUpperCase(),r=0,n=0;n<e.length;++n)r=26*r+e.charCodeAt(n)-64;return r-1}(r[1])}}function rn(t){return Math.round(9525*t)}function nn(t,e){var r,n,i=t._source,o=t.index,a=i.cells,s=t.cells;if(a)for(var l=0;l<a.length;l++){var h=a[l]||Qr,u=h.rowSpan||1,c=h.colSpan||1,d=on(s,h),f=Ur(o,d);if(1===u&&1===c){var p=tn(e.mergedCells,f);p&&(c=p.colSpan,u=p.rowSpan)}if(sn(h,s,d,c),(u>1||c>1)&&(r=e.mergedCells,n=f+":"+Ur(o+u-1,d+c-1),r.indexOf(n)<0&&r.push(n)),u>1)for(var m=o+1;m<o+u;m++){var g=e.rowsByIndex[m];g||(g=e.rowsByIndex[m]={index:m,cells:[]},e.rowData.push(g)),sn(h,g.cells,d-1,c+1)}}}function on(t,e){var r;return"number"==typeof e.index?(r=e.index,an(t,e,e.index)):r=function(t,e){for(var r=t.length,n=0;n<t.length+1;n++)if(!t[n]){t[n]=e,r=n;break}return r}(t,e),r}function an(t,e,r){t[r]=e}function sn(t,e,r,n){for(var i=1;i<n;i++)an(e,{borderTop:t.borderTop,borderRight:t.borderRight,borderBottom:t.borderBottom,borderLeft:t.borderLeft},r+i)}var ln=function(t){return"\n<customFilters "+("and"===t.logic?'and="1"':"")+">\n"+Rr(t.criteria,(function(t){var e=dn.customOperator(t);return"<customFilter "+(e?'operator="'+e+'"':"")+' val="'+dn.customValue(t)+'"/>'}))+"\n</customFilters>"},hn=function(t){var e=t.type;return'<dynamicFilter type="'+dn.dynamicFilterType(e)+'" />'},un=function(t){var e=t.type,r=t.value;return'<top10 percent="'+(/percent$/i.test(e)?1:0)+'"\n top="'+(/^top/i.test(e)?1:0)+'"\n val="'+r+'" />'},cn=function(t){return"<filters "+(t.blanks?'blank="1"':"")+">\n "+Rr(t.values,(function(t){return'\n <filter val="'+t+'" />'}))+"\n </filters>"};function dn(t){return e={ref:t.ref,columns:t.columns,generators:{custom:ln,dynamic:hn,top:un,value:cn}},r=e.generators,'\n<autoFilter ref="'+e.ref+'">\n '+Rr(e.columns,(function(t){return'\n <filterColumn colId="'+t.index+'">\n '+r[t.filter](t)+"\n </filterColumn>\n "}))+"\n</autoFilter>";var e,r}dn.customOperator=function(t){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[t.operator.toLowerCase()]},dn.customValue=function(t){function e(t){return t.replace(/([*?])/g,"~$1")}switch(t.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return e(t.value)+"*";case"endswith":case"doesnotendwith":return"*"+e(t.value);case"contains":case"doesnotcontain":return"*"+e(t.value)+"*";default:return t.value}},dn.dynamicFilterType=function(t){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[t.toLowerCase()]||t}}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}return r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(545)})()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["vue","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoVueExcelExport=t(require("vue"),require("@progress/kendo-licensing")):e.KendoVueExcelExport=t(e.Vue,e.KendoLicensing)}(self,(function(e,t){return(()=>{"use strict";var r={946:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},424:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},545:(e,t,r)=>{var n=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},i=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.saveExcel=void 0;var o,a=(o=r(551))&&o.__esModule?o:{default:o};t.saveExcel=a.default,i(r(424),t),i(r(946),t),i(r(628),t),i(r(364),t)},613:(e,t)=>{var r=function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ExporterColumn=t.toExporterColumns=void 0;var n=function(e,t,n){return function(i){n(t,i);var o=e(r({},t)),a=Number(o);return isNaN(a)?o:a}},i=function(e,t){e.$implicit=e.group=t,e.field=t.field,e.value=t.value,e.aggregates=t.aggregates},o=function(e,t){e.group=t.group,e.$implicit=e.aggregates=t},a=function(e,t){};t.toExporterColumns=function(e){var t=[],r=0;return function e(t,n,i){t.forEach((function(t){var o=new s(t,r);if(n.push(o),t.children&&t.children.length>1){var a=o.columns=[];e(t.children,a,i+1)}else r++}))}(e,t,0),t};var s=function(e,t){this.title=e.title,this.field=e.field,this.hidden=e.hidden,this.locked=e.locked,this.width=e.width,this.headerCellOptions=e.headerCellOptions,this.cellOptions=e.cellOptions,this.groupHeaderCellOptions=e.groupHeaderCellOptions,this.groupFooterCellOptions=e.groupFooterCellOptions,this.footerCellOptions=e.footerCellOptions,e.footer&&(this.footerTemplate=n(e.footer,{$implicit:e,column:e,columnIndex:t},a)),e.groupFooter&&(this.groupFooterTemplate=n(e.groupFooter,{column:e,field:e.field},o)),e.groupHeader&&(this.groupHeaderTemplate=n(e.groupHeader,{},i))};t.ExporterColumn=s},628:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isWorkbookOptions=t.toDataURL=t.workbookOptions=void 0;var n=r(364),i=r(613);t.workbookOptions=function(e){var t,r=(0,i.toExporterColumns)(e.columns),o=new n.ExcelExporter({columns:r,data:e.data,filterable:e.filterable,groups:e.group,paddingCellOptions:e.paddingCellOptions,headerPaddingCellOptions:e.headerPaddingCellOptions,hierarchy:e.hierarchy?{depth:(t=e.data,Math.max.apply(Math,t.map((function(e){return e.level})))+1),itemLevel:function(e){return e.level}}:null,collapsible:e.collapsible}).workbook();return o.creator=e.creator,o.date=e.date,o.rtl="rtl"===e.dir,o},t.toDataURL=function(e){return new n.Workbook(e).toDataURL()},t.isWorkbookOptions=function(e){return e&&e.sheets}},169:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-excel-export",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1662057648,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},551:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=r(628),i=r(202),o=r(680),a=r(169);t.default=function(e){(0,o.validatePackage)(a.packageMetadata);var t=(0,n.workbookOptions)(e);(0,n.toDataURL)(t).then((function(t){(0,i.saveAs)(t,e.fileName,{forceProxy:e.forceProxy,proxyURL:e.proxyURL})}))}},202:(e,t,r)=>{function n(e,t,r){void 0===r&&(r={});var n=l;if(r.forceProxy&&!r.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");r.forceProxy||(o()&&(n=s),navigator.msSaveBlob&&(n=a)),n(e,t,r)}r.r(t),r.d(t,{encodeBase64:()=>h,saveAs:()=>n});var i=function(){return document.createElement("a")},o=function(){return"download"in i()};function a(e,t){var r=e;if("string"==typeof e){for(var n=e.split(";base64,"),i=n[0],o=atob(n[1]),a=new Uint8Array(o.length),s=0;s<o.length;s++)a[s]=o.charCodeAt(s);r=new Blob([a.buffer],{type:i})}navigator.msSaveBlob(r,t)}function s(e,t){var r=e;window.Blob&&e instanceof Blob&&(r=URL.createObjectURL(e));var n=i();n.download=t,n.href=r;var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(o),setTimeout((function(){return URL.revokeObjectURL(r)}))}function l(e,t,r){if(r.proxyURL){var n=document.createElement("form");n.setAttribute("action",r.proxyURL),n.setAttribute("method","POST"),n.setAttribute("target",r.proxyTarget||"_self");var i=r.proxyData||{};i.fileName=t;var o=e.split(";base64,");for(var a in i.contentType=o[0].replace("data:",""),i.base64=o[1],i)if(i.hasOwnProperty(a)){var s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name",a),s.setAttribute("value",i[a]),n.appendChild(s)}document.body.appendChild(n),n.submit(),document.body.removeChild(n)}}var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=String.fromCharCode;function h(e){for(var t,r,n,i,o,a,s,l=function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t+=c(n):n<2048?(t+=c(192|n>>>6),t+=c(128|63&n)):n<65536&&(t+=c(224|n>>>12),t+=c(128|n>>>6&63),t+=c(128|63&n))}return t}(e),h="",d=0;d<l.length;)i=(t=l.charCodeAt(d++))>>2,o=(3&t)<<4|(r=l.charCodeAt(d++))>>4,a=(15&r)<<2|(n=l.charCodeAt(d++))>>6,s=63&n,isNaN(r)?a=s=64:isNaN(n)&&(s=64),h=h+u.charAt(i)+u.charAt(o)+u.charAt(a)+u.charAt(s);return h}},364:(e,t,r)=>{r.r(t),r.d(t,{ExcelExporter:()=>p,IntlService:()=>v,TemplateService:()=>o,Workbook:()=>Zr,Worksheet:()=>Hr});var n={compile:function(e){return e}},i=function(){};i.register=function(e){n=e},i.compile=function(e){return n.compile(e)};const o=i;var a=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,s={};function l(e){if(s[e])return s[e];var t=[];return e.replace(a,(function(e,r,n,i){t.push(void 0!==r?r:n||i)})),s[e]=function(e){for(var r=e,n=0;n<t.length&&r;n++)r=r[t[n]];return r},s[e]}function u(e,t){return e.reduce((function(e,r,n){var i=t(r,n);return null!=i&&e.push(i),e}),[])}function c(e){return e.title+": "+e.value}function h(e,t){for(var r=[],n=0;n<e;n++)r.push(t(n));return r}function d(e){return e.id}s[void 0]=function(e){return e};var f=function(e){e.columns=this._trimColumns(e.columns||[]),this.allColumns=u(this._leafColumns(e.columns||[]),this._prepareColumn),this.columns=this._visibleColumns(this.allColumns),this.options=e,this.data=e.data||[],this.aggregates=e.aggregates||{},this.groups=[].concat(e.groups||[]),this.hasGroups=this.groups.length>0,this.hierarchy=e.hierarchy,this.hasGroupHeaderColumn=this.columns.some((function(e){return e.groupHeaderColumnTemplate})),this.collapsible=this.options.collapsible};f.prototype.workbook=function(){return{sheets:[{columns:this._columns(),rows:this.hierarchy?this._hierarchyRows():this._rows(),freezePane:this._freezePane(),filter:this._filter()}]}},f.prototype._trimColumns=function(e){var t=this;return e.filter((function(e){var r=Boolean(e.field);return!r&&e.columns&&(r=t._trimColumns(e.columns).length>0),r}))},f.prototype._leafColumns=function(e){for(var t=[],r=0;r<e.length;r++)e[r].columns?t=t.concat(this._leafColumns(e[r].columns)):t.push(e[r]);return t},f.prototype._prepareColumn=function(e){if(!e.field)return null;var t=function(t){return l(e.field)(t)},r=null;return e.values&&(r={},e.values.forEach((function(e){r[e.value]=e.text})),t=function(t){return r[l(e.field)(t)]}),Object.assign({},e,{value:t,values:r,groupHeaderTemplate:e.groupHeaderTemplate?o.compile(e.groupHeaderTemplate):c,groupHeaderColumnTemplate:e.groupHeaderColumnTemplate?o.compile(e.groupHeaderColumnTemplate):null,groupFooterTemplate:e.groupFooterTemplate?o.compile(e.groupFooterTemplate):null,footerTemplate:e.footerTemplate?o.compile(e.footerTemplate):null})},f.prototype._filter=function(){if(!this.options.filterable)return null;var e=this._depth();return{from:e,to:e+this.columns.length-1}},f.prototype._createPaddingCells=function(e){var t=this;return h(e,(function(){return Object.assign({background:"#dfdfdf",color:"#333"},t.options.paddingCellOptions)}))},f.prototype._dataRow=function(e,t,r){var n=this._createPaddingCells(t);if(this.hasGroups&&r&&e.items){n=n.concat(this._groupHeaderCells(e,t,r));var i=this._dataRows(e.items,t+1);return i.unshift({type:"group-header",cells:n,level:this.collapsible?t:null}),i.concat(this._footer(e,t))}for(var o=[],a=0;a<this.columns.length;a++)o[a]=this._cell(e,this.columns[a]);return this.hierarchy&&(o[0].colSpan=r-t+1),[{type:"data",cells:n.concat(o),level:this.collapsible?t:null}]},f.prototype._groupHeaderCells=function(e,t,r){var n=[],i=this.allColumns.filter((function(t){return t.field===e.field}))[0]||{},o=i&&i.title?i.title:e.field,a=i?i.groupHeaderTemplate||i.groupHeaderColumnTemplate:null,s=Object.assign({title:o,field:e.field,value:i&&i.values?i.values[e.value]:e.value,aggregates:e.aggregates,items:e.items},e.aggregates[e.field]),l=a?a(s):o+": "+e.value;return n.push(Object.assign({value:l,background:"#dfdfdf",color:"#333",colSpan:(this.hasGroupHeaderColumn?1:this.columns.length)+r-t},i.groupHeaderCellOptions)),this.hasGroupHeaderColumn&&this.columns.forEach((function(t,r){r>0&&n.push(Object.assign({background:"#dfdfdf",color:"#333",value:t.groupHeaderColumnTemplate?t.groupHeaderColumnTemplate(Object.assign({group:s},s,e.aggregates[t.field])):void 0},t.groupHeaderCellOptions))})),n},f.prototype._dataRows=function(e,t){for(var r=this._depth(),n=[],i=0;i<e.length;i++)n.push.apply(n,this._dataRow(e[i],t,r));return n},f.prototype._hierarchyRows=function(){var e,t=this._depth(),r=this.data,n=this.hierarchy.itemLevel,i=this.hierarchy.itemId||d,o=this._hasFooterTemplate(),a=[],s=[],l=0;o||(this.collapsible=!1);for(var u=0;u<r.length;u++){var c=r[u],h=n(c,u);o&&(h>l?s.push({id:e,level:l}):h<l&&a.push.apply(a,this._hierarchyFooterRows(s,h,t)),l=h,e=i(c,u)),a.push.apply(a,this._dataRow(c,h+1,t))}if(o){a.push.apply(a,this._hierarchyFooterRows(s,0,t));var f=r.length?this.aggregates[r[0].parentId]:{};a.push(this._hierarchyFooter(f,0,t))}return this._prependHeaderRows(a),a},f.prototype._hierarchyFooterRows=function(e,t,r){for(var n=[];e.length&&e[e.length-1].level>=t;){var i=e.pop();n.push(this._hierarchyFooter(this.aggregates[i.id],i.level+1,r))}return n},f.prototype._hasFooterTemplate=function(){for(var e=this.columns,t=0;t<e.length;t++)if(e[t].footerTemplate)return!0},f.prototype._hierarchyFooter=function(e,t,r){var n=this.columns.map((function(n,i){var o=i?1:r-t+1;if(n.footerTemplate){var a=(e||{})[n.field];return Object.assign({background:"#dfdfdf",color:"#333",colSpan:o,value:n.footerTemplate(Object.assign({aggregates:e},a))},n.footerCellOptions)}return Object.assign({background:"#dfdfdf",color:"#333",colSpan:o},n.footerCellOptions)}));return{type:"footer",cells:this._createPaddingCells(t).concat(n),level:this.collapsible?t:null}},f.prototype._footer=function(e,t){var r,n,i=[],o=this.columns.some((function(e){return e.groupFooterTemplate}));o&&(n={group:{items:e.items,field:e.field,value:e.value}},r={},Object.keys(e.aggregates).forEach((function(t){r[t]=Object.assign({},e.aggregates[t],n)})));var a=this.columns.map((function(t){if(t.groupFooterTemplate){var i=Object.assign({},r,e.aggregates[t.field],n);return Object.assign({background:"#dfdfdf",color:"#333",value:t.groupFooterTemplate(i)},t.groupFooterCellOptions)}return Object.assign({background:"#dfdfdf",color:"#333"},t.groupFooterCellOptions)}));return o&&i.push({type:"group-footer",cells:this._createPaddingCells(this.groups.length).concat(a),level:this.collapsible?t:null}),i},f.prototype._isColumnVisible=function(e){return this._visibleColumns([e]).length>0&&(e.field||e.columns)},f.prototype._visibleColumns=function(e){var t=this;return e.filter((function(e){var r=e.exportable;"object"==typeof r&&(r=e.exportable.excel);var n=!e.hidden&&!1!==r,i=e.hidden&&!0===r,o=n||i;return o&&e.columns&&(o=t._visibleColumns(e.columns).length>0),o}))},f.prototype._headerRow=function(e,t){var r=this,n=e.cells.map((function(t){return Object.assign(t,{colSpan:t.colSpan>1?t.colSpan:1,rowSpan:e.rowSpan>1&&!t.colSpan?e.rowSpan:1})}));return this.hierarchy&&n[0].firstCell&&(n[0].colSpan+=this._depth()),{type:"header",cells:h(t.length,(function(){return Object.assign({background:"#7a7a7a",color:"#fff"},r.options.headerPaddingCellOptions)})).concat(n)}},f.prototype._prependHeaderRows=function(e){var t=this.groups,r=[{rowSpan:1,cells:[],index:0}];this._prepareHeaderRows(r,this.options.columns);for(var n=r.length-1;n>=0;n--)e.unshift(this._headerRow(r[n],t))},f.prototype._prepareHeaderRows=function(e,t,r,n){for(var i=this,o=n||e[e.length-1],a=e[o.index+1],s=0,l=0;l<t.length;l++){var u=t[l];if(i._isColumnVisible(u)){var c=Object.assign({background:"#7a7a7a",color:"#fff",value:u.title||u.field,colSpan:0,firstCell:0===l&&(!r||r.firstCell)},u.headerCellOptions);o.cells.push(c),u.columns&&u.columns.length&&(a||(a={rowSpan:0,cells:[],index:e.length},e.push(a)),c.colSpan=i._trimColumns(i._visibleColumns(u.columns)).length,i._prepareHeaderRows(e,u.columns,c,a),s+=c.colSpan-1,o.rowSpan=e.length-o.index)}}r&&(r.colSpan+=s)},f.prototype._rows=function(){var e=this,t=this._dataRows(this.data,0);if(this.columns.length){this._prependHeaderRows(t);var r=!1,n=this.columns.map((function(t){return t.footerTemplate?(r=!0,Object.assign({background:"#dfdfdf",color:"#333",value:t.footerTemplate(Object.assign({},e.aggregates,e.aggregates[t.field]))},t.footerCellOptions)):Object.assign({background:"#dfdfdf",color:"#333"},t.footerCellOptions)}));r&&t.push({type:"footer",cells:this._createPaddingCells(this.groups.length).concat(n)})}return t},f.prototype._headerDepth=function(e){for(var t=0,r=0;r<e.length;r++)if(e[r].columns){var n=this._headerDepth(e[r].columns);n>t&&(t=n)}return 1+t},f.prototype._freezePane=function(){var e=this._visibleColumns(this.options.columns||[]),t=this._visibleColumns(this._trimColumns(this._leafColumns(e.filter((function(e){return e.locked}))))).length;return{rowSplit:this._headerDepth(e),colSplit:t?t+this.groups.length:0}},f.prototype._cell=function(e,t){return Object.assign({value:t.value(e)},t.cellOptions)},f.prototype._depth=function(){return this.hierarchy?this.hierarchy.depth:this.groups.length},f.prototype._columns=function(){return h(this._depth(),(function(){return{width:20}})).concat(this.columns.map((function(e){return{width:parseInt(e.width,10),autoWidth:!e.width}})))};const p=f;var m={toString:function(e){return e}},g=function(){};g.register=function(e){m=e},g.toString=function(e,t){return m.toString(e,t)};const v=g;var _=-2;function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function b(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)y(r,n)&&(e[n]=r[n])}}return e}function w(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)}var x={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,a;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(a=new Uint8Array(n),i=0,t=0,r=e.length;t<r;t++)o=e[t],a.set(o,i),i+=o.length;return a},Buf8:function(e){return new Uint8Array(e)},Buf16:function(e){return new Uint16Array(e)},Buf32:function(e){return new Int32Array(e)}},k={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)},Buf8:function(e){return new Array(e)},Buf16:function(e){return new Array(e)},Buf32:function(e){return new Array(e)}},C=function(){var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;return C=function(){return e},e},O=function(e,t,r,n,i){return(O=C()?x.arraySet:k.arraySet)(e,t,r,n,i)},S=function(e){return(S=C()?x.flattenChunks:k.flattenChunks)(e)},z=function(e){return(z=C()?x.Buf8:k.Buf8)(e)},P=function(e){return(P=C()?x.Buf16:k.Buf16)(e)},I=function(e){return(I=C()?x.Buf32:k.Buf32)(e)},A=function(){var e=!0;try{String.fromCharCode.apply(null,[0])}catch(t){e=!1}return A=function(){return e},e},D=function(){var e=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){e=!1}return D=function(){return e},e},T=function(e){for(var t=z(256),r=0;r<256;r++)t[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;return t[254]=t[254]=1,T=function(e){return t[e]},t[e]};function F(e){var t,r,n,i,o,a=e.length,s=0;for(i=0;i<a;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(s),o=0,i=0;o<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|63&r):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|63&r):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|63&r);return t}function j(e,t){if(t<65534&&(e.subarray&&D()||!e.subarray&&A()))return String.fromCharCode.apply(null,w(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}function E(e,t){var r,n,i,o,a=t||e.length,s=new Array(2*a);for(n=0,r=0;r<a;)if((i=e[r++])<128)s[n++]=i;else if((o=T(i))>4)s[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<a;)i=i<<6|63&e[r++],o--;o>1?s[n++]=65533:i<65536?s[n++]=i:(i-=65536,s[n++]=55296|i>>10&1023,s[n++]=56320|1023&i)}return j(s,n)}function R(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+T(e[r])>t?r:t}function M(e,t,r,n){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+t[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}var L=function(){var e=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();return L=function(){return e},e};function B(e,t,r,n){var i=L(),o=n+r;e^=-1;for(var a=n;a<o;a++)e=e>>>8^i[255&(e^t[a])];return-1^e}function U(e,t){var r,n,i,o,a,s,l,u,c,h,d,f,p,m,g,v,_,y,b,w,x,k,C,O,S;r=e.state,n=e.next_in,O=e.input,i=n+(e.avail_in-5),o=e.next_out,S=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=r.dmax,u=r.wsize,c=r.whave,h=r.wnext,d=r.window,f=r.hold,p=r.bits,m=r.lencode,g=r.distcode,v=(1<<r.lenbits)-1,_=(1<<r.distbits)-1;e:do{p<15&&(f+=O[n++]<<p,p+=8,f+=O[n++]<<p,p+=8),y=m[f&v];t:for(;;){if(f>>>=b=y>>>24,p-=b,0==(b=y>>>16&255))S[o++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=m[(65535&y)+(f&(1<<b)-1)];continue t}if(32&b){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=65535&y,(b&=15)&&(p<b&&(f+=O[n++]<<p,p+=8),w+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=O[n++]<<p,p+=8,f+=O[n++]<<p,p+=8),y=g[f&_];r:for(;;){if(f>>>=b=y>>>24,p-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=g[(65535&y)+(f&(1<<b)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(x=65535&y,p<(b&=15)&&(f+=O[n++]<<p,(p+=8)<b&&(f+=O[n++]<<p,p+=8)),(x+=f&(1<<b)-1)>l){e.msg="invalid distance too far back",r.mode=30;break e}if(f>>>=b,p-=b,x>(b=o-a)){if((b=x-b)>c&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(k=0,C=d,0===h){if(k+=u-b,b<w){w-=b;do{S[o++]=d[k++]}while(--b);k=o-x,C=S}}else if(h<b){if(k+=u+h-b,(b-=h)<w){w-=b;do{S[o++]=d[k++]}while(--b);if(k=0,h<w){w-=b=h;do{S[o++]=d[k++]}while(--b);k=o-x,C=S}}}else if(k+=h-b,b<w){w-=b;do{S[o++]=d[k++]}while(--b);k=o-x,C=S}for(;w>2;)S[o++]=C[k++],S[o++]=C[k++],S[o++]=C[k++],w-=3;w&&(S[o++]=C[k++],w>1&&(S[o++]=C[k++]))}else{k=o-x;do{S[o++]=S[k++],S[o++]=S[k++],S[o++]=S[k++],w-=3}while(w>2);w&&(S[o++]=S[k++],w>1&&(S[o++]=S[k++]))}break}}break}}while(n<i&&o<s);n-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<s?s-o+257:257-(o-s),r.hold=f,r.bits=p}var N=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],W=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],H=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],V=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function q(e,t,r,n,i,o,a,s){var l,u,c,h,d,f,p,m,g,v=s.bits,_=0,y=0,b=0,w=0,x=0,k=0,C=0,O=0,S=0,z=0,I=null,A=0,D=P(16),T=P(16),F=null,j=0;for(_=0;_<=15;_++)D[_]=0;for(y=0;y<n;y++)D[t[r+y]]++;for(x=v,w=15;w>=1&&0===D[w];w--);if(x>w&&(x=w),0===w)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(b=1;b<w&&0===D[b];b++);for(x<b&&(x=b),O=1,_=1;_<=15;_++)if(O<<=1,(O-=D[_])<0)return-1;if(O>0&&(0===e||1!==w))return-1;for(T[1]=0,_=1;_<15;_++)T[_+1]=T[_]+D[_];for(y=0;y<n;y++)0!==t[r+y]&&(a[T[t[r+y]]++]=y);if(0===e?(I=F=a,f=19):1===e?(I=N,A-=257,F=W,j-=257,f=256):(I=H,F=V,f=-1),z=0,y=0,_=b,d=o,k=x,C=0,c=-1,h=(S=1<<x)-1,1===e&&S>852||2===e&&S>592)return 1;for(;;){p=_-C,a[y]<f?(m=0,g=a[y]):a[y]>f?(m=F[j+a[y]],g=I[A+a[y]]):(m=96,g=0),l=1<<_-C,b=u=1<<k;do{i[d+(z>>C)+(u-=l)]=p<<24|m<<16|g|0}while(0!==u);for(l=1<<_-1;z&l;)l>>=1;if(0!==l?(z&=l-1,z+=l):z=0,y++,0==--D[_]){if(_===w)break;_=t[r+a[y]]}if(_>x&&(z&h)!==c){for(0===C&&(C=x),d+=b,O=1<<(k=_-C);k+C<w&&!((O-=D[k+C])<=0);)k++,O<<=1;if(S+=1<<k,1===e&&S>852||2===e&&S>592)return 1;i[c=z&h]=x<<24|k<<16|d-o|0}}return 0!==z&&(i[d+z]=_-C<<24|64<<16|0),s.bits=x,0}var K=-2,X=12,$=30;function Z(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function G(){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=P(320),this.work=P(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Y(e,t){var r,n;return e?(n=new G,e.state=n,n.window=null,r=function(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?K:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,function(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,function(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=I(852),t.distcode=t.distdyn=I(592),t.sane=1,t.back=-1,0):K}(e)):K}(e))):K}(e,t),0!==r&&(e.state=null),r):K}var J,Q,ee=!0;function te(e){if(ee){var t;for(J=I(512),Q=I(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(q(1,e.lens,0,288,J,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;q(2,e.lens,0,32,Q,0,e.work,{bits:5}),ee=!1}e.lencode=J,e.lenbits=9,e.distcode=Q,e.distbits=5}function re(e,t,r,n){var i,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=z(o.wsize)),n>=o.wsize?(O(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>n&&(i=n),O(o.window,t,r-n,i,o.wnext),(n-=i)?(O(o.window,t,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}function ne(e,t){var r,n,i,o,a,s,l,u,c,h,d,f,p,m,g,v,_,y,b,w,x,k,C,S,P=0,I=z(4),A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return K;(r=e.state).mode===X&&(r.mode=13),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,u=r.hold,c=r.bits,h=s,d=l,k=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;c<16;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}if(2&r.wrap&&35615===u){r.check=0,I[0]=255&u,I[1]=u>>>8&255,r.check=B(r.check,I,2,0),u=0,c=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=$;break}if(8!=(15&u)){e.msg="unknown compression method",r.mode=$;break}if(c-=4,x=8+(15&(u>>>=4)),0===r.wbits)r.wbits=x;else if(x>r.wbits){e.msg="invalid window size",r.mode=$;break}r.dmax=1<<x,e.adler=r.check=1,r.mode=512&u?10:X,u=0,c=0;break;case 2:for(;c<16;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}if(r.flags=u,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=$;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=$;break}r.head&&(r.head.text=u>>8&1),512&r.flags&&(I[0]=255&u,I[1]=u>>>8&255,r.check=B(r.check,I,2,0)),u=0,c=0,r.mode=3;case 3:for(;c<32;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}r.head&&(r.head.time=u),512&r.flags&&(I[0]=255&u,I[1]=u>>>8&255,I[2]=u>>>16&255,I[3]=u>>>24&255,r.check=B(r.check,I,4,0)),u=0,c=0,r.mode=4;case 4:for(;c<16;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}r.head&&(r.head.xflags=255&u,r.head.os=u>>8),512&r.flags&&(I[0]=255&u,I[1]=u>>>8&255,r.check=B(r.check,I,2,0)),u=0,c=0,r.mode=5;case 5:if(1024&r.flags){for(;c<16;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}r.length=u,r.head&&(r.head.extra_len=u),512&r.flags&&(I[0]=255&u,I[1]=u>>>8&255,r.check=B(r.check,I,2,0)),u=0,c=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((f=r.length)>s&&(f=s),f&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),O(r.head.extra,n,o,f,x)),512&r.flags&&(r.check=B(r.check,n,f,o)),s-=f,o+=f,r.length-=f),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break e;f=0;do{x=n[o+f++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x))}while(x&&f<s);if(512&r.flags&&(r.check=B(r.check,n,f,o)),s-=f,o+=f,x)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break e;f=0;do{x=n[o+f++],r.head&&x&&r.length<65536&&(r.head.comment+=String.fromCharCode(x))}while(x&&f<s);if(512&r.flags&&(r.check=B(r.check,n,f,o)),s-=f,o+=f,x)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;c<16;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}if(u!==(65535&r.check)){e.msg="header crc mismatch",r.mode=$;break}u=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=X;break;case 10:for(;c<32;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}e.adler=r.check=Z(u),u=0,c=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,r.hold=u,r.bits=c,2;e.adler=r.check=1,r.mode=X;case X:if(5===t||6===t)break e;case 13:if(r.last){u>>>=7&c,c-=7&c,r.mode=27;break}for(;c<3;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}switch(r.last=1&u,c-=1,3&(u>>>=1)){case 0:r.mode=14;break;case 1:if(te(r),r.mode=20,6===t){u>>>=2,c-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=$}u>>>=2,c-=2;break;case 14:for(u>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=$;break}if(r.length=65535&u,u=0,c=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(f=r.length){if(f>s&&(f=s),f>l&&(f=l),0===f)break e;O(i,n,o,f,a),s-=f,o+=f,l-=f,a+=f,r.length-=f;break}r.mode=X;break;case 17:for(;c<14;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}if(r.nlen=257+(31&u),u>>>=5,c-=5,r.ndist=1+(31&u),u>>>=5,c-=5,r.ncode=4+(15&u),u>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=$;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;c<3;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}r.lens[A[r.have++]]=7&u,u>>>=3,c-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},k=q(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,k){e.msg="invalid code lengths set",r.mode=$;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;v=(P=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,_=65535&P,!((g=P>>>24)<=c);){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}if(_<16)u>>>=g,c-=g,r.lens[r.have++]=_;else{if(16===_){for(S=g+2;c<S;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}if(u>>>=g,c-=g,0===r.have){e.msg="invalid bit length repeat",r.mode=$;break}x=r.lens[r.have-1],f=3+(3&u),u>>>=2,c-=2}else if(17===_){for(S=g+3;c<S;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}c-=g,x=0,f=3+(7&(u>>>=g)),u>>>=3,c-=3}else{for(S=g+7;c<S;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}c-=g,x=0,f=11+(127&(u>>>=g)),u>>>=7,c-=7}if(r.have+f>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=$;break}for(;f--;)r.lens[r.have++]=x}}if(r.mode===$)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=$;break}if(r.lenbits=9,C={bits:r.lenbits},k=q(1,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,k){e.msg="invalid literal/lengths set",r.mode=$;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},k=q(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,k){e.msg="invalid distances set",r.mode=$;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(s>=6&&l>=258){e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,r.hold=u,r.bits=c,U(e,d),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,u=r.hold,c=r.bits,r.mode===X&&(r.back=-1);break}for(r.back=0;v=(P=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,_=65535&P,!((g=P>>>24)<=c);){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}if(v&&0==(240&v)){for(y=g,b=v,w=_;v=(P=r.lencode[w+((u&(1<<y+b)-1)>>y)])>>>16&255,_=65535&P,!(y+(g=P>>>24)<=c);){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}u>>>=y,c-=y,r.back+=y}if(u>>>=g,c-=g,r.back+=g,r.length=_,0===v){r.mode=26;break}if(32&v){r.back=-1,r.mode=X;break}if(64&v){e.msg="invalid literal/length code",r.mode=$;break}r.extra=15&v,r.mode=22;case 22:if(r.extra){for(S=r.extra;c<S;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;v=(P=r.distcode[u&(1<<r.distbits)-1])>>>16&255,_=65535&P,!((g=P>>>24)<=c);){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}if(0==(240&v)){for(y=g,b=v,w=_;v=(P=r.distcode[w+((u&(1<<y+b)-1)>>y)])>>>16&255,_=65535&P,!(y+(g=P>>>24)<=c);){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}u>>>=y,c-=y,r.back+=y}if(u>>>=g,c-=g,r.back+=g,64&v){e.msg="invalid distance code",r.mode=$;break}r.offset=_,r.extra=15&v,r.mode=24;case 24:if(r.extra){for(S=r.extra;c<S;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=$;break}r.mode=25;case 25:if(0===l)break e;if(f=d-l,r.offset>f){if((f=r.offset-f)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=$;break}f>r.wnext?(f-=r.wnext,p=r.wsize-f):p=r.wnext-f,f>r.length&&(f=r.length),m=r.window}else m=i,p=a-r.offset,f=r.length;f>l&&(f=l),l-=f,r.length-=f;do{i[a++]=m[p++]}while(--f);0===r.length&&(r.mode=21);break;case 26:if(0===l)break e;i[a++]=r.length,l--,r.mode=21;break;case 27:if(r.wrap){for(;c<32;){if(0===s)break e;s--,u|=n[o++]<<c,c+=8}if(d-=l,e.total_out+=d,r.total+=d,d&&(e.adler=r.check=r.flags?B(r.check,i,d,a-d):M(r.check,i,d,a-d)),d=l,(r.flags?u:Z(u))!==r.check){e.msg="incorrect data check",r.mode=$;break}u=0,c=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;c<32;){if(0===s)break e;s--,u+=n[o++]<<c,c+=8}if(u!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=$;break}u=0,c=0}r.mode=29;case 29:k=1;break e;case $:k=-3;break e;case 31:return-4;default:return K}return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,r.hold=u,r.bits=c,(r.wsize||d!==e.avail_out&&r.mode<$&&(r.mode<27||4!==t))&&re(e,e.output,e.next_out,d-e.avail_out),h-=e.avail_in,d-=e.avail_out,e.total_in+=h,e.total_out+=d,r.total+=d,r.wrap&&d&&(e.adler=r.check=r.flags?B(r.check,i,d,e.next_out-d):M(r.check,i,d,e.next_out-d)),e.data_type=r.bits+(r.last?64:0)+(r.mode===X?128:0)+(20===r.mode||15===r.mode?256:0),(0===h&&0===d||4===t)&&0===k&&(k=-5),k}function ie(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?K:11===r.mode&&M(1,t,n,0)!==r.check?-3:re(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):K}var oe={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function ae(){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}function se(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var le=Object.prototype.toString,ue=function e(t){if(!(this instanceof e))return new e(t);this.options=b({chunkSize:16384,windowBits:0,to:""},t||{});var r=this.options;r.raw&&r.windowBits>=0&&r.windowBits<16&&(r.windowBits=-r.windowBits,0===r.windowBits&&(r.windowBits=-15)),!(r.windowBits>=0&&r.windowBits<16)||t&&t.windowBits||(r.windowBits+=32),r.windowBits>15&&r.windowBits<48&&0==(15&r.windowBits)&&(r.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ae,this.strm.avail_out=0;var n,i,o,a=Y(this.strm,r.windowBits);if(0!==a)throw new Error(oe[a]);if(this.header=new se,n=this.strm,i=this.header,n&&n.state&&(0==(2&(o=n.state).wrap)||(o.head=i,i.done=!1)),r.dictionary&&("string"==typeof r.dictionary?r.dictionary=F(r.dictionary):"[object ArrayBuffer]"===le.call(r.dictionary)&&(r.dictionary=new Uint8Array(r.dictionary)),r.raw&&0!==(a=ie(this.strm,r.dictionary))))throw new Error(oe[a])};function ce(e){for(var t=e.length;--t>=0;)e[t]=0}ue.prototype.push=function(e,t){var r,n,i,o,a,s,l=this.strm,u=this.options.chunkSize,c=this.options.dictionary,h=!1;if(this.ended)return!1;n=t===~~t?t:!0===t?4:0,"string"==typeof e?l.input=function(e){for(var t=new Uint8Array(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t}(e):"[object ArrayBuffer]"===le.call(e)?l.input=new Uint8Array(e):l.input=e,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=z(u),l.next_out=0,l.avail_out=u),2===(r=ne(l,0))&&c&&(s="string"==typeof c?F(c):"[object ArrayBuffer]"===le.call(c)?new Uint8Array(c):c,r=ie(this.strm,s)),-5===r&&!0===h&&(r=0,h=!1),1!==r&&0!==r)return this.onEnd(r),this.ended=!0,!1;l.next_out&&(0!==l.avail_out&&1!==r&&(0!==l.avail_in||4!==n&&2!==n)||("string"===this.options.to?(i=R(l.output,l.next_out),o=l.next_out-i,a=E(l.output,i),l.next_out=o,l.avail_out=u-o,o&&O(l.output,l.output,i,o,0),this.onData(a)):this.onData(w(l.output,l.next_out)))),0===l.avail_in&&0===l.avail_out&&(h=!0)}while((l.avail_in>0||0===l.avail_out)&&1!==r);return 1===r&&(n=4),4===n?(r=function(e){if(!e||!e.state)return K;var t=e.state;return t.window&&(t.window=null),e.state=null,0}(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),l.avail_out=0,!0)},ue.prototype.onData=function(e){this.chunks.push(e)},ue.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=S(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var he,de,fe,pe,me,ge,ve,_e,ye,be=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],we=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ke=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Ce(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function Oe(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Se(e){return e<256?fe[e]:fe[256+(e>>>7)]}function ze(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Pe(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,ze(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Ie(e,t,r){Pe(e,r[2*t],r[2*t+1])}function Ae(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function De(e,t,r){var n,i,o=new Array(16),a=0;for(n=1;n<=15;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=Ae(o[s]++,s))}}function Te(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Fe(e){e.bi_valid>8?ze(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function je(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function Ee(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&je(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!je(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function Re(e,t,r){var n,i,o,a,s=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===n?Ie(e,i,t):(Ie(e,(o=pe[i])+256+1,t),0!==(a=be[o])&&Pe(e,i-=me[o],a),Ie(e,o=Se(--n),r),0!==(a=we[o])&&Pe(e,n-=ge[o],a))}while(s<e.last_lit);Ie(e,256,t)}function Me(e,t){var r,n,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==o[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=u,r=e.heap_len>>1;r>=1;r--)Ee(e,o,r);i=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Ee(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,Ee(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(o=l[2*l[2*(n=e.heap[r])+1]+1]+1)>p&&(o=p,m++),l[2*n+1]=o,n>u||(e.bl_count[o]++,a=0,n>=f&&(a=d[n-f]),s=l[2*n],e.opt_len+=s*(o+a),h&&(e.static_len+=s*(c[2*n+1]+a)));if(0!==m){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(o=p;0!==o;o--)for(n=e.bl_count[o];0!==n;)(i=e.heap[--r])>u||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),n--)}}(e,t),De(o,u,e.bl_count)}function Le(e,t,r){var n,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s<l&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(l=138,u=3):i===a?(l=6,u=3):(l=7,u=4))}function Be(e,t,r){var n,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),n=0;n<=r;n++)if(i=a,a=t[2*(n+1)+1],!(++s<l&&i===a)){if(s<u)do{Ie(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(Ie(e,i,e.bl_tree),s--),Ie(e,16,e.bl_tree),Pe(e,s-3,2)):s<=10?(Ie(e,17,e.bl_tree),Pe(e,s-3,3)):(Ie(e,18,e.bl_tree),Pe(e,s-11,7));s=0,o=i,0===a?(l=138,u=3):i===a?(l=6,u=3):(l=7,u=4)}}var Ue=!1;function Ne(e,t,r,n){Pe(e,0+(n?1:0),3),function(e,t,r,n){Fe(e),ze(e,r),ze(e,~r),O(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r)}function We(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(pe[r]+256+1)]++,e.dyn_dtree[2*Se(t)]++),e.last_lit===e.lit_bufsize-1}var He=258,Ve=262,qe=103,Ke=113,Xe=666;function $e(e,t){return e.msg=oe[t],t}function Ze(e){return(e<<1)-(e>4?9:0)}function Ge(e){for(var t=e.length;--t>=0;)e[t]=0}function Ye(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(O(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function Je(e,t){(function(e,t,r,n){var i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),Me(e,e.l_desc),Me(e,e.d_desc),a=function(e){var t;for(Le(e,e.dyn_ltree,e.l_desc.max_code),Le(e,e.dyn_dtree,e.d_desc.max_code),Me(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*ke[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?Ne(e,t,r,n):4===e.strategy||o===i?(Pe(e,2+(n?1:0),3),Re(e,he,de)):(Pe(e,4+(n?1:0),3),function(e,t,r,n){var i;for(Pe(e,t-257,5),Pe(e,r-1,5),Pe(e,n-4,4),i=0;i<n;i++)Pe(e,e.bl_tree[2*ke[i]+1],3);Be(e,e.dyn_ltree,t-1),Be(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),Re(e,e.dyn_ltree,e.dyn_dtree)),Te(e),n&&Fe(e)})(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ye(e.strm)}function Qe(e,t){e.pending_buf[e.pending++]=t}function et(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function tt(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-Ve?e.strstart-(e.w_size-Ve):0,u=e.window,c=e.w_mask,h=e.prev,d=e.strstart+He,f=u[o+a-1],p=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+a]===p&&u[r+a-1]===f&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<d);if(n=He-(d-o),o=d-He,n>a){if(e.match_start=t,a=n,n>=s)break;f=u[o+a-1],p=u[o+a]}}}while((t=h[t&c])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function rt(e){var t,r,n,i,o,a,s,l,u,c,h=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-Ve)){O(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=h?n-h:0}while(--r);t=r=h;do{n=e.prev[--t],e.prev[t]=n>=h?n-h:0}while(--r);i+=h}if(0===e.strm.avail_in)break;if(a=e.strm,s=e.window,l=e.strstart+e.lookahead,u=i,c=void 0,(c=a.avail_in)>u&&(c=u),r=0===c?0:(a.avail_in-=c,O(s,a.input,a.next_in,c,l),1===a.state.wrap?a.adler=M(a.adler,s,c,l):2===a.state.wrap&&(a.adler=B(a.adler,s,c,l)),a.next_in+=c,a.total_in+=c,c),e.lookahead+=r,e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+3-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<Ve&&0!==e.strm.avail_in)}function nt(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(rt(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,Je(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-Ve&&(Je(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Je(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Je(e,!1),e.strm.avail_out),1)}function it(e,t){for(var r,n;;){if(e.lookahead<Ve){if(rt(e),e.lookahead<Ve&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-Ve&&(e.match_length=tt(e,r)),e.match_length>=3)if(n=We(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=We(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(Je(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(Je(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Je(e,!1),0===e.strm.avail_out)?1:2}function ot(e,t){for(var r,n,i;;){if(e.lookahead<Ve){if(rt(e),e.lookahead<Ve&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Ve&&(e.match_length=tt(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=We(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(Je(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=We(e,0,e.window[e.strstart-1]))&&Je(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=We(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(Je(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Je(e,!1),0===e.strm.avail_out)?1:2}function at(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}var st=function(){var e=[new at(0,0,0,0,nt),new at(4,4,8,4,it),new at(4,5,16,8,it),new at(4,6,32,32,it),new at(4,4,16,16,ot),new at(8,16,32,32,ot),new at(8,16,128,128,ot),new at(8,32,128,256,ot),new at(32,128,258,1024,ot),new at(32,258,258,4096,ot)];return st=function(){return e},e};function lt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=P(1146),this.dyn_dtree=P(122),this.bl_tree=P(78),Ge(this.dyn_ltree),Ge(this.dyn_dtree),Ge(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=P(16),this.heap=P(573),Ge(this.heap),this.heap_len=0,this.heap_max=0,this.depth=P(573),Ge(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ut(e){var t=function(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:Ke,e.adler=2===t.wrap?0:1,t.last_flush=0,function(e){Ue||(function(){var e,t,r,n,i,o=new Array(16);for(ce(he=new Array(576)),ce(de=new Array(60)),ce(fe=new Array(512)),ce(pe=new Array(256)),ce(me=new Array(29)),ce(ge=new Array(30)),r=0,n=0;n<28;n++)for(me[n]=r,e=0;e<1<<be[n];e++)pe[r++]=n;for(pe[r-1]=n,i=0,n=0;n<16;n++)for(ge[n]=i,e=0;e<1<<we[n];e++)fe[i++]=n;for(i>>=7;n<30;n++)for(ge[n]=i<<7,e=0;e<1<<we[n]-7;e++)fe[256+i++]=n;for(t=0;t<=15;t++)o[t]=0;for(e=0;e<=143;)he[2*e+1]=8,e++,o[8]++;for(;e<=255;)he[2*e+1]=9,e++,o[9]++;for(;e<=279;)he[2*e+1]=7,e++,o[7]++;for(;e<=287;)he[2*e+1]=8,e++,o[8]++;for(De(he,287,o),e=0;e<30;e++)de[2*e+1]=5,de[2*e]=Ae(e,5);ve=new Ce(he,be,257,286,15),_e=new Ce(de,we,0,30,15),ye=new Ce(new Array(0),xe,0,19,7)}(),Ue=!0),e.l_desc=new Oe(e.dyn_ltree,ve),e.d_desc=new Oe(e.dyn_dtree,_e),e.bl_desc=new Oe(e.bl_tree,ye),e.bi_buf=0,e.bi_valid=0,Te(e)}(t),0):$e(e,_)}(e);return 0===t&&function(e){e.window_size=2*e.w_size,Ge(e.head);var t=st();e.max_lazy_match=t[e.level].max_lazy,e.good_match=t[e.level].good_length,e.nice_match=t[e.level].nice_length,e.max_chain_length=t[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0}(e.state),t}function ct(e,t){var r,n,i,o;if(!e||!e.state||t>5||t<0)return e?$e(e,_):_;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||n.status===Xe&&4!==t)return $e(e,0===e.avail_out?-5:_);if(n.strm=e,r=n.last_flush,n.last_flush=t,42===n.status)if(2===n.wrap)e.adler=0,Qe(n,31),Qe(n,139),Qe(n,8),n.gzhead?(Qe(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Qe(n,255&n.gzhead.time),Qe(n,n.gzhead.time>>8&255),Qe(n,n.gzhead.time>>16&255),Qe(n,n.gzhead.time>>24&255),Qe(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Qe(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Qe(n,255&n.gzhead.extra.length),Qe(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=B(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(Qe(n,0),Qe(n,0),Qe(n,0),Qe(n,0),Qe(n,0),Qe(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Qe(n,3),n.status=Ke);else{var a=8+(n.w_bits-8<<4)<<8;a|=(n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),a+=31-a%31,n.status=Ke,et(n,a),0!==n.strstart&&(et(n,e.adler>>>16),et(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=B(e.adler,n.pending_buf,n.pending-i,i)),Ye(e),i=n.pending,n.pending!==n.pending_buf_size));)Qe(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=B(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=B(e.adler,n.pending_buf,n.pending-i,i)),Ye(e),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Qe(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(e.adler=B(e.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=B(e.adler,n.pending_buf,n.pending-i,i)),Ye(e),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Qe(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(e.adler=B(e.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=qe)}else n.status=qe;if(n.status===qe&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Ye(e),n.pending+2<=n.pending_buf_size&&(Qe(n,255&e.adler),Qe(n,e.adler>>8&255),e.adler=0,n.status=Ke)):n.status=Ke),0!==n.pending){if(Ye(e),0===e.avail_out)return n.last_flush=-1,0}else if(0===e.avail_in&&Ze(t)<=Ze(r)&&4!==t)return $e(e,-5);if(n.status===Xe&&0!==e.avail_in)return $e(e,-5);if(0!==e.avail_in||0!==n.lookahead||0!==t&&n.status!==Xe){var s=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(rt(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=We(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Je(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Je(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Je(e,!1),0===e.strm.avail_out)?1:2}(n,t):3===n.strategy?function(e,t){for(var r,n,i,o,a=e.window;;){if(e.lookahead<=He){if(rt(e),e.lookahead<=He&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=a[i=e.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=e.strstart+He;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);e.match_length=He-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=We(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=We(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Je(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Je(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Je(e,!1),0===e.strm.avail_out)?1:2}(n,t):st()[n.level].func(n,t);if(3!==s&&4!==s||(n.status=Xe),1===s||3===s)return 0===e.avail_out&&(n.last_flush=-1),0;if(2===s&&(1===t?function(e){Pe(e,2,3),Ie(e,256,he),function(e){16===e.bi_valid?(ze(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}(n):5!==t&&(Ne(n,0,0,!1),3===t&&(Ge(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Ye(e),0===e.avail_out))return n.last_flush=-1,0}return 4!==t?0:n.wrap<=0?1:(2===n.wrap?(Qe(n,255&e.adler),Qe(n,e.adler>>8&255),Qe(n,e.adler>>16&255),Qe(n,e.adler>>24&255),Qe(n,255&e.total_in),Qe(n,e.total_in>>8&255),Qe(n,e.total_in>>16&255),Qe(n,e.total_in>>24&255)):(et(n,e.adler>>>16),et(n,65535&e.adler)),Ye(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)}var ht=Object.prototype.toString,dt=function(e){this.options=b({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ae,this.strm.avail_out=0;var r,n,i=function(e,t,r,n,i,o){if(!e)return _;var a=1;if(-1===t&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||8!==r||n<8||n>15||t<0||t>9||o<0||o>4)return $e(e,_);8===n&&(n=9);var s=new lt;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=z(2*s.w_size),s.head=P(s.hash_size),s.prev=P(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=z(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=o,s.method=r,ut(e)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==i)throw new Error(oe[i]);if(t.header&&(r=this.strm,n=t.header,r&&r.state&&(2!==r.state.wrap||(r.state.gzhead=n))),t.dictionary){var o;if(o="string"==typeof t.dictionary?F(t.dictionary):"[object ArrayBuffer]"===ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,i=function(e,t){var r,n,i,o,a,s,l,u,c=t.length;if(!e||!e.state)return _;if(2===(o=(r=e.state).wrap)||1===o&&42!==r.status||r.lookahead)return _;for(1===o&&(e.adler=M(e.adler,t,c,0)),r.wrap=0,c>=r.w_size&&(0===o&&(Ge(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=z(r.w_size),O(u,t,c-r.w_size,r.w_size,0),t=u,c=r.w_size),a=e.avail_in,s=e.next_in,l=e.input,e.avail_in=c,e.next_in=0,e.input=t,rt(r);r.lookahead>=3;){n=r.strstart,i=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--i);r.strstart=n,r.lookahead=2,rt(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=s,e.input=l,e.avail_in=a,r.wrap=o,0}(this.strm,o),0!==i)throw new Error(oe[i]);this._dict_set=!0}};dt.prototype.push=function(e,t){var r,n,i,o=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=F(e):"[object ArrayBuffer]"===ht.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=z(a),o.next_out=0,o.avail_out=a),1!==(r=ct(o,n))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(j(i=w(o.output,o.next_out),i.length)):this.onData(w(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==r);return 4===n?(r=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==qe&&t!==Ke&&t!==Xe?$e(e,_):(e.state=null,t===Ke?$e(e,-3):0):_}(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),o.avail_out=0,!0)},dt.prototype.onData=function(e){this.chunks.push(e)},dt.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=S(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var ft={Promise},pt={base64:!0,array:!0,string:!0,nodebuffer:!1,nodestream:!1,get arraybuffer(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},get uint8array(){return"undefined"!=typeof Uint8Array},get blob(){return mt()}},mt=function(){var e;if("undefined"==typeof ArrayBuffer)e=!1;else{var t=new ArrayBuffer(0);try{e=0===new Blob([t],{type:"application/zip"}).size}catch(t){e=!1}}return mt=function(){return e},e},gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function vt(e){return e}function _t(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}function yt(e,t,r){var n=[],i=0,o=e.length;if(o<=r)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,o)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,o)))),i+=r;return n.join("")}var bt=function(){var e;try{e=pt.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){e=!1}return bt=function(){return e},e};function wt(e){var t=65536,r=St(e),n=!0;if("uint8array"===r&&(n=bt()),n)for(;t>1;)try{return yt(e,r,t)}catch(e){t=Math.floor(t/2)}return function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}(e)}var xt=wt;function kt(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}var Ct={string:{string:vt,array:function(e){return _t(e,new Array(e.length))},arraybuffer:function(e){return Ct.string.uint8array(e).buffer},uint8array:function(e){return _t(e,new Uint8Array(e.length))}},array:{string:wt,array:vt,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)}},arraybuffer:{string:function(e){return wt(new Uint8Array(e))},array:function(e){return kt(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:vt,uint8array:function(e){return new Uint8Array(e)}},uint8array:{string:wt,array:function(e){return kt(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:vt}},Ot=function(e,t){if(t||(t=""),!e)return t;zt(e);var r=St(t);return Ct[r][e](t)},St=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":pt.uint8array&&e instanceof Uint8Array?"uint8array":pt.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},zt=function(e){if(!pt[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},Pt=65535,It=-1,At=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},Dt=function(e,t,r){setTimeout((function(){e.apply(r||null,t||[])}),0)},Tt=function(){var e,t,r=arguments,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.hasOwnProperty.call(r[e],t)&&void 0===n[t]&&(n[t]=r[e][t]);return n},Ft=function(e,t,r,n,i){return ft.Promise.resolve(t).then((function(e){return pt.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new ft.Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)})):e})).then((function(t){var o,a=St(t);return a?("arraybuffer"===a?t=Ot("uint8array",t):"string"===a&&(i?t=function(e){var t,r,n,i,o,a,s=0,l=0,u="data:";if(e.substr(0,u.length)===u)throw new Error("Invalid base64 input, it looks like a data url.");var c,h=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===gt.charAt(64)&&h--,e.charAt(e.length-2)===gt.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=pt.uint8array?new Uint8Array(0|h):new Array(0|h);s<e.length;)t=gt.indexOf(e.charAt(s++))<<2|(i=gt.indexOf(e.charAt(s++)))>>4,r=(15&i)<<4|(o=gt.indexOf(e.charAt(s++)))>>2,n=(3&o)<<6|(a=gt.indexOf(e.charAt(s++))),c[l++]=t,64!==o&&(c[l++]=r),64!==a&&(c[l++]=n);return c}(t):r&&!0!==n&&(t=_t(o=t,pt.uint8array?new Uint8Array(o.length):new Array(o.length)))),t):ft.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))},jt=function(e){this.name=e||"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};jt.prototype.push=function(e){this.emit("data",e)},jt.prototype.end=function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},jt.prototype.error=function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},jt.prototype.on=function(e,t){return this._listeners[e].push(t),this},jt.prototype.cleanUp=function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},jt.prototype.emit=function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},jt.prototype.pipe=function(e){return e.registerPrevious(this)},jt.prototype.registerPrevious=function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},jt.prototype.pause=function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},jt.prototype.resume=function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},jt.prototype.flush=function(){},jt.prototype.processChunk=function(e){this.push(e)},jt.prototype.withStreamInfo=function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},jt.prototype.mergeStreamInfo=function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},jt.prototype.lock=function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},jt.prototype.toString=function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e};var Et=function(e){for(var t=new Array(256),r=0;r<256;r++)t[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;return t[254]=t[254]=1,Et=function(e){return t[e]},t[e]},Rt=function(e){return function(e){var t,r,n,i,o,a=e.length,s=0;for(i=0;i<a;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=pt.uint8array?new Uint8Array(s):new Array(s),o=0,i=0;o<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|63&r):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|63&r):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|63&r);return t}(e)},Mt=function(e){return function(e){var t,r,n,i,o=e.length,a=new Array(2*o);for(r=0,t=0;t<o;)if((n=e[t++])<128)a[r++]=n;else if((i=Et(n))>4)a[r++]=65533,t+=i-1;else{for(n&=2===i?31:3===i?15:7;i>1&&t<o;)n=n<<6|63&e[t++],i--;i>1?a[r++]=65533:n<65536?a[r++]=n:(n-=65536,a[r++]=55296|n>>10&1023,a[r++]=56320|1023&n)}return a.length!==r&&(a.subarray?a=a.subarray(0,r):a.length=r),xt(a)}(e=Ot(pt.uint8array?"uint8array":"array",e))},Lt=function(e){function t(){e.call(this,"utf-8 decode"),this.leftOver=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.processChunk=function(e){var t=Ot(pt.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(pt.uint8array){var r=t;(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var n=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+Et(e[r])>t?r:t}(t),i=t;n!==t.length&&(pt.uint8array?(i=t.subarray(0,n),this.leftOver=t.subarray(n,t.length)):(i=t.slice(0,n),this.leftOver=t.slice(n,t.length))),this.push({data:Mt(i),meta:e.meta})},t.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Mt(this.leftOver),meta:{}}),this.leftOver=null)},t}(jt),Bt=function(e){function t(){e.call(this,"utf-8 encode")}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.processChunk=function(e){this.push({data:Rt(e.data),meta:e.meta})},t}(jt),Ut=function(e){function t(t){e.call(this,"ConvertWorker to "+t),this.destType=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.processChunk=function(e){this.push({data:Ot(this.destType,e.data),meta:e.meta})},t}(jt);function Nt(e,t){return new ft.Promise((function(r,n){var i=[],o=e._internalType,a=e._outputType,s=e._mimeType;e.on("data",(function(e,r){i.push(e),t&&t(r)})).on("error",(function(e){i=[],n(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return function(e,t){return zt("blob"),new Blob([e],{type:t})}(Ot("arraybuffer",t),r);case"base64":return function(e){for(var t,r,n,i,o,a,s,l=[],u=0,c=e.length,h=c,d="string"!=typeof e;u<e.length;)h=c-u,d?(t=e[u++],r=u<c?e[u++]:0,n=u<c?e[u++]:0):(t=e.charCodeAt(u++),r=u<c?e.charCodeAt(u++):0,n=u<c?e.charCodeAt(u++):0),i=t>>2,o=(3&t)<<4|r>>4,a=h>1?(15&r)<<2|n>>6:64,s=h>2?63&n:64,l.push(gt.charAt(i)+gt.charAt(o)+gt.charAt(a)+gt.charAt(s));return l.join("")}(t);default:return Ot(e,t)}}(a,function(e,t){var r,n=0,i=null,o=0;for(r=0;r<t.length;r++)o+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(o),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;default:throw new Error("concat : unsupported type '"+e+"'")}}(o,i),s);r(e)}catch(e){n(e)}i=[]})).resume()}))}var Wt=function(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,zt(n),this._worker=e.pipe(new Ut(n)),e.lock()}catch(e){this._worker=new jt("error"),this._worker.error(e)}};Wt.prototype.accumulate=function(e){return Nt(this,e)},Wt.prototype.on=function(e,t){var r=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){Dt(t,arguments,r)})),this},Wt.prototype.resume=function(){return Dt(this._worker.resume,[],this._worker),this},Wt.prototype.pause=function(){return this._worker.pause(),this};var Ht=Object.freeze({__proto__:null,base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null}),Vt=function(e){function t(t){e.call(this,"DataWorker");var r=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(e){r.dataIsReady=!0,r.data=e,r.max=e&&e.length||0,r.type=St(e),r.isPaused||r._tickAndRepeat()}),(function(e){r.error(e)}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.cleanUp=function(){e.prototype.cleanUp.call(this),this.data=null},t.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Dt(this._tickAndRepeat,[],this)),!0)},t.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Dt(this._tickAndRepeat,[],this),this._tickScheduled=!0))},t.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t}(jt),qt=function(e){function t(t){e.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.processChunk=function(t){if(t){var r=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=r+t.data.length}e.prototype.processChunk.call(this,t)},t}(jt),Kt=function(){for(var e=[],t=0;t<256;t++){for(var r=t,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return Kt=function(){return e},e};function Xt(e,t){return void 0!==e&&e.length?"string"!==St(e)?function(e,t,r,n){var i=Kt(),o=0+r;e^=-1;for(var a=0;a<o;a++)e=e>>>8^i[255&(e^t[a])];return-1^e}(0|t,e,e.length):function(e,t,r,n){var i=Kt(),o=0+r;e^=-1;for(var a=0;a<o;a++)e=e>>>8^i[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length):0}var $t=function(e){function t(){e.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.processChunk=function(e){this.streamInfo.crc32=Xt(e.data,this.streamInfo.crc32||0),this.push(e)},t}(jt),Zt=function(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i};Zt.prototype.getContentWorker=function(){var e=new Vt(ft.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new qt("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},Zt.prototype.getCompressedWorker=function(){return new Vt(ft.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},Zt.createWorkerFrom=function(e,t,r){return e.pipe(new $t).pipe(new qt("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new qt("compressedSize")).withStreamInfo("compression",t)};var Gt=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};Gt.prototype.internalStream=function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!n&&(t=t.pipe(new Bt)),!i&&n&&(t=t.pipe(new Lt))}catch(e){(t=new jt("error")).error(e)}return new Wt(t,r,"")},Gt.prototype.async=function(e,t){return this.internalStream(e).accumulate(t)},Gt.prototype._compressWorker=function(e,t){if(this._data instanceof Zt&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new Bt)),Zt.createWorkerFrom(r,e,t)},Gt.prototype._decompressWorker=function(){return this._data instanceof Zt?this._data.getContentWorker():this._data instanceof jt?this._data:new Vt(this._data)};var Yt=function(){var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?"uint8array":"array";Yt=function(){return e}},Jt=function(e){function t(t,r){e.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=r,this.meta={}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(Ot(Yt(),e.data),!1)},t.prototype.flush=function(){e.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},t.prototype.cleanUp=function(){e.prototype.cleanUp.call(this),this._pako=null},t.prototype._createPako=function(){var e=this,t={raw:!0,level:this._pakoOptions.level||-1};this._pako="Deflate"===this._pakoAction?new dt(t):new ue(t),this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},t}(jt),Qt={STORE:{magic:"\0\0",compressWorker:function(){return new jt("STORE compression")},uncompressWorker:function(){return new jt("STORE decompression")}},DEFLATE:{magic:"\b\0",compressWorker:function(e){return new Jt("Deflate",e)},uncompressWorker:function(){return new Jt("Inflate",{})}}},er="PK",tr="PK",rr="PK",nr="PK",ir="PK",or=function(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n},ar=function(e,t,r,n,i,o){var a,s,l=e.file,u=e.compression,c=o!==Rt,h=Ot("string",o(l.name)),d=Ot("string",Rt(l.name)),f=l.comment,p=Ot("string",o(f)),m=Ot("string",Rt(f)),g=d.length!==l.name.length,v=m.length!==f.length,_="",y="",b="",w=l.dir,x=l.date,k={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(k.crc32=e.crc32,k.compressedSize=e.compressedSize,k.uncompressedSize=e.uncompressedSize);var C=0;t&&(C|=8),c||!g&&!v||(C|=2048);var O,S,z,P=0,I=0;w&&(P|=16),"UNIX"===i?(I=798,P|=(O=l.unixPermissions,S=w,z=O,O||(z=S?16893:33204),(65535&z)<<16)):(I=20,P|=63&(l.dosPermissions||0)),a=x.getUTCHours(),a<<=6,a|=x.getUTCMinutes(),a<<=5,a|=x.getUTCSeconds()/2,s=x.getUTCFullYear()-1980,s<<=4,s|=x.getUTCMonth()+1,s<<=5,s|=x.getUTCDate(),g&&(y=or(1,1)+or(Xt(h),4)+d,_+="up"+or(y.length,2)+y),v&&(b=or(1,1)+or(Xt(p),4)+m,_+="uc"+or(b.length,2)+b);var A="";return A+="\n\0",A+=or(C,2),A+=u.magic,A+=or(a,2),A+=or(s,2),A+=or(k.crc32,4),A+=or(k.compressedSize,4),A+=or(k.uncompressedSize,4),A+=or(h.length,2),A+=or(_.length,2),{fileRecord:er+A+h+_,dirRecord:tr+or(I,2)+A+or(p.length,2)+"\0\0\0\0"+or(P,4)+or(n,4)+h+_+p}},sr=function(e){return"PK\b"+or(e.crc32,4)+or(e.compressedSize,4)+or(e.uncompressedSize,4)},lr=function(e){function t(t,r,n,i){e.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=r,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(t){var r=t.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,e.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(r+100*(n-i-1))/n:100}}))},t.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=ar(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},t.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=ar(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:sr(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},t.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,n=function(e,t,r,n,i){var o=Ot("string",i(n));return"PK\0\0\0\0"+or(e,2)+or(e,2)+or(t,4)+or(r,4)+or(o.length,2)+o}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},t.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},t.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},t.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},t.prototype.error=function(t){var r=this._sources;if(!e.prototype.error.call(this,t))return!1;for(var n=0;n<r.length;n++)try{r[n].error(t)}catch(e){}return!0},t.prototype.lock=function(){e.prototype.lock.call(this);for(var t=this._sources,r=0;r<t.length;r++)t[r].lock()},t}(jt),ur=function(e){this.data=e,this.length=e.length,this.index=0,this.zero=0};ur.prototype.checkOffset=function(e){this.checkIndex(this.index+e)},ur.prototype.checkIndex=function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},ur.prototype.setIndex=function(e){this.checkIndex(e),this.index=e},ur.prototype.skip=function(e){this.setIndex(this.index+e)},ur.prototype.byteAt=function(e){},ur.prototype.readInt=function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},ur.prototype.readString=function(e){return Ot("string",this.readData(e))},ur.prototype.readData=function(e){},ur.prototype.lastIndexOfSignature=function(e){},ur.prototype.readAndCheckSignature=function(e){},ur.prototype.readDate=function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))};var cr=function(e){function t(t){e.call(this,t);for(var r=0;r<this.data.length;r++)t[r]=255&t[r]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.byteAt=function(e){return this.data[this.zero+e]},t.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;o>=0;--o)if(this.data[o]===t&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===i)return o-this.zero;return-1},t.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&r===o[1]&&n===o[2]&&i===o[3]},t.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t}(ur),hr=function(e){function t(t){e.call(this,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},t.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},t.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},t.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t}(ur),dr=function(e){function t(t){e.call(this,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t}(cr);function fr(e){var t=St(e);return zt(t),"string"!==t||pt.uint8array?pt.uint8array?new dr(Ot("uint8array",e)):new cr(Ot("array",e)):new hr(e)}var pr=function(e,t){this.options=e,this.loadOptions=t};pr.prototype.isEncrypted=function(){return 1==(1&this.bitFlag)},pr.prototype.useUTF8=function(){return 2048==(2048&this.bitFlag)},pr.prototype.readLocalPart=function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in Qt)if(Qt.hasOwnProperty(t)&&Qt[t].magic===e)return Qt[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+At(this.compressionMethod)+" unknown (inner file : "+Ot("string",this.fileName)+")");this.decompressed=new Zt(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},pr.prototype.readCentralPart=function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},pr.prototype.processAttributes=function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},pr.prototype.parseZIP64ExtraField=function(e){if(this.extraFields[1]){var t=fr(this.extraFields[1].value);this.uncompressedSize===It&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===It&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===It&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===It&&(this.diskNumberStart=t.readInt(4))}},pr.prototype.readExtraFields=function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n}},pr.prototype.handleUTF8=function(){var e=pt.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Mt(this.fileName),this.fileCommentStr=Mt(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=Ot(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=Ot(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},pr.prototype.findExtraFieldUnicodePath=function(){var e=this.extraFields[28789];if(e){var t=fr(e.value);return 1!==t.readInt(1)||Xt(this.fileName)!==t.readInt(4)?null:Mt(t.readData(e.length-5))}return null},pr.prototype.findExtraFieldUnicodeComment=function(){var e=this.extraFields[25461];if(e){var t=fr(e.value);return 1!==t.readInt(1)||Xt(this.fileComment)!==t.readInt(4)?null:Mt(t.readData(e.length-5))}return null};var mr=function(e){this.files=[],this.loadOptions=e};function gr(e){return new ft.Promise((function(t,r){var n=e.decompressed.getContentWorker().pipe(new $t);n.on("error",(function(e){r(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}function vr(e,t){var r=this;return t=Tt(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Mt}),Ft("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new mr(t);return r.load(e),r})).then((function(e){var r=[ft.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var i=0;i<n.length;i++)r.push(gr(n[i]));return ft.Promise.all(r)})).then((function(e){for(var n=e.shift(),i=n.files,o=0;o<i.length;o++){var a=i[o];r.file(a.fileNameStr,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders})}return n.zipComment.length&&(r.comment=n.zipComment),r}))}mr.prototype.checkSignature=function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+At(t)+", expected "+At(e)+")")}},mr.prototype.isSignature=function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},mr.prototype.readBlockEndOfCentral=function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=pt.uint8array?"uint8array":"array",r=Ot(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},mr.prototype.readBlockZip64EndOfCentral=function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},mr.prototype.readBlockZip64EndOfCentralLocator=function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},mr.prototype.readLocalFiles=function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(er),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},mr.prototype.readCentralDir=function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(tr);)(e=new pr({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},mr.prototype.readEndOfCentral=function(){var e=this.reader.lastIndexOfSignature(rr);if(e<0)throw this.isSignature(0,er)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(rr),this.readBlockEndOfCentral(),this.diskNumber===Pt||this.diskWithCentralDirStart===Pt||this.centralDirRecordsOnThisDisk===Pt||this.centralDirRecords===Pt||this.centralDirSize===It||this.centralDirOffset===It){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(nr))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(nr),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,ir)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(ir),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(ir),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(n>0)this.isSignature(t,tr)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},mr.prototype.prepareReader=function(e){this.reader=fr(e)},mr.prototype.load=function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()};var _r=function(e,t,r){var n,i=St(t),o=Tt(r||{},Ht);o.date=o.date||new Date,null!==o.compression&&(o.compression=o.compression.toUpperCase()),"string"==typeof o.unixPermissions&&(o.unixPermissions=parseInt(o.unixPermissions,8)),o.unixPermissions&&16384&o.unixPermissions&&(o.dir=!0),o.dosPermissions&&16&o.dosPermissions&&(o.dir=!0),o.dir&&(e=br(e)),o.createFolders&&(n=yr(e))&&wr.call(this,n,!0);var a="string"===i&&!1===o.binary&&!1===o.base64;r&&void 0!==r.binary||(o.binary=!a),(t instanceof Zt&&0===t.uncompressedSize||o.dir||!t||0===t.length)&&(o.base64=!1,o.binary=!0,t="",o.compression="STORE",i="string");var s;s=t instanceof Zt||t instanceof jt?t:Ft(e,t,o.binary,o.optimizedBinaryString,o.base64);var l=new Gt(e,s,o);this.files[e]=l},yr=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},br=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},wr=function(e,t){return t=void 0===t||t,e=br(e),this.files[e]||_r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function xr(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var kr=function e(){if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new e;for(var r in this)"function"!=typeof this[r]&&(t[r]=this[r]);return t}},Cr={support:{configurable:!0},defaults:{configurable:!0},version:{configurable:!0},external:{configurable:!0}};function Or(e,t,r){return(1461*(e+4800+((t-13)/12|0))/4|0)+(367*(t-1-12*((t-13)/12|0))/12|0)-(3*((e+4900+((t-13)/12|0))/100|0)/4|0)+r-32075}kr.prototype.load=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},kr.prototype.forEach=function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},kr.prototype.filter=function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},kr.prototype.file=function(e,t,r){if(1===arguments.length){if(xr(e)){var n=e;return this.filter((function(e,t){return!t.dir&&n.test(e)}))}var i=this.files[this.root+e];return i&&!i.dir?i:null}return e=this.root+e,_r.call(this,e,t,r),this},kr.prototype.folder=function(e){if(!e)return this;if(xr(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=wr.call(this,t),n=this.clone();return n.root=r.name,n},kr.prototype.remove=function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},kr.prototype.generate=function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},kr.prototype.generateInternalStream=function(e){var t,r={};try{if((r=Tt(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Rt})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");zt(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS"),t=function(e,t,r){var n=new lr(t.streamFiles,r,t.platform,t.encodeFileName),i=0;try{e.forEach((function(e,r){i++;var o=function(e,t){var r=e||t,n=Qt[r];if(!n)throw new Error(r+" is not a valid compression method !");return n}(r.options.compression,t.compression),a=r.options.compressionOptions||t.compressionOptions||{},s=r.dir,l=r.date;r._compressWorker(o,a).withStreamInfo("file",{name:e,dir:s,date:l,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(n)})),n.entriesCount=i}catch(e){n.error(e)}return n}(this,r,r.comment||this.comment||"")}catch(e){(t=new jt("error")).error(e)}return new Wt(t,r.type||"string",r.mimeType)},kr.prototype.generateAsync=function(e,t){return this.generateInternalStream(e).accumulate(t)},kr.prototype.loadAsync=function(e,t){return vr.apply(this,[e,t])},kr.loadAsync=function(e,t){return(new kr).loadAsync(e,t)},Cr.support.get=function(){return pt},Cr.defaults.get=function(){return Ht},Cr.version.get=function(){return"3.2.2-esm"},Cr.external.get=function(){return ft},Object.defineProperties(kr,Cr);var Sr=Or(1900,0,-1);var zr={compression:"DEFLATE",type:"base64"},Pr={compression:"DEFLATE",type:"blob"},Ir={compression:"DEFLATE",type:"arraybuffer"};function Ar(e){return"data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,"+e}function Dr(e,t){return t.indexOf(e)}var Tr=JSON.parse.bind(JSON);function Fr(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,""").replace(/\'/g,"'")}function jr(e,t){for(var r="",n=0;n<e;++n)r+=t(n);return r}function Er(e,t){var r="";if(null!=e)if(Array.isArray(e))for(var n=0;n<e.length;++n)r+=t(e[n],n);else"object"==typeof e&&Object.keys(e).forEach((function(n,i){r+=t(e[n],n,i)}));return r}var Rr='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r',Mr=function(e){return Rr+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+Er(e,(function(e){return'\n <Relationship Id="'+e.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+e.target+'"/>'}))+"\n</Relationships>"};function Lr(e){var t=Math.floor(e/26)-1;return(t>=0?Lr(t):"")+String.fromCharCode(65+e%26)}function Br(e,t){return Lr(t)+(e+1)}function Ur(e,t){return"$"+Lr(t)+"$"+(e+1)}function Nr(e){return(e.frozenRows||(e.freezePane||{}).rowSplit||1)-1}function Wr(e){return e/7-Math.floor(128/7)/256}var Hr=function(e,t,r,n){this.options=e,this._strings=t,this._styles=r,this._borders=n,this._validations={},this._comments=[],this._drawings=e.drawings||[],this._hyperlinks=(this.options.hyperlinks||[]).map((function(e,t){return Object.assign({},e,{rId:"link"+t})}))};function Vr(e){var t=e.length;return e.forEach((function(e){e.index&&e.index>=t&&(t=e.index+1)})),t}Hr.prototype.relsToXML=function(){var e=this._hyperlinks,t=this._comments,r=this._drawings;if(e.length||t.length||r.length)return function(e){var t=e.comments,r=e.sheetIndex,n=e.drawings;return Rr+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+Er(e.hyperlinks,(function(e){return'\n <Relationship Id="'+e.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="'+Fr(e.target)+'" TargetMode="External" />'}))+"\n "+(t.length?'\n <Relationship Id="comment'+r+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" Target="../comments'+r+'.xml"/>\n <Relationship Id="vml'+r+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" Target="../drawings/vmlDrawing'+r+'.vml"/>':"")+"\n "+(n.length?'\n <Relationship Id="drw'+r+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing'+r+'.xml"/>':"")+"\n</Relationships>"}({hyperlinks:e,comments:t,sheetIndex:this.options.sheetIndex,drawings:r})},Hr.prototype.toXML=function(e){var t=this,r=this.options.mergedCells||[],n=function(e,t){var r=[],n=[];!function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n){var i=n.index;"number"!=typeof i&&(i=r),t(n,i)}}}(e,(function(e,t){var i={_source:e,index:t,height:e.height,level:e.level,cells:[]};r.push(i),n[t]=i}));for(var i=Qr(r).slice(0),o={rowData:r,rowsByIndex:n,mergedCells:t},a=0;a<i.length;a++)nn(i[a],o),delete i[a]._source;return Qr(r)}(this.options.rows||[],r);this._readCells(n);var i,o=this.options.filter;o&&"number"==typeof o.from&&"number"==typeof o.to?o={from:Br(Nr(this.options),o.from),to:Br(Nr(this.options),o.to)}:o&&o.ref&&o.columns&&(i=o,o=null);var a=[];for(var s in t._validations)Object.prototype.hasOwnProperty.call(t._validations,s)&&a.push(t._validations[s]);var l=null;this.options.defaultCellStyle&&(l=this._lookupStyle(this.options.defaultCellStyle));var u=this.options.freezePane||{},c=this.options.defaults||{},h=this.options.rows?this._getLastRow():1,d=this.options.rows?this._getLastCol():1;return function(e){var t=e.frozenColumns,r=e.frozenRows,n=e.columns,i=e.defaults,o=e.data,a=e.index,s=e.mergeCells,l=e.autoFilter,u=e.filter,c=e.showGridLines,h=e.hyperlinks,d=e.validations,f=e.defaultCellStyleId,p=e.rtl,m=e.legacyDrawing,g=e.drawing,v=e.lastRow,_=e.lastCol;return Rr+'\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" mc:Ignorable="x14ac">\n '+(v&&_?'<dimension ref="A1:'+Br(v-1,_-1)+'" />':"")+"\n\n <sheetViews>\n <sheetView "+(p?'rightToLeft="1"':"")+" "+(0===a?'tabSelected="1"':"")+' workbookViewId="0" '+(!1===c?'showGridLines="0"':"")+">\n "+(r||t?'\n <pane state="frozen"\n '+(t?'xSplit="'+t+'"':"")+"\n "+(r?'ySplit="'+r+'"':"")+'\n topLeftCell="'+(String.fromCharCode(65+(t||0))+((r||0)+1))+'"\n />':"")+'\n </sheetView>\n </sheetViews>\n\n <sheetFormatPr x14ac:dyDescent="0.25" '+(i.skipCustomHeight?"":'customHeight="1"')+' defaultRowHeight="'+(i.rowHeight?.75*i.rowHeight:15)+'"\n '+(i.columnWidth?'defaultColWidth="'+Wr(i.columnWidth)+'"':"")+" />\n\n "+(null!=f||n&&n.length>0?"\n <cols>\n "+(n&&n.length?"":'\n <col min="1" max="16384" style="'+f+'"\n '+(i.columnWidth?'width="'+Wr(i.columnWidth)+'"':"")+" /> ")+"\n "+Er(n,(function(e,t){var r="number"==typeof e.index?e.index+1:t+1;return 0===e.width?"<col "+(null!=f?'style="'+f+'"':"")+'\n min="'+r+'" max="'+r+'" hidden="1" customWidth="1" />':"<col "+(null!=f?'style="'+f+'"':"")+'\n min="'+r+'" max="'+r+'" customWidth="1"\n '+(e.autoWidth?'width="'+(7*e.width+5)/7*256/256+'" bestFit="1"':'width="'+Wr(e.width)+'"')+" />"}))+"\n </cols>":"")+"\n\n <sheetData>\n "+Er(o,(function(e,t){return'\n <row r="'+("number"==typeof e.index?e.index+1:t+1)+'" x14ac:dyDescent="0.25"\n '+(e.level?'outlineLevel="'+e.level+'"':"")+"\n "+(0===e.height?'hidden="1"':e.height?'ht="'+.75*e.height+'" customHeight="1"':"")+">\n "+Er(e.data,(function(e){return'\n <c r="'+e.ref+'" '+(e.style?'s="'+e.style+'"':"")+" "+(e.type?'t="'+e.type+'"':"")+">\n "+(null!=e.formula?"string"==typeof(t=e.formula)?"<f>"+Fr(t)+"</f>":'<f t="array" ref="'+t.ref+'">'+Fr(t.src)+"</f>":"")+"\n "+(null!=e.value?"<v>"+Fr(e.value)+"</v>":"")+"\n </c>";var t}))+"\n </row>\n "}))+"\n </sheetData>\n\n "+(l?'<autoFilter ref="'+l.from+":"+l.to+'"/>':u?dn(u):"")+"\n\n "+(s.length?'\n <mergeCells count="'+s.length+'">\n '+Er(s,(function(e){return'<mergeCell ref="'+e+'"/>'}))+"\n </mergeCells>":"")+"\n\n "+(d.length?"\n <dataValidations>\n "+Er(d,(function(e){return'\n <dataValidation sqref="'+e.sqref.join(" ")+'"\n showErrorMessage="'+e.showErrorMessage+'"\n type="'+Fr(e.type)+'"\n '+("list"!==e.type?'operator="'+Fr(e.operator)+'"':"")+'\n allowBlank="'+e.allowBlank+'"\n showDropDown="'+e.showDropDown+'"\n '+(e.error?'error="'+Fr(e.error)+'"':"")+"\n "+(e.errorTitle?'errorTitle="'+Fr(e.errorTitle)+'"':"")+">\n "+(e.formula1?"<formula1>"+Fr(e.formula1)+"</formula1>":"")+"\n "+(e.formula2?"<formula2>"+Fr(e.formula2)+"</formula2>":"")+"\n </dataValidation>"}))+"\n </dataValidations>":"")+"\n\n "+(h.length?"\n <hyperlinks>\n "+Er(h,(function(e){return'\n <hyperlink ref="'+e.ref+'" r:id="'+e.rId+'"/>'}))+"\n </hyperlinks>":"")+'\n\n <pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />\n '+(g?'<drawing r:id="'+g+'"/>':"")+"\n "+(m?'<legacyDrawing r:id="'+m+'"/>':"")+"\n</worksheet>"}({frozenColumns:this.options.frozenColumns||u.colSplit,frozenRows:this.options.frozenRows||u.rowSplit,columns:this.options.columns,defaults:c,data:n,index:e,mergeCells:r,autoFilter:o,filter:i,showGridLines:this.options.showGridLines,hyperlinks:this._hyperlinks,validations:a,defaultCellStyleId:l,rtl:void 0!==this.options.rtl?this.options.rtl:c.rtl,legacyDrawing:this._comments.length?"vml"+this.options.sheetIndex:null,drawing:this._drawings.length?"drw"+this.options.sheetIndex:null,lastRow:h,lastCol:d})},Hr.prototype.commentsXML=function(){if(this._comments.length)return function(e){return Rr+'\n<comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">\n <authors>\n <author></author>\n </authors>\n <commentList>\n '+Er(e.comments,(function(e){return'\n <comment ref="'+e.ref+'" authorId="0">\n <text>\n <r>\n <rPr>\n <sz val="8"/>\n <color indexed="81"/>\n <rFont val="Tahoma"/>\n <charset val="1"/>\n </rPr>\n <t>'+Fr(e.text)+"</t>\n </r>\n </text>\n </comment>"}))+"\n </commentList>\n</comments>"}({comments:this._comments})},Hr.prototype.drawingsXML=function(e){if(this._drawings.length){var t={},r=this._drawings.map((function(r){var n=tn(r.topLeftCell),i=t[r.image];return i||(i=t[r.image]={rId:"img"+r.image,target:e[r.image].target}),{col:n.col,colOffset:rn(r.offsetX),row:n.row,rowOffset:rn(r.offsetY),width:rn(r.width),height:rn(r.height),imageId:i.rId}}));return{main:(n=r,Rr+'\n<xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"\n xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"\n xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">\n '+Er(n,(function(e,t){return'\n <xdr:oneCellAnchor editAs="oneCell">\n <xdr:from>\n <xdr:col>'+e.col+"</xdr:col>\n <xdr:colOff>"+e.colOffset+"</xdr:colOff>\n <xdr:row>"+e.row+"</xdr:row>\n <xdr:rowOff>"+e.rowOffset+'</xdr:rowOff>\n </xdr:from>\n <xdr:ext cx="'+e.width+'" cy="'+e.height+'" />\n <xdr:pic>\n <xdr:nvPicPr>\n <xdr:cNvPr id="'+(t+1)+'" name="Picture '+(t+1)+'"/>\n <xdr:cNvPicPr/>\n </xdr:nvPicPr>\n <xdr:blipFill>\n <a:blip r:embed="'+e.imageId+'"/>\n <a:stretch>\n <a:fillRect/>\n </a:stretch>\n </xdr:blipFill>\n <xdr:spPr>\n <a:prstGeom prst="rect">\n <a:avLst/>\n </a:prstGeom>\n </xdr:spPr>\n </xdr:pic>\n <xdr:clientData/>\n </xdr:oneCellAnchor>'}))+"\n</xdr:wsDr>"),rels:Mr(t)}}var n},Hr.prototype.legacyDrawing=function(){if(this._comments.length)return function(e){return'<xml xmlns:v="urn:schemas-microsoft-com:vml"\n xmlns:o="urn:schemas-microsoft-com:office:office"\n xmlns:x="urn:schemas-microsoft-com:office:excel">\n <v:shapetype coordsize="21600,21600" id="_x0000_t202" path="m,l,21600r21600,l21600,xe">\n <v:stroke joinstyle="miter"/>\n <v:path gradientshapeok="t" o:connecttype="rect"/>\n </v:shapetype>\n '+Er(e.comments,(function(e){return'\n <v:shape type="#_x0000_t202" style="visibility: hidden" fillcolor="#ffffe1" o:insetmode="auto">\n <v:shadow on="t" color="black" obscured="t"/>\n <x:ClientData ObjectType="Note">\n <x:MoveWithCells/>\n <x:SizeWithCells/>\n <x:Anchor>'+e.anchor+"</x:Anchor>\n <x:AutoFill>False</x:AutoFill>\n <x:Row>"+e.row+"</x:Row>\n <x:Column>"+e.col+"</x:Column>\n </x:ClientData>\n </v:shape>"}))+"\n</xml>"}({comments:this._comments})},Hr.prototype._lookupString=function(e){var t,r="$"+e,n=this._strings.indexes[r];return void 0!==n?t=n:(t=this._strings.indexes[r]=this._strings.uniqueCount,this._strings.uniqueCount++),this._strings.count++,t},Hr.prototype._lookupStyle=function(e){var t=JSON.stringify(e);if("{}"===t)return 0;var r=Dr(t,this._styles);return r<0&&(r=this._styles.push(t)-1),r+1},Hr.prototype._lookupBorder=function(e){var t=JSON.stringify(e);if("{}"!==t){var r=Dr(t,this._borders);return r<0&&(r=this._borders.push(t)-1),r+1}},Hr.prototype._readCells=function(e){for(var t=0;t<e.length;t++){var r=e[t],n=r.cells;r.data=[];for(var i=0;i<n.length;i++){var o=this._cell(n[i],r.index,i);o&&r.data.push(o)}}},Hr.prototype._cell=function(e,t,r){if(!e||e===Jr)return null;var n=e.value,i={};e.borderLeft&&(i.left=e.borderLeft),e.borderRight&&(i.right=e.borderRight),e.borderTop&&(i.top=e.borderTop),e.borderBottom&&(i.bottom=e.borderBottom),i=this._lookupBorder(i);var o,a=this.options.defaultCellStyle||{},s={borderId:i};(o=function(t,r){var n=e[t];if(void 0===n&&(n=a[t]),void 0!==n)return s[r||t]=n,!0})("color"),o("background"),o("bold"),o("italic"),o("underline"),o("fontFamily")||o("fontName","fontFamily"),o("fontSize"),o("format"),o("textAlign")||o("hAlign","textAlign"),o("verticalAlign")||o("vAlign","verticalAlign"),o("wrap"),o("indent");var l,u,c,h=(this.options.columns||[])[r],d=typeof n;if(h&&h.autoWidth&&(!e.colSpan||1===e.colSpan)){var f=n;"number"===d&&(f=v.toString(n,e.format)),h.width=Math.max(h.width||0,String(f).length)}"string"===d?(n=function(e){return String(e).replace(/[\x00-\x09\x0B\x0C\x0E-\x1F]/g,"").replace(/\r?\n/g,"\r\n")}(n),n=this._lookupString(n),d="s"):"number"===d?d="n":"boolean"===d?(d="b",n=Number(n)):n&&n.getTime?(d=null,u=((l=n).getHours()+(l.getMinutes()+(l.getSeconds()+l.getMilliseconds()/1e3)/60)/60)/24,n=(c=function(e,t,r){return Or(e,t,r)-Sr}(l.getFullYear(),l.getMonth(),l.getDate()))<0?c-1+u:c+u,s.format||(s.format="mm-dd-yy")):(d=null,n=null),s=this._lookupStyle(s);var p=Br(t,r);if(e.validation&&this._addValidation(e.validation,p),e.comment){var m=[r+1,15,t,10,r+3,15,t+3,4];this._comments.push({ref:p,text:e.comment,row:t,col:r,anchor:m.join(", ")})}return{value:n,formula:e.formula,type:d,style:s,ref:p}},Hr.prototype._addValidation=function(e,t){var r={showErrorMessage:"reject"===e.type?1:0,formula1:e.from,formula2:e.to,type:Kr[e.dataType]||e.dataType,operator:qr[e.comparerType]||e.comparerType,allowBlank:e.allowNulls?1:0,showDropDown:e.showButton?0:1,error:e.messageTemplate,errorTitle:e.titleTemplate},n=JSON.stringify(r);this._validations[n]||(this._validations[n]=r,r.sqref=[]),this._validations[n].sqref.push(t)},Hr.prototype._getLastRow=function(){return Vr(this.options.rows)},Hr.prototype._getLastCol=function(){var e=0;return this.options.rows.forEach((function(t){t.cells&&(e=Math.max(e,Vr(t.cells)))})),e};var qr={greaterThanOrEqualTo:"greaterThanOrEqual",lessThanOrEqualTo:"lessThanOrEqual"},Kr={number:"decimal"},Xr={General:0,0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49,"[$-404]e/m/d":27,"m/d/yy":30,t0:59,"t0.00":60,"t#,##0":61,"t#,##0.00":62,"t0%":67,"t0.00%":68,"t# ?/?":69,"t# ??/??":70};function $r(e){var t=e;return t.length<6&&(t=t.replace(/(\w)/g,(function(e,t){return t+t}))),(t=t.substring(1).toUpperCase()).length<8&&(t="FF"+t),t}var Zr=function(e){var t=this;this.options=e||{},this._strings={indexes:{},count:0,uniqueCount:0},this._styles=[],this._borders=[],this._images=this.options.images,this._imgId=0,this._sheets=u(this.options.sheets||[],(function(e,r){return e.defaults=t.options,e.sheetIndex=r+1,new Hr(e,t._strings,t._styles,t._borders)}))};function Gr(e,t){var r,n,i="";return t&&(i+="<"+e+' style="'+(n="thin",2===(r=t.size)?n="medium":3===r&&(n="thick"),n+'">'),t.color&&(i+='<color rgb="'+$r(t.color)+'"/>'),i+="</"+e+">"),i}function Yr(e){return"<border>"+Gr("left",e.left)+Gr("right",e.right)+Gr("top",e.top)+Gr("bottom",e.bottom)+"</border>"}Zr.prototype.imageFilename=function(e){var t=++this._imgId;switch(e){case"image/jpg":case"image/jpeg":return"image"+t+".jpg";case"image/png":return"image"+t+".png";case"image/gif":return"image"+t+".gif";default:return"image"+t+".bin"}},Zr.prototype.toZIP=function(){var e=this,t=new kr,r=t.folder("docProps");r.file("core.xml",function(e){var t=e.lastModifiedBy,r=e.created,n=e.modified;return Rr+'\n <cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"\n xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"\n xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <dc:creator>'+Fr(e.creator)+"</dc:creator>\n <cp:lastModifiedBy>"+Fr(t)+'</cp:lastModifiedBy>\n <dcterms:created xsi:type="dcterms:W3CDTF">'+Fr(r)+'</dcterms:created>\n <dcterms:modified xsi:type="dcterms:W3CDTF">'+Fr(n)+"</dcterms:modified>\n</cp:coreProperties>"}({creator:this.options.creator||"Kendo UI",lastModifiedBy:this.options.creator||"Kendo UI",created:this.options.date||(new Date).toJSON(),modified:this.options.date||(new Date).toJSON()}));var n=this._sheets.length;r.file("app.xml",function(e){var t=e.sheets;return Rr+'\n<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">\n <Application>Microsoft Excel</Application>\n <DocSecurity>0</DocSecurity>\n <ScaleCrop>false</ScaleCrop>\n <HeadingPairs>\n <vt:vector size="2" baseType="variant">\n <vt:variant>\n <vt:lpstr>Worksheets</vt:lpstr>\n </vt:variant>\n <vt:variant>\n <vt:i4>'+t.length+'</vt:i4>\n </vt:variant>\n </vt:vector>\n </HeadingPairs>\n <TitlesOfParts>\n <vt:vector size="'+t.length+'" baseType="lpstr">'+Er(t,(function(e,t){return e.options.title?"<vt:lpstr>"+Fr(e.options.title)+"</vt:lpstr>":"<vt:lpstr>Sheet"+(t+1)+"</vt:lpstr>"}))+"</vt:vector>\n </TitlesOfParts>\n <LinksUpToDate>false</LinksUpToDate>\n <SharedDoc>false</SharedDoc>\n <HyperlinksChanged>false</HyperlinksChanged>\n <AppVersion>14.0300</AppVersion>\n</Properties>"}({sheets:this._sheets})),t.folder("_rels").file(".rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>\n <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>\n <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>\n </Relationships>');var i=t.folder("xl");if(i.folder("_rels").file("workbook.xml.rels",function(e){var t=e.count;return Rr+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+jr(t,(function(e){return'\n <Relationship Id="rId'+(e+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet'+(e+1)+'.xml" />'}))+'\n <Relationship Id="rId'+(t+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" />\n <Relationship Id="rId'+(t+2)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml" />\n</Relationships>'}({count:n})),this._images){var o=i.folder("media");Object.keys(this._images).forEach((function(t){var r=e._images[t],n=e.imageFilename(r.type);o.file(n,r.data),r.target="../media/"+n}))}var a={};i.file("workbook.xml",function(e){var t=e.filterNames,r=e.userNames;return Rr+'\n<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">\n <fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="9303" />\n <workbookPr defaultThemeVersion="124226" />\n <bookViews>\n <workbookView xWindow="240" yWindow="45" windowWidth="18195" windowHeight="7995" />\n </bookViews>\n <sheets>\n '+Er(e.sheets,(function(e,t){var r=e.options;return'<sheet name="'+Fr(r.name||r.title||"Sheet"+(t+1))+'" sheetId="'+(t+1)+'" r:id="rId'+(t+1)+'" />'}))+"\n </sheets>\n "+(t.length||r.length?"\n <definedNames>\n "+Er(t,(function(e){return'\n <definedName name="_xlnm._FilterDatabase" hidden="1" localSheetId="'+e.localSheetId+'">'+Fr(function(e){return/^\'/.test(e)||/^[a-z_][a-z0-9_]*$/i.test(e)?e:"'"+e.replace(/\x27/g,"\\'")+"'"}(e.name))+"!"+Fr(e.from)+":"+Fr(e.to)+"</definedName>"}))+"\n "+Er(r,(function(e){return'\n <definedName name="'+e.name+'" hidden="'+(e.hidden?1:0)+'" '+(null!=e.localSheetId?'localSheetId="'+e.localSheetId+'"':"")+">"+Fr(e.value)+"</definedName>"}))+"\n </definedNames>":"")+'\n <calcPr fullCalcOnLoad="1" calcId="145621" />\n</workbook>'}({sheets:this._sheets,filterNames:u(this._sheets,(function(e,t){var r=e.options,n=r.name||r.title||"Sheet"+(t+1);a[n.toLowerCase()]=t;var i=r.filter;if(i){if(i.ref){var o=i.ref.split(":"),s=tn(o[0]),l=tn(o[1]);return{localSheetId:t,name:n,from:Ur(s.row,s.col),to:Ur(l.row,l.col)}}if(void 0!==i.from&&void 0!==i.to)return{localSheetId:t,name:n,from:Ur(Nr(r),i.from),to:Ur(Nr(r),i.to)}}})),userNames:u(this.options.names||[],(function(e){return{name:e.localName,localSheetId:e.sheet?a[e.sheet.toLowerCase()]:null,value:e.value,hidden:e.hidden}}))}));for(var s=i.folder("worksheets"),l=i.folder("drawings"),c=l.folder("_rels"),h=s.folder("_rels"),d=[],f=[],p=0;p<n;p++){var m=e._sheets[p],g="sheet"+(p+1)+".xml",v=m.toXML(p),_=m.relsToXML(),y=m.commentsXML(),b=m.legacyDrawing(),w=m.drawingsXML(e._images);if(_&&h.file(g+".rels",_),y){var x="comments"+m.options.sheetIndex+".xml";i.file(x,y),d.push(x)}if(b&&l.file("vmlDrawing"+m.options.sheetIndex+".vml",b),w){var k="drawing"+m.options.sheetIndex+".xml";l.file(k,w.main),c.file(k+".rels",w.rels),f.push(k)}s.file(g,v)}var C=u(this._borders,Tr),O=u(this._styles,Tr),S=function(e){return e.underline||e.bold||e.italic||e.color||e.fontFamily||e.fontSize},z=u(O,(function(e){var t,r,n;if(e.fontSize&&(e.fontSize=(t=e.fontSize,(n=Number(t))&&(r=3*n/4),r)),e.color&&(e.color=$r(e.color)),S(e))return e})),P=u(O,(function(e){if(e.format&&void 0===Xr[e.format])return e})),I=u(O,(function(e){if(e.background)return e.background=$r(e.background),e}));return i.file("styles.xml",function(e){var t=e.formats,r=e.fonts,n=e.fills,i=e.borders,o=e.styles;return Rr+'\n<styleSheet\n xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"\n xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"\n mc:Ignorable="x14ac"\n xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">\n <numFmts count="'+t.length+'">\n '+Er(t,(function(e,t){return'\n <numFmt formatCode="'+Fr(e.format)+'" numFmtId="'+(165+t)+'" />'}))+'\n </numFmts>\n <fonts count="'+(r.length+1)+'" x14ac:knownFonts="1">\n <font>\n <sz val="11" />\n <color theme="1" />\n <name val="Calibri" />\n <family val="2" />\n <scheme val="minor" />\n </font>\n '+Er(r,(function(e){return"\n <font>\n "+(e.bold?"<b/>":"")+"\n "+(e.italic?"<i/>":"")+"\n "+(e.underline?"<u/>":"")+'\n <sz val="'+(e.fontSize||11)+'" />\n '+(e.color?'<color rgb="'+Fr(e.color)+'" />':'<color theme="1" />')+"\n "+(e.fontFamily?'\n <name val="'+Fr(e.fontFamily)+'" />\n <family val="2" />\n ':'\n <name val="Calibri" />\n <family val="2" />\n <scheme val="minor" />\n ')+"\n </font>"}))+'\n </fonts>\n <fills count="'+(n.length+2)+'">\n <fill><patternFill patternType="none"/></fill>\n <fill><patternFill patternType="gray125"/></fill>\n '+Er(n,(function(e){return"\n "+(e.background?'\n <fill>\n <patternFill patternType="solid">\n <fgColor rgb="'+Fr(e.background)+'"/>\n </patternFill>\n </fill>\n ':"")}))+'\n </fills>\n <borders count="'+(i.length+1)+'">\n <border><left/><right/><top/><bottom/><diagonal/></border>\n '+Er(i,Yr)+'\n </borders>\n <cellStyleXfs count="1">\n <xf borderId="0" fillId="0" fontId="0" />\n </cellStyleXfs>\n <cellXfs count="'+(o.length+1)+'">\n <xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" />\n '+Er(o,(function(e){return'\n <xf xfId="0"\n '+(e.fontId?'fontId="'+e.fontId+'" applyFont="1"':"")+"\n "+(e.fillId?'fillId="'+e.fillId+'" applyFill="1"':"")+"\n "+(e.numFmtId?'numFmtId="'+e.numFmtId+'" applyNumberFormat="1"':"")+"\n "+(e.textAlign||e.verticalAlign||e.wrap?'applyAlignment="1"':"")+"\n "+(e.borderId?'borderId="'+e.borderId+'" applyBorder="1"':"")+">\n "+(e.textAlign||e.verticalAlign||e.wrap?"\n <alignment\n "+(e.textAlign?'horizontal="'+Fr(e.textAlign)+'"':"")+"\n "+(e.verticalAlign?'vertical="'+Fr(e.verticalAlign)+'"':"")+"\n "+(e.indent?'indent="'+Fr(e.indent)+'"':"")+"\n "+(e.wrap?'wrapText="1"':"")+" />\n ":"")+"\n </xf>\n "}))+'\n </cellXfs>\n <cellStyles count="1">\n <cellStyle name="Normal" xfId="0" builtinId="0"/>\n </cellStyles>\n <dxfs count="0" />\n <tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleMedium9" />\n</styleSheet>'}({fonts:z,fills:I,formats:P,borders:C,styles:u(O,(function(e){var t={};return S(e)&&(t.fontId=Dr(e,z)+1),e.background&&(t.fillId=Dr(e,I)+2),t.textAlign=e.textAlign,t.indent=e.indent,t.verticalAlign=e.verticalAlign,t.wrap=e.wrap,t.borderId=e.borderId,e.format&&(void 0!==Xr[e.format]?t.numFmtId=Xr[e.format]:t.numFmtId=165+Dr(e,P)),t}))})),i.file("sharedStrings.xml",function(e){var t=e.count,r=e.uniqueCount,n=e.indexes;return Rr+'\n<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'+t+'" uniqueCount="'+r+'">\n '+Er(Object.keys(n),(function(e){return'\n <si><t xml:space="preserve">'+Fr(e.substring(1))+"</t></si>"}))+"\n</sst>"}(this._strings)),t.file("[Content_Types].xml",function(e){var t=e.commentFiles,r=e.drawingFiles;return Rr+'\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default Extension="png" ContentType="image/png"/>\n <Default Extension="gif" ContentType="image/gif"/>\n <Default Extension="jpg" ContentType="image/jpeg"/>\n <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" />\n <Default Extension="xml" ContentType="application/xml" />\n <Default Extension="vml" ContentType="application/vnd.openxmlformats-officedocument.vmlDrawing"/>\n <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" />\n <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/>\n <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/>\n '+jr(e.sheetCount,(function(e){return'<Override PartName="/xl/worksheets/sheet'+(e+1)+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />'}))+"\n "+Er(t,(function(e){return'<Override PartName="/xl/'+e+'" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"/>'}))+"\n "+Er(r,(function(e){return'<Override PartName="/xl/drawings/'+e+'" ContentType="application/vnd.openxmlformats-officedocument.drawing+xml"/>'}))+'\n <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />\n <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" />\n</Types>'}({sheetCount:n,commentFiles:d,drawingFiles:f})),t},Zr.prototype.toDataURL=function(){var e=this.toZIP();return e.generateAsync?e.generateAsync(zr).then(Ar):Ar(e.generate(zr))},Zr.prototype.toBlob=function(){var e=this.toZIP();return e.generateAsync?e.generateAsync(Pr):new Blob([e.generate(Ir)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})};var Jr={};function Qr(e){return e.sort((function(e,t){return e.index-t.index}))}function en(e,t){for(var r=0;r<e.length;++r){var n=e[r].split(":"),i=n[0];if(i===t){var o=n[1];return i=tn(i),{rowSpan:(o=tn(o)).row-i.row+1,colSpan:o.col-i.col+1}}}}function tn(e){var t,r=/^([a-z]+)(\d+)$/i.exec(e);return{row:(t=r[2],parseInt(t,10)-1),col:function(e){for(var t=e.toUpperCase(),r=0,n=0;n<t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}(r[1])}}function rn(e){return Math.round(9525*e)}function nn(e,t){var r,n,i=e._source,o=e.index,a=i.cells,s=e.cells;if(a)for(var l=0;l<a.length;l++){var u=a[l]||Jr,c=u.rowSpan||1,h=u.colSpan||1,d=on(s,u),f=Br(o,d);if(1===c&&1===h){var p=en(t.mergedCells,f);p&&(h=p.colSpan,c=p.rowSpan)}if(sn(u,s,d,h),(c>1||h>1)&&(r=t.mergedCells,n=f+":"+Br(o+c-1,d+h-1),r.indexOf(n)<0&&r.push(n)),c>1)for(var m=o+1;m<o+c;m++){var g=t.rowsByIndex[m];g||(g=t.rowsByIndex[m]={index:m,cells:[]},t.rowData.push(g)),sn(u,g.cells,d-1,h+1)}}}function on(e,t){var r;return"number"==typeof t.index?(r=t.index,an(e,t,t.index)):r=function(e,t){for(var r=e.length,n=0;n<e.length+1;n++)if(!e[n]){e[n]=t,r=n;break}return r}(e,t),r}function an(e,t,r){e[r]=t}function sn(e,t,r,n){for(var i=1;i<n;i++)an(t,{borderTop:e.borderTop,borderRight:e.borderRight,borderBottom:e.borderBottom,borderLeft:e.borderLeft},r+i)}var ln=function(e){return"\n<customFilters "+("and"===e.logic?'and="1"':"")+">\n"+Er(e.criteria,(function(e){var t=dn.customOperator(e);return"<customFilter "+(t?'operator="'+t+'"':"")+' val="'+dn.customValue(e)+'"/>'}))+"\n</customFilters>"},un=function(e){var t=e.type;return'<dynamicFilter type="'+dn.dynamicFilterType(t)+'" />'},cn=function(e){var t=e.type,r=e.value;return'<top10 percent="'+(/percent$/i.test(t)?1:0)+'"\n top="'+(/^top/i.test(t)?1:0)+'"\n val="'+r+'" />'},hn=function(e){return"<filters "+(e.blanks?'blank="1"':"")+">\n "+Er(e.values,(function(e){return'\n <filter val="'+e+'" />'}))+"\n </filters>"};function dn(e){return t={ref:e.ref,columns:e.columns,generators:{custom:ln,dynamic:un,top:cn,value:hn}},r=t.generators,'\n<autoFilter ref="'+t.ref+'">\n '+Er(t.columns,(function(e){return'\n <filterColumn colId="'+e.index+'">\n '+r[e.filter](e)+"\n </filterColumn>\n "}))+"\n</autoFilter>";var t,r}dn.customOperator=function(e){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[e.operator.toLowerCase()]},dn.customValue=function(e){function t(e){return e.replace(/([*?])/g,"~$1")}switch(e.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return t(e.value)+"*";case"endswith":case"doesnotendwith":return"*"+t(e.value);case"contains":case"doesnotcontain":return"*"+t(e.value)+"*";default:return e.value}},dn.dynamicFilterType=function(e){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[e.toLowerCase()]||e}},346:(e,t,r)=>{var n;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.DraggableVue2=t.Draggable=void 0;var o=r(895),a=(o.h,o.version&&"3"===o.version[0]),s=r(154),l=r(123),u=(i(n={emits:{press:null,drag:null,release:null},inheritAttrs:!1,created:function(){this.element=null,this.draggable=new s.default({press:this.press,drag:this.drag,release:this.release})},setup:a?function(){return{v3:!!a}}:void 0,mounted:function(){this.$el&&(this.element=3===this.$el.nodeType?this.$el.nextElementSibling:this.$el,this.draggable.bindTo(this.element))},destroyed:a?void 0:function(){this.draggable.destroy()},unmounted:function(){this.draggable.destroy()},methods:{press:function(e){this.element&&this.$emit("press",e,this.element)},drag:function(e){this.element&&this.$emit("drag",e,this.element)},release:function(e){this.element&&this.$emit("release",e,this.element)}}},"setup",a?function(){return{v3:!!a}}:void 0),i(n,"render",(function(e){return(0,l.getDefaultSlots)(this)})),n);t.DraggableVue2=u;var c=u;t.Draggable=c},685:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserSupportService=void 0;var r=function(){return"undefined"!=typeof document?document:{}},n=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!1,configurable:!0}),e}();t.BrowserSupportService=n},770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var r=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);t.canUseDOM=r},820:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.classNames=void 0;var n=r(650);t.classNames=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?t.classNames.apply(void 0,e):(0,n.isObject)(e)?Object.keys(e).map((function(t,r){return e[r]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")}},920:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cloneArray=t.cloneValue=t.cloneObject=t.clone=t.cloneDate=void 0;var n=r(650);function i(e,t){for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];t[r]=o(n,t[r])}}function o(e,r){if(Array.isArray(e))return a(e);if(e instanceof Date)return(0,t.cloneDate)(e);if(e&&(0,n.isObject)(e)){var o=r||{};return i(e,o),o}return e}function a(e){return e.map((function(e){return o(e,void 0)}))}t.cloneDate=function(e){return e?new Date(e.getTime()):null},t.clone=function(e){var t={};return i(e,t),t},t.cloneObject=i,t.cloneValue=o,t.cloneArray=a},866:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FIELD_REGEX=void 0,t.FIELD_REGEX=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g},123:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultSlots=void 0,t.getDefaultSlots=function(e){var t=e.$slots.default;return e.v3&&t&&"function"==typeof t?t():t}},580:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.focusContainer=t.focusLastFocusableChild=t.focusFirstFocusableChild=t.lastFocusableChild=t.firstFocusableChild=void 0;var n=r(385),i='input, [tabindex]:not([tabindex="-1"])';t.firstFocusableChild=function(e){if(e){var t=e.querySelectorAll(i);if(t.length&&t[0].focus)return t[0]}},t.lastFocusableChild=function(e){if(e){var t=e.querySelectorAll(i);if(t.length&&t[t.length-1].focus)return t[t.length-1]}},t.focusFirstFocusableChild=function(e){if(e){var t=e.querySelectorAll(i);t.length&&t[0].focus&&t[0].focus()}},t.focusLastFocusableChild=function(e){if(e){var t=e.querySelectorAll(i);t.length&&t[t.length-1].focus&&t[t.length-1].focus()}},t.focusContainer=function(e,r){var i=!0;if(e.keyCode!==n.Keys.enter&&e.target===r)return!1;if(e.keyCode===n.Keys.enter&&e.target===r)i=!0,setTimeout((function(){(0,t.focusFirstFocusableChild)(r)}),1);else if(e.keyCode===n.Keys.esc)i=!1,r.focus();else if(e.keyCode===n.Keys.tab){var o=(0,t.firstFocusableChild)(r),a=(0,t.lastFocusableChild)(r);a&&!e.shiftKey&&e.target===a&&(e.preventDefault(),o.focus()),o&&e.shiftKey&&e.target===o&&(e.preventDefault(),a.focus())}return i}},369:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTabIndex=void 0,t.getTabIndex=function(e,t,r){var n="string"==typeof e?parseInt(e,void 0):e;if(NaN!==n)return void 0!==n?n:t?r?void 0:-1:0}},504:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getter=void 0;var n=r(866),i={undefined:function(){}};t.getter=function(e){if(i[e])return i[e];var t=[];return e.replace(n.FIELD_REGEX,(function(e,r,n,i){t.push(void 0!==r?r:n||i)})),i[e]=function(e){for(var r=e,n=0;n<t.length&&r;n++)r=r[t[n]];return r},i[e]}},350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.guid=void 0,t.guid=function(){var e,t,r="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(r+="-"),r+=(12===e?4:16===e?3&t|8:t).toString(16);return r}},366:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hasRelativeStackingContext=void 0;var n=r(770);t.hasRelativeStackingContext=function(e){if(!n.canUseDOM)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var r=t.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='<div style="position: fixed; top: '.concat(10,'px;">child</div>'),t.body.appendChild(r);var i=10!==r.children[0].getBoundingClientRect().top;return t.body.removeChild(r),i}},650:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=void 0,t.isObject=function(e){return"object"==typeof e}},777:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getDir=t.isRtl=void 0;var n=r(770);t.isRtl=function(e){return Boolean(n.canUseDOM&&e&&"rtl"===getComputedStyle(e).direction)},t.getDir=function(e,t){if(!t&&n.canUseDOM&&e){var r=window.getComputedStyle(e).direction;if(r)return r}return t}},385:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Keys=void 0,t.Keys={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46}},681:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getListeners=t.hasListener=void 0,t.hasListener=function(e){return this.v3?Object.keys(this.$attrs).map((function(e){return e.toLowerCase()})).some((function(t){return t.endsWith(e.toLowerCase())})):this.$listeners[e]},t.getListeners=function(){if(this.v3){var e={};for(var t in this.$attrs)t.startsWith("on")&&(e[t]=this.$attrs[t]);return e}return this.$listeners}},680:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.validatePackage=t.setter=t.getter=t.getDir=t.isRtl=t.getDefaultSlots=t.getTabIndex=t.templateDefinition=t.templateRendering=t.getTemplate=t.cloneDate=t.cloneObject=t.cloneValue=t.cloneArray=t.Draggable=t.clone=t.focusContainer=t.focusLastFocusableChild=t.lastFocusableChild=t.focusFirstFocusableChild=t.firstFocusableChild=t.canUseDOM=t.hasListener=t.getListeners=t.isObject=t.noop=t.Keys=t.guid=t.classNames=t.setRef=t.getRef=void 0;var o=r(820);Object.defineProperty(t,"classNames",{enumerable:!0,get:function(){return o.classNames}});var a=r(350);Object.defineProperty(t,"guid",{enumerable:!0,get:function(){return a.guid}});var s=r(385);Object.defineProperty(t,"Keys",{enumerable:!0,get:function(){return s.Keys}});var l=r(770);Object.defineProperty(t,"canUseDOM",{enumerable:!0,get:function(){return l.canUseDOM}});var u=r(360);Object.defineProperty(t,"getRef",{enumerable:!0,get:function(){return u.getRef}}),Object.defineProperty(t,"setRef",{enumerable:!0,get:function(){return u.setRef}});var c=r(580);Object.defineProperty(t,"focusFirstFocusableChild",{enumerable:!0,get:function(){return c.focusFirstFocusableChild}}),Object.defineProperty(t,"focusLastFocusableChild",{enumerable:!0,get:function(){return c.focusLastFocusableChild}}),Object.defineProperty(t,"focusContainer",{enumerable:!0,get:function(){return c.focusContainer}}),Object.defineProperty(t,"firstFocusableChild",{enumerable:!0,get:function(){return c.firstFocusableChild}}),Object.defineProperty(t,"lastFocusableChild",{enumerable:!0,get:function(){return c.lastFocusableChild}});var h=r(346);Object.defineProperty(t,"Draggable",{enumerable:!0,get:function(){return h.Draggable}});var d=r(920);Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return d.clone}}),Object.defineProperty(t,"cloneArray",{enumerable:!0,get:function(){return d.cloneArray}}),Object.defineProperty(t,"cloneValue",{enumerable:!0,get:function(){return d.cloneValue}}),Object.defineProperty(t,"cloneObject",{enumerable:!0,get:function(){return d.cloneObject}}),Object.defineProperty(t,"cloneDate",{enumerable:!0,get:function(){return d.cloneDate}});var f=r(650);Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return f.isObject}});var p=r(482);Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return p.noop}});var m=r(504);Object.defineProperty(t,"getter",{enumerable:!0,get:function(){return m.getter}});var g=r(63);Object.defineProperty(t,"setter",{enumerable:!0,get:function(){return g.setter}});var v=r(681);Object.defineProperty(t,"hasListener",{enumerable:!0,get:function(){return v.hasListener}}),Object.defineProperty(t,"getListeners",{enumerable:!0,get:function(){return v.getListeners}});var _=r(337);Object.defineProperty(t,"templateRendering",{enumerable:!0,get:function(){return _.templateRendering}}),Object.defineProperty(t,"getTemplate",{enumerable:!0,get:function(){return _.getTemplate}}),Object.defineProperty(t,"templateDefinition",{enumerable:!0,get:function(){return _.templateDefinition}});var y=r(369);Object.defineProperty(t,"getTabIndex",{enumerable:!0,get:function(){return y.getTabIndex}});var b=r(123);Object.defineProperty(t,"getDefaultSlots",{enumerable:!0,get:function(){return b.getDefaultSlots}});var w=r(777);Object.defineProperty(t,"isRtl",{enumerable:!0,get:function(){return w.isRtl}}),Object.defineProperty(t,"getDir",{enumerable:!0,get:function(){return w.getDir}});var x=r(940);Object.defineProperty(t,"validatePackage",{enumerable:!0,get:function(){return x.validatePackage}}),i(r(484),t),i(r(269),t),i(r(685),t),i(r(984),t),i(r(366),t)},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},360:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setRef=t.getRef=void 0,t.getRef=function(e,t,r){return e.v3?e["".concat(t,"Ref")]:e.$refs["".concat(r||t)]},t.setRef=function(e,t,r){return e.v3?function(r){e["".concat(t,"Ref")]=r}:r||t}},984:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setScrollbarWidth=t.getScrollbarWidth=void 0;var n=r(685),i=r(770);t.getScrollbarWidth=function(){return!(!i.canUseDOM||!document.body)&&(new n.BrowserSupportService).scrollbarWidth},t.setScrollbarWidth=function(){if(!i.canUseDOM||!document.body)return!1;var e=(new n.BrowserSupportService).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(e,"px"))}},63:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setter=void 0;var n=r(866),i={undefined:function(e){return e}};t.setter=function(e){if(i[e])return i[e];var t=[];return e.replace(n.FIELD_REGEX,(function(e,r,n,i){t.push(void 0!==r?r:n||i)})),i[e]=function(e,r){for(var n=e,i=t.length-1,o=0;o<i&&n;o++)n=n[t[o]]=n[t[o]]||{};n[t[i]]=r},i[e]}},337:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.transformListeners=t.getTemplate=t.templateRendering=t.templateDefinition=void 0;var i=r(895),o=r(650),a=i,s=a.version&&"3"===a.version[0];function l(e){if(!e)return e;for(var t={},r=Object.keys(e),n=0;n<r.length;n++){var i=r[n];t["on"+i.charAt(0).toUpperCase()+i.slice(1)]=e[i]}return t}t.templateDefinition={type:[String,Function,Object,Boolean],default:function(){}},t.templateRendering=function(e,t){if(e||!1===e){var r=s?this.$slots[e]||(e.toLowerCase?this.$slots[e.toLowerCase()]:null):this.$scopedSlots[e]||(e.toLowerCase?this.$scopedSlots[e.toLowerCase()]:null);return"string"==typeof e&&r?{kt:!0,type:"slot",render:r,listeners:t}:"string"==typeof e||(0,o.isObject)(e)||"function"==typeof e&&e.component?{kt:!0,type:"component",render:e,listeners:t}:{kt:!0,type:"renderFunction",render:e,listeners:t}}},t.getTemplate=function(e){var t,r,i,o=e.h,a=e.template,u=e.defaultRendering,c=e.defaultSlots,h=e.additionalProps,d=e.additionalListeners,f=e.swapDefaultSlots;if(!a||a&&!0===a.render)return u;if(s){var p=u?u.props:{};t=n(n({},l(d)),a.listeners),r=n(n(n({},p),h),t),i=n(n({},r),t)}else{var m=u&&u.componentOptions,g=m?u.componentOptions.listeners:{},v=m?u.componentOptions.propsData:{};t=n(n(n(n({},g),d),l(d)),a.listeners),i={props:r=n(n(n({},v),h),t),on:t}}if("slot"===a.type){var _=a.render({props:r,listeners:t,methods:t,defaultSlots:c});return _?_[0]:void 0}return"renderFunction"===a.type?f?a.render?a.render(o,u,c,r,t):void 0:a.render?a.render(o,u,r,t,c):void 0:o(a.render,i,s?function(){return[c]}:[c])},t.transformListeners=l},484:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.kendoThemeMaps=void 0,t.kendoThemeMaps={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},269:function(e,t){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};function i(e,t,i){var o;return i?r(r({},e),((o={})[t]=i.length?n([],i,!0):void 0,o)):e&&e[t]?n([],e[t],!0):[]}function o(e,t,r){if(e[t]){var n=i(e,t).map((function(e){return o(e,t,r)}));return r(i(e,t,n))}return r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getNestedValue=t.getItemPath=t.extendDataItem=t.mapTreeItem=t.mapTree=void 0,t.mapTree=function(e,t,r){return n([],e.map((function(e){return o(e,t,r)})),!0)},t.mapTreeItem=function(e,t,r,n){for(var i=e,o=[],a=0;a<t.length;a++)i=i[t[a]],i=Array.isArray(i)?i:i[r],o.push(i);var s=o.length>1?o[o.length-2]:e,l=t[t.length-1],u=n(s[l]);s.splice(l,1,u)},t.extendDataItem=function(e,t,r){var n;return Object.assign({},e,e[t]?((n={})[t]=e[t].slice(),n):{},r||{})},t.getItemPath=function(e,t,r){var i=[],o=n([],t,!0);if(o.length){var a=e[o.shift()||0];for(i.push(a);o.length&&r;)a=a[r][o.shift()||0],i.push(a)}return i},t.getNestedValue=function(e,t){var r=e.split("."),n=t;return r.forEach((function(e){n=n?n[e]:void 0})),n}},940:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validatePackage=void 0;var n=r(302);t.validatePackage=function(e){if(void 0!==n)n.validatePackage(e);else{var t="License activation failed for ".concat(e.name,"\n");t+="The @progress/kendo-licensing script is not loaded.\n",t+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(t)}}},154:(e,t,r)=>{r.r(t),r.d(t,{Draggable:()=>c,default:()=>d});var n=function(e,t){return function(r){return t(e(r))}},i=function(e,t,r){return e.addEventListener&&e.addEventListener(t,r)},o=function(e,t,r){return e&&e.removeEventListener&&e.removeEventListener(t,r)},a=function(){},s=function(e){return e.preventDefault()},l=/touch/;function u(e){return e.type.match(l)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var c=function(e){var t=this,r=e.press;void 0===r&&(r=a);var l=e.drag;void 0===l&&(l=a);var c=e.release;void 0===c&&(c=a);var h=e.mouseOnly;void 0===h&&(h=!1),this._pressHandler=n(u,r),this._dragHandler=n(u,l),this._releaseHandler=n(u,c),this._ignoreMouse=!1,this._mouseOnly=h,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var r=e.which;r&&r>1||t._ignoreMouse||(i(t.document,"mousemove",t._mousemove),i(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){o(t.document,"mousemove",t._mousemove),o(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(i(t.document,"pointermove",t._pointermove),i(t.document,"pointerup",t._pointerup),i(t.document,"pointercancel",t._pointerup),i(t.document,"contextmenu",s),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(o(t.document,"pointermove",t._pointermove),o(t.document,"pointerup",t._pointerup),o(t.document,"pointercancel",t._pointerup),o(t.document,"contextmenu",s),t._releaseHandler(e))}},h={document:{configurable:!0}};c.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},h.document.get=function(){return this._element?this._element.ownerDocument:document},c.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},c.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?i(e,"pointerdown",this._pointerdown):(i(e,"mousedown",this._mousedown),this._mouseOnly||(i(e,"touchstart",this._touchstart),i(e,"touchmove",this._touchmove),i(e,"touchend",this._touchend)))},c.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return o(e,"pointerdown",this._pointerdown),o(this.document,"pointermove",this._pointermove),o(this.document,"pointerup",this._pointerup),o(this.document,"contextmenu",s),void o(this.document,"pointercancel",this._pointerup);o(e,"mousedown",this._mousedown),this._mouseOnly||(o(e,"touchstart",this._touchstart),o(e,"touchmove",this._touchmove),o(e,"touchend",this._touchend))},c.prototype._usePointers=function(){return!this._mouseOnly&&c.supportPointerEvent()},c.prototype.update=function(e){var t=e.press;void 0===t&&(t=a);var r=e.drag;void 0===r&&(r=a);var i=e.release;void 0===i&&(i=a);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=n(u,t),this._dragHandler=n(u,r),this._releaseHandler=n(u,i),this._mouseOnly=o},c.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(c.prototype,h),c.default=c;const d=c},302:e=>{e.exports=t},895:t=>{t.exports=e}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e].call(o.exports,o,o.exports,i),o.exports}return i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i(545)})()}));
|
|
@@ -74,4 +74,25 @@ export interface ExcelExportOptions {
|
|
|
74
74
|
* If set to `rtl`, the Excel file will be rendered in the right-to-left mode.
|
|
75
75
|
*/
|
|
76
76
|
dir?: string;
|
|
77
|
+
/**
|
|
78
|
+
* If set to true the data will be exported as a tree based on the `level` property of each data record.
|
|
79
|
+
*/
|
|
80
|
+
hierarchy?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Enables or disables collapsible (grouped) rows in the exported file.
|
|
83
|
+
*/
|
|
84
|
+
collapsible?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Triggered after the export is complete.
|
|
87
|
+
*/
|
|
88
|
+
onExportComplete?: (event: ExcelExportExportEvent) => void;
|
|
77
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* Represents the return type of ExcelExportExportEvent.
|
|
92
|
+
*/
|
|
93
|
+
export declare type ExcelExportExportEvent = {
|
|
94
|
+
/**
|
|
95
|
+
* The target of the ExcelExportExportEvent from ExcelExport.
|
|
96
|
+
*/
|
|
97
|
+
target: any;
|
|
98
|
+
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ExcelExporter, Workbook } from '@progress/kendo-ooxml';
|
|
2
2
|
import { toExporterColumns } from './ExporterColumns';
|
|
3
|
+
var getDepth = function (data) {
|
|
4
|
+
return Math.max.apply(Math, data.map(function (i) { return i.level; })) + 1;
|
|
5
|
+
};
|
|
3
6
|
/**
|
|
4
7
|
* @hidden
|
|
5
8
|
*/
|
|
@@ -11,7 +14,9 @@ export var workbookOptions = function (options) {
|
|
|
11
14
|
filterable: options.filterable,
|
|
12
15
|
groups: options.group,
|
|
13
16
|
paddingCellOptions: options.paddingCellOptions,
|
|
14
|
-
headerPaddingCellOptions: options.headerPaddingCellOptions
|
|
17
|
+
headerPaddingCellOptions: options.headerPaddingCellOptions,
|
|
18
|
+
hierarchy: options.hierarchy ? { depth: getDepth(options.data), itemLevel: function (item) { return item.level; } } : null,
|
|
19
|
+
collapsible: options.collapsible
|
|
15
20
|
});
|
|
16
21
|
var result = exporter.workbook();
|
|
17
22
|
result.creator = options.creator;
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-excel-export',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1662057648,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/es/saveExcel.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { workbookOptions, toDataURL } from './ooxml/workbook';
|
|
2
2
|
import { saveAs } from '@progress/kendo-file-saver';
|
|
3
|
+
import { validatePackage } from '@progress/kendo-vue-common';
|
|
4
|
+
import { packageMetadata } from './package-metadata';
|
|
3
5
|
/**
|
|
4
6
|
* @hidden
|
|
5
7
|
*/
|
|
6
8
|
export default function saveExcel(exportOptions) {
|
|
7
|
-
|
|
9
|
+
validatePackage(packageMetadata);
|
|
8
10
|
var saveFn = function (dataURL) {
|
|
9
11
|
saveAs(dataURL, exportOptions.fileName, {
|
|
10
12
|
forceProxy: exportOptions.forceProxy,
|
|
@@ -74,4 +74,25 @@ export interface ExcelExportOptions {
|
|
|
74
74
|
* If set to `rtl`, the Excel file will be rendered in the right-to-left mode.
|
|
75
75
|
*/
|
|
76
76
|
dir?: string;
|
|
77
|
+
/**
|
|
78
|
+
* If set to true the data will be exported as a tree based on the `level` property of each data record.
|
|
79
|
+
*/
|
|
80
|
+
hierarchy?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Enables or disables collapsible (grouped) rows in the exported file.
|
|
83
|
+
*/
|
|
84
|
+
collapsible?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Triggered after the export is complete.
|
|
87
|
+
*/
|
|
88
|
+
onExportComplete?: (event: ExcelExportExportEvent) => void;
|
|
77
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* Represents the return type of ExcelExportExportEvent.
|
|
92
|
+
*/
|
|
93
|
+
export declare type ExcelExportExportEvent = {
|
|
94
|
+
/**
|
|
95
|
+
* The target of the ExcelExportExportEvent from ExcelExport.
|
|
96
|
+
*/
|
|
97
|
+
target: any;
|
|
98
|
+
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ExcelExporter, Workbook } from '@progress/kendo-ooxml';
|
|
2
2
|
import { toExporterColumns } from './ExporterColumns.js';
|
|
3
|
+
var getDepth = function (data) {
|
|
4
|
+
return Math.max.apply(Math, data.map(function (i) { return i.level; })) + 1;
|
|
5
|
+
};
|
|
3
6
|
/**
|
|
4
7
|
* @hidden
|
|
5
8
|
*/
|
|
@@ -11,7 +14,9 @@ export var workbookOptions = function (options) {
|
|
|
11
14
|
filterable: options.filterable,
|
|
12
15
|
groups: options.group,
|
|
13
16
|
paddingCellOptions: options.paddingCellOptions,
|
|
14
|
-
headerPaddingCellOptions: options.headerPaddingCellOptions
|
|
17
|
+
headerPaddingCellOptions: options.headerPaddingCellOptions,
|
|
18
|
+
hierarchy: options.hierarchy ? { depth: getDepth(options.data), itemLevel: function (item) { return item.level; } } : null,
|
|
19
|
+
collapsible: options.collapsible
|
|
15
20
|
});
|
|
16
21
|
var result = exporter.workbook();
|
|
17
22
|
result.creator = options.creator;
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-excel-export',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1662057648,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/esm/saveExcel.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { workbookOptions, toDataURL } from './ooxml/workbook.js';
|
|
2
2
|
import { saveAs } from '@progress/kendo-file-saver';
|
|
3
|
+
import { validatePackage } from '@progress/kendo-vue-common';
|
|
4
|
+
import { packageMetadata } from './package-metadata.js';
|
|
3
5
|
/**
|
|
4
6
|
* @hidden
|
|
5
7
|
*/
|
|
6
8
|
export default function saveExcel(exportOptions) {
|
|
7
|
-
|
|
9
|
+
validatePackage(packageMetadata);
|
|
8
10
|
var saveFn = function (dataURL) {
|
|
9
11
|
saveAs(dataURL, exportOptions.fileName, {
|
|
10
12
|
forceProxy: exportOptions.forceProxy,
|
|
@@ -74,4 +74,25 @@ export interface ExcelExportOptions {
|
|
|
74
74
|
* If set to `rtl`, the Excel file will be rendered in the right-to-left mode.
|
|
75
75
|
*/
|
|
76
76
|
dir?: string;
|
|
77
|
+
/**
|
|
78
|
+
* If set to true the data will be exported as a tree based on the `level` property of each data record.
|
|
79
|
+
*/
|
|
80
|
+
hierarchy?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Enables or disables collapsible (grouped) rows in the exported file.
|
|
83
|
+
*/
|
|
84
|
+
collapsible?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Triggered after the export is complete.
|
|
87
|
+
*/
|
|
88
|
+
onExportComplete?: (event: ExcelExportExportEvent) => void;
|
|
77
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* Represents the return type of ExcelExportExportEvent.
|
|
92
|
+
*/
|
|
93
|
+
export declare type ExcelExportExportEvent = {
|
|
94
|
+
/**
|
|
95
|
+
* The target of the ExcelExportExportEvent from ExcelExport.
|
|
96
|
+
*/
|
|
97
|
+
target: any;
|
|
98
|
+
};
|
|
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.isWorkbookOptions = exports.toDataURL = exports.workbookOptions = void 0;
|
|
4
4
|
var kendo_ooxml_1 = require("@progress/kendo-ooxml");
|
|
5
5
|
var ExporterColumns_1 = require("./ExporterColumns");
|
|
6
|
+
var getDepth = function (data) {
|
|
7
|
+
return Math.max.apply(Math, data.map(function (i) { return i.level; })) + 1;
|
|
8
|
+
};
|
|
6
9
|
/**
|
|
7
10
|
* @hidden
|
|
8
11
|
*/
|
|
@@ -14,7 +17,9 @@ var workbookOptions = function (options) {
|
|
|
14
17
|
filterable: options.filterable,
|
|
15
18
|
groups: options.group,
|
|
16
19
|
paddingCellOptions: options.paddingCellOptions,
|
|
17
|
-
headerPaddingCellOptions: options.headerPaddingCellOptions
|
|
20
|
+
headerPaddingCellOptions: options.headerPaddingCellOptions,
|
|
21
|
+
hierarchy: options.hierarchy ? { depth: getDepth(options.data), itemLevel: function (item) { return item.level; } } : null,
|
|
22
|
+
collapsible: options.collapsible
|
|
18
23
|
});
|
|
19
24
|
var result = exporter.workbook();
|
|
20
25
|
result.creator = options.creator;
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-excel-export',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1662057648,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
14
14
|
};
|
package/dist/npm/saveExcel.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var workbook_1 = require("./ooxml/workbook");
|
|
4
4
|
var kendo_file_saver_1 = require("@progress/kendo-file-saver");
|
|
5
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
6
|
+
var package_metadata_1 = require("./package-metadata");
|
|
5
7
|
/**
|
|
6
8
|
* @hidden
|
|
7
9
|
*/
|
|
8
10
|
function saveExcel(exportOptions) {
|
|
9
|
-
|
|
11
|
+
(0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
|
|
10
12
|
var saveFn = function (dataURL) {
|
|
11
13
|
(0, kendo_file_saver_1.saveAs)(dataURL, exportOptions.fileName, {
|
|
12
14
|
forceProxy: exportOptions.forceProxy,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-excel-export",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2-dev.202209011849",
|
|
4
4
|
"description": "Kendo UI for Vue Excel Export package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@progress/kendo-file-saver": "^1.1.0",
|
|
36
36
|
"@progress/kendo-ooxml": "^1.6.1",
|
|
37
|
-
"@progress/kendo-vue-common": "3.5.
|
|
37
|
+
"@progress/kendo-vue-common": "3.5.2-dev.202209011849"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@progress/kendo-data-query": "^1.5.4",
|