UNPKG

orbit-db

Version:

Distributed p2p database on IPFS

1 lines 2.1 MB
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1146)}([function(e,t,r){"use strict";(function(e){var n=r(1145),i=r(467),o=r(256);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=l(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r),i=(e=a(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|d(t.length);return 0===(e=a(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?a(e,0):l(e,t);if("Buffer"===t.type&&o(t.data))return l(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function f(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(f(t),e=a(e,t<0?0:0|d(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function l(e,t){var r=t.length<0?0:0|d(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function d(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(n)return K(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var f=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*s}else-1!==f&&(o-=o-f),f=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var h=!0,l=0;l<u;l++)if(c(e,o+l)!==c(t,l)){h=!1;break}if(h)return o}return-1}function m(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function v(e,t,r,n){return z(K(t,e.length-r),e,r,n)}function _(e,t,r,n){return z(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function w(e,t,r,n){return _(e,t,r,n)}function S(e,t,r,n){return z(F(t),e,r,n)}function k(e,t,r,n){return z(function(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function E(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function A(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,u,c=e[i],f=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(f=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(f=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(f=u)}null===f?(f=65533,h=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=h}return function(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=I));return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return f(t),t<=0?a(e,t):void 0!==r?"string"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).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}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return x(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return E(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,s=r-t,a=Math.min(o,s),c=this.slice(n,i),f=e.slice(t,r),h=0;h<a;++h)if(c[h]!==f[h]){o=c[h],s=f[h];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return m(this,e,t,r);case"utf8":case"utf-8":return v(this,e,t,r);case"ascii":return _(this,e,t,r);case"latin1":case"binary":return w(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function x(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function C(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function B(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=U(e[o]);return i}function T(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function O(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function N(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function R(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function M(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,n,o){return o||M(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function j(e,t,r,n,o){return o||M(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);P(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);P(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=u.isBuffer(e)?e:K(new u(e,n).toString()),a=s.length;for(o=0;o<r-t;++o)this[o+t]=s[o%a]}return this};var D=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(4))},function(e,t,r){var n=r(0),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,c=[],f=!1,h=-1;function l(){f&&u&&(f=!1,u.length?c=u.concat(c):h=-1,c.length&&d())}function d(){if(!f){var e=a(l);f=!0;for(var t=c.length;t;){for(u=c,c=[];++h<t;)u&&u[h].run();h=-1,t=c.length}u=null,f=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||f||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(1134),i=r(1128),o=r(1122);for(var s in(t=e.exports=r(455)).pull=t,n)t[s]=n[s];for(var s in o)t[s]=o[s];for(var s in i)t[s]=i[s]},function(e,t,r){(function(n){function i(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=Object({NODE_ENV:void 0}).DEBUG),e}(t=e.exports=r(1093)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&"%c"===e&&(o=++i)}),e.splice(o,0,n)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=i,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())}).call(this,r(3))},function(e,t){e.exports={options:{usePureJavaScript:!1}}},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,s,a,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var f=new Error('Uncaught, unspecified "error" event. ('+t+")");throw f.context=t,f}if(o(r=this._events[e]))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),r.apply(this,a)}else if(i(r))for(a=Array.prototype.slice.call(arguments,1),s=(c=r.slice()).length,u=0;u<s;u++)c[u].apply(this,a);return!0},r.prototype.addListener=function(e,t){var s;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(s=o(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&s>0&&this._events[e].length>s&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},r.prototype.removeListener=function(e,t){var r,o,s,a;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(r=this._events[e]).length,o=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(r)){for(a=s;a-- >0;)if(r[a]===t||r[a].listener&&r[a].listener===t){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){(function(e,n){var i;(function(){var o,s,a,u="3.10.1",c=1,f=2,h=4,l=8,d=16,p=32,g=64,b=128,y=256,m=30,v="...",_=150,w=16,S=200,k=1,E=2,A="Expected a function",I="__lodash_placeholder__",x="[object Arguments]",C="[object Array]",B="[object Boolean]",T="[object Date]",O="[object Error]",P="[object Function]",N="[object Number]",R="[object Object]",M="[object RegExp]",L="[object String]",j="[object ArrayBuffer]",D="[object Float32Array]",U="[object Float64Array]",K="[object Int8Array]",F="[object Int16Array]",z="[object Int32Array]",H="[object Uint8Array]",V="[object Uint8ClampedArray]",q="[object Uint16Array]",G="[object Uint32Array]",W=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,J=/&(?:amp|lt|gt|quot|#39|#96);/g,X=/[&<>"'`]/g,Z=RegExp(J.source),Q=RegExp(X.source),ee=/<%-([\s\S]+?)%>/g,te=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,ie=/^\w*$/,oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,se=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,ae=RegExp(se.source),ue=/[\u0300-\u036f\ufe20-\ufe23]/g,ce=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,le=/^0[xX]/,de=/^\[object .+?Constructor\]$/,pe=/^\d+$/,ge=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,be=/($^)/,ye=/['\n\r\u2028\u2029\\]/g,me=(s="[A-Z\\xc0-\\xd6\\xd8-\\xde]",a="[a-z\\xdf-\\xf6\\xf8-\\xff]+",RegExp(s+"+(?="+s+a+")|"+s+"?"+a+"|"+s+"+|[0-9]+","g")),ve=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],_e=-1,we={};we[D]=we[U]=we[K]=we[F]=we[z]=we[H]=we[V]=we[q]=we[G]=!0,we[x]=we[C]=we[j]=we[B]=we[T]=we[O]=we[P]=we["[object Map]"]=we[N]=we[R]=we[M]=we["[object Set]"]=we[L]=we["[object WeakMap]"]=!1;var Se={};Se[x]=Se[C]=Se[j]=Se[B]=Se[T]=Se[D]=Se[U]=Se[K]=Se[F]=Se[z]=Se[N]=Se[R]=Se[M]=Se[L]=Se[H]=Se[V]=Se[q]=Se[G]=!0,Se[O]=Se[P]=Se["[object Map]"]=Se["[object Set]"]=Se["[object WeakMap]"]=!1;var ke={"À":"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"},Ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},Ae={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},Ie={function:!0,object:!0},xe={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Ce={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Be=Ie[typeof t]&&t&&!t.nodeType&&t,Te=Ie[typeof e]&&e&&!e.nodeType&&e,Oe=Be&&Te&&"object"==typeof n&&n&&n.Object&&n,Pe=Ie[typeof self]&&self&&self.Object&&self,Ne=Ie[typeof window]&&window&&window.Object&&window,Re=(Te&&Te.exports,Oe||Ne!==(this&&this.window)&&Ne||Pe||this);function Me(e,t){if(e!==t){var r=null===e,n=e===o,i=e==e,s=null===t,a=t===o,u=t==t;if(e>t&&!s||!i||r&&!a&&u||n&&u)return 1;if(e<t&&!r||!u||s&&!n&&i||a&&i)return-1}return 0}function Le(e,t,r){for(var n=e.length,i=r?n:-1;r?i--:++i<n;)if(t(e[i],i,e))return i;return-1}function je(e,t,r){if(t!=t)return We(e,r);for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function De(e){return"function"==typeof e||!1}function Ue(e){return null==e?"":e+""}function Ke(e,t){for(var r=-1,n=e.length;++r<n&&t.indexOf(e.charAt(r))>-1;);return r}function Fe(e,t){for(var r=e.length;r--&&t.indexOf(e.charAt(r))>-1;);return r}function ze(e,t){return Me(e.criteria,t.criteria)||e.index-t.index}function He(e){return ke[e]}function Ve(e){return Ee[e]}function qe(e,t,r){return t?e=xe[e]:r&&(e=Ce[e]),"\\"+e}function Ge(e){return"\\"+Ce[e]}function We(e,t,r){for(var n=e.length,i=t+(r?0:-1);r?i--:++i<n;){var o=e[i];if(o!=o)return i}return-1}function Ye(e){return!!e&&"object"==typeof e}function $e(e){return e<=160&&e>=9&&e<=13||32==e||160==e||5760==e||6158==e||e>=8192&&(e<=8202||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}function Je(e,t){for(var r=-1,n=e.length,i=-1,o=[];++r<n;)e[r]===t&&(e[r]=I,o[++i]=r);return o}function Xe(e){for(var t=-1,r=e.length;++t<r&&$e(e.charCodeAt(t)););return t}function Ze(e){for(var t=e.length;t--&&$e(e.charCodeAt(t)););return t}function Qe(e){return Ae[e]}var et=function e(t){var r=(t=t?et.defaults(Re.Object(),t,et.pick(Re,ve)):Re).Array,n=t.Date,i=t.Error,s=t.Function,a=t.Math,ke=t.Number,Ee=t.Object,Ae=t.RegExp,Ie=t.String,xe=t.TypeError,Ce=r.prototype,Be=Ee.prototype,Te=Ie.prototype,Oe=s.prototype.toString,Pe=Be.hasOwnProperty,Ne=0,$e=Be.toString,tt=Re._,rt=Ae("^"+Oe.call(Pe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=t.ArrayBuffer,it=t.clearTimeout,ot=t.parseFloat,st=a.pow,at=Be.propertyIsEnumerable,ut=mn(t,"Set"),ct=t.setTimeout,ft=Ce.splice,ht=t.Uint8Array,lt=mn(t,"WeakMap"),dt=a.ceil,pt=mn(Ee,"create"),gt=a.floor,bt=mn(r,"isArray"),yt=t.isFinite,mt=mn(Ee,"keys"),vt=a.max,_t=a.min,wt=mn(n,"now"),St=t.parseInt,kt=a.random,Et=ke.NEGATIVE_INFINITY,At=ke.POSITIVE_INFINITY,It=4294967295,xt=It-1,Ct=It>>>1,Bt=9007199254740991,Tt=lt&&new lt,Ot={};function Pt(e){if(Ye(e)&&!Gi(e)&&!(e instanceof Mt)){if(e instanceof Rt)return e;if(Pe.call(e,"__chain__")&&Pe.call(e,"__wrapped__"))return Ln(e)}return new Rt(e)}function Nt(){}function Rt(e,t,r){this.__wrapped__=e,this.__actions__=r||[],this.__chain__=!!t}Pt.support={};function Mt(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=At,this.__views__=[]}function Lt(){this.__data__={}}function jt(e){var t=e?e.length:0;for(this.data={hash:pt(null),set:new ut};t--;)this.push(e[t])}function Dt(e,t){var r=e.data;return("string"==typeof t||Ji(t)?r.set.has(t):r.hash[t])?0:-1}function Ut(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Kt(e,t){for(var r=-1,n=e.length;++r<n&&!1!==t(e[r],r,e););return e}function Ft(e,t){for(var r=-1,n=e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function zt(e,t){for(var r=-1,n=e.length,i=-1,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[++i]=s)}return o}function Ht(e,t){for(var n=-1,i=e.length,o=r(i);++n<i;)o[n]=t(e[n],n,e);return o}function Vt(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function qt(e,t,r,n){var i=-1,o=e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function Gt(e,t){for(var r=-1,n=e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Wt(e,t,r,n){return e!==o&&Pe.call(n,r)?e:t}function Yt(e,t,r){for(var n=-1,i=mo(t),s=i.length;++n<s;){var a=i[n],u=e[a],c=r(u,t[a],a,e,t);(c==c?c===u:u!=u)&&(u!==o||a in e)||(e[a]=c)}return e}function $t(e,t){return null==t?e:Xt(t,mo(t),e)}function Jt(e,t){for(var n=-1,i=null==e,s=!i&&_n(e),a=s?e.length:0,u=t.length,c=r(u);++n<u;){var f=t[n];c[n]=s?wn(f,a)?e[f]:o:i?o:e[f]}return c}function Xt(e,t,r){r||(r={});for(var n=-1,i=t.length;++n<i;){var o=t[n];r[o]=e[o]}return r}function Zt(e,t,r){var n=typeof e;return"function"==n?t===o?e:Mr(e,t,r):null==e?Do:"object"==n?vr(e):t===o?Vo(e):_r(e,t)}function Qt(e,t,r,n,i,s,a){var u;if(r&&(u=i?r(e,n,i):r(e)),u!==o)return u;if(!Ji(e))return e;var c=Gi(e);if(c){if(u=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!t)return Ut(e,u)}else{var f=$e.call(e),h=f==P;if(f!=R&&f!=x&&(!h||i))return Se[f]?function(e,t,r){var n=e.constructor;switch(t){case j:return Lr(e);case B:case T:return new n(+e);case D:case U:case K:case F:case z:case H:case V:case q:case G:var i=e.buffer;return new n(r?Lr(i):i,e.byteOffset,e.length);case N:case L:return new n(e);case M:var o=new n(e.source,he.exec(e));o.lastIndex=e.lastIndex}return o}(e,f,t):i?e:{};if(u=function(e){var t=e.constructor;return"function"==typeof t&&t instanceof t||(t=Ee),new t}(h?{}:e),!t)return $t(u,e)}s||(s=[]),a||(a=[]);for(var l=s.length;l--;)if(s[l]==e)return a[l];return s.push(e),a.push(u),(c?Kt:lr)(e,function(n,i){u[i]=Qt(n,t,r,i,e,s,a)}),u}Pt.templateSettings={escape:ee,evaluate:te,interpolate:re,variable:"",imports:{_:Pt}};var er=function(){function e(){}return function(t){if(Ji(t)){e.prototype=t;var r=new e;e.prototype=o}return r||{}}}();function tr(e,t,r){if("function"!=typeof e)throw new xe(A);return ct(function(){e.apply(o,r)},t)}function rr(e,t){var r=e?e.length:0,n=[];if(!r)return n;var i=-1,o=gn(),s=o==je,a=s&&t.length>=S?Hr(t):null,u=t.length;a&&(o=Dt,s=!1,t=a);e:for(;++i<r;){var c=e[i];if(s&&c==c){for(var f=u;f--;)if(t[f]===c)continue e;n.push(c)}else o(t,c,0)<0&&n.push(c)}return n}var nr=Fr(lr),ir=Fr(dr,!0);function or(e,t){var r=!0;return nr(e,function(e,n,i){return r=!!t(e,n,i)}),r}function sr(e,t){var r=[];return nr(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function ar(e,t,r,n){var i;return r(e,function(e,r,o){if(t(e,r,o))return i=n?r:e,!1}),i}function ur(e,t,r,n){n||(n=[]);for(var i=-1,o=e.length;++i<o;){var s=e[i];Ye(s)&&_n(s)&&(r||Gi(s)||qi(s))?t?ur(s,t,r,n):Vt(n,s):r||(n[n.length]=s)}return n}var cr=zr(),fr=zr(!0);function hr(e,t){return cr(e,t,vo)}function lr(e,t){return cr(e,t,mo)}function dr(e,t){return fr(e,t,mo)}function pr(e,t){for(var r=-1,n=t.length,i=-1,o=[];++r<n;){var s=t[r];$i(e[s])&&(o[++i]=s)}return o}function gr(e,t,r){if(null!=e){r!==o&&r in Rn(e)&&(t=[r]);for(var n=0,i=t.length;null!=e&&n<i;)e=e[t[n++]];return n&&n==i?e:o}}function br(e,t,r,n,i,s){return e===t||(null==e||null==t||!Ji(e)&&!Ye(t)?e!=e&&t!=t:function(e,t,r,n,i,s,a){var u=Gi(e),c=Gi(t),f=C,h=C;u||((f=$e.call(e))==x?f=R:f!=R&&(u=ro(e))),c||((h=$e.call(t))==x?h=R:h!=R&&(c=ro(t)));var l=f==R,d=h==R,p=f==h;if(p&&!u&&!l)return function(e,t,r){switch(r){case B:case T:return+e==+t;case O:return e.name==t.name&&e.message==t.message;case N:return e!=+e?t!=+t:e==+t;case M:case L:return e==t+""}return!1}(e,t,f);if(!i){var g=l&&Pe.call(e,"__wrapped__"),b=d&&Pe.call(t,"__wrapped__");if(g||b)return r(g?e.value():e,b?t.value():t,n,i,s,a)}if(!p)return!1;s||(s=[]),a||(a=[]);for(var y=s.length;y--;)if(s[y]==e)return a[y]==t;s.push(e),a.push(t);var m=(u?function(e,t,r,n,i,s,a){var u=-1,c=e.length,f=t.length;if(c!=f&&!(i&&f>c))return!1;for(;++u<c;){var h=e[u],l=t[u],d=n?n(i?l:h,i?h:l,u):o;if(d!==o){if(d)continue;return!1}if(i){if(!Gt(t,function(e){return h===e||r(h,e,n,i,s,a)}))return!1}else if(h!==l&&!r(h,l,n,i,s,a))return!1}return!0}:function(e,t,r,n,i,s,a){var u=mo(e),c=u.length,f=mo(t).length;if(c!=f&&!i)return!1;for(var h=c;h--;){var l=u[h];if(!(i?l in t:Pe.call(t,l)))return!1}for(var d=i;++h<c;){l=u[h];var p=e[l],g=t[l],b=n?n(i?g:p,i?p:g,l):o;if(!(b===o?r(p,g,n,i,s,a):b))return!1;d||(d="constructor"==l)}if(!d){var y=e.constructor,m=t.constructor;if(y!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m))return!1}return!0})(e,t,r,n,i,s,a);return s.pop(),a.pop(),m}(e,t,br,r,n,i,s))}function yr(e,t,r){var n=t.length,i=n,s=!r;if(null==e)return!i;for(e=Rn(e);n--;){var a=t[n];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++n<i;){var u=(a=t[n])[0],c=e[u],f=a[1];if(s&&a[2]){if(c===o&&!(u in e))return!1}else{var h=r?r(c,f,u):o;if(!(h===o?br(f,c,r,!0):h))return!1}}return!0}function mr(e,t){var n=-1,i=_n(e)?r(e.length):[];return nr(e,function(e,r,o){i[++n]=t(e,r,o)}),i}function vr(e){var t=yn(e);if(1==t.length&&t[0][2]){var r=t[0][0],n=t[0][1];return function(e){return null!=e&&e[r]===n&&(n!==o||r in Rn(e))}}return function(e){return yr(e,t)}}function _r(e,t){var r=Gi(e),n=kn(e)&&In(t),i=e+"";return e=Mn(e),function(s){if(null==s)return!1;var a=i;if(s=Rn(s),(r||!n)&&!(a in s)){if(null==(s=1==e.length?s:gr(s,Ar(e,0,-1))))return!1;a=qn(e),s=Rn(s)}return s[a]===t?t!==o||a in s:br(t,s[a],o,!0)}}function wr(e){return function(t){return null==t?o:t[e]}}function Sr(e,t){for(var r=e?t.length:0;r--;){var n=t[r];if(n!=i&&wn(n)){var i=n;ft.call(e,n,1)}}return e}function kr(e,t){return e+gt(kt()*(t-e+1))}var Er=Tt?function(e,t){return Tt.set(e,t),e}:Do;function Ar(e,t,n){var i=-1,s=e.length;(t=null==t?0:+t||0)<0&&(t=-t>s?0:s+t),(n=n===o||n>s?s:+n||0)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var a=r(s);++i<s;)a[i]=e[i+t];return a}function Ir(e,t){var r;return nr(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function xr(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}function Cr(e,t,r){var n=ln(),i=-1;return t=Ht(t,function(e){return n(e)}),xr(mr(e,function(e){return{criteria:Ht(t,function(t){return t(e)}),index:++i,value:e}}),function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,s=i.length,a=r.length;++n<s;){var u=Me(i[n],o[n]);if(u){if(n>=a)return u;var c=r[n];return u*("asc"===c||!0===c?1:-1)}}return e.index-t.index}(e,t,r)})}function Br(e,t){var r=-1,n=gn(),i=e.length,o=n==je,s=o&&i>=S,a=s?Hr():null,u=[];a?(n=Dt,o=!1):(s=!1,a=t?[]:u);e:for(;++r<i;){var c=e[r],f=t?t(c,r,e):c;if(o&&c==c){for(var h=a.length;h--;)if(a[h]===f)continue e;t&&a.push(f),u.push(c)}else n(a,f,0)<0&&((t||s)&&a.push(f),u.push(c))}return u}function Tr(e,t){for(var n=-1,i=t.length,o=r(i);++n<i;)o[n]=e[t[n]];return o}function Or(e,t,r,n){for(var i=e.length,o=n?i:-1;(n?o--:++o<i)&&t(e[o],o,e););return r?Ar(e,n?0:o,n?o+1:i):Ar(e,n?o+1:0,n?i:o)}function Pr(e,t){var r=e;r instanceof Mt&&(r=r.value());for(var n=-1,i=t.length;++n<i;){var o=t[n];r=o.func.apply(o.thisArg,Vt([r],o.args))}return r}function Nr(e,t,r){var n=0,i=e?e.length:n;if("number"==typeof t&&t==t&&i<=Ct){for(;n<i;){var o=n+i>>>1,s=e[o];(r?s<=t:s<t)&&null!==s?n=o+1:i=o}return i}return Rr(e,t,Do,r)}function Rr(e,t,r,n){t=r(t);for(var i=0,s=e?e.length:0,a=t!=t,u=null===t,c=t===o;i<s;){var f=gt((i+s)/2),h=r(e[f]),l=h!==o,d=h==h;if(a)var p=d||n;else p=u?d&&l&&(n||null!=h):c?d&&(n||l):null!=h&&(n?h<=t:h<t);p?i=f+1:s=f}return _t(s,xt)}function Mr(e,t,r){if("function"!=typeof e)return Do;if(t===o)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 3:return function(r,n,i){return e.call(t,r,n,i)};case 4:return function(r,n,i,o){return e.call(t,r,n,i,o)};case 5:return function(r,n,i,o,s){return e.call(t,r,n,i,o,s)}}return function(){return e.apply(t,arguments)}}function Lr(e){var t=new nt(e.byteLength);return new ht(t).set(new ht(e)),t}function jr(e,t,n){for(var i=n.length,o=-1,s=vt(e.length-i,0),a=-1,u=t.length,c=r(u+s);++a<u;)c[a]=t[a];for(;++o<i;)c[n[o]]=e[o];for(;s--;)c[a++]=e[o++];return c}function Dr(e,t,n){for(var i=-1,o=n.length,s=-1,a=vt(e.length-o,0),u=-1,c=t.length,f=r(a+c);++s<a;)f[s]=e[s];for(var h=s;++u<c;)f[h+u]=t[u];for(;++i<o;)f[h+n[i]]=e[s++];return f}function Ur(e,t){return function(r,n,i){var o=t?t():{};if(n=ln(n,i,3),Gi(r))for(var s=-1,a=r.length;++s<a;){var u=r[s];e(o,u,n(u,s,r),r)}else nr(r,function(t,r,i){e(o,t,n(t,r,i),i)});return o}}function Kr(e){return Hi(function(t,r){var n=-1,i=null==t?0:r.length,s=i>2?r[i-2]:o,a=i>2?r[2]:o,u=i>1?r[i-1]:o;for("function"==typeof s?(s=Mr(s,u,5),i-=2):i-=(s="function"==typeof u?u:o)?1:0,a&&Sn(r[0],r[1],a)&&(s=i<3?o:s,i=1);++n<i;){var c=r[n];c&&e(t,c,s)}return t})}function Fr(e,t){return function(r,n){var i=r?bn(r):0;if(!An(i))return e(r,n);for(var o=t?i:-1,s=Rn(r);(t?o--:++o<i)&&!1!==n(s[o],o,s););return r}}function zr(e){return function(t,r,n){for(var i=Rn(t),o=n(t),s=o.length,a=e?s:-1;e?a--:++a<s;){var u=o[a];if(!1===r(i[u],u,i))break}return t}}function Hr(e){return pt&&ut?new jt(e):null}function Vr(e){return function(t){for(var r=-1,n=Mo(xo(t)),i=n.length,o="";++r<i;)o=e(o,n[r],r);return o}}function qr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=er(e.prototype),n=e.apply(r,t);return Ji(n)?n:r}}function Gr(e){return function t(r,n,i){i&&Sn(r,n,i)&&(n=o);var s=hn(r,e,o,o,o,o,o,n);return s.placeholder=t.placeholder,s}}function Wr(e,t){return Hi(function(r){var n=r[0];return null==n?n:(r.push(t),e.apply(o,r))})}function Yr(e,t){return function(r,n,i){if(i&&Sn(r,n,i)&&(n=o),1==(n=ln(n,i,3)).length){var s=function(e,t,r,n){for(var i=-1,o=e.length,s=n,a=s;++i<o;){var u=e[i],c=+t(u);r(c,s)&&(s=c,a=u)}return a}(r=Gi(r)?r:Nn(r),n,e,t);if(!r.length||s!==t)return s}return function(e,t,r,n){var i=n,o=i;return nr(e,function(e,s,a){var u=+t(e,s,a);(r(u,i)||u===n&&u===o)&&(i=u,o=e)}),o}(r,n,e,t)}}function $r(e,t){return function(r,n,i){if(n=ln(n,i,3),Gi(r)){var s=Le(r,n,t);return s>-1?r[s]:o}return ar(r,n,e)}}function Jr(e){return function(t,r,n){return t&&t.length?Le(t,r=ln(r,n,3),e):-1}}function Xr(e){return function(t,r,n){return ar(t,r=ln(r,n,3),e,!0)}}function Zr(e){return function(){for(var t,n=arguments.length,i=e?n:-1,s=0,a=r(n);e?i--:++i<n;){var u=a[s++]=arguments[i];if("function"!=typeof u)throw new xe(A);!t&&Rt.prototype.thru&&"wrapper"==pn(u)&&(t=new Rt([],!0))}for(i=t?-1:n;++i<n;){var c=pn(u=a[i]),f="wrapper"==c?dn(u):o;t=f&&En(f[0])&&f[1]==(b|l|p|y)&&!f[4].length&&1==f[9]?t[pn(f[0])].apply(t,f[3]):1==u.length&&En(u)?t[c]():t.thru(u)}return function(){var e=arguments,r=e[0];if(t&&1==e.length&&Gi(r)&&r.length>=S)return t.plant(r).value();for(var i=0,o=n?a[i].apply(this,e):r;++i<n;)o=a[i].call(this,o);return o}}}function Qr(e,t){return function(r,n,i){return"function"==typeof n&&i===o&&Gi(r)?e(r,n):t(r,Mr(n,i,3))}}function en(e){return function(t,r,n){return"function"==typeof r&&n===o||(r=Mr(r,n,3)),e(t,r,vo)}}function tn(e){return function(t,r,n){return"function"==typeof r&&n===o||(r=Mr(r,n,3)),e(t,r)}}function rn(e){return function(t,r,n){var i={};return r=ln(r,n,3),lr(t,function(t,n,o){var s=r(t,n,o);n=e?s:n,t=e?t:s,i[n]=t}),i}}function nn(e){return function(t,r,n){return t=Ue(t),(e?t:"")+un(t,r,n)+(e?"":t)}}function on(e){var t=Hi(function(r,n){var i=Je(n,t.placeholder);return hn(r,e,o,n,i)});return t}function sn(e,t){return function(r,n,i,s){var a=arguments.length<3;return"function"==typeof n&&s===o&&Gi(r)?e(r,n,i,a):function(e,t,r,n,i){return i(e,function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)}),r}(r,ln(n,s,4),i,a,t)}}function an(e,t,n,i,s,a,u,y,m,v){var _=t&b,w=t&c,S=t&f,k=t&l,E=t&h,A=t&d,I=S?o:qr(e);return function h(){for(var l=arguments.length,d=l,b=r(l);d--;)b[d]=arguments[d];if(i&&(b=jr(b,i,s)),a&&(b=Dr(b,a,u)),k||A){var x=h.placeholder,C=Je(b,x);if((l-=C.length)<v){var B=y?Ut(y):o,T=vt(v-l,0);t|=k?p:g,t&=~(k?g:p),E||(t&=~(c|f));var O=[e,t,n,k?b:o,k?C:o,k?o:b,k?o:C,B,m,T],P=an.apply(o,O);return En(e)&&On(P,O),P.placeholder=x,P}}var N=w?n:this,R=S?N[e]:e;return y&&(b=function(e,t){for(var r=e.length,n=_t(t.length,r),i=Ut(e);n--;){var s=t[n];e[n]=wn(s,r)?i[s]:o}return e}(b,y)),_&&m<b.length&&(b.length=m),this&&this!==Re&&this instanceof h&&(R=I||qr(e)),R.apply(N,b)}}function un(e,t,r){var n=e.length;if(n>=(t=+t)||!yt(t))return"";var i=t-n;return Oo(r=null==r?" ":r+"",dt(i/r.length)).slice(0,i)}function cn(e){var t=a[e];return function(e,r){return(r=r===o?0:+r||0)?(r=st(10,r),t(e*r)/r):t(e)}}function fn(e){return function(t,r,n,i){var o=ln(n);return null==n&&o===Zt?Nr(t,r,e):Rr(t,r,o(n,i,1),e)}}function hn(e,t,n,i,s,a,u,d){var m=t&f;if(!m&&"function"!=typeof e)throw new xe(A);var v=i?i.length:0;if(v||(t&=~(p|g),i=s=o),v-=s?s.length:0,t&g){var _=i,w=s;i=s=o}var S=m?o:dn(e),k=[e,t,n,i,s,_,w,a,u,d];if(S&&(function(e,t){var r=e[1],n=t[1],i=r|n,o=i<b,s=n==b&&r==l||n==b&&r==y&&e[7].length<=t[8]||n==(b|y)&&r==l;if(!o&&!s)return e;n&c&&(e[2]=t[2],i|=r&c?0:h);var a=t[3];if(a){var u=e[3];e[3]=u?jr(u,a,t[4]):Ut(a),e[4]=u?Je(e[3],I):Ut(t[4])}(a=t[5])&&(u=e[5],e[5]=u?Dr(u,a,t[6]):Ut(a),e[6]=u?Je(e[5],I):Ut(t[6])),(a=t[7])&&(e[7]=Ut(a)),n&b&&(e[8]=null==e[8]?t[8]:_t(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(k,S),t=k[1],d=k[9]),k[9]=null==d?m?0:e.length:vt(d-v,0)||0,t==c)var E=function(e,t){var r=qr(e);return function n(){return(this&&this!==Re&&this instanceof n?r:e).apply(t,arguments)}}(k[0],k[2]);else E=t!=p&&t!=(c|p)||k[4].length?an.apply(o,k):function(e,t,n,i){var o=t&c,s=qr(e);return function t(){for(var a=-1,u=arguments.length,c=-1,f