(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-455b9d9f"],{"04d1":function(e,t,r){var a=r("342f"),n=a.match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},"0b25":function(e,t,r){var a=r("5926"),n=r("50c4"),s=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=a(e),r=n(t);if(t!==r)throw s("Wrong length or index");return r}},"0eb6":function(e,t,r){"use strict";var a=r("23e7"),n=r("7c37"),s=r("d066"),i=r("d039"),o=r("7c73"),l=r("5c6c"),c=r("9bf2").f,f=r("cb2d"),u=r("edd0"),h=r("1a2d"),d=r("19aa"),p=r("825a"),m=r("aa1f"),b=r("e391"),g=r("cf98"),v=r("0d26"),w=r("69f3"),y=r("83ab"),k=r("c430"),T="DOMException",_="DATA_CLONE_ERR",E=s("Error"),S=s(T)||function(){try{var e=s("MessageChannel")||n("worker_threads").MessageChannel;(new e).port1.postMessage(new WeakMap)}catch(t){if(t.name==_&&25==t.code)return t.constructor}}(),A=S&&S.prototype,x=E.prototype,C=w.set,R=w.getterFor(T),P="stack"in E(T),O=function(e){return h(g,e)&&g[e].m?g[e].c:0},N=function(){d(this,I);var e=arguments.length,t=b(e<1?void 0:arguments[0]),r=b(e<2?void 0:arguments[1],"Error"),a=O(r);if(C(this,{type:T,name:r,message:t,code:a}),y||(this.name=r,this.message=t,this.code=a),P){var n=E(t);n.name=T,c(this,"stack",l(1,v(n.stack,1)))}},I=N.prototype=o(x),D=function(e){return{enumerable:!0,configurable:!0,get:e}},F=function(e){return D((function(){return R(this)[e]}))};y&&(u(I,"code",F("code")),u(I,"message",F("message")),u(I,"name",F("name"))),c(I,"constructor",l(1,N));var M=i((function(){return!(new S instanceof E)})),L=M||i((function(){return x.toString!==m||"2: 1"!==String(new S(1,2))})),B=M||i((function(){return 25!==new S(1,"DataCloneError").code})),U=M||25!==S[_]||25!==A[_],z=k?L||B||U:M;a({global:!0,constructor:!0,forced:z},{DOMException:z?N:S});var W=s(T),H=W.prototype;for(var j in L&&(k||S===W)&&f(H,"toString",m),B&&y&&S===W&&u(H,"code",D((function(){return O(p(this).name)}))),g)if(h(g,j)){var V=g[j],G=V.s,$=l(6,V.c);h(W,G)||c(W,G,$),h(H,G)||c(H,G,$)}},1448:function(e,t,r){var a=r("dfb9"),n=r("b6b7");e.exports=function(e,t){return a(n(e),t)}},"145e":function(e,t,r){"use strict";var a=r("7b0b"),n=r("23cb"),s=r("07fa"),i=r("083a"),o=Math.min;e.exports=[].copyWithin||function(e,t){var r=a(this),l=s(r),c=n(e,l),f=n(t,l),u=arguments.length>2?arguments[2]:void 0,h=o((void 0===u?l:n(u,l))-f,l-c),d=1;f0)f in r?r[c]=r[f]:i(r,c),c+=d,f+=d;return r}},"170b":function(e,t,r){"use strict";var a=r("ebb5"),n=r("50c4"),s=r("23cb"),i=r("b6b7"),o=a.aTypedArray,l=a.exportTypedArrayMethod;l("subarray",(function(e,t){var r=o(this),a=r.length,l=s(e,a),c=i(r);return new c(r.buffer,r.byteOffset+l*r.BYTES_PER_ELEMENT,n((void 0===t?a:s(t,a))-l))}))},"182d":function(e,t,r){var a=r("f8cd"),n=RangeError;e.exports=function(e,t){var r=a(e);if(r%t)throw n("Wrong offset");return r}},"1b3b":function(e,t,r){"use strict";var a=r("df7e"),n=r("ebb5"),s=n.aTypedArray,i=n.exportTypedArrayMethod,o=n.getTypedArrayConstructor;i("toReversed",(function(){return a(s(this),o(this))}))},"1d02":function(e,t,r){"use strict";var a=r("ebb5"),n=r("a258").findLastIndex,s=a.aTypedArray,i=a.exportTypedArrayMethod;i("findLastIndex",(function(e){return n(s(this),e,arguments.length>1?arguments[1]:void 0)}))},"219c":function(e,t,r){"use strict";var a=r("da84"),n=r("e330"),s=r("d039"),i=r("59ed"),o=r("addb"),l=r("ebb5"),c=r("04d1"),f=r("d998"),u=r("2d00"),h=r("512ce"),d=l.aTypedArray,p=l.exportTypedArrayMethod,m=a.Uint16Array,b=m&&n(m.prototype.sort),g=!!b&&!(s((function(){b(new m(2),null)}))&&s((function(){b(new m(2),{})}))),v=!!b&&!s((function(){if(u)return u<74;if(c)return c<67;if(f)return!0;if(h)return h<602;var e,t,r=new m(516),a=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,a[e]=e-2*t+3;for(b(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==a[e])return!0})),w=function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!==r?-1:t!==t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}};p("sort",(function(e){return void 0!==e&&i(e),v?b(this,e):o(d(this),w(e))}),!v||g)},"25a1":function(e,t,r){"use strict";var a=r("ebb5"),n=r("d58f").right,s=a.aTypedArray,i=a.exportTypedArrayMethod;i("reduceRight",(function(e){var t=arguments.length;return n(s(this),e,t,t>1?arguments[1]:void 0)}))},"25ca":function(e,t,r){"use strict";r.r(t),r.d(t,"set_cptable",(function(){return w})),r.d(t,"set_fs",(function(){return tt})),r.d(t,"version",(function(){return Gw})),r.d(t,"parse_xlscfb",(function(){return dg})),r.d(t,"parse_zip",(function(){return Vv})),r.d(t,"read",(function(){return aw})),r.d(t,"readFile",(function(){return nw})),r.d(t,"readFileSync",(function(){return nw})),r.d(t,"write",(function(){return pw})),r.d(t,"writeFile",(function(){return bw})),r.d(t,"writeFileSync",(function(){return bw})),r.d(t,"writeFileAsync",(function(){return vw})),r.d(t,"writeXLSX",(function(){return dw})),r.d(t,"writeFileXLSX",(function(){return gw})),r.d(t,"utils",(function(){return Uw})),r.d(t,"stream",(function(){return Vw})),r.d(t,"SSF",(function(){return Xe})),r.d(t,"CFB",(function(){return Qe})); /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */ var a={version:"0.18.5"},n=1200,s=1252,i=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],o={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},l=function(e){-1!=i.indexOf(e)&&(s=o[0]=e)};function c(){l(1252)}var f=function(e){n=e,l(e)};function u(){f(1200),c()}function h(e){for(var t=[],r=0,a=e.length;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function p(e){for(var t=[],r=0;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var m,b=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return 255==t&&254==r?d(e.slice(2)):254==t&&255==r?p(e.slice(2)):65279==t?e.slice(1):e},g=function(e){return String.fromCharCode(e)},v=function(e){return String.fromCharCode(e)};function w(e){m=e,f=function(e){n=e,l(e)},b=function(e){return 255===e.charCodeAt(0)&&254===e.charCodeAt(1)?m.utils.decode(1200,h(e.slice(2))):e},g=function(e){return 1200===n?String.fromCharCode(e):m.utils.decode(n,[255&e,e>>8])[0]},v=function(e){return m.utils.decode(s,[e])[0]},ta()}var y=null,k=!0,T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function _(e){for(var t="",r=0,a=0,n=0,s=0,i=0,o=0,l=0,c=0;c>2,a=e.charCodeAt(c++),i=(3&r)<<4|a>>4,n=e.charCodeAt(c++),o=(15&a)<<2|n>>6,l=63&n,isNaN(a)?o=l=64:isNaN(n)&&(l=64),t+=T.charAt(s)+T.charAt(i)+T.charAt(o)+T.charAt(l);return t}function E(e){var t="",r=0,a=0,n=0,s=0,i=0,o=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c>4,t+=String.fromCharCode(r),o=T.indexOf(e.charAt(c++)),a=(15&i)<<4|o>>2,64!==o&&(t+=String.fromCharCode(a)),l=T.indexOf(e.charAt(c++)),n=(3&o)<<6|l,64!==l&&(t+=String.fromCharCode(n));return t}var S=function(){return"undefined"!==typeof Buffer&&"undefined"!==typeof process&&"undefined"!==typeof process.versions&&!!process.versions.node}(),A=function(){if("undefined"!==typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function x(e){return S?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function C(e){return S?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var R=function(e){return S?A(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function P(e){if("undefined"===typeof ArrayBuffer)return R(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),a=0;a!=e.length;++a)r[a]=255&e.charCodeAt(a);return t}function O(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],r=0;r>6&31,n[r++]=128|63&i;else if(i>=55296&&i<57344){i=64+(1023&i);var o=1023&e.charCodeAt(++s);n[r++]=240|i>>8&7,n[r++]=128|i>>2&63,n[r++]=128|o>>6&15|(3&i)<<4,n[r++]=128|63&o}else n[r++]=224|i>>12&15,n[r++]=128|i>>6&63,n[r++]=128|63&i;r>a&&(t.push(n.slice(0,r)),r=0,n=x(65535),a=65530)}return t.push(n.slice(0,r)),D(t)}var M=/\u0000/g,L=/[\u0001-\u0006]/g;function B(e){var t="",r=e.length-1;while(r>=0)t+=e.charAt(r--);return t}function U(e,t){var r=""+e;return r.length>=t?r:_t("0",t-r.length)+r}function z(e,t){var r=""+e;return r.length>=t?r:_t(" ",t-r.length)+r}function W(e,t){var r=""+e;return r.length>=t?r:r+_t(" ",t-r.length)}function H(e,t){var r=""+Math.round(e);return r.length>=t?r:_t("0",t-r.length)+r}function j(e,t){var r=""+e;return r.length>=t?r:_t("0",t-r.length)+r}var V=Math.pow(2,32);function G(e,t){if(e>V||e<-V)return H(e,t);var r=Math.round(e);return j(r,t)}function X(e,t){return t=t||0,e.length>=7+t&&103===(32|e.charCodeAt(t))&&101===(32|e.charCodeAt(t+1))&&110===(32|e.charCodeAt(t+2))&&101===(32|e.charCodeAt(t+3))&&114===(32|e.charCodeAt(t+4))&&97===(32|e.charCodeAt(t+5))&&108===(32|e.charCodeAt(t+6))}var Y=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],K=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Z(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var q={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},J={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Q={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function ee(e,t,r){var a=e<0?-1:1,n=e*a,s=0,i=1,o=0,l=1,c=0,f=0,u=Math.floor(n);while(ct&&(c>t?(f=l,o=s):(f=c,o=i)),!r)return[0,a*o,f];var h=Math.floor(a*o/f);return[h,a*o-h*f,f]}function te(e,t,r){if(e>2958465||e<0)return null;var a=0|e,n=Math.floor(86400*(e-a)),s=0,i=[],o={D:a,T:n,u:86400*(e-a)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(a+=1462),o.u>.9999&&(o.u=0,86400==++n&&(o.T=n=0,++a,++o.D)),60===a)i=r?[1317,10,29]:[1900,2,29],s=3;else if(0===a)i=r?[1317,8,29]:[1900,1,0],s=6;else{a>60&&--a;var l=new Date(1900,0,1);l.setDate(l.getDate()+a-1),i=[l.getFullYear(),l.getMonth()+1,l.getDate()],s=l.getDay(),a<60&&(s=(s+6)%7),r&&(s=he(l,i))}return o.y=i[0],o.m=i[1],o.d=i[2],o.S=n%60,n=Math.floor(n/60),o.M=n%60,n=Math.floor(n/60),o.H=n,o.q=s,o}var re=new Date(1899,11,31,0,0,0),ae=re.getTime(),ne=new Date(1900,2,1,0,0,0);function se(e,t){var r=e.getTime();return t?r-=1262304e5:e>=ne&&(r+=864e5),(r-(ae+6e4*(e.getTimezoneOffset()-re.getTimezoneOffset())))/864e5}function ie(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function oe(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function le(e){var t=e<0?12:11,r=ie(e.toFixed(12));return r.length<=t?r:(r=e.toPrecision(10),r.length<=t?r:e.toExponential(5))}function ce(e){var t=ie(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}function fe(e){var t,r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=r>=-4&&r<=-1?e.toPrecision(10+r):Math.abs(r)<=9?le(e):10===r?e.toFixed(10).substr(0,12):ce(e),ie(oe(t.toUpperCase()))}function ue(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):fe(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return je(14,se(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function he(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function de(e,t,r,a){var n,s="",i=0,o=0,l=r.y,c=0;switch(e){case 98:l=r.y+543;case 121:switch(t.length){case 1:case 2:n=l%100,c=2;break;default:n=l%1e4,c=4;break}break;case 109:switch(t.length){case 1:case 2:n=r.m,c=t.length;break;case 3:return K[r.m-1][1];case 5:return K[r.m-1][0];default:return K[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:n=r.d,c=t.length;break;case 3:return Y[r.q][0];default:return Y[r.q][1]}break;case 104:switch(t.length){case 1:case 2:n=1+(r.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:n=r.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:n=r.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==r.u||"s"!=t&&"ss"!=t?(o=a>=2?3===a?1e3:100:1===a?10:1,i=Math.round(o*(r.S+r.u)),i>=60*o&&(i=0),"s"===t?0===i?"0":""+i/o:(s=U(i,2+a),"ss"===t?s.substr(0,2):"."+s.substr(2,t.length-1))):U(r.S,t.length);case 90:switch(t){case"[h]":case"[hh]":n=24*r.D+r.H;break;case"[m]":case"[mm]":n=60*(24*r.D+r.H)+r.M;break;case"[s]":case"[ss]":n=60*(60*(24*r.D+r.H)+r.M)+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}c=3===t.length?1:2;break;case 101:n=l,c=1;break}var f=c>0?U(n,c):"";return f}function pe(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,a=e.substr(0,r);r!=e.length;r+=t)a+=(a.length>0?",":"")+e.substr(r,t);return a}var me=/%/g;function be(e,t,r){var a=t.replace(me,""),n=t.length-a.length;return Fe(e,a,r*Math.pow(10,2*n))+_t("%",n)}function ge(e,t,r){var a=t.length-1;while(44===t.charCodeAt(a-1))--a;return Fe(e,t.substr(0,a),r/Math.pow(10,3*(t.length-a)))}function ve(e,t){var r,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+ve(e,-t);var n=e.indexOf(".");-1===n&&(n=e.indexOf("E"));var s=Math.floor(Math.log(t)*Math.LOG10E)%n;if(s<0&&(s+=n),r=(t/Math.pow(10,s)).toPrecision(a+1+(n+s)%n),-1===r.indexOf("e")){var i=Math.floor(Math.log(t)*Math.LOG10E);-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(i-r.length+s):r+="E+"+(i-s);while("0."===r.substr(0,2))r=r.charAt(0)+r.substr(2,n)+"."+r.substr(2+n),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,r,a){return t+r+a.substr(0,(n+s)%n)+"."+a.substr(s)+"E"}))}else r=t.toExponential(a);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var we=/# (\?+)( ?)\/( ?)(\d+)/;function ye(e,t,r){var a=parseInt(e[4],10),n=Math.round(t*a),s=Math.floor(n/a),i=n-s*a,o=a;return r+(0===s?"":""+s)+" "+(0===i?_t(" ",e[1].length+1+e[4].length):z(i,e[1].length)+e[2]+"/"+e[3]+U(o,e[4].length))}function ke(e,t,r){return r+(0===t?"":""+t)+_t(" ",e[1].length+2+e[4].length)}var Te=/^#*0*\.([0#]+)/,_e=/\).*[0#]/,Ee=/\(###\) ###\\?-####/;function Se(e){for(var t,r="",a=0;a!=e.length;++a)switch(t=e.charCodeAt(a)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function Ae(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function xe(e,t){var r=e-Math.floor(e),a=Math.pow(10,t);return t<(""+Math.round(r*a)).length?0:Math.round(r*a)}function Ce(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Re(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}function Pe(e,t,r){if(40===e.charCodeAt(0)&&!t.match(_e)){var a=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Pe("n",a,r):"("+Pe("n",a,-r)+")"}if(44===t.charCodeAt(t.length-1))return ge(e,t,r);if(-1!==t.indexOf("%"))return be(e,t,r);if(-1!==t.indexOf("E"))return ve(t,r);if(36===t.charCodeAt(0))return"$"+Pe(e,t.substr(" "==t.charAt(1)?2:1),r);var n,s,i,o,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+G(l,t.length);if(t.match(/^[#?]+$/))return n=G(r,0),"0"===n&&(n=""),n.length>t.length?n:Se(t.substr(0,t.length-n.length))+n;if(s=t.match(we))return ye(s,l,c);if(t.match(/^#+0+$/))return c+G(l,t.length-t.indexOf("0"));if(s=t.match(Te))return n=Ae(r,s[1].length).replace(/^([^\.]+)$/,"$1."+Se(s[1])).replace(/\.$/,"."+Se(s[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+_t("0",Se(s[1]).length-t.length)})),-1!==t.indexOf("0.")?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return c+Ae(l,s[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=t.match(/^#{1,3},##0(\.?)$/))return c+pe(G(l,0));if(s=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Pe(e,t,-r):pe(""+(Math.floor(r)+Ce(r,s[1].length)))+"."+U(xe(r,s[1].length),s[1].length);if(s=t.match(/^#,#*,#0/))return Pe(e,t.replace(/^#,#*,/,""),r);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=B(Pe(e,t.replace(/[\\-]/g,""),r)),i=0,B(B(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return i=0?De("n",a,r):"("+De("n",a,-r)+")"}if(44===t.charCodeAt(t.length-1))return Oe(e,t,r);if(-1!==t.indexOf("%"))return Ne(e,t,r);if(-1!==t.indexOf("E"))return Ie(t,r);if(36===t.charCodeAt(0))return"$"+De(e,t.substr(" "==t.charAt(1)?2:1),r);var n,s,i,o,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+U(l,t.length);if(t.match(/^[#?]+$/))return n=""+r,0===r&&(n=""),n.length>t.length?n:Se(t.substr(0,t.length-n.length))+n;if(s=t.match(we))return ke(s,l,c);if(t.match(/^#+0+$/))return c+U(l,t.length-t.indexOf("0"));if(s=t.match(Te))return n=(""+r).replace(/^([^\.]+)$/,"$1."+Se(s[1])).replace(/\.$/,"."+Se(s[1])),n=n.replace(/\.(\d*)$/,(function(e,t){return"."+t+_t("0",Se(s[1]).length-t.length)})),-1!==t.indexOf("0.")?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=t.match(/^#{1,3},##0(\.?)$/))return c+pe(""+l);if(s=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+De(e,t,-r):pe(""+r)+"."+_t("0",s[1].length);if(s=t.match(/^#,#*,#0/))return De(e,t.replace(/^#,#*,/,""),r);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=B(De(e,t.replace(/[\\-]/g,""),r)),i=0,B(B(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return i-1||"\\"==r&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1));break;case"?":while(e.charAt(++t)===r);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":while(t-1);break;case" ":++t;break;default:++t;break}return!1}function Ue(e,t,r,a){var n,s,i,o=[],l="",c=0,f="",u="t",h="H";while(c=12?"P":"A"),m.t="T",h="h",c+=3):"AM/PM"===e.substr(c,5).toUpperCase()?(null!=n&&(m.v=n.H>=12?"PM":"AM"),m.t="T",c+=5,h="h"):"上午/下午"===e.substr(c,5).toUpperCase()?(null!=n&&(m.v=n.H>=12?"下午":"上午"),m.t="T",c+=5,h="h"):(m.t="t",++c),null==n&&"T"===m.t)return"";o[o.length]=m,u=f;break;case"[":l=f;while("]"!==e.charAt(c++)&&c-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",Be(e)||(o[o.length]={t:"t",v:l}));break;case".":if(null!=n){l=f;while(++c-1)l+=f;o[o.length]={t:"n",v:l};break;case"?":l=f;while(e.charAt(++c)===f)l+=f;o[o.length]={t:f,v:l},u=f;break;case"*":++c," "!=e.charAt(c)&&"*"!=e.charAt(c)||++c;break;case"(":case")":o[o.length]={t:1===a?"t":f,v:f},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":l=f;while(c-1)l+=e.charAt(c);o[o.length]={t:"D",v:l};break;case" ":o[o.length]={t:f,v:f},++c;break;case"$":o[o.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f))throw new Error("unrecognized character "+f+" in "+e);o[o.length]={t:"t",v:f},++c;break}var b,g=0,v=0;for(c=o.length-1,u="t";c>=0;--c)switch(o[c].t){case"h":case"H":o[c].t=h,u="h",g<1&&(g=1);break;case"s":(b=o[c].v.match(/\.0+$/))&&(v=Math.max(v,b[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":u=o[c].t;break;case"m":"s"===u&&(o[c].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&o[c].v.match(/[Hh]/)&&(g=1),g<2&&o[c].v.match(/[Mm]/)&&(g=2),g<3&&o[c].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:n.u>=.5&&(n.u=0,++n.S),n.S>=60&&(n.S=0,++n.M),n.M>=60&&(n.M=0,++n.H);break;case 2:n.u>=.5&&(n.u=0,++n.S),n.S>=60&&(n.S=0,++n.M);break}var w,y="";for(c=0;c0){40==y.charCodeAt(0)?(k=t<0&&45===y.charCodeAt(0)?-t:t,T=Fe("n",y,k)):(k=t<0&&a>1?-t:t,T=Fe("n",y,k),k<0&&o[0]&&"t"==o[0].t&&(T=T.substr(1),o[0].v="-"+o[0].v)),w=T.length-1;var E=o.length;for(c=0;c-1){E=c;break}var S=o.length;if(E===o.length&&-1===T.indexOf("E")){for(c=o.length-1;c>=0;--c)null!=o[c]&&-1!=="n?".indexOf(o[c].t)&&(w>=o[c].v.length-1?(w-=o[c].v.length,o[c].v=T.substr(w+1,o[c].v.length)):w<0?o[c].v="":(o[c].v=T.substr(0,w+1),w=-1),o[c].t="t",S=c);w>=0&&S=0;--c)if(null!=o[c]&&-1!=="n?".indexOf(o[c].t)){for(s=o[c].v.indexOf(".")>-1&&c===E?o[c].v.indexOf(".")-1:o[c].v.length-1,_=o[c].v.substr(s+1);s>=0;--s)w>=0&&("0"===o[c].v.charAt(s)||"#"===o[c].v.charAt(s))&&(_=T.charAt(w--)+_);o[c].v=_,o[c].t="t",S=c}for(w>=0&&S-1&&c===E?o[c].v.indexOf(".")+1:0,_=o[c].v.substr(0,s);s-1&&(k=a>1&&t<0&&c>0&&"-"===o[c-1].v?-t:t,o[c].v=Fe(o[c].t,o[c].v,k),o[c].t="t");var A="";for(c=0;c!==o.length;++c)null!=o[c]&&(A+=o[c].v);return A}var ze=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function We(e,t){if(null==t)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function He(e,t){var r=Me(e),a=r.length,n=r[a-1].indexOf("@");if(a<4&&n>-1&&--a,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if("number"!==typeof t)return[4,4===r.length||n>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=n>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=n>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=n>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break;case 4:break}var s=t>0?r[0]:t<0?r[1]:r[2];if(-1===r[0].indexOf("[")&&-1===r[1].indexOf("["))return[a,s];if(null!=r[0].match(/\[[=<>]/)||null!=r[1].match(/\[[=<>]/)){var i=r[0].match(ze),o=r[1].match(ze);return We(t,i)?[a,r[0]]:We(t,o)?[a,r[1]]:[a,r[null!=i&&null!=o?2:1]]}return[a,s]}function je(e,t,r){null==r&&(r={});var a="";switch(typeof e){case"string":a="m/d/yy"==e&&r.dateNF?r.dateNF:e;break;case"number":a=14==e&&r.dateNF?r.dateNF:(null!=r.table?r.table:q)[e],null==a&&(a=r.table&&r.table[J[e]]||q[J[e]]),null==a&&(a=Q[e]||"General");break}if(X(a,0))return ue(t,r);t instanceof Date&&(t=se(t,r.date1904));var n=He(a,t);if(X(n[1]))return ue(t,r);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return Ue(n[1],t,r,n[0])}function Ve(e,t){if("number"!=typeof t){t=+t||-1;for(var r=0;r<392;++r)if(void 0!=q[r]){if(q[r]==e){t=r;break}}else t<0&&(t=r);t<0&&(t=391)}return q[t]=e,t}function Ge(e){for(var t=0;392!=t;++t)void 0!==e[t]&&Ve(e[t],t)}function $e(){q=Z()}var Xe={format:je,load:Ve,_table:q,load_table:Ge,parse_date_code:te,is_date:Be,get_table:function(){return Xe._table=q}},Ye={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Ke=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Ze(e){var t="number"==typeof e?q[e]:e;return t=t.replace(Ke,"(\\d+)"),new RegExp("^"+t+"$")}function qe(e,t,r){var a=-1,n=-1,s=-1,i=-1,o=-1,l=-1;(t.match(Ke)||[]).forEach((function(e,t){var c=parseInt(r[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":a=c;break;case"d":s=c;break;case"h":i=c;break;case"s":l=c;break;case"m":i>=0?o=c:n=c;break}})),l>=0&&-1==o&&n>=0&&(o=n,n=-1);var c=(""+(a>=0?a:(new Date).getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);7==c.length&&(c="0"+c),8==c.length&&(c="20"+c);var f=("00"+(i>=0?i:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==i&&-1==o&&-1==l?c:-1==a&&-1==n&&-1==s?f:c+"T"+f}var Je=function(){var e={};function t(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=r,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}e.version="1.2.0";var r=t();function a(e){var t=0,r=0,a=0,n="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(a=0;256!=a;++a)n[a]=e[a];for(a=0;256!=a;++a)for(r=e[a],t=256+a;t<4096;t+=256)r=n[t]=r>>>8^e[255&r];var s=[];for(a=1;16!=a;++a)s[a-1]="undefined"!==typeof Int32Array?n.subarray(256*a,256*a+256):n.slice(256*a,256*a+256);return s}var n=a(r),s=n[0],i=n[1],o=n[2],l=n[3],c=n[4],f=n[5],u=n[6],h=n[7],d=n[8],p=n[9],m=n[10],b=n[11],g=n[12],v=n[13],w=n[14];function y(e,t){for(var a=-1^t,n=0,s=e.length;n>>8^r[255&(a^e.charCodeAt(n++))];return~a}function k(e,t){for(var a=-1^t,n=e.length-15,y=0;y>8&255]^g[e[y++]^a>>16&255]^b[e[y++]^a>>>24]^m[e[y++]]^p[e[y++]]^d[e[y++]]^h[e[y++]]^u[e[y++]]^f[e[y++]]^c[e[y++]]^l[e[y++]]^o[e[y++]]^i[e[y++]]^s[e[y++]]^r[e[y++]];n+=15;while(y>>8^r[255&(a^e[y++])];return~a}function T(e,t){for(var a=-1^t,n=0,s=e.length,i=0,o=0;n>>8^r[255&(a^i)]:i<2048?(a=a>>>8^r[255&(a^(192|i>>6&31))],a=a>>>8^r[255&(a^(128|63&i))]):i>=55296&&i<57344?(i=64+(1023&i),o=1023&e.charCodeAt(n++),a=a>>>8^r[255&(a^(240|i>>8&7))],a=a>>>8^r[255&(a^(128|i>>2&63))],a=a>>>8^r[255&(a^(128|o>>6&15|(3&i)<<4))],a=a>>>8^r[255&(a^(128|63&o))]):(a=a>>>8^r[255&(a^(224|i>>12&15))],a=a>>>8^r[255&(a^(128|i>>6&63))],a=a>>>8^r[255&(a^(128|63&i))]);return~a}return e.table=r,e.bstr=y,e.buf=k,e.str=T,e}(),Qe=function(){var e,t={};function r(e,t){for(var r=e.split("/"),a=t.split("/"),n=0,s=0,i=Math.min(r.length,a.length);n>>1,e.write_shift(2,r);var a=t.getFullYear()-1980;a=a<<4|t.getMonth()+1,a=a<<5|t.getDate(),e.write_shift(2,a)}function i(e){var t=65535&e.read_shift(2),r=65535&e.read_shift(2),a=new Date,n=31&r;r>>>=5;var s=15&r;r>>>=4,a.setMilliseconds(0),a.setFullYear(r+1980),a.setMonth(s-1),a.setDate(n);var i=31&t;t>>>=5;var o=63&t;return t>>>=6,a.setHours(t),a.setMinutes(o),a.setSeconds(i<<1),a}function o(e){pa(e,0);var t={},r=0;while(e.l<=e.length-4){var a=e.read_shift(2),n=e.read_shift(2),s=e.l+n,i={};switch(a){case 21589:r=e.read_shift(1),1&r&&(i.mtime=e.read_shift(4)),n>5&&(2&r&&(i.atime=e.read_shift(4)),4&r&&(i.ctime=e.read_shift(4))),i.mtime&&(i.mt=new Date(1e3*i.mtime));break}e.l=s,t[a]=i}return t}function l(){return e||(e={})}function c(e,t){if(80==e[0]&&75==e[1])return Oe(e,t);if(109==(32|e[0])&&105==(32|e[1]))return ze(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var r=3,a=512,n=0,s=0,i=0,o=0,l=0,c=[],p=e.slice(0,512);pa(p,0);var b=f(p);switch(r=b[0],r){case 3:a=512;break;case 4:a=4096;break;case 0:if(0==b[1])return Oe(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+r)}512!==a&&(p=e.slice(0,a),pa(p,28));var w=e.slice(0,a);u(p,r);var y=p.read_shift(4,"i");if(3===r&&0!==y)throw new Error("# Directory Sectors: Expected 0 saw "+y);p.l+=4,i=p.read_shift(4,"i"),p.l+=4,p.chk("00100000","Mini Stream Cutoff Size: "),o=p.read_shift(4,"i"),n=p.read_shift(4,"i"),l=p.read_shift(4,"i"),s=p.read_shift(4,"i");for(var k=-1,T=0;T<109;++T){if(k=p.read_shift(4,"i"),k<0)break;c[T]=k}var _=h(e,a);m(l,s,_,a,c);var E=g(_,i,c,a);E[i].name="!Directory",n>0&&o!==U&&(E[o].name="!MiniFAT"),E[c[0]].name="!FAT",E.fat_addrs=c,E.ssz=a;var S={},A=[],x=[],C=[];v(i,E,_,A,n,S,x,o),d(x,C,A),A.shift();var R={FileIndex:x,FullPaths:C};return t&&t.raw&&(R.raw={header:w,sectors:_}),R}function f(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(z,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}function u(e,t){var r=9;switch(e.l+=2,r=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+r);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+r);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+r)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}function h(e,t){for(var r=Math.ceil(e.length/t)-1,a=[],n=1;n0&&i>=0)s.push(t.slice(i*B,i*B+B)),n-=B,i=ia(r,4*i);return 0===s.length?ba(0):D(s).slice(0,e.size)}function m(e,t,r,a,n){var s=U;if(e===U){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var i=r[e],o=(a>>>2)-1;if(!i)return;for(var l=0;l=0;){n[l]=!0,s[s.length]=l,i.push(e[l]);var f=r[Math.floor(4*l/a)];if(c=4*l&o,a<4+c)throw new Error("FAT boundary crossed: "+l+" 4 "+a);if(!e[f])break;l=ia(e[f],c)}return{nodes:s,data:Fr([i])}}function g(e,t,r,a){var n=e.length,s=[],i=[],o=[],l=[],c=a-1,f=0,u=0,h=0,d=0;for(f=0;f=n&&(h-=n),!i[h]){l=[];var p=[];for(u=h;u>=0;){p[u]=!0,i[u]=!0,o[o.length]=u,l.push(e[u]);var m=r[Math.floor(4*u/a)];if(d=4*u&c,a<4+d)throw new Error("FAT boundary crossed: "+u+" 4 "+a);if(!e[m])break;if(u=ia(e[m],d),p[u])break}s[h]={nodes:o,data:Fr([l])}}return s}function v(e,t,r,a,n,s,i,o){for(var l,c=0,f=a.length?2:0,u=t[e].data,h=0,d=0;h0&&c!==U&&(t[c].name="!StreamData")):g.size>=4096?(g.storage="fat",void 0===t[g.start]&&(t[g.start]=b(r,g.start,t.fat_addrs,t.ssz)),t[g.start].name=g.name,g.content=t[g.start].data.slice(0,g.size)):(g.storage="minifat",g.size<0?g.size=0:c!==U&&g.start!==U&&t[c]&&(g.content=p(g,t[c].data,(t[o]||{}).data))),g.content&&pa(g.content,0),s[l]=g,i.push(g)}}function w(e,t){return new Date(1e3*(sa(e,t+4)/1e7*Math.pow(2,32)+sa(e,t)/1e7-11644473600))}function y(t,r){return l(),c(e.readFileSync(t),r)}function k(e,t){var r=t&&t.type;switch(r||S&&Buffer.isBuffer(e)&&(r="buffer"),r||"base64"){case"file":return y(e,t);case"base64":return c(R(E(e)),t);case"binary":return c(R(e),t)}return c(e,t)}function T(e,t){var r=t||{},a=r.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=a+"/",e.FileIndex[0]={name:a,type:5}),r.CLSID&&(e.FileIndex[0].clsid=r.CLSID),P(e)}function P(e){var t="Sh33tJ5";if(!Qe.find(e,"/"+t)){var r=ba(4);r[0]=55,r[1]=r[3]=50,r[2]=54,e.FileIndex.push({name:t,type:2,content:r,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),O(e)}}function O(e,t){T(e);for(var s=!1,i=!1,o=e.FullPaths.length-1;o>=0;--o){var l=e.FileIndex[o];switch(l.type){case 0:i?s=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:i=!0,isNaN(l.R*l.L*l.C)&&(s=!0),l.R>-1&&l.L>-1&&l.R==l.L&&(s=!0);break;default:s=!0;break}}if(s||t){var c=new Date(1987,1,19),f=0,u=Object.create?Object.create(null):{},h=[];for(o=0;o1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(f=o+1;f=h.length?-1:f,f=o+1;f=h.length?-1:f,p.type=1}else a(e.FullPaths[o+1]||"")==a(m)&&(p.R=o+1),p.type=2}}}function N(e,t){var r=t||{};if("mad"==r.fileType)return We(e,r);switch(O(e),r.fileType){case"zip":return Ie(e,r)}var a=function(e){for(var t=0,r=0,a=0;a0&&(s<4096?t+=s+63>>6:r+=s+511>>9)}}var i=e.FullPaths.length+3>>2,o=t+7>>3,l=t+127>>7,c=o+r+i+l,f=c+127>>7,u=f<=109?0:Math.ceil((f-109)/127);while(c+f+u+127>>7>f)u=++f<=109?0:Math.ceil((f-109)/127);var h=[1,u,f,l,i,r,t,0];return e.FileIndex[0].size=t<<6,h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3),h}(e),n=ba(a[7]<<9),s=0,i=0;for(s=0;s<8;++s)n.write_shift(1,W[s]);for(s=0;s<8;++s)n.write_shift(2,0);for(n.write_shift(2,62),n.write_shift(2,3),n.write_shift(2,65534),n.write_shift(2,9),n.write_shift(2,6),s=0;s<3;++s)n.write_shift(2,0);for(n.write_shift(4,0),n.write_shift(4,a[2]),n.write_shift(4,a[0]+a[1]+a[2]+a[3]-1),n.write_shift(4,0),n.write_shift(4,4096),n.write_shift(4,a[3]?a[0]+a[1]+a[2]-1:U),n.write_shift(4,a[3]),n.write_shift(-4,a[1]?a[0]-1:U),n.write_shift(4,a[1]),s=0;s<109;++s)n.write_shift(-4,s>9)));o(a[6]+7>>3);while(511&n.l)n.write_shift(-4,j.ENDOFCHAIN);for(i=s=0,l=0;l=4096||(f.start=i,o(c+63>>6)));while(511&n.l)n.write_shift(-4,j.ENDOFCHAIN);for(s=0;s=4096)if(n.l=f.start+1<<9,S&&Buffer.isBuffer(f.content))f.content.copy(n,n.l,0,f.size),n.l+=f.size+511&-512;else{for(l=0;l0&&f.size<4096)if(S&&Buffer.isBuffer(f.content))f.content.copy(n,n.l,0,f.size),n.l+=f.size+63&-64;else{for(l=0;l>16|t>>8|t)}for(var ee="undefined"!==typeof Uint8Array,te=ee?new Uint8Array(256):[],re=0;re<256;++re)te[re]=Q(re);function ae(e,t){var r=te[255&e];return t<=8?r>>>8-t:(r=r<<8|te[e>>8&255],t<=16?r>>>16-t:(r=r<<8|te[e>>16&255],r>>>24-t))}function ne(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=6?0:e[a+1]<<8))>>>r&3}function se(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=5?0:e[a+1]<<8))>>>r&7}function ie(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=4?0:e[a+1]<<8))>>>r&15}function oe(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=3?0:e[a+1]<<8))>>>r&31}function le(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=1?0:e[a+1]<<8))>>>r&127}function ce(e,t,r){var a=7&t,n=t>>>3,s=(1<>>a;return r<8-a?i&s:(i|=e[n+1]<<8-a,r<16-a?i&s:(i|=e[n+2]<<16-a,r<24-a||(i|=e[n+3]<<24-a),i&s))}function fe(e,t,r){var a=7&t,n=t>>>3;return a<=5?e[n]|=(7&r)<>8-a),t+3}function ue(e,t,r){var a=7&t,n=t>>>3;return r=(1&r)<>>3;return r<<=a,e[n]|=255&r,r>>>=8,e[n+1]=r,t+8}function de(e,t,r){var a=7&t,n=t>>>3;return r<<=a,e[n]|=255&r,r>>>=8,e[n+1]=255&r,e[n+2]=r>>>8,t+16}function pe(e,t){var r=e.length,a=2*r>t?2*r:t+5,n=0;if(r>=t)return e;if(S){var s=C(a);if(e.copy)e.copy(s);else for(;n>a-u,i=(1<=0;--i)t[o|i<0)t[t.l++]=e[r++]}return t.l}function s(t,r){var n=0,s=0,i=ee?new Uint16Array(32768):[];while(s0)r[r.l++]=t[s++];n=8*r.l}else{n=fe(r,n,+!(s+o!=t.length)+2);var l=0;while(o-- >0){var c=t[s];l=32767&(l<<5^c);var f=-1,u=0;if((f=i[l])&&(f|=-32768&s,f>s&&(f-=32768),f2){c=a[u],c<=22?n=he(r,n,te[c+1]>>1)-1:(he(r,n,3),n+=5,he(r,n,te[c-23]>>5),n+=3);var h=c<8?0:c-4>>2;h>0&&(de(r,n,u-q[c]),n+=h),c=e[s-f],n=he(r,n,te[c]>>3),n-=3;var d=c<4?0:c-2>>1;d>0&&(de(r,n,s-f-J[c]),n+=d);for(var p=0;p>8-p;for(var m=(1<<7-p)-1;m>=0;--m)Ee[d|m<>>=3){case 16:s=3+ne(e,t),t+=2,d=b[b.length-1];while(s-- >0)b.push(d);break;case 17:s=3+se(e,t),t+=3;while(s-- >0)b.push(0);break;case 18:s=11+le(e,t),t+=7;while(s-- >0)b.push(0);break;default:b.push(d),l>>0,o=0,l=0;while(0==(1&a))if(a=se(e,r),r+=3,a>>>1!=0)for(a>>1==1?(o=9,l=5):(r=xe(e,r),o=Se,l=Ae);;){!t&&i>>1==1?ge[c]:Te[c];if(r+=15&f,f>>>=4,0===(f>>>8&255))n[s++]=f;else{if(256==f)break;f-=257;var u=f<8?0:f-4>>2;u>5&&(u=0);var h=s+q[f];u>0&&(h+=ce(e,r,u),r+=u),c=ce(e,r,l),f=a>>>1==1?ve[c]:_e[c],r+=15&f,f>>>=4;var d=f<4?0:f-2>>1,p=J[f];d>0&&(p+=ce(e,r,d),r+=d),!t&&i>>3]|e[1+(r>>>3)]<<8;if(r+=32,m>0){!t&&i0)n[s++]=e[r>>>3],r+=8}}return t?[n,r+7>>>3]:[n.slice(0,s),r+7>>>3]}function Re(e,t){var r=e.slice(e.l||0),a=Ce(r,t);return e.l+=a[1],a[0]}function Pe(e,t){if(!e)throw new Error(t);"undefined"!==typeof console&&console.error(t)}function Oe(e,t){var r=e;pa(r,0);var a=[],n=[],s={FileIndex:a,FullPaths:n};T(s,{root:t.root});var i=r.length-4;while((80!=r[i]||75!=r[i+1]||5!=r[i+2]||6!=r[i+3])&&i>=0)--i;r.l=i+4,r.l+=4;var l=r.read_shift(2);r.l+=6;var c=r.read_shift(4);for(r.l=c,i=0;i0)if(r=r.slice(0,r.length-1),r=r.slice(0,r.lastIndexOf("/")+1),s.slice(0,r.length)==r)break;var i=(a[1]||"").match(/boundary="(.*?)"/);if(!i)throw new Error("MAD cannot find boundary");var o="--"+(i[1]||""),l=[],c=[],f={FileIndex:l,FullPaths:c};T(f);var u,h=0;for(n=0;n=32&&d<128&&++u;var m=u>=4*h/5;n.push(a),n.push("Content-Location: "+(r.root||"file:///C:/SheetJS/")+i),n.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),n.push("Content-Type: "+Fe(o,i)),n.push(""),n.push(m?Le(f):Me(f))}return n.push(a+"--\r\n"),n.join("\r\n")}function He(e){var t={};return T(t,e),t}function je(e,t,r,a){var s=a&&a.unsafe;s||T(e);var i=!s&&Qe.find(e,t);if(!i){var o=e.FullPaths[0];t.slice(0,o.length)==o?o=t:("/"!=o.slice(-1)&&(o+="/"),o=(o+t).replace("//","/")),i={name:n(t),type:2},e.FileIndex.push(i),e.FullPaths.push(o),s||Qe.utils.cfb_gc(e)}return i.content=r,i.size=r?r.length:0,a&&(a.CLSID&&(i.clsid=a.CLSID),a.mt&&(i.mt=a.mt),a.ct&&(i.ct=a.ct)),i}function Ve(e,t){T(e);var r=Qe.find(e,t);if(r)for(var a=0;a3&&(a=!0),n[s].slice(n[s].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[s].slice(n[s].length-1));case"D":r*=24;case"H":r*=60;case"M":if(!a)throw new Error("Unsupported ISO Duration Field: M");r*=60;case"S":break}t+=r*parseInt(n[s],10)}return t}var gt=new Date("2017-02-19T19:06:09.000Z"),vt=isNaN(gt.getFullYear())?new Date("2/19/17"):gt,wt=2017==vt.getFullYear();function yt(e,t){var r=new Date(e);if(wt)return t>0?r.setTime(r.getTime()+60*r.getTimezoneOffset()*1e3):t<0&&r.setTime(r.getTime()-60*r.getTimezoneOffset()*1e3),r;if(e instanceof Date)return e;if(1917==vt.getFullYear()&&!isNaN(r.getFullYear())){var a=r.getFullYear();return e.indexOf(""+a)>-1||r.setFullYear(r.getFullYear()+100),r}var n=e.match(/\d+/g)||["2017","2","19","0","0","0"],s=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);return e.indexOf("Z")>-1&&(s=new Date(s.getTime()-60*s.getTimezoneOffset()*1e3)),s}function kt(e,t){if(S&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return pr(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return pr(p(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!==typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return pr(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return pr(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚","ƒ":"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰","Š":"Š","‹":"‹","Œ":"Œ","Ž":"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™","š":"š","›":"›","œ":"œ","ž":"ž","Ÿ":"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return r[e]||e}))}catch(s){}for(var a=[],n=0;n!=e.length;++n)a.push(String.fromCharCode(e[n]));return a.join("")}function Tt(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Tt(e[r]));return t}function _t(e,t){var r="";while(r.length3&&-1==St.indexOf(i))return r}else if(i.match(/[a-z]/))return r;return a<0||a>8099?r:(n>0||s>1)&&101!=a?t:e.match(/[^-0-9:,\/\\]/)?r:t}var xt=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,r,a){if(e||"string"==typeof r)return t.split(r);for(var n=t.split(r),s=[n[0]],i=1;i\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,jt=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,Vt=/<[^>]*>/g,Gt=Wt.match(jt)?jt:Vt,$t=/<\w*:/,Xt=/<(\/?)\w+:/;function Yt(e,t,r){for(var a={},n=0,s=0;n!==e.length;++n)if(32===(s=e.charCodeAt(n))||10===s||13===s)break;if(t||(a[0]=e.slice(0,n)),n===e.length)return a;var i=e.match(Ht),o=0,l="",c=0,f="",u="",h=1;if(i)for(c=0;c!=i.length;++c){for(u=i[c],s=0;s!=u.length;++s)if(61===u.charCodeAt(s))break;f=u.slice(0,s).trim();while(32==u.charCodeAt(s+1))++s;for(h=34==(n=u.charCodeAt(s+1))||39==n?1:0,l=u.slice(s+1+h,u.length-h),o=0;o!=f.length;++o)if(58===f.charCodeAt(o))break;if(o===f.length)f.indexOf("_")>0&&(f=f.slice(0,f.indexOf("_"))),a[f]=l,r||(a[f.toLowerCase()]=l);else{var d=(5===o&&"xmlns"===f.slice(0,5)?"xmlns":"")+f.slice(o+1);if(a[d]&&"ext"==f.slice(o-3,o))continue;a[d]=l,r||(a[d.toLowerCase()]=l)}}return a}function Kt(e){return e.replace(Xt,"<$1")}var Zt={""":'"',"'":"'",">":">","<":"<","&":"&"},qt=ot(Zt),Jt=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function r(a){var n=a+"",s=n.indexOf("-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var i=n.indexOf("]]>");return r(n.slice(0,s))+n.slice(s+9,i)+r(n.slice(i+3))}}(),Qt=/[&<>'"]/g,er=/[\u0000-\u0008\u000b-\u001f]/g;function tr(e){var t=e+"";return t.replace(Qt,(function(e){return qt[e]})).replace(er,(function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function rr(e){return tr(e).replace(/ /g,"_x0020_")}var ar=/[\u0000-\u001f]/g;function nr(e){var t=e+"";return t.replace(Qt,(function(e){return qt[e]})).replace(/\n/g,"
").replace(ar,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}function sr(e){var t=e+"";return t.replace(Qt,(function(e){return qt[e]})).replace(ar,(function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}var ir=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(r){return r.replace(e,t)}}();function or(e){return e.replace(/(\r\n|[\r\n])/g," ")}function lr(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function cr(e){var t="",r=0,a=0,n=0,s=0,i=0,o=0;while(r191&&a<224?(i=(31&a)<<6,i|=63&n,t+=String.fromCharCode(i)):(s=e.charCodeAt(r++),a<240?t+=String.fromCharCode((15&a)<<12|(63&n)<<6|63&s):(i=e.charCodeAt(r++),o=((7&a)<<18|(63&n)<<12|(63&s)<<6|63&i)-65536,t+=String.fromCharCode(55296+(o>>>10&1023)),t+=String.fromCharCode(56320+(1023&o)))));return t}function fr(e){var t,r,a,n=x(2*e.length),s=1,i=0,o=0;for(r=0;r>>10&1023),t=56320+(1023&t)),0!==o&&(n[i++]=255&o,n[i++]=o>>>8,o=0),n[i++]=t%256,n[i++]=t>>>8;return n.slice(0,i).toString("ucs2")}function ur(e){return A(e,"binary").toString("utf8")}var hr="foo bar baz☃🍣",dr=S&&(ur(hr)==cr(hr)&&ur||fr(hr)==cr(hr)&&fr)||cr,pr=S?function(e){return A(e,"utf8").toString("binary")}:function(e){var t=[],r=0,a=0,n=0;while(r>6))),t.push(String.fromCharCode(128+(63&a)));break;case a>=55296&&a<57344:a-=55296,n=e.charCodeAt(r++)-56320+(a<<10),t.push(String.fromCharCode(240+(n>>18&7))),t.push(String.fromCharCode(144+(n>>12&63))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(63&n)));break;default:t.push(String.fromCharCode(224+(a>>12))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(63&a)))}return t.join("")},mr=function(){var e={};return function(t,r){var a=t+"|"+(r||"");return e[a]?e[a]:e[a]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",r||"")}}(),br=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var r=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,"\n").replace(/<[^>]*>/g,""),a=0;a([\\s\\S]*?)","g")}}(),vr=/<\/?(?:vt:)?variant>/g,wr=/<(?:vt:)([^>]*)>([\s\S]*)"+t+""}function _r(e){return st(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function Er(e,t,r){return"<"+e+(null!=r?_r(r):"")+(null!=t?(t.match(kr)?' xml:space="preserve"':"")+">"+t+""}function Sr(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function Ar(e,t){switch(typeof e){case"string":var r=Er("vt:lpwstr",tr(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;case"number":return Er((0|e)==e?"vt:i4":"vt:r8",tr(String(e)));case"boolean":return Er("vt:bool",e?"true":"false")}if(e instanceof Date)return Er("vt:filetime",Sr(e));throw new Error("Unable to serialize "+e)}function xr(e){if(S&&Buffer.isBuffer(e))return e.toString("utf8");if("string"===typeof e)return e;if("undefined"!==typeof Uint8Array&&e instanceof Uint8Array)return dr(O(I(e)));throw new Error("Bad input format: expected Buffer or string")}var Cr=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/gm,Rr={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Pr=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Or={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function Nr(e,t){for(var r=1-2*(e[t+7]>>>7),a=((127&e[t+7])<<4)+(e[t+6]>>>4&15),n=15&e[t+6],s=5;s>=0;--s)n=256*n+e[t+s];return 2047==a?0==n?r*(1/0):NaN:(0==a?a=-1022:(a-=1023,n+=Math.pow(2,52)),r*Math.pow(2,a-52)*n)}function Ir(e,t,r){var a=(t<0||1/t==-1/0?1:0)<<7,n=0,s=0,i=a?-t:t;isFinite(i)?0==i?n=s=0:(n=Math.floor(Math.log(i)/Math.LN2),s=i*Math.pow(2,52-n),n<=-1023&&(!isFinite(s)||s>4|a}var Dr=function(e){for(var t=[],r=10240,a=0;a0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:A(e)}))):Dr(e)}:Dr,Mr=function(e,t,r){for(var a=[],n=t;n0?Wr(e,t+4,t+4+r-1):""},jr=Hr,Vr=function(e,t){var r=sa(e,t);return r>0?Wr(e,t+4,t+4+r-1):""},Gr=Vr,$r=function(e,t){var r=2*sa(e,t);return r>0?Wr(e,t+4,t+4+r-1):""},Xr=$r,Yr=function(e,t){var r=sa(e,t);return r>0?Lr(e,t+4,t+4+r):""},Kr=Yr,Zr=function(e,t){var r=sa(e,t);return r>0?Wr(e,t+4,t+4+r):""},qr=Zr,Jr=function(e,t){return Nr(e,t)},Qr=Jr,ea=function(e){return Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array};function ta(){Lr=function(e,t,r){return m.utils.decode(1200,e.slice(t,r)).replace(M,"")},Wr=function(e,t,r){return m.utils.decode(65001,e.slice(t,r))},jr=function(e,t){var r=sa(e,t);return r>0?m.utils.decode(s,e.slice(t+4,t+4+r-1)):""},Gr=function(e,t){var r=sa(e,t);return r>0?m.utils.decode(n,e.slice(t+4,t+4+r-1)):""},Xr=function(e,t){var r=2*sa(e,t);return r>0?m.utils.decode(1200,e.slice(t+4,t+4+r-1)):""},Kr=function(e,t){var r=sa(e,t);return r>0?m.utils.decode(1200,e.slice(t+4,t+4+r)):""},qr=function(e,t){var r=sa(e,t);return r>0?m.utils.decode(65001,e.slice(t+4,t+4+r)):""}}S&&(jr=function(e,t){if(!Buffer.isBuffer(e))return Hr(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},Gr=function(e,t){if(!Buffer.isBuffer(e))return Vr(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},Xr=function(e,t){if(!Buffer.isBuffer(e))return $r(e,t);var r=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r-1)},Kr=function(e,t){if(!Buffer.isBuffer(e))return Yr(e,t);var r=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r)},qr=function(e,t){if(!Buffer.isBuffer(e))return Zr(e,t);var r=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+r)},Qr=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):Jr(e,t)},ea=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array}),"undefined"!==typeof m&&ta();var ra=function(e,t){return e[t]},aa=function(e,t){return 256*e[t+1]+e[t]},na=function(e,t){var r=256*e[t+1]+e[t];return r<32768?r:-1*(65535-r+1)},sa=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},ia=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},oa=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function la(e,t){var r,a,s,i,o,l,c="",f=[];switch(t){case"dbcs":if(l=this.l,S&&Buffer.isBuffer(this))c=this.slice(this.l,this.l+2*e).toString("utf16le");else for(o=0;o0?ia:oa)(this,this.l),this.l+=4,r):(a=sa(this,this.l),this.l+=4,a);case 8:case-8:if("f"===t)return a=8==e?Qr(this,this.l):Qr([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:c=Ur(this,this.l,e);break}}return this.l+=e,c}var ca=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},fa=function(e,t,r){e[r]=255&t,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},ua=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255};function ha(e,t,r){var a=0,n=0;if("dbcs"===r){for(n=0;n!=t.length;++n)ua(this,t.charCodeAt(n),this.l+2*n);a=2*t.length}else if("sbcs"===r){if("undefined"!==typeof m&&874==s)for(n=0;n!=t.length;++n){var i=m.utils.encode(s,t.charAt(n));this[this.l+n]=i[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),n=0;n!=t.length;++n)this[this.l+n]=255&t.charCodeAt(n);a=t.length}else{if("hex"===r){for(;n>8}while(this.l>>=8,this[this.l+1]=255&t;break;case 3:a=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:a=4,ca(this,t,this.l);break;case 8:if(a=8,"f"===r){Ir(this,t,this.l);break}case 16:break;case-4:a=4,fa(this,t,this.l);break}}return this.l+=a,this}function da(e,t){var r=Ur(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function pa(e,t){e.l=t,e.read_shift=la,e.chk=da,e.write_shift=ha}function ma(e,t){e.l+=t}function ba(e){var t=x(e);return pa(t,0),t}function ga(e,t,r){if(e){var a,n,s;pa(e,e.l||0);var i=e.length,o=0,l=0;while(e.la.l&&(a=a.slice(0,a.l),a.l=a.length),a.length>0&&e.push(a),a=null)},s=function(e){return a&&e=128?1:0)+1,a>=128&&++n,a>=16384&&++n,a>=2097152&&++n;var i=e.next(n);s<=127?i.write_shift(1,s):(i.write_shift(1,128+(127&s)),i.write_shift(1,s>>7));for(var o=0;4!=o;++o){if(!(a>=128)){i.write_shift(1,a);break}i.write_shift(1,128+(127&a)),a>>=7}a>0&&ea(r)&&e.push(r)}}function ya(e,t,r){var a=Tt(e);if(t.s?(a.cRel&&(a.c+=t.s.c),a.rRel&&(a.r+=t.s.r)):(a.cRel&&(a.c+=t.c),a.rRel&&(a.r+=t.r)),!r||r.biff<12){while(a.c>=256)a.c-=256;while(a.r>=65536)a.r-=65536}return a}function ka(e,t,r){var a=Tt(e);return a.s=ya(a.s,t.s,r),a.e=ya(a.e,t.s,r),a}function Ta(e,t){if(e.cRel&&e.c<0){e=Tt(e);while(e.c<0)e.c+=t>8?16384:256}if(e.rRel&&e.r<0){e=Tt(e);while(e.r<0)e.r+=t>8?1048576:t>5?65536:16384}var r=Da(e);return e.cRel||null==e.cRel||(r=Pa(r)),e.rRel||null==e.rRel||(r=Aa(r)),r}function _a(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?Ta(e.s,t.biff)+":"+Ta(e.e,t.biff):(e.s.rRel?"":"$")+Sa(e.s.r)+":"+(e.e.rRel?"":"$")+Sa(e.e.r):(e.s.cRel?"":"$")+Ra(e.s.c)+":"+(e.e.cRel?"":"$")+Ra(e.e.c)}function Ea(e){return parseInt(xa(e),10)-1}function Sa(e){return""+(e+1)}function Aa(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function xa(e){return e.replace(/\$(\d+)$/,"$1")}function Ca(e){for(var t=Oa(e),r=0,a=0;a!==t.length;++a)r=26*r+t.charCodeAt(a)-64;return r-1}function Ra(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Pa(e){return e.replace(/^([A-Z])/,"$$$1")}function Oa(e){return e.replace(/^\$([A-Z])/,"$1")}function Na(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Ia(e){for(var t=0,r=0,a=0;a=48&&n<=57?t=10*t+(n-48):n>=65&&n<=90&&(r=26*r+(n-64))}return{c:r-1,r:t-1}}function Da(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function Fa(e){var t=e.indexOf(":");return-1==t?{s:Ia(e),e:Ia(e)}:{s:Ia(e.slice(0,t)),e:Ia(e.slice(t+1))}}function Ma(e,t){return"undefined"===typeof t||"number"===typeof t?Ma(e.s,e.e):("string"!==typeof e&&(e=Da(e)),"string"!==typeof t&&(t=Da(t)),e==t?e:e+":"+t)}function La(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,a=0,n=0,s=e.length;for(r=0;a26)break;r=26*r+n}for(t.s.c=--r,r=0;a9)break;r=10*r+n}if(t.s.r=--r,a===s||10!=n)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++a,r=0;a!=s;++a){if((n=e.charCodeAt(a)-64)<1||n>26)break;r=26*r+n}for(t.e.c=--r,r=0;a!=s;++a){if((n=e.charCodeAt(a)-48)<0||n>9)break;r=10*r+n}return t.e.r=--r,t}function Ba(e,t){var r="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=je(e.z,r?ut(t):t)}catch(a){}try{return e.w=je((e.XF||{}).numFmtId||(r?14:0),r?ut(t):t)}catch(a){return""+t}}function Ua(e,t,r){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),"e"==e.t?$n[e.v]||e.v:Ba(e,void 0==t?e.v:t))}function za(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",a={};return a[r]=e,{SheetNames:[r],Sheets:a}}function Wa(e,t,r){var a=r||{},n=e?Array.isArray(e):a.dense;null!=y&&null==n&&(n=y);var s=e||(n?[]:{}),i=0,o=0;if(s&&null!=a.origin){if("number"==typeof a.origin)i=a.origin;else{var l="string"==typeof a.origin?Ia(a.origin):a.origin;i=l.r,o=l.c}s["!ref"]||(s["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var f=La(s["!ref"]);c.s.c=f.s.c,c.s.r=f.s.r,c.e.c=Math.max(c.e.c,f.e.c),c.e.r=Math.max(c.e.r,f.e.r),-1==i&&(c.e.r=i=f.e.r+1)}for(var u=0;u!=t.length;++u)if(t[u]){if(!Array.isArray(t[u]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=t[u].length;++h)if("undefined"!==typeof t[u][h]){var d={v:t[u][h]},p=i+u,m=o+h;if(c.s.r>p&&(c.s.r=p),c.s.c>m&&(c.s.c=m),c.e.r0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function Xa(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Ya(e,t){return t||(t=ba(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function Ka(e,t){var r=e.l,a=e.read_shift(1),n=Ga(e),s=[],i={t:n,h:n};if(0!==(1&a)){for(var o=e.read_shift(4),l=0;l!=o;++l)s.push(Xa(e));i.r=s}else i.r=[{ich:0,ifnt:0}];return e.l=r+t,i}function Za(e,t){var r=!1;return null==t&&(r=!0,t=ba(15+4*e.t.length)),t.write_shift(1,0),$a(e.t,t),r?t.slice(0,t.l):t}var qa=Ka;function Ja(e,t){var r=!1;return null==t&&(r=!0,t=ba(23+4*e.t.length)),t.write_shift(1,1),$a(e.t,t),t.write_shift(4,1),Ya({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function Qa(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function en(e,t){return null==t&&(t=ba(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function tn(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function rn(e,t){return null==t&&(t=ba(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var an=Ga,nn=$a;function sn(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function on(e,t){var r=!1;return null==t&&(r=!0,t=ba(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var ln=Ga,cn=sn,fn=on;function un(e){var t=e.slice(e.l,e.l+4),r=1&t[0],a=2&t[0];e.l+=4;var n=0===a?Qr([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):ia(t,0)>>2;return r?n/100:n}function hn(e,t){null==t&&(t=ba(4));var r=0,a=0,n=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?a=1:n==(0|n)&&n>=-(1<<29)&&n<1<<29&&(a=1,r=1),!a)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((r?n:e)<<2)+(r+2))}function dn(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function pn(e,t){return t||(t=ba(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var mn=dn,bn=pn;function gn(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function vn(e,t){return(t||ba(8)).write_shift(8,e,"f")}function wn(e){var t={},r=e.read_shift(1),a=r>>>1,n=e.read_shift(1),s=e.read_shift(2,"i"),i=e.read_shift(1),o=e.read_shift(1),l=e.read_shift(1);switch(e.l++,a){case 0:t.auto=1;break;case 1:t.index=n;var c=Gn[n];c&&(t.rgb=wc(c));break;case 2:t.rgb=wc([i,o,l]);break;case 3:t.theme=n;break}return 0!=s&&(t.tint=s>0?s/32767:s/32768),t}function yn(e,t){if(t||(t=ba(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),e.rgb&&null==e.theme){var a=e.rgb||"FFFFFF";"number"==typeof a&&(a=("000000"+a.toString(16)).slice(-6)),t.write_shift(1,parseInt(a.slice(0,2),16)),t.write_shift(1,parseInt(a.slice(2,4),16)),t.write_shift(1,parseInt(a.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}function kn(e){var t=e.read_shift(1);e.l++;var r={fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t};return r}function Tn(e,t){t||(t=ba(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}function _n(e,t){var r={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},a=e.read_shift(4);switch(a){case 0:return"";case 4294967295:case 4294967294:return r[e.read_shift(4)]||""}if(a>400)throw new Error("Unsupported Clipboard: "+a.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}function En(e){return _n(e,1)}function Sn(e){return _n(e,2)}var An=2,xn=3,Cn=11,Rn=12,Pn=19,On=64,Nn=65,In=71,Dn=4108,Fn=4126,Mn=80,Ln=81,Bn=[Mn,Ln],Un={1:{n:"CodePage",t:An},2:{n:"Category",t:Mn},3:{n:"PresentationFormat",t:Mn},4:{n:"ByteCount",t:xn},5:{n:"LineCount",t:xn},6:{n:"ParagraphCount",t:xn},7:{n:"SlideCount",t:xn},8:{n:"NoteCount",t:xn},9:{n:"HiddenCount",t:xn},10:{n:"MultimediaClipCount",t:xn},11:{n:"ScaleCrop",t:Cn},12:{n:"HeadingPairs",t:Dn},13:{n:"TitlesOfParts",t:Fn},14:{n:"Manager",t:Mn},15:{n:"Company",t:Mn},16:{n:"LinksUpToDate",t:Cn},17:{n:"CharacterCount",t:xn},19:{n:"SharedDoc",t:Cn},22:{n:"HyperlinksChanged",t:Cn},23:{n:"AppVersion",t:xn,p:"version"},24:{n:"DigSig",t:Nn},26:{n:"ContentType",t:Mn},27:{n:"ContentStatus",t:Mn},28:{n:"Language",t:Mn},29:{n:"Version",t:Mn},255:{},2147483648:{n:"Locale",t:Pn},2147483651:{n:"Behavior",t:Pn},1919054434:{}},zn={1:{n:"CodePage",t:An},2:{n:"Title",t:Mn},3:{n:"Subject",t:Mn},4:{n:"Author",t:Mn},5:{n:"Keywords",t:Mn},6:{n:"Comments",t:Mn},7:{n:"Template",t:Mn},8:{n:"LastAuthor",t:Mn},9:{n:"RevNumber",t:Mn},10:{n:"EditTime",t:On},11:{n:"LastPrinted",t:On},12:{n:"CreatedDate",t:On},13:{n:"ModifiedDate",t:On},14:{n:"PageCount",t:xn},15:{n:"WordCount",t:xn},16:{n:"CharCount",t:xn},17:{n:"Thumbnail",t:In},18:{n:"Application",t:Mn},19:{n:"DocSecurity",t:xn},255:{},2147483648:{n:"Locale",t:Pn},2147483651:{n:"Behavior",t:Pn},1919054434:{}},Wn={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Hn=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function jn(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var Vn=jn([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Gn=Tt(Vn),$n={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Xn={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Yn={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Kn={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Zn(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function qn(e){var t=Zn();if(!e||!e.match)return t;var r={};if((e.match(Gt)||[]).forEach((function(e){var a=Yt(e);switch(a[0].replace($t,"<")){case"0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}function Jn(e,t){var r,a=ct(Yn),n=[];n[n.length]=Wt,n[n.length]=Er("Types",null,{xmlns:Rr.CT,"xmlns:xsd":Rr.xsd,"xmlns:xsi":Rr.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return Er("Default",null,{Extension:e[0],ContentType:e[1]})})));var s=function(a){e[a]&&e[a].length>0&&(r=e[a][0],n[n.length]=Er("Override",null,{PartName:("/"==r[0]?"":"/")+r,ContentType:Kn[a][t.bookType]||Kn[a]["xlsx"]}))},i=function(r){(e[r]||[]).forEach((function(e){n[n.length]=Er("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:Kn[r][t.bookType]||Kn[r]["xlsx"]})}))},o=function(t){(e[t]||[]).forEach((function(e){n[n.length]=Er("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:a[t][0]})}))};return s("workbooks"),i("sheets"),i("charts"),o("themes"),["strs","styles"].forEach(s),["coreprops","extprops","custprops"].forEach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),i("metadata"),o("people"),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var Qn={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function es(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function ts(e,t){var r={"!id":{}};if(!e)return r;"/"!==t.charAt(0)&&(t="/"+t);var a={};return(e.match(Gt)||[]).forEach((function(e){var n=Yt(e);if("2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function as(e,t,r,a,n,s){if(n||(n={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,n.Id="rId"+t,n.Type=a,n.Target=r,s?n.TargetMode=s:[Qn.HLINK,Qn.XPATH,Qn.XMISS].indexOf(n.Type)>-1&&(n.TargetMode="External"),e["!id"][n.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][n.Id]=n,e[("/"+n.Target).replace("//","/")]=n,t}var ns="application/vnd.oasis.opendocument.spreadsheet";function ss(e,t){var r,a,n=xr(e);while(r=Cr.exec(n))switch(r[3]){case"manifest":break;case"file-entry":if(a=Yt(r[0],!1),"/"==a.path&&a.type!==ns)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw r}}function is(e){var t=[Wt];t.push('\n'),t.push(' \n');for(var r=0;r\n');return t.push(""),t.join("")}function os(e,t,r){return[' \n',' \n'," \n"].join("")}function ls(e,t){return[' \n',' \n'," \n"].join("")}function cs(e){var t=[Wt];t.push('\n');for(var r=0;r!=e.length;++r)t.push(os(e[r][0],e[r][1])),t.push(ls("",e[r][0]));return t.push(os("","Document","pkg")),t.push(""),t.join("")}function fs(){return'SheetJS '+a.version+""}var us=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],hs=function(){for(var e=new Array(us.length),t=0;t]*>([\\s\\S]*?)")}return e}();function ds(e){var t={};e=dr(e);for(var r=0;r0&&(t[a[1]]=Jt(n[1])),"date"===a[2]&&t[a[1]]&&(t[a[1]]=yt(t[a[1]]))}return t}function ps(e,t,r,a,n){null==n[e]&&null!=t&&""!==t&&(n[e]=t,t=tr(t),a[a.length]=r?Er(e,t,r):Tr(e,t))}function ms(e,t){var r=t||{},a=[Wt,Er("cp:coreProperties",null,{"xmlns:cp":Rr.CORE_PROPS,"xmlns:dc":Rr.dc,"xmlns:dcterms":Rr.dcterms,"xmlns:dcmitype":Rr.dcmitype,"xmlns:xsi":Rr.xsi})],n={};if(!e&&!r.Props)return a.join("");e&&(null!=e.CreatedDate&&ps("dcterms:created","string"===typeof e.CreatedDate?e.CreatedDate:Sr(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n),null!=e.ModifiedDate&&ps("dcterms:modified","string"===typeof e.ModifiedDate?e.ModifiedDate:Sr(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n));for(var s=0;s!=us.length;++s){var i=us[s],o=r.Props&&null!=r.Props[i[1]]?r.Props[i[1]]:e?e[i[1]]:null;!0===o?o="1":!1===o?o="0":"number"==typeof o&&(o=String(o)),null!=o&&ps(i[0],o,null,a,n)}return a.length>2&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}var bs=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],gs=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function vs(e,t,r,a){var n=[];if("string"==typeof e)n=yr(e,a);else for(var s=0;s0)for(var c=0;c!==n.length;c+=2){switch(l=+n[c+1].v,n[c].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=l,r.SheetNames=i.slice(o,o+l);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=l,r.DefinedNames=i.slice(o,o+l);break;case"Charts":case"Diagramme":r.Chartsheets=l,r.ChartNames=i.slice(o,o+l);break}o+=l}}function ws(e,t,r){var a={};return t||(t={}),e=dr(e),bs.forEach((function(r){var n=(e.match(mr(r[0]))||[])[1];switch(r[2]){case"string":n&&(t[r[1]]=Jt(n));break;case"bool":t[r[1]]="true"===n;break;case"raw":var s=e.match(new RegExp("<"+r[0]+"[^>]*>([\\s\\S]*?)"));s&&s.length>0&&(a[r[1]]=s[1]);break}})),a.HeadingPairs&&a.TitlesOfParts&&vs(a.HeadingPairs,a.TitlesOfParts,t,r),t}function ys(e){var t=[],r=Er;return e||(e={}),e.Application="SheetJS",t[t.length]=Wt,t[t.length]=Er("Properties",null,{xmlns:Rr.EXT_PROPS,"xmlns:vt":Rr.vt}),bs.forEach((function(a){if(void 0!==e[a[1]]){var n;switch(a[2]){case"string":n=tr(String(e[a[1]]));break;case"bool":n=e[a[1]]?"true":"false";break}void 0!==n&&(t[t.length]=r(a[0],n))}})),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","Worksheets")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map((function(e){return""+tr(e)+""})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var ks=/<[^>]+>[^<]*/g;function Ts(e,t){var r={},a="",n=e.match(ks);if(n)for(var s=0;s!=n.length;++s){var i=n[s],o=Yt(i);switch(o[0]){case"":a=null;break;default:if(0===i.indexOf(""),c=l[0].slice(4),f=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":r[a]=Jt(f);break;case"bool":r[a]=lr(f);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[a]=parseInt(f,10);break;case"r4":case"r8":case"decimal":r[a]=parseFloat(f);break;case"filetime":case"date":r[a]=yt(f);break;case"cy":case"error":r[a]=Jt(f);break;default:if("/"==c.slice(-1))break;t.WTF&&"undefined"!==typeof console&&console.warn("Unexpected",i,c,l)}}else if("2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var Es,Ss={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function As(e,t,r){Es||(Es=ot(Ss)),t=Es[t]||t,e[t]=r}function xs(e,t){var r=[];return st(Ss).map((function(e){for(var t=0;t'+n.join("")+""}function Rs(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date(1e3*(r/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function Ps(e){var t="string"==typeof e?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,a=r%Math.pow(2,32),n=(r-a)/Math.pow(2,32);a*=1e7,n*=1e7;var s=a/Math.pow(2,32)|0;s>0&&(a%=Math.pow(2,32),n+=s);var i=ba(8);return i.write_shift(4,a),i.write_shift(4,n),i}function Os(e,t,r){var a=e.l,n=e.read_shift(0,"lpstr-cp");if(r)while(e.l-a&3)++e.l;return n}function Ns(e,t,r){var a=e.read_shift(0,"lpwstr");return r&&(e.l+=4-(a.length+1&3)&3),a}function Is(e,t,r){return 31===t?Ns(e):Os(e,t,r)}function Ds(e,t,r){return Is(e,t,!1===r?0:4)}function Fs(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return Is(e,t,0)}function Ms(e){for(var t=e.read_shift(4),r=[],a=0;a!=t;++a){var n=e.l;r[a]=e.read_shift(0,"lpwstr").replace(M,""),e.l-n&2&&(e.l+=2)}return r}function Ls(e){for(var t=e.read_shift(4),r=[],a=0;a!=t;++a)r[a]=e.read_shift(0,"lpstr-cp").replace(M,"");return r}function Bs(e){var t=e.l,r=js(e,Ln);0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2);var a=js(e,xn);return[r,a]}function Us(e){for(var t=e.read_shift(4),r=[],a=0;a>3<<2),a}function Ws(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),r}function Hs(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function js(e,t,r){var a,n=e.read_shift(2),s=r||{};if(e.l+=2,t!==Rn&&n!==t&&-1===Bn.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&n)))throw new Error("Expected type "+t+" saw "+n);switch(t===Rn?n:t){case 2:return a=e.read_shift(2,"i"),s.raw||(e.l+=2),a;case 3:return a=e.read_shift(4,"i"),a;case 11:return 0!==e.read_shift(4);case 19:return a=e.read_shift(4),a;case 30:return Os(e,n,4).replace(M,"");case 31:return Ns(e);case 64:return Rs(e);case 65:return Ws(e);case 71:return Hs(e);case 80:return Ds(e,n,!s.raw).replace(M,"");case 81:return Fs(e,n).replace(M,"");case 4108:return Us(e);case 4126:case 4127:return 4127==n?Ms(e):Ls(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}}function Vs(e,t){var r=ba(4),a=ba(4);switch(r.write_shift(4,80==e?31:e),e){case 3:a.write_shift(-4,t);break;case 5:a=ba(8),a.write_shift(8,t,"f");break;case 11:a.write_shift(4,t?1:0);break;case 64:a=Ps(t);break;case 31:case 80:a=ba(4+2*(t.length+1)+(t.length%2?0:2)),a.write_shift(4,t.length+1),a.write_shift(0,t,"dbcs");while(a.l!=a.length)a.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return D([r,a])}function Gs(e,t){var r=e.l,a=e.read_shift(4),n=e.read_shift(4),s=[],i=0,o=0,l=-1,c={};for(i=0;i!=n;++i){var u=e.read_shift(4),h=e.read_shift(4);s[i]=[u,h+r]}s.sort((function(e,t){return e[1]-t[1]}));var d={};for(i=0;i!=n;++i){if(e.l!==s[i][1]){var p=!0;if(i>0&&t)switch(t[s[i-1][0]].t){case 2:e.l+2===s[i][1]&&(e.l+=2,p=!1);break;case 80:e.l<=s[i][1]&&(e.l=s[i][1],p=!1);break;case 4108:e.l<=s[i][1]&&(e.l=s[i][1],p=!1);break}if((!t||0==i)&&e.l<=s[i][1]&&(p=!1,e.l=s[i][1]),p)throw new Error("Read Error: Expected address "+s[i][1]+" at "+e.l+" :"+i)}if(t){var m=t[s[i][0]];if(d[m.n]=js(e,m.t,{raw:!0}),"version"===m.p&&(d[m.n]=String(d[m.n]>>16)+"."+("0000"+String(65535&d[m.n])).slice(-4)),"CodePage"==m.n)switch(d[m.n]){case 0:d[m.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:f(o=d[m.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[m.n])}}else if(1===s[i][0]){if(o=d.CodePage=js(e,An),f(o),-1!==l){var b=e.l;e.l=s[l][1],c=zs(e,o),e.l=b}}else if(0===s[i][0]){if(0===o){l=i,e.l=s[i+1][1];continue}c=zs(e,o)}else{var g,v=c[s[i][0]];switch(e[e.l]){case 65:e.l+=4,g=Ws(e);break;case 30:e.l+=4,g=Ds(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,g=Ds(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,g=e.read_shift(4,"i");break;case 19:e.l+=4,g=e.read_shift(4);break;case 5:e.l+=4,g=e.read_shift(8,"f");break;case 11:e.l+=4,g=ei(e,4);break;case 64:e.l+=4,g=yt(Rs(e));break;default:throw new Error("unparsed value: "+e[e.l])}d[v]=g}}return e.l=r+a,d}var $s=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Xs(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Ys(e,t,r){var a=ba(8),n=[],s=[],i=8,o=0,l=ba(8),c=ba(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),s.push(l),n.push(c),i+=8+l.length,!t){c=ba(8),c.write_shift(4,0),n.unshift(c);var f=[ba(4)];for(f[0].write_shift(4,e.length),o=0;o-1||gs.indexOf(e[o][0])>-1)&&null!=e[o][1]){var h=e[o][1],d=0;if(t){d=+t[e[o][0]];var p=r[d];if("version"==p.p&&"string"==typeof h){var m=h.split(".");h=(+m[0]<<16)+(+m[1]||0)}l=Vs(p.t,h)}else{var b=Xs(h);-1==b&&(b=31,h=String(h)),l=Vs(b,h)}s.push(l),c=ba(8),c.write_shift(4,t?d:2+o),n.push(c),i+=8+l.length}var g=8*(s.length+1);for(o=0;o=12?2:1),s="sbcs-cont",i=n;if(r&&r.biff>=8&&(n=1200),r&&8!=r.biff)12==r.biff&&(s="wstr");else{var o=e.read_shift(1);o&&(s="dbcs-cont")}r.biff>=2&&r.biff<=5&&(s="cpstr");var l=a?e.read_shift(a,s):"";return n=i,l}function li(e){var t=n;n=1200;var r,a=e.read_shift(2),s=e.read_shift(1),i=4&s,o=8&s,l=1+(1&s),c=0,f={};o&&(c=e.read_shift(2)),i&&(r=e.read_shift(4));var u=2==l?"dbcs-cont":"sbcs-cont",h=0===a?"":e.read_shift(a,u);return o&&(e.l+=4*c),i&&(e.l+=r),f.t=h,o||(f.raw=""+f.t+"",f.r=f.t),n=t,f}function ci(e){var t=e.t||"",r=1,a=ba(3+(r>1?2:0));a.write_shift(2,t.length),a.write_shift(1,1|(r>1?8:0)),r>1&&a.write_shift(2,r);var n=ba(2*t.length);n.write_shift(2*t.length,t,"utf16le");var s=[a,n];return D(s)}function fi(e,t,r){var a;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var n=e.read_shift(1);return a=0===n?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont"),a}function ui(e,t,r){var a=e.read_shift(r&&2==r.biff?1:2);return 0===a?(e.l++,""):fi(e,a,r)}function hi(e,t,r){if(r.biff>5)return ui(e,t,r);var a=e.read_shift(1);return 0===a?(e.l++,""):e.read_shift(a,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function di(e,t,r){return r||(r=ba(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function pi(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}function mi(e){var t=e.read_shift(4),r=e.l,a=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(a=!0),e.l=r);var n=e.read_shift((a?t-24:t)>>1,"utf16le").replace(M,"");return a&&(e.l+=24),n}function bi(e){var t=e.read_shift(2),r="";while(t-- >0)r+="../";var a=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");var n=e.read_shift(4);if(0===n)return r+a.replace(/\\/g,"/");var s=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");var i=e.read_shift(s>>1,"utf16le").replace(M,"");return r+i}function gi(e,t){var r=e.read_shift(16);switch(t-=16,r){case"e0c9ea79f9bace118c8200aa004ba90b":return mi(e,t);case"0303000000000000c000000000000046":return bi(e,t);default:throw new Error("Unsupported Moniker "+r)}}function vi(e){var t=e.read_shift(4),r=t>0?e.read_shift(t,"utf16le").replace(M,""):"";return r}function wi(e,t){t||(t=ba(6+2*e.length)),t.write_shift(4,1+e.length);for(var r=0;r-1?31:23;switch(a.charAt(0)){case"#":s=28;break;case".":s&=-3;break}t.write_shift(4,2),t.write_shift(4,s);var i=[8,6815827,6619237,4849780,83];for(r=0;r-1?a.slice(0,n):a;for(t.write_shift(4,2*(o.length+1)),r=0;r-1?a.slice(n+1):"",t)}else{for(i="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r8?4:2,n=e.read_shift(a),s=e.read_shift(a,"i"),i=e.read_shift(a,"i");return[n,s,i]}function Ri(e){var t=e.read_shift(2),r=un(e);return[t,r]}function Pi(e,t,r){e.l+=4,t-=4;var a=e.l+t,n=oi(e,t,r),s=e.read_shift(2);if(a-=e.l,s!==a)throw new Error("Malformed AddinUdf: padding = "+a+" != "+s);return e.l+=s,n}function Oi(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2),n=e.read_shift(2);return{s:{c:a,r:t},e:{c:n,r:r}}}function Ni(e,t){return t||(t=ba(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function Ii(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(1),n=e.read_shift(1);return{s:{c:a,r:t},e:{c:n,r:r}}}var Di=Ii;function Fi(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2);return e.l+=12,[r,t,a]}function Mi(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function Li(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function Bi(e){e.l+=2,e.l+=e.read_shift(2)}var Ui={0:Bi,4:Bi,5:Bi,6:Bi,7:Li,8:Bi,9:Bi,10:Bi,11:Bi,12:Bi,13:Mi,14:Bi,15:Bi,16:Bi,17:Bi,18:Bi,19:Bi,20:Bi,21:Fi};function zi(e,t){var r=e.l+t,a=[];while(e.l=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function Hi(e,t,r){var a=1536,n=16;switch(r.bookType){case"biff8":break;case"biff5":a=1280,n=8;break;case"biff4":a=4,n=6;break;case"biff3":a=3,n=6;break;case"biff2":a=2,n=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var s=ba(n);return s.write_shift(2,a),s.write_shift(2,t),n>4&&s.write_shift(2,29282),n>6&&s.write_shift(2,1997),n>8&&(s.write_shift(2,49161),s.write_shift(2,1),s.write_shift(2,1798),s.write_shift(2,0)),s}function ji(e,t){return 0===t||e.read_shift(2),1200}function Vi(e,t,r){if(r.enc)return e.l+=t,"";var a=e.l,n=hi(e,0,r);return e.read_shift(t+a-e.l),n}function Gi(e,t){var r=!t||8==t.biff,a=ba(r?112:54);a.write_shift(8==t.biff?2:1,7),r&&a.write_shift(1,0),a.write_shift(4,859007059),a.write_shift(4,5458548|(r?0:536870912));while(a.l=8?2:1,a=ba(8+r*e.name.length);a.write_shift(4,e.pos),a.write_shift(1,e.hs||0),a.write_shift(1,e.dt),a.write_shift(1,e.name.length),t.biff>=8&&a.write_shift(1,1),a.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var n=a.slice(0,a.l);return n.l=a.l,n}function Ki(e,t){for(var r=e.l+t,a=e.read_shift(4),n=e.read_shift(4),s=[],i=0;i!=n&&e.l>15),n&=32767);var s={Unsynced:1&a,DyZero:(2&a)>>1,ExAsc:(4&a)>>2,ExDsc:(8&a)>>3};return[s,n]}function ro(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2),n=e.read_shift(2),s=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),l=e.read_shift(2),c=e.read_shift(2);return{Pos:[t,r],Dim:[a,n],Flags:s,CurTab:i,FirstTab:o,Selected:l,TabRatio:c}}function ao(){var e=ba(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function no(e,t,r){if(r&&r.biff>=2&&r.biff<5)return{};var a=e.read_shift(2);return{RTL:64&a}}function so(e){var t=ba(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function io(){}function oo(e,t,r){var a={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return a.name=oi(e,0,r),a}function lo(e,t){var r=e.name||"Arial",a=t&&5==t.biff,n=a?15+r.length:16+2*r.length,s=ba(n);return s.write_shift(2,20*(e.sz||12)),s.write_shift(4,0),s.write_shift(2,400),s.write_shift(4,0),s.write_shift(2,0),s.write_shift(1,r.length),a||s.write_shift(1,1),s.write_shift((a?1:2)*r.length,r,a?"sbcs":"utf16le"),s}function co(e){var t=Ei(e);return t.isst=e.read_shift(4),t}function fo(e,t,r,a){var n=ba(10);return Si(e,t,a,n),n.write_shift(4,r),n}function uo(e,t,r){r.biffguess&&2==r.biff&&(r.biff=5);var a=e.l+t,n=Ei(e,6);2==r.biff&&e.l++;var s=ui(e,a-e.l,r);return n.val=s,n}function ho(e,t,r,a,n){var s=!n||8==n.biff,i=ba(+s+8+(1+s)*r.length);return Si(e,t,a,i),i.write_shift(2,r.length),s&&i.write_shift(1,1),i.write_shift((1+s)*r.length,r,s?"utf16le":"sbcs"),i}function po(e,t,r){var a=e.read_shift(2),n=hi(e,0,r);return[a,n]}function mo(e,t,r,a){var n=r&&5==r.biff;a||(a=ba(n?3+t.length:5+2*t.length)),a.write_shift(2,e),a.write_shift(n?1:2,t.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*t.length,t,n?"sbcs":"utf16le");var s=a.length>a.l?a.slice(0,a.l):a;return null==s.l&&(s.l=s.length),s}var bo=hi;function go(e,t,r){var a=e.l+t,n=8!=r.biff&&r.biff?2:4,s=e.read_shift(n),i=e.read_shift(n),o=e.read_shift(2),l=e.read_shift(2);return e.l=a,{s:{r:s,c:o},e:{r:i,c:l}}}function vo(e,t){var r=8!=t.biff&&t.biff?2:4,a=ba(2*r+6);return a.write_shift(r,e.s.r),a.write_shift(r,e.e.r+1),a.write_shift(2,e.s.c),a.write_shift(2,e.e.c+1),a.write_shift(2,0),a}function wo(e){var t=e.read_shift(2),r=e.read_shift(2),a=Ri(e);return{r:t,c:r,ixfe:a[0],rknum:a[1]}}function yo(e,t){var r=e.l+t-2,a=e.read_shift(2),n=e.read_shift(2),s=[];while(e.l>26],a.cellStyles?(n.alc=7&s,n.fWrap=s>>3&1,n.alcV=s>>4&7,n.fJustLast=s>>7&1,n.trot=s>>8&255,n.cIndent=s>>16&15,n.fShrinkToFit=s>>20&1,n.iReadOrder=s>>22&2,n.fAtrNum=s>>26&1,n.fAtrFnt=s>>27&1,n.fAtrAlc=s>>28&1,n.fAtrBdr=s>>29&1,n.fAtrPat=s>>30&1,n.fAtrProt=s>>31&1,n.dgLeft=15&i,n.dgRight=i>>4&15,n.dgTop=i>>8&15,n.dgBottom=i>>12&15,n.icvLeft=i>>16&127,n.icvRight=i>>23&127,n.grbitDiag=i>>30&3,n.icvTop=127&o,n.icvBottom=o>>7&127,n.icvDiag=o>>14&127,n.dgDiag=o>>21&15,n.icvFore=127&l,n.icvBack=l>>7&127,n.fsxButton=l>>14&1,n):n}function _o(e,t,r){var a={};return a.ifnt=e.read_shift(2),a.numFmtId=e.read_shift(2),a.flags=e.read_shift(2),a.fStyle=a.flags>>2&1,t-=6,a.data=To(e,t,a.fStyle,r),a}function Eo(e,t,r,a){var n=r&&5==r.biff;a||(a=ba(n?16:20)),a.write_shift(2,0),e.style?(a.write_shift(2,e.numFmtId||0),a.write_shift(2,65524)):(a.write_shift(2,e.numFmtId||0),a.write_shift(2,t<<4));var s=0;return e.numFmtId>0&&n&&(s|=1024),a.write_shift(4,s),a.write_shift(4,0),n||a.write_shift(4,0),a.write_shift(2,0),a}function So(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function Ao(e){var t=ba(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}function xo(e,t,r){var a=Ei(e,6);2!=r.biff&&9!=t||++e.l;var n=si(e,2);return a.val=n,a.t=!0===n||!1===n?"b":"e",a}function Co(e,t,r,a,n,s){var i=ba(8);return Si(e,t,a,i),ii(r,s,i),i}function Ro(e,t,r){r.biffguess&&2==r.biff&&(r.biff=5);var a=Ei(e,6),n=gn(e,8);return a.val=n,a}function Po(e,t,r,a){var n=ba(14);return Si(e,t,a,n),vn(r,n),n}var Oo=xi;function No(e,t,r){var a=e.l+t,n=e.read_shift(2),s=e.read_shift(2);if(r.sbcch=s,1025==s||14849==s)return[s,n];if(s<1||s>255)throw new Error("Unexpected SupBook type: "+s);var i=fi(e,s),o=[];while(a>e.l)o.push(ui(e));return[s,n,i,o]}function Io(e,t,r){var a,n=e.read_shift(2),s={fBuiltIn:1&n,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return 14849===r.sbcch&&(a=Pi(e,t-2,r)),s.body=a||e.read_shift(t-2),"string"===typeof a&&(s.Name=a),s}var Do=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Fo(e,t,r){var a=e.l+t,n=e.read_shift(2),s=e.read_shift(1),i=e.read_shift(1),o=e.read_shift(r&&2==r.biff?1:2),l=0;(!r||r.biff>=5)&&(5!=r.biff&&(e.l+=2),l=e.read_shift(2),5==r.biff&&(e.l+=2),e.l+=4);var c=fi(e,i,r);32&n&&(c=Do[c.charCodeAt(0)]);var f=a-e.l;r&&2==r.biff&&--f;var u=a!=e.l&&0!==o&&f>0?hd(e,f,r,o):[];return{chKey:s,Name:c,itab:l,rgce:u}}function Mo(e,t,r){if(r.biff<8)return Lo(e,t,r);var a=[],n=e.l+t,s=e.read_shift(r.biff>8?4:2);while(0!==s--)a.push(Ci(e,r.biff>8?12:6,r));if(e.l!=n)throw new Error("Bad ExternSheet: "+e.l+" != "+n);return a}function Lo(e,t,r){3==e[e.l+1]&&e[e.l]++;var a=oi(e,t,r);return 3==a.charCodeAt(0)?a.slice(1):a}function Bo(e,t,r){if(!(r.biff<8)){var a=e.read_shift(2),n=e.read_shift(2),s=fi(e,a,r),i=fi(e,n,r);return[s,i]}e.l+=t}function Uo(e,t,r){var a=Ii(e,6);e.l++;var n=e.read_shift(1);return t-=8,[dd(e,t,r),n,a]}function zo(e,t,r){var a=Di(e,6);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[a,fd(e,t,r,a)]}function Wo(e){var t=0!==e.read_shift(4),r=0!==e.read_shift(4),a=e.read_shift(4);return[t,r,a]}function Ho(e,t,r){if(!(r.biff<8)){var a=e.read_shift(2),n=e.read_shift(2),s=e.read_shift(2),i=e.read_shift(2),o=hi(e,0,r);return r.biff<8&&e.read_shift(1),[{r:a,c:n},o,i,s]}}function jo(e,t,r){return Ho(e,t,r)}function Vo(e,t){var r=[],a=e.read_shift(2);while(a--)r.push(Oi(e,t));return r}function Go(e){var t=ba(2+8*e.length);t.write_shift(2,e.length);for(var r=0;r=(c?i:2*i))break}if(n.length!==i&&n.length!==2*i)throw new Error("cchText: "+i+" != "+n.length);return e.l=a+t,{t:n}}catch(u){return e.l=a+t,{t:n}}}function Zo(e,t){var r=Oi(e,8);e.l+=16;var a=yi(e,t-24);return[r,a]}function qo(e){var t=ba(24),r=Ia(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var a="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<16;++n)t.write_shift(1,parseInt(a[n],16));return D([t,ki(e[1])])}function Jo(e,t){e.read_shift(2);var r=Oi(e,8),a=e.read_shift((t-10)/2,"dbcs-cont");return a=a.replace(M,""),[r,a]}function Qo(e){var t=e[1].Tooltip,r=ba(10+2*(t.length+1));r.write_shift(2,2048);var a=Ia(e[0]);r.write_shift(2,a.r),r.write_shift(2,a.r),r.write_shift(2,a.c),r.write_shift(2,a.c);for(var n=0;n0)r.push(_i(e,8));return r}function al(e){var t=e.read_shift(2),r=[];while(t-- >0)r.push(_i(e,8));return r}function nl(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function sl(e,t,r){if(!r.cellStyles)return ma(e,t);var a=r&&r.biff>=12?4:2,n=e.read_shift(a),s=e.read_shift(a),i=e.read_shift(a),o=e.read_shift(a),l=e.read_shift(2);2==a&&(e.l+=2);var c={s:n,e:s,w:i,ixfe:o,flags:l};return(r.biff>=5||!r.biff)&&(c.level=l>>8&7),c}function il(e,t){var r=ba(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,256*e.width),r.write_shift(2,0);var a=0;return e.hidden&&(a|=1),r.write_shift(1,a),a=e.level||0,r.write_shift(1,a),r.write_shift(2,0),r}function ol(e,t){var r={};return t<32||(e.l+=16,r.header=gn(e,8),r.footer=gn(e,8),e.l+=2),r}function ll(e,t,r){var a={area:!1};if(5!=r.biff)return e.l+=t,a;var n=e.read_shift(1);return e.l+=3,16&n&&(a.area=!0),a}function cl(e){for(var t=ba(2*e),r=0;r1048576&&(c=1e6),2!=s&&(f=n.read_shift(2));var u=n.read_shift(2),h=r.codepage||1252;2!=s&&(n.l+=16,n.read_shift(1),0!==n[n.l]&&(h=e[n[n.l]]),n.l+=1,n.l+=2),l&&(n.l+=36);var d=[],p={},b=Math.min(n.length,2==s?521:f-10-(o?264:0)),g=l?32:11;while(n.l0)if(42!==n[n.l])for(++n.l,a[++v]=[],w=0,w=0;w!=d.length;++w){var y=n.slice(n.l,n.l+d[w].len);n.l+=d[w].len,pa(y,0);var k=m.utils.decode(h,y);switch(d[w].type){case"C":k.trim().length&&(a[v][w]=k.replace(/\s+$/,""));break;case"D":8===k.length?a[v][w]=new Date(+k.slice(0,4),+k.slice(4,6)-1,+k.slice(6,8)):a[v][w]=k;break;case"F":a[v][w]=parseFloat(k.trim());break;case"+":case"I":a[v][w]=l?2147483648^y.read_shift(-4,"i"):y.read_shift(4,"i");break;case"L":switch(k.trim().toUpperCase()){case"Y":case"T":a[v][w]=!0;break;case"N":case"F":a[v][w]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+k+"|")}break;case"M":if(!i)throw new Error("DBF Unexpected MEMO for type "+s.toString(16));a[v][w]="##MEMO##"+(l?parseInt(k.trim(),10):y.read_shift(4));break;case"N":k=k.replace(/\u0000/g,"").trim(),k&&"."!=k&&(a[v][w]=+k||0);break;case"@":a[v][w]=new Date(y.read_shift(-8,"f")-621356832e5);break;case"T":a[v][w]=new Date(864e5*(y.read_shift(4)-2440588)+y.read_shift(4));break;case"Y":a[v][w]=y.read_shift(4,"i")/1e4+y.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":a[v][w]=-y.read_shift(-8,"f");break;case"B":if(o&&8==d[w].len){a[v][w]=y.read_shift(8,"f");break}case"G":case"P":y.l+=d[w].len;break;case"0":if("_NullFlags"===d[w].name)break;default:throw new Error("DBF Unsupported data type "+d[w].type)}}else n.l+=u;if(2!=s&&n.l=0&&f(+a.codepage),"string"==a.type)throw new Error("Cannot write DBF to JS string");var n=va(),o=yw(e,{header:1,raw:!0,cellDates:!0}),l=o[0],c=o.slice(1),u=e["!cols"]||[],h=0,d=0,p=0,m=1;for(h=0;h250&&(T=250),k=((u[h]||{}).DBF||{}).type,"C"==k&&u[h].DBF.len>T&&(T=u[h].DBF.len),"B"==y&&"N"==k&&(y="N",w[h]=u[h].DBF.dec,T=u[h].DBF.len),v[h]="C"==y||"N"==k?T:i[y]||0,m+=v[h],g[h]=y}else g[h]="?"}var E=n.next(32);for(E.write_shift(4,318902576),E.write_shift(4,c.length),E.write_shift(2,296+32*p),E.write_shift(2,m),h=0;h<4;++h)E.write_shift(4,0);for(E.write_shift(4,0|(+t[s]||3)<<8),h=0,d=0;h":190,"?":191,"{":223},t=new RegExp("N("+st(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(t,r){var a=e[r];return"number"==typeof a?v(a):a},a=function(e,t,r){var a=t.charCodeAt(0)-32<<4|r.charCodeAt(0)-48;return 59==a?e:v(a)};function n(e,t){switch(t.type){case"base64":return s(E(e),t);case"binary":return s(e,t);case"buffer":return s(S&&Buffer.isBuffer(e)?e.toString("binary"):O(e),t);case"array":return s(kt(e),t)}throw new Error("Unrecognized type "+t.type)}function s(e,n){var s,i=e.split(/[\n\r]+/),o=-1,l=-1,c=0,u=0,h=[],d=[],p=null,b={},g=[],v=[],w=[],y=0;for(+n.codepage>=0&&f(+n.codepage);c!==i.length;++c){y=0;var k,T=i[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(t,r),_=T.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),E=_[0];if(T.length>0)switch(E){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":"P"==_[1].charAt(0)&&d.push(T.slice(3).replace(/;;/g,";"));break;case"C":var S=!1,A=!1,x=!1,C=!1,R=-1,P=-1;for(u=1;u<_.length;++u)switch(_[u].charAt(0)){case"A":break;case"X":l=parseInt(_[u].slice(1))-1,A=!0;break;case"Y":for(o=parseInt(_[u].slice(1))-1,A||(l=0),s=h.length;s<=o;++s)h[s]=[];break;case"K":k=_[u].slice(1),'"'===k.charAt(0)?k=k.slice(1,k.length-1):"TRUE"===k?k=!0:"FALSE"===k?k=!1:isNaN(Et(k))?isNaN(At(k).getDate())||(k=yt(k)):(k=Et(k),null!==p&&Be(p)&&(k=mt(k))),"undefined"!==typeof m&&"string"==typeof k&&"string"!=(n||{}).type&&(n||{}).codepage&&(k=m.utils.decode(n.codepage,k)),S=!0;break;case"E":C=!0;var O=Cu(_[u].slice(1),{r:o,c:l});h[o][l]=[h[o][l],O];break;case"S":x=!0,h[o][l]=[h[o][l],"S5S"];break;case"G":break;case"R":R=parseInt(_[u].slice(1))-1;break;case"C":P=parseInt(_[u].slice(1))-1;break;default:if(n&&n.WTF)throw new Error("SYLK bad record "+T)}if(S&&(h[o][l]&&2==h[o][l].length?h[o][l][0]=k:h[o][l]=k,p=null),x){if(C)throw new Error("SYLK shared formula cannot have own formula");var N=R>-1&&h[R][P];if(!N||!N[1])throw new Error("SYLK shared formula cannot find base");h[o][l][1]=Ou(N[1],{r:o-R,c:l-P})}break;case"F":var I=0;for(u=1;u<_.length;++u)switch(_[u].charAt(0)){case"X":l=parseInt(_[u].slice(1))-1,++I;break;case"Y":for(o=parseInt(_[u].slice(1))-1,s=h.length;s<=o;++s)h[s]=[];break;case"M":y=parseInt(_[u].slice(1))/20;break;case"F":break;case"G":break;case"P":p=d[parseInt(_[u].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(w=_[u].slice(1).split(" "),s=parseInt(w[0],10);s<=parseInt(w[1],10);++s)y=parseInt(w[2],10),v[s-1]=0===y?{hidden:!0}:{wch:y},Nc(v[s-1]);break;case"C":l=parseInt(_[u].slice(1))-1,v[l]||(v[l]={});break;case"R":o=parseInt(_[u].slice(1))-1,g[o]||(g[o]={}),y>0?(g[o].hpt=y,g[o].hpx=Mc(y)):0===y&&(g[o].hidden=!0);break;default:if(n&&n.WTF)throw new Error("SYLK bad record "+T)}I<1&&(p=null);break;default:if(n&&n.WTF)throw new Error("SYLK bad record "+T)}}return g.length>0&&(b["!rows"]=g),v.length>0&&(b["!cols"]=v),n&&n.sheetRows&&(h=h.slice(0,n.sheetRows)),[h,b]}function i(e,t){var r=n(e,t),a=r[0],s=r[1],i=Ha(a,t);return st(s).forEach((function(e){i[e]=s[e]})),i}function o(e,t){return za(i(e,t),t)}function l(e,t,r,a){var n="C;Y"+(r+1)+";X"+(a+1)+";K";switch(e.t){case"n":n+=e.v||0,e.f&&!e.F&&(n+=";E"+Pu(e.f,{r:r,c:a}));break;case"b":n+=e.v?"TRUE":"FALSE";break;case"e":n+=e.w||e.v;break;case"d":n+='"'+(e.w||e.v)+'"';break;case"s":n+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return n}function c(e,t){t.forEach((function(t,r){var a="F;W"+(r+1)+" "+(r+1)+" ";t.hidden?a+="0":("number"!=typeof t.width||t.wpx||(t.wpx=xc(t.width)),"number"!=typeof t.wpx||t.wch||(t.wch=Cc(t.wpx)),"number"==typeof t.wch&&(a+=Math.round(t.wch)))," "!=a.charAt(a.length-1)&&e.push(a)}))}function u(e,t){t.forEach((function(t,r){var a="F;";t.hidden?a+="M0;":t.hpt?a+="M"+20*t.hpt+";":t.hpx&&(a+="M"+20*Fc(t.hpx)+";"),a.length>2&&e.push(a+"R"+(r+1))}))}function h(e,t){var r,a=["ID;PWXL;N;E"],n=[],s=La(e["!ref"]),i=Array.isArray(e),o="\r\n";a.push("P;PGeneral"),a.push("F;P0;DG0G8;M255"),e["!cols"]&&c(a,e["!cols"]),e["!rows"]&&u(a,e["!rows"]),a.push("B;Y"+(s.e.r-s.s.r+1)+";X"+(s.e.c-s.s.c+1)+";D"+[s.s.c,s.s.r,s.e.c,s.e.r].join(" "));for(var f=s.s.r;f<=s.e.r;++f)for(var h=s.s.c;h<=s.e.c;++h){var d=Da({r:f,c:h});r=i?(e[f]||[])[h]:e[d],r&&(null!=r.v||r.f&&!r.F)&&n.push(l(r,e,f,h,t))}return a.join(o)+o+n.join(o)+o+"E"+o}return e["|"]=254,{to_workbook:o,to_sheet:i,from_sheet:h}}(),Sl=function(){function e(e,r){switch(r.type){case"base64":return t(E(e),r);case"binary":return t(e,r);case"buffer":return t(S&&Buffer.isBuffer(e)?e.toString("binary"):O(e),r);case"array":return t(kt(e),r)}throw new Error("Unrecognized type "+r.type)}function t(e,t){for(var r=e.split("\n"),a=-1,n=-1,s=0,i=[];s!==r.length;++s)if("BOT"!==r[s].trim()){if(!(a<0)){var o=r[s].trim().split(","),l=o[0],c=o[1];++s;var f=r[s]||"";while(1&(f.match(/["]/g)||[]).length&&s=0&&0===s[i].length)--i;for(var o=10,l=0,c=0;c<=i;++c)l=s[c].indexOf(" "),-1==l?l=s[c].length:l++,o=Math.max(o,l);for(c=0;c<=i;++c){n[c]=[];var f=0;for(e(s[c].slice(0,o).trim(),n,c,f,a),f=1;f<=(s[c].length-o)/10+1;++f)e(s[c].slice(o+10*(f-1),o+10*f).trim(),n,c,f,a)}return a.sheetRows&&(n=n.slice(0,a.sheetRows)),n}var r={44:",",9:"\t",59:";",124:"|"},a={44:3,9:2,59:1,124:0};function n(e){for(var t={},n=!1,s=0,i=0;s0&&g(),s["!ref"]=Ma(i),s}function i(e,r){return r&&r.PRN?r.FS||"sep="==e.slice(0,4)||e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0?s(e,r):Ha(t(e,r),r):s(e,r)}function o(e,t){var r="",a="string"==t.type?[0,0,0,0]:Kv(e,t);switch(t.type){case"base64":r=E(e);break;case"binary":r=e;break;case"buffer":r=65001==t.codepage?e.toString("utf8"):t.codepage&&"undefined"!==typeof m?m.utils.decode(t.codepage,e):S&&Buffer.isBuffer(e)?e.toString("binary"):O(e);break;case"array":r=kt(e);break;case"string":r=e;break;default:throw new Error("Unrecognized type "+t.type)}return 239==a[0]&&187==a[1]&&191==a[2]?r=dr(r.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?r=dr(r):"binary"==t.type&&"undefined"!==typeof m&&t.codepage&&(r=m.utils.decode(t.codepage,m.utils.encode(28591,r))),"socialcalc:version:"==r.slice(0,19)?Al.to_sheet("string"==t.type?r:dr(r),t):i(r,t)}function l(e,t){return za(o(e,t),t)}function c(e){for(var t,r=[],a=La(e["!ref"]),n=Array.isArray(e),s=a.s.r;s<=a.e.r;++s){for(var i=[],o=a.s.c;o<=a.e.c;++o){var l=Da({r:s,c:o});if(t=n?(e[s]||[])[o]:e[l],t&&null!=t.v){var c=(t.w||(Ua(t),t.w)||"").slice(0,10);while(c.length<10)c+=" ";i.push(c+(0===o?" ":""))}else i.push(" ")}r.push(i.join(""))}return r.join("\n")}return{to_workbook:l,to_sheet:o,from_sheet:c}}();function Cl(e,t){var r=t||{},a=!!r.WTF;r.WTF=!0;try{var n=El.to_workbook(e,r);return r.WTF=a,n}catch(s){if(r.WTF=a,!s.message.match(/SYLK bad record ID/)&&a)throw s;return xl.to_workbook(e,t)}}var Rl=function(){function e(e,t,r){if(e){pa(e,e.l||0);var a=r.Enum||z;while(e.l=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])a.Enum=z,e(t,(function(e,t,r){switch(r){case 0:a.vers=e,e>=4096&&(a.qpro=!0);break;case 6:u=e;break;case 204:e&&(i=e);break;case 222:i=e;break;case 15:case 51:a.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==r&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=a.dateNF||q[14],a.cellDates&&(e[1].t="d",e[1].v=mt(e[1].v))),a.qpro&&e[3]>o&&(n["!ref"]=Ma(u),l[s]=n,c.push(s),n=a.dense?[]:{},u={s:{r:0,c:0},e:{r:0,c:0}},o=e[3],s=i||"Sheet"+(o+1),i="");var f=a.dense?(n[e[0].r]||[])[e[0].c]:n[Da(e[0])];if(f){f.t=e[1].t,f.v=e[1].v,null!=e[1].z&&(f.z=e[1].z),null!=e[1].f&&(f.f=e[1].f);break}a.dense?(n[e[0].r]||(n[e[0].r]=[]),n[e[0].r][e[0].c]=e[1]):n[Da(e[0])]=e[1];break;default:}}),a);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);a.Enum=W,14==t[2]&&(a.qpro=!0,t.l=0),e(t,(function(e,t,r){switch(r){case 204:s=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>o&&(n["!ref"]=Ma(u),l[s]=n,c.push(s),n=a.dense?[]:{},u={s:{r:0,c:0},e:{r:0,c:0}},o=e[3],s="Sheet"+(o+1)),h>0&&e[0].r>=h)break;a.dense?(n[e[0].r]||(n[e[0].r]=[]),n[e[0].r][e[0].c]=e[1]):n[Da(e[0])]=e[1],u.e.c=0&&f(+r.codepage),"string"==r.type)throw new Error("Cannot write WK1 to JS string");var a=va(),n=La(e["!ref"]),i=Array.isArray(e),o=[];gg(a,0,s(1030)),gg(a,6,l(n));for(var c=Math.min(n.e.r,8191),u=n.s.r;u<=c;++u)for(var d=Sa(u),m=n.s.c;m<=n.e.c;++m){u===n.s.r&&(o[m]=Ra(m));var g=o[m]+d,v=i?(e[u]||[])[m]:e[g];if(v&&"z"!=v.t)if("n"==v.t)(0|v.v)==v.v&&v.v>=-32768&&v.v<=32767?gg(a,13,p(u,m,v.v)):gg(a,14,b(u,m,v.v));else{var w=Ua(v);gg(a,15,h(u,m,w.slice(0,239)))}}return gg(a,1),a.end()}function n(e,t){var r=t||{};if(+r.codepage>=0&&f(+r.codepage),"string"==r.type)throw new Error("Cannot write WK3 to JS string");var a=va();gg(a,0,i(e));for(var n=0,s=0;n8191&&(r=8191),t.write_shift(2,r),t.write_shift(1,n),t.write_shift(1,a),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}function o(e,t,r){var a={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&r.qpro?(a.s.c=e.read_shift(1),e.l++,a.s.r=e.read_shift(2),a.e.c=e.read_shift(1),e.l++,a.e.r=e.read_shift(2),a):(a.s.c=e.read_shift(2),a.s.r=e.read_shift(2),12==t&&r.qpro&&(e.l+=2),a.e.c=e.read_shift(2),a.e.r=e.read_shift(2),12==t&&r.qpro&&(e.l+=2),65535==a.s.c&&(a.s.c=a.e.c=a.s.r=a.e.r=0),a)}function l(e){var t=ba(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}function c(e,t,r){var a=[{c:0,r:0},{t:"n",v:0},0,0];return r.qpro&&20768!=r.vers?(a[0].c=e.read_shift(1),a[3]=e.read_shift(1),a[0].r=e.read_shift(2),e.l+=2):(a[2]=e.read_shift(1),a[0].c=e.read_shift(2),a[0].r=e.read_shift(2)),a}function u(e,t,r){var a=e.l+t,n=c(e,t,r);if(n[1].t="s",20768==r.vers){e.l++;var s=e.read_shift(1);return n[1].v=e.read_shift(s,"utf8"),n}return r.qpro&&e.l++,n[1].v=e.read_shift(a-e.l,"cstr"),n}function h(e,t,r){var a=ba(7+r.length);a.write_shift(1,255),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(1,39);for(var n=0;n=128?95:s)}return a.write_shift(1,0),a}function d(e,t,r){var a=c(e,t,r);return a[1].v=e.read_shift(2,"i"),a}function p(e,t,r){var a=ba(7);return a.write_shift(1,255),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(2,r,"i"),a}function m(e,t,r){var a=c(e,t,r);return a[1].v=e.read_shift(8,"f"),a}function b(e,t,r){var a=ba(13);return a.write_shift(1,255),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(8,r,"f"),a}function g(e,t,r){var a=e.l+t,n=c(e,t,r);if(n[1].v=e.read_shift(8,"f"),r.qpro)e.l=a;else{var s=e.read_shift(2);T(e.slice(e.l,e.l+s),n),e.l+=s}return n}function v(e,t,r){var a=32768&t;return t&=-32769,t=(a?e:0)+(t>=8192?t-16384:t),(a?"":"$")+(r?Ra(t):Sa(t))}var w={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},k=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function T(e,t){pa(e,0);var r=[],a=0,n="",s="",i="",o="";while(e.lr.length)return void console.error("WK1 bad formula parse 0x"+l.toString(16)+":|"+r.join("|")+"|");var h=r.slice(-a);r.length-=a,r.push(w[l][0]+"("+h.join(",")+")")}}}1==r.length?t[1].f=""+r[0]:console.error("WK1 bad formula parse |"+r.join("|")+"|")}function _(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function S(e,t){var r=_(e,t);return r[1].t="s",r[1].v=e.read_shift(t-4,"cstr"),r}function A(e,t,r,a){var n=ba(6+a.length);n.write_shift(2,e),n.write_shift(1,r),n.write_shift(1,t),n.write_shift(1,39);for(var s=0;s=128?95:i)}return n.write_shift(1,0),n}function x(e,t){var r=_(e,t);r[1].v=e.read_shift(2);var a=r[1].v>>1;if(1&r[1].v)switch(7&a){case 0:a=5e3*(a>>3);break;case 1:a=500*(a>>3);break;case 2:a=(a>>3)/20;break;case 3:a=(a>>3)/200;break;case 4:a=(a>>3)/2e3;break;case 5:a=(a>>3)/2e4;break;case 6:a=(a>>3)/16;break;case 7:a=(a>>3)/64;break}return r[1].v=a,r}function C(e,t){var r=_(e,t),a=e.read_shift(4),n=e.read_shift(4),s=e.read_shift(2);if(65535==s)return 0===a&&3221225472===n?(r[1].t="e",r[1].v=15):0===a&&3489660928===n?(r[1].t="e",r[1].v=42):r[1].v=0,r;var i=32768&s;return s=(32767&s)-16446,r[1].v=(1-2*i)*(n*Math.pow(2,s+32)+a*Math.pow(2,s)),r}function P(e,t,r,a){var n=ba(14);if(n.write_shift(2,e),n.write_shift(1,r),n.write_shift(1,t),0==a)return n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,65535),n;var s=0,i=0,o=0,l=0;return a<0&&(s=1,a=-a),i=0|Math.log2(a),a/=Math.pow(2,i-31),l=a>>>0,0==(2147483648&l)&&(a/=2,++i,l=a>>>0),a-=l,l|=2147483648,l>>>=0,a*=Math.pow(2,32),o=a>>>0,n.write_shift(4,o),n.write_shift(4,l),i+=16383+(s?32768:0),n.write_shift(2,i),n}function O(e,t){var r=C(e,14);return e.l+=t-14,r}function N(e,t){var r=_(e,t),a=e.read_shift(4);return r[1].v=a>>6,r}function I(e,t){var r=_(e,t),a=e.read_shift(8,"f");return r[1].v=a,r}function D(e,t){var r=I(e,14);return e.l+=t-10,r}function F(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function M(e,t){var r=e[e.l++];r>t-1&&(r=t-1);var a="";while(a.length127?95:n}return r[r.l++]=0,r}var z={0:{n:"BOF",f:ri},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:o},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:d},14:{n:"NUMBER",f:m},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:g},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:F},222:{n:"SHEETNAMELP",f:M},65535:{n:""}},W={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:S},23:{n:"NUMBER17",f:C},24:{n:"NUMBER18",f:x},25:{n:"FORMULA19",f:O},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:B},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:N},38:{n:"??"},39:{n:"NUMBER27",f:I},40:{n:"FORMULA28",f:D},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:F},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:L},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:a,book_to_wk3:n,to_workbook:t}}();function Pl(e){var t={},r=e.match(Gt),a=0,n=!1;if(r)for(;a!=r.length;++a){var s=Yt(r[a]);switch(s[0].replace(/\w*:/g,"")){case"":case"":t.shadow=1;break;case"":break;case"":case"":t.outline=1;break;case"":break;case"":case"":t.strike=1;break;case"":break;case"":case"":t.u=1;break;case"":break;case"":case"":t.b=1;break;case"":break;case"":case"":t.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":n=!1;break;default:if(47!==s[0].charCodeAt(1)&&!n)throw new Error("Unrecognized rich format "+s[0])}}return t}var Ol=function(){var e=mr("t"),t=mr("rPr");function r(r){var a=r.match(e);if(!a)return{t:"s",v:""};var n={t:"s",v:Jt(a[1])},s=r.match(t);return s&&(n.s=Pl(s[1])),n}var a=/<(?:\w+:)?r>/g,n=/<\/(?:\w+:)?r>/;return function(e){return e.replace(a,"").split(n).map(r).filter((function(e){return e.v}))}}(),Nl=function(){var e=/(\r\n|\n)/g;function t(e,t,r){var a=[];e.u&&a.push("text-decoration: underline;"),e.uval&&a.push("text-underline-style:"+e.uval+";"),e.sz&&a.push("font-size:"+e.sz+"pt;"),e.outline&&a.push("text-effect: outline;"),e.shadow&&a.push("text-shadow: auto;"),t.push(''),e.b&&(t.push(""),r.push("")),e.i&&(t.push(""),r.push("")),e.strike&&(t.push(""),r.push(""));var n=e.valign||"";return"superscript"==n||"super"==n?n="sup":"subscript"==n&&(n="sub"),""!=n&&(t.push("<"+n+">"),r.push("")),r.push(""),e}function r(r){var a=[[],r.v,[]];return r.v?(r.s&&t(r.s,a[0],a[2]),a[0].join("")+a[1].replace(e,"
")+a[2].join("")):""}return function(e){return e.map(r).join("")}}(),Il=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Dl=/<(?:\w+:)?r>/,Fl=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Ml(e,t){var r=!t||t.cellHTML,a={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(a.t=Jt(dr(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),a.r=dr(e),r&&(a.h=nr(a.t))):e.match(Dl)&&(a.r=dr(e),a.t=Jt(dr((e.replace(Fl,"").match(Il)||[]).join("").replace(Gt,""))),r&&(a.h=Nl(Ol(a.r)))),a):{t:""}}var Ll=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Bl=/<(?:\w+:)?(?:si|sstItem)>/g,Ul=/<\/(?:\w+:)?(?:si|sstItem)>/;function zl(e,t){var r=[],a="";if(!e)return r;var n=e.match(Ll);if(n){a=n[2].replace(Bl,"").split(Ul);for(var s=0;s!=a.length;++s){var i=Ml(a[s].trim(),t);null!=i&&(r[r.length]=i)}n=Yt(n[1]),r.Count=n.count,r.Unique=n.uniqueCount}return r}var Wl=/^\s|\s$|[\t\n\r]/;function Hl(e,t){if(!t.bookSST)return"";var r=[Wt];r[r.length]=Er("sst",null,{xmlns:Pr[0],count:e.Count,uniqueCount:e.Unique});for(var a=0;a!=e.length;++a)if(null!=e[a]){var n=e[a],s="";n.r?s+=n.r:(s+=""),s+="",r[r.length]=s}return r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function jl(e){return[e.read_shift(4),e.read_shift(4)]}function Vl(e,t){var r=[],a=!1;return ga(e,(function(e,n,s){switch(s){case 159:r.Count=e[0],r.Unique=e[1];break;case 19:r.push(e);break;case 160:return!0;case 35:a=!0;break;case 36:a=!1;break;default:if(n.T,!a||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}})),r}function Gl(e,t){return t||(t=ba(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var $l=Za;function Xl(e){var t=va();wa(t,159,Gl(e));for(var r=0;r=4&&(e.l+=t-4),r}function Zl(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=Kl(e,4),t.U=Kl(e,4),t.W=Kl(e,4),t}function ql(e){var t=e.read_shift(4),r=e.l+t-4,a={},n=e.read_shift(4),s=[];while(n-- >0)s.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(a.name=e.read_shift(0,"lpp4"),a.comps=s,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return a}function Jl(e){var t=[];e.l+=4;var r=e.read_shift(4);while(r-- >0)t.push(ql(e));return t}function Ql(e){var t=[];e.l+=4;var r=e.read_shift(4);while(r-- >0)t.push(e.read_shift(0,"lpp4"));return t}function ec(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=Kl(e,4),t.U=Kl(e,4),t.W=Kl(e,4),t}function tc(e){var t=ec(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return t}function rc(e,t){var r=e.l+t,a={};a.Flags=63&e.read_shift(4),e.l+=4,a.AlgID=e.read_shift(4);var n=!1;switch(a.AlgID){case 26126:case 26127:case 26128:n=36==a.Flags;break;case 26625:n=4==a.Flags;break;case 0:n=16==a.Flags||4==a.Flags||36==a.Flags;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID}if(!n)throw new Error("Encryption Flags/AlgID mismatch");return a.AlgIDHash=e.read_shift(4),a.KeySize=e.read_shift(4),a.ProviderType=e.read_shift(4),e.l+=8,a.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,a}function ac(e,t){var r={},a=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,a),e.l=a,r}function nc(e){var t=Kl(e);switch(t.Minor){case 2:return[t.Minor,sc(e,t)];case 3:return[t.Minor,ic(e,t)];case 4:return[t.Minor,oc(e,t)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function sc(e){var t=e.read_shift(4);if(36!=(63&t))throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),a=rc(e,r),n=ac(e,e.length-e.l);return{t:"Std",h:a,v:n}}function ic(){throw new Error("File is password-protected: ECMA-376 Extensible")}function oc(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),a={};return r.replace(Gt,(function(e){var r=Yt(e);switch(Kt(r[0])){case"":break;case"":case"":break;case"":break;case"4||a.Major<2)throw new Error("unrecognized major version code: "+a.Major);r.Flags=e.read_shift(4),t-=4;var n=e.read_shift(4);return t-=4,r.EncryptionHeader=rc(e,n),t-=n,r.EncryptionVerifier=ac(e,t),r}function cc(e){var t={},r=t.EncryptionVersionInfo=Kl(e,4);if(1!=r.Major||1!=r.Minor)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function fc(e){var t,r,a,n,s,i,o=0,l=Yl(e),c=l.length+1;for(t=x(c),t[0]=l.length,r=1;r!=c;++r)t[r]=l[r-1];for(r=c-1;r>=0;--r)a=t[r],n=0===(16384&o)?0:1,s=o<<1&32767,i=n|s,o=i^a;return 52811^o}var uc=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],a=function(e){return 255&(e/2|128*e)},n=function(e,t){return a(e^t)},s=function(e){for(var a=t[e.length-1],n=104,s=e.length-1;s>=0;--s)for(var i=e[s],o=0;7!=o;++o)64&i&&(a^=r[n]),i*=2,--n;return a};return function(t){for(var r,a,i,o=Yl(t),l=s(o),c=o.length,f=x(16),u=0;16!=u;++u)f[u]=0;1===(1&c)&&(r=l>>8,f[c]=n(e[0],r),--c,r=255&l,a=o[o.length-1],f[c]=n(a,r));while(c>0)--c,r=l>>8,f[c]=n(o[c],r),--c,r=255&l,f[c]=n(o[c],r);c=15,i=15-o.length;while(i>0)r=l>>8,f[c]=n(e[i],r),--c,--i,r=255&l,f[c]=n(o[c],r),--c,--i;return f}}(),hc=function(e,t,r,a,n){var s,i;for(n||(n=t),a||(a=uc(e)),s=0;s!=t.length;++s)i=t[s],i^=a[r],i=255&(i>>5|i<<3),n[s]=i,++r;return[n,r,a]},dc=function(e){var t=0,r=uc(e);return function(e){var a=hc("",e,t,r);return t=a[1],a[0]}};function pc(e,t,r,a){var n={key:ri(e),verificationBytes:ri(e)};return r.password&&(n.verifier=fc(r.password)),a.valid=n.verificationBytes===n.verifier,a.valid&&(a.insitu=dc(r.password)),n}function mc(e,t,r){var a=r||{};return a.Info=e.read_shift(2),e.l-=2,1===a.Info?a.Data=cc(e,t):a.Data=lc(e,t),a}function bc(e,t,r){var a={Type:r.biff>=8?e.read_shift(2):0};return a.Type?mc(e,t-2,a):pc(e,r.biff>=8?t:t-2,r,a),a}var gc=function(){function e(e,r){switch(r.type){case"base64":return t(E(e),r);case"binary":return t(e,r);case"buffer":return t(S&&Buffer.isBuffer(e)?e.toString("binary"):O(e),r);case"array":return t(kt(e),r)}throw new Error("Unrecognized type "+r.type)}function t(e,t){var r=t||{},a=r.dense?[]:{},n=e.match(/\\trowd.*?\\row\b/g);if(!n.length)throw new Error("RTF missing table");var s={s:{c:0,r:0},e:{c:0,r:n.length-1}};return n.forEach((function(e,t){Array.isArray(a)&&(a[t]=[]);var r,n=/\\\w+\b/g,i=0,o=-1;while(r=n.exec(e)){switch(r[0]){case"\\cell":var l=e.slice(i,n.lastIndex-r[0].length);if(" "==l[0]&&(l=l.slice(1)),++o,l.length){var c={v:l,t:"s"};Array.isArray(a)?a[t][o]=c:a[Da({r:t,c:o})]=c}break}i=n.lastIndex}o>s.e.c&&(s.e.c=o)})),a["!ref"]=Ma(s),a}function r(t,r){return za(e(t,r),r)}function a(e){for(var t,r=["{\\rtf1\\ansi"],a=La(e["!ref"]),n=Array.isArray(e),s=a.s.r;s<=a.e.r;++s){r.push("\\trowd\\trautofit1");for(var i=a.s.c;i<=a.e.c;++i)r.push("\\cellx"+(i+1));for(r.push("\\pard\\intbl"),i=a.s.c;i<=a.e.c;++i){var o=Da({r:s,c:i});t=n?(e[s]||[])[i]:e[o],t&&(null!=t.v||t.f&&!t.F)&&(r.push(" "+(t.w||(Ua(t),t.w))),r.push("\\cell"))}r.push("\\pard\\intbl\\row")}return r.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:a}}();function vc(e){var t=e.slice("#"===e[0]?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function wc(e){for(var t=0,r=1;3!=t;++t)r=256*r+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function yc(e){var t=e[0]/255,r=e[1]/255,a=e[2]/255,n=Math.max(t,r,a),s=Math.min(t,r,a),i=n-s;if(0===i)return[0,0,t];var o=0,l=0,c=n+s;switch(l=i/(c>1?2-c:c),n){case t:o=((r-a)/i+6)%6;break;case r:o=(a-t)/i+2;break;case a:o=(t-r)/i+4;break}return[o/6,l,c/2]}function kc(e){var t,r=e[0],a=e[1],n=e[2],s=2*a*(n<.5?n:1-n),i=n-s/2,o=[i,i,i],l=6*r;if(0!==a)switch(0|l){case 0:case 6:t=s*l,o[0]+=s,o[1]+=t;break;case 1:t=s*(2-l),o[0]+=t,o[1]+=s;break;case 2:t=s*(l-2),o[1]+=s,o[2]+=t;break;case 3:t=s*(4-l),o[1]+=t,o[2]+=s;break;case 4:t=s*(l-4),o[2]+=s,o[0]+=t;break;case 5:t=s*(6-l),o[2]+=t,o[0]+=s;break}for(var c=0;3!=c;++c)o[c]=Math.round(255*o[c]);return o}function Tc(e,t){if(0===t)return e;var r=yc(vc(e));return r[2]=t<0?r[2]*(1+t):1-(1-r[2])*(1-t),wc(kc(r))}var _c=6,Ec=15,Sc=1,Ac=_c;function xc(e){return Math.floor((e+Math.round(128/Ac)/256)*Ac)}function Cc(e){return Math.floor((e-5)/Ac*100+.5)/100}function Rc(e){return Math.round((e*Ac+5)/Ac*256)/256}function Pc(e){return Rc(Cc(xc(e)))}function Oc(e){var t=Math.abs(e-Pc(e)),r=Ac;if(t>.005)for(Ac=Sc;Ac":case"":break;case"":case"":n={},r.diagonalUp&&(n.diagonalUp=lr(r.diagonalUp)),r.diagonalDown&&(n.diagonalDown=lr(r.diagonalDown)),t.Borders.push(n);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":break;case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+r[0]+" in borders")}}))}function Uc(e,t,r,a){t.Fills=[];var n={},s=!1;(e[0].match(Gt)||[]).forEach((function(e){var r=Yt(e);switch(Kt(r[0])){case"":case"":break;case"":case"":n={},t.Fills.push(n);break;case"":break;case"":break;case"":t.Fills.push(n),n={};break;case"":r.patternType&&(n.patternType=r.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+r[0]+" in fills")}}))}function zc(e,t,r,a){t.Fonts=[];var n={},s=!1;(e[0].match(Gt)||[]).forEach((function(e){var i=Yt(e);switch(Kt(i[0])){case"":case"":break;case"":break;case"":case"":t.Fonts.push(n),n={};break;case"":case"":break;case"":n.bold=1;break;case"":n.italic=1;break;case"":n.underline=1;break;case"":n.strike=1;break;case"":n.outline=1;break;case"":n.shadow=1;break;case"":n.condense=1;break;case"":n.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":s=!1;break;case"":case"":break;case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+i[0]+" in fonts")}}))}function Wc(e,t,r){t.NumberFmt=[];for(var a=st(q),n=0;n":case"":case"":break;case"0){if(l>392){for(l=392;l>60;--l)if(null==t.NumberFmt[l])break;t.NumberFmt[l]=o}Ve(o,l)}break;case"":break;default:if(r.WTF)throw new Error("unrecognized "+i[0]+" in numFmts")}}}function Hc(e){var t=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var a=r[0];a<=r[1];++a)null!=e[a]&&(t[t.length]=Er("numFmt",null,{numFmtId:a,formatCode:tr(e[a])}))})),1===t.length?"":(t[t.length]="",t[0]=Er("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var jc=["numFmtId","fillId","fontId","borderId","xfId"],Vc=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function Gc(e,t,r){var a;t.CellXf=[];var n=!1;(e[0].match(Gt)||[]).forEach((function(e){var s=Yt(e),i=0;switch(Kt(s[0])){case"":case"":case"":break;case"":for(a=s,delete a[0],i=0;i392)for(i=392;i>60;--i)if(t.NumberFmt[a.numFmtId]==t.NumberFmt[i]){a.numFmtId=i;break}t.CellXf.push(a);break;case"":break;case"":var o={};s.vertical&&(o.vertical=s.vertical),s.horizontal&&(o.horizontal=s.horizontal),null!=s.textRotation&&(o.textRotation=s.textRotation),s.indent&&(o.indent=s.indent),s.wrapText&&(o.wrapText=lr(s.wrapText)),a.alignment=o;break;case"":break;case"":case"":break;case"":n=!1;break;case"":case"":break;case"":n=!1;break;default:if(r&&r.WTF&&!n)throw new Error("unrecognized "+s[0]+" in cellXfs")}}))}function $c(e){var t=[];return t[t.length]=Er("cellXfs",null),e.forEach((function(e){t[t.length]=Er("xf",null,e)})),t[t.length]="",2===t.length?"":(t[0]=Er("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var Xc=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,r=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,n=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(s,i,o){var l,c={};return s?(s=s.replace(//gm,"").replace(//gm,""),(l=s.match(e))&&Wc(l,c,o),(l=s.match(a))&&zc(l,c,i,o),(l=s.match(r))&&Uc(l,c,i,o),(l=s.match(n))&&Bc(l,c,i,o),(l=s.match(t))&&Gc(l,c,o),c):c}}();function Yc(e,t){var r,a=[Wt,Er("styleSheet",null,{xmlns:Pr[0],"xmlns:vt":Rr.vt})];return e.SSF&&null!=(r=Hc(e.SSF))&&(a[a.length]=r),a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',(r=$c(t.cellXfs))&&(a[a.length]=r),a[a.length]='',a[a.length]='',a[a.length]='',a.length>2&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}function Kc(e,t){var r=e.read_shift(2),a=Ga(e,t-2);return[r,a]}function Zc(e,t,r){r||(r=ba(6+4*t.length)),r.write_shift(2,e),$a(t,r);var a=r.length>r.l?r.slice(0,r.l):r;return null==r.l&&(r.l=r.length),a}function qc(e,t,r){var a={};a.sz=e.read_shift(2)/20;var n=kn(e,2,r);n.fItalic&&(a.italic=1),n.fCondense&&(a.condense=1),n.fExtend&&(a.extend=1),n.fShadow&&(a.shadow=1),n.fOutline&&(a.outline=1),n.fStrikeout&&(a.strike=1);var s=e.read_shift(2);switch(700===s&&(a.bold=1),e.read_shift(2)){case 1:a.vertAlign="superscript";break;case 2:a.vertAlign="subscript";break}var i=e.read_shift(1);0!=i&&(a.underline=i);var o=e.read_shift(1);o>0&&(a.family=o);var l=e.read_shift(1);switch(l>0&&(a.charset=l),e.l++,a.color=wn(e,8),e.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor";break}return a.name=Ga(e,t-21),a}function Jc(e,t){t||(t=ba(153)),t.write_shift(2,20*e.sz),Tn(e,t),t.write_shift(2,e.bold?700:400);var r=0;"superscript"==e.vertAlign?r=1:"subscript"==e.vertAlign&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),yn(e.color,t);var a=0;return"major"==e.scheme&&(a=1),"minor"==e.scheme&&(a=2),t.write_shift(1,a),$a(e.name,t),t.length>t.l?t.slice(0,t.l):t}var Qc,ef=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],tf=ma;function rf(e,t){t||(t=ba(84)),Qc||(Qc=ot(ef));var r=Qc[e.patternType];null==r&&(r=40),t.write_shift(4,r);var a=0;if(40!=r)for(yn({auto:1},t),yn({auto:1},t);a<12;++a)t.write_shift(4,0);else{for(;a<4;++a)t.write_shift(4,0);for(;a<12;++a)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function af(e,t){var r=e.l+t,a=e.read_shift(2),n=e.read_shift(2);return e.l=r,{ixfe:a,numFmtId:n}}function nf(e,t,r){r||(r=ba(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var a=0;return r.write_shift(1,a),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function sf(e,t){return t||(t=ba(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var of=ma;function lf(e,t){return t||(t=ba(51)),t.write_shift(1,0),sf(null,t),sf(null,t),sf(null,t),sf(null,t),sf(null,t),t.length>t.l?t.slice(0,t.l):t}function cf(e,t){return t||(t=ba(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),on(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function ff(e,t,r){var a=ba(2052);return a.write_shift(4,e),on(t,a),on(r,a),a.length>a.l?a.slice(0,a.l):a}function uf(e,t,r){var a={NumberFmt:[]};for(var n in q)a.NumberFmt[n]=q[n];a.CellXf=[],a.Fonts=[];var s=[],i=!1;return ga(e,(function(e,n,o){switch(o){case 44:a.NumberFmt[e[0]]=e[1],Ve(e[1],e[0]);break;case 43:a.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=Tc(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:617==s[s.length-1]&&a.CellXf.push(e);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:s.push(o),i=!0;break;case 38:s.pop(),i=!1;break;default:if(n.T>0)s.push(o);else if(n.T<0)s.pop();else if(!i||r.WTF&&37!=s[s.length-1])throw new Error("Unexpected record 0x"+o.toString(16))}})),a}function hf(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var a=e[0];a<=e[1];++a)null!=t[a]&&++r})),0!=r&&(wa(e,615,Va(r)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var a=r[0];a<=r[1];++a)null!=t[a]&&wa(e,44,Zc(a,t[a]))})),wa(e,616))}}function df(e){var t=1;0!=t&&(wa(e,611,Va(t)),wa(e,43,Jc({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),wa(e,612))}function pf(e){var t=2;0!=t&&(wa(e,603,Va(t)),wa(e,45,rf({patternType:"none"})),wa(e,45,rf({patternType:"gray125"})),wa(e,604))}function mf(e){var t=1;0!=t&&(wa(e,613,Va(t)),wa(e,46,lf({})),wa(e,614))}function bf(e){var t=1;wa(e,626,Va(t)),wa(e,47,nf({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),wa(e,627)}function gf(e,t){wa(e,617,Va(t.length)),t.forEach((function(t){wa(e,47,nf(t,0))})),wa(e,618)}function vf(e){var t=1;wa(e,619,Va(t)),wa(e,48,cf({xfId:0,builtinId:0,name:"Normal"})),wa(e,620)}function wf(e){var t=0;wa(e,505,Va(t)),wa(e,506)}function yf(e){var t=0;wa(e,508,ff(t,"TableStyleMedium9","PivotStyleMedium4")),wa(e,509)}function kf(){}function Tf(e,t){var r=va();return wa(r,278),hf(r,e.SSF),df(r,e),pf(r,e),mf(r,e),bf(r,e),gf(r,t.cellXfs),vf(r,e),wf(r,e),yf(r,e),kf(r,e),wa(r,279),r.end()}var _f=["","","","","","","","","","","",""];function Ef(e,t,r){t.themeElements.clrScheme=[];var a={};(e[0].match(Gt)||[]).forEach((function(e){var n=Yt(e);switch(n[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":"/"===n[0].charAt(1)?(t.themeElements.clrScheme[_f.indexOf(n[0])]=a,a={}):a.name=n[0].slice(3,n[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+n[0]+" in clrScheme")}}))}function Sf(){}function Af(){}var xf=/]*)>[\s\S]*<\/a:clrScheme>/,Cf=/]*)>[\s\S]*<\/a:fontScheme>/,Rf=/]*)>[\s\S]*<\/a:fmtScheme>/;function Pf(e,t,r){var a;t.themeElements={},[["clrScheme",xf,Ef],["fontScheme",Cf,Sf],["fmtScheme",Rf,Af]].forEach((function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,t,r)}))}var Of=/]*)>[\s\S]*<\/a:themeElements>/;function Nf(e,t){var r;e&&0!==e.length||(e=If());var a={};if(!(r=e.match(Of)))throw new Error("themeElements not found in theme");return Pf(r[0],a,t),a.raw=e,a}function If(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var r=[Wt];return r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r.join("")}function Df(e,t,r){var a=e.l+t,n=e.read_shift(4);if(124226!==n)if(r.cellStyles){var s,i=e.slice(e.l);e.l=a;try{s=Ut(i,{type:"array"})}catch(l){return}var o=Dt(s,"theme/theme/theme1.xml",!0);if(o)return Nf(o,r)}else e.l=a}function Ff(e){return e.read_shift(4)}function Mf(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=Lf(e,4);break;case 2:t.xclrValue=Ti(e,4);break;case 3:t.xclrValue=Ff(e,4);break;case 4:e.l+=4;break}return e.l+=8,t}function Lf(e,t){return ma(e,t)}function Bf(e,t){return ma(e,t)}function Uf(e){var t=e.read_shift(2),r=e.read_shift(2)-4,a=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:a[1]=Mf(e,r);break;case 6:a[1]=Bf(e,r);break;case 14:case 15:a[1]=e.read_shift(1===r?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return a}function zf(e,t){var r=e.l+t;e.l+=2;var a=e.read_shift(2);e.l+=2;var n=e.read_shift(2),s=[];while(n-- >0)s.push(Uf(e,r-e.l));return{ixfe:a,ext:s}}function Wf(e,t){t.forEach((function(e){switch(e[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break}}))}function Hf(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Ga(e,t-8)}}function jf(e){var t=ba(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),$a(e.name,t),t.slice(0,t.l)}function Vf(e){var t=[],r=e.read_shift(4);while(r-- >0)t.push([e.read_shift(4),e.read_shift(4)]);return t}function Gf(e){var t=ba(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":i=2;break;case"":i=2;break;case"":case"":case"":break;case"":s=!1;break;case"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),e.join("")}function Qf(e){var t=[];if(!e)return t;var r=1;return(e.match(Gt)||[]).forEach((function(e){var a=Yt(e);switch(a[0]){case"":case"":break;case"]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}var su=1024;function iu(e,t){var r=[21600,21600],a=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),n=[Er("xml",null,{"xmlns:v":Or.v,"xmlns:o":Or.o,"xmlns:x":Or.x,"xmlns:mv":Or.mv}).replace(/\/>/,">"),Er("o:shapelayout",Er("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Er("v:shapetype",[Er("v:stroke",null,{joinstyle:"miter"}),Er("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:a})];while(su<1e3*e)su+=1e3;return t.forEach((function(e){var t=Ia(e[0]),r={color2:"#BEFF82",type:"gradient"};"gradient"==r.type&&(r.angle="-180");var a="gradient"==r.type?Er("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,s=Er("v:fill",a,r),i={on:"t",obscured:"t"};++su,n=n.concat(["",s,Er("v:shadow",null,i),Er("v:path",null,{"o:connecttype":"none"}),'
','',"","",Tr("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),Tr("x:AutoFill","False"),Tr("x:Row",String(t.r)),Tr("x:Column",String(t.c)),e[1].hidden?"":"","",""])})),n.push(""),n.join("")}function ou(e,t,r,a){var n,s=Array.isArray(e);t.forEach((function(t){var i=Ia(t.ref);if(s?(e[i.r]||(e[i.r]=[]),n=e[i.r][i.c]):n=e[t.ref],!n){n={t:"z"},s?e[i.r][i.c]=n:e[t.ref]=n;var o=La(e["!ref"]||"BDWGO1000001:A1");o.s.r>i.r&&(o.s.r=i.r),o.e.ri.c&&(o.s.c=i.c),o.e.c=0;--f){if(!r&&n.c[f].T)return;r&&!n.c[f].T&&n.c.splice(f,1)}if(r&&a)for(f=0;f/))return[];var r=[],a=[],n=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);n&&n[1]&&n[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&r.push(t[1])}}));var s=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return s&&s[1]&&s[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var n=e.match(/<(?:\w+:)?comment[^>]*>/);if(n){var s=Yt(n[0]),i={author:s.authorId&&r[s.authorId]||"sheetjsghost",ref:s.ref,guid:s.guid},o=Ia(s.ref);if(!(t.sheetRows&&t.sheetRows<=o.r)){var l=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),c=!!l&&!!l[1]&&Ml(l[1])||{r:"",t:"",h:""};i.r=c.r,""==c.r&&(c.t=c.h=""),i.t=(c.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(i.h=c.h),a.push(i)}}}})),a}function cu(e){var t=[Wt,Er("comments",null,{xmlns:Pr[0]})],r=[];return t.push(""),e.forEach((function(e){e[1].forEach((function(e){var a=tr(e.a);-1==r.indexOf(a)&&(r.push(a),t.push(""+a+"")),e.T&&e.ID&&-1==r.indexOf("tc="+e.ID)&&(r.push("tc="+e.ID),t.push("tc="+e.ID+""))}))})),0==r.length&&(r.push("SheetJ5"),t.push("SheetJ5")),t.push(""),t.push(""),e.forEach((function(e){var a=0,n=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?a=r.indexOf("tc="+e[1][0].ID):e[1].forEach((function(e){e.a&&(a=r.indexOf(tr(e.a))),n.push(e.t||"")})),t.push(''),n.length<=1)t.push(Tr("t",tr(n[0]||"")));else{for(var s="Comment:\n "+n[0]+"\n",i=1;i")})),t.push(""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function fu(e,t){var r=[],a=!1,n={},s=0;return e.replace(Gt,(function(i,o){var l=Yt(i);switch(Kt(l[0])){case"":break;case"":null!=n.t&&r.push(n);break;case"":case"":n.t=e.slice(s,o).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"":a=!0;break;case"":a=!1;break;case"":case"
":case"":break;case"":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return i})),r}function uu(e,t,r){var a=[Wt,Er("ThreadedComments",null,{xmlns:Rr.TCMNT}).replace(/[\/]>/,">")];return e.forEach((function(e){var n="";(e[1]||[]).forEach((function(s,i){if(s.T){s.a&&-1==t.indexOf(s.a)&&t.push(s.a);var o={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};0==i?n=o.id:o.parentId=n,s.ID=o.id,s.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),a.push(Er("threadedComment",Tr("text",s.t||""),o))}else delete s.ID}))})),a.push(""),a.join("")}function hu(e,t){var r=[],a=!1;return e.replace(Gt,(function(e){var n=Yt(e);switch(Kt(n[0])){case"":break;case"":break;case"":case"":case"":break;case"":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+n[0]+" in threaded comments")}return e})),r}function du(e){var t=[Wt,Er("personList",null,{xmlns:Rr.TCMNT,"xmlns:x":Pr[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,r){t.push(Er("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+r).slice(-12)+"}",userId:e,providerId:"None"}))})),t.push(""),t.join("")}function pu(e){var t={};t.iauthor=e.read_shift(4);var r=mn(e,16);return t.rfx=r.s,t.ref=Da(r.s),e.l+=16,t}function mu(e,t){return null==t&&(t=ba(36)),t.write_shift(4,e[1].iauthor),bn(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var bu=Ga;function gu(e){return $a(e.slice(0,54))}function vu(e,t){var r=[],a=[],n={},s=!1;return ga(e,(function(e,i,o){switch(o){case 632:a.push(e);break;case 635:n=e;break;case 637:n.t=e.t,n.h=e.h,n.r=e.r;break;case 636:if(n.author=a[n.iauthor],delete n.iauthor,t.sheetRows&&n.rfx&&t.sheetRows<=n.rfx.r)break;n.t||(n.t=""),delete n.rfx,r.push(n);break;case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:break;case 38:break;default:if(i.T);else if(!s||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}})),r}function wu(e){var t=va(),r=[];return wa(t,628),wa(t,630),e.forEach((function(e){e[1].forEach((function(e){r.indexOf(e.a)>-1||(r.push(e.a.slice(0,54)),wa(t,632,gu(e.a)))}))})),wa(t,631),wa(t,633),e.forEach((function(e){e[1].forEach((function(a){a.iauthor=r.indexOf(a.a);var n={s:Ia(e[0]),e:Ia(e[0])};wa(t,635,mu([n,a])),a.t&&a.t.length>0&&wa(t,637,Ja(a)),wa(t,636),delete a.iauthor}))})),wa(t,634),wa(t,629),t.end()}var yu="application/vnd.ms-office.vbaProject";function ku(e){var t=Qe.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(r,a){if("/"!==r.slice(-1)&&r.match(/_VBA_PROJECT_CUR/)){var n=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Qe.utils.cfb_add(t,n,e.FileIndex[a].content)}})),Qe.write(t)}function Tu(e,t){t.FullPaths.forEach((function(r,a){if(0!=a){var n=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==n.slice(-1)&&Qe.utils.cfb_add(e,n,t.FileIndex[a].content)}}))}var _u=["xlsb","xlsm","xlam","biff8","xla"];function Eu(){return{"!type":"dialog"}}function Su(){return{"!type":"dialog"}}function Au(){return{"!type":"macro"}}function xu(){return{"!type":"macro"}}var Cu=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(e,r,a,n){var s=!1,i=!1;0==a.length?i=!0:"["==a.charAt(0)&&(i=!0,a=a.slice(1,-1)),0==n.length?s=!0:"["==n.charAt(0)&&(s=!0,n=n.slice(1,-1));var o=a.length>0?0|parseInt(a,10):0,l=n.length>0?0|parseInt(n,10):0;return s?l+=t.c:--l,i?o+=t.r:--o,r+(s?"":"$")+Ra(l)+(i?"":"$")+Sa(o)}return function(a,n){return t=n,a.replace(e,r)}}(),Ru=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Pu=function(){return function(e,t){return e.replace(Ru,(function(e,r,a,n,s,i){var o=Ca(n)-(a?0:t.c),l=Ea(i)-(s?0:t.r),c=0==l?"":s?l+1:"["+l+"]",f=0==o?"":a?o+1:"["+o+"]";return r+"R"+c+"C"+f}))}}();function Ou(e,t){return e.replace(Ru,(function(e,r,a,n,s,i){return r+("$"==a?a+n:Ra(Ca(n)+t.c))+("$"==s?s+i:Sa(Ea(i)+t.r))}))}function Nu(e,t,r){var a=Fa(t),n=a.s,s=Ia(r),i={r:s.r-n.r,c:s.c-n.c};return Ou(e,i)}function Iu(e){return 1!=e.length}function Du(e){return e.replace(/_xlfn\./g,"")}function Fu(e){e.l+=1}function Mu(e,t){var r=e.read_shift(1==t?1:2);return[16383&r,r>>14&1,r>>15&1]}function Lu(e,t,r){var a=2;if(r){if(r.biff>=2&&r.biff<=5)return Bu(e,t,r);12==r.biff&&(a=4)}var n=e.read_shift(a),s=e.read_shift(a),i=Mu(e,2),o=Mu(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:s,c:o[0],cRel:o[1],rRel:o[2]}}}function Bu(e){var t=Mu(e,2),r=Mu(e,2),a=e.read_shift(1),n=e.read_shift(1);return{s:{r:t[0],c:a,cRel:t[1],rRel:t[2]},e:{r:r[0],c:n,cRel:r[1],rRel:r[2]}}}function Uu(e,t,r){if(r.biff<8)return Bu(e,t,r);var a=e.read_shift(12==r.biff?4:2),n=e.read_shift(12==r.biff?4:2),s=Mu(e,2),i=Mu(e,2);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:n,c:i[0],cRel:i[1],rRel:i[2]}}}function zu(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return Wu(e,t,r);var a=e.read_shift(r&&12==r.biff?4:2),n=Mu(e,2);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}function Wu(e){var t=Mu(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function Hu(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:255&r,fQuoted:!!(16384&r),cRel:r>>15,rRel:r>>15}}function ju(e,t,r){var a=r&&r.biff?r.biff:8;if(a>=2&&a<=5)return Vu(e,t,r);var n=e.read_shift(a>=12?4:2),s=e.read_shift(2),i=(16384&s)>>14,o=(32768&s)>>15;if(s&=16383,1==o)while(n>524287)n-=1048576;if(1==i)while(s>8191)s-=16384;return{r:n,c:s,cRel:i,rRel:o}}function Vu(e){var t=e.read_shift(2),r=e.read_shift(1),a=(32768&t)>>15,n=(16384&t)>>14;return t&=16383,1==a&&t>=8192&&(t-=16384),1==n&&r>=128&&(r-=256),{r:t,c:r,cRel:n,rRel:a}}function Gu(e,t,r){var a=(96&e[e.l++])>>5,n=Lu(e,r.biff>=2&&r.biff<=5?6:8,r);return[a,n]}function $u(e,t,r){var a=(96&e[e.l++])>>5,n=e.read_shift(2,"i"),s=8;if(r)switch(r.biff){case 5:e.l+=12,s=6;break;case 12:s=12;break}var i=Lu(e,s,r);return[a,n,i]}function Xu(e,t,r){var a=(96&e[e.l++])>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[a]}function Yu(e,t,r){var a=(96&e[e.l++])>>5,n=e.read_shift(2),s=8;if(r)switch(r.biff){case 5:e.l+=12,s=6;break;case 12:s=12;break}return e.l+=s,[a,n]}function Ku(e,t,r){var a=(96&e[e.l++])>>5,n=Uu(e,t-1,r);return[a,n]}function Zu(e,t,r){var a=(96&e[e.l++])>>5;return e.l+=2==r.biff?6:12==r.biff?14:7,[a]}function qu(e){var t=1&e[e.l+1],r=1;return e.l+=4,[t,r]}function Ju(e,t,r){e.l+=2;for(var a=e.read_shift(r&&2==r.biff?1:2),n=[],s=0;s<=a;++s)n.push(e.read_shift(r&&2==r.biff?1:2));return n}function Qu(e,t,r){var a=255&e[e.l+1]?1:0;return e.l+=2,[a,e.read_shift(r&&2==r.biff?1:2)]}function eh(e,t,r){var a=255&e[e.l+1]?1:0;return e.l+=2,[a,e.read_shift(r&&2==r.biff?1:2)]}function th(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}function rh(e,t,r){var a=255&e[e.l+1]?1:0;return e.l+=r&&2==r.biff?3:4,[a]}function ah(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function nh(e){return e.read_shift(2),ah(e,2)}function sh(e){return e.read_shift(2),ah(e,2)}function ih(e,t,r){var a=(96&e[e.l])>>5;e.l+=1;var n=zu(e,0,r);return[a,n]}function oh(e,t,r){var a=(96&e[e.l])>>5;e.l+=1;var n=ju(e,0,r);return[a,n]}function lh(e,t,r){var a=(96&e[e.l])>>5;e.l+=1;var n=e.read_shift(2);r&&5==r.biff&&(e.l+=12);var s=zu(e,0,r);return[a,n,s]}function ch(e,t,r){var a=(96&e[e.l])>>5;e.l+=1;var n=e.read_shift(r&&r.biff<=3?1:2);return[Sd[n],Ed[n],a]}function fh(e,t,r){var a=e[e.l++],n=e.read_shift(1),s=r&&r.biff<=3?[88==a?-1:0,e.read_shift(1)]:uh(e);return[n,(0===s[0]?Ed:_d)[s[1]]]}function uh(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}function hh(e,t,r){e.l+=r&&2==r.biff?3:4}function dh(e,t,r){if(e.l++,r&&12==r.biff)return[e.read_shift(4,"i"),0];var a=e.read_shift(2),n=e.read_shift(r&&2==r.biff?1:2);return[a,n]}function ph(e){return e.l++,$n[e.read_shift(1)]}function mh(e){return e.l++,e.read_shift(2)}function bh(e){return e.l++,0!==e.read_shift(1)}function gh(e){return e.l++,gn(e,8)}function vh(e,t,r){return e.l++,oi(e,t-1,r)}function wh(e,t){var r=[e.read_shift(1)];if(12==t)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=ei(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:r[1]=$n[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:r[1]=gn(e,8);break;case 2:r[1]=hi(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function yh(e,t,r){for(var a=e.read_shift(12==r.biff?4:2),n=[],s=0;s!=a;++s)n.push((12==r.biff?mn:Oi)(e,8));return n}function kh(e,t,r){var a=0,n=0;12==r.biff?(a=e.read_shift(4),n=e.read_shift(4)):(n=1+e.read_shift(1),a=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--a,0==--n&&(n=256));for(var s=0,i=[];s!=a&&(i[s]=[]);++s)for(var o=0;o!=n;++o)i[s][o]=wh(e,r.biff);return i}function Th(e,t,r){var a=e.read_shift(1)>>>5&3,n=!r||r.biff>=8?4:2,s=e.read_shift(n);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[a,0,s]}function _h(e,t,r){if(5==r.biff)return Eh(e,t,r);var a=e.read_shift(1)>>>5&3,n=e.read_shift(2),s=e.read_shift(4);return[a,n,s]}function Eh(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var a=e.read_shift(2);return e.l+=12,[t,r,a]}function Sh(e,t,r){var a=e.read_shift(1)>>>5&3;e.l+=r&&2==r.biff?3:4;var n=e.read_shift(r&&2==r.biff?1:2);return[a,n]}function Ah(e,t,r){var a=e.read_shift(1)>>>5&3,n=e.read_shift(r&&2==r.biff?1:2);return[a,n]}function xh(e,t,r){var a=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,12==r.biff&&(e.l+=2),[a]}function Ch(e,t,r){var a=(96&e[e.l++])>>5,n=e.read_shift(2),s=4;if(r)switch(r.biff){case 5:s=15;break;case 12:s=6;break}return e.l+=s,[a,n]}var Rh=ma,Ph=ma,Oh=ma;function Nh(e,t,r){return e.l+=2,[Hu(e,4,r)]}function Ih(e){return e.l+=6,[]}var Dh=Nh,Fh=Ih,Mh=Ih,Lh=Nh;function Bh(e){return e.l+=2,[ri(e),1&e.read_shift(2)]}var Uh=Nh,zh=Bh,Wh=Ih,Hh=Nh,jh=Nh,Vh=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Gh(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(4),n=e.read_shift(2),s=e.read_shift(2),i=Vh[r>>2&31];return{ixti:t,coltype:3&r,rt:i,idx:a,c:n,C:s}}function $h(e){return e.l+=2,[e.read_shift(4)]}function Xh(e,t,r){return e.l+=5,e.l+=2,e.l+=2==r.biff?1:4,["PTGSHEET"]}function Yh(e,t,r){return e.l+=2==r.biff?4:5,["PTGENDSHEET"]}function Kh(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function Zh(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function qh(e){return e.l+=4,[0,0]}var Jh={1:{n:"PtgExp",f:dh},2:{n:"PtgTbl",f:Oh},3:{n:"PtgAdd",f:Fu},4:{n:"PtgSub",f:Fu},5:{n:"PtgMul",f:Fu},6:{n:"PtgDiv",f:Fu},7:{n:"PtgPower",f:Fu},8:{n:"PtgConcat",f:Fu},9:{n:"PtgLt",f:Fu},10:{n:"PtgLe",f:Fu},11:{n:"PtgEq",f:Fu},12:{n:"PtgGe",f:Fu},13:{n:"PtgGt",f:Fu},14:{n:"PtgNe",f:Fu},15:{n:"PtgIsect",f:Fu},16:{n:"PtgUnion",f:Fu},17:{n:"PtgRange",f:Fu},18:{n:"PtgUplus",f:Fu},19:{n:"PtgUminus",f:Fu},20:{n:"PtgPercent",f:Fu},21:{n:"PtgParen",f:Fu},22:{n:"PtgMissArg",f:Fu},23:{n:"PtgStr",f:vh},26:{n:"PtgSheet",f:Xh},27:{n:"PtgEndSheet",f:Yh},28:{n:"PtgErr",f:ph},29:{n:"PtgBool",f:bh},30:{n:"PtgInt",f:mh},31:{n:"PtgNum",f:gh},32:{n:"PtgArray",f:Zu},33:{n:"PtgFunc",f:ch},34:{n:"PtgFuncVar",f:fh},35:{n:"PtgName",f:Th},36:{n:"PtgRef",f:ih},37:{n:"PtgArea",f:Gu},38:{n:"PtgMemArea",f:Sh},39:{n:"PtgMemErr",f:Rh},40:{n:"PtgMemNoMem",f:Ph},41:{n:"PtgMemFunc",f:Ah},42:{n:"PtgRefErr",f:xh},43:{n:"PtgAreaErr",f:Xu},44:{n:"PtgRefN",f:oh},45:{n:"PtgAreaN",f:Ku},46:{n:"PtgMemAreaN",f:Kh},47:{n:"PtgMemNoMemN",f:Zh},57:{n:"PtgNameX",f:_h},58:{n:"PtgRef3d",f:lh},59:{n:"PtgArea3d",f:$u},60:{n:"PtgRefErr3d",f:Ch},61:{n:"PtgAreaErr3d",f:Yu},255:{}},Qh={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},ed={1:{n:"PtgElfLel",f:Bh},2:{n:"PtgElfRw",f:Hh},3:{n:"PtgElfCol",f:Dh},6:{n:"PtgElfRwV",f:jh},7:{n:"PtgElfColV",f:Lh},10:{n:"PtgElfRadical",f:Uh},11:{n:"PtgElfRadicalS",f:Wh},13:{n:"PtgElfColS",f:Fh},15:{n:"PtgElfColSV",f:Mh},16:{n:"PtgElfRadicalLel",f:zh},25:{n:"PtgList",f:Gh},29:{n:"PtgSxName",f:$h},255:{}},td={0:{n:"PtgAttrNoop",f:qh},1:{n:"PtgAttrSemi",f:rh},2:{n:"PtgAttrIf",f:eh},4:{n:"PtgAttrChoose",f:Ju},8:{n:"PtgAttrGoto",f:Qu},16:{n:"PtgAttrSum",f:hh},32:{n:"PtgAttrBaxcel",f:qu},33:{n:"PtgAttrBaxcel",f:qu},64:{n:"PtgAttrSpace",f:nh},65:{n:"PtgAttrSpaceSemi",f:sh},128:{n:"PtgAttrIfError",f:th},255:{}};function rd(e,t,r,a){if(a.biff<8)return ma(e,t);for(var n=e.l+t,s=[],i=0;i!==r.length;++i)switch(r[i][0]){case"PtgArray":r[i][1]=kh(e,0,a),s.push(r[i][1]);break;case"PtgMemArea":r[i][2]=yh(e,r[i][1],a),s.push(r[i][2]);break;case"PtgExp":a&&12==a.biff&&(r[i][1][1]=e.read_shift(4),s.push(r[i][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[i][0];default:break}return t=n-e.l,0!==t&&s.push(ma(e,t)),s}function ad(e,t,r){var a,n,s=e.l+t,i=[];while(s!=e.l)t=s-e.l,n=e[e.l],a=Jh[n]||Jh[Qh[n]],24!==n&&25!==n||(a=(24===n?ed:td)[e[e.l+1]]),a&&a.f?i.push([a.n,a.f(e,t,r)]):ma(e,t);return i}function nd(e){for(var t=[],r=0;r=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function id(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function od(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!a)return"SH33TJSERR1";var n="";if(r.biff>8)switch(e[a[0]][0]){case 357:return n=-1==a[1]?"#REF":e.SheetNames[a[1]],a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 358:return null!=r.SID?e.SheetNames[r.SID]:"SH33TJSSAME"+e[a[0]][0];case 355:default:return"SH33TJSSRC"+e[a[0]][0]}switch(e[a[0]][0][0]){case 1025:return n=-1==a[1]?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3",a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 14849:return e[a[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[a[0]][0][3]?(n=-1==a[1]?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4",a[1]==a[2]?n:n+":"+e[a[0]][0][3][a[2]]):"SH33TJSERR2"}}function ld(e,t,r){var a=od(e,t,r);return"#REF"==a?a:id(a,r)}function cd(e,t,r,a,n){var s,i,o,l,c=n&&n.biff||8,f={s:{c:0,r:0},e:{c:0,r:0}},u=[],h=0,d=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,b="",g=0,v=e[0].length;g=0){switch(e[0][m][1][0]){case 0:b=_t(" ",e[0][m][1][1]);break;case 1:b=_t("\r",e[0][m][1][1]);break;default:if(b="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}i+=b,m=-1}u.push(i+sd[w[0]]+s);break;case"PtgIsect":s=u.pop(),i=u.pop(),u.push(i+" "+s);break;case"PtgUnion":s=u.pop(),i=u.pop(),u.push(i+","+s);break;case"PtgRange":s=u.pop(),i=u.pop(),u.push(i+":"+s);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":o=ya(w[1][1],f,n),u.push(Ta(o,c));break;case"PtgRefN":o=r?ya(w[1][1],r,n):w[1][1],u.push(Ta(o,c));break;case"PtgRef3d":h=w[1][1],o=ya(w[1][2],f,n),p=ld(a,h,n);u.push(p+"!"+Ta(o,c));break;case"PtgFunc":case"PtgFuncVar":var y=w[1][0],k=w[1][1];y||(y=0),y&=127;var T=0==y?[]:u.slice(-y);u.length-=y,"User"===k&&(k=T.shift()),u.push(k+"("+T.join(",")+")");break;case"PtgBool":u.push(w[1]?"TRUE":"FALSE");break;case"PtgInt":u.push(w[1]);break;case"PtgNum":u.push(String(w[1]));break;case"PtgStr":u.push('"'+w[1].replace(/"/g,'""')+'"');break;case"PtgErr":u.push(w[1]);break;case"PtgAreaN":l=ka(w[1][1],r?{s:r}:f,n),u.push(_a(l,n));break;case"PtgArea":l=ka(w[1][1],f,n),u.push(_a(l,n));break;case"PtgArea3d":h=w[1][1],l=w[1][2],p=ld(a,h,n),u.push(p+"!"+_a(l,n));break;case"PtgAttrSum":u.push("SUM("+u.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=w[1][2];var _=(a.names||[])[d-1]||(a[0]||[])[d],E=_?_.Name:"SH33TJSNAME"+String(d);E&&"_xlfn."==E.slice(0,6)&&!n.xlfn&&(E=E.slice(6)),u.push(E);break;case"PtgNameX":var S,A=w[1][1];if(d=w[1][2],!(n.biff<=5)){var x="";if(14849==((a[A]||[])[0]||[])[0]||(1025==((a[A]||[])[0]||[])[0]?a[A][d]&&a[A][d].itab>0&&(x=a.SheetNames[a[A][d].itab-1]+"!"):x=a.SheetNames[d-1]+"!"),a[A]&&a[A][d])x+=a[A][d].Name;else if(a[0]&&a[0][d])x+=a[0][d].Name;else{var C=(od(a,A,n)||"").split(";;");C[d-1]?x=C[d-1]:x+="SH33TJSERRX"}u.push(x);break}A<0&&(A=-A),a[A]&&(S=a[A][d]),S||(S={Name:"SH33TJSERRY"}),u.push(S.Name);break;case"PtgParen":var R="(",P=")";if(m>=0){switch(b="",e[0][m][1][0]){case 2:R=_t(" ",e[0][m][1][1])+R;break;case 3:R=_t("\r",e[0][m][1][1])+R;break;case 4:P=_t(" ",e[0][m][1][1])+P;break;case 5:P=_t("\r",e[0][m][1][1])+P;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}u.push(R+u.pop()+P);break;case"PtgRefErr":u.push("#REF!");break;case"PtgRefErr3d":u.push("#REF!");break;case"PtgExp":o={c:w[1][1],r:w[1][0]};var O={c:r.c,r:r.r};if(a.sharedf[Da(o)]){var N=a.sharedf[Da(o)];u.push(cd(N,f,O,a,n))}else{var I=!1;for(s=0;s!=a.arrayf.length;++s)if(i=a.arrayf[s],!(o.ci[0].e.c)&&!(o.ri[0].e.r)){u.push(cd(i[1],f,O,a,n)),I=!0;break}I||u.push(w[1])}break;case"PtgArray":u.push("{"+nd(w[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=g;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":u.push("");break;case"PtgAreaErr":u.push("#REF!");break;case"PtgAreaErr3d":u.push("#REF!");break;case"PtgList":u.push("Table"+w[1].idx+"[#"+w[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(w));default:throw new Error("Unrecognized Formula Token: "+String(w))}var D=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(3!=n.biff&&m>=0&&-1==D.indexOf(e[0][g][0])){w=e[0][m];var F=!0;switch(w[1][0]){case 4:F=!1;case 0:b=_t(" ",w[1][1]);break;case 5:F=!1;case 1:b=_t("\r",w[1][1]);break;default:if(b="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+w[1][0])}u.push((F?b:"")+u.pop()+(F?"":b)),m=-1}}if(u.length>1&&n.WTF)throw new Error("bad formula stack");return u[0]}function fd(e,t,r){var a,n=e.l+t,s=2==r.biff?1:2,i=e.read_shift(s);if(65535==i)return[[],ma(e,t-2)];var o=ad(e,i,r);return t!==i+s&&(a=rd(e,t-i-s,o,r)),e.l=n,[o,a]}function ud(e,t,r){var a,n=e.l+t,s=2==r.biff?1:2,i=e.read_shift(s);if(65535==i)return[[],ma(e,t-2)];var o=ad(e,i,r);return t!==i+s&&(a=rd(e,t-i-s,o,r)),e.l=n,[o,a]}function hd(e,t,r,a){var n,s=e.l+t,i=ad(e,a,r);return s!==e.l&&(n=rd(e,s-e.l,i,r)),[i,n]}function dd(e,t,r){var a,n=e.l+t,s=e.read_shift(2),i=ad(e,s,r);return 65535==s?[[],ma(e,t-2)]:(t!==s+2&&(a=rd(e,n-s-2,i,r)),[i,a])}function pd(e){var t;if(65535!==aa(e,e.l+6))return[gn(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function md(e){if(null==e){var t=ba(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return vn("number"==typeof e?e:0)}function bd(e,t,r){var a=e.l+t,n=Ei(e,6);2==r.biff&&++e.l;var s=pd(e,8),i=e.read_shift(1);2!=r.biff&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var o=ud(e,a-e.l,r);return{cell:n,val:s[0],formula:o,shared:i>>3&1,tt:s[1]}}function gd(e,t,r,a,n){var s=Si(t,r,n),i=md(e.v),o=ba(6),l=33;o.write_shift(2,l),o.write_shift(4,0);for(var c=ba(e.bf.length),f=0;f0?rd(e,s,n,r):null;return[n,i]}var wd=vd,yd=vd,kd=vd,Td=vd,_d={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Ed={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Sd={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Ad(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&(e=e.slice(1),61==e.charCodeAt(0)&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")})),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function xd(e){var t="of:="+e.replace(Ru,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function Cd(e){var t=e.split(":"),r=t[0].split(".")[0];return[r,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}function Rd(e){return e.replace(/\./,"!")}var Pd={},Od={},Nd="undefined"!==typeof Map;function Id(e,t,r){var a=0,n=e.length;if(r){if(Nd?r.has(t):Object.prototype.hasOwnProperty.call(r,t))for(var s=Nd?r.get(t):r[t];a-1?(r.width=Rc(a),r.customWidth=1):null!=t.width&&(r.width=t.width),t.hidden&&(r.hidden=!0),null!=t.level&&(r.outlineLevel=r.level=t.level),r}function Fd(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(r=[1,1,1,1,.5,.5]),null==e.left&&(e.left=r[0]),null==e.right&&(e.right=r[1]),null==e.top&&(e.top=r[2]),null==e.bottom&&(e.bottom=r[3]),null==e.header&&(e.header=r[4]),null==e.footer&&(e.footer=r[5])}}function Md(e,t,r){var a=r.revssf[null!=t.z?t.z:"General"],n=60,s=e.length;if(null==a&&r.ssf)for(;n<392;++n)if(null==r.ssf[n]){Ve(t.z,n),r.ssf[n]=t.z,r.revssf[t.z]=a=n;break}for(n=0;n!=s;++n)if(e[n].numFmtId===a)return n;return e[s]={numFmtId:a,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},s}function Ld(e,t,r,a,n,s){try{a.cellNF&&(e.z=q[t])}catch(o){if(a.WTF)throw o}if("z"!==e.t||a.cellStyles){if("d"===e.t&&"string"===typeof e.v&&(e.v=yt(e.v)),(!a||!1!==a.cellText)&&"z"!==e.t)try{if(null==q[t]&&Ve(Ye[t]||"General",t),"e"===e.t)e.w=e.w||$n[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=fe(e.v);else if("d"===e.t){var i=ut(e.v);e.w=(0|i)===i?i.toString(10):fe(i)}else{if(void 0===e.v)return"";e.w=ue(e.v,Od)}else"d"===e.t?e.w=je(t,ut(e.v),Od):e.w=je(t,e.v,Od)}catch(o){if(a.WTF)throw o}if(a.cellStyles&&null!=r)try{e.s=s.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=Tc(n.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),a.WTF&&(e.s.fgColor.raw_rgb=n.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=Tc(n.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),a.WTF&&(e.s.bgColor.raw_rgb=n.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(o){if(a.WTF&&s.Fills)throw o}}}function Bd(e,t,r){if(e&&e["!ref"]){var a=La(e["!ref"]);if(a.e.c=0&&r.s.c>=0&&(e["!ref"]=Ma(r))}var zd=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,Wd=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Hd=/<(?:\w:)?hyperlink [^>]*>/gm,jd=/"(\w*:\w*)"/,Vd=/<(?:\w:)?col\b[^>]*[\/]?>/g,Gd=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,$d=/<(?:\w:)?pageMargins[^>]*\/>/g,Xd=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Yd=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Kd=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Zd(e,t,r,a,n,s,i){if(!e)return e;a||(a={"!id":{}}),null!=y&&null==t.dense&&(t.dense=y);var o=t.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",f="",u=e.match(Wd);u?(c=e.slice(0,u.index),f=e.slice(u.index+u[0].length)):c=f=e;var h=c.match(Xd);h?Jd(h[0],o,n,r):(h=c.match(Yd))&&Qd(h[0],h[1]||"",o,n,r,i,s);var d=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var p=c.slice(d,d+50).match(jd);p&&Ud(o,p[1])}var m=c.match(Kd);m&&m[1]&&hp(m[1],n);var b=[];if(t.cellStyles){var g=c.match(Vd);g&&op(b,g)}u&&mp(u[1],o,t,l,s,i);var v=f.match(Gd);v&&(o["!autofilter"]=cp(v[0]));var w=[],k=f.match(zd);if(k)for(d=0;d!=k.length;++d)w[d]=La(k[d].slice(k[d].indexOf('"')+1));var T=f.match(Hd);T&&np(o,T,a);var _=f.match($d);if(_&&(o["!margins"]=sp(Yt(_[0]))),!o["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(o["!ref"]=Ma(l)),t.sheetRows>0&&o["!ref"]){var E=La(o["!ref"]);t.sheetRows<=+E.e.r&&(E.e.r=t.sheetRows-1,E.e.r>l.e.r&&(E.e.r=l.e.r),E.e.rl.e.c&&(E.e.c=l.e.c),E.e.c0&&(o["!cols"]=b),w.length>0&&(o["!merges"]=w),o}function qd(e){if(0===e.length)return"";for(var t='',r=0;r!=e.length;++r)t+='';return t+""}function Jd(e,t,r,a){var n=Yt(e);r.Sheets[a]||(r.Sheets[a]={}),n.codeName&&(r.Sheets[a].CodeName=Jt(dr(n.codeName)))}function Qd(e,t,r,a,n){Jd(e.slice(0,e.indexOf(">")),r,a,n)}function ep(e,t,r,a,n){var s=!1,i={},o=null;if("xlsx"!==a.bookType&&t.vbaraw){var l=t.SheetNames[r];try{t.Workbook&&(l=t.Workbook.Sheets[r].CodeName||l)}catch(f){}s=!0,i.codeName=pr(tr(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),o=(o||"")+Er("outlinePr",null,c)}(s||o)&&(n[n.length]=Er("sheetPr",o,i))}var tp=["objects","scenarios","selectLockedCells","selectUnlockedCells"],rp=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function ap(e){var t={sheet:1};return tp.forEach((function(r){null!=e[r]&&e[r]&&(t[r]="1")})),rp.forEach((function(r){null==e[r]||e[r]||(t[r]="0")})),e.password&&(t.password=fc(e.password).toString(16).toUpperCase()),Er("sheetProtection",null,t)}function np(e,t,r){for(var a=Array.isArray(e),n=0;n!=t.length;++n){var s=Yt(dr(t[n]),!0);if(!s.ref)return;var i=((r||{})["!id"]||[])[s.id];i?(s.Target=i.Target,s.location&&(s.Target+="#"+Jt(s.location))):(s.Target="#"+Jt(s.location),i={Target:s.Target,TargetMode:"Internal"}),s.Rel=i,s.tooltip&&(s.Tooltip=s.tooltip,delete s.tooltip);for(var o=La(s.ref),l=o.s.r;l<=o.e.r;++l)for(var c=o.s.c;c<=o.e.c;++c){var f=Da({c:c,r:l});a?(e[l]||(e[l]=[]),e[l][c]||(e[l][c]={t:"z",v:void 0}),e[l][c].l=s):(e[f]||(e[f]={t:"z",v:void 0}),e[f].l=s)}}}function sp(e){var t={};return["left","right","top","bottom","header","footer"].forEach((function(r){e[r]&&(t[r]=parseFloat(e[r]))})),t}function ip(e){return Fd(e),Er("pageMargins",null,e)}function op(e,t){for(var r=!1,a=0;a!=t.length;++a){var n=Yt(t[a],!0);n.hidden&&(n.hidden=lr(n.hidden));var s=parseInt(n.min,10)-1,i=parseInt(n.max,10)-1;n.outlineLevel&&(n.level=+n.outlineLevel||0),delete n.min,delete n.max,n.width=+n.width,!r&&n.width&&(r=!0,Oc(n.width)),Nc(n);while(s<=i)e[s++]=Tt(n)}}function lp(e,t){for(var r,a=[""],n=0;n!=t.length;++n)(r=t[n])&&(a[a.length]=Er("col",null,Dd(n,r)));return a[a.length]="",a.join("")}function cp(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}function fp(e,t,r,a){var n="string"==typeof e.ref?e.ref:Ma(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,i=Fa(n);i.s.r==i.e.r&&(i.e.r=Fa(t["!ref"]).e.r,n=Ma(i));for(var o=0;oa-z][^>]*)?\/?>/;function hp(e,t){t.Views||(t.Views=[{}]),(e.match(up)||[]).forEach((function(e,r){var a=Yt(e);t.Views[r]||(t.Views[r]={}),+a.zoomScale&&(t.Views[r].zoom=+a.zoomScale),lr(a.rightToLeft)&&(t.Views[r].RTL=!0)}))}function dp(e,t,r,a){var n={workbookViewId:"0"};return(((a||{}).Workbook||{}).Views||[])[0]&&(n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0"),Er("sheetViews",Er("sheetView",null,n),{})}function pp(e,t,r,a){if(e.c&&r["!comments"].push([t,e.c]),void 0===e.v&&"string"!==typeof e.f||"z"===e.t&&!e.f)return"";var n="",s=e.t,i=e.v;if("z"!==e.t)switch(e.t){case"b":n=e.v?"1":"0";break;case"n":n=""+e.v;break;case"e":n=$n[e.v];break;case"d":a&&a.cellDates?n=yt(e.v,-1).toISOString():(e=Tt(e),e.t="n",n=""+(e.v=ut(yt(e.v)))),"undefined"===typeof e.z&&(e.z=q[14]);break;default:n=e.v;break}var o=Tr("v",tr(n)),l={r:t},c=Md(a.cellXfs,e,a);switch(0!==c&&(l.s=c),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(a&&a.bookSST){o=Tr("v",""+Id(a.Strings,e.v,a.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=s&&(e.t=s,e.v=i),"string"==typeof e.f&&e.f){var f=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;o=Er("f",tr(e.f),f)+(null!=e.v?o:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),Er("c",o,l)}var mp=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,n=/ref=["']([^"']*)["']/,s=mr("v"),i=mr("f");return function(o,l,c,f,u,h){for(var d,p,m,b,g,v=0,w="",y=[],k=[],T=0,_=0,E=0,S="",A=0,x=0,C=0,R=0,P=Array.isArray(h.CellXf),O=[],N=[],I=Array.isArray(l),D=[],F={},M=!1,L=!!c.sheetStubs,B=o.split(t),U=0,z=B.length;U!=z;++U){w=B[U].trim();var W=w.length;if(0!==W){var H=0;e:for(v=0;v":if("/"!=w[v-1]){++v;break e}if(c&&c.cellStyles){if(p=Yt(w.slice(H,v),!0),A=null!=p.r?parseInt(p.r,10):A+1,x=-1,c.sheetRows&&c.sheetRows=v)break;if(p=Yt(w.slice(H,v),!0),A=null!=p.r?parseInt(p.r,10):A+1,x=-1,!(c.sheetRows&&c.sheetRowsA-1&&(f.s.r=A-1),f.e.r":"")+w,null!=k&&2===k.length){for(T=0,S=k[1],_=0;_!=S.length;++_){if((E=S.charCodeAt(_)-64)<1||E>26)break;T=26*T+E}--T,x=T}else++x;for(_=0;_!=w.length;++_)if(62===w.charCodeAt(_))break;if(++_,p=Yt(w.slice(0,_),!0),p.r||(p.r=Da({r:A-1,c:x})),S=w.slice(_),d={t:""},null!=(k=S.match(s))&&""!==k[1]&&(d.v=Jt(k[1])),c.cellFormula){if(null!=(k=S.match(i))&&""!==k[1]){if(d.f=Jt(dr(k[1])).replace(/\r\n/g,"\n"),c.xlfn||(d.f=Du(d.f)),k[0].indexOf('t="array"')>-1)d.F=(S.match(n)||[])[1],d.F.indexOf(":")>-1&&O.push([La(d.F),d.F]);else if(k[0].indexOf('t="shared"')>-1){b=Yt(k[0]);var V=Jt(dr(k[1]));c.xlfn||(V=Du(V)),N[parseInt(b.si,10)]=[b,V,p.r]}}else(k=S.match(/]*\/>/))&&(b=Yt(k[0]),N[b.si]&&(d.f=Nu(N[b.si][1],N[b.si][2],p.r)));var G=Ia(p.r);for(_=0;_=O[_][0].s.r&&G.r<=O[_][0].e.r&&G.c>=O[_][0].s.c&&G.c<=O[_][0].e.c&&(d.F=O[_][1])}if(null==p.t&&void 0===d.v)if(d.f||d.F)d.v=0,d.t="n";else{if(!L)continue;d.t="z"}else d.t=p.t||"n";switch(f.s.c>x&&(f.s.c=x),f.e.c0&&(l["!rows"]=D)}}();function bp(e,t,r,a){var n,s,i=[],o=[],l=La(e["!ref"]),c="",f="",u=[],h=0,d=0,p=e["!rows"],m=Array.isArray(e),b={r:f},g=-1;for(d=l.s.c;d<=l.e.c;++d)u[d]=Ra(d);for(h=l.s.r;h<=l.e.r;++h){for(o=[],f=Sa(h),d=l.s.c;d<=l.e.c;++d){n=u[d]+f;var v=m?(e[h]||[])[d]:e[n];void 0!==v&&(null!=(c=pp(v,n,e,t,r,a))&&o.push(c))}(o.length>0||p&&p[h])&&(b={r:f},p&&p[h]&&(s=p[h],s.hidden&&(b.hidden=1),g=-1,s.hpx?g=Fc(s.hpx):s.hpt&&(g=s.hpt),g>-1&&(b.ht=g,b.customHeight=1),s.level&&(b.outlineLevel=s.level)),i[i.length]=Er("row",o.join(""),b))}if(p)for(;h-1&&(b.ht=g,b.customHeight=1),s.level&&(b.outlineLevel=s.level),i[i.length]=Er("row","",b));return i.join("")}function gp(e,t,r,a){var n=[Wt,Er("worksheet",null,{xmlns:Pr[0],"xmlns:r":Rr.r})],s=r.SheetNames[e],i=0,o="",l=r.Sheets[s];null==l&&(l={});var c=l["!ref"]||"A1",f=La(c);if(f.e.c>16383||f.e.r>1048575){if(t.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575),c=Ma(f)}a||(a={}),l["!comments"]=[];var u=[];ep(l,r,e,t,n),n[n.length]=Er("dimension",null,{ref:c}),n[n.length]=dp(l,t,e,r),t.sheetFormat&&(n[n.length]=Er("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(n[n.length]=lp(l,l["!cols"])),n[i=n.length]="",l["!links"]=[],null!=l["!ref"]&&(o=bp(l,t,e,r,a),o.length>0&&(n[n.length]=o)),n.length>i+1&&(n[n.length]="",n[i]=n[i].replace("/>",">")),l["!protect"]&&(n[n.length]=ap(l["!protect"])),null!=l["!autofilter"]&&(n[n.length]=fp(l["!autofilter"],l,r,e)),null!=l["!merges"]&&l["!merges"].length>0&&(n[n.length]=qd(l["!merges"]));var h,d=-1,p=-1;return l["!links"].length>0&&(n[n.length]="",l["!links"].forEach((function(e){e[1].Target&&(h={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(p=as(a,-1,tr(e[1].Target).replace(/#.*$/,""),Qn.HLINK),h["r:id"]="rId"+p),(d=e[1].Target.indexOf("#"))>-1&&(h.location=tr(e[1].Target.slice(d+1))),e[1].Tooltip&&(h.tooltip=tr(e[1].Tooltip)),n[n.length]=Er("hyperlink",null,h))})),n[n.length]=""),delete l["!links"],null!=l["!margins"]&&(n[n.length]=ip(l["!margins"])),t&&!t.ignoreEC&&void 0!=t.ignoreEC||(n[n.length]=Tr("ignoredErrors",Er("ignoredError",null,{numberStoredAsText:1,sqref:c}))),u.length>0&&(p=as(a,-1,"../drawings/drawing"+(e+1)+".xml",Qn.DRAW),n[n.length]=Er("drawing",null,{"r:id":"rId"+p}),l["!drawing"]=u),l["!comments"].length>0&&(p=as(a,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Qn.VML),n[n.length]=Er("legacyDrawing",null,{"r:id":"rId"+p}),l["!legacy"]=p),n.length>1&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}function vp(e,t){var r={},a=e.l+t;r.r=e.read_shift(4),e.l+=4;var n=e.read_shift(2);e.l+=1;var s=e.read_shift(1);return e.l=a,7&s&&(r.level=7&s),16&s&&(r.hidden=!0),32&s&&(r.hpt=n/20),r}function wp(e,t,r){var a=ba(145),n=(r["!rows"]||[])[e]||{};a.write_shift(4,e),a.write_shift(4,0);var s=320;n.hpx?s=20*Fc(n.hpx):n.hpt&&(s=20*n.hpt),a.write_shift(2,s),a.write_shift(1,0);var i=0;n.level&&(i|=n.level),n.hidden&&(i|=16),(n.hpx||n.hpt)&&(i|=32),a.write_shift(1,i),a.write_shift(1,0);var o=0,l=a.l;a.l+=4;for(var c={r:e,c:0},f=0;f<16;++f)if(!(t.s.c>f+1<<10||t.e.ca.l?a.slice(0,a.l):a}function yp(e,t,r,a){var n=wp(a,r,t);(n.length>17||(t["!rows"]||[])[a])&&wa(e,0,n)}var kp=mn,Tp=bn;function _p(){}function Ep(e,t){var r={},a=e[e.l];return++e.l,r.above=!(64&a),r.left=!(128&a),e.l+=18,r.name=an(e,t-19),r}function Sp(e,t,r){null==r&&(r=ba(84+4*e.length));var a=192;t&&(t.above&&(a&=-65),t.left&&(a&=-129)),r.write_shift(1,a);for(var n=1;n<3;++n)r.write_shift(1,0);return yn({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),nn(e,r),r.slice(0,r.l)}function Ap(e){var t=Qa(e);return[t]}function xp(e,t,r){return null==r&&(r=ba(8)),en(t,r)}function Cp(e){var t=tn(e);return[t]}function Rp(e,t,r){return null==r&&(r=ba(4)),rn(t,r)}function Pp(e){var t=Qa(e),r=e.read_shift(1);return[t,r,"b"]}function Op(e,t,r){return null==r&&(r=ba(9)),en(t,r),r.write_shift(1,e.v?1:0),r}function Np(e){var t=tn(e),r=e.read_shift(1);return[t,r,"b"]}function Ip(e,t,r){return null==r&&(r=ba(5)),rn(t,r),r.write_shift(1,e.v?1:0),r}function Dp(e){var t=Qa(e),r=e.read_shift(1);return[t,r,"e"]}function Fp(e,t,r){return null==r&&(r=ba(9)),en(t,r),r.write_shift(1,e.v),r}function Mp(e){var t=tn(e),r=e.read_shift(1);return[t,r,"e"]}function Lp(e,t,r){return null==r&&(r=ba(8)),rn(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function Bp(e){var t=Qa(e),r=e.read_shift(4);return[t,r,"s"]}function Up(e,t,r){return null==r&&(r=ba(12)),en(t,r),r.write_shift(4,t.v),r}function zp(e){var t=tn(e),r=e.read_shift(4);return[t,r,"s"]}function Wp(e,t,r){return null==r&&(r=ba(8)),rn(t,r),r.write_shift(4,t.v),r}function Hp(e){var t=Qa(e),r=gn(e);return[t,r,"n"]}function jp(e,t,r){return null==r&&(r=ba(16)),en(t,r),vn(e.v,r),r}function Vp(e){var t=tn(e),r=gn(e);return[t,r,"n"]}function Gp(e,t,r){return null==r&&(r=ba(12)),rn(t,r),vn(e.v,r),r}function $p(e){var t=Qa(e),r=un(e);return[t,r,"n"]}function Xp(e,t,r){return null==r&&(r=ba(12)),en(t,r),hn(e.v,r),r}function Yp(e){var t=tn(e),r=un(e);return[t,r,"n"]}function Kp(e,t,r){return null==r&&(r=ba(8)),rn(t,r),hn(e.v,r),r}function Zp(e){var t=Qa(e),r=Ka(e);return[t,r,"is"]}function qp(e){var t=Qa(e),r=Ga(e);return[t,r,"str"]}function Jp(e,t,r){return null==r&&(r=ba(12+4*e.v.length)),en(t,r),$a(e.v,r),r.length>r.l?r.slice(0,r.l):r}function Qp(e){var t=tn(e),r=Ga(e);return[t,r,"str"]}function em(e,t,r){return null==r&&(r=ba(8+4*e.v.length)),rn(t,r),$a(e.v,r),r.length>r.l?r.slice(0,r.l):r}function tm(e,t,r){var a=e.l+t,n=Qa(e);n.r=r["!row"];var s=e.read_shift(1),i=[n,s,"b"];if(r.cellFormula){e.l+=2;var o=yd(e,a-e.l,r);i[3]=cd(o,null,n,r.supbooks,r)}else e.l=a;return i}function rm(e,t,r){var a=e.l+t,n=Qa(e);n.r=r["!row"];var s=e.read_shift(1),i=[n,s,"e"];if(r.cellFormula){e.l+=2;var o=yd(e,a-e.l,r);i[3]=cd(o,null,n,r.supbooks,r)}else e.l=a;return i}function am(e,t,r){var a=e.l+t,n=Qa(e);n.r=r["!row"];var s=gn(e),i=[n,s,"n"];if(r.cellFormula){e.l+=2;var o=yd(e,a-e.l,r);i[3]=cd(o,null,n,r.supbooks,r)}else e.l=a;return i}function nm(e,t,r){var a=e.l+t,n=Qa(e);n.r=r["!row"];var s=Ga(e),i=[n,s,"str"];if(r.cellFormula){e.l+=2;var o=yd(e,a-e.l,r);i[3]=cd(o,null,n,r.supbooks,r)}else e.l=a;return i}var sm=mn,im=bn;function om(e,t){return null==t&&(t=ba(4)),t.write_shift(4,e),t}function lm(e,t){var r=e.l+t,a=mn(e,16),n=sn(e),s=Ga(e),i=Ga(e),o=Ga(e);e.l=r;var l={rfx:a,relId:n,loc:s,display:o};return i&&(l.Tooltip=i),l}function cm(e,t){var r=ba(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));bn({s:Ia(e[0]),e:Ia(e[0])},r),fn("rId"+t,r);var a=e[1].Target.indexOf("#"),n=-1==a?"":e[1].Target.slice(a+1);return $a(n||"",r),$a(e[1].Tooltip||"",r),$a("",r),r.slice(0,r.l)}function fm(){}function um(e,t,r){var a=e.l+t,n=dn(e,16),s=e.read_shift(1),i=[n];if(i[2]=s,r.cellFormula){var o=wd(e,a-e.l,r);i[1]=o}else e.l=a;return i}function hm(e,t,r){var a=e.l+t,n=mn(e,16),s=[n];if(r.cellFormula){var i=Td(e,a-e.l,r);s[1]=i,e.l=a}else e.l=a;return s}function dm(e,t,r){null==r&&(r=ba(18));var a=Dd(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,256*(a.width||10)),r.write_shift(4,0);var n=0;return t.hidden&&(n|=1),"number"==typeof a.width&&(n|=2),t.level&&(n|=t.level<<8),r.write_shift(2,n),r}var pm=["left","right","top","bottom","header","footer"];function mm(e){var t={};return pm.forEach((function(r){t[r]=gn(e,8)})),t}function bm(e,t){return null==t&&(t=ba(48)),Fd(e),pm.forEach((function(r){vn(e[r],t)})),t}function gm(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}function vm(e,t,r){null==r&&(r=ba(30));var a=924;return(((t||{}).Views||[])[0]||{}).RTL&&(a|=32),r.write_shift(2,a),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function wm(e){var t=ba(24);return t.write_shift(4,4),t.write_shift(4,1),bn(e,t),t}function ym(e,t){return null==t&&(t=ba(66)),t.write_shift(2,e.password?fc(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(r){r[1]?t.write_shift(4,null==e[r[0]]||e[r[0]]?0:1):t.write_shift(4,null!=e[r[0]]&&e[r[0]]?0:1)})),t}function km(){}function Tm(){}function _m(e,t,r,a,n,s,i){if(!e)return e;var o=t||{};a||(a={"!id":{}}),null!=y&&null==o.dense&&(o.dense=y);var l,c,f,u,h,d,p,m,b,g,v=o.dense?[]:{},w={s:{r:2e6,c:2e6},e:{r:0,c:0}},k=[],T=!1,_=!1,E=[];o.biff=12,o["!row"]=0;var S=0,A=!1,x=[],C={},R=o.supbooks||n.supbooks||[[]];if(R.sharedf=C,R.arrayf=x,R.SheetNames=n.SheetNames||n.Sheets.map((function(e){return e.name})),!o.supbooks&&(o.supbooks=R,n.Names))for(var P=0;P=P[0].s.r&&c.r<=P[0].e.r&&d>=P[0].s.c&&d<=P[0].e.c&&(f.F=Ma(P[0]),A=!0)}!A&&e.length>3&&(f.f=e[3])}if(w.s.r>c.r&&(w.s.r=c.r),w.s.c>d&&(w.s.c=d),w.e.rc.r&&(w.s.r=c.r),w.s.c>d&&(w.s.c=d),w.e.r=e.s)I[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},F||(F=!0,Oc(e.w/256)),Nc(I[e.e+1]);break;case 161:v["!autofilter"]={ref:Ma(e)};break;case 476:v["!margins"]=e;break;case 147:n.Sheets[r]||(n.Sheets[r]={}),e.name&&(n.Sheets[r].CodeName=e.name),(e.above||e.left)&&(v["!outline"]={above:e.above,left:e.left});break;case 137:n.Views||(n.Views=[{}]),n.Views[0]||(n.Views[0]={}),e.RTL&&(n.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:T=!0;break;case 36:T=!1;break;case 37:k.push(y),T=!0;break;case 38:k.pop(),T=!1;break;default:if(t.T);else if(!T||o.WTF)throw new Error("Unexpected record 0x"+y.toString(16))}}),o),delete o.supbooks,delete o["!row"],!v["!ref"]&&(w.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0))&&(v["!ref"]=Ma(l||w)),o.sheetRows&&v["!ref"]){var M=La(v["!ref"]);o.sheetRows<=+M.e.r&&(M.e.r=o.sheetRows-1,M.e.r>w.e.r&&(M.e.r=w.e.r),M.e.rw.e.c&&(M.e.c=w.e.c),M.e.c0&&(v["!merges"]=E),I.length>0&&(v["!cols"]=I),D.length>0&&(v["!rows"]=D),v}function Em(e,t,r,a,n,s,i){if(void 0===t.v)return!1;var o="";switch(t.t){case"b":o=t.v?"1":"0";break;case"d":t=Tt(t),t.z=t.z||q[14],t.v=ut(yt(t.v)),t.t="n";break;case"n":case"e":o=""+t.v;break;default:o=t.v;break}var l={r:r,c:a};switch(l.s=Md(n.cellXfs,t,n),t.l&&s["!links"].push([Da(l),t.l]),t.c&&s["!comments"].push([Da(l),t.c]),t.t){case"s":case"str":return n.bookSST?(o=Id(n.Strings,t.v,n.revStrings),l.t="s",l.v=o,i?wa(e,18,Wp(t,l)):wa(e,7,Up(t,l))):(l.t="str",i?wa(e,17,em(t,l)):wa(e,6,Jp(t,l))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?i?wa(e,13,Kp(t,l)):wa(e,2,Xp(t,l)):i?wa(e,16,Gp(t,l)):wa(e,5,jp(t,l)),!0;case"b":return l.t="b",i?wa(e,15,Ip(t,l)):wa(e,4,Op(t,l)),!0;case"e":return l.t="e",i?wa(e,14,Lp(t,l)):wa(e,3,Fp(t,l)),!0}return i?wa(e,12,Rp(t,l)):wa(e,1,xp(t,l)),!0}function Sm(e,t,r,a){var n,s=La(t["!ref"]||"A1"),i="",o=[];wa(e,145);var l=Array.isArray(t),c=s.e.r;t["!rows"]&&(c=Math.max(s.e.r,t["!rows"].length-1));for(var f=s.s.r;f<=c;++f){i=Sa(f),yp(e,t,s,f);var u=!1;if(f<=s.e.r)for(var h=s.s.c;h<=s.e.c;++h){f===s.s.r&&(o[h]=Ra(h)),n=o[h]+i;var d=l?(t[f]||[])[h]:t[n];d?u=Em(e,d,f,h,a,t,u):u=!1}}wa(e,146)}function Am(e,t){t&&t["!merges"]&&(wa(e,177,om(t["!merges"].length)),t["!merges"].forEach((function(t){wa(e,176,im(t))})),wa(e,178))}function xm(e,t){t&&t["!cols"]&&(wa(e,390),t["!cols"].forEach((function(t,r){t&&wa(e,60,dm(r,t))})),wa(e,391))}function Cm(e,t){t&&t["!ref"]&&(wa(e,648),wa(e,649,wm(La(t["!ref"]))),wa(e,650))}function Rm(e,t,r){t["!links"].forEach((function(t){if(t[1].Target){var a=as(r,-1,t[1].Target.replace(/#.*$/,""),Qn.HLINK);wa(e,494,cm(t,a))}})),delete t["!links"]}function Pm(e,t,r,a){if(t["!comments"].length>0){var n=as(a,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Qn.VML);wa(e,551,fn("rId"+n)),t["!legacy"]=n}}function Om(e,t,r,a){if(t["!autofilter"]){var n=t["!autofilter"],s="string"===typeof n.ref?n.ref:Ma(n.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,o=Fa(s);o.s.r==o.e.r&&(o.e.r=Fa(t["!ref"]).e.r,s=Ma(o));for(var l=0;l16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return i["!links"]=[],i["!comments"]=[],wa(n,129),(r.vbaraw||i["!outline"])&&wa(n,147,Sp(o,i["!outline"])),wa(n,148,Tp(l)),Nm(n,i,r.Workbook),Im(n,i),xm(n,i,e,t,r),Sm(n,i,e,t,r),Dm(n,i),Om(n,i,r,e),Am(n,i),Rm(n,i,a),i["!margins"]&&wa(n,476,bm(i["!margins"])),t&&!t.ignoreEC&&void 0!=t.ignoreEC||Cm(n,i),Pm(n,i,e,a),wa(n,130),n.end()}function Mm(e){var t,r=[],a=e.match(/^/);(e.match(/(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var t=e.match(/(.*)<\/c:v><\/c:pt>/);t&&(r[+t[1]]=a?+t[2]:t[2])}));var n=Jt((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")})),[r,n,t]}function Lm(e,t,r,a,n,s){var i=s||{"!type":"chart"};if(!e)return s;var o=0,l=0,c="A",f={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=Mm(e);f.s.r=f.s.c=0,f.e.c=o,c=Ra(o),t[0].forEach((function(e,r){i[c+Sa(r)]={t:"n",v:e,z:t[1]},l=r})),f.e.r0&&(i["!ref"]=Ma(f)),i}function Bm(e,t,r,a,n){if(!e)return e;a||(a={"!id":{}});var s,i={"!type":"chart","!drawel":null,"!rel":""},o=e.match(Xd);return o&&Jd(o[0],i,n,r),(s=e.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=s[1]),a["!id"][i["!rel"]]&&(i["!drawel"]=a["!id"][i["!rel"]]),i}function Um(e,t){e.l+=10;var r=Ga(e,t-10);return{name:r}}function zm(e,t,r,a,n){if(!e)return e;a||(a={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},i=[],o=!1;return ga(e,(function(e,a,l){switch(l){case 550:s["!rel"]=e;break;case 651:n.Sheets[r]||(n.Sheets[r]={}),e.name&&(n.Sheets[r].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:i.push(l);break;case 38:i.pop();break;default:if(a.T>0)i.push(l);else if(a.T<0)i.pop();else if(!o||t.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}),t),a["!id"][s["!rel"]]&&(s["!drawel"]=a["!id"][s["!rel"]]),s}var Wm=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],Hm=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],jm=[],Vm=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Gm(e,t){for(var r=0;r!=e.length;++r)for(var a=e[r],n=0;n!=t.length;++n){var s=t[n];if(null==a[s[0]])a[s[0]]=s[1];else switch(s[2]){case"bool":"string"==typeof a[s[0]]&&(a[s[0]]=lr(a[s[0]]));break;case"int":"string"==typeof a[s[0]]&&(a[s[0]]=parseInt(a[s[0]],10));break}}}function $m(e,t){for(var r=0;r!=t.length;++r){var a=t[r];if(null==e[a[0]])e[a[0]]=a[1];else switch(a[2]){case"bool":"string"==typeof e[a[0]]&&(e[a[0]]=lr(e[a[0]]));break;case"int":"string"==typeof e[a[0]]&&(e[a[0]]=parseInt(e[a[0]],10));break}}}function Xm(e){$m(e.WBProps,Wm),$m(e.CalcPr,Vm),Gm(e.WBView,Hm),Gm(e.Sheets,jm),Od.date1904=lr(e.WBProps.date1904)}function Ym(e){return e.Workbook&&e.Workbook.WBProps&&lr(e.Workbook.WBProps.date1904)?"true":"false"}var Km="][*?/\\".split("");function Zm(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return Km.forEach((function(a){if(-1!=e.indexOf(a)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}})),r}function qm(e,t,r){e.forEach((function(a,n){Zm(a);for(var s=0;s22)throw new Error("Bad Code Name: Worksheet"+i)}}))}function Jm(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];qm(e.SheetNames,t,!!e.vbaraw);for(var r=0;r":break;case"":case"":break;case"":break;case"":Wm.forEach((function(e){if(null!=c[e[0]])switch(e[2]){case"bool":r.WBProps[e[0]]=lr(c[e[0]]);break;case"int":r.WBProps[e[0]]=parseInt(c[e[0]],10);break;default:r.WBProps[e[0]]=c[e[0]]}})),c.codeName&&(r.WBProps.CodeName=dr(c.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete c[0],r.WBView.push(c);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":a=!1;break;case"":s.Ref=Jt(dr(e.slice(i,l))),r.Names.push(s);break;case"":break;case"":delete c[0],r.CalcPr=c;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":case"":break;case"":a=!1;break;case"":a=!0;break;case"":a=!1;break;case"0,a={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Wm.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(a[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(a.codeName=e.Workbook.WBProps.CodeName,delete a.CodeName)),t[t.length]=Er("workbookPr",null,a);var n=e.Workbook&&e.Workbook.Sheets||[],s=0;if(n&&n[0]&&n[0].Hidden){for(t[t.length]="",s=0;s!=e.SheetNames.length;++s){if(!n[s])break;if(!n[s].Hidden)break}s==e.SheetNames.length&&(s=0),t[t.length]='',t[t.length]=""}for(t[t.length]="",s=0;s!=e.SheetNames.length;++s){var i={name:tr(e.SheetNames[s].slice(0,31))};if(i.sheetId=""+(s+1),i["r:id"]="rId"+(s+1),n[s])switch(n[s].Hidden){case 1:i.state="hidden";break;case 2:i.state="veryHidden";break}t[t.length]=Er("sheet",null,i)}return t[t.length]="",r&&(t[t.length]="",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var r={name:e.Name};e.Comment&&(r.comment=e.Comment),null!=e.Sheet&&(r.localSheetId=""+e.Sheet),e.Hidden&&(r.hidden="1"),e.Ref&&(t[t.length]=Er("definedName",tr(e.Ref),r))})),t[t.length]=""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function rb(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=cn(e,t-8),r.name=Ga(e),r}function ab(e,t){return t||(t=ba(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),fn(e.strRelID,t),$a(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function nb(e,t){var r={},a=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var n=t>8?Ga(e):"";return n.length>0&&(r.CodeName=n),r.autoCompressPictures=!!(65536&a),r.backupFile=!!(64&a),r.checkCompatibility=!!(4096&a),r.date1904=!!(1&a),r.filterPrivacy=!!(8&a),r.hidePivotFieldList=!!(1024&a),r.promptedSolutions=!!(16&a),r.publishItems=!!(2048&a),r.refreshAllConnections=!!(262144&a),r.saveExternalLinkValues=!!(128&a),r.showBorderUnselectedTables=!!(4&a),r.showInkAnnotation=!!(32&a),r.showObjects=["all","placeholders","none"][a>>13&3],r.showPivotChartFilter=!!(32768&a),r.updateLinks=["userSet","never","always"][a>>8&3],r}function sb(e,t){t||(t=ba(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),nn(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function ib(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function ob(e,t,r){var a=e.l+t;e.l+=4,e.l+=1;var n=e.read_shift(4),s=ln(e),i=kd(e,0,r),o=sn(e);e.l=a;var l={Name:s,Ptg:i};return n<268435455&&(l.Sheet=n),o&&(l.Comment=o),l}function lb(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},a=[],n=!1;t||(t={}),t.biff=12;var s=[],i=[[]];return i.SheetNames=[],i.XTI=[],mg[16]={n:"BrtFRTArchID$",f:ib},ga(e,(function(e,o,l){switch(l){case 156:i.SheetNames.push(e.name),r.Sheets.push(e);break;case 153:r.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=cd(e.Ptg,null,null,i,t),delete t.SID,delete e.Ptg,s.push(e);break;case 1036:break;case 357:case 358:case 355:case 667:i[0].length?i.push([l,e]):i[0]=[l,e],i[i.length-1].XTI=[];break;case 362:0===i.length&&(i[0]=[],i[0].XTI=[]),i[i.length-1].XTI=i[i.length-1].XTI.concat(e),i.XTI=i.XTI.concat(e);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:a.push(l),n=!0;break;case 36:a.pop(),n=!1;break;case 37:a.push(l),n=!0;break;case 38:a.pop(),n=!1;break;case 16:break;default:if(o.T);else if(!n||t.WTF&&37!=a[a.length-1]&&35!=a[a.length-1])throw new Error("Unexpected record 0x"+l.toString(16))}}),t),Xm(r),r.Names=s,r.supbooks=i,r}function cb(e,t){wa(e,143);for(var r=0;r!=t.SheetNames.length;++r){var a=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,n={Hidden:a,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};wa(e,156,ab(n))}wa(e,144)}function fb(e,t){t||(t=ba(127));for(var r=0;4!=r;++r)t.write_shift(4,0);return $a("SheetJS",t),$a(a.version,t),$a(a.version,t),$a("7262",t),t.length>t.l?t.slice(0,t.l):t}function ub(e,t){t||(t=ba(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function hb(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var r=t.Workbook.Sheets,a=0,n=-1,s=-1;an||(wa(e,135),wa(e,158,ub(n)),wa(e,136))}}function db(e,t){var r=va();return wa(r,131),wa(r,128,fb()),wa(r,153,sb(e.Workbook&&e.Workbook.WBProps||null)),hb(r,e,t),cb(r,e,t),wa(r,132),r.end()}function pb(e,t,r){return".bin"===t.slice(-4)?lb(e,r):eb(e,r)}function mb(e,t,r,a,n,s,i,o){return".bin"===t.slice(-4)?_m(e,a,r,n,s,i,o):Zd(e,a,r,n,s,i,o)}function bb(e,t,r,a,n,s,i,o){return".bin"===t.slice(-4)?zm(e,a,r,n,s,i,o):Bm(e,a,r,n,s,i,o)}function gb(e,t,r,a,n,s,i,o){return".bin"===t.slice(-4)?Au(e,a,r,n,s,i,o):xu(e,a,r,n,s,i,o)}function vb(e,t,r,a,n,s,i,o){return".bin"===t.slice(-4)?Eu(e,a,r,n,s,i,o):Su(e,a,r,n,s,i,o)}function wb(e,t,r,a){return".bin"===t.slice(-4)?uf(e,r,a):Xc(e,r,a)}function yb(e,t,r){return Nf(e,r)}function kb(e,t,r){return".bin"===t.slice(-4)?Vl(e,r):zl(e,r)}function Tb(e,t,r){return".bin"===t.slice(-4)?vu(e,r):lu(e,r)}function _b(e,t,r){return".bin"===t.slice(-4)?tu(e,t,r):Qf(e,t,r)}function Eb(e,t,r,a){return".bin"===r.slice(-4)?au(e,t,r,a):ru(e,t,r,a)}function Sb(e,t,r){return".bin"===t.slice(-4)?Kf(e,t,r):qf(e,t,r)}function Ab(e,t,r){return(".bin"===t.slice(-4)?db:tb)(e,r)}function xb(e,t,r,a,n){return(".bin"===t.slice(-4)?Fm:gp)(e,r,a,n)}function Cb(e,t,r){return(".bin"===t.slice(-4)?Tf:Yc)(e,r)}function Rb(e,t,r){return(".bin"===t.slice(-4)?Xl:Hl)(e,r)}function Pb(e,t,r){return(".bin"===t.slice(-4)?wu:cu)(e,r)}function Ob(e){return(".bin"===e.slice(-4)?Zf:Jf)()}var Nb,Ib=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Db=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Fb(e,t){var r=e.split(/\s+/),a=[];if(t||(a[0]=r[0]),1===r.length)return a;var n,s,i,o,l=e.match(Ib);if(l)for(o=0;o!=l.length;++o)n=l[o].match(Db),-1===(s=n[1].indexOf(":"))?a[n[1]]=n[2].slice(1,n[2].length-1):(i="xmlns:"===n[1].slice(0,6)?"xmlns"+n[1].slice(6):n[1].slice(s+1),a[i]=n[2].slice(1,n[2].length-1));return a}function Mb(e){var t=e.split(/\s+/),r={};if(1===t.length)return r;var a,n,s,i,o=e.match(Ib);if(o)for(i=0;i!=o.length;++i)a=o[i].match(Db),-1===(n=a[1].indexOf(":"))?r[a[1]]=a[2].slice(1,a[2].length-1):(s="xmlns:"===a[1].slice(0,6)?"xmlns"+a[1].slice(6):a[1].slice(n+1),r[s]=a[2].slice(1,a[2].length-1));return r}function Lb(e,t){var r=Nb[e]||Jt(e);return"General"===r?ue(t):je(r,t)}function Bb(e,t,r,a){var n=a;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":n=lr(a);break;case"i2":case"int":n=parseInt(a,10);break;case"r4":case"float":n=parseFloat(a);break;case"date":case"dateTime.tz":n=yt(a);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[Jt(t)]=n}function Ub(e,t,r){if("z"!==e.t){if(!r||!1!==r.cellText)try{"e"===e.t?e.w=e.w||$n[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=fe(e.v):e.w=ue(e.v):e.w=Lb(t||"General",e.v)}catch(s){if(r.WTF)throw s}try{var a=Nb[t]||t||"General";if(r.cellNF&&(e.z=a),r.cellDates&&"n"==e.t&&Be(a)){var n=te(e.v);n&&(e.t="d",e.v=new Date(n.y,n.m-1,n.d,n.H,n.M,n.S,n.u))}}catch(s){if(r.WTF)throw s}}}function zb(e,t,r){if(r.cellStyles&&t.Interior){var a=t.Interior;a.Pattern&&(a.patternType=Lc[a.Pattern]||a.Pattern)}e[t.ID]=t}function Wb(e,t,r,a,n,s,i,o,l,c){var f="General",u=a.StyleID,h={};c=c||{};var d=[],p=0;void 0===u&&o&&(u=o.StyleID),void 0===u&&i&&(u=i.StyleID);while(void 0!==s[u]){if(s[u].nf&&(f=s[u].nf),s[u].Interior&&d.push(s[u].Interior),!s[u].Parent)break;u=s[u].Parent}switch(r.Type){case"Boolean":a.t="b",a.v=lr(e);break;case"String":a.t="s",a.r=ir(Jt(e)),a.v=e.indexOf("<")>-1?Jt(t||e).replace(/<.*?>/g,""):a.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),a.v=(yt(e)-new Date(Date.UTC(1899,11,30)))/864e5,a.v!==a.v?a.v=Jt(e):a.v<60&&(a.v=a.v-1),f&&"General"!=f||(f="yyyy-mm-dd");case"Number":void 0===a.v&&(a.v=+e),a.t||(a.t="n");break;case"Error":a.t="e",a.v=Xn[e],!1!==c.cellText&&(a.w=e);break;default:""==e&&""==t?a.t="z":(a.t="s",a.v=ir(t||e));break}if(Ub(a,f,c),!1!==c.cellFormula)if(a.Formula){var m=Jt(a.Formula);61==m.charCodeAt(0)&&(m=m.slice(1)),a.f=Cu(m,n),delete a.Formula,"RC"==a.ArrayRange?a.F=Cu("RC:RC",n):a.ArrayRange&&(a.F=Cu(a.ArrayRange,n),l.push([La(a.F),a.F]))}else for(p=0;p=l[p][0].s.r&&n.r<=l[p][0].e.r&&n.c>=l[p][0].s.c&&n.c<=l[p][0].e.c&&(a.F=l[p][1]);c.cellStyles&&(d.forEach((function(e){!h.patternType&&e.patternType&&(h.patternType=e.patternType)})),a.s=h),void 0!==a.StyleID&&(a.ixfe=a.StyleID)}function Hb(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function jb(e,t){var r=t||{};$e();var a=b(xr(e));"binary"!=r.type&&"array"!=r.type&&"base64"!=r.type||(a="undefined"!==typeof m?m.utils.decode(65001,h(a)):dr(a));var n,s=a.slice(0,1024).toLowerCase(),i=!1;if(s=s.replace(/".*?"/g,""),(1023&s.indexOf(">"))>Math.min(1023&s.indexOf(","),1023&s.indexOf(";"))){var o=Tt(r);return o.type="string",xl.to_workbook(a,o)}if(-1==s.indexOf("=0&&(i=!0)})),i)return zg(a,r);Nb={"General Number":"General","General Date":q[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":q[15],"Short Date":q[14],"Long Time":q[19],"Medium Time":q[18],"Short Time":q[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:q[2],Standard:q[4],Percent:q[10],Scientific:q[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var l,c=[];null!=y&&null==r.dense&&(r.dense=y);var f,u={},d=[],p=r.dense?[]:{},g="",v={},w={},k=Fb(''),T=0,_=0,E=0,S={s:{r:2e6,c:2e6},e:{r:0,c:0}},A={},x={},C="",R=0,P=[],O={},N={},I=0,D=[],F=[],M={},L=[],B=!1,U=[],z=[],W={},H=0,j=0,V={Sheets:[],WBProps:{date1904:!1}},G={};Cr.lastIndex=0,a=a.replace(//gm,"");var $="";while(n=Cr.exec(a))switch(n[3]=($=n[3]).toLowerCase()){case"data":if("data"==$){if("/"===n[1]){if((l=c.pop())[0]!==n[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&c.push([n[3],!0]);break}if(c[c.length-1][1])break;"/"===n[1]?Wb(a.slice(T,n.index),C,k,"comment"==c[c.length-1][0]?M:v,{c:_,r:E},A,L[_],w,U,r):(C="",k=Fb(n[0]),T=n.index+n[0].length);break;case"cell":if("/"===n[1])if(F.length>0&&(v.c=F),(!r.sheetRows||r.sheetRows>E)&&void 0!==v.v&&(r.dense?(p[E]||(p[E]=[]),p[E][_]=v):p[Ra(_)+Sa(E)]=v),v.HRef&&(v.l={Target:Jt(v.HRef)},v.HRefScreenTip&&(v.l.Tooltip=v.HRefScreenTip),delete v.HRef,delete v.HRefScreenTip),(v.MergeAcross||v.MergeDown)&&(H=_+(0|parseInt(v.MergeAcross,10)),j=E+(0|parseInt(v.MergeDown,10)),P.push({s:{c:_,r:E},e:{c:H,r:j}})),r.sheetStubs)if(v.MergeAcross||v.MergeDown){for(var X=_;X<=H;++X)for(var Y=E;Y<=j;++Y)(X>_||Y>E)&&(r.dense?(p[Y]||(p[Y]=[]),p[Y][X]={t:"z"}):p[Ra(X)+Sa(Y)]={t:"z"});_=H+1}else++_;else v.MergeAcross?_=H+1:++_;else v=Mb(n[0]),v.Index&&(_=+v.Index-1),_S.e.c&&(S.e.c=_),"/>"===n[0].slice(-2)&&++_,F=[];break;case"row":"/"===n[1]||"/>"===n[0].slice(-2)?(ES.e.r&&(S.e.r=E),"/>"===n[0].slice(-2)&&(w=Fb(n[0]),w.Index&&(E=+w.Index-1)),_=0,++E):(w=Fb(n[0]),w.Index&&(E=+w.Index-1),W={},("0"==w.AutoFitHeight||w.Height)&&(W.hpx=parseInt(w.Height,10),W.hpt=Fc(W.hpx),z[E]=W),"1"==w.Hidden&&(W.hidden=!0,z[E]=W));break;case"worksheet":if("/"===n[1]){if((l=c.pop())[0]!==n[3])throw new Error("Bad state: "+l.join("|"));d.push(g),S.s.r<=S.e.r&&S.s.c<=S.e.c&&(p["!ref"]=Ma(S),r.sheetRows&&r.sheetRows<=S.e.r&&(p["!fullref"]=p["!ref"],S.e.r=r.sheetRows-1,p["!ref"]=Ma(S))),P.length&&(p["!merges"]=P),L.length>0&&(p["!cols"]=L),z.length>0&&(p["!rows"]=z),u[g]=p}else S={s:{r:2e6,c:2e6},e:{r:0,c:0}},E=_=0,c.push([n[3],!1]),l=Fb(n[0]),g=Jt(l.Name),p=r.dense?[]:{},P=[],U=[],z=[],G={name:g,Hidden:0},V.Sheets.push(G);break;case"table":if("/"===n[1]){if((l=c.pop())[0]!==n[3])throw new Error("Bad state: "+l.join("|"))}else{if("/>"==n[0].slice(-2))break;c.push([n[3],!1]),L=[],B=!1}break;case"style":"/"===n[1]?zb(A,x,r):x=Fb(n[0]);break;case"numberformat":x.nf=Jt(Fb(n[0]).Format||"General"),Nb[x.nf]&&(x.nf=Nb[x.nf]);for(var K=0;392!=K;++K)if(q[K]==x.nf)break;if(392==K)for(K=57;392!=K;++K)if(null==q[K]){Ve(x.nf,K);break}break;case"column":if("table"!==c[c.length-1][0])break;if(f=Fb(n[0]),f.Hidden&&(f.hidden=!0,delete f.Hidden),f.Width&&(f.wpx=parseInt(f.Width,10)),!B&&f.wpx>10){B=!0,Ac=_c;for(var Z=0;Z0&&(ee.Sheet=V.Sheets.length-1),V.Names.push(ee);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if("/>"===n[0].slice(-2))break;"/"===n[1]?C+=a.slice(R,n.index):R=n.index+n[0].length;break;case"interior":if(!r.cellStyles)break;x.Interior=Fb(n[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===n[0].slice(-2))break;"/"===n[1]?As(O,$,a.slice(I,n.index)):I=n.index+n[0].length;break;case"paragraphs":break;case"styles":case"workbook":if("/"===n[1]){if((l=c.pop())[0]!==n[3])throw new Error("Bad state: "+l.join("|"))}else c.push([n[3],!1]);break;case"comment":if("/"===n[1]){if((l=c.pop())[0]!==n[3])throw new Error("Bad state: "+l.join("|"));Hb(M),F.push(M)}else c.push([n[3],!1]),l=Fb(n[0]),M={a:l.Author};break;case"autofilter":if("/"===n[1]){if((l=c.pop())[0]!==n[3])throw new Error("Bad state: "+l.join("|"))}else if("/"!==n[0].charAt(n[0].length-2)){var te=Fb(n[0]);p["!autofilter"]={ref:Cu(te.Range).replace(/\$/g,"")},c.push([n[3],!0])}break;case"name":break;case"datavalidation":if("/"===n[1]){if((l=c.pop())[0]!==n[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&c.push([n[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===n[1]){if((l=c.pop())[0]!==n[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&c.push([n[3],!0]);break;case"null":break;default:if(0==c.length&&"document"==n[3])return Jg(a,r);if(0==c.length&&"uof"==n[3])return Jg(a,r);var re=!0;switch(c[c.length-1][0]){case"officedocumentsettings":switch(n[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:re=!1}break;case"componentoptions":switch(n[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:re=!1}break;case"excelworkbook":switch(n[3]){case"date1904":V.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:re=!1}break;case"workbookoptions":switch(n[3]){case"owcversion":break;case"height":break;case"width":break;default:re=!1}break;case"worksheetoptions":switch(n[3]){case"visible":if("/>"===n[0].slice(-2));else if("/"===n[1])switch(a.slice(I,n.index)){case"SheetHidden":G.Hidden=1;break;case"SheetVeryHidden":G.Hidden=2;break}else I=n.index+n[0].length;break;case"header":p["!margins"]||Fd(p["!margins"]={},"xlml"),isNaN(+Yt(n[0]).Margin)||(p["!margins"].header=+Yt(n[0]).Margin);break;case"footer":p["!margins"]||Fd(p["!margins"]={},"xlml"),isNaN(+Yt(n[0]).Margin)||(p["!margins"].footer=+Yt(n[0]).Margin);break;case"pagemargins":var ae=Yt(n[0]);p["!margins"]||Fd(p["!margins"]={},"xlml"),isNaN(+ae.Top)||(p["!margins"].top=+ae.Top),isNaN(+ae.Left)||(p["!margins"].left=+ae.Left),isNaN(+ae.Right)||(p["!margins"].right=+ae.Right),isNaN(+ae.Bottom)||(p["!margins"].bottom=+ae.Bottom);break;case"displayrighttoleft":V.Views||(V.Views=[]),V.Views[0]||(V.Views[0]={}),V.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:re=!1}break;case"pivottable":case"pivotcache":switch(n[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:re=!1}break;case"pagebreaks":switch(n[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:re=!1}break;case"autofilter":switch(n[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:re=!1}break;case"querytable":switch(n[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:re=!1}break;case"datavalidation":switch(n[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:re=!1}break;case"sorting":case"conditionalformatting":switch(n[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:re=!1}break;case"mapinfo":case"schema":case"data":switch(n[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:re=!1}break;case"smarttags":break;default:re=!1;break}if(re)break;if(n[3].match(/!\[CDATA/))break;if(!c[c.length-1][1])throw"Unrecognized tag: "+n[3]+"|"+c.join("|");if("customdocumentproperties"===c[c.length-1][0]){if("/>"===n[0].slice(-2))break;"/"===n[1]?Bb(N,$,D,a.slice(I,n.index)):(D=n,I=n.index+n[0].length);break}if(r.WTF)throw"Unrecognized tag: "+n[3]+"|"+c.join("|")}var ne={};return r.bookSheets||r.bookProps||(ne.Sheets=u),ne.SheetNames=d,ne.Workbook=V,ne.SSF=Tt(q),ne.Props=O,ne.Custprops=N,ne}function Vb(e,t){switch(Bv(t=t||{}),t.type||"base64"){case"base64":return jb(E(e),t);case"binary":case"buffer":case"file":return jb(e,t);case"array":return jb(O(e),t)}}function Gb(e,t){var r=[];return e.Props&&r.push(xs(e.Props,t)),e.Custprops&&r.push(Cs(e.Props,e.Custprops,t)),r.join("")}function $b(){return""}function Xb(e,t){var r=[''];return t.cellXfs.forEach((function(e,t){var a=[];a.push(Er("NumberFormat",null,{"ss:Format":tr(q[e.numFmtId])}));var n={"ss:ID":"s"+(21+t)};r.push(Er("Style",a.join(""),n))})),Er("Styles",r.join(""))}function Yb(e){return Er("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Pu(e.Ref,{r:0,c:0})})}function Kb(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],a=0;a"),e["!margins"].header&&n.push(Er("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&n.push(Er("Footer",null,{"x:Margin":e["!margins"].footer})),n.push(Er("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),n.push("")),a&&a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[r])if(a.Workbook.Sheets[r].Hidden)n.push(Er("Visible",1==a.Workbook.Sheets[r].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var s=0;s")}return((((a||{}).Workbook||{}).Views||[])[0]||{}).RTL&&n.push(""),e["!protect"]&&(n.push(Tr("ProtectContents","True")),e["!protect"].objects&&n.push(Tr("ProtectObjects","True")),e["!protect"].scenarios&&n.push(Tr("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||n.push(Tr("EnableSelection","UnlockedCells")):n.push(Tr("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(t){e["!protect"][t[0]]&&n.push("<"+t[1]+"/>")}))),0==n.length?"":Er("WorksheetOptions",n.join(""),{xmlns:Or.x})}function Jb(e){return e.map((function(e){var t=or(e.t||""),r=Er("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return Er("Comment",r,{"ss:Author":e.a})})).join("")}function Qb(e,t,r,a,n,s,i){if(!e||void 0==e.v&&void 0==e.f)return"";var o={};if(e.f&&(o["ss:Formula"]="="+tr(Pu(e.f,i))),e.F&&e.F.slice(0,t.length)==t){var l=Ia(e.F.slice(t.length+1));o["ss:ArrayRange"]="RC:R"+(l.r==i.r?"":"["+(l.r-i.r)+"]")+"C"+(l.c==i.c?"":"["+(l.c-i.c)+"]")}if(e.l&&e.l.Target&&(o["ss:HRef"]=tr(e.l.Target),e.l.Tooltip&&(o["x:HRefScreenTip"]=tr(e.l.Tooltip))),r["!merges"])for(var c=r["!merges"],f=0;f!=c.length;++f)c[f].s.c==i.c&&c[f].s.r==i.r&&(c[f].e.c>c[f].s.c&&(o["ss:MergeAcross"]=c[f].e.c-c[f].s.c),c[f].e.r>c[f].s.r&&(o["ss:MergeDown"]=c[f].e.r-c[f].s.r));var u="",h="";switch(e.t){case"z":if(!a.sheetStubs)return"";break;case"n":u="Number",h=String(e.v);break;case"b":u="Boolean",h=e.v?"1":"0";break;case"e":u="Error",h=$n[e.v];break;case"d":u="DateTime",h=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||q[14]);break;case"s":u="String",h=sr(e.v||"");break}var d=Md(a.cellXfs,e,a);o["ss:StyleID"]="s"+(21+d),o["ss:Index"]=i.c+1;var p=null!=e.v?h:"",m="z"==e.t?"":''+p+"";return(e.c||[]).length>0&&(m+=Jb(e.c)),Er("Cell",m,o)}function eg(e,t){var r='"}function tg(e,t,r,a){if(!e["!ref"])return"";var n=La(e["!ref"]),s=e["!merges"]||[],i=0,o=[];e["!cols"]&&e["!cols"].forEach((function(e,t){Nc(e);var r=!!e.width,a=Dd(t,e),n={"ss:Index":t+1};r&&(n["ss:Width"]=xc(a.width)),e.hidden&&(n["ss:Hidden"]="1"),o.push(Er("Column",null,n))}));for(var l=Array.isArray(e),c=n.s.r;c<=n.e.r;++c){for(var f=[eg(c,(e["!rows"]||[])[c])],u=n.s.c;u<=n.e.c;++u){var h=!1;for(i=0;i!=s.length;++i)if(!(s[i].s.c>u)&&!(s[i].s.r>c)&&!(s[i].e.c"),f.length>2&&o.push(f.join(""))}return o.join("")}function rg(e,t,r){var a=[],n=r.SheetNames[e],s=r.Sheets[n],i=s?Zb(s,t,e,r):"";return i.length>0&&a.push(""+i+""),i=s?tg(s,t,e,r):"",i.length>0&&a.push(""+i+"
"),a.push(qb(s,t,e,r)),a.join("")}function ag(e,t){t||(t={}),e.SSF||(e.SSF=Tt(q)),e.SSF&&($e(),Ge(e.SSF),t.revssf=lt(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Md(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(Gb(e,t)),r.push($b(e,t)),r.push(""),r.push("");for(var a=0;a40?t:(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4?t:(a=r.read_shift(4),1907505652!==a?t:(t.UnicodeClipboardFormat=Sn(r),a=r.read_shift(4),0==a||a>40?t:(r.l-=4,void(t.Reserved2=r.read_shift(0,"lpwstr"))))))}var sg=[60,1084,2066,2165,2175];function ig(e,t,r,a,n){var s=a,i=[],o=r.slice(r.l,r.l+s);if(n&&n.enc&&n.enc.insitu&&o.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:n.enc.insitu(o)}i.push(o),r.l+=s;var l=aa(r,r.l),c=bg[l],f=0;while(null!=c&&sg.indexOf(l)>-1)s=aa(r,r.l+2),f=r.l+4,2066==l?f+=4:2165!=l&&2175!=l||(f+=12),o=r.slice(f,r.l+4+s),i.push(o),r.l+=4+s,c=bg[l=aa(r,r.l)];var u=D(i);pa(u,0);var h=0;u.lens=[];for(var d=0;d1)&&!(r.sheetRows&&e.r>=r.sheetRows)){if(r.cellStyles&&t.XF&&t.XF.data&&R(e,t,r),delete t.ixfe,delete t.XF,n=e,k=Da(e),m&&m.s&&m.e||(m={s:{r:0,c:0},e:{r:0,c:0}}),e.rm.e.r&&(m.e.r=e.r+1),e.c+1>m.e.c&&(m.e.c=e.c+1),r.cellFormula&&t.f)for(var a=0;a<_.length;++a)if(!(_[a][0].s.c>e.c||_[a][0].s.r>e.r)&&!(_[a][0].e.c>8)!==$)throw new Error("rt mismatch: "+K+"!="+$);12==Y.r&&(e.l+=10,X-=10)}var Z={};if(Z=10===$?Y.f(e,X,O):ig($,Y,e,X,O),0==z&&-1===[9,521,1033,2057].indexOf(U))continue;switch($){case 34:r.opts.Date1904=A.WBProps.date1904=Z;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(O.enc||(e.l=0),O.enc=Z,!t.password)throw new Error("File is password-protected");if(null==Z.valid)throw new Error("Encryption scheme unsupported");if(!Z.valid)throw new Error("Password is incorrect");break;case 92:O.lastuser=Z;break;case 66:var J=Number(Z);switch(J){case 21010:J=1200;break;case 32768:J=1e4;break;case 32769:J=1252;break}f(O.codepage=J),V=!0;break;case 317:O.rrtabid=Z;break;case 25:O.winlocked=Z;break;case 439:r.opts["RefreshAll"]=Z;break;case 12:r.opts["CalcCount"]=Z;break;case 16:r.opts["CalcDelta"]=Z;break;case 17:r.opts["CalcIter"]=Z;break;case 13:r.opts["CalcMode"]=Z;break;case 14:r.opts["CalcPrecision"]=Z;break;case 95:r.opts["CalcSaveRecalc"]=Z;break;case 15:O.CalcRefMode=Z;break;case 2211:r.opts.FullCalc=Z;break;case 129:Z.fDialog&&(d["!type"]="dialog"),Z.fBelow||((d["!outline"]||(d["!outline"]={})).above=!0),Z.fRight||((d["!outline"]||(d["!outline"]={})).left=!0);break;case 224:E.push(Z);break;case 430:L.push([Z]),L[L.length-1].XTI=[];break;case 35:case 547:L[L.length-1].push(Z);break;case 24:case 536:B={Name:Z.Name,Ref:cd(Z.rgce,m,null,L,O)},Z.itab>0&&(B.Sheet=Z.itab-1),L.names.push(B),L[0]||(L[0]=[],L[0].XTI=[]),L[L.length-1].push(Z),"_xlnm._FilterDatabase"==Z.Name&&Z.itab>0&&Z.rgce&&Z.rgce[0]&&Z.rgce[0][0]&&"PtgArea3d"==Z.rgce[0][0][0]&&(j[Z.itab-1]={ref:Ma(Z.rgce[0][0][1][2])});break;case 22:O.ExternCount=Z;break;case 23:0==L.length&&(L[0]=[],L[0].XTI=[]),L[L.length-1].XTI=L[L.length-1].XTI.concat(Z),L.XTI=L.XTI.concat(Z);break;case 2196:if(O.biff<8)break;null!=B&&(B.Comment=Z[1]);break;case 18:d["!protect"]=Z;break;case 19:0!==Z&&O.WTF&&console.error("Password verifier: "+Z);break;case 133:p[Z.pos]=Z,O.snames.push(Z.name);break;case 10:if(--z)break;if(m.e){if(m.e.r>0&&m.e.c>0){if(m.e.r--,m.e.c--,d["!ref"]=Ma(m),t.sheetRows&&t.sheetRows<=m.e.r){var Q=m.e.r;m.e.r=t.sheetRows-1,d["!fullref"]=d["!ref"],d["!ref"]=Ma(m),m.e.r=Q}m.e.r++,m.e.c++}N.length>0&&(d["!merges"]=N),I.length>0&&(d["!objects"]=I),D.length>0&&(d["!cols"]=D),F.length>0&&(d["!rows"]=F),A.Sheets.push(x)}""===v?w=d:a[v]=d,d=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===O.biff&&(O.biff={9:2,521:3,1033:4}[$]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Z.BIFFVer]||8),O.biffguess=0==Z.BIFFVer,0==Z.BIFFVer&&4096==Z.dt&&(O.biff=5,V=!0,f(O.codepage=28591)),8==O.biff&&0==Z.BIFFVer&&16==Z.dt&&(O.biff=2),z++)break;if(d=t.dense?[]:{},O.biff<8&&!V&&(V=!0,f(O.codepage=t.codepage||1252)),O.biff<5||0==Z.BIFFVer&&4096==Z.dt){""===v&&(v="Sheet1"),m={s:{r:0,c:0},e:{r:0,c:0}};var ee={pos:e.l-X,name:v};p[ee.pos]=ee,O.snames.push(v)}else v=(p[G]||{name:""}).name;32==Z.dt&&(d["!type"]="chart"),64==Z.dt&&(d["!type"]="macro"),N=[],I=[],O.arrayf=_=[],D=[],F=[],M=!1,x={Hidden:(p[G]||{hs:0}).hs,name:v};break;case 515:case 3:case 2:"chart"==d["!type"]&&(t.dense?(d[Z.r]||[])[Z.c]:d[Da({c:Z.c,r:Z.r})])&&++Z.c,c={ixfe:Z.ixfe,XF:E[Z.ixfe]||{},v:Z.val,t:"n"},W>0&&(c.z=H[c.ixfe>>8&63]),og(c,t,r.opts.Date1904),P({c:Z.c,r:Z.r},c,t);break;case 5:case 517:c={ixfe:Z.ixfe,XF:E[Z.ixfe],v:Z.val,t:Z.t},W>0&&(c.z=H[c.ixfe>>8&63]),og(c,t,r.opts.Date1904),P({c:Z.c,r:Z.r},c,t);break;case 638:c={ixfe:Z.ixfe,XF:E[Z.ixfe],v:Z.rknum,t:"n"},W>0&&(c.z=H[c.ixfe>>8&63]),og(c,t,r.opts.Date1904),P({c:Z.c,r:Z.r},c,t);break;case 189:for(var te=Z.c;te<=Z.C;++te){var re=Z.rkrec[te-Z.c][0];c={ixfe:re,XF:E[re],v:Z.rkrec[te-Z.c][1],t:"n"},W>0&&(c.z=H[c.ixfe>>8&63]),og(c,t,r.opts.Date1904),P({c:te,r:Z.r},c,t)}break;case 6:case 518:case 1030:if("String"==Z.val){b=Z;break}if(c=lg(Z.val,Z.cell.ixfe,Z.tt),c.XF=E[c.ixfe],t.cellFormula){var ae=Z.formula;if(ae&&ae[0]&&ae[0][0]&&"PtgExp"==ae[0][0][0]){var ne=ae[0][0][1][0],se=ae[0][0][1][1],ie=Da({r:ne,c:se});T[ie]?c.f=""+cd(Z.formula,m,Z.cell,L,O):c.F=((t.dense?(d[ne]||[])[se]:d[ie])||{}).F}else c.f=""+cd(Z.formula,m,Z.cell,L,O)}W>0&&(c.z=H[c.ixfe>>8&63]),og(c,t,r.opts.Date1904),P(Z.cell,c,t),b=Z;break;case 7:case 519:if(!b)throw new Error("String record expects Formula");b.val=Z,c=lg(Z,b.cell.ixfe,"s"),c.XF=E[c.ixfe],t.cellFormula&&(c.f=""+cd(b.formula,m,b.cell,L,O)),W>0&&(c.z=H[c.ixfe>>8&63]),og(c,t,r.opts.Date1904),P(b.cell,c,t),b=null;break;case 33:case 545:_.push(Z);var oe=Da(Z[0].s);if(s=t.dense?(d[Z[0].s.r]||[])[Z[0].s.c]:d[oe],t.cellFormula&&s){if(!b)break;if(!oe||!s)break;s.f=""+cd(Z[1],m,Z[0],L,O),s.F=Ma(Z[0])}break;case 1212:if(!t.cellFormula)break;if(k){if(!b)break;T[Da(b.cell)]=Z[0],s=t.dense?(d[b.cell.r]||[])[b.cell.c]:d[Da(b.cell)],(s||{}).f=""+cd(Z[0],m,n,L,O)}break;case 253:c=lg(g[Z.isst].t,Z.ixfe,"s"),g[Z.isst].h&&(c.h=g[Z.isst].h),c.XF=E[c.ixfe],W>0&&(c.z=H[c.ixfe>>8&63]),og(c,t,r.opts.Date1904),P({c:Z.c,r:Z.r},c,t);break;case 513:t.sheetStubs&&(c={ixfe:Z.ixfe,XF:E[Z.ixfe],t:"z"},W>0&&(c.z=H[c.ixfe>>8&63]),og(c,t,r.opts.Date1904),P({c:Z.c,r:Z.r},c,t));break;case 190:if(t.sheetStubs)for(var le=Z.c;le<=Z.C;++le){var ce=Z.ixfe[le-Z.c];c={ixfe:ce,XF:E[ce],t:"z"},W>0&&(c.z=H[c.ixfe>>8&63]),og(c,t,r.opts.Date1904),P({c:le,r:Z.r},c,t)}break;case 214:case 516:case 4:c=lg(Z.val,Z.ixfe,"s"),c.XF=E[c.ixfe],W>0&&(c.z=H[c.ixfe>>8&63]),og(c,t,r.opts.Date1904),P({c:Z.c,r:Z.r},c,t);break;case 0:case 512:1===z&&(m=Z);break;case 252:g=Z;break;case 1054:if(4==O.biff){H[W++]=Z[1];for(var fe=0;fe=163&&Ve(Z[1],W+163)}else Ve(Z[1],Z[0]);break;case 30:H[W++]=Z;for(var ue=0;ue=163&&Ve(Z,W+163);break;case 229:N=N.concat(Z);break;case 93:I[Z.cmo[0]]=O.lastobj=Z;break;case 438:O.lastobj.TxO=Z;break;case 127:O.lastobj.ImData=Z;break;case 440:for(l=Z[0].s.r;l<=Z[0].e.r;++l)for(o=Z[0].s.c;o<=Z[0].e.c;++o)s=t.dense?(d[l]||[])[o]:d[Da({c:o,r:l})],s&&(s.l=Z[1]);break;case 2048:for(l=Z[0].s.r;l<=Z[0].e.r;++l)for(o=Z[0].s.c;o<=Z[0].e.c;++o)s=t.dense?(d[l]||[])[o]:d[Da({c:o,r:l})],s&&s.l&&(s.l.Tooltip=Z[1]);break;case 28:if(O.biff<=5&&O.biff>=2)break;s=t.dense?(d[Z[0].r]||[])[Z[0].c]:d[Da(Z[0])];var he=I[Z[2]];s||(t.dense?(d[Z[0].r]||(d[Z[0].r]=[]),s=d[Z[0].r][Z[0].c]={t:"z"}):s=d[Da(Z[0])]={t:"z"},m.e.r=Math.max(m.e.r,Z[0].r),m.s.r=Math.min(m.s.r,Z[0].r),m.e.c=Math.max(m.e.c,Z[0].c),m.s.c=Math.min(m.s.c,Z[0].c)),s.c||(s.c=[]),i={a:Z[1],t:he.TxO.t},s.c.push(i);break;case 2173:Wf(E[Z.ixfe],Z.ext);break;case 125:if(!O.cellStyles)break;while(Z.e>=Z.s)D[Z.e--]={width:Z.w/256,level:Z.level||0,hidden:!!(1&Z.flags)},M||(M=!0,Oc(Z.w/256)),Nc(D[Z.e+1]);break;case 520:var de={};null!=Z.level&&(F[Z.r]=de,de.level=Z.level),Z.hidden&&(F[Z.r]=de,de.hidden=!0),Z.hpt&&(F[Z.r]=de,de.hpt=Z.hpt,de.hpx=Mc(Z.hpt));break;case 38:case 39:case 40:case 41:d["!margins"]||Fd(d["!margins"]={}),d["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[$]]=Z;break;case 161:d["!margins"]||Fd(d["!margins"]={}),d["!margins"].header=Z.header,d["!margins"].footer=Z.footer;break;case 574:Z.RTL&&(A.Views[0].RTL=!0);break;case 146:S=Z;break;case 2198:h=Z;break;case 140:u=Z;break;case 442:v?x.CodeName=Z||x.name:A.WBProps.CodeName=Z||"ThisWorkbook";break}}else Y||console.error("Missing Info for XLS Record 0x"+$.toString(16)),e.l+=X}return r.SheetNames=st(p).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return p[e].name})),t.bookSheets||(r.Sheets=a),!r.SheetNames.length&&w["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets["Sheet1"]=w)):r.Preamble=w,r.Sheets&&j.forEach((function(e,t){r.Sheets[r.SheetNames[t]]["!autofilter"]=e})),r.Strings=g,r.SSF=Tt(q),O.enc&&(r.Encryption=O.enc),h&&(r.Themes=h),r.Metadata={},void 0!==u&&(r.Metadata.Country=u),L.names.length>0&&(A.Names=L.names),r.Workbook=A,r}var fg={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function ug(e,t,r){var a=Qe.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var n=Ks(a,Un,fg.DSI);for(var s in n)t[s]=n[s]}catch(c){if(r.WTF)throw c}var i=Qe.find(e,"/!SummaryInformation");if(i&&i.size>0)try{var o=Ks(i,zn,fg.SI);for(var l in o)null==t[l]&&(t[l]=o[l])}catch(c){if(r.WTF)throw c}t.HeadingPairs&&t.TitlesOfParts&&(vs(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}function hg(e,t){var r,a=[],n=[],s=[],i=0,o=it(Un,"n"),l=it(zn,"n");if(e.Props)for(r=st(e.Props),i=0;i-1||gs.indexOf(s[i][0])>-1||null!=s[i][1]&&c.push(s[i]);n.length&&Qe.utils.cfb_add(t,"/SummaryInformation",Zs(n,fg.SI,l,zn)),(a.length||c.length)&&Qe.utils.cfb_add(t,"/DocumentSummaryInformation",Zs(a,fg.DSI,o,Un,c.length?c:null,fg.UDI))}function dg(e,t){var r,a,n,s;if(t||(t={}),Bv(t),u(),t.codepage&&l(t.codepage),e.FullPaths){if(Qe.find(e,"/encryption"))throw new Error("File is password-protected");r=Qe.find(e,"!CompObj"),a=Qe.find(e,"/Workbook")||Qe.find(e,"/Book")}else{switch(t.type){case"base64":e=R(E(e));break;case"binary":e=R(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}pa(e,0),a={content:e}}if(r&&ng(r),t.bookProps&&!t.bookSheets)n={};else{var i=S?"buffer":"array";if(a&&a.content)n=cg(a.content,t);else if((s=Qe.find(e,"PerfectOffice_MAIN"))&&s.content)n=Rl.to_workbook(s.content,(t.type=i,t));else{if(!(s=Qe.find(e,"NativeContent_MAIN"))||!s.content)throw(s=Qe.find(e,"MN0"))&&s.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");n=Rl.to_workbook(s.content,(t.type=i,t))}t.bookVBA&&e.FullPaths&&Qe.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(n.vbaraw=ku(e))}var o={};return e.FullPaths&&ug(e,o,t),n.Props=n.Custprops=o,t.bookFiles&&(n.cfb=e),n}function pg(e,t){var r=t||{},a=Qe.utils.cfb_new({root:"R"}),n="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":n="/Workbook",r.biff=8;break;case"biff5":n="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Qe.utils.cfb_add(a,n,Fg(e,r)),8==r.biff&&(e.Props||e.Custprops)&&hg(e,a),8==r.biff&&e.vbaraw&&Tu(a,Qe.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),a}var mg={0:{f:vp},1:{f:Ap},2:{f:$p},3:{f:Dp},4:{f:Pp},5:{f:Hp},6:{f:qp},7:{f:Bp},8:{f:nm},9:{f:am},10:{f:tm},11:{f:rm},12:{f:Cp},13:{f:Yp},14:{f:Mp},15:{f:Np},16:{f:Vp},17:{f:Qp},18:{f:zp},19:{f:Ka},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:ob},40:{},42:{},43:{f:qc},44:{f:Kc},45:{f:tf},46:{f:of},47:{f:af},48:{},49:{f:ja},50:{},51:{f:Vf},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:sl},62:{f:Zp},63:{f:eu},64:{f:km},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ma,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:gm},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Ep},148:{f:kp,p:16},151:{f:fm},152:{},153:{f:nb},154:{},155:{},156:{f:rb},157:{},158:{},159:{T:1,f:jl},160:{T:-1},161:{T:1,f:mn},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:sm},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Hf},336:{T:-1},337:{f:Xf,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:cn},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Mo},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:um},427:{f:hm},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:mm},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:_p},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:lm},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:cn},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:bu},633:{T:1},634:{T:-1},635:{T:1,f:pu},636:{T:-1},637:{f:qa},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:Um},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:Tm},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},bg={6:{f:bd},10:{f:qs},12:{f:ri},13:{f:ri},14:{f:ei},15:{f:ei},16:{f:gn},17:{f:ei},18:{f:ei},19:{f:ri},20:{f:Oo},21:{f:Oo},23:{f:Mo},24:{f:Fo},25:{f:ei},26:{},27:{},28:{f:jo},29:{},34:{f:ei},35:{f:Io},38:{f:gn},39:{f:gn},40:{f:gn},41:{f:gn},42:{f:ei},43:{f:ei},47:{f:bc},49:{f:oo},51:{f:ri},60:{},61:{f:ro},64:{f:ei},65:{f:io},66:{f:ri},77:{},80:{},81:{},82:{},85:{f:ri},89:{},90:{},91:{},92:{f:Vi},93:{f:$o},94:{},95:{f:ei},96:{},97:{},99:{f:ei},125:{f:sl},128:{f:So},129:{f:$i},130:{f:ri},131:{f:ei},132:{f:ei},133:{f:Xi},134:{},140:{f:el},141:{f:ri},144:{},146:{f:al},151:{},152:{},153:{},154:{},155:{},156:{f:ri},157:{},158:{},160:{f:ul},161:{f:ol},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:yo},190:{f:ko},193:{f:qs},197:{},198:{},199:{},200:{},201:{},202:{f:ei},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:ri},220:{},221:{f:ei},222:{},224:{f:_o},225:{f:ji},226:{f:qs},227:{},229:{f:Vo},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:Ki},253:{f:co},255:{f:qi},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:ni},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:ei},353:{f:qs},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:No},431:{f:ei},432:{},433:{},434:{},437:{},438:{f:Ko},439:{f:ei},440:{f:Zo},441:{},442:{f:ui},443:{},444:{f:ri},445:{},446:{},448:{f:qs},449:{f:eo,r:2},450:{f:qs},512:{f:go},513:{f:fl},515:{f:Ro},516:{f:uo},517:{f:xo},519:{f:hl},520:{f:Ji},523:{},545:{f:zo},549:{f:to},566:{},574:{f:no},638:{f:wo},659:{},1048:{},1054:{f:po},1084:{},1212:{f:Uo},2048:{f:Jo},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Wi},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:qs},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:nl,r:12},2173:{f:zf,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:ei,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:Bo,r:12},2197:{},2198:{f:Df,r:12},2199:{},2200:{},2201:{},2202:{f:Wo,r:12},2203:{f:qs},2204:{},2205:{},2206:{},2207:{},2211:{f:Qi},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:ri},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:ll},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:rl},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:go},1:{},2:{f:gl},3:{f:ml},4:{f:pl},5:{f:xo},7:{f:wl},8:{},9:{f:Wi},11:{},22:{f:ri},30:{f:bo},31:{},32:{},33:{f:zo},36:{},37:{f:to},50:{f:yl},62:{},52:{},67:{},68:{f:ri},69:{},86:{},126:{},127:{f:dl},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:kl},223:{},234:{},354:{},421:{},518:{f:bd},521:{f:Wi},536:{f:Fo},547:{f:Io},561:{},579:{},1030:{f:bd},1033:{f:Wi},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function gg(e,t,r,a){var n=t;if(!isNaN(n)){var s=a||(r||[]).length||0,i=e.next(4);i.write_shift(2,n),i.write_shift(2,s),s>0&&ea(r)&&e.push(r)}}function vg(e,t,r,a){var n=a||(r||[]).length||0;if(n<=8224)return gg(e,t,r,n);var s=t;if(!isNaN(s)){var i=r.parts||[],o=0,l=0,c=0;while(c+(i[o]||8224)<=8224)c+=i[o]||8224,o++;var f=e.next(4);f.write_shift(2,s),f.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c;while(l=0&&n<65536?gg(e,2,vl(r,a,n)):gg(e,3,bl(r,a,n)));case"b":case"e":return void gg(e,5,yg(r,a,t.v,t.t));case"s":case"str":return void gg(e,4,kg(r,a,(t.v||"").slice(0,255)))}gg(e,1,wg(null,r,a))}function _g(e,t,r,a){var n,s=Array.isArray(t),i=La(t["!ref"]||"A1"),o="",l=[];if(i.e.c>255||i.e.r>16383){if(a.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),n=Ma(i)}for(var c=i.s.r;c<=i.e.r;++c){o=Sa(c);for(var f=i.s.c;f<=i.e.c;++f){c===i.s.r&&(l[f]=Ra(f)),n=l[f]+o;var u=s?(t[c]||[])[f]:t[n];u&&Tg(e,u,c,f,a)}}}function Eg(e,t){var r=t||{};null!=y&&null==r.dense&&(r.dense=y);for(var a=va(),n=0,s=0;s255||d.e.r>=p){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");d.e.c=Math.min(d.e.c,255),d.e.r=Math.min(d.e.c,p-1)}gg(n,2057,Hi(r,16,t)),gg(n,13,ai(1)),gg(n,12,ai(100)),gg(n,15,ti(!0)),gg(n,17,ti(!1)),gg(n,16,vn(.001)),gg(n,95,ti(!0)),gg(n,42,ti(!1)),gg(n,43,ti(!1)),gg(n,130,ai(1)),gg(n,128,Ao([0,0])),gg(n,131,ti(!1)),gg(n,132,ti(!1)),f&&Pg(n,i["!cols"]),gg(n,512,vo(d,t)),f&&(i["!links"]=[]);for(var m=d.s.r;m<=d.e.r;++m){u=Sa(m);for(var b=d.s.c;b<=d.e.c;++b){m===d.s.r&&(h[b]=Ra(b)),a=h[b]+u;var g=c?(i[m]||[])[b]:i[a];g&&(Og(n,g,m,b,t),f&&g.l&&i["!links"].push([a,g.l]))}}var v=l.CodeName||l.name||s;return f&&gg(n,574,so((o.Views||[])[0])),f&&(i["!merges"]||[]).length&&gg(n,229,Go(i["!merges"])),f&&Rg(n,i),gg(n,442,di(v,t)),f&&xg(n,i),gg(n,10),n.end()}function Ig(e,t,r){var a=va(),n=(e||{}).Workbook||{},s=n.Sheets||[],i=n.WBProps||{},o=8==r.biff,l=5==r.biff;if(gg(a,2057,Hi(e,5,r)),"xla"==r.bookType&&gg(a,135),gg(a,225,o?ai(1200):null),gg(a,193,Js(2)),l&&gg(a,191),l&&gg(a,192),gg(a,226),gg(a,92,Gi("SheetJS",r)),gg(a,66,ai(o?1200:1252)),o&&gg(a,353,ai(0)),o&&gg(a,448),gg(a,317,cl(e.SheetNames.length)),o&&e.vbaraw&&gg(a,211),o&&e.vbaraw){var c=i.CodeName||"ThisWorkbook";gg(a,442,di(c,r))}gg(a,156,ai(17)),gg(a,25,ti(!1)),gg(a,18,ti(!1)),gg(a,19,ai(0)),o&&gg(a,431,ti(!1)),o&&gg(a,444,ai(0)),gg(a,61,ao(r)),gg(a,64,ti(!1)),gg(a,141,ai(0)),gg(a,34,ti("true"==Ym(e))),gg(a,14,ti(!0)),o&&gg(a,439,ti(!1)),gg(a,218,ai(0)),Sg(a,e,r),Ag(a,e.SSF,r),Cg(a,r),o&&gg(a,352,ti(!1));var f=a.end(),u=va();o&&gg(u,140,tl()),o&&r.Strings&&vg(u,252,Zi(r.Strings,r)),gg(u,10);var h=u.end(),d=va(),p=0,m=0;for(m=0;m255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var s=t||{};switch(s.biff||2){case 8:case 5:return Dg(e,t);case 4:case 3:case 2:return Eg(e,t)}throw new Error("invalid type "+s.bookType+" for BIFF")}function Mg(e,t){var r=t||{};null!=y&&null==r.dense&&(r.dense=y);var a=r.dense?[]:{};e=e.replace(//g,"");var n=e.match(/");var s=e.match(/<\/table/i),i=n.index,o=s&&s.index||e.length,l=xt(e.slice(i,o),/(:?]*>)/i,""),c=-1,f=0,u=0,h=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(i=0;i/i);for(o=0;o"))>-1)w=w.slice(k+1);for(var T=0;T")));h=E.colspan?+E.colspan:1,((u=+E.rowspan)>1||h>1)&&p.push({s:{r:c,c:f},e:{r:c+(u||1)-1,c:f+h-1}});var S=E.t||E["data-t"]||"";if(w.length)if(w=br(w),d.s.r>c&&(d.s.r=c),d.e.rf&&(d.s.c=f),d.e.cr||n[c].s.c>i)&&!(n[c].e.r1&&(d.rowspan=o),l>1&&(d.colspan=l),a.editable?h=''+h+"":u&&(d["data-t"]=u&&u.t||"z",null!=u.v&&(d["data-v"]=u.v),null!=u.z&&(d["data-z"]=u.z),u.l&&"#"!=(u.l.Target||"#").charAt(0)&&(h=''+h+"")),d.id=(a.id||"sjs")+"-"+f,s.push(Er("td",h,d))}}var p="";return p+s.join("")+""}var Bg='SheetJS Table Export',Ug="";function zg(e,t){var r=e.match(/[\s\S]*?<\/table>/gi);if(!r||0==r.length)throw new Error("Invalid HTML: could not find
");if(1==r.length)return za(Mg(r[0],t),t);var a=Pw();return r.forEach((function(e,r){Ow(a,Mg(e,t),"Sheet"+(r+1))})),a}function Wg(e,t,r){var a=[];return a.join("")+""}function Hg(e,t){var r=t||{},a=null!=r.header?r.header:Bg,n=null!=r.footer?r.footer:Ug,s=[a],i=Fa(e["!ref"]);r.dense=Array.isArray(e),s.push(Wg(e,i,r));for(var o=i.s.r;o<=i.e.r;++o)s.push(Lg(e,i,o,r));return s.push("
"+n),s.join("")}function jg(e,t,r){var a=r||{};null!=y&&(a.dense=y);var n=0,s=0;if(null!=a.origin)if("number"==typeof a.origin)n=a.origin;else{var i="string"==typeof a.origin?Ia(a.origin):a.origin;n=i.r,s=i.c}var o=t.getElementsByTagName("tr"),l=Math.min(a.sheetRows||1e7,o.length),c={s:{r:0,c:0},e:{r:n,c:s}};if(e["!ref"]){var f=Fa(e["!ref"]);c.s.r=Math.min(c.s.r,f.s.r),c.s.c=Math.min(c.s.c,f.s.c),c.e.r=Math.max(c.e.r,f.e.r),c.e.c=Math.max(c.e.c,f.e.c),-1==n&&(c.e.r=n=f.e.r+1)}var u=[],h=0,d=e["!rows"]||(e["!rows"]=[]),p=0,m=0,b=0,g=0,v=0,w=0;for(e["!cols"]||(e["!cols"]=[]);p1||w>1)&&u.push({s:{r:m+n,c:g+s},e:{r:m+n+(v||1)-1,c:g+s+(w||1)-1}});var x={t:"s",v:E},C=_.getAttribute("data-t")||_.getAttribute("t")||"";null!=E&&(0==E.length?x.t=C||"z":a.raw||0==E.trim().length||"s"==C||("TRUE"===E?x={t:"b",v:!0}:"FALSE"===E?x={t:"b",v:!1}:isNaN(Et(E))?isNaN(At(E).getDate())||(x={t:"d",v:yt(E)},a.cellDates||(x={t:"n",v:ut(x.v)}),x.z=a.dateNF||q[14]):x={t:"n",v:Et(E)})),void 0===x.z&&null!=S&&(x.z=S);var R="",P=_.getElementsByTagName("A");if(P&&P.length)for(var O=0;O=l&&(e["!fullref"]=Ma((c.e.r=o.length-p+m-1+n,c))),e}function Vg(e,t){var r=t||{},a=r.dense?[]:{};return jg(a,e,t)}function Gg(e,t){return za(Vg(e,t),t)}function $g(e){var t="",r=Xg(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}function Xg(e){return e.ownerDocument.defaultView&&"function"===typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"===typeof getComputedStyle?getComputedStyle:null}function Yg(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/]*\/>/g,"\t").replace(//g,"\n"),r=Jt(t.replace(/<[^>]*>/g,""));return[r]}var Kg={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function Zg(e,t){var r=t||{};null!=y&&null==r.dense&&(r.dense=y);var a,n,s,i,o,l,c,f=xr(e),u=[],h={name:""},d="",p=0,m={},b=[],g=r.dense?[]:{},v={value:""},w="",k=0,T=[],_=-1,E=-1,S={s:{r:1e6,c:1e7},e:{r:0,c:0}},A=0,x={},C=[],R={},P=0,O=0,N=[],I=1,D=1,F=[],M={Names:[]},L={},B=["",""],U=[],z={},W="",H=0,j=!1,V=!1,G=0;Cr.lastIndex=0,f=f.replace(//gm,"").replace(//gm,"");while(o=Cr.exec(f))switch(o[3]=o[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===o[1]?(S.e.c>=S.s.c&&S.e.r>=S.s.r?g["!ref"]=Ma(S):g["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=S.e.r&&(g["!fullref"]=g["!ref"],S.e.r=r.sheetRows-1,g["!ref"]=Ma(S)),C.length&&(g["!merges"]=C),N.length&&(g["!rows"]=N),s.name=s["名称"]||s.name,"undefined"!==typeof JSON&&JSON.stringify(s),b.push(s.name),m[s.name]=g,V=!1):"/"!==o[0].charAt(o[0].length-2)&&(s=Yt(o[0],!1),_=E=-1,S.s.r=S.s.c=1e7,S.e.r=S.e.c=0,g=r.dense?[]:{},C=[],N=[],V=!0);break;case"table-row-group":"/"===o[1]?--A:++A;break;case"table-row":case"行":if("/"===o[1]){_+=I,I=1;break}if(i=Yt(o[0],!1),i["行号"]?_=i["行号"]-1:-1==_&&(_=0),I=+i["number-rows-repeated"]||1,I<10)for(G=0;G0&&(N[_+G]={level:A});E=-1;break;case"covered-table-cell":"/"!==o[1]&&++E,r.sheetStubs&&(r.dense?(g[_]||(g[_]=[]),g[_][E]={t:"z"}):g[Da({r:_,c:E})]={t:"z"}),w="",T=[];break;case"table-cell":case"数据":if("/"===o[0].charAt(o[0].length-2))++E,v=Yt(o[0],!1),D=parseInt(v["number-columns-repeated"]||"1",10),l={t:"z",v:null},v.formula&&0!=r.cellFormula&&(l.f=Ad(Jt(v.formula))),"string"==(v["数据类型"]||v["value-type"])&&(l.t="s",l.v=Jt(v["string-value"]||""),r.dense?(g[_]||(g[_]=[]),g[_][E]=l):g[Da({r:_,c:E})]=l),E+=D-1;else if("/"!==o[1]){++E,w="",k=0,T=[],D=1;var $=I?_+I-1:_;if(E>S.e.c&&(S.e.c=E),ES.e.r&&(S.e.r=$),v=Yt(o[0],!1),U=[],z={},l={t:v["数据类型"]||v["value-type"],v:null},r.cellFormula)if(v.formula&&(v.formula=Jt(v.formula)),v["number-matrix-columns-spanned"]&&v["number-matrix-rows-spanned"]&&(P=parseInt(v["number-matrix-rows-spanned"],10)||0,O=parseInt(v["number-matrix-columns-spanned"],10)||0,R={s:{r:_,c:E},e:{r:_+P-1,c:E+O-1}},l.F=Ma(R),F.push([R,l.F])),v.formula)l.f=Ad(v.formula);else for(G=0;G=F[G][0].s.r&&_<=F[G][0].e.r&&E>=F[G][0].s.c&&E<=F[G][0].e.c&&(l.F=F[G][1]);switch((v["number-columns-spanned"]||v["number-rows-spanned"])&&(P=parseInt(v["number-rows-spanned"],10)||0,O=parseInt(v["number-columns-spanned"],10)||0,R={s:{r:_,c:E},e:{r:_+P-1,c:E+O-1}},C.push(R)),v["number-columns-repeated"]&&(D=parseInt(v["number-columns-repeated"],10)),l.t){case"boolean":l.t="b",l.v=lr(v["boolean-value"]);break;case"float":l.t="n",l.v=parseFloat(v.value);break;case"percentage":l.t="n",l.v=parseFloat(v.value);break;case"currency":l.t="n",l.v=parseFloat(v.value);break;case"date":l.t="d",l.v=yt(v["date-value"]),r.cellDates||(l.t="n",l.v=ut(l.v)),l.z="m/d/yy";break;case"time":l.t="n",l.v=bt(v["time-value"])/86400,r.cellDates&&(l.t="d",l.v=mt(l.v)),l.z="HH:MM:SS";break;case"number":l.t="n",l.v=parseFloat(v["数据数值"]);break;default:if("string"!==l.t&&"text"!==l.t&&l.t)throw new Error("Unsupported value type "+l.t);l.t="s",null!=v["string-value"]&&(w=Jt(v["string-value"]),T=[])}}else{if(j=!1,"s"===l.t&&(l.v=w||"",T.length&&(l.R=T),j=0==k),L.Target&&(l.l=L),U.length>0&&(l.c=U,U=[]),w&&!1!==r.cellText&&(l.w=w),j&&(l.t="z",delete l.v),(!j||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=_))for(var X=0;X0)g[_+X][E+D]=Tt(l)}else{g[Da({r:_+X,c:E})]=l;while(--D>0)g[Da({r:_+X,c:E+D})]=Tt(l)}S.e.c<=E&&(S.e.c=E)}D=parseInt(v["number-columns-repeated"]||"1",10),E+=D-1,D=0,l={},w="",T=[]}L={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===o[1]){if((a=u.pop())[0]!==o[3])throw"Bad state: "+a}else"/"!==o[0].charAt(o[0].length-2)&&u.push([o[3],!0]);break;case"annotation":if("/"===o[1]){if((a=u.pop())[0]!==o[3])throw"Bad state: "+a;z.t=w,T.length&&(z.R=T),z.a=W,U.push(z)}else"/"!==o[0].charAt(o[0].length-2)&&u.push([o[3],!1]);W="",H=0,w="",k=0,T=[];break;case"creator":"/"===o[1]?W=f.slice(H,o.index):H=o.index+o[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===o[1]){if((a=u.pop())[0]!==o[3])throw"Bad state: "+a}else"/"!==o[0].charAt(o[0].length-2)&&u.push([o[3],!1]);w="",k=0,T=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===o[1]){if(x[h.name]=d,(a=u.pop())[0]!==o[3])throw"Bad state: "+a}else"/"!==o[0].charAt(o[0].length-2)&&(d="",h=Yt(o[0],!1),u.push([o[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(u[u.length-1][0]){case"time-style":case"date-style":n=Yt(o[0],!1),d+=Kg[o[3]]["long"===n.style?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(u[u.length-1][0]){case"time-style":case"date-style":n=Yt(o[0],!1),d+=Kg[o[3]]["long"===n.style?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if("/>"===o[0].slice(-2))break;if("/"===o[1])switch(u[u.length-1][0]){case"number-style":case"date-style":case"time-style":d+=f.slice(p,o.index);break}else p=o.index+o[0].length;break;case"named-range":n=Yt(o[0],!1),B=Cd(n["cell-range-address"]);var Y={Name:n.name,Ref:B[0]+"!"+B[1]};V&&(Y.Sheet=b.length),M.Names.push(Y);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(u[u.length-1][0])>-1)break;if("/"!==o[1]||v&&v["string-value"])c=Yt(o[0],!1),k=o.index+o[0].length;else{var K=Yg(f.slice(k,o.index),c);w=(w.length>0?w+"\n":"")+K[0]}break;case"s":break;case"database-range":if("/"===o[1])break;try{B=Cd(Yt(o[0])["target-range-address"]),m[B[0]]["!autofilter"]={ref:B[1]}}catch(q){}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if("/"!==o[1]){if(L=Yt(o[0],!1),!L.href)break;L.Target=Jt(L.href),delete L.href,"#"==L.Target.charAt(0)&&L.Target.indexOf(".")>-1?(B=Cd(L.Target.slice(1)),L.Target="#"+B[0]+"!"+B[1]):L.Target.match(/^\.\.[\\\/]/)&&(L.Target=L.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(o[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(o)}}var Z={Sheets:m,SheetNames:b,Workbook:M};return r.bookSheets&&delete Z.Sheets,Z}function qg(e,t){t=t||{},Ot(e,"META-INF/manifest.xml")&&ss(It(e,"META-INF/manifest.xml"),t);var r=Dt(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var a=Zg(dr(r),t);return Ot(e,"meta.xml")&&(a.Props=ds(It(e,"meta.xml"))),a}function Jg(e,t){return Zg(e,t)}var Qg=function(){var e=["",'',"",'',"",'',"",""].join(""),t=""+e+"";return function(){return Wt+t}}(),ev=function(){var e=function(e){return tr(e).replace(/ +/g,(function(e){return''})).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")},t=" \n",r=" \n",a=function(a,n,s){var i=[];i.push(' \n');var o=0,l=0,c=Fa(a["!ref"]||"A1"),f=a["!merges"]||[],u=0,h=Array.isArray(a);if(a["!cols"])for(l=0;l<=c.e.c;++l)i.push(" \n");var d="",p=a["!rows"]||[];for(o=0;o\n");for(;o<=c.e.r;++o){for(d=p[o]?' table:style-name="ro'+p[o].ods+'"':"",i.push(" \n"),l=0;ll)&&!(f[u].s.r>o)&&!(f[u].e.c\n")}return i.push(" \n"),i.join("")},n=function(e,t){e.push(" \n"),e.push(' \n'),e.push(' \n'),e.push(" /\n"),e.push(' \n'),e.push(" /\n"),e.push(" \n"),e.push(" \n");var r=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!cols"])for(var a=0;a\n'),e.push(' \n'),e.push(" \n"),++r}}));var a=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!rows"])for(var r=0;r\n'),e.push(' \n'),e.push(" \n"),++a}})),e.push(' \n'),e.push(' \n'),e.push(" \n"),e.push(' \n'),e.push(" \n")};return function(e,t){var r=[Wt],s=_r({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),i=_r({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==t.bookType?(r.push("\n"),r.push(fs().replace(/office:document-meta/g,"office:meta"))):r.push("\n"),n(r,e),r.push(" \n"),r.push(" \n");for(var o=0;o!=e.SheetNames.length;++o)r.push(a(e.Sheets[e.SheetNames[o]],e,o,t));return r.push(" \n"),r.push(" \n"),"fods"==t.bookType?r.push(""):r.push(""),r.join("")}}();function tv(e,t){if("fods"==t.bookType)return ev(e,t);var r=Bt(),a="",n=[],s=[];return a="mimetype",Lt(r,a,"application/vnd.oasis.opendocument.spreadsheet"),a="content.xml",Lt(r,a,ev(e,t)),n.push([a,"text/xml"]),s.push([a,"ContentFile"]),a="styles.xml",Lt(r,a,Qg(e,t)),n.push([a,"text/xml"]),s.push([a,"StylesFile"]),a="meta.xml",Lt(r,a,Wt+fs()),n.push([a,"text/xml"]),s.push([a,"MetadataFile"]),a="manifest.rdf",Lt(r,a,cs(s)),n.push([a,"application/rdf+xml"]),a="META-INF/manifest.xml",Lt(r,a,is(n)),r} /*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function rv(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function av(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):dr(O(e))}function nv(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):R(pr(e))}function sv(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var a=0;a>1&1431655765,e=(858993459&e)+(e>>2&858993459),16843009*(e+(e>>4)&252645135)>>>24}function lv(e,t){for(var r=(127&e[t+15])<<7|e[t+14]>>1,a=1&e[t+14],n=t+13;n>=t;--n)a=256*a+e[n];return(128&e[t+15]?-a:a)*Math.pow(10,r-6176)}function cv(e,t,r){var a=Math.floor(0==r?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,n=r/Math.pow(10,a-6176);e[t+15]|=a>>7,e[t+14]|=(127&a)<<1;for(var s=0;n>=1;++s,n/=256)e[t+s]=255&n;e[t+15]|=r>=0?0:128}function fv(e,t){var r=t?t[0]:0,a=127&e[r];e:if(e[r++]>=128){if(a|=(127&e[r])<<7,e[r++]<128)break e;if(a|=(127&e[r])<<14,e[r++]<128)break e;if(a|=(127&e[r])<<21,e[r++]<128)break e;if(a+=(127&e[r])*Math.pow(2,28),++r,e[r++]<128)break e;if(a+=(127&e[r])*Math.pow(2,35),++r,e[r++]<128)break e;if(a+=(127&e[r])*Math.pow(2,42),++r,e[r++]<128)break e}return t&&(t[0]=r),a}function uv(e){var t=new Uint8Array(7);t[0]=127&e;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383)break e;if(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)break e;if(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)break e;if(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)break e;if(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103)break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function hv(e){var t=0,r=127&e[t];e:if(e[t++]>=128){if(r|=(127&e[t])<<7,e[t++]<128)break e;if(r|=(127&e[t])<<14,e[t++]<128)break e;if(r|=(127&e[t])<<21,e[t++]<128)break e;r|=(127&e[t])<<28}return r}function dv(e){var t=[],r=[0];while(r[0]=128);i=e.slice(l,r[0]);break;case 5:o=4,i=e.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,i=e.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=fv(e,r),i=e.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(s," for Field ").concat(n," at offset ").concat(a))}var c={data:i,type:s};null==t[n]?t[n]=[c]:t[n].push(c)}return t}function pv(e){var t=[];return e.forEach((function(e,r){e.forEach((function(e){e.data&&(t.push(uv(8*r+e.type)),2==e.type&&t.push(uv(e.data.length)),t.push(e.data))}))})),iv(t)}function mv(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function bv(e){var t,r=[],a=[0];while(a[0]>>0>0),r.push(i)}return r}function gv(e){var t=[];return e.forEach((function(e){var r=[];r[1]=[{data:uv(e.id),type:0}],r[2]=[],null!=e.merge&&(r[3]=[{data:uv(+!!e.merge),type:0}]);var a=[];e.messages.forEach((function(e){a.push(e.data),e.meta[3]=[{type:0,data:uv(e.data.length)}],r[2].push({data:pv(e.meta),type:2})}));var n=pv(r);t.push(uv(n.length)),t.push(n),a.forEach((function(e){return t.push(e)}))})),iv(t)}function vv(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));var r=[0],a=fv(t,r),n=[];while(r[0]>2&7),i=(224&t[r[0]++])<<3,i|=t[r[0]++]):(o=1+(t[r[0]++]>>2),2==s?(i=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(i=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),n=[iv(n)],0==i)throw new Error("Invalid offset 0");if(i>n[0].length)throw new Error("Invalid offset beyond length");if(o>=i){n.push(n[0].slice(-i)),o-=i;while(o>=n[n.length-1].length)n.push(n[n.length-1]),o-=n[n.length-1].length}n.push(n[0].slice(-i,-i+o))}else{var l=t[r[0]++]>>2;if(l<60)++l;else{var c=l-59;l=t[r[0]],c>1&&(l|=t[r[0]+1]<<8),c>2&&(l|=t[r[0]+2]<<16),c>3&&(l|=t[r[0]+3]<<24),l>>>=0,l++,r[0]+=c}n.push(t.slice(r[0],r[0]+l)),r[0]+=l}}var f=iv(n);if(f.length!=a)throw new Error("Unexpected length: ".concat(f.length," != ").concat(a));return f}function wv(e){var t=[],r=0;while(r>8&255]))):a<=16777216?(i+=4,t.push(new Uint8Array([248,a-1&255,a-1>>8&255,a-1>>16&255]))):a<=4294967296&&(i+=5,t.push(new Uint8Array([252,a-1&255,a-1>>8&255,a-1>>16&255,a-1>>>24&255]))),t.push(e.slice(r,r+a)),i+=a,n[0]=0,n[1]=255&i,n[2]=i>>8&255,n[3]=i>>16&255,r+=a}return iv(t)}function kv(e,t,r,a){var n,s=rv(e),i=s.getUint32(4,!0),o=(a>1?12:8)+4*ov(i&(a>1?3470:398)),l=-1,c=-1,f=NaN,u=new Date(2001,0,1);switch(512&i&&(l=s.getUint32(o,!0),o+=4),o+=4*ov(i&(a>1?12288:4096)),16&i&&(c=s.getUint32(o,!0),o+=4),32&i&&(f=s.getFloat64(o,!0),o+=8),64&i&&(u.setTime(u.getTime()+1e3*s.getFloat64(o,!0)),o+=8),e[2]){case 0:break;case 2:n={t:"n",v:f};break;case 3:n={t:"s",v:t[c]};break;case 5:n={t:"d",v:u};break;case 6:n={t:"b",v:f>0};break;case 7:n={t:"n",v:f/86400};break;case 8:n={t:"e",v:0};break;case 9:if(l>-1)n={t:"s",v:r[l]};else if(c>-1)n={t:"s",v:t[c]};else{if(isNaN(f))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));n={t:"n",v:f}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return n}function Tv(e,t,r){var a,n=rv(e),s=n.getUint32(8,!0),i=12,o=-1,l=-1,c=NaN,f=NaN,u=new Date(2001,0,1);switch(1&s&&(c=lv(e,i),i+=16),2&s&&(f=n.getFloat64(i,!0),i+=8),4&s&&(u.setTime(u.getTime()+1e3*n.getFloat64(i,!0)),i+=8),8&s&&(l=n.getUint32(i,!0),i+=4),16&s&&(o=n.getUint32(i,!0),i+=4),e[1]){case 0:break;case 2:a={t:"n",v:c};break;case 3:a={t:"s",v:t[l]};break;case 5:a={t:"d",v:u};break;case 6:a={t:"b",v:f>0};break;case 7:a={t:"n",v:f/86400};break;case 8:a={t:"e",v:0};break;case 9:if(!(o>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&s," : ").concat(e.slice(0,4)));a={t:"s",v:r[o]};break;case 10:a={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&s," : ").concat(e.slice(0,4)))}return a}function _v(e,t){var r=new Uint8Array(32),a=rv(r),n=12,s=0;switch(r[0]=5,e.t){case"n":r[1]=2,cv(r,n,e.v),s|=1,n+=16;break;case"b":r[1]=6,a.setFloat64(n,e.v?1:0,!0),s|=2,n+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,a.setUint32(n,t.indexOf(e.v),!0),s|=8,n+=4;break;default:throw"unsupported cell type "+e.t}return a.setUint32(8,s,!0),r.slice(0,n)}function Ev(e,t){var r=new Uint8Array(32),a=rv(r),n=12,s=0;switch(r[0]=3,e.t){case"n":r[2]=2,a.setFloat64(n,e.v,!0),s|=32,n+=8;break;case"b":r[2]=6,a.setFloat64(n,e.v?1:0,!0),s|=32,n+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,a.setUint32(n,t.indexOf(e.v),!0),s|=16,n+=4;break;default:throw"unsupported cell type "+e.t}return a.setUint32(4,s,!0),r.slice(0,n)}function Sv(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return kv(e,t,r,e[0]);case 5:return Tv(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Av(e){var t=dv(e);return fv(t[1][0].data)}function xv(e,t){var r=dv(t.data),a=hv(r[1][0].data),n=r[3],s=[];return(n||[]).forEach((function(t){var r=dv(t.data),n=hv(r[1][0].data)>>>0;switch(a){case 1:s[n]=av(r[3][0].data);break;case 8:var i=e[Av(r[9][0].data)][0],o=dv(i.data),l=e[Av(o[1][0].data)][0],c=hv(l.meta[1][0].data);if(2001!=c)throw new Error("2000 unexpected reference to ".concat(c));var f=dv(l.data);s[n]=f[3].map((function(e){return av(e.data)})).join("");break}})),s}function Cv(e,t){var r,a,n,s,i,o,l,c,f,u,h,d,p,m,b,g,v=dv(e),w=hv(v[1][0].data)>>>0,y=hv(v[2][0].data)>>>0,k=(null==(a=null==(r=v[8])?void 0:r[0])?void 0:a.data)&&hv(v[8][0].data)>0||!1;if((null==(s=null==(n=v[7])?void 0:n[0])?void 0:s.data)&&0!=t)b=null==(o=null==(i=v[7])?void 0:i[0])?void 0:o.data,g=null==(c=null==(l=v[6])?void 0:l[0])?void 0:c.data;else{if(!(null==(u=null==(f=v[4])?void 0:f[0])?void 0:u.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");b=null==(d=null==(h=v[4])?void 0:h[0])?void 0:d.data,g=null==(m=null==(p=v[3])?void 0:p[0])?void 0:m.data}for(var T=k?4:1,_=rv(b),E=[],S=0;S=1&&(x[E[E.length-1][0]]=g.subarray(E[E.length-1][1]*T)),{R:w,cells:x}}function Rv(e,t){var r,a=dv(t.data),n=(null==(r=null==a?void 0:a[7])?void 0:r[0])?hv(a[7][0].data)>>>0>0?1:0:-1,s=mv(a[5],(function(e){return Cv(e,n)}));return{nrows:hv(a[4][0].data)>>>0,data:s.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(r,a){if(e[t.R][a])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(a));e[t.R][a]=r})),e}),[])}}function Pv(e,t,r){var a,n=dv(t.data),s={s:{r:0,c:0},e:{r:0,c:0}};if(s.e.r=(hv(n[6][0].data)>>>0)-1,s.e.r<0)throw new Error("Invalid row varint ".concat(n[6][0].data));if(s.e.c=(hv(n[7][0].data)>>>0)-1,s.e.c<0)throw new Error("Invalid col varint ".concat(n[7][0].data));r["!ref"]=Ma(s);var i=dv(n[4][0].data),o=xv(e,e[Av(i[4][0].data)][0]),l=(null==(a=i[17])?void 0:a[0])?xv(e,e[Av(i[17][0].data)][0]):[],c=dv(i[3][0].data),f=0;c[1].forEach((function(t){var a=dv(t.data),n=e[Av(a[2][0].data)][0],s=hv(n.meta[1][0].data);if(6002!=s)throw new Error("6001 unexpected reference to ".concat(s));var i=Rv(e,n);i.data.forEach((function(e,t){e.forEach((function(e,a){var n=Da({r:f+t,c:a}),s=Sv(e,o,l);s&&(r[n]=s)}))})),f+=i.nrows}))}function Ov(e,t){var r=dv(t.data),a={"!ref":"A1"},n=e[Av(r[2][0].data)],s=hv(n[0].meta[1][0].data);if(6001!=s)throw new Error("6000 unexpected reference to ".concat(s));return Pv(e,n[0],a),a}function Nv(e,t){var r,a=dv(t.data),n={name:(null==(r=a[1])?void 0:r[0])?av(a[1][0].data):"",sheets:[]},s=mv(a[2],Av);return s.forEach((function(t){e[t].forEach((function(t){var r=hv(t.meta[1][0].data);6e3==r&&n.sheets.push(Ov(e,t))}))})),n}function Iv(e,t){var r=Pw(),a=dv(t.data),n=mv(a[1],Av);if(n.forEach((function(t){e[t].forEach((function(t){var a=hv(t.meta[1][0].data);if(2==a){var n=Nv(e,t);n.sheets.forEach((function(e,t){Ow(r,e,0==t?n.name:n.name+"_"+t,!0)}))}}))})),0==r.SheetNames.length)throw new Error("Empty NUMBERS file");return r}function Dv(e){var t,r,a,n,s={},i=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var t,r;try{t=wv(e.content)}catch(a){return console.log("?? "+e.content.length+" "+(a.message||a))}try{r=bv(t)}catch(a){return console.log("## "+(a.message||a))}r.forEach((function(e){s[e.id]=e.messages,i.push(e.id)}))}})),!i.length)throw new Error("File has no messages");var o=(null==(n=null==(a=null==(r=null==(t=null==s?void 0:s[1])?void 0:t[0])?void 0:r.meta)?void 0:a[1])?void 0:n[0].data)&&1==hv(s[1][0].meta[1][0].data)&&s[1][0];if(o||i.forEach((function(e){s[e].forEach((function(e){var t=hv(e.meta[1][0].data)>>>0;if(1==t){if(o)throw new Error("Document has multiple roots");o=e}}))})),!o)throw new Error("Cannot find Document root");return Iv(s,o)}function Fv(e,t,r){var a,n,s,i;if(!(null==(a=e[6])?void 0:a[0])||!(null==(n=e[7])?void 0:n[0]))throw"Mutation only works on post-BNC storages!";var o=(null==(i=null==(s=e[8])?void 0:s[0])?void 0:i.data)&&hv(e[8][0].data)>0||!1;if(o)throw"Math only works with normal offsets";for(var l=0,c=rv(e[7][0].data),f=0,u=[],h=rv(e[4][0].data),d=0,p=[],m=0;m1&&console.error("The Numbers writer currently writes only the first table");var a=Fa(r["!ref"]);a.s.r=a.s.c=0;var n=!1;a.e.c>9&&(n=!0,a.e.c=9),a.e.r>49&&(n=!0,a.e.r=49),n&&console.error("The Numbers writer is currently limited to ".concat(Ma(a)));var s=yw(r,{range:a,header:1}),i=["~Sh33tJ5~"];s.forEach((function(e){return e.forEach((function(e){"string"==typeof e&&i.push(e)}))}));var o={},l=[],c=Qe.read(t.numbers,{type:"base64"});c.FileIndex.map((function(e,t){return[e,c.FullPaths[t]]})).forEach((function(e){var t=e[0],r=e[1];if(2==t.type&&t.name.match(/\.iwa/)){var a=t.content,n=wv(a),s=bv(n);s.forEach((function(e){l.push(e.id),o[e.id]={deps:[],location:r,type:hv(e.messages[0].meta[1][0].data)}}))}})),l.sort((function(e,t){return e-t}));var f=l.filter((function(e){return e>1})).map((function(e){return[e,uv(e)]}));c.FileIndex.map((function(e,t){return[e,c.FullPaths[t]]})).forEach((function(e){var t=e[0];e[1];if(t.name.match(/\.iwa/)){var r=bv(wv(t.content));r.forEach((function(e){e.messages.forEach((function(t){f.forEach((function(t){e.messages.some((function(e){return 11006!=hv(e.meta[1][0].data)&&sv(e.data,t[1])}))&&o[t[0]].deps.push(e.id)}))}))}))}}));for(var u,h=Qe.find(c,o[1].location),d=bv(wv(h.content)),p=0;p-1?"sheet":Qn.CS&&e==Qn.CS?"chart":Qn.DS&&e==Qn.DS?"dialog":Qn.MS&&e==Qn.MS?"macro":e&&e.length?e:"sheet"}function Wv(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,zv(e["!id"][t.id].Type)]}))}catch(r){return null}return e&&0!==e.length?e:null}function Hv(e,t,r,a,n,s,i,o,l,c,f,u){try{s[a]=ts(Dt(e,r,!0),t);var h,d=It(e,t);switch(o){case"sheet":h=mb(d,t,n,l,s[a],c,f,u);break;case"chart":if(h=bb(d,t,n,l,s[a],c,f,u),!h||!h["!drawel"])break;var p=zt(h["!drawel"].Target,t),m=es(p),b=nu(Dt(e,p,!0),ts(Dt(e,m,!0),p)),g=zt(b,p),v=es(g);h=Lm(Dt(e,g,!0),g,l,ts(Dt(e,v,!0),g),c,h);break;case"macro":h=gb(d,t,n,l,s[a],c,f,u);break;case"dialog":h=vb(d,t,n,l,s[a],c,f,u);break;default:throw new Error("Unrecognized sheet type "+o)}i[a]=h;var w=[];s&&s[a]&&st(s[a]).forEach((function(r){var n="";if(s[a][r].Type==Qn.CMNT){n=zt(s[a][r].Target,t);var i=Tb(It(e,n,!0),n,l);if(!i||!i.length)return;ou(h,i,!1)}s[a][r].Type==Qn.TCMNT&&(n=zt(s[a][r].Target,t),w=w.concat(fu(It(e,n,!0),l)))})),w&&w.length&&ou(h,w,!0,l.people||[])}catch(y){if(l.WTF)throw y}}function jv(e){return"/"==e.charAt(0)?e.slice(1):e}function Vv(e,t){if($e(),t=t||{},Bv(t),Ot(e,"META-INF/manifest.xml"))return qg(e,t);if(Ot(e,"objectdata.xml"))return qg(e,t);if(Ot(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if("undefined"!=typeof Dv){if(e.FileIndex)return Dv(e);var r=Qe.utils.cfb_new();return Mt(e).forEach((function(t){Lt(r,t,Ft(e,t))})),Dv(r)}throw new Error("Unsupported NUMBERS file")}if(!Ot(e,"[Content_Types].xml")){if(Ot(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(Ot(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var a,n,s=Mt(e),i=qn(Dt(e,"[Content_Types].xml")),o=!1;if(0===i.workbooks.length&&(n="xl/workbook.xml",It(e,n,!0)&&i.workbooks.push(n)),0===i.workbooks.length){if(n="xl/workbook.bin",!It(e,n,!0))throw new Error("Could not find workbook");i.workbooks.push(n),o=!0}"bin"==i.workbooks[0].slice(-3)&&(o=!0);var l={},c={};if(!t.bookSheets&&!t.bookProps){if(Pd=[],i.sst)try{Pd=kb(It(e,jv(i.sst)),i.sst,t)}catch(P){if(t.WTF)throw P}t.cellStyles&&i.themes.length&&(l=yb(Dt(e,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],t)),i.style&&(c=wb(It(e,jv(i.style)),i.style,l,t))}i.links.map((function(r){try{var a=ts(Dt(e,es(jv(r))),r);return Eb(It(e,jv(r)),a,r,t)}catch(P){}}));var f=pb(It(e,jv(i.workbooks[0])),i.workbooks[0],t),u={},h="";i.coreprops.length&&(h=It(e,jv(i.coreprops[0]),!0),h&&(u=ds(h)),0!==i.extprops.length&&(h=It(e,jv(i.extprops[0]),!0),h&&ws(h,u,t)));var d={};t.bookSheets&&!t.bookProps||0!==i.custprops.length&&(h=Dt(e,jv(i.custprops[0]),!0),h&&(d=Ts(h,t)));var p={};if((t.bookSheets||t.bookProps)&&(f.Sheets?a=f.Sheets.map((function(e){return e.name})):u.Worksheets&&u.SheetNames.length>0&&(a=u.SheetNames),t.bookProps&&(p.Props=u,p.Custprops=d),t.bookSheets&&"undefined"!==typeof a&&(p.SheetNames=a),t.bookSheets?p.SheetNames:t.bookProps))return p;a={};var m={};t.bookDeps&&i.calcchain&&(m=_b(It(e,jv(i.calcchain)),i.calcchain,t));var b,g,v=0,w={},y=f.Sheets;u.Worksheets=y.length,u.SheetNames=[];for(var k=0;k!=y.length;++k)u.SheetNames[k]=y[k].name;var T=o?"bin":"xml",_=i.workbooks[0].lastIndexOf("/"),E=(i.workbooks[0].slice(0,_+1)+"_rels/"+i.workbooks[0].slice(_+1)+".rels").replace(/^\//,"");Ot(e,E)||(E="xl/_rels/workbook."+T+".rels");var S=ts(Dt(e,E,!0),E.replace(/_rels.*/,"s5s"));(i.metadata||[]).length>=1&&(t.xlmeta=Sb(It(e,jv(i.metadata[0])),i.metadata[0],t)),(i.people||[]).length>=1&&(t.people=hu(It(e,jv(i.people[0])),t)),S&&(S=Wv(S,f.Sheets));var A=It(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(v=0;v!=u.Worksheets;++v){var x="sheet";if(S&&S[v]?(b="xl/"+S[v][1].replace(/[\/]?xl\//,""),Ot(e,b)||(b=S[v][1]),Ot(e,b)||(b=E.replace(/_rels\/.*$/,"")+S[v][1]),x=S[v][2]):(b="xl/worksheets/sheet"+(v+1-A)+"."+T,b=b.replace(/sheet0\./,"sheet.")),g=b.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(v!=t.sheets)continue e;break;case"string":if(u.SheetNames[v].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var C=!1,R=0;R!=t.sheets.length;++R)"number"==typeof t.sheets[R]&&t.sheets[R]==v&&(C=1),"string"==typeof t.sheets[R]&&t.sheets[R].toLowerCase()==u.SheetNames[v].toLowerCase()&&(C=1);if(!C)continue e}}Hv(e,b,g,u.SheetNames[v],v,w,a,x,t,f,l,c)}return p={Directory:i,Workbook:f,Props:u,Custprops:d,Deps:m,Sheets:a,SheetNames:u.SheetNames,Strings:Pd,Styles:c,Themes:l,SSF:Tt(q)},t&&t.bookFiles&&(e.files?(p.keys=s,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach((function(t,r){t=t.replace(/^Root Entry[\/]/,""),p.keys.push(t),p.files[t]=e.FileIndex[r]})))),t&&t.bookVBA&&(i.vba.length>0?p.vbaraw=It(e,jv(i.vba[0]),!0):i.defaults&&i.defaults.bin===yu&&(p.vbaraw=It(e,"xl/vbaProject.bin",!0))),p}function Gv(e,t){var r=t||{},a="Workbook",n=Qe.find(e,a);try{if(a="/!DataSpaces/Version",n=Qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(Zl(n.content),a="/!DataSpaces/DataSpaceMap",n=Qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=Jl(n.content);if(1!==s.length||1!==s[0].comps.length||0!==s[0].comps[0].t||"StrongEncryptionDataSpace"!==s[0].name||"EncryptedPackage"!==s[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",n=Qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=Ql(n.content);if(1!=i.length||"StrongEncryptionTransform"!=i[0])throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",n=Qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);tc(n.content)}catch(l){}if(a="/EncryptionInfo",n=Qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var o=nc(n.content);if(a="/EncryptedPackage",n=Qe.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(4==o[0]&&"undefined"!==typeof decrypt_agile)return decrypt_agile(o[1],n.content,r.password||"",r);if(2==o[0]&&"undefined"!==typeof decrypt_std76)return decrypt_std76(o[1],n.content,r.password||"",r);throw new Error("File is password-protected")}function $v(e,t){return"ods"==t.bookType?tv(e,t):"numbers"==t.bookType?Mv(e,t):"xlsb"==t.bookType?Xv(e,t):Yv(e,t)}function Xv(e,t){su=1024,e&&!e.SSF&&(e.SSF=Tt(q)),e&&e.SSF&&($e(),Ge(e.SSF),t.revssf=lt(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Nd?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xlsb"==t.bookType?"bin":"xml",a=_u.indexOf(t.bookType)>-1,n=Zn();Uv(t=t||{});var s=Bt(),i="",o=0;if(t.cellXfs=[],Md(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),i="docProps/core.xml",Lt(s,i,ms(e.Props,t)),n.coreprops.push(i),as(t.rels,2,i,Qn.CORE_PROPS),i="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],c=0;c0&&(i="docProps/custom.xml",Lt(s,i,_s(e.Custprops,t)),n.custprops.push(i),as(t.rels,4,i,Qn.CUST_PROPS)),o=1;o<=e.SheetNames.length;++o){var f={"!id":{}},u=e.Sheets[e.SheetNames[o-1]],h=(u||{})["!type"]||"sheet";switch(h){case"chart":default:i="xl/worksheets/sheet"+o+"."+r,Lt(s,i,xb(o-1,i,t,e,f)),n.sheets.push(i),as(t.wbrels,-1,"worksheets/sheet"+o+"."+r,Qn.WS[0])}if(u){var d=u["!comments"],p=!1,m="";d&&d.length>0&&(m="xl/comments"+o+"."+r,Lt(s,m,Pb(d,m,t)),n.comments.push(m),as(f,-1,"../comments"+o+"."+r,Qn.CMNT),p=!0),u["!legacy"]&&p&&Lt(s,"xl/drawings/vmlDrawing"+o+".vml",iu(o,u["!comments"])),delete u["!comments"],delete u["!legacy"]}f["!id"].rId1&&Lt(s,es(i),rs(f))}return null!=t.Strings&&t.Strings.length>0&&(i="xl/sharedStrings."+r,Lt(s,i,Rb(t.Strings,i,t)),n.strs.push(i),as(t.wbrels,-1,"sharedStrings."+r,Qn.SST)),i="xl/workbook."+r,Lt(s,i,Ab(e,i,t)),n.workbooks.push(i),as(t.rels,1,i,Qn.WB),i="xl/theme/theme1.xml",Lt(s,i,If(e.Themes,t)),n.themes.push(i),as(t.wbrels,-1,"theme/theme1.xml",Qn.THEME),i="xl/styles."+r,Lt(s,i,Cb(e,i,t)),n.styles.push(i),as(t.wbrels,-1,"styles."+r,Qn.STY),e.vbaraw&&a&&(i="xl/vbaProject.bin",Lt(s,i,e.vbaraw),n.vba.push(i),as(t.wbrels,-1,"vbaProject.bin",Qn.VBA)),i="xl/metadata."+r,Lt(s,i,Ob(i)),n.metadata.push(i),as(t.wbrels,-1,"metadata."+r,Qn.XLMETA),Lt(s,"[Content_Types].xml",Jn(n,t)),Lt(s,"_rels/.rels",rs(t.rels)),Lt(s,"xl/_rels/workbook."+r+".rels",rs(t.wbrels)),delete t.revssf,delete t.ssf,s}function Yv(e,t){su=1024,e&&!e.SSF&&(e.SSF=Tt(q)),e&&e.SSF&&($e(),Ge(e.SSF),t.revssf=lt(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Nd?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",a=_u.indexOf(t.bookType)>-1,n=Zn();Uv(t=t||{});var s=Bt(),i="",o=0;if(t.cellXfs=[],Md(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),i="docProps/core.xml",Lt(s,i,ms(e.Props,t)),n.coreprops.push(i),as(t.rels,2,i,Qn.CORE_PROPS),i="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],c=0;c0&&(i="docProps/custom.xml",Lt(s,i,_s(e.Custprops,t)),n.custprops.push(i),as(t.rels,4,i,Qn.CUST_PROPS));var f=["SheetJ5"];for(t.tcid=0,o=1;o<=e.SheetNames.length;++o){var u={"!id":{}},h=e.Sheets[e.SheetNames[o-1]],d=(h||{})["!type"]||"sheet";switch(d){case"chart":default:i="xl/worksheets/sheet"+o+"."+r,Lt(s,i,gp(o-1,t,e,u)),n.sheets.push(i),as(t.wbrels,-1,"worksheets/sheet"+o+"."+r,Qn.WS[0])}if(h){var p=h["!comments"],m=!1,b="";if(p&&p.length>0){var g=!1;p.forEach((function(e){e[1].forEach((function(e){1==e.T&&(g=!0)}))})),g&&(b="xl/threadedComments/threadedComment"+o+"."+r,Lt(s,b,uu(p,f,t)),n.threadedcomments.push(b),as(u,-1,"../threadedComments/threadedComment"+o+"."+r,Qn.TCMNT)),b="xl/comments"+o+"."+r,Lt(s,b,cu(p,t)),n.comments.push(b),as(u,-1,"../comments"+o+"."+r,Qn.CMNT),m=!0}h["!legacy"]&&m&&Lt(s,"xl/drawings/vmlDrawing"+o+".vml",iu(o,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&Lt(s,es(i),rs(u))}return null!=t.Strings&&t.Strings.length>0&&(i="xl/sharedStrings."+r,Lt(s,i,Hl(t.Strings,t)),n.strs.push(i),as(t.wbrels,-1,"sharedStrings."+r,Qn.SST)),i="xl/workbook."+r,Lt(s,i,tb(e,t)),n.workbooks.push(i),as(t.rels,1,i,Qn.WB),i="xl/theme/theme1.xml",Lt(s,i,If(e.Themes,t)),n.themes.push(i),as(t.wbrels,-1,"theme/theme1.xml",Qn.THEME),i="xl/styles."+r,Lt(s,i,Yc(e,t)),n.styles.push(i),as(t.wbrels,-1,"styles."+r,Qn.STY),e.vbaraw&&a&&(i="xl/vbaProject.bin",Lt(s,i,e.vbaraw),n.vba.push(i),as(t.wbrels,-1,"vbaProject.bin",Qn.VBA)),i="xl/metadata."+r,Lt(s,i,Jf()),n.metadata.push(i),as(t.wbrels,-1,"metadata."+r,Qn.XLMETA),f.length>1&&(i="xl/persons/person.xml",Lt(s,i,du(f,t)),n.people.push(i),as(t.wbrels,-1,"persons/person.xml",Qn.PEOPLE)),Lt(s,"[Content_Types].xml",Jn(n,t)),Lt(s,"_rels/.rels",rs(t.rels)),Lt(s,"xl/_rels/workbook."+r+".rels",rs(t.wbrels)),delete t.revssf,delete t.ssf,s}function Kv(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=E(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function Zv(e,t){return Qe.find(e,"EncryptedPackage")?Gv(e,t):dg(e,t)}function qv(e,t){var r,a=e,n=t||{};return n.type||(n.type=S&&Buffer.isBuffer(e)?"buffer":"base64"),r=Ut(a,n),Vv(r,n)}function Jv(e,t){var r=0;e:while(r=2&&0===n[3])return Rl.to_workbook(a,r);if(0===n[2]&&(8===n[3]||9===n[3]))return Rl.to_workbook(a,r)}break;case 3:case 131:case 139:case 140:return _l.to_workbook(a,r);case 123:if(92===n[1]&&114===n[2]&&116===n[3])return gc.to_workbook(a,r);break;case 10:case 13:case 32:return Qv(a,r);case 137:if(80===n[1]&&78===n[2]&&71===n[3])throw new Error("PNG Image File is not a spreadsheet");break}return Tl.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?_l.to_workbook(a,r):rw(e,a,r,s)}function nw(e,t){var r=t||{};return r.type="file",aw(e,r)}function sw(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return at(t.file,Qe.write(e,{type:S?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Qe.write(e,t)}function iw(e,t){var r=Tt(t||{}),a=$v(e,r);return lw(a,r)}function ow(e,t){var r=Tt(t||{}),a=Yv(e,r);return lw(a,r)}function lw(e,t){var r={},a=S?"nodebuffer":"undefined"!==typeof Uint8Array?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=a;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=a;break;default:throw new Error("Unrecognized type "+t.type)}var n=e.FullPaths?Qe.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if("undefined"!==typeof Deno&&"string"==typeof n){if("binary"==t.type||"base64"==t.type)return n;n=new Uint8Array(P(n))}return t.password&&"undefined"!==typeof encrypt_agile?sw(encrypt_agile(n,t.password),t):"file"===t.type?at(t.file,n):"string"==t.type?dr(n):n}function cw(e,t){var r=t||{},a=pg(e,r);return sw(a,r)}function fw(e,t,r){r||(r="");var a=r+e;switch(t.type){case"base64":return _(pr(a));case"binary":return pr(a);case"string":return e;case"file":return at(t.file,a,"utf8");case"buffer":return S?A(a,"utf8"):"undefined"!==typeof TextEncoder?(new TextEncoder).encode(a):fw(a,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function uw(e,t){switch(t.type){case"base64":return _(e);case"binary":return e;case"string":return e;case"file":return at(t.file,e,"binary");case"buffer":return S?A(e,"binary"):e.split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function hw(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",a=0;a0&&(n=0);var u=Sa(l.s.r),h=[],d=[],p=0,m=0,b=Array.isArray(e),g=l.s.r,v=0,w={};b&&!e[g]&&(e[g]=[]);var y=c.skipHidden&&e["!cols"]||[],k=c.skipHidden&&e["!rows"]||[];for(v=l.s.c;v<=l.e.c;++v)if(!(y[v]||{}).hidden)switch(h[v]=Ra(v),r=b?e[g][v]:e[h[v]+u],a){case 1:s[v]=v-l.s.c;break;case 2:s[v]=h[v];break;case 3:s[v]=c.header[v-l.s.c];break;default:if(null==r&&(r={w:"__EMPTY",t:"s"}),o=i=Ua(r,null,c),m=w[i]||0,m){do{o=i+"_"+m++}while(w[o]);w[i]=m,w[o]=1}else w[i]=1;s[v]=o}for(g=l.s.r+n;g<=l.e.r;++g)if(!(k[g]||{}).hidden){var T=ww(e,l,g,h,a,s,b,c);(!1===T.isempty||(1===a?!1!==c.blankrows:c.blankrows))&&(d[p++]=T.row)}return d.length=p,d}var kw=/"/g;function Tw(e,t,r,a,n,s,i,o){for(var l=!0,c=[],f="",u=Sa(r),h=t.s.c;h<=t.e.c;++h)if(a[h]){var d=o.dense?(e[r]||[])[h]:e[a[h]+u];if(null==d)f="";else if(null!=d.v){l=!1,f=""+(o.rawNumbers&&"n"==d.t?d.v:Ua(d,null,o));for(var p=0,m=0;p!==f.length;++p)if((m=f.charCodeAt(p))===n||m===s||34===m||o.forceQuotes){f='"'+f.replace(kw,'""')+'"';break}"ID"==f&&(f='"ID"')}else null==d.f||d.F?f="":(l=!1,f="="+d.f,f.indexOf(",")>=0&&(f='"'+f.replace(kw,'""')+'"'));c.push(f)}return!1===o.blankrows&&l?null:c.join(i)}function _w(e,t){var r=[],a=null==t?{}:t;if(null==e||null==e["!ref"])return"";var n=La(e["!ref"]),s=void 0!==a.FS?a.FS:",",i=s.charCodeAt(0),o=void 0!==a.RS?a.RS:"\n",l=o.charCodeAt(0),c=new RegExp(("|"==s?"\\|":s)+"+$"),f="",u=[];a.dense=Array.isArray(e);for(var h=a.skipHidden&&e["!cols"]||[],d=a.skipHidden&&e["!rows"]||[],p=n.s.c;p<=n.e.c;++p)(h[p]||{}).hidden||(u[p]=Ra(p));for(var m=0,b=n.s.r;b<=n.e.r;++b)(d[b]||{}).hidden||(f=Tw(e,n,b,u,i,l,s,a),null!=f&&(a.strip&&(f=f.replace(c,"")),(f||!1!==a.blankrows)&&r.push((m++?o:"")+f)));return delete a.dense,r.join("")}function Ew(e,t){t||(t={}),t.FS="\t",t.RS="\n";var r=_w(e,t);if("undefined"==typeof m||"string"==t.type)return r;var a=m.utils.encode(1200,r,"str");return String.fromCharCode(255)+String.fromCharCode(254)+a}function Sw(e){var t,r="",a="";if(null==e||null==e["!ref"])return[];var n,s=La(e["!ref"]),i="",o=[],l=[],c=Array.isArray(e);for(n=s.s.c;n<=s.e.c;++n)o[n]=Ra(n);for(var f=s.s.r;f<=s.e.r;++f)for(i=Sa(f),n=s.s.c;n<=s.e.c;++n)if(r=o[n]+i,t=c?(e[f]||[])[n]:e[r],a="",void 0!==t){if(null!=t.F){if(r=t.F,!t.f)continue;a=t.f,-1==r.indexOf(":")&&(r=r+":"+r)}if(null!=t.f)a=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)a=""+t.v;else if("b"==t.t)a=t.v?"TRUE":"FALSE";else if(void 0!==t.w)a="'"+t.w;else{if(void 0===t.v)continue;a="s"==t.t?"'"+t.v:""+t.v}}l[l.length]=r+"="+a}return l}function Aw(e,t,r){var a,n=r||{},s=+!n.skipHeader,i=e||{},o=0,l=0;if(i&&null!=n.origin)if("number"==typeof n.origin)o=n.origin;else{var c="string"==typeof n.origin?Ia(n.origin):n.origin;o=c.r,l=c.c}var f={s:{c:0,r:0},e:{c:l,r:o+t.length-1+s}};if(i["!ref"]){var u=La(i["!ref"]);f.e.c=Math.max(f.e.c,u.e.c),f.e.r=Math.max(f.e.r,u.e.r),-1==o&&(o=u.e.r+1,f.e.r=o+t.length-1+s)}else-1==o&&(o=0,f.e.r=t.length-1+s);var h=n.header||[],d=0;t.forEach((function(e,t){st(e).forEach((function(r){-1==(d=h.indexOf(r))&&(h[d=h.length]=r);var c=e[r],f="z",u="",p=Da({c:l+d,r:o+t+s});a=Cw(i,p),!c||"object"!==typeof c||c instanceof Date?("number"==typeof c?f="n":"boolean"==typeof c?f="b":"string"==typeof c?f="s":c instanceof Date?(f="d",n.cellDates||(f="n",c=ut(c)),u=n.dateNF||q[14]):null===c&&n.nullError&&(f="e",c=0),a?(a.t=f,a.v=c,delete a.w,delete a.R,u&&(a.z=u)):i[p]=a={t:f,v:c},u&&(a.z=u)):i[p]=c}))})),f.e.c=Math.max(f.e.c,l+h.length-1);var p=Sa(o);if(s)for(d=0;d=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}function Pw(){return{SheetNames:[],Sheets:{}}}function Ow(e,t,r,a){var n=1;if(!r)for(;n<=65535;++n,r=void 0)if(-1==e.SheetNames.indexOf(r="Sheet"+n))break;if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(a&&e.SheetNames.indexOf(r)>=0){var s=r.match(/(^.*?)(\d+)$/);n=s&&+s[2]||0;var i=s&&s[1]||r;for(++n;n<=65535;++n)if(-1==e.SheetNames.indexOf(r=i+n))break}if(Zm(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function Nw(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var a=Rw(e,t);switch(e.Workbook.Sheets[a]||(e.Workbook.Sheets[a]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[a].Hidden=r}function Iw(e,t){return e.z=t,e}function Dw(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function Fw(e,t,r){return Dw(e,"#"+t,r)}function Mw(e,t,r){e.c||(e.c=[]),e.c.push({t:t,a:r||"SheetJS"})}function Lw(e,t,r,a){for(var n="string"!=typeof t?t:La(t),s="string"==typeof t?t:Ma(t),i=n.s.r;i<=n.e.r;++i)for(var o=n.s.c;o<=n.e.c;++o){var l=Cw(e,i,o);l.t="n",l.F=s,delete l.v,i==n.s.r&&o==n.s.c&&(l.f=r,a&&(l.D=!0))}return e}var Bw,Uw={encode_col:Ra,encode_row:Sa,encode_cell:Da,encode_range:Ma,decode_col:Ca,decode_row:Ea,split_cell:Na,decode_cell:Ia,decode_range:Fa,format_cell:Ua,sheet_add_aoa:Wa,sheet_add_json:Aw,sheet_add_dom:jg,aoa_to_sheet:Ha,json_to_sheet:xw,table_to_sheet:Vg,table_to_book:Gg,sheet_to_csv:_w,sheet_to_txt:Ew,sheet_to_json:yw,sheet_to_html:Hg,sheet_to_formulae:Sw,sheet_to_row_object_array:yw,sheet_get_cell:Cw,book_new:Pw,book_append_sheet:Ow,book_set_sheet_visibility:Nw,cell_set_number_format:Iw,cell_set_hyperlink:Dw,cell_set_internal_link:Fw,cell_add_comment:Mw,sheet_set_array_formula:Lw,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function zw(e){Bw=e}function Ww(e,t){var r=Bw(),a=null==t?{}:t;if(null==e||null==e["!ref"])return r.push(null),r;var n=La(e["!ref"]),s=void 0!==a.FS?a.FS:",",i=s.charCodeAt(0),o=void 0!==a.RS?a.RS:"\n",l=o.charCodeAt(0),c=new RegExp(("|"==s?"\\|":s)+"+$"),f="",u=[];a.dense=Array.isArray(e);for(var h=a.skipHidden&&e["!cols"]||[],d=a.skipHidden&&e["!rows"]||[],p=n.s.c;p<=n.e.c;++p)(h[p]||{}).hidden||(u[p]=Ra(p));var m=n.s.r,b=!1,g=0;return r._read=function(){if(!b)return b=!0,r.push("\ufeff");while(m<=n.e.r)if(++m,!(d[m-1]||{}).hidden&&(f=Tw(e,n,m-1,u,i,l,s,a),null!=f&&(a.strip&&(f=f.replace(c,"")),f||!1!==a.blankrows)))return r.push((g++?o:"")+f);return r.push(null)},r}function Hw(e,t){var r=Bw(),a=t||{},n=null!=a.header?a.header:Bg,s=null!=a.footer?a.footer:Ug;r.push(n);var i=Fa(e["!ref"]);a.dense=Array.isArray(e),r.push(Wg(e,i,a));var o=i.s.r,l=!1;return r._read=function(){if(o>i.e.r)return l||(l=!0,r.push(""+s)),r.push(null);while(o<=i.e.r){r.push(Lg(e,i,o,a)),++o;break}},r}function jw(e,t){var r=Bw({objectMode:!0});if(null==e||null==e["!ref"])return r.push(null),r;var a={t:"n",v:0},n=0,s=1,i=[],o=0,l="",c={s:{r:0,c:0},e:{r:0,c:0}},f=t||{},u=null!=f.range?f.range:e["!ref"];switch(1===f.header?n=1:"A"===f.header?n=2:Array.isArray(f.header)&&(n=3),typeof u){case"string":c=La(u);break;case"number":c=La(e["!ref"]),c.s.r=u;break;default:c=u}n>0&&(s=0);var h=Sa(c.s.r),d=[],p=0,m=Array.isArray(e),b=c.s.r,g=0,v={};m&&!e[b]&&(e[b]=[]);var w=f.skipHidden&&e["!cols"]||[],y=f.skipHidden&&e["!rows"]||[];for(g=c.s.c;g<=c.e.c;++g)if(!(w[g]||{}).hidden)switch(d[g]=Ra(g),a=m?e[b][g]:e[d[g]+h],n){case 1:i[g]=g-c.s.c;break;case 2:i[g]=d[g];break;case 3:i[g]=f.header[g-c.s.c];break;default:if(null==a&&(a={w:"__EMPTY",t:"s"}),l=o=Ua(a,null,f),p=v[o]||0,p){do{l=o+"_"+p++}while(v[l]);v[o]=p,v[l]=1}else v[o]=1;i[g]=l}return b=c.s.r+s,r._read=function(){while(b<=c.e.r)if(!(y[b-1]||{}).hidden){var t=ww(e,c,b,d,n,i,m,f);if(++b,!1===t.isempty||(1===n?!1!==f.blankrows:f.blankrows))return void r.push(t.row)}return r.push(null)},r}var Vw={to_json:jw,to_html:Hw,to_csv:Ww,set_readable:zw};const Gw=a.version},2954:function(e,t,r){"use strict";var a=r("ebb5"),n=r("b6b7"),s=r("d039"),i=r("f36a"),o=a.aTypedArray,l=a.exportTypedArrayMethod,c=s((function(){new Int8Array(1).slice()}));l("slice",(function(e,t){var r=i(o(this),e,t),a=n(this),s=0,l=r.length,c=new a(l);while(l>s)c[s]=r[s++];return c}),c)},"2b3d":function(e,t,r){r("4002")},3280:function(e,t,r){"use strict";var a=r("ebb5"),n=r("2ba4"),s=r("e58c"),i=a.aTypedArray,o=a.exportTypedArrayMethod;o("lastIndexOf",(function(e){var t=arguments.length;return n(s,i(this),t>1?[e,arguments[1]]:[e])}))},"376d":function(e,t,r){!function(t,a){e.exports=a(r("c4e3"))}(globalThis,e=>(()=>{"use strict";var t={438:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var a=r(537),n=r.n(a),s=r(645),i=r.n(s),o=r(806),l=r.n(o),c=new URL(r(583),r.b),f=i()(n()),u=l()(c);f.push([e.id,`@namespace "http://www.w3.org/1998/Math/MathML";math{display:inline-block;line-height:initial}mfrac{display:inline-block;vertical-align:-50%;text-align:center}mfrac>:first-child{border-bottom:solid thin currentColor}mfrac>*{display:block}msub>:nth-child(2){font-size:smaller;vertical-align:sub}msup>:nth-child(2){font-size:smaller;vertical-align:super}munder,mover,munderover{display:inline-flex;flex-flow:column nowrap;vertical-align:middle;text-align:center}munder>:not(:first-child),mover>:not(:first-child),munderover>:not(:first-child){font-size:smaller}munderover>:last-child{order:-1}mroot,msqrt{position:relative;display:inline-block;border-top:solid thin currentColor;margin-top:.5px;vertical-align:middle;margin-left:1ch}mroot:before,msqrt:before{content:"";display:inline-block;position:absolute;width:1ch;left:-1ch;top:-1px;bottom:0;background-image:url(${u})}`,"",{version:3,sources:["webpack://./src/mathml.scss"],names:[],mappings:"AAAA,+CAAA,CAEA,KACI,oBAAA,CACA,mBAAA,CAGJ,MACI,oBAAA,CACA,mBAAA,CACA,iBAAA,CAEA,mBACI,qCAAA,CAGJ,QACI,aAAA,CAKJ,mBACI,iBAAA,CACA,kBAAA,CAKJ,mBACI,iBAAA,CACA,oBAAA,CAIR,wBACI,mBAAA,CACA,uBAAA,CACA,qBAAA,CACA,iBAAA,CAEA,iFACI,iBAAA,CAKJ,uBAAA,QAAA,CAGJ,YACI,iBAAA,CACA,oBAAA,CACA,kCAAA,CACA,eAAA,CACA,qBAAA,CACA,eAAA,CAEA,0BACI,UAAA,CACA,oBAAA,CACA,iBAAA,CACA,SAAA,CACA,SAAA,CACA,QAAA,CACA,QAAA,CACA,wDAAA",sourcesContent:["@namespace \"http://www.w3.org/1998/Math/MathML\";\r\n\r\nmath {\r\n display: inline-block;\r\n line-height: initial;\r\n}\r\n\r\nmfrac {\r\n display: inline-block;\r\n vertical-align: -50%;\r\n text-align: center;\r\n\r\n &>:first-child {\r\n border-bottom: solid thin currentColor;\r\n }\r\n\r\n &>* {\r\n display: block;\r\n }\r\n}\r\n\r\nmsub {\r\n &>:nth-child(2) {\r\n font-size: smaller;\r\n vertical-align: sub;\r\n }\r\n}\r\n\r\nmsup {\r\n &>:nth-child(2) {\r\n font-size: smaller;\r\n vertical-align: super;\r\n }\r\n}\r\n\r\nmunder, mover, munderover {\r\n display: inline-flex;\r\n flex-flow: column nowrap;\r\n vertical-align: middle;\r\n text-align: center;\r\n\r\n &>:not(:first-child) {\r\n font-size: smaller;\r\n }\r\n}\r\n\r\nmunderover {\r\n &>:last-child { order: -1; }\r\n}\r\n\r\nmroot, msqrt {\r\n position: relative;\r\n display: inline-block;\r\n border-top: solid thin currentColor; \r\n margin-top: 0.5px;\r\n vertical-align: middle; \r\n margin-left: 1ch; \r\n\r\n &:before {\r\n content: \"\";\r\n display: inline-block;\r\n position: absolute;\r\n width: 1ch;\r\n left: -1ch;\r\n top: -1px;\r\n bottom: 0;\r\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 100' preserveAspectRatio='none'%3E%3Cpath d='m0,75 l5,0 l5,25 l10,-100' stroke='black' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E\");\r\n }\r\n}"],sourceRoot:""}]);const h=f.toString()},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",a=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),a&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),a&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,a,n,s){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var o=0;o0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),r&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=r):f[2]=r),n&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=n):f[4]="".concat(n)),t.push(f))}},t}},806:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},537:e=>{e.exports=function(e){var t=e[1],r=e[3];if(!r)return t;if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),s="/*# ".concat(n," */");return[t].concat([s]).join("\n")}return[t].join("\n")}},522:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OpenXmlPackage=void 0;const a=r(626),n=r(472),s=r(593),i=r(461);class o{constructor(e,t){this._zip=e,this.options=t,this.xmlParser=new n.XmlParser}get(e){return this._zip.files[function(e){return e.startsWith("/")?e.substr(1):e}(e)]}update(e,t){this._zip.file(e,t)}static async load(e,t){const r=await a.loadAsync(e);return new o(r,t)}save(e="blob"){return this._zip.generateAsync({type:e})}load(e,t="string"){var r,a;return null!==(a=null===(r=this.get(e))||void 0===r?void 0:r.async(t))&&void 0!==a?a:Promise.resolve(null)}async loadRelationships(e=null){let t="_rels/.rels";if(null!=e){const[r,a]=(0,s.splitPath)(e);t=`${r}_rels/${a}.rels`}const r=await this.load(t);return r?(0,i.parseRelationships)(this.parseXmlDocument(r).firstElementChild,this.xmlParser):null}parseXmlDocument(e){return(0,n.parseXmlString)(e,this.options.trimXmlDeclaration)}}t.OpenXmlPackage=o},530:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Part=void 0;const a=r(472);t.Part=class{constructor(e,t){this._package=e,this.path=t}async load(){this.rels=await this._package.loadRelationships(this.path);const e=await this._package.load(this.path),t=this._package.parseXmlDocument(e);this._package.options.keepOrigin&&(this._xmlDocument=t),this.parseXml(t.firstElementChild)}save(){this._package.update(this.path,(0,a.serializeXmlString)(this._xmlDocument))}parseXml(e){}}},461:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelationships=t.RelationshipTypes=void 0,function(e){e.OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",e.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",e.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",e.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",e.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",e.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",e.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",e.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",e.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",e.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",e.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",e.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",e.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",e.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",e.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",e.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",e.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties"}(r||(t.RelationshipTypes=r={})),t.parseRelationships=function(e,t){return t.elements(e).map(e=>({id:t.attr(e,"Id"),type:t.attr(e,"Type"),target:t.attr(e,"Target"),targetMode:t.attr(e,"TargetMode")}))}},168:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentParser=t.autos=void 0;const a=r(120),n=r(109),s=r(59),i=r(472),o=r(488),l=r(172),c=r(149),f=r(320);t.autos={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"};const u=[],h={oMath:a.DomType.MmlMath,oMathPara:a.DomType.MmlMathParagraph,f:a.DomType.MmlFraction,func:a.DomType.MmlFunction,fName:a.DomType.MmlFunctionName,num:a.DomType.MmlNumerator,den:a.DomType.MmlDenominator,rad:a.DomType.MmlRadical,deg:a.DomType.MmlDegree,e:a.DomType.MmlBase,sSup:a.DomType.MmlSuperscript,sSub:a.DomType.MmlSubscript,sPre:a.DomType.MmlPreSubSuper,sup:a.DomType.MmlSuperArgument,sub:a.DomType.MmlSubArgument,d:a.DomType.MmlDelimiter,nary:a.DomType.MmlNary,eqArr:a.DomType.MmlEquationArray,lim:a.DomType.MmlLimit,limLow:a.DomType.MmlLimitLower,m:a.DomType.MmlMatrix,mr:a.DomType.MmlMatrixRow,box:a.DomType.MmlBox,bar:a.DomType.MmlBar,groupChr:a.DomType.MmlGroupChar};t.DocumentParser=class{constructor(e){this.options=Object.assign({ignoreWidth:!1,debug:!1},e)}parseNotes(e,t,r){var a=[];for(let n of i.default.elements(e,t)){const e=new r;e.id=i.default.attr(n,"id"),e.noteType=i.default.attr(n,"type"),e.children=this.parseBodyElements(n),a.push(e)}return a}parseDocumentFile(e){var t=i.default.element(e,"body"),r=i.default.element(e,"background"),n=i.default.element(t,"sectPr");return{type:a.DomType.Document,children:this.parseBodyElements(t),props:n?(0,s.parseSectionProperties)(n,i.default):{},cssStyle:r?this.parseBackground(r):{}}}parseBackground(e){var t={},r=p.colorAttr(e,"color");return r&&(t["background-color"]=r),t}parseBodyElements(e){var t=[];for(let r of i.default.elements(e))switch(r.localName){case"p":t.push(this.parseParagraph(r));break;case"tbl":t.push(this.parseTable(r));break;case"sdt":t.push(...this.parseSdt(r,e=>this.parseBodyElements(e)))}return t}parseStylesFile(e){var t=[];return p.foreach(e,e=>{switch(e.localName){case"style":t.push(this.parseStyle(e));break;case"docDefaults":t.push(this.parseDefaultStyles(e))}}),t}parseDefaultStyles(e){var t={id:null,name:null,target:null,basedOn:null,styles:[]};return p.foreach(e,e=>{switch(e.localName){case"rPrDefault":var r=i.default.element(e,"rPr");r&&t.styles.push({target:"span",values:this.parseDefaultProperties(r,{})});break;case"pPrDefault":var a=i.default.element(e,"pPr");a&&t.styles.push({target:"p",values:this.parseDefaultProperties(a,{})})}}),t}parseStyle(e){var t={id:i.default.attr(e,"styleId"),isDefault:i.default.boolAttr(e,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(i.default.attr(e,"type")){case"paragraph":t.target="p";break;case"table":t.target="table";break;case"character":t.target="span"}return p.foreach(e,e=>{switch(e.localName){case"basedOn":t.basedOn=i.default.attr(e,"val");break;case"name":t.name=i.default.attr(e,"val");break;case"link":t.linked=i.default.attr(e,"val");break;case"next":t.next=i.default.attr(e,"val");break;case"aliases":t.aliases=i.default.attr(e,"val").split(",");break;case"pPr":t.styles.push({target:"p",values:this.parseDefaultProperties(e,{})}),t.paragraphProps=(0,n.parseParagraphProperties)(e,i.default);break;case"rPr":t.styles.push({target:"span",values:this.parseDefaultProperties(e,{})}),t.runProps=(0,o.parseRunProperties)(e,i.default);break;case"tblPr":case"tcPr":t.styles.push({target:"td",values:this.parseDefaultProperties(e,{})});break;case"tblStylePr":for(let r of this.parseTableStyle(e))t.styles.push(r);break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:this.options.debug&&console.warn("DOCX: Unknown style element: "+e.localName)}}),t}parseTableStyle(e){var t=[],r=i.default.attr(e,"type"),a="",n="";switch(r){case"firstRow":n=".first-row",a="tr.first-row td";break;case"lastRow":n=".last-row",a="tr.last-row td";break;case"firstCol":n=".first-col",a="td.first-col";break;case"lastCol":n=".last-col",a="td.last-col";break;case"band1Vert":n=":not(.no-vband)",a="td.odd-col";break;case"band2Vert":n=":not(.no-vband)",a="td.even-col";break;case"band1Horz":n=":not(.no-hband)",a="tr.odd-row";break;case"band2Horz":n=":not(.no-hband)",a="tr.even-row";break;default:return[]}return p.foreach(e,e=>{switch(e.localName){case"pPr":t.push({target:a+" p",mod:n,values:this.parseDefaultProperties(e,{})});break;case"rPr":t.push({target:a+" span",mod:n,values:this.parseDefaultProperties(e,{})});break;case"tblPr":case"tcPr":t.push({target:a,mod:n,values:this.parseDefaultProperties(e,{})})}}),t}parseNumberingFile(e){var t=[],r={},a=[];return p.foreach(e,e=>{switch(e.localName){case"abstractNum":this.parseAbstractNumbering(e,a).forEach(e=>t.push(e));break;case"numPicBullet":a.push(this.parseNumberingPicBullet(e));break;case"num":var n=i.default.attr(e,"numId"),s=i.default.elementAttr(e,"abstractNumId","val");r[s]=n}}),t.forEach(e=>e.id=r[e.id]),t}parseNumberingPicBullet(e){var t=i.default.element(e,"pict"),r=t&&i.default.element(t,"shape"),a=r&&i.default.element(r,"imagedata");return a?{id:i.default.intAttr(e,"numPicBulletId"),src:i.default.attr(a,"id"),style:i.default.attr(r,"style")}:null}parseAbstractNumbering(e,t){var r=[],a=i.default.attr(e,"abstractNumId");return p.foreach(e,e=>{"lvl"===e.localName&&r.push(this.parseNumberingLevel(a,e,t))}),r}parseNumberingLevel(e,t,r){var a={id:e,level:i.default.intAttr(t,"ilvl"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return p.foreach(t,e=>{switch(e.localName){case"start":a.start=i.default.intAttr(e,"val");break;case"pPr":this.parseDefaultProperties(e,a.pStyle);break;case"rPr":this.parseDefaultProperties(e,a.rStyle);break;case"lvlPicBulletId":var t=i.default.intAttr(e,"val");a.bullet=r.find(e=>e.id==t);break;case"lvlText":a.levelText=i.default.attr(e,"val");break;case"pStyle":a.pStyleName=i.default.attr(e,"val");break;case"numFmt":a.format=i.default.attr(e,"val");break;case"suff":a.suff=i.default.attr(e,"val")}}),a}parseSdt(e,t){const r=i.default.element(e,"sdtContent");return r?t(r):[]}parseInserted(e,t){var r,n;return{type:a.DomType.Inserted,children:null!==(n=null===(r=t(e))||void 0===r?void 0:r.children)&&void 0!==n?n:[]}}parseDeleted(e,t){var r,n;return{type:a.DomType.Deleted,children:null!==(n=null===(r=t(e))||void 0===r?void 0:r.children)&&void 0!==n?n:[]}}parseParagraph(e){var t={type:a.DomType.Paragraph,children:[]};for(let r of i.default.elements(e))switch(r.localName){case"pPr":this.parseParagraphProperties(r,t);break;case"r":t.children.push(this.parseRun(r,t));break;case"hyperlink":t.children.push(this.parseHyperlink(r,t));break;case"bookmarkStart":t.children.push((0,l.parseBookmarkStart)(r,i.default));break;case"bookmarkEnd":t.children.push((0,l.parseBookmarkEnd)(r,i.default));break;case"oMath":case"oMathPara":t.children.push(this.parseMathElement(r));break;case"sdt":t.children.push(...this.parseSdt(r,e=>this.parseParagraph(e).children));break;case"ins":t.children.push(this.parseInserted(r,e=>this.parseParagraph(e)));break;case"del":t.children.push(this.parseDeleted(r,e=>this.parseParagraph(e)))}return t}parseParagraphProperties(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,e=>{if((0,n.parseParagraphProperty)(e,t,i.default))return!0;switch(e.localName){case"pStyle":t.styleName=i.default.attr(e,"val");break;case"cnfStyle":t.className=m.classNameOfCnfStyle(e);break;case"framePr":this.parseFrame(e,t);break;case"rPr":break;default:return!1}return!0})}parseFrame(e,t){"drop"==i.default.attr(e,"dropCap")&&(t.cssStyle.float="left")}parseHyperlink(e,t){var r={type:a.DomType.Hyperlink,parent:t,children:[]},n=i.default.attr(e,"anchor"),s=i.default.attr(e,"id");return n&&(r.href="#"+n),s&&(r.id=s),p.foreach(e,e=>{"r"===e.localName&&r.children.push(this.parseRun(e,r))}),r}parseRun(e,t){var r={type:a.DomType.Run,parent:t,children:[]};return p.foreach(e,e=>{switch((e=this.checkAlternateContent(e)).localName){case"t":r.children.push({type:a.DomType.Text,text:e.textContent});break;case"delText":r.children.push({type:a.DomType.DeletedText,text:e.textContent});break;case"fldSimple":r.children.push({type:a.DomType.SimpleField,instruction:i.default.attr(e,"instr"),lock:i.default.boolAttr(e,"lock",!1),dirty:i.default.boolAttr(e,"dirty",!1)});break;case"instrText":r.fieldRun=!0,r.children.push({type:a.DomType.Instruction,text:e.textContent});break;case"fldChar":r.fieldRun=!0,r.children.push({type:a.DomType.ComplexField,charType:i.default.attr(e,"fldCharType"),lock:i.default.boolAttr(e,"lock",!1),dirty:i.default.boolAttr(e,"dirty",!1)});break;case"noBreakHyphen":r.children.push({type:a.DomType.NoBreakHyphen});break;case"br":r.children.push({type:a.DomType.Break,break:i.default.attr(e,"type")||"textWrapping"});break;case"lastRenderedPageBreak":r.children.push({type:a.DomType.Break,break:"lastRenderedPageBreak"});break;case"sym":r.children.push({type:a.DomType.Symbol,font:i.default.attr(e,"font"),char:i.default.attr(e,"char")});break;case"tab":r.children.push({type:a.DomType.Tab});break;case"footnoteReference":r.children.push({type:a.DomType.FootnoteReference,id:i.default.attr(e,"id")});break;case"endnoteReference":r.children.push({type:a.DomType.EndnoteReference,id:i.default.attr(e,"id")});break;case"drawing":let t=this.parseDrawing(e);t&&(r.children=[t]);break;case"pict":r.children.push(this.parseVmlPicture(e));break;case"rPr":this.parseRunProperties(e,r)}}),r}parseMathElement(e){const t=e.localName+"Pr",r={type:h[e.localName],children:[]};for(const s of i.default.elements(e))if(h[s.localName])r.children.push(this.parseMathElement(s));else if("r"==s.localName){var n=this.parseRun(s);n.type=a.DomType.MmlRun,r.children.push(n)}else s.localName==t&&(r.props=this.parseMathProperies(s));return r}parseMathProperies(e){const t={};for(const r of i.default.elements(e))switch(r.localName){case"chr":t.char=i.default.attr(r,"val");break;case"vertJc":t.verticalJustification=i.default.attr(r,"val");break;case"pos":t.position=i.default.attr(r,"val");break;case"degHide":t.hideDegree=i.default.boolAttr(r,"val");break;case"begChr":t.beginChar=i.default.attr(r,"val");break;case"endChr":t.endChar=i.default.attr(r,"val")}return t}parseRunProperties(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,e=>{switch(e.localName){case"rStyle":t.styleName=i.default.attr(e,"val");break;case"vertAlign":t.verticalAlign=m.valueOfVertAlign(e,!0);break;default:return!1}return!0})}parseVmlPicture(e){const t={type:a.DomType.VmlPicture,children:[]};for(const r of i.default.elements(e)){const e=(0,f.parseVmlElement)(r,this);e&&t.children.push(e)}return t}checkAlternateContent(e){var t;if("AlternateContent"!=e.localName)return e;var r=i.default.element(e,"Choice");if(r){var a=i.default.attr(r,"Requires"),n=e.lookupNamespaceURI(a);if(u.includes(n))return r.firstElementChild}return null===(t=i.default.element(e,"Fallback"))||void 0===t?void 0:t.firstElementChild}parseDrawing(e){for(var t of i.default.elements(e))switch(t.localName){case"inline":case"anchor":return this.parseDrawingWrapper(t)}}parseDrawingWrapper(e){var t,r={type:a.DomType.Drawing,children:[],cssStyle:{}},n="anchor"==e.localName;let s=null,o=i.default.boolAttr(e,"simplePos"),l={relative:"page",align:"left",offset:"0"},f={relative:"page",align:"top",offset:"0"};for(var u of i.default.elements(e))switch(u.localName){case"simplePos":o&&(l.offset=i.default.lengthAttr(u,"x",c.LengthUsage.Emu),f.offset=i.default.lengthAttr(u,"y",c.LengthUsage.Emu));break;case"extent":r.cssStyle.width=i.default.lengthAttr(u,"cx",c.LengthUsage.Emu),r.cssStyle.height=i.default.lengthAttr(u,"cy",c.LengthUsage.Emu);break;case"positionH":case"positionV":if(!o){let e="positionH"==u.localName?l:f;var h=i.default.element(u,"align"),d=i.default.element(u,"posOffset");e.relative=null!==(t=i.default.attr(u,"relativeFrom"))&&void 0!==t?t:e.relative,h&&(e.align=h.textContent),d&&(e.offset=p.sizeValue(d,c.LengthUsage.Emu))}break;case"wrapTopAndBottom":s="wrapTopAndBottom";break;case"wrapNone":s="wrapNone";break;case"graphic":var m=this.parseGraphic(u);m&&r.children.push(m)}return"wrapTopAndBottom"==s?(r.cssStyle.display="block",l.align&&(r.cssStyle["text-align"]=l.align,r.cssStyle.width="100%")):"wrapNone"==s?(r.cssStyle.display="block",r.cssStyle.position="relative",r.cssStyle.width="0px",r.cssStyle.height="0px",l.offset&&(r.cssStyle.left=l.offset),f.offset&&(r.cssStyle.top=f.offset)):!n||"left"!=l.align&&"right"!=l.align||(r.cssStyle.float=l.align),r}parseGraphic(e){var t=i.default.element(e,"graphicData");for(let r of i.default.elements(t))if("pic"===r.localName)return this.parsePicture(r);return null}parsePicture(e){var t={type:a.DomType.Image,src:"",cssStyle:{}},r=i.default.element(e,"blipFill"),n=i.default.element(r,"blip");t.src=i.default.attr(n,"embed");var s=i.default.element(e,"spPr"),o=i.default.element(s,"xfrm");for(var l of(t.cssStyle.position="relative",i.default.elements(o)))switch(l.localName){case"ext":t.cssStyle.width=i.default.lengthAttr(l,"cx",c.LengthUsage.Emu),t.cssStyle.height=i.default.lengthAttr(l,"cy",c.LengthUsage.Emu);break;case"off":t.cssStyle.left=i.default.lengthAttr(l,"x",c.LengthUsage.Emu),t.cssStyle.top=i.default.lengthAttr(l,"y",c.LengthUsage.Emu)}return t}parseTable(e){var t={type:a.DomType.Table,children:[]};return p.foreach(e,e=>{switch(e.localName){case"tr":t.children.push(this.parseTableRow(e));break;case"tblGrid":t.columns=this.parseTableColumns(e);break;case"tblPr":this.parseTableProperties(e,t)}}),t}parseTableColumns(e){var t=[];return p.foreach(e,e=>{"gridCol"===e.localName&&t.push({width:i.default.lengthAttr(e,"w")})}),t}parseTableProperties(e,t){switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(e,t.cssStyle,t.cellStyle,e=>{switch(e.localName){case"tblStyle":t.styleName=i.default.attr(e,"val");break;case"tblLook":t.className=m.classNameOftblLook(e);break;case"tblpPr":this.parseTablePosition(e,t);break;case"tblStyleColBandSize":t.colBandSize=i.default.intAttr(e,"val");break;case"tblStyleRowBandSize":t.rowBandSize=i.default.intAttr(e,"val");break;default:return!1}return!0}),t.cssStyle["text-align"]){case"center":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto",t.cssStyle["margin-right"]="auto";break;case"right":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto"}}parseTablePosition(e,t){var r=i.default.lengthAttr(e,"topFromText"),a=i.default.lengthAttr(e,"bottomFromText"),n=i.default.lengthAttr(e,"rightFromText"),s=i.default.lengthAttr(e,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=m.addSize(t.cssStyle["margin-bottom"],a),t.cssStyle["margin-left"]=m.addSize(t.cssStyle["margin-left"],s),t.cssStyle["margin-right"]=m.addSize(t.cssStyle["margin-right"],n),t.cssStyle["margin-top"]=m.addSize(t.cssStyle["margin-top"],r)}parseTableRow(e){var t={type:a.DomType.Row,children:[]};return p.foreach(e,e=>{switch(e.localName){case"tc":t.children.push(this.parseTableCell(e));break;case"trPr":this.parseTableRowProperties(e,t)}}),t}parseTableRowProperties(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,e=>{switch(e.localName){case"cnfStyle":t.className=m.classNameOfCnfStyle(e);break;case"tblHeader":t.isHeader=i.default.boolAttr(e,"val");break;default:return!1}return!0})}parseTableCell(e){var t={type:a.DomType.Cell,children:[]};return p.foreach(e,e=>{switch(e.localName){case"tbl":t.children.push(this.parseTable(e));break;case"p":t.children.push(this.parseParagraph(e));break;case"tcPr":this.parseTableCellProperties(e,t)}}),t}parseTableCellProperties(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,e=>{var r;switch(e.localName){case"gridSpan":t.span=i.default.intAttr(e,"val",null);break;case"vMerge":t.verticalMerge=null!==(r=i.default.attr(e,"val"))&&void 0!==r?r:"continue";break;case"cnfStyle":t.className=m.classNameOfCnfStyle(e);break;default:return!1}return!0})}parseDefaultProperties(e,r=null,a=null,n=null){return r=r||{},p.foreach(e,s=>{if(!(null==n?void 0:n(s)))switch(s.localName){case"jc":r["text-align"]=m.valueOfJc(s);break;case"textAlignment":r["vertical-align"]=m.valueOfTextAlignment(s);break;case"color":r.color=p.colorAttr(s,"val",null,t.autos.color);break;case"sz":r["font-size"]=r["min-height"]=i.default.lengthAttr(s,"val",c.LengthUsage.FontSize);break;case"shd":r["background-color"]=p.colorAttr(s,"fill",null,t.autos.shd);break;case"highlight":r["background-color"]=p.colorAttr(s,"val",null,t.autos.highlight);break;case"vertAlign":break;case"position":r.verticalAlign=i.default.lengthAttr(s,"val",c.LengthUsage.FontSize);break;case"tcW":if(this.options.ignoreWidth)break;case"tblW":r.width=m.valueOfSize(s,"w");break;case"trHeight":this.parseTrHeight(s,r);break;case"strike":r["text-decoration"]=i.default.boolAttr(s,"val",!0)?"line-through":"none";break;case"b":r["font-weight"]=i.default.boolAttr(s,"val",!0)?"bold":"normal";break;case"i":r["font-style"]=i.default.boolAttr(s,"val",!0)?"italic":"normal";break;case"caps":r["text-transform"]=i.default.boolAttr(s,"val",!0)?"uppercase":"none";break;case"smallCaps":r["text-transform"]=i.default.boolAttr(s,"val",!0)?"lowercase":"none";break;case"u":this.parseUnderline(s,r);break;case"ind":case"tblInd":this.parseIndentation(s,r);break;case"rFonts":this.parseFont(s,r);break;case"tblBorders":this.parseBorderProperties(s,a||r);break;case"tblCellSpacing":r["border-spacing"]=m.valueOfMargin(s),r["border-collapse"]="separate";break;case"pBdr":this.parseBorderProperties(s,r);break;case"bdr":r.border=m.valueOfBorder(s);break;case"tcBorders":this.parseBorderProperties(s,r);break;case"vanish":i.default.boolAttr(s,"val",!0)&&(r.display="none");break;case"kern":case"noWrap":break;case"tblCellMar":case"tcMar":this.parseMarginProperties(s,a||r);break;case"tblLayout":r["table-layout"]=m.valueOfTblLayout(s);break;case"vAlign":r["vertical-align"]=m.valueOfTextAlignment(s);break;case"spacing":"pPr"==e.localName&&this.parseSpacing(s,r);break;case"wordWrap":i.default.boolAttr(s,"val")&&(r["overflow-wrap"]="break-word");break;case"suppressAutoHyphens":r.hyphens=i.default.boolAttr(s,"val",!0)?"none":"auto";break;case"lang":r.$lang=i.default.attr(s,"val");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:this.options.debug&&console.warn(`DOCX: Unknown document element: ${e.localName}.${s.localName}`)}}),r}parseUnderline(e,t){var r=i.default.attr(e,"val");if(null!=r){switch(r){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":t["text-decoration-style"]="dashed";break;case"dotted":case"dottedHeavy":t["text-decoration-style"]="dotted";break;case"double":t["text-decoration-style"]="double";break;case"single":case"thick":case"words":t["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":t["text-decoration-style"]="wavy";break;case"none":t["text-decoration"]="none"}var a=p.colorAttr(e,"color");a&&(t["text-decoration-color"]=a)}}parseFont(e,t){var r=[i.default.attr(e,"ascii"),m.themeValue(e,"asciiTheme")].filter(e=>e).join(", ");r.length>0&&(t["font-family"]=r)}parseIndentation(e,t){var r=i.default.lengthAttr(e,"firstLine"),a=i.default.lengthAttr(e,"hanging"),n=i.default.lengthAttr(e,"left"),s=i.default.lengthAttr(e,"start"),o=i.default.lengthAttr(e,"right"),l=i.default.lengthAttr(e,"end");r&&(t["text-indent"]=r),a&&(t["text-indent"]="-"+a),(n||s)&&(t["margin-left"]=n||s),(o||l)&&(t["margin-right"]=o||l)}parseSpacing(e,t){var r=i.default.lengthAttr(e,"before"),a=i.default.lengthAttr(e,"after"),n=i.default.intAttr(e,"line",null),s=i.default.attr(e,"lineRule");if(r&&(t["margin-top"]=r),a&&(t["margin-bottom"]=a),null!==n)switch(s){case"auto":t["line-height"]=""+(n/240).toFixed(2);break;case"atLeast":t["line-height"]=`calc(100% + ${n/20}pt)`;break;default:t["line-height"]=t["min-height"]=n/20+"pt"}}parseMarginProperties(e,t){p.foreach(e,e=>{switch(e.localName){case"left":t["padding-left"]=m.valueOfMargin(e);break;case"right":t["padding-right"]=m.valueOfMargin(e);break;case"top":t["padding-top"]=m.valueOfMargin(e);break;case"bottom":t["padding-bottom"]=m.valueOfMargin(e)}})}parseTrHeight(e,t){i.default.attr(e,"hRule"),t.height=i.default.lengthAttr(e,"val")}parseBorderProperties(e,t){p.foreach(e,e=>{switch(e.localName){case"start":case"left":t["border-left"]=m.valueOfBorder(e);break;case"end":case"right":t["border-right"]=m.valueOfBorder(e);break;case"top":t["border-top"]=m.valueOfBorder(e);break;case"bottom":t["border-bottom"]=m.valueOfBorder(e)}})}};const d=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"];class p{static foreach(e,t){for(var r=0;r"1"==t[r]).join(" ")}static valueOfJc(e){var t=i.default.attr(e,"val");switch(t){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return t}static valueOfVertAlign(e,t=!1){var r=i.default.attr(e,"val");switch(r){case"subscript":return"sub";case"superscript":return t?"sup":"super"}return t?null:r}static valueOfTextAlignment(e){var t=i.default.attr(e,"val");switch(t){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return t}static addSize(e,t){return null==e?t:null==t?e:`calc(${e} + ${t})`}static classNameOftblLook(e){const t=i.default.hexAttr(e,"val",0);let r="";return(i.default.boolAttr(e,"firstRow")||32&t)&&(r+=" first-row"),(i.default.boolAttr(e,"lastRow")||64&t)&&(r+=" last-row"),(i.default.boolAttr(e,"firstColumn")||128&t)&&(r+=" first-col"),(i.default.boolAttr(e,"lastColumn")||256&t)&&(r+=" last-col"),(i.default.boolAttr(e,"noHBand")||512&t)&&(r+=" no-hband"),(i.default.boolAttr(e,"noVBand")||1024&t)&&(r+=" no-vband"),r.trim()}}},162:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CorePropsPart=void 0;const a=r(530),n=r(614);class s extends a.Part{parseXml(e){this.props=(0,n.parseCoreProps)(e,this._package.xmlParser)}}t.CorePropsPart=s},614:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseCoreProps=void 0,t.parseCoreProps=function(e,t){const r={};for(let a of t.elements(e))switch(a.localName){case"title":r.title=a.textContent;break;case"description":r.description=a.textContent;break;case"subject":r.subject=a.textContent;break;case"creator":r.creator=a.textContent;break;case"keywords":r.keywords=a.textContent;break;case"language":r.language=a.textContent;break;case"lastModifiedBy":r.lastModifiedBy=a.textContent;break;case"revision":a.textContent&&(r.revision=parseInt(a.textContent))}return r}},177:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPropsPart=void 0;const a=r(530),n=r(821);class s extends a.Part{parseXml(e){this.props=(0,n.parseCustomProps)(e,this._package.xmlParser)}}t.CustomPropsPart=s},821:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomProps=void 0,t.parseCustomProps=function(e,t){return t.elements(e,"property").map(e=>{const r=e.firstChild;return{formatId:t.attr(e,"fmtid"),name:t.attr(e,"name"),type:r.nodeName,value:r.textContent}})}},665:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedPropsPart=void 0;const a=r(530),n=r(668);class s extends a.Part{parseXml(e){this.props=(0,n.parseExtendedProps)(e,this._package.xmlParser)}}t.ExtendedPropsPart=s},668:(e,t)=>{function r(e){if(void 0!==e)return parseInt(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.parseExtendedProps=void 0,t.parseExtendedProps=function(e,t){const a={};for(let n of t.elements(e))switch(n.localName){case"Template":a.template=n.textContent;break;case"Pages":a.pages=r(n.textContent);break;case"Words":a.words=r(n.textContent);break;case"Characters":a.characters=r(n.textContent);break;case"Application":a.application=n.textContent;break;case"Lines":a.lines=r(n.textContent);break;case"Paragraphs":a.paragraphs=r(n.textContent);break;case"Company":a.company=n.textContent;break;case"AppVersion":a.appVersion=n.textContent}return a}},172:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseBookmarkEnd=t.parseBookmarkStart=void 0;const a=r(120);t.parseBookmarkStart=function(e,t){return{type:a.DomType.BookmarkStart,id:t.attr(e,"id"),name:t.attr(e,"name"),colFirst:t.intAttr(e,"colFirst"),colLast:t.intAttr(e,"colLast")}},t.parseBookmarkEnd=function(e,t){return{type:a.DomType.BookmarkEnd,id:t.attr(e,"id")}}},191:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseBorders=t.parseBorder=void 0;const a=r(149);function n(e,t){return{type:t.attr(e,"val"),color:t.attr(e,"color"),size:t.lengthAttr(e,"sz",a.LengthUsage.Border),offset:t.lengthAttr(e,"space",a.LengthUsage.Point),frame:t.boolAttr(e,"frame"),shadow:t.boolAttr(e,"shadow")}}t.parseBorder=n,t.parseBorders=function(e,t){var r={};for(let a of t.elements(e))switch(a.localName){case"left":r.left=n(a,t);break;case"top":r.top=n(a,t);break;case"right":r.right=n(a,t);break;case"bottom":r.bottom=n(a,t)}return r}},149:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseCommonProperty=t.convertPercentage=t.convertBoolean=t.convertLength=t.LengthUsage=t.ns=void 0,t.ns={wordml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",drawingml:"http://schemas.openxmlformats.org/drawingml/2006/main",picture:"http://schemas.openxmlformats.org/drawingml/2006/picture",compatibility:"http://schemas.openxmlformats.org/markup-compatibility/2006",math:"http://schemas.openxmlformats.org/officeDocument/2006/math"},t.LengthUsage={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:1/240,unit:""},VmlEmu:{mul:1/12700,unit:""}},t.convertLength=function(e,r=t.LengthUsage.Dxa){return null==e||/.+(p[xt]|[%])$/.test(e)?e:`${(parseInt(e)*r.mul).toFixed(2)}${r.unit}`},t.convertBoolean=function(e,t=!1){switch(e){case"1":case"on":case"true":return!0;case"0":case"off":case"false":return!1;default:return t}},t.convertPercentage=function(e){return e?parseInt(e)/100:null},t.parseCommonProperty=function(e,r,a){if(e.namespaceURI!=t.ns.wordml)return!1;switch(e.localName){case"color":r.color=a.attr(e,"val");break;case"sz":r.fontSize=a.lengthAttr(e,"val",t.LengthUsage.FontSize);break;default:return!1}return!0}},448:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentPart=void 0;const a=r(530);class n extends a.Part{constructor(e,t,r){super(e,t),this._documentParser=r}parseXml(e){this.body=this._documentParser.parseDocumentFile(e)}}t.DocumentPart=n},120:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.OpenXmlElementBase=t.DomType=void 0,function(e){e.Document="document",e.Paragraph="paragraph",e.Run="run",e.Break="break",e.NoBreakHyphen="noBreakHyphen",e.Table="table",e.Row="row",e.Cell="cell",e.Hyperlink="hyperlink",e.Drawing="drawing",e.Image="image",e.Text="text",e.Tab="tab",e.Symbol="symbol",e.BookmarkStart="bookmarkStart",e.BookmarkEnd="bookmarkEnd",e.Footer="footer",e.Header="header",e.FootnoteReference="footnoteReference",e.EndnoteReference="endnoteReference",e.Footnote="footnote",e.Endnote="endnote",e.SimpleField="simpleField",e.ComplexField="complexField",e.Instruction="instruction",e.VmlPicture="vmlPicture",e.MmlMath="mmlMath",e.MmlMathParagraph="mmlMathParagraph",e.MmlFraction="mmlFraction",e.MmlFunction="mmlFunction",e.MmlFunctionName="mmlFunctionName",e.MmlNumerator="mmlNumerator",e.MmlDenominator="mmlDenominator",e.MmlRadical="mmlRadical",e.MmlBase="mmlBase",e.MmlDegree="mmlDegree",e.MmlSuperscript="mmlSuperscript",e.MmlSubscript="mmlSubscript",e.MmlPreSubSuper="mmlPreSubSuper",e.MmlSubArgument="mmlSubArgument",e.MmlSuperArgument="mmlSuperArgument",e.MmlNary="mmlNary",e.MmlDelimiter="mmlDelimiter",e.MmlRun="mmlRun",e.MmlEquationArray="mmlEquationArray",e.MmlLimit="mmlLimit",e.MmlLimitLower="mmlLimitLower",e.MmlMatrix="mmlMatrix",e.MmlMatrixRow="mmlMatrixRow",e.MmlBox="mmlBox",e.MmlBar="mmlBar",e.MmlGroupChar="mmlGroupChar",e.VmlElement="vmlElement",e.Inserted="inserted",e.Deleted="deleted",e.DeletedText="deletedText"}(r||(t.DomType=r={})),t.OpenXmlElementBase=class{constructor(){this.children=[],this.cssStyle={}}}},931:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseLineSpacing=void 0,t.parseLineSpacing=function(e,t){return{before:t.lengthAttr(e,"before"),after:t.lengthAttr(e,"after"),line:t.intAttr(e,"line"),lineRule:t.attr(e,"lineRule")}}},109:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumbering=t.parseTabs=t.parseParagraphProperty=t.parseParagraphProperties=void 0;const a=r(149),n=r(59),s=r(931),i=r(488);function o(e,t,r){if(e.namespaceURI!=a.ns.wordml)return!1;if((0,a.parseCommonProperty)(e,t,r))return!0;switch(e.localName){case"tabs":t.tabs=l(e,r);break;case"sectPr":t.sectionProps=(0,n.parseSectionProperties)(e,r);break;case"numPr":t.numbering=c(e,r);break;case"spacing":return t.lineSpacing=(0,s.parseLineSpacing)(e,r),!1;case"textAlignment":return t.textAlignment=r.attr(e,"val"),!1;case"keepNext":t.keepLines=r.boolAttr(e,"val",!0);break;case"keepNext":t.keepNext=r.boolAttr(e,"val",!0);break;case"pageBreakBefore":t.pageBreakBefore=r.boolAttr(e,"val",!0);break;case"outlineLvl":t.outlineLevel=r.intAttr(e,"val");break;case"pStyle":t.styleName=r.attr(e,"val");break;case"rPr":t.runProps=(0,i.parseRunProperties)(e,r);break;default:return!1}return!0}function l(e,t){return t.elements(e,"tab").map(e=>({position:t.lengthAttr(e,"pos"),leader:t.attr(e,"leader"),style:t.attr(e,"val")}))}function c(e,t){var r={};for(let a of t.elements(e))switch(a.localName){case"numId":r.id=t.attr(a,"val");break;case"ilvl":r.level=t.intAttr(a,"val")}return r}t.parseParagraphProperties=function(e,t){let r={};for(let a of t.elements(e))o(a,r,t);return r},t.parseParagraphProperty=o,t.parseTabs=l,t.parseNumbering=c},488:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRunProperty=t.parseRunProperties=void 0;const a=r(149);function n(e,t,r){return!!(0,a.parseCommonProperty)(e,t,r)}t.parseRunProperties=function(e,t){let r={};for(let a of t.elements(e))n(a,r,t);return r},t.parseRunProperty=n},59:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSectionProperties=t.SectionType=void 0;const a=r(472),n=r(191);var s;function i(e,t){return{numberOfColumns:t.intAttr(e,"num"),space:t.lengthAttr(e,"space"),separator:t.boolAttr(e,"sep"),equalWidth:t.boolAttr(e,"equalWidth",!0),columns:t.elements(e,"col").map(e=>({width:t.lengthAttr(e,"w"),space:t.lengthAttr(e,"space")}))}}function o(e,t){return{chapSep:t.attr(e,"chapSep"),chapStyle:t.attr(e,"chapStyle"),format:t.attr(e,"fmt"),start:t.intAttr(e,"start")}}function l(e,t){return{id:t.attr(e,"id"),type:t.attr(e,"type")}}!function(e){e.Continuous="continuous",e.NextPage="nextPage",e.NextColumn="nextColumn",e.EvenPage="evenPage",e.OddPage="oddPage"}(s||(t.SectionType=s={})),t.parseSectionProperties=function(e,t=a.default){var r,s,c={};for(let a of t.elements(e))switch(a.localName){case"pgSz":c.pageSize={width:t.lengthAttr(a,"w"),height:t.lengthAttr(a,"h"),orientation:t.attr(a,"orient")};break;case"type":c.type=t.attr(a,"val");break;case"pgMar":c.pageMargins={left:t.lengthAttr(a,"left"),right:t.lengthAttr(a,"right"),top:t.lengthAttr(a,"top"),bottom:t.lengthAttr(a,"bottom"),header:t.lengthAttr(a,"header"),footer:t.lengthAttr(a,"footer"),gutter:t.lengthAttr(a,"gutter")};break;case"cols":c.columns=i(a,t);break;case"headerReference":(null!==(r=c.headerRefs)&&void 0!==r?r:c.headerRefs=[]).push(l(a,t));break;case"footerReference":(null!==(s=c.footerRefs)&&void 0!==s?s:c.footerRefs=[]).push(l(a,t));break;case"titlePg":c.titlePage=t.boolAttr(a,"val",!0);break;case"pgBorders":c.pageBorders=(0,n.parseBorders)(a,t);break;case"pgNumType":c.pageNumber=o(a,t)}return c}},667:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderAsync=t.praseAsync=t.defaultOptions=void 0;const a=r(213),n=r(168),s=r(932);t.defaultOptions={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,useMathMLPolyfill:!1,renderChanges:!1},t.praseAsync=function(e,r=null){const s=Object.assign(Object.assign({},t.defaultOptions),r);return a.WordDocument.load(e,new n.DocumentParser(s),s)},t.renderAsync=async function(e,r,i=null,o=null){const l=Object.assign(Object.assign({},t.defaultOptions),o),c=new s.HtmlRenderer(window.document),f=await a.WordDocument.load(e,new n.DocumentParser(l),l);return c.render(f,r,i,l),f}},380:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontTablePart=void 0;const a=r(530),n=r(512);class s extends a.Part{parseXml(e){this.fonts=(0,n.parseFonts)(e,this._package.xmlParser)}}t.FontTablePart=s},512:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEmbedFontRef=t.parseFont=t.parseFonts=void 0;const r={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function a(e,t){let r={name:t.attr(e,"name"),embedFontRefs:[]};for(let a of t.elements(e))switch(a.localName){case"family":r.family=t.attr(a,"val");break;case"altName":r.altName=t.attr(a,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":r.embedFontRefs.push(n(a,t))}return r}function n(e,t){return{id:t.attr(e,"id"),key:t.attr(e,"fontKey"),type:r[e.localName]}}t.parseFonts=function(e,t){return t.elements(e).map(e=>a(e,t))},t.parseFont=a,t.parseEmbedFontRef=n},984:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlFooter=t.WmlHeader=void 0;const a=r(120);class n extends a.OpenXmlElementBase{constructor(){super(...arguments),this.type=a.DomType.Header}}t.WmlHeader=n;class s extends a.OpenXmlElementBase{constructor(){super(...arguments),this.type=a.DomType.Footer}}t.WmlFooter=s},985:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FooterPart=t.HeaderPart=t.BaseHeaderFooterPart=void 0;const a=r(530),n=r(984);class s extends a.Part{constructor(e,t,r){super(e,t),this._documentParser=r}parseXml(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}}t.BaseHeaderFooterPart=s,t.HeaderPart=class extends s{createRootElement(){return new n.WmlHeader}},t.FooterPart=class extends s{createRootElement(){return new n.WmlFooter}}},932:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HtmlRenderer=void 0;const a=r(120),n=r(593),s=r(630),i=r(438),o="http://www.w3.org/1998/Math/MathML";function l(e,t,r){return f(void 0,e,t,r)}function c(e,t,r){return f("http://www.w3.org/2000/svg",e,t,r)}function f(e,t,r,a){var n=e?document.createElementNS(e,t):document.createElement(t);return Object.assign(n,r),a&&h(n,a),n}function u(e){e.innerHTML=""}function h(e,t){t.forEach(t=>e.appendChild((0,n.isString)(t)?document.createTextNode(t):t))}function d(e){return l("style",{innerHTML:e})}function p(e,t){e.appendChild(document.createComment(t))}t.HtmlRenderer=class{constructor(e){this.htmlDocument=e,this.className="docx",this.styleMap={},this.currentPart=null,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.usedHederFooterParts=[],this.currentTabs=[],this.tabsTimeout=0,this.createElement=l}render(e,t,r=null,a){var s;this.document=e,this.options=a,this.className=a.className,this.rootSelector=a.inWrapper?`.${this.className}-wrapper`:":root",this.styleMap=null,u(r=r||t),u(t),p(r,"docxjs library predefined styles"),r.appendChild(this.renderDefaultStyle()),!window.MathMLElement&&a.useMathMLPolyfill&&(p(r,"docxjs mathml polyfill styles"),r.appendChild(d(i.default))),e.themePart&&(p(r,"docxjs document theme values"),this.renderTheme(e.themePart,r)),null!=e.stylesPart&&(this.styleMap=this.processStyles(e.stylesPart.styles),p(r,"docxjs document styles"),r.appendChild(this.renderStyles(e.stylesPart.styles))),e.numberingPart&&(this.prodessNumberings(e.numberingPart.domNumberings),p(r,"docxjs document numbering styles"),r.appendChild(this.renderNumbering(e.numberingPart.domNumberings,r))),e.footnotesPart&&(this.footnoteMap=(0,n.keyBy)(e.footnotesPart.notes,e=>e.id)),e.endnotesPart&&(this.endnoteMap=(0,n.keyBy)(e.endnotesPart.notes,e=>e.id)),e.settingsPart&&(this.defaultTabSize=null===(s=e.settingsPart.settings)||void 0===s?void 0:s.defaultTabStop),!a.ignoreFonts&&e.fontTablePart&&this.renderFontTable(e.fontTablePart,r);var o=this.renderSections(e.documentPart.body);this.options.inWrapper?t.appendChild(this.renderWrapper(o)):h(t,o),this.refreshTabStops()}renderTheme(e,t){var r,a;const n={},s=null===(r=e.theme)||void 0===r?void 0:r.fontScheme;s&&(s.majorFont&&(n["--docx-majorHAnsi-font"]=s.majorFont.latinTypeface),s.minorFont&&(n["--docx-minorHAnsi-font"]=s.minorFont.latinTypeface));const i=null===(a=e.theme)||void 0===a?void 0:a.colorScheme;if(i)for(let[l,c]of Object.entries(i.colors))n[`--docx-${l}-color`]="#"+c;const o=this.styleToString("."+this.className,n);t.appendChild(d(o))}renderFontTable(e,t){for(let r of e.fonts)for(let e of r.embedFontRefs)this.document.loadFont(e.id,e.key).then(a=>{const n={"font-family":r.name,src:`url(${a})`};"bold"!=e.type&&"boldItalic"!=e.type||(n["font-weight"]="bold"),"italic"!=e.type&&"boldItalic"!=e.type||(n["font-style"]="italic"),p(t,`docxjs ${r.name} font`);const s=this.styleToString("@font-face",n);t.appendChild(d(s)),this.refreshTabStops()})}processStyleName(e){return e?`${this.className}_${(0,n.escapeClassName)(e)}`:this.className}processStyles(e){const t=(0,n.keyBy)(e.filter(e=>null!=e.id),e=>e.id);for(const a of e.filter(e=>e.basedOn)){var r=t[a.basedOn];if(r){a.paragraphProps=(0,n.mergeDeep)(a.paragraphProps,r.paragraphProps),a.runProps=(0,n.mergeDeep)(a.runProps,r.runProps);for(const e of r.styles){const t=a.styles.find(t=>t.target==e.target);t?this.copyStyleProperties(e.values,t.values):a.styles.push(Object.assign(Object.assign({},e),{values:Object.assign({},e.values)}))}}else this.options.debug&&console.warn("Can't find base style "+a.basedOn)}for(let a of e)a.cssName=this.processStyleName(a.id);return t}prodessNumberings(e){var t;for(let r of e.filter(e=>e.pStyleName)){const e=this.findStyle(r.pStyleName);(null===(t=null==e?void 0:e.paragraphProps)||void 0===t?void 0:t.numbering)&&(e.paragraphProps.numbering.level=r.level)}}processElement(e){if(e.children)for(var t of e.children)t.parent=e,t.type==a.DomType.Table?this.processTable(t):this.processElement(t)}processTable(e){for(var t of e.children)for(var r of t.children)r.cssStyle=this.copyStyleProperties(e.cellStyle,r.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(r)}copyStyleProperties(e,t,r=null){if(!e)return t;for(var a of(null==t&&(t={}),null==r&&(r=Object.getOwnPropertyNames(e)),r))e.hasOwnProperty(a)&&!t.hasOwnProperty(a)&&(t[a]=e[a]);return t}createSection(e,t){var r=this.createElement("section",{className:e});return t&&(t.pageMargins&&(r.style.paddingLeft=t.pageMargins.left,r.style.paddingRight=t.pageMargins.right,r.style.paddingTop=t.pageMargins.top,r.style.paddingBottom=t.pageMargins.bottom),t.pageSize&&(this.options.ignoreWidth||(r.style.width=t.pageSize.width),this.options.ignoreHeight||(r.style.minHeight=t.pageSize.height)),t.columns&&t.columns.numberOfColumns&&(r.style.columnCount=""+t.columns.numberOfColumns,r.style.columnGap=t.columns.space,t.columns.separator&&(r.style.columnRule="1px solid black"))),r}renderSections(e){const t=[];this.processElement(e);const r=this.splitBySection(e.children);let a=null;for(let s=0,i=r.length;s"first"==e.type):null)&&void 0!==s?s:r%2==1?e.find(e=>"even"==e.type):null)&&void 0!==i?i:e.find(e=>"default"==e.type),l=o&&this.document.findPartByRelId(o.id,this.document.documentPart);l&&(this.currentPart=l,this.usedHederFooterParts.includes(l.path)||(this.processElement(l.rootElement),this.usedHederFooterParts.push(l.path)),this.renderElements([l.rootElement],n),this.currentPart=null)}}isPageBreakElement(e){return e.type==a.DomType.Break&&("lastRenderedPageBreak"==e.break?!this.options.ignoreLastRenderedPageBreak:"page"==e.break)}splitBySection(e){var t,r={sectProps:null,elements:[]},n=[r];for(let u of e){if(u.type==a.DomType.Paragraph){const e=this.findStyle(u.styleName);(null===(t=null==e?void 0:e.paragraphProps)||void 0===t?void 0:t.pageBreakBefore)&&(r.sectProps=s,r={sectProps:null,elements:[]},n.push(r))}if(r.elements.push(u),u.type==a.DomType.Paragraph){const e=u;var s=e.sectionProps,i=-1,o=-1;if(this.options.breakPages&&e.children&&(i=e.children.findIndex(e=>{var t,r;return-1!=(o=null!==(r=null===(t=e.children)||void 0===t?void 0:t.findIndex(this.isPageBreakElement.bind(this)))&&void 0!==r?r:-1)})),(s||-1!=i)&&(r.sectProps=s,r={sectProps:null,elements:[]},n.push(r)),-1!=i){let t=e.children[i],a=o=0;a--)null==n[a].sectProps?n[a].sectProps=f:f=n[a].sectProps;return n}renderWrapper(e){return this.createElement("div",{className:this.className+"-wrapper"},e)}renderDefaultStyle(){var e=this.className;return d(`\n.${e}-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } \n.${e}-wrapper>section.${e} { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }\n.${e} { color: black; hyphens: auto; }\nsection.${e} { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }\nsection.${e}>article { margin-bottom: auto; z-index: 1; }\nsection.${e}>footer { z-index: 1; }\n.${e} table { border-collapse: collapse; }\n.${e} table td, .${e} table th { vertical-align: top; }\n.${e} p { margin: 0pt; min-height: 1em; }\n.${e} span { white-space: pre-wrap; overflow-wrap: break-word; }\n.${e} a { color: inherit; text-decoration: inherit; }\n`)}renderNumbering(e,t){var r="",a=[];for(var n of e){var s="p."+this.numberingClass(n.id,n.level),i="none";if(n.bullet){let e=`--${this.className}-${n.bullet.src}`.toLowerCase();r+=this.styleToString(s+":before",{content:"' '",display:"inline-block",background:`var(${e})`},n.bullet.style),this.document.loadNumberingImage(n.bullet.src).then(r=>{var a=`${this.rootSelector} { ${e}: url(${r}) }`;t.appendChild(d(a))})}else if(n.levelText){let e=this.numberingCounter(n.id,n.level);const t=e+" "+(n.start-1);n.level>0&&(r+=this.styleToString("p."+this.numberingClass(n.id,n.level-1),{"counter-reset":t})),a.push(t),r+=this.styleToString(s+":before",Object.assign({content:this.levelTextToContent(n.levelText,n.suff,n.id,this.numFormatToCssValue(n.format)),"counter-increment":e},n.rStyle))}else i=this.numFormatToCssValue(n.format);r+=this.styleToString(s,Object.assign({display:"list-item","list-style-position":"inside","list-style-type":i},n.pStyle))}return a.length>0&&(r+=this.styleToString(this.rootSelector,{"counter-reset":a.join(" ")})),d(r)}renderStyles(e){var t,r="";const a=this.styleMap,s=(0,n.keyBy)(e.filter(e=>e.isDefault),e=>e.target);for(const n of e){var i=n.styles;if(n.linked){var o=n.linked&&a[n.linked];o?i=i.concat(o.styles):this.options.debug&&console.warn("Can't find linked style "+n.linked)}for(const e of i){var l=`${null!==(t=n.target)&&void 0!==t?t:""}.${n.cssName}`;n.target!=e.target&&(l+=" "+e.target),s[n.target]==n&&(l=`.${this.className} ${n.target}, `+l),r+=this.styleToString(l,e.values)}}return d(r)}renderNotes(e,t,r){var a=e.map(e=>t[e]).filter(e=>e);if(a.length>0){var n=this.createElement("ol",null,this.renderElements(a));r.appendChild(n)}}renderElement(e){switch(e.type){case a.DomType.Paragraph:return this.renderParagraph(e);case a.DomType.BookmarkStart:return this.renderBookmarkStart(e);case a.DomType.BookmarkEnd:return null;case a.DomType.Run:return this.renderRun(e);case a.DomType.Table:return this.renderTable(e);case a.DomType.Row:return this.renderTableRow(e);case a.DomType.Cell:return this.renderTableCell(e);case a.DomType.Hyperlink:return this.renderHyperlink(e);case a.DomType.Drawing:return this.renderDrawing(e);case a.DomType.Image:return this.renderImage(e);case a.DomType.Text:case a.DomType.Text:return this.renderText(e);case a.DomType.DeletedText:return this.renderDeletedText(e);case a.DomType.Tab:return this.renderTab(e);case a.DomType.Symbol:return this.renderSymbol(e);case a.DomType.Break:return this.renderBreak(e);case a.DomType.Footer:return this.renderContainer(e,"footer");case a.DomType.Header:return this.renderContainer(e,"header");case a.DomType.Footnote:case a.DomType.Endnote:return this.renderContainer(e,"li");case a.DomType.FootnoteReference:return this.renderFootnoteReference(e);case a.DomType.EndnoteReference:return this.renderEndnoteReference(e);case a.DomType.NoBreakHyphen:return this.createElement("wbr");case a.DomType.VmlPicture:return this.renderVmlPicture(e);case a.DomType.VmlElement:return this.renderVmlElement(e);case a.DomType.MmlMath:return this.renderContainerNS(e,o,"math",{xmlns:o});case a.DomType.MmlMathParagraph:return this.renderContainer(e,"span");case a.DomType.MmlFraction:return this.renderContainerNS(e,o,"mfrac");case a.DomType.MmlBase:return this.renderContainerNS(e,o,e.parent.type==a.DomType.MmlMatrixRow?"mtd":"mrow");case a.DomType.MmlNumerator:case a.DomType.MmlDenominator:case a.DomType.MmlFunction:case a.DomType.MmlLimit:case a.DomType.MmlBox:return this.renderContainerNS(e,o,"mrow");case a.DomType.MmlGroupChar:return this.renderMmlGroupChar(e);case a.DomType.MmlLimitLower:return this.renderContainerNS(e,o,"munder");case a.DomType.MmlMatrix:return this.renderContainerNS(e,o,"mtable");case a.DomType.MmlMatrixRow:return this.renderContainerNS(e,o,"mtr");case a.DomType.MmlRadical:return this.renderMmlRadical(e);case a.DomType.MmlSuperscript:return this.renderContainerNS(e,o,"msup");case a.DomType.MmlSubscript:return this.renderContainerNS(e,o,"msub");case a.DomType.MmlDegree:case a.DomType.MmlSuperArgument:case a.DomType.MmlSubArgument:return this.renderContainerNS(e,o,"mn");case a.DomType.MmlFunctionName:return this.renderContainerNS(e,o,"ms");case a.DomType.MmlDelimiter:return this.renderMmlDelimiter(e);case a.DomType.MmlRun:return this.renderMmlRun(e);case a.DomType.MmlNary:return this.renderMmlNary(e);case a.DomType.MmlPreSubSuper:return this.renderMmlPreSubSuper(e);case a.DomType.MmlBar:return this.renderMmlBar(e);case a.DomType.MmlEquationArray:return this.renderMllList(e);case a.DomType.Inserted:return this.renderInserted(e);case a.DomType.Deleted:return this.renderDeleted(e)}return null}renderChildren(e,t){return this.renderElements(e.children,t)}renderElements(e,t){if(null==e)return null;var r=e.flatMap(e=>this.renderElement(e)).filter(e=>null!=e);return t&&h(t,r),r}renderContainer(e,t,r){return this.createElement(t,r,this.renderChildren(e))}renderContainerNS(e,t,r,a){return f(t,r,a,this.renderChildren(e))}renderParagraph(e){var t,r,a,n,s=this.createElement("p");const i=this.findStyle(e.styleName);null!==(t=e.tabs)&&void 0!==t||(e.tabs=null===(r=null==i?void 0:i.paragraphProps)||void 0===r?void 0:r.tabs),this.renderClass(e,s),this.renderChildren(e,s),this.renderStyleValues(e.cssStyle,s),this.renderCommonProperties(s.style,e);const o=null!==(a=e.numbering)&&void 0!==a?a:null===(n=null==i?void 0:i.paragraphProps)||void 0===n?void 0:n.numbering;return o&&s.classList.add(this.numberingClass(o.id,o.level)),s}renderRunProperties(e,t){this.renderCommonProperties(e,t)}renderCommonProperties(e,t){null!=t&&(t.color&&(e.color=t.color),t.fontSize&&(e["font-size"]=t.fontSize))}renderHyperlink(e){var t=this.createElement("a");if(this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.href)t.href=e.href;else if(e.id){const r=this.document.documentPart.rels.find(t=>t.id==e.id&&"External"===t.targetMode);t.href=null==r?void 0:r.target}return t}renderDrawing(e){var t=this.createElement("div");return t.style.display="inline-block",t.style.position="relative",t.style.textIndent="0px",this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),t}renderImage(e){let t=this.createElement("img");return this.renderStyleValues(e.cssStyle,t),this.document&&this.document.loadDocumentImage(e.src,this.currentPart).then(e=>{t.src=e}),t}renderText(e){return this.htmlDocument.createTextNode(e.text)}renderDeletedText(e){return this.options.renderEndnotes?this.htmlDocument.createTextNode(e.text):null}renderBreak(e){return"textWrapping"==e.break?this.createElement("br"):null}renderInserted(e){return this.options.renderChanges?this.renderContainer(e,"ins"):this.renderChildren(e)}renderDeleted(e){return this.options.renderChanges?this.renderContainer(e,"del"):null}renderSymbol(e){var t=this.createElement("span");return t.style.fontFamily=e.font,t.innerHTML=`&#x${e.char};`,t}renderFootnoteReference(e){var t=this.createElement("sup");return this.currentFootnoteIds.push(e.id),t.textContent=""+this.currentFootnoteIds.length,t}renderEndnoteReference(e){var t=this.createElement("sup");return this.currentEndnoteIds.push(e.id),t.textContent=""+this.currentEndnoteIds.length,t}renderTab(e){var t,r=this.createElement("span");if(r.innerHTML=" ",this.options.experimental){r.className=this.tabStopClass();var n=null===(t=function(e,t){for(var r=e.parent;null!=r&&r.type!=t;)r=r.parent;return r}(e,a.DomType.Paragraph))||void 0===t?void 0:t.tabs;this.currentTabs.push({stops:n,span:r})}return r}renderBookmarkStart(e){var t=this.createElement("span");return t.id=e.name,t}renderRun(e){if(e.fieldRun)return null;const t=this.createElement("span");if(e.id&&(t.id=e.id),this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.verticalAlign){const r=this.createElement(e.verticalAlign);this.renderChildren(e,r),t.appendChild(r)}else this.renderChildren(e,t);return t}renderTable(e){let t=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},e.columns&&t.appendChild(this.renderTableColumns(e.columns)),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),t}renderTableColumns(e){let t=this.createElement("colgroup");for(let r of e){let e=this.createElement("col");r.width&&(e.style.width=r.width),t.appendChild(e)}return t}renderTableRow(e){let t=this.createElement("tr");return this.currentCellPosition.col=0,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentCellPosition.row++,t}renderTableCell(e){let t=this.createElement("td");const r=this.currentCellPosition.col;return e.verticalMerge?"restart"==e.verticalMerge?(this.currentVerticalMerge[r]=t,t.rowSpan=1):this.currentVerticalMerge[r]&&(this.currentVerticalMerge[r].rowSpan+=1,t.style.display="none"):this.currentVerticalMerge[r]=null,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.span&&(t.colSpan=e.span),this.currentCellPosition.col+=t.colSpan,t}renderVmlPicture(e){var t=l("div");return this.renderChildren(e,t),t}renderVmlElement(e){var t,r,a=c("svg");a.setAttribute("style",e.cssStyleText);const n=this.renderVmlChildElement(e);return(null===(t=e.imageHref)||void 0===t?void 0:t.id)&&(null===(r=this.document)||void 0===r||r.loadDocumentImage(e.imageHref.id,this.currentPart).then(e=>n.setAttribute("href",e))),a.appendChild(n),requestAnimationFrame(()=>{const e=a.firstElementChild.getBBox();a.setAttribute("width",""+Math.ceil(e.x+e.width)),a.setAttribute("height",""+Math.ceil(e.y+e.height))}),a}renderVmlChildElement(e){const t=c(e.tagName);Object.entries(e.attrs).forEach(([e,r])=>t.setAttribute(e,r));for(let r of e.children)r.type==a.DomType.VmlElement?t.appendChild(this.renderVmlChildElement(r)):t.appendChild(...(0,n.asArray)(this.renderElement(r)));return t}renderMmlRadical(e){var t;const r=e.children.find(e=>e.type==a.DomType.MmlBase);if(null===(t=e.props)||void 0===t?void 0:t.hideDegree)return f(o,"msqrt",null,this.renderElements([r]));const n=e.children.find(e=>e.type==a.DomType.MmlDegree);return f(o,"mroot",null,this.renderElements([r,n]))}renderMmlDelimiter(e){var t,r;const a=[];return a.push(f(o,"mo",null,[null!==(t=e.props.beginChar)&&void 0!==t?t:"("])),a.push(...this.renderElements(e.children)),a.push(f(o,"mo",null,[null!==(r=e.props.endChar)&&void 0!==r?r:")"])),f(o,"mrow",null,a)}renderMmlNary(e){var t,r;const s=[],i=(0,n.keyBy)(e.children,e=>e.type),l=i[a.DomType.MmlSuperArgument],c=i[a.DomType.MmlSubArgument],u=l?f(o,"mo",null,(0,n.asArray)(this.renderElement(l))):null,h=c?f(o,"mo",null,(0,n.asArray)(this.renderElement(c))):null,d=f(o,"mo",null,[null!==(r=null===(t=e.props)||void 0===t?void 0:t.char)&&void 0!==r?r:"∫"]);return u||h?s.push(f(o,"munderover",null,[d,h,u])):u?s.push(f(o,"mover",null,[d,u])):h?s.push(f(o,"munder",null,[d,h])):s.push(d),s.push(...this.renderElements(i[a.DomType.MmlBase].children)),f(o,"mrow",null,s)}renderMmlPreSubSuper(e){const t=[],r=(0,n.keyBy)(e.children,e=>e.type),s=r[a.DomType.MmlSuperArgument],i=r[a.DomType.MmlSubArgument],l=s?f(o,"mo",null,(0,n.asArray)(this.renderElement(s))):null,c=i?f(o,"mo",null,(0,n.asArray)(this.renderElement(i))):null,u=f(o,"mo",null);return t.push(f(o,"msubsup",null,[u,c,l])),t.push(...this.renderElements(r[a.DomType.MmlBase].children)),f(o,"mrow",null,t)}renderMmlGroupChar(e){const t="bot"===e.props.verticalJustification?"mover":"munder",r=this.renderContainerNS(e,o,t);return e.props.char&&r.appendChild(f(o,"mo",null,[e.props.char])),r}renderMmlBar(e){const t=this.renderContainerNS(e,o,"mrow");switch(e.props.position){case"top":t.style.textDecoration="overline";break;case"bottom":t.style.textDecoration="underline"}return t}renderMmlRun(e){const t=f(o,"ms");return this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e,t),t}renderMllList(e){const t=f(o,"mtable");this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e);for(let r of this.renderChildren(e))t.appendChild(f(o,"mtr",null,[f(o,"mtd",null,[r])]));return t}renderStyleValues(e,t){for(let r in e)r.startsWith("$")?t.setAttribute(r.slice(1),e[r]):t.style[r]=e[r]}renderClass(e,t){e.className&&(t.className=e.className),e.styleName&&t.classList.add(this.processStyleName(e.styleName))}findStyle(e){var t;return e&&(null===(t=this.styleMap)||void 0===t?void 0:t[e])}numberingClass(e,t){return`${this.className}-num-${e}-${t}`}tabStopClass(){return this.className+"-tab-stop"}styleToString(e,t,r=null){let a=e+" {\r\n";for(const n in t)n.startsWith("$")||(a+=` ${n}: ${t[n]};\r\n`);return r&&(a+=r),a+"}\r\n"}numberingCounter(e,t){return`${this.className}-num-${e}-${t}`}levelTextToContent(e,t,r,a){var n;return`"${e.replace(/%\d*/g,e=>{let t=parseInt(e.substring(1),10)-1;return`"counter(${this.numberingCounter(r,t)}, ${a})"`})}${null!==(n={tab:"\\9",space:"\\a0"}[t])&&void 0!==n?n:""}"`}numFormatToCssValue(e){var t;return null!==(t={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"}[e])&&void 0!==t?t:e}refreshTabStops(){this.options.experimental&&(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout(()=>{const e=(0,s.computePixelToPoint)();for(let t of this.currentTabs)(0,s.updateTabStop)(t.span,t.stops,this.defaultTabSize,e)},500))}}},630:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateTabStop=t.computePixelToPoint=void 0;const r={pos:0,leader:"none",style:"left"};function a(e){return parseFloat(e)}t.computePixelToPoint=function(e=document.body){const t=document.createElement("div");t.style.width="100pt",e.appendChild(t);const r=100/t.offsetWidth;return e.removeChild(t),r},t.updateTabStop=function(e,t,n,s=.75){const i=e.closest("p"),o=e.getBoundingClientRect(),l=i.getBoundingClientRect(),c=getComputedStyle(i),f=(null==t?void 0:t.length)>0?t.map(e=>({pos:a(e.position),leader:e.leader,style:e.style})).sort((e,t)=>e.pos-t.pos):[r],u=f[f.length-1],h=l.width*s,d=a(n);let p=u.pos+d;if(p"clear"!=e.style&&e.pos>g);if(null==v)return;let w=1;if("right"==v.style||"center"==v.style){const t=Array.from(i.querySelectorAll("."+e.className)),r=t.indexOf(e)+1,a=document.createRange();a.setStart(e,1),r{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlEndnote=t.WmlFootnote=t.WmlBaseNote=void 0;const a=r(120);class n{}t.WmlBaseNote=n,t.WmlFootnote=class extends n{constructor(){super(...arguments),this.type=a.DomType.Footnote}},t.WmlEndnote=class extends n{constructor(){super(...arguments),this.type=a.DomType.Endnote}}},735:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EndnotesPart=t.FootnotesPart=t.BaseNotePart=void 0;const a=r(530),n=r(881);class s extends a.Part{constructor(e,t,r){super(e,t),this._documentParser=r}}t.BaseNotePart=s,t.FootnotesPart=class extends s{constructor(e,t,r){super(e,t,r)}parseXml(e){this.notes=this._documentParser.parseNotes(e,"footnote",n.WmlFootnote)}},t.EndnotesPart=class extends s{constructor(e,t,r){super(e,t,r)}parseXml(e){this.notes=this._documentParser.parseNotes(e,"endnote",n.WmlEndnote)}}},527:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberingPart=void 0;const a=r(530),n=r(682);class s extends a.Part{constructor(e,t,r){super(e,t),this._documentParser=r}parseXml(e){Object.assign(this,(0,n.parseNumberingPart)(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)}}t.NumberingPart=s},682:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumberingBulletPicture=t.parseNumberingLevelOverrride=t.parseNumberingLevel=t.parseAbstractNumbering=t.parseNumbering=t.parseNumberingPart=void 0;const a=r(109),n=r(488);function s(e,t){let r={id:t.attr(e,"numId"),overrides:[]};for(let a of t.elements(e))switch(a.localName){case"abstractNumId":r.abstractId=t.attr(a,"val");break;case"lvlOverride":r.overrides.push(l(a,t))}return r}function i(e,t){let r={id:t.attr(e,"abstractNumId"),levels:[]};for(let a of t.elements(e))switch(a.localName){case"name":r.name=t.attr(a,"val");break;case"multiLevelType":r.multiLevelType=t.attr(a,"val");break;case"numStyleLink":r.numberingStyleLink=t.attr(a,"val");break;case"styleLink":r.styleLink=t.attr(a,"val");break;case"lvl":r.levels.push(o(a,t))}return r}function o(e,t){let r={level:t.intAttr(e,"ilvl")};for(let s of t.elements(e))switch(s.localName){case"start":r.start=t.attr(s,"val");break;case"lvlRestart":r.restart=t.intAttr(s,"val");break;case"numFmt":r.format=t.attr(s,"val");break;case"lvlText":r.text=t.attr(s,"val");break;case"lvlJc":r.justification=t.attr(s,"val");break;case"lvlPicBulletId":r.bulletPictureId=t.attr(s,"val");break;case"pStyle":r.paragraphStyle=t.attr(s,"val");break;case"pPr":r.paragraphProps=(0,a.parseParagraphProperties)(s,t);break;case"rPr":r.runProps=(0,n.parseRunProperties)(s,t)}return r}function l(e,t){let r={level:t.intAttr(e,"ilvl")};for(let a of t.elements(e))switch(a.localName){case"startOverride":r.start=t.intAttr(a,"val");break;case"lvl":r.numberingLevel=o(a,t)}return r}function c(e,t){var r=t.element(e,"pict"),a=r&&t.element(r,"shape"),n=a&&t.element(a,"imagedata");return n?{id:t.attr(e,"numPicBulletId"),referenceId:t.attr(n,"id"),style:t.attr(a,"style")}:null}t.parseNumberingPart=function(e,t){let r={numberings:[],abstractNumberings:[],bulletPictures:[]};for(let a of t.elements(e))switch(a.localName){case"num":r.numberings.push(s(a,t));break;case"abstractNum":r.abstractNumberings.push(i(a,t));break;case"numPicBullet":r.bulletPictures.push(c(a,t))}return r},t.parseNumbering=s,t.parseAbstractNumbering=i,t.parseNumberingLevel=o,t.parseNumberingLevelOverrride=l,t.parseNumberingBulletPicture=c},472:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XmlParser=t.serializeXmlString=t.parseXmlString=void 0;const a=r(149);t.parseXmlString=function(e,t=!1){var r;t&&(e=e.replace(/<[?].*[?]>/,"")),e=65279===(r=e).charCodeAt(0)?r.substring(1):r;const a=(new DOMParser).parseFromString(e,"application/xml"),n=null===(s=a.getElementsByTagName("parsererror")[0])||void 0===s?void 0:s.textContent;var s;if(n)throw new Error(n);return a},t.serializeXmlString=function(e){return(new XMLSerializer).serializeToString(e)};class n{elements(e,t=null){const r=[];for(let a=0,n=e.childNodes.length;a{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPart=void 0;const a=r(530),n=r(846);class s extends a.Part{constructor(e,t){super(e,t)}parseXml(e){this.settings=(0,n.parseSettings)(e,this._package.xmlParser)}}t.SettingsPart=s},846:(e,t)=>{function r(e,t){var r={defaultNoteIds:[]};for(let a of t.elements(e))switch(a.localName){case"numFmt":r.nummeringFormat=t.attr(a,"val");break;case"footnote":case"endnote":r.defaultNoteIds.push(t.attr(a,"id"))}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.parseNoteProperties=t.parseSettings=void 0,t.parseSettings=function(e,t){var a={};for(let n of t.elements(e))switch(n.localName){case"defaultTabStop":a.defaultTabStop=t.lengthAttr(n,"val");break;case"footnotePr":a.footnoteProps=r(n,t);break;case"endnotePr":a.endnoteProps=r(n,t);break;case"autoHyphenation":a.autoHyphenation=t.boolAttr(n,"val")}return a},t.parseNoteProperties=r},240:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StylesPart=void 0;const a=r(530);class n extends a.Part{constructor(e,t,r){super(e,t),this._documentParser=r}parseXml(e){this.styles=this._documentParser.parseStylesFile(e)}}t.StylesPart=n},893:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemePart=void 0;const a=r(530),n=r(55);class s extends a.Part{constructor(e,t){super(e,t)}parseXml(e){this.theme=(0,n.parseTheme)(e,this._package.xmlParser)}}t.ThemePart=s},55:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseFontInfo=t.parseFontScheme=t.parseColorScheme=t.parseTheme=t.DmlTheme=void 0;class r{}function a(e,t){var r={name:t.attr(e,"name"),colors:{}};for(let s of t.elements(e)){var a=t.element(s,"srgbClr"),n=t.element(s,"sysClr");a?r.colors[s.localName]=t.attr(a,"val"):n&&(r.colors[s.localName]=t.attr(n,"lastClr"))}return r}function n(e,t){var r={name:t.attr(e,"name")};for(let a of t.elements(e))switch(a.localName){case"majorFont":r.majorFont=s(a,t);break;case"minorFont":r.minorFont=s(a,t)}return r}function s(e,t){return{latinTypeface:t.elementAttr(e,"latin","typeface"),eaTypeface:t.elementAttr(e,"ea","typeface"),csTypeface:t.elementAttr(e,"cs","typeface")}}t.DmlTheme=r,t.parseTheme=function(e,t){var s=new r,i=t.element(e,"themeElements");for(let r of t.elements(i))switch(r.localName){case"clrScheme":s.colorScheme=a(r,t);break;case"fontScheme":s.fontScheme=n(r,t)}return s},t.parseColorScheme=a,t.parseFontScheme=n,t.parseFontInfo=s},593:(e,t)=>{function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.asArray=t.formatCssRules=t.parseCssRules=t.mergeDeep=t.isString=t.isObject=t.blobToBase64=t.keyBy=t.resolvePath=t.splitPath=t.escapeClassName=void 0,t.escapeClassName=function(e){return null==e?void 0:e.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()},t.splitPath=function(e){let t=e.lastIndexOf("/")+1;return[0==t?"":e.substring(0,t),0==t?e:e.substring(t)]},t.resolvePath=function(e,t){try{const r="http://docx/";return new URL(e,r+t).toString().substring(r.length)}catch(r){return`${t}${e}`}},t.keyBy=function(e,t){return e.reduce((e,r)=>(e[t(r)]=r,e),{})},t.blobToBase64=function(e){return new Promise((t,r)=>{const a=new FileReader;a.onloadend=()=>t(a.result),a.onerror=()=>r(),a.readAsDataURL(e)})},t.isObject=r,t.isString=function(e){return"string"==typeof e||e instanceof String},t.mergeDeep=function e(t,...a){var n;if(!a.length)return t;const s=a.shift();if(r(t)&&r(s))for(const i in s)r(s[i])?e(null!==(n=t[i])&&void 0!==n?n:t[i]={},s[i]):t[i]=s[i];return e(t,...a)},t.parseCssRules=function(e){const t={};for(const r of e.split(";")){const[e,a]=r.split(":");t[e]=a}return t},t.formatCssRules=function(e){return Object.entries(e).map((e,t)=>`${e}: ${t}`).join(";")},t.asArray=function(e){return Array.isArray(e)?e:[e]}},320:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseVmlElement=t.VmlElement=void 0;const a=r(149),n=r(120),s=r(472);class i extends n.OpenXmlElementBase{constructor(){super(...arguments),this.type=n.DomType.VmlElement,this.attrs={}}}function o(e){var t;return{stroke:s.default.attr(e,"color"),"stroke-width":null!==(t=s.default.lengthAttr(e,"weight",a.LengthUsage.Emu))&&void 0!==t?t:"1px"}}function l(e){return e.split(",")}t.VmlElement=i,t.parseVmlElement=function e(t,r){var a=new i;switch(t.localName){case"rect":a.tagName="rect",Object.assign(a.attrs,{width:"100%",height:"100%"});break;case"oval":a.tagName="ellipse",Object.assign(a.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":a.tagName="line";break;case"shape":a.tagName="g";break;case"textbox":a.tagName="foreignObject",Object.assign(a.attrs,{width:"100%",height:"100%"});break;default:return null}for(const n of s.default.attrs(t))switch(n.localName){case"style":a.cssStyleText=n.value;break;case"fillcolor":a.attrs.fill=n.value;break;case"from":const[e,t]=l(n.value);Object.assign(a.attrs,{x1:e,y1:t});break;case"to":const[r,s]=l(n.value);Object.assign(a.attrs,{x2:r,y2:s})}for(const n of s.default.elements(t))switch(n.localName){case"stroke":Object.assign(a.attrs,o(n));break;case"fill":Object.assign(a.attrs,{});break;case"imagedata":a.tagName="image",Object.assign(a.attrs,{width:"100%",height:"100%"}),a.imageHref={id:s.default.attr(n,"id"),title:s.default.attr(n,"title")};break;case"txbxContent":a.children.push(...r.parseBodyElements(n));break;default:const t=e(n,r);t&&a.children.push(t)}return a}},213:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.deobfuscate=t.WordDocument=void 0;const a=r(461),n=r(380),s=r(522),i=r(448),o=r(593),l=r(527),c=r(240),f=r(985),u=r(665),h=r(162),d=r(893),p=r(735),m=r(287),b=r(177),g=[{type:a.RelationshipTypes.OfficeDocument,target:"word/document.xml"},{type:a.RelationshipTypes.ExtendedProperties,target:"docProps/app.xml"},{type:a.RelationshipTypes.CoreProperties,target:"docProps/core.xml"},{type:a.RelationshipTypes.CustomProperties,target:"docProps/custom.xml"}];class v{constructor(){this.parts=[],this.partsMap={}}static async load(e,t,r){var a=new v;return a._options=r,a._parser=t,a._package=await s.OpenXmlPackage.load(e,r),a.rels=await a._package.loadRelationships(),await Promise.all(g.map(e=>{var t;const r=null!==(t=a.rels.find(t=>t.type===e.type))&&void 0!==t?t:e;return a.loadRelationshipPart(r.target,r.type)})),a}save(e="blob"){return this._package.save(e)}async loadRelationshipPart(e,t){var r;if(this.partsMap[e])return this.partsMap[e];if(!this._package.get(e))return null;let s=null;switch(t){case a.RelationshipTypes.OfficeDocument:this.documentPart=s=new i.DocumentPart(this._package,e,this._parser);break;case a.RelationshipTypes.FontTable:this.fontTablePart=s=new n.FontTablePart(this._package,e);break;case a.RelationshipTypes.Numbering:this.numberingPart=s=new l.NumberingPart(this._package,e,this._parser);break;case a.RelationshipTypes.Styles:this.stylesPart=s=new c.StylesPart(this._package,e,this._parser);break;case a.RelationshipTypes.Theme:this.themePart=s=new d.ThemePart(this._package,e);break;case a.RelationshipTypes.Footnotes:this.footnotesPart=s=new p.FootnotesPart(this._package,e,this._parser);break;case a.RelationshipTypes.Endnotes:this.endnotesPart=s=new p.EndnotesPart(this._package,e,this._parser);break;case a.RelationshipTypes.Footer:s=new f.FooterPart(this._package,e,this._parser);break;case a.RelationshipTypes.Header:s=new f.HeaderPart(this._package,e,this._parser);break;case a.RelationshipTypes.CoreProperties:this.corePropsPart=s=new h.CorePropsPart(this._package,e);break;case a.RelationshipTypes.ExtendedProperties:this.extendedPropsPart=s=new u.ExtendedPropsPart(this._package,e);break;case a.RelationshipTypes.CustomProperties:s=new b.CustomPropsPart(this._package,e);break;case a.RelationshipTypes.Settings:this.settingsPart=s=new m.SettingsPart(this._package,e)}if(null==s)return Promise.resolve(null);if(this.partsMap[e]=s,this.parts.push(s),await s.load(),(null===(r=s.rels)||void 0===r?void 0:r.length)>0){const[e]=(0,o.splitPath)(s.path);await Promise.all(s.rels.map(t=>this.loadRelationshipPart((0,o.resolvePath)(t.target,e),t.type)))}return s}async loadDocumentImage(e,t){const r=await this.loadResource(null!=t?t:this.documentPart,e,"blob");return this.blobToURL(r)}async loadNumberingImage(e){const t=await this.loadResource(this.numberingPart,e,"blob");return this.blobToURL(t)}async loadFont(e,t){const r=await this.loadResource(this.fontTablePart,e,"uint8array");return r?this.blobToURL(new Blob([w(r,t)])):r}blobToURL(e){return e?this._options.useBase64URL?(0,o.blobToBase64)(e):URL.createObjectURL(e):null}findPartByRelId(e,t=null){var r,a=(null!==(r=t.rels)&&void 0!==r?r:this.rels).find(t=>t.id==e);const n=t?(0,o.splitPath)(t.path)[0]:"";return a?this.partsMap[(0,o.resolvePath)(a.target,n)]:null}getPathById(e,t){const r=e.rels.find(e=>e.id==t),[a]=(0,o.splitPath)(e.path);return r?(0,o.resolvePath)(r.target,a):null}loadResource(e,t,r){const a=this.getPathById(e,t);return a?this._package.load(a,r):Promise.resolve(null)}}function w(e,t){const r=t.replace(/{|}|-/g,""),a=new Array(16);for(let n=0;n<16;n++)a[16-n-1]=parseInt(r.substr(2*n,2),16);for(let n=0;n<32;n++)e[n]=e[n]^a[n%16];return e}t.WordDocument=v,t.deobfuscate=w},583:e=>{e.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 100%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27m0,75 l5,0 l5,25 l10,-100%27 stroke=%27black%27 fill=%27none%27 vector-effect=%27non-scaling-stroke%27/%3E%3C/svg%3E"},626:t=>{t.exports=e}},r={};function a(e){var n=r[e];if(void 0!==n)return n.exports;var s=r[e]={id:e,exports:{}};return t[e](s,s.exports,a),s.exports}return a.m=t,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.b=document.baseURI||self.location.href,a(667)})())},"3a7b":function(e,t,r){"use strict";var a=r("ebb5"),n=r("b727").findIndex,s=a.aTypedArray,i=a.exportTypedArrayMethod;i("findIndex",(function(e){return n(s(this),e,arguments.length>1?arguments[1]:void 0)}))},"3c5d":function(e,t,r){"use strict";var a=r("da84"),n=r("c65b"),s=r("ebb5"),i=r("07fa"),o=r("182d"),l=r("7b0b"),c=r("d039"),f=a.RangeError,u=a.Int8Array,h=u&&u.prototype,d=h&&h.set,p=s.aTypedArray,m=s.exportTypedArrayMethod,b=!c((function(){var e=new Uint8ClampedArray(2);return n(d,e,{length:1,0:3},1),3!==e[1]})),g=b&&s.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new u(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){p(this);var t=o(arguments.length>1?arguments[1]:void 0,1),r=l(e);if(b)return n(d,this,r,t);var a=this.length,s=i(r),c=0;if(s+t>a)throw f("Wrong length");while(c1?arguments[1]:void 0,(function(e,t){return new(s(e))(t)}))}))},4002:function(e,t,r){"use strict";r("3ca3");var a,n=r("23e7"),s=r("83ab"),i=r("f354"),o=r("da84"),l=r("0366"),c=r("e330"),f=r("cb2d"),u=r("edd0"),h=r("19aa"),d=r("1a2d"),p=r("60da"),m=r("4df4"),b=r("4dae"),g=r("6547").codeAt,v=r("5fb2"),w=r("577e"),y=r("d44e"),k=r("d6d6"),T=r("5352"),_=r("69f3"),E=_.set,S=_.getterFor("URL"),A=T.URLSearchParams,x=T.getState,C=o.URL,R=o.TypeError,P=o.parseInt,O=Math.floor,N=Math.pow,I=c("".charAt),D=c(/./.exec),F=c([].join),M=c(1..toString),L=c([].pop),B=c([].push),U=c("".replace),z=c([].shift),W=c("".split),H=c("".slice),j=c("".toLowerCase),V=c([].unshift),G="Invalid authority",$="Invalid scheme",X="Invalid host",Y="Invalid port",K=/[a-z]/i,Z=/[\d+-.a-z]/i,q=/\d/,J=/^0x/i,Q=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ae=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,se=/[\t\n\r]/g,ie=function(e){var t,r,a,n,s,i,o,l=W(e,".");if(l.length&&""==l[l.length-1]&&l.length--,t=l.length,t>4)return e;for(r=[],a=0;a1&&"0"==I(n,0)&&(s=D(J,n)?16:8,n=H(n,8==s?1:2)),""===n)i=0;else{if(!D(10==s?ee:8==s?Q:te,n))return e;i=P(n,s)}B(r,i)}for(a=0;a=N(256,5-t))return null}else if(i>255)return null;for(o=L(r),a=0;a6)return;a=0;while(h()){if(n=null,a>0){if(!("."==h()&&a<4))return;u++}if(!D(q,h()))return;while(D(q,h())){if(s=P(h(),10),null===n)n=s;else{if(0==n)return;n=10*n+s}if(n>255)return;u++}l[c]=256*l[c]+n,a++,2!=a&&4!=a||c++}if(4!=a)return;break}if(":"==h()){if(u++,!h())return}else if(h())return;l[c++]=t}else{if(null!==f)return;u++,c++,f=c}}if(null!==f){i=c-f,c=7;while(0!=c&&i>0)o=l[c],l[c--]=l[f+i-1],l[f+--i]=o}else if(8!=c)return;return l},le=function(e){for(var t=null,r=1,a=null,n=0,s=0;s<8;s++)0!==e[s]?(n>r&&(t=a,r=n),a=null,n=0):(null===a&&(a=s),++n);return n>r&&(t=a,r=n),t},ce=function(e){var t,r,a,n;if("number"==typeof e){for(t=[],r=0;r<4;r++)V(t,e%256),e=O(e/256);return F(t,".")}if("object"==typeof e){for(t="",a=le(e),r=0;r<8;r++)n&&0===e[r]||(n&&(n=!1),a===r?(t+=r?":":"::",n=!0):(t+=M(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},fe={},ue=p({},fe,{" ":1,'"':1,"<":1,">":1,"`":1}),he=p({},ue,{"#":1,"?":1,"{":1,"}":1}),de=p({},he,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),pe=function(e,t){var r=g(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},me={ftp:21,file:null,http:80,https:443,ws:80,wss:443},be=function(e,t){var r;return 2==e.length&&D(K,I(e,0))&&(":"==(r=I(e,1))||!t&&"|"==r)},ge=function(e){var t;return e.length>1&&be(H(e,0,2))&&(2==e.length||"/"===(t=I(e,2))||"\\"===t||"?"===t||"#"===t)},ve=function(e){return"."===e||"%2e"===j(e)},we=function(e){return e=j(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ye={},ke={},Te={},_e={},Ee={},Se={},Ae={},xe={},Ce={},Re={},Pe={},Oe={},Ne={},Ie={},De={},Fe={},Me={},Le={},Be={},Ue={},ze={},We=function(e,t,r){var a,n,s,i=w(e);if(t){if(n=this.parse(i),n)throw R(n);this.searchParams=null}else{if(void 0!==r&&(a=new We(r,!0)),n=this.parse(i,null,a),n)throw R(n);s=x(new A),s.bindURL(this),this.searchParams=s}};We.prototype={type:"URL",parse:function(e,t,r){var n,s,i,o,l=this,c=t||ye,f=0,u="",h=!1,p=!1,g=!1;e=w(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=U(e,ne,"")),e=U(e,se,""),n=m(e);while(f<=n.length){switch(s=n[f],c){case ye:if(!s||!D(K,s)){if(t)return $;c=Te;continue}u+=j(s),c=ke;break;case ke:if(s&&(D(Z,s)||"+"==s||"-"==s||"."==s))u+=j(s);else{if(":"!=s){if(t)return $;u="",c=Te,f=0;continue}if(t&&(l.isSpecial()!=d(me,u)||"file"==u&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=u,t)return void(l.isSpecial()&&me[l.scheme]==l.port&&(l.port=null));u="","file"==l.scheme?c=Ie:l.isSpecial()&&r&&r.scheme==l.scheme?c=_e:l.isSpecial()?c=xe:"/"==n[f+1]?(c=Ee,f++):(l.cannotBeABaseURL=!0,B(l.path,""),c=Be)}break;case Te:if(!r||r.cannotBeABaseURL&&"#"!=s)return $;if(r.cannotBeABaseURL&&"#"==s){l.scheme=r.scheme,l.path=b(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,c=ze;break}c="file"==r.scheme?Ie:Se;continue;case _e:if("/"!=s||"/"!=n[f+1]){c=Se;continue}c=Ce,f++;break;case Ee:if("/"==s){c=Re;break}c=Le;continue;case Se:if(l.scheme=r.scheme,s==a)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=b(r.path),l.query=r.query;else if("/"==s||"\\"==s&&l.isSpecial())c=Ae;else if("?"==s)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=b(r.path),l.query="",c=Ue;else{if("#"!=s){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=b(r.path),l.path.length--,c=Le;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=b(r.path),l.query=r.query,l.fragment="",c=ze}break;case Ae:if(!l.isSpecial()||"/"!=s&&"\\"!=s){if("/"!=s){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,c=Le;continue}c=Re}else c=Ce;break;case xe:if(c=Ce,"/"!=s||"/"!=I(u,f+1))continue;f++;break;case Ce:if("/"!=s&&"\\"!=s){c=Re;continue}break;case Re:if("@"==s){h&&(u="%40"+u),h=!0,i=m(u);for(var v=0;v65535)return Y;l.port=l.isSpecial()&&T===me[l.scheme]?null:T,u=""}if(t)return;c=Me;continue}return Y}u+=s;break;case Ie:if(l.scheme="file","/"==s||"\\"==s)c=De;else{if(!r||"file"!=r.scheme){c=Le;continue}if(s==a)l.host=r.host,l.path=b(r.path),l.query=r.query;else if("?"==s)l.host=r.host,l.path=b(r.path),l.query="",c=Ue;else{if("#"!=s){ge(F(b(n,f),""))||(l.host=r.host,l.path=b(r.path),l.shortenPath()),c=Le;continue}l.host=r.host,l.path=b(r.path),l.query=r.query,l.fragment="",c=ze}}break;case De:if("/"==s||"\\"==s){c=Fe;break}r&&"file"==r.scheme&&!ge(F(b(n,f),""))&&(be(r.path[0],!0)?B(l.path,r.path[0]):l.host=r.host),c=Le;continue;case Fe:if(s==a||"/"==s||"\\"==s||"?"==s||"#"==s){if(!t&&be(u))c=Le;else if(""==u){if(l.host="",t)return;c=Me}else{if(o=l.parseHost(u),o)return o;if("localhost"==l.host&&(l.host=""),t)return;u="",c=Me}continue}u+=s;break;case Me:if(l.isSpecial()){if(c=Le,"/"!=s&&"\\"!=s)continue}else if(t||"?"!=s)if(t||"#"!=s){if(s!=a&&(c=Le,"/"!=s))continue}else l.fragment="",c=ze;else l.query="",c=Ue;break;case Le:if(s==a||"/"==s||"\\"==s&&l.isSpecial()||!t&&("?"==s||"#"==s)){if(we(u)?(l.shortenPath(),"/"==s||"\\"==s&&l.isSpecial()||B(l.path,"")):ve(u)?"/"==s||"\\"==s&&l.isSpecial()||B(l.path,""):("file"==l.scheme&&!l.path.length&&be(u)&&(l.host&&(l.host=""),u=I(u,0)+":"),B(l.path,u)),u="","file"==l.scheme&&(s==a||"?"==s||"#"==s))while(l.path.length>1&&""===l.path[0])z(l.path);"?"==s?(l.query="",c=Ue):"#"==s&&(l.fragment="",c=ze)}else u+=pe(s,he);break;case Be:"?"==s?(l.query="",c=Ue):"#"==s?(l.fragment="",c=ze):s!=a&&(l.path[0]+=pe(s,fe));break;case Ue:t||"#"!=s?s!=a&&("'"==s&&l.isSpecial()?l.query+="%27":l.query+="#"==s?"%23":pe(s,fe)):(l.fragment="",c=ze);break;case ze:s!=a&&(l.fragment+=pe(s,ue));break}f++}},parseHost:function(e){var t,r,a;if("["==I(e,0)){if("]"!=I(e,e.length-1))return X;if(t=oe(H(e,1,-1)),!t)return X;this.host=t}else if(this.isSpecial()){if(e=v(e),D(re,e))return X;if(t=ie(e),null===t)return X;this.host=t}else{if(D(ae,e))return X;for(t="",r=m(e),a=0;a1?arguments[1]:void 0,a=E(t,new We(e,!1,r));s||(t.href=a.serialize(),t.origin=a.getOrigin(),t.protocol=a.getProtocol(),t.username=a.getUsername(),t.password=a.getPassword(),t.host=a.getHost(),t.hostname=a.getHostname(),t.port=a.getPort(),t.pathname=a.getPathname(),t.search=a.getSearch(),t.searchParams=a.getSearchParams(),t.hash=a.getHash())},je=He.prototype,Ve=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(s&&(u(je,"href",Ve("serialize","setHref")),u(je,"origin",Ve("getOrigin")),u(je,"protocol",Ve("getProtocol","setProtocol")),u(je,"username",Ve("getUsername","setUsername")),u(je,"password",Ve("getPassword","setPassword")),u(je,"host",Ve("getHost","setHost")),u(je,"hostname",Ve("getHostname","setHostname")),u(je,"port",Ve("getPort","setPort")),u(je,"pathname",Ve("getPathname","setPathname")),u(je,"search",Ve("getSearch","setSearch")),u(je,"searchParams",Ve("getSearchParams")),u(je,"hash",Ve("getHash","setHash"))),f(je,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),f(je,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),C){var Ge=C.createObjectURL,$e=C.revokeObjectURL;Ge&&f(He,"createObjectURL",l(Ge,C)),$e&&f(He,"revokeObjectURL",l($e,C))}y(He,"URL"),n({global:!0,constructor:!0,forced:!i,sham:!s},{URL:He})},"466d":function(e,t,r){"use strict";var a=r("c65b"),n=r("d784"),s=r("825a"),i=r("7234"),o=r("50c4"),l=r("577e"),c=r("1d80"),f=r("dc4a"),u=r("8aa5"),h=r("14c3");n("match",(function(e,t,r){return[function(t){var r=c(this),n=i(t)?void 0:f(t,e);return n?a(n,t,r):new RegExp(t)[e](l(r))},function(e){var a=s(this),n=l(e),i=r(t,a,n);if(i.done)return i.value;if(!a.global)return h(a,n);var c=a.unicode;a.lastIndex=0;var f,d=[],p=0;while(null!==(f=h(a,n))){var m=l(f[0]);d[p]=m,""===m&&(a.lastIndex=u(n,o(a.lastIndex),c)),p++}return 0===p?null:d}]}))},"4b11":function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"512ce":function(e,t,r){var a=r("342f"),n=a.match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},5352:function(e,t,r){"use strict";r("e260");var a=r("23e7"),n=r("da84"),s=r("c65b"),i=r("e330"),o=r("83ab"),l=r("f354"),c=r("cb2d"),f=r("6964"),u=r("d44e"),h=r("dcc3"),d=r("69f3"),p=r("19aa"),m=r("1626"),b=r("1a2d"),g=r("0366"),v=r("f5df"),w=r("825a"),y=r("861d"),k=r("577e"),T=r("7c73"),_=r("5c6c"),E=r("9a1f"),S=r("35a1"),A=r("d6d6"),x=r("b622"),C=r("addb"),R=x("iterator"),P="URLSearchParams",O=P+"Iterator",N=d.set,I=d.getterFor(P),D=d.getterFor(O),F=Object.getOwnPropertyDescriptor,M=function(e){if(!o)return n[e];var t=F(n,e);return t&&t.value},L=M("fetch"),B=M("Request"),U=M("Headers"),z=B&&B.prototype,W=U&&U.prototype,H=n.RegExp,j=n.TypeError,V=n.decodeURIComponent,G=n.encodeURIComponent,$=i("".charAt),X=i([].join),Y=i([].push),K=i("".replace),Z=i([].shift),q=i([].splice),J=i("".split),Q=i("".slice),ee=/\+/g,te=Array(4),re=function(e){return te[e-1]||(te[e-1]=H("((?:%[\\da-f]{2}){"+e+"})","gi"))},ae=function(e){try{return V(e)}catch(t){return e}},ne=function(e){var t=K(e,ee," "),r=4;try{return V(t)}catch(a){while(r)t=K(t,re(r--),ae);return t}},se=/[!'()~]|%20/g,ie={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},oe=function(e){return ie[e]},le=function(e){return K(G(e),se,oe)},ce=h((function(e,t){N(this,{type:O,iterator:E(I(e).entries),kind:t})}),"Iterator",(function(){var e=D(this),t=e.kind,r=e.iterator.next(),a=r.value;return r.done||(r.value="keys"===t?a.key:"values"===t?a.value:[a.key,a.value]),r}),!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(y(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===$(e,0)?Q(e,1):e:k(e)))};fe.prototype={type:P,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,a,n,i,o,l,c=S(e);if(c){t=E(e,c),r=t.next;while(!(a=s(r,t)).done){if(n=E(w(a.value)),i=n.next,(o=s(i,n)).done||(l=s(i,n)).done||!s(i,n).done)throw j("Expected sequence with length 2");Y(this.entries,{key:k(o.value),value:k(l.value)})}}else for(var f in e)b(e,f)&&Y(this.entries,{key:f,value:k(e[f])})},parseQuery:function(e){if(e){var t,r,a=J(e,"&"),n=0;while(n0?arguments[0]:void 0;N(this,new fe(e))},he=ue.prototype;if(f(he,{append:function(e,t){A(arguments.length,2);var r=I(this);Y(r.entries,{key:k(e),value:k(t)}),r.updateURL()},delete:function(e){A(arguments.length,1);var t=I(this),r=t.entries,a=k(e),n=0;while(nt.key?1:-1})),e.updateURL()},forEach:function(e){var t,r=I(this).entries,a=g(e,arguments.length>1?arguments[1]:void 0),n=0;while(n1?me(arguments[1]):{})}}),m(B)){var be=function(e){return p(this,z),new B(e,arguments.length>1?me(arguments[1]):{})};z.constructor=be,be.prototype=z,a({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:be})}}e.exports={URLSearchParams:ue,getState:I}},"5cc6":function(e,t,r){var a=r("74e8");a("Uint8",(function(e){return function(t,r,a){return e(this,t,r,a)}}))},"5f96":function(e,t,r){"use strict";var a=r("ebb5"),n=r("e330"),s=a.aTypedArray,i=a.exportTypedArrayMethod,o=n([].join);i("join",(function(e){return o(s(this),e)}))},"5fb2":function(e,t,r){"use strict";var a=r("e330"),n=2147483647,s=36,i=1,o=26,l=38,c=700,f=72,u=128,h="-",d=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",b=s-i,g=RangeError,v=a(p.exec),w=Math.floor,y=String.fromCharCode,k=a("".charCodeAt),T=a([].join),_=a([].push),E=a("".replace),S=a("".split),A=a("".toLowerCase),x=function(e){var t=[],r=0,a=e.length;while(r=55296&&n<=56319&&r>1,e+=w(e/t);while(e>b*o>>1)e=w(e/b),a+=s;return w(a+(b+1)*e/(e+l))},P=function(e){var t=[];e=x(e);var r,a,l=e.length,c=u,d=0,p=f;for(r=0;r=c&&aw((n-d)/E))throw g(m);for(d+=(k-c)*E,c=k,r=0;rn)throw g(m);if(a==c){var S=d,A=s;while(1){var P=A<=p?i:A>=p+o?o:A-p;if(S>8&255]},X=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Y=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},K=function(e){return j(e,23,4)},Z=function(e){return j(e,52,8)},q=function(e,t){w(e[P],t,{get:function(){return A(this)[t]}})},J=function(e,t,r,a){var n=p(r),s=A(e);if(n+t>s.byteLength)throw z(N);var i=A(s.buffer).bytes,o=n+s.byteOffset,l=k(i,o,o+t);return a?l:H(l)},Q=function(e,t,r,a,n,s){var i=p(r),o=A(e);if(i+t>o.byteLength)throw z(N);for(var l=A(o.buffer).bytes,c=i+o.byteOffset,f=a(+n),u=0;uae;)(te=re[ae++])in D||l(D,te,I[te]);F.constructor=D}g&&b(L)!==B&&g(L,B);var ne=new M(new D(2)),se=n(L.setInt8);ne.setInt8(0,2147483648),ne.setInt8(1,2147483649),!ne.getInt8(0)&&ne.getInt8(1)||c(L,{setInt8:function(e,t){se(this,e,t<<24>>24)},setUint8:function(e,t){se(this,e,t<<24>>24)}},{unsafe:!0})}else D=function(e){u(this,F);var t=p(e);x(this,{bytes:W(U(t),0),byteLength:t}),s||(this.byteLength=t)},F=D[P],M=function(e,t,r){u(this,L),u(e,F);var a=A(e).byteLength,n=h(t);if(n<0||n>a)throw z("Wrong offset");if(r=void 0===r?a-n:d(r),n+r>a)throw z(O);x(this,{buffer:e,byteLength:r,byteOffset:n}),s||(this.buffer=e,this.byteLength=r,this.byteOffset=n)},L=M[P],s&&(q(D,"byteLength"),q(M,"buffer"),q(M,"byteLength"),q(M,"byteOffset")),c(L,{getInt8:function(e){return J(this,1,e)[0]<<24>>24},getUint8:function(e){return J(this,1,e)[0]},getInt16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Y(J(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Y(J(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return V(J(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return V(J(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Q(this,1,e,G,t)},setUint8:function(e,t){Q(this,1,e,G,t)},setInt16:function(e,t){Q(this,2,e,$,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Q(this,2,e,$,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Q(this,4,e,X,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Q(this,4,e,X,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Q(this,4,e,K,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Q(this,8,e,Z,t,arguments.length>2?arguments[2]:void 0)}});T(D,C),T(M,R),e.exports={ArrayBuffer:D,DataView:M}},"649e":function(e,t,r){"use strict";var a=r("ebb5"),n=r("b727").some,s=a.aTypedArray,i=a.exportTypedArrayMethod;i("some",(function(e){return n(s(this),e,arguments.length>1?arguments[1]:void 0)}))},6964:function(e,t,r){var a=r("cb2d");e.exports=function(e,t,r){for(var n in t)a(e,n,t[n],r);return e}},"72f7":function(e,t,r){"use strict";var a=r("ebb5").exportTypedArrayMethod,n=r("d039"),s=r("da84"),i=r("e330"),o=s.Uint8Array,l=o&&o.prototype||{},c=[].toString,f=i([].join);n((function(){c.call({})}))&&(c=function(){return f(this)});var u=l.toString!=c;a("toString",c,u)},"735e":function(e,t,r){"use strict";var a=r("ebb5"),n=r("81d5"),s=r("f495"),i=r("f5df"),o=r("c65b"),l=r("e330"),c=r("d039"),f=a.aTypedArray,u=a.exportTypedArrayMethod,h=l("".slice),d=c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}));u("fill",(function(e){var t=arguments.length;f(this);var r="Big"===h(i(this),0,3)?s(e):+e;return o(n,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),d)},"74e8":function(e,t,r){"use strict";var a=r("23e7"),n=r("da84"),s=r("c65b"),i=r("83ab"),o=r("8aa7"),l=r("ebb5"),c=r("621a"),f=r("19aa"),u=r("5c6c"),h=r("9112"),d=r("eac5"),p=r("50c4"),m=r("0b25"),b=r("182d"),g=r("a04b"),v=r("1a2d"),w=r("f5df"),y=r("861d"),k=r("d9b5"),T=r("7c73"),_=r("3a9b"),E=r("d2bb"),S=r("241c").f,A=r("a078"),x=r("b727").forEach,C=r("2626"),R=r("9bf2"),P=r("06cf"),O=r("69f3"),N=r("7156"),I=O.get,D=O.set,F=O.enforce,M=R.f,L=P.f,B=Math.round,U=n.RangeError,z=c.ArrayBuffer,W=z.prototype,H=c.DataView,j=l.NATIVE_ARRAY_BUFFER_VIEWS,V=l.TYPED_ARRAY_TAG,G=l.TypedArray,$=l.TypedArrayPrototype,X=l.aTypedArrayConstructor,Y=l.isTypedArray,K="BYTES_PER_ELEMENT",Z="Wrong length",q=function(e,t){X(e);var r=0,a=t.length,n=new e(a);while(a>r)n[r]=t[r++];return n},J=function(e,t){M(e,t,{get:function(){return I(this)[t]}})},Q=function(e){var t;return _(W,e)||"ArrayBuffer"==(t=w(e))||"SharedArrayBuffer"==t},ee=function(e,t){return Y(e)&&!k(t)&&t in e&&d(+t)&&t>=0},te=function(e,t){return t=g(t),ee(e,t)?u(2,e[t]):L(e,t)},re=function(e,t,r){return t=g(t),!(ee(e,t)&&y(r)&&v(r,"value"))||v(r,"get")||v(r,"set")||r.configurable||v(r,"writable")&&!r.writable||v(r,"enumerable")&&!r.enumerable?M(e,t,r):(e[t]=r.value,e)};i?(j||(P.f=te,R.f=re,J($,"buffer"),J($,"byteOffset"),J($,"byteLength"),J($,"length")),a({target:"Object",stat:!0,forced:!j},{getOwnPropertyDescriptor:te,defineProperty:re}),e.exports=function(e,t,r){var i=e.match(/\d+$/)[0]/8,l=e+(r?"Clamped":"")+"Array",c="get"+e,u="set"+e,d=n[l],g=d,v=g&&g.prototype,w={},k=function(e,t){var r=I(e);return r.view[c](t*i+r.byteOffset,!0)},_=function(e,t,a){var n=I(e);r&&(a=(a=B(a))<0?0:a>255?255:255&a),n.view[u](t*i+n.byteOffset,a,!0)},R=function(e,t){M(e,t,{get:function(){return k(this,t)},set:function(e){return _(this,t,e)},enumerable:!0})};j?o&&(g=t((function(e,t,r,a){return f(e,v),N(function(){return y(t)?Q(t)?void 0!==a?new d(t,b(r,i),a):void 0!==r?new d(t,b(r,i)):new d(t):Y(t)?q(g,t):s(A,g,t):new d(m(t))}(),e,g)})),E&&E(g,G),x(S(d),(function(e){e in g||h(g,e,d[e])})),g.prototype=v):(g=t((function(e,t,r,a){f(e,v);var n,o,l,c=0,u=0;if(y(t)){if(!Q(t))return Y(t)?q(g,t):s(A,g,t);n=t,u=b(r,i);var h=t.byteLength;if(void 0===a){if(h%i)throw U(Z);if(o=h-u,o<0)throw U(Z)}else if(o=p(a)*i,o+u>h)throw U(Z);l=o/i}else l=m(t),o=l*i,n=new z(o);D(e,{buffer:n,byteOffset:u,byteLength:o,length:l,view:new H(n)});while(c>1,b=23===t?n(2,-24)-n(2,-77):0,g=e<0||0===e&&1/e<0?1:0,v=0;e=a(e),e!=e||e===1/0?(f=e!=e?1:0,c=p):(c=s(i(e)/o),u=n(2,-c),e*u<1&&(c--,u*=2),e+=c+m>=1?b/u:b*n(2,1-m),e*u>=2&&(c++,u/=2),c+m>=p?(f=0,c=p):c+m>=1?(f=(e*u-1)*n(2,t),c+=m):(f=e*n(2,m-1)*n(2,t),c=0));while(t>=8)h[v++]=255&f,f/=256,t-=8;c=c<0)h[v++]=255&c,c/=256,d-=8;return h[--v]|=128*g,h},c=function(e,t){var r,a=e.length,s=8*a-t-1,i=(1<>1,l=s-7,c=a-1,f=e[c--],u=127&f;f>>=7;while(l>0)u=256*u+e[c--],l-=8;r=u&(1<<-l)-1,u>>=-l,l+=t;while(l>0)r=256*r+e[c--],l-=8;if(0===u)u=1-o;else{if(u===i)return r?NaN:f?-1/0:1/0;r+=n(2,t),u-=o}return(f?-1:1)*r*n(2,u-t)};e.exports={pack:l,unpack:c}},"7c37":function(e,t,r){var a=r("605d");e.exports=function(e){try{if(a)return Function('return require("'+e+'")')()}catch(t){}}},"81b2":function(e,t,r){var a=r("23e7"),n=r("d066"),s=r("e330"),i=r("d039"),o=r("577e"),l=r("1a2d"),c=r("d6d6"),f=r("b917").ctoi,u=/[^\d+/a-z]/i,h=/[\t\n\f\r ]+/g,d=/[=]+$/,p=n("atob"),m=String.fromCharCode,b=s("".charAt),g=s("".replace),v=s(u.exec),w=i((function(){return""!==p(" ")})),y=!i((function(){p("a")})),k=!w&&!y&&!i((function(){p()})),T=!w&&!y&&1!==p.length;a({global:!0,enumerable:!0,forced:w||y||k||T},{atob:function(e){if(c(arguments.length,1),k||T)return p(e);var t,r,a=g(o(e),h,""),s="",i=0,w=0;if(a.length%4==0&&(a=g(a,d,"")),a.length%4==1||v(u,a))throw new(n("DOMException"))("The string is not correctly encoded","InvalidCharacterError");while(t=b(a,i++))l(f,t)&&(r=w%4?64*r+f[t]:f[t],w++%4&&(s+=m(255&r>>(-2*w&6))));return s}})},"81d5":function(e,t,r){"use strict";var a=r("7b0b"),n=r("23cb"),s=r("07fa");e.exports=function(e){var t=a(this),r=s(t),i=arguments.length,o=n(i>1?arguments[1]:void 0,r),l=i>2?arguments[2]:void 0,c=void 0===l?r:n(l,r);while(c>o)t[o++]=e;return t}},"82f8":function(e,t,r){"use strict";var a=r("ebb5"),n=r("4d64").includes,s=a.aTypedArray,i=a.exportTypedArrayMethod;i("includes",(function(e){return n(s(this),e,arguments.length>1?arguments[1]:void 0)}))},"8aa7":function(e,t,r){var a=r("da84"),n=r("d039"),s=r("1c7e"),i=r("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,o=a.ArrayBuffer,l=a.Int8Array;e.exports=!i||!n((function(){l(1)}))||!n((function(){new l(-1)}))||!s((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||n((function(){return 1!==new l(new o(2),1,void 0).length}))},"8bd4":function(e,t,r){var a=r("d066"),n=r("d44e"),s="DOMException";n(a(s),s)},"907a":function(e,t,r){"use strict";var a=r("ebb5"),n=r("07fa"),s=r("5926"),i=a.aTypedArray,o=a.exportTypedArrayMethod;o("at",(function(e){var t=i(this),r=n(t),a=s(e),o=a>=0?a:r+a;return o<0||o>=r?void 0:t[o]}))},9861:function(e,t,r){r("5352")},"986a":function(e,t,r){"use strict";var a=r("ebb5"),n=r("a258").findLast,s=a.aTypedArray,i=a.exportTypedArrayMethod;i("findLast",(function(e){return n(s(this),e,arguments.length>1?arguments[1]:void 0)}))},"9a8c":function(e,t,r){"use strict";var a=r("e330"),n=r("ebb5"),s=r("145e"),i=a(s),o=n.aTypedArray,l=n.exportTypedArrayMethod;l("copyWithin",(function(e,t){return i(o(this),e,t,arguments.length>2?arguments[2]:void 0)}))},a078:function(e,t,r){var a=r("0366"),n=r("c65b"),s=r("5087"),i=r("7b0b"),o=r("07fa"),l=r("9a1f"),c=r("35a1"),f=r("e95a"),u=r("bcbf"),h=r("ebb5").aTypedArrayConstructor,d=r("f495");e.exports=function(e){var t,r,p,m,b,g,v,w,y=s(this),k=i(e),T=arguments.length,_=T>1?arguments[1]:void 0,E=void 0!==_,S=c(k);if(S&&!f(S)){v=l(k,S),w=v.next,k=[];while(!(g=n(w,v)).done)k.push(g.value)}for(E&&T>2&&(_=a(_,arguments[2])),r=o(k),p=new(h(y))(r),m=u(p),t=0;r>t;t++)b=E?_(k[t],t):k[t],p[t]=m?d(b):+b;return p}},a258:function(e,t,r){var a=r("0366"),n=r("44ad"),s=r("7b0b"),i=r("07fa"),o=function(e){var t=1==e;return function(r,o,l){var c,f,u=s(r),h=n(u),d=a(o,l),p=i(h);while(p-- >0)if(c=h[p],f=d(c,p,u),f)switch(e){case 0:return c;case 1:return p}return t?-1:void 0}};e.exports={findLast:o(0),findLastIndex:o(1)}},a975:function(e,t,r){"use strict";var a=r("ebb5"),n=r("b727").every,s=a.aTypedArray,i=a.exportTypedArrayMethod;i("every",(function(e){return n(s(this),e,arguments.length>1?arguments[1]:void 0)}))},aa1f:function(e,t,r){"use strict";var a=r("83ab"),n=r("d039"),s=r("825a"),i=r("7c73"),o=r("e391"),l=Error.prototype.toString,c=n((function(){if(a){var e=i(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==l.call(e))return!0}return"2: 1"!==l.call({message:1,name:2})||"Error"!==l.call({})}));e.exports=c?function(){var e=s(this),t=o(e.name,"Error"),r=o(e.message);return t?r?t+": "+r:t:r}:l},ace4:function(e,t,r){"use strict";var a=r("23e7"),n=r("e330"),s=r("d039"),i=r("621a"),o=r("825a"),l=r("23cb"),c=r("50c4"),f=r("4840"),u=i.ArrayBuffer,h=i.DataView,d=h.prototype,p=n(u.prototype.slice),m=n(d.getUint8),b=n(d.setUint8),g=s((function(){return!new u(2).slice(1,void 0).byteLength}));a({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:g},{slice:function(e,t){if(p&&void 0===t)return p(o(this),e);var r=o(this).byteLength,a=l(e,r),n=l(void 0===t?r:t,r),s=new(f(this,u))(c(n-a)),i=new h(this),d=new h(s),g=0;while(a0)e[a]=e[--a];a!==s++&&(e[a]=r)}return e},o=function(e,t,r,a){var n=t.length,s=r.length,i=0,o=0;while(i1?arguments[1]:void 0);return s(this,t)}))},c4e3:function(e,t,r){(function(t,r,a){var n;!function(t){e.exports=t()}((function(){return function e(t,r,a){function s(o,l){if(!r[o]){if(!t[o]){var c="function"==typeof n&&n;if(!l&&c)return n(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var u=r[o]={exports:{}};t[o][0].call(u.exports,(function(e){var r=t[o][1][e];return s(r||e)}),u,u.exports,e,t,r,a)}return r[o].exports}for(var i="function"==typeof n&&n,o=0;o>2,o=(3&t)<<4|r>>4,l=1>6:64,c=2>4,r=(15&i)<<4|(o=s.indexOf(e.charAt(c++)))>>2,a=(3&o)<<6|(l=s.indexOf(e.charAt(c++))),h[f++]=t,64!==o&&(h[f++]=r),64!==l&&(h[f++]=a);return h}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var a=e("./external"),n=e("./stream/DataWorker"),s=e("./stream/Crc32Probe"),i=e("./stream/DataLengthProbe");function o(e,t,r,a,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=a,this.compressedContent=n}o.prototype={getContentWorker:function(){var e=new n(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new n(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,r){return e.pipe(new s).pipe(new i("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new i("compressedSize")).withStreamInfo("compression",t)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var a=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var a=e("./utils"),n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var a=0;a<8;a++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==a.getTypeOf(e)?function(e,t,r,a){var s=n,i=a+r;e^=-1;for(var o=a;o>>8^s[255&(e^t[o])];return-1^e}(0|t,e,e.length,0):function(e,t,r,a){var s=n,i=a+r;e^=-1;for(var o=a;o>>8^s[255&(e^t.charCodeAt(o))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var a=null;a="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:a}},{lie:37}],7:[function(e,t,r){"use strict";var a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=e("pako"),s=e("./utils"),i=e("./stream/GenericWorker"),o=a?"uint8array":"array";function l(e,t){i.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",s.inherits(l,i),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,e.data),!1)},l.prototype.flush=function(){i.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function a(e,t){var r,a="";for(r=0;r>>=8;return a}function n(e,t,r,n,i,f){var u,h,d=e.file,p=e.compression,m=f!==o.utf8encode,b=s.transformTo("string",f(d.name)),g=s.transformTo("string",o.utf8encode(d.name)),v=d.comment,w=s.transformTo("string",f(v)),y=s.transformTo("string",o.utf8encode(v)),k=g.length!==d.name.length,T=y.length!==v.length,_="",E="",S="",A=d.dir,x=d.date,C={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(C.crc32=e.crc32,C.compressedSize=e.compressedSize,C.uncompressedSize=e.uncompressedSize);var R=0;t&&(R|=8),m||!k&&!T||(R|=2048);var P=0,O=0;A&&(P|=16),"UNIX"===i?(O=798,P|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(d.unixPermissions,A)):(O=20,P|=function(e){return 63&(e||0)}(d.dosPermissions)),u=x.getUTCHours(),u<<=6,u|=x.getUTCMinutes(),u<<=5,u|=x.getUTCSeconds()/2,h=x.getUTCFullYear()-1980,h<<=4,h|=x.getUTCMonth()+1,h<<=5,h|=x.getUTCDate(),k&&(E=a(1,1)+a(l(b),4)+g,_+="up"+a(E.length,2)+E),T&&(S=a(1,1)+a(l(w),4)+y,_+="uc"+a(S.length,2)+S);var N="";return N+="\n\0",N+=a(R,2),N+=p.magic,N+=a(u,2),N+=a(h,2),N+=a(C.crc32,4),N+=a(C.compressedSize,4),N+=a(C.uncompressedSize,4),N+=a(b.length,2),N+=a(_.length,2),{fileRecord:c.LOCAL_FILE_HEADER+N+b+_,dirRecord:c.CENTRAL_FILE_HEADER+a(O,2)+N+a(w.length,2)+"\0\0\0\0"+a(P,4)+a(n,4)+b+_+w}}var s=e("../utils"),i=e("../stream/GenericWorker"),o=e("../utf8"),l=e("../crc32"),c=e("../signature");function f(e,t,r,a){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=a,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(f,i),f.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,a=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-a-1))/r:100}}))},f.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=n(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=n(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+a(e.crc32,4)+a(e.compressedSize,4)+a(e.uncompressedSize,4)}(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},f.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return a.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=n},{"../utils":32}],19:[function(e,t,r){"use strict";var a=e("./Uint8ArrayReader");function n(e){a.call(this,e)}e("../utils").inherits(n,a),n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var a=e("./DataReader");function n(e){a.call(this,e)}e("../utils").inherits(n,a),n.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},n.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},n.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var a=e("./ArrayReader");function n(e){a.call(this,e)}e("../utils").inherits(n,a),n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var a=e("../utils"),n=e("../support"),s=e("./ArrayReader"),i=e("./StringReader"),o=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=a.getTypeOf(e);return a.checkSupport(t),"string"!==t||n.uint8array?"nodebuffer"===t?new o(e):n.uint8array?new l(a.transformTo("uint8array",e)):new s(a.transformTo("array",e)):new i(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){"use strict";var a=e("./GenericWorker"),n=e("../utils");function s(e){a.call(this,"ConvertWorker to "+e),this.destType=e}n.inherits(s,a),s.prototype.processChunk=function(e){this.push({data:n.transformTo(this.destType,e.data),meta:e.meta})},t.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var a=e("./GenericWorker"),n=e("../crc32");function s(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(s,a),s.prototype.processChunk=function(e){this.streamInfo.crc32=n(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var a=e("../utils"),n=e("./GenericWorker");function s(e){n.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}a.inherits(s,n),s.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}n.prototype.processChunk.call(this,e)},t.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var a=e("../utils"),n=e("./GenericWorker");function s(e){n.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=a.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}a.inherits(s,n),s.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,a.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(a.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function a(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}a.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r "+e:e}},t.exports=a},{}],29:[function(e,r,a){"use strict";var n=e("../utils"),s=e("./ConvertWorker"),i=e("./GenericWorker"),o=e("../base64"),l=e("../support"),c=e("../external"),f=null;if(l.nodestream)try{f=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function u(e,r){return new c.Promise((function(a,s){var i=[],l=e._internalType,c=e._outputType,f=e._mimeType;e.on("data",(function(e,t){i.push(e),r&&r(t)})).on("error",(function(e){i=[],s(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return o.encode(t);default:return n.transformTo(e,t)}}(c,function(e,r){var a,n=0,s=null,i=0;for(a=0;a>>6:(r<65536?t[i++]=224|r>>>12:(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63),t[i++]=128|r>>>6&63),t[i++]=128|63&r);return t}(e)},r.utf8decode=function(e){return n.nodebuffer?a.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,n,s,i=e.length,l=new Array(2*i);for(t=r=0;t>10&1023,l[r++]=56320|1023&n)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),a.applyFromCharCode(l)}(e=a.transformTo(n.uint8array?"uint8array":"array",e))},a.inherits(c,i),c.prototype.processChunk=function(e){var t=a.transformTo(n.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var s=t;(t=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),t.set(s,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var i=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}(t),l=t;i!==t.length&&(n.uint8array?(l=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(l=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,a.inherits(f,i),f.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){"use strict";var a=e("./support"),n=e("./base64"),s=e("./nodejsUtils"),i=e("./external");function o(e){return e}function l(e,t){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=a(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,a,n=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(r<65536?t[i++]=224|r>>>12:(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63),t[i++]=128|r>>>6&63),t[i++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new a.Buf8(e.length),r=0,n=t.length;r>10&1023,c[a++]=56320|1023&n)}return l(c,a)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+i[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,a){for(var n=65535&e|0,s=e>>>16&65535|0,i=0;0!==r;){for(r-=i=2e3>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,n){var s=a,i=n+r;e^=-1;for(var o=n;o>>8^s[255&(e^t[o])];return-1^e}},{}],46:[function(e,t,r){"use strict";var a,n=e("../utils/common"),s=e("./trees"),i=e("./adler32"),o=e("./crc32"),l=e("./messages"),c=0,f=4,u=0,h=-2,d=-1,p=4,m=2,b=8,g=9,v=286,w=30,y=19,k=2*v+1,T=15,_=3,E=258,S=E+_+1,A=42,x=113,C=1,R=2,P=3,O=4;function N(e,t){return e.msg=l[t],t}function I(e){return(e<<1)-(4e.avail_out&&(r=e.avail_out),0!==r&&(n.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function M(e,t){s._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,F(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function B(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function U(e,t){var r,a,n=e.max_chain_length,s=e.strstart,i=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-S?e.strstart-(e.w_size-S):0,c=e.window,f=e.w_mask,u=e.prev,h=e.strstart+E,d=c[s+i-1],p=c[s+i];e.prev_length>=e.good_match&&(n>>=2),o>e.lookahead&&(o=e.lookahead);do{if(c[(r=t)+i]===p&&c[r+i-1]===d&&c[r]===c[s]&&c[++r]===c[s+1]){s+=2,r++;do{}while(c[++s]===c[++r]&&c[++s]===c[++r]&&c[++s]===c[++r]&&c[++s]===c[++r]&&c[++s]===c[++r]&&c[++s]===c[++r]&&c[++s]===c[++r]&&c[++s]===c[++r]&&sl&&0!=--n);return i<=e.lookahead?i:e.lookahead}function z(e){var t,r,a,s,l,c,f,u,h,d,p=e.w_size;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-S)){for(n.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;a=e.head[--t],e.head[t]=p<=a?a-p:0,--r;);for(t=r=p;a=e.prev[--t],e.prev[t]=p<=a?a-p:0,--r;);s+=p}if(0===e.strm.avail_in)break;if(c=e.strm,f=e.window,u=e.strstart+e.lookahead,h=s,d=void 0,d=c.avail_in,h=_)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<=_&&(e.ins_h=(e.ins_h<=_)if(a=s._tr_tally(e,e.strstart-e.match_start,e.match_length-_),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=_){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=_&&(e.ins_h=(e.ins_h<=_&&e.match_length<=e.prev_length){for(n=e.strstart+e.lookahead-_,a=s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-_),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=n&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),0===e.lookahead&&t===c)return C;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var a=e.block_start+r;if((0===e.strstart||e.strstart>=a)&&(e.lookahead=e.strstart-a,e.strstart=a,M(e,!1),0===e.strm.avail_out))return C;if(e.strstart-e.block_start>=e.w_size-S&&(M(e,!1),0===e.strm.avail_out))return C}return e.insert=0,t===f?(M(e,!0),0===e.strm.avail_out?P:O):(e.strstart>e.block_start&&(M(e,!1),e.strm.avail_out),C)})),new j(4,4,8,4,W),new j(4,5,16,8,W),new j(4,6,32,32,W),new j(4,4,16,16,H),new j(8,16,32,32,H),new j(8,16,128,128,H),new j(8,32,128,256,H),new j(32,128,258,1024,H),new j(32,258,258,4096,H)],r.deflateInit=function(e,t){return X(e,t,b,15,8,0)},r.deflateInit2=X,r.deflateReset=$,r.deflateResetKeep=G,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,u):h},r.deflate=function(e,t){var r,n,i,l;if(!e||!e.state||5>8&255),L(n,n.gzhead.time>>16&255),L(n,n.gzhead.time>>24&255),L(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),L(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(L(n,255&n.gzhead.extra.length),L(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=o(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(L(n,0),L(n,0),L(n,0),L(n,0),L(n,0),L(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),L(n,3),n.status=x);else{var d=b+(n.w_bits-8<<4)<<8;d|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(d|=32),d+=31-d%31,n.status=x,B(n,d),0!==n.strstart&&(B(n,e.adler>>>16),B(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=o(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending!==n.pending_buf_size));)L(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=o(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=o(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending===n.pending_buf_size)){l=1;break}l=n.gzindexi&&(e.adler=o(e.adler,n.pending_buf,n.pending-i,i)),0===l&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=o(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending===n.pending_buf_size)){l=1;break}l=n.gzindexi&&(e.adler=o(e.adler,n.pending_buf,n.pending-i,i)),0===l&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&F(e),n.pending+2<=n.pending_buf_size&&(L(n,255&e.adler),L(n,e.adler>>8&255),e.adler=0,n.status=x)):n.status=x),0!==n.pending){if(F(e),0===e.avail_out)return n.last_flush=-1,u}else if(0===e.avail_in&&I(t)<=I(r)&&t!==f)return N(e,-5);if(666===n.status&&0!==e.avail_in)return N(e,-5);if(0!==e.avail_in||0!==n.lookahead||t!==c&&666!==n.status){var p=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(z(e),0===e.lookahead)){if(t===c)return C;break}if(e.match_length=0,r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(M(e,!1),0===e.strm.avail_out))return C}return e.insert=0,t===f?(M(e,!0),0===e.strm.avail_out?P:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?C:R}(n,t):3===n.strategy?function(e,t){for(var r,a,n,i,o=e.window;;){if(e.lookahead<=E){if(z(e),e.lookahead<=E&&t===c)return C;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=_&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=_?(r=s._tr_tally(e,1,e.match_length-_),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(M(e,!1),0===e.strm.avail_out))return C}return e.insert=0,t===f?(M(e,!0),0===e.strm.avail_out?P:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?C:R}(n,t):a[n.level].func(n,t);if(p!==P&&p!==O||(n.status=666),p===C||p===P)return 0===e.avail_out&&(n.last_flush=-1),u;if(p===R&&(1===t?s._tr_align(n):5!==t&&(s._tr_stored_block(n,0,0,!1),3===t&&(D(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),F(e),0===e.avail_out))return n.last_flush=-1,u}return t!==f?u:n.wrap<=0?1:(2===n.wrap?(L(n,255&e.adler),L(n,e.adler>>8&255),L(n,e.adler>>16&255),L(n,e.adler>>24&255),L(n,255&e.total_in),L(n,e.total_in>>8&255),L(n,e.total_in>>16&255),L(n,e.total_in>>24&255)):(B(n,e.adler>>>16),B(n,65535&e.adler)),F(e),0=r.w_size&&(0===o&&(D(r.head),r.strstart=0,r.block_start=0,r.insert=0),d=new n.Buf8(r.w_size),n.arraySet(d,t,p-r.w_size,r.w_size,0),t=d,p=r.w_size),l=e.avail_in,c=e.next_in,f=e.input,e.avail_in=p,e.next_in=0,e.input=t,z(r);r.lookahead>=_;){for(a=r.strstart,s=r.lookahead-(_-1);r.ins_h=(r.ins_h<>>=y=w>>>24,p-=y,0===(y=w>>>16&255))A[s++]=65535&w;else{if(!(16&y)){if(0==(64&y)){w=m[(65535&w)+(d&(1<>>=y,p-=y),p<15&&(d+=S[a++]<>>=y=w>>>24,p-=y,!(16&(y=w>>>16&255))){if(0==(64&y)){w=b[(65535&w)+(d&(1<>>=y,p-=y,(y=s-i)>3,d&=(1<<(p-=k<<3))-1,e.next_in=a,e.next_out=s,e.avail_in=a>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function b(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function g(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=h,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new a.Buf32(d),t.distcode=t.distdyn=new a.Buf32(p),t.sane=1,t.back=-1,f):u}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,g(e)):u}function w(e,t){var r,a;return e&&e.state?(a=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=i.wsize?(a.arraySet(i.window,t,r-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):(n<(s=i.wsize-i.wnext)&&(s=n),a.arraySet(i.window,t,r-n,s,i.wnext),(n-=s)?(a.arraySet(i.window,t,r-n,n,0),i.wnext=n,i.whave=i.wsize):(i.wnext+=s,i.wnext===i.wsize&&(i.wnext=0),i.whave>>8&255,r.check=s(r.check,z,2,0),k=y=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&y)<<8)+(y>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&y)){e.msg="unknown compression method",r.mode=30;break}if(k-=4,F=8+(15&(y>>>=4)),0===r.wbits)r.wbits=F;else if(F>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(z[0]=255&y,z[1]=y>>>8&255,r.check=s(r.check,z,2,0)),k=y=0,r.mode=3;case 3:for(;k<32;){if(0===v)break e;v--,y+=d[b++]<>>8&255,z[2]=y>>>16&255,z[3]=y>>>24&255,r.check=s(r.check,z,4,0)),k=y=0,r.mode=4;case 4:for(;k<16;){if(0===v)break e;v--,y+=d[b++]<>8),512&r.flags&&(z[0]=255&y,z[1]=y>>>8&255,r.check=s(r.check,z,2,0)),k=y=0,r.mode=5;case 5:if(1024&r.flags){for(;k<16;){if(0===v)break e;v--,y+=d[b++]<>>8&255,r.check=s(r.check,z,2,0)),k=y=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(v<(A=r.length)&&(A=v),A&&(r.head&&(F=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),a.arraySet(r.head.extra,d,b,A,F)),512&r.flags&&(r.check=s(r.check,d,A,b)),v-=A,b+=A,r.length-=A),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===v)break e;for(A=0;F=d[b+A++],r.head&&F&&r.length<65536&&(r.head.name+=String.fromCharCode(F)),F&&A>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;k<32;){if(0===v)break e;v--,y+=d[b++]<>>=7&k,k-=7&k,r.mode=27;break}for(;k<3;){if(0===v)break e;v--,y+=d[b++]<>>=1)){case 0:r.mode=14;break;case 1:if(E(r),r.mode=20,6!==t)break;y>>>=2,k-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}y>>>=2,k-=2;break;case 14:for(y>>>=7&k,k-=7&k;k<32;){if(0===v)break e;v--,y+=d[b++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&y,k=y=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(A=r.length){if(v>>=5,k-=5,r.ndist=1+(31&y),y>>>=5,k-=5,r.ncode=4+(15&y),y>>>=4,k-=4,286>>=3,k-=3}for(;r.have<19;)r.lens[W[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,L={bits:r.lenbits},M=o(0,r.lens,0,19,r.lencode,0,r.work,L),r.lenbits=L.bits,M){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,O=65535&U,!((R=U>>>24)<=k);){if(0===v)break e;v--,y+=d[b++]<>>=R,k-=R,r.lens[r.have++]=O;else{if(16===O){for(B=R+2;k>>=R,k-=R,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}F=r.lens[r.have-1],A=3+(3&y),y>>>=2,k-=2}else if(17===O){for(B=R+3;k>>=R)),y>>>=3,k-=3}else{for(B=R+7;k>>=R)),y>>>=7,k-=7}if(r.have+A>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;A--;)r.lens[r.have++]=F}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,L={bits:r.lenbits},M=o(l,r.lens,0,r.nlen,r.lencode,0,r.work,L),r.lenbits=L.bits,M){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,L={bits:r.distbits},M=o(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,L),r.distbits=L.bits,M){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=v&&258<=w){e.next_out=g,e.avail_out=w,e.next_in=b,e.avail_in=v,r.hold=y,r.bits=k,i(e,_),g=e.next_out,p=e.output,w=e.avail_out,b=e.next_in,d=e.input,v=e.avail_in,y=r.hold,k=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;P=(U=r.lencode[y&(1<>>16&255,O=65535&U,!((R=U>>>24)<=k);){if(0===v)break e;v--,y+=d[b++]<>N)])>>>16&255,O=65535&U,!(N+(R=U>>>24)<=k);){if(0===v)break e;v--,y+=d[b++]<>>=N,k-=N,r.back+=N}if(y>>>=R,k-=R,r.back+=R,r.length=O,0===P){r.mode=26;break}if(32&P){r.back=-1,r.mode=12;break}if(64&P){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&P,r.mode=22;case 22:if(r.extra){for(B=r.extra;k>>=r.extra,k-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;P=(U=r.distcode[y&(1<>>16&255,O=65535&U,!((R=U>>>24)<=k);){if(0===v)break e;v--,y+=d[b++]<>N)])>>>16&255,O=65535&U,!(N+(R=U>>>24)<=k);){if(0===v)break e;v--,y+=d[b++]<>>=N,k-=N,r.back+=N}if(y>>>=R,k-=R,r.back+=R,64&P){e.msg="invalid distance code",r.mode=30;break}r.offset=O,r.extra=15&P,r.mode=24;case 24:if(r.extra){for(B=r.extra;k>>=r.extra,k-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===w)break e;if(A=_-w,r.offset>A){if((A=r.offset-A)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}x=A>r.wnext?(A-=r.wnext,r.wsize-A):r.wnext-A,A>r.length&&(A=r.length),C=r.window}else C=p,x=g-r.offset,A=r.length;for(wv?(y=L[B+u[E]],I[D+u[E]]):(y=96,0),d=1<<_-R,S=p=1<>R)+(p-=d)]=w<<24|y<<16|k|0,0!==p;);for(d=1<<_-1;N&d;)d>>=1;if(0!==d?(N&=d-1,N+=d):N=0,E++,0==--F[_]){if(_===A)break;_=t[r+u[E]]}if(x<_&&(N&b)!==m){for(0===R&&(R=x),g+=S,P=1<<(C=_-R);C+R>>7)]}function L(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function B(e,t,r){e.bi_valid>m-r?(e.bi_buf|=t<>m-e.bi_valid,e.bi_valid+=r-m):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function W(e,t,r){var a,n,s=new Array(p+1),i=0;for(a=1;a<=p;a++)s[a]=i=i+r[a-1]<<1;for(n=0;n<=t;n++){var o=e[2*n+1];0!==o&&(e[2*n]=z(s[o]++,o))}}function H(e){var t;for(t=0;t>1;1<=r;r--)G(e,s,r);for(n=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],G(e,s,1),a=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=a,s[2*n]=s[2*r]+s[2*a],e.depth[n]=(e.depth[r]>=e.depth[a]?e.depth[r]:e.depth[a])+1,s[2*r+1]=s[2*a+1]=n,e.heap[1]=n++,G(e,s,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,a,n,s,i,o,l=t.dyn_tree,c=t.max_code,f=t.stat_desc.static_tree,u=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,b=t.stat_desc.max_length,g=0;for(s=0;s<=p;s++)e.bl_count[s]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r>=7;a>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return n;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return s;for(t=32;t>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?q(e,t,r,a):4===e.strategy||o===i?(B(e,2+(a?1:0),3),$(e,S,A)):(B(e,4+(a?1:0),3),function(e,t,r,a){var n;for(B(e,t-257,5),B(e,r-1,5),B(e,a-4,4),n=0;n>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(C[r]+c+1)]++,e.dyn_dtree[2*M(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){B(e,2,3),U(e,g,S),function(e){16===e.bi_valid?(L(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var r,n,s,i,o=1,l={},c=!1,f=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,r="[object process]"==={}.toString.call(e.process)?function(e){a.nextTick((function(){d(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(i="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(i+t,"*")}):e.MessageChannel?((s=new MessageChannel).port1.onmessage=function(e){d(e.data)},function(e){s.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(n=f.documentElement,function(e){var t=f.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(d,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),a=0;a1?arguments[1]:void 0)}))},cd26:function(e,t,r){"use strict";var a=r("ebb5"),n=a.aTypedArray,s=a.exportTypedArrayMethod,i=Math.floor;s("reverse",(function(){var e,t=this,r=n(t).length,a=i(r/2),s=0;while(s1?arguments[1]:void 0)}))},d429:function(e,t,r){var a=r("07fa"),n=r("5926"),s=RangeError;e.exports=function(e,t,r,i){var o=a(e),l=n(r),c=l<0?o+l:l;if(c>=o||c<0)throw s("Incorrect index");for(var f=new t(o),u=0;u1?arguments[1]:void 0)}))},d998:function(e,t,r){var a=r("342f");e.exports=/MSIE|Trident/.test(a)},df7e:function(e,t,r){var a=r("07fa");e.exports=function(e,t){for(var r=a(e),n=new t(r),s=0;sr)s[r]=t[r++];return s}},e58c:function(e,t,r){"use strict";var a=r("2ba4"),n=r("fc6a"),s=r("5926"),i=r("07fa"),o=r("a640"),l=Math.min,c=[].lastIndexOf,f=!!c&&1/[1].lastIndexOf(1,-0)<0,u=o("lastIndexOf"),h=f||!u;e.exports=h?function(e){if(f)return a(c,this,arguments)||0;var t=n(this),r=i(t),o=r-1;for(arguments.length>1&&(o=l(o,s(arguments[1]))),o<0&&(o=r+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:c},e91f:function(e,t,r){"use strict";var a=r("ebb5"),n=r("4d64").indexOf,s=a.aTypedArray,i=a.exportTypedArrayMethod;i("indexOf",(function(e){return n(s(this),e,arguments.length>1?arguments[1]:void 0)}))},eac5:function(e,t,r){var a=r("861d"),n=Math.floor;e.exports=Number.isInteger||function(e){return!a(e)&&isFinite(e)&&n(e)===e}},ebb5:function(e,t,r){"use strict";var a,n,s,i=r("4b11"),o=r("83ab"),l=r("da84"),c=r("1626"),f=r("861d"),u=r("1a2d"),h=r("f5df"),d=r("0d51"),p=r("9112"),m=r("cb2d"),b=r("9bf2").f,g=r("3a9b"),v=r("e163"),w=r("d2bb"),y=r("b622"),k=r("90e3"),T=r("69f3"),_=T.enforce,E=T.get,S=l.Int8Array,A=S&&S.prototype,x=l.Uint8ClampedArray,C=x&&x.prototype,R=S&&v(S),P=A&&v(A),O=Object.prototype,N=l.TypeError,I=y("toStringTag"),D=k("TYPED_ARRAY_TAG"),F="TypedArrayConstructor",M=i&&!!w&&"Opera"!==h(l.opera),L=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},z=function(e){if(!f(e))return!1;var t=h(e);return"DataView"===t||u(B,t)||u(U,t)},W=function(e){var t=v(e);if(f(t)){var r=E(t);return r&&u(r,F)?r[F]:W(t)}},H=function(e){if(!f(e))return!1;var t=h(e);return u(B,t)||u(U,t)},j=function(e){if(H(e))return e;throw N("Target is not a typed array")},V=function(e){if(c(e)&&(!w||g(R,e)))return e;throw N(d(e)+" is not a typed array constructor")},G=function(e,t,r,a){if(o){if(r)for(var n in B){var s=l[n];if(s&&u(s.prototype,e))try{delete s.prototype[e]}catch(i){try{s.prototype[e]=t}catch(c){}}}P[e]&&!r||m(P,e,r?t:M&&A[e]||t,a)}},$=function(e,t,r){var a,n;if(o){if(w){if(r)for(a in B)if(n=l[a],n&&u(n,e))try{delete n[e]}catch(s){}if(R[e]&&!r)return;try{return m(R,e,r?t:M&&R[e]||t)}catch(s){}}for(a in B)n=l[a],!n||n[e]&&!r||m(n,e,t)}};for(a in B)n=l[a],s=n&&n.prototype,s?_(s)[F]=n:M=!1;for(a in U)n=l[a],s=n&&n.prototype,s&&(_(s)[F]=n);if((!M||!c(R)||R===Function.prototype)&&(R=function(){throw N("Incorrect invocation")},M))for(a in B)l[a]&&w(l[a],R);if((!M||!P||P===O)&&(P=R.prototype,M))for(a in B)l[a]&&w(l[a].prototype,P);if(M&&v(C)!==P&&w(C,P),o&&!u(P,I))for(a in L=!0,b(P,I,{get:function(){return f(this)?this[D]:void 0}}),B)l[a]&&p(l[a],D,a);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:L&&D,aTypedArray:j,aTypedArrayConstructor:V,exportTypedArrayMethod:G,exportTypedArrayStaticMethod:$,getTypedArrayConstructor:W,isView:z,isTypedArray:H,TypedArray:R,TypedArrayPrototype:P}},f354:function(e,t,r){var a=r("d039"),n=r("b622"),s=r("c430"),i=n("iterator");e.exports=!a((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,a){t["delete"]("b"),r+=a+e})),s&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},f495:function(e,t,r){var a=r("c04e"),n=TypeError;e.exports=function(e){var t=a(e,"number");if("number"==typeof t)throw n("Can't convert number to bigint");return BigInt(t)}},f8cd:function(e,t,r){var a=r("5926"),n=RangeError;e.exports=function(e){var t=a(e);if(t<0)throw n("The argument can't be less than 0");return t}}}]);