tweb/public/ec160d3df7195c7cdf44.worker.js
Eduard Kuzmenko 04d5f9f3fb Pre-lags fix
2020-04-14 18:46:31 +03:00

7 lines
80 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=3)}([function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{f(n.next(t))}catch(t){o(t)}}function a(t){try{f(n.throw(t))}catch(t){o(t)}}function f(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}f((n=n.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(r(4)),s=i(r(5)),a=r(6),f=r(2),h=i(r(7)),u=r(1);function c(t){var e=a.bigInt2str(t,16);return u.bytesFromHex(e)}function l(t){let e;e=t instanceof ArrayBuffer?new Uint8Array(t):t;var r,n=e.length,i=[];for(r=0;r<n;r++)i[r>>>2]|=e[r]<<24-r%4*8;return new Uint32Array(i)}function d(t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var e,r=t.length,n=[];for(e=0;e<r;e++)n[e>>>2]|=t[e]<<24-e%4*8;return new h.default.lib.WordArray.init(n,r)}function p(t){var e,r,n,i,o,s,f=Math.ceil(64/a.bpe)+1,h=0,l=new Array(f),d=new Array(f),p=new Array(f),g=new Array(f),v=new Array(f),y=new Array(f),m=new Array(f);for(e=0;e<3;e++){for(r=17+(15&u.nextRandomInt(128)),a.copyInt_(y,u.nextRandomInt(1e9)+1),a.copy_(m,y),i=1<<e+18,n=1;n<i;n++){for(++h,a.copy_(l,y),a.copy_(d,y),a.copyInt_(p,r);!a.isZero(d);)1&d[0]&&(a.add_(p,l),a.greater(p,t)&&a.sub_(p,t)),a.add_(l,l),a.greater(l,t)&&a.sub_(l,t),a.rightShift_(d,1);if(a.copy_(y,p),a.greater(y,m)?(a.copy_(v,y),a.sub_(v,m)):(a.copy_(v,m),a.sub_(v,y)),a.eGCD_(v,t,g,l,d),!a.equalsInt(g,1))break;0==(n&n-1)&&a.copy_(m,y)}if(a.greater(g,a.one))break}return a.divide_(t,g,y,m),a.greater(g,y)?(o=y,s=g):(o=g,s=y),[c(o),c(s),h]}e.bytesFromLeemonBigInt=c,e.bytesToWordss=l,e.bytesToWords=d,e.sha1HashSync=function(t){const e=[];let r=o.default(String.fromCharCode.apply(null,t instanceof Uint8Array?[...t]:[...new Uint8Array(t)]));for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t));return new Uint8Array(e)},e.sha256HashSync=function(t){let e=l(t),r=s.default(e);for(var n=[],i=0;i<4*r.length;i++)n.push(r[i>>>2]>>>24-i%4*8&255);return n},e.aesEncryptSync=function(t,e,r){t=u.addPadding(t);let n=h.default.mode.IGE,i=h.default.AES.encrypt(d(t),d(e),{iv:d(r),padding:h.default.pad.NoPadding,mode:n}).ciphertext;return u.bytesFromWords(i)},e.aesDecryptSync=function(t,e,r){let n=h.default.mode.IGE;var i=h.default.AES.decrypt({ciphertext:d(t)},d(e),{iv:d(r),padding:h.default.pad.NoPadding,mode:n});return u.bytesFromWords(i)},e.rsaEncrypt=function(t,e){console.log(u.dT(),"RSA encrypt start",t,e),e=u.addPadding(e,255);var r=a.str2bigInt(t.modulus,16),n=a.str2bigInt(t.exponent,16),i=a.str2bigInt(u.bytesToHex(e),16),o=a.powMod(i,n,r),s=u.bytesFromHex(a.bigInt2str(o,16));return console.log(u.dT(),"RSA encrypt finish"),s},e.hash_pbkdf2=function(t,e,r){return n(this,void 0,void 0,(function*(){let n="undefined"!=typeof window&&"crypto"in window?window.crypto.subtle:self.crypto.subtle,i=yield n.importKey("raw",t,{name:"PBKDF2"},!1,["deriveKey","deriveBits"]);return yield n.deriveKey({name:"PBKDF2",salt:e,iterations:r,hash:{name:"SHA-512"}},i,{name:"AES-CTR",length:256},!1,["encrypt","decrypt"]),n.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:"SHA-512"}},i,512)}))},e.pqPrimeFactorization=function(t){var e=new f.BigInteger(t),r=!1;console.log(u.dT(),"PQ start",t,e.toString(16),e.bitLength());try{console.time("PQ leemon"),r=p(a.str2bigInt(e.toString(16),16,Math.ceil(64/a.bpe)+1)),console.timeEnd("PQ leemon")}catch(t){console.error("Pq leemon Exception",t)}return console.log(u.dT(),"PQ finish"),r},e.pqPrimeLeemon=p,e.bytesModPow=function(t,e,r){try{var n=a.str2bigInt(u.bytesToHex(t),16),i=a.str2bigInt(u.bytesToHex(e),16),o=a.str2bigInt(u.bytesToHex(r),16),s=a.powMod(n,i,o);return u.bytesFromHex(a.bigInt2str(s,16))}catch(t){console.error("mod pow error",t)}return u.bytesFromBigInt(new f.BigInteger(t).modPow(new f.BigInteger(e),new f.BigInteger(r)),256)}},function(t,e,r){"use strict";
/*!
* Webogram v0.7.0 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE
*/var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(2),o=n(r(8));var s=(new Date).getTime();function a(t){return new i.BigInteger(t.toString(16),16)}function f(t){return new i.BigInteger(t,10)}function h(t){return t<26?t+65:t<52?t+71:t<62?t-4:62===t?43:63===t?47:65}function u(t,e){for(var r=atob(t),n=r.length,i=Math.ceil(n/1024),o=new Array(i),s=0;s<i;++s){for(var a=1024*s,f=Math.min(a+1024,n),h=new Array(f-a),u=a,l=0;u<f;++l,++u)h[l]=r[u].charCodeAt(0);o[s]=new Uint8Array(h)}return c(o,e)}function c(t,e=""){var r,n=l(e);try{r=new Blob(t,{type:n})}catch(e){var i=new BlobBuilder;t.forEach((function(t){i.append(t)})),r=i.getBlob(n)}return r}function l(t){return-1===["image/jpeg","image/png","image/gif","image/webp","image/bmp","video/mp4","video/webm","video/quicktime","audio/ogg","audio/mpeg","audio/mp4"].indexOf(t)?"application/octet-stream":t}function d(t){return new Uint8Array(t).buffer}function p(t){return void 0!==t.buffer?t:new Uint8Array(t)}function g(t,e){var r=t.byteLength||t.length,n=e.byteLength||e.length,i=new Uint8Array(r+n);return i.set(t instanceof ArrayBuffer?new Uint8Array(t):t,0),i.set(e instanceof ArrayBuffer?new Uint8Array(e):e,r),i.buffer}function v(t){var e=f(t).divideAndRemainder(a(4294967296));return[e[0].intValue(),e[1].intValue()]}function y(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++)n.push(e[i>>>2]>>>24-i%4*8&255);return n}e.dT=function(){return"["+(((new Date).getTime()-s)/1e3).toFixed(3)+"]"},e.bigint=a,e.bigStringInt=f,e.bytesToHex=function(t){t=t||[];for(var e=[],r=0;r<t.length;r++)e.push((t[r]<16?"0":"")+(t[r]||0).toString(16));return e.join("")},e.bytesFromHex=function(t){var e,r=t.length,n=0,i=[];for(t.length%2&&(i.push(parseInt(t.charAt(0),16)),n++),e=n;e<r;e+=2)i.push(parseInt(t.substr(e,2),16));return i},e.bytesToBase64=function(t){for(var e,r="",n=t.length,i=0,o=0;o<n;o++)e=o%3,i|=t[o]<<(16>>>e&24),2!==e&&n-o!=1||(r+=String.fromCharCode(h(i>>>18&63),h(i>>>12&63),h(i>>>6&63),h(63&i)),i=0);return r.replace(/A(?=A$|$)/g,"=")},e.uint6ToBase64=h,e.base64ToBlob=u,e.dataUrlToBlob=function(t){var e=t.split(",");return u(e[1],e[0].split(":")[1].split(";")[0])},e.blobConstruct=c,e.blobSafeMimeType=l,e.bytesCmp=function(t,e){var r=t.length;if(r!=e.length)return!1;for(var n=0;n<r;n++)if(t[n]!=e[n])return!1;return!0},e.bytesXor=function(t,e){for(var r=t.length,n=[],i=0;i<r;++i)n[i]=t[i]^e[i];return n},e.bytesFromBigInt=function(t,e){var r=t.toByteArray();if(e&&r.length<e){for(var n=[],i=0,o=e-r.length;i<o;i++)n[i]=0;r=r instanceof ArrayBuffer?g(n,r):n.concat(r)}else for(;!r[0]&&(!e||r.length>e);)r=r.slice(1);return r},e.bytesToArrayBuffer=d,e.convertToArrayBuffer=function(t){return t instanceof ArrayBuffer?t:void 0!==t.buffer&&t.buffer.byteLength==t.length*t.BYTES_PER_ELEMENT?t.buffer:d(t)},e.convertToUint8Array=p,e.convertToByteArray=function(t){if(Array.isArray(t))return t;for(var e=[],r=0,n=(t=p(t)).length;r<n;r++)e.push(t[r]);return e},e.bytesFromArrayBuffer=function(t){for(var e=t.byteLength,r=new Uint8Array(t),n=[],i=0;i<e;++i)n[i]=r[i];return n},e.bufferConcat=g,e.bufferConcats=function(...t){let e=0;t.forEach(t=>e+=t.byteLength||t.length);var r=new Uint8Array(e);let n=0;return t.forEach(t=>{r.set(t instanceof ArrayBuffer?new Uint8Array(t):t,n),n+=t.byteLength||t.length}),r},e.longToInts=v,e.bytesFromWords=y,e.longToBytes=function(t){return y({words:v(t),sigBytes:8}).reverse()},e.longFromInts=function(t,e){return a(t).shiftLeft(32).add(a(e)).toString(10)},e.intToUint=function(t){return"string"==typeof t&&(t=parseInt(t)),t<0&&(t+=4294967296),t},e.uintToInt=function(t){return t>2147483647&&(t-=4294967296),t},e.addPadding=function(t,e=16,r,n=!1,o=!1){let s=e-(t.byteLength||t.length)%e;if(s>0&&(s<e||n)){let e=new Array(s);if(r)for(let t=0;t<s;t++)e[t]=0;else(new i.SecureRandom).nextBytes(e);if(t instanceof ArrayBuffer)t=o?g(e,t):g(t,e);else if(t instanceof Uint8Array){let r=new Uint8Array(t.length+e.length);o?(r.set(e),r.set(t,e.length)):(r.set(t),r.set(e,t.length)),t=r}else t=o?e.concat(t):t.concat(e)}return t},e.gzipUncompress=function(t,e){return o.default.inflate(t,e?{to:"string"}:void 0)},e.nextRandomInt=function(t){return Math.floor(Math.random()*t)}},function(t,e,r){(function(){var e;function r(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function n(){return new r(null)}var i="undefined"!=typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(r.prototype.am=function(t,e,r,n,i,o){for(var s=32767&e,a=e>>15;--o>=0;){var f=32767&this[t],h=this[t++]>>15,u=a*f+h*s;i=((f=s*f+((32767&u)<<15)+r[n]+(1073741823&i))>>>30)+(u>>>15)+a*h+(i>>>30),r[n++]=1073741823&f}return i},e=30):i&&"Netscape"!=navigator.appName?(r.prototype.am=function(t,e,r,n,i,o){for(;--o>=0;){var s=e*this[t++]+r[n]+i;i=Math.floor(s/67108864),r[n++]=67108863&s}return i},e=26):(r.prototype.am=function(t,e,r,n,i,o){for(var s=16383&e,a=e>>14;--o>=0;){var f=16383&this[t],h=this[t++]>>14,u=a*f+h*s;i=((f=s*f+((16383&u)<<14)+r[n]+i)>>28)+(u>>14)+a*h,r[n++]=268435455&f}return i},e=28),r.prototype.DB=e,r.prototype.DM=(1<<e)-1,r.prototype.DV=1<<e;r.prototype.FV=Math.pow(2,52),r.prototype.F1=52-e,r.prototype.F2=2*e-52;var o,s,a=new Array;for(o="0".charCodeAt(0),s=0;s<=9;++s)a[o++]=s;for(o="a".charCodeAt(0),s=10;s<36;++s)a[o++]=s;for(o="A".charCodeAt(0),s=10;s<36;++s)a[o++]=s;function f(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function h(t,e){var r=a[t.charCodeAt(e)];return null==r?-1:r}function u(t){var e=n();return e.fromInt(t),e}function c(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function l(t){this.m=t}function d(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function p(t,e){return t&e}function g(t,e){return t|e}function v(t,e){return t^e}function y(t,e){return t&~e}function m(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function b(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function w(){}function _(t){return t}function k(t){this.r2=n(),this.q3=n(),r.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}l.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},l.prototype.revert=function(t){return t},l.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},l.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},l.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},d.prototype.convert=function(t){var e=n();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(r.ZERO)>0&&this.m.subTo(e,e),e},d.prototype.revert=function(t){var e=n();return t.copyTo(e),this.reduce(e),e},d.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},d.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},d.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},r.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},r.prototype.fromString=function(t,e){var n;if(16==e)n=4;else if(8==e)n=3;else if(256==e)n=8;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)return void this.fromRadix(t,e);n=2}this.t=0,this.s=0;for(var i=t.length,o=!1,s=0;--i>=0;){var a=8==n?255&t[i]:h(t,i);a<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==s?this[this.t++]=a:s+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,(s+=n)>=this.DB&&(s-=this.DB))}8==n&&0!=(128&t[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},r.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},r.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},r.prototype.lShiftTo=function(t,e){var r,n=t%this.DB,i=this.DB-n,o=(1<<i)-1,s=Math.floor(t/this.DB),a=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)e[r+s+1]=this[r]>>i|a,a=(this[r]&o)<<n;for(r=s-1;r>=0;--r)e[r]=0;e[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()},r.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,o=(1<<n)-1;e[0]=this[r]>>n;for(var s=r+1;s<this.t;++s)e[s-r-1]|=(this[s]&o)<<i,e[s-r]=this[s]>>n;n>0&&(e[this.t-r-1]|=(this.s&o)<<i),e.t=this.t-r,e.clamp()}},r.prototype.subTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},r.prototype.multiplyTo=function(t,e){var n=this.abs(),i=t.abs(),o=n.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o<i.t;++o)e[o+n.t]=n.am(0,i[o],e,o,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&r.ZERO.subTo(e,e)},r.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},r.prototype.divRemTo=function(t,e,i){var o=t.abs();if(!(o.t<=0)){var s=this.abs();if(s.t<o.t)return null!=e&&e.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=n());var a=n(),f=this.s,h=t.s,u=this.DB-c(o[o.t-1]);u>0?(o.lShiftTo(u,a),s.lShiftTo(u,i)):(o.copyTo(a),s.copyTo(i));var l=a.t,d=a[l-1];if(0!=d){var p=d*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0),g=this.FV/p,v=(1<<this.F1)/p,y=1<<this.F2,m=i.t,b=m-l,w=null==e?n():e;for(a.dlShiftTo(b,w),i.compareTo(w)>=0&&(i[i.t++]=1,i.subTo(w,i)),r.ONE.dlShiftTo(l,w),w.subTo(a,a);a.t<l;)a[a.t++]=0;for(;--b>=0;){var _=i[--m]==d?this.DM:Math.floor(i[m]*g+(i[m-1]+y)*v);if((i[m]+=a.am(0,_,i,b,0,l))<_)for(a.dlShiftTo(b,w),i.subTo(w,i);i[m]<--_;)i.subTo(w,i)}null!=e&&(i.drShiftTo(l,e),f!=h&&r.ZERO.subTo(e,e)),i.t=l,i.clamp(),u>0&&i.rShiftTo(u,i),f<0&&r.ZERO.subTo(i,i)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},r.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},r.prototype.exp=function(t,e){if(t>4294967295||t<1)return r.ONE;var i=n(),o=n(),s=e.convert(this),a=c(t)-1;for(s.copyTo(i);--a>=0;)if(e.sqrTo(i,o),(t&1<<a)>0)e.mulTo(o,s,i);else{var f=i;i=o,o=f}return e.revert(i)},r.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var r,n=(1<<e)-1,i=!1,o="",s=this.t,a=this.DB-s*this.DB%e;if(s-- >0)for(a<this.DB&&(r=this[s]>>a)>0&&(i=!0,o=f(r));s>=0;)a<e?(r=(this[s]&(1<<a)-1)<<e-a,r|=this[--s]>>(a+=this.DB-e)):(r=this[s]>>(a-=e)&n,a<=0&&(a+=this.DB,--s)),r>0&&(i=!0),i&&(o+=f(r));return i?o:"0"},r.prototype.negate=function(){var t=n();return r.ZERO.subTo(this,t),t},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+c(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(t){var e=n();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(r.ZERO)>0&&t.subTo(e,e),e},r.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new l(e):new d(e),this.exp(t,r)},r.ZERO=u(0),r.ONE=u(1),w.prototype.convert=_,w.prototype.revert=_,w.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},w.prototype.sqrTo=function(t,e){t.squareTo(e)},k.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=n();return t.copyTo(e),this.reduce(e),e},k.prototype.revert=function(t){return t},k.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},k.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},k.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var S,T,B,x=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],A=(1<<26)/x[x.length-1];function D(){var t;t=(new Date).getTime(),T[B++]^=255&t,T[B++]^=t>>8&255,T[B++]^=t>>16&255,T[B++]^=t>>24&255,B>=z&&(B-=z)}if(r.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},r.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=u(r),o=n(),s=n(),a="";for(this.divRemTo(i,o,s);o.signum()>0;)a=(r+s.intValue()).toString(t).substr(1)+a,o.divRemTo(i,o,s);return s.intValue().toString(t)+a},r.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var n=this.chunkSize(e),i=Math.pow(e,n),o=!1,s=0,a=0,f=0;f<t.length;++f){var u=h(t,f);u<0?"-"==t.charAt(f)&&0==this.signum()&&(o=!0):(a=e*a+u,++s>=n&&(this.dMultiply(i),this.dAddOffset(a,0),s=0,a=0))}s>0&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(a,0)),o&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(t,e,n){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),g,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(r.ONE.shiftLeft(t-1),this);else{var i=new Array,o=7&t;i.length=1+(t>>3),e.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},r.prototype.bitwiseTo=function(t,e,r){var n,i,o=Math.min(t.t,this.t);for(n=0;n<o;++n)r[n]=e(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=o;n<this.t;++n)r[n]=e(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<t.t;++n)r[n]=e(i,t[n]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},r.prototype.changeBit=function(t,e){var n=r.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n},r.prototype.addTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]+t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n+=t[r],e[r++]=n&this.DM,n>>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[r++]=n:n<-1&&(e[r++]=this.DV+n),e.t=r,e.clamp()},r.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},r.prototype.multiplyLowerTo=function(t,e,r){var n,i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},r.prototype.multiplyUpperTo=function(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)r[this.t+n-e]=this.am(e-n,t[n],r,0,0,this.t+n-e);r.clamp(),r.drShiftTo(1,r)},r.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r},r.prototype.millerRabin=function(t){var e=this.subtract(r.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var o=e.shiftRight(i);(t=t+1>>1)>x.length&&(t=x.length);for(var s=n(),a=0;a<t;++a){s.fromInt(x[Math.floor(Math.random()*x.length)]);var f=s.modPow(o,this);if(0!=f.compareTo(r.ONE)&&0!=f.compareTo(e)){for(var h=1;h++<i&&0!=f.compareTo(e);)if(0==(f=f.modPowInt(2,this)).compareTo(r.ONE))return!1;if(0!=f.compareTo(e))return!1}}return!0},r.prototype.clone=function(){var t=n();return this.copyTo(t),t},r.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var r,n=this.DB-t*this.DB%8,i=0;if(t-- >0)for(n<this.DB&&(r=this[t]>>n)!=(this.s&this.DM)>>n&&(e[i++]=r|this.s<<this.DB-n);t>=0;)n<8?(r=(this[t]&(1<<n)-1)<<8-n,r|=this[--t]>>(n+=this.DB-8)):(r=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&r)&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(e[i++]=r);return e},r.prototype.equals=function(t){return 0==this.compareTo(t)},r.prototype.min=function(t){return this.compareTo(t)<0?this:t},r.prototype.max=function(t){return this.compareTo(t)>0?this:t},r.prototype.and=function(t){var e=n();return this.bitwiseTo(t,p,e),e},r.prototype.or=function(t){var e=n();return this.bitwiseTo(t,g,e),e},r.prototype.xor=function(t){var e=n();return this.bitwiseTo(t,v,e),e},r.prototype.andNot=function(t){var e=n();return this.bitwiseTo(t,y,e),e},r.prototype.not=function(){for(var t=n(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},r.prototype.shiftLeft=function(t){var e=n();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},r.prototype.shiftRight=function(t){var e=n();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},r.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+m(this[t]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=b(this[r]^e);return t},r.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},r.prototype.setBit=function(t){return this.changeBit(t,g)},r.prototype.clearBit=function(t){return this.changeBit(t,y)},r.prototype.flipBit=function(t){return this.changeBit(t,v)},r.prototype.add=function(t){var e=n();return this.addTo(t,e),e},r.prototype.subtract=function(t){var e=n();return this.subTo(t,e),e},r.prototype.multiply=function(t){var e=n();return this.multiplyTo(t,e),e},r.prototype.divide=function(t){var e=n();return this.divRemTo(t,e,null),e},r.prototype.remainder=function(t){var e=n();return this.divRemTo(t,null,e),e},r.prototype.divideAndRemainder=function(t){var e=n(),r=n();return this.divRemTo(t,e,r),new Array(e,r)},r.prototype.modPow=function(t,e){var r,i,o=t.bitLength(),s=u(1);if(o<=0)return s;r=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new l(e):e.isEven()?new k(e):new d(e);var a=new Array,f=3,h=r-1,p=(1<<r)-1;if(a[1]=i.convert(this),r>1){var g=n();for(i.sqrTo(a[1],g);f<=p;)a[f]=n(),i.mulTo(g,a[f-2],a[f]),f+=2}var v,y,m=t.t-1,b=!0,w=n();for(o=c(t[m])-1;m>=0;){for(o>=h?v=t[m]>>o-h&p:(v=(t[m]&(1<<o+1)-1)<<h-o,m>0&&(v|=t[m-1]>>this.DB+o-h)),f=r;0==(1&v);)v>>=1,--f;if((o-=f)<0&&(o+=this.DB,--m),b)a[v].copyTo(s),b=!1;else{for(;f>1;)i.sqrTo(s,w),i.sqrTo(w,s),f-=2;f>0?i.sqrTo(s,w):(y=s,s=w,w=y),i.mulTo(w,a[v],s)}for(;m>=0&&0==(t[m]&1<<o);)i.sqrTo(s,w),y=s,s=w,w=y,--o<0&&(o=this.DB-1,--m)}return i.revert(s)},r.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return r.ZERO;for(var n=t.clone(),i=this.clone(),o=u(1),s=u(0),a=u(0),f=u(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),e?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(t,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),e?(a.isEven()&&f.isEven()||(a.addTo(this,a),f.subTo(t,f)),a.rShiftTo(1,a)):f.isEven()||f.subTo(t,f),f.rShiftTo(1,f);n.compareTo(i)>=0?(n.subTo(i,n),e&&o.subTo(a,o),s.subTo(f,s)):(i.subTo(n,i),e&&a.subTo(o,a),f.subTo(s,f))}return 0!=i.compareTo(r.ONE)?r.ZERO:f.compareTo(t)>=0?f.subtract(t):f.signum()<0?(f.addTo(t,f),f.signum()<0?f.add(t):f):f},r.prototype.pow=function(t){return this.exp(t,new w)},r.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var n=e;e=r,r=n}var i=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},r.prototype.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=x[x.length-1]){for(e=0;e<x.length;++e)if(r[0]==x[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<x.length;){for(var n=x[e],i=e+1;i<x.length&&n<A;)n*=x[i++];for(n=r.modInt(n);e<i;)if(n%x[e++]==0)return!1}return r.millerRabin(t)},r.prototype.square=function(){var t=n();return this.squareTo(t),t},r.prototype.Barrett=k,null==T){var E;if(T=new Array,B=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var M=new Uint8Array(32);for(window.crypto.getRandomValues(M),E=0;E<32;++E)T[B++]=M[E]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var C=window.crypto.random(32);for(E=0;E<C.length;++E)T[B++]=255&C.charCodeAt(E)}for(;B<z;)E=Math.floor(65536*Math.random()),T[B++]=E>>>8,T[B++]=255&E;B=0,D()}function I(){if(null==S){for(D(),(S=new R).init(T),B=0;B<T.length;++B)T[B]=0;B=0}return S.next()}function O(){}function R(){this.i=0,this.j=0,this.S=new Array}O.prototype.nextBytes=function(t){var e;for(e=0;e<t.length;++e)t[e]=I()},R.prototype.init=function(t){var e,r,n;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)r=r+this.S[e]+t[e%t.length]&255,n=this.S[e],this.S[e]=this.S[r],this.S[r]=n;this.i=0,this.j=0},R.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]};var z=256;t.exports={default:r,BigInteger:r,SecureRandom:O}}).call(this)},function(t,e,r){"use strict";r.r(e);var n=r(0),i=r(1);const o=self;o.onmessage=function(t){var e=t.data.taskID,r=null;switch(t.data.task){case"unzip":r=i.gzipUncompress.apply(null,t.data.args);break;case"factorize":r=n.pqPrimeFactorization.apply(null,t.data.args);break;case"mod-pow":r=n.bytesModPow.apply(null,t.data.args);break;case"sha1-hash":r=n.sha1HashSync.apply(null,t.data.args);break;case"sha256-hash":r=n.sha256HashSync.apply(null,t.data.args);break;case"rsa-encrypt":r=n.rsaEncrypt.apply(null,t.data.args);break;case"aes-encrypt":r=n.aesEncryptSync.apply(null,t.data.args);break;case"aes-decrypt":r=n.aesDecryptSync.apply(null,t.data.args);break;case"pbkdf2":return n.hash_pbkdf2.apply(null,t.data.args).then(t=>{o.postMessage({taskID:e,result:t})});default:throw new Error("Unknown task: "+t.data.task)}o.postMessage({taskID:e,result:r})},o.postMessage("ready")},function(t,e,r){"use strict";function n(t){return String.fromCharCode(t>>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t)}Object.defineProperty(e,"__esModule",{value:!0});for(var i=String.fromCharCode(128),o=64;o--;)i+=String.fromCharCode(0);e.default=function(t){for(var e=t.length,r=e/4294967296>>>0,o=e>>>0,s=[0,0],a=s.length-1;a>=0;a-=1)s[a]+=o,o=r+(s[a]/4294967296>>>0),s[a]>>>=0,r=o/4294967296>>>0;var f,h=t,u=63&s[s.length-1]+8;h+=i.substr(0,64-u);var c=8*s[0];for(a=0;a<s.length-1;a+=1)h+=n((c+=(f=8*s[a+1])/4294967296>>>0)>>>0),c=f>>>0;var l=function(t){for(var e,r,n,i,o,s,a,f=0,h=0,u=new Uint32Array(80),c=1732584193,l=4023233417,d=2562383102,p=271733878,g=3285377520,v=t.length,y=0;v>=64;){for(e=c,r=l,n=d,i=p,o=g,f=0;f<16;f+=1)u[f]=(a=y,(s=t).charCodeAt(a)<<24^s.charCodeAt(a+1)<<16^s.charCodeAt(a+2)<<8^s.charCodeAt(a+3)),y+=4,h=(e<<5|e>>>27)+(i^r&(n^i))+o+1518500249+u[f],o=i,i=n,n=(r<<30|r>>>2)>>>0,r=e,e=h;for(;f<20;f+=1)h=(h=u[f-3]^u[f-8]^u[f-14]^u[f-16])<<1|h>>>31,u[f]=h,h=(e<<5|e>>>27)+(i^r&(n^i))+o+1518500249+h,o=i,i=n,n=(r<<30|r>>>2)>>>0,r=e,e=h;for(;f<32;f+=1)h=(h=u[f-3]^u[f-8]^u[f-14]^u[f-16])<<1|h>>>31,u[f]=h,h=(e<<5|e>>>27)+(r^n^i)+o+1859775393+h,o=i,i=n,n=(r<<30|r>>>2)>>>0,r=e,e=h;for(;f<40;f+=1)h=(h=u[f-6]^u[f-16]^u[f-28]^u[f-32])<<2|h>>>30,u[f]=h,h=(e<<5|e>>>27)+(r^n^i)+o+1859775393+h,o=i,i=n,n=(r<<30|r>>>2)>>>0,r=e,e=h;for(;f<60;f+=1)h=(h=u[f-6]^u[f-16]^u[f-28]^u[f-32])<<2|h>>>30,u[f]=h,h=(e<<5|e>>>27)+(r&n|i&(r^n))+o+2400959708+h,o=i,i=n,n=(r<<30|r>>>2)>>>0,r=e,e=h;for(;f<80;f+=1)h=(h=u[f-6]^u[f-16]^u[f-28]^u[f-32])<<2|h>>>30,u[f]=h,h=(e<<5|e>>>27)+(r^n^i)+o+3395469782+h,o=i,i=n,n=(r<<30|r>>>2)>>>0,r=e,e=h;c=c+e|0,l=l+r|0,d=d+n|0,p=p+i|0,g=g+o|0,v-=64}return{h1:c,h2:l,h3:d,h4:p,h5:g}}(h+=n(c));return n(l.h1)+n(l.h2)+n(l.h3)+n(l.h4)+n(l.h5)}},function(t,e,r){"use strict";function n(t,e){return t.charCodeAt(e)<<24^t.charCodeAt(e+1)<<16^t.charCodeAt(e+2)<<8^t.charCodeAt(e+3)}function i(t){return String.fromCharCode(t>>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t)}function o(t){return("00000000"+t.toString(16)).slice(-8)}function s(t){return t||(t=new Uint32Array(8)),t[0]=1779033703,t[1]=3144134277,t[2]=1013904242,t[3]=2773480762,t[4]=1359893119,t[5]=2600822924,t[6]=528734635,t[7]=1541459225,t}r.r(e);var a=new Uint32Array(64),f=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function h(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],s=t[4],h=t[5],u=t[6],c=t[7];a.set(e);for(var l=16;l<64;l+=1){v=((v=a[l-2])>>>17|v<<15)^(v>>>19|v<<13)^v>>>10,d=((d=a[l-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3,a[l]=v+a[l-7]+d+a[l-16]}for(l=0;l<64;l+=1){var d,p=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),g=r&n|i&(r^n),v=c+((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(u^s&(h^u))+f[l]+a[l];c=u,u=h,h=s,s=o+v|0,o=i,i=n,n=r,r=v+(d=p+g)|0}t[0]+=r,t[1]+=n,t[2]+=i,t[3]+=o,t[4]+=s,t[5]+=h,t[6]+=u,t[7]+=c}function u(t,e,r,i){for(void 0===i&&(i=0);t.length>=64;){for(var o=i;o<16;o++)e[o]=n(t,4*o);t=t.slice(64-4*i),i=0,h(r,e)}return t}function c(t,e,r,n){for(void 0===n&&(n=0);t.length>=e.length-n;)e.set(t.subarray(0,e.length-n),n),t=t.subarray(e.length-n),n=0,h(r,e);return t.length>0&&(e.set(t,n),n+=t.length),n}function l(t,e,r,n){void 0===n&&(n=0);for(var i=t/4294967296>>>0,o=t>>>0,s=n+1;s<e.length;s++)e[s]=0;if(n>=14){h(r,e);for(s=0;s<e.length;s++)e[s]=0}e[14]=i<<3|i>>>28,e[15]=o<<3,h(r,e)}function d(t,e,r,i,o){for(void 0===o&&(o=0);t.length>=4;o++)r[o]=n(t,0),t=t.slice(4);o>=16&&(h(i,r),o=0),r[o]=n(t+"€\0\0\0",0),l(e,r,i,o)}function p(t,e,r,n){void 0===n&&(n=0),e[n]=2147483648,l(t,e,r,n)}function g(t,e){switch(void 0===e&&(e="array"),e){case"hex":return o(t[0])+o(t[1])+o(t[2])+o(t[3])+o(t[4])+o(t[5])+o(t[6])+o(t[7]);case"binary":return i(t[0])+i(t[1])+i(t[2])+i(t[3])+i(t[4])+i(t[5])+i(t[6])+i(t[7]);default:return t}}var v=function(){function t(t){this.buffer=new Uint32Array(16),this.state=s(t),this.length=0,this.offset=0,this.tail=""}return t.prototype.update=function(t){if("string"==typeof t)this.length+=t.length,this.tail=u(this.tail+t,this.buffer,this.state,this.offset),this.offset=0;else{if(this.tail.length>0)throw new Error("Unable to update hash-stream with array");this.length+=4*t.length,this.offset=c(t,this.buffer,this.state,this.offset)}return this},t.prototype.digest=function(t){return void 0===t&&(t="array"),this.tail.length>0?d(this.tail,this.length,this.buffer,this.state,this.offset):p(this.length,this.buffer,this.state,this.offset),g(this.state,t)},t.prototype.clear=function(){this.state=s(),this.length=0,this.offset=0,this.tail=""},t}();function y(t,e){void 0===e&&(e="array");var r=new Uint32Array(16),n=s();return"string"==typeof t?d(u(t,r,n),t.length,r,n):p(4*t.length,r,n,c(t,r,n)),g(n,e)}y.stream=function(t){return new v(t)},y.blockLength=64,y.digestLength=32,e.default=y},function(t,e,r){"use strict";r.r(e),r.d(e,"bpe",(function(){return i})),r.d(e,"one",(function(){return h})),r.d(e,"zero",(function(){return u})),r.d(e,"findPrimes",(function(){return V})),r.d(e,"millerRabinInt",(function(){return K})),r.d(e,"millerRabin",(function(){return W})),r.d(e,"bitSize",(function(){return G})),r.d(e,"expand",(function(){return X})),r.d(e,"randTruePrime",(function(){return Y})),r.d(e,"randProbPrime",(function(){return Q})),r.d(e,"randProbPrimeRounds",(function(){return $})),r.d(e,"mod",(function(){return J})),r.d(e,"addInt",(function(){return tt})),r.d(e,"mult",(function(){return et})),r.d(e,"powMod",(function(){return rt})),r.d(e,"sub",(function(){return nt})),r.d(e,"add",(function(){return it})),r.d(e,"inverseMod",(function(){return ot})),r.d(e,"multMod",(function(){return st})),r.d(e,"randTruePrime_",(function(){return at})),r.d(e,"randBigInt",(function(){return ft})),r.d(e,"randBigInt_",(function(){return ht})),r.d(e,"GCD",(function(){return ut})),r.d(e,"GCD_",(function(){return ct})),r.d(e,"inverseMod_",(function(){return lt})),r.d(e,"inverseModInt",(function(){return dt})),r.d(e,"eGCD_",(function(){return pt})),r.d(e,"negative",(function(){return gt})),r.d(e,"greaterShift",(function(){return vt})),r.d(e,"greater",(function(){return yt})),r.d(e,"divide_",(function(){return mt})),r.d(e,"carry_",(function(){return bt})),r.d(e,"modInt",(function(){return wt})),r.d(e,"int2bigInt",(function(){return _t})),r.d(e,"str2bigInt",(function(){return kt})),r.d(e,"equalsInt",(function(){return St})),r.d(e,"equals",(function(){return Tt})),r.d(e,"isZero",(function(){return Bt})),r.d(e,"bigInt2str",(function(){return xt})),r.d(e,"dup",(function(){return At})),r.d(e,"copy_",(function(){return Dt})),r.d(e,"copyInt_",(function(){return Et})),r.d(e,"addInt_",(function(){return Mt})),r.d(e,"rightShift_",(function(){return Ct})),r.d(e,"halve_",(function(){return It})),r.d(e,"leftShift_",(function(){return Ot})),r.d(e,"multInt_",(function(){return Rt})),r.d(e,"divInt_",(function(){return zt})),r.d(e,"linComb_",(function(){return Ut})),r.d(e,"linCombShift_",(function(){return Ft})),r.d(e,"addShift_",(function(){return Nt})),r.d(e,"subShift_",(function(){return Zt})),r.d(e,"sub_",(function(){return Pt})),r.d(e,"add_",(function(){return Lt})),r.d(e,"mult_",(function(){return Ht})),r.d(e,"mod_",(function(){return jt})),r.d(e,"multMod_",(function(){return qt})),r.d(e,"squareMod_",(function(){return Vt})),r.d(e,"trim",(function(){return Kt})),r.d(e,"powMod_",(function(){return Wt})),r.d(e,"mont_",(function(){return Gt}));var n,i=0,o=0,s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_=!@#$%^&*()[]{}|;:,.<>/?`~ \\'\"+-";for(i=0;1<<i+1>1<<i;i++);n=(o=(1<<(i>>=1))-1)+1;var a,f,h=_t(1,1,1),u=_t(0,1,1),c=new Array(0),l=c,d=c,p=c,g=c,v=c,y=c,m=c,b=c,w=c,_=c,k=c,S=c,T=c,B=c,x=c,A=c,D=c,E=c,M=c,C=c,I=c,O=c,R=c,z=c,U=c,F=c,N=c,Z=c,P=c,L=c,H=c,j=c,q=c;function V(t){var e,r,n,i;for(r=new Array(t),e=0;e<t;e++)r[e]=0;for(r[0]=2,n=0;r[n]<t;){for(e=r[n]*r[n];e<t;e+=r[n])r[e]=1;for(r[++n]=r[n-1]+1;r[n]<t&&r[r[n]];r[n]++);}for(i=new Array(n),e=0;e<n;e++)i[e]=r[e];return i}function K(t,e){return _.length!==t.length&&(_=At(t),k=At(t),S=At(t)),Et(S,e),W(t,S)}function W(t,e){var r,n,s,a;for(_.length!==t.length&&(_=At(t),k=At(t),S=At(t)),Dt(S,e),Dt(k,t),Dt(_,t),Mt(k,-1),Mt(_,-1),s=0,r=0;r<k.length;r++)for(n=1;n<o;n<<=1)t[r]&n?(a=s<k.length+i?s:0,r=k.length,n=o):s++;if(a&&Ct(k,a),Wt(S,k,t),!St(S,1)&&!Tt(S,_)){for(n=1;n<=a-1&&!Tt(S,_);){if(Vt(S,t),St(S,1))return 0;n++}if(!Tt(S,_))return 0}return 1}function G(t){var e,r,n;for(e=t.length-1;0==t[e]&&e>0;e--);for(r=0,n=t[e];n;n>>=1,r++);return r+=i*e}function X(t,e){var r=_t(0,(t.length>e?t.length:e)*i,0);return Dt(r,t),r}function Y(t){var e=_t(0,t,0);return at(e,t),Kt(e,1)}function Q(t){return $(t,t>=600?2:t>=550?4:t>=500?5:t>=400?6:t>=350?7:t>=300?9:t>=250?12:t>=200?15:t>=150?18:t>=100?27:40)}function $(t,e){var r,n,i;for(3e4,r=_t(0,t,0),0===M.length&&(M=V(3e4)),q.length!==r.length&&(q=At(r));;){for(ht(r,t,0),r[0]|=1,i=0,n=0;n<M.length&&M[n]<=3e4;n++)if(0===wt(r,M[n])&&!St(r,M[n])){i=1;break}for(n=0;n<e&&!i;n++){for(ht(q,t,0);!yt(r,q);)ht(q,t,0);W(r,q)||(i=1)}if(!i)return r}}function J(t,e){var r=At(t);return jt(r,e),Kt(r,1)}function tt(t,e){var r=X(t,t.length+1);return Mt(r,e),Kt(r,1)}function et(t,e){var r=X(t,t.length+e.length);return Ht(r,e),Kt(r,1)}function rt(t,e,r){var n=X(t,r.length);return Wt(n,Kt(e,2),Kt(r,2)),Kt(n,1)}function nt(t,e){var r=X(t,t.length>e.length?t.length+1:e.length+1);return Pt(r,e),Kt(r,1)}function it(t,e){var r=X(t,t.length>e.length?t.length+1:e.length+1);return Lt(r,e),Kt(r,1)}function ot(t,e){var r=X(t,e.length);return lt(r,e)?Kt(r,1):null}function st(t,e,r){var n=X(t,r.length);return qt(n,e,r),Kt(n,1)}function at(t,e){var r,n,o,s,a,f,h,u,c,l;if(0==M.length&&(M=V(3e4)),0==C.length)for(C=new Array(512),o=0;o<512;o++)C[o]=Math.pow(2,o/511-1);if(O.length!=t.length&&(O=At(t),R=At(t),F=At(t),Z=At(t),H=At(t),At(t),At(t),L=At(t),P=At(t),I=At(t),z=At(t),U=At(t),N=At(t),j=At(t)),e<=20){for(r=(1<<(e+2>>1))-1,Et(t,0),n=1;n;)for(n=0,t[0]=1|1<<e-1|Math.floor(Math.random()*(1<<e)),o=1;o<M.length&&(M[o]&r)==M[o];o++)if(0==t[0]%M[o]){n=1;break}bt(t)}else{if(a=.1*e*e,e>40)for(s=1;e-e*s<=20;)s=C[Math.floor(512*Math.random())];else s=.5;for(c=Math.floor(s*e)+1,at(U,c),Et(O,0),O[Math.floor((e-2)/i)]|=1<<(e-2)%i,mt(O,U,I,z),h=G(I);;){for(;ht(R,h,0),!yt(I,R););for(Mt(R,1),Lt(R,I),Dt(P,U),Ht(P,R),Rt(P,2),Mt(P,1),Dt(Z,R),Rt(Z,2),f=0,o=0;o<M.length&&M[o]<a;o++)if(0==wt(P,M[o])&&!St(P,M[o])){f=1;break}if(f||K(P,2)||(f=1),!f){for(Mt(P,-3),o=P.length-1;0==P[o]&&o>0;o--);for(u=0,l=P[o];l;l>>=1,u++);for(u+=i*o;ht(N,u,0),!yt(P,N););if(Mt(P,3),Mt(N,2),Dt(L,N),Dt(F,P),Mt(F,-1),Wt(L,F,P),Mt(L,-1),Bt(L)&&(Dt(L,N),Wt(L,Z,P),Mt(L,-1),Dt(j,P),Dt(H,L),ct(H,P),St(H,1)))return void Dt(t,j)}}}}function ft(t,e){var r;return ht(r=_t(0,0,Math.floor((t-1)/i)+2),t,e),r}function ht(t,e,r){var n,o;for(n=0;n<t.length;n++)t[n]=0;for(o=Math.floor((e-1)/i)+1,n=0;n<o;n++)t[n]=Math.floor(Math.random()*(1<<i-1));t[o-1]&=(2<<(e-1)%i)-1,1==r&&(t[o-1]|=1<<(e-1)%i)}function ut(t,e){var r;return ct(r=At(t),At(e)),r}function ct(t,e){var r,n,i,o,s,a,f,h,u;for(b.length!==t.length&&(b=At(t)),u=1;u;){for(u=0,r=1;r<e.length;r++)if(e[r]){u=1;break}if(!u)break;for(r=t.length;!t[r]&&r>=0;r--);for(n=t[r],i=e[r],o=1,s=0,a=0,f=1;i+a&&i+f&&(h=Math.floor((n+o)/(i+a)))==Math.floor((n+s)/(i+f));)c=o-h*a,o=a,a=c,c=s-h*f,s=f,f=c,c=n-h*i,n=i,i=c;s?(Dt(b,t),Ut(t,e,o,s),Ut(e,b,f,a)):(jt(t,e),Dt(b,t),Dt(t,e),Dt(e,b))}if(0!==e[0])for(c=wt(t,e[0]),Et(t,e[0]),e[0]=c;e[0];)t[0]%=e[0],c=t[0],t[0]=e[0],e[0]=c}function lt(t,e){var r=1+2*Math.max(t.length,e.length);if(!(1&t[0]||1&e[0]))return Et(t,0),0;for(B.length!=r&&(B=new Array(r),T=new Array(r),x=new Array(r),A=new Array(r),D=new Array(r),E=new Array(r)),Dt(B,t),Dt(T,e),Et(x,1),Et(A,0),Et(D,0),Et(E,1);;){for(;!(1&B[0]);)It(B),1&x[0]||1&A[0]?(Lt(x,e),It(x),Pt(A,t),It(A)):(It(x),It(A));for(;!(1&T[0]);)It(T),1&D[0]||1&E[0]?(Lt(D,e),It(D),Pt(E,t),It(E)):(It(D),It(E));if(yt(T,B)?(Pt(T,B),Pt(D,x),Pt(E,A)):(Pt(B,T),Pt(x,D),Pt(A,E)),St(B,0)){for(;gt(D);)Lt(D,e);return Dt(t,D),St(T,1)?1:(Et(t,0),0)}}}function dt(t,e){for(var r=1,n=0;;){if(1===t)return r;if(0===t)return 0;if(n-=r*Math.floor(e/t),1===(e%=t))return n;if(0===e)return 0;r-=n*Math.floor(t/e),t%=e}}function pt(t,e,r,n,i){var o=0,s=Math.max(t.length,e.length);for(B.length!=s&&(B=new Array(s),x=new Array(s),A=new Array(s),D=new Array(s),E=new Array(s));!(1&t[0]||1&e[0]);)It(t),It(e),o++;for(Dt(B,t),Dt(r,e),Et(x,1),Et(A,0),Et(D,0),Et(E,1);;){for(;!(1&B[0]);)It(B),1&x[0]||1&A[0]?(Lt(x,e),It(x),Pt(A,t),It(A)):(It(x),It(A));for(;!(1&r[0]);)It(r),1&D[0]||1&E[0]?(Lt(D,e),It(D),Pt(E,t),It(E)):(It(D),It(E));if(yt(r,B)?(Pt(r,B),Pt(D,x),Pt(E,A)):(Pt(B,r),Pt(x,D),Pt(A,E)),St(B,0)){for(;gt(D);)Lt(D,e),Pt(E,t);return Rt(E,-1),Dt(n,D),Dt(i,E),void Ot(r,o)}}}function gt(t){return t[t.length-1]>>i-1&1}function vt(t,e,r){var n,i=t.length,o=e.length;for(a=i+r<o?i+r:o,n=o-1-r;n<i&&n>=0;n++)if(t[n]>0)return 1;for(n=i-1+r;n<o;n++)if(e[n]>0)return 0;for(n=a-1;n>=r;n--){if(t[n-r]>e[n])return 1;if(t[n-r]<e[n])return 0}return 0}function yt(t,e){var r,n=t.length<e.length?t.length:e.length;for(r=t.length;r<e.length;r++)if(e[r])return 0;for(r=e.length;r<t.length;r++)if(t[r])return 1;for(r=n-1;r>=0;r--){if(t[r]>e[r])return 1;if(t[r]<e[r])return 0}return 0}function mt(t,e,r,s){var a,f,h,u,c,l,d,p;for(Dt(s,t),f=e.length;0===e[f-1];f--);for(p=e[f-1],d=0;p;d++)p>>=1;for(Ot(e,d=i-d),Ot(s,d),a=s.length;0===s[a-1]&&a>f;a--);for(Et(r,0);!vt(e,s,a-f);)Zt(s,e,a-f),r[a-f]++;for(h=a-1;h>=f;h--){for(s[h]==e[f-1]?r[h-f]=o:r[h-f]=Math.floor((s[h]*n+s[h-1])/e[f-1]);l=(c=(f>1?e[f-2]:0)*r[h-f])>>i,c&=o,l=(u=l+r[h-f]*e[f-1])>>i,u&=o,l==s[h]?u==s[h-1]?c>(h>1?s[h-2]:0):u>s[h-1]:l>s[h];)r[h-f]--;Ft(s,e,-r[h-f],h-f),gt(s)&&(Nt(s,e,h-f),r[h-f]--)}Ct(e,d),Ct(s,d)}function bt(t){var e,r,s,a;for(r=t.length,s=0,e=0;e<r;e++)a=0,(s+=t[e])<0&&(s+=(a=-(s>>i))*n),t[e]=s&o,s=(s>>i)-a}function wt(t,e){var r,i=0;for(r=t.length-1;r>=0;r--)i=(i*n+t[r])%e;return i}function _t(t,e,r){var n;n=r>(n=Math.ceil(e/i)+1)?r:n;var o=new Array(n);return Et(o,t),o}function kt(t,e,r){var n,i,o,a,f,h=t.length;if(-1===e){for(o=new Array(0);;){for(a=new Array(o.length+1),i=0;i<o.length;i++)a[i+1]=o[i];if(a[0]=parseInt(t,10),o=a,(n=t.indexOf(",",0))<1)break;if(0==(t=t.substring(n+1)).length)break}return o.length<r?(Dt(a=new Array(r),o),a):o}for(o=_t(0,e*h,0),i=0;i<h&&(n=s.indexOf(t.substring(i,i+1),0),e<=36&&n>=36&&(n-=26),!(n>=e||n<0));i++)Rt(o,e),Mt(o,n);for(h=o.length;h>0&&!o[h-1];h--);for(h=r>h+1?r:h+1,a=new Array(h),f=h<o.length?h:o.length,i=0;i<f;i++)a[i]=o[i];for(;i<h;i++)a[i]=0;return a}function St(t,e){var r;if(t[0]!=e)return 0;for(r=1;r<t.length;r++)if(t[r])return 0;return 1}function Tt(t,e){var r,n=t.length<e.length?t.length:e.length;for(r=0;r<n;r++)if(t[r]!==e[r])return 0;if(t.length>e.length){for(;r<t.length;r++)if(t[r])return 0}else for(;r<e.length;r++)if(e[r])return 0;return 1}function Bt(t){var e;for(e=0;e<t.length;e++)if(t[e])return 0;return 1}function xt(t,e){var r,n,i="";if(y.length!==t.length?y=At(t):Dt(y,t),-1===e){for(r=t.length-1;r>0;r--)i+=t[r]+",";i+=t[0]}else for(;!Bt(y);)n=zt(y,e),i=s.substring(n,n+1)+i;return 0===i.length&&(i="0"),i}function At(t){return Dt(f=Array(t.length),t),f}function Dt(t,e){var r,n=t.length<e.length?t.length:e.length;for(r=0;r<n;r++)t[r]=e[r];for(r=n;r<t.length;r++)t[r]=0}function Et(t,e){var r,n,s=t.length;for(n=e,r=0;r<s;r++)t[r]=n&o,n>>=i}function Mt(t,e){var r,s,a,f;for(t[0]+=e,s=t.length,a=0,r=0;r<s;r++)if(f=0,(a+=t[r])<0&&(a+=(f=-(a>>i))*n),t[r]=a&o,!(a=(a>>i)-f))return}function Ct(t,e){var r,n=Math.floor(e/i);if(n){for(r=0;r<t.length-n;r++)t[r]=t[r+n];for(;r<t.length;r++)t[r]=0;e%=i}for(r=0;r<t.length-1;r++)t[r]=o&(t[r+1]<<i-e|t[r]>>e);t[r]>>=e}function It(t){var e;for(e=0;e<t.length-1;e++)t[e]=o&(t[e+1]<<i-1|t[e]>>1);t[e]=t[e]>>1|t[e]&n>>1}function Ot(t,e){var r,n=Math.floor(e/i);if(n){for(r=t.length;r>=n;r--)t[r]=t[r-n];for(;r>=0;r--)t[r]=0;e%=i}if(e){for(r=t.length-1;r>0;r--)t[r]=o&(t[r]<<e|t[r-1]>>i-e);t[r]=o&t[r]<<e}}function Rt(t,e){var r,s,a,f;if(e)for(s=t.length,a=0,r=0;r<s;r++)f=0,(a+=t[r]*e)<0&&(a+=(f=-(a>>i))*n),t[r]=a&o,a=(a>>i)-f}function zt(t,e){var r,i,o=0;for(r=t.length-1;r>=0;r--)i=o*n+t[r],t[r]=Math.floor(i/e),o=i%e;return o}function Ut(t,e,r,n){var s,a,f,h;for(f=t.length<e.length?t.length:e.length,h=t.length,a=0,s=0;s<f;s++)a+=r*t[s]+n*e[s],t[s]=a&o,a>>=i;for(s=f;s<h;s++)a+=r*t[s],t[s]=a&o,a>>=i}function Ft(t,e,r,n){var s,a,f,h;for(f=t.length<n+e.length?t.length:n+e.length,h=t.length,a=0,s=n;s<f;s++)a+=t[s]+r*e[s-n],t[s]=a&o,a>>=i;for(s=f;a&&s<h;s++)a+=t[s],t[s]=a&o,a>>=i}function Nt(t,e,r){var n,s,a,f;for(a=t.length<r+e.length?t.length:r+e.length,f=t.length,s=0,n=r;n<a;n++)s+=t[n]+e[n-r],t[n]=s&o,s>>=i;for(n=a;s&&n<f;n++)s+=t[n],t[n]=s&o,s>>=i}function Zt(t,e,r){var n,s,a,f;for(a=t.length<r+e.length?t.length:r+e.length,f=t.length,s=0,n=r;n<a;n++)s+=t[n]-e[n-r],t[n]=s&o,s>>=i;for(n=a;s&&n<f;n++)s+=t[n],t[n]=s&o,s>>=i}function Pt(t,e){var r,n,s;for(s=t.length<e.length?t.length:e.length,n=0,r=0;r<s;r++)n+=t[r]-e[r],t[r]=n&o,n>>=i;for(r=s;n&&r<t.length;r++)n+=t[r],t[r]=n&o,n>>=i}function Lt(t,e){var r,n,s;for(s=t.length<e.length?t.length:e.length,n=0,r=0;r<s;r++)n+=t[r]+e[r],t[r]=n&o,n>>=i;for(r=s;n&&r<t.length;r++)n+=t[r],t[r]=n&o,n>>=i}function Ht(t,e){var r;for(l.length!=2*t.length&&(l=new Array(2*t.length)),Et(l,0),r=0;r<e.length;r++)e[r]&&Ft(l,t,e[r],r);Dt(t,l)}function jt(t,e){g.length!==t.length?g=At(t):Dt(g,t),v.length!==t.length&&(v=At(t)),mt(g,e,v,t)}function qt(t,e,r){var n;for(d.length!=2*t.length&&(d=new Array(2*t.length)),Et(d,0),n=0;n<e.length;n++)e[n]&&Ft(d,t,e[n],n);jt(d,r),Dt(t,d)}function Vt(t,e){var r,n,s,a,f;for(a=t.length;a>0&&!t[a-1];a--);for(f=a>e.length?2*a:2*e.length,d.length!=f&&(d=new Array(f)),Et(d,0),r=0;r<a;r++){for(s=d[2*r]+t[r]*t[r],d[2*r]=s&o,s>>=i,n=r+1;n<a;n++)s=d[r+n]+2*t[r]*t[n]+s,d[r+n]=s&o,s>>=i;d[r+a]=s}jt(d,e),Dt(t,d)}function Kt(t,e){var r,n;for(r=t.length;r>0&&!t[r-1];r--);return Dt(n=new Array(r+e),t),n}function Wt(t,e,r){var o,s,a,f;if(m.length!=r.length&&(m=At(r)),0!=(1&r[0])){for(Et(m,0),a=r.length;a>0&&!r[a-1];a--);for(f=n-dt(wt(r,n),n),m[a]=1,qt(t,m,r),p.length!=t.length?p=At(t):Dt(p,t),o=e.length-1;o>0&!e[o];o--);if(0!=e[o]){for(s=1<<i-1;s&&!(e[o]&s);s>>=1);for(;;){if(!(s>>=1)){if(--o<0)return void Gt(t,h,r,f);s=1<<i-1}Gt(t,t,r,f),s&e[o]&&Gt(t,p,r,f)}}else Et(t,1)}else for(Dt(m,t),Et(t,1);!St(e,0);)1&e[0]&&qt(t,m,r),zt(e,2),Vt(m,r)}function Gt(t,e,r,n){var s,a,f,h,u,c,l=r.length,d=e.length;for(w.length!=l&&(w=new Array(l)),Et(w,0);l>0&&0==r[l-1];l--);for(;d>0&&0==e[d-1];d--);for(c=w.length-1,s=0;s<l;s++){for(f=(u=w[0]+t[s]*e[0])+(h=(u&o)*n&o)*r[0]>>i,u=t[s],a=1;a<d-4;)f+=w[a]+h*r[a]+u*e[a],w[a-1]=f&o,f>>=i,a++,f+=w[a]+h*r[a]+u*e[a],w[a-1]=f&o,f>>=i,a++,f+=w[a]+h*r[a]+u*e[a],w[a-1]=f&o,f>>=i,a++,f+=w[a]+h*r[a]+u*e[a],w[a-1]=f&o,f>>=i,a++,f+=w[a]+h*r[a]+u*e[a],w[a-1]=f&o,f>>=i,a++;for(;a<d;)f+=w[a]+h*r[a]+u*e[a],w[a-1]=f&o,f>>=i,a++;for(;a<l-4;)f+=w[a]+h*r[a],w[a-1]=f&o,f>>=i,a++,f+=w[a]+h*r[a],w[a-1]=f&o,f>>=i,a++,f+=w[a]+h*r[a],w[a-1]=f&o,f>>=i,a++,f+=w[a]+h*r[a],w[a-1]=f&o,f>>=i,a++,f+=w[a]+h*r[a],w[a-1]=f&o,f>>=i,a++;for(;a<l;)f+=w[a]+h*r[a],w[a-1]=f&o,f>>=i,a++;for(;a<c;)f+=w[a],w[a-1]=f&o,f>>=i,a++;w[a-1]=f&o}yt(r,w)||Pt(w,r),Dt(t,w)}},function(t,e){console.log("CryptoJS included!");var r=r||function(t,e){var r,n,i={},o=(n=i.lib={}).Base=function(){function t(){}return{extend:function(e){t.prototype=this;var r=new t;return e&&r.mixIn(e),r.hasOwnProperty("init")||(r.init=function(){r.$super.init.apply(this,arguments)}),r.init.prototype=r,r.$super=this,r},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=n.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||a).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=s<<24-(n+o)%4*8}else if(r.length>65535)for(o=0;o<i;o+=4)e[n+o>>>2]=r[o>>>2];else for(o=0;o<r.length;o++)e.push(r[o]);return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var r=[],n=0;n<e;n+=4)r.push(4294967296*t.random()|0);return new s.init(r,e)}}),a=(r=i.enc={}).Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new s.init(r,e/2)}},f=r.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new s.init(r,e)}},h=r.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},u=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,a=i/(4*o),f=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*o,h=t.min(4*f,i);if(f){for(var u=0;u<f;u+=o)this._doProcessBlock(n,u);var c=n.splice(0,f);r.sigBytes-=h}return new s.init(c,h)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),c=(n.Hasher=u.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new c.HMAC.init(t,r).finalize(e)}}}),i.algo={}),l=(o=(n=i.lib).Base,n.WordArray),d=i.x64={},p=(d.Word=o.extend({init:function(t,e){this.high=t,this.low=e}}),d.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;n<e;n++){var i=t[n];r.push(i.high),r.push(i.low)}return l.create(r,this.sigBytes)},clone:function(){for(var t=o.clone.call(this),e=t.words=this.words.slice(0),r=e.length,n=0;n<r;n++)e[n]=e[n].clone();return t}}),o=(n=i.lib).Base,s=n.WordArray,u=n.BufferedBlockAlgorithm,h=(r=i.enc).Utf8,r.Base64),g=(c=i.algo).EvpKDF,v=n.Cipher=u.extend({cfg:o.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?A:B}return function(e){return{encrypt:function(r,n,i){return t(n).encrypt(e,r,n,i)},decrypt:function(r,n,i){return t(n).decrypt(e,r,n,i)}}}}()}),y=(n.StreamCipher=v.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),i.mode={}),m=n.BlockCipherMode=o.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),b=y.CBC=function(){var t=m.extend();function e(t,e,r){var n=this._iv;if(n){var i=n;this._iv=void 0}else i=this._prevBlock;for(var o=0;o<r;o++)t[e+o]^=i[o]}return t.Encryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize;e.call(this,t,r,i),n.encryptBlock(t,r),this._prevBlock=t.slice(r,r+i)}}),t.Decryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize,o=t.slice(r,r+i);n.decryptBlock(t,r),e.call(this,t,r,i),this._prevBlock=o}}),t}(),w=(y.IGE=function(){var t=m.extend();function e(t,e,r,n){for(var i=0;i<n;i++)t[r+i]^=e[i]}return t.Encryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize;void 0===this._ivp&&(this._ivp=this._iv.slice(0,i),this._iv2p=this._iv.slice(i,i+i));var o=t.slice(r,r+i);e(t,this._ivp,r,i),n.encryptBlock(t,r),e(t,this._iv2p,r,i),this._ivp=t.slice(r,r+i),this._iv2p=o}}),t.Decryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize;void 0===this._ivp&&(this._ivp=this._iv.slice(0,i),this._iv2p=this._iv.slice(i,2*i));var o=t.slice(r,r+i);e(t,this._iv2p,r,i),n.decryptBlock(t,r),e(t,this._ivp,r,i),this._ivp=o,this._iv2p=t.slice(r,r+i)}}),t}(),i.pad={}),_=w.Pkcs7={pad:function(t,e){for(var r=4*e,n=r-t.sigBytes%r,i=n<<24|n<<16|n<<8|n,o=[],a=0;a<n;a+=4)o.push(i);var f=s.create(o,n);t.concat(f)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},k=(w.NoPadding={pad:function(){},unpad:function(){}},n.BlockCipher=v.extend({cfg:v.cfg.extend({mode:b,padding:_}),reset:function(){v.reset.call(this);var t=this.cfg,e=t.iv,r=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{n=r.createDecryptor;this._minBufferSize=1}this._mode=n.call(r,this,e&&e.words)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else{e=this._process(!0);t.unpad(e)}return e},blockSize:4})),S=n.CipherParams=o.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),T=(i.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,r=t.salt;if(r)var n=s.create([1398893684,1701076831]).concat(r).concat(e);else n=e;return n.toString(p)},parse:function(t){var e=p.parse(t),r=e.words;if(1398893684==r[0]&&1701076831==r[1]){var n=s.create(r.slice(2,4));r.splice(0,4),e.sigBytes-=16}return S.create({ciphertext:e,salt:n})}},B=n.SerializableCipher=o.extend({cfg:o.extend({format:T}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var i=t.createEncryptor(r,n),o=i.finalize(e),s=i.cfg;return S.create({ciphertext:o,key:r,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(r,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),x=(i.kdf={}).OpenSSL={execute:function(t,e,r,n){n||(n=s.random(8));var i=g.create({keySize:e+r}).compute(t,n),o=s.create(i.words.slice(e),4*r);return i.sigBytes=4*e,S.create({key:i,iv:o,salt:n})}},A=n.PasswordBasedCipher=B.extend({cfg:B.cfg.extend({kdf:x}),encrypt:function(t,e,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,t.keySize,t.ivSize);n.iv=i.iv;var o=B.encrypt.call(this,t,e,i.key,n);return o.mixIn(i),o},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var i=n.kdf.execute(r,t.keySize,t.ivSize,e.salt);return n.iv=i.iv,B.decrypt.call(this,t,e,i.key,n)}}),D=(k=(n=i.lib).BlockCipher,c=i.algo,[]),E=[],M=[],C=[],I=[],O=[],R=[],z=[],U=[],F=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var i=n^n<<1^n<<2^n<<3^n<<4;i=i>>>8^255&i^99,D[r]=i,E[i]=r;var o=t[r],s=t[o],a=t[s],f=257*t[i]^16843008*i;M[r]=f<<24|f>>>8,C[r]=f<<16|f>>>16,I[r]=f<<8|f>>>24,O[r]=f;f=16843009*a^65537*s^257*o^16843008*r;R[i]=f<<24|f>>>8,z[i]=f<<16|f>>>16,U[i]=f<<8|f>>>24,F[i]=f,r?(r=o^t[t[t[a^o]]],n^=t[t[n]]):r=n=1}}();var N=[0,1,2,4,8,16,32,64,128,27,54],Z=c.AES=k.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],o=0;o<n;o++)if(o<r)i[o]=e[o];else{var s=i[o-1];o%r?r>6&&o%r==4&&(s=D[s>>>24]<<24|D[s>>>16&255]<<16|D[s>>>8&255]<<8|D[255&s]):(s=D[(s=s<<8|s>>>24)>>>24]<<24|D[s>>>16&255]<<16|D[s>>>8&255]<<8|D[255&s],s^=N[o/r|0]<<24),i[o]=i[o-r]^s}for(var a=this._invKeySchedule=[],f=0;f<n;f++){o=n-f;if(f%4)s=i[o];else s=i[o-4];a[f]=f<4||o<=4?s:R[D[s>>>24]]^z[D[s>>>16&255]]^U[D[s>>>8&255]]^F[D[255&s]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,M,C,I,O,D)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,R,z,U,F,E);r=t[e+1];t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,s,a){for(var f=this._nRounds,h=t[e]^r[0],u=t[e+1]^r[1],c=t[e+2]^r[2],l=t[e+3]^r[3],d=4,p=1;p<f;p++){var g=n[h>>>24]^i[u>>>16&255]^o[c>>>8&255]^s[255&l]^r[d++],v=n[u>>>24]^i[c>>>16&255]^o[l>>>8&255]^s[255&h]^r[d++],y=n[c>>>24]^i[l>>>16&255]^o[h>>>8&255]^s[255&u]^r[d++],m=n[l>>>24]^i[h>>>16&255]^o[u>>>8&255]^s[255&c]^r[d++];h=g,u=v,c=y,l=m}g=(a[h>>>24]<<24|a[u>>>16&255]<<16|a[c>>>8&255]<<8|a[255&l])^r[d++],v=(a[u>>>24]<<24|a[c>>>16&255]<<16|a[l>>>8&255]<<8|a[255&h])^r[d++],y=(a[c>>>24]<<24|a[l>>>16&255]<<16|a[h>>>8&255]<<8|a[255&u])^r[d++],m=(a[l>>>24]<<24|a[h>>>16&255]<<16|a[u>>>8&255]<<8|a[255&c])^r[d++];t[e]=g,t[e+1]=v,t[e+2]=y,t[e+3]=m},keySize:8});return i.AES=k._createHelper(Z),i}(Math);t.exports=r},function(t,e,r){t.exports=function t(e,r,n){function i(s,a){if(!r[s]){if(!e[s]){if(o)return o(s,!0);var f=new Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var h=r[s]={exports:{}};e[s][0].call(h.exports,(function(t){return i(e[s][1][t]||t)}),h,h.exports,t,e,r,n)}return r[s].exports}for(var o=!1,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(t){for(var e,r,n=Array.prototype.slice.call(arguments,1);n.length;){var i=n.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var o in i)e=i,r=o,Object.prototype.hasOwnProperty.call(e,r)&&(t[o]=i[o])}}return t},r.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,s;for(e=n=0,r=t.length;e<r;e++)n+=t[e].length;for(s=new Uint8Array(n),e=i=0,r=t.length;e<r;e++)o=t[e],s.set(o,i),i+=o.length;return s}},o={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};r.setTyped=function(t){t?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],2:[function(t,e,r){"use strict";var n=t("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function f(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r="",s=0;s<e;s++)r+=String.fromCharCode(t[s]);return r}s[254]=s[254]=1,r.string2buf=function(t){var e,r,i,o,s,a=t.length,f=0;for(o=0;o<a;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),f+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(f),o=s=0;s<f;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?e[s++]=r:(r<2048?e[s++]=192|r>>>6:(r<65536?e[s++]=224|r>>>12:(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63),e[s++]=128|r>>>6&63),e[s++]=128|63&r);return e},r.buf2binstring=function(t){return f(t,t.length)},r.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},r.buf2string=function(t,e){var r,n,i,o,a=e||t.length,h=new Array(2*a);for(r=n=0;r<a;)if((i=t[r++])<128)h[n++]=i;else if(4<(o=s[i]))h[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&r<a;)i=i<<6|63&t[r++],o--;1<o?h[n++]=65533:i<65536?h[n++]=i:(i-=65536,h[n++]=55296|i>>10&1023,h[n++]=56320|1023&i)}return f(h,n)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?e:r+s[t[r]]>e?r:e}},{"./common":1}],3:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,s=0;0!==r;){for(r-=s=2e3<r?2e3:r;o=o+(i=i+e[n++]|0)|0,--s;);i%=65521,o%=65521}return i|o<<16|0}},{}],4:[function(t,e,r){"use strict";e.exports={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}},{}],5:[function(t,e,r){"use strict";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,i){var o=n,s=i+r;t^=-1;for(var a=i;a<s;a++)t=t>>>8^o[255&(t^e[a])];return-1^t}},{}],6:[function(t,e,r){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],7:[function(t,e,r){"use strict";e.exports=function(t,e){var r,n,i,o,s,a,f,h,u,c,l,d,p,g,v,y,m,b,w,_,k,S,T,B,x;r=t.state,n=t.next_in,B=t.input,i=n+(t.avail_in-5),o=t.next_out,x=t.output,s=o-(e-t.avail_out),a=o+(t.avail_out-257),f=r.dmax,h=r.wsize,u=r.whave,c=r.wnext,l=r.window,d=r.hold,p=r.bits,g=r.lencode,v=r.distcode,y=(1<<r.lenbits)-1,m=(1<<r.distbits)-1;t:do{p<15&&(d+=B[n++]<<p,p+=8,d+=B[n++]<<p,p+=8),b=g[d&y];e:for(;;){if(d>>>=w=b>>>24,p-=w,0==(w=b>>>16&255))x[o++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=g[(65535&b)+(d&(1<<w)-1)];continue e}if(32&w){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}_=65535&b,(w&=15)&&(p<w&&(d+=B[n++]<<p,p+=8),_+=d&(1<<w)-1,d>>>=w,p-=w),p<15&&(d+=B[n++]<<p,p+=8,d+=B[n++]<<p,p+=8),b=v[d&m];r:for(;;){if(d>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=v[(65535&b)+(d&(1<<w)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(k=65535&b,p<(w&=15)&&(d+=B[n++]<<p,(p+=8)<w&&(d+=B[n++]<<p,p+=8)),f<(k+=d&(1<<w)-1)){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=w,p-=w,(w=o-s)<k){if(u<(w=k-w)&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(T=l,(S=0)===c){if(S+=h-w,w<_){for(_-=w;x[o++]=l[S++],--w;);S=o-k,T=x}}else if(c<w){if(S+=h+c-w,(w-=c)<_){for(_-=w;x[o++]=l[S++],--w;);if(S=0,c<_){for(_-=w=c;x[o++]=l[S++],--w;);S=o-k,T=x}}}else if(S+=c-w,w<_){for(_-=w;x[o++]=l[S++],--w;);S=o-k,T=x}for(;2<_;)x[o++]=T[S++],x[o++]=T[S++],x[o++]=T[S++],_-=3;_&&(x[o++]=T[S++],1<_&&(x[o++]=T[S++]))}else{for(S=o-k;x[o++]=x[S++],x[o++]=x[S++],x[o++]=x[S++],2<(_-=3););_&&(x[o++]=x[S++],1<_&&(x[o++]=x[S++]))}break}}break}}while(n<i&&o<a);n-=_=p>>3,d&=(1<<(p-=_<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<a?a-o+257:257-(o-a),r.hold=d,r.bits=p}},{}],8:[function(t,e,r){"use strict";var n=t("../utils/common"),i=t("./adler32"),o=t("./crc32"),s=t("./inffast"),a=t("./inftrees"),f=-2;function h(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):f}function l(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,c(t)):f}function d(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?f:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,l(t))):f}function p(t,e){var r,n;return t?(n=new u,(t.state=n).window=null,0!==(r=d(t,e))&&(t.state=null),r):f}var g,v,y=!0;function m(t){if(y){var e;for(g=new n.Buf32(512),v=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(1,t.lens,0,288,g,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,v,0,t.work,{bits:5}),y=!1}t.lencode=g,t.lenbits=9,t.distcode=v,t.distbits=5}function b(t,e,r,i){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),i>=s.wsize?(n.arraySet(s.window,e,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i<(o=s.wsize-s.wnext)&&(o=i),n.arraySet(s.window,e,r-i,o,s.wnext),(i-=o)?(n.arraySet(s.window,e,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}r.inflateReset=l,r.inflateReset2=d,r.inflateResetKeep=c,r.inflateInit=function(t){return p(t,15)},r.inflateInit2=p,r.inflate=function(t,e){var r,u,c,l,d,p,g,v,y,w,_,k,S,T,B,x,A,D,E,M,C,I,O,R,z=0,U=new n.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return f;12===(r=t.state).mode&&(r.mode=13),d=t.next_out,c=t.output,g=t.avail_out,l=t.next_in,u=t.input,p=t.avail_in,v=r.hold,y=r.bits,w=p,_=g,I=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;y<16;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}if(2&r.wrap&&35615===v){U[r.check=0]=255&v,U[1]=v>>>8&255,r.check=o(r.check,U,2,0),y=v=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&v)<<8)+(v>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&v)){t.msg="unknown compression method",r.mode=30;break}if(y-=4,C=8+(15&(v>>>=4)),0===r.wbits)r.wbits=C;else if(C>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<C,t.adler=r.check=1,r.mode=512&v?10:12,y=v=0;break;case 2:for(;y<16;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}if(r.flags=v,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=v>>8&1),512&r.flags&&(U[0]=255&v,U[1]=v>>>8&255,r.check=o(r.check,U,2,0)),y=v=0,r.mode=3;case 3:for(;y<32;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}r.head&&(r.head.time=v),512&r.flags&&(U[0]=255&v,U[1]=v>>>8&255,U[2]=v>>>16&255,U[3]=v>>>24&255,r.check=o(r.check,U,4,0)),y=v=0,r.mode=4;case 4:for(;y<16;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}r.head&&(r.head.xflags=255&v,r.head.os=v>>8),512&r.flags&&(U[0]=255&v,U[1]=v>>>8&255,r.check=o(r.check,U,2,0)),y=v=0,r.mode=5;case 5:if(1024&r.flags){for(;y<16;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}r.length=v,r.head&&(r.head.extra_len=v),512&r.flags&&(U[0]=255&v,U[1]=v>>>8&255,r.check=o(r.check,U,2,0)),y=v=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(p<(k=r.length)&&(k=p),k&&(r.head&&(C=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,l,k,C)),512&r.flags&&(r.check=o(r.check,u,k,l)),p-=k,l+=k,r.length-=k),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===p)break t;for(k=0;C=u[l+k++],r.head&&C&&r.length<65536&&(r.head.name+=String.fromCharCode(C)),C&&k<p;);if(512&r.flags&&(r.check=o(r.check,u,k,l)),p-=k,l+=k,C)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===p)break t;for(k=0;C=u[l+k++],r.head&&C&&r.length<65536&&(r.head.comment+=String.fromCharCode(C)),C&&k<p;);if(512&r.flags&&(r.check=o(r.check,u,k,l)),p-=k,l+=k,C)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;y<16;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}if(v!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}y=v=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;y<32;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}t.adler=r.check=h(v),y=v=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=d,t.avail_out=g,t.next_in=l,t.avail_in=p,r.hold=v,r.bits=y,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){v>>>=7&y,y-=7&y,r.mode=27;break}for(;y<3;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}switch(r.last=1&v,y-=1,3&(v>>>=1)){case 0:r.mode=14;break;case 1:if(m(r),r.mode=20,6!==e)break;v>>>=2,y-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}v>>>=2,y-=2;break;case 14:for(v>>>=7&y,y-=7&y;y<32;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}if((65535&v)!=(v>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&v,y=v=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(k=r.length){if(p<k&&(k=p),g<k&&(k=g),0===k)break t;n.arraySet(c,u,l,k,d),p-=k,l+=k,g-=k,d+=k,r.length-=k;break}r.mode=12;break;case 17:for(;y<14;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}if(r.nlen=257+(31&v),v>>>=5,y-=5,r.ndist=1+(31&v),v>>>=5,y-=5,r.ncode=4+(15&v),v>>>=4,y-=4,286<r.nlen||30<r.ndist){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;y<3;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}r.lens[F[r.have++]]=7&v,v>>>=3,y-=3}for(;r.have<19;)r.lens[F[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,O={bits:r.lenbits},I=a(0,r.lens,0,19,r.lencode,0,r.work,O),r.lenbits=O.bits,I){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;x=(z=r.lencode[v&(1<<r.lenbits)-1])>>>16&255,A=65535&z,!((B=z>>>24)<=y);){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}if(A<16)v>>>=B,y-=B,r.lens[r.have++]=A;else{if(16===A){for(R=B+2;y<R;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}if(v>>>=B,y-=B,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}C=r.lens[r.have-1],k=3+(3&v),v>>>=2,y-=2}else if(17===A){for(R=B+3;y<R;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}y-=B,C=0,k=3+(7&(v>>>=B)),v>>>=3,y-=3}else{for(R=B+7;y<R;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}y-=B,C=0,k=11+(127&(v>>>=B)),v>>>=7,y-=7}if(r.have+k>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;k--;)r.lens[r.have++]=C}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,O={bits:r.lenbits},I=a(1,r.lens,0,r.nlen,r.lencode,0,r.work,O),r.lenbits=O.bits,I){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,O={bits:r.distbits},I=a(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,O),r.distbits=O.bits,I){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=p&&258<=g){t.next_out=d,t.avail_out=g,t.next_in=l,t.avail_in=p,r.hold=v,r.bits=y,s(t,_),d=t.next_out,c=t.output,g=t.avail_out,l=t.next_in,u=t.input,p=t.avail_in,v=r.hold,y=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;x=(z=r.lencode[v&(1<<r.lenbits)-1])>>>16&255,A=65535&z,!((B=z>>>24)<=y);){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}if(x&&0==(240&x)){for(D=B,E=x,M=A;x=(z=r.lencode[M+((v&(1<<D+E)-1)>>D)])>>>16&255,A=65535&z,!(D+(B=z>>>24)<=y);){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}v>>>=D,y-=D,r.back+=D}if(v>>>=B,y-=B,r.back+=B,r.length=A,0===x){r.mode=26;break}if(32&x){r.back=-1,r.mode=12;break}if(64&x){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&x,r.mode=22;case 22:if(r.extra){for(R=r.extra;y<R;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}r.length+=v&(1<<r.extra)-1,v>>>=r.extra,y-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;x=(z=r.distcode[v&(1<<r.distbits)-1])>>>16&255,A=65535&z,!((B=z>>>24)<=y);){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}if(0==(240&x)){for(D=B,E=x,M=A;x=(z=r.distcode[M+((v&(1<<D+E)-1)>>D)])>>>16&255,A=65535&z,!(D+(B=z>>>24)<=y);){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}v>>>=D,y-=D,r.back+=D}if(v>>>=B,y-=B,r.back+=B,64&x){t.msg="invalid distance code",r.mode=30;break}r.offset=A,r.extra=15&x,r.mode=24;case 24:if(r.extra){for(R=r.extra;y<R;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}r.offset+=v&(1<<r.extra)-1,v>>>=r.extra,y-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===g)break t;if(k=_-g,r.offset>k){if((k=r.offset-k)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}k>r.wnext?(k-=r.wnext,S=r.wsize-k):S=r.wnext-k,k>r.length&&(k=r.length),T=r.window}else T=c,S=d-r.offset,k=r.length;for(g<k&&(k=g),g-=k,r.length-=k;c[d++]=T[S++],--k;);0===r.length&&(r.mode=21);break;case 26:if(0===g)break t;c[d++]=r.length,g--,r.mode=21;break;case 27:if(r.wrap){for(;y<32;){if(0===p)break t;p--,v|=u[l++]<<y,y+=8}if(_-=g,t.total_out+=_,r.total+=_,_&&(t.adler=r.check=r.flags?o(r.check,c,_,d-_):i(r.check,c,_,d-_)),_=g,(r.flags?v:h(v))!==r.check){t.msg="incorrect data check",r.mode=30;break}y=v=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;y<32;){if(0===p)break t;p--,v+=u[l++]<<y,y+=8}if(v!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}y=v=0}r.mode=29;case 29:I=1;break t;case 30:I=-3;break t;case 31:return-4;case 32:default:return f}return t.next_out=d,t.avail_out=g,t.next_in=l,t.avail_in=p,r.hold=v,r.bits=y,(r.wsize||_!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&b(t,t.output,t.next_out,_-t.avail_out)?(r.mode=31,-4):(w-=t.avail_in,_-=t.avail_out,t.total_in+=w,t.total_out+=_,r.total+=_,r.wrap&&_&&(t.adler=r.check=r.flags?o(r.check,c,_,t.next_out-_):i(r.check,c,_,t.next_out-_)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===w&&0===_||4===e)&&0===I&&(I=-5),I)},r.inflateEnd=function(t){if(!t||!t.state)return f;var e=t.state;return e.window&&(e.window=null),t.state=null,0},r.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?f:((r.head=e).done=!1,0):f},r.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?f:11===r.mode&&i(1,e,n,0)!==r.check?-3:b(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):f},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":5,"./inffast":7,"./inftrees":9}],9:[function(t,e,r){"use strict";var n=t("../utils/common"),i=[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],o=[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],s=[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],a=[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];e.exports=function(t,e,r,f,h,u,c,l){var d,p,g,v,y,m,b,w,_,k=l.bits,S=0,T=0,B=0,x=0,A=0,D=0,E=0,M=0,C=0,I=0,O=null,R=0,z=new n.Buf16(16),U=new n.Buf16(16),F=null,N=0;for(S=0;S<=15;S++)z[S]=0;for(T=0;T<f;T++)z[e[r+T]]++;for(A=k,x=15;1<=x&&0===z[x];x--);if(x<A&&(A=x),0===x)return h[u++]=20971520,h[u++]=20971520,l.bits=1,0;for(B=1;B<x&&0===z[B];B++);for(A<B&&(A=B),S=M=1;S<=15;S++)if(M<<=1,(M-=z[S])<0)return-1;if(0<M&&(0===t||1!==x))return-1;for(U[1]=0,S=1;S<15;S++)U[S+1]=U[S]+z[S];for(T=0;T<f;T++)0!==e[r+T]&&(c[U[e[r+T]]++]=T);if(0===t?(O=F=c,m=19):1===t?(O=i,R-=257,F=o,N-=257,m=256):(O=s,F=a,m=-1),S=B,y=u,E=T=I=0,g=-1,v=(C=1<<(D=A))-1,1===t&&852<C||2===t&&592<C)return 1;for(;;){for(b=S-E,c[T]<m?(w=0,_=c[T]):c[T]>m?(w=F[N+c[T]],_=O[R+c[T]]):(w=96,_=0),d=1<<S-E,B=p=1<<D;h[y+(I>>E)+(p-=d)]=b<<24|w<<16|_|0,0!==p;);for(d=1<<S-1;I&d;)d>>=1;if(0!==d?(I&=d-1,I+=d):I=0,T++,0==--z[S]){if(S===x)break;S=e[r+c[T]]}if(A<S&&(I&v)!==g){for(0===E&&(E=A),y+=B,M=1<<(D=S-E);D+E<x&&!((M-=z[D+E])<=0);)D++,M<<=1;if(C+=1<<D,1===t&&852<C||2===t&&592<C)return 1;h[g=I&v]=A<<24|D<<16|y-u|0}}return 0!==I&&(h[y+I]=S-E<<24|64<<16|0),l.bits=A,0}},{"../utils/common":1}],10:[function(t,e,r){"use strict";e.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"}},{}],11:[function(t,e,r){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/inflate.js":[function(t,e,r){"use strict";var n=t("./zlib/inflate"),i=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/constants"),a=t("./zlib/messages"),f=t("./zlib/zstream"),h=t("./zlib/gzheader"),u=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==s.Z_OK)throw new Error(a[r]);if(this.header=new h,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==s.Z_OK))throw new Error(a[r])}function l(t,e){var r=new c(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}c.prototype.push=function(t,e){var r,a,f,h,c,l=this.strm,d=this.options.chunkSize,p=this.options.dictionary,g=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof t?l.input=o.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?l.input=new Uint8Array(t):l.input=t,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=new i.Buf8(d),l.next_out=0,l.avail_out=d),(r=n.inflate(l,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===s.Z_BUF_ERROR&&!0===g&&(r=s.Z_OK,g=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),!(this.ended=!0);l.next_out&&(0!==l.avail_out&&r!==s.Z_STREAM_END&&(0!==l.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(f=o.utf8border(l.output,l.next_out),h=l.next_out-f,c=o.buf2string(l.output,f),l.next_out=h,l.avail_out=d-h,h&&i.arraySet(l.output,l.output,f,h,0),this.onData(c)):this.onData(i.shrinkBuf(l.output,l.next_out)))),0===l.avail_in&&0===l.avail_out&&(g=!0)}while((0<l.avail_in||0===l.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(l.avail_out=0))},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Inflate=c,r.inflate=l,r.inflateRaw=function(t,e){return(e=e||{}).raw=!0,l(t,e)},r.ungzip=l},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")}]);