zb-admin/docs/assets/exceljs.min.a6dd19ae.js

61 lines
1.1 MiB
JavaScript
Raw Normal View History

2023-02-20 02:43:58 +00:00
import{Q as Qe,R as Vt}from"./index.15fc886a.js";function Bt(Ft){throw new Error('Could not dynamically require "'+Ft+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ht={exports:{}};/*! ExcelJS 21-08-2021 */(function(Ft,qt){(function(d){Ft.exports=d()})(function(){return function d(I,T,b){function m(p,c){if(!T[p]){if(!I[p]){var l=typeof Bt=="function"&&Bt;if(!c&&l)return l(p,!0);if(v)return v(p,!0);var s=new Error("Cannot find module '"+p+"'");throw s.code="MODULE_NOT_FOUND",s}var i=T[p]={exports:{}};I[p][0].call(i.exports,function(e){return m(I[p][1][e]||e)},i,i.exports,d,I,T,b)}return T[p].exports}for(var v=typeof Bt=="function"&&Bt,h=0;h<b.length;h++)m(b[h]);return m}({1:[function(d,I,T){function b(n){return(b=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 m(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 v(n){return function(){var a=this,u=arguments;return new Promise(function(f,y){var w=n.apply(a,u);function R(M){m(w,f,y,R,E,"next",M)}function E(M){m(w,f,y,R,E,"throw",M)}R(void 0)})}}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)}}var p=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(){function n(w){(function(R,E){if(!(R instanceof E))throw new TypeError("Cannot call a class as a function")})(this,n),this.workbook=w,this.worksheet=null}var a,u,f,y;return a=n,(u=[{key:"readFile",value:(y=v(regeneratorRuntime.mark(function w(R,E){var M,O;return regeneratorRuntime.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return E=E||{},P.next=3,t(R);case 3:if(P.sent){P.next=5;break}throw new Error("File not found: ".concat(R));case 5:return M=p.createReadStream(R),P.next=8,this.read(M,E);case 8:return O=P.sent,M.close(),P.abrupt("return",O);case 11:case"end":return P.stop()}},w,this)})),function(w,R){return y.apply(this,arguments)})},{key:"read",value:function(w,R){var E=this;return R=R||{},new Promise(function(M,O){var P=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==="")return null;var k=Number(j);if(!Number.isNaN(k)&&k!==1/0)return k;var x=_.reduce(function(D,F){if(D)return D;var B=i(j,F,!0);return B.isValid()?B:null},null);if(x)return new Date(x.valueOf());var C=r[j];return C!==void 0?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(){throw new Error("`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){var E=this;return new Promise(function(M,O){R=R||{};var P=E.workbook.getWorksheet(R.sheetName||R.sheetId),_=c.format(R.formatterOptions);w.on("finish",function(){M()}),_.on("error",O),_.pipe(w);var S=R,g=S.dateFormat,j=S.dateUTC,k=R.map||function(D){if(D){if(D.text||D.hyperlink)return D.hyperlink||D.text||"";if(D.formula||D.result)return D.result||"";if(D instanceof Date)return g?j?i.utc(D).format(g):i(D).format(g):j?i.utc(D).format():i(D).format();if(D.error)return D.error;if(b(D)==="object")return JSON.stringify(D)}return D},x=R.includeEmptyRows===void 0||R.include
2022-11-25 04:42:25 +00:00
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function p(y,w){(w==null||w>y.length)&&(w=y.length);for(var R=0,E=new Array(w);R<w;R++)E[R]=y[R];return E}function c(y,w){for(var R=0;R<w.length;R++){var E=w[R];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,E.key,E)}}var l=d("../utils/under-dash"),s=d("../utils/col-cache"),i=d("./range"),e=d("./row"),t=d("./column"),r=d("./enums"),o=d("./image"),n=d("./table"),a=d("./data-validations"),u=d("../utils/encryptor"),f=function(){function y(E){(function(M,O){if(!(M instanceof O))throw new TypeError("Cannot call a class as a function")})(this,y),E=E||{},this.id=E.id,this.orderNo=E.orderNo,this.name=E.name||"Sheet".concat(this.id),this.state=E.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this._workbook=E.workbook,this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},E.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!E.pageSetup||!E.pageSetup.fitToWidth&&!E.pageSetup.fitToHeight||E.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},E.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},E.headerFooter),this.dataValidations=new a,this.views=E.views||[],this.autoFilter=E.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}var w,R;return w=y,(R=[{key:"destroy",value:function(){this._workbook.removeWorksheetEx(this)}},{key:"getColumnKey",value:function(E){return this._keys[E]}},{key:"setColumnKey",value:function(E,M){this._keys[E]=M}},{key:"deleteColumnKey",value:function(E){delete this._keys[E]}},{key:"eachColumnKey",value:function(E){l.each(this._keys,E)}},{key:"getColumn",value:function(E){if(typeof E=="string"){var M=this._keys[E];if(M)return M;E=s.l2n(E)}if(this._columns||(this._columns=[]),E>this._columns.length)for(var O=this._columns.length+1;O<=E;)this._columns.push(new t(this,O++));return this._columns[E-1]}},{key:"spliceColumns",value:function(E,M){for(var O=this,P=this._rows,_=P.length,S=arguments.length,g=new Array(S>2?S-2:0),j=2;j<S;j++)g[j-2]=arguments[j];if(g.length>0)for(var k=function(V){var q=[E,M];g.forEach(function(L){q.push(L[V]||null)});var $=O.getRow(V+1);$.splice.apply($,q)},x=0;x<_;x++)k(x);else this._rows.forEach(function(V){V&&V.splice(E,M)});var C=g.length-M,D=E+M,F=this._columns.length;if(C<0)for(var B=E+g.length;B<=F;B++)this.getColumn(B).defn=this.getColumn(B-C).defn;else if(C>0)for(var U=F;U>=D;U--)this.getColumn(U+C).defn=this.getColumn(U).defn;for(var H=E;H<E+g.length;H++)this.getColumn(H).defn=null;this.workbook.definedNames.spliceColumns(this.name,E,M,g.length)}},{key:"_commitRow",value:function(){}},{key:"findRow",value:function(E){return this._rows[E-1]}},{key:"findRows",value:function(E,M){return this._rows.slice(E-1,E-1+M)}},{key:"getRow",value:function(E){var M=this._rows[E-1];return M||(M=this._rows[E-1]=new e(this,E)),M}},{key:"getRows",value:function(E,M){if(!(M<1)){for(var O=[],P=E;P<E+M;P++)O.push(this.getRow(P));return O}}},{key:"addRow",value:function(E){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",O=this._nextRow,P=this.getRow(O);return P.values=E,this._setStyleOption(O,M[0]==="i"?M:"n"),P}},{key:"addRows",value:function(E){var M=this,O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",P=[];return E.forEach(function(_){P.push(M.addRow(_,O))}),P}},{key:"insertRow",value:function(E,M){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return t
In order to be iterable, non-array objects must have a [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
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,u=!0,f=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var y=r.next();return u=y.done,y},e:function(y){f=!0,a=y},f:function(){try{u||r.return==null||r.return()}finally{if(f)throw a}}}}function m(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function v(e,t,r,o,n,a,u){try{var f=e[a](u),y=f.value}catch(w){return void r(w)}f.done?t(y):Promise.resolve(y).then(o,n)}function h(e){return function(){var t=this,r=arguments;return new Promise(function(o,n){var a=e.apply(t,r);function u(y){v(a,o,n,u,f,"next",y)}function f(y){v(a,o,n,u,f,"throw",y)}u(void 0)})}}function p(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e){var t;if(typeof Symbol<"u"&&(Symbol.asyncIterator&&(t=e[Symbol.asyncIterator])!=null||Symbol.iterator&&(t=e[Symbol.iterator])!=null))return t.call(e);throw new TypeError("Object is not async iterable")}var l=d("../../utils/parse-sax"),s=d("../../utils/xml-stream"),i=function(){function e(){(function(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")})(this,e)}var t,r,o,n,a;return t=e,r=[{key:"prepare",value:function(){}},{key:"render",value:function(){}},{key:"parseOpen",value:function(u){}},{key:"parseText",value:function(u){}},{key:"parseClose",value:function(u){}},{key:"reconcile",value:function(u,f){}},{key:"reset",value:function(){this.model=null,this.map&&Object.values(this.map).forEach(function(u){u instanceof e?u.reset():u.xform&&u.xform.reset()})}},{key:"mergeModel",value:function(u){this.model=Object.assign(this.model||{},u)}},{key:"parse",value:(a=h(regeneratorRuntime.mark(function u(f){var y,w,R,E,M,O,P,_,S,g,j;return regeneratorRuntime.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:y=!0,w=!1,k.prev=2,E=c(f);case 4:return k.next=6,E.next();case 6:return M=k.sent,y=M.done,k.next=10,M.value;case 10:if(O=k.sent,y){k.next=42;break}P=b(O),k.prev=14,P.s();case 16:if((_=P.n()).done){k.next=31;break}if(S=_.value,g=S.eventType,j=S.value,g!=="opentag"){k.next=22;break}this.parseOpen(j),k.next=29;break;case 22:if(g!=="text"){k.next=26;break}this.parseText(j),k.next=29;break;case 26:if(g!=="closetag"){k.next=29;break}if(this.parseClose(j.name)){k.next=29;break}return k.abrupt("return",this.model);case 29:k.next=16;break;case 31:k.next=36;break;case 33:k.prev=33,k.t0=k.catch(14),P.e(k.t0);case 36:return k.prev=36,P.f(),k.finish(36);case 39:y=!0,k.next=4;break;case 42:k.next=48;break;case 44:k.prev=44,k.t1=k.catch(2),w=!0,R=k.t1;case 48:if(k.prev=48,k.prev=49,y||E.return==null){k.next=53;break}return k.next=53,E.return();case 53:if(k.prev=53,!w){k.next=56;break}throw R;case 56:return k.finish(53);case 57:return k.finish(48);case 58:return k.abrupt("return",this.model);case 59:case"end":return k.stop()}},u,this,[[2,44,48,58],[14,33,36,39],[49,,53,57]])})),function(u){return a.apply(this,arguments)})},{key:"parseStream",value:(n=h(regeneratorRuntime.mark(function u(f){return regeneratorRuntime.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",this.parse(l(f)));case 1:case"end":return y.stop()}},u,this)})),function(u){return n.apply(this,arguments)})},{key:"toXml",value:function(u){var f=new s;return this.render(f,u),f.xml}},{key:"xml",get:function(){return this.toXml(this.model)}}],o=[{key:"toAttribute",value:function(u,f){var y=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(u===void 0){if(y)return f}else if(y||u!==f)return u.toString()}},{key:"toStringAttribute",value:function(u,f){var y=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return e.toAttribute(u,f,y)}},{key:"toStringValue",value:function(u,f){return u===void 0?f:u}},{key:"toBoolAttribute",value:function(u,f){var y=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(u===void 0){if(y)return f}else if(y||u!==f)return u?"1":"0"}},{key:"toBoolValue",value:function(u,f){return u===void 0?f:u==="1"}},{key:"
In order to be iterable, non-array objects must have a [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
In order to be iterable, non-array objects must have a [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
In order to be iterable, non-array objects must have a [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
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF"/> <a:font script="Hang" typeface="\uB9D1\uC740 \uACE0\uB515"/> <a:font script="Hans" typeface="\u5B8B\u4F53"/> <a:font script="Hant" typeface="\u65B0\u7D30\u660E\u9AD4"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF"/> <a:font script="Hang" typeface="\uB9D1\uC740 \uACE0\uB515"/> <a:font script="Hans" typeface="\u5B8B\u4F53"/> <a:font script="Hant" typeface="\u65B0\u7D30\u660E\u9AD4"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod
`,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):
`)}},{"./der":178,inherits:387}],181:[function(d,I,T){function b(m){return(b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v})(m)}(function(m,v){function h(_,S){if(!_)throw new Error(S||"Assertion failed")}function p(_,S){_.super_=S;var g=function(){};g.prototype=S.prototype,_.prototype=new g,_.prototype.constructor=_}function c(_,S,g){if(c.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&(S!=="le"&&S!=="be"||(g=S,S=10),this._init(_||0,S||10,g||"be"))}var l;b(m)==="object"?m.exports=c:(void 0).BN=c,c.BN=c,c.wordSize=26;try{l=d("buffer").Buffer}catch{}function s(_,S,g){for(var j=0,k=Math.min(_.length,g),x=S;x<k;x++){var C=_.charCodeAt(x)-48;j<<=4,j|=C>=49&&C<=54?C-49+10:C>=17&&C<=22?C-17+10:15&C}return j}function i(_,S,g,j){for(var k=0,x=Math.min(_.length,g),C=S;C<x;C++){var D=_.charCodeAt(C)-48;k*=j,k+=D>=49?D-49+10:D>=17?D-17+10:D}return k}c.isBN=function(_){return _ instanceof c||_!==null&&b(_)==="object"&&_.constructor.wordSize===c.wordSize&&Array.isArray(_.words)},c.max=function(_,S){return _.cmp(S)>0?_:S},c.min=function(_,S){return _.cmp(S)<0?_:S},c.prototype._init=function(_,S,g){if(typeof _=="number")return this._initNumber(_,S,g);if(b(_)==="object")return this._initArray(_,S,g);S==="hex"&&(S=16),h(S===(0|S)&&S>=2&&S<=36);var j=0;(_=_.toString().replace(/\s+/g,""))[0]==="-"&&j++,S===16?this._parseHex(_,j):this._parseBase(_,S,j),_[0]==="-"&&(this.negative=1),this.strip(),g==="le"&&this._initArray(this.toArray(),S,g)},c.prototype._initNumber=function(_,S,g){_<0&&(this.negative=1,_=-_),_<67108864?(this.words=[67108863&_],this.length=1):_<4503599627370496?(this.words=[67108863&_,_/67108864&67108863],this.length=2):(h(_<9007199254740992),this.words=[67108863&_,_/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),S,g)},c.prototype._initArray=function(_,S,g){if(h(typeof _.length=="number"),_.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(_.length/3),this.words=new Array(this.length);for(var j=0;j<this.length;j++)this.words[j]=0;var k,x,C=0;if(g==="be")for(j=_.length-1,k=0;j>=0;j-=3)x=_[j]|_[j-1]<<8|_[j-2]<<16,this.words[k]|=x<<C&67108863,this.words[k+1]=x>>>26-C&67108863,(C+=24)>=26&&(C-=26,k++);else if(g==="le")for(j=0,k=0;j<_.length;j+=3)x=_[j]|_[j+1]<<8|_[j+2]<<16,this.words[k]|=x<<C&67108863,this.words[k+1]=x>>>26-C&67108863,(C+=24)>=26&&(C-=26,k++);return this.strip()},c.prototype._parseHex=function(_,S){this.length=Math.ceil((_.length-S)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var j,k,x=0;for(g=_.length-6,j=0;g>=S;g-=6)k=s(_,g,g+6),this.words[j]|=k<<x&67108863,this.words[j+1]|=k>>>26-x&4194303,(x+=24)>=26&&(x-=26,j++);g+6!==S&&(k=s(_,S,g+6),this.words[j]|=k<<x&67108863,this.words[j+1]|=k>>>26-x&4194303),this.strip()},c.prototype._parseBase=function(_,S,g){this.words=[0],this.length=1;for(var j=0,k=1;k<=67108863;k*=S)j++;j--,k=k/S|0;for(var x=_.length-g,C=x%j,D=Math.min(x,x-C)+g,F=0,B=g;B<D;B+=j)F=i(_,B,B+j,S),this.imuln(k),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F);if(C!==0){var U=1;for(F=i(_,B,_.length,S),B=0;B<C;B++)U*=S;this.imuln(U),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F)}},c.prototype.copy=function(_){_.words=new Array(this.length);for(var S=0;S<this.length;S++)_.words[S]=this.words[S];_.length=this.length,_.negative=this.negative,_.red=this.red},c.prototype.clone=function(){var _=new c(null);return this.copy(_),_},c.prototype._expand=function(_){for(;this.length<_;)this.words[this.length++]=0;return this},c.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var e=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","00000000
`))},T.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":203,"browserify-sign":211,"browserify-sign/algos":208,"create-ecdh":329,"create-hash":331,"create-hmac":333,"diffie-hellman":345,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],336:[function(d,I,T){function b(m){return(b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v})(m)}(function(m,v){(T===void 0?"undefined":b(T))=="object"&&I!==void 0?I.exports=v():(void 0).dayjs=v()})(0,function(){var m="millisecond",v="second",h="minute",p="hour",c="day",l="week",s="month",i="quarter",e="year",t="date",r=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,o=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,n=function(_,S,g){var j=String(_);return!j||j.length>=S?_:""+Array(S+1-j.length).join(g)+_},a={s:n,z:function(_){var S=-_.utcOffset(),g=Math.abs(S),j=Math.floor(g/60),k=g%60;return(S<=0?"+":"-")+n(j,2,"0")+":"+n(k,2,"0")},m:function _(S,g){if(S.date()<g.date())return-_(g,S);var j=12*(g.year()-S.year())+(g.month()-S.month()),k=S.add(j,s),x=g-k<0,C=S.add(j+(x?-1:1),s);return+(-(j+(g-k)/(x?k-C:C-k))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:s,y:e,w:l,d:c,D:t,h:p,m:h,s:v,ms:m,Q:i}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},u={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f="en",y={};y[f]=u;var w=function(_){return _ instanceof O},R=function(_,S,g){var j;if(!_)return f;if(typeof _=="string")y[_]&&(j=_),S&&(y[_]=S,j=_);else{var k=_.name;y[k]=_,j=k}return!g&&j&&(f=j),j||!g&&f},E=function(_,S){if(w(_))return _.clone();var g=b(S)=="object"?S:{};return g.date=_,g.args=arguments,new O(g)},M=a;M.l=R,M.i=w,M.w=function(_,S){return E(_,{locale:S.$L,utc:S.$u,$offset:S.$offset})};var O=function(){function _(g){this.$L=this.$L||R(g.locale,null,!0),this.parse(g)}var S=_.prototype;return S.parse=function(g){this.$d=function(j){var k=j.date,x=j.utc;if(k===null)return new Date(NaN);if(M.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var C=k.match(r);if(C){var D=C[2]-1||0,F=(C[7]||"0").substring(0,3);return x?new Date(Date.UTC(C[1],D,C[3]||1,C[4]||0,C[5]||0,C[6]||0,F)):new Date(C[1],D,C[3]||1,C[4]||0,C[5]||0,C[6]||0,F)}}return new Date(k)}(g),this.init()},S.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},S.$utils=function(){return M},S.isValid=function(){return this.$d.toString()!=="Invalid Date"},S.isSame=function(g,j){var k=E(g);return this.startOf(j)<=k&&k<=this.endOf(j)},S.isAfter=function(g,j){return E(g)<this.startOf(j)},S.isBefore=function(g,j){return this.endOf(j)<E(g)},S.$g=function(g,j,k){return M.u(g)?this[j]:this.set(k,g)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(g,j){var k=this,x=!!M.u(j)||j,C=M.p(g),D=function(L,A){var N=M.w(k.$u?Date.UTC(k.$y,A,L):new Date(k.$y,A,L),k);return x?N:N.endOf(c)},F=function(L,A){return M.w(k.toDate()[L].apply(k.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(A)),k)},B=this.$W,U=this.$M,H=this.$D,V="set"+(this.$u?"UTC":"");switch(C){case e:return x?D(1,0):D(31,11);case s:return x?D(1,U):D(0,U+1);case l:var q=this.$locale().weekStart||0,$=(B<q?B+7:B)-q;return D(x?
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/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)throw new Error("Invalid base64 input, bad content length.");for(o=m.uint8array?new Uint8Array(0|n):new Array(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);return o}},{"./support":419,"./utils":421}],391:[function(d,I,T){var b=d("./external"),m=d("./stream/DataWorker"),v=d("./stream/DataLengthProbe"),h=d("./stream/Crc32Probe");v=d("./stream/DataLengthProbe");function p(c,l,s,i,e){this.compressedSize=c,this.uncompressedSize=l,this.crc32=s,this.compression=i,this.compressedContent=e}p.prototype={getContentWorker:function(){var c=new m(b.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new v("data_length")),l=this;return c.on("end",function(){if(this.streamInfo.data_length!==l.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),c},getCompressedWorker:function(){return new m(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){return c.pipe(new h).pipe(new v("uncompressedSize")).pipe(l.compressWorker(s)).pipe(new v("compressedSize")).withStreamInfo("compression",l)},I.exports=p},{"./external":395,"./stream/Crc32Probe":414,"./stream/DataLengthProbe":415,"./stream/DataWorker":416}],392:[function(d,I,T){var b=d("./stream/GenericWorker");T.STORE={magic:"\0\0",compressWorker:function(m){return new b("STORE compression")},uncompressWorker:function(){return new b("STORE decompression")}},T.DEFLATE=d("./flate")},{"./flate":396,"./stream/GenericWorker":417}],393:[function(d,I,T){var b=d("./utils"),m=function(){for(var v,h=[],p=0;p<256;p++){v=p;for(var c=0;c<8;c++)v=1&v?3988292384^v>>>1:v>>>1;h[p]=v}return h}();I.exports=function(v,h){return v!==void 0&&v.length?b.getTypeOf(v)!=="string"?function(p,c,l,s){var i=m,e=s+l;p^=-1;for(var t=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){var i=m,e=s+l;p^=-1;for(var t=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){var b=null;b=typeof Promise<"u"?Promise:d("lie"),I.exports={Promise:b}},{lie:425}],396:[function(d,I,T){var b=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",m=d("pako"),v=d("./utils"),h=d("./stream/GenericWorker"),p=b?"uint8array":"array";function c(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=
Use Chrome, Firefox or Internet Explorer 11`)}}).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(`secure random number generation not supported by this browser
use chrome, FireFox or Internet Explorer 11`)}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("
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N,z=!0,W=!1;return{s:function(){$=V[Symbol.iterator]()},n:function(){var X=$.next();return z=X.done,X},e:function(X){W=!0,N=X},f:function(){try{z||$.return==null||$.return()}finally{if(W)throw N}}}}function m(V){return(m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q})(V)}function v(V,q){for(var $=0;$<q.length;$++){var L=q[$];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(V,L.key,L)}}function h(V){return function(q){if(Array.isArray(q))return c(q)}(V)||function(q){if(typeof Symbol<"u"&&Symbol.iterator in Object(q))return Array.from(q)}(V)||p(V)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [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=
`),A=this.i)}}},{key:"captureToChar",value:function(L){for(var A=this.i,N=this.chunk;;){var z=this.getCode();switch(z){case-2:this.text+="".concat(N.slice(A,this.prevI),`
`),A=this.i,z=10;break;case-1:return this.text+=N.slice(A),!1}if(z===L)return this.text+=N.slice(A,this.prevI),!0}}},{key:"captureNameChars",value:function(){for(var L=this.chunk,A=this.i;;){var N=this.getCode();if(N===-1)return this.name+=L.slice(A),-1;if(!o(N))return this.name+=L.slice(A,this.prevI),N===-2?10:N}}},{key:"skipSpaces",value:function(){for(;;){var L=this.getCodeNorm();if(L===-1||!e(L))return L}}},{key:"setXMLVersion",value:function(L){this.currentXMLVersion=L,L==="1.0"?(this.isChar=t,this.getCode=this.getCode10):(this.isChar=u,this.getCode=this.getCode11)}},{key:"sBegin",value:function(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}},{key:"sBeginWhitespace",value:function(){var L=this.i,A=this.skipSpaces();switch(this.prevI!==L&&(this.xmlDeclPossible=!1),A){case 60:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}},{key:"sDoctype",value:function(){var L,A=this.captureTo(j);switch(A){case 62:(L=this.doctypeHandler)===null||L===void 0||L.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(A),A===91?this.state=4:S(A)&&(this.state=3,this.q=A)}}},{key:"sDoctypeQuote",value:function(){var L=this.q;this.captureToChar(L)&&(this.text+=String.fromCodePoint(L),this.q=null,this.state=2)}},{key:"sDTD",value:function(){var L=this.captureTo(k);L!==-1&&(this.text+=String.fromCodePoint(L),L===93?this.state=2:L===60?this.state=6:S(L)&&(this.state=5,this.q=L))}},{key:"sDTDQuoted",value:function(){var L=this.q;this.captureToChar(L)&&(this.text+=String.fromCodePoint(L),this.state=4,this.q=null)}},{key:"sDTDOpenWaka",value:function(){var L=this.getCodeNorm();switch(this.text+=String.fromCodePoint(L),L){case 33:this.state=7,this.openWakaBang="";break;case _:this.state=11;break;default:this.state=4}}},{key:"sDTDOpenWakaBang",value:function(){var L=String.fromCodePoint(this.getCodeNorm()),A=this.openWakaBang+=L;this.text+=L,A!=="-"&&(this.state=A==="--"?8:4,this.openWakaBang="")}},{key:"sDTDComment",value:function(){this.captureToChar(45)&&(this.text+="-",this.state=9)}},{key:"sDTDCommentEnding",value:function(){var L=this.getCodeNorm();this.text+=String.fromCodePoint(L),this.state=L===45?10:8}},{key:"sDTDCommentEnded",value:function(){var L=this.getCodeNorm();this.text+=String.fromCodePoint(L),L===62?this.state=4:(this.fail("malformed comment."),this.state=8)}},{key:"sDTDPI",value:function(){this.captureToChar(_)&&(this.text+="?",this.state=12)}},{key:"sDTDPIEnding",value:function(){var L=this.getCodeNorm();this.text+=String.fromCodePoint(L),L===62&&(this.state=4)}},{key:"sText",value:function(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}},{key:"sEntity",value:function(){var L=this.i,A=this.chunk;e:for(;;)switch(this.getCode()){case-2:this.entity+="".concat(A.slice(L,this.prevI),`
`),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
`)),L=this.i,A=0;break;case-1:z!==void 0&&(this.text+=N.slice(L));break e;default:A=0}this.forbiddenState=A}},{key:"handleTextOutsideRoot",value:function(){var L=this.i,A=this.chunk,N=this.textHandler,z=!1;e:for(;;){var W=this.getCode();switch(W){case 60:if(this.state=15,N!==void 0){var X=this.text,K=A.slice(L,this.prevI);X.length!==0?(N(X+K),this.text=""):K.length!==0&&N(K)}break e;case 38:this.state=14,this.entityReturnState=13,N!==void 0&&(this.text+=A.slice(L,this.prevI)),z=!0;break e;case-2:N!==void 0&&(this.text+="".concat(A.slice(L,this.prevI),`
`)),L=this.i;break;case-1:N!==void 0&&(this.text+=A.slice(L));break e;default:e(W)||(z=!0)}}z&&(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))}},{key:"pushAttribNS",value:function(L,A){var N,z=this.qname(L),W=z.prefix,X=z.local,K={name:L,prefix:W,local:X,value:A};if(this.attribList.push(K),(N=this.attributeHandler)===null||N===void 0||N.call(this,K),W==="xmlns"){var ie=A.trim();this.currentXMLVersion==="1.0"&&ie===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[X]=ie,D(this,X,ie)}else if(L==="xmlns"){var Q=A.trim();this.topNS[""]=Q,D(this,"",Q)}}},{key:"pushAttribPlain",value:function(L,A){var N,z={name:L,value:A};this.attribList.push(z),(N=this.attributeHandler)===null||N===void 0||N.call(this,z)}},{key:"end",value:function(){var L,A;this.sawRoot||this.fail("document must contain a root element.");for(var N=this.tags;N.length>0;){var z=N.pop();this.fail("unclosed tag: ".concat(z.name))}this.state!==0&&this.state!==13&&this.fail("unexpected end.");var W=this.text;return W.length!==0&&((L=this.textHandler)===null||L===void 0||L.call(this,W),this.text=""),this._closed=!0,(A=this.endHandler)===null||A===void 0||A.call(this),this._init(),this}},{key:"resolve",value:function(L){var A,N,z=this.topNS[L];if(z!==void 0)return z;for(var W=this.tags,X=W.length-1;X>=0;X--)if((z=W[X].ns[L])!==void 0)return z;return(z=this.ns[L])!==void 0?z:(N=(A=this.opt).resolvePrefix)===null||N===void 0?void 0:N.call(A,L)}},{key:"qname",value:function(L){var A=L.indexOf(":");if(A===-1)return{prefix:"",local:L};var N=L.slice(A+1),z=L.slice(0,A);return(z===""||N===""||N.includes(":"))&&this.fail("malformed name: ".concat(L,".")),{prefix:z,local:N}}},{key:"processAttribsNS",value:function(){var L,A=this.attribList,N=this.tag,z=this.qname(N.name),W=z.prefix,X=z.local;N.prefix=W,N.local=X;var K=N.uri=(L=this.resolve(W))!==null&&L!==void 0?L:"";if(W!==""&&(W==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),K===""&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(W),".")),N.uri=W)),A.length!==0){var ie,Q=N.attributes,ue=new Set,de=b(A);try{for(de.s();!(ie=de.n()).done;){var ce=ie.value,Ee=ce.name,_e=ce.prefix,ve=ce.local,ke=void 0,Re=void 0;_e===""?(ke=Ee==="xmlns"?E:"",Re=Ee):((ke=this.resolve(_e))===void 0&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(_e),".")),ke=_e),Re="{".concat(ke,"}").concat(ve)),ue.has(Re)&&this.fail("duplicate attribute: ".concat(Re,".")),ue.add(Re),ce.uri=ke,Q[Ee]=ce}}catch(fe){de.e(fe)}finally{de.f()}this.attribList=[]}}},{key:"processAttribsPlain",value:function(){var L,A=this.attribList,N=this.tag.attributes,z=b(A);try{for(z.s();!(L=z.n()).done;){var W=L.value,X=W.name,K=W.value;N[X]!==void 0&&this.fail("duplicate attribute: ".concat(X,".")),N[X]=K}}catch(ie){z.e(ie)}finally{z.f()}this.attribList=[]}},{key:"openTag",value:function(){var L;this.processAttribs();var A=this.tags,N=this.tag;N.isSelfClosing=!1,(L=this.openTagHandler)===null||L===void 0||L.call(this,N),A.push(N),this.state=13,this.name=""}},{key:"openSelfClosingTag",value:function(){var L,A,N;this.processAttribs();var z=this.tags,W=this.tag;W.isSelfClosing=!0,(L=this.openTagHandler)===null||L===void 0||L.call(this,W),(A=this.closeTagHandler)===null||A===void 0||A.call(this,W),(this.tag=(N=z[z.length-1])!==null&&N!==void 0?N:null)===null&&(this.closedRoot=!0),this.state=13,this.name=""}},{key:"closeTag",value:function(){var L=this.tags,A=this.name;if(this.state=13,this.name="",A==="")return this.fail("weird empty close tag."),void(this.text+="</>");for(var N=this.closeTagHandler,z=L.length;z-- >0;){var W=this.tag=L.pop();if(this.topNS=W.ns,N==null||N(W),W.name===A)break;this.fail("unexpected close tag.")}z===0?this.closedRoot=!0:z<0&&(this.fail("unmatched closing tag: ".concat(A,".")),this.text+="</".concat(A,">"))}},{key:"parseEntity",value:function(L){if(L[0]!=="#"){var A=this.ENTITIES[L];return A!==vo
`)>=0,W+X.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?z[0]+(N===""?"":N+`
`)+" "+A.join(`,
`)+" "+z[1]:z[0]+N+" "+A.join(", ")+" "+z[1]}(V,q,L)):L[0]+q+L[1]}function t(k){return"["+Error.prototype.toString.call(k)+"]"}function r(k,x,C,D,F,B){var U,H,V;if((V=Object.getOwnPropertyDescriptor(x,F)||{value:x[F]}).get?H=V.set?k.stylize("[Getter/Setter]","special"):k.stylize("[Getter]","special"):V.set&&(H=k.stylize("[Setter]","special")),j(D,F)||(U="["+F+"]"),H||(k.seen.indexOf(V.value)<0?(H=a(C)?e(k,V.value,null):e(k,V.value,C-1)).indexOf(`
`)>-1&&(H=B?H.split(`
`).map(function(q){return" "+q}).join(`
`).substr(2):`
`+H.split(`
`).map(function(q){return" "+q}).join(`
`)):H=k.stylize("[Circular]","special")),y(U)){if(B&&F.match(/^\d+$/))return H;(U=JSON.stringify(""+F)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(U=U.substr(1,U.length-2),U=k.stylize(U,"name")):(U=U.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),U=k.stylize(U,"string"))}return U+": "+H}function o(k){return Array.isArray(k)}function n(k){return typeof k=="boolean"}function a(k){return k===null}function u(k){return typeof k=="number"}function f(k){return typeof k=="string"}function y(k){return k===void 0}function w(k){return R(k)&&P(k)==="[object RegExp]"}function R(k){return v(k)==="object"&&k!==null}function E(k){return R(k)&&P(k)==="[object Date]"}function M(k){return R(k)&&(P(k)==="[object Error]"||k instanceof Error)}function O(k){return typeof k=="function"}function P(k){return Object.prototype.toString.call(k)}function _(k){return k<10?"0"+k.toString(10):k.toString(10)}T.debuglog=function(k){if(y(p)&&(p=b.env.NODE_DEBUG||""),k=k.toUpperCase(),!c[k])if(new RegExp("\\b"+k+"\\b","i").test(p)){var x=b.pid;c[k]=function(){var C=T.format.apply(T,arguments);console.error("%s %d: %s",k,x,C)}}else c[k]=function(){};return c[k]},T.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},T.isArray=o,T.isBoolean=n,T.isNull=a,T.isNullOrUndefined=function(k){return k==null},T.isNumber=u,T.isString=f,T.isSymbol=function(k){return v(k)==="symbol"},T.isUndefined=y,T.isRegExp=w,T.isObject=R,T.isDate=E,T.isError=M,T.isFunction=O,T.isPrimitive=function(k){return k===null||typeof k=="boolean"||typeof k=="number"||typeof k=="string"||v(k)==="symbol"||k===void 0},T.isBuffer=d("./support/isBuffer");var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function g(){var k=new Date,x=[_(k.getHours()),_(k.getMinutes()),_(k.getSeconds())].join(":");return[k.getDate(),S[k.getMonth()],x].join(" ")}function j(k,x){return Object.prototype.hasOwnProperty.call(k,x)}T.log=function(){console.log("%s - %s",g(),T.format.apply(T,arguments))},T.inherits=d("inherits"),T._extend=function(k,x){if(!x||!R(x))return k;for(var C=Object.keys(x),D=C.length;D--;)k[C[D]]=x[C[D]];return k}}).call(this,d("_process"),typeof Qe<"u"?Qe:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":524,_process:467,inherits:523}],526:[function(d,I,T){Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(T,"v1",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(T,"v3",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(T,"v4",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(T,"v5",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(T,"NIL",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(T,"version",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(T,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(T,"stringify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(T,"parse",{enumerable:!0,get:function(){return i.default}});var b=e(d("./v1.js")),m=e(d("./v3.js")),v=e(d("./v4.js")),h=e(d("./v5.js")),p=e(d("./nil.js")),c=e(d("./version.js")),l=e(d("./validate.js")),s=e(d("./stringify.js")),i=e(d("./parse.js"));function e(t){return t&&t.__esModule?t:{default:t}}},{"./nil.js":528,"./parse.js":529,"./stringify.js":533,"./v1.js":534,"./v3.js":535,"./v4.js":537,"./v5.js":538,"./validate.js":539,"./version.js":540}],527:[function(d,I,T){function b(i){return 14+(i+64>>>9<<4)+1}function m(i,e){var t=(65535&i)+(65535&e);return(i>>16)+(e>>16)+(t>>16)<<16|65535&t}function v(i,e,t,r,o,n){return m((a=m(m(e,i),m(r,n)))<<(u=o)|a>>>32-u,t);var a,u}function h(i,e,t,r,o,n,a){return v(e&t|~e&r,i,e,o,n,a)}function p(i,e,t,r,o,n,a){return v(e&r|t&~r,i,e,o,n,a)}function c(i,e,t,r,o
* Character classes and associated utilities for the 5th edition of XML 1.0.
*
* @author Louis-Dominique Dubeau
* @license MIT
* @copyright Louis-Dominique Dubeau
*/Object.defineProperty(T,"__esModule",{value:!0}),T.CHAR=`
\r -\uD7FF\uE000-\uFFFD\u{10000}-\u{10FFFF}`,T.S=` \r
`,T.NAME_START_CHAR=":A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",T.NAME_CHAR="-"+T.NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040",T.CHAR_RE=new RegExp("^["+T.CHAR+"]$","u"),T.S_RE=new RegExp("^["+T.S+"]+$","u"),T.NAME_START_CHAR_RE=new RegExp("^["+T.NAME_START_CHAR+"]$","u"),T.NAME_CHAR_RE=new RegExp("^["+T.NAME_CHAR+"]$","u"),T.NAME_RE=new RegExp("^["+T.NAME_START_CHAR+"]["+T.NAME_CHAR+"]*$","u"),T.NMTOKEN_RE=new RegExp("^["+T.NAME_CHAR+"]+$","u");function b(m){return m>=65&&m<=90||m>=97&&m<=122||m===58||m===95||m===8204||m===8205||m>=192&&m<=214||m>=216&&m<=246||m>=248&&m<=767||m>=880&&m<=893||m>=895&&m<=8191||m>=8304&&m<=8591||m>=11264&&m<=12271||m>=12289&&m<=55295||m>=63744&&m<=64975||m>=65008&&m<=65533||m>=65536&&m<=983039}T.S_LIST=[32,10,13,9],T.isChar=function(m){return m>=32&&m<=55295||m===10||m===13||m===9||m>=57344&&m<=65533||m>=65536&&m<=1114111},T.isS=function(m){return m===32||m===10||m===13||m===9},T.isNameStartChar=b,T.isNameChar=function(m){return b(m)||m>=48&&m<=57||m===45||m===46||m===183||m>=768&&m<=879||m>=8255&&m<=8256}},{}],542:[function(d,I,T){/**
* Character classes and associated utilities for the 2nd edition of XML 1.1.
*
* @author Louis-Dominique Dubeau
* @license MIT
* @copyright Louis-Dominique Dubeau
*/Object.defineProperty(T,"__esModule",{value:!0}),T.CHAR="-\uD7FF\uE000-\uFFFD\u{10000}-\u{10FFFF}",T.RESTRICTED_CHAR="-\b\v\f-\x7F-\x84\x86-\x9F",T.S=` \r
`,T.NAME_START_CHAR=":A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",T.NAME_CHAR="-"+T.NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040",T.CHAR_RE=new RegExp("^["+T.CHAR+"]$","u"),T.RESTRICTED_CHAR_RE=new RegExp("^["+T.RESTRICTED_CHAR+"]$","u"),T.S_RE=new RegExp("^["+T.S+"]+$","u"),T.NAME_START_CHAR_RE=new RegExp("^["+T.NAME_START_CHAR+"]$","u"),T.NAME_CHAR_RE=new RegExp("^["+T.NAME_CHAR+"]$","u"),T.NAME_RE=new RegExp("^["+T.NAME_START_CHAR+"]["+T.NAME_CHAR+"]*$","u"),T.NMTOKEN_RE=new RegExp("^["+T.NAME_CHAR+"]+$","u");function b(m){return m>=65&&m<=90||m>=97&&m<=122||m===58||m===95||m===8204||m===8205||m>=192&&m<=214||m>=216&&m<=246||m>=248&&m<=767||m>=880&&m<=893||m>=895&&m<=8191||m>=8304&&m<=8591||m>=11264&&m<=12271||m>=12289&&m<=55295||m>=63744&&m<=64975||m>=65008&&m<=65533||m>=65536&&m<=983039}T.S_LIST=[32,10,13,9],T.isChar=function(m){return m>=1&&m<=55295||m>=57344&&m<=65533||m>=65536&&m<=1114111},T.isRestrictedChar=function(m){return m>=1&&m<=8||m===11||m===12||m>=14&&m<=31||m>=127&&m<=132||m>=134&&m<=159},T.isCharAndNotRestricted=function(m){return m===9||m===10||m===13||m>31&&m<127||m===133||m>159&&m<=55295||m>=57344&&m<=65533||m>=65536&&m<=1114111},T.isS=function(m){return m===32||m===10||m===13||m===9},T.isNameStartChar=b,T.isNameChar=function(m){return b(m)||m>=48&&m<=57||m===45||m===46||m===183||m>=768&&m<=879||m>=8255&&m<=8256}},{}],543:[function(d,I,T){/**
* Character class utilities for XML NS 1.0 edition 3.
*
* @author Louis-Dominique Dubeau
* @license MIT
* @copyright Louis-Dominique Dubeau
*/function b(m){return m>=65&&m<=90||m===95||m>=97&&m<=122||m>=192&&m<=214||m>=216&&m<=246||m>=248&&m<=767||m>=880&&m<=893||m>=895&&m<=8191||m>=8204&&m<=8205||m>=8304&&m<=8591||m>=11264&&m<=12271||m>=12289&&m<=55295||m>=63744&&m<=64975||m>=65008&&m<=65533||m>=65536&&m<=983039}Object.defineProperty(T,"__esModule",{value:!0}),T.NC_NAME_START_CHAR="A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",T.NC_NAME_CHAR="-"+T.NC_NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040",T.NC_NAME_START_CHAR_RE=new RegExp("^["+T.NC_NAME_START_CHAR+"]$","u"),T.NC_NAME_CHAR_RE=new RegExp("^["+T.NC_NAME_CHAR+"]$","u"),T.NC_NAME_RE=new RegExp("^["+T.NC_NAME_START_CHAR+"]["+T.NC_NAME_CHAR+"]*$","u"),T.isNCNameStartChar=b,T.isNCNameChar=function(m){return b(m)||m===45||m===46||m>=48&&m<=57||m===183||m>=768&&m<=879||m>=8255&&m<=8256}},{}]},{},[15])(15)})})(Ht);const $t=Vt(Ht.exports);export{$t as E,Bt as c,Ht as e};