/* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message Digest Algorithm, as defined in RFC 1321. Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet Distributed under the BSD License See http://pajhome.org.uk/crypt/md5 for more info. CryptoJS v3.1.2 code.google.com/p/crypto-js (c) 2009-2013 by Jeff Mott. All rights reserved. code.google.com/p/crypto-js/wiki/License Copyright (c) 2005 Tom Wu All Rights Reserved. See "LICENSE" for details. Basic JavaScript BN library - subset useful for RSA encryption. Copyright (c) 2005-2009 Tom Wu All Rights Reserved. See "LICENSE" for details. Extended JavaScript BN functions, required for RSA private ops. JSZip - A Javascript class for generating and reading zip files (c) 2009-2014 Stuart Knightley Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown. JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/master/LICENSE */ var MAX_MESSAGE_SIZE_BYTES=1E4,AES_PASSWORD_LEN=44,DISPLAY_BANNER=!1,BANNER_MESSAGE="",TEST_BANNER_MESSAGE="",gErrorMsgLen="Message is too long!",gErrorNameLen="Name is too long!",gErrorEmailLen="Email is too long!",gErrorPhoneLen="Phone number is too long!",gErrorPhoneCcLen="Phone number country code is too long!",gErrorCellLen="Cell number is too long!",gErrorCellCcLen="Cell number country code is too long!",gErrorMissingMsgAndEmail="Please enter a valid Email address and fill out the Message field!", gErrorMissingMsgField="Please fill out the Message field!",gErrorMissingEmailField="Please enter a valid Email address!",gHtmlErrorMaxMsgSize="Max message size reached. Please shorten or split into two messages.",gVersionIE=detectIE();$("#message").attr("maxlength",MAX_MESSAGE_SIZE_BYTES); var gMaxEmailSizeChars=$("#email").attr("maxlength"),gMaxNameSizeChars=$("#name").attr("maxlength"),gMaxPhoneSizeChars=$("#phone").attr("maxlength"),gMaxPhoneCcSizeChars=$("#phone_cc").attr("maxlength"),gMaxCellSizeChars=$("#cellnumber").attr("maxlength"),gMaxCellCcSizeChars=$("#cellcc").attr("maxlength"),emailRegex="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*$";$("#email").attr("pattern",emailRegex);var gEmailRegex=$("#email").attr("pattern"); gVersionIE&&9>=gVersionIE&&($("#phone_cc").attr("placeholder","CC"),$("#cellcc").attr("placeholder","CC")); var gPlaceholderEmail=$("#email").attr("placeholder"),gPlaceholderName=$("#name").attr("placeholder"),gPlaceholderMessage=$("#message").attr("placeholder"),gPlaceholderPhoneCC=$("#phone_cc").attr("placeholder"),gPlaceholderPhoneNum=$("#phone").attr("placeholder"),gPlaceholderCellCC=$("#cellcc").attr("placeholder"),gPlaceholderCellNum=$("#cellnumber").attr("placeholder"),gPlaceholderArray=[gPlaceholderEmail,gPlaceholderName,gPlaceholderMessage,gPlaceholderPhoneCC,gPlaceholderPhoneNum,gPlaceholderCellCC, gPlaceholderCellNum],gReloadSubmission=!1,gPopupBodyHtml="",gVerticalScroll="",gHorizontalScroll="",gRefId="";function detectIE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(0i;i++)e+="123456789ACDEFGHJKLMNQRSTUVWXYZ".charAt(Math.floor(31*Math.random()));gRefId=e};getRefId=function(e){""===gRefId&&calcRefId();e&&calcRefId();return gRefId};function updateRefId(e){e="Submission Reference ID: "+getRefId(e)+"";$("#popupBody").find("#refId").html(e)}"object"!==typeof JSON&&(JSON={}); (function(){function e(e){return 10>e?"0"+e:e}function t(e){C.lastIndex=0;return C.test(e)?'"'+e.replace(C,function(e){var t=S[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function E(e,I){var Z,ca,C,S,ea=J,aa,G=I[e];G&&"object"===typeof G&&"function"===typeof G.toJSON&&(G=G.toJSON(e));"function"===typeof W&&(G=W.call(I,e,G));switch(typeof G){case "string":return t(G);case "number":return isFinite(G)?String(G):"null";case "boolean":case "null":return String(G); case "object":if(!G)return"null";J+=fa;aa=[];if("[object Array]"===Object.prototype.toString.apply(G)){S=G.length;for(Z=0;Z>=15;0<=--g;){var n=this[d]&32767,e=this[d++]>>15,h=a*n+e*k,n=k*n+((h&32767)<<15)+c[b]+(f&1073741823);f=(n>>>30)+(h>>>15)+a*e+(f>>>30);c[b++]= n&1073741823}return f}function C(d,a,c,b,f,g){var k=a&16383;for(a>>=14;0<=--g;){var n=this[d]&16383,e=this[d++]>>14,h=a*n+e*k,n=k*n+((h&16383)<<14)+c[b]+f;f=(n>>28)+(h>>14)+a*e;c[b++]=n&268435455}return f}function J(d){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(d)}function fa(d,a){var c=ja[d.charCodeAt(a)];return null==c?-1:c}function S(d){var a=t();a.fromInt(d);return a}function W(d){var a=1,c;0!=(c=d>>>16)&&(d=c,a+=16);0!=(c=d>>8)&&(d=c,a+=8);0!=(c=d>>4)&&(d=c,a+=4);0!=(c=d>>2)&&(d=c,a+= 2);0!=d>>1&&(a+=1);return a}function ha(d){this.m=d}function ia(d){this.m=d;this.mp=d.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<>>2]|=(c[f>>>2]>>>24-f%4*8&255)<<24-(b+f)%4*8;else if(65535>>2]=c[f>>>2];else d.push.apply(d,c);this.sigBytes+=a;return this},clamp:function(){var a=this.words,c=this.sigBytes;a[c>>>2]&=4294967295<<32-c%4*8;a.length= d.ceil(c/4)},clone:function(){var a=g.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var c=[],b=0;b>>2]>>>24-b%4*8&255;c.push((f>>>4).toString(16));c.push((f&15).toString(16))}return c.join("")},parse:function(a){for(var d=a.length,c=[],b=0;b>>3]|=parseInt(a.substr(b,2),16)<<24-b%8*4;return new k.init(c, d/2)}},h=n.Latin1={stringify:function(a){var d=a.words;a=a.sigBytes;for(var c=[],b=0;b>>2]>>>24-b%4*8&255));return c.join("")},parse:function(a){for(var d=a.length,c=[],b=0;b>>2]|=(a.charCodeAt(b)&255)<<24-b%4*8;return new k.init(c,d)}},H=n.Utf8={stringify:function(a){try{return decodeURIComponent(escape(h.stringify(a)))}catch(d){throw Error("Malformed UTF-8 data");}},parse:function(a){return h.parse(unescape(encodeURIComponent(a)))}},D=b.BufferedBlockAlgorithm= g.extend({reset:function(){this._data=new k.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=H.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var c=this._data,b=c.words,f=c.sigBytes,g=this.blockSize,h=f/(4*g),h=a?d.ceil(h):d.max((h|0)-this._minBufferSize,0);a=h*g;f=d.min(4*a,f);if(a){for(var F=0;F>>2]>>>24-k%4*8&255)<<16|(d[k+1>>>2]>>>24-(k+1)%4*8&255)<<8|d[k+2>>>2]>>>24-(k+2)%4*8&255,e=0;4>e&&k+.75*e>>6*(3-e)&63));if(d=g.charAt(64))for(;a.length%4;)a.push(d);return a.join("")},parse:function(d){var b=d.length,f=this._map,g=f.charAt(64);g&&(g=d.indexOf(g),-1!=g&&(b=g));for(var g= [],k=0,n=0;n>>6-n%4*2;g[k>>>2]|=(e|h)<<24-k%4*8;k++}return a.create(g,k)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})();(function(d){function a(a,d,c,b,f,g,k){a=a+(d&c|~d&b)+f+k;return(a<>>32-g)+d}function c(a,d,c,b,f,g,k){a=a+(d&b|c&~b)+f+k;return(a<>>32-g)+d}function b(a,d,c,b,f,g,k){a=a+(d^c^b)+f+k;return(a<>>32-g)+d}function f(a,d,c,b,f,g,k){a=a+(c^(d|~b))+f+k;return(a<< g|a>>>32-g)+d}for(var g=ga,k=g.lib,n=k.WordArray,e=k.Hasher,k=g.algo,h=[],H=0;64>H;H++)h[H]=4294967296*d.abs(d.sin(H+1))|0;k=k.MD5=e.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(d,g){for(var k=0;16>k;k++){var e=g+k,n=d[e];d[e]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360}var k=this._hash.words,e=d[g+0],n=d[g+1],H=d[g+2],q=d[g+3],y=d[g+4],X=d[g+5],m=d[g+6],t=d[g+7],E=d[g+8],K=d[g+9],A=d[g+10],L=d[g+11],B=d[g+12],l=d[g+ 13],r=d[g+14],ka=d[g+15],w=k[0],p=k[1],u=k[2],z=k[3],w=a(w,p,u,z,e,7,h[0]),z=a(z,w,p,u,n,12,h[1]),u=a(u,z,w,p,H,17,h[2]),p=a(p,u,z,w,q,22,h[3]),w=a(w,p,u,z,y,7,h[4]),z=a(z,w,p,u,X,12,h[5]),u=a(u,z,w,p,m,17,h[6]),p=a(p,u,z,w,t,22,h[7]),w=a(w,p,u,z,E,7,h[8]),z=a(z,w,p,u,K,12,h[9]),u=a(u,z,w,p,A,17,h[10]),p=a(p,u,z,w,L,22,h[11]),w=a(w,p,u,z,B,7,h[12]),z=a(z,w,p,u,l,12,h[13]),u=a(u,z,w,p,r,17,h[14]),p=a(p,u,z,w,ka,22,h[15]),w=c(w,p,u,z,n,5,h[16]),z=c(z,w,p,u,m,9,h[17]),u=c(u,z,w,p,L,14,h[18]),p=c(p,u, z,w,e,20,h[19]),w=c(w,p,u,z,X,5,h[20]),z=c(z,w,p,u,A,9,h[21]),u=c(u,z,w,p,ka,14,h[22]),p=c(p,u,z,w,y,20,h[23]),w=c(w,p,u,z,K,5,h[24]),z=c(z,w,p,u,r,9,h[25]),u=c(u,z,w,p,q,14,h[26]),p=c(p,u,z,w,E,20,h[27]),w=c(w,p,u,z,l,5,h[28]),z=c(z,w,p,u,H,9,h[29]),u=c(u,z,w,p,t,14,h[30]),p=c(p,u,z,w,B,20,h[31]),w=b(w,p,u,z,X,4,h[32]),z=b(z,w,p,u,E,11,h[33]),u=b(u,z,w,p,L,16,h[34]),p=b(p,u,z,w,r,23,h[35]),w=b(w,p,u,z,n,4,h[36]),z=b(z,w,p,u,y,11,h[37]),u=b(u,z,w,p,t,16,h[38]),p=b(p,u,z,w,A,23,h[39]),w=b(w,p,u,z, l,4,h[40]),z=b(z,w,p,u,e,11,h[41]),u=b(u,z,w,p,q,16,h[42]),p=b(p,u,z,w,m,23,h[43]),w=b(w,p,u,z,K,4,h[44]),z=b(z,w,p,u,B,11,h[45]),u=b(u,z,w,p,ka,16,h[46]),p=b(p,u,z,w,H,23,h[47]),w=f(w,p,u,z,e,6,h[48]),z=f(z,w,p,u,t,10,h[49]),u=f(u,z,w,p,r,15,h[50]),p=f(p,u,z,w,X,21,h[51]),w=f(w,p,u,z,B,6,h[52]),z=f(z,w,p,u,q,10,h[53]),u=f(u,z,w,p,A,15,h[54]),p=f(p,u,z,w,n,21,h[55]),w=f(w,p,u,z,E,6,h[56]),z=f(z,w,p,u,ka,10,h[57]),u=f(u,z,w,p,m,15,h[58]),p=f(p,u,z,w,l,21,h[59]),w=f(w,p,u,z,y,6,h[60]),z=f(z,w,p,u,L, 10,h[61]),u=f(u,z,w,p,H,15,h[62]),p=f(p,u,z,w,K,21,h[63]);k[0]=k[0]+w|0;k[1]=k[1]+p|0;k[2]=k[2]+u|0;k[3]=k[3]+z|0},_doFinalize:function(){var a=this._data,c=a.words,b=8*this._nDataBytes,f=8*a.sigBytes;c[f>>>5]|=128<<24-f%32;var g=d.floor(b/4294967296);c[(f+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360;c[(f+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360;a.sigBytes=4*(c.length+1);this._process();a=this._hash;c=a.words;for(b=0;4>b;b++)f=c[b],c[b]=(f<<8|f>>>24)&16711935| (f<<24|f>>>8)&4278255360;return a},clone:function(){var a=e.clone.call(this);a._hash=this._hash.clone();return a}});g.MD5=e._createHelper(k);g.HmacMD5=e._createHmacHelper(k)})(Math);(function(){var d=ga,a=d.lib,c=a.Base,b=a.WordArray,a=d.algo,f=a.EvpKDF=c.extend({cfg:c.extend({keySize:4,hasher:a.MD5,iterations:1}),init:function(a){this.cfg=this.cfg.extend(a)},compute:function(a,d){for(var c=this.cfg,f=c.hasher.create(),h=b.create(),e=h.words,D=c.keySize,c=c.iterations;e.length>>2]&255}};c.BlockCipher=q.extend({cfg:q.cfg.extend({mode:h,padding:D}),reset:function(){q.reset.call(this); var a=this.cfg,d=a.iv,a=a.mode;if(this._xformMode==this._ENC_XFORM_MODE)var c=a.createEncryptor;else c=a.createDecryptor,this._minBufferSize=1;this._mode=c.call(a,this,d&&d.words)},_doProcessBlock:function(a,d){this._mode.processBlock(a,d)},_doFinalize:function(){var a=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){a.pad(this._data,this.blockSize);var d=this._process(!0)}else d=this._process(!0),a.unpad(d);return d},blockSize:4});var F=c.CipherParams=b.extend({init:function(a){this.mixIn(a)}, toString:function(a){return(a||this.formatter).stringify(this)}}),h=(a.format={}).OpenSSL={stringify:function(a){var d=a.ciphertext;a=a.salt;return(a?f.create([1398893684,1701076831]).concat(a).concat(d):d).toString(k)},parse:function(a){a=k.parse(a);var d=a.words;if(1398893684==d[0]&&1701076831==d[1]){var c=f.create(d.slice(2,4));d.splice(0,4);a.sigBytes-=16}return F.create({ciphertext:a,salt:c})}},x=c.SerializableCipher=b.extend({cfg:b.extend({format:h}),encrypt:function(a,d,c,b){b=this.cfg.extend(b); var f=a.createEncryptor(c,b);d=f.finalize(d);f=f.cfg;return F.create({ciphertext:d,key:c,iv:f.iv,algorithm:a,mode:f.mode,padding:f.padding,blockSize:a.blockSize,formatter:b.format})},decrypt:function(a,d,c,b){b=this.cfg.extend(b);d=this._parse(d,b.format);return a.createDecryptor(c,b).finalize(d.ciphertext)},_parse:function(a,d){return"string"==typeof a?d.parse(a,this):a}}),a=(a.kdf={}).OpenSSL={execute:function(a,d,c,b){b||(b=f.random(8));a=e.create({keySize:d+c}).compute(a,b);c=f.create(a.words.slice(d), 4*c);a.sigBytes=4*d;return F.create({key:a,iv:c,salt:b})}},U=c.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:a}),encrypt:function(a,d,c,b){b=this.cfg.extend(b);c=b.kdf.execute(c,a.keySize,a.ivSize);b.iv=c.iv;a=x.encrypt.call(this,a,d,c.key,b);a.mixIn(c);return a},decrypt:function(a,d,c,b){b=this.cfg.extend(b);d=this._parse(d,b.format);c=b.kdf.execute(c,a.keySize,a.ivSize,d.salt);b.iv=c.iv;return x.decrypt.call(this,a,d,c.key,b)}})}();(function(){for(var d=ga,a=d.lib.BlockCipher,c=d.algo,b=[], f=[],g=[],k=[],e=[],q=[],h=[],H=[],D=[],F=[],x=[],U=0;256>U;U++)x[U]=128>U?U<<1:U<<1^283;for(var da=0,M=0,U=0;256>U;U++){var t=M^M<<1^M<<2^M<<3^M<<4,t=t>>>8^t&255^99;b[da]=t;f[t]=da;var y=x[da],X=x[y],m=x[X],N=257*x[t]^16843008*t;g[da]=N<<24|N>>>8;k[da]=N<<16|N>>>16;e[da]=N<<8|N>>>24;q[da]=N;N=16843009*m^65537*X^257*y^16843008*da;h[t]=N<<24|N>>>8;H[t]=N<<16|N>>>16;D[t]=N<<8|N>>>24;F[t]=N;da?(da=y^x[x[x[m^y]]],M^=x[x[M]]):da=M=1}var E=[0,1,2,4,8,16,32,64,128,27,54],c=c.AES=a.extend({_doReset:function(){for(var a= this._key,d=a.words,c=a.sigBytes/4,a=4*((this._nRounds=c+6)+1),f=this._keySchedule=[],l=0;l>>24]<<24|b[g>>>16&255]<<16|b[g>>>8&255]<<8|b[g&255]):(g=g<<8|g>>>24,g=b[g>>>24]<<24|b[g>>>16&255]<<16|b[g>>>8&255]<<8|b[g&255],g^=E[l/c|0]<<24);f[l]=f[l-c]^g}d=this._invKeySchedule=[];for(c=0;cc||4>=l?g:h[b[g>>>24]]^H[b[g>>>16&255]]^D[b[g>>>8&255]]^F[b[g&255]]},encryptBlock:function(a,d){this._doCryptBlock(a, d,this._keySchedule,g,k,e,q,b)},decryptBlock:function(a,d){var c=a[d+1];a[d+1]=a[d+3];a[d+3]=c;this._doCryptBlock(a,d,this._invKeySchedule,h,H,D,F,f);c=a[d+1];a[d+1]=a[d+3];a[d+3]=c},_doCryptBlock:function(a,d,c,b,l,f,g,w){for(var m=this._nRounds,k=a[d]^c[0],h=a[d+1]^c[1],e=a[d+2]^c[2],n=a[d+3]^c[3],x=4,R=1;R>>24]^l[h>>>16&255]^f[e>>>8&255]^g[n&255]^c[x++],H=b[h>>>24]^l[e>>>16&255]^f[n>>>8&255]^g[k&255]^c[x++],D=b[e>>>24]^l[n>>>16&255]^f[k>>>8&255]^g[h&255]^c[x++],n=b[n>>>24]^l[k>>> 16&255]^f[h>>>8&255]^g[e&255]^c[x++],k=F,h=H,e=D;F=(w[k>>>24]<<24|w[h>>>16&255]<<16|w[e>>>8&255]<<8|w[n&255])^c[x++];H=(w[h>>>24]<<24|w[e>>>16&255]<<16|w[n>>>8&255]<<8|w[k&255])^c[x++];D=(w[e>>>24]<<24|w[n>>>16&255]<<16|w[k>>>8&255]<<8|w[h&255])^c[x++];n=(w[n>>>24]<<24|w[k>>>16&255]<<16|w[h>>>8&255]<<8|w[e&255])^c[x++];a[d]=F;a[d+1]=H;a[d+2]=D;a[d+3]=n},keySize:8});d.AES=a._createHelper(c)})();var Q;"Microsoft Internet Explorer"==navigator.appName?(e.prototype.am=I,Q=30):"Netscape"!=navigator.appName? (e.prototype.am=E,Q=26):(e.prototype.am=C,Q=28);e.prototype.DB=Q;e.prototype.DM=(1<=ba;++ba)ja[Q++]=ba;Q=97;for(ba=10;36>ba;++ba)ja[Q++]=ba;Q=65;for(ba=10;36>ba;++ba)ja[Q++]=ba;ha.prototype.convert=function(d){return 0>d.s||0<=d.compareTo(this.m)?d.mod(this.m):d};ha.prototype.revert=function(d){return d};ha.prototype.reduce=function(d){d.divRemTo(this.m,null,d)};ha.prototype.mulTo= function(d,a,c){d.multiplyTo(a,c);this.reduce(c)};ha.prototype.sqrTo=function(d,a){d.squareTo(a);this.reduce(a)};ia.prototype.convert=function(d){var a=t();d.abs().dlShiftTo(this.m.t,a);a.divRemTo(this.m,null,a);0>d.s&&0>15)*this.mpl& this.um)<<15)&d.DM,c=a+this.m.t;for(d[c]+=this.m.am(0,b,d,a,0,this.m.t);d[c]>=d.DV;)d[c]-=d.DV,d[++c]++}d.clamp();d.drShiftTo(this.m.t,d);0<=d.compareTo(this.m)&&d.subTo(this.m,d)};ia.prototype.mulTo=function(d,a,c){d.multiplyTo(a,c);this.reduce(c)};ia.prototype.sqrTo=function(d,a){d.squareTo(a);this.reduce(a)};e.prototype.copyTo=function(d){for(var a=this.t-1;0<=a;--a)d[a]=this[a];d.t=this.t;d.s=this.s};e.prototype.fromInt=function(d){this.t=1;this.s=0>d?-1:0;0d?this[0]=d+DV:this.t= 0};e.prototype.fromString=function(d,a){var c;if(16==a)c=4;else if(8==a)c=3;else if(256==a)c=8;else if(2==a)c=1;else if(32==a)c=5;else if(4==a)c=2;else{this.fromRadix(d,a);return}this.s=this.t=0;for(var b=d.length,f=!1,g=0;0<=--b;){var k=8==c?d[b]&255:fa(d,b);0>k?"-"==d.charAt(b)&&(f=!0):(f=!1,0==g?this[this.t++]=k:g+c>this.DB?(this[this.t-1]|=(k&(1<>this.DB-g):this[this.t-1]|=k<=this.DB&&(g-=this.DB))}8==c&&0!=(d[0]&128)&&(this.s=-1,0>b|k,k=(this[e]&f)<=this.t)a.t=0;else{var b=d%this.DB,f=this.DB-b,g=(1<>b;for(var k=c+1;k>b;0>=this.DB;if(d.t>=this.DB;b+=this.s}else{for(b+=this.s;c>=this.DB;b-=d.s}a.s=0>b?-1:0;-1>b?a[c++]=this.DV+b:0=a.DV&&(d[c+a.t]-=a.DV,d[c+a.t+1]=1)}0=b.t)){var f=this.abs();if(f.t>this.F2:0),h=this.FV/q,q=(1<k&&e.ZERO.subTo(c,c)}}}};e.prototype.invDigit=function(){if(1>this.t)return 0;var d=this[0];if(0==(d&1))return 0;var a=d&3,a=a*(2-(d&15)*a)&15,a=a*(2-(d&255)*a)&255,a=a*(2-((d&65535)*a&65535))&65535,a=a*(2-d*a%this.DV)%this.DV;return 0d)return e.ONE;var c=t(),b=t(),f=a.convert(this),g=W(d)-1;for(f.copyTo(c);0<=--g;)if(a.sqrTo(c,b),0<(d&1<this.s)return"-"+this.negate().toString(d);if(16==d)d=4;else if(8==d)d=3;else if(2==d)d=1;else if(32==d)d=5;else if(4==d)d=2;else return this.toRadix(d);var a=(1<>k)&&(b=!0,f=J(c));0<=g;)k>(k+=this.DB-d)):(c=this[g]>>(k-=d)&a,0>=k&&(k+=this.DB,--g)),0this.s?this.negate():this};e.prototype.compareTo=function(d){var a=this.s-d.s;if(0!=a)return a;var c=this.t,a=c-d.t;if(0!=a)return 0>this.s?-a:a;for(;0<=--c;)if(0!=(a=this[c]-d[c]))return a;return 0};e.prototype.bitLength=function(){return 0>=this.t?0:this.DB*(this.t-1)+W(this[this.t-1]^this.s&this.DM)};e.prototype.mod=function(d){var a=t();this.abs().divRemTo(d,null,a);0>this.s&&0d||a.isEven()?new ha(a):new ia(a);return this.exp(d,c)};e.ZERO=S(0);e.ONE=S(1);ea.prototype.convert=aa;ea.prototype.revert=aa;ea.prototype.mulTo=function(d,a,c){d.multiplyTo(a,c)};ea.prototype.sqrTo=function(d,a){d.squareTo(a)};G.prototype.convert=function(d){if(0>d.s||d.t>2*this.m.t)return d.mod(this.m);if(0>d.compareTo(this.m))return d;var a=t();d.copyTo(a);this.reduce(a);return a};G.prototype.revert=function(d){return d};G.prototype.reduce= function(d){d.drShiftTo(this.m.t-1,this.r2);d.t>this.m.t+1&&(d.t=this.m.t+1,d.clamp());this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);for(this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);0>d.compareTo(this.r2);)d.dAddOffset(1,this.m.t+1);for(d.subTo(this.r2,d);0<=d.compareTo(this.m);)d.subTo(this.m,d)};G.prototype.mulTo=function(d,a,c){d.multiplyTo(a,c);this.reduce(c)};G.prototype.sqrTo=function(d,a){d.squareTo(a);this.reduce(a)};var Y=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67, 71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839, 853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],ta=67108864/Y[Y.length-1];e.prototype.chunkSize=function(d){return Math.floor(Math.LN2*this.DB/Math.log(d))};e.prototype.toRadix=function(d){null==d&&(d=10);if(0==this.signum()||2>d||36q?"-"==d.charAt(n)&&0==this.signum()&&(f=!0):(k=a*k+q,++g>=c&&(this.dMultiply(b),this.dAddOffset(k,0),k=g=0))}0d)this.fromInt(1);else for(this.fromNumber(d,c),this.testBit(d-1)||this.bitwiseTo(e.ONE.shiftLeft(d- 1),ca,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(a);)this.dAddOffset(2,0),this.bitLength()>d&&this.subTo(e.ONE.shiftLeft(d-1),this);else{c=[];var b=d&7;c.length=(d>>3)+1;a.nextBytes(c);c[0]=0>=this.DB;if(d.t>=this.DB;b+=this.s}else{for(b+=this.s;c>=this.DB;b+=d.s}a.s=0>b?-1:0;0b&&(a[c++]=this.DV+b);a.t=c;a.clamp()};e.prototype.dMultiply=function(d){this[this.t]= this.am(0,d-1,this,0,0,this.t);++this.t;this.clamp()};e.prototype.dAddOffset=function(d,a){if(0!=d){for(;this.t<=a;)this[this.t++]=0;for(this[a]+=d;this[a]>=this.DV;)this[a]-=this.DV,++a>=this.t&&(this[this.t++]=0),++this[a]}};e.prototype.multiplyLowerTo=function(d,a,c){var b=Math.min(this.t+d.t,a);c.s=0;for(c.t=b;0=d)return 0;var a=this.DV%d,c=0>this.s?d-1:0;if(0=c)return!1;var b=a.shiftRight(c);d=d+1>>1;d>Y.length&&(d=Y.length); for(var f=t(),g=0;gthis.s){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]& (1<<32-this.DB)-1)<>24};e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16};e.prototype.signum=function(){return 0>this.s?-1:0>=this.t||1==this.t&&0>=this[0]?0:1};e.prototype.toByteArray=function(){var d=this.t,a=[];a[0]=this.s;var c=this.DB-d*this.DB%8,b,f=0;if(0>c)!=(this.s&this.DM)>>c&&(a[f++]=b|this.s<c?(b=(this[d]&(1<>(c+=this.DB-8)):(b=this[d]>>(c-=8)&255,0>=c&&(c+=this.DB,--d)),0!=(b&128)&&(b|=-256),0==f&&(this.s&128)!=(b&128)&&++f,0this.compareTo(d)?this:d};e.prototype.max=function(d){return 0d?this.rShiftTo(-d,a):this.lShiftTo(d,a);return a};e.prototype.shiftRight=function(d){var a=t();0>d?this.lShiftTo(-d,a):this.rShiftTo(d,a);return a};e.prototype.getLowestSetBit=function(){for(var d=0;d>=16,c+=16);0==(d&255)&&(d>>=8,c+=8);0==(d&15)&&(d>>=4,c+=4);0==(d&3)&&(d>>=2,c+=2);0==(d&1)&&++c;d=c}return a+d}return 0>this.s?this.t*this.DB:-1};e.prototype.bitCount=function(){for(var d=0,a=this.s&this.DM,c=0;c=this.t?0!=this.s:0!=(this[a]&1<=c)return f;b=18>c?1:48>c?3:144>c?4:768>c?5:6;g=8>c?new ha(a):a.isEven()?new G(a):new ia(a);var k=[],e=3,q=b-1,h=(1<=q?D=d[H]>>c-q&h:(D=(d[H]&(1<>this.DB+c-q));for(e=b;0==(D&1);)D>>=1,--e; 0>(c-=e)&&(c+=this.DB,--H);if(F)k[D].copyTo(f),F=!1;else{for(;1--c&&(c=this.DB-1,--H)}return g.revert(f)};e.prototype.modInverse=function(d){var a=d.isEven();if(this.isEven()&&a||0==d.signum())return e.ZERO;for(var c=d.clone(),b=this.clone(),f=S(1),g=S(0),k=S(0),n=S(1);0!=c.signum();){for(;c.isEven();)c.rShiftTo(1,c),a?(f.isEven()&&g.isEven()||(f.addTo(this,f), g.subTo(d,g)),f.rShiftTo(1,f)):g.isEven()||g.subTo(d,g),g.rShiftTo(1,g);for(;b.isEven();)b.rShiftTo(1,b),a?(k.isEven()&&n.isEven()||(k.addTo(this,k),n.subTo(d,n)),k.rShiftTo(1,k)):n.isEven()||n.subTo(d,n),n.rShiftTo(1,n);0<=c.compareTo(b)?(c.subTo(b,c),a&&f.subTo(k,f),g.subTo(n,g)):(b.subTo(c,b),a&&k.subTo(f,k),n.subTo(g,n))}if(0!=b.compareTo(e.ONE))return e.ZERO;if(0<=n.compareTo(d))return n.subtract(d);if(0>n.signum())n.addTo(d,n);else return n;return 0>n.signum()?n.add(d):n};e.prototype.pow=function(d){return this.exp(d, new ea)};e.prototype.gcd=function(d){var a=0>this.s?this.negate():this.clone();d=0>d.s?d.negate():d.clone();if(0>a.compareTo(d)){var c=a,a=d;d=c}var c=a.getLowestSetBit(),b=d.getLowestSetBit();if(0>b)return a;c>2,c=(c&3)<<4|b>>4,k=(b&15)<<2|f>>6,e=f&63,isNaN(b)?k=e=64:isNaN(f)&&(e=64),a+=this.base64.charAt(g)+this.base64.charAt(c)+this.base64.charAt(k)+this.base64.charAt(e);while(q>4),64!=f&&(a+=String.fromCharCode((b&15)<<4|f>>2)),64!=g&&(a+=String.fromCharCode((f&3)<<6|g));while(k>4&15)+this.hex.charAt(c&15);while(ba.length)return this.error= !0,null;g=a.substr(0,f);a=a.substr(f)}b&32?d.push(this.parse(g)):d.push(this.value(b&128?4:b&31,g))}return d};this.value=function(a,d){if(1==a)return d?!0:!1;if(2==a)return d;if(3==a)return this.parse(d.substr(1));if(5!=a&&6==a){var b=[],f=d.charCodeAt(0);b.push(Math.floor(f/40));b.push(f-40*b[0]);var f=[],g=0,k;for(k=1;kd.length||"-----BEGIN PUBLIC KEY-----"!=d.substr(0,26))return!1;d=d.substr(26);if("-----END PUBLIC KEY-----"!=d.substr(d.length-24))return!1;d=d.substr(0,d.length-24);d=new va(pa.decode(d));if(d.error)return!1;d=d.data;return"1.2.840.113549.1.1.1"==d[0][0][0]?new ua(d[0][1][0][0],d[0][1][0][1]):!1},encrypt:function(d,a){if(!a)return!1;var c=a.modulus.bitLength()+7>>3;d=this.pkcs1pad2(d,c);if(!d)return!1;d=d.modPowInt(a.encryptionExponent, a.modulus);if(!d)return!1;for(d=d.toString(16);d.length<2*c;)d="0"+d;return pa.encode(la.decode(d))},pkcs1pad2:function(d,a){if(af)if(k)if(56320>f){-1<(d-=3)&&e.push(239,191,189);k=f;continue}else f= k-55296<<10|f-56320|65536,k=null;else{56319f){if(0>--d)break;e.push(f)}else if(2048>f){if(0>(d-=2))break;e.push(f>>6|192,f&63|128)}else if(65536>f){if(0>(d-=3))break;e.push(f>>12|224,f>>6&63|128,f&63|128)}else if(2097152>f){if(0>(d-=4))break;e.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw Error("Invalid code point");}return e}function a(a){try{return decodeURIComponent(a)}catch(d){return String.fromCharCode(65533)}} oa.prototype.encode=function(a){return"undefined"===typeof Uint8Array?d(a):new Uint8Array(d(a))};sa.prototype.decode=function(d){for(var b=d.length,f="",g="",b=Math.min(d.length,b||Infinity),k=0;k=d[k]?(f+=a(g)+String.fromCharCode(d[k]),g=""):g+="%"+d[k].toString(16);return f+a(g)}})();(function(d){"object"===typeof exports&&"undefined"!==typeof module?module.exports=d():"function"===typeof define&&define.amd?define([],d):("undefined"!==typeof window?window:"undefined"!==typeof global? global:"undefined"!==typeof self?self:this).JSZip=d()})(function(){return function a(c,b,f){function g(e,h){if(!b[e]){if(!c[e]){var H="function"==typeof require&&require;if(!h&&H)return H(e,!0);if(k)return k(e,!0);H=Error("Cannot find module '"+e+"'");throw H.code="MODULE_NOT_FOUND",H;}H=b[e]={exports:{}};c[e][0].call(H.exports,function(a){var b=c[e][1][a];return g(b?b:a)},H,H.exports,a,c,b,f)}return b[e].exports}for(var k="function"==typeof require&&require,e=0;e>2,e=(e&3)<<4|q>>4,D=(q&15)<<2|h>>6,F=h&63,isNaN(q)?D=F=64:isNaN(h)&&(F=64),b=b+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(H)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(D)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(F);return b};b.decode=function(a,c){var b="",e,q,h,H,D,F=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");F>4,q=(q&15)<<4|H>>2,h=(H&3)<<6|D,b+=String.fromCharCode(e),64!=H&&(b+=String.fromCharCode(q)),64!=D&&(b+=String.fromCharCode(h));return b}},{}],3:[function(a,c,b){function f(){this.crc32=this.uncompressedSize=this.compressedSize=0;this.compressedContent=this.compressionMethod=null}f.prototype={getContent:function(){return null},getCompressedContent:function(){return null}};c.exports=f},{}],4:[function(a, c,b){b.STORE={magic:"\x00\x00",compress:function(a,c){return a},uncompress:function(a){return a},compressInputType:null,uncompressInputType:null};b.DEFLATE=a("./flate")},{"./flate":9}],5:[function(a,c,b){var f=a("./utils"),g=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042, 2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036, 2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054, 702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859, 3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001, 414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];c.exports=function(a,c){if("undefined"===typeof a||!a.length)return 0; var b="string"!==f.getTypeOf(a);"undefined"==typeof c&&(c=0);var e=0,e=e=0;c^=-1;for(var H=0,D=a.length;H>>8^e;return c^-1}},{"./utils":22}],6:[function(a,c,b){function f(a){this.data=null;this.zero=this.index=this.length=0}var e=a("./utils");f.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.lengtha)throw Error("End of data reached (data length = "+this.length+", asked index = "+ a+"). Corrupted zip ?");},setIndex:function(a){this.checkIndex(a);this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(a){},readInt:function(a){var c=0,b;this.checkOffset(a);for(b=this.index+a-1;b>=this.index;b--)c=(c<<8)+this.byteAt(b);this.index+=a;return c},readString:function(a){return e.transformTo("string",this.readData(a))},readData:function(a){},lastIndexOfSignature:function(a){},readDate:function(){var a=this.readInt(4);return new Date((a>>25&127)+1980,(a>>21&15)-1, a>>16&31,a>>11&31,a>>5&63,(a&31)<<1)}};c.exports=f},{"./utils":22}],7:[function(a,c,b){b.base64=!1;b.binary=!1;b.dir=!1;b.createFolders=!1;b.date=null;b.compression=null;b.compressionOptions=null;b.comment=null;b.unixPermissions=null;b.dosPermissions=null},{}],8:[function(a,c,b){var f=a("./utils");b.string2binary=function(a){return f.string2binary(a)};b.string2Uint8Array=function(a){return f.transformTo("uint8array",a)};b.uint8Array2String=function(a){return f.transformTo("string",a)};b.string2Blob= function(a){a=f.transformTo("arraybuffer",a);return f.arrayBuffer2Blob(a)};b.arrayBuffer2Blob=function(a){return f.arrayBuffer2Blob(a)};b.transformTo=function(a,c){return f.transformTo(a,c)};b.getTypeOf=function(a){return f.getTypeOf(a)};b.checkSupport=function(a){return f.checkSupport(a)};b.MAX_VALUE_16BITS=f.MAX_VALUE_16BITS;b.MAX_VALUE_32BITS=f.MAX_VALUE_32BITS;b.pretty=function(a){return f.pretty(a)};b.findCompression=function(a){return f.findCompression(a)};b.isRegExp=function(a){return f.isRegExp(a)}}, {"./utils":22}],9:[function(a,c,b){c="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;var f=a("pako");b.uncompressInputType=c?"uint8array":"array";b.compressInputType=c?"uint8array":"array";b.magic="\b\x00";b.compress=function(a,c){return f.deflateRaw(a,{level:c.level||-1})};b.uncompress=function(a){return f.inflateRaw(a)}},{pako:25}],10:[function(a,c,b){function f(a,c){if(!(this instanceof f))return new f(a,c);this.files={};this.comment=null;this.root= "";a&&this.load(a,c);this.clone=function(){var a=new f,c;for(c in this)"function"!==typeof this[c]&&(a[c]=this[c]);return a}}var e=a("./base64");f.prototype=a("./object");f.prototype.load=a("./load");f.support=a("./support");f.defaults=a("./defaults");f.utils=a("./deprecatedPublicUtils");f.base64={encode:function(a){return e.encode(a)},decode:function(a){return e.decode(a)}};f.compressions=a("./compressions");c.exports=f},{"./base64":2,"./compressions":4,"./defaults":7,"./deprecatedPublicUtils":8, "./load":11,"./object":14,"./support":18}],11:[function(a,c,b){var f=a("./base64"),e=a("./utf8"),k=a("./utils"),n=a("./zipEntries");c.exports=function(a,c){var b,D,F,x;c=k.extend(c||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:e.utf8decode});c.base64&&(a=f.decode(a));D=new n(a,c);b=D.files;for(F=0;F>>=8;return l},N=function(a,c,l){var b=e.getTypeOf(c),f;l=l||{};!0!==l.base64||null!==l.binary&&void 0!==l.binary||(l.binary=!0);l=e.extend(l,q);l.date=l.date||new Date;null!==l.compression&&(l.compression=l.compression.toUpperCase());"string"===typeof l.unixPermissions&&(l.unixPermissions=parseInt(l.unixPermissions, 8));l.unixPermissions&&l.unixPermissions&16384&&(l.dir=!0);l.dosPermissions&&l.dosPermissions&16&&(l.dir=!0);l.dir&&(a=I(a));var w;if(w=l.createFolders)f=a,"/"==f.slice(-1)&&(f=f.substring(0,f.length-1)),w=f.lastIndexOf("/"),w=f=0a;a++)n[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;n[254]=n[254]=1;var q=function(a){var c,b,e,k,g=a.length,q=Array(2*g);for(c=b=0;ce)q[b++]=e;else if(k=n[e],4e?q[b++]=e:(e-=65536,q[b++]=55296|e>>10&1023,q[b++]=56320|e&1023)}q.length!==b&&(q.subarray?q=q.subarray(0,b):q.length=b);return f.applyFromCharCode(q)};b.utf8encode=function(a){if(e.nodebuffer)return k(a,"utf-8");var c,b,f,x,n,q=a.length,M=0;for(x=0;xb?1:2048>b?2:65536>b?3:4;c=e.uint8array?new Uint8Array(M):Array(M);for(x=n=0;nb?c[n++]=b:(2048>b?c[n++]=192|b>>>6:(65536>b?c[n++]=224|b>>>12:(c[n++]=240|b>>>18,c[n++]=128|b>>>12&63),c[n++]=128|b>>>6&63),c[n++]=128|b&63);return c};b.utf8decode=function(a){if(e.nodebuffer)return f.transformTo("nodebuffer",a).toString("utf-8");a=f.transformTo(e.uint8array?"uint8array":"array",a);for(var c=[],b=0,k=a.length;b a.length&&(x=a.length);for(U=x-1;0<=U&&128===(a[U]&192);)U--;x=0>U?x:0===U?x:U+n[a[U]]>x?U:x;e.uint8array?c.push(q(a.subarray(b,x))):c.push(q(a.slice(b,x)));b=x}return c.join("")}},{"./nodeBuffer":12,"./support":18,"./utils":22}],22:[function(a,c,b){function f(a){return a}function e(a,c){for(var b=0;bb?"0":"")+b.toString(16).toUpperCase();return c};b.findCompression=function(a){for(var c in h)if(h.hasOwnProperty(c)&&h[c].magic===a)return h[c];return null};b.isRegExp=function(a){return"[object RegExp]"===Object.prototype.toString.call(a)};b.extend=function(){var a={},c,b;for(c=0;ca){if(this.isSignature(0,H.LOCAL_FILE_HEADER))throw Error("Corrupted zip : can't find end of central directory");throw Error("Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html"); }this.reader.setIndex(a);var c=a;this.checkSignature(H.CENTRAL_DIRECTORY_END);this.readBlockEndOfCentral();if(this.diskNumber===h.MAX_VALUE_16BITS||this.diskWithCentralDirStart===h.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===h.MAX_VALUE_16BITS||this.centralDirRecords===h.MAX_VALUE_16BITS||this.centralDirSize===h.MAX_VALUE_32BITS||this.centralDirOffset===h.MAX_VALUE_32BITS){this.zip64=!0;a=this.reader.lastIndexOfSignature(H.ZIP64_CENTRAL_DIRECTORY_LOCATOR);if(0>a)throw Error("Corrupted zip : can't find the ZIP64 end of central directory locator"); this.reader.setIndex(a);this.checkSignature(H.ZIP64_CENTRAL_DIRECTORY_LOCATOR);this.readBlockZip64EndOfCentralLocator();if(!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,H.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(H.ZIP64_CENTRAL_DIRECTORY_END),0>this.relativeOffsetEndOfZip64CentralDir))throw Error("Corrupted zip : can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir);this.checkSignature(H.ZIP64_CENTRAL_DIRECTORY_END); this.readBlockZip64EndOfCentral()}a=this.centralDirOffset+this.centralDirSize;this.zip64&&(a=a+20+(12+this.zip64EndOfCentralSize));a=c-a;if(0a)throw Error("Corrupted zip: missing "+Math.abs(a)+" bytes.");},prepareReader:function(a){var c=h.getTypeOf(a);h.checkSupport(c);if("string"!==c||F.uint8array)if("nodebuffer"===c)this.reader=new k(a);else if(F.uint8array)this.reader=new n(h.transformTo("uint8array",a));else if(F.array)this.reader= new q(h.transformTo("array",a));else throw Error("Unexpected error: unsupported type '"+c+"'");else this.reader=new e(a,this.loadOptions.optimizedBinaryString)},load:function(a){this.prepareReader(a);this.readEndOfCentral();this.readCentralDir();this.readLocalFiles()}};c.exports=f},{"./arrayReader":1,"./nodeBufferReader":13,"./object":14,"./signature":15,"./stringReader":16,"./support":18,"./uint8ArrayReader":19,"./utils":22,"./zipEntry":24}],24:[function(a,c,b){function f(a,c){this.options=a;this.loadOptions= c}var e=a("./stringReader"),k=a("./utils"),n=a("./compressedObject"),q=a("./object"),h=a("./support");f.prototype={isEncrypted:function(){return 1===(this.bitFlag&1)},useUTF8:function(){return 2048===(this.bitFlag&2048)},prepareCompressedContent:function(a,c,b){return function(){var f=a.index;a.setIndex(c);var e=a.readData(b);a.setIndex(f);return e}},prepareContent:function(a,c,b,f,e){return function(){var a=k.transformTo(f.uncompressInputType,this.getCompressedContent()),a=f.uncompress(a);if(a.length!== e)throw Error("Bug : uncompressed data size mismatch");return a}},readLocalPart:function(a){var c;a.skip(22);this.fileNameLength=a.readInt(2);c=a.readInt(2);this.fileName=a.readData(this.fileNameLength);a.skip(c);if(-1==this.compressedSize||-1==this.uncompressedSize)throw Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");c=k.findCompression(this.compressionMethod);if(null===c)throw Error("Corrupted zip : compression "+ k.pretty(this.compressionMethod)+" unknown (inner file : "+k.transformTo("string",this.fileName)+")");this.decompressed=new n;this.decompressed.compressedSize=this.compressedSize;this.decompressed.uncompressedSize=this.uncompressedSize;this.decompressed.crc32=this.crc32;this.decompressed.compressionMethod=this.compressionMethod;this.decompressed.getCompressedContent=this.prepareCompressedContent(a,a.index,this.compressedSize,c);this.decompressed.getContent=this.prepareContent(a,a.index,this.compressedSize, c,this.uncompressedSize);if(this.loadOptions.checkCRC32&&(this.decompressed=k.transformTo("string",this.decompressed.getContent()),q.crc32(this.decompressed)!==this.crc32))throw Error("Corrupted zip : CRC32 mismatch");},readCentralPart:function(a){this.versionMadeBy=a.readInt(2);this.versionNeeded=a.readInt(2);this.bitFlag=a.readInt(2);this.compressionMethod=a.readString(2);this.date=a.readDate();this.crc32=a.readInt(4);this.compressedSize=a.readInt(4);this.uncompressedSize=a.readInt(4);this.fileNameLength= a.readInt(2);this.extraFieldsLength=a.readInt(2);this.fileCommentLength=a.readInt(2);this.diskNumberStart=a.readInt(2);this.internalFileAttributes=a.readInt(2);this.externalFileAttributes=a.readInt(4);this.localHeaderOffset=a.readInt(4);if(this.isEncrypted())throw Error("Encrypted zip are not supported");this.fileName=a.readData(this.fileNameLength);this.readExtraFields(a);this.parseZIP64ExtraField(a);this.fileComment=a.readData(this.fileCommentLength)},processAttributes:function(){this.dosPermissions= this.unixPermissions=null;var a=this.versionMadeBy>>8;this.dir=this.externalFileAttributes&16?!0:!1;0===a&&(this.dosPermissions=this.externalFileAttributes&63);3===a&&(this.unixPermissions=this.externalFileAttributes>>16&65535);this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(a){this.extraFields[1]&&(a=new e(this.extraFields[1].value),this.uncompressedSize===k.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===k.MAX_VALUE_32BITS&&(this.compressedSize= a.readInt(8)),this.localHeaderOffset===k.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===k.MAX_VALUE_32BITS&&(this.diskNumberStart=a.readInt(4)))},readExtraFields:function(a){var c=a.index,b,f,e;for(this.extraFields=this.extraFields||{};a.indexa.windowBits&&(a.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new H;this.strm.avail_out= 0;var c=k.deflateInit2(this.strm,a.level,a.method,a.windowBits,a.memLevel,a.strategy);if(0!==c)throw Error(h[c]);a.header&&k.deflateSetHeader(this.strm,a.header)}function e(a,c){var b=new f(c);b.push(a,!0);if(b.err)throw b.msg;return b.result}var k=a("./zlib/deflate"),n=a("./utils/common"),q=a("./utils/strings"),h=a("./zlib/messages"),H=a("./zlib/zstream"),D=Object.prototype.toString;f.prototype.push=function(a,c){var b=this.strm,f=this.options.chunkSize,e,g;if(this.ended)return!1;g=c===~~c?c:!0=== c?4:0;"string"===typeof a?b.input=q.string2buf(a):"[object ArrayBuffer]"===D.call(a)?b.input=new Uint8Array(a):b.input=a;b.next_in=0;b.avail_in=b.input.length;do{0===b.avail_out&&(b.output=new n.Buf8(f),b.next_out=0,b.avail_out=f);e=k.deflate(b,g);if(1!==e&&0!==e)return this.onEnd(e),this.ended=!0,!1;if(0===b.avail_out||0===b.avail_in&&(4===g||2===g))if("string"===this.options.to)this.onData(q.buf2binstring(n.shrinkBuf(b.output,b.next_out)));else this.onData(n.shrinkBuf(b.output,b.next_out))}while((0< b.avail_in||0===b.avail_out)&&1!==e);if(4===g)return e=k.deflateEnd(this.strm),this.onEnd(e),this.ended=!0,0===e;2===g&&(this.onEnd(0),b.avail_out=0);return!0};f.prototype.onData=function(a){this.chunks.push(a)};f.prototype.onEnd=function(a){0===a&&(this.result="string"===this.options.to?this.chunks.join(""):n.flattenChunks(this.chunks));this.chunks=[];this.err=a;this.msg=this.strm.msg};b.Deflate=f;b.deflate=e;b.deflateRaw=function(a,c){c=c||{};c.raw=!0;return e(a,c)};b.gzip=function(a,c){c=c||{}; c.gzip=!0;return e(a,c)}},{"./utils/common":28,"./utils/strings":29,"./zlib/deflate":33,"./zlib/messages":38,"./zlib/zstream":40}],27:[function(a,c,b){function f(a){if(!(this instanceof f))return new f(a);var c=this.options=n.assign({chunkSize:16384,windowBits:0,to:""},a||{});c.raw&&0<=c.windowBits&&16>c.windowBits&&(c.windowBits=-c.windowBits,0===c.windowBits&&(c.windowBits=-15));!(0<=c.windowBits&&16>c.windowBits)||a&&a.windowBits||(c.windowBits+=32);15c.windowBits&&0===(c.windowBits& 15)&&(c.windowBits|=15);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new D;this.strm.avail_out=0;a=k.inflateInit2(this.strm,c.windowBits);if(a!==h.Z_OK)throw Error(H[a]);this.header=new t;k.inflateGetHeader(this.strm,this.header)}function e(a,c){var b=new f(c);b.push(a,!0);if(b.err)throw b.msg;return b.result}var k=a("./zlib/inflate"),n=a("./utils/common"),q=a("./utils/strings"),h=a("./zlib/constants"),H=a("./zlib/messages"),D=a("./zlib/zstream"),t=a("./zlib/gzheader"),x=Object.prototype.toString; f.prototype.push=function(a,c){var b=this.strm,e=this.options.chunkSize,f,g,m,D,H,t=!1;if(this.ended)return!1;g=c===~~c?c:!0===c?h.Z_FINISH:h.Z_NO_FLUSH;"string"===typeof a?b.input=q.binstring2buf(a):"[object ArrayBuffer]"===x.call(a)?b.input=new Uint8Array(a):b.input=a;b.next_in=0;b.avail_in=b.input.length;do{0===b.avail_out&&(b.output=new n.Buf8(e),b.next_out=0,b.avail_out=e);f=k.inflate(b,h.Z_NO_FLUSH);f===h.Z_BUF_ERROR&&!0===t&&(f=h.Z_OK,t=!1);if(f!==h.Z_STREAM_END&&f!==h.Z_OK)return this.onEnd(f), this.ended=!0,!1;if(b.next_out&&(0===b.avail_out||f===h.Z_STREAM_END||0===b.avail_in&&(g===h.Z_FINISH||g===h.Z_SYNC_FLUSH)))if("string"===this.options.to)m=q.utf8border(b.output,b.next_out),D=b.next_out-m,H=q.buf2string(b.output,m),b.next_out=D,b.avail_out=e-D,D&&n.arraySet(b.output,b.output,m,D,0),this.onData(H);else this.onData(n.shrinkBuf(b.output,b.next_out));0===b.avail_in&&0===b.avail_out&&(t=!0)}while((0c&&(a.subarray&&n||!a.subarray&&k))return String.fromCharCode.apply(null,e.shrinkBuf(a,c));for(var b="",f=0;fa;a++)q[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;q[254]=q[254]=1;b.string2buf=function(a){var c,b,f,k,n,q=a.length,t=0;for(k=0;kb?1:2048>b?2:65536>b?3:4;c=new e.Buf8(t);for(k=n=0;nb?c[n++]=b:(2048> b?c[n++]=192|b>>>6:(65536>b?c[n++]=224|b>>>12:(c[n++]=240|b>>>18,c[n++]=128|b>>>12&63),c[n++]=128|b>>>6&63),c[n++]=128|b&63);return c};b.buf2binstring=function(a){return f(a,a.length)};b.binstring2buf=function(a){for(var c=new e.Buf8(a.length),b=0,f=c.length;bg)t[e++]=g;else if(k=q[g],4g?t[e++]=g:(g-=65536,t[e++]=55296|g>>10&1023,t[e++]=56320|g&1023)}return f(t,e)};b.utf8border=function(a,c){var b;c=c||a.length;c>a.length&&(c=a.length);for(b=c-1;0<=b&&128===(a[b]&192);)b--;return 0>b||0===b?c:b+q[a[b]]>c?b:c}},{"./common":28}],30:[function(a,c,b){c.exports=function(a,c,b,e){var q=a&65535|0;a=a>>>16&65535|0;for(var h=0;0!==b;){h=2E3b;b++){a=b;for(var f=0;8>f;f++)a=a&1?3988292384^a>>> 1:a>>>1;c[b]=a}return c}();c.exports=function(a,c,b,e){b=e+b;for(a^=-1;e>>8^f[(a^c[e])&255];return a^-1}},{}],33:[function(a,c,b){function f(a,c){a.msg=L[c];return c}function e(a){for(var c=a.length;0<=--c;)a[c]=0}function k(a){var c=a.state,b=c.pending;b>a.avail_out&&(b=a.avail_out);0!==b&&(N.arraySet(a.output,c.pending_buf,c.pending_out,b,a.next_out),a.next_out+=b,c.pending_out+=b,a.total_out+=b,a.avail_out-=b,c.pending-=b,0===c.pending&&(c.pending_out=0))}function n(a,c){O._tr_flush_block(a, 0<=a.block_start?a.block_start:-1,a.strstart-a.block_start,c);a.block_start=a.strstart;k(a.strm)}function q(a,c){a.pending_buf[a.pending++]=c}function h(a,c){a.pending_buf[a.pending++]=c>>>8&255;a.pending_buf[a.pending++]=c&255}function t(a,c){var b=a.max_chain_length,e=a.strstart,f,m=a.prev_length,k=a.nice_match,g=a.strstart>a.w_size-262?a.strstart-(a.w_size-262):0,h=a.window,y=a.w_mask,R=a.prev,n=a.strstart+258,q=h[e+m-1],L=h[e+m];a.prev_length>=a.good_match&&(b>>=2);k>a.lookahead&&(k=a.lookahead); do if(f=c,h[f+m]===L&&h[f+m-1]===q&&h[f]===h[e]&&h[++f]===h[e+1]){e+=2;for(f++;h[++e]===h[++f]&&h[++e]===h[++f]&&h[++e]===h[++f]&&h[++e]===h[++f]&&h[++e]===h[++f]&&h[++e]===h[++f]&&h[++e]===h[++f]&&h[++e]===h[++f]&&em){a.match_start=c;m=f;if(f>=k)break;q=h[e+m-1];L=h[e+m]}}while((c=R[c&y])>g&&0!==--b);return m<=a.lookahead?m:a.lookahead}function D(a){var c=a.w_size,b,e,f,m;do{m=a.window_size-a.lookahead-a.strstart;if(a.strstart>=c+(c-262)){N.arraySet(a.window,a.window, c,c,0);a.match_start-=c;a.strstart-=c;a.block_start-=c;b=e=a.hash_size;do f=a.head[--b],a.head[b]=f>=c?f-c:0;while(--e);b=e=c;do f=a.prev[--b],a.prev[b]=f>=c?f-c:0;while(--e);m+=c}if(0===a.strm.avail_in)break;b=a.strm;e=a.window;f=a.strstart+a.lookahead;var k=b.avail_in;k>m&&(k=m);0===k?e=0:(b.avail_in-=k,N.arraySet(e,b.input,b.next_in,k,f),1===b.state.wrap?b.adler=K(b.adler,e,k,f):2===b.state.wrap&&(b.adler=A(b.adler,e,k,f)),b.next_in+=k,b.total_in+=k,e=k);a.lookahead+=e;if(3<=a.lookahead+a.insert)for(m= a.strstart-a.insert,a.ins_h=a.window[m],a.ins_h=(a.ins_h<a.lookahead+a.insert););}while(262>a.lookahead&&0!==a.strm.avail_in)}function F(a,c){for(var b;;){if(262>a.lookahead){D(a);if(262>a.lookahead&&0===c)return 1;if(0===a.lookahead)break}b=0;3<=a.lookahead&&(a.ins_h=(a.ins_h<a.strstart?a.strstart:2;return 4===c?(n(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(n(a,!1),0===a.strm.avail_out)?1:2}function x(a,c){for(var b,e;;){if(262>a.lookahead){D(a);if(262>a.lookahead&&0===c)return 1;if(0=== a.lookahead)break}b=0;3<=a.lookahead&&(a.ins_h=(a.ins_h<=a.match_length&&(1===a.strategy||3===a.match_length&&4096a.strstart?a.strstart:2;return 4===c?(n(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(n(a,!1),0===a.strm.avail_out)?1:2}function E(a,c){for(var b,e,f,m=a.window;;){if(258>=a.lookahead){D(a);if(258>=a.lookahead&&0===c)return 1;if(0===a.lookahead)break}a.match_length=0;if(3<=a.lookahead&&0a.lookahead&&(a.match_length=a.lookahead)}3<=a.match_length?(b=O._tr_tally(a,1,a.match_length-3),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(b=O._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++);if(b&&(n(a,!1),0===a.strm.avail_out))return 1}a.insert= 0;return 4===c?(n(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(n(a,!1),0===a.strm.avail_out)?1:2}function I(a,c){for(var b;;){if(0===a.lookahead&&(D(a),0===a.lookahead)){if(0===c)return 1;break}a.match_length=0;b=O._tr_tally(a,0,a.window[a.strstart]);a.lookahead--;a.strstart++;if(b&&(n(a,!1),0===a.strm.avail_out))return 1}a.insert=0;return 4===c?(n(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(n(a,!1),0===a.strm.avail_out)?1:2}function M(a,c,b,e,f){this.good_length=a;this.max_lazy=c;this.nice_length= b;this.max_chain=e;this.func=f}function C(){this.strm=null;this.status=0;this.pending_buf=null;this.wrap=this.pending=this.pending_out=this.pending_buf_size=0;this.gzhead=null;this.gzindex=0;this.method=8;this.last_flush=-1;this.w_mask=this.w_bits=this.w_size=0;this.window=null;this.window_size=0;this.head=this.prev=null;this.nice_match=this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available= this.prev_match=this.match_length=this.block_start=this.hash_shift=this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new N.Buf16(1146);this.dyn_dtree=new N.Buf16(122);this.bl_tree=new N.Buf16(78);e(this.dyn_ltree);e(this.dyn_dtree);e(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new N.Buf16(16);this.heap=new N.Buf16(573);e(this.heap);this.heap_max=this.heap_len=0;this.depth=new N.Buf16(573);e(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches= this.static_len=this.opt_len=this.d_buf=this.last_lit=this.lit_bufsize=this.l_buf=0}function y(a){var c;if(!a||!a.state)return f(a,-2);a.total_in=a.total_out=0;a.data_type=2;c=a.state;c.pending=0;c.pending_out=0;0>c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;a.adler=2===c.wrap?0:1;c.last_flush=0;O._tr_init(c);return 0}function X(a){var c=y(a);0===c&&(a=a.state,a.window_size=2*a.w_size,e(a.head),a.max_lazy_match=B[a.level].max_lazy,a.good_match=B[a.level].good_length,a.nice_match=B[a.level].nice_length, a.max_chain_length=B[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0);return c}function m(a,c,b,e,m,k){if(!a)return-2;var g=1;-1===c&&(c=6);0>e?(g=0,e=-e):15m||9e||15c||9k||4>1;h.l_buf=3*h.lit_bufsize;h.level=c;h.strategy=k;h.method=b;return X(a)}var N=a("../utils/common"),O=a("./trees"),K=a("./adler32"),A=a("./crc32"),L=a("./messages"),B;B=[new M(0,0,0,0,function(a,c){var b=65535;for(b>a.pending_buf_size-5&&(b=a.pending_buf_size- 5);;){if(1>=a.lookahead){D(a);if(0===a.lookahead&&0===c)return 1;if(0===a.lookahead)break}a.strstart+=a.lookahead;a.lookahead=0;var e=a.block_start+b;if(0===a.strstart||a.strstart>=e)if(a.lookahead=a.strstart-e,a.strstart=e,n(a,!1),0===a.strm.avail_out)return 1;if(a.strstart-a.block_start>=a.w_size-262&&(n(a,!1),0===a.strm.avail_out))return 1}a.insert=0;if(4===c)return n(a,!0),0===a.strm.avail_out?3:4;a.strstart>a.block_start&&n(a,!1);return 1}),new M(4,4,8,4,F),new M(4,5,16,8,F),new M(4,6,32,32, F),new M(4,4,16,16,x),new M(8,16,32,32,x),new M(8,16,128,128,x),new M(8,32,128,256,x),new M(32,128,258,1024,x),new M(32,258,258,4096,x)];b.deflateInit=function(a,c){return m(a,c,8,15,8,0)};b.deflateInit2=m;b.deflateReset=X;b.deflateResetKeep=y;b.deflateSetHeader=function(a,c){if(!a||!a.state||2!==a.state.wrap)return-2;a.state.gzhead=c;return 0};b.deflate=function(a,c){var b,m,p,y;if(!a||!a.state||5c)return a?f(a,-2):-2;m=a.state;if(!a.output||!a.input&&0!==a.avail_in||666===m.status&&4!==c)return f(a, 0===a.avail_out?-5:-2);m.strm=a;b=m.last_flush;m.last_flush=c;42===m.status&&(2===m.wrap?(a.adler=0,q(m,31),q(m,139),q(m,8),m.gzhead?(q(m,(m.gzhead.text?1:0)+(m.gzhead.hcrc?2:0)+(m.gzhead.extra?4:0)+(m.gzhead.name?8:0)+(m.gzhead.comment?16:0)),q(m,m.gzhead.time&255),q(m,m.gzhead.time>>8&255),q(m,m.gzhead.time>>16&255),q(m,m.gzhead.time>>24&255),q(m,9===m.level?2:2<=m.strategy||2>m.level?4:0),q(m,m.gzhead.os&255),m.gzhead.extra&&m.gzhead.extra.length&&(q(m,m.gzhead.extra.length&255),q(m,m.gzhead.extra.length>> 8&255)),m.gzhead.hcrc&&(a.adler=A(a.adler,m.pending_buf,m.pending,0)),m.gzindex=0,m.status=69):(q(m,0),q(m,0),q(m,0),q(m,0),q(m,0),q(m,9===m.level?2:2<=m.strategy||2>m.level?4:0),q(m,3),m.status=113)):(p=8+(m.w_bits-8<<4)<<8,y=-1,y=2<=m.strategy||2>m.level?0:6>m.level?1:6===m.level?2:3,p|=y<<6,0!==m.strstart&&(p|=32),m.status=113,h(m,p+(31-p%31)),0!==m.strstart&&(h(m,a.adler>>>16),h(m,a.adler&65535)),a.adler=1));if(69===m.status)if(m.gzhead.extra){for(p=m.pending;m.gzindex<(m.gzhead.extra.length& 65535)&&(m.pending!==m.pending_buf_size||(m.gzhead.hcrc&&m.pending>p&&(a.adler=A(a.adler,m.pending_buf,m.pending-p,p)),k(a),p=m.pending,m.pending!==m.pending_buf_size));)q(m,m.gzhead.extra[m.gzindex]&255),m.gzindex++;m.gzhead.hcrc&&m.pending>p&&(a.adler=A(a.adler,m.pending_buf,m.pending-p,p));m.gzindex===m.gzhead.extra.length&&(m.gzindex=0,m.status=73)}else m.status=73;if(73===m.status)if(m.gzhead.name){p=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>p&&(a.adler=A(a.adler, m.pending_buf,m.pending-p,p)),k(a),p=m.pending,m.pending===m.pending_buf_size)){y=1;break}y=m.gzindexp&&(a.adler=A(a.adler,m.pending_buf,m.pending-p,p));0===y&&(m.gzindex=0,m.status=91)}else m.status=91;if(91===m.status)if(m.gzhead.comment){p=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>p&&(a.adler=A(a.adler,m.pending_buf,m.pending-p,p)),k(a),p=m.pending,m.pending=== m.pending_buf_size)){y=1;break}y=m.gzindexp&&(a.adler=A(a.adler,m.pending_buf,m.pending-p,p));0===y&&(m.status=103)}else m.status=103;103===m.status&&(m.gzhead.hcrc?(m.pending+2>m.pending_buf_size&&k(a),m.pending+2<=m.pending_buf_size&&(q(m,a.adler&255),q(m,a.adler>>8&255),a.adler=0,m.status=113)):m.status=113);if(0!==m.pending){if(k(a),0===a.avail_out)return m.last_flush=-1,0}else if(0=== a.avail_in&&(c<<1)-(4=m.wrap)return 1;2===m.wrap?(q(m,a.adler&255),q(m,a.adler>>8&255),q(m,a.adler>>16&255),q(m,a.adler>>24&255),q(m,a.total_in&255),q(m,a.total_in>>8&255),q(m,a.total_in>>16&255),q(m,a.total_in>>24&255)):(h(m,a.adler>>>16),h(m,a.adler&65535));k(a);0y&&(C+=r[e++]<>>24;C>>>=A;y-=A;A=K>>>16&255;if(0===A)G[h++]=K&65535;else if(A&16){L=K&65535;if(A&=15)y>>=A,y-=A;15>y&&(C+=r[e++]<>>24;C>>>=A;y-=A;A=K>>>16&255;if(A&16){K&=65535;A&=15;yF){a.msg="invalid distance too far back";b.mode=30;break a}C>>>=A;y-=A;A=h-t;if(K>A){A=K-A;if(A>E&&b.sane){a.msg="invalid distance too far back";b.mode=30;break a}B=0;l=M;if(0===I){if(B+=x-A,A>3;e-=L;y-=L<<3;a.next_in=e; a.next_out=h;a.avail_in=e>>24&255)+(a>>>8&65280)+((a&65280)<<8)+((a&255)<<24)}function g(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags=0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits=0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist= this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new t.Buf16(320);this.work=new t.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function k(a){var c;if(!a||!a.state)return-2;c=a.state;a.total_in=a.total_out=c.total=0;a.msg="";c.wrap&&(a.adler=c.wrap&1);c.mode=1;c.last=0;c.havedict=0;c.dmax=32768;c.head=null;c.hold=0;c.bits=0;c.lencode=c.lendyn=new t.Buf32(852);c.distcode=c.distdyn=new t.Buf32(592);c.sane=1;c.back=-1;return 0}function n(a){var c;if(!a|| !a.state)return-2;c=a.state;c.wsize=0;c.whave=0;c.wnext=0;return k(a)}function q(a,c){var b,e;if(!a||!a.state)return-2;e=a.state;0>c?(b=0,c=-c):(b=(c>>4)+1,48>c&&(c&=15));if(c&&(8>c||15 r;){if(0===n)break a;n--;l+=g[h++]<>>8&255;b.check=F(b.check,V,2,0);r=l=0;b.mode=2;break}b.flags=0;b.head&&(b.head.done=!1);if(!(b.wrap&1)||(((l&255)<<8)+(l>>8))%31){a.msg="incorrect header check";b.mode=30;break}if(8!==(l&15)){a.msg="unknown compression method";b.mode=30;break}l>>>=4;r-=4;u=(l&15)+8;if(0===b.wbits)b.wbits=u;else if(u>b.wbits){a.msg="invalid window size";b.mode=30;break}b.dmax=1<r;){if(0===n)break a;n--;l+=g[h++]<>8&1);b.flags&512&&(V[0]=l&255,V[1]=l>>>8&255,b.check=F(b.check,V,2,0));r=l=0;b.mode=3;case 3:for(;32>r;){if(0===n)break a;n--;l+=g[h++]<>>8&255,V[2]=l>>>16&255,V[3]=l>>>24&255,b.check=F(b.check,V, 4,0));r=l=0;b.mode=4;case 4:for(;16>r;){if(0===n)break a;n--;l+=g[h++]<>8);b.flags&512&&(V[0]=l&255,V[1]=l>>>8&255,b.check=F(b.check,V,2,0));r=l=0;b.mode=5;case 5:if(b.flags&1024){for(;16>r;){if(0===n)break a;n--;l+=g[h++]<>>8&255,b.check=F(b.check,V,2,0));r=l=0}else b.head&&(b.head.extra=null);b.mode=6;case 6:if(b.flags&1024&&(p=b.length,p>n&&(p=n),p&&(b.head&&(u=b.head.extra_len- b.length,b.head.extra||(b.head.extra=Array(b.head.extra_len)),t.arraySet(b.head.extra,g,h,p,u)),b.flags&512&&(b.check=F(b.check,g,p,h)),n-=p,h+=p,b.length-=p),b.length))break a;b.length=0;b.mode=7;case 7:if(b.flags&2048){if(0===n)break a;p=0;do u=g[h+p++],b.head&&u&&65536>b.length&&(b.head.name+=String.fromCharCode(u));while(u&&pb.length&&(b.head.comment+=String.fromCharCode(u));while(u&&pr;){if(0===n)break a;n--;l+=g[h++]<>9&1,b.head.done=!0);a.adler=b.check=0;b.mode=12;break;case 10:for(;32>r;){if(0===n)break a;n--;l+=g[h++]<>>=r&7;r-=r&7;b.mode=27;break}for(;3>r;){if(0===n)break a;n--;l+=g[h++]<>>=1;--r;switch(l&3){case 0:b.mode=14;break;case 1:p=b;if(E){u=void 0;G=new t.Buf32(512);I=new t.Buf32(32);for(u=0;144>u;)p.lens[u++]=8;for(;256>u;)p.lens[u++]=9;for(;280>u;)p.lens[u++]=7;for(;288>u;)p.lens[u++]= 8;C(1,p.lens,0,288,G,0,p.work,{bits:9});for(u=0;32>u;)p.lens[u++]=5;C(2,p.lens,0,32,I,0,p.work,{bits:5});E=!1}p.lencode=G;p.lenbits=9;p.distcode=I;p.distbits=5;b.mode=20;if(6===c){l>>>=2;r-=2;break a}break;case 2:b.mode=17;break;case 3:a.msg="invalid block type",b.mode=30}l>>>=2;r-=2;break;case 14:l>>>=r&7;for(r-=r&7;32>r;){if(0===n)break a;n--;l+=g[h++]<>>16^65535)){a.msg="invalid stored block lengths";b.mode=30;break}b.length=l&65535;r=l=0;b.mode=15;if(6===c)break a;case 15:b.mode= 16;case 16:if(p=b.length){p>n&&(p=n);p>B&&(p=B);if(0===p)break a;t.arraySet(k,g,h,p,q);n-=p;h+=p;B-=p;q+=p;b.length-=p;break}b.mode=12;break;case 17:for(;14>r;){if(0===n)break a;n--;l+=g[h++]<>>=5;r-=5;b.ndist=(l&31)+1;l>>>=5;r-=5;b.ncode=(l&15)+4;l>>>=4;r-=4;if(286r;){if(0===n)break a;n--;l+=g[h++]<>>= 3;r-=3}for(;19>b.have;)b.lens[T[b.have++]]=0;b.lencode=b.lendyn;b.lenbits=7;p={bits:b.lenbits};R=C(0,b.lens,0,19,b.lencode,0,b.work,p);b.lenbits=p.bits;if(R){a.msg="invalid code lengths set";b.mode=30;break}b.have=0;b.mode=19;case 19:for(;b.have>>24;P&=65535;if(p<=r)break;if(0===n)break a;n--;l+=g[h++]<P)l>>>=p,r-=p,b.lens[b.have++]=P;else{if(16===P){for(u=p+2;r>>=p;r-=p;if(0=== b.have){a.msg="invalid bit length repeat";b.mode=30;break}u=b.lens[b.have-1];p=3+(l&3);l>>>=2;r-=2}else if(17===P){for(u=p+3;r>>=p;r-=p;u=0;p=3+(l&7);l>>>=3;r-=3}else{for(u=p+7;r>>=p;r-=p;u=0;p=11+(l&127);l>>>=7;r-=7}if(b.have+p>b.nlen+b.ndist){a.msg="invalid bit length repeat";b.mode=30;break}for(;p--;)b.lens[b.have++]=u}}if(30===b.mode)break;if(0===b.lens[256]){a.msg="invalid code -- missing end-of-block"; b.mode=30;break}b.lenbits=9;p={bits:b.lenbits};R=C(1,b.lens,0,b.nlen,b.lencode,0,b.work,p);b.lenbits=p.bits;if(R){a.msg="invalid literal/lengths set";b.mode=30;break}b.distbits=6;b.distcode=b.distdyn;p={bits:b.distbits};R=C(2,b.lens,b.nlen,b.ndist,b.distcode,0,b.work,p);b.distbits=p.bits;if(R){a.msg="invalid distances set";b.mode=30;break}b.mode=20;if(6===c)break a;case 20:b.mode=21;case 21:if(6<=n&&258<=B){a.next_out=q;a.avail_out=B;a.next_in=h;a.avail_in=n;b.hold=l;b.bits=r;x(a,w);q=a.next_out; k=a.output;B=a.avail_out;h=a.next_in;g=a.input;n=a.avail_in;l=b.hold;r=b.bits;12===b.mode&&(b.back=-1);break}for(b.back=0;;){P=b.lencode[l&(1<>>24;u=P>>>16&255;P&=65535;if(p<=r)break;if(0===n)break a;n--;l+=g[h++]<>z)];p=P>>>24;u=P>>>16&255;P&=65535;if(z+p<=r)break;if(0===n)break a;n--;l+=g[h++]<>>=z;r-=z;b.back+=z}l>>>=p;r-=p;b.back+=p;b.length=P;if(0===u){b.mode=26;break}if(u&32){b.back=-1;b.mode= 12;break}if(u&64){a.msg="invalid literal/length code";b.mode=30;break}b.extra=u&15;b.mode=22;case 22:if(b.extra){for(u=b.extra;r>>=b.extra;r-=b.extra;b.back+=b.extra}b.was=b.length;b.mode=23;case 23:for(;;){P=b.distcode[l&(1<>>24;u=P>>>16&255;P&=65535;if(p<=r)break;if(0===n)break a;n--;l+=g[h++]<>z)];p=P>>>24;u=P>>>16&255;P&=65535;if(z+ p<=r)break;if(0===n)break a;n--;l+=g[h++]<>>=z;r-=z;b.back+=z}l>>>=p;r-=p;b.back+=p;if(u&64){a.msg="invalid distance code";b.mode=30;break}b.offset=P;b.extra=u&15;b.mode=24;case 24:if(b.extra){for(u=b.extra;r>>=b.extra;r-=b.extra;b.back+=b.extra}if(b.offset>b.dmax){a.msg="invalid distance too far back";b.mode=30;break}b.mode=25;case 25:if(0===B)break a;p=w-B;if(b.offset>p){p=b.offset-p;if(p>b.whave&&b.sane){a.msg="invalid distance too far back"; b.mode=30;break}p>b.wnext?(p-=b.wnext,u=b.wsize-p):u=b.wnext-p;p>b.length&&(p=b.length);z=b.window}else z=k,u=q-b.offset,p=b.length;p>B&&(p=B);B-=p;b.length-=p;do k[q++]=z[u++];while(--p);0===b.length&&(b.mode=21);break;case 26:if(0===B)break a;k[q++]=b.length;B--;b.mode=21;break;case 27:if(b.wrap){for(;32>r;){if(0===n)break a;n--;l|=g[h++]<r;){if(0===n)break a;n--;l+=g[h++]<b.mode&&(27>b.mode||4!==c))g=a.output,h=a.next_out,q=w-a.avail_out,B=a.state,null===B.window&&(B.wsize=1<=B.wsize?(t.arraySet(B.window,g,h-B.wsize,B.wsize,0),B.wnext=0,B.whave=B.wsize):(n=B.wsize-B.wnext,n>q&&(n=q),t.arraySet(B.window,g,h-q,n,B.wnext),(q-=n)?(t.arraySet(B.window,g,h-q,q,0),B.wnext=q,B.whave=B.wsize):(B.wnext+=n,B.wnext===B.wsize&&(B.wnext=0),B.whave=y;y++)z[y]=0;for(J=0;JN&&(O=N);if(0===N)return x[C++]=20971520,x[C++]=20971520,G.bits=1,0;for(m=1;m=y;y++)if(L<<=1,L-=z[y],0>L)return-1;if(0y;y++)K[y+1]=K[y]+z[y];for(J=0;Ju?(R=P[S+E[J]],V=w[p+E[J]]):(R=96,V=0);L=1<>A)+r]=W<<24|R<<16|V|0;while(0!==r);for(L=1<>=1;0!==L?(l&=L-1,l+=L):l=0;J++;if(0===--z[y]){if(y===N)break;y=b[c+E[J]]}if(y>O&&(l&t)!==Q){0===A&&(A=O);I+=m;K=y-A;for(L=1<=L)break;K++;L<<=1}B+=1<>>8&255}function q(a,b,c){a.bi_valid>16-c?(a.bi_buf|=b<>16-a.bi_valid,a.bi_valid+=c-16):(a.bi_buf|=b<>>=1,c<<=1;while(0<--b);return c>>>1}function D(a,b,c){var e=Array(16),f=0,g;for(g=1;15>=g;g++)e[g]= f=f+c[g-1]<<1;for(c=0;c<=b;c++)f=a[2*c+1],0!==f&&(a[2*c]=t(e[f]++,f))}function C(a){var b;for(b=0;286>b;b++)a.dyn_ltree[2*b]=0;for(b=0;30>b;b++)a.dyn_dtree[2*b]=0;for(b=0;19>b;b++)a.bl_tree[2*b]=0;a.dyn_ltree[512]=1;a.opt_len=a.static_len=0;a.last_lit=a.matches=0}function x(a){8e?S[e]:S[256+(e>>>7)],h(a,k,c),l=A[k],0!==l&&(e-=u[k],q(a,e,l)));while(ga.heap_len;)l=a.heap[++a.heap_len]=2>k?++k:0,c[2*l]=1,a.depth[l]=0,a.opt_len--,f&&(a.static_len-=e[2*l+1]);b.max_code=k;for(h=a.heap_len>>1;1<=h;h--)G(a,c,h);l=g;do h=a.heap[1],a.heap[1]=a.heap[a.heap_len--],G(a,c,1),e=a.heap[1],a.heap[--a.heap_max]=h,a.heap[--a.heap_max]=e,c[2*l]=c[2*h]+c[2*e],a.depth[l]=(a.depth[h]>= a.depth[e]?a.depth[h]:a.depth[e])+1,c[2*h+1]=c[2*e+1]=l,a.heap[1]=l++,G(a,c,1);while(2<=a.heap_len);a.heap[--a.heap_max]=a.heap[1];h=b.dyn_tree;l=b.max_code;for(var m=b.stat_desc.static_tree,n=b.stat_desc.has_stree,p=b.stat_desc.extra_bits,q=b.stat_desc.extra_base,r=b.stat_desc.max_length,t,u,w=0,g=0;15>=g;g++)a.bl_count[g]=0;h[2*a.heap[a.heap_max]+1]=0;for(e=a.heap_max+1;573>e;e++)f=a.heap[e],g=h[2*h[2*f+1]+1]+1,g>r&&(g=r,w++),h[2*f+1]=g,f>l||(a.bl_count[g]++,t=0,f>=q&&(t=p[f-q]),u=h[2*f],a.opt_len+= u*(g+t),n&&(a.static_len+=u*(m[2*f+1]+t)));if(0!==w){do{for(g=r-1;0===a.bl_count[g];)g--;a.bl_count[g]--;a.bl_count[g+1]+=2;a.bl_count[r]--;w-=2}while(0l||(h[2*m+1]!==g&&(a.opt_len+=(g-h[2*m+1])*h[2*m],h[2*m+1]=g),f--)}D(c,k,a.bl_count)}function y(a,b,c){var e,f=-1,g,h=b[1],k=0,l=7,m=4;0===h&&(l=138,m=3);b[2*(c+1)+1]=65535;for(e=0;e<=c;e++)g=h,h=b[2*(e+1)+1],++k=k?a.bl_tree[34]++:a.bl_tree[36]++,k=0,f=g,0===h?(l=138,m=3):g===h?(l=6,m=3):(l=7,m=4))}function Q(a,b,c){var e,f=-1,g,k=b[1],l=0,m=7,n=4;0===k&&(m=138,n=3);for(e=0;e<=c;e++)if(g=k,k=b[2*(e+1)+1],!(++l=l?(h(a,17,a.bl_tree),q(a,l-3,3)):(h(a,18,a.bl_tree),q(a,l-11,7));l=0;f=g;0===k?(m=138,n=3):g===k?(m=6,n=3):(m=7,n=4)}}function m(a){var b=4093624447,c;for(c=0;31>=c;c++, b>>>=1)if(b&1&&0!==a.dyn_ltree[2*c])return 0;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return 1;for(c=32;256>c;c++)if(0!==a.dyn_ltree[2*c])return 1;return 0}function N(a,b,c,e){q(a,0+(e?1:0),3);x(a);n(a,c);n(a,~c);O.arraySet(a.pending_buf,a.window,b,c,a.pending);a.pending+=c}var O=a("../utils/common"),K=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],A=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7], B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],l=Array(576);e(l);var r=Array(60);e(r);var S=Array(512);e(S);var w=Array(256);e(w);var p=Array(29);e(p);var u=Array(30);e(u);var z,P,W,Y=!1;b._tr_init=function(a){if(!Y){var b,c,e,f=Array(16);for(e=c=0;28>e;e++)for(p[e]=c,b=0;b<1<e;e++)for(u[e]=c,b=0;b<1<>=7;30>e;e++)for(u[e]=c<<7,b=0;b<1<=b;b++)f[b]=0;for(b=0;143>=b;)l[2*b+1]=8,b++,f[8]++;for(;255>= b;)l[2*b+1]=9,b++,f[9]++;for(;279>=b;)l[2*b+1]=7,b++,f[7]++;for(;287>=b;)l[2*b+1]=8,b++,f[8]++;D(l,287,f);for(b=0;30>b;b++)r[2*b+1]=5,r[2*b]=t(b,5);z=new g(l,K,257,286,15);P=new g(r,A,0,30,15);W=new g([],L,0,19,7);Y=!0}a.l_desc=new k(a.dyn_ltree,z);a.d_desc=new k(a.dyn_dtree,P);a.bl_desc=new k(a.bl_tree,W);a.bi_buf=0;a.bi_valid=0;C(a)};b._tr_stored_block=N;b._tr_flush_block=function(a,b,c,e){var f,g,h=0;if(0>>3;g=a.static_len+3+7>>>3;g<=f&&(f=g)}else f=g=c+5;if(c+4<=f&&-1!==b)N(a,b,c,e);else if(4===a.strategy||g===f)q(a,2+(e?1:0),3),I(a,l,r);else{q(a,4+(e?1:0),3);b=a.l_desc.max_code+1;c=a.d_desc.max_code+1;h+=1;q(a,b-257,5);q(a,c-1,5);q(a,h-4,4);for(f=0;f>>8&255;a.pending_buf[a.d_buf+2*a.last_lit+1]=b&255;a.pending_buf[a.l_buf+a.last_lit]=c&255;a.last_lit++;0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[2*(w[c]+256+1)]++,a.dyn_dtree[2*(256>b?S[b]:S[256+(b>>>7)])]++);return a.last_lit===a.lit_bufsize-1};b._tr_align=function(a){q(a,2,3);h(a,256,l);16===a.bi_valid?(n(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):8<=a.bi_valid&&(a.pending_buf[a.pending++]=a.bi_buf&255,a.bi_buf>>= 8,a.bi_valid-=8)}},{"../utils/common":28}],40:[function(a,c,b){c.exports=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}},{}]},{},[10])(10)});Q=function(){this.url=this.message="";this.async=!0};Q.prototype.getNewXhrObject=function(){newXhrObj=null;window.XMLHttpRequest?newXhrObj=new XMLHttpRequest:window.ActiveXObject&&(newXhrObj=new ActiveXObject("Microsoft.XMLHTTP")); return newXhrObj};Q.prototype.setMessage=function(d){this.message=d};Q.prototype.sendMessage=function(){this.url=window.location.pathname+window.location.search+window.location.hash;window.location.assign("#");this.sendBlock();gReloadSubmission=!0;gPopupBodyHtml=document.getElementById("popupBody").innerHTML;document.getElementById("popupBody").innerHTML='

Submission Sent

';document.getElementById("popupBody").innerHTML+='


'; document.getElementById("popupBody").innerHTML+='';document.getElementById("popupBody").innerHTML+="";$("#popupBanner").html("");updateRefId(!1)};Q.prototype.sendBlock=function(){var d={};d.url=this.url;d.message=this.message;var a=this.generateAesPassword(),d=JSON.stringify(d),d=this.aesEncrypt(a,d),a=this.rsaEncrypt(pubKeyPem,a),c={};c.rsaEncryptedAesPassword=a.toString(ga.enc.Base64); c.encryptedBlock=d.toString();a=JSON.stringify(c);xhrPost=this.getNewXhrObject();null!=xhrPost&&(xhrPost.open("POST","/cgi-bin/verify.cgi",this.async),xhrPost.setRequestHeader("Content-Type","application/json"),xhrPost.send(a))};Q.prototype.randAlphanumericChar=function(){offset=62*Math.random();return randomChar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(offset)};Q.prototype.randPrintableChar=function(){charCode=94*Math.random()+32;return charCodeStr=String.fromCharCode(charCode)}; Q.prototype.generateAesPassword=function(){aesPw="";for(i=0;iMAX_MESSAGE_SIZE_BYTES&&(t=t+gErrorMsgLen+"\n",e=!1),E=[["email",gMaxEmailSizeChars,gPlaceholderEmail, gErrorEmailLen],["name",gMaxNameSizeChars,gPlaceholderName,gErrorNameLen],["phone_cc",gMaxPhoneCcSizeChars,gPlaceholderPhoneCC,gErrorPhoneCcLen],["phone",gMaxPhoneSizeChars,gPlaceholderPhoneNum,gErrorPhoneLen],["cellcc",gMaxCellCcSizeChars,gPlaceholderCellCC,gErrorCellCcLen],["cellnumber",gMaxCellSizeChars,gPlaceholderCellNum,gErrorCellLen]],I=0;IJ&&(t=t+S+"\n", e=!1)}0==e?alert(t):verifyWrapper()}function resetFormFields(){setTimeout(function(){$("#message").text("");$("#email").val("");$("#name").val("");$("#phone_cc").val("");$("#phone").val("");$("#cellcc").val("");$("#cellnumber").val("");document.getElementById("messageErr").innerHTML=""},1)}function resetReloadForm(){document.getElementById("popupBody").innerHTML=gPopupBodyHtml;updateRefId(!0);gReloadSubmission=!1;resetFormFields();setFieldHooks()}var modalActionRunning=!1,modalActionQueue=[]; function showModal(e){function t(){modalActionRunning=!1;if(0gVersionIE&&($("html").css("overflowY","hidden"),$("html").css("overflowX","hidden"))}); $("#popupContactModal, #popupReportModal, #popupLandingModal").on("hide.bs.modal",function(){gVersionIE&&9>gVersionIE&&($("html").css("overflowY",""),$("html").css("overflowX",""));MOBILE_REMOVE_ALL_MODAL_EFFECTS||($("#popupLandingModal").hasClass("fade")||$("#popupLandingModal").addClass("fade"),$("#popupReportModal").hasClass("fade")||$("#popupReportModal").addClass("fade"))}); $(document).on("click",".landingTrigger",function(){showModal($("#popupLandingModal"));this.href="#";updateRefId(!1);gReloadSubmission&&resetReloadForm()});$(document).on("click",".reportTrigger",function(){showModal($("#popupReportModal"));this.href="#";updateRefId(!1);gReloadSubmission&&resetReloadForm()});$(document).on("click",".contactTrigger",function(){showModal($("#popupContactModal"));this.href="#";updateRefId(!1);gReloadSubmission&&resetReloadForm();contactSetup()}); $(document).on("click",".closeTrigger",function(){hideModal($("#popupContactModal"))});$(document).on("click",".contactTriggerFromLanding",function(){DESKTOP_LIMIT_MODAL_FADE_EFFECT&&$("#popupLandingModal").removeClass("fade");hideModal($("#popupLandingModal"));showModal($("#popupContactModal"));contactSetup()}); $(document).on("click",".contactTriggerFromReport",function(){DESKTOP_LIMIT_MODAL_FADE_EFFECT&&$("#popupReportModal").removeClass("fade");hideModal($("#popupReportModal"));showModal($("#popupContactModal"));contactSetup()});$(document).on("click",".landingTriggerFromContact",function(){hideModal($("#popupContactModal"));showModal($("#popupLandingModal"))});$(document).on("click",".landingTriggerFromReport",function(){hideModal($("#popupReportModal"));showModal($("#popupLandingModal"))}); function contactSetup(){var e="";""!=TEST_BANNER_MESSAGE&&(e=TEST_BANNER_MESSAGE+"
");if(1==DISPLAY_BANNER)""!=BANNER_MESSAGE&&(e+=BANNER_MESSAGE);else try{e+=PAGE_BANNER_MESSAGE}catch(t){}""!=e&&$("#popupBanner").html(e)}function fixedCharCodeAt(e,t){t=t||0;var E=e.charCodeAt(t),I;if(55296<=E&&56319>=E){I=e.charCodeAt(t+1);if(isNaN(I))throw"Error!";return 1024*(E-55296)+(I-56320)+65536}return 56320<=E&&57343>=E?!1:E} function bytesForUtf8Char(e){var t=0;"number"==typeof e&&(t=128>e?1:2048>e?2:65536>e?3:2097152>e?4:67108864>e?5:6);return t}function countUtf8Bytes(e){for(var t=0,E=0;Et&&(E=truncateEncoding(E,t),setEncodedField(e,E));return I}function truncateFieldChars(e,t){var E=document.getElementById(e),I=E.value;I.length>t&&(E.value=I.substring(0,t));return I.length}function checkChars(e,t){return(e.target||e.srcElement||e.originalTarget).value.length=MAX_MESSAGE_SIZE_BYTES?e.innerHTML=''+gHtmlErrorMaxMsgSize+"":e.innerHTML=""});$("#email").keydown(function(e){return keyChecker(e,checkChars,gMaxEmailSizeChars)});$("#email").on("input propertychange",function(e){truncateFieldChars("email", gMaxEmailSizeChars)});$("#name").keydown(function(e){return keyChecker(e,checkChars,gMaxNameSizeChars)});$("#name").on("input propertychange",function(e){truncateFieldChars("name",gMaxNameSizeChars)});$("#phone_cc").keydown(function(e){return keyChecker(e,checkChars,gMaxPhoneCcSizeChars)});$("#phone_cc").on("input propertychange",function(e){truncateFieldChars("phone_cc",gMaxPhoneCcSizeChars)});$("#phone").keydown(function(e){return keyChecker(e,checkChars,gMaxPhoneSizeChars)});$("#phone").on("input propertychange", function(e){truncateFieldChars("phone",gMaxPhoneSizeChars)});$("#cellcc").keydown(function(e){return keyChecker(e,checkChars,gMaxCellCcSizeChars)});$("#cellcc").on("input propertychange",function(e){truncateFieldChars("cellcc",gMaxCellCcSizeChars)});$("#cellnumber").keydown(function(e){return keyChecker(e,checkChars,gMaxCellSizeChars)});$("#cellnumber").on("input propertychange",function(e){truncateFieldChars("cellnumber",gMaxCellSizeChars)})}setFieldHooks();updateRefId(!1); gVersionIE&&9>gVersionIE&&($(".form-group").css("width",""),$(".row").css("width","100%"),$("#wrapper").css("position","static"));$("[name=Reset]").attr("onclick","resetFormFields();");newModalOpenClass=".modal-open { overflow : hidden; position : fixed; width : 100%;}";$("head").append('"); DISPLAY_BANNER=1,BANNER_MESSAGE="Your security and well being are our primary concerns. By visiting this website from outside of the U.S. and contacting us, you may be subject to monitoring by security or intelligence services, or other third parties that do not adhere to U.S. Internet privacy laws. While we employ numerous safeguards to help minimize this risk, we suggest that you not use your home or work computer to contact us. Use instead a computer where you are entirely unknown. Although our website is encrypted, it is still possible for others to see that you have visited CIA.gov. As an added precaution, we recommend you use current web browsers and clean the computer's search and/or browser histories after you visit the website.
Attention: If you are a citizen of the Russian Federation, please do not contact us via this site.",TEST_BANNER_MESSAGE="";