UNPKG

@antbat/base-client-js

Version:

Base JS library for BASE-platform

16 lines 1.65 MB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("BitclaveBase",[],t):"object"==typeof exports?exports.BitclaveBase=t():e.BitclaveBase=t()}(window,function(){return 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}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},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=132)}([function(e,t,r){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> * @license MIT */ var n=r(133),i=r(134),o=r(81);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,r){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(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 u(this,e,t,r)}function u(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);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!c.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(c.isBuffer(t)){var r=0|l(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):d(e,t);if("Buffer"===t.type&&o(t.data))return d(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|l(t)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t){var r=t.length<0?0:0|l(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function l(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(c.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 F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(e).length;default:if(n)return F(e).length;t=(""+t).toLowerCase(),n=!0}}function b(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(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=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,s=1,a=e.length,c=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,c/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var f=-1;for(o=r;o<a;o++)if(u(e,o)===u(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===c)return f*s}else-1!==f&&(o-=o-f),f=-1}else for(r+c>a&&(r=a-c),o=r;o>=0;o--){for(var h=!0,d=0;d<c;d++)if(u(e,o+d)!==u(t,d)){h=!1;break}if(h)return o}return-1}function y(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 g(e,t,r,n){return q(F(t,e.length-r),e,r,n)}function _(e,t,r,n){return q(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 q(U(t),e,r,n)}function E(e,t,r,n){return q(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 A(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function x(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,c,u=e[i],f=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(f=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(f=c);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(c=(15&u)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(f=c);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(f=c)}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=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.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(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return u(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.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)},c.allocUnsafe=function(e){return h(null,e)},c.allocUnsafeSlow=function(e){return h(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.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},c.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}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=c.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},c.byteLength=p,c.prototype._isBuffer=!0,c.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)b(this,t,t+1);return this},c.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)b(this,t,t+3),b(this,t+1,t+2);return this},c.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)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?x(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 M(this,t,r);case"utf8":case"utf-8":return x(this,t,r);case"ascii":return P(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.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+">"},c.prototype.compare=function(e,t,r,n,i){if(!c.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(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(n,i),f=e.slice(t,r),h=0;h<a;++h)if(u[h]!==f[h]){o=u[h],s=f[h];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},c.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 y(this,e,t,r);case"utf8":case"utf-8":return g(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 E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function P(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 k(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 M(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+=D(e[o]);return i}function O(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 R(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 T(e,t,r,n,i,o){if(!c.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 C(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 B(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 N(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 j(e,t,r,n,o){return o||N(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,o){return o||N(e,0,r,8),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;r=new c(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},c.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(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},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(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},c.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||T(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},c.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||T(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},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);T(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},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);T(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},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},c.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||!c.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},c.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&&!c.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=c.isBuffer(e)?e:F(new c(e,n).toString()),a=s.length;for(o=0;o<r-t;++o)this[o+t]=s[o%a]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(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 U(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(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(7))},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,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,r){(function(e,n){var i; /** * @license * Lodash <https://lodash.com/> * Copyright JS Foundation and other contributors <https://js.foundation/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var o,s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",u="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",d=1,l=2,p=4,b=1,v=2,m=1,y=2,g=4,_=8,w=16,S=32,E=64,A=128,x=256,I=512,P=30,k="...",M=800,O=16,R=1,T=2,C=1/0,B=9007199254740991,N=1.7976931348623157e308,j=NaN,L=4294967295,z=L-1,D=L>>>1,F=[["ary",A],["bind",m],["bindKey",y],["curry",_],["curryRight",w],["flip",I],["partial",S],["partialRight",E],["rearg",x]],U="[object Arguments]",q="[object Array]",H="[object AsyncFunction]",K="[object Boolean]",V="[object Date]",W="[object DOMException]",Y="[object Error]",G="[object Function]",$="[object GeneratorFunction]",J="[object Map]",X="[object Number]",Z="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ne="[object String]",ie="[object Symbol]",oe="[object Undefined]",se="[object WeakMap]",ae="[object WeakSet]",ce="[object ArrayBuffer]",ue="[object DataView]",fe="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",ve="[object Uint8ClampedArray]",me="[object Uint16Array]",ye="[object Uint32Array]",ge=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Ae=RegExp(Se.source),xe=RegExp(Ee.source),Ie=/<%-([\s\S]+?)%>/g,Pe=/<%([\s\S]+?)%>/g,ke=/<%=([\s\S]+?)%>/g,Me=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oe=/^\w*$/,Re=/^\./,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/[\\^$.*+?()[\]{}|]/g,Be=RegExp(Ce.source),Ne=/^\s+|\s+$/g,je=/^\s+/,Le=/\s+$/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,Fe=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qe=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,We=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,$e=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xe=/($^)/,Ze=/['\n\r\u2028\u2029\\]/g,Qe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",et="\\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",tt="[\\ud800-\\udfff]",rt="["+et+"]",nt="["+Qe+"]",it="\\d+",ot="[\\u2700-\\u27bf]",st="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+et+it+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ct="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ft="(?:\\ud83c[\\udde6-\\uddff]){2}",ht="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",lt="(?:"+st+"|"+at+")",pt="(?:"+dt+"|"+at+")",bt="(?:"+nt+"|"+ct+")"+"?",vt="[\\ufe0e\\ufe0f]?"+bt+("(?:\\u200d(?:"+[ut,ft,ht].join("|")+")[\\ufe0e\\ufe0f]?"+bt+")*"),mt="(?:"+[ot,ft,ht].join("|")+")"+vt,yt="(?:"+[ut+nt+"?",nt,ft,ht,tt].join("|")+")",gt=RegExp("['’]","g"),_t=RegExp(nt,"g"),wt=RegExp(ct+"(?="+ct+")|"+yt+vt,"g"),St=RegExp([dt+"?"+st+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[rt,dt,"$"].join("|")+")",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[rt,dt+lt,"$"].join("|")+")",dt+"?"+lt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",it,mt].join("|"),"g"),Et=RegExp("[\\u200d\\ud800-\\udfff"+Qe+"\\ufe0e\\ufe0f]"),At=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xt=["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"],It=-1,Pt={};Pt[fe]=Pt[he]=Pt[de]=Pt[le]=Pt[pe]=Pt[be]=Pt[ve]=Pt[me]=Pt[ye]=!0,Pt[U]=Pt[q]=Pt[ce]=Pt[K]=Pt[ue]=Pt[V]=Pt[Y]=Pt[G]=Pt[J]=Pt[X]=Pt[Q]=Pt[te]=Pt[re]=Pt[ne]=Pt[se]=!1;var kt={};kt[U]=kt[q]=kt[ce]=kt[ue]=kt[K]=kt[V]=kt[fe]=kt[he]=kt[de]=kt[le]=kt[pe]=kt[J]=kt[X]=kt[Q]=kt[te]=kt[re]=kt[ne]=kt[ie]=kt[be]=kt[ve]=kt[me]=kt[ye]=!0,kt[Y]=kt[G]=kt[se]=!1;var Mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ot=parseFloat,Rt=parseInt,Tt="object"==typeof e&&e&&e.Object===Object&&e,Ct="object"==typeof self&&self&&self.Object===Object&&self,Bt=Tt||Ct||Function("return this")(),Nt=t&&!t.nodeType&&t,jt=Nt&&"object"==typeof n&&n&&!n.nodeType&&n,Lt=jt&&jt.exports===Nt,zt=Lt&&Tt.process,Dt=function(){try{return zt&&zt.binding&&zt.binding("util")}catch(e){}}(),Ft=Dt&&Dt.isArrayBuffer,Ut=Dt&&Dt.isDate,qt=Dt&&Dt.isMap,Ht=Dt&&Dt.isRegExp,Kt=Dt&&Dt.isSet,Vt=Dt&&Dt.isTypedArray;function Wt(e,t){return e.set(t[0],t[1]),e}function Yt(e,t){return e.add(t),e}function Gt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function $t(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(n,s,r(s),e)}return n}function Jt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Xt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Zt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Qt(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function er(e,t){return!!(null==e?0:e.length)&&fr(e,t,0)>-1}function tr(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function rr(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function nr(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function ir(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function or(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function sr(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var ar=pr("length");function cr(e,t,r){var n;return r(e,function(e,r,i){if(t(e,r,i))return n=r,!1}),n}function ur(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function fr(e,t,r){return t==t?function(e,t,r){var n=r-1,i=e.length;for(;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):ur(e,dr,r)}function hr(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return-1}function dr(e){return e!=e}function lr(e,t){var r=null==e?0:e.length;return r?mr(e,t)/r:j}function pr(e){return function(t){return null==t?o:t[e]}}function br(e){return function(t){return null==e?o:e[t]}}function vr(e,t,r,n,i){return i(e,function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)}),r}function mr(e,t){for(var r,n=-1,i=e.length;++n<i;){var s=t(e[n]);s!==o&&(r=r===o?s:r+s)}return r}function yr(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function gr(e){return function(t){return e(t)}}function _r(e,t){return rr(t,function(t){return e[t]})}function wr(e,t){return e.has(t)}function Sr(e,t){for(var r=-1,n=e.length;++r<n&&fr(t,e[r],0)>-1;);return r}function Er(e,t){for(var r=e.length;r--&&fr(t,e[r],0)>-1;);return r}var Ar=br({"À":"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"}),xr=br({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Ir(e){return"\\"+Mt[e]}function Pr(e){return Et.test(e)}function kr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Mr(e,t){return function(r){return e(t(r))}}function Or(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var s=e[r];s!==t&&s!==h||(e[r]=h,o[i++]=r)}return o}function Rr(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function Tr(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=[e,e]}),r}function Cr(e){return Pr(e)?function(e){var t=wt.lastIndex=0;for(;wt.test(e);)++t;return t}(e):ar(e)}function Br(e){return Pr(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.split("")}(e)}var Nr=br({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var jr=function e(t){var r,n=(t=null==t?Bt:jr.defaults(Bt.Object(),t,jr.pick(Bt,xt))).Array,i=t.Date,Qe=t.Error,et=t.Function,tt=t.Math,rt=t.Object,nt=t.RegExp,it=t.String,ot=t.TypeError,st=n.prototype,at=et.prototype,ct=rt.prototype,ut=t["__core-js_shared__"],ft=at.toString,ht=ct.hasOwnProperty,dt=0,lt=(r=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",pt=ct.toString,bt=ft.call(rt),vt=Bt._,mt=nt("^"+ft.call(ht).replace(Ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=Lt?t.Buffer:o,wt=t.Symbol,Et=t.Uint8Array,Mt=yt?yt.allocUnsafe:o,Tt=Mr(rt.getPrototypeOf,rt),Ct=rt.create,Nt=ct.propertyIsEnumerable,jt=st.splice,zt=wt?wt.isConcatSpreadable:o,Dt=wt?wt.iterator:o,ar=wt?wt.toStringTag:o,br=function(){try{var e=qo(rt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Lr=t.clearTimeout!==Bt.clearTimeout&&t.clearTimeout,zr=i&&i.now!==Bt.Date.now&&i.now,Dr=t.setTimeout!==Bt.setTimeout&&t.setTimeout,Fr=tt.ceil,Ur=tt.floor,qr=rt.getOwnPropertySymbols,Hr=yt?yt.isBuffer:o,Kr=t.isFinite,Vr=st.join,Wr=Mr(rt.keys,rt),Yr=tt.max,Gr=tt.min,$r=i.now,Jr=t.parseInt,Xr=tt.random,Zr=st.reverse,Qr=qo(t,"DataView"),en=qo(t,"Map"),tn=qo(t,"Promise"),rn=qo(t,"Set"),nn=qo(t,"WeakMap"),on=qo(rt,"create"),sn=nn&&new nn,an={},cn=ls(Qr),un=ls(en),fn=ls(tn),hn=ls(rn),dn=ls(nn),ln=wt?wt.prototype:o,pn=ln?ln.valueOf:o,bn=ln?ln.toString:o;function vn(e){if(Oa(e)&&!ga(e)&&!(e instanceof _n)){if(e instanceof gn)return e;if(ht.call(e,"__wrapped__"))return ps(e)}return new gn(e)}var mn=function(){function e(){}return function(t){if(!Ma(t))return{};if(Ct)return Ct(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function yn(){}function gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function _n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=L,this.__views__=[]}function wn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Sn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function En(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function An(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new En;++t<r;)this.add(e[t])}function xn(e){var t=this.__data__=new Sn(e);this.size=t.size}function In(e,t){var r=ga(e),n=!r&&ya(e),i=!r&&!n&&Ea(e),o=!r&&!n&&!i&&za(e),s=r||n||i||o,a=s?yr(e.length,it):[],c=a.length;for(var u in e)!t&&!ht.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||$o(u,c))||a.push(u);return a}function Pn(e){var t=e.length;return t?e[Ai(0,t-1)]:o}function kn(e,t){return fs(oo(e),Ln(t,0,e.length))}function Mn(e){return fs(oo(e))}function On(e,t,r){(r===o||ba(e[t],r))&&(r!==o||t in e)||Nn(e,t,r)}function Rn(e,t,r){var n=e[t];ht.call(e,t)&&ba(n,r)&&(r!==o||t in e)||Nn(e,t,r)}function Tn(e,t){for(var r=e.length;r--;)if(ba(e[r][0],t))return r;return-1}function Cn(e,t,r,n){return qn(e,function(e,i,o){t(n,e,r(e),o)}),n}function Bn(e,t){return e&&so(t,sc(t),e)}function Nn(e,t,r){"__proto__"==t&&br?br(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function jn(e,t){for(var r=-1,i=t.length,s=n(i),a=null==e;++r<i;)s[r]=a?o:tc(e,t[r]);return s}function Ln(e,t,r){return e==e&&(r!==o&&(e=e<=r?e:r),t!==o&&(e=e>=t?e:t)),e}function zn(e,t,r,n,i,s){var a,c=t&d,u=t&l,f=t&p;if(r&&(a=i?r(e,n,i,s):r(e)),a!==o)return a;if(!Ma(e))return e;var h=ga(e);if(h){if(a=function(e){var t=e.length,r=e.constructor(t);return t&&"string"==typeof e[0]&&ht.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!c)return oo(e,a)}else{var b=Vo(e),v=b==G||b==$;if(Ea(e))return Qi(e,c);if(b==Q||b==U||v&&!i){if(a=u||v?{}:Yo(e),!c)return u?function(e,t){return so(e,Ko(e),t)}(e,function(e,t){return e&&so(t,ac(t),e)}(a,e)):function(e,t){return so(e,Ho(e),t)}(e,Bn(a,e))}else{if(!kt[b])return i?e:{};a=function(e,t,r,n){var i,o,s,a=e.constructor;switch(t){case ce:return eo(e);case K:case V:return new a(+e);case ue:return function(e,t){var r=t?eo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case fe:case he:case de:case le:case pe:case be:case ve:case me:case ye:return to(e,n);case J:return function(e,t,r){return ir(t?r(kr(e),d):kr(e),Wt,new e.constructor)}(e,n,r);case X:case ne:return new a(e);case te:return(s=new(o=e).constructor(o.source,Ke.exec(o))).lastIndex=o.lastIndex,s;case re:return function(e,t,r){return ir(t?r(Rr(e),d):Rr(e),Yt,new e.constructor)}(e,n,r);case ie:return i=e,pn?rt(pn.call(i)):{}}}(e,b,zn,c)}}s||(s=new xn);var m=s.get(e);if(m)return m;s.set(e,a);var y=h?o:(f?u?No:Bo:u?ac:sc)(e);return Jt(y||e,function(n,i){y&&(n=e[i=n]),Rn(a,i,zn(n,t,r,i,e,s))}),a}function Dn(e,t,r){var n=r.length;if(null==e)return!n;for(e=rt(e);n--;){var i=r[n],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function Fn(e,t,r){if("function"!=typeof e)throw new ot(c);return ss(function(){e.apply(o,r)},t)}function Un(e,t,r,n){var i=-1,o=er,a=!0,c=e.length,u=[],f=t.length;if(!c)return u;r&&(t=rr(t,gr(r))),n?(o=tr,a=!1):t.length>=s&&(o=wr,a=!1,t=new An(t));e:for(;++i<c;){var h=e[i],d=null==r?h:r(h);if(h=n||0!==h?h:0,a&&d==d){for(var l=f;l--;)if(t[l]===d)continue e;u.push(h)}else o(t,d,n)||u.push(h)}return u}vn.templateSettings={escape:Ie,evaluate:Pe,interpolate:ke,variable:"",imports:{_:vn}},vn.prototype=yn.prototype,vn.prototype.constructor=vn,gn.prototype=mn(yn.prototype),gn.prototype.constructor=gn,_n.prototype=mn(yn.prototype),_n.prototype.constructor=_n,wn.prototype.clear=function(){this.__data__=on?on(null):{},this.size=0},wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},wn.prototype.get=function(e){var t=this.__data__;if(on){var r=t[e];return r===u?o:r}return ht.call(t,e)?t[e]:o},wn.prototype.has=function(e){var t=this.__data__;return on?t[e]!==o:ht.call(t,e)},wn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=on&&t===o?u:t,this},Sn.prototype.clear=function(){this.__data__=[],this.size=0},Sn.prototype.delete=function(e){var t=this.__data__,r=Tn(t,e);return!(r<0||(r==t.length-1?t.pop():jt.call(t,r,1),--this.size,0))},Sn.prototype.get=function(e){var t=this.__data__,r=Tn(t,e);return r<0?o:t[r][1]},Sn.prototype.has=function(e){return Tn(this.__data__,e)>-1},Sn.prototype.set=function(e,t){var r=this.__data__,n=Tn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},En.prototype.clear=function(){this.size=0,this.__data__={hash:new wn,map:new(en||Sn),string:new wn}},En.prototype.delete=function(e){var t=Fo(this,e).delete(e);return this.size-=t?1:0,t},En.prototype.get=function(e){return Fo(this,e).get(e)},En.prototype.has=function(e){return Fo(this,e).has(e)},En.prototype.set=function(e,t){var r=Fo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},An.prototype.add=An.prototype.push=function(e){return this.__data__.set(e,u),this},An.prototype.has=function(e){return this.__data__.has(e)},xn.prototype.clear=function(){this.__data__=new Sn,this.size=0},xn.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},xn.prototype.get=function(e){return this.__data__.get(e)},xn.prototype.has=function(e){return this.__data__.has(e)},xn.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Sn){var n=r.__data__;if(!en||n.length<s-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new En(n)}return r.set(e,t),this.size=r.size,this};var qn=uo(Jn),Hn=uo(Xn,!0);function Kn(e,t){var r=!0;return qn(e,function(e,n,i){return r=!!t(e,n,i)}),r}function Vn(e,t,r){for(var n=-1,i=e.length;++n<i;){var s=e[n],a=t(s);if(null!=a&&(c===o?a==a&&!La(a):r(a,c)))var c=a,u=s}return u}function Wn(e,t){var r=[];return qn(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function Yn(e,t,r,n,i){var o=-1,s=e.length;for(r||(r=Go),i||(i=[]);++o<s;){var a=e[o];t>0&&r(a)?t>1?Yn(a,t-1,r,n,i):nr(i,a):n||(i[i.length]=a)}return i}var Gn=fo(),$n=fo(!0);function Jn(e,t){return e&&Gn(e,t,sc)}function Xn(e,t){return e&&$n(e,t,sc)}function Zn(e,t){return Qt(t,function(t){return Ia(e[t])})}function Qn(e,t){for(var r=0,n=(t=$i(t,e)).length;null!=e&&r<n;)e=e[ds(t[r++])];return r&&r==n?e:o}function ei(e,t,r){var n=t(e);return ga(e)?n:nr(n,r(e))}function ti(e){return null==e?e===o?oe:Z:ar&&ar in rt(e)?function(e){var t=ht.call(e,ar),r=e[ar];try{e[ar]=o;var n=!0}catch(e){}var i=pt.call(e);return n&&(t?e[ar]=r:delete e[ar]),i}(e):function(e){return pt.call(e)}(e)}function ri(e,t){return e>t}function ni(e,t){return null!=e&&ht.call(e,t)}function ii(e,t){return null!=e&&t in rt(e)}function oi(e,t,r){for(var i=r?tr:er,s=e[0].length,a=e.length,c=a,u=n(a),f=1/0,h=[];c--;){var d=e[c];c&&t&&(d=rr(d,gr(t))),f=Gr(d.length,f),u[c]=!r&&(t||s>=120&&d.length>=120)?new An(c&&d):o}d=e[0];var l=-1,p=u[0];e:for(;++l<s&&h.length<f;){var b=d[l],v=t?t(b):b;if(b=r||0!==b?b:0,!(p?wr(p,v):i(h,v,r))){for(c=a;--c;){var m=u[c];if(!(m?wr(m,v):i(e[c],v,r)))continue e}p&&p.push(v),h.push(b)}}return h}function si(e,t,r){var n=null==(e=is(e,t=$i(t,e)))?e:e[ds(xs(t))];return null==n?o:Gt(n,e,r)}function ai(e){return Oa(e)&&ti(e)==U}function ci(e,t,r,n,i){return e===t||(null==e||null==t||!Oa(e)&&!Oa(t)?e!=e&&t!=t:function(e,t,r,n,i,s){var a=ga(e),c=ga(t),u=a?q:Vo(e),f=c?q:Vo(t),h=(u=u==U?Q:u)==Q,d=(f=f==U?Q:f)==Q,l=u==f;if(l&&Ea(e)){if(!Ea(t))return!1;a=!0,h=!1}if(l&&!h)return s||(s=new xn),a||za(e)?To(e,t,r,n,i,s):function(e,t,r,n,i,o,s){switch(r){case ue:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ce:return!(e.byteLength!=t.byteLength||!o(new Et(e),new Et(t)));case K:case V:case X:return ba(+e,+t);case Y:return e.name==t.name&&e.message==t.message;case te:case ne:return e==t+"";case J:var a=kr;case re:var c=n&b;if(a||(a=Rr),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;n|=v,s.set(e,t);var f=To(a(e),a(t),n,i,o,s);return s.delete(e),f;case ie:if(pn)return pn.call(e)==pn.call(t)}return!1}(e,t,u,r,n,i,s);if(!(r&b)){var p=h&&ht.call(e,"__wrapped__"),m=d&&ht.call(t,"__wrapped__");if(p||m){var y=p?e.value():e,g=m?t.value():t;return s||(s=new xn),i(y,g,r,n,s)}}return!!l&&(s||(s=new xn),function(e,t,r,n,i,s){var a=r&b,c=Bo(e),u=c.length,f=Bo(t).length;if(u!=f&&!a)return!1;for(var h=u;h--;){var d=c[h];if(!(a?d in t:ht.call(t,d)))return!1}var l=s.get(e);if(l&&s.get(t))return l==t;var p=!0;s.set(e,t),s.set(t,e);for(var v=a;++h<u;){d=c[h];var m=e[d],y=t[d];if(n)var g=a?n(y,m,d,t,e,s):n(m,y,d,e,t,s);if(!(g===o?m===y||i(m,y,r,n,s):g)){p=!1;break}v||(v="constructor"==d)}if(p&&!v){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(p=!1)}return s.delete(e),s.delete(t),p}(e,t,r,n,i,s))}(e,t,r,n,ci,i))}function ui(e,t,r,n){var i=r.length,s=i,a=!n;if(null==e)return!s;for(e=rt(e);i--;){var c=r[i];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=r[i])[0],f=e[u],h=c[1];if(a&&c[2]){if(f===o&&!(u in e))return!1}else{var d=new xn;if(n)var l=n(f,h,u,e,t,d);if(!(l===o?ci(h,f,b|v,n,d):l))return!1}}return!0}function fi(e){return!(!Ma(e)||(t=e,lt&&lt in t))&&(Ia(e)?mt:Ye).test(ls(e));var t}function hi(e){return"function"==typeof e?e:null==e?Tc:"object"==typeof e?ga(e)?mi(e[0],e[1]):vi(e):Uc(e)}function di(e){if(!es(e))return Wr(e);var t=[];for(var r in rt(e))ht.call(e,r)&&"constructor"!=r&&t.push(r);return t}function li(e){if(!Ma(e))return function(e){var t=[];if(null!=e)for(var r in rt(e))t.push(r);return t}(e);var t=es(e),r=[];for(var n in e)("constructor"!=n||!t&&ht.call(e,n))&&r.push(n);return r}function pi(e,t){return e<t}function bi(e,t){var r=-1,i=wa(e)?n(e.length):[];return qn(e,function(e,n,o){i[++r]=t(e,n,o)}),i}function vi(e){var t=Uo(e);return 1==t.length&&t[0][2]?rs(t[0][0],t[0][1]):function(r){return r===e||ui(r,e,t)}}function mi(e,t){return Xo(e)&&ts(t)?rs(ds(e),t):function(r){var n=tc(r,e);return n===o&&n===t?rc(r,e):ci(t,n,b|v)}}function yi(e,t,r,n,i){e!==t&&Gn(t,function(s,a){if(Ma(s))i||(i=new xn),function(e,t,r,n,i,s,a){var c=e[r],u=t[r],f=a.get(u);if(f)On(e,r,f);else{var h=s?s(c,u,r+"",e,t,a):o,d=h===o;if(d){var l=ga(u),p=!l&&Ea(u),b=!l&&!p&&za(u);h=u,l||p||b?ga(c)?h=c:Sa(c)?h=oo(c):p?(d=!1,h=Qi(u,!0)):b?(d=!1,h=to(u,!0)):h=[]:Ca(u)||ya(u)?(h=c,ya(c)?h=Wa(c):(!Ma(c)||n&&Ia(c))&&(h=Yo(u))):d=!1}d&&(a.set(u,h),i(h,u,n,s,a),a.delete(u)),On(e,r,h)}}(e,t,a,r,yi,n,i);else{var c=n?n(e[a],s,a+"",e,t,i):o;c===o&&(c=s),On(e,a,c)}},ac)}function gi(e,t){var r=e.length;if(r)return $o(t+=t<0?r:0,r)?e[t]:o}function _i(e,t,r){var n=-1;return t=rr(t.length?t:[Tc],gr(Do())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(bi(e,function(e,r,i){return{criteria:rr(t,function(t){return t(e)}),index:++n,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 c=ro(i[n],o[n]);if(c){if(n>=a)return c;var u=r[n];return c*("desc"==u?-1:1)}}return e.index-t.index}(e,t,r)})}function wi(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var s=t[n],a=Qn(e,s);r(a,s)&&Mi(o,$i(s,e),a)}return o}function Si(e,t,r,n){var i=n?hr:fr,o=-1,s=t.length,a=e;for(e===t&&(t=oo(t)),r&&(a=rr(e,gr(r)));++o<s;)for(var c=0,u=t[o],f=r?r(u):u;(c=i(a,f,c,n))>-1;)a!==e&&jt.call(a,c,1),jt.call(e,c,1);return e}function Ei(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;$o(i)?jt.call(e,i,1):Ui(e,i)}}return e}function Ai(e,t){return e+Ur(Xr()*(t-e+1))}function xi(e,t){var r="";if(!e||t<1||t>B)return r;do{t%2&&(r+=e),(t=Ur(t/2))&&(e+=e)}while(t);return r}function Ii(e,t){return as(ns(e,t,Tc),e+"")}function Pi(e){return Pn(bc(e))}function ki(e,t){var r=bc(e);return fs(r,Ln(t,0,r.length))}function Mi(e,t,r,n){if(!Ma(e))return e;for(var i=-1,s=(t=$i(t,e)).length,a=s-1,c=e;null!=c&&++i<s;){var u=ds(t[i]),f=r;if(i!=a){var h=c[u];(f=n?n(h,u,c):o)===o&&(f=Ma(h)?h:$o(t[i+1])?[]:{})}Rn(c,u,f),c=c[u]}return e}var Oi=sn?function(e,t){return sn.set(e,t),e}:Tc,Ri=br?function(e,t){return br(e,"toString",{configurable:!0,enumerable:!1,value:Mc(t),writable:!0})}:Tc;function Ti(e){return fs(bc(e))}function Ci(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=n(o);++i<o;)s[i]=e[i+t];return s}function Bi(e,t){var r;return qn(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function Ni(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=D){for(;n<i;){var o=n+i>>>1,s=e[o];null!==s&&!La(s)&&(r?s<=t:s<t)?n=o+1:i=o}return i}return ji(e,t,Tc,r)}function ji(e,t,r,n){t=r(t);for(var i=0,s=null==e?0:e.length,a=t!=t,c=null===t,u=La(t),f=t===o;i<s;){var h=Ur((i+s)/2),d=r(e[h]),l=d!==o,p=null===d,b=d==d,v=La(d);if(a)var m=n||b;else m=f?b&&(n||l):c?b&&l&&(n||!p):u?b&&l&&!p&&(n||!v):!p&&!v&&(n?d<=t:d<t);m?i=h+1:s=h}return Gr(s,z)}function Li(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var s=e[r],a=t?t(s):s;if(!r||!ba(a,c)){var c=a;o[i++]=0===s?0:s}}return o}function zi(e){return"number"==typeof e?e:La(e)?j:+e}function Di(e){if("string"==typeof e)return e;if(ga(e))return rr(e,Di)+"";if(La(e))return bn?bn.call(e):"";var t=e+"";return"0"==t&&1/e==-C?"-0":t}function Fi(e,t,r){var n=-1,i=er,o=e.length,a=!0,c=[],u=c;if(r)a=!1,i=tr;else if(o>=s){var f=t?null:Io(e);if(f)return Rr(f);a=!1,i=wr,u=new An}else u=t?[]:c;e:for(;++n<o;){var h=e[n],d=t?t(h):h;if(h=r||0!==h?h:0,a&&d==d){for(var l=u.length;l--;)if(u[l]===d)continue e;t&&u.push(d),c.push(h)}else i(u,d,r)||(u!==c&&u.push(d),c.push(h))}return c}function Ui(e,t){return null==(e=is(e,t=$i(t,e)))||delete e[ds(xs(t))]}function qi(e,t,r,n){return Mi(e,t,r(Qn(e,t)),n)}function Hi(e,t,r,n){for(var i=e.length,o=n?i:-1;(n?o--:++o<i)&&t(e[o],o,e););return r?Ci(e,n?0:o,n?o+1:i):Ci(e,n?o+1:0,n?i:o)}function Ki(e,t){var r=e;return r instanceof _n&&(r=r.value()),ir(t,function(e,t){return t.func.apply(t.thisArg,nr([e],t.args))},r)}function Vi(e,t,r){var i=e.length;if(i<2)return i?Fi(e[0]):[];for(var o=-1,s=n(i);++o<i;)for(var a=e[o],c=-1;++c<i;)c!=o&&(s[o]=Un(s[o]||a,e[c],t,r));return Fi(Yn(s,1),t,r)}function Wi(e,t,r){for(var n=-1,i=e.length,s=t.length,a={};++n<i;){var c=n<s?t[n]:o;r(a,e[n],c)}return a}function Yi(e){return Sa(e)?e:[]}function Gi(e){return"function"==typeof e?e:Tc}function $i(e,t){return ga(e)?e:Xo(e,t)?[e]:hs(Ya(e))}var Ji=Ii;function Xi(e,t,r){var n=e.length;return r=r===o?n:r,!t&&r>=n?e:Ci(e,t,r)}var Zi=Lr||function(e){return Bt.clearTimeout(e)};function Qi(e,t){if(t)return e.slice();var r=e.length,n=Mt?Mt(r):new e.constructor(r);return e.copy(n),n}function eo(e){var t=new e.constructor(e.byteLength);return new Et(t).set(new Et(e)),t}function to(e,t){var r=t?eo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ro(e,t){if(e!==t){var r=e!==o,n=null===e,i=e==e,s=La(e),a=t!==o,c=null===t,u=t==t,f=La(t);if(!c&&!f&&!s&&e>t||s&&a&&u&&!c&&!f||n&&a&&u||!r&&u||!i)return 1;if(!n&&!s&&!f&&e<t||f&&r&&i&&!n&&!s||c&&r&&i||!a&&i||!u)return-1}return 0}function no(e,t,r,i){for(var o=-1,s=e.length,a=r.length,c=-1,u=t.length,f=Yr(s-a,0),h=n(u+f),d=!i;++c<u;)h[c]=t[c];for(;++o<a;)(d||o<s)&&(h[r[o]]=e[o]);for(;f--;)h[c++]=e[o++];return h}function io(e,t,r,i){for(var o=-1,s=e.length,a=-1,c=r.length,u=-1,f=t.length,h=Yr(s-c,0),d=n(h+f),l=!i;++o<h;)d[o]=e[o];for(var p=o;++u<f;)d[p+u]=t[u];for(;++a<c;)(l||o<s)&&(d[p+r[a]]=e[o++]);return d}function oo(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function so(e,t,r,n){var i=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var c=t[s],u=n?n(r[c],e[c],c,r,e):o;u===o&&(u=e[c]),i?Nn(r,c,u):Rn(r,c,u)}return r}function ao(e,t){return function(r,n){var i=ga(r)?$t:Cn,o=t?t():{};return i(r,e,Do(n,2),o)}}function co(e){return Ii(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:o,a=i>2?r[2]:o;for(s=e.length>3&&"function"==typeof s?(i--,s):o,a&&Jo(r[0],r[1],a)&&(s=i<3?o:s,i