Facebook
From SemenderTim, 5 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 347
  1. /*
  2.  A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
  3.  Digest Algorithm, as defined in RFC 1321.
  4.  Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
  5.  Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
  6.  Distributed under the BSD License
  7.  See http://pajhome.org.uk/crypt/md5 for more info.
  8.  
  9.  CryptoJS v3.1.2
  10.  code.google.com/p/crypto-js
  11.  (c) 2009-2013 by Jeff Mott. All rights reserved.
  12.  code.google.com/p/crypto-js/wiki/License
  13.  
  14.  Copyright (c) 2005  Tom Wu
  15.  All Rights Reserved.
  16.  See "LICENSE" for details.
  17.  Basic JavaScript BN library - subset useful for RSA encryption.
  18.  Copyright (c) 2005-2009  Tom Wu
  19.  All Rights Reserved.
  20.   See "LICENSE" for details.
  21.  Extended JavaScript BN functions, required for RSA private ops.
  22.  
  23.  JSZip - A Javascript class for generating and reading zip files
  24.  <http://stuartk.com/jszip>
  25.  (c) 2009-2014 Stuart Knightley <stuart [at] stuartk.com>
  26.  Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
  27.  
  28.  JSZip uses the library pako released under the MIT license :
  29.  https://github.com/nodeca/pako/blob/master/LICENSE
  30. */
  31. 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!",
  32. 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);
  33. 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");
  34. gVersionIE&&9>=gVersionIE&&($("#phone_cc").attr("placeholder","CC"),$("#cellcc").attr("placeholder","CC"));
  35. 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,
  36. gPlaceholderCellNum],gReloadSubmission=!1,gPopupBodyHtml="",gVerticalScroll="",gHorizontalScroll="",gRefId="";function detectIE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(0<t)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(0<e.indexOf("Trident/"))return t=e.indexOf("rv:"),parseInt(e.substring(t+3,e.indexOf(".",t)),10);t=e.indexOf("Edge/");return 0<t?parseInt(e.substring(t+5,e.indexOf(".",t)),10):!1}
  37. calcRefId=function(){var e="";for(i=0;8>i;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: <b>"+getRefId(e)+"</b>";$("#popupBody").find("#refId").html(e)}"object"!==typeof JSON&&(JSON={});
  38. (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);
  39. case "object":if(!G)return"null";J+=fa;aa=[];if("[object Array]"===Object.prototype.toString.apply(G)){S=G.length;for(Z=0;Z<S;Z+=1)aa[Z]=E(Z,G)||"null";C=0===aa.length?"[]":J?"[\n"+J+aa.join(",\n"+J)+"\n"+ea+"]":"["+aa.join(",")+"]";J=ea;return C}if(W&&"object"===typeof W)for(S=W.length,Z=0;Z<S;Z+=1)"string"===typeof W[Z]&&(ca=W[Z],(C=E(ca,G))&&aa.push(t(ca)+(J?": ":":")+C));else for(ca in G)Object.prototype.hasOwnProperty.call(G,ca)&&(C=E(ca,G))&&aa.push(t(ca)+(J?": ":":")+C);C=0===aa.length?"{}":
  40. J?"{\n"+J+aa.join(",\n"+J)+"\n"+ea+"}":"{"+aa.join(",")+"}";J=ea;return C}}"function"!==typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var I,C,J,fa,S,W;"function"!==typeof JSON.stringify&&
  41. (C=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,S={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,I){var C;fa=J="";if("number"===typeof I)for(C=0;C<I;C+=1)fa+=" ";else"string"===typeof I&&(fa=I);if((W=t)&&"function"!==typeof t&&("object"!==typeof t||"number"!==typeof t.length))throw Error("JSON.stringify");return E("",{"":e})});"function"!==typeof JSON.parse&&(I=
  42. /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,JSON.parse=function(e,t){function E(e,I){var C,J,G=e[I];if(G&&"object"===typeof G)for(C in G)Object.prototype.hasOwnProperty.call(G,C)&&(J=E(G,C),void 0!==J?G[C]=J:delete G[C]);return t.call(e,I,G)}var C;e=String(e);I.lastIndex=0;I.test(e)&&(e=e.replace(I,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(e.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
  43. "@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return C=eval("("+e+")"),"function"===typeof t?E({"":C},""):C;throw new SyntaxError("JSON.parse");})})();
  44. function verifyWrapper(){function e(d,a,c){null!=d&&("number"==typeof d?this.fromNumber(d,a,c):null==a&&"string"!=typeof d?this.fromString(d,256):this.fromString(d,a))}function t(){return new e(null)}function E(d,a,c,b,f,g){for(;0<=--g;){var k=a*this[d++]+c[b]+f;f=Math.floor(k/67108864);c[b++]=k&67108863}return f}function I(d,a,c,b,f,g){var k=a&32767;for(a>>=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++]=
  45. 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+=
  46. 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<<d.DB-15)-1;this.mt2=2*d.t}function Z(d,a){return d&a}function ca(d,a){return d|a}function ma(d,a){return d^a}function na(d,a){return d&~a}function ea(){}function aa(d){return d}function G(d){this.r2=t();this.q3=t();e.ONE.dlShiftTo(2*d.t,this.r2);this.mu=this.r2.divide(d);this.m=d}function oa(){}function sa(){}var ga=ga||function(d,a){var c={},b=c.lib=
  47. {},f=function(){},g=b.Base={extend:function(a){f.prototype=this;var d=new f;a&&d.mixIn(a);d.hasOwnProperty("init")||(d.init=function(){d.$super.init.apply(this,arguments)});d.init.prototype=d;d.$super=this;return d},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var d in a)a.hasOwnProperty(d)&&(this[d]=a[d]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},k=b.WordArray=
  48. g.extend({init:function(d,c){d=this.words=d||[];this.sigBytes=c!=a?c:4*d.length},toString:function(a){return(a||e).stringify(this)},concat:function(a){var d=this.words,c=a.words,b=this.sigBytes;a=a.sigBytes;this.clamp();if(b%4)for(var f=0;f<a;f++)d[b+f>>>2]|=(c[f>>>2]>>>24-f%4*8&255)<<24-(b+f)%4*8;else if(65535<c.length)for(f=0;f<a;f+=4)d[b+f>>>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=
  49. 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<a;b+=4)c.push(4294967296*d.random()|0);return new k.init(c,a)}}),n=c.enc={},e=n.Hex={stringify:function(a){var d=a.words;a=a.sigBytes;for(var c=[],b=0;b<a;b++){var f=d[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<d;b+=2)c[b>>>3]|=parseInt(a.substr(b,2),16)<<24-b%8*4;return new k.init(c,
  50. d/2)}},h=n.Latin1={stringify:function(a){var d=a.words;a=a.sigBytes;for(var c=[],b=0;b<a;b++)c.push(String.fromCharCode(d[b>>>2]>>>24-b%4*8&255));return c.join("")},parse:function(a){for(var d=a.length,c=[],b=0;b<d;b++)c[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=
  51. 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<a;F+=g)this._doProcessBlock(b,F);F=b.splice(0,a);c.sigBytes-=f}return new k.init(F,f)},clone:function(){var a=g.clone.call(this);a._data=this._data.clone();
  52. return a},_minBufferSize:0});b.Hasher=D.extend({cfg:g.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){D.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(d,c){return(new a.init(c)).finalize(d)}},_createHmacHelper:function(a){return function(d,c){return(new F.HMAC.init(a,c)).finalize(d)}}});var F=
  53. c.algo={};return c}(Math);(function(){var d=ga,a=d.lib.WordArray;d.enc.Base64={stringify:function(a){var d=a.words,f=a.sigBytes,g=this._map;a.clamp();a=[];for(var k=0;k<f;k+=3)for(var n=(d[k>>>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<f;e++)a.push(g.charAt(n>>>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=
  54. [],k=0,n=0;n<b;n++)if(n%4){var e=f.indexOf(d.charAt(n-1))<<n%4*2,h=f.indexOf(d.charAt(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<<g|a>>>32-g)+d}function c(a,d,c,b,f,g,k){a=a+(d&b|c&~b)+f+k;return(a<<g|a>>>32-g)+d}function b(a,d,c,b,f,g,k){a=a+(d^c^b)+f+k;return(a<<g|a>>>32-g)+d}function f(a,d,c,b,f,g,k){a=a+(c^(d|~b))+f+k;return(a<<
  55. 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+
  56. 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,
  57. 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,
  58. 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,
  59. 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|
  60. (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<D;){F&&f.update(F);
  61. var F=f.update(a).finalize(d);f.reset();for(var x=1;x<c;x++)F=f.finalize(F),f.reset();h.concat(F)}h.sigBytes=4*D;return h}});d.EvpKDF=function(a,d,c){return f.create(c).compute(a,d)}})();ga.lib.Cipher||function(d){var a=ga,c=a.lib,b=c.Base,f=c.WordArray,g=c.BufferedBlockAlgorithm,k=a.enc.Base64,e=a.algo.EvpKDF,q=c.Cipher=g.extend({cfg:b.extend(),createEncryptor:function(a,d){return this.create(this._ENC_XFORM_MODE,a,d)},createDecryptor:function(a,d){return this.create(this._DEC_XFORM_MODE,a,d)},init:function(a,
  62. d,c){this.cfg=this.cfg.extend(c);this._xformMode=a;this._key=d;this.reset()},reset:function(){g.reset.call(this);this._doReset()},process:function(a){this._append(a);return this._process()},finalize:function(a){a&&this._append(a);return this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(a){return{encrypt:function(d,c,b){return("string"==typeof c?U:x).encrypt(a,d,c,b)},decrypt:function(d,c,b){return("string"==typeof c?U:x).decrypt(a,d,c,b)}}}});c.StreamCipher=
  63. q.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var h=a.mode={},H=function(a,c,b){var f=this._iv;f?this._iv=d:f=this._prevBlock;for(var g=0;g<b;g++)a[c+g]^=f[g]},D=(c.BlockCipherMode=b.extend({createEncryptor:function(a,d){return this.Encryptor.create(a,d)},createDecryptor:function(a,d){return this.Decryptor.create(a,d)},init:function(a,d){this._cipher=a;this._iv=d}})).extend();D.Encryptor=D.extend({processBlock:function(a,d){var c=this._cipher,b=c.blockSize;H.call(this,a,
  64. d,b);c.encryptBlock(a,d);this._prevBlock=a.slice(d,d+b)}});D.Decryptor=D.extend({processBlock:function(a,d){var c=this._cipher,b=c.blockSize,f=a.slice(d,d+b);c.decryptBlock(a,d);H.call(this,a,d,b);this._prevBlock=f}});h=h.CBC=D;D=(a.pad={}).Pkcs7={pad:function(a,d){for(var c=4*d,c=c-a.sigBytes%c,b=c<<24|c<<16|c<<8|c,g=[],m=0;m<c;m+=4)g.push(b);c=f.create(g,c);a.concat(c)},unpad:function(a){a.sigBytes-=a.words[a.sigBytes-1>>>2]&255}};c.BlockCipher=q.extend({cfg:q.cfg.extend({mode:h,padding:D}),reset:function(){q.reset.call(this);
  65. 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)},
  66. 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);
  67. 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),
  68. 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=[],
  69. 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=
  70. this._key,d=a.words,c=a.sigBytes/4,a=4*((this._nRounds=c+6)+1),f=this._keySchedule=[],l=0;l<a;l++)if(l<c)f[l]=d[l];else{var g=f[l-1];l%c?6<c&&4==l%c&&(g=b[g>>>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;c<a;c++)l=a-c,g=c%4?f[l]:f[l-4],d[c]=4>c||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,
  71. 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<m;R++)var F=b[k>>>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>>>
  72. 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?
  73. (e.prototype.am=E,Q=26):(e.prototype.am=C,Q=28);e.prototype.DB=Q;e.prototype.DM=(1<<Q)-1;e.prototype.DV=1<<Q;e.prototype.FV=Math.pow(2,52);e.prototype.F1=52-Q;e.prototype.F2=2*Q-52;var ja=[],ba;Q=48;for(ba=0;9>=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=
  74. 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<a.compareTo(e.ZERO)&&this.m.subTo(a,a);return a};ia.prototype.revert=function(d){var a=t();d.copyTo(a);this.reduce(a);return a};ia.prototype.reduce=function(d){for(;d.t<=this.mt2;)d[d.t++]=0;for(var a=0;a<this.m.t;++a){var c=d[a]&32767,b=c*this.mpl+((c*this.mph+(d[a]>>15)*this.mpl&
  75. 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;0<d?this[0]=d:-1>d?this[0]=d+DV:this.t=
  76. 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)-1)<<g,this[this.t++]=k>>this.DB-g):this[this.t-1]|=k<<g,g+=c,g>=this.DB&&(g-=this.DB))}8==c&&0!=(d[0]&128)&&(this.s=-1,0<g&&(this[this.t-
  77. 1]|=(1<<this.DB-g)-1<<g));this.clamp();f&&e.ZERO.subTo(this,this)};e.prototype.clamp=function(){for(var d=this.s&this.DM;0<this.t&&this[this.t-1]==d;)--this.t};e.prototype.dlShiftTo=function(d,a){var c;for(c=this.t-1;0<=c;--c)a[c+d]=this[c];for(c=d-1;0<=c;--c)a[c]=0;a.t=this.t+d;a.s=this.s};e.prototype.drShiftTo=function(d,a){for(var c=d;c<this.t;++c)a[c-d]=this[c];a.t=Math.max(this.t-d,0);a.s=this.s};e.prototype.lShiftTo=function(d,a){var c=d%this.DB,b=this.DB-c,f=(1<<b)-1,g=Math.floor(d/this.DB),
  78. k=this.s<<c&this.DM,e;for(e=this.t-1;0<=e;--e)a[e+g+1]=this[e]>>b|k,k=(this[e]&f)<<c;for(e=g-1;0<=e;--e)a[e]=0;a[g]=k;a.t=this.t+g+1;a.s=this.s;a.clamp()};e.prototype.rShiftTo=function(d,a){a.s=this.s;var c=Math.floor(d/this.DB);if(c>=this.t)a.t=0;else{var b=d%this.DB,f=this.DB-b,g=(1<<b)-1;a[0]=this[c]>>b;for(var k=c+1;k<this.t;++k)a[k-c-1]|=(this[k]&g)<<f,a[k-c]=this[k]>>b;0<b&&(a[this.t-c-1]|=(this.s&g)<<f);a.t=this.t-c;a.clamp()}};e.prototype.subTo=function(d,a){for(var c=0,b=0,f=Math.min(d.t,
  79. this.t);c<f;)b+=this[c]-d[c],a[c++]=b&this.DM,b>>=this.DB;if(d.t<this.t){for(b-=d.s;c<this.t;)b+=this[c],a[c++]=b&this.DM,b>>=this.DB;b+=this.s}else{for(b+=this.s;c<d.t;)b-=d[c],a[c++]=b&this.DM,b>>=this.DB;b-=d.s}a.s=0>b?-1:0;-1>b?a[c++]=this.DV+b:0<b&&(a[c++]=b);a.t=c;a.clamp()};e.prototype.multiplyTo=function(d,a){var c=this.abs(),b=d.abs(),f=c.t;for(a.t=f+b.t;0<=--f;)a[f]=0;for(f=0;f<b.t;++f)a[f+c.t]=c.am(0,b[f],a,f,0,c.t);a.s=0;a.clamp();this.s!=d.s&&e.ZERO.subTo(a,a)};e.prototype.squareTo=function(d){for(var a=
  80. this.abs(),c=d.t=2*a.t;0<=--c;)d[c]=0;for(c=0;c<a.t-1;++c){var b=a.am(c,a[c],d,2*c,0,1);(d[c+a.t]+=a.am(c+1,2*a[c],d,2*c+1,b,a.t-c-1))>=a.DV&&(d[c+a.t]-=a.DV,d[c+a.t+1]=1)}0<d.t&&(d[d.t-1]+=a.am(c,a[c],d,2*c,0,1));d.s=0;d.clamp()};e.prototype.divRemTo=function(d,a,c){var b=d.abs();if(!(0>=b.t)){var f=this.abs();if(f.t<b.t)null!=a&&a.fromInt(0),null!=c&&this.copyTo(c);else{null==c&&(c=t());var g=t(),k=this.s;d=d.s;var n=this.DB-W(b[b.t-1]);0<n?(b.lShiftTo(n,g),f.lShiftTo(n,c)):(b.copyTo(g),f.copyTo(c));
  81. b=g.t;f=g[b-1];if(0!=f){var q=f*(1<<this.F1)+(1<b?g[b-2]>>this.F2:0),h=this.FV/q,q=(1<<this.F1)/q,H=1<<this.F2,D=c.t,F=D-b,x=null==a?t():a;g.dlShiftTo(F,x);0<=c.compareTo(x)&&(c[c.t++]=1,c.subTo(x,c));e.ONE.dlShiftTo(b,x);for(x.subTo(g,g);g.t<b;)g[g.t++]=0;for(;0<=--F;){var U=c[--D]==f?this.DM:Math.floor(c[D]*h+(c[D-1]+H)*q);if((c[D]+=g.am(0,U,c,F,0,b))<U)for(g.dlShiftTo(F,x),c.subTo(x,c);c[D]<--U;)c.subTo(x,c)}null!=a&&(c.drShiftTo(b,a),k!=d&&e.ZERO.subTo(a,a));c.t=b;c.clamp();0<n&&c.rShiftTo(n,
  82. c);0>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 0<a?this.DV-a:-a};e.prototype.isEven=function(){return 0==(0<this.t?this[0]&1:this.s)};e.prototype.exp=function(d,a){if(4294967295<d||1>d)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<<g))a.mulTo(b,f,c);else var k=
  83. c,c=b,b=k;return a.revert(c)};e.prototype.toString=function(d){if(0>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<<d)-1,c,b=!1,f="",g=this.t,k=this.DB-g*this.DB%d;if(0<g--)for(k<this.DB&&0<(c=this[g]>>k)&&(b=!0,f=J(c));0<=g;)k<d?(c=(this[g]&(1<<k)-1)<<d-k,c|=this[--g]>>(k+=this.DB-d)):(c=this[g]>>(k-=d)&a,0>=k&&(k+=this.DB,--g)),0<c&&(b=!0),b&&(f+=J(c));return b?f:"0"};e.prototype.negate=
  84. function(){var d=t();e.ZERO.subTo(this,d);return d};e.prototype.abs=function(){return 0>this.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&&0<a.compareTo(e.ZERO)&&d.subTo(a,
  85. a);return a};e.prototype.modPowInt=function(d,a){var c;c=256>d||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=
  86. 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,
  87. 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,
  88. 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||36<d)return"0";var a=this.chunkSize(d),a=Math.pow(d,a),c=S(a),b=t(),f=t(),g="";for(this.divRemTo(c,b,f);0<b.signum();)g=(a+f.intValue()).toString(d).substr(1)+g,b.divRemTo(c,b,f);return f.intValue().toString(d)+g};e.prototype.fromRadix=
  89. function(d,a){this.fromInt(0);null==a&&(a=10);for(var c=this.chunkSize(a),b=Math.pow(a,c),f=!1,g=0,k=0,n=0;n<d.length;++n){var q=fa(d,n);0>q?"-"==d.charAt(n)&&0==this.signum()&&(f=!0):(k=a*k+q,++g>=c&&(this.dMultiply(b),this.dAddOffset(k,0),k=g=0))}0<g&&(this.dMultiply(Math.pow(a,g)),this.dAddOffset(k,0));f&&e.ZERO.subTo(this,this)};e.prototype.fromNumber=function(d,a,c){if("number"==typeof a)if(2>d)this.fromInt(1);else for(this.fromNumber(d,c),this.testBit(d-1)||this.bitwiseTo(e.ONE.shiftLeft(d-
  90. 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<b?c[0]&(1<<b)-1:0;this.fromString(c,256)}};e.prototype.bitwiseTo=function(d,a,c){var b,f,g=Math.min(d.t,this.t);for(b=0;b<g;++b)c[b]=a(this[b],d[b]);if(d.t<this.t){f=d.s&this.DM;for(b=g;b<this.t;++b)c[b]=a(this[b],f);c.t=this.t}else{f=this.s&this.DM;for(b=g;b<d.t;++b)c[b]=a(f,d[b]);c.t=d.t}c.s=
  91. a(this.s,d.s);c.clamp()};e.prototype.changeBit=function(d,a){var c=e.ONE.shiftLeft(d);this.bitwiseTo(c,a,c);return c};e.prototype.addTo=function(d,a){for(var c=0,b=0,f=Math.min(d.t,this.t);c<f;)b+=this[c]+d[c],a[c++]=b&this.DM,b>>=this.DB;if(d.t<this.t){for(b+=d.s;c<this.t;)b+=this[c],a[c++]=b&this.DM,b>>=this.DB;b+=this.s}else{for(b+=this.s;c<d.t;)b+=d[c],a[c++]=b&this.DM,b>>=this.DB;b+=d.s}a.s=0>b?-1:0;0<b?a[c++]=b:-1>b&&(a[c++]=this.DV+b);a.t=c;a.clamp()};e.prototype.dMultiply=function(d){this[this.t]=
  92. 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<b;)c[--b]=0;var f;for(f=c.t-this.t;b<f;++b)c[b+this.t]=this.am(0,d[b],c,b,0,this.t);for(f=Math.min(d.t,a);b<f;++b)this.am(0,d[b],c,b,0,a-b);c.clamp()};e.prototype.multiplyUpperTo=function(d,
  93. a,c){--a;var b=c.t=this.t+d.t-a;for(c.s=0;0<=--b;)c[b]=0;for(b=Math.max(a-this.t,0);b<d.t;++b)c[this.t+b-a]=this.am(a-b,d[b],c,0,0,this.t+b-a);c.clamp();c.drShiftTo(1,c)};e.prototype.modInt=function(d){if(0>=d)return 0;var a=this.DV%d,c=0>this.s?d-1:0;if(0<this.t)if(0==a)c=this[0]%d;else for(var b=this.t-1;0<=b;--b)c=(a*c+this[b])%d;return c};e.prototype.millerRabin=function(d){var a=this.subtract(e.ONE),c=a.getLowestSetBit();if(0>=c)return!1;var b=a.shiftRight(c);d=d+1>>1;d>Y.length&&(d=Y.length);
  94. for(var f=t(),g=0;g<d;++g){f.fromInt(Y[Math.floor(Math.random()*Y.length)]);var k=f.modPow(b,this);if(0!=k.compareTo(e.ONE)&&0!=k.compareTo(a)){for(var n=1;n++<c&&0!=k.compareTo(a);)if(k=k.modPowInt(2,this),0==k.compareTo(e.ONE))return!1;if(0!=k.compareTo(a))return!1}}return!0};e.prototype.clone=function(){var d=t();this.copyTo(d);return d};e.prototype.intValue=function(){if(0>this.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]&
  95. (1<<32-this.DB)-1)<<this.DB|this[0]};e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>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<d--)for(c<this.DB&&(b=this[d]>>c)!=(this.s&this.DM)>>c&&(a[f++]=b|this.s<<this.DB-c);0<=d;)if(8>c?(b=(this[d]&(1<<c)-1)<<8-c,b|=
  96. this[--d]>>(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,0<f||b!=this.s)a[f++]=b;return a};e.prototype.equals=function(d){return 0==this.compareTo(d)};e.prototype.min=function(d){return 0>this.compareTo(d)?this:d};e.prototype.max=function(d){return 0<this.compareTo(d)?this:d};e.prototype.and=function(d){var a=t();this.bitwiseTo(d,Z,a);return a};e.prototype.or=function(d){var a=t();this.bitwiseTo(d,ca,a);return a};e.prototype.xor=
  97. function(d){var a=t();this.bitwiseTo(d,ma,a);return a};e.prototype.andNot=function(d){var a=t();this.bitwiseTo(d,na,a);return a};e.prototype.not=function(){for(var d=t(),a=0;a<this.t;++a)d[a]=this.DM&~this[a];d.t=this.t;d.s=~this.s;return d};e.prototype.shiftLeft=function(d){var a=t();0>d?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<this.t;++d)if(0!=
  98. this[d]){var a=d*this.DB;d=this[d];if(0==d)d=-1;else{var c=0;0==(d&65535)&&(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;++c){for(var b=this[c]^a,f=0;0!=b;)b&=b-1,++f;d+=f}return d};e.prototype.testBit=function(d){var a=Math.floor(d/this.DB);return a>=this.t?0!=this.s:0!=(this[a]&1<<d%this.DB)};e.prototype.setBit=function(d){return this.changeBit(d,
  99. ca)};e.prototype.clearBit=function(d){return this.changeBit(d,na)};e.prototype.flipBit=function(d){return this.changeBit(d,ma)};e.prototype.add=function(d){var a=t();this.addTo(d,a);return a};e.prototype.subtract=function(d){var a=t();this.subTo(d,a);return a};e.prototype.multiply=function(d){var a=t();this.multiplyTo(d,a);return a};e.prototype.divide=function(d){var a=t();this.divRemTo(d,a,null);return a};e.prototype.remainder=function(d){var a=t();this.divRemTo(d,null,a);return a};e.prototype.divideAndRemainder=
  100. function(d){var a=t(),c=t();this.divRemTo(d,a,c);return[a,c]};e.prototype.modPow=function(d,a){var c=d.bitLength(),b,f=S(1),g;if(0>=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<<b)-1;k[1]=g.convert(this);if(1<b)for(c=t(),g.sqrTo(k[1],c);e<=h;)k[e]=t(),g.mulTo(c,k[e-2],k[e]),e+=2;for(var H=d.t-1,D,F=!0,x=t(),c=W(d[H])-1;0<=H;){c>=q?D=d[H]>>c-q&h:(D=(d[H]&(1<<c+1)-1)<<q-c,0<H&&(D|=d[H-1]>>this.DB+c-q));for(e=b;0==(D&1);)D>>=1,--e;
  101. 0>(c-=e)&&(c+=this.DB,--H);if(F)k[D].copyTo(f),F=!1;else{for(;1<e;)g.sqrTo(f,x),g.sqrTo(x,f),e-=2;0<e?g.sqrTo(f,x):(e=f,f=x,x=e);g.mulTo(x,k[D],f)}for(;0<=H&&0==(d[H]&1<<c);)g.sqrTo(f,x),e=f,f=x,x=e,0>--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),
  102. 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,
  103. 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<b&&(b=c);0<b&&(a.rShiftTo(b,a),d.rShiftTo(b,d));for(;0<a.signum();)0<(c=a.getLowestSetBit())&&a.rShiftTo(c,a),0<(c=d.getLowestSetBit())&&d.rShiftTo(c,d),0<=a.compareTo(d)?(a.subTo(d,a),a.rShiftTo(1,a)):(d.subTo(a,d),d.rShiftTo(1,d));0<b&&d.lShiftTo(b,d);return d};e.prototype.isProbablePrime=
  104. function(d){var a,c=this.abs();if(1==c.t&&c[0]<=Y[Y.length-1]){for(a=0;a<Y.length;++a)if(c[0]==Y[a])return!0;return!1}if(c.isEven())return!1;for(a=1;a<Y.length;){for(var b=Y[a],f=a+1;f<Y.length&&b<ta;)b*=Y[f++];for(b=c.modInt(b);a<f;)if(0==b%Y[a++])return!1}return c.millerRabin(d)};e.prototype.square=function(){var d=t();this.squareTo(d);return d};var ua=function(d,a){this.modulus=new e(la.encode(d),16);this.encryptionExponent=new e(la.encode(a),16)},pa={base64:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  105. encode:function(d){if(!d)return!1;var a="",c,b,f,g,k,e,q=0;do c=d.charCodeAt(q++),b=d.charCodeAt(q++),f=d.charCodeAt(q++),g=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<d.length);return a},decode:function(d){if(!d)return!1;d=d.replace(/[^A-Za-z0-9\+\/\=]/g,"");var a="",c,b,f,g,k=0;do c=this.base64.indexOf(d.charAt(k++)),b=this.base64.indexOf(d.charAt(k++)),f=this.base64.indexOf(d.charAt(k++)),
  106. g=this.base64.indexOf(d.charAt(k++)),a+=String.fromCharCode(c<<2|b>>4),64!=f&&(a+=String.fromCharCode((b&15)<<4|f>>2)),64!=g&&(a+=String.fromCharCode((f&3)<<6|g));while(k<d.length);return a}},la={hex:"0123456789abcdef",encode:function(d){if(!d)return!1;var a="",c,b=0;do c=d.charCodeAt(b++),a+=this.hex.charAt(c>>4&15)+this.hex.charAt(c&15);while(b<d.length);return a},decode:function(d){if(!d)return!1;d=d.replace(/[^0-9abcdef]/g,"");var a="",c=0;do a+=String.fromCharCode(this.hex.indexOf(d.charAt(c++))<<
  107. 4&240|this.hex.indexOf(d.charAt(c++))&15);while(c<d.length);return a}},va=function(d){this.error=!1;this.parse=function(a){if(!a)return this.error=!0,null;for(var d=[];0<a.length;){var b=a.charCodeAt(0);a=a.substr(1);var f=0;if(5==(b&31))a=a.substr(1);else if(a.charCodeAt(0)&128){var g=a.charCodeAt(0)&127;a=a.substr(1);0<g&&(f=a.charCodeAt(0));1<g&&(f=f<<8|a.charCodeAt(1));if(2<g)return this.error=!0,null;a=a.substr(g)}else f=a.charCodeAt(0),a=a.substr(1);g="";if(f){if(f>a.length)return this.error=
  108. !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;k<d.length;k++){var e=d.charCodeAt(k);f.push(e&127);if(e&128)g++;else{for(var q=0,e=0;e<f.length;e++)q+=f[e]*Math.pow(128,g--);b.push(q);g=0;f=[]}}return b.join(".")}return null};
  109. this.data=this.parse(d)},qa={getPublicKey:function(d){if(50>d.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,
  110. 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(a<d.length+11)return null;for(var c=[],b=d.length-1;0<=b&&0<a;)c[--a]=d.charCodeAt(b--);for(c[--a]=0;2<a;)c[--a]=Math.floor(254*Math.random())+1;c[--a]=2;c[--a]=0;return new e(c)}};(function(){function d(a,d){d=d||Infinity;for(var f,g=a.length,k=null,e=[],q=0;q<g;q++){f=a.charCodeAt(q);if(55295<f&&57344>f)if(k)if(56320>f){-1<(d-=3)&&e.push(239,191,189);k=f;continue}else f=
  111. k-55296<<10|f-56320|65536,k=null;else{56319<f?-1<(d-=3)&&e.push(239,191,189):q+1===g?-1<(d-=3)&&e.push(239,191,189):k=f;continue}else k&&(-1<(d-=3)&&e.push(239,191,189),k=null);if(128>f){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)}}
  112. 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<b;k++)127>=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?
  113. 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<f.length;e++)g(f[e]);return g}({1:[function(a,
  114. c,b){function f(a){if(a){this.data=a;this.length=this.data.length;for(var c=this.zero=this.index=0;c<this.data.length;c++)a[c]&=255}}a=a("./dataReader");f.prototype=new a;f.prototype.byteAt=function(a){return this.data[this.zero+a]};f.prototype.lastIndexOfSignature=function(a){var c=a.charCodeAt(0),b=a.charCodeAt(1),f=a.charCodeAt(2);a=a.charCodeAt(3);for(var e=this.length-4;0<=e;--e)if(this.data[e]===c&&this.data[e+1]===b&&this.data[e+2]===f&&this.data[e+3]===a)return e-this.zero;return-1};f.prototype.readData=
  115. function(a){this.checkOffset(a);if(0===a)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);this.index+=a;return c};c.exports=f},{"./dataReader":6}],2:[function(a,c,b){b.encode=function(a,c){for(var b="",e,q,h,H,D,F,x=0;x<a.length;)e=a.charCodeAt(x++),q=a.charCodeAt(x++),h=a.charCodeAt(x++),H=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)+
  116. "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<a.length;)e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(F++)),q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(F++)),H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(F++)),
  117. D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(F++)),e=e<<2|q>>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,
  118. 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,
  119. 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,
  120. 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,
  121. 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,
  122. 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,
  123. 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;
  124. 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<D;H++)e=b?a[H]:a.charCodeAt(H),e=(c^e)&255,e=g[e],c=c>>>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.length<this.zero+a||0>a)throw Error("End of data reached (data length = "+this.length+", asked index = "+
  125. 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,
  126. 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=
  127. 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)}},
  128. {"./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=
  129. "";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,
  130. "./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<b.length;F++)x=b[F],this.file(x.fileNameStr,x.decompressed,{binary:!0,optimizedBinaryString:!0,date:x.date,dir:x.dir,comment:x.fileCommentStr.length?x.fileCommentStr:
  131. null,unixPermissions:x.unixPermissions,dosPermissions:x.dosPermissions,createFolders:c.createFolders});D.zipComment.length&&(this.comment=D.zipComment);return this}},{"./base64":2,"./utf8":21,"./utils":22,"./zipEntries":23}],12:[function(a,c,b){(function(a){c.exports=function(c,b){return new a(c,b)};c.exports.test=function(c){return a.isBuffer(c)}}).call(this,"undefined"!==typeof Buffer?Buffer:void 0)},{}],13:[function(a,c,b){function f(a){this.data=a;this.length=this.data.length;this.zero=this.index=
  132. 0}a=a("./uint8ArrayReader");f.prototype=new a;f.prototype.readData=function(a){this.checkOffset(a);var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);this.index+=a;return c};c.exports=f},{"./uint8ArrayReader":19}],14:[function(a,c,b){var f=a("./support"),e=a("./utils"),k=a("./crc32"),n=a("./signature"),q=a("./defaults"),h=a("./base64"),H=a("./compressions"),D=a("./compressedObject"),F=a("./nodeBuffer"),x=a("./utf8"),U=a("./stringWriter"),t=a("./uint8ArrayWriter"),M=function(a){if(a._data instanceof
  133. D&&(a._data=a._data.getContent(),a.options.binary=!0,a.options.base64=!1,"uint8array"===e.getTypeOf(a._data))){var c=a._data;a._data=new Uint8Array(c.length);0!==c.length&&a._data.set(c,0)}return a._data},E=function(a){var c=M(a);return"string"===e.getTypeOf(c)?!a.options.binary&&f.nodebuffer?F(c,"utf-8"):a.asBinary():c},y=function(a){var c=M(this);if(null===c||"undefined"===typeof c)return"";this.options.base64&&(c=h.decode(c));c=a&&this.options.binary?A.utf8decode(c):e.transformTo("string",c);a||
  134. this.options.binary||(c=e.transformTo("string",A.utf8encode(c)));return c},X=function(a,c,l){this.name=a;this.dir=l.dir;this.date=l.date;this.comment=l.comment;this.unixPermissions=l.unixPermissions;this.dosPermissions=l.dosPermissions;this._data=c;this.options=l;this._initialMetadata={dir:l.dir,date:l.date}};X.prototype={asText:function(){return y.call(this,!0)},asBinary:function(){return y.call(this,!1)},asNodeBuffer:function(){var a=E(this);return e.transformTo("nodebuffer",a)},asUint8Array:function(){var a=
  135. E(this);return e.transformTo("uint8array",a)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var m=function(a,c){var l="",b;for(b=0;b<c;b++)l+=String.fromCharCode(a&255),a>>>=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,
  136. 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=0<w?f.substring(0,w):"";w&&K.call(this,f,!0);if(l.dir||null===c||"undefined"===typeof c)l.base64=!1,l.binary=!1,c=null;else if("string"===b)l.binary&&!l.base64&&!0!==l.optimizedBinaryString&&(c=e.string2binary(c));else{l.base64=!1;l.binary=!0;if(!(b||c instanceof D))throw Error("The data of '"+
  137. a+"' is in an unsupported format !");"arraybuffer"===b&&(c=e.transformTo("uint8array",c))}c=new X(a,c,l);return this.files[a]=c},I=function(a){"/"!=a.slice(-1)&&(a+="/");return a},K=function(a,c){c="undefined"!==typeof c?c:!1;a=I(a);this.files[a]||N.call(this,a,null,{dir:!0,createFolders:c});return this.files[a]},A={load:function(a,c){throw Error("Load method is not defined. Is the file jszip-load.js included ?");},filter:function(a){var c=[],l,b,f;for(l in this.files)this.files.hasOwnProperty(l)&&
  138. (b=this.files[l],f=new X(b.name,b._data,e.extend(b.options)),b=l.slice(this.root.length,l.length),l.slice(0,this.root.length)===this.root&&a(b,f)&&c.push(f));return c},file:function(a,c,l){if(1===arguments.length){if(e.isRegExp(a)){var b=a;return this.filter(function(a,l){return!l.dir&&b.test(a)})}return this.filter(function(l,c){return!c.dir&&l===a})[0]||null}a=this.root+a;N.call(this,a,c,l);return this},folder:function(a){if(!a)return this;if(e.isRegExp(a))return this.filter(function(l,c){return c.dir&&
  139. a.test(l)});var c=K.call(this,this.root+a),l=this.clone();l.root=c.name;return l},remove:function(a){a=this.root+a;var c=this.files[a];c||("/"!=a.slice(-1)&&(a+="/"),c=this.files[a]);if(c&&!c.dir)delete this.files[a];else for(var c=this.filter(function(l,c){return c.name.slice(0,a.length)===a}),l=0;l<c.length;l++)delete this.files[c[l].name];return this},generate:function(a){a=e.extend(a||{},{base64:!0,compression:"STORE",compressionOptions:null,type:"base64",platform:"DOS",comment:null,mimeType:"application/zip",
  140. encodeFileName:x.utf8encode});e.checkSupport(a.type);if("darwin"===a.platform||"freebsd"===a.platform||"linux"===a.platform||"sunos"===a.platform)a.platform="UNIX";"win32"===a.platform&&(a.platform="DOS");var c=[],l=0,b=0,f=e.transformTo("string",a.encodeFileName(a.comment||this.comment||"")),w;for(w in this.files)if(this.files.hasOwnProperty(w)){var p=this.files[w],F=p.options.compression||a.compression.toUpperCase(),y=H[F];if(!y)throw Error(F+" is not a valid compression method !");var F=p,q=p.options.compressionOptions||
  141. a.compressionOptions||{},M=new D,A=void 0;if(F._data instanceof D)M.uncompressedSize=F._data.uncompressedSize,M.crc32=F._data.crc32,0===M.uncompressedSize||F.dir?(y=H.STORE,M.compressedContent="",M.crc32=0):F._data.compressionMethod===y.magic?M.compressedContent=F._data.getCompressedContent():(A=F._data.getContent(),M.compressedContent=y.compress(e.transformTo(y.compressInputType,A),q));else{A=E(F);if(!A||0===A.length||F.dir)y=H.STORE,A="";M.uncompressedSize=A.length;M.crc32=k(A);M.compressedContent=
  142. y.compress(e.transformTo(y.compressInputType,A),q)}M.compressedSize=M.compressedContent.length;M.compressionMethod=y.magic;var F=M,R=p,p=F,y=l,V=a.platform,A=a.encodeFileName,M=A!==x.utf8encode,q=e.transformTo("string",A(R.name)),T=e.transformTo("string",x.utf8encode(R.name)),K=R.comment||"",A=e.transformTo("string",A(K)),X=e.transformTo("string",x.utf8encode(K)),N=T.length!==R.name.length,ra=X.length!==K.length,I=R.options,O=void 0,C=void 0,G=K="",G="",G=O=void 0,O=R._initialMetadata.dir!==R.dir?
  143. R.dir:I.dir,G=R._initialMetadata.date!==R.date?R.date:I.date,J=0,I=0;O&&(J|=16);"UNIX"===V?(I=798,V=J,(J=R=R.unixPermissions)||(J=O?16893:33204),J=V|(J&65535)<<16):(I=20,J|=(R.dosPermissions||0)&63);O=G.getHours();O<<=6;O|=G.getMinutes();O<<=5;O|=G.getSeconds()/2;C=G.getFullYear()-1980;C<<=4;C|=G.getMonth()+1;C<<=5;C|=G.getDate();N&&(G=m(1,1)+m(k(q),4)+T,K+="up"+m(G.length,2)+G);ra&&(G=m(1,1)+m(this.crc32(A),4)+X,K+="uc"+m(G.length,2)+G);T="";T+="\n\x00";T+=M||!N&&!ra?"\x00\x00":"\x00\b";T+=p.compressionMethod;
  144. T+=m(O,2);T+=m(C,2);T+=m(p.crc32,4);T+=m(p.compressedSize,4);T+=m(p.uncompressedSize,4);T+=m(q.length,2);T+=m(K.length,2);M=n.LOCAL_FILE_HEADER+T+q+K;y=n.CENTRAL_FILE_HEADER+m(I,2)+T+m(A.length,2)+"\x00\x00\x00\x00"+m(J,4)+m(y,4)+q+K+A;p={fileRecord:M,dirRecord:y,compressedObject:p};l+=p.fileRecord.length+F.compressedSize;b+=p.dirRecord.length;c.push(p)}w="";w=n.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+m(c.length,2)+m(c.length,2)+m(b,4)+m(l,4)+m(f.length,2)+f;f=a.type.toLowerCase();l="uint8array"===
  145. f||"arraybuffer"===f||"blob"===f||"nodebuffer"===f?new t(l+b+w.length):new U(l+b+w.length);for(b=0;b<c.length;b++)l.append(c[b].fileRecord),l.append(c[b].compressedObject.compressedContent);for(b=0;b<c.length;b++)l.append(c[b].dirRecord);l.append(w);c=l.finalize();switch(a.type.toLowerCase()){case "uint8array":case "arraybuffer":case "nodebuffer":return e.transformTo(a.type.toLowerCase(),c);case "blob":return e.arrayBuffer2Blob(e.transformTo("arraybuffer",c),a.mimeType);case "base64":return a.base64?
  146. h.encode(c):c;default:return c}},crc32:function(a,c){return k(a,c)},utf8encode:function(a){return e.transformTo("string",x.utf8encode(a))},utf8decode:function(a){return x.utf8decode(a)}};c.exports=A},{"./base64":2,"./compressedObject":3,"./compressions":4,"./crc32":5,"./defaults":7,"./nodeBuffer":12,"./signature":15,"./stringWriter":17,"./support":18,"./uint8ArrayWriter":20,"./utf8":21,"./utils":22}],15:[function(a,c,b){b.LOCAL_FILE_HEADER="PK\u0003\u0004";b.CENTRAL_FILE_HEADER="PK\u0001\u0002";b.CENTRAL_DIRECTORY_END=
  147. "PK\u0005\u0006";b.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\u0006\u0007";b.ZIP64_CENTRAL_DIRECTORY_END="PK\u0006\u0006";b.DATA_DESCRIPTOR="PK\u0007\b"},{}],16:[function(a,c,b){function f(a,c){this.data=a;c||(this.data=e.string2binary(this.data));this.length=this.data.length;this.zero=this.index=0}b=a("./dataReader");var e=a("./utils");f.prototype=new b;f.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)};f.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero};
  148. f.prototype.readData=function(a){this.checkOffset(a);var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);this.index+=a;return c};c.exports=f},{"./dataReader":6,"./utils":22}],17:[function(a,c,b){var f=a("./utils");a=function(){this.data=[]};a.prototype={append:function(a){a=f.transformTo("string",a);this.data.push(a)},finalize:function(){return this.data.join("")}};c.exports=a},{"./utils":22}],18:[function(a,c,b){a="undefined"!==typeof Buffer?Buffer:void 0;b.base64=!0;b.array=!0;b.string=
  149. !0;b.arraybuffer="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array;b.nodebuffer="undefined"!==typeof a;b.uint8array="undefined"!==typeof Uint8Array;if("undefined"===typeof ArrayBuffer)b.blob=!1;else{a=new ArrayBuffer(0);try{b.blob=0===(new Blob([a],{type:"application/zip"})).size}catch(e){try{var f=new (window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);f.append(a);b.blob=0===f.getBlob("application/zip").size}catch(k){b.blob=!1}}}},{}],19:[function(a,
  150. c,b){function f(a){a&&(this.data=a,this.length=this.data.length,this.zero=this.index=0)}a=a("./arrayReader");f.prototype=new a;f.prototype.readData=function(a){this.checkOffset(a);if(0===a)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+a);this.index+=a;return c};c.exports=f},{"./arrayReader":1}],20:[function(a,c,b){var f=a("./utils");a=function(a){this.data=new Uint8Array(a);this.index=0};a.prototype={append:function(a){0!==a.length&&(a=f.transformTo("uint8array",
  151. a),this.data.set(a,this.index),this.index+=a.length)},finalize:function(){return this.data}};c.exports=a},{"./utils":22}],21:[function(a,c,b){var f=a("./utils"),e=a("./support"),k=a("./nodeBuffer"),n=Array(256);for(a=0;256>a;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;c<g;)if(e=a[c++],128>e)q[b++]=e;else if(k=n[e],4<k)q[b++]=65533,c+=k-1;else{for(e&=2===k?31:3===k?15:7;1<k&&c<g;)e=e<<6|a[c++]&63,k--;1<k?q[b++]=
  152. 65533:65536>e?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;x<q;x++)b=a.charCodeAt(x),55296===(b&64512)&&x+1<q&&(f=a.charCodeAt(x+1),56320===(f&64512)&&(b=65536+(b-55296<<10)+(f-56320),x++)),M+=128>b?1:2048>b?2:65536>b?3:4;c=e.uint8array?new Uint8Array(M):Array(M);for(x=n=0;n<M;x++)b=a.charCodeAt(x),
  153. 55296===(b&64512)&&x+1<q&&(f=a.charCodeAt(x+1),56320===(f&64512)&&(b=65536+(b-55296<<10)+(f-56320),x++)),128>b?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<k;){var x;x=Math.min(b+65536,k);var U=void 0;x=x||a.length;x>
  154. 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;b<a.length;++b)c[b]=a.charCodeAt(b)&255;return c}function k(a){var c=65536,f=[],e=a.length,k=b.getTypeOf(a),g=0,h=!0;try{switch(k){case "uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;
  155. case "nodebuffer":String.fromCharCode.apply(null,H(0))}}catch(n){h=!1}if(!h){c="";for(f=0;f<a.length;f++)c+=String.fromCharCode(a[f]);return c}for(;g<e&&1<c;)try{"array"===k||"nodebuffer"===k?f.push(String.fromCharCode.apply(null,a.slice(g,Math.min(g+c,e)))):f.push(String.fromCharCode.apply(null,a.subarray(g,Math.min(g+c,e)))),g+=c}catch(n){c=Math.floor(c/2)}return f.join("")}function n(a,c){for(var b=0;b<a.length;b++)c[b]=a[b];return c}var q=a("./support"),h=a("./compressions"),H=a("./nodeBuffer");
  156. b.string2binary=function(a){for(var c="",b=0;b<a.length;b++)c+=String.fromCharCode(a.charCodeAt(b)&255);return c};b.arrayBuffer2Blob=function(a,c){b.checkSupport("blob");c=c||"application/zip";try{return new Blob([a],{type:c})}catch(f){try{var e=new (window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);e.append(a);return e.getBlob(c)}catch(k){throw Error("Bug : can't construct the Blob.");}}};b.applyFromCharCode=k;var D={};D.string={string:f,array:function(a){return e(a,
  157. Array(a.length))},arraybuffer:function(a){return D.string.uint8array(a).buffer},uint8array:function(a){return e(a,new Uint8Array(a.length))},nodebuffer:function(a){return e(a,H(a.length))}};D.array={string:k,array:f,arraybuffer:function(a){return(new Uint8Array(a)).buffer},uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return H(a)}};D.arraybuffer={string:function(a){return k(new Uint8Array(a))},array:function(a){return n(new Uint8Array(a),Array(a.byteLength))},arraybuffer:f,
  158. uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return H(new Uint8Array(a))}};D.uint8array={string:k,array:function(a){return n(a,Array(a.length))},arraybuffer:function(a){return a.buffer},uint8array:f,nodebuffer:function(a){return H(a)}};D.nodebuffer={string:k,array:function(a){return n(a,Array(a.length))},arraybuffer:function(a){return D.nodebuffer.uint8array(a).buffer},uint8array:function(a){return n(a,new Uint8Array(a.length))},nodebuffer:f};b.transformTo=function(a,c){c||
  159. (c="");if(!a)return c;b.checkSupport(a);var f=b.getTypeOf(c);return D[f][a](c)};b.getTypeOf=function(a){if("string"===typeof a)return"string";if("[object Array]"===Object.prototype.toString.call(a))return"array";if(q.nodebuffer&&H.test(a))return"nodebuffer";if(q.uint8array&&a instanceof Uint8Array)return"uint8array";if(q.arraybuffer&&a instanceof ArrayBuffer)return"arraybuffer"};b.checkSupport=function(a){if(!q[a.toLowerCase()])throw Error(a+" is not supported by this browser");};b.MAX_VALUE_16BITS=
  160. 65535;b.MAX_VALUE_32BITS=-1;b.pretty=function(a){var c="",b,f;for(f=0;f<(a||"").length;f++)b=a.charCodeAt(f),c+="\\x"+(16>b?"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;c<arguments.length;c++)for(b in arguments[c])arguments[c].hasOwnProperty(b)&&"undefined"===typeof a[b]&&
  161. (a[b]=arguments[c][b]);return a}},{"./compressions":4,"./nodeBuffer":12,"./support":18}],23:[function(a,c,b){function f(a,c){this.files=[];this.loadOptions=c;a&&this.load(a)}var e=a("./stringReader"),k=a("./nodeBufferReader"),n=a("./uint8ArrayReader"),q=a("./arrayReader"),h=a("./utils"),H=a("./signature"),D=a("./zipEntry"),F=a("./support");a("./object");f.prototype={checkSignature:function(a){var c=this.reader.readString(4);if(c!==a)throw Error("Corrupted zip or bug : unexpected signature ("+h.pretty(c)+
  162. ", expected "+h.pretty(a)+")");},isSignature:function(a,c){var b=this.reader.index;this.reader.setIndex(a);var f=this.reader.readString(4)===c;this.reader.setIndex(b);return f},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2);this.diskWithCentralDirStart=this.reader.readInt(2);this.centralDirRecordsOnThisDisk=this.reader.readInt(2);this.centralDirRecords=this.reader.readInt(2);this.centralDirSize=this.reader.readInt(4);this.centralDirOffset=this.reader.readInt(4);this.zipCommentLength=
  163. this.reader.readInt(2);var a=this.reader.readData(this.zipCommentLength),a=h.transformTo(F.uint8array?"uint8array":"array",a);this.zipComment=this.loadOptions.decodeFileName(a)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8);this.versionMadeBy=this.reader.readString(2);this.versionNeeded=this.reader.readInt(2);this.diskNumber=this.reader.readInt(4);this.diskWithCentralDirStart=this.reader.readInt(4);this.centralDirRecordsOnThisDisk=this.reader.readInt(8);this.centralDirRecords=
  164. this.reader.readInt(8);this.centralDirSize=this.reader.readInt(8);this.centralDirOffset=this.reader.readInt(8);this.zip64ExtensibleData={};for(var a=this.zip64EndOfCentralSize-44,c,b,f;0<a;)c=this.reader.readInt(2),b=this.reader.readInt(4),f=this.reader.readString(b),this.zip64ExtensibleData[c]={id:c,length:b,value:f}},readBlockZip64EndOfCentralLocator:function(){this.diskWithZip64CentralDirStart=this.reader.readInt(4);this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8);this.disksCount=
  165. this.reader.readInt(4);if(1<this.disksCount)throw Error("Multi-volumes zip are not supported");},readLocalFiles:function(){var a,c;for(a=0;a<this.files.length;a++)c=this.files[a],this.reader.setIndex(c.localHeaderOffset),this.checkSignature(H.LOCAL_FILE_HEADER),c.readLocalPart(this.reader),c.handleUTF8(),c.processAttributes()},readCentralDir:function(){var a;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===H.CENTRAL_FILE_HEADER;)a=new D({zip64:this.zip64},this.loadOptions),
  166. a.readCentralPart(this.reader),this.files.push(a);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length);},readEndOfCentral:function(){var a=this.reader.lastIndexOfSignature(H.CENTRAL_DIRECTORY_END);if(0>a){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");
  167. }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");
  168. 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);
  169. this.readBlockZip64EndOfCentral()}a=this.centralDirOffset+this.centralDirSize;this.zip64&&(a=a+20+(12+this.zip64EndOfCentralSize));a=c-a;if(0<a)this.isSignature(c,H.CENTRAL_FILE_HEADER)||(this.reader.zero=a);else if(0>a)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=
  170. 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=
  171. 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!==
  172. 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 "+
  173. 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,
  174. 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=
  175. 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=
  176. 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=
  177. 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.index<c+this.extraFieldsLength;)b=a.readInt(2),f=a.readInt(2),e=a.readString(f),this.extraFields[b]={id:b,length:f,value:e}},handleUTF8:function(){var a=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=q.utf8decode(this.fileName),
  178. this.fileCommentStr=q.utf8decode(this.fileComment);else{var c=this.findExtraFieldUnicodePath();null!==c?this.fileNameStr=c:(c=k.transformTo(a,this.fileName),this.fileNameStr=this.loadOptions.decodeFileName(c));c=this.findExtraFieldUnicodeComment();null!==c?this.fileCommentStr=c:(a=k.transformTo(a,this.fileComment),this.fileCommentStr=this.loadOptions.decodeFileName(a))}},findExtraFieldUnicodePath:function(){var a=this.extraFields[28789];if(a){var c=new e(a.value);return 1!==c.readInt(1)||q.crc32(this.fileName)!==
  179. c.readInt(4)?null:q.utf8decode(c.readString(a.length-5))}return null},findExtraFieldUnicodeComment:function(){var a=this.extraFields[25461];if(a){var c=new e(a.value);return 1!==c.readInt(1)||q.crc32(this.fileComment)!==c.readInt(4)?null:q.utf8decode(c.readString(a.length-5))}return null}};c.exports=f},{"./compressedObject":3,"./object":14,"./stringReader":16,"./support":18,"./utils":22}],25:[function(a,c,b){b=a("./lib/utils/common").assign;var f=a("./lib/deflate"),e=a("./lib/inflate");a=a("./lib/zlib/constants");
  180. var k={};b(k,f,e,a);c.exports=k},{"./lib/deflate":26,"./lib/inflate":27,"./lib/utils/common":28,"./lib/zlib/constants":31}],26:[function(a,c,b){function f(a){if(!(this instanceof f))return new f(a);a=this.options=n.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},a||{});a.raw&&0<a.windowBits?a.windowBits=-a.windowBits:a.gzip&&0<a.windowBits&&16>a.windowBits&&(a.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new H;this.strm.avail_out=
  181. 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===
  182. 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<
  183. 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||{};
  184. 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);15<c.windowBits&&48>c.windowBits&&0===(c.windowBits&
  185. 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;
  186. 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),
  187. 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((0<b.avail_in||0===b.avail_out)&&f!==h.Z_STREAM_END);f===h.Z_STREAM_END&&(g=h.Z_FINISH);if(g===
  188. h.Z_FINISH)return f=k.inflateEnd(this.strm),this.onEnd(f),this.ended=!0,f===h.Z_OK;g===h.Z_SYNC_FLUSH&&(this.onEnd(h.Z_OK),b.avail_out=0);return!0};f.prototype.onData=function(a){this.chunks.push(a)};f.prototype.onEnd=function(a){a===h.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):n.flattenChunks(this.chunks));this.chunks=[];this.err=a;this.msg=this.strm.msg};b.Inflate=f;b.inflate=e;b.inflateRaw=function(a,c){c=c||{};c.raw=!0;return e(a,c)};b.ungzip=e},{"./utils/common":28,"./utils/strings":29,
  189. "./zlib/constants":31,"./zlib/gzheader":34,"./zlib/inflate":36,"./zlib/messages":38,"./zlib/zstream":40}],28:[function(a,c,b){a="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;b.assign=function(a){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var b=c.shift();if(b){if("object"!==typeof b)throw new TypeError(b+"must be non-object");for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f])}}return a};b.shrinkBuf=function(a,c){if(a.length===c)return a;
  190. if(a.subarray)return a.subarray(0,c);a.length=c;return a};var f={arraySet:function(a,c,b,f,e){if(c.subarray&&a.subarray)a.set(c.subarray(b,b+f),e);else for(var g=0;g<f;g++)a[e+g]=c[b+g]},flattenChunks:function(a){var c,b,f,e,g;c=f=0;for(b=a.length;c<b;c++)f+=a[c].length;g=new Uint8Array(f);c=f=0;for(b=a.length;c<b;c++)e=a[c],g.set(e,f),f+=e.length;return g}},e={arraySet:function(a,c,b,f,e){for(var g=0;g<f;g++)a[e+g]=c[b+g]},flattenChunks:function(a){return[].concat.apply([],a)}};b.setTyped=function(a){a?
  191. (b.Buf8=Uint8Array,b.Buf16=Uint16Array,b.Buf32=Int32Array,b.assign(b,f)):(b.Buf8=Array,b.Buf16=Array,b.Buf32=Array,b.assign(b,e))};b.setTyped(a)},{}],29:[function(a,c,b){function f(a,c){if(65537>c&&(a.subarray&&n||!a.subarray&&k))return String.fromCharCode.apply(null,e.shrinkBuf(a,c));for(var b="",f=0;f<c;f++)b+=String.fromCharCode(a[f]);return b}var e=a("./common"),k=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch(h){k=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(h){n=!1}var q=
  192. new e.Buf8(256);for(a=0;256>a;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;k<q;k++)b=a.charCodeAt(k),55296===(b&64512)&&k+1<q&&(f=a.charCodeAt(k+1),56320===(f&64512)&&(b=65536+(b-55296<<10)+(f-56320),k++)),t+=128>b?1:2048>b?2:65536>b?3:4;c=new e.Buf8(t);for(k=n=0;n<t;k++)b=a.charCodeAt(k),55296===(b&64512)&&k+1<q&&(f=a.charCodeAt(k+1),56320===(f&64512)&&(b=65536+(b-55296<<10)+(f-56320),k++)),128>b?c[n++]=b:(2048>
  193. 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;b<f;b++)c[b]=a.charCodeAt(b);return c};b.buf2string=function(a,c){var b,e,g,k,n=c||a.length,t=Array(2*n);for(b=e=0;b<n;)if(g=a[b++],128>g)t[e++]=g;else if(k=q[g],4<k)t[e++]=65533,b+=k-1;else{for(g&=2===k?31:3===k?15:7;1<k&&b<n;)g=g<<6|a[b++]&
  194. 63,k--;1<k?t[e++]=65533:65536>g?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=2E3<b?2E3:b;b-=h;do q=q+c[e++]|0,a=a+q|0;while(--h);q%=65521;a%=65521}return q|a<<16|0}},{}],31:[function(a,c,b){c.exports=
  195. {Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],32:[function(a,c,b){var f=function(){for(var a,c=[],b=0;256>b;b++){a=b;for(var f=0;8>f;f++)a=a&1?3988292384^a>>>
  196. 1:a>>>1;c[b]=a}return c}();c.exports=function(a,c,b,e){b=e+b;for(a^=-1;e<b;e++)a=a>>>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,
  197. 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);
  198. 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]&&e<n;);f=258-(n-e);e=n-258;if(f>m){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,
  199. 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=
  200. a.strstart-a.insert,a.ins_h=a.window[m],a.ins_h=(a.ins_h<<a.hash_shift^a.window[m+1])&a.hash_mask;a.insert&&!(a.ins_h=(a.ins_h<<a.hash_shift^a.window[m+3-1])&a.hash_mask,a.prev[m&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=m,m++,a.insert--,3>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.hash_shift^a.window[a.strstart+3-1])&
  201. a.hash_mask,b=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);0!==b&&a.strstart-b<=a.w_size-262&&(a.match_length=t(a,b));if(3<=a.match_length)if(b=O._tr_tally(a,a.strstart-a.match_start,a.match_length-3),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&3<=a.lookahead){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(0!==--a.match_length);
  202. a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else 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=2>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===
  203. a.lookahead)break}b=0;3<=a.lookahead&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,b=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);a.prev_length=a.match_length;a.prev_match=a.match_start;a.match_length=2;0!==b&&a.prev_length<a.max_lazy_match&&a.strstart-b<=a.w_size-262&&(a.match_length=t(a,b),5>=a.match_length&&(1===a.strategy||3===a.match_length&&4096<a.strstart-a.match_start)&&(a.match_length=2));if(3<=a.prev_length&&a.match_length<=a.prev_length){e=
  204. a.strstart+a.lookahead-3;b=O._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-3);a.lookahead-=a.prev_length-1;a.prev_length-=2;do++a.strstart<=e&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(0!==--a.prev_length);a.match_available=0;a.match_length=2;a.strstart++;if(b&&(n(a,!1),0===a.strm.avail_out))return 1}else if(a.match_available){if((b=O._tr_tally(a,0,a.window[a.strstart-1]))&&n(a,!1),a.strstart++,
  205. a.lookahead--,0===a.strm.avail_out)return 1}else a.match_available=1,a.strstart++,a.lookahead--}a.match_available&&(O._tr_tally(a,0,a.window[a.strstart-1]),a.match_available=0);a.insert=2>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 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&&0<a.strstart&&(e=a.strstart-
  206. 1,b=m[e],b===m[++e]&&b===m[++e]&&b===m[++e])){for(f=a.strstart+258;b===m[++e]&&b===m[++e]&&b===m[++e]&&b===m[++e]&&b===m[++e]&&b===m[++e]&&b===m[++e]&&b===m[++e]&&e<f;);a.match_length=258-(f-e);a.match_length>a.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=
  207. 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=
  208. 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=
  209. 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=
  210. 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,
  211. 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):15<e&&(g=2,e-=16);if(1>m||9<m||8!==b||8>e||15<e||0>c||9<c||0>k||4<k)return f(a,-2);8===e&&(e=9);var h=new C;a.state=h;h.strm=a;h.wrap=g;h.gzhead=null;h.w_bits=e;h.w_size=1<<h.w_bits;h.w_mask=h.w_size-1;h.hash_bits=m+7;h.hash_size=1<<h.hash_bits;h.hash_mask=h.hash_size-
  212. 1;h.hash_shift=~~((h.hash_bits+3-1)/3);h.window=new N.Buf8(2*h.w_size);h.head=new N.Buf16(h.hash_size);h.prev=new N.Buf16(h.w_size);h.lit_bufsize=1<<m+6;h.pending_buf_size=4*h.lit_bufsize;h.pending_buf=new N.Buf8(h.pending_buf_size);h.d_buf=h.lit_bufsize>>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-
  213. 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,
  214. 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||5<c||0>c)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,
  215. 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>>
  216. 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&
  217. 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,
  218. m.pending_buf,m.pending-p,p)),k(a),p=m.pending,m.pending===m.pending_buf_size)){y=1;break}y=m.gzindex<m.gzhead.name.length?m.gzhead.name.charCodeAt(m.gzindex++)&255:0;q(m,y)}while(0!==y);m.gzhead.hcrc&&m.pending>p&&(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===
  219. m.pending_buf_size)){y=1;break}y=m.gzindex<m.gzhead.comment.length?m.gzhead.comment.charCodeAt(m.gzindex++)&255:0;q(m,y)}while(0!==y);m.gzhead.hcrc&&m.pending>p&&(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===
  220. a.avail_in&&(c<<1)-(4<c?9:0)<=(b<<1)-(4<b?9:0)&&4!==c)return f(a,-5);if(666===m.status&&0!==a.avail_in)return f(a,-5);if(0!==a.avail_in||0!==m.lookahead||0!==c&&666!==m.status){b=2===m.strategy?I(m,c):3===m.strategy?E(m,c):B[m.level].func(m,c);if(3===b||4===b)m.status=666;if(1===b||3===b)return 0===a.avail_out&&(m.last_flush=-1),0;if(2===b&&(1===c?O._tr_align(m):5!==c&&(O._tr_stored_block(m,0,0,!1),3===c&&(e(m.head),0===m.lookahead&&(m.strstart=0,m.block_start=0,m.insert=0))),k(a),0===a.avail_out))return m.last_flush=
  221. -1,0}if(4!==c)return 0;if(0>=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);0<m.wrap&&(m.wrap=-m.wrap);return 0!==m.pending?0:1};b.deflateEnd=function(a){var c;if(!a||!a.state)return-2;c=a.state.status;if(42!==c&&69!==c&&73!==c&&91!==c&&103!==c&&113!==c&&666!==c)return f(a,-2);a.state=null;return 113===c?
  222. f(a,-3):0};b.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":28,"./adler32":30,"./crc32":32,"./messages":38,"./trees":39}],34:[function(a,c,b){c.exports=function(){this.os=this.xflags=this.time=this.text=0;this.extra=null;this.extra_len=0;this.comment=this.name="";this.hcrc=0;this.done=!1}},{}],35:[function(a,c,b){c.exports=function(a,c){var b,e,q,h,t,D,F,x,E,I,M,C,y,X,m,N,O,K,A,L,B,l,r,G;b=a.state;e=a.next_in;r=a.input;q=e+(a.avail_in-5);h=a.next_out;G=a.output;t=h-(c-a.avail_out);
  223. D=h+(a.avail_out-257);F=b.dmax;x=b.wsize;E=b.whave;I=b.wnext;M=b.window;C=b.hold;y=b.bits;X=b.lencode;m=b.distcode;N=(1<<b.lenbits)-1;O=(1<<b.distbits)-1;a:do b:for(15>y&&(C+=r[e++]<<y,y+=8,C+=r[e++]<<y,y+=8),K=X[C&N];;){A=K>>>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&&(C+=r[e++]<<y,y+=8),L+=C&(1<<A)-1,C>>>=A,y-=A;15>y&&(C+=r[e++]<<y,y+=8,C+=r[e++]<<y,y+=8);K=m[C&O];c:for(;;){A=K>>>24;C>>>=A;y-=A;A=K>>>16&255;if(A&16){K&=65535;A&=15;y<A&&(C+=r[e++]<<
  224. y,y+=8,y<A&&(C+=r[e++]<<y,y+=8));K+=C&(1<<A)-1;if(K>F){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<L){L-=A;do G[h++]=M[B++];while(--A);B=h-K;l=G}}else if(I<A){if(B+=x+I-A,A-=I,A<L){L-=A;do G[h++]=M[B++];while(--A);B=0;if(I<L){A=I;L-=A;do G[h++]=M[B++];while(--A);B=h-K;l=G}}}else if(B+=I-A,A<L){L-=A;do G[h++]=M[B++];while(--A);B=h-K;l=G}for(;2<L;)G[h++]=
  225. l[B++],G[h++]=l[B++],G[h++]=l[B++],L-=3;L&&(G[h++]=l[B++],1<L&&(G[h++]=l[B++]))}else{B=h-K;do G[h++]=G[B++],G[h++]=G[B++],G[h++]=G[B++],L-=3;while(2<L);L&&(G[h++]=G[B++],1<L&&(G[h++]=G[B++]))}}else if(0===(A&64)){K=m[(K&65535)+(C&(1<<A)-1)];continue c}else{a.msg="invalid distance code";b.mode=30;break a}break}}else if(0===(A&64)){K=X[(K&65535)+(C&(1<<A)-1)];continue b}else{A&32?b.mode=12:(a.msg="invalid literal/length code",b.mode=30);break a}break}while(e<q&&h<D);L=y>>3;e-=L;y-=L<<3;a.next_in=e;
  226. a.next_out=h;a.avail_in=e<q?5+(q-e):5-(e-q);a.avail_out=h<D?257+(D-h):257-(h-D);b.hold=C&(1<<y)-1;b.bits=y}},{}],36:[function(a,c,b){function e(a){return(a>>>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=
  227. 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||
  228. !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<c))return-2;null!==e.window&&e.wbits!==c&&(e.window=null);e.wrap=b;e.wbits=c;return n(a)}function h(a,c){var b;if(!a)return-2;b=new g;a.state=b;b.window=null;b=q(a,c);0!==b&&(a.state=null);return b}var t=a("../utils/common"),D=a("./adler32"),F=a("./crc32"),x=a("./inffast"),C=a("./inftrees"),E=!0,G,I;b.inflateReset=
  229. n;b.inflateReset2=q;b.inflateResetKeep=k;b.inflateInit=function(a){return h(a,15)};b.inflateInit2=h;b.inflate=function(a,c){var b,g,k,h,q,n,B,l,r,J,w,p,u,z,P=0,Q,S,R,V=new t.Buf8(4),T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!a||!a.state||!a.output||!a.input&&0!==a.avail_in)return-2;b=a.state;12===b.mode&&(b.mode=13);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;J=n;w=B;R=0;a:for(;;)switch(b.mode){case 1:if(0===b.wrap){b.mode=13;break}for(;16>
  230. r;){if(0===n)break a;n--;l+=g[h++]<<r;r+=8}if(b.wrap&2&&35615===l){b.check=0;V[0]=l&255;V[1]=l>>>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<<u;a.adler=b.check=1;b.mode=l&512?10:12;r=
  231. l=0;break;case 2:for(;16>r;){if(0===n)break a;n--;l+=g[h++]<<r;r+=8}b.flags=l;if(8!==(b.flags&255)){a.msg="unknown compression method";b.mode=30;break}if(b.flags&57344){a.msg="unknown header flags set";b.mode=30;break}b.head&&(b.head.text=l>>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++]<<r;r+=8}b.head&&(b.head.time=l);b.flags&512&&(V[0]=l&255,V[1]=l>>>8&255,V[2]=l>>>16&255,V[3]=l>>>24&255,b.check=F(b.check,V,
  232. 4,0));r=l=0;b.mode=4;case 4:for(;16>r;){if(0===n)break a;n--;l+=g[h++]<<r;r+=8}b.head&&(b.head.xflags=l&255,b.head.os=l>>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++]<<r;r+=8}b.length=l;b.head&&(b.head.extra_len=l);b.flags&512&&(V[0]=l&255,V[1]=l>>>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-
  233. 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&&p<n);b.flags&512&&(b.check=F(b.check,g,p,h));n-=p;h+=p;if(u)break a}else b.head&&(b.head.name=null);b.length=0;b.mode=8;case 8:if(b.flags&4096){if(0===n)break a;p=0;do u=g[h+
  234. p++],b.head&&u&&65536>b.length&&(b.head.comment+=String.fromCharCode(u));while(u&&p<n);b.flags&512&&(b.check=F(b.check,g,p,h));n-=p;h+=p;if(u)break a}else b.head&&(b.head.comment=null);b.mode=9;case 9:if(b.flags&512){for(;16>r;){if(0===n)break a;n--;l+=g[h++]<<r;r+=8}if(l!==(b.check&65535)){a.msg="header crc mismatch";b.mode=30;break}r=l=0}b.head&&(b.head.hcrc=b.flags>>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;r+=8}a.adler=b.check=
  235. e(l);r=l=0;b.mode=11;case 11:if(0===b.havedict)return a.next_out=q,a.avail_out=B,a.next_in=h,a.avail_in=n,b.hold=l,b.bits=r,2;a.adler=b.check=1;b.mode=12;case 12:if(5===c||6===c)break a;case 13:if(b.last){l>>>=r&7;r-=r&7;b.mode=27;break}for(;3>r;){if(0===n)break a;n--;l+=g[h++]<<r;r+=8}b.last=l&1;l>>>=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++]=
  236. 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++]<<r;r+=8}if((l&65535)!==(l>>>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=
  237. 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++]<<r;r+=8}b.nlen=(l&31)+257;l>>>=5;r-=5;b.ndist=(l&31)+1;l>>>=5;r-=5;b.ncode=(l&15)+4;l>>>=4;r-=4;if(286<b.nlen||30<b.ndist){a.msg="too many length or distance symbols";b.mode=30;break}b.have=0;b.mode=18;case 18:for(;b.have<b.ncode;){for(;3>r;){if(0===n)break a;n--;l+=g[h++]<<r;r+=8}b.lens[T[b.have++]]=l&7;l>>>=
  238. 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<b.nlen+b.ndist;){for(;;){P=b.lencode[l&(1<<b.lenbits)-1];p=P>>>24;P&=65535;if(p<=r)break;if(0===n)break a;n--;l+=g[h++]<<r;r+=8}if(16>P)l>>>=p,r-=p,b.lens[b.have++]=P;else{if(16===P){for(u=p+2;r<u;){if(0===n)break a;n--;l+=g[h++]<<r;r+=8}l>>>=p;r-=p;if(0===
  239. 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<u;){if(0===n)break a;n--;l+=g[h++]<<r;r+=8}l>>>=p;r-=p;u=0;p=3+(l&7);l>>>=3;r-=3}else{for(u=p+7;r<u;){if(0===n)break a;n--;l+=g[h++]<<r;r+=8}l>>>=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";
  240. 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;
  241. 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<<b.lenbits)-1];p=P>>>24;u=P>>>16&255;P&=65535;if(p<=r)break;if(0===n)break a;n--;l+=g[h++]<<r;r+=8}if(u&&0===(u&240)){z=p;Q=u;for(S=P;;){P=b.lencode[S+((l&(1<<z+Q)-1)>>z)];p=P>>>24;u=P>>>16&255;P&=65535;if(z+p<=r)break;if(0===n)break a;n--;l+=g[h++]<<r;r+=8}l>>>=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=
  242. 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<u;){if(0===n)break a;n--;l+=g[h++]<<r;r+=8}b.length+=l&(1<<b.extra)-1;l>>>=b.extra;r-=b.extra;b.back+=b.extra}b.was=b.length;b.mode=23;case 23:for(;;){P=b.distcode[l&(1<<b.distbits)-1];p=P>>>24;u=P>>>16&255;P&=65535;if(p<=r)break;if(0===n)break a;n--;l+=g[h++]<<r;r+=8}if(0===(u&240)){z=p;Q=u;for(S=P;;){P=b.distcode[S+((l&(1<<z+Q)-1)>>z)];p=P>>>24;u=P>>>16&255;P&=65535;if(z+
  243. p<=r)break;if(0===n)break a;n--;l+=g[h++]<<r;r+=8}l>>>=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<u;){if(0===n)break a;n--;l+=g[h++]<<r;r+=8}b.offset+=l&(1<<b.extra)-1;l>>>=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";
  244. 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;r+=8}w-=B;a.total_out+=w;b.total+=w;w&&(a.adler=b.check=b.flags?F(b.check,k,w,q-w):D(b.check,k,w,q-w));w=B;if((b.flags?l:e(l))!==b.check){a.msg="incorrect data check";
  245. b.mode=30;break}r=l=0}b.mode=28;case 28:if(b.wrap&&b.flags){for(;32>r;){if(0===n)break a;n--;l+=g[h++]<<r;r+=8}if(l!==(b.total&4294967295)){a.msg="incorrect length check";b.mode=30;break}r=l=0}b.mode=29;case 29:R=1;break a;case 30:R=-3;break a;case 31:return-4;default:return-2}a.next_out=q;a.avail_out=B;a.next_in=h;a.avail_in=n;b.hold=l;b.bits=r;if(b.wsize||w!==a.avail_out&&30>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.wbits,B.wnext=
  246. 0,B.whave=0,B.window=new t.Buf8(B.wsize)),q>=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<B.wsize&&(B.whave+=n)));J-=a.avail_in;w-=a.avail_out;a.total_in+=J;a.total_out+=w;b.total+=w;b.wrap&&w&&(a.adler=b.check=b.flags?F(b.check,k,w,a.next_out-w):D(b.check,k,w,a.next_out-w));a.data_type=
  247. b.bits+(b.last?64:0)+(12===b.mode?128:0)+(20===b.mode||15===b.mode?256:0);(0===J&&0===w||4===c)&&0===R&&(R=-5);return R};b.inflateEnd=function(a){if(!a||!a.state)return-2;var b=a.state;b.window&&(b.window=null);a.state=null;return 0};b.inflateGetHeader=function(a,b){var c;if(!a||!a.state)return-2;c=a.state;if(0===(c.wrap&2))return-2;c.head=b;b.done=!1;return 0};b.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":28,"./adler32":30,"./crc32":32,"./inffast":35,"./inftrees":37}],37:[function(a,
  248. c,b){var e=a("../utils/common"),g=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],k=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],n=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],q=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];c.exports=function(a,b,c,t,x,C,E,G){for(var I=G.bits,y=0,J=
  249. 0,m=0,N=0,O=0,K=0,A=0,L=0,B=0,l=0,r,Q,w=null,p=0,u,z=new e.Buf16(16),K=new e.Buf16(16),P=null,S=0,W,R,V,y=0;15>=y;y++)z[y]=0;for(J=0;J<t;J++)z[b[c+J]]++;O=I;for(N=15;1<=N&&0===z[N];N--);O>N&&(O=N);if(0===N)return x[C++]=20971520,x[C++]=20971520,G.bits=1,0;for(m=1;m<N&&0===z[m];m++);O<m&&(O=m);for(y=L=1;15>=y;y++)if(L<<=1,L-=z[y],0>L)return-1;if(0<L&&(0===a||1!==N))return-1;K[1]=0;for(y=1;15>y;y++)K[y+1]=K[y]+z[y];for(J=0;J<t;J++)0!==b[c+J]&&(E[K[b[c+J]]++]=J);0===a?(w=P=E,u=19):1===a?(w=g,p-=257,
  250. P=k,S-=257,u=256):(w=n,P=q,u=-1);J=l=0;y=m;I=C;K=O;A=0;Q=-1;B=1<<O;t=B-1;if(1===a&&852<B||2===a&&592<B)return 1;for(var T=0;;){T++;W=y-A;E[J]<u?(R=0,V=E[J]):E[J]>u?(R=P[S+E[J]],V=w[p+E[J]]):(R=96,V=0);L=1<<y-A;m=r=1<<K;do r-=L,x[I+(l>>A)+r]=W<<24|R<<16|V|0;while(0!==r);for(L=1<<y-1;l&L;)L>>=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<<K;K+A<N;){L-=z[K+A];if(0>=L)break;K++;L<<=1}B+=1<<K;if(1===a&&852<B||2===a&&592<B)return 1;
  251. Q=l&t;x[Q]=O<<24|K<<16|I-C|0}}0!==l&&(x[I+l]=y-A<<24|4194304);G.bits=O;return 0}},{"../utils/common":28}],38:[function(a,c,b){c.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],39:[function(a,c,b){function e(a){for(var b=a.length;0<=--b;)a[b]=0}function g(a,b,c,e,f){this.static_tree=a;this.extra_bits=b;this.extra_base=c;this.elems=e;this.max_length=f;this.has_stree=
  252. a&&a.length}function k(a,b){this.dyn_tree=a;this.max_code=0;this.stat_desc=b}function n(a,b){a.pending_buf[a.pending++]=b&255;a.pending_buf[a.pending++]=b>>>8&255}function q(a,b,c){a.bi_valid>16-c?(a.bi_buf|=b<<a.bi_valid&65535,n(a,a.bi_buf),a.bi_buf=b>>16-a.bi_valid,a.bi_valid+=c-16):(a.bi_buf|=b<<a.bi_valid&65535,a.bi_valid+=c)}function h(a,b,c){q(a,c[2*b],c[2*b+1])}function t(a,b){var c=0;do c|=a&1,a>>>=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]=
  253. 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){8<a.bi_valid?n(a,a.bi_buf):0<a.bi_valid&&(a.pending_buf[a.pending++]=a.bi_buf);a.bi_buf=0;a.bi_valid=0}function E(a,b,c,e){var f=2*b,g=2*c;return a[f]<a[g]||a[f]===a[g]&&e[b]<=e[c]}function G(a,b,c){for(var e=a.heap[c],f=c<<
  254. 1;f<=a.heap_len;){f<a.heap_len&&E(b,a.heap[f+1],a.heap[f],a.depth)&&f++;if(E(b,e,a.heap[f],a.depth))break;a.heap[c]=a.heap[f];c=f;f<<=1}a.heap[c]=e}function I(a,b,c){var e,f,g=0,k,l;if(0!==a.last_lit){do e=a.pending_buf[a.d_buf+2*g]<<8|a.pending_buf[a.d_buf+2*g+1],f=a.pending_buf[a.l_buf+g],g++,0===e?h(a,f,b):(k=w[f],h(a,k+256+1,b),l=K[k],0!==l&&(f-=p[k],q(a,f,l)),e--,k=256>e?S[e]:S[256+(e>>>7)],h(a,k,c),l=A[k],0!==l&&(e-=u[k],q(a,e,l)));while(g<a.last_lit)}h(a,256,b)}function J(a,b){var c=b.dyn_tree,
  255. e=b.stat_desc.static_tree,f=b.stat_desc.has_stree,g=b.stat_desc.elems,h,k=-1,l;a.heap_len=0;a.heap_max=573;for(h=0;h<g;h++)0!==c[2*h]?(a.heap[++a.heap_len]=k=h,a.depth[h]=0):c[2*h+1]=0;for(;2>a.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]>=
  256. 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+=
  257. 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(0<w);for(g=r;0!==g;g--)for(f=a.bl_count[g];0!==f;)m=a.heap[--e],m>l||(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<l&&g===h||(k<m?a.bl_tree[2*g]+=k:0!==g?(g!==f&&a.bl_tree[2*g]++,a.bl_tree[32]++):
  258. 10>=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<m&&g===k)){if(l<n){do h(a,g,a.bl_tree);while(0!==--l)}else 0!==g?(g!==f&&(h(a,g,a.bl_tree),l--),h(a,16,a.bl_tree),q(a,l-3,2)):10>=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++,
  259. 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],
  260. 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<<K[e];b++)w[c++]=e;w[c-1]=e;for(e=c=0;16>e;e++)for(u[e]=c,b=0;b<1<<A[e];b++)S[c++]=e;for(c>>=7;30>e;e++)for(u[e]=c<<7,b=0;b<1<<A[e]-7;b++)S[256+c++]=e;for(b=0;15>=b;b++)f[b]=0;for(b=0;143>=b;)l[2*b+1]=8,b++,f[8]++;for(;255>=
  261. 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<a.level){2===a.strm.data_type&&(a.strm.data_type=m(a));J(a,a.l_desc);J(a,a.d_desc);y(a,a.dyn_ltree,
  262. a.l_desc.max_code);y(a,a.dyn_dtree,a.d_desc.max_code);J(a,a.bl_desc);for(h=18;3<=h&&0===a.bl_tree[2*B[h]+1];h--);a.opt_len+=3*(h+1)+14;f=a.opt_len+3+7>>>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<h;f++)q(a,a.bl_tree[2*B[f]+1],3);Q(a,a.dyn_ltree,b-1);Q(a,a.dyn_dtree,c-1);I(a,a.dyn_ltree,a.dyn_dtree)}C(a);
  263. e&&x(a)};b._tr_tally=function(a,b,c){a.pending_buf[a.d_buf+2*a.last_lit]=b>>>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>>=
  264. 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"));
  265. 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='<div style="margin-left:5%"><h3>Submission Sent</h3></div>';document.getElementById("popupBody").innerHTML+='<br><div id="refId" style="margin-left:5%"></div><br><br>';
  266. document.getElementById("popupBody").innerHTML+='<input style="margin-left:0%" class="btn-lg btn-block btn-primary center-block closeTrigger" type="button" value="Close">';document.getElementById("popupBody").innerHTML+="</input>";$("#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);
  267. 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)};
  268. Q.prototype.generateAesPassword=function(){aesPw="";for(i=0;i<AES_PASSWORD_LEN;i++)aesPw+=this.randPrintableChar();return aesPw};Q.prototype.aesEncrypt=function(d,a){return ga.AES.encrypt(a,d)};Q.prototype.rsaEncrypt=function(d,a){var c=qa.getPublicKey(d);return qa.encrypt(a,c)};checksumObj=new Q;checksumObj.setMessage(function(){var d=document.getElementById("cf"),a={};for(j=0;j<d.elements.length;j++){var c=d.elements[j];if("button"!=c.type&&"reset"!=c.type)if("message"===c.name)try{var b=new oa("utf-8"),
  269. e=b.encode(c.value),g=new JSZip;g.file("",e,{binary:!0});var k=g.generate({type:"base64",compression:"DEFLATE",compressionOptions:{level:6}});a.refId=getRefId(!1);a[c.name]=k;var n=$("#popupBanner").text(),q=b.encode(n),h=new JSZip;h.file("",q,{binary:!0});var t=h.generate({type:"base64",compression:"DEFLATE",compressionOptions:{level:6}});a.bannerText=t}catch(C){a[c.name]=c.value}else{for(i=0;i<gPlaceholderArray.length;i++)gPlaceholderArray[i]==c.value&&(c.value="");a[c.name]=c.value}}return a}());
  270. checksumObj.sendMessage()}var DESKTOP_LIMIT_MODAL_FADE_EFFECT=!1,MOBILE_REMOVE_ALL_MODAL_EFFECTS=!1;
  271. function confirm_submission(){var e=!0,t="",E=!0,I=!0,e=document.getElementById("message").value,E=document.getElementById("email").value,I=new RegExp(gEmailRegex),E=""!=E&&E!=gPlaceholderEmail&&I.test(E),I=""!=e&&e!=gPlaceholderMessage,e=E&&I;0==E&&0==I?t=gErrorMissingMsgAndEmail:0==E?t=gErrorMissingEmailField:0==I&&(t=gErrorMissingMsgField);if(1==e)for(truncateFieldBytes("message",MAX_MESSAGE_SIZE_BYTES)>MAX_MESSAGE_SIZE_BYTES&&(t=t+gErrorMsgLen+"\n",e=!1),E=[["email",gMaxEmailSizeChars,gPlaceholderEmail,
  272. gErrorEmailLen],["name",gMaxNameSizeChars,gPlaceholderName,gErrorNameLen],["phone_cc",gMaxPhoneCcSizeChars,gPlaceholderPhoneCC,gErrorPhoneCcLen],["phone",gMaxPhoneSizeChars,gPlaceholderPhoneNum,gErrorPhoneLen],["cellcc",gMaxCellCcSizeChars,gPlaceholderCellCC,gErrorCellCcLen],["cellnumber",gMaxCellSizeChars,gPlaceholderCellNum,gErrorCellLen]],I=0;I<E.length;I++){var C=E[I][0],J=E[I][1],fa=E[I][2],S=E[I][3],W=document.getElementById(C);""!=W.value&&W.value!=fa&&truncateFieldChars(C,J)>J&&(t=t+S+"\n",
  273. 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=[];
  274. function showModal(e){function t(){modalActionRunning=!1;if(0<modalActionQueue.length){var e=modalActionQueue.shift();e.action($("#"+e.id))}}modalActionRunning?modalActionQueue.push({id:e.attr("id"),action:showModal}):(modalActionRunning=!0,e.one("shown.bs.modal",t),e.modal("show"))}
  275. function hideModal(e){function t(){modalActionRunning=!1;if(0<modalActionQueue.length){var e=modalActionQueue.shift();e.action($("#"+e.id))}}modalActionRunning?modalActionQueue.push({id:e.attr("id"),action:hideModal}):(modalActionRunning=!0,e.one("hidden.bs.modal",t),e.modal("hide"))}$("#popupContactModal, #popupReportModal, #popupLandingModal").on("show.bs.modal",function(){gVersionIE&&9>gVersionIE&&($("html").css("overflowY","hidden"),$("html").css("overflowX","hidden"))});
  276. $("#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"))});
  277. $(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()});
  278. $(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()});
  279. $(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"))});
  280. function contactSetup(){var e="";""!=TEST_BANNER_MESSAGE&&(e=TEST_BANNER_MESSAGE+"<br>");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}
  281. 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;E<e.length;E++)var I=fixedCharCodeAt(e,E),t=t+bytesForUtf8Char(I);return t}function findUtf8ByteLimit(e,t){for(var E=0,I=0,C=0;C<e.length;C++){var J=fixedCharCodeAt(e,C),E=E+bytesForUtf8Char(J);if(E<=t)I++;else break}return I}
  282. function getEncodedField(e){e=document.getElementById(e);e=JSON.stringify(e.value);return e.substr(1,e.length-2)}function setEncodedField(e,t){document.getElementById(e).value=JSON.parse('"'+t+'"')}function getFieldBytes(e){e=getEncodedField(e);return countUtf8Bytes(e)}function truncateEncoding(e,t){for(var E=findUtf8ByteLimit(e,t),E=e.substr(0,E),I=0,C=E.length-1;0<=C;){if("\\"==E[C])I++;else break;C--}1==I%2&&(E=E.substr(0,E.length-1));return E}
  283. function truncateFieldBytes(e,t){var E=getEncodedField(e),I=countUtf8Bytes(E);I>t&&(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<t}function checkBytes(e,t){return getFieldBytes((e.target||e.srcElement||e.originalTarget).id)<t}
  284. function limitInput(e,t,E){t(e,E)||e.preventDefault();return!0}function keyChecker(e,t,E){switch(e.keyCode||e.which){case 38:case 40:case 37:case 39:case 8:case 46:case 9:return!0;default:return limitInput(e,t,E)}}
  285. function setFieldHooks(){$("#message").keydown(function(e){return keyChecker(e,checkBytes,MAX_MESSAGE_SIZE_BYTES)});$("#message").on("input propertychange",function(e){e=document.getElementById("messageErr");truncateFieldBytes("message",MAX_MESSAGE_SIZE_BYTES)>=MAX_MESSAGE_SIZE_BYTES?e.innerHTML='<span style="color:red">'+gHtmlErrorMaxMsgSize+"</span>":e.innerHTML=""});$("#email").keydown(function(e){return keyChecker(e,checkChars,gMaxEmailSizeChars)});$("#email").on("input propertychange",function(e){truncateFieldChars("email",
  286. 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",
  287. 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);
  288. 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('<style type="text/css">'+newModalOpenClass+"</style>");
  289. 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.<br />Attention:  If you are a citizen of the Russian Federation, please do not contact us via this site.",TEST_BANNER_MESSAGE="";

Replies to Cia verification rss

Title Name Language When
Re: Cia verification Chunky Gibbon javascript 3 Years ago.