import{QasQe,RasVt}from"./index.8ab1f836.js";functionBt(Ft){thrownewError('Could not dynamically require "'+Ft+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}varHt={exports:{}};/*! ExcelJS 21-08-2021 */(function(Ft,qt){(function(d){Ft.exports=d()})(function(){returnfunctiond(I,T,b){functionm(p,c){if(!T[p]){if(!I[p]){varl=typeofBt=="function"&&Bt;if(!c&&l)returnl(p,!0);if(v)returnv(p,!0);vars=newError("Cannot find module '"+p+"'");throws.code="MODULE_NOT_FOUND",s}vari=T[p]={exports:{}};I[p][0].call(i.exports,function(e){returnm(I[p][1][e]||e)},i,i.exports,d,I,T,b)}returnT[p].exports}for(varv=typeofBt=="function"&&Bt,h=0;h<b.length;h++)m(b[h]);returnm}({1:[function(d,I,T){functionb(n){return(b=typeofSymbol=="function"&&typeofSymbol.iterator=="symbol"?function(a){returntypeofa}:function(a){returna&&typeofSymbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeofa})(n)}functionm(n,a,u,f,y,w,R){try{varE=n[w](R),M=E.value}catch(O){returnvoidu(O)}E.done?a(M):Promise.resolve(M).then(f,y)}functionv(n){returnfunction(){vara=this,u=arguments;returnnewPromise(function(f,y){varw=n.apply(a,u);functionR(M){m(w,f,y,R,E,"next",M)}functionE(M){m(w,f,y,R,E,"throw",M)}R(void0)})}}functionh(n,a){for(varu=0;u<a.length;u++){varf=a[u];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"inf&&(f.writable=!0),Object.defineProperty(n,f.key,f)}}varp=d("fs"),c=d("fast-csv"),l=d("dayjs/plugin/customParseFormat"),s=d("dayjs/plugin/utc"),i=d("dayjs").extend(l).extend(s),e=d("../utils/stream-buf"),t=d("../utils/utils").fs.exists,r={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}},o=function(){functionn(w){(function(R,E){if(!(RinstanceofE))thrownewTypeError("Cannot call a class as a function")})(this,n),this.workbook=w,this.worksheet=null}vara,u,f,y;returna=n,(u=[{key:"readFile",value:(y=v(regeneratorRuntime.mark(functionw(R,E){varM,O;returnregeneratorRuntime.wrap(function(P){for(;;)switch(P.prev=P.next){case0:returnE=E||{},P.next=3,t(R);case3:if(P.sent){P.next=5;break}thrownewError("File not found: ".concat(R));case5:returnM=p.createReadStream(R),P.next=8,this.read(M,E);case8:returnO=P.sent,M.close(),P.abrupt("return",O);case11:case"end":returnP.stop()}},w,this)})),function(w,R){returny.apply(this,arguments)})},{key:"read",value:function(w,R){varE=this;returnR=R||{},newPromise(function(M,O){varP=E.workbook.addWorksheet(R.sheetName),_=R.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],S=R.map||function(j){if(j==="")returnnull;vark=Number(j);if(!Number.isNaN(k)&&k!==1/0)returnk;varx=_.reduce(function(D,F){if(D)returnD;varB=i(j,F,!0);returnB.isValid()?B:null},null);if(x)returnnewDate(x.valueOf());varC=r[j];returnC!==void0?C:j},g=c.parse(R.parserOptions).on("data",function(j){P.addRow(j.map(S))}).on("end",function(){g.emit("worksheet",P)});g.on("worksheet",M).on("error",O),w.pipe(g)})}},{key:"createInputStream",value:function(){thrownewError("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}},{key:"write",value:function(w,R){varE=this;returnnewPromise(function(M,O){R=R||{};varP=E.workbook.getWorksheet(R.sheetName||R.sheetId),_=c.format(R.formatterOptions);w.on("finish",function(){M()}),_.on("error",O),_.pipe(w);varS=R,g=S.dateFormat,j=S.dateUTC,k=R.map||function(D){if(D){if(D.text||D.hyperlink)returnD.hyperlink||D.text||"";if(D.formula||D.result)returnD.result||"";if(DinstanceofDate)returng?j?i.utc(D).format(g):i(D).format(g):j?i.utc(D).format():i(D).format();if(D.error)returnD.error;if(b(D)==="object")returnJSON.stringify(D)}returnD},x=R.includeEmptyRows===void0||R.include
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}()}function m(l,s){(s==null||s>l.length)&&(s=l.length);for(var i=0,e=new Array(s);i<s;i++)e[i]=l[i];return e}function v(l,s){var i=Object.keys(l);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(l);s&&(e=e.filter(function(t){return Object.getOwnPropertyDescriptor(l,t).enumerable})),i.push.apply(i,e)}return i}function h(l,s,i){return s in l?Object.defineProperty(l,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):l[s]=i,l}var p=/^[A-Z]+\d+$/,c={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:function(l){return l<=26?1:l<=676?2:3},_fill:function(l){var s,i,e,t,r,o=1;if(l>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&l>=1){for(;o<=26;)s=this._dictionary[o-1],this._n2l[o]=s,this._l2n[s]=o,o++;this._l2nFill=1}if(this._l2nFill<2&&l>=2){for(o=27;o<=702;)e=(i=o-27)%26,t=Math.floor(i/26),s=this._dictionary[t]+this._dictionary[e],this._n2l[o]=s,this._l2n[s]=o,o++;this._l2nFill=2}if(this._l2nFill<3&&l>=3){for(o=703;o<=16384;)e=(i=o-703)%26,t=Math.floor(i/26)%26,r=Math.floor(i/676),s=this._dictionary[r]+this._dictionary[t]+this._dictionary[e],this._n2l[o]=s,this._l2n[s]=o,o++;this._l2nFill=3}},l2n:function(l){if(this._l2n[l]||this._fill(l.length),!this._l2n[l])throw new Error("Out of bounds. Invalid column letter: ".concat(l));return this._l2n[l]},n2l:function(l){if(l<1||l>16384)throw new Error("".concat(l," is out of bounds. Excel supports columns from 1 to 16384"));return this._n2l[l]||this._fill(this._level(l)),this._n2l[l]},_hash:{},validateAddress:function(l){if(!p.test(l))throw new Error("Invalid Address: ".concat(l));return!0},decodeAddress:function(l){var s=l.length<5&&this._hash[l];if(s)return s;for(var i,e=!1,t="",r=0,o=!1,n="",a=0,u=0;u<l.length;u++)if(i=l.charCodeAt(u),!o&&i>=65&&i<=90)e=!0,t+=l[u],r=26*r+i-64;else if(i>=48&&i<=57)o=!0,n+=l[u],a=10*a+i-48;else if(o&&e&&i!==36)break;if(e){if(r>16384)throw new Error("Out of bounds. Invalid column letter: ".concat(t))}else r=void 0;o||(a=void 0);var f={address:l=t+n,col:r,row:a,$col$row:"$".concat(t,"$").concat(n)};return r<=100&&a<=100&&(this._hash[l]=f,this._hash[f.$col$row]=f),f},getAddress:function(l,s){if(s){var i=this.n2l(s)+l;return this.decodeAddress(i)}return this.decodeAddress(l)},decode:function(l){var s=l.split(":");if(s.length===2){var i=this.decodeAddress(s[0]),e=this.decodeAddress(s[1]),t={top:Math.min(i.row,e.row),left:Math.min(i.col,e.col),bottom:Math.max(i.row,e.row),right:Math.max(i.col,e.col)};return t.tl=this.n2l(t.left)+t.top,t.br=this.n2l(t.right)+t.bottom,t.dimensions="".concat(t.tl,":").concat(t.br),t}return this.decodeAddress(l)},decodeEx:function(l){var s=l.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),i=s[1]||s[2],e=s[3],t=e.split(":");if(t.length>1){var r=this.decodeAddress(t[0]),o=this.decodeAddress(t[1]),n=Math.min(r.row,o.row),a=Math.min(r.col,o.col),u=Math.max(r.row,o.row),f=Math.max(r.col,o.col);return r=this.n2l(a)+n,o=this.n2l(f)+u,{top:n,left:a,bottom:u,right:f,sheetName:i,tl:{address:r,col:a,row:n,$col$row:"$".concat(this.n2l(a),"$").concat(n),sheetName:i},br:{address:o,col:f,row:u,$col$row:"$".concat(this.n2l(f),"$").concat(u),sheetName:i},dimensions:"".concat(r,":").concat(o)}}if(e.startsWith("#"))return i?{sheetName:i,error:e}:{error:e};var y=this.decodeAddress(e);return i?function(w){for(var R=1;R<arguments.length;R++){var E=arguments[R]!=null?arguments[R]:{};R%2?v(Object(E),!0).forEach(function(M){h(w,M,E[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(E)):v(Object(E)).forEach(function(M){Object.defineProperty(w,M,Object.getOwnPropertyDescriptor(E,M))})}return w}({sheetName:i},y):y},encodeAddress:function(l,s){return c.n2l(s)+l},encode:function(){switch(arguments.length){case 2:return c.encodeAddress(arguments[0],arguments[1]);case 4:return"".concat(c.encodeAddress(arguments[0],arguments[1]),":").concat(c.encodeAdd
`)}},{key:"openNode",value:function(e,t){var r=this.tos,o=this._xml;r&&this.open&&o.push(">"),this._stack.push(e),o.push("<"),o.push(e),p(o,t),this.leaf=!0,this.open=!0}},{key:"addAttribute",value:function(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");t!==void 0&&h(this._xml,e,t)}},{key:"addAttributes",value:function(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");p(this._xml,e)}},{key:"writeText",value:function(e){var t=this._xml;this.open&&(t.push(">"),this.open=!1),this.leaf=!1,t.push(v.xmlEncode(e.toString()))}},{key:"writeXml",value:function(e){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(e)}},{key:"closeNode",value:function(){var e=this._stack.pop(),t=this._xml;this.leaf?t.push("/>"):(t.push("</"),t.push(e),t.push(">")),this.open=!1,this.leaf=!1}},{key:"leafNode",value:function(e,t,r){this.openNode(e,t),r!==void 0&&this.writeText(r),this.closeNode()}},{key:"closeAll",value:function(){for(;this._stack.length;)this.closeNode()}},{key:"addRollback",value:function(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}},{key:"commit",value:function(){this._rollbacks.pop()}},{key:"rollback",value:function(){var e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}},{key:"tos",get:function(){return this._stack.length?this._stack[this._stack.length-1]:void 0}},{key:"cursor",get:function(){return this._xml.length}},{key:"xml",get:function(){return this.closeAll(),this._xml.join("")}}])&&b(s.prototype,i),l}();c.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},I.exports=c},{"./under-dash":25,"./utils":26}],28:[function(d,I,T){(function(b){function m(n){return(m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(n)}function v(n,a,u,f,y,w,R){try{var E=n[w](R),M=E.value}catch(O){return void u(O)}E.done?a(M):Promise.resolve(M).then(f,y)}function h(n,a){for(var u=0;u<a.length;u++){var f=a[u];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(n,f.key,f)}}function p(n,a){return(p=Object.setPrototypeOf||function(u,f){return u.__proto__=f,u})(n,a)}function c(n){var a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var u,f=s(n);if(a){var y=s(this).constructor;u=Reflect.construct(f,arguments,y)}else u=f.apply(this,arguments);return l(this,u)}}function l(n,a){return!a||m(a)!=="object"&&typeof a!="function"?function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(n):a}function s(n){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(n)}var i=d("events"),e=d("jszip"),t=d("./stream-buf"),r=d("./browser-buffer-encode").stringToBuffer,o=function(n){(function(E,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(M&&M.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),M&&p(E,M)})(R,n);var a,u,f,y,w=c(R);function R(E){var M;return function(O,P){if(!(O instanceof P))throw new TypeError("Cannot call a class as a function")}(this,R),(M=w.call(this)).options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},E),M.zip=new e,M.stream=new t,M}return a=R,(u=[{key:"append",value:function(E,M){M.hasOwnProperty("base64")&&M.base64?this.zip.file(M.name,E,{base64:!0}):(b.browser&&typeof E=="string"&&(E=r(E)),this.zip.file(M.name,E))}},{key:"finalize",value:(f=regeneratorRuntime.mark(function E(){var
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}()}function v(n,a){(a==null||a>n.length)&&(a=n.length);for(var u=0,f=new Array(a);u<a;u++)f[u]=n[u];return f}function h(n,a){for(var u=0;u<a.length;u++){var f=a[u];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(n,f.key,f)}}function p(n,a){return(p=Object.setPrototypeOf||function(u,f){return u.__proto__=f,u})(n,a)}function c(n){var a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var u,f=s(n);if(a){var y=s(this).constructor;u=Reflect.construct(f,arguments,y)}else u=f.apply(this,arguments);return l(this,u)}}function l(n,a){return!a||b(a)!=="object"&&typeof a!="function"?function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(n):a}function s(n){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(n)}var i=d("../../base-xform"),e=d("../../composite-xform"),t=d("../../style/color-xform"),r=d("./cfvo-ext-xform"),o=function(n){(function(R,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(E&&E.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),E&&p(R,E)})(w,n);var a,u,f,y=c(w);function w(){var R;return function(E,M){if(!(E instanceof M))throw new TypeError("Cannot call a class as a function")}(this,w),(R=y.call(this)).map={"x14:cfvo":R.cfvoXform=new r,"x14:borderColor":R.borderColorXform=new t("x14:borderColor"),"x14:negativeBorderColor":R.negativeBorderColorXform=new t("x14:negativeBorderColor"),"x14:negativeFillColor":R.negativeFillColorXform=new t("x14:negativeFillColor"),"x14:axisColor":R.axisColorXform=new t("x14:axisColor")},R}return a=w,f=[{key:"isExt",value:function(R){return!R.gradient}}],(u=[{key:"render",value:function(R,E){var M=this;R.openNode(this.tag,{minLength:i.toIntAttribute(E.minLength,0,!0),maxLength:i.toIntAttribute(E.maxLength,100,!0),border:i.toBoolAttribute(E.border,!1),gradient:i.toBoolAttribute(E.gradient,!0),negativeBarColorSameAsPositive:i.toBoolAttribute(E.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:i.toBoolAttribute(E.negativeBarBorderColorSameAsPositive,!0),axisPosition:i.toAttribute(E.axisPosition,"auto"),direction:i.toAttribute(E.direction,"leftToRight")}),E.cfvo.forEach(function(O){M.cfvoXform.render(R,O)}),this.borderColorXform.render(R,E.borderColor),this.negativeBorderColorXform.render(R,E.negativeBorderColor),this.negativeFillColorXform.render(R,E.negativeFillColor),this.axisColorXform.render(R,E.axisColor),R.closeNode()}},{key:"createNewModel",value:function(R){var E=R.attributes;return{cfvo:[],minLength:i.toIntValue(E.minLength,0),maxLength:i.toIntValue(E.maxLength,100),border:i.toBoolValue(E.border,!1),gradient:i.toBoolValue(E.gradient,!0),negativeBarColorSameAsPositive:i.toBoolValue(E.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:i.toBoolValue(E.negativeBarBorderColorSameAsPositive,!0),axisPosition:i.toStringValue(E.axisPosition,"auto"),direction:i.toStringValue(E.direction,"leftToRight")}}},{key:"onParserClose",value:function(R,E){var M=m(R.split(":"),2)[1];switch(M){case"cfvo":this.model.cfvo.push(E.model);break;default:this.model[M]=E.model}}},{key:"tag",get:function(){return"x14:dataBar"}}])&&h(a.prototype,u),f&&h(a,f),w}(e);I.exports=o},{"../../base-xform":31,"../../composite-xform":47,"../../style/color-xform":127,"./cfvo-ext-xform":75}],79:[function(d,I,T){function b(i){return(b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(i)}function m(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}functi
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}()}function v(n,a){(a==null||a>n.length)&&(a=n.length);for(var u=0,f=new Array(a);u<a;u++)f[u]=n[u];return f}function h(n,a){for(var u=0;u<a.length;u++){var f=a[u];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(n,f.key,f)}}function p(n,a){return(p=Object.setPrototypeOf||function(u,f){return u.__proto__=f,u})(n,a)}function c(n){var a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var u,f=s(n);if(a){var y=s(this).constructor;u=Reflect.construct(f,arguments,y)}else u=f.apply(this,arguments);return l(this,u)}}function l(n,a){return!a||b(a)!=="object"&&typeof a!="function"?function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(n):a}function s(n){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(n)}var i=d("../../base-xform"),e=d("../../composite-xform"),t=d("./cfvo-ext-xform"),r=d("./cf-icon-ext-xform"),o=function(n){(function(w,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(R&&R.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),R&&p(w,R)})(y,n);var a,u,f=c(y);function y(){var w;return function(R,E){if(!(R instanceof E))throw new TypeError("Cannot call a class as a function")}(this,y),(w=f.call(this)).map={"x14:cfvo":w.cfvoXform=new t,"x14:cfIcon":w.cfIconXform=new r},w}return a=y,(u=[{key:"render",value:function(w,R){var E=this;w.openNode(this.tag,{iconSet:i.toStringAttribute(R.iconSet),reverse:i.toBoolAttribute(R.reverse,!1),showValue:i.toBoolAttribute(R.showValue,!0),custom:i.toBoolAttribute(R.icons,!1)}),R.cfvo.forEach(function(M){E.cfvoXform.render(w,M)}),R.icons&&R.icons.forEach(function(M,O){M.iconId=O,E.cfIconXform.render(w,M)}),w.closeNode()}},{key:"createNewModel",value:function(w){var R=w.attributes;return{cfvo:[],iconSet:i.toStringValue(R.iconSet,"3TrafficLights"),reverse:i.toBoolValue(R.reverse,!1),showValue:i.toBoolValue(R.showValue,!0)}}},{key:"onParserClose",value:function(w,R){var E=m(w.split(":"),2)[1];switch(E){case"cfvo":this.model.cfvo.push(R.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(R.model);break;default:this.model[E]=R.model}}},{key:"tag",get:function(){return"x14:iconSet"}}])&&h(a.prototype,u),y}(e);I.exports=o},{"../../base-xform":31,"../../composite-xform":47,"./cf-icon-ext-xform":73,"./cfvo-ext-xform":75}],81:[function(d,I,T){function b(i){return(b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(i)}function m(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function v(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,r.key,r)}}function h(i,e){return(h=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t})(i,e)}function p(i){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var t,r=l(i);if(e){var o=l(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return c(this,t)}}function c(i,e){return!e||b(e)!=="object"&&typeof e!="function"?function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(i):e}function l(i){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(i)}va
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}()}function v(r,o){(o==null||o>r.length)&&(o=r.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=r[n];return a}function h(r,o){for(var n=0;n<o.length;n++){var a=o[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}function p(r,o){return(p=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n})(r,o)}function c(r){var o=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var n,a=s(r);if(o){var u=s(this).constructor;n=Reflect.construct(a,arguments,u)}else n=a.apply(this,arguments);return l(this,n)}}function l(r,o){return!o||b(o)!=="object"&&typeof o!="function"?function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(r):o}function s(r){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(r)}var i=d("../../base-xform"),e=d("./conditional-formatting-xform"),t=function(r){(function(f,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(y&&y.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),y&&p(f,y)})(u,r);var o,n,a=c(u);function u(){var f;return function(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}(this,u),(f=a.call(this)).cfXform=new e,f}return o=u,(n=[{key:"reset",value:function(){this.model=[]}},{key:"prepare",value:function(f,y){var w=f.reduce(function(R,E){return Math.max.apply(Math,[R].concat(m(E.rules.map(function(M){return M.priority||0}))))},1);f.forEach(function(R){R.rules.forEach(function(E){E.priority||(E.priority=w++),E.style&&(E.dxfId=y.styles.addDxfStyle(E.style))})})}},{key:"render",value:function(f,y){var w=this;y.forEach(function(R){w.cfXform.render(f,R)})}},{key:"parseOpen",value:function(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(f),!0;default:return!1}}},{key:"parseText",value:function(f){this.parser&&this.parser.parseText(f)}},{key:"parseClose",value:function(f){return!(!this.parser||!this.parser.parseClose(f)&&(this.model.push(this.parser.model),this.parser=void 0,1))}},{key:"reconcile",value:function(f,y){f.forEach(function(w){w.rules.forEach(function(R){R.dxfId!==void 0&&(R.style=y.styles.getDxfStyle(R.dxfId),delete R.dxfId)})})}},{key:"tag",get:function(){return"conditionalFormatting"}}])&&h(o.prototype,n),u}(i);I.exports=t},{"../../base-xform":31,"./conditional-formatting-xform":85}],87:[function(d,I,T){function b(t){return(b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(t)}function m(t,r){for(var o=0;o<r.length;o++){var n=r[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t,r){return(v=Object.setPrototypeOf||function(o,n){return o.__proto__=n,o})(t,r)}function h(t){var r=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var o,n=c(t);if(r){var a=c(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return p(this,o)}}function p(t,r){return!r||b(r)!=="object"&&typeof r!="function"?function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(t):r}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(t)}var l=d("../../compos
`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,h||{}),(h==null?void 0:h.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(h==null?void 0:h.quote)===!0?this.quote='"':(h==null?void 0:h.quote)===!1&&(this.quote=""),typeof(h==null?void 0:h.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((v=h.writeHeaders)===null||v===void 0||v),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote="".concat(this.escape).concat(this.quote)}},{}],145:[function(d,I,T){function b(l,s){for(var i=0;i<s.length;i++){var e=s[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,e.key,e)}}var m=function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(T,"__esModule",{value:!0}),T.FieldFormatter=void 0;var v=m(d("lodash.isboolean")),h=m(d("lodash.isnil")),p=m(d("lodash.escaperegexp")),c=function(){function l(e){(function(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")})(this,l),this._headers=null,this.formatterOptions=e,e.headers!==null&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,"g");var t="[".concat(e.delimiter).concat(p.default(e.rowDelimiter),`|\r|
']`);this.ESCAPE_REGEXP=new RegExp(t)}var s,i;return s=l,(i=[{key:"shouldQuote",value:function(e,t){var r=t?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return v.default(r)?r:Array.isArray(r)?r[e]:this._headers!==null&&r[this._headers[e]]}},{key:"format",value:function(e,t,r){var o="".concat(h.default(e)?"":e).replace(/\0/g,""),n=this.formatterOptions;return n.quote!==""&&o.indexOf(n.quote)!==-1?this.quoteField(o.replace(this.REPLACE_REGEXP,n.escapedQuote)):o.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(t,r)?this.quoteField(o):o}},{key:"quoteField",value:function(e){var t=this.formatterOptions.quote;return"".concat(t).concat(e).concat(t)}},{key:"headers",set:function(e){this._headers=e}}])&&b(s.prototype,i),l}();T.FieldFormatter=c},{"lodash.escaperegexp":426,"lodash.isboolean":428,"lodash.isnil":431}],146:[function(d,I,T){function b(s,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(s,t.key,t)}}var m=function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(T,"__esModule",{value:!0}),T.RowFormatter=void 0;var v=m(d("lodash.isfunction")),h=m(d("lodash.isequal")),p=d("./FieldFormatter"),c=d("../types"),l=function(){function s(r){(function(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")})(this,s),this.rowCount=0,this.formatterOptions=r,this.fieldFormatter=new p.FieldFormatter(r),this.headers=r.headers,this.shouldWriteHeaders=r.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),r.transform&&(this.rowTransform=r.transform)}var i,e,t;return i=s,t=[{key:"isHashArray",value:function(r){return!!Array.isArray(r)&&Array.isArray(r[0])&&r[0].length===2}},{key:"gatherHeaders",value:function(r){return s.isHashArray(r)?r.map(function(o){return o[0]}):Array.isArray(r)?r:Object.keys(r)}},{key:"createTransform",value:function(r){return c.isSyncTransform(r)?function(o,n){var a=null;try{a=r(o)}catch(u){return n(u)}return n(null,a)}:function(o,n){r(o,n)}}}],(e=[{key:"format",value:function(r,o){var n=this;this.callTransformer(r,function(a,u){if(a)return o(a);if(!r)return o(null);var f=[];if(u){var y=n.checkHeaders(u),w=y.shouldFormatColumns,R=y.headers;if(n.shouldWriteHeaders&&R&&!n.hasWrittenHeaders&&(f.push(n.formatColumns(R,!0)),n.hasWrittenHeaders=!0),w){var E=n.gatherColumns(u);f.push(n.formatColumns(E,!1))}}return o(null,f)})}},{key:"finish",value:function(r){var o=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return r(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));o.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&o.push(this.formatterOptions.rowDelimiter),r(null,o)}},{key:"checkHeaders",value:function(r){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};var o=s.gatherHeaders(r);return this.headers=o,this.fieldFormatter.headers=o,this.shouldWriteHeaders?{shouldFormatColumns:!h.default(o,r),headers:o}:{shouldFormatColumns:!0,headers:null}}},{key:"gatherColumns",value:function(r){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(r)?s.isHashArray(r)?this.headers.map(function(o,n){var a=r[n];return a?a[1]:""}):this.headers.map(function(o,n){return r[n]}):this.headers.map(function(o){return r[o]})}},{key:"callTransformer",value:function(r,o){return this._rowTransform?this._rowTransform(r,o):o(null,r)}},{key:"formatColumns",value:function(r,o){var n=this,a=r.map(function(f,y){return n.fieldFormatter.format(f,y,o)}).join(this.formatterOptions.delimiter),u=this.rowCount;return this.rowCount+=1,u?[this.formatterOptions.rowDelimiter,a].join(""):a}},{key:"rowTransform",set:function(r){if(!v.default(r))throw new TypeError("The transform should be a function");this._rowTransform=s.createTransform(r)}}])&&b(i.prototype,e),t&&b(i,t),s}();T.RowFormatter=l},{"../types":149,"./FieldFormatter":145,"lodash.isequal":429,"lodash.isfunction":430}],14
`||s===`\r
`}},{key:"isTokenCarriageReturn",value:function(l,s){return l.token===s.carriageReturn}},{key:"isTokenComment",value:function(l,s){return s.supportsComments&&!!l&&l.token===s.comment}},{key:"isTokenEscapeCharacter",value:function(l,s){return l.token===s.escapeChar}},{key:"isTokenQuote",value:function(l,s){return l.token===s.quote}},{key:"isTokenDelimiter",value:function(l,s){return l.token===s.delimiter}}],(p=null)&&b(h.prototype,p),c&&b(h,c),v}();T.Token=m},{}],157:[function(d,I,T){Object.defineProperty(T,"__esModule",{value:!0}),T.ColumnFormatter=void 0,T.ColumnFormatter=function b(m){(function(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")})(this,b),m.trim?this.format=function(v){return v.trim()}:m.ltrim?this.format=function(v){return v.trimLeft()}:m.rtrim?this.format=function(v){return v.trimRight()}:this.format=function(v){return v}}},{}],158:[function(d,I,T){function b(c,l){for(var s=0;s<l.length;s++){var i=l[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(c,i.key,i)}}Object.defineProperty(T,"__esModule",{value:!0}),T.ColumnParser=void 0;var m=d("./NonQuotedColumnParser"),v=d("./QuotedColumnParser"),h=d("../Token"),p=function(){function c(i){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,c),this.parserOptions=i,this.quotedColumnParser=new v.QuotedColumnParser(i),this.nonQuotedColumnParser=new m.NonQuotedColumnParser(i)}var l,s;return l=c,(s=[{key:"parse",value:function(i){var e=i.nextNonSpaceToken;return e!==null&&h.Token.isTokenQuote(e,this.parserOptions)?(i.advanceToToken(e),this.quotedColumnParser.parse(i)):this.nonQuotedColumnParser.parse(i)}}])&&b(l.prototype,s),c}();T.ColumnParser=p},{"../Token":156,"./NonQuotedColumnParser":159,"./QuotedColumnParser":160}],159:[function(d,I,T){function b(l,s){for(var i=0;i<s.length;i++){var e=s[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,e.key,e)}}Object.defineProperty(T,"__esModule",{value:!0}),T.NonQuotedColumnParser=void 0;var m=d("./ColumnFormatter"),v=d("../Token").Token,h=v.isTokenDelimiter,p=v.isTokenRowDelimiter,c=function(){function l(e){(function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")})(this,l),this.parserOptions=e,this.columnFormatter=new m.ColumnFormatter(e)}var s,i;return s=l,(i=[{key:"parse",value:function(e){if(!e.hasMoreCharacters)return null;for(var t=this.parserOptions,r=[],o=e.nextCharacterToken;o&&!h(o,t)&&!p(o);o=e.nextCharacterToken)r.push(o.token),e.advancePastToken(o);return this.columnFormatter.format(r.join(""))}}])&&b(s.prototype,i),l}();T.NonQuotedColumnParser=c},{"../Token":156,"./ColumnFormatter":157}],160:[function(d,I,T){function b(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,r.key,r)}}Object.defineProperty(T,"__esModule",{value:!0}),T.QuotedColumnParser=void 0;var m=d("./ColumnFormatter"),v=d("../Token").Token,h=v.isTokenDelimiter,p=v.isTokenRowDelimiter,c=v.isTokenEscapeCharacter,l=v.isTokenQuote,s=function(){function i(r){(function(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")})(this,i),this.parserOptions=r,this.columnFormatter=new m.ColumnFormatter(r)}var e,t;return e=i,(t=[{key:"parse",value:function(r){if(!r.hasMoreCharacters)return null;var o=r.cursor,n=this.gatherDataBetweenQuotes(r),a=n.foundClosingQuote,u=n.col;if(!a){if(r.advanceTo(o),!r.hasMoreData)throw new Error("Parse Error: missing closing: '".concat(this.parserOptions.quote||"","' in line: at '").concat(r.lineFromCursor.replace(/[\r\n]/g,"\\n'"),"'"));return null}return this.checkForMalformedColumn(r),u}},{key:"gatherDataBetweenQuotes",value:function(r){for(var o=this.parserOptions,n=!1,a=!1,u=[],f=r.nextCharacterToken;!a&&f!==null;f=r.nextCharacterToken){var y=l(f,o);if(!n&&y)n=!0;else if(n)if(c(f,o)){r.advancePastToken(f);var w=r.nextCharacterToken;w!==null&&(l(w,o)||c(w,o))?(u.push(w.token),f=w):
*/function b(m){return!!m.constructor&&typeof m.constructor.isBuffer=="function"&&m.constructor.isBuffer(m)}I.exports=function(m){return m!=null&&(b(m)||function(v){return typeof v.readFloatLE=="function"&&typeof v.slice=="function"&&b(v.slice(0,0))}(m)||!!m._isBuffer)}},{}],389:[function(d,I,T){var b={}.toString;I.exports=Array.isArray||function(m){return b.call(m)=="[object Array]"}},{}],390:[function(d,I,T){var b=d("./utils"),m=d("./support"),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";T.encode=function(h){for(var p,c,l,s,i,e,t,r=[],o=0,n=h.length,a=n,u=b.getTypeOf(h)!=="string";o<h.length;)a=n-o,u?(p=h[o++],c=o<n?h[o++]:0,l=o<n?h[o++]:0):(p=h.charCodeAt(o++),c=o<n?h.charCodeAt(o++):0,l=o<n?h.charCodeAt(o++):0),s=p>>2,i=(3&p)<<4|c>>4,e=a>1?(15&c)<<2|l>>6:64,t=a>2?63&l:64,r.push(v.charAt(s)+v.charAt(i)+v.charAt(e)+v.charAt(t));return r.join("")},T.decode=function(h){var p,c,l,s,i,e,t=0,r=0;if(h.substr(0,5)==="data:")throw new Error("Invalid base64 input, it looks like a data url.");var o,n=3*(h=h.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(h.charAt(h.length-1)===v.charAt(64)&&n--,h.charAt(h.length-2)===v.charAt(64)&&n--,n%1!=0)thrownewError("Invalid base64 input, bad content length.");for(o=m.uint8array?newUint8Array(0|n):newArray(0|n);t<h.length;)p=v.indexOf(h.charAt(t++))<<2|(s=v.indexOf(h.charAt(t++)))>>4,c=(15&s)<<4|(i=v.indexOf(h.charAt(t++)))>>2,l=(3&i)<<6|(e=v.indexOf(h.charAt(t++))),o[r++]=p,i!==64&&(o[r++]=c),e!==64&&(o[r++]=l);returno}},{"./support":419,"./utils":421}],391:[function(d,I,T){varb=d("./external"),m=d("./stream/DataWorker"),v=d("./stream/DataLengthProbe"),h=d("./stream/Crc32Probe");v=d("./stream/DataLengthProbe");functionp(c,l,s,i,e){this.compressedSize=c,this.uncompressedSize=l,this.crc32=s,this.compression=i,this.compressedContent=e}p.prototype={getContentWorker:function(){varc=newm(b.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(newv("data_length")),l=this;returnc.on("end",function(){if(this.streamInfo.data_length!==l.uncompressedSize)thrownewError("Bug : uncompressed data size mismatch")}),c},getCompressedWorker:function(){returnnewm(b.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},p.createWorkerFrom=function(c,l,s){returnc.pipe(newh).pipe(newv("uncompressedSize")).pipe(l.compressWorker(s)).pipe(newv("compressedSize")).withStreamInfo("compression",l)},I.exports=p},{"./external":395,"./stream/Crc32Probe":414,"./stream/DataLengthProbe":415,"./stream/DataWorker":416}],392:[function(d,I,T){varb=d("./stream/GenericWorker");T.STORE={magic:"\0\0",compressWorker:function(m){returnnewb("STORE compression")},uncompressWorker:function(){returnnewb("STORE decompression")}},T.DEFLATE=d("./flate")},{"./flate":396,"./stream/GenericWorker":417}],393:[function(d,I,T){varb=d("./utils"),m=function(){for(varv,h=[],p=0;p<256;p++){v=p;for(varc=0;c<8;c++)v=1&v?3988292384^v>>>1:v>>>1;h[p]=v}returnh}();I.exports=function(v,h){returnv!==void0&&v.length?b.getTypeOf(v)!=="string"?function(p,c,l,s){vari=m,e=s+l;p^=-1;for(vart=s;t<e;t++)p=p>>>8^i[255&(p^c[t])];return-1^p}(0|h,v,v.length,0):function(p,c,l,s){vari=m,e=s+l;p^=-1;for(vart=s;t<e;t++)p=p>>>8^i[255&(p^c.charCodeAt(t))];return-1^p}(0|h,v,v.length,0):0}},{"./utils":421}],394:[function(d,I,T){T.base64=!1,T.binary=!1,T.dir=!1,T.createFolders=!0,T.date=null,T.compression=null,T.compressionOptions=null,T.comment=null,T.unixPermissions=null,T.dosPermissions=null},{}],395:[function(d,I,T){varb=null;b=typeofPromise<"u"?Promise:d("lie"),I.exports={Promise:b}},{lie:425}],396:[function(d,I,T){varb=typeofUint8Array<"u"&&typeofUint16Array<"u"&&typeofUint32Array<"u",m=d("pako"),v=d("./utils"),h=d("./stream/GenericWorker"),p=b?"uint8array":"array";functionc(l,s){h.call(this,"FlateWorker/"+l),this._pako=null,this._pakoAction=l,this._pakoOptions=s,this.meta={}}T.magic="\b\0",v.inherit
\0`,L+=c(B,2),L+=w.magic,L+=c(u,2),L+=c(f,2),L+=c(F.crc32,4),L+=c(F.compressedSize,4),L+=c(F.uncompressedSize,4),L+=c(E.length,2),L+=c(j.length,2),{fileRecord:p.LOCAL_FILE_HEADER+L+E+j,dirRecord:p.CENTRAL_FILE_HEADER+c($,2)+L+c(P.length,2)+"\0\0\0\0"+c(q,4)+c(o,4)+E+j+P}},s=function(e){return p.DATA_DESCRIPTOR+c(e.crc32,4)+c(e.compressedSize,4)+c(e.uncompressedSize,4)};function i(e,t,r,o){m.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=o,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}b.inherits(i,m),i.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,o=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,m.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-o-1))/r:100}}))},i.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=l(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},i.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=l(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:s(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},i.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,o=function(n,a,u,f,y){var w=b.transformTo("string",y(f));return p.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(n,2)+c(n,2)+c(a,4)+c(u,4)+c(w.length,2)+w}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:o,meta:{percent:100}})},i.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},i.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(r){t.error(r)}),this},i.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},i.prototype.error=function(e){var t=this._sources;if(!m.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0},i.prototype.lock=function(){m.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},I.exports=i},{"../crc32":393,"../signature":412,"../stream/GenericWorker":417,"../utf8":420,"../utils":421}],398:[function(d,I,T){var b=d("../compressions"),m=d("./ZipFileWorker");T.generateWorker=function(v,h,p){var c=new m(h.streamFiles,p,h.platform,h.encodeFileName),l=0;try{v.forEach(function(s,i){l++;var e=function(n,a){var u=n||a,f=b[u];if(!f)throw new Error(u+" is not a valid compression method !");return f}(i.options.compression,h.compression),t=i.options.compressionOptions||h.compressionOptions||{},r=i.dir,o=i.date;i._compressWorker(e,t).withStreamInfo("file",{name:s,dir:r,date:o,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(c)}),c.entriesCount=l}catch(s){c.error(s)}return c}},{"../compressions":392,"./ZipFileWorker":397}],399:[function(d,I,T){function b(){if(!(this instanceof b))return new b;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var m=
UseChrome,FirefoxorInternetExplorer11`)}}).call(this,d("_process"),typeof Qe<"u"?Qe:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,"safe-buffer":494}],476:[function(d,I,T){(function(b,m){function v(){throw new Error(`securerandomnumbergenerationnotsupportedbythisbrowser
usechrome,FireFoxorInternetExplorer11`)}var h=d("safe-buffer"),p=d("randombytes"),c=h.Buffer,l=h.kMaxLength,s=m.crypto||m.msCrypto,i=Math.pow(2,32)-1;function e(o,n){if(typeof o!="number"||o!=o)throw new TypeError("offset must be a number");if(o>i||o<0)throw new TypeError("offset must be a uint32");if(o>l||o>n)throw new RangeError("offset out of range")}function t(o,n,a){if(typeof o!="number"||o!=o)throw new TypeError("size must be a number");if(o>i||o<0)throw new TypeError("size must be a uint32");if(o+n>a||o>l)throw new RangeError("buffer too small")}function r(o,n,a,u){if(b.browser){var f=o.buffer,y=new Uint8Array(f,n,a);return s.getRandomValues(y),u?void b.nextTick(function(){u(null,o)}):o}if(!u)return p(a).copy(o,n),o;p(a,function(w,R){if(w)return u(w);R.copy(o,n),u(null,o)})}s&&s.getRandomValues||!b.browser?(T.randomFill=function(o,n,a,u){if(!(c.isBuffer(o)||o instanceof m.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof n=="function")u=n,n=0,a=o.length;else if(typeof a=="function")u=a,a=o.length-n;else if(typeof u!="function")throw new TypeError('"cb" argument must be a function');return e(n,o.length),t(a,n,o.length),r(o,n,a,u)},T.randomFillSync=function(o,n,a){if(n===void 0&&(n=0),!(c.isBuffer(o)||o instanceof m.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return e(n,o.length),a===void 0&&(a=o.length-n),t(a,n,o.length),r(o,n,a)}):(T.randomFill=v,T.randomFillSync=v)}).call(this,d("_process"),typeof Qe<"u"?Qe:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(d,I,T){function b(p){return(b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(p)}var m={};function v(p,c,l){l||(l=Error);var s=function(i){var e,t;function r(o,n,a){return i.call(this,function(u,f,y){return typeof c=="string"?c:c(u,f,y)}(o,n,a))||this}return t=i,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t,r}(l);s.prototype.name=l.name,s.prototype.code=p,m[p]=s}function h(p,c){if(Array.isArray(p)){var l=p.length;return p=p.map(function(s){return String(s)}),l>2?"one of ".concat(c," ").concat(p.slice(0,l-1).join(", "),", or ")+p[l-1]:l===2?"one of ".concat(c," ").concat(p[0]," or ").concat(p[1]):"of ".concat(c," ").concat(p[0])}return"of ".concat(c," ").concat(String(p))}v("ERR_INVALID_OPT_VALUE",function(p,c){return'The value "'+c+'" is invalid for option "'+p+'"'},TypeError),v("ERR_INVALID_ARG_TYPE",function(p,c,l){var s,i,e;if(typeof c=="string"&&(i="not ",c.substr(0,i.length)===i)?(s="must not be",c=c.replace(/^not /,"")):s="must be",function(r,o,n){return(n===void 0||n>r.length)&&(n=r.length),r.substring(n-o.length,n)===o}(p," argument"))e="The ".concat(p," ").concat(s," ").concat(h(c,"type"));else{var t=function(r,o,n){return typeof n!="number"&&(n=0),!(n+o.length>r.length)&&r.indexOf(o,n)!==-1}(p,".")?"property":"argument";e='The "'.concat(p,'" ').concat(t," ").concat(s," ").concat(h(c,"type"))}return e+=". Received type ".concat(b(l))},TypeError),v("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),v("ERR_METHOD_NOT_IMPLEMENTED",function(p){return"The "+p+" method is not implemented"}),v("ERR_STREAM_PREMATURE_CLOSE","Premature close"),v("ERR_STREAM_DESTROYED",function(p){return"Cannot call "+p+" after a stream was destroyed"}),v("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),v("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),v("ERR_STREAM_WRITE_AFTER_END","write after end"),v("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),v("ERR_UNKNOWN_ENCODING",function(p){return"Unknown encoding: "+p},TypeError),v("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),I.exports.codes=m},{}],478:[function(d,I,T){(function(b){var m=Object.keys||function(t){var r=[];for(var o in t)r.push(o);return r};I.exports=s;var v=d("./_stream_readable"),h=d("./_stream_writable");d("
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}()}function p(V,q){if(V){if(typeof V=="string")return c(V,q);var $=Object.prototype.toString.call(V).slice(8,-1);return $==="Object"&&V.constructor&&($=V.constructor.name),$==="Map"||$==="Set"?Array.from(V):$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($)?c(V,q):void 0}}function c(V,q){(q==null||q>V.length)&&(q=V.length);for(var $=0,L=new Array(q);$<q;$++)L[$]=V[$];return L}Object.defineProperty(T,"__esModule",{value:!0});var l=d("xmlchars/xml/1.0/ed5"),s=d("xmlchars/xml/1.1/ed2"),i=d("xmlchars/xmlns/1.0/ed3"),e=l.isS,t=l.isChar,r=l.isNameStartChar,o=l.isNameChar,n=l.S_LIST,a=l.NAME_RE,u=s.isChar,f=i.isNCNameStartChar,y=i.isNCNameChar,w=i.NC_NAME_RE,R="http://www.w3.org/XML/1998/namespace",E="http://www.w3.org/2000/xmlns/",M={__proto__:null,xml:R,xmlns:E},O={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},P=61,_=63,S=function(V){return V===34||V===39},g=[34,39],j=[].concat(g,[91,62]),k=[].concat(g,[60,93]),x=[P,_].concat(h(n)),C=[].concat(h(n),[62,38,60]);function D(V,q,$){switch(q){case"xml":$!==R&&V.fail("xml prefix must be bound to ".concat(R,"."));break;case"xmlns":$!==E&&V.fail("xmlns prefix must be bound to ".concat(E,"."))}switch($){case E:V.fail(q===""?"the default namespace may not be set to ".concat($,"."):'may not assign a prefix (even "xmlns") to the URI '.concat(E,"."));break;case R:switch(q){case"xml":break;case"":V.fail("the default namespace may not be set to ".concat($,"."));break;default:V.fail("may not assign the xml namespace to another prefix.")}}}var F=function(V){return w.test(V)},B=function(V){return a.test(V)};T.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var U={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"},H=function(){function V(L){(function(z,W){if(!(z instanceof W))throw new TypeError("Cannot call a class as a function")})(this,V),this.opt=L!=null?L:{},this.fragmentOpt=!!this.opt.fragment;var A=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,A){this.nameStartCheck=f,this.nameCheck=y,this.isName=F,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},M);var N=this.opt.additionalNamespaces;N!=null&&(function(z,W){for(var X=0,K=Object.keys(W);X<K.length;X++){var ie=K[X];D(z,ie,W[ie])}}(this,N),Object.assign(this.ns,N))}else this.nameStartCheck=r,this.nameCheck=o,this.isName=B,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}var q,$;return q=V,($=[{key:"_init",value:function(){var L;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=
`),L=this.i;break;case 59:var N=this.entityReturnState,z=this.entity+A.slice(L,this.prevI);this.state=N;var W=void 0;z===""?(this.fail("empty entity name."),W="&;"):(W=this.parseEntity(z),this.entity=""),N===13&&this.textHandler===void 0||(this.text+=W);break e;case-1:this.entity+=A.slice(L);break e}}},{key:"sOpenWaka",value:function(){var L=this.getCode();if(r(L))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(L){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case _:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}},{key:"sOpenWakaBang",value:function(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}},{key:"sComment",value:function(){this.captureToChar(45)&&(this.state=18)}},{key:"sCommentEnding",value:function(){var L,A=this.getCodeNorm();A===45?(this.state=19,(L=this.commentHandler)===null||L===void 0||L.call(this,this.text),this.text=""):(this.text+="-".concat(String.fromCodePoint(A)),this.state=17)}},{key:"sCommentEnded",value:function(){var L=this.getCodeNorm();L!==62?(this.fail("malformed comment."),this.text+="--".concat(String.fromCodePoint(L)),this.state=17):this.state=13}},{key:"sCData",value:function(){this.captureToChar(93)&&(this.state=21)}},{key:"sCDataEnding",value:function(){var L=this.getCodeNorm();L===93?this.state=22:(this.text+="]".concat(String.fromCodePoint(L)),this.state=20)}},{key:"sCDataEnding2",value:function(){var L,A=this.getCodeNorm();switch(A){case 62:(L=this.cdataHandler)===null||L===void 0||L.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]".concat(String.fromCodePoint(A)),this.state=20}}},{key:"sPIFirstChar",value:function(){var L=this.getCodeNorm();this.nameStartCheck(L)?(this.piTarget+=String.fromCodePoint(L),this.state=24):L===_||e(L)?(this.fail("processing instruction without a target."),this.state=L===_?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(L),this.state=24)}},{key:"sPIRest",value:function(){for(var L=this.chunk,A=this.i;;){var N=this.getCodeNorm();if(N===-1)return void(this.piTarget+=L.slice(A));if(!this.nameCheck(N)){this.piTarget+=L.slice(A,this.prevI);var z=N===_;z||e(N)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=z?33:27):this.state=z?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(N));break}}}},{key:"sPIBody",value:function(){if(this.text.length===0){var L=this.getCodeNorm();L===_?this.state=26:e(L)||(this.text=String.fromCodePoint(L))}else this.captureToChar(_)&&(this.state=26)}},{key:"sPIEnding",value:function(){var L,A=this.getCodeNorm();if(A===62){var N=this.piTarget;N.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(L=this.piHandler)===null||L===void 0||L.call(this,{target:N,body:this.text}),this.piTarget=this.text="",this.state=13}else A===_?this.text+="?":(this.text+="?".concat(String.fromCodePoint(A)),this.state=25);this.xmlDeclPossible=!1}},{key:"sXMLDeclNameStart",value:function(){var L=this.skipSpaces();L!==_?L!==-1&&(this.state=28,this.name=String.fromCodePoint(L)):this.state=33}},{key:"sXMLDeclName",value:function(){var L=this.captureTo(x);if(L===_)return this.state=33,this.name+=this.text,this.text="",voi