>>1,k.write_shift(2,P);var B=j.getFullYear()-1980;B=B<<4|j.getMonth()+1,B=B<<5|j.getDate(),k.write_shift(2,B)}function o(k){var j=k.read_shift(2)&65535,P=k.read_shift(2)&65535,B=new Date,M=P&31;P>>>=5;var H=P&15;P>>>=4,B.setMilliseconds(0),B.setFullYear(P+1980),B.setMonth(H-1),B.setDate(M);var ae=j&31;j>>>=5;var oe=j&63;return j>>>=6,B.setHours(j),B.setMinutes(oe),B.setSeconds(ae<<1),B}function s(k){st(k,0);for(var j={},P=0;k.l<=k.length-4;){var B=k.read_shift(2),M=k.read_shift(2),H=k.l+M,ae={};switch(B){case 21589:P=k.read_shift(1),P&1&&(ae.mtime=k.read_shift(4)),M>5&&(P&2&&(ae.atime=k.read_shift(4)),P&4&&(ae.ctime=k.read_shift(4))),ae.mtime&&(ae.mt=new Date(ae.mtime*1e3));break}k.l=H,j[B]=ae}return j}var l;function c(){return l||(l={})}function f(k,j){if(k[0]==80&&k[1]==75)return ia(k,j);if((k[0]|32)==109&&(k[1]|32)==105)return Sr(k,j);if(k.length<512)throw new Error("CFB file size "+k.length+" < 512");var P=3,B=512,M=0,H=0,ae=0,oe=0,re=0,ne=[],ie=k.slice(0,512);st(ie,0);var we=u(ie);switch(P=we[0],P){case 3:B=512;break;case 4:B=4096;break;case 0:if(we[1]==0)return ia(k,j);default:throw new Error("Major Version: Expected 3 or 4 saw "+P)}B!==512&&(ie=k.slice(0,B),st(ie,28));var Ce=k.slice(0,B);d(ie,P);var pe=ie.read_shift(4,"i");if(P===3&&pe!==0)throw new Error("# Directory Sectors: Expected 0 saw "+pe);ie.l+=4,ae=ie.read_shift(4,"i"),ie.l+=4,ie.chk("00100000","Mini Stream Cutoff Size: "),oe=ie.read_shift(4,"i"),M=ie.read_shift(4,"i"),re=ie.read_shift(4,"i"),H=ie.read_shift(4,"i");for(var fe=-1,xe=0;xe<109&&(fe=ie.read_shift(4,"i"),!(fe<0));++xe)ne[xe]=fe;var Re=v(k,B);p(re,H,Re,B,ne);var ar=S(Re,ae,ne,B);ar[ae].name="!Directory",M>0&&oe!==T&&(ar[oe].name="!MiniFAT"),ar[ne[0]].name="!FAT",ar.fat_addrs=ne,ar.ssz=B;var lr={},Lr=[],va=[],fn=[];g(ae,ar,Re,Lr,M,lr,va,oe),x(va,fn,Lr),Lr.shift();var un={FileIndex:va,FullPaths:fn};return j&&j.raw&&(un.raw={header:Ce,sectors:Re}),un}function u(k){if(k[k.l]==80&&k[k.l+1]==75)return[0,0];k.chk(A,"Header Signature: "),k.l+=16;var j=k.read_shift(2,"u");return[k.read_shift(2,"u"),j]}function d(k,j){var P=9;switch(k.l+=2,P=k.read_shift(2)){case 9:if(j!=3)throw new Error("Sector Shift: Expected 9 saw "+P);break;case 12:if(j!=4)throw new Error("Sector Shift: Expected 12 saw "+P);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+P)}k.chk("0600","Mini Sector Shift: "),k.chk("000000000000","Reserved: ")}function v(k,j){for(var P=Math.ceil(k.length/j)-1,B=[],M=1;M0&&ae>=0;)H.push(j.slice(ae*E,ae*E+E)),M-=E,ae=pn(P,ae*4);return H.length===0?se(0):tt(H).slice(0,k.size)}function p(k,j,P,B,M){var H=T;if(k===T){if(j!==0)throw new Error("DIFAT chain shorter than expected")}else if(k!==-1){var ae=P[k],oe=(B>>>2)-1;if(!ae)return;for(var re=0;re=0;){M[re]=!0,H[H.length]=re,ae.push(k[re]);var ie=P[Math.floor(re*4/B)];if(ne=re*4&oe,B<4+ne)throw new Error("FAT boundary crossed: "+re+" 4 "+B);if(!k[ie])break;re=pn(k[ie],ne)}return{nodes:H,data:wf([ae])}}function S(k,j,P,B){var M=k.length,H=[],ae=[],oe=[],re=[],ne=B-1,ie=0,we=0,Ce=0,pe=0;for(ie=0;ie=M&&(Ce-=M),!ae[Ce]){re=[];var fe=[];for(we=Ce;we>=0;){fe[we]=!0,ae[we]=!0,oe[oe.length]=we,re.push(k[we]);var xe=P[Math.floor(we*4/B)];if(pe=we*4&ne,B<4+pe)throw new Error("FAT boundary crossed: "+we+" 4 "+B);if(!k[xe]||(we=pn(k[xe],pe),fe[we]))break}H[Ce]={nodes:oe,data:wf([re])}}return H}function g(k,j,P,B,M,H,ae,oe){for(var re=0,ne=B.length?2:0,ie=j[k].data,we=0,Ce=0,pe;we0&&re!==T&&(j[re].name="!StreamData")):xe.size>=4096?(xe.storage="fat",j[xe.start]===void 0&&(j[xe.start]=m(P,xe.start,j.fat_addrs,j.ssz)),j[xe.start].name=xe.name,xe.content=j[xe.start].data.slice(0,xe.size)):(xe.storage="minifat",xe.size<0?xe.size=0:re!==T&&xe.start!==T&&j[re]&&(xe.content=h(xe,j[re].data,(j[oe]||{}).data))),xe.content&&st(xe.content,0),H[pe]=xe,ae.push(xe)}}function w(k,j){return new Date((Nt(k,j+4)/1e7*Math.pow(2,32)+Nt(k,j)/1e7-11644473600)*1e3)}function C(k,j){return c(),f(l.readFileSync(k),j)}function F(k,j){var P=j&&j.type;switch(P||Je&&Buffer.isBuffer(k)&&(P="buffer"),P||"base64"){case"file":return C(k,j);case"base64":return f(Bt(jt(k)),j);case"binary":return f(Bt(k),j)}return f(k,j)}function _(k,j){var P=j||{},B=P.root||"Root Entry";if(k.FullPaths||(k.FullPaths=[]),k.FileIndex||(k.FileIndex=[]),k.FullPaths.length!==k.FileIndex.length)throw new Error("inconsistent CFB structure");k.FullPaths.length===0&&(k.FullPaths[0]=B+"/",k.FileIndex[0]={name:B,type:5}),P.CLSID&&(k.FileIndex[0].clsid=P.CLSID),R(k)}function R(k){var j="Sh33tJ5";if(!Me.find(k,"/"+j)){var P=se(4);P[0]=55,P[1]=P[3]=50,P[2]=54,k.FileIndex.push({name:j,type:2,content:P,size:4,L:69,R:69,C:69}),k.FullPaths.push(k.FullPaths[0]+j),y(k)}}function y(k,j){_(k);for(var P=!1,B=!1,M=k.FullPaths.length-1;M>=0;--M){var H=k.FileIndex[M];switch(H.type){case 0:B?P=!0:(k.FileIndex.pop(),k.FullPaths.pop());break;case 1:case 2:case 5:B=!0,isNaN(H.R*H.L*H.C)&&(P=!0),H.R>-1&&H.L>-1&&H.R==H.L&&(P=!0);break;default:P=!0;break}}if(!(!P&&!j)){var ae=new Date(1987,1,19),oe=0,re=Object.create?Object.create(null):{},ne=[];for(M=0;M1?1:-1,we.size=0,we.type=5;else if(Ce.slice(-1)=="/"){for(oe=M+1;oe=ne.length?-1:oe,oe=M+1;oe=ne.length?-1:oe,we.type=1}else a(k.FullPaths[M+1]||"")==a(Ce)&&(we.R=M+1),we.type=2}}}function W(k,j){var P=j||{};if(P.fileType=="mad")return Zr(k,P);switch(y(k),P.fileType){case"zip":return ha(k,P)}var B=function(pe){for(var fe=0,xe=0,Re=0;Re0&&(lr<4096?fe+=lr+63>>6:xe+=lr+511>>9)}}for(var Lr=pe.FullPaths.length+3>>2,va=fe+7>>3,fn=fe+127>>7,un=va+xe+Lr+fn,dn=un+127>>7,Fs=dn<=109?0:Math.ceil((dn-109)/127);un+dn+Fs+127>>7>dn;)Fs=++dn<=109?0:Math.ceil((dn-109)/127);var Fa=[1,Fs,dn,fn,Lr,xe,fe,0];return pe.FileIndex[0].size=fe<<6,Fa[7]=(pe.FileIndex[0].start=Fa[0]+Fa[1]+Fa[2]+Fa[3]+Fa[4]+Fa[5])+(Fa[6]+7>>3),Fa}(k),M=se(B[7]<<9),H=0,ae=0;{for(H=0;H<8;++H)M.write_shift(1,b[H]);for(H=0;H<8;++H)M.write_shift(2,0);for(M.write_shift(2,62),M.write_shift(2,3),M.write_shift(2,65534),M.write_shift(2,9),M.write_shift(2,6),H=0;H<3;++H)M.write_shift(2,0);for(M.write_shift(4,0),M.write_shift(4,B[2]),M.write_shift(4,B[0]+B[1]+B[2]+B[3]-1),M.write_shift(4,0),M.write_shift(4,1<<12),M.write_shift(4,B[3]?B[0]+B[1]+B[2]-1:T),M.write_shift(4,B[3]),M.write_shift(-4,B[1]?B[0]-1:T),M.write_shift(4,B[1]),H=0;H<109;++H)M.write_shift(-4,H>9)));for(oe(B[6]+7>>3);M.l&511;)M.write_shift(-4,N.ENDOFCHAIN);for(ae=H=0,re=0;re=4096)&&(ie.start=ae,oe(ne+63>>6)));for(;M.l&511;)M.write_shift(-4,N.ENDOFCHAIN);for(H=0;H=4096)if(M.l=ie.start+1<<9,Je&&Buffer.isBuffer(ie.content))ie.content.copy(M,M.l,0,ie.size),M.l+=ie.size+511&-512;else{for(re=0;re0&&ie.size<4096)if(Je&&Buffer.isBuffer(ie.content))ie.content.copy(M,M.l,0,ie.size),M.l+=ie.size+63&-64;else{for(re=0;re>16|j>>8|j)&255}for(var J=typeof Uint8Array<"u",Q=J?new Uint8Array(1<<8):[],ce=0;ce<1<<8;++ce)Q[ce]=Y(ce);function K(k,j){var P=Q[k&255];return j<=8?P>>>8-j:(P=P<<8|Q[k>>8&255],j<=16?P>>>16-j:(P=P<<8|Q[k>>16&255],P>>>24-j))}function Oe(k,j){var P=j&7,B=j>>>3;return(k[B]|(P<=6?0:k[B+1]<<8))>>>P&3}function Ie(k,j){var P=j&7,B=j>>>3;return(k[B]|(P<=5?0:k[B+1]<<8))>>>P&7}function Le(k,j){var P=j&7,B=j>>>3;return(k[B]|(P<=4?0:k[B+1]<<8))>>>P&15}function Pe(k,j){var P=j&7,B=j>>>3;return(k[B]|(P<=3?0:k[B+1]<<8))>>>P&31}function ve(k,j){var P=j&7,B=j>>>3;return(k[B]|(P<=1?0:k[B+1]<<8))>>>P&127}function Ye(k,j,P){var B=j&7,M=j>>>3,H=(1<>>B;return P<8-B||(ae|=k[M+1]<<8-B,P<16-B)||(ae|=k[M+2]<<16-B,P<24-B)||(ae|=k[M+3]<<24-B),ae&H}function dr(k,j,P){var B=j&7,M=j>>>3;return B<=5?k[M]|=(P&7)<>8-B),j+3}function hr(k,j,P){var B=j&7,M=j>>>3;return P=(P&1)<>>3;return P<<=B,k[M]|=P&255,P>>>=8,k[M+1]=P,j+8}function Qe(k,j,P){var B=j&7,M=j>>>3;return P<<=B,k[M]|=P&255,P>>>=8,k[M+1]=P&255,k[M+2]=P>>>8,j+16}function zr(k,j){var P=k.length,B=2*P>j?2*P:j+5,M=0;if(P>=j)return k;if(Je){var H=Qc(B);if(k.copy)k.copy(H);else for(;M>B-we,ae=(1<=0;--ae)j[oe|ae<0;)re[re.l++]=oe[ne++]}return re.l}function ae(oe,re){for(var ne=0,ie=0,we=J?new Uint16Array(32768):[];ie0;)re[re.l++]=oe[ie++];ne=re.l*8;continue}ne=dr(re,ne,+(ie+Ce==oe.length)+2);for(var pe=0;Ce-- >0;){var fe=oe[ie];pe=(pe<<5^fe)&32767;var xe=-1,Re=0;if((xe=we[pe])&&(xe|=ie&-32768,xe>ie&&(xe-=32768),xe2){fe=M[Re],fe<=22?ne=kr(re,ne,Q[fe+1]>>1)-1:(kr(re,ne,3),ne+=5,kr(re,ne,Q[fe-23]>>5),ne+=3);var ar=fe<8?0:fe-4>>2;ar>0&&(Qe(re,ne,Re-q[fe]),ne+=ar),fe=j[ie-xe],ne=kr(re,ne,Q[fe]>>3),ne-=3;var lr=fe<4?0:fe-2>>1;lr>0&&(Qe(re,ne,ie-xe-ee[fe]),ne+=lr);for(var Lr=0;Lr>8-fe;for(var xe=(1<<7-fe)-1;xe>=0;--xe)Ne[pe|xe<>>=3){case 16:for(H=3+Oe(k,j),j+=2,pe=Re[Re.length-1];H-- >0;)Re.push(pe);break;case 17:for(H=3+Ie(k,j),j+=3;H-- >0;)Re.push(0);break;case 18:for(H=11+ve(k,j),j+=7;H-- >0;)Re.push(0);break;default:Re.push(pe),re>>0,oe=0,re=0;(B&1)==0;){if(B=Ie(k,P),P+=3,B>>>1==0){P&7&&(P+=8-(P&7));var ne=k[P>>>3]|k[(P>>>3)+1]<<8;if(P+=32,ne>0)for(!j&&ae0;)M[H++]=k[P>>>3],P+=8;continue}else B>>1==1?(oe=9,re=5):(P=sr(k,P),oe=Be,re=tr);for(;;){!j&&ae>>1==1?Ae[ie]:De[ie];if(P+=we&15,we>>>=4,(we>>>8&255)===0)M[H++]=we;else{if(we==256)break;we-=257;var Ce=we<8?0:we-4>>2;Ce>5&&(Ce=0);var pe=H+q[we];Ce>0&&(pe+=Ye(k,P,Ce),P+=Ce),ie=Ye(k,P,re),we=B>>>1==1?de[ie]:Ke[ie],P+=we&15,we>>>=4;var fe=we<4?0:we-2>>1,xe=ee[we];for(fe>0&&(xe+=Ye(k,P,fe),P+=fe),!j&&ae>>3]:[M.slice(0,H),P+7>>>3]}function Fr(k,j){var P=k.slice(k.l||0),B=wr(P,j);return k.l+=B[1],B[0]}function Wt(k,j){if(k)typeof console<"u"&&console.error(j);else throw new Error(j)}function ia(k,j){var P=k;st(P,0);var B=[],M=[],H={FileIndex:B,FullPaths:M};_(H,{root:j.root});for(var ae=P.length-4;(P[ae]!=80||P[ae+1]!=75||P[ae+2]!=5||P[ae+3]!=6)&&ae>=0;)--ae;P.l=ae+4,P.l+=4;var oe=P.read_shift(2);P.l+=6;var re=P.read_shift(4);for(P.l=re,ae=0;ae0&&(P=P.slice(0,P.length-1),P=P.slice(0,P.lastIndexOf("/")+1),H.slice(0,P.length)!=P););var ae=(B[1]||"").match(/boundary="(.*?)"/);if(!ae)throw new Error("MAD cannot find boundary");var oe="--"+(ae[1]||""),re=[],ne=[],ie={FileIndex:re,FullPaths:ne};_(ie);var we,Ce=0;for(M=0;M=32&&pe<128&&++we;var xe=we>=Ce*4/5;M.push(B),M.push("Content-Location: "+(P.root||"file:///C:/SheetJS/")+ae),M.push("Content-Transfer-Encoding: "+(xe?"quoted-printable":"base64")),M.push("Content-Type: "+za(oe,ae)),M.push(""),M.push(xe?Ht(ie):Ut(ie))}return M.push(B+`--\r
-`),M.join(`\r
-`)}function Wr(k){var j={};return _(j,k),j}function _t(k,j,P,B){var M=B&&B.unsafe;M||_(k);var H=!M&&Me.find(k,j);if(!H){var ae=k.FullPaths[0];j.slice(0,ae.length)==ae?ae=j:(ae.slice(-1)!="/"&&(ae+="/"),ae=(ae+j).replace("//","/")),H={name:n(j),type:2},k.FileIndex.push(H),k.FullPaths.push(ae),M||Me.utils.cfb_gc(k)}return H.content=P,H.size=P?P.length:0,B&&(B.CLSID&&(H.clsid=B.CLSID),B.mt&&(H.mt=B.mt),B.ct&&(H.ct=B.ct)),H}function Ta(k,j){_(k);var P=Me.find(k,j);if(P){for(var B=0;B3&&(a=!0),n[i].slice(n[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[i].slice(n[i].length-1));case"D":t*=24;case"H":t*=60;case"M":if(a)t*=60;else throw new Error("Unsupported ISO Duration Field: M")}r+=t*parseInt(n[i],10)}return r}var ff=new Date("2017-02-19T19:06:09.000Z"),_d=isNaN(ff.getFullYear())?new Date("2/19/17"):ff,tm=_d.getFullYear()==2017;function Ir(e,r){var t=new Date(e);if(tm)return r>0?t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3):r<0&&t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3),t;if(e instanceof Date)return e;if(_d.getFullYear()==1917&&!isNaN(t.getFullYear())){var a=t.getFullYear();return e.indexOf(""+a)>-1||t.setFullYear(t.getFullYear()+100),t}var n=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function Cn(e,r){if(Je&&Buffer.isBuffer(e)){if(r){if(e[0]==255&&e[1]==254)return ya(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return ya(ld(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(r){if(e[0]==255&&e[1]==254)return ya(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return ya(new TextDecoder("utf-16be").decode(e.slice(2)))}var t={"\u20AC":"\x80","\u201A":"\x82",\u0192:"\x83","\u201E":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02C6":"\x88","\u2030":"\x89",\u0160:"\x8A","\u2039":"\x8B",\u0152:"\x8C",\u017D:"\x8E","\u2018":"\x91","\u2019":"\x92","\u201C":"\x93","\u201D":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02DC":"\x98","\u2122":"\x99",\u0161:"\x9A","\u203A":"\x9B",\u0153:"\x9C",\u017E:"\x9E",\u0178:"\x9F"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return t[i]||i})}catch{}for(var a=[],n=0;n!=e.length;++n)a.push(String.fromCharCode(e[n]));return a.join("")}function Dr(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=Dr(e[t]));return r}function Mr(e,r){for(var t="";t.length3&&am.indexOf(o)==-1)return t}else if(o.match(/[a-z]/))return t;return a<0||a>8099?t:(n>0||i>1)&&a!=101?r:e.match(/[^-0-9:,\/\\]/)?t:r}var nm=function(){var e="abacaba".split(/(:?b)/i).length==5;return function(t,a,n){if(e||typeof a=="string")return t.split(a);for(var i=t.split(a),o=[i[0]],s=1;s\r
-`,om=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,df=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,sm=/<[^>]*>/g,wt=Vr.match(df)?df:sm,lm=/<\w*:/,cm=/<(\/?)\w+:/;function He(e,r,t){for(var a={},n=0,i=0;n!==e.length&&!((i=e.charCodeAt(n))===32||i===10||i===13);++n);if(r||(a[0]=e.slice(0,n)),n===e.length)return a;var o=e.match(om),s=0,l="",c=0,f="",u="",d=1;if(o)for(c=0;c!=o.length;++c){for(u=o[c],i=0;i!=u.length&&u.charCodeAt(i)!==61;++i);for(f=u.slice(0,i).trim();u.charCodeAt(i+1)==32;)++i;for(d=(n=u.charCodeAt(i+1))==34||n==39?1:0,l=u.slice(i+1+d,u.length-d),s=0;s!=f.length&&f.charCodeAt(s)!==58;++s);if(s===f.length)f.indexOf("_")>0&&(f=f.slice(0,f.indexOf("_"))),a[f]=l,t||(a[f.toLowerCase()]=l);else{var v=(s===5&&f.slice(0,5)==="xmlns"?"xmlns":"")+f.slice(s+1);if(a[v]&&f.slice(s-3,s)=="ext")continue;a[v]=l,t||(a[v.toLowerCase()]=l)}}return a}function Ea(e){return e.replace(cm,"<$1")}var Td={""":'"',"'":"'",">":">","<":"<","&":"&"},r0=_s(Td),ir=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,r=/_x([\da-fA-F]{4})_/ig;return function t(a){var n=a+"",i=n.indexOf("-1?16:10))||s}).replace(r,function(s,l){return String.fromCharCode(parseInt(l,16))});var o=n.indexOf("]]>");return t(n.slice(0,i))+n.slice(i+9,o)+t(n.slice(o+3))}}(),t0=/[&<>'"]/g,fm=/[\u0000-\u0008\u000b-\u001f]/g;function mr(e){var r=e+"";return r.replace(t0,function(t){return r0[t]}).replace(fm,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function hf(e){return mr(e).replace(/ /g,"_x0020_")}var kd=/[\u0000-\u001f]/g;function a0(e){var r=e+"";return r.replace(t0,function(t){return r0[t]}).replace(/\n/g,"
").replace(kd,function(t){return""+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function um(e){var r=e+"";return r.replace(t0,function(t){return r0[t]}).replace(kd,function(t){return""+t.charCodeAt(0).toString(16).toUpperCase()+";"})}var vf=function(){var e=/(\d+);/g;function r(t,a){return String.fromCharCode(parseInt(a,10))}return function(a){return a.replace(e,r)}}();function dm(e){return e.replace(/(\r\n|[\r\n])/g,"
")}function Ar(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Gs(e){for(var r="",t=0,a=0,n=0,i=0,o=0,s=0;t191&&a<224){o=(a&31)<<6,o|=n&63,r+=String.fromCharCode(o);continue}if(i=e.charCodeAt(t++),a<240){r+=String.fromCharCode((a&15)<<12|(n&63)<<6|i&63);continue}o=e.charCodeAt(t++),s=((a&7)<<18|(n&63)<<12|(i&63)<<6|o&63)-65536,r+=String.fromCharCode(55296+(s>>>10&1023)),r+=String.fromCharCode(56320+(s&1023))}return r}function xf(e){var r=rn(2*e.length),t,a,n=1,i=0,o=0,s;for(a=0;a>>10&1023),t=56320+(t&1023)),o!==0&&(r[i++]=o&255,r[i++]=o>>>8,o=0),r[i++]=t%256,r[i++]=t>>>8;return r.slice(0,i).toString("ucs2")}function gf(e){return Ua(e,"binary").toString("utf8")}var Ao="foo bar baz\xE2\x98\x83\xF0\x9F\x8D\xA3",br=Je&&(gf(Ao)==Gs(Ao)&&gf||xf(Ao)==Gs(Ao)&&xf)||Gs,ya=Je?function(e){return Ua(e,"utf8").toString("binary")}:function(e){for(var r=[],t=0,a=0,n=0;t>6))),r.push(String.fromCharCode(128+(a&63)));break;case(a>=55296&&a<57344):a-=55296,n=e.charCodeAt(t++)-56320+(a<<10),r.push(String.fromCharCode(240+(n>>18&7))),r.push(String.fromCharCode(144+(n>>12&63))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(n&63)));break;default:r.push(String.fromCharCode(224+(a>>12))),r.push(String.fromCharCode(128+(a>>6&63))),r.push(String.fromCharCode(128+(a&63)))}return r.join("")},$i=function(){var e={};return function(t,a){var n=t+"|"+(a||"");return e[n]?e[n]:e[n]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)(?:\\w+:)?'+t+">",a||"")}}(),hm=function(){var e=[["nbsp"," "],["middot","\xB7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(t){for(var a=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+