urbit-ob

JavaScript utilities for phonemic base wrangling.
Log | Files | Refs | README

commit 0214cfbeece2708ba791251f202dac802d41bef5
parent 876cf47f005be30a190bf7361a3186a51767af90
Author: Gavin Atkinson <gvnatknsn@protonmail.com>
Date:   Mon,  3 Sep 2018 12:37:50 -0700

remove 'use strict'

Diffstat:
Mdist/index.js | 2+-
Msrc/index.js | 2--
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/dist/index.js b/dist/index.js @@ -1 +1 @@ -function createCommonjsModule(t,r){return r={exports:{}},t(r,r.exports),r.exports}function init(){inited=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,n=t.length;r<n;++r)lookup[r]=t[r],revLookup[t.charCodeAt(r)]=r;revLookup["-".charCodeAt(0)]=62,revLookup["_".charCodeAt(0)]=63}function toByteArray(t){inited||init();var r,n,e,i,u,o,f=t.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");u="="===t[f-2]?2:"="===t[f-1]?1:0,o=new Arr(3*f/4-u),e=u>0?f-4:f;var a=0;for(r=0,n=0;r<e;r+=4,n+=3)i=revLookup[t.charCodeAt(r)]<<18|revLookup[t.charCodeAt(r+1)]<<12|revLookup[t.charCodeAt(r+2)]<<6|revLookup[t.charCodeAt(r+3)],o[a++]=i>>16&255,o[a++]=i>>8&255,o[a++]=255&i;return 2===u?(i=revLookup[t.charCodeAt(r)]<<2|revLookup[t.charCodeAt(r+1)]>>4,o[a++]=255&i):1===u&&(i=revLookup[t.charCodeAt(r)]<<10|revLookup[t.charCodeAt(r+1)]<<4|revLookup[t.charCodeAt(r+2)]>>2,o[a++]=i>>8&255,o[a++]=255&i),o}function tripletToBase64(t){return lookup[t>>18&63]+lookup[t>>12&63]+lookup[t>>6&63]+lookup[63&t]}function encodeChunk(t,r,n){for(var e,i=[],u=r;u<n;u+=3)e=(t[u]<<16)+(t[u+1]<<8)+t[u+2],i.push(tripletToBase64(e));return i.join("")}function fromByteArray(t){inited||init();for(var r,n=t.length,e=n%3,i="",u=[],o=0,f=n-e;o<f;o+=16383)u.push(encodeChunk(t,o,o+16383>f?f:o+16383));return 1===e?(r=t[n-1],i+=lookup[r>>2],i+=lookup[r<<4&63],i+="=="):2===e&&(r=(t[n-2]<<8)+t[n-1],i+=lookup[r>>10],i+=lookup[r>>4&63],i+=lookup[r<<2&63],i+="="),u.push(i),u.join("")}function read(t,r,n,e,i){var u,o,f=8*i-e-1,a=(1<<f)-1,s=a>>1,h=-7,l=n?i-1:0,c=n?-1:1,p=t[r+l];for(l+=c,u=p&(1<<-h)-1,p>>=-h,h+=f;h>0;u=256*u+t[r+l],l+=c,h-=8);for(o=u&(1<<-h)-1,u>>=-h,h+=e;h>0;o=256*o+t[r+l],l+=c,h-=8);if(0===u)u=1-s;else{if(u===a)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,e),u-=s}return(p?-1:1)*o*Math.pow(2,u-e)}function write(t,r,n,e,i,u){var o,f,a,s=8*u-i-1,h=(1<<s)-1,l=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=e?0:u-1,d=e?1:-1,v=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,o=h):(o=Math.floor(Math.log(r)/Math.LN2),r*(a=Math.pow(2,-o))<1&&(o--,a*=2),(r+=o+l>=1?c/a:c*Math.pow(2,1-l))*a>=2&&(o++,a/=2),o+l>=h?(f=0,o=h):o+l>=1?(f=(r*a-1)*Math.pow(2,i),o+=l):(f=r*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[n+p]=255&f,p+=d,f/=256,i-=8);for(o=o<<i|f,s+=i;s>0;t[n+p]=255&o,p+=d,o/=256,s-=8);t[n+p-d]|=128*v}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(t,r){if(kMaxLength()<r)throw new RangeError("Invalid typed array length");return Buffer.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=Buffer.prototype:(null===t&&(t=new Buffer(r)),t.length=r),t}function Buffer(t,r,n){if(!(Buffer.TYPED_ARRAY_SUPPORT||this instanceof Buffer))return new Buffer(t,r,n);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return allocUnsafe(this,t)}return from(this,t,r,n)}function from(t,r,n,e){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?fromArrayBuffer(t,r,n,e):"string"==typeof r?fromString(t,r,n):fromObject(t,r)}function assertSize(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function alloc(t,r,n,e){return assertSize(r),r<=0?createBuffer(t,r):void 0!==n?"string"==typeof e?createBuffer(t,r).fill(n,e):createBuffer(t,r).fill(n):createBuffer(t,r)}function allocUnsafe(t,r){if(assertSize(r),t=createBuffer(t,r<0?0:0|checked(r)),!Buffer.TYPED_ARRAY_SUPPORT)for(var n=0;n<r;++n)t[n]=0;return t}function fromString(t,r,n){if("string"==typeof n&&""!==n||(n="utf8"),!Buffer.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var e=0|byteLength(r,n),i=(t=createBuffer(t,e)).write(r,n);return i!==e&&(t=t.slice(0,i)),t}function fromArrayLike(t,r){var n=r.length<0?0:0|checked(r.length);t=createBuffer(t,n);for(var e=0;e<n;e+=1)t[e]=255&r[e];return t}function fromArrayBuffer(t,r,n,e){if(r.byteLength,n<0||r.byteLength<n)throw new RangeError("'offset' is out of bounds");if(r.byteLength<n+(e||0))throw new RangeError("'length' is out of bounds");return r=void 0===n&&void 0===e?new Uint8Array(r):void 0===e?new Uint8Array(r,n):new Uint8Array(r,n,e),Buffer.TYPED_ARRAY_SUPPORT?(t=r).__proto__=Buffer.prototype:t=fromArrayLike(t,r),t}function fromObject(t,r){if(internalIsBuffer(r)){var n=0|checked(r.length);return 0===(t=createBuffer(t,n)).length?t:(r.copy(t,0,0,n),t)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||isnan(r.length)?createBuffer(t,0):fromArrayLike(t,r);if("Buffer"===r.type&&isArray(r.data))return fromArrayLike(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function checked(t){if(t>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|t}function SlowBuffer(t){return+t!=t&&(t=0),Buffer.alloc(+t)}function internalIsBuffer(t){return!(null==t||!t._isBuffer)}function byteLength(t,r){if(internalIsBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var e=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return utf8ToBytes(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return base64ToBytes(t).length;default:if(e)return utf8ToBytes(t).length;r=(""+r).toLowerCase(),e=!0}}function slowToString(t,r,n){var e=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,r>>>=0,n<=r)return"";for(t||(t="utf8");;)switch(t){case"hex":return hexSlice(this,r,n);case"utf8":case"utf-8":return utf8Slice(this,r,n);case"ascii":return asciiSlice(this,r,n);case"latin1":case"binary":return latin1Slice(this,r,n);case"base64":return base64Slice(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,r,n);default:if(e)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),e=!0}}function swap(t,r,n){var e=t[r];t[r]=t[n],t[n]=e}function bidirectionalIndexOf(t,r,n,e,i){if(0===t.length)return-1;if("string"==typeof n?(e=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof r&&(r=Buffer.from(r,e)),internalIsBuffer(r))return 0===r.length?-1:arrayIndexOf(t,r,n,e,i);if("number"==typeof r)return r&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,n):Uint8Array.prototype.lastIndexOf.call(t,r,n):arrayIndexOf(t,[r],n,e,i);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(t,r,n,e,i){function u(t,r){return 1===o?t[r]:t.readUInt16BE(r*o)}var o=1,f=t.length,a=r.length;if(void 0!==e&&("ucs2"===(e=String(e).toLowerCase())||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(t.length<2||r.length<2)return-1;o=2,f/=2,a/=2,n/=2}var s;if(i){var h=-1;for(s=n;s<f;s++)if(u(t,s)===u(r,-1===h?0:s-h)){if(-1===h&&(h=s),s-h+1===a)return h*o}else-1!==h&&(s-=s-h),h=-1}else for(n+a>f&&(n=f-a),s=n;s>=0;s--){for(var l=!0,c=0;c<a;c++)if(u(t,s+c)!==u(r,c)){l=!1;break}if(l)return s}return-1}function hexWrite(t,r,n,e){n=Number(n)||0;var i=t.length-n;e?(e=Number(e))>i&&(e=i):e=i;var u=r.length;if(u%2!=0)throw new TypeError("Invalid hex string");e>u/2&&(e=u/2);for(var o=0;o<e;++o){var f=parseInt(r.substr(2*o,2),16);if(isNaN(f))return o;t[n+o]=f}return o}function utf8Write(t,r,n,e){return blitBuffer(utf8ToBytes(r,t.length-n),t,n,e)}function asciiWrite(t,r,n,e){return blitBuffer(asciiToBytes(r),t,n,e)}function latin1Write(t,r,n,e){return asciiWrite(t,r,n,e)}function base64Write(t,r,n,e){return blitBuffer(base64ToBytes(r),t,n,e)}function ucs2Write(t,r,n,e){return blitBuffer(utf16leToBytes(r,t.length-n),t,n,e)}function base64Slice(t,r,n){return fromByteArray(0===r&&n===t.length?t:t.slice(r,n))}function utf8Slice(t,r,n){n=Math.min(t.length,n);for(var e=[],i=r;i<n;){var u=t[i],o=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n){var a,s,h,l;switch(f){case 1:u<128&&(o=u);break;case 2:128==(192&(a=t[i+1]))&&(l=(31&u)<<6|63&a)>127&&(o=l);break;case 3:a=t[i+1],s=t[i+2],128==(192&a)&&128==(192&s)&&(l=(15&u)<<12|(63&a)<<6|63&s)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:a=t[i+1],s=t[i+2],h=t[i+3],128==(192&a)&&128==(192&s)&&128==(192&h)&&(l=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&h)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,f=1):o>65535&&(o-=65536,e.push(o>>>10&1023|55296),o=56320|1023&o),e.push(o),i+=f}return decodeCodePointsArray(e)}function decodeCodePointsArray(t){var r=t.length;if(r<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,t);for(var n="",e=0;e<r;)n+=String.fromCharCode.apply(String,t.slice(e,e+=MAX_ARGUMENTS_LENGTH));return n}function asciiSlice(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;i<n;++i)e+=String.fromCharCode(127&t[i]);return e}function latin1Slice(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;i<n;++i)e+=String.fromCharCode(t[i]);return e}function hexSlice(t,r,n){var e=t.length;(!r||r<0)&&(r=0),(!n||n<0||n>e)&&(n=e);for(var i="",u=r;u<n;++u)i+=toHex(t[u]);return i}function utf16leSlice(t,r,n){for(var e=t.slice(r,n),i="",u=0;u<e.length;u+=2)i+=String.fromCharCode(e[u]+256*e[u+1]);return i}function checkOffset(t,r,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>n)throw new RangeError("Trying to access beyond buffer length")}function checkInt(t,r,n,e,i,u){if(!internalIsBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<u)throw new RangeError('"value" argument is out of bounds');if(n+e>t.length)throw new RangeError("Index out of range")}function objectWriteUInt16(t,r,n,e){r<0&&(r=65535+r+1);for(var i=0,u=Math.min(t.length-n,2);i<u;++i)t[n+i]=(r&255<<8*(e?i:1-i))>>>8*(e?i:1-i)}function objectWriteUInt32(t,r,n,e){r<0&&(r=4294967295+r+1);for(var i=0,u=Math.min(t.length-n,4);i<u;++i)t[n+i]=r>>>8*(e?i:3-i)&255}function checkIEEE754(t,r,n,e,i,u){if(n+e>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function writeFloat(t,r,n,e,i){return i||checkIEEE754(t,r,n,4,3.4028234663852886e38,-3.4028234663852886e38),write(t,r,n,e,23,4),n+4}function writeDouble(t,r,n,e,i){return i||checkIEEE754(t,r,n,8,1.7976931348623157e308,-1.7976931348623157e308),write(t,r,n,e,52,8),n+8}function base64clean(t){if((t=stringtrim(t).replace(INVALID_BASE64_RE,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}function stringtrim(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function toHex(t){return t<16?"0"+t.toString(16):t.toString(16)}function utf8ToBytes(t,r){r=r||1/0;for(var n,e=t.length,i=null,u=[],o=0;o<e;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(r-=3)>-1&&u.push(239,191,189);continue}if(o+1===e){(r-=3)>-1&&u.push(239,191,189);continue}i=n;continue}if(n<56320){(r-=3)>-1&&u.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(r-=3)>-1&&u.push(239,191,189);if(i=null,n<128){if((r-=1)<0)break;u.push(n)}else if(n<2048){if((r-=2)<0)break;u.push(n>>6|192,63&n|128)}else if(n<65536){if((r-=3)<0)break;u.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;u.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return u}function asciiToBytes(t){for(var r=[],n=0;n<t.length;++n)r.push(255&t.charCodeAt(n));return r}function utf16leToBytes(t,r){for(var n,e,i,u=[],o=0;o<t.length&&!((r-=2)<0);++o)e=(n=t.charCodeAt(o))>>8,i=n%256,u.push(i),u.push(e);return u}function base64ToBytes(t){return toByteArray(base64clean(t))}function blitBuffer(t,r,n,e){for(var i=0;i<e&&!(i+n>=r.length||i>=t.length);++i)r[i+n]=t[i];return i}function isnan(t){return t!==t}function isBuffer(t){return null!=t&&(!!t._isBuffer||isFastBuffer(t)||isSlowBuffer(t))}function isFastBuffer(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function isSlowBuffer(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&isFastBuffer(t.slice(0,0))}var commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},global$1="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},lookup=[],revLookup=[],Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,inited=!1,toString={}.toString,isArray=Array.isArray||function(t){return"[object Array]"==toString.call(t)},INSPECT_MAX_BYTES=50;Buffer.TYPED_ARRAY_SUPPORT=void 0===global$1.TYPED_ARRAY_SUPPORT||global$1.TYPED_ARRAY_SUPPORT;var _kMaxLength=kMaxLength();Buffer.poolSize=8192,Buffer._augment=function(t){return t.__proto__=Buffer.prototype,t},Buffer.from=function(t,r,n){return from(null,t,r,n)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array),Buffer.alloc=function(t,r,n){return alloc(null,t,r,n)},Buffer.allocUnsafe=function(t){return allocUnsafe(null,t)},Buffer.allocUnsafeSlow=function(t){return allocUnsafe(null,t)},Buffer.isBuffer=isBuffer,Buffer.compare=function(t,r){if(!internalIsBuffer(t)||!internalIsBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,e=r.length,i=0,u=Math.min(n,e);i<u;++i)if(t[i]!==r[i]){n=t[i],e=r[i];break}return n<e?-1:e<n?1:0},Buffer.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(t,r){if(!isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Buffer.alloc(0);var n;if(void 0===r)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var e=Buffer.allocUnsafe(r),i=0;for(n=0;n<t.length;++n){var u=t[n];if(!internalIsBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(e,i),i+=u.length}return e},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)swap(this,r,r+1);return this},Buffer.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)swap(this,r,r+3),swap(this,r+1,r+2);return this},Buffer.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)swap(this,r,r+7),swap(this,r+1,r+6),swap(this,r+2,r+5),swap(this,r+3,r+4);return this},Buffer.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?utf8Slice(this,0,t):slowToString.apply(this,arguments)},Buffer.prototype.equals=function(t){if(!internalIsBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Buffer.compare(this,t)},Buffer.prototype.inspect=function(){var t="",r=INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},Buffer.prototype.compare=function(t,r,n,e,i){if(!internalIsBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===n&&(n=t?t.length:0),void 0===e&&(e=0),void 0===i&&(i=this.length),r<0||n>t.length||e<0||i>this.length)throw new RangeError("out of range index");if(e>=i&&r>=n)return 0;if(e>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,e>>>=0,i>>>=0,this===t)return 0;for(var u=i-e,o=n-r,f=Math.min(u,o),a=this.slice(e,i),s=t.slice(r,n),h=0;h<f;++h)if(a[h]!==s[h]){u=a[h],o=s[h];break}return u<o?-1:o<u?1:0},Buffer.prototype.includes=function(t,r,n){return-1!==this.indexOf(t,r,n)},Buffer.prototype.indexOf=function(t,r,n){return bidirectionalIndexOf(this,t,r,n,!0)},Buffer.prototype.lastIndexOf=function(t,r,n){return bidirectionalIndexOf(this,t,r,n,!1)},Buffer.prototype.write=function(t,r,n,e){if(void 0===r)e="utf8",n=this.length,r=0;else if(void 0===n&&"string"==typeof r)e=r,n=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(n)?(n|=0,void 0===e&&(e="utf8")):(e=n,n=void 0)}var i=this.length-r;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var u=!1;;)switch(e){case"hex":return hexWrite(this,t,r,n);case"utf8":case"utf-8":return utf8Write(this,t,r,n);case"ascii":return asciiWrite(this,t,r,n);case"latin1":case"binary":return latin1Write(this,t,r,n);case"base64":return base64Write(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,t,r,n);default:if(u)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),u=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;Buffer.prototype.slice=function(t,r){var n=this.length;t=~~t,r=void 0===r?n:~~r,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),r<0?(r+=n)<0&&(r=0):r>n&&(r=n),r<t&&(r=t);var e;if(Buffer.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,r)).__proto__=Buffer.prototype;else{var i=r-t;e=new Buffer(i,void 0);for(var u=0;u<i;++u)e[u]=this[u+t]}return e},Buffer.prototype.readUIntLE=function(t,r,n){t|=0,r|=0,n||checkOffset(t,r,this.length);for(var e=this[t],i=1,u=0;++u<r&&(i*=256);)e+=this[t+u]*i;return e},Buffer.prototype.readUIntBE=function(t,r,n){t|=0,r|=0,n||checkOffset(t,r,this.length);for(var e=this[t+--r],i=1;r>0&&(i*=256);)e+=this[t+--r]*i;return e},Buffer.prototype.readUInt8=function(t,r){return r||checkOffset(t,1,this.length),this[t]},Buffer.prototype.readUInt16LE=function(t,r){return r||checkOffset(t,2,this.length),this[t]|this[t+1]<<8},Buffer.prototype.readUInt16BE=function(t,r){return r||checkOffset(t,2,this.length),this[t]<<8|this[t+1]},Buffer.prototype.readUInt32LE=function(t,r){return r||checkOffset(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Buffer.prototype.readUInt32BE=function(t,r){return r||checkOffset(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Buffer.prototype.readIntLE=function(t,r,n){t|=0,r|=0,n||checkOffset(t,r,this.length);for(var e=this[t],i=1,u=0;++u<r&&(i*=256);)e+=this[t+u]*i;return i*=128,e>=i&&(e-=Math.pow(2,8*r)),e},Buffer.prototype.readIntBE=function(t,r,n){t|=0,r|=0,n||checkOffset(t,r,this.length);for(var e=r,i=1,u=this[t+--e];e>0&&(i*=256);)u+=this[t+--e]*i;return i*=128,u>=i&&(u-=Math.pow(2,8*r)),u},Buffer.prototype.readInt8=function(t,r){return r||checkOffset(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Buffer.prototype.readInt16LE=function(t,r){r||checkOffset(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt16BE=function(t,r){r||checkOffset(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt32LE=function(t,r){return r||checkOffset(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Buffer.prototype.readInt32BE=function(t,r){return r||checkOffset(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Buffer.prototype.readFloatLE=function(t,r){return r||checkOffset(t,4,this.length),read(this,t,!0,23,4)},Buffer.prototype.readFloatBE=function(t,r){return r||checkOffset(t,4,this.length),read(this,t,!1,23,4)},Buffer.prototype.readDoubleLE=function(t,r){return r||checkOffset(t,8,this.length),read(this,t,!0,52,8)},Buffer.prototype.readDoubleBE=function(t,r){return r||checkOffset(t,8,this.length),read(this,t,!1,52,8)},Buffer.prototype.writeUIntLE=function(t,r,n,e){t=+t,r|=0,n|=0,e||checkInt(this,t,r,n,Math.pow(2,8*n)-1,0);var i=1,u=0;for(this[r]=255&t;++u<n&&(i*=256);)this[r+u]=t/i&255;return r+n},Buffer.prototype.writeUIntBE=function(t,r,n,e){t=+t,r|=0,n|=0,e||checkInt(this,t,r,n,Math.pow(2,8*n)-1,0);var i=n-1,u=1;for(this[r+i]=255&t;--i>=0&&(u*=256);)this[r+i]=t/u&255;return r+n},Buffer.prototype.writeUInt8=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},Buffer.prototype.writeUInt16LE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):objectWriteUInt16(this,t,r,!0),r+2},Buffer.prototype.writeUInt16BE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):objectWriteUInt16(this,t,r,!1),r+2},Buffer.prototype.writeUInt32LE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):objectWriteUInt32(this,t,r,!0),r+4},Buffer.prototype.writeUInt32BE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):objectWriteUInt32(this,t,r,!1),r+4},Buffer.prototype.writeIntLE=function(t,r,n,e){if(t=+t,r|=0,!e){var i=Math.pow(2,8*n-1);checkInt(this,t,r,n,i-1,-i)}var u=0,o=1,f=0;for(this[r]=255&t;++u<n&&(o*=256);)t<0&&0===f&&0!==this[r+u-1]&&(f=1),this[r+u]=(t/o>>0)-f&255;return r+n},Buffer.prototype.writeIntBE=function(t,r,n,e){if(t=+t,r|=0,!e){var i=Math.pow(2,8*n-1);checkInt(this,t,r,n,i-1,-i)}var u=n-1,o=1,f=0;for(this[r+u]=255&t;--u>=0&&(o*=256);)t<0&&0===f&&0!==this[r+u+1]&&(f=1),this[r+u]=(t/o>>0)-f&255;return r+n},Buffer.prototype.writeInt8=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},Buffer.prototype.writeInt16LE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):objectWriteUInt16(this,t,r,!0),r+2},Buffer.prototype.writeInt16BE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):objectWriteUInt16(this,t,r,!1),r+2},Buffer.prototype.writeInt32LE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):objectWriteUInt32(this,t,r,!0),r+4},Buffer.prototype.writeInt32BE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):objectWriteUInt32(this,t,r,!1),r+4},Buffer.prototype.writeFloatLE=function(t,r,n){return writeFloat(this,t,r,!0,n)},Buffer.prototype.writeFloatBE=function(t,r,n){return writeFloat(this,t,r,!1,n)},Buffer.prototype.writeDoubleLE=function(t,r,n){return writeDouble(this,t,r,!0,n)},Buffer.prototype.writeDoubleBE=function(t,r,n){return writeDouble(this,t,r,!1,n)},Buffer.prototype.copy=function(t,r,n,e){if(n||(n=0),e||0===e||(e=this.length),r>=t.length&&(r=t.length),r||(r=0),e>0&&e<n&&(e=n),e===n)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),t.length-r<e-n&&(e=t.length-r+n);var i,u=e-n;if(this===t&&n<r&&r<e)for(i=u-1;i>=0;--i)t[i+r]=this[i+n];else if(u<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;i<u;++i)t[i+r]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+u),r);return u},Buffer.prototype.fill=function(t,r,n,e){if("string"==typeof t){if("string"==typeof r?(e=r,r=0,n=this.length):"string"==typeof n&&(e=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==e&&"string"!=typeof e)throw new TypeError("encoding must be a string");if("string"==typeof e&&!Buffer.isEncoding(e))throw new TypeError("Unknown encoding: "+e)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var u;if("number"==typeof t)for(u=r;u<n;++u)this[u]=t;else{var o=internalIsBuffer(t)?t:utf8ToBytes(new Buffer(t,e).toString()),f=o.length;for(u=0;u<n-r;++u)this[u+r]=o[u%f]}return this};var INVALID_BASE64_RE=/[^+\/0-9A-Za-z-_]/g,bufferEs6=Object.freeze({INSPECT_MAX_BYTES:INSPECT_MAX_BYTES,kMaxLength:_kMaxLength,Buffer:Buffer,SlowBuffer:SlowBuffer,isBuffer:isBuffer}),bn$1=createCommonjsModule(function(t){!function(t,r){"use strict";function n(t,r){if(!t)throw new Error(r||"Assertion failed")}function e(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,r,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==r&&"be"!==r||(n=r,r=10),this._init(t||0,r||10,n||"be"))}function u(t,r,n){for(var e=0,i=Math.min(t.length,n),u=r;u<i;u++){var o=t.charCodeAt(u)-48;e<<=4,e|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return e}function o(t,r,n,e){for(var i=0,u=Math.min(t.length,n),o=r;o<u;o++){var f=t.charCodeAt(o)-48;i*=e,i+=f>=49?f-49+10:f>=17?f-17+10:f}return i}function f(t){for(var r=new Array(t.bitLength()),n=0;n<r.length;n++){var e=n/26|0,i=n%26;r[n]=(t.words[e]&1<<i)>>>i}return r}function a(t,r,n){n.negative=r.negative^t.negative;var e=t.length+r.length|0;n.length=e,e=e-1|0;var i=0|t.words[0],u=0|r.words[0],o=i*u,f=67108863&o,a=o/67108864|0;n.words[0]=f;for(var s=1;s<e;s++){for(var h=a>>>26,l=67108863&a,c=Math.min(s,r.length-1),p=Math.max(0,s-t.length+1);p<=c;p++){var d=s-p|0;h+=(o=(i=0|t.words[d])*(u=0|r.words[p])+l)/67108864|0,l=67108863&o}n.words[s]=0|l,a=0|h}return 0!==a?n.words[s]=0|a:n.length--,n.strip()}function s(t,r,n){n.negative=r.negative^t.negative,n.length=t.length+r.length;for(var e=0,i=0,u=0;u<n.length-1;u++){var o=i;i=0;for(var f=67108863&e,a=Math.min(u,r.length-1),s=Math.max(0,u-t.length+1);s<=a;s++){var h=u-s,l=(0|t.words[h])*(0|r.words[s]),c=67108863&l;f=67108863&(c=c+f|0),i+=(o=(o=o+(l/67108864|0)|0)+(c>>>26)|0)>>>26,o&=67108863}n.words[u]=f,e=o,o=i}return 0!==e?n.words[u]=e:n.length--,n.strip()}function h(t,r,n){return(new l).mulp(t,r,n)}function l(t,r){this.x=t,this.y=r}function c(t,r){this.name=t,this.p=new i(r,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function g(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){if("string"==typeof t){var r=i._prime(t);this.m=r.p,this.prime=r}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function y(t){m.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var _;try{_=bufferEs6.Buffer}catch(t){}i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,r){return t.cmp(r)>0?t:r},i.min=function(t,r){return t.cmp(r)<0?t:r},i.prototype._init=function(t,r,e){if("number"==typeof t)return this._initNumber(t,r,e);if("object"==typeof t)return this._initArray(t,r,e);"hex"===r&&(r=16),n(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===r?this._parseHex(t,i):this._parseBase(t,r,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),r,e)},i.prototype._initNumber=function(t,r,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),r,e)},i.prototype._initArray=function(t,r,e){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var u,o,f=0;if("be"===e)for(i=t.length-1,u=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[u]|=o<<f&67108863,this.words[u+1]=o>>>26-f&67108863,(f+=24)>=26&&(f-=26,u++);else if("le"===e)for(i=0,u=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[u]|=o<<f&67108863,this.words[u+1]=o>>>26-f&67108863,(f+=24)>=26&&(f-=26,u++);return this.strip()},i.prototype._parseHex=function(t,r){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var e,i,o=0;for(n=t.length-6,e=0;n>=r;n-=6)i=u(t,n,n+6),this.words[e]|=i<<o&67108863,this.words[e+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,e++);n+6!==r&&(i=u(t,r,n+6),this.words[e]|=i<<o&67108863,this.words[e+1]|=i>>>26-o&4194303),this.strip()},i.prototype._parseBase=function(t,r,n){this.words=[0],this.length=1;for(var e=0,i=1;i<=67108863;i*=r)e++;e--,i=i/r|0;for(var u=t.length-n,f=u%e,a=Math.min(u,u-f)+n,s=0,h=n;h<a;h+=e)s=o(t,h,h+e,r),this.imuln(i),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==f){var l=1;for(s=o(t,h,t.length,r),h=0;h<f;h++)l*=r;this.imuln(l),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}},i.prototype.copy=function(t){t.words=new Array(this.length);for(var r=0;r<this.length;r++)t.words[r]=this.words[r];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(t,r){t=t||10,r=0|r||1;var e;if(16===t||"hex"===t){e="";for(var i=0,u=0,o=0;o<this.length;o++){var f=this.words[o],a=(16777215&(f<<i|u)).toString(16);e=0!==(u=f>>>24-i&16777215)||o!==this.length-1?w[6-a.length]+a+e:a+e,(i+=2)>=26&&(i-=26,o--)}for(0!==u&&(e=u.toString(16)+e);e.length%r!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(t===(0|t)&&t>=2&&t<=36){var s=M[t],h=b[t];e="";var l=this.clone();for(l.negative=0;!l.isZero();){var c=l.modn(h).toString(t);e=(l=l.idivn(h)).isZero()?c+e:w[s-c.length]+c+e}for(this.isZero()&&(e="0"+e);e.length%r!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(t,r){return n(void 0!==_),this.toArrayLike(_,t,r)},i.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},i.prototype.toArrayLike=function(t,r,e){var i=this.byteLength(),u=e||Math.max(1,i);n(i<=u,"byte array longer than desired length"),n(u>0,"Requested array length <= 0"),this.strip();var o,f,a="le"===r,s=new t(u),h=this.clone();if(a){for(f=0;!h.isZero();f++)o=h.andln(255),h.iushrn(8),s[f]=o;for(;f<u;f++)s[f]=0}else{for(f=0;f<u-i;f++)s[f]=0;for(f=0;!h.isZero();f++)o=h.andln(255),h.iushrn(8),s[u-f-1]=o}return s},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var r=t,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,n=0;return 0==(8191&r)&&(n+=13,r>>>=13),0==(127&r)&&(n+=7,r>>>=7),0==(15&r)&&(n+=4,r>>>=4),0==(3&r)&&(n+=2,r>>>=2),0==(1&r)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],r=this._countBits(t);return 26*(this.length-1)+r},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(t+=n,26!==n)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]|t.words[r];return this.strip()},i.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var r,n;this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e=0;e<n.length;e++)this.words[e]=r.words[e]^n.words[e];if(this!==r)for(;e<r.length;e++)this.words[e]=r.words[e];return this.length=r.length,this.strip()},i.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),e=t%26;this._expand(r),e>0&&r--;for(var i=0;i<r;i++)this.words[i]=67108863&~this.words[i];return e>0&&(this.words[i]=~this.words[i]&67108863>>26-e),this.strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,r){n("number"==typeof t&&t>=0);var e=t/26|0,i=t%26;return this._expand(e+1),this.words[e]=r?this.words[e]|1<<i:this.words[e]&~(1<<i),this.strip()},i.prototype.iadd=function(t){var r;if(0!==this.negative&&0===t.negative)return this.negative=0,r=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();var n,e;this.length>t.length?(n=this,e=t):(n=t,e=this);for(var i=0,u=0;u<e.length;u++)r=(0|n.words[u])+(0|e.words[u])+i,this.words[u]=67108863&r,i=r>>>26;for(;0!==i&&u<n.length;u++)r=(0|n.words[u])+i,this.words[u]=67108863&r,i=r>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;u<n.length;u++)this.words[u]=n.words[u];return this},i.prototype.add=function(t){var r;return 0!==t.negative&&0===this.negative?(t.negative=0,r=this.sub(t),t.negative^=1,r):0===t.negative&&0!==this.negative?(this.negative=0,r=t.sub(this),this.negative=1,r):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;var e,i;n>0?(e=this,i=t):(e=t,i=this);for(var u=0,o=0;o<i.length;o++)u=(r=(0|e.words[o])-(0|i.words[o])+u)>>26,this.words[o]=67108863&r;for(;0!==u&&o<e.length;o++)u=(r=(0|e.words[o])+u)>>26,this.words[o]=67108863&r;if(0===u&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var B=function(t,r,n){var e,i,u,o=t.words,f=r.words,a=n.words,s=0,h=0|o[0],l=8191&h,c=h>>>13,p=0|o[1],d=8191&p,v=p>>>13,g=0|o[2],m=8191&g,y=g>>>13,_=0|o[3],w=8191&_,M=_>>>13,b=0|o[4],B=8191&b,A=b>>>13,x=0|o[5],E=8191&x,k=x>>>13,S=0|o[6],R=8191&S,I=S>>>13,T=0|o[7],O=8191&T,j=T>>>13,L=0|o[8],U=8191&L,P=L>>>13,C=0|o[9],N=8191&C,z=C>>>13,$=0|f[0],W=8191&$,D=$>>>13,Y=0|f[1],q=8191&Y,F=Y>>>13,Z=0|f[2],G=8191&Z,V=Z>>>13,K=0|f[3],H=8191&K,X=K>>>13,J=0|f[4],Q=8191&J,tt=J>>>13,rt=0|f[5],nt=8191&rt,et=rt>>>13,it=0|f[6],ut=8191&it,ot=it>>>13,ft=0|f[7],at=8191&ft,st=ft>>>13,ht=0|f[8],lt=8191&ht,ct=ht>>>13,pt=0|f[9],dt=8191&pt,vt=pt>>>13;n.negative=t.negative^r.negative,n.length=19;var gt=(s+(e=Math.imul(l,W))|0)+((8191&(i=(i=Math.imul(l,D))+Math.imul(c,W)|0))<<13)|0;s=((u=Math.imul(c,D))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,e=Math.imul(d,W),i=(i=Math.imul(d,D))+Math.imul(v,W)|0,u=Math.imul(v,D);var mt=(s+(e=e+Math.imul(l,q)|0)|0)+((8191&(i=(i=i+Math.imul(l,F)|0)+Math.imul(c,q)|0))<<13)|0;s=((u=u+Math.imul(c,F)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,e=Math.imul(m,W),i=(i=Math.imul(m,D))+Math.imul(y,W)|0,u=Math.imul(y,D),e=e+Math.imul(d,q)|0,i=(i=i+Math.imul(d,F)|0)+Math.imul(v,q)|0,u=u+Math.imul(v,F)|0;var yt=(s+(e=e+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,V)|0)+Math.imul(c,G)|0))<<13)|0;s=((u=u+Math.imul(c,V)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,e=Math.imul(w,W),i=(i=Math.imul(w,D))+Math.imul(M,W)|0,u=Math.imul(M,D),e=e+Math.imul(m,q)|0,i=(i=i+Math.imul(m,F)|0)+Math.imul(y,q)|0,u=u+Math.imul(y,F)|0,e=e+Math.imul(d,G)|0,i=(i=i+Math.imul(d,V)|0)+Math.imul(v,G)|0,u=u+Math.imul(v,V)|0;var _t=(s+(e=e+Math.imul(l,H)|0)|0)+((8191&(i=(i=i+Math.imul(l,X)|0)+Math.imul(c,H)|0))<<13)|0;s=((u=u+Math.imul(c,X)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,e=Math.imul(B,W),i=(i=Math.imul(B,D))+Math.imul(A,W)|0,u=Math.imul(A,D),e=e+Math.imul(w,q)|0,i=(i=i+Math.imul(w,F)|0)+Math.imul(M,q)|0,u=u+Math.imul(M,F)|0,e=e+Math.imul(m,G)|0,i=(i=i+Math.imul(m,V)|0)+Math.imul(y,G)|0,u=u+Math.imul(y,V)|0,e=e+Math.imul(d,H)|0,i=(i=i+Math.imul(d,X)|0)+Math.imul(v,H)|0,u=u+Math.imul(v,X)|0;var wt=(s+(e=e+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,tt)|0)+Math.imul(c,Q)|0))<<13)|0;s=((u=u+Math.imul(c,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,e=Math.imul(E,W),i=(i=Math.imul(E,D))+Math.imul(k,W)|0,u=Math.imul(k,D),e=e+Math.imul(B,q)|0,i=(i=i+Math.imul(B,F)|0)+Math.imul(A,q)|0,u=u+Math.imul(A,F)|0,e=e+Math.imul(w,G)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,G)|0,u=u+Math.imul(M,V)|0,e=e+Math.imul(m,H)|0,i=(i=i+Math.imul(m,X)|0)+Math.imul(y,H)|0,u=u+Math.imul(y,X)|0,e=e+Math.imul(d,Q)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(v,Q)|0,u=u+Math.imul(v,tt)|0;var Mt=(s+(e=e+Math.imul(l,nt)|0)|0)+((8191&(i=(i=i+Math.imul(l,et)|0)+Math.imul(c,nt)|0))<<13)|0;s=((u=u+Math.imul(c,et)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,e=Math.imul(R,W),i=(i=Math.imul(R,D))+Math.imul(I,W)|0,u=Math.imul(I,D),e=e+Math.imul(E,q)|0,i=(i=i+Math.imul(E,F)|0)+Math.imul(k,q)|0,u=u+Math.imul(k,F)|0,e=e+Math.imul(B,G)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(A,G)|0,u=u+Math.imul(A,V)|0,e=e+Math.imul(w,H)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,H)|0,u=u+Math.imul(M,X)|0,e=e+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,Q)|0,u=u+Math.imul(y,tt)|0,e=e+Math.imul(d,nt)|0,i=(i=i+Math.imul(d,et)|0)+Math.imul(v,nt)|0,u=u+Math.imul(v,et)|0;var bt=(s+(e=e+Math.imul(l,ut)|0)|0)+((8191&(i=(i=i+Math.imul(l,ot)|0)+Math.imul(c,ut)|0))<<13)|0;s=((u=u+Math.imul(c,ot)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,e=Math.imul(O,W),i=(i=Math.imul(O,D))+Math.imul(j,W)|0,u=Math.imul(j,D),e=e+Math.imul(R,q)|0,i=(i=i+Math.imul(R,F)|0)+Math.imul(I,q)|0,u=u+Math.imul(I,F)|0,e=e+Math.imul(E,G)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,G)|0,u=u+Math.imul(k,V)|0,e=e+Math.imul(B,H)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(A,H)|0,u=u+Math.imul(A,X)|0,e=e+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,Q)|0,u=u+Math.imul(M,tt)|0,e=e+Math.imul(m,nt)|0,i=(i=i+Math.imul(m,et)|0)+Math.imul(y,nt)|0,u=u+Math.imul(y,et)|0,e=e+Math.imul(d,ut)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(v,ut)|0,u=u+Math.imul(v,ot)|0;var Bt=(s+(e=e+Math.imul(l,at)|0)|0)+((8191&(i=(i=i+Math.imul(l,st)|0)+Math.imul(c,at)|0))<<13)|0;s=((u=u+Math.imul(c,st)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,e=Math.imul(U,W),i=(i=Math.imul(U,D))+Math.imul(P,W)|0,u=Math.imul(P,D),e=e+Math.imul(O,q)|0,i=(i=i+Math.imul(O,F)|0)+Math.imul(j,q)|0,u=u+Math.imul(j,F)|0,e=e+Math.imul(R,G)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,G)|0,u=u+Math.imul(I,V)|0,e=e+Math.imul(E,H)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(k,H)|0,u=u+Math.imul(k,X)|0,e=e+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(A,Q)|0,u=u+Math.imul(A,tt)|0,e=e+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,et)|0)+Math.imul(M,nt)|0,u=u+Math.imul(M,et)|0,e=e+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ot)|0)+Math.imul(y,ut)|0,u=u+Math.imul(y,ot)|0,e=e+Math.imul(d,at)|0,i=(i=i+Math.imul(d,st)|0)+Math.imul(v,at)|0,u=u+Math.imul(v,st)|0;var At=(s+(e=e+Math.imul(l,lt)|0)|0)+((8191&(i=(i=i+Math.imul(l,ct)|0)+Math.imul(c,lt)|0))<<13)|0;s=((u=u+Math.imul(c,ct)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,e=Math.imul(N,W),i=(i=Math.imul(N,D))+Math.imul(z,W)|0,u=Math.imul(z,D),e=e+Math.imul(U,q)|0,i=(i=i+Math.imul(U,F)|0)+Math.imul(P,q)|0,u=u+Math.imul(P,F)|0,e=e+Math.imul(O,G)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(j,G)|0,u=u+Math.imul(j,V)|0,e=e+Math.imul(R,H)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,H)|0,u=u+Math.imul(I,X)|0,e=e+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(k,Q)|0,u=u+Math.imul(k,tt)|0,e=e+Math.imul(B,nt)|0,i=(i=i+Math.imul(B,et)|0)+Math.imul(A,nt)|0,u=u+Math.imul(A,et)|0,e=e+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ot)|0)+Math.imul(M,ut)|0,u=u+Math.imul(M,ot)|0,e=e+Math.imul(m,at)|0,i=(i=i+Math.imul(m,st)|0)+Math.imul(y,at)|0,u=u+Math.imul(y,st)|0,e=e+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(v,lt)|0,u=u+Math.imul(v,ct)|0;var xt=(s+(e=e+Math.imul(l,dt)|0)|0)+((8191&(i=(i=i+Math.imul(l,vt)|0)+Math.imul(c,dt)|0))<<13)|0;s=((u=u+Math.imul(c,vt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,e=Math.imul(N,q),i=(i=Math.imul(N,F))+Math.imul(z,q)|0,u=Math.imul(z,F),e=e+Math.imul(U,G)|0,i=(i=i+Math.imul(U,V)|0)+Math.imul(P,G)|0,u=u+Math.imul(P,V)|0,e=e+Math.imul(O,H)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(j,H)|0,u=u+Math.imul(j,X)|0,e=e+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(I,Q)|0,u=u+Math.imul(I,tt)|0,e=e+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,et)|0)+Math.imul(k,nt)|0,u=u+Math.imul(k,et)|0,e=e+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(A,ut)|0,u=u+Math.imul(A,ot)|0,e=e+Math.imul(w,at)|0,i=(i=i+Math.imul(w,st)|0)+Math.imul(M,at)|0,u=u+Math.imul(M,st)|0,e=e+Math.imul(m,lt)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(y,lt)|0,u=u+Math.imul(y,ct)|0;var Et=(s+(e=e+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,vt)|0)+Math.imul(v,dt)|0))<<13)|0;s=((u=u+Math.imul(v,vt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,e=Math.imul(N,G),i=(i=Math.imul(N,V))+Math.imul(z,G)|0,u=Math.imul(z,V),e=e+Math.imul(U,H)|0,i=(i=i+Math.imul(U,X)|0)+Math.imul(P,H)|0,u=u+Math.imul(P,X)|0,e=e+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(j,Q)|0,u=u+Math.imul(j,tt)|0,e=e+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,et)|0)+Math.imul(I,nt)|0,u=u+Math.imul(I,et)|0,e=e+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ot)|0)+Math.imul(k,ut)|0,u=u+Math.imul(k,ot)|0,e=e+Math.imul(B,at)|0,i=(i=i+Math.imul(B,st)|0)+Math.imul(A,at)|0,u=u+Math.imul(A,st)|0,e=e+Math.imul(w,lt)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(M,lt)|0,u=u+Math.imul(M,ct)|0;var kt=(s+(e=e+Math.imul(m,dt)|0)|0)+((8191&(i=(i=i+Math.imul(m,vt)|0)+Math.imul(y,dt)|0))<<13)|0;s=((u=u+Math.imul(y,vt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,e=Math.imul(N,H),i=(i=Math.imul(N,X))+Math.imul(z,H)|0,u=Math.imul(z,X),e=e+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(P,Q)|0,u=u+Math.imul(P,tt)|0,e=e+Math.imul(O,nt)|0,i=(i=i+Math.imul(O,et)|0)+Math.imul(j,nt)|0,u=u+Math.imul(j,et)|0,e=e+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ot)|0)+Math.imul(I,ut)|0,u=u+Math.imul(I,ot)|0,e=e+Math.imul(E,at)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(k,at)|0,u=u+Math.imul(k,st)|0,e=e+Math.imul(B,lt)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(A,lt)|0,u=u+Math.imul(A,ct)|0;var St=(s+(e=e+Math.imul(w,dt)|0)|0)+((8191&(i=(i=i+Math.imul(w,vt)|0)+Math.imul(M,dt)|0))<<13)|0;s=((u=u+Math.imul(M,vt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,e=Math.imul(N,Q),i=(i=Math.imul(N,tt))+Math.imul(z,Q)|0,u=Math.imul(z,tt),e=e+Math.imul(U,nt)|0,i=(i=i+Math.imul(U,et)|0)+Math.imul(P,nt)|0,u=u+Math.imul(P,et)|0,e=e+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,ot)|0)+Math.imul(j,ut)|0,u=u+Math.imul(j,ot)|0,e=e+Math.imul(R,at)|0,i=(i=i+Math.imul(R,st)|0)+Math.imul(I,at)|0,u=u+Math.imul(I,st)|0,e=e+Math.imul(E,lt)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,u=u+Math.imul(k,ct)|0;var Rt=(s+(e=e+Math.imul(B,dt)|0)|0)+((8191&(i=(i=i+Math.imul(B,vt)|0)+Math.imul(A,dt)|0))<<13)|0;s=((u=u+Math.imul(A,vt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,e=Math.imul(N,nt),i=(i=Math.imul(N,et))+Math.imul(z,nt)|0,u=Math.imul(z,et),e=e+Math.imul(U,ut)|0,i=(i=i+Math.imul(U,ot)|0)+Math.imul(P,ut)|0,u=u+Math.imul(P,ot)|0,e=e+Math.imul(O,at)|0,i=(i=i+Math.imul(O,st)|0)+Math.imul(j,at)|0,u=u+Math.imul(j,st)|0,e=e+Math.imul(R,lt)|0,i=(i=i+Math.imul(R,ct)|0)+Math.imul(I,lt)|0,u=u+Math.imul(I,ct)|0;var It=(s+(e=e+Math.imul(E,dt)|0)|0)+((8191&(i=(i=i+Math.imul(E,vt)|0)+Math.imul(k,dt)|0))<<13)|0;s=((u=u+Math.imul(k,vt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,e=Math.imul(N,ut),i=(i=Math.imul(N,ot))+Math.imul(z,ut)|0,u=Math.imul(z,ot),e=e+Math.imul(U,at)|0,i=(i=i+Math.imul(U,st)|0)+Math.imul(P,at)|0,u=u+Math.imul(P,st)|0,e=e+Math.imul(O,lt)|0,i=(i=i+Math.imul(O,ct)|0)+Math.imul(j,lt)|0,u=u+Math.imul(j,ct)|0;var Tt=(s+(e=e+Math.imul(R,dt)|0)|0)+((8191&(i=(i=i+Math.imul(R,vt)|0)+Math.imul(I,dt)|0))<<13)|0;s=((u=u+Math.imul(I,vt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,e=Math.imul(N,at),i=(i=Math.imul(N,st))+Math.imul(z,at)|0,u=Math.imul(z,st),e=e+Math.imul(U,lt)|0,i=(i=i+Math.imul(U,ct)|0)+Math.imul(P,lt)|0,u=u+Math.imul(P,ct)|0;var Ot=(s+(e=e+Math.imul(O,dt)|0)|0)+((8191&(i=(i=i+Math.imul(O,vt)|0)+Math.imul(j,dt)|0))<<13)|0;s=((u=u+Math.imul(j,vt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,e=Math.imul(N,lt),i=(i=Math.imul(N,ct))+Math.imul(z,lt)|0,u=Math.imul(z,ct);var jt=(s+(e=e+Math.imul(U,dt)|0)|0)+((8191&(i=(i=i+Math.imul(U,vt)|0)+Math.imul(P,dt)|0))<<13)|0;s=((u=u+Math.imul(P,vt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Lt=(s+(e=Math.imul(N,dt))|0)+((8191&(i=(i=Math.imul(N,vt))+Math.imul(z,dt)|0))<<13)|0;return s=((u=Math.imul(z,vt))+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,a[0]=gt,a[1]=mt,a[2]=yt,a[3]=_t,a[4]=wt,a[5]=Mt,a[6]=bt,a[7]=Bt,a[8]=At,a[9]=xt,a[10]=Et,a[11]=kt,a[12]=St,a[13]=Rt,a[14]=It,a[15]=Tt,a[16]=Ot,a[17]=jt,a[18]=Lt,0!==s&&(a[19]=s,n.length++),n};Math.imul||(B=a),i.prototype.mulTo=function(t,r){var n=this.length+t.length;return 10===this.length&&10===t.length?B(this,t,r):n<63?a(this,t,r):n<1024?s(this,t,r):h(this,t,r)},l.prototype.makeRBT=function(t){for(var r=new Array(t),n=i.prototype._countBits(t)-1,e=0;e<t;e++)r[e]=this.revBin(e,n,t);return r},l.prototype.revBin=function(t,r,n){if(0===t||t===n-1)return t;for(var e=0,i=0;i<r;i++)e|=(1&t)<<r-i-1,t>>=1;return e},l.prototype.permute=function(t,r,n,e,i,u){for(var o=0;o<u;o++)e[o]=r[t[o]],i[o]=n[t[o]]},l.prototype.transform=function(t,r,n,e,i,u){this.permute(u,t,r,n,e,i);for(var o=1;o<i;o<<=1)for(var f=o<<1,a=Math.cos(2*Math.PI/f),s=Math.sin(2*Math.PI/f),h=0;h<i;h+=f)for(var l=a,c=s,p=0;p<o;p++){var d=n[h+p],v=e[h+p],g=n[h+p+o],m=e[h+p+o],y=l*g-c*m;m=l*m+c*g,g=y,n[h+p]=d+g,e[h+p]=v+m,n[h+p+o]=d-g,e[h+p+o]=v-m,p!==f&&(y=a*l-s*c,c=a*c+s*l,l=y)}},l.prototype.guessLen13b=function(t,r){var n=1|Math.max(r,t),e=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+e},l.prototype.conjugate=function(t,r,n){if(!(n<=1))for(var e=0;e<n/2;e++){var i=t[e];t[e]=t[n-e-1],t[n-e-1]=i,i=r[e],r[e]=-r[n-e-1],r[n-e-1]=-i}},l.prototype.normalize13b=function(t,r){for(var n=0,e=0;e<r/2;e++){var i=8192*Math.round(t[2*e+1]/r)+Math.round(t[2*e]/r)+n;t[e]=67108863&i,n=i<67108864?0:i/67108864|0}return t},l.prototype.convert13b=function(t,r,e,i){for(var u=0,o=0;o<r;o++)u+=0|t[o],e[2*o]=8191&u,u>>>=13,e[2*o+1]=8191&u,u>>>=13;for(o=2*r;o<i;++o)e[o]=0;n(0===u),n(0==(-8192&u))},l.prototype.stub=function(t){for(var r=new Array(t),n=0;n<t;n++)r[n]=0;return r},l.prototype.mulp=function(t,r,n){var e=2*this.guessLen13b(t.length,r.length),i=this.makeRBT(e),u=this.stub(e),o=new Array(e),f=new Array(e),a=new Array(e),s=new Array(e),h=new Array(e),l=new Array(e),c=n.words;c.length=e,this.convert13b(t.words,t.length,o,e),this.convert13b(r.words,r.length,s,e),this.transform(o,u,f,a,e,i),this.transform(s,u,h,l,e,i);for(var p=0;p<e;p++){var d=f[p]*h[p]-a[p]*l[p];a[p]=f[p]*l[p]+a[p]*h[p],f[p]=d}return this.conjugate(f,a,e),this.transform(f,a,c,u,e,i),this.conjugate(c,u,e),this.normalize13b(c,e),n.negative=t.negative^r.negative,n.length=t.length+r.length,n.strip()},i.prototype.mul=function(t){var r=new i(null);return r.words=new Array(this.length+t.length),this.mulTo(t,r)},i.prototype.mulf=function(t){var r=new i(null);return r.words=new Array(this.length+t.length),h(this,t,r)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var r=0,e=0;e<this.length;e++){var i=(0|this.words[e])*t,u=(67108863&i)+(67108863&r);r>>=26,r+=i/67108864|0,r+=u>>>26,this.words[e]=67108863&u}return 0!==r&&(this.words[e]=r,this.length++),this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var r=f(t);if(0===r.length)return new i(1);for(var n=this,e=0;e<r.length&&0===r[e];e++,n=n.sqr());if(++e<r.length)for(var u=n.sqr();e<r.length;e++,u=u.sqr())0!==r[e]&&(n=n.mul(u));return n},i.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var r,e=t%26,i=(t-e)/26,u=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(r=0;r<this.length;r++){var f=this.words[r]&u,a=(0|this.words[r])-f<<e;this.words[r]=a|o,o=f>>>26-e}o&&(this.words[r]=o,this.length++)}if(0!==i){for(r=this.length-1;r>=0;r--)this.words[r+i]=this.words[r];for(r=0;r<i;r++)this.words[r]=0;this.length+=i}return this.strip()},i.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,r,e){n("number"==typeof t&&t>=0);var i;i=r?(r-r%26)/26:0;var u=t%26,o=Math.min((t-u)/26,this.length),f=67108863^67108863>>>u<<u,a=e;if(i-=o,i=Math.max(0,i),a){for(var s=0;s<o;s++)a.words[s]=this.words[s];a.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var h=0;for(s=this.length-1;s>=0&&(0!==h||s>=i);s--){var l=0|this.words[s];this.words[s]=h<<26-u|l>>>u,h=l&f}return a&&0!==h&&(a.words[a.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(t,r,e){return n(0===this.negative),this.iushrn(t,r,e)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var r=t%26,e=(t-r)/26,i=1<<r;return!(this.length<=e)&&!!(this.words[e]&i)},i.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var r=t%26,e=(t-r)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=e)return this;if(0!==r&&e++,this.length=Math.min(e,this.length),0!==r){var i=67108863^67108863>>>r<<r;this.words[this.length-1]&=i}return this.strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,r,e){var i,u=t.length+e;this._expand(u);var o,f=0;for(i=0;i<t.length;i++){o=(0|this.words[i+e])+f;var a=(0|t.words[i])*r;f=((o-=67108863&a)>>26)-(a/67108864|0),this.words[i+e]=67108863&o}for(;i<this.length-e;i++)f=(o=(0|this.words[i+e])+f)>>26,this.words[i+e]=67108863&o;if(0===f)return this.strip();for(n(-1===f),f=0,i=0;i<this.length;i++)f=(o=-(0|this.words[i])+f)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(t,r){var n=this.length-t.length,e=this.clone(),u=t,o=0|u.words[u.length-1];0!==(n=26-this._countBits(o))&&(u=u.ushln(n),e.iushln(n),o=0|u.words[u.length-1]);var f,a=e.length-u.length;if("mod"!==r){(f=new i(null)).length=a+1,f.words=new Array(f.length);for(var s=0;s<f.length;s++)f.words[s]=0}var h=e.clone()._ishlnsubmul(u,1,a);0===h.negative&&(e=h,f&&(f.words[a]=1));for(var l=a-1;l>=0;l--){var c=67108864*(0|e.words[u.length+l])+(0|e.words[u.length+l-1]);for(c=Math.min(c/o|0,67108863),e._ishlnsubmul(u,c,l);0!==e.negative;)c--,e.negative=0,e._ishlnsubmul(u,1,l),e.isZero()||(e.negative^=1);f&&(f.words[l]=c)}return f&&f.strip(),e.strip(),"div"!==r&&0!==n&&e.iushrn(n),{div:f||null,mod:e}},i.prototype.divmod=function(t,r,e){if(n(!t.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var u,o,f;return 0!==this.negative&&0===t.negative?(f=this.neg().divmod(t,r),"mod"!==r&&(u=f.div.neg()),"div"!==r&&(o=f.mod.neg(),e&&0!==o.negative&&o.iadd(t)),{div:u,mod:o}):0===this.negative&&0!==t.negative?(f=this.divmod(t.neg(),r),"mod"!==r&&(u=f.div.neg()),{div:u,mod:f.mod}):0!=(this.negative&t.negative)?(f=this.neg().divmod(t.neg(),r),"div"!==r&&(o=f.mod.neg(),e&&0!==o.negative&&o.isub(t)),{div:f.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new i(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modn(t.words[0]))}:this._wordDiv(t,r)},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var n=0!==r.div.negative?r.mod.isub(t):r.mod,e=t.ushrn(1),i=t.andln(1),u=n.cmp(e);return u<0||1===i&&0===u?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(t){n(t<=67108863);for(var r=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(r*e+(0|this.words[i]))%t;return e},i.prototype.idivn=function(t){n(t<=67108863);for(var r=0,e=this.length-1;e>=0;e--){var i=(0|this.words[e])+67108864*r;this.words[e]=i/t|0,r=i%t}return this.strip()},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var r=this,e=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var u=new i(1),o=new i(0),f=new i(0),a=new i(1),s=0;r.isEven()&&e.isEven();)r.iushrn(1),e.iushrn(1),++s;for(var h=e.clone(),l=r.clone();!r.isZero();){for(var c=0,p=1;0==(r.words[0]&p)&&c<26;++c,p<<=1);if(c>0)for(r.iushrn(c);c-- >0;)(u.isOdd()||o.isOdd())&&(u.iadd(h),o.isub(l)),u.iushrn(1),o.iushrn(1);for(var d=0,v=1;0==(e.words[0]&v)&&d<26;++d,v<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(f.isOdd()||a.isOdd())&&(f.iadd(h),a.isub(l)),f.iushrn(1),a.iushrn(1);r.cmp(e)>=0?(r.isub(e),u.isub(f),o.isub(a)):(e.isub(r),f.isub(u),a.isub(o))}return{a:f,b:a,gcd:e.iushln(s)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var r=this,e=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var u=new i(1),o=new i(0),f=e.clone();r.cmpn(1)>0&&e.cmpn(1)>0;){for(var a=0,s=1;0==(r.words[0]&s)&&a<26;++a,s<<=1);if(a>0)for(r.iushrn(a);a-- >0;)u.isOdd()&&u.iadd(f),u.iushrn(1);for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(e)>=0?(r.isub(e),u.isub(o)):(e.isub(r),o.isub(u))}var c;return(c=0===r.cmpn(1)?u:o).cmpn(0)<0&&c.iadd(t),c},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),n=t.clone();r.negative=0,n.negative=0;for(var e=0;r.isEven()&&n.isEven();e++)r.iushrn(1),n.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=r.cmp(n);if(i<0){var u=r;r=n,n=u}else if(0===i||0===n.cmpn(1))break;r.isub(n)}return n.iushln(e)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var r=t%26,e=(t-r)/26,i=1<<r;if(this.length<=e)return this._expand(e+1),this.words[e]|=i,this;for(var u=i,o=e;0!==u&&o<this.length;o++){var f=0|this.words[o];u=(f+=u)>>>26,f&=67108863,this.words[o]=f}return 0!==u&&(this.words[o]=u,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;this.strip();var e;if(this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var r=this.ucmp(t);return 0!==this.negative?0|-r:r},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var e=0|this.words[n],i=0|t.words[n];if(e!==i){e<i?r=-1:e>i&&(r=1);break}}return r},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new m(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var A={k256:null,p224:null,p192:null,p25519:null};c.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},c.prototype.ireduce=function(t){var r,n=t;do{this.split(n,this.tmp),r=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(r>this.n);var e=r<this.n?-1:n.ucmp(this.p);return 0===e?(n.words[0]=0,n.length=1):e>0?n.isub(this.p):n.strip(),n},c.prototype.split=function(t,r){t.iushrn(this.n,0,r)},c.prototype.imulK=function(t){return t.imul(this.k)},e(p,c),p.prototype.split=function(t,r){for(var n=Math.min(t.length,9),e=0;e<n;e++)r.words[e]=t.words[e];if(r.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(r.words[r.length++]=4194303&i,e=10;e<t.length;e++){var u=0|t.words[e];t.words[e-10]=(4194303&u)<<4|i>>>22,i=u}i>>>=22,t.words[e-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},p.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,n=0;n<t.length;n++){var e=0|t.words[n];r+=977*e,t.words[n]=67108863&r,r=64*e+(r/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},e(d,c),e(v,c),e(g,c),g.prototype.imulK=function(t){for(var r=0,n=0;n<t.length;n++){var e=19*(0|t.words[n])+r,i=67108863&e;e>>>=26,t.words[n]=i,r=e}return 0!==r&&(t.words[t.length++]=r),t},i._prime=function(t){if(A[t])return A[t];var r;if("k256"===t)r=new p;else if("p224"===t)r=new d;else if("p192"===t)r=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new g}return A[t]=r,r},m.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,r){n(0==(t.negative|r.negative),"red works only with positives"),n(t.red&&t.red===r.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,r){this._verify2(t,r);var n=t.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},m.prototype.iadd=function(t,r){this._verify2(t,r);var n=t.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},m.prototype.sub=function(t,r){this._verify2(t,r);var n=t.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},m.prototype.isub=function(t,r){this._verify2(t,r);var n=t.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},m.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},m.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},m.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(n(r%2==1),3===r){var e=this.m.add(new i(1)).iushrn(2);return this.pow(t,e)}for(var u=this.m.subn(1),o=0;!u.isZero()&&0===u.andln(1);)o++,u.iushrn(1);n(!u.isZero());var f=new i(1).toRed(this),a=f.redNeg(),s=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new i(2*h*h).toRed(this);0!==this.pow(h,s).cmp(a);)h.redIAdd(a);for(var l=this.pow(h,u),c=this.pow(t,u.addn(1).iushrn(1)),p=this.pow(t,u),d=o;0!==p.cmp(f);){for(var v=p,g=0;0!==v.cmp(f);g++)v=v.redSqr();n(g<d);var m=this.pow(l,new i(1).iushln(d-g-1));c=c.redMul(m),l=m.redSqr(),p=p.redMul(l),d=g}return c},m.prototype.invm=function(t){var r=t._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},m.prototype.pow=function(t,r){if(r.isZero())return new i(1).toRed(this);if(0===r.cmpn(1))return t.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=t;for(var e=2;e<n.length;e++)n[e]=this.mul(n[e-1],t);var u=n[0],o=0,f=0,a=r.bitLength()%26;for(0===a&&(a=26),e=r.length-1;e>=0;e--){for(var s=r.words[e],h=a-1;h>=0;h--){var l=s>>h&1;u!==n[0]&&(u=this.sqr(u)),0!==l||0!==o?(o<<=1,o|=l,(4===++f||0===e&&0===h)&&(u=this.mul(u,n[o]),f=0,o=0)):f=0}a=26}return u},m.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},m.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},i.mont=function(t){return new y(t)},e(y,m),y.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},y.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},y.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(r),e=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},y.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new i(0)._forceRed(this);var n=t.mul(r),e=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(e).iushrn(this.shift),o=u;return u.cmp(this.m)>=0?o=u.isub(this.m):u.cmpn(0)<0&&(o=u.iadd(this.m)),o._forceRed(this)},y.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,commonjsGlobal)}),lodash=createCommonjsModule(function(t,r){(function(){function n(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}function e(t,r,n,e){for(var i=-1,u=null==t?0:t.length;++i<u;){var o=t[i];r(e,o,n(o),t)}return e}function i(t,r){for(var n=-1,e=null==t?0:t.length;++n<e&&!1!==r(t[n],n,t););return t}function u(t,r){for(var n=null==t?0:t.length;n--&&!1!==r(t[n],n,t););return t}function o(t,r){for(var n=-1,e=null==t?0:t.length;++n<e;)if(!r(t[n],n,t))return!1;return!0}function f(t,r){for(var n=-1,e=null==t?0:t.length,i=0,u=[];++n<e;){var o=t[n];r(o,n,t)&&(u[i++]=o)}return u}function a(t,r){return!!(null==t?0:t.length)&&_(t,r,0)>-1}function s(t,r,n){for(var e=-1,i=null==t?0:t.length;++e<i;)if(n(r,t[e]))return!0;return!1}function h(t,r){for(var n=-1,e=null==t?0:t.length,i=Array(e);++n<e;)i[n]=r(t[n],n,t);return i}function l(t,r){for(var n=-1,e=r.length,i=t.length;++n<e;)t[i+n]=r[n];return t}function c(t,r,n,e){var i=-1,u=null==t?0:t.length;for(e&&u&&(n=t[++i]);++i<u;)n=r(n,t[i],i,t);return n}function p(t,r,n,e){var i=null==t?0:t.length;for(e&&i&&(n=t[--i]);i--;)n=r(n,t[i],i,t);return n}function d(t,r){for(var n=-1,e=null==t?0:t.length;++n<e;)if(r(t[n],n,t))return!0;return!1}function v(t){return t.split("")}function g(t){return t.match(Or)||[]}function m(t,r,n){var e;return n(t,function(t,n,i){if(r(t,n,i))return e=n,!1}),e}function y(t,r,n,e){for(var i=t.length,u=n+(e?1:-1);e?u--:++u<i;)if(r(t[u],u,t))return u;return-1}function _(t,r,n){return r===r?G(t,r,n):y(t,M,n)}function w(t,r,n,e){for(var i=n-1,u=t.length;++i<u;)if(e(t[i],r))return i;return-1}function M(t){return t!==t}function b(t,r){var n=null==t?0:t.length;return n?k(t,r)/n:Tt}function B(t){return function(r){return null==r?tt:r[t]}}function A(t){return function(r){return null==t?tt:t[r]}}function x(t,r,n,e,i){return i(t,function(t,i,u){n=e?(e=!1,t):r(n,t,i,u)}),n}function E(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}function k(t,r){for(var n,e=-1,i=t.length;++e<i;){var u=r(t[e]);u!==tt&&(n=n===tt?u:n+u)}return n}function S(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}function R(t,r){return h(r,function(r){return[r,t[r]]})}function I(t){return function(r){return t(r)}}function T(t,r){return h(r,function(r){return t[r]})}function O(t,r){return t.has(r)}function j(t,r){for(var n=-1,e=t.length;++n<e&&_(r,t[n],0)>-1;);return n}function L(t,r){for(var n=t.length;n--&&_(r,t[n],0)>-1;);return n}function U(t,r){for(var n=t.length,e=0;n--;)t[n]===r&&++e;return e}function P(t){return"\\"+yn[t]}function C(t,r){return null==t?tt:t[r]}function N(t){return sn.test(t)}function z(t){return hn.test(t)}function $(t){for(var r,n=[];!(r=t.next()).done;)n.push(r.value);return n}function W(t){var r=-1,n=Array(t.size);return t.forEach(function(t,e){n[++r]=[e,t]}),n}function D(t,r){return function(n){return t(r(n))}}function Y(t,r){for(var n=-1,e=t.length,i=0,u=[];++n<e;){var o=t[n];o!==r&&o!==ot||(t[n]=ot,u[i++]=n)}return u}function q(t,r){return"__proto__"==r?tt:t[r]}function F(t){var r=-1,n=Array(t.size);return t.forEach(function(t){n[++r]=t}),n}function Z(t){var r=-1,n=Array(t.size);return t.forEach(function(t){n[++r]=[t,t]}),n}function G(t,r,n){for(var e=n-1,i=t.length;++e<i;)if(t[e]===r)return e;return-1}function V(t,r,n){for(var e=n+1;e--;)if(t[e]===r)return e;return e}function K(t){return N(t)?X(t):Un(t)}function H(t){return N(t)?J(t):v(t)}function X(t){for(var r=fn.lastIndex=0;fn.test(t);)++r;return r}function J(t){return t.match(fn)||[]}function Q(t){return t.match(an)||[]}var tt,rt=200,nt="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",et="Expected a function",it="__lodash_hash_undefined__",ut=500,ot="__lodash_placeholder__",ft=1,at=2,st=4,ht=1,lt=2,ct=1,pt=2,dt=4,vt=8,gt=16,mt=32,yt=64,_t=128,wt=256,Mt=512,bt=30,Bt="...",At=800,xt=16,Et=1,kt=2,St=1/0,Rt=9007199254740991,It=1.7976931348623157e308,Tt=NaN,Ot=4294967295,jt=Ot-1,Lt=Ot>>>1,Ut=[["ary",_t],["bind",ct],["bindKey",pt],["curry",vt],["curryRight",gt],["flip",Mt],["partial",mt],["partialRight",yt],["rearg",wt]],Pt="[object Arguments]",Ct="[object Array]",Nt="[object AsyncFunction]",zt="[object Boolean]",$t="[object Date]",Wt="[object DOMException]",Dt="[object Error]",Yt="[object Function]",qt="[object GeneratorFunction]",Ft="[object Map]",Zt="[object Number]",Gt="[object Null]",Vt="[object Object]",Kt="[object Proxy]",Ht="[object RegExp]",Xt="[object Set]",Jt="[object String]",Qt="[object Symbol]",tr="[object Undefined]",rr="[object WeakMap]",nr="[object WeakSet]",er="[object ArrayBuffer]",ir="[object DataView]",ur="[object Float32Array]",or="[object Float64Array]",fr="[object Int8Array]",ar="[object Int16Array]",sr="[object Int32Array]",hr="[object Uint8Array]",lr="[object Uint8ClampedArray]",cr="[object Uint16Array]",pr="[object Uint32Array]",dr=/\b__p \+= '';/g,vr=/\b(__p \+=) '' \+/g,gr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mr=/&(?:amp|lt|gt|quot|#39);/g,yr=/[&<>"']/g,_r=RegExp(mr.source),wr=RegExp(yr.source),Mr=/<%=([\s\S]+?)%>/g,br=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Br=/^\w*$/,Ar=/[\\^$.*+?()[\]{}|]/g,xr=RegExp(Ar.source),Er=/^\s+|\s+$/g,kr=/^\s+/,Sr=/\s+$/,Rr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ir=/\{\n\/\* \[wrapped with (.+)\] \*/,Tr=/,? & /,Or=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lr=/\w*$/,Ur=/^[-+]0x[0-9a-f]+$/i,Pr=/^0b[01]+$/i,Cr=/^\[object .+?Constructor\]$/,Nr=/^0o[0-7]+$/i,zr=/^(?:0|[1-9]\d*)$/,$r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wr=/($^)/,Dr=/['\n\r\u2028\u2029\\]/g,Yr="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",qr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Fr="["+qr+"]",Zr="["+Yr+"]",Gr="[a-z\\xdf-\\xf6\\xf8-\\xff]",Vr="[^\\ud800-\\udfff"+qr+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Kr="\\ud83c[\\udffb-\\udfff]",Hr="(?:\\ud83c[\\udde6-\\uddff]){2}",Xr="[\\ud800-\\udbff][\\udc00-\\udfff]",Jr="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Qr="(?:"+Gr+"|"+Vr+")",tn="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",rn="[\\ufe0e\\ufe0f]?"+tn+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Hr,Xr].join("|")+")[\\ufe0e\\ufe0f]?"+tn+")*"),nn="(?:"+["[\\u2700-\\u27bf]",Hr,Xr].join("|")+")"+rn,en="(?:"+["[^\\ud800-\\udfff]"+Zr+"?",Zr,Hr,Xr,"[\\ud800-\\udfff]"].join("|")+")",un=RegExp("['’]","g"),on=RegExp(Zr,"g"),fn=RegExp(Kr+"(?="+Kr+")|"+en+rn,"g"),an=RegExp([Jr+"?"+Gr+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Fr,Jr,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Fr,Jr+Qr,"$"].join("|")+")",Jr+"?"+Qr+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Jr+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",nn].join("|"),"g"),sn=RegExp("[\\u200d\\ud800-\\udfff"+Yr+"\\ufe0e\\ufe0f]"),hn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ln=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],cn=-1,pn={};pn[ur]=pn[or]=pn[fr]=pn[ar]=pn[sr]=pn[hr]=pn[lr]=pn[cr]=pn[pr]=!0,pn[Pt]=pn[Ct]=pn[er]=pn[zt]=pn[ir]=pn[$t]=pn[Dt]=pn[Yt]=pn[Ft]=pn[Zt]=pn[Vt]=pn[Ht]=pn[Xt]=pn[Jt]=pn[rr]=!1;var dn={};dn[Pt]=dn[Ct]=dn[er]=dn[ir]=dn[zt]=dn[$t]=dn[ur]=dn[or]=dn[fr]=dn[ar]=dn[sr]=dn[Ft]=dn[Zt]=dn[Vt]=dn[Ht]=dn[Xt]=dn[Jt]=dn[Qt]=dn[hr]=dn[lr]=dn[cr]=dn[pr]=!0,dn[Dt]=dn[Yt]=dn[rr]=!1;var vn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},gn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},mn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},yn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_n=parseFloat,wn=parseInt,Mn="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,bn="object"==typeof self&&self&&self.Object===Object&&self,Bn=Mn||bn||Function("return this")(),An=r&&!r.nodeType&&r,xn=An&&!0&&t&&!t.nodeType&&t,En=xn&&xn.exports===An,kn=En&&Mn.process,Sn=function(){try{var t=xn&&xn.require&&xn.require("util").types;return t||kn&&kn.binding&&kn.binding("util")}catch(t){}}(),Rn=Sn&&Sn.isArrayBuffer,In=Sn&&Sn.isDate,Tn=Sn&&Sn.isMap,On=Sn&&Sn.isRegExp,jn=Sn&&Sn.isSet,Ln=Sn&&Sn.isTypedArray,Un=B("length"),Pn=A(vn),Cn=A(gn),Nn=A(mn),zn=function t(r){function v(t){if(Jf(t)&&!sc(t)&&!(t instanceof X)){if(t instanceof G)return t;if(sh.call(t,"__wrapped__"))return Gu(t)}return new G(t)}function A(){}function G(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=tt}function X(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ot,this.__views__=[]}function J(){var t=new X(this.__wrapped__);return t.__actions__=Ri(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ri(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ri(this.__views__),t}function Or(){if(this.__filtered__){var t=new X(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t}function Yr(){var t=this.__wrapped__.value(),r=this.__dir__,n=sc(t),e=r<0,i=n?t.length:0,u=yu(0,i,this.__views__),o=u.start,f=u.end,a=f-o,s=e?f:o-1,h=this.__iteratees__,l=h.length,c=0,p=zh(a,this.__takeCount__);if(!n||!e&&i==a&&p==a)return ci(t,this.__actions__);var d=[];t:for(;a--&&c<p;){for(var v=-1,g=t[s+=r];++v<l;){var m=h[v],y=m.iteratee,_=m.type,w=y(g);if(_==kt)g=w;else if(!w){if(_==Et)continue t;break t}}d[c++]=g}return d}function qr(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function Fr(){this.__data__=Kh?Kh(null):{},this.size=0}function Zr(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function Gr(t){var r=this.__data__;if(Kh){var n=r[t];return n===it?tt:n}return sh.call(r,t)?r[t]:tt}function Vr(t){var r=this.__data__;return Kh?r[t]!==tt:sh.call(r,t)}function Kr(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Kh&&r===tt?it:r,this}function Hr(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function Xr(){this.__data__=[],this.size=0}function Jr(t){var r=this.__data__,n=qn(r,t);return!(n<0)&&(n==r.length-1?r.pop():Bh.call(r,n,1),--this.size,!0)}function Qr(t){var r=this.__data__,n=qn(r,t);return n<0?tt:r[n][1]}function tn(t){return qn(this.__data__,t)>-1}function rn(t,r){var n=this.__data__,e=qn(n,t);return e<0?(++this.size,n.push([t,r])):n[e][1]=r,this}function nn(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function en(){this.size=0,this.__data__={hash:new qr,map:new(Fh||Hr),string:new qr}}function fn(t){var r=du(this,t).delete(t);return this.size-=r?1:0,r}function an(t){return du(this,t).get(t)}function sn(t){return du(this,t).has(t)}function hn(t,r){var n=du(this,t),e=n.size;return n.set(t,r),this.size+=n.size==e?0:1,this}function vn(t){var r=-1,n=null==t?0:t.length;for(this.__data__=new nn;++r<n;)this.add(t[r])}function gn(t){return this.__data__.set(t,it),this}function mn(t){return this.__data__.has(t)}function yn(t){var r=this.__data__=new Hr(t);this.size=r.size}function Mn(){this.__data__=new Hr,this.size=0}function bn(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}function An(t){return this.__data__.get(t)}function xn(t){return this.__data__.has(t)}function kn(t,r){var n=this.__data__;if(n instanceof Hr){var e=n.__data__;if(!Fh||e.length<rt-1)return e.push([t,r]),this.size=++n.size,this;n=this.__data__=new nn(e)}return n.set(t,r),this.size=n.size,this}function Sn(t,r){var n=sc(t),e=!n&&ac(t),i=!n&&!e&&lc(t),u=!n&&!e&&!i&&gc(t),o=n||e||i||u,f=o?S(t.length,nh):[],a=f.length;for(var s in t)!r&&!sh.call(t,s)||o&&("length"==s||i&&("offset"==s||"parent"==s)||u&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Eu(s,a))||f.push(s);return f}function Un(t){var r=t.length;return r?t[Ge(0,r-1)]:tt}function $n(t,r){return Yu(Ri(t),Hn(r,0,t.length))}function Wn(t){return Yu(Ri(t))}function Dn(t,r,n){(n===tt||Nf(t[r],n))&&(n!==tt||r in t)||Vn(t,r,n)}function Yn(t,r,n){var e=t[r];sh.call(t,r)&&Nf(e,n)&&(n!==tt||r in t)||Vn(t,r,n)}function qn(t,r){for(var n=t.length;n--;)if(Nf(t[n][0],r))return n;return-1}function Fn(t,r,n,e){return fl(t,function(t,i,u){r(e,t,n(t),u)}),e}function Zn(t,r){return t&&Ii(r,ja(r),t)}function Gn(t,r){return t&&Ii(r,La(r),t)}function Vn(t,r,n){"__proto__"==r&&kh?kh(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n}function Kn(t,r){for(var n=-1,e=r.length,i=Ks(e),u=null==t;++n<e;)i[n]=u?tt:Ia(t,r[n]);return i}function Hn(t,r,n){return t===t&&(n!==tt&&(t=t<=n?t:n),r!==tt&&(t=t>=r?t:r)),t}function Xn(t,r,n,e,u,o){var f,a=r&ft,s=r&at,h=r&st;if(n&&(f=u?n(t,e,u,o):n(t)),f!==tt)return f;if(!Xf(t))return t;var l=sc(t);if(l){if(f=Mu(t),!a)return Ri(t,f)}else{var c=_l(t),p=c==Yt||c==qt;if(lc(t))return _i(t,a);if(c==Vt||c==Pt||p&&!u){if(f=s||p?{}:bu(t),!a)return s?Oi(t,Gn(f,t)):Ti(t,Zn(f,t))}else{if(!dn[c])return u?t:{};f=Bu(t,c,a)}}o||(o=new yn);var d=o.get(t);if(d)return d;if(o.set(t,f),vc(t))return t.forEach(function(e){f.add(Xn(e,r,n,e,t,o))}),f;if(pc(t))return t.forEach(function(e,i){f.set(i,Xn(e,r,n,i,t,o))}),f;var v=h?s?hu:su:s?La:ja,g=l?tt:v(t);return i(g||t,function(e,i){g&&(e=t[i=e]),Yn(f,i,Xn(e,r,n,i,t,o))}),f}function Jn(t){var r=ja(t);return function(n){return Qn(n,t,r)}}function Qn(t,r,n){var e=n.length;if(null==t)return!e;for(t=th(t);e--;){var i=n[e],u=r[i],o=t[i];if(o===tt&&!(i in t)||!u(o))return!1}return!0}function te(t,r,n){if("function"!=typeof t)throw new eh(et);return bl(function(){t.apply(tt,n)},r)}function re(t,r,n,e){var i=-1,u=a,o=!0,f=t.length,l=[],c=r.length;if(!f)return l;n&&(r=h(r,I(n))),e?(u=s,o=!1):r.length>=rt&&(u=O,o=!1,r=new vn(r));t:for(;++i<f;){var p=t[i],d=null==n?p:n(p);if(p=e||0!==p?p:0,o&&d===d){for(var v=c;v--;)if(r[v]===d)continue t;l.push(p)}else u(r,d,e)||l.push(p)}return l}function ne(t,r){var n=!0;return fl(t,function(t,e,i){return n=!!r(t,e,i)}),n}function ee(t,r,n){for(var e=-1,i=t.length;++e<i;){var u=t[e],o=r(u);if(null!=o&&(f===tt?o===o&&!sa(o):n(o,f)))var f=o,a=u}return a}function ie(t,r,n,e){var i=t.length;for((n=va(n))<0&&(n=-n>i?0:i+n),(e=e===tt||e>i?i:va(e))<0&&(e+=i),e=n>e?0:ga(e);n<e;)t[n++]=r;return t}function ue(t,r){var n=[];return fl(t,function(t,e,i){r(t,e,i)&&n.push(t)}),n}function oe(t,r,n,e,i){var u=-1,o=t.length;for(n||(n=xu),i||(i=[]);++u<o;){var f=t[u];r>0&&n(f)?r>1?oe(f,r-1,n,e,i):l(i,f):e||(i[i.length]=f)}return i}function fe(t,r){return t&&sl(t,r,ja)}function ae(t,r){return t&&hl(t,r,ja)}function se(t,r){return f(r,function(r){return Vf(t[r])})}function he(t,r){for(var n=0,e=(r=mi(r,t)).length;null!=t&&n<e;)t=t[qu(r[n++])];return n&&n==e?t:tt}function le(t,r,n){var e=r(t);return sc(t)?e:l(e,n(t))}function ce(t){return null==t?t===tt?tr:Gt:Eh&&Eh in th(t)?mu(t):Cu(t)}function pe(t,r){return t>r}function de(t,r){return null!=t&&sh.call(t,r)}function ve(t,r){return null!=t&&r in th(t)}function ge(t,r,n){return t>=zh(r,n)&&t<Nh(r,n)}function me(t,r,n){for(var e=n?s:a,i=t[0].length,u=t.length,o=u,f=Ks(u),l=1/0,c=[];o--;){var p=t[o];o&&r&&(p=h(p,I(r))),l=zh(p.length,l),f[o]=!n&&(r||i>=120&&p.length>=120)?new vn(o&&p):tt}p=t[0];var d=-1,v=f[0];t:for(;++d<i&&c.length<l;){var g=p[d],m=r?r(g):g;if(g=n||0!==g?g:0,!(v?O(v,m):e(c,m,n))){for(o=u;--o;){var y=f[o];if(!(y?O(y,m):e(t[o],m,n)))continue t}v&&v.push(m),c.push(g)}}return c}function ye(t,r,n,e){return fe(t,function(t,i,u){r(e,n(t),i,u)}),e}function _e(t,r,e){var i=null==(t=zu(t,r=mi(r,t)))?t:t[qu(co(r))];return null==i?tt:n(i,t,e)}function we(t){return Jf(t)&&ce(t)==Pt}function Me(t){return Jf(t)&&ce(t)==er}function be(t){return Jf(t)&&ce(t)==$t}function Be(t,r,n,e,i){return t===r||(null==t||null==r||!Jf(t)&&!Jf(r)?t!==t&&r!==r:Ae(t,r,n,e,Be,i))}function Ae(t,r,n,e,i,u){var o=sc(t),f=sc(r),a=o?Ct:_l(t),s=f?Ct:_l(r),h=(a=a==Pt?Vt:a)==Vt,l=(s=s==Pt?Vt:s)==Vt,c=a==s;if(c&&lc(t)){if(!lc(r))return!1;o=!0,h=!1}if(c&&!h)return u||(u=new yn),o||gc(t)?uu(t,r,n,e,i,u):ou(t,r,a,n,e,i,u);if(!(n&ht)){var p=h&&sh.call(t,"__wrapped__"),d=l&&sh.call(r,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?r.value():r;return u||(u=new yn),i(v,g,n,e,u)}}return!!c&&(u||(u=new yn),fu(t,r,n,e,i,u))}function xe(t){return Jf(t)&&_l(t)==Ft}function Ee(t,r,n,e){var i=n.length,u=i,o=!e;if(null==t)return!u;for(t=th(t);i--;){var f=n[i];if(o&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++i<u;){var a=(f=n[i])[0],s=t[a],h=f[1];if(o&&f[2]){if(s===tt&&!(a in t))return!1}else{var l=new yn;if(e)var c=e(s,h,a,t,r,l);if(!(c===tt?Be(h,s,ht|lt,e,l):c))return!1}}return!0}function ke(t){return!(!Xf(t)||Tu(t))&&(Vf(t)?vh:Cr).test(Fu(t))}function Se(t){return Jf(t)&&ce(t)==Ht}function Re(t){return Jf(t)&&_l(t)==Xt}function Ie(t){return Jf(t)&&Hf(t.length)&&!!pn[ce(t)]}function Te(t){return"function"==typeof t?t:null==t?Bs:"object"==typeof t?sc(t)?Ce(t[0],t[1]):Pe(t):Ts(t)}function Oe(t){if(!Ou(t))return Ch(t);var r=[];for(var n in th(t))sh.call(t,n)&&"constructor"!=n&&r.push(n);return r}function je(t){if(!Xf(t))return Pu(t);var r=Ou(t),n=[];for(var e in t)("constructor"!=e||!r&&sh.call(t,e))&&n.push(e);return n}function Le(t,r){return t<r}function Ue(t,r){var n=-1,e=zf(t)?Ks(t.length):[];return fl(t,function(t,i,u){e[++n]=r(t,i,u)}),e}function Pe(t){var r=vu(t);return 1==r.length&&r[0][2]?Lu(r[0][0],r[0][1]):function(n){return n===t||Ee(n,t,r)}}function Ce(t,r){return Su(t)&&ju(r)?Lu(qu(t),r):function(n){var e=Ia(n,t);return e===tt&&e===r?Oa(n,t):Be(r,e,ht|lt)}}function Ne(t,r,n,e,i){t!==r&&sl(r,function(u,o){if(Xf(u))i||(i=new yn),ze(t,r,o,n,Ne,e,i);else{var f=e?e(q(t,o),u,o+"",t,r,i):tt;f===tt&&(f=u),Dn(t,o,f)}},La)}function ze(t,r,n,e,i,u,o){var f=q(t,n),a=q(r,n),s=o.get(a);if(s)return void Dn(t,n,s);var h=u?u(f,a,n+"",t,r,o):tt,l=h===tt;if(l){var c=sc(a),p=!c&&lc(a),d=!c&&!p&&gc(a);h=a,c||p||d?sc(f)?h=f:$f(f)?h=Ri(f):p?(l=!1,h=_i(a,!0)):d?(l=!1,h=Ai(a,!0)):h=[]:oa(a)||ac(a)?(h=f,ac(f)?h=ya(f):(!Xf(f)||e&&Vf(f))&&(h=bu(a))):l=!1}l&&(o.set(a,h),i(h,a,e,u,o),o.delete(a)),Dn(t,n,h)}function $e(t,r){var n=t.length;if(n)return r+=r<0?n:0,Eu(r,n)?t[r]:tt}function We(t,r,n){var e=-1;return r=h(r.length?r:[Bs],I(pu())),E(Ue(t,function(t,n,i){return{criteria:h(r,function(r){return r(t)}),index:++e,value:t}}),function(t,r){return Ei(t,r,n)})}function De(t,r){return Ye(t,r,function(r,n){return Oa(t,n)})}function Ye(t,r,n){for(var e=-1,i=r.length,u={};++e<i;){var o=r[e],f=he(t,o);n(f,o)&&Qe(u,mi(o,t),f)}return u}function qe(t){return function(r){return he(r,t)}}function Fe(t,r,n,e){var i=e?w:_,u=-1,o=r.length,f=t;for(t===r&&(r=Ri(r)),n&&(f=h(t,I(n)));++u<o;)for(var a=0,s=r[u],l=n?n(s):s;(a=i(f,l,a,e))>-1;)f!==t&&Bh.call(f,a,1),Bh.call(t,a,1);return t}function Ze(t,r){for(var n=t?r.length:0,e=n-1;n--;){var i=r[n];if(n==e||i!==u){var u=i;Eu(i)?Bh.call(t,i,1):si(t,i)}}return t}function Ge(t,r){return t+Oh(Dh()*(r-t+1))}function Ve(t,r,n,e){for(var i=-1,u=Nh(Th((r-t)/(n||1)),0),o=Ks(u);u--;)o[e?u:++i]=t,t+=n;return o}function Ke(t,r){var n="";if(!t||r<1||r>Rt)return n;do{r%2&&(n+=t),(r=Oh(r/2))&&(t+=t)}while(r);return n}function He(t,r){return Bl(Nu(t,r,Bs),t+"")}function Xe(t){return Un(Za(t))}function Je(t,r){var n=Za(t);return Yu(n,Hn(r,0,n.length))}function Qe(t,r,n,e){if(!Xf(t))return t;for(var i=-1,u=(r=mi(r,t)).length,o=u-1,f=t;null!=f&&++i<u;){var a=qu(r[i]),s=n;if(i!=o){var h=f[a];(s=e?e(h,a,f):tt)===tt&&(s=Xf(h)?h:Eu(r[i+1])?[]:{})}Yn(f,a,s),f=f[a]}return t}function ti(t){return Yu(Za(t))}function ri(t,r,n){var e=-1,i=t.length;r<0&&(r=-r>i?0:i+r),(n=n>i?i:n)<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var u=Ks(i);++e<i;)u[e]=t[e+r];return u}function ni(t,r){var n;return fl(t,function(t,e,i){return!(n=r(t,e,i))}),!!n}function ei(t,r,n){var e=0,i=null==t?e:t.length;if("number"==typeof r&&r===r&&i<=Lt){for(;e<i;){var u=e+i>>>1,o=t[u];null!==o&&!sa(o)&&(n?o<=r:o<r)?e=u+1:i=u}return i}return ii(t,r,Bs,n)}function ii(t,r,n,e){r=n(r);for(var i=0,u=null==t?0:t.length,o=r!==r,f=null===r,a=sa(r),s=r===tt;i<u;){var h=Oh((i+u)/2),l=n(t[h]),c=l!==tt,p=null===l,d=l===l,v=sa(l);if(o)var g=e||d;else g=s?d&&(e||c):f?d&&c&&(e||!p):a?d&&c&&!p&&(e||!v):!p&&!v&&(e?l<=r:l<r);g?i=h+1:u=h}return zh(u,jt)}function ui(t,r){for(var n=-1,e=t.length,i=0,u=[];++n<e;){var o=t[n],f=r?r(o):o;if(!n||!Nf(f,a)){var a=f;u[i++]=0===o?0:o}}return u}function oi(t){return"number"==typeof t?t:sa(t)?Tt:+t}function fi(t){if("string"==typeof t)return t;if(sc(t))return h(t,fi)+"";if(sa(t))return ul?ul.call(t):"";var r=t+"";return"0"==r&&1/t==-St?"-0":r}function ai(t,r,n){var e=-1,i=a,u=t.length,o=!0,f=[],h=f;if(n)o=!1,i=s;else if(u>=rt){var l=r?null:vl(t);if(l)return F(l);o=!1,i=O,h=new vn}else h=r?[]:f;t:for(;++e<u;){var c=t[e],p=r?r(c):c;if(c=n||0!==c?c:0,o&&p===p){for(var d=h.length;d--;)if(h[d]===p)continue t;r&&h.push(p),f.push(c)}else i(h,p,n)||(h!==f&&h.push(p),f.push(c))}return f}function si(t,r){return r=mi(r,t),null==(t=zu(t,r))||delete t[qu(co(r))]}function hi(t,r,n,e){return Qe(t,r,n(he(t,r)),e)}function li(t,r,n,e){for(var i=t.length,u=e?i:-1;(e?u--:++u<i)&&r(t[u],u,t););return n?ri(t,e?0:u,e?u+1:i):ri(t,e?u+1:0,e?i:u)}function ci(t,r){var n=t;return n instanceof X&&(n=n.value()),c(r,function(t,r){return r.func.apply(r.thisArg,l([t],r.args))},n)}function pi(t,r,n){var e=t.length;if(e<2)return e?ai(t[0]):[];for(var i=-1,u=Ks(e);++i<e;)for(var o=t[i],f=-1;++f<e;)f!=i&&(u[i]=re(u[i]||o,t[f],r,n));return ai(oe(u,1),r,n)}function di(t,r,n){for(var e=-1,i=t.length,u=r.length,o={};++e<i;){var f=e<u?r[e]:tt;n(o,t[e],f)}return o}function vi(t){return $f(t)?t:[]}function gi(t){return"function"==typeof t?t:Bs}function mi(t,r){return sc(t)?t:Su(t,r)?[t]:Al(wa(t))}function yi(t,r,n){var e=t.length;return n=n===tt?e:n,!r&&n>=e?t:ri(t,r,n)}function _i(t,r){if(r)return t.slice();var n=t.length,e=_h?_h(n):new t.constructor(n);return t.copy(e),e}function wi(t){var r=new t.constructor(t.byteLength);return new yh(r).set(new yh(t)),r}function Mi(t,r){var n=r?wi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function bi(t){var r=new t.constructor(t.source,Lr.exec(t));return r.lastIndex=t.lastIndex,r}function Bi(t){return il?th(il.call(t)):{}}function Ai(t,r){var n=r?wi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function xi(t,r){if(t!==r){var n=t!==tt,e=null===t,i=t===t,u=sa(t),o=r!==tt,f=null===r,a=r===r,s=sa(r);if(!f&&!s&&!u&&t>r||u&&o&&a&&!f&&!s||e&&o&&a||!n&&a||!i)return 1;if(!e&&!u&&!s&&t<r||s&&n&&i&&!e&&!u||f&&n&&i||!o&&i||!a)return-1}return 0}function Ei(t,r,n){for(var e=-1,i=t.criteria,u=r.criteria,o=i.length,f=n.length;++e<o;){var a=xi(i[e],u[e]);if(a)return e>=f?a:a*("desc"==n[e]?-1:1)}return t.index-r.index}function ki(t,r,n,e){for(var i=-1,u=t.length,o=n.length,f=-1,a=r.length,s=Nh(u-o,0),h=Ks(a+s),l=!e;++f<a;)h[f]=r[f];for(;++i<o;)(l||i<u)&&(h[n[i]]=t[i]);for(;s--;)h[f++]=t[i++];return h}function Si(t,r,n,e){for(var i=-1,u=t.length,o=-1,f=n.length,a=-1,s=r.length,h=Nh(u-f,0),l=Ks(h+s),c=!e;++i<h;)l[i]=t[i];for(var p=i;++a<s;)l[p+a]=r[a];for(;++o<f;)(c||i<u)&&(l[p+n[o]]=t[i++]);return l}function Ri(t,r){var n=-1,e=t.length;for(r||(r=Ks(e));++n<e;)r[n]=t[n];return r}function Ii(t,r,n,e){var i=!n;n||(n={});for(var u=-1,o=r.length;++u<o;){var f=r[u],a=e?e(n[f],t[f],f,n,t):tt;a===tt&&(a=t[f]),i?Vn(n,f,a):Yn(n,f,a)}return n}function Ti(t,r){return Ii(t,ml(t),r)}function Oi(t,r){return Ii(t,yl(t),r)}function ji(t,r){return function(n,i){var u=sc(n)?e:Fn,o=r?r():{};return u(n,t,pu(i,2),o)}}function Li(t){return He(function(r,n){var e=-1,i=n.length,u=i>1?n[i-1]:tt,o=i>2?n[2]:tt;for(u=t.length>3&&"function"==typeof u?(i--,u):tt,o&&ku(n[0],n[1],o)&&(u=i<3?tt:u,i=1),r=th(r);++e<i;){var f=n[e];f&&t(r,f,e,u)}return r})}function Ui(t,r){return function(n,e){if(null==n)return n;if(!zf(n))return t(n,e);for(var i=n.length,u=r?i:-1,o=th(n);(r?u--:++u<i)&&!1!==e(o[u],u,o););return n}}function Pi(t){return function(r,n,e){for(var i=-1,u=th(r),o=e(r),f=o.length;f--;){var a=o[t?f:++i];if(!1===n(u[a],a,u))break}return r}}function Ci(t,r,n){function e(){return(this&&this!==Bn&&this instanceof e?u:t).apply(i?n:this,arguments)}var i=r&ct,u=$i(t);return e}function Ni(t){return function(r){var n=N(r=wa(r))?H(r):tt,e=n?n[0]:r.charAt(0),i=n?yi(n,1).join(""):r.slice(1);return e[t]()+i}}function zi(t){return function(r){return c(ys(Ja(r).replace(un,"")),t,"")}}function $i(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var n=ol(t.prototype),e=t.apply(n,r);return Xf(e)?e:n}}function Wi(t,r,e){function i(){for(var o=arguments.length,f=Ks(o),a=o,s=cu(i);a--;)f[a]=arguments[a];var h=o<3&&f[0]!==s&&f[o-1]!==s?[]:Y(f,s);return(o-=h.length)<e?Ji(t,r,qi,i.placeholder,tt,f,h,tt,tt,e-o):n(this&&this!==Bn&&this instanceof i?u:t,this,f)}var u=$i(t);return i}function Di(t){return function(r,n,e){var i=th(r);if(!zf(r)){var u=pu(n,3);r=ja(r),n=function(t){return u(i[t],t,i)}}var o=t(r,n,e);return o>-1?i[u?r[o]:o]:tt}}function Yi(t){return au(function(r){var n=r.length,e=n,i=G.prototype.thru;for(t&&r.reverse();e--;){var u=r[e];if("function"!=typeof u)throw new eh(et);if(i&&!o&&"wrapper"==lu(u))var o=new G([],!0)}for(e=o?e:n;++e<n;){var f=lu(u=r[e]),a="wrapper"==f?gl(u):tt;o=a&&Iu(a[0])&&a[1]==(_t|vt|mt|wt)&&!a[4].length&&1==a[9]?o[lu(a[0])].apply(o,a[3]):1==u.length&&Iu(u)?o[f]():o.thru(u)}return function(){var t=arguments,e=t[0];if(o&&1==t.length&&sc(e))return o.plant(e).value();for(var i=0,u=n?r[i].apply(this,t):e;++i<n;)u=r[i].call(this,u);return u}})}function qi(t,r,n,e,i,u,o,f,a,s){function h(){for(var m=arguments.length,y=Ks(m),_=m;_--;)y[_]=arguments[_];if(d)var w=cu(h),M=U(y,w);if(e&&(y=ki(y,e,i,d)),u&&(y=Si(y,u,o,d)),m-=M,d&&m<s){var b=Y(y,w);return Ji(t,r,qi,h.placeholder,n,y,b,f,a,s-m)}var B=c?n:this,A=p?B[t]:t;return m=y.length,f?y=$u(y,f):v&&m>1&&y.reverse(),l&&a<m&&(y.length=a),this&&this!==Bn&&this instanceof h&&(A=g||$i(A)),A.apply(B,y)}var l=r&_t,c=r&ct,p=r&pt,d=r&(vt|gt),v=r&Mt,g=p?tt:$i(t);return h}function Fi(t,r){return function(n,e){return ye(n,t,r(e),{})}}function Zi(t,r){return function(n,e){var i;if(n===tt&&e===tt)return r;if(n!==tt&&(i=n),e!==tt){if(i===tt)return e;"string"==typeof n||"string"==typeof e?(n=fi(n),e=fi(e)):(n=oi(n),e=oi(e)),i=t(n,e)}return i}}function Gi(t){return au(function(r){return r=h(r,I(pu())),He(function(e){var i=this;return t(r,function(t){return n(t,i,e)})})})}function Vi(t,r){var n=(r=r===tt?" ":fi(r)).length;if(n<2)return n?Ke(r,t):r;var e=Ke(r,Th(t/K(r)));return N(r)?yi(H(e),0,t).join(""):e.slice(0,t)}function Ki(t,r,e,i){function u(){for(var r=-1,a=arguments.length,s=-1,h=i.length,l=Ks(h+a),c=this&&this!==Bn&&this instanceof u?f:t;++s<h;)l[s]=i[s];for(;a--;)l[s++]=arguments[++r];return n(c,o?e:this,l)}var o=r&ct,f=$i(t);return u}function Hi(t){return function(r,n,e){return e&&"number"!=typeof e&&ku(r,n,e)&&(n=e=tt),r=da(r),n===tt?(n=r,r=0):n=da(n),e=e===tt?r<n?1:-1:da(e),Ve(r,n,e,t)}}function Xi(t){return function(r,n){return"string"==typeof r&&"string"==typeof n||(r=ma(r),n=ma(n)),t(r,n)}}function Ji(t,r,n,e,i,u,o,f,a,s){var h=r&vt,l=h?o:tt,c=h?tt:o,p=h?u:tt,d=h?tt:u;r|=h?mt:yt,(r&=~(h?yt:mt))&dt||(r&=~(ct|pt));var v=[t,r,i,p,l,d,c,f,a,s],g=n.apply(tt,v);return Iu(t)&&Ml(g,v),g.placeholder=e,Wu(g,t,r)}function Qi(t){var r=Qs[t];return function(t,n){if(t=ma(t),n=null==n?0:zh(va(n),292)){var e=(wa(t)+"e").split("e");return+((e=(wa(r(e[0]+"e"+(+e[1]+n)))+"e").split("e"))[0]+"e"+(+e[1]-n))}return r(t)}}function tu(t){return function(r){var n=_l(r);return n==Ft?W(r):n==Xt?Z(r):R(r,t(r))}}function ru(t,r,n,e,i,u,o,f){var a=r&pt;if(!a&&"function"!=typeof t)throw new eh(et);var s=e?e.length:0;if(s||(r&=~(mt|yt),e=i=tt),o=o===tt?o:Nh(va(o),0),f=f===tt?f:va(f),s-=i?i.length:0,r&yt){var h=e,l=i;e=i=tt}var c=a?tt:gl(t),p=[t,r,n,e,i,h,l,u,o,f];if(c&&Uu(p,c),t=p[0],r=p[1],n=p[2],e=p[3],i=p[4],!(f=p[9]=p[9]===tt?a?0:t.length:Nh(p[9]-s,0))&&r&(vt|gt)&&(r&=~(vt|gt)),r&&r!=ct)d=r==vt||r==gt?Wi(t,r,f):r!=mt&&r!=(ct|mt)||i.length?qi.apply(tt,p):Ki(t,r,n,e);else var d=Ci(t,r,n);return Wu((c?ll:Ml)(d,p),t,r)}function nu(t,r,n,e){return t===tt||Nf(t,oh[n])&&!sh.call(e,n)?r:t}function eu(t,r,n,e,i,u){return Xf(t)&&Xf(r)&&(u.set(r,t),Ne(t,r,tt,eu,u),u.delete(r)),t}function iu(t){return oa(t)?tt:t}function uu(t,r,n,e,i,u){var o=n&ht,f=t.length,a=r.length;if(f!=a&&!(o&&a>f))return!1;var s=u.get(t);if(s&&u.get(r))return s==r;var h=-1,l=!0,c=n&lt?new vn:tt;for(u.set(t,r),u.set(r,t);++h<f;){var p=t[h],v=r[h];if(e)var g=o?e(v,p,h,r,t,u):e(p,v,h,t,r,u);if(g!==tt){if(g)continue;l=!1;break}if(c){if(!d(r,function(t,r){if(!O(c,r)&&(p===t||i(p,t,n,e,u)))return c.push(r)})){l=!1;break}}else if(p!==v&&!i(p,v,n,e,u)){l=!1;break}}return u.delete(t),u.delete(r),l}function ou(t,r,n,e,i,u,o){switch(n){case ir:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case er:return!(t.byteLength!=r.byteLength||!u(new yh(t),new yh(r)));case zt:case $t:case Zt:return Nf(+t,+r);case Dt:return t.name==r.name&&t.message==r.message;case Ht:case Jt:return t==r+"";case Ft:var f=W;case Xt:var a=e&ht;if(f||(f=F),t.size!=r.size&&!a)return!1;var s=o.get(t);if(s)return s==r;e|=lt,o.set(t,r);var h=uu(f(t),f(r),e,i,u,o);return o.delete(t),h;case Qt:if(il)return il.call(t)==il.call(r)}return!1}function fu(t,r,n,e,i,u){var o=n&ht,f=su(t),a=f.length;if(a!=su(r).length&&!o)return!1;for(var s=a;s--;){var h=f[s];if(!(o?h in r:sh.call(r,h)))return!1}var l=u.get(t);if(l&&u.get(r))return l==r;var c=!0;u.set(t,r),u.set(r,t);for(var p=o;++s<a;){var d=t[h=f[s]],v=r[h];if(e)var g=o?e(v,d,h,r,t,u):e(d,v,h,t,r,u);if(!(g===tt?d===v||i(d,v,n,e,u):g)){c=!1;break}p||(p="constructor"==h)}if(c&&!p){var m=t.constructor,y=r.constructor;m!=y&&"constructor"in t&&"constructor"in r&&!("function"==typeof m&&m instanceof m&&"function"==typeof y&&y instanceof y)&&(c=!1)}return u.delete(t),u.delete(r),c}function au(t){return Bl(Nu(t,tt,io),t+"")}function su(t){return le(t,ja,ml)}function hu(t){return le(t,La,yl)}function lu(t){for(var r=t.name+"",n=Xh[r],e=sh.call(Xh,r)?n.length:0;e--;){var i=n[e],u=i.func;if(null==u||u==t)return i.name}return r}function cu(t){return(sh.call(v,"placeholder")?v:t).placeholder}function pu(){var t=v.iteratee||As;return t=t===As?Te:t,arguments.length?t(arguments[0],arguments[1]):t}function du(t,r){var n=t.__data__;return Ru(r)?n["string"==typeof r?"string":"hash"]:n.map}function vu(t){for(var r=ja(t),n=r.length;n--;){var e=r[n],i=t[e];r[n]=[e,i,ju(i)]}return r}function gu(t,r){var n=C(t,r);return ke(n)?n:tt}function mu(t){var r=sh.call(t,Eh),n=t[Eh];try{t[Eh]=tt;var e=!0}catch(t){}var i=ch.call(t);return e&&(r?t[Eh]=n:delete t[Eh]),i}function yu(t,r,n){for(var e=-1,i=n.length;++e<i;){var u=n[e],o=u.size;switch(u.type){case"drop":t+=o;break;case"dropRight":r-=o;break;case"take":r=zh(r,t+o);break;case"takeRight":t=Nh(t,r-o)}}return{start:t,end:r}}function _u(t){var r=t.match(Ir);return r?r[1].split(Tr):[]}function wu(t,r,n){for(var e=-1,i=(r=mi(r,t)).length,u=!1;++e<i;){var o=qu(r[e]);if(!(u=null!=t&&n(t,o)))break;t=t[o]}return u||++e!=i?u:!!(i=null==t?0:t.length)&&Hf(i)&&Eu(o,i)&&(sc(t)||ac(t))}function Mu(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&sh.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function bu(t){return"function"!=typeof t.constructor||Ou(t)?{}:ol(wh(t))}function Bu(t,r,n){var e=t.constructor;switch(r){case er:return wi(t);case zt:case $t:return new e(+t);case ir:return Mi(t,n);case ur:case or:case fr:case ar:case sr:case hr:case lr:case cr:case pr:return Ai(t,n);case Ft:return new e;case Zt:case Jt:return new e(t);case Ht:return bi(t);case Xt:return new e;case Qt:return Bi(t)}}function Au(t,r){var n=r.length;if(!n)return t;var e=n-1;return r[e]=(n>1?"& ":"")+r[e],r=r.join(n>2?", ":" "),t.replace(Rr,"{\n/* [wrapped with "+r+"] */\n")}function xu(t){return sc(t)||ac(t)||!!(Ah&&t&&t[Ah])}function Eu(t,r){var n=typeof t;return!!(r=null==r?Rt:r)&&("number"==n||"symbol"!=n&&zr.test(t))&&t>-1&&t%1==0&&t<r}function ku(t,r,n){if(!Xf(n))return!1;var e=typeof r;return!!("number"==e?zf(n)&&Eu(r,n.length):"string"==e&&r in n)&&Nf(n[r],t)}function Su(t,r){if(sc(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!sa(t))||(Br.test(t)||!br.test(t)||null!=r&&t in th(r))}function Ru(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}function Iu(t){var r=lu(t),n=v[r];if("function"!=typeof n||!(r in X.prototype))return!1;if(t===n)return!0;var e=gl(n);return!!e&&t===e[0]}function Tu(t){return!!lh&&lh in t}function Ou(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||oh)}function ju(t){return t===t&&!Xf(t)}function Lu(t,r){return function(n){return null!=n&&(n[t]===r&&(r!==tt||t in th(n)))}}function Uu(t,r){var n=t[1],e=r[1],i=n|e,u=i<(ct|pt|_t),o=e==_t&&n==vt||e==_t&&n==wt&&t[7].length<=r[8]||e==(_t|wt)&&r[7].length<=r[8]&&n==vt;if(!u&&!o)return t;e&ct&&(t[2]=r[2],i|=n&ct?0:dt);var f=r[3];if(f){var a=t[3];t[3]=a?ki(a,f,r[4]):f,t[4]=a?Y(t[3],ot):r[4]}return(f=r[5])&&(a=t[5],t[5]=a?Si(a,f,r[6]):f,t[6]=a?Y(t[5],ot):r[6]),(f=r[7])&&(t[7]=f),e&_t&&(t[8]=null==t[8]?r[8]:zh(t[8],r[8])),null==t[9]&&(t[9]=r[9]),t[0]=r[0],t[1]=i,t}function Pu(t){var r=[];if(null!=t)for(var n in th(t))r.push(n);return r}function Cu(t){return ch.call(t)}function Nu(t,r,e){return r=Nh(r===tt?t.length-1:r,0),function(){for(var i=arguments,u=-1,o=Nh(i.length-r,0),f=Ks(o);++u<o;)f[u]=i[r+u];u=-1;for(var a=Ks(r+1);++u<r;)a[u]=i[u];return a[r]=e(f),n(t,this,a)}}function zu(t,r){return r.length<2?t:he(t,ri(r,0,-1))}function $u(t,r){for(var n=t.length,e=zh(r.length,n),i=Ri(t);e--;){var u=r[e];t[e]=Eu(u,n)?i[u]:tt}return t}function Wu(t,r,n){var e=r+"";return Bl(t,Au(e,Zu(_u(e),n)))}function Du(t){var r=0,n=0;return function(){var e=$h(),i=xt-(e-n);if(n=e,i>0){if(++r>=At)return arguments[0]}else r=0;return t.apply(tt,arguments)}}function Yu(t,r){var n=-1,e=t.length,i=e-1;for(r=r===tt?e:r;++n<r;){var u=Ge(n,i),o=t[u];t[u]=t[n],t[n]=o}return t.length=r,t}function qu(t){if("string"==typeof t||sa(t))return t;var r=t+"";return"0"==r&&1/t==-St?"-0":r}function Fu(t){if(null!=t){try{return ah.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Zu(t,r){return i(Ut,function(n){var e="_."+n[0];r&n[1]&&!a(t,e)&&t.push(e)}),t.sort()}function Gu(t){if(t instanceof X)return t.clone();var r=new G(t.__wrapped__,t.__chain__);return r.__actions__=Ri(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}function Vu(t,r,n){r=(n?ku(t,r,n):r===tt)?1:Nh(va(r),0);var e=null==t?0:t.length;if(!e||r<1)return[];for(var i=0,u=0,o=Ks(Th(e/r));i<e;)o[u++]=ri(t,i,i+=r);return o}function Ku(t){for(var r=-1,n=null==t?0:t.length,e=0,i=[];++r<n;){var u=t[r];u&&(i[e++]=u)}return i}function Hu(){var t=arguments.length;if(!t)return[];for(var r=Ks(t-1),n=arguments[0],e=t;e--;)r[e-1]=arguments[e];return l(sc(n)?Ri(n):[n],oe(r,1))}function Xu(t,r,n){var e=null==t?0:t.length;return e?(r=n||r===tt?1:va(r),ri(t,r<0?0:r,e)):[]}function Ju(t,r,n){var e=null==t?0:t.length;return e?(r=n||r===tt?1:va(r),r=e-r,ri(t,0,r<0?0:r)):[]}function Qu(t,r){return t&&t.length?li(t,pu(r,3),!0,!0):[]}function to(t,r){return t&&t.length?li(t,pu(r,3),!0):[]}function ro(t,r,n,e){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&ku(t,r,n)&&(n=0,e=i),ie(t,r,n,e)):[]}function no(t,r,n){var e=null==t?0:t.length;if(!e)return-1;var i=null==n?0:va(n);return i<0&&(i=Nh(e+i,0)),y(t,pu(r,3),i)}function eo(t,r,n){var e=null==t?0:t.length;if(!e)return-1;var i=e-1;return n!==tt&&(i=va(n),i=n<0?Nh(e+i,0):zh(i,e-1)),y(t,pu(r,3),i,!0)}function io(t){return(null==t?0:t.length)?oe(t,1):[]}function uo(t){return(null==t?0:t.length)?oe(t,St):[]}function oo(t,r){return(null==t?0:t.length)?(r=r===tt?1:va(r),oe(t,r)):[]}function fo(t){for(var r=-1,n=null==t?0:t.length,e={};++r<n;){var i=t[r];e[i[0]]=i[1]}return e}function ao(t){return t&&t.length?t[0]:tt}function so(t,r,n){var e=null==t?0:t.length;if(!e)return-1;var i=null==n?0:va(n);return i<0&&(i=Nh(e+i,0)),_(t,r,i)}function ho(t){return(null==t?0:t.length)?ri(t,0,-1):[]}function lo(t,r){return null==t?"":Ph.call(t,r)}function co(t){var r=null==t?0:t.length;return r?t[r-1]:tt}function po(t,r,n){var e=null==t?0:t.length;if(!e)return-1;var i=e;return n!==tt&&(i=(i=va(n))<0?Nh(e+i,0):zh(i,e-1)),r===r?V(t,r,i):y(t,M,i,!0)}function vo(t,r){return t&&t.length?$e(t,va(r)):tt}function go(t,r){return t&&t.length&&r&&r.length?Fe(t,r):t}function mo(t,r,n){return t&&t.length&&r&&r.length?Fe(t,r,pu(n,2)):t}function yo(t,r,n){return t&&t.length&&r&&r.length?Fe(t,r,tt,n):t}function _o(t,r){var n=[];if(!t||!t.length)return n;var e=-1,i=[],u=t.length;for(r=pu(r,3);++e<u;){var o=t[e];r(o,e,t)&&(n.push(o),i.push(e))}return Ze(t,i),n}function wo(t){return null==t?t:Yh.call(t)}function Mo(t,r,n){var e=null==t?0:t.length;return e?(n&&"number"!=typeof n&&ku(t,r,n)?(r=0,n=e):(r=null==r?0:va(r),n=n===tt?e:va(n)),ri(t,r,n)):[]}function bo(t,r){return ei(t,r)}function Bo(t,r,n){return ii(t,r,pu(n,2))}function Ao(t,r){var n=null==t?0:t.length;if(n){var e=ei(t,r);if(e<n&&Nf(t[e],r))return e}return-1}function xo(t,r){return ei(t,r,!0)}function Eo(t,r,n){return ii(t,r,pu(n,2),!0)}function ko(t,r){if(null==t?0:t.length){var n=ei(t,r,!0)-1;if(Nf(t[n],r))return n}return-1}function So(t){return t&&t.length?ui(t):[]}function Ro(t,r){return t&&t.length?ui(t,pu(r,2)):[]}function Io(t){var r=null==t?0:t.length;return r?ri(t,1,r):[]}function To(t,r,n){return t&&t.length?(r=n||r===tt?1:va(r),ri(t,0,r<0?0:r)):[]}function Oo(t,r,n){var e=null==t?0:t.length;return e?(r=n||r===tt?1:va(r),r=e-r,ri(t,r<0?0:r,e)):[]}function jo(t,r){return t&&t.length?li(t,pu(r,3),!1,!0):[]}function Lo(t,r){return t&&t.length?li(t,pu(r,3)):[]}function Uo(t){return t&&t.length?ai(t):[]}function Po(t,r){return t&&t.length?ai(t,pu(r,2)):[]}function Co(t,r){return r="function"==typeof r?r:tt,t&&t.length?ai(t,tt,r):[]}function No(t){if(!t||!t.length)return[];var r=0;return t=f(t,function(t){if($f(t))return r=Nh(t.length,r),!0}),S(r,function(r){return h(t,B(r))})}function zo(t,r){if(!t||!t.length)return[];var e=No(t);return null==r?e:h(e,function(t){return n(r,tt,t)})}function $o(t,r){return di(t||[],r||[],Yn)}function Wo(t,r){return di(t||[],r||[],Qe)}function Do(t){var r=v(t);return r.__chain__=!0,r}function Yo(t,r){return r(t),t}function qo(t,r){return r(t)}function Fo(){return Do(this)}function Zo(){return new G(this.value(),this.__chain__)}function Go(){this.__values__===tt&&(this.__values__=pa(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?tt:this.__values__[this.__index__++]}}function Vo(){return this}function Ko(t){for(var r,n=this;n instanceof A;){var e=Gu(n);e.__index__=0,e.__values__=tt,r?i.__wrapped__=e:r=e;var i=e;n=n.__wrapped__}return i.__wrapped__=t,r}function Ho(){var t=this.__wrapped__;if(t instanceof X){var r=t;return this.__actions__.length&&(r=new X(this)),(r=r.reverse()).__actions__.push({func:qo,args:[wo],thisArg:tt}),new G(r,this.__chain__)}return this.thru(wo)}function Xo(){return ci(this.__wrapped__,this.__actions__)}function Jo(t,r,n){var e=sc(t)?o:ne;return n&&ku(t,r,n)&&(r=tt),e(t,pu(r,3))}function Qo(t,r){return(sc(t)?f:ue)(t,pu(r,3))}function tf(t,r){return oe(ff(t,r),1)}function rf(t,r){return oe(ff(t,r),St)}function nf(t,r,n){return n=n===tt?1:va(n),oe(ff(t,r),n)}function ef(t,r){return(sc(t)?i:fl)(t,pu(r,3))}function uf(t,r){return(sc(t)?u:al)(t,pu(r,3))}function of(t,r,n,e){t=zf(t)?t:Za(t),n=n&&!e?va(n):0;var i=t.length;return n<0&&(n=Nh(i+n,0)),aa(t)?n<=i&&t.indexOf(r,n)>-1:!!i&&_(t,r,n)>-1}function ff(t,r){return(sc(t)?h:Ue)(t,pu(r,3))}function af(t,r,n,e){return null==t?[]:(sc(r)||(r=null==r?[]:[r]),n=e?tt:n,sc(n)||(n=null==n?[]:[n]),We(t,r,n))}function sf(t,r,n){var e=sc(t)?c:x,i=arguments.length<3;return e(t,pu(r,4),n,i,fl)}function hf(t,r,n){var e=sc(t)?p:x,i=arguments.length<3;return e(t,pu(r,4),n,i,al)}function lf(t,r){return(sc(t)?f:ue)(t,xf(pu(r,3)))}function cf(t){return(sc(t)?Un:Xe)(t)}function pf(t,r,n){return r=(n?ku(t,r,n):r===tt)?1:va(r),(sc(t)?$n:Je)(t,r)}function df(t){return(sc(t)?Wn:ti)(t)}function vf(t){if(null==t)return 0;if(zf(t))return aa(t)?K(t):t.length;var r=_l(t);return r==Ft||r==Xt?t.size:Oe(t).length}function gf(t,r,n){var e=sc(t)?d:ni;return n&&ku(t,r,n)&&(r=tt),e(t,pu(r,3))}function mf(t,r){if("function"!=typeof r)throw new eh(et);return t=va(t),function(){if(--t<1)return r.apply(this,arguments)}}function yf(t,r,n){return r=n?tt:r,r=t&&null==r?t.length:r,ru(t,_t,tt,tt,tt,tt,r)}function _f(t,r){var n;if("function"!=typeof r)throw new eh(et);return t=va(t),function(){return--t>0&&(n=r.apply(this,arguments)),t<=1&&(r=tt),n}}function wf(t,r,n){var e=ru(t,vt,tt,tt,tt,tt,tt,r=n?tt:r);return e.placeholder=wf.placeholder,e}function Mf(t,r,n){var e=ru(t,gt,tt,tt,tt,tt,tt,r=n?tt:r);return e.placeholder=Mf.placeholder,e}function bf(t,r,n){function e(r){var n=c,e=p;return c=p=tt,y=r,v=t.apply(e,n)}function i(t){return y=t,g=bl(f,r),_?e(t):v}function u(t){var n=t-y,e=r-(t-m);return w?zh(e,d-n):e}function o(t){var n=t-m,e=t-y;return m===tt||n>=r||n<0||w&&e>=d}function f(){var t=Xl();if(o(t))return a(t);g=bl(f,u(t))}function a(t){return g=tt,M&&c?e(t):(c=p=tt,v)}function s(){g!==tt&&dl(g),y=0,c=m=p=g=tt}function h(){return g===tt?v:a(Xl())}function l(){var t=Xl(),n=o(t);if(c=arguments,p=this,m=t,n){if(g===tt)return i(m);if(w)return g=bl(f,r),e(m)}return g===tt&&(g=bl(f,r)),v}var c,p,d,v,g,m,y=0,_=!1,w=!1,M=!0;if("function"!=typeof t)throw new eh(et);return r=ma(r)||0,Xf(n)&&(_=!!n.leading,d=(w="maxWait"in n)?Nh(ma(n.maxWait)||0,r):d,M="trailing"in n?!!n.trailing:M),l.cancel=s,l.flush=h,l}function Bf(t){return ru(t,Mt)}function Af(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new eh(et);var n=function(){var e=arguments,i=r?r.apply(this,e):e[0],u=n.cache;if(u.has(i))return u.get(i);var o=t.apply(this,e);return n.cache=u.set(i,o)||u,o};return n.cache=new(Af.Cache||nn),n}function xf(t){if("function"!=typeof t)throw new eh(et);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}function Ef(t){return _f(2,t)}function kf(t,r){if("function"!=typeof t)throw new eh(et);return r=r===tt?r:va(r),He(t,r)}function Sf(t,r){if("function"!=typeof t)throw new eh(et);return r=null==r?0:Nh(va(r),0),He(function(e){var i=e[r],u=yi(e,0,r);return i&&l(u,i),n(t,this,u)})}function Rf(t,r,n){var e=!0,i=!0;if("function"!=typeof t)throw new eh(et);return Xf(n)&&(e="leading"in n?!!n.leading:e,i="trailing"in n?!!n.trailing:i),bf(t,r,{leading:e,maxWait:r,trailing:i})}function If(t){return yf(t,1)}function Tf(t,r){return ec(gi(r),t)}function Of(){if(!arguments.length)return[];var t=arguments[0];return sc(t)?t:[t]}function jf(t){return Xn(t,st)}function Lf(t,r){return r="function"==typeof r?r:tt,Xn(t,st,r)}function Uf(t){return Xn(t,ft|st)}function Pf(t,r){return r="function"==typeof r?r:tt,Xn(t,ft|st,r)}function Cf(t,r){return null==r||Qn(t,r,ja(r))}function Nf(t,r){return t===r||t!==t&&r!==r}function zf(t){return null!=t&&Hf(t.length)&&!Vf(t)}function $f(t){return Jf(t)&&zf(t)}function Wf(t){return!0===t||!1===t||Jf(t)&&ce(t)==zt}function Df(t){return Jf(t)&&1===t.nodeType&&!oa(t)}function Yf(t){if(null==t)return!0;if(zf(t)&&(sc(t)||"string"==typeof t||"function"==typeof t.splice||lc(t)||gc(t)||ac(t)))return!t.length;var r=_l(t);if(r==Ft||r==Xt)return!t.size;if(Ou(t))return!Oe(t).length;for(var n in t)if(sh.call(t,n))return!1;return!0}function qf(t,r){return Be(t,r)}function Ff(t,r,n){var e=(n="function"==typeof n?n:tt)?n(t,r):tt;return e===tt?Be(t,r,tt,n):!!e}function Zf(t){if(!Jf(t))return!1;var r=ce(t);return r==Dt||r==Wt||"string"==typeof t.message&&"string"==typeof t.name&&!oa(t)}function Gf(t){return"number"==typeof t&&Uh(t)}function Vf(t){if(!Xf(t))return!1;var r=ce(t);return r==Yt||r==qt||r==Nt||r==Kt}function Kf(t){return"number"==typeof t&&t==va(t)}function Hf(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Rt}function Xf(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function Jf(t){return null!=t&&"object"==typeof t}function Qf(t,r){return t===r||Ee(t,r,vu(r))}function ta(t,r,n){return n="function"==typeof n?n:tt,Ee(t,r,vu(r),n)}function ra(t){return ua(t)&&t!=+t}function na(t){if(wl(t))throw new Xs(nt);return ke(t)}function ea(t){return null===t}function ia(t){return null==t}function ua(t){return"number"==typeof t||Jf(t)&&ce(t)==Zt}function oa(t){if(!Jf(t)||ce(t)!=Vt)return!1;var r=wh(t);if(null===r)return!0;var n=sh.call(r,"constructor")&&r.constructor;return"function"==typeof n&&n instanceof n&&ah.call(n)==ph}function fa(t){return Kf(t)&&t>=-Rt&&t<=Rt}function aa(t){return"string"==typeof t||!sc(t)&&Jf(t)&&ce(t)==Jt}function sa(t){return"symbol"==typeof t||Jf(t)&&ce(t)==Qt}function ha(t){return t===tt}function la(t){return Jf(t)&&_l(t)==rr}function ca(t){return Jf(t)&&ce(t)==nr}function pa(t){if(!t)return[];if(zf(t))return aa(t)?H(t):Ri(t);if(xh&&t[xh])return $(t[xh]());var r=_l(t);return(r==Ft?W:r==Xt?F:Za)(t)}function da(t){return t?(t=ma(t),t===St||t===-St?(t<0?-1:1)*It:t===t?t:0):0===t?t:0}function va(t){var r=da(t),n=r%1;return r===r?n?r-n:r:0}function ga(t){return t?Hn(va(t),0,Ot):0}function ma(t){if("number"==typeof t)return t;if(sa(t))return Tt;if(Xf(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=Xf(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Er,"");var n=Pr.test(t);return n||Nr.test(t)?wn(t.slice(2),n?2:8):Ur.test(t)?Tt:+t}function ya(t){return Ii(t,La(t))}function _a(t){return t?Hn(va(t),-Rt,Rt):0===t?t:0}function wa(t){return null==t?"":fi(t)}function Ma(t,r){var n=ol(t);return null==r?n:Zn(n,r)}function ba(t,r){return m(t,pu(r,3),fe)}function Ba(t,r){return m(t,pu(r,3),ae)}function Aa(t,r){return null==t?t:sl(t,pu(r,3),La)}function xa(t,r){return null==t?t:hl(t,pu(r,3),La)}function Ea(t,r){return t&&fe(t,pu(r,3))}function ka(t,r){return t&&ae(t,pu(r,3))}function Sa(t){return null==t?[]:se(t,ja(t))}function Ra(t){return null==t?[]:se(t,La(t))}function Ia(t,r,n){var e=null==t?tt:he(t,r);return e===tt?n:e}function Ta(t,r){return null!=t&&wu(t,r,de)}function Oa(t,r){return null!=t&&wu(t,r,ve)}function ja(t){return zf(t)?Sn(t):Oe(t)}function La(t){return zf(t)?Sn(t,!0):je(t)}function Ua(t,r){var n={};return r=pu(r,3),fe(t,function(t,e,i){Vn(n,r(t,e,i),t)}),n}function Pa(t,r){var n={};return r=pu(r,3),fe(t,function(t,e,i){Vn(n,e,r(t,e,i))}),n}function Ca(t,r){return Na(t,xf(pu(r)))}function Na(t,r){if(null==t)return{};var n=h(hu(t),function(t){return[t]});return r=pu(r),Ye(t,n,function(t,n){return r(t,n[0])})}function za(t,r,n){var e=-1,i=(r=mi(r,t)).length;for(i||(i=1,t=tt);++e<i;){var u=null==t?tt:t[qu(r[e])];u===tt&&(e=i,u=n),t=Vf(u)?u.call(t):u}return t}function $a(t,r,n){return null==t?t:Qe(t,r,n)}function Wa(t,r,n,e){return e="function"==typeof e?e:tt,null==t?t:Qe(t,r,n,e)}function Da(t,r,n){var e=sc(t),u=e||lc(t)||gc(t);if(r=pu(r,4),null==n){var o=t&&t.constructor;n=u?e?new o:[]:Xf(t)&&Vf(o)?ol(wh(t)):{}}return(u?i:fe)(t,function(t,e,i){return r(n,t,e,i)}),n}function Ya(t,r){return null==t||si(t,r)}function qa(t,r,n){return null==t?t:hi(t,r,gi(n))}function Fa(t,r,n,e){return e="function"==typeof e?e:tt,null==t?t:hi(t,r,gi(n),e)}function Za(t){return null==t?[]:T(t,ja(t))}function Ga(t){return null==t?[]:T(t,La(t))}function Va(t,r,n){return n===tt&&(n=r,r=tt),n!==tt&&(n=(n=ma(n))===n?n:0),r!==tt&&(r=(r=ma(r))===r?r:0),Hn(ma(t),r,n)}function Ka(t,r,n){return r=da(r),n===tt?(n=r,r=0):n=da(n),t=ma(t),ge(t,r,n)}function Ha(t,r,n){if(n&&"boolean"!=typeof n&&ku(t,r,n)&&(r=n=tt),n===tt&&("boolean"==typeof r?(n=r,r=tt):"boolean"==typeof t&&(n=t,t=tt)),t===tt&&r===tt?(t=0,r=1):(t=da(t),r===tt?(r=t,t=0):r=da(r)),t>r){var e=t;t=r,r=e}if(n||t%1||r%1){var i=Dh();return zh(t+i*(r-t+_n("1e-"+((i+"").length-1))),r)}return Ge(t,r)}function Xa(t){return Dc(wa(t).toLowerCase())}function Ja(t){return(t=wa(t))&&t.replace($r,Pn).replace(on,"")}function Qa(t,r,n){t=wa(t),r=fi(r);var e=t.length,i=n=n===tt?e:Hn(va(n),0,e);return(n-=r.length)>=0&&t.slice(n,i)==r}function ts(t){return t=wa(t),t&&wr.test(t)?t.replace(yr,Cn):t}function rs(t){return t=wa(t),t&&xr.test(t)?t.replace(Ar,"\\$&"):t}function ns(t,r,n){t=wa(t);var e=(r=va(r))?K(t):0;if(!r||e>=r)return t;var i=(r-e)/2;return Vi(Oh(i),n)+t+Vi(Th(i),n)}function es(t,r,n){t=wa(t);var e=(r=va(r))?K(t):0;return r&&e<r?t+Vi(r-e,n):t}function is(t,r,n){t=wa(t);var e=(r=va(r))?K(t):0;return r&&e<r?Vi(r-e,n)+t:t}function us(t,r,n){return n||null==r?r=0:r&&(r=+r),Wh(wa(t).replace(kr,""),r||0)}function os(t,r,n){return r=(n?ku(t,r,n):r===tt)?1:va(r),Ke(wa(t),r)}function fs(){var t=arguments,r=wa(t[0]);return t.length<3?r:r.replace(t[1],t[2])}function as(t,r,n){return n&&"number"!=typeof n&&ku(t,r,n)&&(r=n=tt),(n=n===tt?Ot:n>>>0)?(t=wa(t),t&&("string"==typeof r||null!=r&&!dc(r))&&!(r=fi(r))&&N(t)?yi(H(t),0,n):t.split(r,n)):[]}function ss(t,r,n){return t=wa(t),n=null==n?0:Hn(va(n),0,t.length),r=fi(r),t.slice(n,n+r.length)==r}function hs(t,r,n){var e=v.templateSettings;n&&ku(t,r,n)&&(r=tt),t=wa(t),r=Mc({},r,e,nu);var i,u,o=Mc({},r.imports,e.imports,nu),f=ja(o),a=T(o,f),s=0,h=r.interpolate||Wr,l="__p += '",c=rh((r.escape||Wr).source+"|"+h.source+"|"+(h===Mr?jr:Wr).source+"|"+(r.evaluate||Wr).source+"|$","g"),p="//# sourceURL="+("sourceURL"in r?r.sourceURL:"lodash.templateSources["+ ++cn+"]")+"\n";t.replace(c,function(r,n,e,o,f,a){return e||(e=o),l+=t.slice(s,a).replace(Dr,P),n&&(i=!0,l+="' +\n__e("+n+") +\n'"),f&&(u=!0,l+="';\n"+f+";\n__p += '"),e&&(l+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),s=a+r.length,r}),l+="';\n";var d=r.variable;d||(l="with (obj) {\n"+l+"\n}\n"),l=(u?l.replace(dr,""):l).replace(vr,"$1").replace(gr,"$1;"),l="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var g=Yc(function(){return Js(f,p+"return "+l).apply(tt,a)});if(g.source=l,Zf(g))throw g;return g}function ls(t){return wa(t).toLowerCase()}function cs(t){return wa(t).toUpperCase()}function ps(t,r,n){if((t=wa(t))&&(n||r===tt))return t.replace(Er,"");if(!t||!(r=fi(r)))return t;var e=H(t),i=H(r);return yi(e,j(e,i),L(e,i)+1).join("")}function ds(t,r,n){if((t=wa(t))&&(n||r===tt))return t.replace(Sr,"");if(!t||!(r=fi(r)))return t;var e=H(t);return yi(e,0,L(e,H(r))+1).join("")}function vs(t,r,n){if((t=wa(t))&&(n||r===tt))return t.replace(kr,"");if(!t||!(r=fi(r)))return t;var e=H(t);return yi(e,j(e,H(r))).join("")}function gs(t,r){var n=bt,e=Bt;if(Xf(r)){var i="separator"in r?r.separator:i;n="length"in r?va(r.length):n,e="omission"in r?fi(r.omission):e}var u=(t=wa(t)).length;if(N(t)){var o=H(t);u=o.length}if(n>=u)return t;var f=n-K(e);if(f<1)return e;var a=o?yi(o,0,f).join(""):t.slice(0,f);if(i===tt)return a+e;if(o&&(f+=a.length-f),dc(i)){if(t.slice(f).search(i)){var s,h=a;for(i.global||(i=rh(i.source,wa(Lr.exec(i))+"g")),i.lastIndex=0;s=i.exec(h);)var l=s.index;a=a.slice(0,l===tt?f:l)}}else if(t.indexOf(fi(i),f)!=f){var c=a.lastIndexOf(i);c>-1&&(a=a.slice(0,c))}return a+e}function ms(t){return t=wa(t),t&&_r.test(t)?t.replace(mr,Nn):t}function ys(t,r,n){return t=wa(t),r=n?tt:r,r===tt?z(t)?Q(t):g(t):t.match(r)||[]}function _s(t){var r=null==t?0:t.length,e=pu();return t=r?h(t,function(t){if("function"!=typeof t[1])throw new eh(et);return[e(t[0]),t[1]]}):[],He(function(e){for(var i=-1;++i<r;){var u=t[i];if(n(u[0],this,e))return n(u[1],this,e)}})}function ws(t){return Jn(Xn(t,ft))}function Ms(t){return function(){return t}}function bs(t,r){return null==t||t!==t?r:t}function Bs(t){return t}function As(t){return Te("function"==typeof t?t:Xn(t,ft))}function xs(t){return Pe(Xn(t,ft))}function Es(t,r){return Ce(t,Xn(r,ft))}function ks(t,r,n){var e=ja(r),u=se(r,e);null!=n||Xf(r)&&(u.length||!e.length)||(n=r,r=t,t=this,u=se(r,ja(r)));var o=!(Xf(n)&&"chain"in n&&!n.chain),f=Vf(t);return i(u,function(n){var e=r[n];t[n]=e,f&&(t.prototype[n]=function(){var r=this.__chain__;if(o||r){var n=t(this.__wrapped__);return(n.__actions__=Ri(this.__actions__)).push({func:e,args:arguments,thisArg:t}),n.__chain__=r,n}return e.apply(t,l([this.value()],arguments))})}),t}function Ss(){return Bn._===this&&(Bn._=dh),this}function Rs(){}function Is(t){return t=va(t),He(function(r){return $e(r,t)})}function Ts(t){return Su(t)?B(qu(t)):qe(t)}function Os(t){return function(r){return null==t?tt:he(t,r)}}function js(){return[]}function Ls(){return!1}function Us(){return{}}function Ps(){return""}function Cs(){return!0}function Ns(t,r){if((t=va(t))<1||t>Rt)return[];var n=Ot,e=zh(t,Ot);r=pu(r),t-=Ot;for(var i=S(e,r);++n<t;)r(n);return i}function zs(t){return sc(t)?h(t,qu):sa(t)?[t]:Ri(Al(wa(t)))}function $s(t){var r=++hh;return wa(t)+r}function Ws(t){return t&&t.length?ee(t,Bs,pe):tt}function Ds(t,r){return t&&t.length?ee(t,pu(r,2),pe):tt}function Ys(t){return b(t,Bs)}function qs(t,r){return b(t,pu(r,2))}function Fs(t){return t&&t.length?ee(t,Bs,Le):tt}function Zs(t,r){return t&&t.length?ee(t,pu(r,2),Le):tt}function Gs(t){return t&&t.length?k(t,Bs):0}function Vs(t,r){return t&&t.length?k(t,pu(r,2)):0}var Ks=(r=null==r?Bn:zn.defaults(Bn.Object(),r,zn.pick(Bn,ln))).Array,Hs=r.Date,Xs=r.Error,Js=r.Function,Qs=r.Math,th=r.Object,rh=r.RegExp,nh=r.String,eh=r.TypeError,ih=Ks.prototype,uh=Js.prototype,oh=th.prototype,fh=r["__core-js_shared__"],ah=uh.toString,sh=oh.hasOwnProperty,hh=0,lh=function(){var t=/[^.]+$/.exec(fh&&fh.keys&&fh.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ch=oh.toString,ph=ah.call(th),dh=Bn._,vh=rh("^"+ah.call(sh).replace(Ar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gh=En?r.Buffer:tt,mh=r.Symbol,yh=r.Uint8Array,_h=gh?gh.allocUnsafe:tt,wh=D(th.getPrototypeOf,th),Mh=th.create,bh=oh.propertyIsEnumerable,Bh=ih.splice,Ah=mh?mh.isConcatSpreadable:tt,xh=mh?mh.iterator:tt,Eh=mh?mh.toStringTag:tt,kh=function(){try{var t=gu(th,"defineProperty");return t({},"",{}),t}catch(t){}}(),Sh=r.clearTimeout!==Bn.clearTimeout&&r.clearTimeout,Rh=Hs&&Hs.now!==Bn.Date.now&&Hs.now,Ih=r.setTimeout!==Bn.setTimeout&&r.setTimeout,Th=Qs.ceil,Oh=Qs.floor,jh=th.getOwnPropertySymbols,Lh=gh?gh.isBuffer:tt,Uh=r.isFinite,Ph=ih.join,Ch=D(th.keys,th),Nh=Qs.max,zh=Qs.min,$h=Hs.now,Wh=r.parseInt,Dh=Qs.random,Yh=ih.reverse,qh=gu(r,"DataView"),Fh=gu(r,"Map"),Zh=gu(r,"Promise"),Gh=gu(r,"Set"),Vh=gu(r,"WeakMap"),Kh=gu(th,"create"),Hh=Vh&&new Vh,Xh={},Jh=Fu(qh),Qh=Fu(Fh),tl=Fu(Zh),rl=Fu(Gh),nl=Fu(Vh),el=mh?mh.prototype:tt,il=el?el.valueOf:tt,ul=el?el.toString:tt,ol=function(){function t(){}return function(r){if(!Xf(r))return{};if(Mh)return Mh(r);t.prototype=r;var n=new t;return t.prototype=tt,n}}();v.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Mr,variable:"",imports:{_:v}},v.prototype=A.prototype,v.prototype.constructor=v,G.prototype=ol(A.prototype),G.prototype.constructor=G,X.prototype=ol(A.prototype),X.prototype.constructor=X,qr.prototype.clear=Fr,qr.prototype.delete=Zr,qr.prototype.get=Gr,qr.prototype.has=Vr,qr.prototype.set=Kr,Hr.prototype.clear=Xr,Hr.prototype.delete=Jr,Hr.prototype.get=Qr,Hr.prototype.has=tn,Hr.prototype.set=rn,nn.prototype.clear=en,nn.prototype.delete=fn,nn.prototype.get=an,nn.prototype.has=sn,nn.prototype.set=hn,vn.prototype.add=vn.prototype.push=gn,vn.prototype.has=mn,yn.prototype.clear=Mn,yn.prototype.delete=bn,yn.prototype.get=An,yn.prototype.has=xn,yn.prototype.set=kn;var fl=Ui(fe),al=Ui(ae,!0),sl=Pi(),hl=Pi(!0),ll=Hh?function(t,r){return Hh.set(t,r),t}:Bs,cl=kh?function(t,r){return kh(t,"toString",{configurable:!0,enumerable:!1,value:Ms(r),writable:!0})}:Bs,pl=He,dl=Sh||function(t){return Bn.clearTimeout(t)},vl=Gh&&1/F(new Gh([,-0]))[1]==St?function(t){return new Gh(t)}:Rs,gl=Hh?function(t){return Hh.get(t)}:Rs,ml=jh?function(t){return null==t?[]:(t=th(t),f(jh(t),function(r){return bh.call(t,r)}))}:js,yl=jh?function(t){for(var r=[];t;)l(r,ml(t)),t=wh(t);return r}:js,_l=ce;(qh&&_l(new qh(new ArrayBuffer(1)))!=ir||Fh&&_l(new Fh)!=Ft||Zh&&"[object Promise]"!=_l(Zh.resolve())||Gh&&_l(new Gh)!=Xt||Vh&&_l(new Vh)!=rr)&&(_l=function(t){var r=ce(t),n=r==Vt?t.constructor:tt,e=n?Fu(n):"";if(e)switch(e){case Jh:return ir;case Qh:return Ft;case tl:return"[object Promise]";case rl:return Xt;case nl:return rr}return r});var wl=fh?Vf:Ls,Ml=Du(ll),bl=Ih||function(t,r){return Bn.setTimeout(t,r)},Bl=Du(cl),Al=function(t){var r=Af(t,function(t){return n.size===ut&&n.clear(),t}),n=r.cache;return r}(function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,function(t,n,e,i){r.push(e?i.replace(/\\(\\)?/g,"$1"):n||t)}),r}),xl=He(function(t,r){return $f(t)?re(t,oe(r,1,$f,!0)):[]}),El=He(function(t,r){var n=co(r);return $f(n)&&(n=tt),$f(t)?re(t,oe(r,1,$f,!0),pu(n,2)):[]}),kl=He(function(t,r){var n=co(r);return $f(n)&&(n=tt),$f(t)?re(t,oe(r,1,$f,!0),tt,n):[]}),Sl=He(function(t){var r=h(t,vi);return r.length&&r[0]===t[0]?me(r):[]}),Rl=He(function(t){var r=co(t),n=h(t,vi);return r===co(n)?r=tt:n.pop(),n.length&&n[0]===t[0]?me(n,pu(r,2)):[]}),Il=He(function(t){var r=co(t),n=h(t,vi);return(r="function"==typeof r?r:tt)&&n.pop(),n.length&&n[0]===t[0]?me(n,tt,r):[]}),Tl=He(go),Ol=au(function(t,r){var n=null==t?0:t.length,e=Kn(t,r);return Ze(t,h(r,function(t){return Eu(t,n)?+t:t}).sort(xi)),e}),jl=He(function(t){return ai(oe(t,1,$f,!0))}),Ll=He(function(t){var r=co(t);return $f(r)&&(r=tt),ai(oe(t,1,$f,!0),pu(r,2))}),Ul=He(function(t){var r=co(t);return r="function"==typeof r?r:tt,ai(oe(t,1,$f,!0),tt,r)}),Pl=He(function(t,r){return $f(t)?re(t,r):[]}),Cl=He(function(t){return pi(f(t,$f))}),Nl=He(function(t){var r=co(t);return $f(r)&&(r=tt),pi(f(t,$f),pu(r,2))}),zl=He(function(t){var r=co(t);return r="function"==typeof r?r:tt,pi(f(t,$f),tt,r)}),$l=He(No),Wl=He(function(t){var r=t.length,n=r>1?t[r-1]:tt;return n="function"==typeof n?(t.pop(),n):tt,zo(t,n)}),Dl=au(function(t){var r=t.length,n=r?t[0]:0,e=this.__wrapped__,i=function(r){return Kn(r,t)};return!(r>1||this.__actions__.length)&&e instanceof X&&Eu(n)?((e=e.slice(n,+n+(r?1:0))).__actions__.push({func:qo,args:[i],thisArg:tt}),new G(e,this.__chain__).thru(function(t){return r&&!t.length&&t.push(tt),t})):this.thru(i)}),Yl=ji(function(t,r,n){sh.call(t,n)?++t[n]:Vn(t,n,1)}),ql=Di(no),Fl=Di(eo),Zl=ji(function(t,r,n){sh.call(t,n)?t[n].push(r):Vn(t,n,[r])}),Gl=He(function(t,r,e){var i=-1,u="function"==typeof r,o=zf(t)?Ks(t.length):[];return fl(t,function(t){o[++i]=u?n(r,t,e):_e(t,r,e)}),o}),Vl=ji(function(t,r,n){Vn(t,n,r)}),Kl=ji(function(t,r,n){t[n?0:1].push(r)},function(){return[[],[]]}),Hl=He(function(t,r){if(null==t)return[];var n=r.length;return n>1&&ku(t,r[0],r[1])?r=[]:n>2&&ku(r[0],r[1],r[2])&&(r=[r[0]]),We(t,oe(r,1),[])}),Xl=Rh||function(){return Bn.Date.now()},Jl=He(function(t,r,n){var e=ct;if(n.length){var i=Y(n,cu(Jl));e|=mt}return ru(t,e,r,n,i)}),Ql=He(function(t,r,n){var e=ct|pt;if(n.length){var i=Y(n,cu(Ql));e|=mt}return ru(r,e,t,n,i)}),tc=He(function(t,r){return te(t,1,r)}),rc=He(function(t,r,n){return te(t,ma(r)||0,n)});Af.Cache=nn;var nc=pl(function(t,r){var e=(r=1==r.length&&sc(r[0])?h(r[0],I(pu())):h(oe(r,1),I(pu()))).length;return He(function(i){for(var u=-1,o=zh(i.length,e);++u<o;)i[u]=r[u].call(this,i[u]);return n(t,this,i)})}),ec=He(function(t,r){var n=Y(r,cu(ec));return ru(t,mt,tt,r,n)}),ic=He(function(t,r){var n=Y(r,cu(ic));return ru(t,yt,tt,r,n)}),uc=au(function(t,r){return ru(t,wt,tt,tt,tt,r)}),oc=Xi(pe),fc=Xi(function(t,r){return t>=r}),ac=we(function(){return arguments}())?we:function(t){return Jf(t)&&sh.call(t,"callee")&&!bh.call(t,"callee")},sc=Ks.isArray,hc=Rn?I(Rn):Me,lc=Lh||Ls,cc=In?I(In):be,pc=Tn?I(Tn):xe,dc=On?I(On):Se,vc=jn?I(jn):Re,gc=Ln?I(Ln):Ie,mc=Xi(Le),yc=Xi(function(t,r){return t<=r}),_c=Li(function(t,r){if(Ou(r)||zf(r))return void Ii(r,ja(r),t);for(var n in r)sh.call(r,n)&&Yn(t,n,r[n])}),wc=Li(function(t,r){Ii(r,La(r),t)}),Mc=Li(function(t,r,n,e){Ii(r,La(r),t,e)}),bc=Li(function(t,r,n,e){Ii(r,ja(r),t,e)}),Bc=au(Kn),Ac=He(function(t,r){t=th(t);var n=-1,e=r.length,i=e>2?r[2]:tt;for(i&&ku(r[0],r[1],i)&&(e=1);++n<e;)for(var u=r[n],o=La(u),f=-1,a=o.length;++f<a;){var s=o[f],h=t[s];(h===tt||Nf(h,oh[s])&&!sh.call(t,s))&&(t[s]=u[s])}return t}),xc=He(function(t){return t.push(tt,eu),n(Ic,tt,t)}),Ec=Fi(function(t,r,n){null!=r&&"function"!=typeof r.toString&&(r=ch.call(r)),t[r]=n},Ms(Bs)),kc=Fi(function(t,r,n){null!=r&&"function"!=typeof r.toString&&(r=ch.call(r)),sh.call(t,r)?t[r].push(n):t[r]=[n]},pu),Sc=He(_e),Rc=Li(function(t,r,n){Ne(t,r,n)}),Ic=Li(function(t,r,n,e){Ne(t,r,n,e)}),Tc=au(function(t,r){var n={};if(null==t)return n;var e=!1;r=h(r,function(r){return r=mi(r,t),e||(e=r.length>1),r}),Ii(t,hu(t),n),e&&(n=Xn(n,ft|at|st,iu));for(var i=r.length;i--;)si(n,r[i]);return n}),Oc=au(function(t,r){return null==t?{}:De(t,r)}),jc=tu(ja),Lc=tu(La),Uc=zi(function(t,r,n){return r=r.toLowerCase(),t+(n?Xa(r):r)}),Pc=zi(function(t,r,n){return t+(n?"-":"")+r.toLowerCase()}),Cc=zi(function(t,r,n){return t+(n?" ":"")+r.toLowerCase()}),Nc=Ni("toLowerCase"),zc=zi(function(t,r,n){return t+(n?"_":"")+r.toLowerCase()}),$c=zi(function(t,r,n){return t+(n?" ":"")+Dc(r)}),Wc=zi(function(t,r,n){return t+(n?" ":"")+r.toUpperCase()}),Dc=Ni("toUpperCase"),Yc=He(function(t,r){try{return n(t,tt,r)}catch(t){return Zf(t)?t:new Xs(t)}}),qc=au(function(t,r){return i(r,function(r){r=qu(r),Vn(t,r,Jl(t[r],t))}),t}),Fc=Yi(),Zc=Yi(!0),Gc=He(function(t,r){return function(n){return _e(n,t,r)}}),Vc=He(function(t,r){return function(n){return _e(t,n,r)}}),Kc=Gi(h),Hc=Gi(o),Xc=Gi(d),Jc=Hi(),Qc=Hi(!0),tp=Zi(function(t,r){return t+r},0),rp=Qi("ceil"),np=Zi(function(t,r){return t/r},1),ep=Qi("floor"),ip=Zi(function(t,r){return t*r},1),up=Qi("round"),op=Zi(function(t,r){return t-r},0);return v.after=mf,v.ary=yf,v.assign=_c,v.assignIn=wc,v.assignInWith=Mc,v.assignWith=bc,v.at=Bc,v.before=_f,v.bind=Jl,v.bindAll=qc,v.bindKey=Ql,v.castArray=Of,v.chain=Do,v.chunk=Vu,v.compact=Ku,v.concat=Hu,v.cond=_s,v.conforms=ws,v.constant=Ms,v.countBy=Yl,v.create=Ma,v.curry=wf,v.curryRight=Mf,v.debounce=bf,v.defaults=Ac,v.defaultsDeep=xc,v.defer=tc,v.delay=rc,v.difference=xl,v.differenceBy=El,v.differenceWith=kl,v.drop=Xu,v.dropRight=Ju,v.dropRightWhile=Qu,v.dropWhile=to,v.fill=ro,v.filter=Qo,v.flatMap=tf,v.flatMapDeep=rf,v.flatMapDepth=nf,v.flatten=io,v.flattenDeep=uo,v.flattenDepth=oo,v.flip=Bf,v.flow=Fc,v.flowRight=Zc,v.fromPairs=fo,v.functions=Sa,v.functionsIn=Ra,v.groupBy=Zl,v.initial=ho,v.intersection=Sl,v.intersectionBy=Rl,v.intersectionWith=Il,v.invert=Ec,v.invertBy=kc,v.invokeMap=Gl,v.iteratee=As,v.keyBy=Vl,v.keys=ja,v.keysIn=La,v.map=ff,v.mapKeys=Ua,v.mapValues=Pa,v.matches=xs,v.matchesProperty=Es,v.memoize=Af,v.merge=Rc,v.mergeWith=Ic,v.method=Gc,v.methodOf=Vc,v.mixin=ks,v.negate=xf,v.nthArg=Is,v.omit=Tc,v.omitBy=Ca,v.once=Ef,v.orderBy=af,v.over=Kc,v.overArgs=nc,v.overEvery=Hc,v.overSome=Xc,v.partial=ec,v.partialRight=ic,v.partition=Kl,v.pick=Oc,v.pickBy=Na,v.property=Ts,v.propertyOf=Os,v.pull=Tl,v.pullAll=go,v.pullAllBy=mo,v.pullAllWith=yo,v.pullAt=Ol,v.range=Jc,v.rangeRight=Qc,v.rearg=uc,v.reject=lf,v.remove=_o,v.rest=kf,v.reverse=wo,v.sampleSize=pf,v.set=$a,v.setWith=Wa,v.shuffle=df,v.slice=Mo,v.sortBy=Hl,v.sortedUniq=So,v.sortedUniqBy=Ro,v.split=as,v.spread=Sf,v.tail=Io,v.take=To,v.takeRight=Oo,v.takeRightWhile=jo,v.takeWhile=Lo,v.tap=Yo,v.throttle=Rf,v.thru=qo,v.toArray=pa,v.toPairs=jc,v.toPairsIn=Lc,v.toPath=zs,v.toPlainObject=ya,v.transform=Da,v.unary=If,v.union=jl,v.unionBy=Ll,v.unionWith=Ul,v.uniq=Uo,v.uniqBy=Po,v.uniqWith=Co,v.unset=Ya,v.unzip=No,v.unzipWith=zo,v.update=qa,v.updateWith=Fa,v.values=Za,v.valuesIn=Ga,v.without=Pl,v.words=ys,v.wrap=Tf,v.xor=Cl,v.xorBy=Nl,v.xorWith=zl,v.zip=$l,v.zipObject=$o,v.zipObjectDeep=Wo,v.zipWith=Wl,v.entries=jc,v.entriesIn=Lc,v.extend=wc,v.extendWith=Mc,ks(v,v),v.add=tp,v.attempt=Yc,v.camelCase=Uc,v.capitalize=Xa,v.ceil=rp,v.clamp=Va,v.clone=jf,v.cloneDeep=Uf,v.cloneDeepWith=Pf,v.cloneWith=Lf,v.conformsTo=Cf,v.deburr=Ja,v.defaultTo=bs,v.divide=np,v.endsWith=Qa,v.eq=Nf,v.escape=ts,v.escapeRegExp=rs,v.every=Jo,v.find=ql,v.findIndex=no,v.findKey=ba,v.findLast=Fl,v.findLastIndex=eo,v.findLastKey=Ba,v.floor=ep,v.forEach=ef,v.forEachRight=uf,v.forIn=Aa,v.forInRight=xa,v.forOwn=Ea,v.forOwnRight=ka,v.get=Ia,v.gt=oc,v.gte=fc,v.has=Ta,v.hasIn=Oa,v.head=ao,v.identity=Bs,v.includes=of,v.indexOf=so,v.inRange=Ka,v.invoke=Sc,v.isArguments=ac,v.isArray=sc,v.isArrayBuffer=hc,v.isArrayLike=zf,v.isArrayLikeObject=$f,v.isBoolean=Wf,v.isBuffer=lc,v.isDate=cc,v.isElement=Df,v.isEmpty=Yf,v.isEqual=qf,v.isEqualWith=Ff,v.isError=Zf,v.isFinite=Gf,v.isFunction=Vf,v.isInteger=Kf,v.isLength=Hf,v.isMap=pc,v.isMatch=Qf,v.isMatchWith=ta,v.isNaN=ra,v.isNative=na,v.isNil=ia,v.isNull=ea,v.isNumber=ua,v.isObject=Xf,v.isObjectLike=Jf,v.isPlainObject=oa,v.isRegExp=dc,v.isSafeInteger=fa,v.isSet=vc,v.isString=aa,v.isSymbol=sa,v.isTypedArray=gc,v.isUndefined=ha,v.isWeakMap=la,v.isWeakSet=ca,v.join=lo,v.kebabCase=Pc,v.last=co,v.lastIndexOf=po,v.lowerCase=Cc,v.lowerFirst=Nc,v.lt=mc,v.lte=yc,v.max=Ws,v.maxBy=Ds,v.mean=Ys,v.meanBy=qs,v.min=Fs,v.minBy=Zs,v.stubArray=js,v.stubFalse=Ls,v.stubObject=Us,v.stubString=Ps,v.stubTrue=Cs,v.multiply=ip,v.nth=vo,v.noConflict=Ss,v.noop=Rs,v.now=Xl,v.pad=ns,v.padEnd=es,v.padStart=is,v.parseInt=us,v.random=Ha,v.reduce=sf,v.reduceRight=hf,v.repeat=os,v.replace=fs,v.result=za,v.round=up,v.runInContext=t,v.sample=cf,v.size=vf,v.snakeCase=zc,v.some=gf,v.sortedIndex=bo,v.sortedIndexBy=Bo,v.sortedIndexOf=Ao,v.sortedLastIndex=xo,v.sortedLastIndexBy=Eo,v.sortedLastIndexOf=ko,v.startCase=$c,v.startsWith=ss,v.subtract=op,v.sum=Gs,v.sumBy=Vs,v.template=hs,v.times=Ns,v.toFinite=da,v.toInteger=va,v.toLength=ga,v.toLower=ls,v.toNumber=ma,v.toSafeInteger=_a,v.toString=wa,v.toUpper=cs,v.trim=ps,v.trimEnd=ds,v.trimStart=vs,v.truncate=gs,v.unescape=ms,v.uniqueId=$s,v.upperCase=Wc,v.upperFirst=Dc,v.each=ef,v.eachRight=uf,v.first=ao,ks(v,function(){var t={};return fe(v,function(r,n){sh.call(v.prototype,n)||(t[n]=r)}),t}(),{chain:!1}),v.VERSION="4.17.10",i(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){v[t].placeholder=v}),i(["drop","take"],function(t,r){X.prototype[t]=function(n){n=n===tt?1:Nh(va(n),0);var e=this.__filtered__&&!r?new X(this):this.clone();return e.__filtered__?e.__takeCount__=zh(n,e.__takeCount__):e.__views__.push({size:zh(n,Ot),type:t+(e.__dir__<0?"Right":"")}),e},X.prototype[t+"Right"]=function(r){return this.reverse()[t](r).reverse()}}),i(["filter","map","takeWhile"],function(t,r){var n=r+1,e=n==Et||3==n;X.prototype[t]=function(t){var r=this.clone();return r.__iteratees__.push({iteratee:pu(t,3),type:n}),r.__filtered__=r.__filtered__||e,r}}),i(["head","last"],function(t,r){var n="take"+(r?"Right":"");X.prototype[t]=function(){return this[n](1).value()[0]}}),i(["initial","tail"],function(t,r){var n="drop"+(r?"":"Right");X.prototype[t]=function(){return this.__filtered__?new X(this):this[n](1)}}),X.prototype.compact=function(){return this.filter(Bs)},X.prototype.find=function(t){return this.filter(t).head()},X.prototype.findLast=function(t){return this.reverse().find(t)},X.prototype.invokeMap=He(function(t,r){return"function"==typeof t?new X(this):this.map(function(n){return _e(n,t,r)})}),X.prototype.reject=function(t){return this.filter(xf(pu(t)))},X.prototype.slice=function(t,r){t=va(t);var n=this;return n.__filtered__&&(t>0||r<0)?new X(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),r!==tt&&(n=(r=va(r))<0?n.dropRight(-r):n.take(r-t)),n)},X.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},X.prototype.toArray=function(){return this.take(Ot)},fe(X.prototype,function(t,r){var n=/^(?:filter|find|map|reject)|While$/.test(r),e=/^(?:head|last)$/.test(r),i=v[e?"take"+("last"==r?"Right":""):r],u=e||/^find/.test(r);i&&(v.prototype[r]=function(){var r=this.__wrapped__,o=e?[1]:arguments,f=r instanceof X,a=o[0],s=f||sc(r),h=function(t){var r=i.apply(v,l([t],o));return e&&c?r[0]:r};s&&n&&"function"==typeof a&&1!=a.length&&(f=s=!1);var c=this.__chain__,p=!!this.__actions__.length,d=u&&!c,g=f&&!p;if(!u&&s){r=g?r:new X(this);var m=t.apply(r,o);return m.__actions__.push({func:qo,args:[h],thisArg:tt}),new G(m,c)}return d&&g?t.apply(this,o):(m=this.thru(h),d?e?m.value()[0]:m.value():m)})}),i(["pop","push","shift","sort","splice","unshift"],function(t){var r=ih[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);v.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var i=this.value();return r.apply(sc(i)?i:[],t)}return this[n](function(n){return r.apply(sc(n)?n:[],t)})}}),fe(X.prototype,function(t,r){var n=v[r];if(n){var e=n.name+"";(Xh[e]||(Xh[e]=[])).push({name:r,func:n})}}),Xh[qi(tt,pt).name]=[{name:"wrapper",func:tt}],X.prototype.clone=J,X.prototype.reverse=Or,X.prototype.value=Yr,v.prototype.at=Dl,v.prototype.chain=Fo,v.prototype.commit=Zo,v.prototype.next=Go,v.prototype.plant=Ko,v.prototype.reverse=Ho,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=Xo,v.prototype.first=v.prototype.head,xh&&(v.prototype[xh]=Vo),v}();"function"==typeof tt&&"object"==typeof tt.amd&&tt.amd?Bn._=zn:xn?((xn.exports=zn)._=zn,An._=zn):Bn._=zn}).call(commonjsGlobal)}),lodash_1=lodash.reduce,lodash_2=lodash.isUndefined,lodash_3=lodash.isString,lodash_4=lodash.every,lodash_5=lodash.map,lodash$2=Object.freeze({default:lodash,__moduleExports:lodash,reduce:lodash_1,isUndefined:lodash_2,isString:lodash_3,every:lodash_4,map:lodash_5}),require$$0$1=lodash$2&&lodash||lodash$2,src=createCommonjsModule(function(t){"use strict";const{reduce:reduce,isUndefined:isUndefined,isString:isString,every:every,map:map}=require$$0$1,r=[3077398253,3995603712,2243735041,1261992695],n=`\ndozmarbinwansamlitsighidfidlissogdirwacsabwissibrigsoldopmodfoglidhopdardorlorhodfolrintogsilmirholpaslacrovlivdalsatlibtabhanticpidtorbolfosdotlosdilforpilramtirwintadbicdifrocwidbisdasmidloprilnardapmolsanlocnovsitnidtipsicropwitnatpanminritpodmottamtolsavposnapnopsomfinfonbanmorworsipronnorbotwicsocwatdolmagpicdavbidbaltimtasmalligsivtagpadsaldivdactansidfabtarmonranniswolmispallasdismaprabtobrollatlonnodnavfignomnibpagsopralbilhaddocridmocpacravripfaltodtiltinhapmicfanpattaclabmogsimsonpinlomrictapfirhasbosbatpochactidhavsaplindibhosdabbitbarracparloddosbortochilmactomdigfilfasmithobharmighinradmashalraglagfadtopmophabnilnosmilfopfamdatnoldinhatnacrisfotribhocnimlarfitwalrapsarnalmoslandondanladdovrivbacpollaptalpitnambonrostonfodponsovnocsorlavmatmipfip`,e=`\nzodnecbudwessevpersutletfulpensytdurwepserwylsunrypsyxdyrnuphebpeglupdepdysputlughecryttyvsydnexlunmeplutseppesdelsulpedtemledtulmetwenbynhexfebpyldulhetmevruttylwydtepbesdexsefwycburderneppurrysrebdennutsubpetrulsynregtydsupsemwynrecmegnetsecmulnymtevwebsummutnyxrextebfushepbenmuswyxsymselrucdecwexsyrwetdylmynmesdetbetbeltuxtugmyrpelsyptermebsetdutdegtexsurfeltudnuxruxrenwytnubmedlytdusnebrumtynseglyxpunresredfunrevrefmectedrusbexlebduxrynnumpyxrygryxfeptyrtustyclegnemfermertenlusnussyltecmexpubrymtucfyllepdebbermughuttunbylsudpemdevlurdefbusbeprunmelpexdytbyttyplevmylwedducfurfexnulluclennerlexrupnedlecrydlydfenwelnydhusrelrudneshesfetdesretdunlernyrsebhulrylludremlysfynwerrycsugnysnyllyndyndemluxfedsedbecmunlyrtesmudnytbyrsenwegfyrmurtelreptegpecnelnevfes`.match(/.{1,3}/g),i=n.match(/.{1,3}/g),u=(t,r)=>t[r],o=t=>t.length,f=t=>t.length-1,a=(t,r)=>t.indexOf(r),s=t=>t%2!=0,h=t=>!s(t),l=t=>Array.from(Array(t),(t,r)=>r),c=t=>u(i,t),p=t=>u(e,t),d=t=>[...e,...i].includes(t),v=t=>e.includes(t),g=t=>i.includes(t),m=t=>a(i,t),y=t=>a(e,t),_=t=>parseInt(t,2).toString(10),w=t=>t.toString(2),M=t=>w(t).padStart(8,"0"),b=t=>{if(t>=65536&&t<=4294967295){const r=A(t-65536)+65536;return r}if(t>=4294967296&&t<=0x10000000000000000){const r=new bn$1(t),n=r.and(4294967295),e=r.and("18446744069414584000");return e.or(b(n)).toNumber()}return t},B=t=>{if(t>=65536&&t<=4294967295){const r=new bn$1(x(t-65536)),n=r.add(new bn$1(65536)).toNumber();return n}if(t>=4294967296&&t<=bn(0x10000000000000000)){const r=new bn$1(t),n=r.and(new bn$1("0xFFFFFFFF")),e=r.and(new bn$1("0xffffffff00000000")),i=e.or(B(n));return i.toNumber()}return t},A=t=>{let r=[t%65535,t/65535];for(var n=0;n<4;n++)r=E(n,r[0],r[1]);const e=65535*r[0]+r[1];return e},x=t=>{let r=[t%65535,t/65535];for(var n=3;n>-1;n--)r=k(n,r[0],r[1]);const e=new bn$1(65535);const i=e.mul(new bn$1(r[0])).add(new bn$1(r[1]));return i.toNumber()},E=(t,n,e)=>{n=Math.floor(n);const i=[e,0];const u=new bn$1(h(t)?65535:65536);const o=new bn$1(S(r[t],2,e));const f=o.add(new bn$1(n)).mod(u);i[1]=f.toNumber();return i},k=(t,n,e)=>{n=Math.floor(n);const i=[e,0];const u=new bn$1(h(t)?65535:65536);const o=new bn$1(S(r[t],2,e));const f=new bn$1(u+n);const a=f.sub(o.mod(u)).mod(u).toString();i[1]=a;return i},S=(t,r,n)=>{const e=255&n;const i=(65280&n)/256;const u=R(String.fromCharCode(e)+String.fromCharCode(i),t);return u},R=(t,r)=>{r||(r=0);const n=new bn$1(3432918353);const e=new bn$1(461845907);const i=4294967295;const u=new bn$1(o(t));let f=new bn$1(r);let a;const s=4294967292&u;for(var h=0;h<s;h+=4){var l=t.charCodeAt(h+3)?t.charCodeAt(h+3):0;a=bn(255&t.charCodeAt(h))|(255&t.charCodeAt(h+1))<<8|(255&t.charCodeAt(h+2))<<16|l<<24,a=(a*=n)<<15|(4294967295&a)>>17,f=5*(f=(f^=a*=e)<<13|(4294967295&f)>>19)+3864292196}a=0;const c=3&u;3==c&&(a=(255&t.charCodeAt(s+2))<<16);3!=c&&2!=c||(a|=(255&t.charCodeAt(s+1))<<8);if(3==c||2==c||1==c){a|=255&t.charCodeAt(s),a=new bn$1(a*n);var p=new bn$1(a.and(new bn$1(i)).shrn(17));a=(a=a.shln(15).or(p)).mul(e),f=f.xor(a)}f=f.xor(u);f=f.xor(f.and(new bn$1(i)).shrn(16));f=f.mul(new bn$1(2246822507));f=f.xor(f.and(new bn$1(i)).shrn(13));f=f.mul(new bn$1(3266489909));f=f.xor(f.and(new bn$1(i)).shrn(16));return f.and(new bn$1(i)).toNumber()},I=t=>t.replace(/[\^~-]/g,"").match(/.{1,3}/g),T=t=>{const r=o(I(t));switch(r){case 1:return"galaxy";case 2:return"star";case 4:return"planet";case 8:return"moon";case 16:return"comet";default:return"invalid"}},O=(t,r)=>{isUndefined(r)&&(r=!0);if(!j(t))return;isString(t)&&(t=I(t));const n=reduce(t,(r,n,e)=>s(e)||1===o(t)?r+M(y(n)):r+M(m(n)),"");const e=_(n);return r?B(e):e},j=t=>{const r=I(t);if(s(o(r))&&1!==o(r))return!1;const n=map(r,(t,n)=>s(n)||1===o(r)?v(t):g(t));return every(n,t=>!0===t)},L=t=>C(t,1),U=t=>C(t,2),P=(t,r)=>{isUndefined(r)&&(r=!0);return C(t,4,r)},C=(t,r,n)=>{isUndefined(n)&&(n=!0);r||(r=t<256?1:t<65536?2:4);4===r&&n&&(t=b(t));const e=reduce(l(r),(r,n)=>{const e=Math.floor(t%256);t/=256;const i=s(n)?c(e):p(e);return r=2===n?i+"-"+r:i+r},"");return e};t.exports={toAddress:O,toGalaxyName:L,toStarName:U,toPlanetName:P,isValidName:j,typeOfShip:T,toShipName:C,_getsuffix:p,_muk:S,_feen:b,_fend:B,_teil:x,_getAt:u,_len:o,_lid:f,_indexOf:a,_isOdd:s,_isEven:h,_seq:l,_getPrefix:c,_getSuffix:p,_doesExist:d,_doesSuffixExist:v,_doesPrefixExist:g,_getPrefixIndex:m,_getSuffixIndex:y,_bin2dec:_,_dec2bin:w,_syl2bin:M}}),src_1=src.toAddress,src_2=src.toGalaxyName,src_3=src.toStarName,src_4=src.toPlanetName,src_5=src.isValidName,src_6=src.typeOfShip,src_7=src.toShipName,src_8=src._getsuffix,src_9=src._muk,src_10=src._feen,src_11=src._fend,src_12=src._teil,src_13=src._getAt,src_14=src._len,src_15=src._lid,src_16=src._indexOf,src_17=src._isOdd,src_18=src._isEven,src_19=src._seq,src_20=src._getPrefix,src_21=src._getSuffix,src_22=src._doesExist,src_23=src._doesSuffixExist,src_24=src._doesPrefixExist,src_25=src._getPrefixIndex,src_26=src._getSuffixIndex,src_27=src._bin2dec,src_28=src._dec2bin,src_29=src._syl2bin;export{src_1 as toAddress,src_2 as toGalaxyName,src_3 as toStarName,src_4 as toPlanetName,src_5 as isValidName,src_6 as typeOfShip,src_7 as toShipName,src_8 as _getsuffix,src_9 as _muk,src_10 as _feen,src_11 as _fend,src_12 as _teil,src_13 as _getAt,src_14 as _len,src_15 as _lid,src_16 as _indexOf,src_17 as _isOdd,src_18 as _isEven,src_19 as _seq,src_20 as _getPrefix,src_21 as _getSuffix,src_22 as _doesExist,src_23 as _doesSuffixExist,src_24 as _doesPrefixExist,src_25 as _getPrefixIndex,src_26 as _getSuffixIndex,src_27 as _bin2dec,src_28 as _dec2bin,src_29 as _syl2bin};export default src; +function createCommonjsModule(t,r){return r={exports:{}},t(r,r.exports),r.exports}function init(){inited=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,n=t.length;r<n;++r)lookup[r]=t[r],revLookup[t.charCodeAt(r)]=r;revLookup["-".charCodeAt(0)]=62,revLookup["_".charCodeAt(0)]=63}function toByteArray(t){inited||init();var r,n,e,i,u,o,f=t.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");u="="===t[f-2]?2:"="===t[f-1]?1:0,o=new Arr(3*f/4-u),e=u>0?f-4:f;var a=0;for(r=0,n=0;r<e;r+=4,n+=3)i=revLookup[t.charCodeAt(r)]<<18|revLookup[t.charCodeAt(r+1)]<<12|revLookup[t.charCodeAt(r+2)]<<6|revLookup[t.charCodeAt(r+3)],o[a++]=i>>16&255,o[a++]=i>>8&255,o[a++]=255&i;return 2===u?(i=revLookup[t.charCodeAt(r)]<<2|revLookup[t.charCodeAt(r+1)]>>4,o[a++]=255&i):1===u&&(i=revLookup[t.charCodeAt(r)]<<10|revLookup[t.charCodeAt(r+1)]<<4|revLookup[t.charCodeAt(r+2)]>>2,o[a++]=i>>8&255,o[a++]=255&i),o}function tripletToBase64(t){return lookup[t>>18&63]+lookup[t>>12&63]+lookup[t>>6&63]+lookup[63&t]}function encodeChunk(t,r,n){for(var e,i=[],u=r;u<n;u+=3)e=(t[u]<<16)+(t[u+1]<<8)+t[u+2],i.push(tripletToBase64(e));return i.join("")}function fromByteArray(t){inited||init();for(var r,n=t.length,e=n%3,i="",u=[],o=0,f=n-e;o<f;o+=16383)u.push(encodeChunk(t,o,o+16383>f?f:o+16383));return 1===e?(r=t[n-1],i+=lookup[r>>2],i+=lookup[r<<4&63],i+="=="):2===e&&(r=(t[n-2]<<8)+t[n-1],i+=lookup[r>>10],i+=lookup[r>>4&63],i+=lookup[r<<2&63],i+="="),u.push(i),u.join("")}function read(t,r,n,e,i){var u,o,f=8*i-e-1,a=(1<<f)-1,s=a>>1,h=-7,l=n?i-1:0,c=n?-1:1,p=t[r+l];for(l+=c,u=p&(1<<-h)-1,p>>=-h,h+=f;h>0;u=256*u+t[r+l],l+=c,h-=8);for(o=u&(1<<-h)-1,u>>=-h,h+=e;h>0;o=256*o+t[r+l],l+=c,h-=8);if(0===u)u=1-s;else{if(u===a)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,e),u-=s}return(p?-1:1)*o*Math.pow(2,u-e)}function write(t,r,n,e,i,u){var o,f,a,s=8*u-i-1,h=(1<<s)-1,l=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=e?0:u-1,d=e?1:-1,v=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,o=h):(o=Math.floor(Math.log(r)/Math.LN2),r*(a=Math.pow(2,-o))<1&&(o--,a*=2),(r+=o+l>=1?c/a:c*Math.pow(2,1-l))*a>=2&&(o++,a/=2),o+l>=h?(f=0,o=h):o+l>=1?(f=(r*a-1)*Math.pow(2,i),o+=l):(f=r*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[n+p]=255&f,p+=d,f/=256,i-=8);for(o=o<<i|f,s+=i;s>0;t[n+p]=255&o,p+=d,o/=256,s-=8);t[n+p-d]|=128*v}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(t,r){if(kMaxLength()<r)throw new RangeError("Invalid typed array length");return Buffer.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=Buffer.prototype:(null===t&&(t=new Buffer(r)),t.length=r),t}function Buffer(t,r,n){if(!(Buffer.TYPED_ARRAY_SUPPORT||this instanceof Buffer))return new Buffer(t,r,n);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return allocUnsafe(this,t)}return from(this,t,r,n)}function from(t,r,n,e){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?fromArrayBuffer(t,r,n,e):"string"==typeof r?fromString(t,r,n):fromObject(t,r)}function assertSize(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function alloc(t,r,n,e){return assertSize(r),r<=0?createBuffer(t,r):void 0!==n?"string"==typeof e?createBuffer(t,r).fill(n,e):createBuffer(t,r).fill(n):createBuffer(t,r)}function allocUnsafe(t,r){if(assertSize(r),t=createBuffer(t,r<0?0:0|checked(r)),!Buffer.TYPED_ARRAY_SUPPORT)for(var n=0;n<r;++n)t[n]=0;return t}function fromString(t,r,n){if("string"==typeof n&&""!==n||(n="utf8"),!Buffer.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var e=0|byteLength(r,n),i=(t=createBuffer(t,e)).write(r,n);return i!==e&&(t=t.slice(0,i)),t}function fromArrayLike(t,r){var n=r.length<0?0:0|checked(r.length);t=createBuffer(t,n);for(var e=0;e<n;e+=1)t[e]=255&r[e];return t}function fromArrayBuffer(t,r,n,e){if(r.byteLength,n<0||r.byteLength<n)throw new RangeError("'offset' is out of bounds");if(r.byteLength<n+(e||0))throw new RangeError("'length' is out of bounds");return r=void 0===n&&void 0===e?new Uint8Array(r):void 0===e?new Uint8Array(r,n):new Uint8Array(r,n,e),Buffer.TYPED_ARRAY_SUPPORT?(t=r).__proto__=Buffer.prototype:t=fromArrayLike(t,r),t}function fromObject(t,r){if(internalIsBuffer(r)){var n=0|checked(r.length);return 0===(t=createBuffer(t,n)).length?t:(r.copy(t,0,0,n),t)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||isnan(r.length)?createBuffer(t,0):fromArrayLike(t,r);if("Buffer"===r.type&&isArray(r.data))return fromArrayLike(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function checked(t){if(t>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|t}function SlowBuffer(t){return+t!=t&&(t=0),Buffer.alloc(+t)}function internalIsBuffer(t){return!(null==t||!t._isBuffer)}function byteLength(t,r){if(internalIsBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var e=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return utf8ToBytes(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return base64ToBytes(t).length;default:if(e)return utf8ToBytes(t).length;r=(""+r).toLowerCase(),e=!0}}function slowToString(t,r,n){var e=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,r>>>=0,n<=r)return"";for(t||(t="utf8");;)switch(t){case"hex":return hexSlice(this,r,n);case"utf8":case"utf-8":return utf8Slice(this,r,n);case"ascii":return asciiSlice(this,r,n);case"latin1":case"binary":return latin1Slice(this,r,n);case"base64":return base64Slice(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,r,n);default:if(e)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),e=!0}}function swap(t,r,n){var e=t[r];t[r]=t[n],t[n]=e}function bidirectionalIndexOf(t,r,n,e,i){if(0===t.length)return-1;if("string"==typeof n?(e=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof r&&(r=Buffer.from(r,e)),internalIsBuffer(r))return 0===r.length?-1:arrayIndexOf(t,r,n,e,i);if("number"==typeof r)return r&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,n):Uint8Array.prototype.lastIndexOf.call(t,r,n):arrayIndexOf(t,[r],n,e,i);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(t,r,n,e,i){function u(t,r){return 1===o?t[r]:t.readUInt16BE(r*o)}var o=1,f=t.length,a=r.length;if(void 0!==e&&("ucs2"===(e=String(e).toLowerCase())||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(t.length<2||r.length<2)return-1;o=2,f/=2,a/=2,n/=2}var s;if(i){var h=-1;for(s=n;s<f;s++)if(u(t,s)===u(r,-1===h?0:s-h)){if(-1===h&&(h=s),s-h+1===a)return h*o}else-1!==h&&(s-=s-h),h=-1}else for(n+a>f&&(n=f-a),s=n;s>=0;s--){for(var l=!0,c=0;c<a;c++)if(u(t,s+c)!==u(r,c)){l=!1;break}if(l)return s}return-1}function hexWrite(t,r,n,e){n=Number(n)||0;var i=t.length-n;e?(e=Number(e))>i&&(e=i):e=i;var u=r.length;if(u%2!=0)throw new TypeError("Invalid hex string");e>u/2&&(e=u/2);for(var o=0;o<e;++o){var f=parseInt(r.substr(2*o,2),16);if(isNaN(f))return o;t[n+o]=f}return o}function utf8Write(t,r,n,e){return blitBuffer(utf8ToBytes(r,t.length-n),t,n,e)}function asciiWrite(t,r,n,e){return blitBuffer(asciiToBytes(r),t,n,e)}function latin1Write(t,r,n,e){return asciiWrite(t,r,n,e)}function base64Write(t,r,n,e){return blitBuffer(base64ToBytes(r),t,n,e)}function ucs2Write(t,r,n,e){return blitBuffer(utf16leToBytes(r,t.length-n),t,n,e)}function base64Slice(t,r,n){return fromByteArray(0===r&&n===t.length?t:t.slice(r,n))}function utf8Slice(t,r,n){n=Math.min(t.length,n);for(var e=[],i=r;i<n;){var u=t[i],o=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n){var a,s,h,l;switch(f){case 1:u<128&&(o=u);break;case 2:128==(192&(a=t[i+1]))&&(l=(31&u)<<6|63&a)>127&&(o=l);break;case 3:a=t[i+1],s=t[i+2],128==(192&a)&&128==(192&s)&&(l=(15&u)<<12|(63&a)<<6|63&s)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:a=t[i+1],s=t[i+2],h=t[i+3],128==(192&a)&&128==(192&s)&&128==(192&h)&&(l=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&h)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,f=1):o>65535&&(o-=65536,e.push(o>>>10&1023|55296),o=56320|1023&o),e.push(o),i+=f}return decodeCodePointsArray(e)}function decodeCodePointsArray(t){var r=t.length;if(r<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,t);for(var n="",e=0;e<r;)n+=String.fromCharCode.apply(String,t.slice(e,e+=MAX_ARGUMENTS_LENGTH));return n}function asciiSlice(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;i<n;++i)e+=String.fromCharCode(127&t[i]);return e}function latin1Slice(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;i<n;++i)e+=String.fromCharCode(t[i]);return e}function hexSlice(t,r,n){var e=t.length;(!r||r<0)&&(r=0),(!n||n<0||n>e)&&(n=e);for(var i="",u=r;u<n;++u)i+=toHex(t[u]);return i}function utf16leSlice(t,r,n){for(var e=t.slice(r,n),i="",u=0;u<e.length;u+=2)i+=String.fromCharCode(e[u]+256*e[u+1]);return i}function checkOffset(t,r,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>n)throw new RangeError("Trying to access beyond buffer length")}function checkInt(t,r,n,e,i,u){if(!internalIsBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<u)throw new RangeError('"value" argument is out of bounds');if(n+e>t.length)throw new RangeError("Index out of range")}function objectWriteUInt16(t,r,n,e){r<0&&(r=65535+r+1);for(var i=0,u=Math.min(t.length-n,2);i<u;++i)t[n+i]=(r&255<<8*(e?i:1-i))>>>8*(e?i:1-i)}function objectWriteUInt32(t,r,n,e){r<0&&(r=4294967295+r+1);for(var i=0,u=Math.min(t.length-n,4);i<u;++i)t[n+i]=r>>>8*(e?i:3-i)&255}function checkIEEE754(t,r,n,e,i,u){if(n+e>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function writeFloat(t,r,n,e,i){return i||checkIEEE754(t,r,n,4,3.4028234663852886e38,-3.4028234663852886e38),write(t,r,n,e,23,4),n+4}function writeDouble(t,r,n,e,i){return i||checkIEEE754(t,r,n,8,1.7976931348623157e308,-1.7976931348623157e308),write(t,r,n,e,52,8),n+8}function base64clean(t){if((t=stringtrim(t).replace(INVALID_BASE64_RE,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}function stringtrim(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function toHex(t){return t<16?"0"+t.toString(16):t.toString(16)}function utf8ToBytes(t,r){r=r||1/0;for(var n,e=t.length,i=null,u=[],o=0;o<e;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(r-=3)>-1&&u.push(239,191,189);continue}if(o+1===e){(r-=3)>-1&&u.push(239,191,189);continue}i=n;continue}if(n<56320){(r-=3)>-1&&u.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(r-=3)>-1&&u.push(239,191,189);if(i=null,n<128){if((r-=1)<0)break;u.push(n)}else if(n<2048){if((r-=2)<0)break;u.push(n>>6|192,63&n|128)}else if(n<65536){if((r-=3)<0)break;u.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;u.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return u}function asciiToBytes(t){for(var r=[],n=0;n<t.length;++n)r.push(255&t.charCodeAt(n));return r}function utf16leToBytes(t,r){for(var n,e,i,u=[],o=0;o<t.length&&!((r-=2)<0);++o)e=(n=t.charCodeAt(o))>>8,i=n%256,u.push(i),u.push(e);return u}function base64ToBytes(t){return toByteArray(base64clean(t))}function blitBuffer(t,r,n,e){for(var i=0;i<e&&!(i+n>=r.length||i>=t.length);++i)r[i+n]=t[i];return i}function isnan(t){return t!==t}function isBuffer(t){return null!=t&&(!!t._isBuffer||isFastBuffer(t)||isSlowBuffer(t))}function isFastBuffer(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function isSlowBuffer(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&isFastBuffer(t.slice(0,0))}var commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},global$1="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},lookup=[],revLookup=[],Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,inited=!1,toString={}.toString,isArray=Array.isArray||function(t){return"[object Array]"==toString.call(t)},INSPECT_MAX_BYTES=50;Buffer.TYPED_ARRAY_SUPPORT=void 0===global$1.TYPED_ARRAY_SUPPORT||global$1.TYPED_ARRAY_SUPPORT;var _kMaxLength=kMaxLength();Buffer.poolSize=8192,Buffer._augment=function(t){return t.__proto__=Buffer.prototype,t},Buffer.from=function(t,r,n){return from(null,t,r,n)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array),Buffer.alloc=function(t,r,n){return alloc(null,t,r,n)},Buffer.allocUnsafe=function(t){return allocUnsafe(null,t)},Buffer.allocUnsafeSlow=function(t){return allocUnsafe(null,t)},Buffer.isBuffer=isBuffer,Buffer.compare=function(t,r){if(!internalIsBuffer(t)||!internalIsBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,e=r.length,i=0,u=Math.min(n,e);i<u;++i)if(t[i]!==r[i]){n=t[i],e=r[i];break}return n<e?-1:e<n?1:0},Buffer.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(t,r){if(!isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Buffer.alloc(0);var n;if(void 0===r)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var e=Buffer.allocUnsafe(r),i=0;for(n=0;n<t.length;++n){var u=t[n];if(!internalIsBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(e,i),i+=u.length}return e},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)swap(this,r,r+1);return this},Buffer.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)swap(this,r,r+3),swap(this,r+1,r+2);return this},Buffer.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)swap(this,r,r+7),swap(this,r+1,r+6),swap(this,r+2,r+5),swap(this,r+3,r+4);return this},Buffer.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?utf8Slice(this,0,t):slowToString.apply(this,arguments)},Buffer.prototype.equals=function(t){if(!internalIsBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Buffer.compare(this,t)},Buffer.prototype.inspect=function(){var t="",r=INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},Buffer.prototype.compare=function(t,r,n,e,i){if(!internalIsBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===n&&(n=t?t.length:0),void 0===e&&(e=0),void 0===i&&(i=this.length),r<0||n>t.length||e<0||i>this.length)throw new RangeError("out of range index");if(e>=i&&r>=n)return 0;if(e>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,e>>>=0,i>>>=0,this===t)return 0;for(var u=i-e,o=n-r,f=Math.min(u,o),a=this.slice(e,i),s=t.slice(r,n),h=0;h<f;++h)if(a[h]!==s[h]){u=a[h],o=s[h];break}return u<o?-1:o<u?1:0},Buffer.prototype.includes=function(t,r,n){return-1!==this.indexOf(t,r,n)},Buffer.prototype.indexOf=function(t,r,n){return bidirectionalIndexOf(this,t,r,n,!0)},Buffer.prototype.lastIndexOf=function(t,r,n){return bidirectionalIndexOf(this,t,r,n,!1)},Buffer.prototype.write=function(t,r,n,e){if(void 0===r)e="utf8",n=this.length,r=0;else if(void 0===n&&"string"==typeof r)e=r,n=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(n)?(n|=0,void 0===e&&(e="utf8")):(e=n,n=void 0)}var i=this.length-r;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var u=!1;;)switch(e){case"hex":return hexWrite(this,t,r,n);case"utf8":case"utf-8":return utf8Write(this,t,r,n);case"ascii":return asciiWrite(this,t,r,n);case"latin1":case"binary":return latin1Write(this,t,r,n);case"base64":return base64Write(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,t,r,n);default:if(u)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),u=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;Buffer.prototype.slice=function(t,r){var n=this.length;t=~~t,r=void 0===r?n:~~r,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),r<0?(r+=n)<0&&(r=0):r>n&&(r=n),r<t&&(r=t);var e;if(Buffer.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,r)).__proto__=Buffer.prototype;else{var i=r-t;e=new Buffer(i,void 0);for(var u=0;u<i;++u)e[u]=this[u+t]}return e},Buffer.prototype.readUIntLE=function(t,r,n){t|=0,r|=0,n||checkOffset(t,r,this.length);for(var e=this[t],i=1,u=0;++u<r&&(i*=256);)e+=this[t+u]*i;return e},Buffer.prototype.readUIntBE=function(t,r,n){t|=0,r|=0,n||checkOffset(t,r,this.length);for(var e=this[t+--r],i=1;r>0&&(i*=256);)e+=this[t+--r]*i;return e},Buffer.prototype.readUInt8=function(t,r){return r||checkOffset(t,1,this.length),this[t]},Buffer.prototype.readUInt16LE=function(t,r){return r||checkOffset(t,2,this.length),this[t]|this[t+1]<<8},Buffer.prototype.readUInt16BE=function(t,r){return r||checkOffset(t,2,this.length),this[t]<<8|this[t+1]},Buffer.prototype.readUInt32LE=function(t,r){return r||checkOffset(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Buffer.prototype.readUInt32BE=function(t,r){return r||checkOffset(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Buffer.prototype.readIntLE=function(t,r,n){t|=0,r|=0,n||checkOffset(t,r,this.length);for(var e=this[t],i=1,u=0;++u<r&&(i*=256);)e+=this[t+u]*i;return i*=128,e>=i&&(e-=Math.pow(2,8*r)),e},Buffer.prototype.readIntBE=function(t,r,n){t|=0,r|=0,n||checkOffset(t,r,this.length);for(var e=r,i=1,u=this[t+--e];e>0&&(i*=256);)u+=this[t+--e]*i;return i*=128,u>=i&&(u-=Math.pow(2,8*r)),u},Buffer.prototype.readInt8=function(t,r){return r||checkOffset(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Buffer.prototype.readInt16LE=function(t,r){r||checkOffset(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt16BE=function(t,r){r||checkOffset(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt32LE=function(t,r){return r||checkOffset(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Buffer.prototype.readInt32BE=function(t,r){return r||checkOffset(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Buffer.prototype.readFloatLE=function(t,r){return r||checkOffset(t,4,this.length),read(this,t,!0,23,4)},Buffer.prototype.readFloatBE=function(t,r){return r||checkOffset(t,4,this.length),read(this,t,!1,23,4)},Buffer.prototype.readDoubleLE=function(t,r){return r||checkOffset(t,8,this.length),read(this,t,!0,52,8)},Buffer.prototype.readDoubleBE=function(t,r){return r||checkOffset(t,8,this.length),read(this,t,!1,52,8)},Buffer.prototype.writeUIntLE=function(t,r,n,e){t=+t,r|=0,n|=0,e||checkInt(this,t,r,n,Math.pow(2,8*n)-1,0);var i=1,u=0;for(this[r]=255&t;++u<n&&(i*=256);)this[r+u]=t/i&255;return r+n},Buffer.prototype.writeUIntBE=function(t,r,n,e){t=+t,r|=0,n|=0,e||checkInt(this,t,r,n,Math.pow(2,8*n)-1,0);var i=n-1,u=1;for(this[r+i]=255&t;--i>=0&&(u*=256);)this[r+i]=t/u&255;return r+n},Buffer.prototype.writeUInt8=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},Buffer.prototype.writeUInt16LE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):objectWriteUInt16(this,t,r,!0),r+2},Buffer.prototype.writeUInt16BE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):objectWriteUInt16(this,t,r,!1),r+2},Buffer.prototype.writeUInt32LE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):objectWriteUInt32(this,t,r,!0),r+4},Buffer.prototype.writeUInt32BE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):objectWriteUInt32(this,t,r,!1),r+4},Buffer.prototype.writeIntLE=function(t,r,n,e){if(t=+t,r|=0,!e){var i=Math.pow(2,8*n-1);checkInt(this,t,r,n,i-1,-i)}var u=0,o=1,f=0;for(this[r]=255&t;++u<n&&(o*=256);)t<0&&0===f&&0!==this[r+u-1]&&(f=1),this[r+u]=(t/o>>0)-f&255;return r+n},Buffer.prototype.writeIntBE=function(t,r,n,e){if(t=+t,r|=0,!e){var i=Math.pow(2,8*n-1);checkInt(this,t,r,n,i-1,-i)}var u=n-1,o=1,f=0;for(this[r+u]=255&t;--u>=0&&(o*=256);)t<0&&0===f&&0!==this[r+u+1]&&(f=1),this[r+u]=(t/o>>0)-f&255;return r+n},Buffer.prototype.writeInt8=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},Buffer.prototype.writeInt16LE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):objectWriteUInt16(this,t,r,!0),r+2},Buffer.prototype.writeInt16BE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):objectWriteUInt16(this,t,r,!1),r+2},Buffer.prototype.writeInt32LE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):objectWriteUInt32(this,t,r,!0),r+4},Buffer.prototype.writeInt32BE=function(t,r,n){return t=+t,r|=0,n||checkInt(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):objectWriteUInt32(this,t,r,!1),r+4},Buffer.prototype.writeFloatLE=function(t,r,n){return writeFloat(this,t,r,!0,n)},Buffer.prototype.writeFloatBE=function(t,r,n){return writeFloat(this,t,r,!1,n)},Buffer.prototype.writeDoubleLE=function(t,r,n){return writeDouble(this,t,r,!0,n)},Buffer.prototype.writeDoubleBE=function(t,r,n){return writeDouble(this,t,r,!1,n)},Buffer.prototype.copy=function(t,r,n,e){if(n||(n=0),e||0===e||(e=this.length),r>=t.length&&(r=t.length),r||(r=0),e>0&&e<n&&(e=n),e===n)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),t.length-r<e-n&&(e=t.length-r+n);var i,u=e-n;if(this===t&&n<r&&r<e)for(i=u-1;i>=0;--i)t[i+r]=this[i+n];else if(u<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;i<u;++i)t[i+r]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+u),r);return u},Buffer.prototype.fill=function(t,r,n,e){if("string"==typeof t){if("string"==typeof r?(e=r,r=0,n=this.length):"string"==typeof n&&(e=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==e&&"string"!=typeof e)throw new TypeError("encoding must be a string");if("string"==typeof e&&!Buffer.isEncoding(e))throw new TypeError("Unknown encoding: "+e)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var u;if("number"==typeof t)for(u=r;u<n;++u)this[u]=t;else{var o=internalIsBuffer(t)?t:utf8ToBytes(new Buffer(t,e).toString()),f=o.length;for(u=0;u<n-r;++u)this[u+r]=o[u%f]}return this};var INVALID_BASE64_RE=/[^+\/0-9A-Za-z-_]/g,bufferEs6=Object.freeze({INSPECT_MAX_BYTES:INSPECT_MAX_BYTES,kMaxLength:_kMaxLength,Buffer:Buffer,SlowBuffer:SlowBuffer,isBuffer:isBuffer}),bn$1=createCommonjsModule(function(t){!function(t,r){"use strict";function n(t,r){if(!t)throw new Error(r||"Assertion failed")}function e(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,r,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==r&&"be"!==r||(n=r,r=10),this._init(t||0,r||10,n||"be"))}function u(t,r,n){for(var e=0,i=Math.min(t.length,n),u=r;u<i;u++){var o=t.charCodeAt(u)-48;e<<=4,e|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return e}function o(t,r,n,e){for(var i=0,u=Math.min(t.length,n),o=r;o<u;o++){var f=t.charCodeAt(o)-48;i*=e,i+=f>=49?f-49+10:f>=17?f-17+10:f}return i}function f(t){for(var r=new Array(t.bitLength()),n=0;n<r.length;n++){var e=n/26|0,i=n%26;r[n]=(t.words[e]&1<<i)>>>i}return r}function a(t,r,n){n.negative=r.negative^t.negative;var e=t.length+r.length|0;n.length=e,e=e-1|0;var i=0|t.words[0],u=0|r.words[0],o=i*u,f=67108863&o,a=o/67108864|0;n.words[0]=f;for(var s=1;s<e;s++){for(var h=a>>>26,l=67108863&a,c=Math.min(s,r.length-1),p=Math.max(0,s-t.length+1);p<=c;p++){var d=s-p|0;h+=(o=(i=0|t.words[d])*(u=0|r.words[p])+l)/67108864|0,l=67108863&o}n.words[s]=0|l,a=0|h}return 0!==a?n.words[s]=0|a:n.length--,n.strip()}function s(t,r,n){n.negative=r.negative^t.negative,n.length=t.length+r.length;for(var e=0,i=0,u=0;u<n.length-1;u++){var o=i;i=0;for(var f=67108863&e,a=Math.min(u,r.length-1),s=Math.max(0,u-t.length+1);s<=a;s++){var h=u-s,l=(0|t.words[h])*(0|r.words[s]),c=67108863&l;f=67108863&(c=c+f|0),i+=(o=(o=o+(l/67108864|0)|0)+(c>>>26)|0)>>>26,o&=67108863}n.words[u]=f,e=o,o=i}return 0!==e?n.words[u]=e:n.length--,n.strip()}function h(t,r,n){return(new l).mulp(t,r,n)}function l(t,r){this.x=t,this.y=r}function c(t,r){this.name=t,this.p=new i(r,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function g(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){if("string"==typeof t){var r=i._prime(t);this.m=r.p,this.prime=r}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function y(t){m.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var _;try{_=bufferEs6.Buffer}catch(t){}i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,r){return t.cmp(r)>0?t:r},i.min=function(t,r){return t.cmp(r)<0?t:r},i.prototype._init=function(t,r,e){if("number"==typeof t)return this._initNumber(t,r,e);if("object"==typeof t)return this._initArray(t,r,e);"hex"===r&&(r=16),n(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===r?this._parseHex(t,i):this._parseBase(t,r,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),r,e)},i.prototype._initNumber=function(t,r,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),r,e)},i.prototype._initArray=function(t,r,e){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var u,o,f=0;if("be"===e)for(i=t.length-1,u=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[u]|=o<<f&67108863,this.words[u+1]=o>>>26-f&67108863,(f+=24)>=26&&(f-=26,u++);else if("le"===e)for(i=0,u=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[u]|=o<<f&67108863,this.words[u+1]=o>>>26-f&67108863,(f+=24)>=26&&(f-=26,u++);return this.strip()},i.prototype._parseHex=function(t,r){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var e,i,o=0;for(n=t.length-6,e=0;n>=r;n-=6)i=u(t,n,n+6),this.words[e]|=i<<o&67108863,this.words[e+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,e++);n+6!==r&&(i=u(t,r,n+6),this.words[e]|=i<<o&67108863,this.words[e+1]|=i>>>26-o&4194303),this.strip()},i.prototype._parseBase=function(t,r,n){this.words=[0],this.length=1;for(var e=0,i=1;i<=67108863;i*=r)e++;e--,i=i/r|0;for(var u=t.length-n,f=u%e,a=Math.min(u,u-f)+n,s=0,h=n;h<a;h+=e)s=o(t,h,h+e,r),this.imuln(i),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==f){var l=1;for(s=o(t,h,t.length,r),h=0;h<f;h++)l*=r;this.imuln(l),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}},i.prototype.copy=function(t){t.words=new Array(this.length);for(var r=0;r<this.length;r++)t.words[r]=this.words[r];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(t,r){t=t||10,r=0|r||1;var e;if(16===t||"hex"===t){e="";for(var i=0,u=0,o=0;o<this.length;o++){var f=this.words[o],a=(16777215&(f<<i|u)).toString(16);e=0!==(u=f>>>24-i&16777215)||o!==this.length-1?w[6-a.length]+a+e:a+e,(i+=2)>=26&&(i-=26,o--)}for(0!==u&&(e=u.toString(16)+e);e.length%r!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(t===(0|t)&&t>=2&&t<=36){var s=M[t],h=b[t];e="";var l=this.clone();for(l.negative=0;!l.isZero();){var c=l.modn(h).toString(t);e=(l=l.idivn(h)).isZero()?c+e:w[s-c.length]+c+e}for(this.isZero()&&(e="0"+e);e.length%r!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(t,r){return n(void 0!==_),this.toArrayLike(_,t,r)},i.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},i.prototype.toArrayLike=function(t,r,e){var i=this.byteLength(),u=e||Math.max(1,i);n(i<=u,"byte array longer than desired length"),n(u>0,"Requested array length <= 0"),this.strip();var o,f,a="le"===r,s=new t(u),h=this.clone();if(a){for(f=0;!h.isZero();f++)o=h.andln(255),h.iushrn(8),s[f]=o;for(;f<u;f++)s[f]=0}else{for(f=0;f<u-i;f++)s[f]=0;for(f=0;!h.isZero();f++)o=h.andln(255),h.iushrn(8),s[u-f-1]=o}return s},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var r=t,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,n=0;return 0==(8191&r)&&(n+=13,r>>>=13),0==(127&r)&&(n+=7,r>>>=7),0==(15&r)&&(n+=4,r>>>=4),0==(3&r)&&(n+=2,r>>>=2),0==(1&r)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],r=this._countBits(t);return 26*(this.length-1)+r},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(t+=n,26!==n)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]|t.words[r];return this.strip()},i.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var r,n;this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e=0;e<n.length;e++)this.words[e]=r.words[e]^n.words[e];if(this!==r)for(;e<r.length;e++)this.words[e]=r.words[e];return this.length=r.length,this.strip()},i.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),e=t%26;this._expand(r),e>0&&r--;for(var i=0;i<r;i++)this.words[i]=67108863&~this.words[i];return e>0&&(this.words[i]=~this.words[i]&67108863>>26-e),this.strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,r){n("number"==typeof t&&t>=0);var e=t/26|0,i=t%26;return this._expand(e+1),this.words[e]=r?this.words[e]|1<<i:this.words[e]&~(1<<i),this.strip()},i.prototype.iadd=function(t){var r;if(0!==this.negative&&0===t.negative)return this.negative=0,r=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();var n,e;this.length>t.length?(n=this,e=t):(n=t,e=this);for(var i=0,u=0;u<e.length;u++)r=(0|n.words[u])+(0|e.words[u])+i,this.words[u]=67108863&r,i=r>>>26;for(;0!==i&&u<n.length;u++)r=(0|n.words[u])+i,this.words[u]=67108863&r,i=r>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;u<n.length;u++)this.words[u]=n.words[u];return this},i.prototype.add=function(t){var r;return 0!==t.negative&&0===this.negative?(t.negative=0,r=this.sub(t),t.negative^=1,r):0===t.negative&&0!==this.negative?(this.negative=0,r=t.sub(this),this.negative=1,r):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;var e,i;n>0?(e=this,i=t):(e=t,i=this);for(var u=0,o=0;o<i.length;o++)u=(r=(0|e.words[o])-(0|i.words[o])+u)>>26,this.words[o]=67108863&r;for(;0!==u&&o<e.length;o++)u=(r=(0|e.words[o])+u)>>26,this.words[o]=67108863&r;if(0===u&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var B=function(t,r,n){var e,i,u,o=t.words,f=r.words,a=n.words,s=0,h=0|o[0],l=8191&h,c=h>>>13,p=0|o[1],d=8191&p,v=p>>>13,g=0|o[2],m=8191&g,y=g>>>13,_=0|o[3],w=8191&_,M=_>>>13,b=0|o[4],B=8191&b,A=b>>>13,x=0|o[5],E=8191&x,k=x>>>13,S=0|o[6],R=8191&S,I=S>>>13,T=0|o[7],O=8191&T,j=T>>>13,L=0|o[8],U=8191&L,P=L>>>13,C=0|o[9],N=8191&C,z=C>>>13,$=0|f[0],W=8191&$,D=$>>>13,Y=0|f[1],q=8191&Y,F=Y>>>13,Z=0|f[2],G=8191&Z,V=Z>>>13,K=0|f[3],H=8191&K,X=K>>>13,J=0|f[4],Q=8191&J,tt=J>>>13,rt=0|f[5],nt=8191&rt,et=rt>>>13,it=0|f[6],ut=8191&it,ot=it>>>13,ft=0|f[7],at=8191&ft,st=ft>>>13,ht=0|f[8],lt=8191&ht,ct=ht>>>13,pt=0|f[9],dt=8191&pt,vt=pt>>>13;n.negative=t.negative^r.negative,n.length=19;var gt=(s+(e=Math.imul(l,W))|0)+((8191&(i=(i=Math.imul(l,D))+Math.imul(c,W)|0))<<13)|0;s=((u=Math.imul(c,D))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,e=Math.imul(d,W),i=(i=Math.imul(d,D))+Math.imul(v,W)|0,u=Math.imul(v,D);var mt=(s+(e=e+Math.imul(l,q)|0)|0)+((8191&(i=(i=i+Math.imul(l,F)|0)+Math.imul(c,q)|0))<<13)|0;s=((u=u+Math.imul(c,F)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,e=Math.imul(m,W),i=(i=Math.imul(m,D))+Math.imul(y,W)|0,u=Math.imul(y,D),e=e+Math.imul(d,q)|0,i=(i=i+Math.imul(d,F)|0)+Math.imul(v,q)|0,u=u+Math.imul(v,F)|0;var yt=(s+(e=e+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,V)|0)+Math.imul(c,G)|0))<<13)|0;s=((u=u+Math.imul(c,V)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,e=Math.imul(w,W),i=(i=Math.imul(w,D))+Math.imul(M,W)|0,u=Math.imul(M,D),e=e+Math.imul(m,q)|0,i=(i=i+Math.imul(m,F)|0)+Math.imul(y,q)|0,u=u+Math.imul(y,F)|0,e=e+Math.imul(d,G)|0,i=(i=i+Math.imul(d,V)|0)+Math.imul(v,G)|0,u=u+Math.imul(v,V)|0;var _t=(s+(e=e+Math.imul(l,H)|0)|0)+((8191&(i=(i=i+Math.imul(l,X)|0)+Math.imul(c,H)|0))<<13)|0;s=((u=u+Math.imul(c,X)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,e=Math.imul(B,W),i=(i=Math.imul(B,D))+Math.imul(A,W)|0,u=Math.imul(A,D),e=e+Math.imul(w,q)|0,i=(i=i+Math.imul(w,F)|0)+Math.imul(M,q)|0,u=u+Math.imul(M,F)|0,e=e+Math.imul(m,G)|0,i=(i=i+Math.imul(m,V)|0)+Math.imul(y,G)|0,u=u+Math.imul(y,V)|0,e=e+Math.imul(d,H)|0,i=(i=i+Math.imul(d,X)|0)+Math.imul(v,H)|0,u=u+Math.imul(v,X)|0;var wt=(s+(e=e+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,tt)|0)+Math.imul(c,Q)|0))<<13)|0;s=((u=u+Math.imul(c,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,e=Math.imul(E,W),i=(i=Math.imul(E,D))+Math.imul(k,W)|0,u=Math.imul(k,D),e=e+Math.imul(B,q)|0,i=(i=i+Math.imul(B,F)|0)+Math.imul(A,q)|0,u=u+Math.imul(A,F)|0,e=e+Math.imul(w,G)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,G)|0,u=u+Math.imul(M,V)|0,e=e+Math.imul(m,H)|0,i=(i=i+Math.imul(m,X)|0)+Math.imul(y,H)|0,u=u+Math.imul(y,X)|0,e=e+Math.imul(d,Q)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(v,Q)|0,u=u+Math.imul(v,tt)|0;var Mt=(s+(e=e+Math.imul(l,nt)|0)|0)+((8191&(i=(i=i+Math.imul(l,et)|0)+Math.imul(c,nt)|0))<<13)|0;s=((u=u+Math.imul(c,et)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,e=Math.imul(R,W),i=(i=Math.imul(R,D))+Math.imul(I,W)|0,u=Math.imul(I,D),e=e+Math.imul(E,q)|0,i=(i=i+Math.imul(E,F)|0)+Math.imul(k,q)|0,u=u+Math.imul(k,F)|0,e=e+Math.imul(B,G)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(A,G)|0,u=u+Math.imul(A,V)|0,e=e+Math.imul(w,H)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(M,H)|0,u=u+Math.imul(M,X)|0,e=e+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,Q)|0,u=u+Math.imul(y,tt)|0,e=e+Math.imul(d,nt)|0,i=(i=i+Math.imul(d,et)|0)+Math.imul(v,nt)|0,u=u+Math.imul(v,et)|0;var bt=(s+(e=e+Math.imul(l,ut)|0)|0)+((8191&(i=(i=i+Math.imul(l,ot)|0)+Math.imul(c,ut)|0))<<13)|0;s=((u=u+Math.imul(c,ot)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,e=Math.imul(O,W),i=(i=Math.imul(O,D))+Math.imul(j,W)|0,u=Math.imul(j,D),e=e+Math.imul(R,q)|0,i=(i=i+Math.imul(R,F)|0)+Math.imul(I,q)|0,u=u+Math.imul(I,F)|0,e=e+Math.imul(E,G)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,G)|0,u=u+Math.imul(k,V)|0,e=e+Math.imul(B,H)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(A,H)|0,u=u+Math.imul(A,X)|0,e=e+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,Q)|0,u=u+Math.imul(M,tt)|0,e=e+Math.imul(m,nt)|0,i=(i=i+Math.imul(m,et)|0)+Math.imul(y,nt)|0,u=u+Math.imul(y,et)|0,e=e+Math.imul(d,ut)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(v,ut)|0,u=u+Math.imul(v,ot)|0;var Bt=(s+(e=e+Math.imul(l,at)|0)|0)+((8191&(i=(i=i+Math.imul(l,st)|0)+Math.imul(c,at)|0))<<13)|0;s=((u=u+Math.imul(c,st)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,e=Math.imul(U,W),i=(i=Math.imul(U,D))+Math.imul(P,W)|0,u=Math.imul(P,D),e=e+Math.imul(O,q)|0,i=(i=i+Math.imul(O,F)|0)+Math.imul(j,q)|0,u=u+Math.imul(j,F)|0,e=e+Math.imul(R,G)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,G)|0,u=u+Math.imul(I,V)|0,e=e+Math.imul(E,H)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(k,H)|0,u=u+Math.imul(k,X)|0,e=e+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(A,Q)|0,u=u+Math.imul(A,tt)|0,e=e+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,et)|0)+Math.imul(M,nt)|0,u=u+Math.imul(M,et)|0,e=e+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ot)|0)+Math.imul(y,ut)|0,u=u+Math.imul(y,ot)|0,e=e+Math.imul(d,at)|0,i=(i=i+Math.imul(d,st)|0)+Math.imul(v,at)|0,u=u+Math.imul(v,st)|0;var At=(s+(e=e+Math.imul(l,lt)|0)|0)+((8191&(i=(i=i+Math.imul(l,ct)|0)+Math.imul(c,lt)|0))<<13)|0;s=((u=u+Math.imul(c,ct)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,e=Math.imul(N,W),i=(i=Math.imul(N,D))+Math.imul(z,W)|0,u=Math.imul(z,D),e=e+Math.imul(U,q)|0,i=(i=i+Math.imul(U,F)|0)+Math.imul(P,q)|0,u=u+Math.imul(P,F)|0,e=e+Math.imul(O,G)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(j,G)|0,u=u+Math.imul(j,V)|0,e=e+Math.imul(R,H)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,H)|0,u=u+Math.imul(I,X)|0,e=e+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(k,Q)|0,u=u+Math.imul(k,tt)|0,e=e+Math.imul(B,nt)|0,i=(i=i+Math.imul(B,et)|0)+Math.imul(A,nt)|0,u=u+Math.imul(A,et)|0,e=e+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ot)|0)+Math.imul(M,ut)|0,u=u+Math.imul(M,ot)|0,e=e+Math.imul(m,at)|0,i=(i=i+Math.imul(m,st)|0)+Math.imul(y,at)|0,u=u+Math.imul(y,st)|0,e=e+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(v,lt)|0,u=u+Math.imul(v,ct)|0;var xt=(s+(e=e+Math.imul(l,dt)|0)|0)+((8191&(i=(i=i+Math.imul(l,vt)|0)+Math.imul(c,dt)|0))<<13)|0;s=((u=u+Math.imul(c,vt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,e=Math.imul(N,q),i=(i=Math.imul(N,F))+Math.imul(z,q)|0,u=Math.imul(z,F),e=e+Math.imul(U,G)|0,i=(i=i+Math.imul(U,V)|0)+Math.imul(P,G)|0,u=u+Math.imul(P,V)|0,e=e+Math.imul(O,H)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(j,H)|0,u=u+Math.imul(j,X)|0,e=e+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(I,Q)|0,u=u+Math.imul(I,tt)|0,e=e+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,et)|0)+Math.imul(k,nt)|0,u=u+Math.imul(k,et)|0,e=e+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(A,ut)|0,u=u+Math.imul(A,ot)|0,e=e+Math.imul(w,at)|0,i=(i=i+Math.imul(w,st)|0)+Math.imul(M,at)|0,u=u+Math.imul(M,st)|0,e=e+Math.imul(m,lt)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(y,lt)|0,u=u+Math.imul(y,ct)|0;var Et=(s+(e=e+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,vt)|0)+Math.imul(v,dt)|0))<<13)|0;s=((u=u+Math.imul(v,vt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,e=Math.imul(N,G),i=(i=Math.imul(N,V))+Math.imul(z,G)|0,u=Math.imul(z,V),e=e+Math.imul(U,H)|0,i=(i=i+Math.imul(U,X)|0)+Math.imul(P,H)|0,u=u+Math.imul(P,X)|0,e=e+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(j,Q)|0,u=u+Math.imul(j,tt)|0,e=e+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,et)|0)+Math.imul(I,nt)|0,u=u+Math.imul(I,et)|0,e=e+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ot)|0)+Math.imul(k,ut)|0,u=u+Math.imul(k,ot)|0,e=e+Math.imul(B,at)|0,i=(i=i+Math.imul(B,st)|0)+Math.imul(A,at)|0,u=u+Math.imul(A,st)|0,e=e+Math.imul(w,lt)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(M,lt)|0,u=u+Math.imul(M,ct)|0;var kt=(s+(e=e+Math.imul(m,dt)|0)|0)+((8191&(i=(i=i+Math.imul(m,vt)|0)+Math.imul(y,dt)|0))<<13)|0;s=((u=u+Math.imul(y,vt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,e=Math.imul(N,H),i=(i=Math.imul(N,X))+Math.imul(z,H)|0,u=Math.imul(z,X),e=e+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(P,Q)|0,u=u+Math.imul(P,tt)|0,e=e+Math.imul(O,nt)|0,i=(i=i+Math.imul(O,et)|0)+Math.imul(j,nt)|0,u=u+Math.imul(j,et)|0,e=e+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ot)|0)+Math.imul(I,ut)|0,u=u+Math.imul(I,ot)|0,e=e+Math.imul(E,at)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(k,at)|0,u=u+Math.imul(k,st)|0,e=e+Math.imul(B,lt)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(A,lt)|0,u=u+Math.imul(A,ct)|0;var St=(s+(e=e+Math.imul(w,dt)|0)|0)+((8191&(i=(i=i+Math.imul(w,vt)|0)+Math.imul(M,dt)|0))<<13)|0;s=((u=u+Math.imul(M,vt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,e=Math.imul(N,Q),i=(i=Math.imul(N,tt))+Math.imul(z,Q)|0,u=Math.imul(z,tt),e=e+Math.imul(U,nt)|0,i=(i=i+Math.imul(U,et)|0)+Math.imul(P,nt)|0,u=u+Math.imul(P,et)|0,e=e+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,ot)|0)+Math.imul(j,ut)|0,u=u+Math.imul(j,ot)|0,e=e+Math.imul(R,at)|0,i=(i=i+Math.imul(R,st)|0)+Math.imul(I,at)|0,u=u+Math.imul(I,st)|0,e=e+Math.imul(E,lt)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(k,lt)|0,u=u+Math.imul(k,ct)|0;var Rt=(s+(e=e+Math.imul(B,dt)|0)|0)+((8191&(i=(i=i+Math.imul(B,vt)|0)+Math.imul(A,dt)|0))<<13)|0;s=((u=u+Math.imul(A,vt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,e=Math.imul(N,nt),i=(i=Math.imul(N,et))+Math.imul(z,nt)|0,u=Math.imul(z,et),e=e+Math.imul(U,ut)|0,i=(i=i+Math.imul(U,ot)|0)+Math.imul(P,ut)|0,u=u+Math.imul(P,ot)|0,e=e+Math.imul(O,at)|0,i=(i=i+Math.imul(O,st)|0)+Math.imul(j,at)|0,u=u+Math.imul(j,st)|0,e=e+Math.imul(R,lt)|0,i=(i=i+Math.imul(R,ct)|0)+Math.imul(I,lt)|0,u=u+Math.imul(I,ct)|0;var It=(s+(e=e+Math.imul(E,dt)|0)|0)+((8191&(i=(i=i+Math.imul(E,vt)|0)+Math.imul(k,dt)|0))<<13)|0;s=((u=u+Math.imul(k,vt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,e=Math.imul(N,ut),i=(i=Math.imul(N,ot))+Math.imul(z,ut)|0,u=Math.imul(z,ot),e=e+Math.imul(U,at)|0,i=(i=i+Math.imul(U,st)|0)+Math.imul(P,at)|0,u=u+Math.imul(P,st)|0,e=e+Math.imul(O,lt)|0,i=(i=i+Math.imul(O,ct)|0)+Math.imul(j,lt)|0,u=u+Math.imul(j,ct)|0;var Tt=(s+(e=e+Math.imul(R,dt)|0)|0)+((8191&(i=(i=i+Math.imul(R,vt)|0)+Math.imul(I,dt)|0))<<13)|0;s=((u=u+Math.imul(I,vt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,e=Math.imul(N,at),i=(i=Math.imul(N,st))+Math.imul(z,at)|0,u=Math.imul(z,st),e=e+Math.imul(U,lt)|0,i=(i=i+Math.imul(U,ct)|0)+Math.imul(P,lt)|0,u=u+Math.imul(P,ct)|0;var Ot=(s+(e=e+Math.imul(O,dt)|0)|0)+((8191&(i=(i=i+Math.imul(O,vt)|0)+Math.imul(j,dt)|0))<<13)|0;s=((u=u+Math.imul(j,vt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,e=Math.imul(N,lt),i=(i=Math.imul(N,ct))+Math.imul(z,lt)|0,u=Math.imul(z,ct);var jt=(s+(e=e+Math.imul(U,dt)|0)|0)+((8191&(i=(i=i+Math.imul(U,vt)|0)+Math.imul(P,dt)|0))<<13)|0;s=((u=u+Math.imul(P,vt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Lt=(s+(e=Math.imul(N,dt))|0)+((8191&(i=(i=Math.imul(N,vt))+Math.imul(z,dt)|0))<<13)|0;return s=((u=Math.imul(z,vt))+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,a[0]=gt,a[1]=mt,a[2]=yt,a[3]=_t,a[4]=wt,a[5]=Mt,a[6]=bt,a[7]=Bt,a[8]=At,a[9]=xt,a[10]=Et,a[11]=kt,a[12]=St,a[13]=Rt,a[14]=It,a[15]=Tt,a[16]=Ot,a[17]=jt,a[18]=Lt,0!==s&&(a[19]=s,n.length++),n};Math.imul||(B=a),i.prototype.mulTo=function(t,r){var n=this.length+t.length;return 10===this.length&&10===t.length?B(this,t,r):n<63?a(this,t,r):n<1024?s(this,t,r):h(this,t,r)},l.prototype.makeRBT=function(t){for(var r=new Array(t),n=i.prototype._countBits(t)-1,e=0;e<t;e++)r[e]=this.revBin(e,n,t);return r},l.prototype.revBin=function(t,r,n){if(0===t||t===n-1)return t;for(var e=0,i=0;i<r;i++)e|=(1&t)<<r-i-1,t>>=1;return e},l.prototype.permute=function(t,r,n,e,i,u){for(var o=0;o<u;o++)e[o]=r[t[o]],i[o]=n[t[o]]},l.prototype.transform=function(t,r,n,e,i,u){this.permute(u,t,r,n,e,i);for(var o=1;o<i;o<<=1)for(var f=o<<1,a=Math.cos(2*Math.PI/f),s=Math.sin(2*Math.PI/f),h=0;h<i;h+=f)for(var l=a,c=s,p=0;p<o;p++){var d=n[h+p],v=e[h+p],g=n[h+p+o],m=e[h+p+o],y=l*g-c*m;m=l*m+c*g,g=y,n[h+p]=d+g,e[h+p]=v+m,n[h+p+o]=d-g,e[h+p+o]=v-m,p!==f&&(y=a*l-s*c,c=a*c+s*l,l=y)}},l.prototype.guessLen13b=function(t,r){var n=1|Math.max(r,t),e=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+e},l.prototype.conjugate=function(t,r,n){if(!(n<=1))for(var e=0;e<n/2;e++){var i=t[e];t[e]=t[n-e-1],t[n-e-1]=i,i=r[e],r[e]=-r[n-e-1],r[n-e-1]=-i}},l.prototype.normalize13b=function(t,r){for(var n=0,e=0;e<r/2;e++){var i=8192*Math.round(t[2*e+1]/r)+Math.round(t[2*e]/r)+n;t[e]=67108863&i,n=i<67108864?0:i/67108864|0}return t},l.prototype.convert13b=function(t,r,e,i){for(var u=0,o=0;o<r;o++)u+=0|t[o],e[2*o]=8191&u,u>>>=13,e[2*o+1]=8191&u,u>>>=13;for(o=2*r;o<i;++o)e[o]=0;n(0===u),n(0==(-8192&u))},l.prototype.stub=function(t){for(var r=new Array(t),n=0;n<t;n++)r[n]=0;return r},l.prototype.mulp=function(t,r,n){var e=2*this.guessLen13b(t.length,r.length),i=this.makeRBT(e),u=this.stub(e),o=new Array(e),f=new Array(e),a=new Array(e),s=new Array(e),h=new Array(e),l=new Array(e),c=n.words;c.length=e,this.convert13b(t.words,t.length,o,e),this.convert13b(r.words,r.length,s,e),this.transform(o,u,f,a,e,i),this.transform(s,u,h,l,e,i);for(var p=0;p<e;p++){var d=f[p]*h[p]-a[p]*l[p];a[p]=f[p]*l[p]+a[p]*h[p],f[p]=d}return this.conjugate(f,a,e),this.transform(f,a,c,u,e,i),this.conjugate(c,u,e),this.normalize13b(c,e),n.negative=t.negative^r.negative,n.length=t.length+r.length,n.strip()},i.prototype.mul=function(t){var r=new i(null);return r.words=new Array(this.length+t.length),this.mulTo(t,r)},i.prototype.mulf=function(t){var r=new i(null);return r.words=new Array(this.length+t.length),h(this,t,r)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var r=0,e=0;e<this.length;e++){var i=(0|this.words[e])*t,u=(67108863&i)+(67108863&r);r>>=26,r+=i/67108864|0,r+=u>>>26,this.words[e]=67108863&u}return 0!==r&&(this.words[e]=r,this.length++),this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var r=f(t);if(0===r.length)return new i(1);for(var n=this,e=0;e<r.length&&0===r[e];e++,n=n.sqr());if(++e<r.length)for(var u=n.sqr();e<r.length;e++,u=u.sqr())0!==r[e]&&(n=n.mul(u));return n},i.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var r,e=t%26,i=(t-e)/26,u=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(r=0;r<this.length;r++){var f=this.words[r]&u,a=(0|this.words[r])-f<<e;this.words[r]=a|o,o=f>>>26-e}o&&(this.words[r]=o,this.length++)}if(0!==i){for(r=this.length-1;r>=0;r--)this.words[r+i]=this.words[r];for(r=0;r<i;r++)this.words[r]=0;this.length+=i}return this.strip()},i.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,r,e){n("number"==typeof t&&t>=0);var i;i=r?(r-r%26)/26:0;var u=t%26,o=Math.min((t-u)/26,this.length),f=67108863^67108863>>>u<<u,a=e;if(i-=o,i=Math.max(0,i),a){for(var s=0;s<o;s++)a.words[s]=this.words[s];a.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var h=0;for(s=this.length-1;s>=0&&(0!==h||s>=i);s--){var l=0|this.words[s];this.words[s]=h<<26-u|l>>>u,h=l&f}return a&&0!==h&&(a.words[a.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(t,r,e){return n(0===this.negative),this.iushrn(t,r,e)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var r=t%26,e=(t-r)/26,i=1<<r;return!(this.length<=e)&&!!(this.words[e]&i)},i.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var r=t%26,e=(t-r)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=e)return this;if(0!==r&&e++,this.length=Math.min(e,this.length),0!==r){var i=67108863^67108863>>>r<<r;this.words[this.length-1]&=i}return this.strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,r,e){var i,u=t.length+e;this._expand(u);var o,f=0;for(i=0;i<t.length;i++){o=(0|this.words[i+e])+f;var a=(0|t.words[i])*r;f=((o-=67108863&a)>>26)-(a/67108864|0),this.words[i+e]=67108863&o}for(;i<this.length-e;i++)f=(o=(0|this.words[i+e])+f)>>26,this.words[i+e]=67108863&o;if(0===f)return this.strip();for(n(-1===f),f=0,i=0;i<this.length;i++)f=(o=-(0|this.words[i])+f)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(t,r){var n=this.length-t.length,e=this.clone(),u=t,o=0|u.words[u.length-1];0!==(n=26-this._countBits(o))&&(u=u.ushln(n),e.iushln(n),o=0|u.words[u.length-1]);var f,a=e.length-u.length;if("mod"!==r){(f=new i(null)).length=a+1,f.words=new Array(f.length);for(var s=0;s<f.length;s++)f.words[s]=0}var h=e.clone()._ishlnsubmul(u,1,a);0===h.negative&&(e=h,f&&(f.words[a]=1));for(var l=a-1;l>=0;l--){var c=67108864*(0|e.words[u.length+l])+(0|e.words[u.length+l-1]);for(c=Math.min(c/o|0,67108863),e._ishlnsubmul(u,c,l);0!==e.negative;)c--,e.negative=0,e._ishlnsubmul(u,1,l),e.isZero()||(e.negative^=1);f&&(f.words[l]=c)}return f&&f.strip(),e.strip(),"div"!==r&&0!==n&&e.iushrn(n),{div:f||null,mod:e}},i.prototype.divmod=function(t,r,e){if(n(!t.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var u,o,f;return 0!==this.negative&&0===t.negative?(f=this.neg().divmod(t,r),"mod"!==r&&(u=f.div.neg()),"div"!==r&&(o=f.mod.neg(),e&&0!==o.negative&&o.iadd(t)),{div:u,mod:o}):0===this.negative&&0!==t.negative?(f=this.divmod(t.neg(),r),"mod"!==r&&(u=f.div.neg()),{div:u,mod:f.mod}):0!=(this.negative&t.negative)?(f=this.neg().divmod(t.neg(),r),"div"!==r&&(o=f.mod.neg(),e&&0!==o.negative&&o.isub(t)),{div:f.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new i(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modn(t.words[0]))}:this._wordDiv(t,r)},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var n=0!==r.div.negative?r.mod.isub(t):r.mod,e=t.ushrn(1),i=t.andln(1),u=n.cmp(e);return u<0||1===i&&0===u?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(t){n(t<=67108863);for(var r=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(r*e+(0|this.words[i]))%t;return e},i.prototype.idivn=function(t){n(t<=67108863);for(var r=0,e=this.length-1;e>=0;e--){var i=(0|this.words[e])+67108864*r;this.words[e]=i/t|0,r=i%t}return this.strip()},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var r=this,e=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var u=new i(1),o=new i(0),f=new i(0),a=new i(1),s=0;r.isEven()&&e.isEven();)r.iushrn(1),e.iushrn(1),++s;for(var h=e.clone(),l=r.clone();!r.isZero();){for(var c=0,p=1;0==(r.words[0]&p)&&c<26;++c,p<<=1);if(c>0)for(r.iushrn(c);c-- >0;)(u.isOdd()||o.isOdd())&&(u.iadd(h),o.isub(l)),u.iushrn(1),o.iushrn(1);for(var d=0,v=1;0==(e.words[0]&v)&&d<26;++d,v<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(f.isOdd()||a.isOdd())&&(f.iadd(h),a.isub(l)),f.iushrn(1),a.iushrn(1);r.cmp(e)>=0?(r.isub(e),u.isub(f),o.isub(a)):(e.isub(r),f.isub(u),a.isub(o))}return{a:f,b:a,gcd:e.iushln(s)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var r=this,e=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var u=new i(1),o=new i(0),f=e.clone();r.cmpn(1)>0&&e.cmpn(1)>0;){for(var a=0,s=1;0==(r.words[0]&s)&&a<26;++a,s<<=1);if(a>0)for(r.iushrn(a);a-- >0;)u.isOdd()&&u.iadd(f),u.iushrn(1);for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(e)>=0?(r.isub(e),u.isub(o)):(e.isub(r),o.isub(u))}var c;return(c=0===r.cmpn(1)?u:o).cmpn(0)<0&&c.iadd(t),c},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),n=t.clone();r.negative=0,n.negative=0;for(var e=0;r.isEven()&&n.isEven();e++)r.iushrn(1),n.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=r.cmp(n);if(i<0){var u=r;r=n,n=u}else if(0===i||0===n.cmpn(1))break;r.isub(n)}return n.iushln(e)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var r=t%26,e=(t-r)/26,i=1<<r;if(this.length<=e)return this._expand(e+1),this.words[e]|=i,this;for(var u=i,o=e;0!==u&&o<this.length;o++){var f=0|this.words[o];u=(f+=u)>>>26,f&=67108863,this.words[o]=f}return 0!==u&&(this.words[o]=u,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;this.strip();var e;if(this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var r=this.ucmp(t);return 0!==this.negative?0|-r:r},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var e=0|this.words[n],i=0|t.words[n];if(e!==i){e<i?r=-1:e>i&&(r=1);break}}return r},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new m(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var A={k256:null,p224:null,p192:null,p25519:null};c.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},c.prototype.ireduce=function(t){var r,n=t;do{this.split(n,this.tmp),r=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(r>this.n);var e=r<this.n?-1:n.ucmp(this.p);return 0===e?(n.words[0]=0,n.length=1):e>0?n.isub(this.p):n.strip(),n},c.prototype.split=function(t,r){t.iushrn(this.n,0,r)},c.prototype.imulK=function(t){return t.imul(this.k)},e(p,c),p.prototype.split=function(t,r){for(var n=Math.min(t.length,9),e=0;e<n;e++)r.words[e]=t.words[e];if(r.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(r.words[r.length++]=4194303&i,e=10;e<t.length;e++){var u=0|t.words[e];t.words[e-10]=(4194303&u)<<4|i>>>22,i=u}i>>>=22,t.words[e-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},p.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,n=0;n<t.length;n++){var e=0|t.words[n];r+=977*e,t.words[n]=67108863&r,r=64*e+(r/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},e(d,c),e(v,c),e(g,c),g.prototype.imulK=function(t){for(var r=0,n=0;n<t.length;n++){var e=19*(0|t.words[n])+r,i=67108863&e;e>>>=26,t.words[n]=i,r=e}return 0!==r&&(t.words[t.length++]=r),t},i._prime=function(t){if(A[t])return A[t];var r;if("k256"===t)r=new p;else if("p224"===t)r=new d;else if("p192"===t)r=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new g}return A[t]=r,r},m.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,r){n(0==(t.negative|r.negative),"red works only with positives"),n(t.red&&t.red===r.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,r){this._verify2(t,r);var n=t.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},m.prototype.iadd=function(t,r){this._verify2(t,r);var n=t.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},m.prototype.sub=function(t,r){this._verify2(t,r);var n=t.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},m.prototype.isub=function(t,r){this._verify2(t,r);var n=t.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},m.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},m.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},m.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(n(r%2==1),3===r){var e=this.m.add(new i(1)).iushrn(2);return this.pow(t,e)}for(var u=this.m.subn(1),o=0;!u.isZero()&&0===u.andln(1);)o++,u.iushrn(1);n(!u.isZero());var f=new i(1).toRed(this),a=f.redNeg(),s=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new i(2*h*h).toRed(this);0!==this.pow(h,s).cmp(a);)h.redIAdd(a);for(var l=this.pow(h,u),c=this.pow(t,u.addn(1).iushrn(1)),p=this.pow(t,u),d=o;0!==p.cmp(f);){for(var v=p,g=0;0!==v.cmp(f);g++)v=v.redSqr();n(g<d);var m=this.pow(l,new i(1).iushln(d-g-1));c=c.redMul(m),l=m.redSqr(),p=p.redMul(l),d=g}return c},m.prototype.invm=function(t){var r=t._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},m.prototype.pow=function(t,r){if(r.isZero())return new i(1).toRed(this);if(0===r.cmpn(1))return t.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=t;for(var e=2;e<n.length;e++)n[e]=this.mul(n[e-1],t);var u=n[0],o=0,f=0,a=r.bitLength()%26;for(0===a&&(a=26),e=r.length-1;e>=0;e--){for(var s=r.words[e],h=a-1;h>=0;h--){var l=s>>h&1;u!==n[0]&&(u=this.sqr(u)),0!==l||0!==o?(o<<=1,o|=l,(4===++f||0===e&&0===h)&&(u=this.mul(u,n[o]),f=0,o=0)):f=0}a=26}return u},m.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},m.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},i.mont=function(t){return new y(t)},e(y,m),y.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},y.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},y.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(r),e=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},y.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new i(0)._forceRed(this);var n=t.mul(r),e=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(e).iushrn(this.shift),o=u;return u.cmp(this.m)>=0?o=u.isub(this.m):u.cmpn(0)<0&&(o=u.iadd(this.m)),o._forceRed(this)},y.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,commonjsGlobal)}),lodash=createCommonjsModule(function(t,r){(function(){function n(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}function e(t,r,n,e){for(var i=-1,u=null==t?0:t.length;++i<u;){var o=t[i];r(e,o,n(o),t)}return e}function i(t,r){for(var n=-1,e=null==t?0:t.length;++n<e&&!1!==r(t[n],n,t););return t}function u(t,r){for(var n=null==t?0:t.length;n--&&!1!==r(t[n],n,t););return t}function o(t,r){for(var n=-1,e=null==t?0:t.length;++n<e;)if(!r(t[n],n,t))return!1;return!0}function f(t,r){for(var n=-1,e=null==t?0:t.length,i=0,u=[];++n<e;){var o=t[n];r(o,n,t)&&(u[i++]=o)}return u}function a(t,r){return!!(null==t?0:t.length)&&_(t,r,0)>-1}function s(t,r,n){for(var e=-1,i=null==t?0:t.length;++e<i;)if(n(r,t[e]))return!0;return!1}function h(t,r){for(var n=-1,e=null==t?0:t.length,i=Array(e);++n<e;)i[n]=r(t[n],n,t);return i}function l(t,r){for(var n=-1,e=r.length,i=t.length;++n<e;)t[i+n]=r[n];return t}function c(t,r,n,e){var i=-1,u=null==t?0:t.length;for(e&&u&&(n=t[++i]);++i<u;)n=r(n,t[i],i,t);return n}function p(t,r,n,e){var i=null==t?0:t.length;for(e&&i&&(n=t[--i]);i--;)n=r(n,t[i],i,t);return n}function d(t,r){for(var n=-1,e=null==t?0:t.length;++n<e;)if(r(t[n],n,t))return!0;return!1}function v(t){return t.split("")}function g(t){return t.match(Or)||[]}function m(t,r,n){var e;return n(t,function(t,n,i){if(r(t,n,i))return e=n,!1}),e}function y(t,r,n,e){for(var i=t.length,u=n+(e?1:-1);e?u--:++u<i;)if(r(t[u],u,t))return u;return-1}function _(t,r,n){return r===r?G(t,r,n):y(t,M,n)}function w(t,r,n,e){for(var i=n-1,u=t.length;++i<u;)if(e(t[i],r))return i;return-1}function M(t){return t!==t}function b(t,r){var n=null==t?0:t.length;return n?k(t,r)/n:Tt}function B(t){return function(r){return null==r?tt:r[t]}}function A(t){return function(r){return null==t?tt:t[r]}}function x(t,r,n,e,i){return i(t,function(t,i,u){n=e?(e=!1,t):r(n,t,i,u)}),n}function E(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}function k(t,r){for(var n,e=-1,i=t.length;++e<i;){var u=r(t[e]);u!==tt&&(n=n===tt?u:n+u)}return n}function S(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}function R(t,r){return h(r,function(r){return[r,t[r]]})}function I(t){return function(r){return t(r)}}function T(t,r){return h(r,function(r){return t[r]})}function O(t,r){return t.has(r)}function j(t,r){for(var n=-1,e=t.length;++n<e&&_(r,t[n],0)>-1;);return n}function L(t,r){for(var n=t.length;n--&&_(r,t[n],0)>-1;);return n}function U(t,r){for(var n=t.length,e=0;n--;)t[n]===r&&++e;return e}function P(t){return"\\"+yn[t]}function C(t,r){return null==t?tt:t[r]}function N(t){return sn.test(t)}function z(t){return hn.test(t)}function $(t){for(var r,n=[];!(r=t.next()).done;)n.push(r.value);return n}function W(t){var r=-1,n=Array(t.size);return t.forEach(function(t,e){n[++r]=[e,t]}),n}function D(t,r){return function(n){return t(r(n))}}function Y(t,r){for(var n=-1,e=t.length,i=0,u=[];++n<e;){var o=t[n];o!==r&&o!==ot||(t[n]=ot,u[i++]=n)}return u}function q(t,r){return"__proto__"==r?tt:t[r]}function F(t){var r=-1,n=Array(t.size);return t.forEach(function(t){n[++r]=t}),n}function Z(t){var r=-1,n=Array(t.size);return t.forEach(function(t){n[++r]=[t,t]}),n}function G(t,r,n){for(var e=n-1,i=t.length;++e<i;)if(t[e]===r)return e;return-1}function V(t,r,n){for(var e=n+1;e--;)if(t[e]===r)return e;return e}function K(t){return N(t)?X(t):Un(t)}function H(t){return N(t)?J(t):v(t)}function X(t){for(var r=fn.lastIndex=0;fn.test(t);)++r;return r}function J(t){return t.match(fn)||[]}function Q(t){return t.match(an)||[]}var tt,rt=200,nt="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",et="Expected a function",it="__lodash_hash_undefined__",ut=500,ot="__lodash_placeholder__",ft=1,at=2,st=4,ht=1,lt=2,ct=1,pt=2,dt=4,vt=8,gt=16,mt=32,yt=64,_t=128,wt=256,Mt=512,bt=30,Bt="...",At=800,xt=16,Et=1,kt=2,St=1/0,Rt=9007199254740991,It=1.7976931348623157e308,Tt=NaN,Ot=4294967295,jt=Ot-1,Lt=Ot>>>1,Ut=[["ary",_t],["bind",ct],["bindKey",pt],["curry",vt],["curryRight",gt],["flip",Mt],["partial",mt],["partialRight",yt],["rearg",wt]],Pt="[object Arguments]",Ct="[object Array]",Nt="[object AsyncFunction]",zt="[object Boolean]",$t="[object Date]",Wt="[object DOMException]",Dt="[object Error]",Yt="[object Function]",qt="[object GeneratorFunction]",Ft="[object Map]",Zt="[object Number]",Gt="[object Null]",Vt="[object Object]",Kt="[object Proxy]",Ht="[object RegExp]",Xt="[object Set]",Jt="[object String]",Qt="[object Symbol]",tr="[object Undefined]",rr="[object WeakMap]",nr="[object WeakSet]",er="[object ArrayBuffer]",ir="[object DataView]",ur="[object Float32Array]",or="[object Float64Array]",fr="[object Int8Array]",ar="[object Int16Array]",sr="[object Int32Array]",hr="[object Uint8Array]",lr="[object Uint8ClampedArray]",cr="[object Uint16Array]",pr="[object Uint32Array]",dr=/\b__p \+= '';/g,vr=/\b(__p \+=) '' \+/g,gr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mr=/&(?:amp|lt|gt|quot|#39);/g,yr=/[&<>"']/g,_r=RegExp(mr.source),wr=RegExp(yr.source),Mr=/<%=([\s\S]+?)%>/g,br=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Br=/^\w*$/,Ar=/[\\^$.*+?()[\]{}|]/g,xr=RegExp(Ar.source),Er=/^\s+|\s+$/g,kr=/^\s+/,Sr=/\s+$/,Rr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ir=/\{\n\/\* \[wrapped with (.+)\] \*/,Tr=/,? & /,Or=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lr=/\w*$/,Ur=/^[-+]0x[0-9a-f]+$/i,Pr=/^0b[01]+$/i,Cr=/^\[object .+?Constructor\]$/,Nr=/^0o[0-7]+$/i,zr=/^(?:0|[1-9]\d*)$/,$r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wr=/($^)/,Dr=/['\n\r\u2028\u2029\\]/g,Yr="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",qr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Fr="["+qr+"]",Zr="["+Yr+"]",Gr="[a-z\\xdf-\\xf6\\xf8-\\xff]",Vr="[^\\ud800-\\udfff"+qr+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Kr="\\ud83c[\\udffb-\\udfff]",Hr="(?:\\ud83c[\\udde6-\\uddff]){2}",Xr="[\\ud800-\\udbff][\\udc00-\\udfff]",Jr="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Qr="(?:"+Gr+"|"+Vr+")",tn="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",rn="[\\ufe0e\\ufe0f]?"+tn+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Hr,Xr].join("|")+")[\\ufe0e\\ufe0f]?"+tn+")*"),nn="(?:"+["[\\u2700-\\u27bf]",Hr,Xr].join("|")+")"+rn,en="(?:"+["[^\\ud800-\\udfff]"+Zr+"?",Zr,Hr,Xr,"[\\ud800-\\udfff]"].join("|")+")",un=RegExp("['’]","g"),on=RegExp(Zr,"g"),fn=RegExp(Kr+"(?="+Kr+")|"+en+rn,"g"),an=RegExp([Jr+"?"+Gr+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Fr,Jr,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Fr,Jr+Qr,"$"].join("|")+")",Jr+"?"+Qr+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Jr+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",nn].join("|"),"g"),sn=RegExp("[\\u200d\\ud800-\\udfff"+Yr+"\\ufe0e\\ufe0f]"),hn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ln=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],cn=-1,pn={};pn[ur]=pn[or]=pn[fr]=pn[ar]=pn[sr]=pn[hr]=pn[lr]=pn[cr]=pn[pr]=!0,pn[Pt]=pn[Ct]=pn[er]=pn[zt]=pn[ir]=pn[$t]=pn[Dt]=pn[Yt]=pn[Ft]=pn[Zt]=pn[Vt]=pn[Ht]=pn[Xt]=pn[Jt]=pn[rr]=!1;var dn={};dn[Pt]=dn[Ct]=dn[er]=dn[ir]=dn[zt]=dn[$t]=dn[ur]=dn[or]=dn[fr]=dn[ar]=dn[sr]=dn[Ft]=dn[Zt]=dn[Vt]=dn[Ht]=dn[Xt]=dn[Jt]=dn[Qt]=dn[hr]=dn[lr]=dn[cr]=dn[pr]=!0,dn[Dt]=dn[Yt]=dn[rr]=!1;var vn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},gn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},mn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},yn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_n=parseFloat,wn=parseInt,Mn="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,bn="object"==typeof self&&self&&self.Object===Object&&self,Bn=Mn||bn||Function("return this")(),An=r&&!r.nodeType&&r,xn=An&&!0&&t&&!t.nodeType&&t,En=xn&&xn.exports===An,kn=En&&Mn.process,Sn=function(){try{var t=xn&&xn.require&&xn.require("util").types;return t||kn&&kn.binding&&kn.binding("util")}catch(t){}}(),Rn=Sn&&Sn.isArrayBuffer,In=Sn&&Sn.isDate,Tn=Sn&&Sn.isMap,On=Sn&&Sn.isRegExp,jn=Sn&&Sn.isSet,Ln=Sn&&Sn.isTypedArray,Un=B("length"),Pn=A(vn),Cn=A(gn),Nn=A(mn),zn=function t(r){function v(t){if(Jf(t)&&!sc(t)&&!(t instanceof X)){if(t instanceof G)return t;if(sh.call(t,"__wrapped__"))return Gu(t)}return new G(t)}function A(){}function G(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=tt}function X(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ot,this.__views__=[]}function J(){var t=new X(this.__wrapped__);return t.__actions__=Ri(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ri(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ri(this.__views__),t}function Or(){if(this.__filtered__){var t=new X(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t}function Yr(){var t=this.__wrapped__.value(),r=this.__dir__,n=sc(t),e=r<0,i=n?t.length:0,u=yu(0,i,this.__views__),o=u.start,f=u.end,a=f-o,s=e?f:o-1,h=this.__iteratees__,l=h.length,c=0,p=zh(a,this.__takeCount__);if(!n||!e&&i==a&&p==a)return ci(t,this.__actions__);var d=[];t:for(;a--&&c<p;){for(var v=-1,g=t[s+=r];++v<l;){var m=h[v],y=m.iteratee,_=m.type,w=y(g);if(_==kt)g=w;else if(!w){if(_==Et)continue t;break t}}d[c++]=g}return d}function qr(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function Fr(){this.__data__=Kh?Kh(null):{},this.size=0}function Zr(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function Gr(t){var r=this.__data__;if(Kh){var n=r[t];return n===it?tt:n}return sh.call(r,t)?r[t]:tt}function Vr(t){var r=this.__data__;return Kh?r[t]!==tt:sh.call(r,t)}function Kr(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Kh&&r===tt?it:r,this}function Hr(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function Xr(){this.__data__=[],this.size=0}function Jr(t){var r=this.__data__,n=qn(r,t);return!(n<0)&&(n==r.length-1?r.pop():Bh.call(r,n,1),--this.size,!0)}function Qr(t){var r=this.__data__,n=qn(r,t);return n<0?tt:r[n][1]}function tn(t){return qn(this.__data__,t)>-1}function rn(t,r){var n=this.__data__,e=qn(n,t);return e<0?(++this.size,n.push([t,r])):n[e][1]=r,this}function nn(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function en(){this.size=0,this.__data__={hash:new qr,map:new(Fh||Hr),string:new qr}}function fn(t){var r=du(this,t).delete(t);return this.size-=r?1:0,r}function an(t){return du(this,t).get(t)}function sn(t){return du(this,t).has(t)}function hn(t,r){var n=du(this,t),e=n.size;return n.set(t,r),this.size+=n.size==e?0:1,this}function vn(t){var r=-1,n=null==t?0:t.length;for(this.__data__=new nn;++r<n;)this.add(t[r])}function gn(t){return this.__data__.set(t,it),this}function mn(t){return this.__data__.has(t)}function yn(t){var r=this.__data__=new Hr(t);this.size=r.size}function Mn(){this.__data__=new Hr,this.size=0}function bn(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}function An(t){return this.__data__.get(t)}function xn(t){return this.__data__.has(t)}function kn(t,r){var n=this.__data__;if(n instanceof Hr){var e=n.__data__;if(!Fh||e.length<rt-1)return e.push([t,r]),this.size=++n.size,this;n=this.__data__=new nn(e)}return n.set(t,r),this.size=n.size,this}function Sn(t,r){var n=sc(t),e=!n&&ac(t),i=!n&&!e&&lc(t),u=!n&&!e&&!i&&gc(t),o=n||e||i||u,f=o?S(t.length,nh):[],a=f.length;for(var s in t)!r&&!sh.call(t,s)||o&&("length"==s||i&&("offset"==s||"parent"==s)||u&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Eu(s,a))||f.push(s);return f}function Un(t){var r=t.length;return r?t[Ge(0,r-1)]:tt}function $n(t,r){return Yu(Ri(t),Hn(r,0,t.length))}function Wn(t){return Yu(Ri(t))}function Dn(t,r,n){(n===tt||Nf(t[r],n))&&(n!==tt||r in t)||Vn(t,r,n)}function Yn(t,r,n){var e=t[r];sh.call(t,r)&&Nf(e,n)&&(n!==tt||r in t)||Vn(t,r,n)}function qn(t,r){for(var n=t.length;n--;)if(Nf(t[n][0],r))return n;return-1}function Fn(t,r,n,e){return fl(t,function(t,i,u){r(e,t,n(t),u)}),e}function Zn(t,r){return t&&Ii(r,ja(r),t)}function Gn(t,r){return t&&Ii(r,La(r),t)}function Vn(t,r,n){"__proto__"==r&&kh?kh(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n}function Kn(t,r){for(var n=-1,e=r.length,i=Ks(e),u=null==t;++n<e;)i[n]=u?tt:Ia(t,r[n]);return i}function Hn(t,r,n){return t===t&&(n!==tt&&(t=t<=n?t:n),r!==tt&&(t=t>=r?t:r)),t}function Xn(t,r,n,e,u,o){var f,a=r&ft,s=r&at,h=r&st;if(n&&(f=u?n(t,e,u,o):n(t)),f!==tt)return f;if(!Xf(t))return t;var l=sc(t);if(l){if(f=Mu(t),!a)return Ri(t,f)}else{var c=_l(t),p=c==Yt||c==qt;if(lc(t))return _i(t,a);if(c==Vt||c==Pt||p&&!u){if(f=s||p?{}:bu(t),!a)return s?Oi(t,Gn(f,t)):Ti(t,Zn(f,t))}else{if(!dn[c])return u?t:{};f=Bu(t,c,a)}}o||(o=new yn);var d=o.get(t);if(d)return d;if(o.set(t,f),vc(t))return t.forEach(function(e){f.add(Xn(e,r,n,e,t,o))}),f;if(pc(t))return t.forEach(function(e,i){f.set(i,Xn(e,r,n,i,t,o))}),f;var v=h?s?hu:su:s?La:ja,g=l?tt:v(t);return i(g||t,function(e,i){g&&(e=t[i=e]),Yn(f,i,Xn(e,r,n,i,t,o))}),f}function Jn(t){var r=ja(t);return function(n){return Qn(n,t,r)}}function Qn(t,r,n){var e=n.length;if(null==t)return!e;for(t=th(t);e--;){var i=n[e],u=r[i],o=t[i];if(o===tt&&!(i in t)||!u(o))return!1}return!0}function te(t,r,n){if("function"!=typeof t)throw new eh(et);return bl(function(){t.apply(tt,n)},r)}function re(t,r,n,e){var i=-1,u=a,o=!0,f=t.length,l=[],c=r.length;if(!f)return l;n&&(r=h(r,I(n))),e?(u=s,o=!1):r.length>=rt&&(u=O,o=!1,r=new vn(r));t:for(;++i<f;){var p=t[i],d=null==n?p:n(p);if(p=e||0!==p?p:0,o&&d===d){for(var v=c;v--;)if(r[v]===d)continue t;l.push(p)}else u(r,d,e)||l.push(p)}return l}function ne(t,r){var n=!0;return fl(t,function(t,e,i){return n=!!r(t,e,i)}),n}function ee(t,r,n){for(var e=-1,i=t.length;++e<i;){var u=t[e],o=r(u);if(null!=o&&(f===tt?o===o&&!sa(o):n(o,f)))var f=o,a=u}return a}function ie(t,r,n,e){var i=t.length;for((n=va(n))<0&&(n=-n>i?0:i+n),(e=e===tt||e>i?i:va(e))<0&&(e+=i),e=n>e?0:ga(e);n<e;)t[n++]=r;return t}function ue(t,r){var n=[];return fl(t,function(t,e,i){r(t,e,i)&&n.push(t)}),n}function oe(t,r,n,e,i){var u=-1,o=t.length;for(n||(n=xu),i||(i=[]);++u<o;){var f=t[u];r>0&&n(f)?r>1?oe(f,r-1,n,e,i):l(i,f):e||(i[i.length]=f)}return i}function fe(t,r){return t&&sl(t,r,ja)}function ae(t,r){return t&&hl(t,r,ja)}function se(t,r){return f(r,function(r){return Vf(t[r])})}function he(t,r){for(var n=0,e=(r=mi(r,t)).length;null!=t&&n<e;)t=t[qu(r[n++])];return n&&n==e?t:tt}function le(t,r,n){var e=r(t);return sc(t)?e:l(e,n(t))}function ce(t){return null==t?t===tt?tr:Gt:Eh&&Eh in th(t)?mu(t):Cu(t)}function pe(t,r){return t>r}function de(t,r){return null!=t&&sh.call(t,r)}function ve(t,r){return null!=t&&r in th(t)}function ge(t,r,n){return t>=zh(r,n)&&t<Nh(r,n)}function me(t,r,n){for(var e=n?s:a,i=t[0].length,u=t.length,o=u,f=Ks(u),l=1/0,c=[];o--;){var p=t[o];o&&r&&(p=h(p,I(r))),l=zh(p.length,l),f[o]=!n&&(r||i>=120&&p.length>=120)?new vn(o&&p):tt}p=t[0];var d=-1,v=f[0];t:for(;++d<i&&c.length<l;){var g=p[d],m=r?r(g):g;if(g=n||0!==g?g:0,!(v?O(v,m):e(c,m,n))){for(o=u;--o;){var y=f[o];if(!(y?O(y,m):e(t[o],m,n)))continue t}v&&v.push(m),c.push(g)}}return c}function ye(t,r,n,e){return fe(t,function(t,i,u){r(e,n(t),i,u)}),e}function _e(t,r,e){var i=null==(t=zu(t,r=mi(r,t)))?t:t[qu(co(r))];return null==i?tt:n(i,t,e)}function we(t){return Jf(t)&&ce(t)==Pt}function Me(t){return Jf(t)&&ce(t)==er}function be(t){return Jf(t)&&ce(t)==$t}function Be(t,r,n,e,i){return t===r||(null==t||null==r||!Jf(t)&&!Jf(r)?t!==t&&r!==r:Ae(t,r,n,e,Be,i))}function Ae(t,r,n,e,i,u){var o=sc(t),f=sc(r),a=o?Ct:_l(t),s=f?Ct:_l(r),h=(a=a==Pt?Vt:a)==Vt,l=(s=s==Pt?Vt:s)==Vt,c=a==s;if(c&&lc(t)){if(!lc(r))return!1;o=!0,h=!1}if(c&&!h)return u||(u=new yn),o||gc(t)?uu(t,r,n,e,i,u):ou(t,r,a,n,e,i,u);if(!(n&ht)){var p=h&&sh.call(t,"__wrapped__"),d=l&&sh.call(r,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?r.value():r;return u||(u=new yn),i(v,g,n,e,u)}}return!!c&&(u||(u=new yn),fu(t,r,n,e,i,u))}function xe(t){return Jf(t)&&_l(t)==Ft}function Ee(t,r,n,e){var i=n.length,u=i,o=!e;if(null==t)return!u;for(t=th(t);i--;){var f=n[i];if(o&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++i<u;){var a=(f=n[i])[0],s=t[a],h=f[1];if(o&&f[2]){if(s===tt&&!(a in t))return!1}else{var l=new yn;if(e)var c=e(s,h,a,t,r,l);if(!(c===tt?Be(h,s,ht|lt,e,l):c))return!1}}return!0}function ke(t){return!(!Xf(t)||Tu(t))&&(Vf(t)?vh:Cr).test(Fu(t))}function Se(t){return Jf(t)&&ce(t)==Ht}function Re(t){return Jf(t)&&_l(t)==Xt}function Ie(t){return Jf(t)&&Hf(t.length)&&!!pn[ce(t)]}function Te(t){return"function"==typeof t?t:null==t?Bs:"object"==typeof t?sc(t)?Ce(t[0],t[1]):Pe(t):Ts(t)}function Oe(t){if(!Ou(t))return Ch(t);var r=[];for(var n in th(t))sh.call(t,n)&&"constructor"!=n&&r.push(n);return r}function je(t){if(!Xf(t))return Pu(t);var r=Ou(t),n=[];for(var e in t)("constructor"!=e||!r&&sh.call(t,e))&&n.push(e);return n}function Le(t,r){return t<r}function Ue(t,r){var n=-1,e=zf(t)?Ks(t.length):[];return fl(t,function(t,i,u){e[++n]=r(t,i,u)}),e}function Pe(t){var r=vu(t);return 1==r.length&&r[0][2]?Lu(r[0][0],r[0][1]):function(n){return n===t||Ee(n,t,r)}}function Ce(t,r){return Su(t)&&ju(r)?Lu(qu(t),r):function(n){var e=Ia(n,t);return e===tt&&e===r?Oa(n,t):Be(r,e,ht|lt)}}function Ne(t,r,n,e,i){t!==r&&sl(r,function(u,o){if(Xf(u))i||(i=new yn),ze(t,r,o,n,Ne,e,i);else{var f=e?e(q(t,o),u,o+"",t,r,i):tt;f===tt&&(f=u),Dn(t,o,f)}},La)}function ze(t,r,n,e,i,u,o){var f=q(t,n),a=q(r,n),s=o.get(a);if(s)return void Dn(t,n,s);var h=u?u(f,a,n+"",t,r,o):tt,l=h===tt;if(l){var c=sc(a),p=!c&&lc(a),d=!c&&!p&&gc(a);h=a,c||p||d?sc(f)?h=f:$f(f)?h=Ri(f):p?(l=!1,h=_i(a,!0)):d?(l=!1,h=Ai(a,!0)):h=[]:oa(a)||ac(a)?(h=f,ac(f)?h=ya(f):(!Xf(f)||e&&Vf(f))&&(h=bu(a))):l=!1}l&&(o.set(a,h),i(h,a,e,u,o),o.delete(a)),Dn(t,n,h)}function $e(t,r){var n=t.length;if(n)return r+=r<0?n:0,Eu(r,n)?t[r]:tt}function We(t,r,n){var e=-1;return r=h(r.length?r:[Bs],I(pu())),E(Ue(t,function(t,n,i){return{criteria:h(r,function(r){return r(t)}),index:++e,value:t}}),function(t,r){return Ei(t,r,n)})}function De(t,r){return Ye(t,r,function(r,n){return Oa(t,n)})}function Ye(t,r,n){for(var e=-1,i=r.length,u={};++e<i;){var o=r[e],f=he(t,o);n(f,o)&&Qe(u,mi(o,t),f)}return u}function qe(t){return function(r){return he(r,t)}}function Fe(t,r,n,e){var i=e?w:_,u=-1,o=r.length,f=t;for(t===r&&(r=Ri(r)),n&&(f=h(t,I(n)));++u<o;)for(var a=0,s=r[u],l=n?n(s):s;(a=i(f,l,a,e))>-1;)f!==t&&Bh.call(f,a,1),Bh.call(t,a,1);return t}function Ze(t,r){for(var n=t?r.length:0,e=n-1;n--;){var i=r[n];if(n==e||i!==u){var u=i;Eu(i)?Bh.call(t,i,1):si(t,i)}}return t}function Ge(t,r){return t+Oh(Dh()*(r-t+1))}function Ve(t,r,n,e){for(var i=-1,u=Nh(Th((r-t)/(n||1)),0),o=Ks(u);u--;)o[e?u:++i]=t,t+=n;return o}function Ke(t,r){var n="";if(!t||r<1||r>Rt)return n;do{r%2&&(n+=t),(r=Oh(r/2))&&(t+=t)}while(r);return n}function He(t,r){return Bl(Nu(t,r,Bs),t+"")}function Xe(t){return Un(Za(t))}function Je(t,r){var n=Za(t);return Yu(n,Hn(r,0,n.length))}function Qe(t,r,n,e){if(!Xf(t))return t;for(var i=-1,u=(r=mi(r,t)).length,o=u-1,f=t;null!=f&&++i<u;){var a=qu(r[i]),s=n;if(i!=o){var h=f[a];(s=e?e(h,a,f):tt)===tt&&(s=Xf(h)?h:Eu(r[i+1])?[]:{})}Yn(f,a,s),f=f[a]}return t}function ti(t){return Yu(Za(t))}function ri(t,r,n){var e=-1,i=t.length;r<0&&(r=-r>i?0:i+r),(n=n>i?i:n)<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var u=Ks(i);++e<i;)u[e]=t[e+r];return u}function ni(t,r){var n;return fl(t,function(t,e,i){return!(n=r(t,e,i))}),!!n}function ei(t,r,n){var e=0,i=null==t?e:t.length;if("number"==typeof r&&r===r&&i<=Lt){for(;e<i;){var u=e+i>>>1,o=t[u];null!==o&&!sa(o)&&(n?o<=r:o<r)?e=u+1:i=u}return i}return ii(t,r,Bs,n)}function ii(t,r,n,e){r=n(r);for(var i=0,u=null==t?0:t.length,o=r!==r,f=null===r,a=sa(r),s=r===tt;i<u;){var h=Oh((i+u)/2),l=n(t[h]),c=l!==tt,p=null===l,d=l===l,v=sa(l);if(o)var g=e||d;else g=s?d&&(e||c):f?d&&c&&(e||!p):a?d&&c&&!p&&(e||!v):!p&&!v&&(e?l<=r:l<r);g?i=h+1:u=h}return zh(u,jt)}function ui(t,r){for(var n=-1,e=t.length,i=0,u=[];++n<e;){var o=t[n],f=r?r(o):o;if(!n||!Nf(f,a)){var a=f;u[i++]=0===o?0:o}}return u}function oi(t){return"number"==typeof t?t:sa(t)?Tt:+t}function fi(t){if("string"==typeof t)return t;if(sc(t))return h(t,fi)+"";if(sa(t))return ul?ul.call(t):"";var r=t+"";return"0"==r&&1/t==-St?"-0":r}function ai(t,r,n){var e=-1,i=a,u=t.length,o=!0,f=[],h=f;if(n)o=!1,i=s;else if(u>=rt){var l=r?null:vl(t);if(l)return F(l);o=!1,i=O,h=new vn}else h=r?[]:f;t:for(;++e<u;){var c=t[e],p=r?r(c):c;if(c=n||0!==c?c:0,o&&p===p){for(var d=h.length;d--;)if(h[d]===p)continue t;r&&h.push(p),f.push(c)}else i(h,p,n)||(h!==f&&h.push(p),f.push(c))}return f}function si(t,r){return r=mi(r,t),null==(t=zu(t,r))||delete t[qu(co(r))]}function hi(t,r,n,e){return Qe(t,r,n(he(t,r)),e)}function li(t,r,n,e){for(var i=t.length,u=e?i:-1;(e?u--:++u<i)&&r(t[u],u,t););return n?ri(t,e?0:u,e?u+1:i):ri(t,e?u+1:0,e?i:u)}function ci(t,r){var n=t;return n instanceof X&&(n=n.value()),c(r,function(t,r){return r.func.apply(r.thisArg,l([t],r.args))},n)}function pi(t,r,n){var e=t.length;if(e<2)return e?ai(t[0]):[];for(var i=-1,u=Ks(e);++i<e;)for(var o=t[i],f=-1;++f<e;)f!=i&&(u[i]=re(u[i]||o,t[f],r,n));return ai(oe(u,1),r,n)}function di(t,r,n){for(var e=-1,i=t.length,u=r.length,o={};++e<i;){var f=e<u?r[e]:tt;n(o,t[e],f)}return o}function vi(t){return $f(t)?t:[]}function gi(t){return"function"==typeof t?t:Bs}function mi(t,r){return sc(t)?t:Su(t,r)?[t]:Al(wa(t))}function yi(t,r,n){var e=t.length;return n=n===tt?e:n,!r&&n>=e?t:ri(t,r,n)}function _i(t,r){if(r)return t.slice();var n=t.length,e=_h?_h(n):new t.constructor(n);return t.copy(e),e}function wi(t){var r=new t.constructor(t.byteLength);return new yh(r).set(new yh(t)),r}function Mi(t,r){var n=r?wi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function bi(t){var r=new t.constructor(t.source,Lr.exec(t));return r.lastIndex=t.lastIndex,r}function Bi(t){return il?th(il.call(t)):{}}function Ai(t,r){var n=r?wi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function xi(t,r){if(t!==r){var n=t!==tt,e=null===t,i=t===t,u=sa(t),o=r!==tt,f=null===r,a=r===r,s=sa(r);if(!f&&!s&&!u&&t>r||u&&o&&a&&!f&&!s||e&&o&&a||!n&&a||!i)return 1;if(!e&&!u&&!s&&t<r||s&&n&&i&&!e&&!u||f&&n&&i||!o&&i||!a)return-1}return 0}function Ei(t,r,n){for(var e=-1,i=t.criteria,u=r.criteria,o=i.length,f=n.length;++e<o;){var a=xi(i[e],u[e]);if(a)return e>=f?a:a*("desc"==n[e]?-1:1)}return t.index-r.index}function ki(t,r,n,e){for(var i=-1,u=t.length,o=n.length,f=-1,a=r.length,s=Nh(u-o,0),h=Ks(a+s),l=!e;++f<a;)h[f]=r[f];for(;++i<o;)(l||i<u)&&(h[n[i]]=t[i]);for(;s--;)h[f++]=t[i++];return h}function Si(t,r,n,e){for(var i=-1,u=t.length,o=-1,f=n.length,a=-1,s=r.length,h=Nh(u-f,0),l=Ks(h+s),c=!e;++i<h;)l[i]=t[i];for(var p=i;++a<s;)l[p+a]=r[a];for(;++o<f;)(c||i<u)&&(l[p+n[o]]=t[i++]);return l}function Ri(t,r){var n=-1,e=t.length;for(r||(r=Ks(e));++n<e;)r[n]=t[n];return r}function Ii(t,r,n,e){var i=!n;n||(n={});for(var u=-1,o=r.length;++u<o;){var f=r[u],a=e?e(n[f],t[f],f,n,t):tt;a===tt&&(a=t[f]),i?Vn(n,f,a):Yn(n,f,a)}return n}function Ti(t,r){return Ii(t,ml(t),r)}function Oi(t,r){return Ii(t,yl(t),r)}function ji(t,r){return function(n,i){var u=sc(n)?e:Fn,o=r?r():{};return u(n,t,pu(i,2),o)}}function Li(t){return He(function(r,n){var e=-1,i=n.length,u=i>1?n[i-1]:tt,o=i>2?n[2]:tt;for(u=t.length>3&&"function"==typeof u?(i--,u):tt,o&&ku(n[0],n[1],o)&&(u=i<3?tt:u,i=1),r=th(r);++e<i;){var f=n[e];f&&t(r,f,e,u)}return r})}function Ui(t,r){return function(n,e){if(null==n)return n;if(!zf(n))return t(n,e);for(var i=n.length,u=r?i:-1,o=th(n);(r?u--:++u<i)&&!1!==e(o[u],u,o););return n}}function Pi(t){return function(r,n,e){for(var i=-1,u=th(r),o=e(r),f=o.length;f--;){var a=o[t?f:++i];if(!1===n(u[a],a,u))break}return r}}function Ci(t,r,n){function e(){return(this&&this!==Bn&&this instanceof e?u:t).apply(i?n:this,arguments)}var i=r&ct,u=$i(t);return e}function Ni(t){return function(r){var n=N(r=wa(r))?H(r):tt,e=n?n[0]:r.charAt(0),i=n?yi(n,1).join(""):r.slice(1);return e[t]()+i}}function zi(t){return function(r){return c(ys(Ja(r).replace(un,"")),t,"")}}function $i(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var n=ol(t.prototype),e=t.apply(n,r);return Xf(e)?e:n}}function Wi(t,r,e){function i(){for(var o=arguments.length,f=Ks(o),a=o,s=cu(i);a--;)f[a]=arguments[a];var h=o<3&&f[0]!==s&&f[o-1]!==s?[]:Y(f,s);return(o-=h.length)<e?Ji(t,r,qi,i.placeholder,tt,f,h,tt,tt,e-o):n(this&&this!==Bn&&this instanceof i?u:t,this,f)}var u=$i(t);return i}function Di(t){return function(r,n,e){var i=th(r);if(!zf(r)){var u=pu(n,3);r=ja(r),n=function(t){return u(i[t],t,i)}}var o=t(r,n,e);return o>-1?i[u?r[o]:o]:tt}}function Yi(t){return au(function(r){var n=r.length,e=n,i=G.prototype.thru;for(t&&r.reverse();e--;){var u=r[e];if("function"!=typeof u)throw new eh(et);if(i&&!o&&"wrapper"==lu(u))var o=new G([],!0)}for(e=o?e:n;++e<n;){var f=lu(u=r[e]),a="wrapper"==f?gl(u):tt;o=a&&Iu(a[0])&&a[1]==(_t|vt|mt|wt)&&!a[4].length&&1==a[9]?o[lu(a[0])].apply(o,a[3]):1==u.length&&Iu(u)?o[f]():o.thru(u)}return function(){var t=arguments,e=t[0];if(o&&1==t.length&&sc(e))return o.plant(e).value();for(var i=0,u=n?r[i].apply(this,t):e;++i<n;)u=r[i].call(this,u);return u}})}function qi(t,r,n,e,i,u,o,f,a,s){function h(){for(var m=arguments.length,y=Ks(m),_=m;_--;)y[_]=arguments[_];if(d)var w=cu(h),M=U(y,w);if(e&&(y=ki(y,e,i,d)),u&&(y=Si(y,u,o,d)),m-=M,d&&m<s){var b=Y(y,w);return Ji(t,r,qi,h.placeholder,n,y,b,f,a,s-m)}var B=c?n:this,A=p?B[t]:t;return m=y.length,f?y=$u(y,f):v&&m>1&&y.reverse(),l&&a<m&&(y.length=a),this&&this!==Bn&&this instanceof h&&(A=g||$i(A)),A.apply(B,y)}var l=r&_t,c=r&ct,p=r&pt,d=r&(vt|gt),v=r&Mt,g=p?tt:$i(t);return h}function Fi(t,r){return function(n,e){return ye(n,t,r(e),{})}}function Zi(t,r){return function(n,e){var i;if(n===tt&&e===tt)return r;if(n!==tt&&(i=n),e!==tt){if(i===tt)return e;"string"==typeof n||"string"==typeof e?(n=fi(n),e=fi(e)):(n=oi(n),e=oi(e)),i=t(n,e)}return i}}function Gi(t){return au(function(r){return r=h(r,I(pu())),He(function(e){var i=this;return t(r,function(t){return n(t,i,e)})})})}function Vi(t,r){var n=(r=r===tt?" ":fi(r)).length;if(n<2)return n?Ke(r,t):r;var e=Ke(r,Th(t/K(r)));return N(r)?yi(H(e),0,t).join(""):e.slice(0,t)}function Ki(t,r,e,i){function u(){for(var r=-1,a=arguments.length,s=-1,h=i.length,l=Ks(h+a),c=this&&this!==Bn&&this instanceof u?f:t;++s<h;)l[s]=i[s];for(;a--;)l[s++]=arguments[++r];return n(c,o?e:this,l)}var o=r&ct,f=$i(t);return u}function Hi(t){return function(r,n,e){return e&&"number"!=typeof e&&ku(r,n,e)&&(n=e=tt),r=da(r),n===tt?(n=r,r=0):n=da(n),e=e===tt?r<n?1:-1:da(e),Ve(r,n,e,t)}}function Xi(t){return function(r,n){return"string"==typeof r&&"string"==typeof n||(r=ma(r),n=ma(n)),t(r,n)}}function Ji(t,r,n,e,i,u,o,f,a,s){var h=r&vt,l=h?o:tt,c=h?tt:o,p=h?u:tt,d=h?tt:u;r|=h?mt:yt,(r&=~(h?yt:mt))&dt||(r&=~(ct|pt));var v=[t,r,i,p,l,d,c,f,a,s],g=n.apply(tt,v);return Iu(t)&&Ml(g,v),g.placeholder=e,Wu(g,t,r)}function Qi(t){var r=Qs[t];return function(t,n){if(t=ma(t),n=null==n?0:zh(va(n),292)){var e=(wa(t)+"e").split("e");return+((e=(wa(r(e[0]+"e"+(+e[1]+n)))+"e").split("e"))[0]+"e"+(+e[1]-n))}return r(t)}}function tu(t){return function(r){var n=_l(r);return n==Ft?W(r):n==Xt?Z(r):R(r,t(r))}}function ru(t,r,n,e,i,u,o,f){var a=r&pt;if(!a&&"function"!=typeof t)throw new eh(et);var s=e?e.length:0;if(s||(r&=~(mt|yt),e=i=tt),o=o===tt?o:Nh(va(o),0),f=f===tt?f:va(f),s-=i?i.length:0,r&yt){var h=e,l=i;e=i=tt}var c=a?tt:gl(t),p=[t,r,n,e,i,h,l,u,o,f];if(c&&Uu(p,c),t=p[0],r=p[1],n=p[2],e=p[3],i=p[4],!(f=p[9]=p[9]===tt?a?0:t.length:Nh(p[9]-s,0))&&r&(vt|gt)&&(r&=~(vt|gt)),r&&r!=ct)d=r==vt||r==gt?Wi(t,r,f):r!=mt&&r!=(ct|mt)||i.length?qi.apply(tt,p):Ki(t,r,n,e);else var d=Ci(t,r,n);return Wu((c?ll:Ml)(d,p),t,r)}function nu(t,r,n,e){return t===tt||Nf(t,oh[n])&&!sh.call(e,n)?r:t}function eu(t,r,n,e,i,u){return Xf(t)&&Xf(r)&&(u.set(r,t),Ne(t,r,tt,eu,u),u.delete(r)),t}function iu(t){return oa(t)?tt:t}function uu(t,r,n,e,i,u){var o=n&ht,f=t.length,a=r.length;if(f!=a&&!(o&&a>f))return!1;var s=u.get(t);if(s&&u.get(r))return s==r;var h=-1,l=!0,c=n&lt?new vn:tt;for(u.set(t,r),u.set(r,t);++h<f;){var p=t[h],v=r[h];if(e)var g=o?e(v,p,h,r,t,u):e(p,v,h,t,r,u);if(g!==tt){if(g)continue;l=!1;break}if(c){if(!d(r,function(t,r){if(!O(c,r)&&(p===t||i(p,t,n,e,u)))return c.push(r)})){l=!1;break}}else if(p!==v&&!i(p,v,n,e,u)){l=!1;break}}return u.delete(t),u.delete(r),l}function ou(t,r,n,e,i,u,o){switch(n){case ir:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case er:return!(t.byteLength!=r.byteLength||!u(new yh(t),new yh(r)));case zt:case $t:case Zt:return Nf(+t,+r);case Dt:return t.name==r.name&&t.message==r.message;case Ht:case Jt:return t==r+"";case Ft:var f=W;case Xt:var a=e&ht;if(f||(f=F),t.size!=r.size&&!a)return!1;var s=o.get(t);if(s)return s==r;e|=lt,o.set(t,r);var h=uu(f(t),f(r),e,i,u,o);return o.delete(t),h;case Qt:if(il)return il.call(t)==il.call(r)}return!1}function fu(t,r,n,e,i,u){var o=n&ht,f=su(t),a=f.length;if(a!=su(r).length&&!o)return!1;for(var s=a;s--;){var h=f[s];if(!(o?h in r:sh.call(r,h)))return!1}var l=u.get(t);if(l&&u.get(r))return l==r;var c=!0;u.set(t,r),u.set(r,t);for(var p=o;++s<a;){var d=t[h=f[s]],v=r[h];if(e)var g=o?e(v,d,h,r,t,u):e(d,v,h,t,r,u);if(!(g===tt?d===v||i(d,v,n,e,u):g)){c=!1;break}p||(p="constructor"==h)}if(c&&!p){var m=t.constructor,y=r.constructor;m!=y&&"constructor"in t&&"constructor"in r&&!("function"==typeof m&&m instanceof m&&"function"==typeof y&&y instanceof y)&&(c=!1)}return u.delete(t),u.delete(r),c}function au(t){return Bl(Nu(t,tt,io),t+"")}function su(t){return le(t,ja,ml)}function hu(t){return le(t,La,yl)}function lu(t){for(var r=t.name+"",n=Xh[r],e=sh.call(Xh,r)?n.length:0;e--;){var i=n[e],u=i.func;if(null==u||u==t)return i.name}return r}function cu(t){return(sh.call(v,"placeholder")?v:t).placeholder}function pu(){var t=v.iteratee||As;return t=t===As?Te:t,arguments.length?t(arguments[0],arguments[1]):t}function du(t,r){var n=t.__data__;return Ru(r)?n["string"==typeof r?"string":"hash"]:n.map}function vu(t){for(var r=ja(t),n=r.length;n--;){var e=r[n],i=t[e];r[n]=[e,i,ju(i)]}return r}function gu(t,r){var n=C(t,r);return ke(n)?n:tt}function mu(t){var r=sh.call(t,Eh),n=t[Eh];try{t[Eh]=tt;var e=!0}catch(t){}var i=ch.call(t);return e&&(r?t[Eh]=n:delete t[Eh]),i}function yu(t,r,n){for(var e=-1,i=n.length;++e<i;){var u=n[e],o=u.size;switch(u.type){case"drop":t+=o;break;case"dropRight":r-=o;break;case"take":r=zh(r,t+o);break;case"takeRight":t=Nh(t,r-o)}}return{start:t,end:r}}function _u(t){var r=t.match(Ir);return r?r[1].split(Tr):[]}function wu(t,r,n){for(var e=-1,i=(r=mi(r,t)).length,u=!1;++e<i;){var o=qu(r[e]);if(!(u=null!=t&&n(t,o)))break;t=t[o]}return u||++e!=i?u:!!(i=null==t?0:t.length)&&Hf(i)&&Eu(o,i)&&(sc(t)||ac(t))}function Mu(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&sh.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function bu(t){return"function"!=typeof t.constructor||Ou(t)?{}:ol(wh(t))}function Bu(t,r,n){var e=t.constructor;switch(r){case er:return wi(t);case zt:case $t:return new e(+t);case ir:return Mi(t,n);case ur:case or:case fr:case ar:case sr:case hr:case lr:case cr:case pr:return Ai(t,n);case Ft:return new e;case Zt:case Jt:return new e(t);case Ht:return bi(t);case Xt:return new e;case Qt:return Bi(t)}}function Au(t,r){var n=r.length;if(!n)return t;var e=n-1;return r[e]=(n>1?"& ":"")+r[e],r=r.join(n>2?", ":" "),t.replace(Rr,"{\n/* [wrapped with "+r+"] */\n")}function xu(t){return sc(t)||ac(t)||!!(Ah&&t&&t[Ah])}function Eu(t,r){var n=typeof t;return!!(r=null==r?Rt:r)&&("number"==n||"symbol"!=n&&zr.test(t))&&t>-1&&t%1==0&&t<r}function ku(t,r,n){if(!Xf(n))return!1;var e=typeof r;return!!("number"==e?zf(n)&&Eu(r,n.length):"string"==e&&r in n)&&Nf(n[r],t)}function Su(t,r){if(sc(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!sa(t))||(Br.test(t)||!br.test(t)||null!=r&&t in th(r))}function Ru(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}function Iu(t){var r=lu(t),n=v[r];if("function"!=typeof n||!(r in X.prototype))return!1;if(t===n)return!0;var e=gl(n);return!!e&&t===e[0]}function Tu(t){return!!lh&&lh in t}function Ou(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||oh)}function ju(t){return t===t&&!Xf(t)}function Lu(t,r){return function(n){return null!=n&&(n[t]===r&&(r!==tt||t in th(n)))}}function Uu(t,r){var n=t[1],e=r[1],i=n|e,u=i<(ct|pt|_t),o=e==_t&&n==vt||e==_t&&n==wt&&t[7].length<=r[8]||e==(_t|wt)&&r[7].length<=r[8]&&n==vt;if(!u&&!o)return t;e&ct&&(t[2]=r[2],i|=n&ct?0:dt);var f=r[3];if(f){var a=t[3];t[3]=a?ki(a,f,r[4]):f,t[4]=a?Y(t[3],ot):r[4]}return(f=r[5])&&(a=t[5],t[5]=a?Si(a,f,r[6]):f,t[6]=a?Y(t[5],ot):r[6]),(f=r[7])&&(t[7]=f),e&_t&&(t[8]=null==t[8]?r[8]:zh(t[8],r[8])),null==t[9]&&(t[9]=r[9]),t[0]=r[0],t[1]=i,t}function Pu(t){var r=[];if(null!=t)for(var n in th(t))r.push(n);return r}function Cu(t){return ch.call(t)}function Nu(t,r,e){return r=Nh(r===tt?t.length-1:r,0),function(){for(var i=arguments,u=-1,o=Nh(i.length-r,0),f=Ks(o);++u<o;)f[u]=i[r+u];u=-1;for(var a=Ks(r+1);++u<r;)a[u]=i[u];return a[r]=e(f),n(t,this,a)}}function zu(t,r){return r.length<2?t:he(t,ri(r,0,-1))}function $u(t,r){for(var n=t.length,e=zh(r.length,n),i=Ri(t);e--;){var u=r[e];t[e]=Eu(u,n)?i[u]:tt}return t}function Wu(t,r,n){var e=r+"";return Bl(t,Au(e,Zu(_u(e),n)))}function Du(t){var r=0,n=0;return function(){var e=$h(),i=xt-(e-n);if(n=e,i>0){if(++r>=At)return arguments[0]}else r=0;return t.apply(tt,arguments)}}function Yu(t,r){var n=-1,e=t.length,i=e-1;for(r=r===tt?e:r;++n<r;){var u=Ge(n,i),o=t[u];t[u]=t[n],t[n]=o}return t.length=r,t}function qu(t){if("string"==typeof t||sa(t))return t;var r=t+"";return"0"==r&&1/t==-St?"-0":r}function Fu(t){if(null!=t){try{return ah.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Zu(t,r){return i(Ut,function(n){var e="_."+n[0];r&n[1]&&!a(t,e)&&t.push(e)}),t.sort()}function Gu(t){if(t instanceof X)return t.clone();var r=new G(t.__wrapped__,t.__chain__);return r.__actions__=Ri(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}function Vu(t,r,n){r=(n?ku(t,r,n):r===tt)?1:Nh(va(r),0);var e=null==t?0:t.length;if(!e||r<1)return[];for(var i=0,u=0,o=Ks(Th(e/r));i<e;)o[u++]=ri(t,i,i+=r);return o}function Ku(t){for(var r=-1,n=null==t?0:t.length,e=0,i=[];++r<n;){var u=t[r];u&&(i[e++]=u)}return i}function Hu(){var t=arguments.length;if(!t)return[];for(var r=Ks(t-1),n=arguments[0],e=t;e--;)r[e-1]=arguments[e];return l(sc(n)?Ri(n):[n],oe(r,1))}function Xu(t,r,n){var e=null==t?0:t.length;return e?(r=n||r===tt?1:va(r),ri(t,r<0?0:r,e)):[]}function Ju(t,r,n){var e=null==t?0:t.length;return e?(r=n||r===tt?1:va(r),r=e-r,ri(t,0,r<0?0:r)):[]}function Qu(t,r){return t&&t.length?li(t,pu(r,3),!0,!0):[]}function to(t,r){return t&&t.length?li(t,pu(r,3),!0):[]}function ro(t,r,n,e){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&ku(t,r,n)&&(n=0,e=i),ie(t,r,n,e)):[]}function no(t,r,n){var e=null==t?0:t.length;if(!e)return-1;var i=null==n?0:va(n);return i<0&&(i=Nh(e+i,0)),y(t,pu(r,3),i)}function eo(t,r,n){var e=null==t?0:t.length;if(!e)return-1;var i=e-1;return n!==tt&&(i=va(n),i=n<0?Nh(e+i,0):zh(i,e-1)),y(t,pu(r,3),i,!0)}function io(t){return(null==t?0:t.length)?oe(t,1):[]}function uo(t){return(null==t?0:t.length)?oe(t,St):[]}function oo(t,r){return(null==t?0:t.length)?(r=r===tt?1:va(r),oe(t,r)):[]}function fo(t){for(var r=-1,n=null==t?0:t.length,e={};++r<n;){var i=t[r];e[i[0]]=i[1]}return e}function ao(t){return t&&t.length?t[0]:tt}function so(t,r,n){var e=null==t?0:t.length;if(!e)return-1;var i=null==n?0:va(n);return i<0&&(i=Nh(e+i,0)),_(t,r,i)}function ho(t){return(null==t?0:t.length)?ri(t,0,-1):[]}function lo(t,r){return null==t?"":Ph.call(t,r)}function co(t){var r=null==t?0:t.length;return r?t[r-1]:tt}function po(t,r,n){var e=null==t?0:t.length;if(!e)return-1;var i=e;return n!==tt&&(i=(i=va(n))<0?Nh(e+i,0):zh(i,e-1)),r===r?V(t,r,i):y(t,M,i,!0)}function vo(t,r){return t&&t.length?$e(t,va(r)):tt}function go(t,r){return t&&t.length&&r&&r.length?Fe(t,r):t}function mo(t,r,n){return t&&t.length&&r&&r.length?Fe(t,r,pu(n,2)):t}function yo(t,r,n){return t&&t.length&&r&&r.length?Fe(t,r,tt,n):t}function _o(t,r){var n=[];if(!t||!t.length)return n;var e=-1,i=[],u=t.length;for(r=pu(r,3);++e<u;){var o=t[e];r(o,e,t)&&(n.push(o),i.push(e))}return Ze(t,i),n}function wo(t){return null==t?t:Yh.call(t)}function Mo(t,r,n){var e=null==t?0:t.length;return e?(n&&"number"!=typeof n&&ku(t,r,n)?(r=0,n=e):(r=null==r?0:va(r),n=n===tt?e:va(n)),ri(t,r,n)):[]}function bo(t,r){return ei(t,r)}function Bo(t,r,n){return ii(t,r,pu(n,2))}function Ao(t,r){var n=null==t?0:t.length;if(n){var e=ei(t,r);if(e<n&&Nf(t[e],r))return e}return-1}function xo(t,r){return ei(t,r,!0)}function Eo(t,r,n){return ii(t,r,pu(n,2),!0)}function ko(t,r){if(null==t?0:t.length){var n=ei(t,r,!0)-1;if(Nf(t[n],r))return n}return-1}function So(t){return t&&t.length?ui(t):[]}function Ro(t,r){return t&&t.length?ui(t,pu(r,2)):[]}function Io(t){var r=null==t?0:t.length;return r?ri(t,1,r):[]}function To(t,r,n){return t&&t.length?(r=n||r===tt?1:va(r),ri(t,0,r<0?0:r)):[]}function Oo(t,r,n){var e=null==t?0:t.length;return e?(r=n||r===tt?1:va(r),r=e-r,ri(t,r<0?0:r,e)):[]}function jo(t,r){return t&&t.length?li(t,pu(r,3),!1,!0):[]}function Lo(t,r){return t&&t.length?li(t,pu(r,3)):[]}function Uo(t){return t&&t.length?ai(t):[]}function Po(t,r){return t&&t.length?ai(t,pu(r,2)):[]}function Co(t,r){return r="function"==typeof r?r:tt,t&&t.length?ai(t,tt,r):[]}function No(t){if(!t||!t.length)return[];var r=0;return t=f(t,function(t){if($f(t))return r=Nh(t.length,r),!0}),S(r,function(r){return h(t,B(r))})}function zo(t,r){if(!t||!t.length)return[];var e=No(t);return null==r?e:h(e,function(t){return n(r,tt,t)})}function $o(t,r){return di(t||[],r||[],Yn)}function Wo(t,r){return di(t||[],r||[],Qe)}function Do(t){var r=v(t);return r.__chain__=!0,r}function Yo(t,r){return r(t),t}function qo(t,r){return r(t)}function Fo(){return Do(this)}function Zo(){return new G(this.value(),this.__chain__)}function Go(){this.__values__===tt&&(this.__values__=pa(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?tt:this.__values__[this.__index__++]}}function Vo(){return this}function Ko(t){for(var r,n=this;n instanceof A;){var e=Gu(n);e.__index__=0,e.__values__=tt,r?i.__wrapped__=e:r=e;var i=e;n=n.__wrapped__}return i.__wrapped__=t,r}function Ho(){var t=this.__wrapped__;if(t instanceof X){var r=t;return this.__actions__.length&&(r=new X(this)),(r=r.reverse()).__actions__.push({func:qo,args:[wo],thisArg:tt}),new G(r,this.__chain__)}return this.thru(wo)}function Xo(){return ci(this.__wrapped__,this.__actions__)}function Jo(t,r,n){var e=sc(t)?o:ne;return n&&ku(t,r,n)&&(r=tt),e(t,pu(r,3))}function Qo(t,r){return(sc(t)?f:ue)(t,pu(r,3))}function tf(t,r){return oe(ff(t,r),1)}function rf(t,r){return oe(ff(t,r),St)}function nf(t,r,n){return n=n===tt?1:va(n),oe(ff(t,r),n)}function ef(t,r){return(sc(t)?i:fl)(t,pu(r,3))}function uf(t,r){return(sc(t)?u:al)(t,pu(r,3))}function of(t,r,n,e){t=zf(t)?t:Za(t),n=n&&!e?va(n):0;var i=t.length;return n<0&&(n=Nh(i+n,0)),aa(t)?n<=i&&t.indexOf(r,n)>-1:!!i&&_(t,r,n)>-1}function ff(t,r){return(sc(t)?h:Ue)(t,pu(r,3))}function af(t,r,n,e){return null==t?[]:(sc(r)||(r=null==r?[]:[r]),n=e?tt:n,sc(n)||(n=null==n?[]:[n]),We(t,r,n))}function sf(t,r,n){var e=sc(t)?c:x,i=arguments.length<3;return e(t,pu(r,4),n,i,fl)}function hf(t,r,n){var e=sc(t)?p:x,i=arguments.length<3;return e(t,pu(r,4),n,i,al)}function lf(t,r){return(sc(t)?f:ue)(t,xf(pu(r,3)))}function cf(t){return(sc(t)?Un:Xe)(t)}function pf(t,r,n){return r=(n?ku(t,r,n):r===tt)?1:va(r),(sc(t)?$n:Je)(t,r)}function df(t){return(sc(t)?Wn:ti)(t)}function vf(t){if(null==t)return 0;if(zf(t))return aa(t)?K(t):t.length;var r=_l(t);return r==Ft||r==Xt?t.size:Oe(t).length}function gf(t,r,n){var e=sc(t)?d:ni;return n&&ku(t,r,n)&&(r=tt),e(t,pu(r,3))}function mf(t,r){if("function"!=typeof r)throw new eh(et);return t=va(t),function(){if(--t<1)return r.apply(this,arguments)}}function yf(t,r,n){return r=n?tt:r,r=t&&null==r?t.length:r,ru(t,_t,tt,tt,tt,tt,r)}function _f(t,r){var n;if("function"!=typeof r)throw new eh(et);return t=va(t),function(){return--t>0&&(n=r.apply(this,arguments)),t<=1&&(r=tt),n}}function wf(t,r,n){var e=ru(t,vt,tt,tt,tt,tt,tt,r=n?tt:r);return e.placeholder=wf.placeholder,e}function Mf(t,r,n){var e=ru(t,gt,tt,tt,tt,tt,tt,r=n?tt:r);return e.placeholder=Mf.placeholder,e}function bf(t,r,n){function e(r){var n=c,e=p;return c=p=tt,y=r,v=t.apply(e,n)}function i(t){return y=t,g=bl(f,r),_?e(t):v}function u(t){var n=t-y,e=r-(t-m);return w?zh(e,d-n):e}function o(t){var n=t-m,e=t-y;return m===tt||n>=r||n<0||w&&e>=d}function f(){var t=Xl();if(o(t))return a(t);g=bl(f,u(t))}function a(t){return g=tt,M&&c?e(t):(c=p=tt,v)}function s(){g!==tt&&dl(g),y=0,c=m=p=g=tt}function h(){return g===tt?v:a(Xl())}function l(){var t=Xl(),n=o(t);if(c=arguments,p=this,m=t,n){if(g===tt)return i(m);if(w)return g=bl(f,r),e(m)}return g===tt&&(g=bl(f,r)),v}var c,p,d,v,g,m,y=0,_=!1,w=!1,M=!0;if("function"!=typeof t)throw new eh(et);return r=ma(r)||0,Xf(n)&&(_=!!n.leading,d=(w="maxWait"in n)?Nh(ma(n.maxWait)||0,r):d,M="trailing"in n?!!n.trailing:M),l.cancel=s,l.flush=h,l}function Bf(t){return ru(t,Mt)}function Af(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new eh(et);var n=function(){var e=arguments,i=r?r.apply(this,e):e[0],u=n.cache;if(u.has(i))return u.get(i);var o=t.apply(this,e);return n.cache=u.set(i,o)||u,o};return n.cache=new(Af.Cache||nn),n}function xf(t){if("function"!=typeof t)throw new eh(et);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}function Ef(t){return _f(2,t)}function kf(t,r){if("function"!=typeof t)throw new eh(et);return r=r===tt?r:va(r),He(t,r)}function Sf(t,r){if("function"!=typeof t)throw new eh(et);return r=null==r?0:Nh(va(r),0),He(function(e){var i=e[r],u=yi(e,0,r);return i&&l(u,i),n(t,this,u)})}function Rf(t,r,n){var e=!0,i=!0;if("function"!=typeof t)throw new eh(et);return Xf(n)&&(e="leading"in n?!!n.leading:e,i="trailing"in n?!!n.trailing:i),bf(t,r,{leading:e,maxWait:r,trailing:i})}function If(t){return yf(t,1)}function Tf(t,r){return ec(gi(r),t)}function Of(){if(!arguments.length)return[];var t=arguments[0];return sc(t)?t:[t]}function jf(t){return Xn(t,st)}function Lf(t,r){return r="function"==typeof r?r:tt,Xn(t,st,r)}function Uf(t){return Xn(t,ft|st)}function Pf(t,r){return r="function"==typeof r?r:tt,Xn(t,ft|st,r)}function Cf(t,r){return null==r||Qn(t,r,ja(r))}function Nf(t,r){return t===r||t!==t&&r!==r}function zf(t){return null!=t&&Hf(t.length)&&!Vf(t)}function $f(t){return Jf(t)&&zf(t)}function Wf(t){return!0===t||!1===t||Jf(t)&&ce(t)==zt}function Df(t){return Jf(t)&&1===t.nodeType&&!oa(t)}function Yf(t){if(null==t)return!0;if(zf(t)&&(sc(t)||"string"==typeof t||"function"==typeof t.splice||lc(t)||gc(t)||ac(t)))return!t.length;var r=_l(t);if(r==Ft||r==Xt)return!t.size;if(Ou(t))return!Oe(t).length;for(var n in t)if(sh.call(t,n))return!1;return!0}function qf(t,r){return Be(t,r)}function Ff(t,r,n){var e=(n="function"==typeof n?n:tt)?n(t,r):tt;return e===tt?Be(t,r,tt,n):!!e}function Zf(t){if(!Jf(t))return!1;var r=ce(t);return r==Dt||r==Wt||"string"==typeof t.message&&"string"==typeof t.name&&!oa(t)}function Gf(t){return"number"==typeof t&&Uh(t)}function Vf(t){if(!Xf(t))return!1;var r=ce(t);return r==Yt||r==qt||r==Nt||r==Kt}function Kf(t){return"number"==typeof t&&t==va(t)}function Hf(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Rt}function Xf(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function Jf(t){return null!=t&&"object"==typeof t}function Qf(t,r){return t===r||Ee(t,r,vu(r))}function ta(t,r,n){return n="function"==typeof n?n:tt,Ee(t,r,vu(r),n)}function ra(t){return ua(t)&&t!=+t}function na(t){if(wl(t))throw new Xs(nt);return ke(t)}function ea(t){return null===t}function ia(t){return null==t}function ua(t){return"number"==typeof t||Jf(t)&&ce(t)==Zt}function oa(t){if(!Jf(t)||ce(t)!=Vt)return!1;var r=wh(t);if(null===r)return!0;var n=sh.call(r,"constructor")&&r.constructor;return"function"==typeof n&&n instanceof n&&ah.call(n)==ph}function fa(t){return Kf(t)&&t>=-Rt&&t<=Rt}function aa(t){return"string"==typeof t||!sc(t)&&Jf(t)&&ce(t)==Jt}function sa(t){return"symbol"==typeof t||Jf(t)&&ce(t)==Qt}function ha(t){return t===tt}function la(t){return Jf(t)&&_l(t)==rr}function ca(t){return Jf(t)&&ce(t)==nr}function pa(t){if(!t)return[];if(zf(t))return aa(t)?H(t):Ri(t);if(xh&&t[xh])return $(t[xh]());var r=_l(t);return(r==Ft?W:r==Xt?F:Za)(t)}function da(t){return t?(t=ma(t),t===St||t===-St?(t<0?-1:1)*It:t===t?t:0):0===t?t:0}function va(t){var r=da(t),n=r%1;return r===r?n?r-n:r:0}function ga(t){return t?Hn(va(t),0,Ot):0}function ma(t){if("number"==typeof t)return t;if(sa(t))return Tt;if(Xf(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=Xf(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Er,"");var n=Pr.test(t);return n||Nr.test(t)?wn(t.slice(2),n?2:8):Ur.test(t)?Tt:+t}function ya(t){return Ii(t,La(t))}function _a(t){return t?Hn(va(t),-Rt,Rt):0===t?t:0}function wa(t){return null==t?"":fi(t)}function Ma(t,r){var n=ol(t);return null==r?n:Zn(n,r)}function ba(t,r){return m(t,pu(r,3),fe)}function Ba(t,r){return m(t,pu(r,3),ae)}function Aa(t,r){return null==t?t:sl(t,pu(r,3),La)}function xa(t,r){return null==t?t:hl(t,pu(r,3),La)}function Ea(t,r){return t&&fe(t,pu(r,3))}function ka(t,r){return t&&ae(t,pu(r,3))}function Sa(t){return null==t?[]:se(t,ja(t))}function Ra(t){return null==t?[]:se(t,La(t))}function Ia(t,r,n){var e=null==t?tt:he(t,r);return e===tt?n:e}function Ta(t,r){return null!=t&&wu(t,r,de)}function Oa(t,r){return null!=t&&wu(t,r,ve)}function ja(t){return zf(t)?Sn(t):Oe(t)}function La(t){return zf(t)?Sn(t,!0):je(t)}function Ua(t,r){var n={};return r=pu(r,3),fe(t,function(t,e,i){Vn(n,r(t,e,i),t)}),n}function Pa(t,r){var n={};return r=pu(r,3),fe(t,function(t,e,i){Vn(n,e,r(t,e,i))}),n}function Ca(t,r){return Na(t,xf(pu(r)))}function Na(t,r){if(null==t)return{};var n=h(hu(t),function(t){return[t]});return r=pu(r),Ye(t,n,function(t,n){return r(t,n[0])})}function za(t,r,n){var e=-1,i=(r=mi(r,t)).length;for(i||(i=1,t=tt);++e<i;){var u=null==t?tt:t[qu(r[e])];u===tt&&(e=i,u=n),t=Vf(u)?u.call(t):u}return t}function $a(t,r,n){return null==t?t:Qe(t,r,n)}function Wa(t,r,n,e){return e="function"==typeof e?e:tt,null==t?t:Qe(t,r,n,e)}function Da(t,r,n){var e=sc(t),u=e||lc(t)||gc(t);if(r=pu(r,4),null==n){var o=t&&t.constructor;n=u?e?new o:[]:Xf(t)&&Vf(o)?ol(wh(t)):{}}return(u?i:fe)(t,function(t,e,i){return r(n,t,e,i)}),n}function Ya(t,r){return null==t||si(t,r)}function qa(t,r,n){return null==t?t:hi(t,r,gi(n))}function Fa(t,r,n,e){return e="function"==typeof e?e:tt,null==t?t:hi(t,r,gi(n),e)}function Za(t){return null==t?[]:T(t,ja(t))}function Ga(t){return null==t?[]:T(t,La(t))}function Va(t,r,n){return n===tt&&(n=r,r=tt),n!==tt&&(n=(n=ma(n))===n?n:0),r!==tt&&(r=(r=ma(r))===r?r:0),Hn(ma(t),r,n)}function Ka(t,r,n){return r=da(r),n===tt?(n=r,r=0):n=da(n),t=ma(t),ge(t,r,n)}function Ha(t,r,n){if(n&&"boolean"!=typeof n&&ku(t,r,n)&&(r=n=tt),n===tt&&("boolean"==typeof r?(n=r,r=tt):"boolean"==typeof t&&(n=t,t=tt)),t===tt&&r===tt?(t=0,r=1):(t=da(t),r===tt?(r=t,t=0):r=da(r)),t>r){var e=t;t=r,r=e}if(n||t%1||r%1){var i=Dh();return zh(t+i*(r-t+_n("1e-"+((i+"").length-1))),r)}return Ge(t,r)}function Xa(t){return Dc(wa(t).toLowerCase())}function Ja(t){return(t=wa(t))&&t.replace($r,Pn).replace(on,"")}function Qa(t,r,n){t=wa(t),r=fi(r);var e=t.length,i=n=n===tt?e:Hn(va(n),0,e);return(n-=r.length)>=0&&t.slice(n,i)==r}function ts(t){return t=wa(t),t&&wr.test(t)?t.replace(yr,Cn):t}function rs(t){return t=wa(t),t&&xr.test(t)?t.replace(Ar,"\\$&"):t}function ns(t,r,n){t=wa(t);var e=(r=va(r))?K(t):0;if(!r||e>=r)return t;var i=(r-e)/2;return Vi(Oh(i),n)+t+Vi(Th(i),n)}function es(t,r,n){t=wa(t);var e=(r=va(r))?K(t):0;return r&&e<r?t+Vi(r-e,n):t}function is(t,r,n){t=wa(t);var e=(r=va(r))?K(t):0;return r&&e<r?Vi(r-e,n)+t:t}function us(t,r,n){return n||null==r?r=0:r&&(r=+r),Wh(wa(t).replace(kr,""),r||0)}function os(t,r,n){return r=(n?ku(t,r,n):r===tt)?1:va(r),Ke(wa(t),r)}function fs(){var t=arguments,r=wa(t[0]);return t.length<3?r:r.replace(t[1],t[2])}function as(t,r,n){return n&&"number"!=typeof n&&ku(t,r,n)&&(r=n=tt),(n=n===tt?Ot:n>>>0)?(t=wa(t),t&&("string"==typeof r||null!=r&&!dc(r))&&!(r=fi(r))&&N(t)?yi(H(t),0,n):t.split(r,n)):[]}function ss(t,r,n){return t=wa(t),n=null==n?0:Hn(va(n),0,t.length),r=fi(r),t.slice(n,n+r.length)==r}function hs(t,r,n){var e=v.templateSettings;n&&ku(t,r,n)&&(r=tt),t=wa(t),r=Mc({},r,e,nu);var i,u,o=Mc({},r.imports,e.imports,nu),f=ja(o),a=T(o,f),s=0,h=r.interpolate||Wr,l="__p += '",c=rh((r.escape||Wr).source+"|"+h.source+"|"+(h===Mr?jr:Wr).source+"|"+(r.evaluate||Wr).source+"|$","g"),p="//# sourceURL="+("sourceURL"in r?r.sourceURL:"lodash.templateSources["+ ++cn+"]")+"\n";t.replace(c,function(r,n,e,o,f,a){return e||(e=o),l+=t.slice(s,a).replace(Dr,P),n&&(i=!0,l+="' +\n__e("+n+") +\n'"),f&&(u=!0,l+="';\n"+f+";\n__p += '"),e&&(l+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),s=a+r.length,r}),l+="';\n";var d=r.variable;d||(l="with (obj) {\n"+l+"\n}\n"),l=(u?l.replace(dr,""):l).replace(vr,"$1").replace(gr,"$1;"),l="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var g=Yc(function(){return Js(f,p+"return "+l).apply(tt,a)});if(g.source=l,Zf(g))throw g;return g}function ls(t){return wa(t).toLowerCase()}function cs(t){return wa(t).toUpperCase()}function ps(t,r,n){if((t=wa(t))&&(n||r===tt))return t.replace(Er,"");if(!t||!(r=fi(r)))return t;var e=H(t),i=H(r);return yi(e,j(e,i),L(e,i)+1).join("")}function ds(t,r,n){if((t=wa(t))&&(n||r===tt))return t.replace(Sr,"");if(!t||!(r=fi(r)))return t;var e=H(t);return yi(e,0,L(e,H(r))+1).join("")}function vs(t,r,n){if((t=wa(t))&&(n||r===tt))return t.replace(kr,"");if(!t||!(r=fi(r)))return t;var e=H(t);return yi(e,j(e,H(r))).join("")}function gs(t,r){var n=bt,e=Bt;if(Xf(r)){var i="separator"in r?r.separator:i;n="length"in r?va(r.length):n,e="omission"in r?fi(r.omission):e}var u=(t=wa(t)).length;if(N(t)){var o=H(t);u=o.length}if(n>=u)return t;var f=n-K(e);if(f<1)return e;var a=o?yi(o,0,f).join(""):t.slice(0,f);if(i===tt)return a+e;if(o&&(f+=a.length-f),dc(i)){if(t.slice(f).search(i)){var s,h=a;for(i.global||(i=rh(i.source,wa(Lr.exec(i))+"g")),i.lastIndex=0;s=i.exec(h);)var l=s.index;a=a.slice(0,l===tt?f:l)}}else if(t.indexOf(fi(i),f)!=f){var c=a.lastIndexOf(i);c>-1&&(a=a.slice(0,c))}return a+e}function ms(t){return t=wa(t),t&&_r.test(t)?t.replace(mr,Nn):t}function ys(t,r,n){return t=wa(t),r=n?tt:r,r===tt?z(t)?Q(t):g(t):t.match(r)||[]}function _s(t){var r=null==t?0:t.length,e=pu();return t=r?h(t,function(t){if("function"!=typeof t[1])throw new eh(et);return[e(t[0]),t[1]]}):[],He(function(e){for(var i=-1;++i<r;){var u=t[i];if(n(u[0],this,e))return n(u[1],this,e)}})}function ws(t){return Jn(Xn(t,ft))}function Ms(t){return function(){return t}}function bs(t,r){return null==t||t!==t?r:t}function Bs(t){return t}function As(t){return Te("function"==typeof t?t:Xn(t,ft))}function xs(t){return Pe(Xn(t,ft))}function Es(t,r){return Ce(t,Xn(r,ft))}function ks(t,r,n){var e=ja(r),u=se(r,e);null!=n||Xf(r)&&(u.length||!e.length)||(n=r,r=t,t=this,u=se(r,ja(r)));var o=!(Xf(n)&&"chain"in n&&!n.chain),f=Vf(t);return i(u,function(n){var e=r[n];t[n]=e,f&&(t.prototype[n]=function(){var r=this.__chain__;if(o||r){var n=t(this.__wrapped__);return(n.__actions__=Ri(this.__actions__)).push({func:e,args:arguments,thisArg:t}),n.__chain__=r,n}return e.apply(t,l([this.value()],arguments))})}),t}function Ss(){return Bn._===this&&(Bn._=dh),this}function Rs(){}function Is(t){return t=va(t),He(function(r){return $e(r,t)})}function Ts(t){return Su(t)?B(qu(t)):qe(t)}function Os(t){return function(r){return null==t?tt:he(t,r)}}function js(){return[]}function Ls(){return!1}function Us(){return{}}function Ps(){return""}function Cs(){return!0}function Ns(t,r){if((t=va(t))<1||t>Rt)return[];var n=Ot,e=zh(t,Ot);r=pu(r),t-=Ot;for(var i=S(e,r);++n<t;)r(n);return i}function zs(t){return sc(t)?h(t,qu):sa(t)?[t]:Ri(Al(wa(t)))}function $s(t){var r=++hh;return wa(t)+r}function Ws(t){return t&&t.length?ee(t,Bs,pe):tt}function Ds(t,r){return t&&t.length?ee(t,pu(r,2),pe):tt}function Ys(t){return b(t,Bs)}function qs(t,r){return b(t,pu(r,2))}function Fs(t){return t&&t.length?ee(t,Bs,Le):tt}function Zs(t,r){return t&&t.length?ee(t,pu(r,2),Le):tt}function Gs(t){return t&&t.length?k(t,Bs):0}function Vs(t,r){return t&&t.length?k(t,pu(r,2)):0}var Ks=(r=null==r?Bn:zn.defaults(Bn.Object(),r,zn.pick(Bn,ln))).Array,Hs=r.Date,Xs=r.Error,Js=r.Function,Qs=r.Math,th=r.Object,rh=r.RegExp,nh=r.String,eh=r.TypeError,ih=Ks.prototype,uh=Js.prototype,oh=th.prototype,fh=r["__core-js_shared__"],ah=uh.toString,sh=oh.hasOwnProperty,hh=0,lh=function(){var t=/[^.]+$/.exec(fh&&fh.keys&&fh.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ch=oh.toString,ph=ah.call(th),dh=Bn._,vh=rh("^"+ah.call(sh).replace(Ar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gh=En?r.Buffer:tt,mh=r.Symbol,yh=r.Uint8Array,_h=gh?gh.allocUnsafe:tt,wh=D(th.getPrototypeOf,th),Mh=th.create,bh=oh.propertyIsEnumerable,Bh=ih.splice,Ah=mh?mh.isConcatSpreadable:tt,xh=mh?mh.iterator:tt,Eh=mh?mh.toStringTag:tt,kh=function(){try{var t=gu(th,"defineProperty");return t({},"",{}),t}catch(t){}}(),Sh=r.clearTimeout!==Bn.clearTimeout&&r.clearTimeout,Rh=Hs&&Hs.now!==Bn.Date.now&&Hs.now,Ih=r.setTimeout!==Bn.setTimeout&&r.setTimeout,Th=Qs.ceil,Oh=Qs.floor,jh=th.getOwnPropertySymbols,Lh=gh?gh.isBuffer:tt,Uh=r.isFinite,Ph=ih.join,Ch=D(th.keys,th),Nh=Qs.max,zh=Qs.min,$h=Hs.now,Wh=r.parseInt,Dh=Qs.random,Yh=ih.reverse,qh=gu(r,"DataView"),Fh=gu(r,"Map"),Zh=gu(r,"Promise"),Gh=gu(r,"Set"),Vh=gu(r,"WeakMap"),Kh=gu(th,"create"),Hh=Vh&&new Vh,Xh={},Jh=Fu(qh),Qh=Fu(Fh),tl=Fu(Zh),rl=Fu(Gh),nl=Fu(Vh),el=mh?mh.prototype:tt,il=el?el.valueOf:tt,ul=el?el.toString:tt,ol=function(){function t(){}return function(r){if(!Xf(r))return{};if(Mh)return Mh(r);t.prototype=r;var n=new t;return t.prototype=tt,n}}();v.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Mr,variable:"",imports:{_:v}},v.prototype=A.prototype,v.prototype.constructor=v,G.prototype=ol(A.prototype),G.prototype.constructor=G,X.prototype=ol(A.prototype),X.prototype.constructor=X,qr.prototype.clear=Fr,qr.prototype.delete=Zr,qr.prototype.get=Gr,qr.prototype.has=Vr,qr.prototype.set=Kr,Hr.prototype.clear=Xr,Hr.prototype.delete=Jr,Hr.prototype.get=Qr,Hr.prototype.has=tn,Hr.prototype.set=rn,nn.prototype.clear=en,nn.prototype.delete=fn,nn.prototype.get=an,nn.prototype.has=sn,nn.prototype.set=hn,vn.prototype.add=vn.prototype.push=gn,vn.prototype.has=mn,yn.prototype.clear=Mn,yn.prototype.delete=bn,yn.prototype.get=An,yn.prototype.has=xn,yn.prototype.set=kn;var fl=Ui(fe),al=Ui(ae,!0),sl=Pi(),hl=Pi(!0),ll=Hh?function(t,r){return Hh.set(t,r),t}:Bs,cl=kh?function(t,r){return kh(t,"toString",{configurable:!0,enumerable:!1,value:Ms(r),writable:!0})}:Bs,pl=He,dl=Sh||function(t){return Bn.clearTimeout(t)},vl=Gh&&1/F(new Gh([,-0]))[1]==St?function(t){return new Gh(t)}:Rs,gl=Hh?function(t){return Hh.get(t)}:Rs,ml=jh?function(t){return null==t?[]:(t=th(t),f(jh(t),function(r){return bh.call(t,r)}))}:js,yl=jh?function(t){for(var r=[];t;)l(r,ml(t)),t=wh(t);return r}:js,_l=ce;(qh&&_l(new qh(new ArrayBuffer(1)))!=ir||Fh&&_l(new Fh)!=Ft||Zh&&"[object Promise]"!=_l(Zh.resolve())||Gh&&_l(new Gh)!=Xt||Vh&&_l(new Vh)!=rr)&&(_l=function(t){var r=ce(t),n=r==Vt?t.constructor:tt,e=n?Fu(n):"";if(e)switch(e){case Jh:return ir;case Qh:return Ft;case tl:return"[object Promise]";case rl:return Xt;case nl:return rr}return r});var wl=fh?Vf:Ls,Ml=Du(ll),bl=Ih||function(t,r){return Bn.setTimeout(t,r)},Bl=Du(cl),Al=function(t){var r=Af(t,function(t){return n.size===ut&&n.clear(),t}),n=r.cache;return r}(function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,function(t,n,e,i){r.push(e?i.replace(/\\(\\)?/g,"$1"):n||t)}),r}),xl=He(function(t,r){return $f(t)?re(t,oe(r,1,$f,!0)):[]}),El=He(function(t,r){var n=co(r);return $f(n)&&(n=tt),$f(t)?re(t,oe(r,1,$f,!0),pu(n,2)):[]}),kl=He(function(t,r){var n=co(r);return $f(n)&&(n=tt),$f(t)?re(t,oe(r,1,$f,!0),tt,n):[]}),Sl=He(function(t){var r=h(t,vi);return r.length&&r[0]===t[0]?me(r):[]}),Rl=He(function(t){var r=co(t),n=h(t,vi);return r===co(n)?r=tt:n.pop(),n.length&&n[0]===t[0]?me(n,pu(r,2)):[]}),Il=He(function(t){var r=co(t),n=h(t,vi);return(r="function"==typeof r?r:tt)&&n.pop(),n.length&&n[0]===t[0]?me(n,tt,r):[]}),Tl=He(go),Ol=au(function(t,r){var n=null==t?0:t.length,e=Kn(t,r);return Ze(t,h(r,function(t){return Eu(t,n)?+t:t}).sort(xi)),e}),jl=He(function(t){return ai(oe(t,1,$f,!0))}),Ll=He(function(t){var r=co(t);return $f(r)&&(r=tt),ai(oe(t,1,$f,!0),pu(r,2))}),Ul=He(function(t){var r=co(t);return r="function"==typeof r?r:tt,ai(oe(t,1,$f,!0),tt,r)}),Pl=He(function(t,r){return $f(t)?re(t,r):[]}),Cl=He(function(t){return pi(f(t,$f))}),Nl=He(function(t){var r=co(t);return $f(r)&&(r=tt),pi(f(t,$f),pu(r,2))}),zl=He(function(t){var r=co(t);return r="function"==typeof r?r:tt,pi(f(t,$f),tt,r)}),$l=He(No),Wl=He(function(t){var r=t.length,n=r>1?t[r-1]:tt;return n="function"==typeof n?(t.pop(),n):tt,zo(t,n)}),Dl=au(function(t){var r=t.length,n=r?t[0]:0,e=this.__wrapped__,i=function(r){return Kn(r,t)};return!(r>1||this.__actions__.length)&&e instanceof X&&Eu(n)?((e=e.slice(n,+n+(r?1:0))).__actions__.push({func:qo,args:[i],thisArg:tt}),new G(e,this.__chain__).thru(function(t){return r&&!t.length&&t.push(tt),t})):this.thru(i)}),Yl=ji(function(t,r,n){sh.call(t,n)?++t[n]:Vn(t,n,1)}),ql=Di(no),Fl=Di(eo),Zl=ji(function(t,r,n){sh.call(t,n)?t[n].push(r):Vn(t,n,[r])}),Gl=He(function(t,r,e){var i=-1,u="function"==typeof r,o=zf(t)?Ks(t.length):[];return fl(t,function(t){o[++i]=u?n(r,t,e):_e(t,r,e)}),o}),Vl=ji(function(t,r,n){Vn(t,n,r)}),Kl=ji(function(t,r,n){t[n?0:1].push(r)},function(){return[[],[]]}),Hl=He(function(t,r){if(null==t)return[];var n=r.length;return n>1&&ku(t,r[0],r[1])?r=[]:n>2&&ku(r[0],r[1],r[2])&&(r=[r[0]]),We(t,oe(r,1),[])}),Xl=Rh||function(){return Bn.Date.now()},Jl=He(function(t,r,n){var e=ct;if(n.length){var i=Y(n,cu(Jl));e|=mt}return ru(t,e,r,n,i)}),Ql=He(function(t,r,n){var e=ct|pt;if(n.length){var i=Y(n,cu(Ql));e|=mt}return ru(r,e,t,n,i)}),tc=He(function(t,r){return te(t,1,r)}),rc=He(function(t,r,n){return te(t,ma(r)||0,n)});Af.Cache=nn;var nc=pl(function(t,r){var e=(r=1==r.length&&sc(r[0])?h(r[0],I(pu())):h(oe(r,1),I(pu()))).length;return He(function(i){for(var u=-1,o=zh(i.length,e);++u<o;)i[u]=r[u].call(this,i[u]);return n(t,this,i)})}),ec=He(function(t,r){var n=Y(r,cu(ec));return ru(t,mt,tt,r,n)}),ic=He(function(t,r){var n=Y(r,cu(ic));return ru(t,yt,tt,r,n)}),uc=au(function(t,r){return ru(t,wt,tt,tt,tt,r)}),oc=Xi(pe),fc=Xi(function(t,r){return t>=r}),ac=we(function(){return arguments}())?we:function(t){return Jf(t)&&sh.call(t,"callee")&&!bh.call(t,"callee")},sc=Ks.isArray,hc=Rn?I(Rn):Me,lc=Lh||Ls,cc=In?I(In):be,pc=Tn?I(Tn):xe,dc=On?I(On):Se,vc=jn?I(jn):Re,gc=Ln?I(Ln):Ie,mc=Xi(Le),yc=Xi(function(t,r){return t<=r}),_c=Li(function(t,r){if(Ou(r)||zf(r))return void Ii(r,ja(r),t);for(var n in r)sh.call(r,n)&&Yn(t,n,r[n])}),wc=Li(function(t,r){Ii(r,La(r),t)}),Mc=Li(function(t,r,n,e){Ii(r,La(r),t,e)}),bc=Li(function(t,r,n,e){Ii(r,ja(r),t,e)}),Bc=au(Kn),Ac=He(function(t,r){t=th(t);var n=-1,e=r.length,i=e>2?r[2]:tt;for(i&&ku(r[0],r[1],i)&&(e=1);++n<e;)for(var u=r[n],o=La(u),f=-1,a=o.length;++f<a;){var s=o[f],h=t[s];(h===tt||Nf(h,oh[s])&&!sh.call(t,s))&&(t[s]=u[s])}return t}),xc=He(function(t){return t.push(tt,eu),n(Ic,tt,t)}),Ec=Fi(function(t,r,n){null!=r&&"function"!=typeof r.toString&&(r=ch.call(r)),t[r]=n},Ms(Bs)),kc=Fi(function(t,r,n){null!=r&&"function"!=typeof r.toString&&(r=ch.call(r)),sh.call(t,r)?t[r].push(n):t[r]=[n]},pu),Sc=He(_e),Rc=Li(function(t,r,n){Ne(t,r,n)}),Ic=Li(function(t,r,n,e){Ne(t,r,n,e)}),Tc=au(function(t,r){var n={};if(null==t)return n;var e=!1;r=h(r,function(r){return r=mi(r,t),e||(e=r.length>1),r}),Ii(t,hu(t),n),e&&(n=Xn(n,ft|at|st,iu));for(var i=r.length;i--;)si(n,r[i]);return n}),Oc=au(function(t,r){return null==t?{}:De(t,r)}),jc=tu(ja),Lc=tu(La),Uc=zi(function(t,r,n){return r=r.toLowerCase(),t+(n?Xa(r):r)}),Pc=zi(function(t,r,n){return t+(n?"-":"")+r.toLowerCase()}),Cc=zi(function(t,r,n){return t+(n?" ":"")+r.toLowerCase()}),Nc=Ni("toLowerCase"),zc=zi(function(t,r,n){return t+(n?"_":"")+r.toLowerCase()}),$c=zi(function(t,r,n){return t+(n?" ":"")+Dc(r)}),Wc=zi(function(t,r,n){return t+(n?" ":"")+r.toUpperCase()}),Dc=Ni("toUpperCase"),Yc=He(function(t,r){try{return n(t,tt,r)}catch(t){return Zf(t)?t:new Xs(t)}}),qc=au(function(t,r){return i(r,function(r){r=qu(r),Vn(t,r,Jl(t[r],t))}),t}),Fc=Yi(),Zc=Yi(!0),Gc=He(function(t,r){return function(n){return _e(n,t,r)}}),Vc=He(function(t,r){return function(n){return _e(t,n,r)}}),Kc=Gi(h),Hc=Gi(o),Xc=Gi(d),Jc=Hi(),Qc=Hi(!0),tp=Zi(function(t,r){return t+r},0),rp=Qi("ceil"),np=Zi(function(t,r){return t/r},1),ep=Qi("floor"),ip=Zi(function(t,r){return t*r},1),up=Qi("round"),op=Zi(function(t,r){return t-r},0);return v.after=mf,v.ary=yf,v.assign=_c,v.assignIn=wc,v.assignInWith=Mc,v.assignWith=bc,v.at=Bc,v.before=_f,v.bind=Jl,v.bindAll=qc,v.bindKey=Ql,v.castArray=Of,v.chain=Do,v.chunk=Vu,v.compact=Ku,v.concat=Hu,v.cond=_s,v.conforms=ws,v.constant=Ms,v.countBy=Yl,v.create=Ma,v.curry=wf,v.curryRight=Mf,v.debounce=bf,v.defaults=Ac,v.defaultsDeep=xc,v.defer=tc,v.delay=rc,v.difference=xl,v.differenceBy=El,v.differenceWith=kl,v.drop=Xu,v.dropRight=Ju,v.dropRightWhile=Qu,v.dropWhile=to,v.fill=ro,v.filter=Qo,v.flatMap=tf,v.flatMapDeep=rf,v.flatMapDepth=nf,v.flatten=io,v.flattenDeep=uo,v.flattenDepth=oo,v.flip=Bf,v.flow=Fc,v.flowRight=Zc,v.fromPairs=fo,v.functions=Sa,v.functionsIn=Ra,v.groupBy=Zl,v.initial=ho,v.intersection=Sl,v.intersectionBy=Rl,v.intersectionWith=Il,v.invert=Ec,v.invertBy=kc,v.invokeMap=Gl,v.iteratee=As,v.keyBy=Vl,v.keys=ja,v.keysIn=La,v.map=ff,v.mapKeys=Ua,v.mapValues=Pa,v.matches=xs,v.matchesProperty=Es,v.memoize=Af,v.merge=Rc,v.mergeWith=Ic,v.method=Gc,v.methodOf=Vc,v.mixin=ks,v.negate=xf,v.nthArg=Is,v.omit=Tc,v.omitBy=Ca,v.once=Ef,v.orderBy=af,v.over=Kc,v.overArgs=nc,v.overEvery=Hc,v.overSome=Xc,v.partial=ec,v.partialRight=ic,v.partition=Kl,v.pick=Oc,v.pickBy=Na,v.property=Ts,v.propertyOf=Os,v.pull=Tl,v.pullAll=go,v.pullAllBy=mo,v.pullAllWith=yo,v.pullAt=Ol,v.range=Jc,v.rangeRight=Qc,v.rearg=uc,v.reject=lf,v.remove=_o,v.rest=kf,v.reverse=wo,v.sampleSize=pf,v.set=$a,v.setWith=Wa,v.shuffle=df,v.slice=Mo,v.sortBy=Hl,v.sortedUniq=So,v.sortedUniqBy=Ro,v.split=as,v.spread=Sf,v.tail=Io,v.take=To,v.takeRight=Oo,v.takeRightWhile=jo,v.takeWhile=Lo,v.tap=Yo,v.throttle=Rf,v.thru=qo,v.toArray=pa,v.toPairs=jc,v.toPairsIn=Lc,v.toPath=zs,v.toPlainObject=ya,v.transform=Da,v.unary=If,v.union=jl,v.unionBy=Ll,v.unionWith=Ul,v.uniq=Uo,v.uniqBy=Po,v.uniqWith=Co,v.unset=Ya,v.unzip=No,v.unzipWith=zo,v.update=qa,v.updateWith=Fa,v.values=Za,v.valuesIn=Ga,v.without=Pl,v.words=ys,v.wrap=Tf,v.xor=Cl,v.xorBy=Nl,v.xorWith=zl,v.zip=$l,v.zipObject=$o,v.zipObjectDeep=Wo,v.zipWith=Wl,v.entries=jc,v.entriesIn=Lc,v.extend=wc,v.extendWith=Mc,ks(v,v),v.add=tp,v.attempt=Yc,v.camelCase=Uc,v.capitalize=Xa,v.ceil=rp,v.clamp=Va,v.clone=jf,v.cloneDeep=Uf,v.cloneDeepWith=Pf,v.cloneWith=Lf,v.conformsTo=Cf,v.deburr=Ja,v.defaultTo=bs,v.divide=np,v.endsWith=Qa,v.eq=Nf,v.escape=ts,v.escapeRegExp=rs,v.every=Jo,v.find=ql,v.findIndex=no,v.findKey=ba,v.findLast=Fl,v.findLastIndex=eo,v.findLastKey=Ba,v.floor=ep,v.forEach=ef,v.forEachRight=uf,v.forIn=Aa,v.forInRight=xa,v.forOwn=Ea,v.forOwnRight=ka,v.get=Ia,v.gt=oc,v.gte=fc,v.has=Ta,v.hasIn=Oa,v.head=ao,v.identity=Bs,v.includes=of,v.indexOf=so,v.inRange=Ka,v.invoke=Sc,v.isArguments=ac,v.isArray=sc,v.isArrayBuffer=hc,v.isArrayLike=zf,v.isArrayLikeObject=$f,v.isBoolean=Wf,v.isBuffer=lc,v.isDate=cc,v.isElement=Df,v.isEmpty=Yf,v.isEqual=qf,v.isEqualWith=Ff,v.isError=Zf,v.isFinite=Gf,v.isFunction=Vf,v.isInteger=Kf,v.isLength=Hf,v.isMap=pc,v.isMatch=Qf,v.isMatchWith=ta,v.isNaN=ra,v.isNative=na,v.isNil=ia,v.isNull=ea,v.isNumber=ua,v.isObject=Xf,v.isObjectLike=Jf,v.isPlainObject=oa,v.isRegExp=dc,v.isSafeInteger=fa,v.isSet=vc,v.isString=aa,v.isSymbol=sa,v.isTypedArray=gc,v.isUndefined=ha,v.isWeakMap=la,v.isWeakSet=ca,v.join=lo,v.kebabCase=Pc,v.last=co,v.lastIndexOf=po,v.lowerCase=Cc,v.lowerFirst=Nc,v.lt=mc,v.lte=yc,v.max=Ws,v.maxBy=Ds,v.mean=Ys,v.meanBy=qs,v.min=Fs,v.minBy=Zs,v.stubArray=js,v.stubFalse=Ls,v.stubObject=Us,v.stubString=Ps,v.stubTrue=Cs,v.multiply=ip,v.nth=vo,v.noConflict=Ss,v.noop=Rs,v.now=Xl,v.pad=ns,v.padEnd=es,v.padStart=is,v.parseInt=us,v.random=Ha,v.reduce=sf,v.reduceRight=hf,v.repeat=os,v.replace=fs,v.result=za,v.round=up,v.runInContext=t,v.sample=cf,v.size=vf,v.snakeCase=zc,v.some=gf,v.sortedIndex=bo,v.sortedIndexBy=Bo,v.sortedIndexOf=Ao,v.sortedLastIndex=xo,v.sortedLastIndexBy=Eo,v.sortedLastIndexOf=ko,v.startCase=$c,v.startsWith=ss,v.subtract=op,v.sum=Gs,v.sumBy=Vs,v.template=hs,v.times=Ns,v.toFinite=da,v.toInteger=va,v.toLength=ga,v.toLower=ls,v.toNumber=ma,v.toSafeInteger=_a,v.toString=wa,v.toUpper=cs,v.trim=ps,v.trimEnd=ds,v.trimStart=vs,v.truncate=gs,v.unescape=ms,v.uniqueId=$s,v.upperCase=Wc,v.upperFirst=Dc,v.each=ef,v.eachRight=uf,v.first=ao,ks(v,function(){var t={};return fe(v,function(r,n){sh.call(v.prototype,n)||(t[n]=r)}),t}(),{chain:!1}),v.VERSION="4.17.10",i(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){v[t].placeholder=v}),i(["drop","take"],function(t,r){X.prototype[t]=function(n){n=n===tt?1:Nh(va(n),0);var e=this.__filtered__&&!r?new X(this):this.clone();return e.__filtered__?e.__takeCount__=zh(n,e.__takeCount__):e.__views__.push({size:zh(n,Ot),type:t+(e.__dir__<0?"Right":"")}),e},X.prototype[t+"Right"]=function(r){return this.reverse()[t](r).reverse()}}),i(["filter","map","takeWhile"],function(t,r){var n=r+1,e=n==Et||3==n;X.prototype[t]=function(t){var r=this.clone();return r.__iteratees__.push({iteratee:pu(t,3),type:n}),r.__filtered__=r.__filtered__||e,r}}),i(["head","last"],function(t,r){var n="take"+(r?"Right":"");X.prototype[t]=function(){return this[n](1).value()[0]}}),i(["initial","tail"],function(t,r){var n="drop"+(r?"":"Right");X.prototype[t]=function(){return this.__filtered__?new X(this):this[n](1)}}),X.prototype.compact=function(){return this.filter(Bs)},X.prototype.find=function(t){return this.filter(t).head()},X.prototype.findLast=function(t){return this.reverse().find(t)},X.prototype.invokeMap=He(function(t,r){return"function"==typeof t?new X(this):this.map(function(n){return _e(n,t,r)})}),X.prototype.reject=function(t){return this.filter(xf(pu(t)))},X.prototype.slice=function(t,r){t=va(t);var n=this;return n.__filtered__&&(t>0||r<0)?new X(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),r!==tt&&(n=(r=va(r))<0?n.dropRight(-r):n.take(r-t)),n)},X.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},X.prototype.toArray=function(){return this.take(Ot)},fe(X.prototype,function(t,r){var n=/^(?:filter|find|map|reject)|While$/.test(r),e=/^(?:head|last)$/.test(r),i=v[e?"take"+("last"==r?"Right":""):r],u=e||/^find/.test(r);i&&(v.prototype[r]=function(){var r=this.__wrapped__,o=e?[1]:arguments,f=r instanceof X,a=o[0],s=f||sc(r),h=function(t){var r=i.apply(v,l([t],o));return e&&c?r[0]:r};s&&n&&"function"==typeof a&&1!=a.length&&(f=s=!1);var c=this.__chain__,p=!!this.__actions__.length,d=u&&!c,g=f&&!p;if(!u&&s){r=g?r:new X(this);var m=t.apply(r,o);return m.__actions__.push({func:qo,args:[h],thisArg:tt}),new G(m,c)}return d&&g?t.apply(this,o):(m=this.thru(h),d?e?m.value()[0]:m.value():m)})}),i(["pop","push","shift","sort","splice","unshift"],function(t){var r=ih[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);v.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var i=this.value();return r.apply(sc(i)?i:[],t)}return this[n](function(n){return r.apply(sc(n)?n:[],t)})}}),fe(X.prototype,function(t,r){var n=v[r];if(n){var e=n.name+"";(Xh[e]||(Xh[e]=[])).push({name:r,func:n})}}),Xh[qi(tt,pt).name]=[{name:"wrapper",func:tt}],X.prototype.clone=J,X.prototype.reverse=Or,X.prototype.value=Yr,v.prototype.at=Dl,v.prototype.chain=Fo,v.prototype.commit=Zo,v.prototype.next=Go,v.prototype.plant=Ko,v.prototype.reverse=Ho,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=Xo,v.prototype.first=v.prototype.head,xh&&(v.prototype[xh]=Vo),v}();"function"==typeof tt&&"object"==typeof tt.amd&&tt.amd?Bn._=zn:xn?((xn.exports=zn)._=zn,An._=zn):Bn._=zn}).call(commonjsGlobal)}),lodash_1=lodash.reduce,lodash_2=lodash.isUndefined,lodash_3=lodash.isString,lodash_4=lodash.every,lodash_5=lodash.map,lodash$2=Object.freeze({default:lodash,__moduleExports:lodash,reduce:lodash_1,isUndefined:lodash_2,isString:lodash_3,every:lodash_4,map:lodash_5}),require$$0$1=lodash$2&&lodash||lodash$2,src=createCommonjsModule(function(t){const{reduce:reduce,isUndefined:isUndefined,isString:isString,every:every,map:map}=require$$0$1,r=[3077398253,3995603712,2243735041,1261992695],n=`\ndozmarbinwansamlitsighidfidlissogdirwacsabwissibrigsoldopmodfoglidhopdardorlorhodfolrintogsilmirholpaslacrovlivdalsatlibtabhanticpidtorbolfosdotlosdilforpilramtirwintadbicdifrocwidbisdasmidloprilnardapmolsanlocnovsitnidtipsicropwitnatpanminritpodmottamtolsavposnapnopsomfinfonbanmorworsipronnorbotwicsocwatdolmagpicdavbidbaltimtasmalligsivtagpadsaldivdactansidfabtarmonranniswolmispallasdismaprabtobrollatlonnodnavfignomnibpagsopralbilhaddocridmocpacravripfaltodtiltinhapmicfanpattaclabmogsimsonpinlomrictapfirhasbosbatpochactidhavsaplindibhosdabbitbarracparloddosbortochilmactomdigfilfasmithobharmighinradmashalraglagfadtopmophabnilnosmilfopfamdatnoldinhatnacrisfotribhocnimlarfitwalrapsarnalmoslandondanladdovrivbacpollaptalpitnambonrostonfodponsovnocsorlavmatmipfip`,e=`\nzodnecbudwessevpersutletfulpensytdurwepserwylsunrypsyxdyrnuphebpeglupdepdysputlughecryttyvsydnexlunmeplutseppesdelsulpedtemledtulmetwenbynhexfebpyldulhetmevruttylwydtepbesdexsefwycburderneppurrysrebdennutsubpetrulsynregtydsupsemwynrecmegnetsecmulnymtevwebsummutnyxrextebfushepbenmuswyxsymselrucdecwexsyrwetdylmynmesdetbetbeltuxtugmyrpelsyptermebsetdutdegtexsurfeltudnuxruxrenwytnubmedlytdusnebrumtynseglyxpunresredfunrevrefmectedrusbexlebduxrynnumpyxrygryxfeptyrtustyclegnemfermertenlusnussyltecmexpubrymtucfyllepdebbermughuttunbylsudpemdevlurdefbusbeprunmelpexdytbyttyplevmylwedducfurfexnulluclennerlexrupnedlecrydlydfenwelnydhusrelrudneshesfetdesretdunlernyrsebhulrylludremlysfynwerrycsugnysnyllyndyndemluxfedsedbecmunlyrtesmudnytbyrsenwegfyrmurtelreptegpecnelnevfes`.match(/.{1,3}/g),i=n.match(/.{1,3}/g),u=(t,r)=>t[r],o=t=>t.length,f=t=>t.length-1,a=(t,r)=>t.indexOf(r),s=t=>t%2!=0,h=t=>!s(t),l=t=>Array.from(Array(t),(t,r)=>r),c=t=>u(i,t),p=t=>u(e,t),d=t=>[...e,...i].includes(t),v=t=>e.includes(t),g=t=>i.includes(t),m=t=>a(i,t),y=t=>a(e,t),_=t=>parseInt(t,2).toString(10),w=t=>t.toString(2),M=t=>w(t).padStart(8,"0"),b=t=>t.replace(/[\^~-]/g,"").match(/.{1,3}/g),B=t=>{if(t>=65536&&t<=4294967295){const r=x(t-65536)+65536;return r}if(t>=4294967296&&t<=0x10000000000000000){const r=new bn$1(t),n=r.and(4294967295),e=r.and("18446744069414584000");return e.or(B(n)).toNumber()}return t},A=t=>{if(t>=65536&&t<=4294967295){const r=new bn$1(E(t-65536)),n=r.add(new bn$1(65536)).toNumber();return n}if(t>=4294967296&&t<=bn(0x10000000000000000)){const r=new bn$1(t),n=r.and(new bn$1("0xFFFFFFFF")),e=r.and(new bn$1("0xffffffff00000000")),i=e.or(A(n));return i.toNumber()}return t},x=t=>{let r=[t%65535,t/65535];for(var n=0;n<4;n++)r=k(n,r[0],r[1]);const e=65535*r[0]+r[1];return e},E=t=>{let r=[t%65535,t/65535];for(var n=3;n>-1;n--)r=S(n,r[0],r[1]);const e=new bn$1(65535);const i=e.mul(new bn$1(r[0])).add(new bn$1(r[1]));return i.toNumber()},k=(t,n,e)=>{n=Math.floor(n);const i=[e,0];const u=new bn$1(h(t)?65535:65536);const o=new bn$1(R(r[t],2,e));const f=o.add(new bn$1(n)).mod(u);i[1]=f.toNumber();return i},S=(t,n,e)=>{n=Math.floor(n);const i=[e,0];const u=new bn$1(h(t)?65535:65536);const o=new bn$1(R(r[t],2,e));const f=new bn$1(u+n);const a=f.sub(o.mod(u)).mod(u).toString();i[1]=a;return i},R=(t,r,n)=>{const e=255&n;const i=(65280&n)/256;const u=I(String.fromCharCode(e)+String.fromCharCode(i),t);return u},I=(t,r)=>{r||(r=0);const n=new bn$1(3432918353);const e=new bn$1(461845907);const i=4294967295;const u=new bn$1(o(t));let f=new bn$1(r);let a;const s=4294967292&u;for(var h=0;h<s;h+=4){var l=t.charCodeAt(h+3)?t.charCodeAt(h+3):0;a=bn(255&t.charCodeAt(h))|(255&t.charCodeAt(h+1))<<8|(255&t.charCodeAt(h+2))<<16|l<<24,a=(a*=n)<<15|(4294967295&a)>>17,f=5*(f=(f^=a*=e)<<13|(4294967295&f)>>19)+3864292196}a=0;const c=3&u;3==c&&(a=(255&t.charCodeAt(s+2))<<16);3!=c&&2!=c||(a|=(255&t.charCodeAt(s+1))<<8);if(3==c||2==c||1==c){a|=255&t.charCodeAt(s),a=new bn$1(a*n);var p=new bn$1(a.and(new bn$1(i)).shrn(17));a=(a=a.shln(15).or(p)).mul(e),f=f.xor(a)}f=f.xor(u);f=f.xor(f.and(new bn$1(i)).shrn(16));f=f.mul(new bn$1(2246822507));f=f.xor(f.and(new bn$1(i)).shrn(13));f=f.mul(new bn$1(3266489909));f=f.xor(f.and(new bn$1(i)).shrn(16));return f.and(new bn$1(i)).toNumber()},T=t=>{const r=o(b(t));if(r<=1)return"galaxy";if(r<=2)return"star";if(r<=4)return"planet";if(r<=8)return"moon";if(r<=16)return"comet";return"invalid"},O=t=>{const r=o(w(t));if(r<=8)return"galaxy";if(r<=16)return"star";if(r<=32)return"planet";if(r<=64)return"moon";if(r<=128)return"comet";return"invalid"},j=t=>{const r=o(w(t));if(r<=8)return P(t);if(r<=16)return C(t);if(r<=32)return N(t);r<=64&&console.error("Convert to moon not currently supported.");r<=128&&console.error("Convert to comet not currently supported.");return"invalid"},L=(t,r)=>{isUndefined(r)&&(r=!0);if(!U(t))return;isString(t)&&(t=b(t));const n=reduce(t,(r,n,e)=>s(e)||1===o(t)?r+M(y(n)):r+M(m(n)),"");const e=_(n);return r?A(e):e},U=t=>{const r=b(t);if(s(o(r))&&1!==o(r))return!1;const n=map(r,(t,n)=>s(n)||1===o(r)?v(t):g(t));return every(n,t=>!0===t)},P=t=>z(t,1),C=t=>z(t,2),N=(t,r)=>{isUndefined(r)&&(r=!0);return z(t,4,r)},z=(t,r,n)=>{isUndefined(n)&&(n=!0);r||(r=t<256?1:t<65536?2:4);4===r&&n&&(t=B(t));const e=reduce(l(r),(r,n)=>{const e=Math.floor(t%256);t/=256;const i=s(n)?c(e):p(e);return r=2===n?i+"-"+r:i+r},"");return e};t.exports={patp2add:L,add2patp:j,tierOfpatp:T,tierOfadd:O,toGalaxyName:P,toStarName:C,toPlanetName:N,isValidName:U,_add2patp:z,_getsuffix:p,_muk:R,_feen:B,_fend:A,_teil:E,_getAt:u,_len:o,_lid:f,_indexOf:a,_isOdd:s,_isEven:h,_seq:l,_getPrefix:c,_getSuffix:p,_doesExist:d,_doesSuffixExist:v,_doesPrefixExist:g,_getPrefixIndex:m,_getSuffixIndex:y,_bin2dec:_,_dec2bin:w,_syl2bin:M}}),src_1=src.patp2add,src_2=src.add2patp,src_3=src.tierOfpatp,src_4=src.tierOfadd,src_5=src.toGalaxyName,src_6=src.toStarName,src_7=src.toPlanetName,src_8=src.isValidName,src_9=src._add2patp,src_10=src._getsuffix,src_11=src._muk,src_12=src._feen,src_13=src._fend,src_14=src._teil,src_15=src._getAt,src_16=src._len,src_17=src._lid,src_18=src._indexOf,src_19=src._isOdd,src_20=src._isEven,src_21=src._seq,src_22=src._getPrefix,src_23=src._getSuffix,src_24=src._doesExist,src_25=src._doesSuffixExist,src_26=src._doesPrefixExist,src_27=src._getPrefixIndex,src_28=src._getSuffixIndex,src_29=src._bin2dec,src_30=src._dec2bin,src_31=src._syl2bin;export{src_1 as patp2add,src_2 as add2patp,src_3 as tierOfpatp,src_4 as tierOfadd,src_5 as toGalaxyName,src_6 as toStarName,src_7 as toPlanetName,src_8 as isValidName,src_9 as _add2patp,src_10 as _getsuffix,src_11 as _muk,src_12 as _feen,src_13 as _fend,src_14 as _teil,src_15 as _getAt,src_16 as _len,src_17 as _lid,src_18 as _indexOf,src_19 as _isOdd,src_20 as _isEven,src_21 as _seq,src_22 as _getPrefix,src_23 as _getSuffix,src_24 as _doesExist,src_25 as _doesSuffixExist,src_26 as _doesPrefixExist,src_27 as _getPrefixIndex,src_28 as _getSuffixIndex,src_29 as _bin2dec,src_30 as _dec2bin,src_31 as _syl2bin};export default src; diff --git a/src/index.js b/src/index.js @@ -1,5 +1,3 @@ -'use strict' - /* * Utility methods */